From e01e453de405b506d2d0d07e59b728aafd6328eb Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Thu, 5 Nov 2026 11:25:46 -0500 Subject: [PATCH 01/85] Bump the cuda_bindings version floor in cuda_core (#3380) * Bump the cuda_bindings version floor in cuda_core * Fix the build floor test --- cuda_core/docs/source/release/1.3.0-notes.rst | 2 +- cuda_core/pyproject.toml | 2 +- cuda_core/tests/test_build_hooks.py | 13 ++++++++++++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/cuda_core/docs/source/release/1.3.0-notes.rst b/cuda_core/docs/source/release/1.3.0-notes.rst index e17192853d83..d059ab76dc89 100644 --- a/cuda_core/docs/source/release/1.3.0-notes.rst +++ b/cuda_core/docs/source/release/1.3.0-notes.rst @@ -15,7 +15,7 @@ Breaking Changes ---------------- - ``cuda.core`` now requires a minimum ``cuda-bindings`` version per CUDA major, at build and run - time: 12.9.8 for CUDA 12 and 13.4.1 for CUDA 13. See the + time: 12.9.8 for CUDA 12 and 13.5.0 for CUDA 13. See the :ref:`support policy `. ``import cuda.core`` with an older ``cuda-bindings`` fails with a message that names the required version and how to install it. ``pip install cuda-core[cu12]`` or ``pip install cuda-core[cu13]`` installs a compatible diff --git a/cuda_core/pyproject.toml b/cuda_core/pyproject.toml index daced182faf9..f3ea7e35deb6 100644 --- a/cuda_core/pyproject.toml +++ b/cuda_core/pyproject.toml @@ -61,7 +61,7 @@ dependencies = [ # checklist in AGENTS.md). Keep the form `>=,<`. [project.optional-dependencies] cu12 = ["cuda-bindings[all]>=12.9.8,<13", "cuda-toolkit==12.*"] -cu13 = ["cuda-bindings[all]>=13.4.1,<14", "cuda-toolkit==13.*"] +cu13 = ["cuda-bindings[all]>=13.5.0,<14", "cuda-toolkit==13.*"] [dependency-groups] # Keep build in sync with build-system.requires; install local cuda-pathfinder separately. diff --git a/cuda_core/tests/test_build_hooks.py b/cuda_core/tests/test_build_hooks.py index 3014999867b0..3a52b6201f3d 100644 --- a/cuda_core/tests/test_build_hooks.py +++ b/cuda_core/tests/test_build_hooks.py @@ -653,6 +653,17 @@ def _write_cuda_h(tmp_path, cuda_version): return str(tmp_path) +def _mismatched_headers(): + """CUDA_VERSION values one minor below and one minor above the floor of each + major. Derived from the floors so that bumping one does not make a case + match.""" + headers = [] + for floor in build_hooks._bindings_floors().values(): + for minor in (floor[1] - 1, floor[1] + 1): + headers.append(floor[0] * 1000 + minor * 10) + return sorted(headers) + + class TestBuildConfigurationCheck: """_check_build_configuration() accepts exactly one configuration per CUDA major: cuda-bindings at or above the floor, and a cuda.h of the same @@ -690,7 +701,7 @@ def test_bindings_of_another_major_fail(self, tmp_path, monkeypatch): build_hooks._check_build_configuration(cuda_path, "12") @pytest.mark.agent_authored(model="claude-fable-5-1") - @pytest.mark.parametrize("header", [13030, 13050, 12090]) + @pytest.mark.parametrize("header", _mismatched_headers()) def test_header_minor_must_match_bindings(self, tmp_path, monkeypatch, header): floor = self.FLOOR[13] _fake_bindings(monkeypatch, _floor_str(13)) From 3eb349bb287f980076868c3260305e817a038225 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Thu, 5 Nov 2026 10:48:00 -0800 Subject: [PATCH 02/85] docs(pathfinder): add 1.8.6 release notes (#3391) --- cuda_pathfinder/docs/nv-versions.json | 4 ++++ .../docs/source/release/1.8.6-notes.rst | 15 +++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 cuda_pathfinder/docs/source/release/1.8.6-notes.rst diff --git a/cuda_pathfinder/docs/nv-versions.json b/cuda_pathfinder/docs/nv-versions.json index a34a9915bffb..38d1e2abf391 100644 --- a/cuda_pathfinder/docs/nv-versions.json +++ b/cuda_pathfinder/docs/nv-versions.json @@ -3,6 +3,10 @@ "version": "latest", "url": "https://nvidia.github.io/cuda-python/cuda-pathfinder/latest/" }, + { + "version": "1.8.6", + "url": "https://nvidia.github.io/cuda-python/cuda-pathfinder/1.8.6/" + }, { "version": "1.8.5", "url": "https://nvidia.github.io/cuda-python/cuda-pathfinder/1.8.5/" diff --git a/cuda_pathfinder/docs/source/release/1.8.6-notes.rst b/cuda_pathfinder/docs/source/release/1.8.6-notes.rst new file mode 100644 index 000000000000..96180d005403 --- /dev/null +++ b/cuda_pathfinder/docs/source/release/1.8.6-notes.rst @@ -0,0 +1,15 @@ +.. SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +.. SPDX-License-Identifier: Apache-2.0 + +.. py:currentmodule:: cuda.pathfinder + +``cuda-pathfinder`` 1.8.6 Release notes +======================================= + +Highlights +---------- + +* Add support for the Windows CTK 13.5 CUPTI DLL name + ``cupti64_13.dll`` so ``load_nvidia_dynamic_lib("cupti")`` can + recognize the installed library. + (`PR #3368 `_) From 692f301fd02971a8ff0cf40c1a069c6ed6db4e24 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Thu, 5 Nov 2026 13:55:09 -0500 Subject: [PATCH 03/85] docs: Fix footnotes on the cuda.bindings install page (#3388) Replace Markdown-style footnotes with reST footnotes, and list Windows arm64 as a supported platform. Closes #3384 Co-authored-by: Claude Sonnet 5.5 --- cuda_bindings_13/docs/source/install.rst | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/cuda_bindings_13/docs/source/install.rst b/cuda_bindings_13/docs/source/install.rst index 2c8213816d77..4958b0962386 100644 --- a/cuda_bindings_13/docs/source/install.rst +++ b/cuda_bindings_13/docs/source/install.rst @@ -9,7 +9,7 @@ Runtime Requirements ``cuda.bindings`` supports the same platforms as CUDA. Runtime dependencies are: -* Linux (x86-64, arm64) and Windows (x86-64) +* Linux (x86-64, arm64) and Windows (x86-64, arm64) * Python 3.11 - 3.15 * Driver: Linux (580.65.06 or later) Windows (580.88 or later) * Optionally, NVRTC, nvJitLink, nvFatBin, NVVM, cuFile, and cuDLA from CUDA Toolkit 13.x @@ -124,20 +124,20 @@ updates for development. Requirements ^^^^^^^^^^^^ -* CUDA Toolkit headers[^1] -* CUDA Runtime static library[^2] -* A git clone of the repository that includes tags[^3] +* CUDA Toolkit headers [#]_ +* CUDA Runtime static library [#]_ +* A git clone of the repository that includes tags [#]_ -[^1]: User projects that ``cimport`` CUDA symbols in Cython must also use CUDA Toolkit (CTK) types as provided by the ``cuda.bindings`` major.minor version. This results in CTK headers becoming a transitive dependency of downstream projects through CUDA Python. +.. [#] User projects that ``cimport`` CUDA symbols in Cython must also use CUDA Toolkit (CTK) types as provided by the ``cuda.bindings`` major.minor version. This results in CTK headers becoming a transitive dependency of downstream projects through CUDA Python. -[^2]: The CUDA Runtime static library (``libcudart_static.a`` on Linux, ``cudart_static.lib`` on Windows) is part of the CUDA Toolkit. If using conda packages, it is contained in the ``cuda-cudart-static`` package. +.. [#] The CUDA Runtime static library (``libcudart_static.a`` on Linux, ``cudart_static.lib`` on Windows) is part of the CUDA Toolkit. If using conda packages, it is contained in the ``cuda-cudart-static`` package. -[^3]: The version is derived from git tags via ``setuptools-scm``, so the clone -must include tags reaching back to at least the latest ``v*`` tag. Do not use -``--depth`` or ``--no-tags``: a clone without reachable tags can build with a -bogus version such as ``0.1.dev1+g0d22cb444``. See `Cloning the repository -`_ -for details. +.. [#] The version is derived from git tags via ``setuptools-scm``, so the clone + must include tags reaching back to at least the latest ``v*`` tag. Do not use + ``--depth`` or ``--no-tags``: a clone without reachable tags can build with a + bogus version such as ``0.1.dev1+g0d22cb444``. See `Cloning the repository + `_ + for details. Source builds require that the provided CUDA headers are of the same major.minor version as the ``cuda.bindings`` you're trying to build. Despite this requirement, note that the minor version compatibility is still maintained. The build checks the header before it compiles anything. A mismatch stops the build with a message that names the ``cuda.h`` it found and the version this source tree needs. Use the ``CUDA_PATH`` (or ``CUDA_HOME``) environment variable to specify the location of your headers. If both are set, ``CUDA_PATH`` takes precedence. For example, if your headers are located in ``/usr/local/cuda/include``, then you should set ``CUDA_PATH`` with: From b3c5fb2c5da1b4895edd719ef3ca014b2b19d1a6 Mon Sep 17 00:00:00 2001 From: Ralf Juengling Date: Thu, 5 Nov 2026 12:12:54 -0800 Subject: [PATCH 04/85] CI: accept a missing trust anchor in the Windows runner trust probe (#3389) CI: refine the Windows runner trust probe's pass criterion Pass the compromised-intermediates check when each certificate is explicitly distrusted or its chain no longer reaches a trusted root, supplying the non-root issuers (one newly vendored) to the chain build. Retry the endpoint check once on network errors and fail if it still gets no verdict. --- .../emudhra_intermediates.ps1 | 53 ++++++++ .spdx-ignore | 1 + ci/tools/runner_trust_probe.ps1 | 117 ++++++++++++------ .../runner_trust_probe_issuers/README.txt | 20 +++ .../emsign-root-cs-ca-g3-cross.pem | 21 ++++ 5 files changed, 176 insertions(+), 36 deletions(-) create mode 100644 ci/tools/runner_trust_probe_issuers/README.txt create mode 100644 ci/tools/runner_trust_probe_issuers/emsign-root-cs-ca-g3-cross.pem diff --git a/.github/actions/upgrade-ca-certificates/emudhra_intermediates.ps1 b/.github/actions/upgrade-ca-certificates/emudhra_intermediates.ps1 index c9c2f8c2babd..fc32fad200bb 100644 --- a/.github/actions/upgrade-ca-certificates/emudhra_intermediates.ps1 +++ b/.github/actions/upgrade-ca-certificates/emudhra_intermediates.ps1 @@ -69,3 +69,56 @@ function Test-ExplicitlyDistrusted([System.Security.Cryptography.X509Certificate $chain.Dispose() } } + +# Classifies how Windows chain building treats the certificate, using only the +# local trust state (no revocation, no AIA downloads): +# ExplicitDistrust : in LocalMachine\Disallowed or Microsoft's disallowed list +# NoTrustAnchor : the chain no longer ends in a trusted root, and +# UntrustedRoot / PartialChain are the only problems +# reported, e.g. because the root was removed +# Trusted : the chain builds cleanly, so the compromised key is usable +# Indeterminate : the build failed for some other reason; never a pass +# Verification time is pinned (the instant used by runner_trust_probe.sh) so an +# expired certificate cannot masquerade as untrusted. +# A PartialChain only shows that the root is untrusted if the issuers are +# available to the build, so callers pass the non-root issuers in +# $ExtraCertificates. Issuers that are roots need not be supplied: a missing +# root is exactly the condition this function reports as NoTrustAnchor. +function Get-ChainTrustState( + [System.Security.Cryptography.X509Certificates.X509Certificate2]$Cert, + [System.Security.Cryptography.X509Certificates.X509Certificate2[]]$ExtraCertificates = @() +) { + $explicitDistrust = [System.Security.Cryptography.X509Certificates.X509ChainStatusFlags]::ExplicitDistrust + $noAnchor = [int]([System.Security.Cryptography.X509Certificates.X509ChainStatusFlags]::UntrustedRoot -bor + [System.Security.Cryptography.X509Certificates.X509ChainStatusFlags]::PartialChain) + $chain = [System.Security.Cryptography.X509Certificates.X509Chain]::new() + try { + foreach ($extra in $ExtraCertificates) { + [void]$chain.ChainPolicy.ExtraStore.Add($extra) + } + $chain.ChainPolicy.RevocationMode = [System.Security.Cryptography.X509Certificates.X509RevocationMode]::NoCheck + $chain.ChainPolicy.VerificationTime = [DateTime]::new(2026, 10, 23, 0, 0, 0, [DateTimeKind]::Utc) + # DisableCertificateDownloads does not exist on .NET Framework (Windows PowerShell 5.1). + if ($chain.ChainPolicy | Get-Member -Name DisableCertificateDownloads) { + $chain.ChainPolicy.DisableCertificateDownloads = $true + } + $built = $chain.Build($Cert) + $statuses = @($chain.ChainStatus) + @($chain.ChainElements | ForEach-Object { $_.ChainElementStatus }) + $names = @($statuses | ForEach-Object { $_.Status.ToString() } | Where-Object { $_ -ne 'NoError' } | Sort-Object -Unique) + if ($statuses | Where-Object { $_.Status.HasFlag($explicitDistrust) }) { + $state = 'ExplicitDistrust' + } elseif ($built) { + $state = 'Trusted' + } elseif ( + ($statuses | Where-Object { ([int]$_.Status -band $noAnchor) -ne 0 }) -and + -not ($statuses | Where-Object { ([int]$_.Status -band (-bnot $noAnchor)) -ne 0 }) + ) { + $state = 'NoTrustAnchor' + } else { + $state = 'Indeterminate' + } + return [pscustomobject]@{ State = $state; Statuses = ($names -join ',') } + } finally { + $chain.Dispose() + } +} diff --git a/.spdx-ignore b/.spdx-ignore index dfde0a084953..30db6fa24754 100644 --- a/.spdx-ignore +++ b/.spdx-ignore @@ -24,3 +24,4 @@ cuda_core/cuda/**/*.pyi # Third-party eMudhra disclosure data, kept byte-identical to the published files ci/tools/runner_trust_probe_chains/** +ci/tools/runner_trust_probe_issuers/** diff --git a/ci/tools/runner_trust_probe.ps1 b/ci/tools/runner_trust_probe.ps1 index 5955281734f8..59486f5cf7cf 100644 --- a/ci/tools/runner_trust_probe.ps1 +++ b/ci/tools/runner_trust_probe.ps1 @@ -47,21 +47,55 @@ $inDisallowed = [bool](Get-ChildItem -Path 'Cert:\LocalMachine\Disallowed' -Erro Where-Object { (Get-CertificateSha256 $_) -eq $EmSignG3Hex }) Record-Check 'emSign ECC Root CA - G3 store state' 'INFO' "LocalMachine\Root=$inRoot ($($rootCerts.Count) certs), LocalMachine\Disallowed=$inDisallowed" -# 2. All compromised intermediates and cross-signs explicitly distrusted (gating) +# 2. No compromised intermediate or cross-sign is usable as a trust path (gating). +# Pass = explicitly distrusted, or the chain no longer reaches a trusted root +# (the hosted images have removed the roots rather than enabling the disallowed CTL). $certs = @(Get-EmudhraIntermediates) +# Supply the non-root issuers so a missing parent is not mistaken for a missing trust +# anchor: emSign Root TLS CA - G3 comes with the vendored host chains, and +# emSign Root CS CA - G3 (cross-signed by emSign ECC Root CA - G3) with the issuers. +$issuerCerts = @() +foreach ($dirName in 'runner_trust_probe_chains', 'runner_trust_probe_issuers') { + $found = @( + Get-ChildItem -LiteralPath (Join-Path $PSScriptRoot $dirName) -Filter '*.pem' | + ForEach-Object { + [regex]::Matches((Get-Content -LiteralPath $_.FullName -Raw), '-----BEGIN CERTIFICATE-----([^-]+)-----END CERTIFICATE-----') | + ForEach-Object { + [System.Security.Cryptography.X509Certificates.X509Certificate2]::new([System.Convert]::FromBase64String(($_.Groups[1].Value -replace '\s', ''))) + } + } + ) + if ($found.Count -eq 0) { + throw "No certificates found in $PSScriptRoot\$dirName." + } + $issuerCerts += $found +} +$usable = @() +$states = @() +$statusNames = @() try { - $notDistrusted = @($certs | Where-Object { -not (Test-ExplicitlyDistrusted $_) } | ForEach-Object { $_.EmudhraLabel }) + foreach ($c in $certs) { + $r = Get-ChainTrustState $c $issuerCerts + $states += $r.State + $statusNames += $r.Statuses -split ',' | Where-Object { $_ } + if ($r.State -notin @('ExplicitDistrust', 'NoTrustAnchor')) { + $usable += "$($c.EmudhraLabel) [$($r.State): $($r.Statuses)]" + } + } } finally { $certs | ForEach-Object { $_.Dispose() } + $issuerCerts | ForEach-Object { $_.Dispose() } } -if ($notDistrusted.Count -eq 0) { - Record-Check 'Compromised intermediates distrusted' 'PASS' "All $($certs.Count) explicitly distrusted" +$counts = ($states | Group-Object | ForEach-Object { "$($_.Name)=$($_.Count)" }) -join ', ' +$flags = ($statusNames | Sort-Object -Unique) -join ',' +if ($usable.Count -eq 0) { + Record-Check 'Compromised intermediates distrusted' 'PASS' "All $($certs.Count) rejected ($counts; chain status: $flags)" } else { - Record-Check 'Compromised intermediates distrusted' 'FAIL' "$($notDistrusted.Count) of $($certs.Count) not explicitly distrusted: $($notDistrusted -join '; ')" + Record-Check 'Compromised intermediates distrusted' 'FAIL' "$($usable.Count) of $($certs.Count) usable or indeterminate: $($usable -join '; ')" $GatingFailures++ } -# 3. OS-store client (Invoke-WebRequest) rejects each test endpoint (only a successful connection fails the job). +# 3. OS-store client (Invoke-WebRequest) rejects each test endpoint (a successful connection, or no verdict after a retry, fails the job). # -SkipHttpErrorCheck is PowerShell 7+ only, so HTTP error statuses are caught below instead: # any response at all means the TLS handshake (and thus the certificate chain) succeeded. $progTmp = $ProgressPreference @@ -69,40 +103,51 @@ $ProgressPreference = 'SilentlyContinue' try { foreach ($endpoint in $TestEndpoints) { $checkName = "Invoke-WebRequest rejects ``$endpoint``" - try { - $res = Invoke-WebRequest -Uri $endpoint -UseBasicParsing -TimeoutSec 15 - Record-Check $checkName 'FAIL' "Connection succeeded with HTTP $($res.StatusCode) (certificate was trusted)" - $GatingFailures++ - } catch { - if ($null -ne $_.Exception.Response) { - Record-Check $checkName 'FAIL' "Connection succeeded with HTTP $([int]$_.Exception.Response.StatusCode) (certificate was trusted)" + # Retry non-certificate/network errors once; if the second attempt also fails, + # the probe could not show that the certificate is rejected, so the check fails. + for ($attempt = 1; $attempt -le 2; $attempt++) { + try { + $res = Invoke-WebRequest -Uri $endpoint -UseBasicParsing -TimeoutSec 15 + Record-Check $checkName 'FAIL' "Connection succeeded with HTTP $($res.StatusCode) (certificate was trusted)" $GatingFailures++ - continue - } - $certRejected = $false - $hostnameMismatchOnly = $false - $ex = $_.Exception - while ($null -ne $ex) { - if ( - ($ex -is [System.Security.Authentication.AuthenticationException] -and $ex.Message -match 'certificate chain|UntrustedRoot|RemoteCertificateChainErrors') -or - ($ex -is [System.Net.WebException] -and $ex.Status -eq [System.Net.WebExceptionStatus]::TrustFailure) - ) { - $certRejected = $true + break + } catch { + if ($null -ne $_.Exception.Response) { + Record-Check $checkName 'FAIL' "Connection succeeded with HTTP $([int]$_.Exception.Response.StatusCode) (certificate was trusted)" + $GatingFailures++ break } - if ($ex -is [System.Security.Authentication.AuthenticationException] -and $ex.Message -match 'RemoteCertificateNameMismatch') { - $hostnameMismatchOnly = $true + $certRejected = $false + $hostnameMismatchOnly = $false + $ex = $_.Exception + while ($null -ne $ex) { + if ( + ($ex -is [System.Security.Authentication.AuthenticationException] -and $ex.Message -match 'certificate chain|UntrustedRoot|RemoteCertificateChainErrors') -or + ($ex -is [System.Net.WebException] -and $ex.Status -eq [System.Net.WebExceptionStatus]::TrustFailure) + ) { + $certRejected = $true + break + } + if ($ex -is [System.Security.Authentication.AuthenticationException] -and $ex.Message -match 'RemoteCertificateNameMismatch') { + $hostnameMismatchOnly = $true + } + $ex = $ex.InnerException + } + $cleanMsg = ($_.Exception.Message -replace '[\r\n]+', ' ' -replace '\|', '\|') + if ($certRejected) { + Record-Check $checkName 'PASS' "Rejected with certificate validation error ($cleanMsg)" + break + } elseif ($hostnameMismatchOnly) { + Record-Check $checkName 'FAIL' "Certificate chain was trusted; failed only hostname check ($cleanMsg)" + $GatingFailures++ + break + } elseif ($attempt -lt 2) { + Write-Output "[INFO] ${checkName}: attempt $attempt failed with a non-certificate or network error ($cleanMsg); retrying" + Start-Sleep -Seconds 5 + } else { + Record-Check $checkName 'FAIL' "Could not determine whether the certificate is rejected after $attempt attempts: non-certificate or network error ($cleanMsg)" + $GatingFailures++ } - $ex = $ex.InnerException - } - $cleanMsg = ($_.Exception.Message -replace '[\r\n]+', ' ' -replace '\|', '\|') - if ($certRejected) { - Record-Check $checkName 'PASS' "Rejected with certificate validation error ($cleanMsg)" - } elseif ($hostnameMismatchOnly) { - Record-Check $checkName 'FAIL' "Certificate chain was trusted; failed only hostname check ($cleanMsg)" - $GatingFailures++ - } else { - Record-Check $checkName 'INCONCLUSIVE' "Non-certificate or network error ($cleanMsg)" } } } diff --git a/ci/tools/runner_trust_probe_issuers/README.txt b/ci/tools/runner_trust_probe_issuers/README.txt new file mode 100644 index 000000000000..ba3bb1ad24e9 --- /dev/null +++ b/ci/tools/runner_trust_probe_issuers/README.txt @@ -0,0 +1,20 @@ +Issuer certificates for the Windows runner trust probe +====================================================== + +ci/tools/runner_trust_probe.ps1 passes these certificates to Windows chain +building, together with the chains in ../runner_trust_probe_chains, so a missing +parent certificate is not mistaken for a missing trust anchor. + + emsign-root-cs-ca-g3-cross.pem + emSign Root CS CA - G3, issued by emSign ECC Root CA - G3 (the + cross-certificate of the self-signed emSign Root CS CA - G3). It is the + issuer of the two native code-signing intermediates (EM OV CS CA - G3B + and G3C), which the test hosts' chains do not cover. + + Source: https://repository.emsign.com/certs/crosssign/rootcscag3.crt + (DER; converted to PEM without other changes) + SHA-256: 7137FA71AD46BA686F746D1014AC57E8E6C6E9AF4AA2F73C0C44A5CF27DEBB59 + Valid: 2024-07-11 to 2039-07-09 + Checked: same public key as the self-signed emSign Root CS CA - G3, and + its key verifies the signatures of both code-signing + intermediates in impacted-intermediates.json. diff --git a/ci/tools/runner_trust_probe_issuers/emsign-root-cs-ca-g3-cross.pem b/ci/tools/runner_trust_probe_issuers/emsign-root-cs-ca-g3-cross.pem new file mode 100644 index 000000000000..7ef86df37d61 --- /dev/null +++ b/ci/tools/runner_trust_probe_issuers/emsign-root-cs-ca-g3-cross.pem @@ -0,0 +1,21 @@ +-----BEGIN CERTIFICATE----- +MIIDaDCCAu2gAwIBAgIPFMZ1TpPl2UxjjT/JD612MAoGCCqGSM49BAMDMGsxCzAJ +BgNVBAYTAklOMRMwEQYDVQQLEwplbVNpZ24gUEtJMSUwIwYDVQQKExxlTXVkaHJh +IFRlY2hub2xvZ2llcyBMaW1pdGVkMSAwHgYDVQQDExdlbVNpZ24gRUNDIFJvb3Qg +Q0EgLSBHMzAeFw0yNDA3MTExNjEwMzBaFw0zOTA3MDkxODMwMDBaMFUxCzAJBgNV +BAYTAklOMSUwIwYDVQQKDBxlTXVkaHJhIFRlY2hub2xvZ2llcyBMaW1pdGVkMR8w +HQYDVQQDDBZlbVNpZ24gUm9vdCBDUyBDQSAtIEczMHYwEAYHKoZIzj0CAQYFK4EE +ACIDYgAESl9kM5D0VA/Og76dz5Xzw1hnGQ4fSR9993/qBkkvI48pXQVKOdyHCgAZ +ThgWejQ8OpFRiTISjpabn4tfRFOYuzhApR/XxGbkg9X+2cEtbyghF9CdoF91W22V +/R2EVe4xo4IBazCCAWcwHwYDVR0jBBgwFoAUfF0ChBPUzIqbgc4XHC4pHpxIY0Iw +HQYDVR0OBBYEFGh0A/iFyo1UUFcdFuDI3kUNq80tMBMGA1UdJQQMMAoGCCsGAQUF +BwMDMD0GA1UdIAQ2MDQwMgYEVR0gADAqMCgGCCsGAQUFBwIBFhxodHRwOi8vcmVw +b3NpdG9yeS5lbXNpZ24uY29tMHgGCCsGAQUFBwEBBGwwajAiBggrBgEFBQcwAYYW +aHR0cDovL29jc3AuZW1zaWduLmNvbTBEBggrBgEFBQcwAoY4aHR0cDovL3JlcG9z +aXRvcnkuZW1zaWduLmNvbS9jZXJ0cy9lbVNpZ25FQ0NSb290Q0FHMy5jcnQwMwYD +VR0fBCwwKjAooCagJIYiaHR0cDovL2NybC5lbXNpZ24uY29tP1Jvb3RDQUczLmNy +bDAOBgNVHQ8BAf8EBAMCAQYwEgYDVR0TAQH/BAgwBgEB/wIBATAKBggqhkjOPQQD +AwNpADBmAjEAuFH6M20dolyKkZ9AD7DsgJyo8MkQTAc05niLQzoyqo60+mYdtseW +P2tOfXULs3XBAjEA7r4peOh9eWi+vDbjD8kB2lxRGYW2n/I2+KTLKYAOzp/9GBmx +x0cnzyQU+QX3koAd +-----END CERTIFICATE----- From 01615966cd53abddffa207dbe7b263eb5982efc8 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Thu, 5 Nov 2026 15:46:02 -0500 Subject: [PATCH 05/85] docs: Put the v2 migration guide in a Migration guides toctree (#3387) module/v2_migration was not in any toctree, which produced a Sphinx "document isn't included in any toctree" warning. Add it to its own "Migration guides" section at the bottom of the API reference, and rename the module toctree caption from the "CaptionHolder:" placeholder to "Modules:". Part of #3383. Co-authored-by: Claude Sonnet 5.5 --- cuda_bindings_13/docs/source/api.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cuda_bindings_13/docs/source/api.rst b/cuda_bindings_13/docs/source/api.rst index d5ea7d7f9a67..086a3c7df247 100644 --- a/cuda_bindings_13/docs/source/api.rst +++ b/cuda_bindings_13/docs/source/api.rst @@ -7,7 +7,7 @@ CUDA Python API Reference .. toctree:: :maxdepth: 3 - :caption: CaptionHolder: + :caption: Modules: module/driver module/driver_v2 @@ -21,3 +21,9 @@ CUDA Python API Reference module/cufile module/nvml module/utils + +.. toctree:: + :maxdepth: 1 + :caption: Migration guides: + + module/v2_migration From 39f614a36f5d3de40604080b1ed495150957d6d2 Mon Sep 17 00:00:00 2001 From: Martin Durant Date: Thu, 5 Nov 2026 16:48:13 -0500 Subject: [PATCH 06/85] [fix] VM resource options (#3343) * [fix] VM resource options * Apply suggestions --- .../core/_memory/_virtual_memory_resource.pyi | 15 ++++----- .../core/_memory/_virtual_memory_resource.pyx | 24 +++++++------- cuda_core/cuda/core/typing.py | 2 +- cuda_core/docs/source/release/1.3.0-notes.rst | 9 ++++++ cuda_core/tests/test_memory.py | 31 +++++++++++++++---- 5 files changed, 56 insertions(+), 25 deletions(-) diff --git a/cuda_core/cuda/core/_memory/_virtual_memory_resource.pyi b/cuda_core/cuda/core/_memory/_virtual_memory_resource.pyi index 536699eed2ef..32562a6c8c22 100644 --- a/cuda_core/cuda/core/_memory/_virtual_memory_resource.pyi +++ b/cuda_core/cuda/core/_memory/_virtual_memory_resource.pyi @@ -28,18 +28,19 @@ class VirtualMemoryResourceOptions: Attributes ---------- allocation_type: :obj:`~_memory.VirtualMemoryAllocationType` | str - Controls the type of allocation. + Controls the type of allocation. Only ``"pinned"`` is supported; + use :class:`ManagedMemoryResource` for managed memory. location_type: :obj:`~_memory.VirtualMemoryLocationType` | str Controls the location of the allocation. ``"host_numa"`` requires ``numa_id``. ``"host_numa_current"`` is rejected because the driver does not accept it for physical allocations. - handle_type: :obj:`~_memory.VirtualMemoryHandleType` | str + handle_type: :obj:`~_memory.VirtualMemoryHandleType` | str | None Export handle type for the physical allocation, and the switch for sharing buffers with other processes (see :attr:`VirtualMemoryResource.is_ipc_enabled`). Use ``"posix_fd"`` on - Linux if you plan to import/export the allocation. Use `None` if you - don't need an exportable handle. ``location_type="host"`` requires - `None`. + if you plan to import/export the allocation. Use `None` if you + don't need an exportable handle. The default on Windows is `None`, + "posix_fd" otherwise. ``location_type="host"`` requires `None`. gpu_direct_rdma: bool Hint that the allocation should be GDR-capable (if supported). granularity: :obj:`~_memory.VirtualMemoryGranularityType` | str @@ -64,7 +65,7 @@ class VirtualMemoryResourceOptions: """ allocation_type: VirtualMemoryAllocationType = VirtualMemoryAllocationType.PINNED location_type: VirtualMemoryLocationType = VirtualMemoryLocationType.DEVICE - handle_type: VirtualMemoryHandleType = VirtualMemoryHandleType.POSIX_FD + handle_type: VirtualMemoryHandleType | str | None = field(default_factory=lambda: None if platform.system() == 'Windows' else VirtualMemoryHandleType.POSIX_FD) granularity: VirtualMemoryGranularityType = VirtualMemoryGranularityType.RECOMMENDED gpu_direct_rdma: bool = False addr_hint: int | None = 0 @@ -92,7 +93,7 @@ class VirtualMemoryResourceOptions: @staticmethod def _location_type_to_driver(spec: VirtualMemoryLocationType) -> int: ... @staticmethod - def _handle_type_to_driver(spec: VirtualMemoryHandleType | None) -> int: ... + def _handle_type_to_driver(spec: VirtualMemoryHandleType | str | None) -> int: ... @staticmethod def _granularity_to_driver(spec: VirtualMemoryGranularityType) -> int: ... diff --git a/cuda_core/cuda/core/_memory/_virtual_memory_resource.pyx b/cuda_core/cuda/core/_memory/_virtual_memory_resource.pyx index 90ac28b1d54c..9af21db3ff0f 100644 --- a/cuda_core/cuda/core/_memory/_virtual_memory_resource.pyx +++ b/cuda_core/cuda/core/_memory/_virtual_memory_resource.pyx @@ -58,7 +58,6 @@ from typing import TYPE_CHECKING, Iterable from cuda.core._device import Device, _device_from_uuid from cuda.core._utils.cuda_utils import driver -from cuda.core._utils.version import BUILD_CUDA_MAJOR from cuda.core.typing import ( DevicePointerType, VirtualMemoryAccessType, @@ -97,18 +96,19 @@ class VirtualMemoryResourceOptions: Attributes ---------- allocation_type: :obj:`~_memory.VirtualMemoryAllocationType` | str - Controls the type of allocation. + Controls the type of allocation. Only ``"pinned"`` is supported; + use :class:`ManagedMemoryResource` for managed memory. location_type: :obj:`~_memory.VirtualMemoryLocationType` | str Controls the location of the allocation. ``"host_numa"`` requires ``numa_id``. ``"host_numa_current"`` is rejected because the driver does not accept it for physical allocations. - handle_type: :obj:`~_memory.VirtualMemoryHandleType` | str + handle_type: :obj:`~_memory.VirtualMemoryHandleType` | str | None Export handle type for the physical allocation, and the switch for sharing buffers with other processes (see :attr:`VirtualMemoryResource.is_ipc_enabled`). Use ``"posix_fd"`` on - Linux if you plan to import/export the allocation. Use `None` if you - don't need an exportable handle. ``location_type="host"`` requires - `None`. + if you plan to import/export the allocation. Use `None` if you + don't need an exportable handle. The default on Windows is `None`, + "posix_fd" otherwise. ``location_type="host"`` requires `None`. gpu_direct_rdma: bool Hint that the allocation should be GDR-capable (if supported). granularity: :obj:`~_memory.VirtualMemoryGranularityType` | str @@ -134,7 +134,9 @@ class VirtualMemoryResourceOptions: allocation_type: VirtualMemoryAllocationType = VirtualMemoryAllocationType.PINNED location_type: VirtualMemoryLocationType = VirtualMemoryLocationType.DEVICE - handle_type: VirtualMemoryHandleType = VirtualMemoryHandleType.POSIX_FD + handle_type: VirtualMemoryHandleType | str | None = field( + default_factory=lambda: None if platform.system() == "Windows" else VirtualMemoryHandleType.POSIX_FD + ) granularity: VirtualMemoryGranularityType = VirtualMemoryGranularityType.RECOMMENDED gpu_direct_rdma: bool = False addr_hint: int | None = 0 @@ -170,12 +172,11 @@ class VirtualMemoryResourceOptions: VirtualMemoryLocationType.HOST_NUMA_CURRENT: _l.CU_MEM_LOCATION_TYPE_HOST_NUMA_CURRENT, } _t = driver.CUmemAllocationType - # CUDA 13 added MANAGED to CUmemAllocationType. The CUDA 12 build has no such member. + # cuMemCreate only supports PINNED, even on CUDA 13 builds with a MANAGED enum member. _allocation_type = {VirtualMemoryAllocationType.PINNED: _t.CU_MEM_ALLOCATION_TYPE_PINNED} # noqa: RUF012 - if BUILD_CUDA_MAJOR >= 13: - _allocation_type[VirtualMemoryAllocationType.MANAGED] = _t.CU_MEM_ALLOCATION_TYPE_MANAGED def __post_init__(self) -> None: + self._allocation_type_to_driver(self.allocation_type) # Allocation and pickling each read the peers, so a one-shot iterable # such as a generator must not reach them. self.peers = tuple(int(peer) for peer in self.peers) @@ -202,7 +203,7 @@ class VirtualMemoryResourceOptions: return loc_type # type: ignore[no-any-return] @staticmethod - def _handle_type_to_driver(spec: VirtualMemoryHandleType | None) -> int: + def _handle_type_to_driver(spec: VirtualMemoryHandleType | str | None) -> int: if spec == "win32": raise NotImplementedError("win32 is currently not supported, please reach out to the CUDA Python team") handle_type = VirtualMemoryResourceOptions._handle_types.get(spec) @@ -490,6 +491,7 @@ cdef class VirtualMemoryResource(MemoryResource): Shared by ``__init__`` and ``modify_allocation``, so a per-call configuration is held to the same rules as the resource's own. """ + VirtualMemoryResourceOptions._allocation_type_to_driver(cfg.allocation_type) if cfg.location_type != self.config.location_type: raise ValueError( f"config.location_type {str(cfg.location_type)!r} does not match the resource's " diff --git a/cuda_core/cuda/core/typing.py b/cuda_core/cuda/core/typing.py index 90ccab61a234..f40896745045 100644 --- a/cuda_core/cuda/core/typing.py +++ b/cuda_core/cuda/core/typing.py @@ -198,7 +198,7 @@ class VirtualMemoryAllocationType(StrEnum): """Physical memory type for a virtual memory backing allocation. * ``PINNED`` — pinned/non-migratable physical allocation (placement via :class:`VirtualMemoryLocationType`). - * ``MANAGED`` — CUDA managed (unified) memory (CUDA 13+ only). + * ``MANAGED`` — reserved; not supported by :class:`~cuda.core.VirtualMemoryResource`. """ PINNED = "pinned" diff --git a/cuda_core/docs/source/release/1.3.0-notes.rst b/cuda_core/docs/source/release/1.3.0-notes.rst index d059ab76dc89..fc0893dcb498 100644 --- a/cuda_core/docs/source/release/1.3.0-notes.rst +++ b/cuda_core/docs/source/release/1.3.0-notes.rst @@ -371,6 +371,15 @@ Fixes and enhancements ``repr`` now shows ``U`` for unified operands. (`#2649 `__) +- :class:`VirtualMemoryResourceOptions` rejects ``allocation_type="managed"`` + with ``ValueError`` as ``cuMemCreate`` only supports + pinned allocations. Use :class:`ManagedMemoryResource` for managed memory. + (`#2910 `__) + +- The default :class:`VirtualMemoryResourceOptions` ``handle_type`` on Windows + is now ``None``, avoiding the unsupported POSIX descriptor; Linux keeps its ``"posix_fd"`` default. + (`#2910 `__) + - :class:`VirtualMemoryResource` can now allocate with ``location_type="host_numa"``. Every such allocation failed with ``CUDA_ERROR_INVALID_VALUE``, because the driver received ``-1`` as the NUMA diff --git a/cuda_core/tests/test_memory.py b/cuda_core/tests/test_memory.py index 7eb92608d1c1..953ded9f04ac 100644 --- a/cuda_core/tests/test_memory.py +++ b/cuda_core/tests/test_memory.py @@ -1768,7 +1768,11 @@ def test_vmm_host_modify_allocation_rejects_exportable_handle_type(init_cuda): buf = mr.allocate(4096) try: with pytest.raises(ValueError, match="handle_type=None"): - mr.modify_allocation(buf, 2 * buf.size, config=VirtualMemoryResourceOptions(location_type="host")) + mr.modify_allocation( + buf, + 2 * buf.size, + config=VirtualMemoryResourceOptions(location_type="host", handle_type=VirtualMemoryHandleType.POSIX_FD), + ) finally: buf.close() @@ -3349,6 +3353,19 @@ def test_vmm_options_spec_validators_raise(method, spec, match): fn(spec) +@pytest.mark.parametrize("system", ["Linux", "Windows"]) +@pytest.mark.thread_unsafe(reason="patches platform.system") +def test_vmm_options_default_handle_type(monkeypatch, system): + monkeypatch.setattr(platform, "system", lambda: system) + options = VirtualMemoryResourceOptions() + expected = None if system == "Windows" else VirtualMemoryHandleType.POSIX_FD + assert options.handle_type == expected + assert VirtualMemoryResourceOptions(handle_type="win32_kmt").handle_type == "win32_kmt" + assert VirtualMemoryResourceOptions(handle_type=None).handle_type is None + with pytest.raises(ValueError): + VirtualMemoryResourceOptions(allocation_type=VirtualMemoryAllocationType.MANAGED) + + def test_vmm_options_handle_type_win32_raises(): """_handle_type_to_driver raises NotImplementedError for 'win32'.""" with pytest.raises(NotImplementedError, match="win32 is currently not supported"): @@ -3371,17 +3388,19 @@ def test_vmm_host_location_types_report_host_accessible(init_cuda, location_type deciding the resource is not bound to a device, so is_host_accessible must agree; otherwise a NUMA-located resource claims to be neither host- nor device-accessible. The driver rejects an exportable handle type for HOST - memory only, so the default handle type is rejected at construction for - "host" and accepted for "host_numa". + memory only, so an exportable default handle type is rejected at + construction for "host" and accepted for "host_numa". The Windows + default, None, is accepted for both location types. """ device = Device() device.set_current() numa = {"numa_id": 0} if location_type == "host_numa" else {} - if location_type == "host": + config = VirtualMemoryResourceOptions(location_type=location_type, **numa) + if location_type == "host" and config.handle_type is not None: with pytest.raises(ValueError, match="handle_type=None"): - VirtualMemoryResource(device, config=VirtualMemoryResourceOptions(location_type=location_type)) + VirtualMemoryResource(device, config=config) else: - VirtualMemoryResource(device, config=VirtualMemoryResourceOptions(location_type=location_type, **numa)) + VirtualMemoryResource(device, config=config) mr = VirtualMemoryResource( device, config=VirtualMemoryResourceOptions(location_type=location_type, handle_type=None, **numa) ) From 1b32c8c1c7f0335204e6b6cb30db57a4d711f993 Mon Sep 17 00:00:00 2001 From: Jinfeng Li Date: Thu, 5 Nov 2026 15:08:10 -0800 Subject: [PATCH 07/85] [no-ci] fix(driver): correct cuLogs* introduced version to 12.9 in cuda_bindings_12 (#3395) Apply the changes from #2978 to cuda_bindings_12/ on main: pin the cuGetProcAddress_v2 version for cuLogs* to 12090 (was 12080) and add a regression test. This fixes the cuLogs* FunctionNotFoundError. Matches the 12.9.x backport in #3377. Co-authored-by: Claude Sonnet 5.5 --- .../cuda/bindings/_internal/driver_linux.pyx | 12 +++---- .../bindings/_internal/driver_windows.pyx | 12 +++---- cuda_bindings_12/tests/test_cuda.py | 36 +++++++++++++++++++ 3 files changed, 48 insertions(+), 12 deletions(-) diff --git a/cuda_bindings_12/cuda/bindings/_internal/driver_linux.pyx b/cuda_bindings_12/cuda/bindings/_internal/driver_linux.pyx index 34c448c5cc5b..f2234b4d3b6e 100644 --- a/cuda_bindings_12/cuda/bindings/_internal/driver_linux.pyx +++ b/cuda_bindings_12/cuda/bindings/_internal/driver_linux.pyx @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated with version 12.9.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=c4957d188c7c3258823fd50e2eb0cba162810911af7294ab726f1e49769642c8 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=d382464130e581b718a589e652053c30057e65ddc824b2c79a903341858f1e88 # <<<< PREAMBLE CONTENT >>>> @@ -1894,19 +1894,19 @@ cdef int _init_driver() except -1 nogil: cuGetProcAddress_v2('cuGreenCtxStreamCreate', &__cuGreenCtxStreamCreate, 12050, ptds_mode, NULL) global __cuLogsRegisterCallback - cuGetProcAddress_v2('cuLogsRegisterCallback', &__cuLogsRegisterCallback, 12080, ptds_mode, NULL) + cuGetProcAddress_v2('cuLogsRegisterCallback', &__cuLogsRegisterCallback, 12090, ptds_mode, NULL) global __cuLogsUnregisterCallback - cuGetProcAddress_v2('cuLogsUnregisterCallback', &__cuLogsUnregisterCallback, 12080, ptds_mode, NULL) + cuGetProcAddress_v2('cuLogsUnregisterCallback', &__cuLogsUnregisterCallback, 12090, ptds_mode, NULL) global __cuLogsCurrent - cuGetProcAddress_v2('cuLogsCurrent', &__cuLogsCurrent, 12080, ptds_mode, NULL) + cuGetProcAddress_v2('cuLogsCurrent', &__cuLogsCurrent, 12090, ptds_mode, NULL) global __cuLogsDumpToFile - cuGetProcAddress_v2('cuLogsDumpToFile', &__cuLogsDumpToFile, 12080, ptds_mode, NULL) + cuGetProcAddress_v2('cuLogsDumpToFile', &__cuLogsDumpToFile, 12090, ptds_mode, NULL) global __cuLogsDumpToMemory - cuGetProcAddress_v2('cuLogsDumpToMemory', &__cuLogsDumpToMemory, 12080, ptds_mode, NULL) + cuGetProcAddress_v2('cuLogsDumpToMemory', &__cuLogsDumpToMemory, 12090, ptds_mode, NULL) global __cuCheckpointProcessGetRestoreThreadId cuGetProcAddress_v2('cuCheckpointProcessGetRestoreThreadId', &__cuCheckpointProcessGetRestoreThreadId, 12080, ptds_mode, NULL) diff --git a/cuda_bindings_12/cuda/bindings/_internal/driver_windows.pyx b/cuda_bindings_12/cuda/bindings/_internal/driver_windows.pyx index 02669fc2bc79..fe3b6976886b 100644 --- a/cuda_bindings_12/cuda/bindings/_internal/driver_windows.pyx +++ b/cuda_bindings_12/cuda/bindings/_internal/driver_windows.pyx @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated with version 12.9.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=d36a59b7d4c8939f88b07a4600cbd4251a2ed69571b425bb6009a626cfd4dc3e +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=895c345db6512915d2c6c9f27757175413ce053e7356b6eeb890478159cdc918 # <<<< PREAMBLE CONTENT >>>> @@ -1897,19 +1897,19 @@ cdef int _init_driver() except -1 nogil: cuGetProcAddress_v2('cuGreenCtxStreamCreate', &__cuGreenCtxStreamCreate, 12050, ptds_mode, NULL) global __cuLogsRegisterCallback - cuGetProcAddress_v2('cuLogsRegisterCallback', &__cuLogsRegisterCallback, 12080, ptds_mode, NULL) + cuGetProcAddress_v2('cuLogsRegisterCallback', &__cuLogsRegisterCallback, 12090, ptds_mode, NULL) global __cuLogsUnregisterCallback - cuGetProcAddress_v2('cuLogsUnregisterCallback', &__cuLogsUnregisterCallback, 12080, ptds_mode, NULL) + cuGetProcAddress_v2('cuLogsUnregisterCallback', &__cuLogsUnregisterCallback, 12090, ptds_mode, NULL) global __cuLogsCurrent - cuGetProcAddress_v2('cuLogsCurrent', &__cuLogsCurrent, 12080, ptds_mode, NULL) + cuGetProcAddress_v2('cuLogsCurrent', &__cuLogsCurrent, 12090, ptds_mode, NULL) global __cuLogsDumpToFile - cuGetProcAddress_v2('cuLogsDumpToFile', &__cuLogsDumpToFile, 12080, ptds_mode, NULL) + cuGetProcAddress_v2('cuLogsDumpToFile', &__cuLogsDumpToFile, 12090, ptds_mode, NULL) global __cuLogsDumpToMemory - cuGetProcAddress_v2('cuLogsDumpToMemory', &__cuLogsDumpToMemory, 12080, ptds_mode, NULL) + cuGetProcAddress_v2('cuLogsDumpToMemory', &__cuLogsDumpToMemory, 12090, ptds_mode, NULL) global __cuCheckpointProcessGetRestoreThreadId cuGetProcAddress_v2('cuCheckpointProcessGetRestoreThreadId', &__cuCheckpointProcessGetRestoreThreadId, 12080, ptds_mode, NULL) diff --git a/cuda_bindings_12/tests/test_cuda.py b/cuda_bindings_12/tests/test_cuda.py index 09a77646b6fe..a03844a2b84a 100644 --- a/cuda_bindings_12/tests/test_cuda.py +++ b/cuda_bindings_12/tests/test_cuda.py @@ -2,8 +2,10 @@ # SPDX-License-Identifier: Apache-2.0 import ctypes +import os import platform import shutil +import tempfile import textwrap import numpy as np @@ -11,6 +13,7 @@ import cuda.cuda as cuda from cuda.bindings import driver +from cuda.bindings._internal.utils import FunctionNotFoundError from cuda_python_test_helpers import driver_version_less_than from cuda_python_test_helpers.memory import ( POOL_SIZE, @@ -1153,6 +1156,39 @@ def test_cuCheckpointProcessGetState_failure(): assert state is None +@pytest.mark.skipif( + driver_version_less_than(12090), + reason="cuLogs* functions were introduced in CUDA 12.9", +) +def test_culogs_functions(): + try: + err, callback_handle = cuda.cuLogsRegisterCallback(0, None) + assert err == cuda.CUresult.CUDA_SUCCESS + + err, _ = cuda.cuLogsCurrent(0) + assert err == cuda.CUresult.CUDA_SUCCESS + + with tempfile.NamedTemporaryFile(delete=False) as f: + log_path = f.name + try: + err, _ = cuda.cuLogsDumpToFile(None, log_path.encode(), 0) + assert err == cuda.CUresult.CUDA_SUCCESS + finally: + os.remove(log_path) + + # cuLogsDumpToMemory's own docstring states the driver's internal log + # buffer is capped at 25600 bytes, so a buffer of that size is always + # large enough to hold the dump without risking a buffer overrun. + buf = bytearray(25600) + err, _, _ = cuda.cuLogsDumpToMemory(None, buf, len(buf), 0) + assert err == cuda.CUresult.CUDA_SUCCESS + + (err,) = cuda.cuLogsUnregisterCallback(callback_handle) + assert err == cuda.CUresult.CUDA_SUCCESS + except FunctionNotFoundError as e: + pytest.fail(f"cuLogs* function unexpectedly not found on the driver: {e}") + + def test_private_function_pointer_inspector(): from cuda.bindings._internal.driver import _inspect_function_pointer From 8bcde89d4b8e8cc4636ffa2de2c91ec90d4cfc55 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Thu, 5 Nov 2026 18:59:10 -0500 Subject: [PATCH 08/85] Update the pixi.lock files after CTK 13.5 update (#3393) * Update the pixi.lock files after CTK 13.5 update --- cuda_bindings_13/pixi.lock | 1488 ++++++++------- cuda_core/pixi.lock | 3611 ++++++++++++++++++++---------------- 2 files changed, 2847 insertions(+), 2252 deletions(-) diff --git a/cuda_bindings_13/pixi.lock b/cuda_bindings_13/pixi.lock index 127ea67e004f..da78181c381c 100644 --- a/cuda_bindings_13/pixi.lock +++ b/cuda_bindings_13/pixi.lock @@ -2,13 +2,13 @@ version: 7 platforms: - name: linux-64 virtual-packages: - - __unix=0=0 + - __unix=0 - __linux=4.18 - __glibc=2.28 - __archspec=0=x86_64 - name: linux-aarch64 virtual-packages: - - __unix=0=0 + - __unix=0 - __linux=4.18 - __glibc=2.28 - __archspec=0=aarch64 @@ -700,14 +700,14 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/cairo-1.18.6-h3c89d7e_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/conda-gcc-specs-16.2.0-hf8037ed_7.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/contourpy-1.4.0-py314h5383ef5_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-13.4.92-h69a702a_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-13.4.92-hb03c661_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-13.4.92-hb03c661_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-profiler-api-13.4.92-h7938cbb_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-13.5.37-h69a702a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-13.5.37-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-13.5.37-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-profiler-api-13.5.25-h7938cbb_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/cyrus-sasl-2.1.28-hac629b4_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/cython-3.2.9-py314h1807b08_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/dbus-1.16.2-he8c428d_2.conda @@ -746,7 +746,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/libcblas-3.11.0-11_h0358290_openblas.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libclang-cpp23.1-23.1.3-default_h0acdd01_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libclang13-23.1.3-default_h72567ca_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.19.1.55-h63c01a6_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.20.0.107-h63c01a6_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libcups-2.3.3-h7a8fb5f_6.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libdav1d7-1.5.4-hebe6cf0_4.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libdeflate-1.25-hd45a770_1.conda @@ -783,8 +783,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/libmpdec-4.0.0-hb03c661_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libnl-3.11.0-hb03c661_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libntlm-1.8-hb9d3cd8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvfatbin-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-13.4.92-hd2095e1_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvfatbin-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-13.5.37-h393e864_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libogg-1.3.5-hd0c01bc_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenblas-0.3.34-pthreads_hf13c14d_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libopengl-1.7.0-ha4b6fd6_5.conda @@ -900,13 +900,13 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/zstd-1.5.7-hb78ec9c_7.conda - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-hbd8a1cb_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-13.3.4.3.1-ha770c72_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-13.4.92-ha770c72_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-13.4.92-h9e77f9f_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-13.4.92-h9e77f9f_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-13.4.92-h9e77f9f_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-13.4.92-ha770c72_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-13.3.5.0.6-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-13.5.37-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-13.5.37-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cycler-0.12.1-pyhcf101f3_2.conda - conda: https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-dejavu-sans-mono-2.37-hab24e00_0.tar.bz2 @@ -939,8 +939,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/wayland-protocols-1.49-hd8ed1ab_0.conda - - conda_source: cuda-bindings[a363e215] @ . - - conda_source: cuda-pathfinder[9b57eb00] @ ../cuda_pathfinder + - conda_source: cuda-bindings[4dda4b8d] @ . + - conda_source: cuda-pathfinder[8f545c34] @ ../cuda_pathfinder - pypi: ../cuda_python_test_helpers linux-aarch64: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda @@ -953,14 +953,14 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cairo-1.18.6-hca320e2_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/conda-gcc-specs-16.2.0-h969d813_7.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/contourpy-1.4.0-py314ha00f88c_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-13.4.92-he9431aa_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-13.4.92-hbe86820_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-13.4.92-hbe86820_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-13.4.92-h16bee8c_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-13.5.37-he9431aa_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-13.5.37-hbe86820_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-13.5.37-hbe86820_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-13.5.25-h16bee8c_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cyrus-sasl-2.1.28-h6598af7_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cython-3.2.9-py314hc6b4731_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/dbus-1.16.2-h71d469a_2.conda @@ -996,7 +996,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcblas-3.11.0-11_hd72aa62_openblas.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libclang-cpp23.1-23.1.3-default_h01b09c7_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libclang13-23.1.3-default_h330ca11_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.19.1.55-hc7dfe37_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.20.0.107-hc7dfe37_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcups-2.3.3-h4f2b762_6.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libdav1d7-1.5.4-h29ee22c_4.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libdeflate-1.25-hfa851ae_1.conda @@ -1033,8 +1033,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libmpdec-4.0.0-he30d5cf_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnl-3.11.0-he30d5cf_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libntlm-1.4-hf897c2e_1002.tar.bz2 - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvfatbin-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-13.4.92-hae6cbe8_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvfatbin-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-13.5.37-hc1d3098_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libogg-1.3.5-h86ecc28_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenblas-0.3.34-pthreads_h4148b7d_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopengl-1.7.0-hd24410f_5.conda @@ -1145,13 +1145,13 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/arm-variant-1.2.0-sbsa.conda - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-hbd8a1cb_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-13.3.4.3.1-h579c4fd_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-13.4.92-h579c4fd_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-13.4.92-h579c4fd_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-13.3.5.0.6-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-13.5.37-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-13.5.37-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cycler-0.12.1-pyhcf101f3_2.conda - conda: https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-dejavu-sans-mono-2.37-hab24e00_0.tar.bz2 @@ -1183,19 +1183,19 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.5.0-pyh5ded981_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - - conda_source: cuda-bindings[de0b57e4] @ . - - conda_source: cuda-pathfinder[a51836e4] @ ../cuda_pathfinder + - conda_source: cuda-bindings[7248e39c] @ . + - conda_source: cuda-pathfinder[3da77f45] @ ../cuda_pathfinder - pypi: ../cuda_python_test_helpers win-64: - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-h4c7d964_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-13.3.4.3.1-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-13.4.92-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-13.4.92-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-13.3.5.0.6-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-13.5.37-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-13.5.37-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cycler-0.12.1-pyhcf101f3_2.conda - conda: https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-dejavu-sans-mono-2.37-hab24e00_0.tar.bz2 @@ -1239,14 +1239,14 @@ environments: - conda: https://conda.anaconda.org/conda-forge/win-64/cairo-1.18.6-h477c42c_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/conda-gcc-specs-16.2.0-h6d3b04a_7.conda - conda: https://conda.anaconda.org/conda-forge/win-64/contourpy-1.4.0-py314hf309875_1.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-dev-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-static-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-13.4.92-h719f0c7_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-13.4.92-hfd05255_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-13.4.92-hfd05255_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-profiler-api-13.4.92-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-dev-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-static-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-13.5.37-h719f0c7_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-13.5.37-hfd05255_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-13.5.37-hfd05255_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-profiler-api-13.5.25-h57928b3_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/cython-3.2.9-py314h344ed54_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/double-conversion-3.4.0-hac47afa_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/ffmpeg-9.0.2-gpl_h928aae7_903.conda @@ -1293,8 +1293,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/win-64/liblapack-3.11.0-11_hf9ab0e9_mkl.conda - conda: https://conda.anaconda.org/conda-forge/win-64/liblzma-5.8.3-hfd05255_1.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libmpdec-4.0.0-hfd05255_2.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libnvfatbin-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-13.4.92-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libnvfatbin-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-13.5.37-hac47afa_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libogg-1.3.5-h2466b09_1.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libopus-1.6.1-h6a83c73_1.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libpng-1.6.59-hdc8cecf_0.conda @@ -1346,8 +1346,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/win-64/zlib-1.3.2-hfd05255_3.conda - conda: https://conda.anaconda.org/conda-forge/win-64/zlib-ng-2.3.3-h0261ad2_1.conda - conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda - - conda_source: cuda-bindings[9de6602e] @ . - - conda_source: cuda-pathfinder[f6abc7c0] @ ../cuda_pathfinder + - conda_source: cuda-bindings[5f809bbb] @ . + - conda_source: cuda-pathfinder[b5bcf07a] @ ../cuda_pathfinder - pypi: ../cuda_python_test_helpers default: channels: @@ -1366,14 +1366,14 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/cairo-1.18.6-h3c89d7e_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/conda-gcc-specs-16.2.0-hf8037ed_7.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/contourpy-1.4.0-py314h5383ef5_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-13.4.92-h69a702a_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-13.4.92-hb03c661_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-13.4.92-hb03c661_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-profiler-api-13.4.92-h7938cbb_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-13.5.37-h69a702a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-13.5.37-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-13.5.37-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-profiler-api-13.5.25-h7938cbb_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/cyrus-sasl-2.1.28-hac629b4_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/cython-3.2.9-py314h1807b08_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/dbus-1.16.2-he8c428d_2.conda @@ -1412,7 +1412,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/libcblas-3.11.0-11_h0358290_openblas.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libclang-cpp23.1-23.1.3-default_h0acdd01_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libclang13-23.1.3-default_h72567ca_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.19.1.55-h63c01a6_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.20.0.107-h63c01a6_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libcups-2.3.3-h7a8fb5f_6.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libdav1d7-1.5.4-hebe6cf0_4.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libdeflate-1.25-hd45a770_1.conda @@ -1449,8 +1449,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/libmpdec-4.0.0-hb03c661_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libnl-3.11.0-hb03c661_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libntlm-1.8-hb9d3cd8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvfatbin-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-13.4.92-hd2095e1_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvfatbin-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-13.5.37-h393e864_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libogg-1.3.5-hd0c01bc_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenblas-0.3.34-pthreads_hf13c14d_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libopengl-1.7.0-ha4b6fd6_5.conda @@ -1566,13 +1566,13 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/zstd-1.5.7-hb78ec9c_7.conda - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-hbd8a1cb_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-13.3.4.3.1-ha770c72_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-13.4.92-ha770c72_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-13.4.92-h9e77f9f_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-13.4.92-h9e77f9f_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-13.4.92-h9e77f9f_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-13.4.92-ha770c72_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-13.3.5.0.6-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-13.5.37-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-13.5.37-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cycler-0.12.1-pyhcf101f3_2.conda - conda: https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-dejavu-sans-mono-2.37-hab24e00_0.tar.bz2 @@ -1605,8 +1605,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/wayland-protocols-1.49-hd8ed1ab_0.conda - - conda_source: cuda-bindings[a363e215] @ . - - conda_source: cuda-pathfinder[9b57eb00] @ ../cuda_pathfinder + - conda_source: cuda-bindings[4dda4b8d] @ . + - conda_source: cuda-pathfinder[8f545c34] @ ../cuda_pathfinder - pypi: ../cuda_python_test_helpers linux-aarch64: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda @@ -1619,14 +1619,14 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cairo-1.18.6-hca320e2_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/conda-gcc-specs-16.2.0-h969d813_7.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/contourpy-1.4.0-py314ha00f88c_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-13.4.92-he9431aa_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-13.4.92-hbe86820_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-13.4.92-hbe86820_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-13.4.92-h16bee8c_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-13.5.37-he9431aa_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-13.5.37-hbe86820_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-13.5.37-hbe86820_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-13.5.25-h16bee8c_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cyrus-sasl-2.1.28-h6598af7_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cython-3.2.9-py314hc6b4731_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/dbus-1.16.2-h71d469a_2.conda @@ -1662,7 +1662,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcblas-3.11.0-11_hd72aa62_openblas.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libclang-cpp23.1-23.1.3-default_h01b09c7_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libclang13-23.1.3-default_h330ca11_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.19.1.55-hc7dfe37_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.20.0.107-hc7dfe37_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcups-2.3.3-h4f2b762_6.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libdav1d7-1.5.4-h29ee22c_4.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libdeflate-1.25-hfa851ae_1.conda @@ -1699,8 +1699,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libmpdec-4.0.0-he30d5cf_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnl-3.11.0-he30d5cf_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libntlm-1.4-hf897c2e_1002.tar.bz2 - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvfatbin-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-13.4.92-hae6cbe8_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvfatbin-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-13.5.37-hc1d3098_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libogg-1.3.5-h86ecc28_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenblas-0.3.34-pthreads_h4148b7d_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopengl-1.7.0-hd24410f_5.conda @@ -1811,13 +1811,13 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/arm-variant-1.2.0-sbsa.conda - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-hbd8a1cb_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-13.3.4.3.1-h579c4fd_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-13.4.92-h579c4fd_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-13.4.92-h579c4fd_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-13.3.5.0.6-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-13.5.37-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-13.5.37-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cycler-0.12.1-pyhcf101f3_2.conda - conda: https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-dejavu-sans-mono-2.37-hab24e00_0.tar.bz2 @@ -1849,19 +1849,19 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.5.0-pyh5ded981_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - - conda_source: cuda-bindings[de0b57e4] @ . - - conda_source: cuda-pathfinder[a51836e4] @ ../cuda_pathfinder + - conda_source: cuda-bindings[7248e39c] @ . + - conda_source: cuda-pathfinder[3da77f45] @ ../cuda_pathfinder - pypi: ../cuda_python_test_helpers win-64: - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-h4c7d964_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-13.3.4.3.1-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-13.4.92-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-13.4.92-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-13.3.5.0.6-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-13.5.37-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-13.5.37-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cycler-0.12.1-pyhcf101f3_2.conda - conda: https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-dejavu-sans-mono-2.37-hab24e00_0.tar.bz2 @@ -1905,14 +1905,14 @@ environments: - conda: https://conda.anaconda.org/conda-forge/win-64/cairo-1.18.6-h477c42c_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/conda-gcc-specs-16.2.0-h6d3b04a_7.conda - conda: https://conda.anaconda.org/conda-forge/win-64/contourpy-1.4.0-py314hf309875_1.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-dev-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-static-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-13.4.92-h719f0c7_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-13.4.92-hfd05255_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-13.4.92-hfd05255_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-profiler-api-13.4.92-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-dev-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-static-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-13.5.37-h719f0c7_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-13.5.37-hfd05255_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-13.5.37-hfd05255_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-profiler-api-13.5.25-h57928b3_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/cython-3.2.9-py314h344ed54_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/double-conversion-3.4.0-hac47afa_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/ffmpeg-9.0.2-gpl_h928aae7_903.conda @@ -1959,8 +1959,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/win-64/liblapack-3.11.0-11_hf9ab0e9_mkl.conda - conda: https://conda.anaconda.org/conda-forge/win-64/liblzma-5.8.3-hfd05255_1.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libmpdec-4.0.0-hfd05255_2.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libnvfatbin-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-13.4.92-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libnvfatbin-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-13.5.37-hac47afa_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libogg-1.3.5-h2466b09_1.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libopus-1.6.1-h6a83c73_1.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libpng-1.6.59-hdc8cecf_0.conda @@ -2012,8 +2012,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/win-64/zlib-1.3.2-hfd05255_3.conda - conda: https://conda.anaconda.org/conda-forge/win-64/zlib-ng-2.3.3-h0261ad2_1.conda - conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda - - conda_source: cuda-bindings[9de6602e] @ . - - conda_source: cuda-pathfinder[f6abc7c0] @ ../cuda_pathfinder + - conda_source: cuda-bindings[5f809bbb] @ . + - conda_source: cuda-pathfinder[b5bcf07a] @ ../cuda_pathfinder - pypi: ../cuda_python_test_helpers docs: channels: @@ -2028,8 +2028,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-hda65f42_10.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/charset-normalizer-3.5.2-h1114479_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-bindings-13.2.0-py312hf79963d_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-13.4.92-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-13.5.37-hb03c661_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/cython-3.2.9-py312h68e6be4_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/debugpy-1.8.22-py312h80505a6_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/keyutils-1.6.3-h7cc23a3_1.conda @@ -2038,7 +2038,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/libblas-3.11.0-11_h4a7cf45_openblas.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libcap-2.78-h084b8d7_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libcblas-3.11.0-11_h0358290_openblas.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.19.1.55-h63c01a6_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.20.0.107-h63c01a6_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libedit-3.1.20260512-pl5321h373387f_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.8.5-hd2095e1_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.7.0-h81df57d_1.conda @@ -2050,8 +2050,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/liblzma-5.8.3-hb03c661_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libnl-3.11.0-hb03c661_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libnsl-2.0.1-hb9d3cd8_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvfatbin-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-13.4.92-hd2095e1_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvfatbin-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-13.5.37-h393e864_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenblas-0.3.34-pthreads_hf13c14d_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libpython-3.12.16-ha57cdbe_0_cpython.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libsodium-1.0.22-hebe6cf0_3.conda @@ -2102,7 +2102,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/comm-0.2.3-pyhe01879c_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cpython-3.12.15-py312hd8ed1ab_1.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-pathfinder-1.8.3-pyhc364b38_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/dict2css-0.6.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/docutils-0.21.2-pyhd8ed1ab_1.conda - conda: https://conda.anaconda.org/conda-forge/noarch/domdf-python-tools-3.10.0-pyhff2d567_0.conda @@ -2201,8 +2201,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/brotli-python-1.2.0-py312h41c1d46_4.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/bzip2-1.0.8-h4777abc_10.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-bindings-13.2.0-py312hdc0efb6_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-13.4.92-hbe86820_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-13.5.37-hbe86820_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cython-3.2.9-py312hbda70bc_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/debugpy-1.8.22-py312ha0853ce_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/keyutils-1.6.3-h5bc82ec_1.conda @@ -2211,7 +2211,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libblas-3.11.0-11_haddc8a3_openblas.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcap-2.78-hfcc8634_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcblas-3.11.0-11_hd72aa62_openblas.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.19.1.55-hc7dfe37_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.20.0.107-hc7dfe37_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libedit-3.1.20260512-pl5321hc48eb74_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libexpat-2.8.5-h4154aff_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libffi-3.7.0-hdaad0be_1.conda @@ -2223,8 +2223,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/liblzma-5.8.3-he30d5cf_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnl-3.11.0-he30d5cf_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnsl-2.0.1-h86ecc28_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvfatbin-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-13.4.92-hae6cbe8_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvfatbin-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-13.5.37-hc1d3098_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenblas-0.3.34-pthreads_h4148b7d_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libpython-3.12.16-h3cfa5a6_0_cpython.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsodium-1.0.22-h29ee22c_3.conda @@ -2277,7 +2277,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/comm-0.2.3-pyhe01879c_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cpython-3.12.15-py312hd8ed1ab_1.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-pathfinder-1.8.3-pyhc364b38_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/dict2css-0.6.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/docutils-0.21.2-pyhd8ed1ab_1.conda - conda: https://conda.anaconda.org/conda-forge/noarch/domdf-python-tools-3.10.0-pyhff2d567_0.conda @@ -2389,7 +2389,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/comm-0.2.3-pyhe01879c_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cpython-3.12.15-py312hd8ed1ab_1.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-pathfinder-1.8.3-pyhc364b38_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/dict2css-0.6.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/docutils-0.21.2-pyhd8ed1ab_1.conda - conda: https://conda.anaconda.org/conda-forge/noarch/domdf-python-tools-3.10.0-pyhff2d567_0.conda @@ -2486,8 +2486,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h0ad9c76_10.conda - conda: https://conda.anaconda.org/conda-forge/win-64/charset-normalizer-3.5.2-h308a848_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-bindings-13.2.0-py312hc128f0a_1.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-13.4.92-hfd05255_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-13.5.37-hfd05255_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/cython-3.2.9-py312hd245ac3_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/debugpy-1.8.22-py312ha1a9051_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/icu-78.3-h5112557_2.conda @@ -2502,8 +2502,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/win-64/libiconv-1.18-hc1393d2_3.conda - conda: https://conda.anaconda.org/conda-forge/win-64/liblapack-3.11.0-11_hf9ab0e9_mkl.conda - conda: https://conda.anaconda.org/conda-forge/win-64/liblzma-5.8.3-hfd05255_1.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libnvfatbin-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-13.4.92-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libnvfatbin-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-13.5.37-hac47afa_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libpython-3.12.16-hfb4101e_0_cpython.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libsodium-1.0.22-h6a83c73_3.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libsqlite-3.54.1-hf5d6505_101.conda @@ -2597,7 +2597,7 @@ packages: - zstd >=1.5.7,<1.6.0a0 license: BSD-3-Clause AND MIT AND EPL-2.0 purls: - - pkg:pypi/backports-zstd?source=hash-mapping + - pkg:pypi/backports-zstd?source=compressed-mapping run_exports: {} size: 241113 timestamp: 1788491295568 @@ -2803,20 +2803,20 @@ packages: run_exports: {} size: 23242 timestamp: 1749218416505 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-13.4.92-hd2095e1_0.conda - sha256: 53a8bb880726bfdb202c73d87bd90c0cc7ae15fc03af9d7f96652d994758b6e0 - md5: 6bb47c0b1719d824ccbc6bc5095065f4 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-13.5.37-h393e864_0.conda + sha256: dd28fbbc10ff5923cb84a2bd411fcfde0a0f783d5814d389cf8ebf9c3cc11a6a + md5: 29e91900de19ab583fbaa0fec7707766 depends: - - __glibc >=2.17,<3.0.a0 - - cuda-cudart_linux-64 13.4.92 h9e77f9f_0 - - cuda-version >=13.4,<13.5.0a0 + - __glibc >=2.28,<3.0.a0 + - cuda-cudart_linux-64 13.5.37 h528332f_0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 24234 - timestamp: 1789613674738 + size: 27967 + timestamp: 1793838739307 - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-12.9.79-h5888daf_0.conda sha256: 04d8235cb3cb3510c0492c3515a9d1a6053b50ef39be42b60cafb05044b5f4c6 md5: ba38a7c3b4c14625de45784b773f0c71 @@ -2835,24 +2835,24 @@ packages: - cuda-cudart >=12.9.79,<13.0a0 size: 23687 timestamp: 1749218464010 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-13.4.92-hd2095e1_0.conda - sha256: 49938a72c447c61039122b6e278609c76337eb1688780ffab7950ea7befdf37d - md5: 3a7ccbdbbe663de79b2a2325280b05b2 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-13.5.37-h393e864_0.conda + sha256: f6033e69c021f1c5be9bc69eecf54240521338b8901d34589979bbbeadfa6658 + md5: 2ddacc186c5ad89849047eb6990ba5f1 depends: - - __glibc >=2.17,<3.0.a0 - - cuda-cudart 13.4.92 hd2095e1_0 - - cuda-cudart-dev_linux-64 13.4.92 h9e77f9f_0 - - cuda-cudart-static 13.4.92 hd2095e1_0 - - cuda-version >=13.4,<13.5.0a0 + - __glibc >=2.28,<3.0.a0 + - cuda-cudart 13.5.37 h393e864_0 + - cuda-cudart-dev_linux-64 13.5.37 h528332f_0 + - cuda-cudart-static 13.5.37 h393e864_0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: weak: - - cuda-cudart >=13.4.92,<14.0a0 - size: 24719 - timestamp: 1789613691099 + - cuda-cudart >=13.5.37,<14.0a0 + size: 28519 + timestamp: 1793838746726 - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-12.9.79-h5888daf_0.conda sha256: 6261e1d9af80e1ec308e3e5e2ff825d189ef922d24093beaf6efca12e67ce060 md5: d3c4ac48f4967f09dd910d9c15d40c81 @@ -2867,20 +2867,20 @@ packages: run_exports: {} size: 23283 timestamp: 1749218442382 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-13.4.92-hd2095e1_0.conda - sha256: 57b553f7dc0e4631f06e1e5f20ea2bc4be490e06aa82644f1486c23533764b0f - md5: a7ffb9c2eb9aa04458b9ec8e34b6a6ea +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-13.5.37-h393e864_0.conda + sha256: 03191c243d5308fe2346f03ff8f53b973257fa3d62730aba5db95fba1f3c9ecb + md5: 95b7e7630bddcee394292f9958ffe528 depends: - - __glibc >=2.17,<3.0.a0 - - cuda-cudart-static_linux-64 13.4.92 h9e77f9f_0 - - cuda-version >=13.4,<13.5.0a0 + - __glibc >=2.28,<3.0.a0 + - cuda-cudart-static_linux-64 13.5.37 h528332f_0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 24203 - timestamp: 1789613683675 + size: 27924 + timestamp: 1793838744605 - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-12.9.86-hecca717_1.conda sha256: 68f81268c25befa9b70dc49af469ab0eb131960e3700b9a4edb46a32da343a28 md5: 53f0062e2243b26e43ddac0b5267c6a3 @@ -2894,19 +2894,19 @@ packages: run_exports: {} size: 67168282 timestamp: 1760723629347 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-13.4.92-hd2095e1_0.conda - sha256: 1b5e968f355a723c6376eff6f79a95d67bebca62a255a48198d381c5b1fb3637 - md5: 6e7f43cf3b30bb22c746782d939cfc75 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-13.5.37-h393e864_0.conda + sha256: 9b99f46f0c8b22623092c5376de8108f7e79aecd382fd2cad20357f74d138200 + md5: bc62c5acdbca3f34e4b64ba4286a87e6 depends: - - __glibc >=2.17,<3.0.a0 - - cuda-version >=13.4,<13.5.0a0 + - __glibc >=2.28,<3.0.a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 40891762 - timestamp: 1789606732241 + size: 43928678 + timestamp: 1793827440017 - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-dev-12.9.86-hecca717_1.conda sha256: ae620051c16eabf7720a47c5115634d64f7703d32124555ad0afccfd4b8d7cf4 md5: 0d28090f4e63410e20397c7975612837 @@ -2924,23 +2924,23 @@ packages: - cuda-nvrtc >=12.9.86,<13.0a0 size: 36819 timestamp: 1760723845601 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-dev-13.4.92-hd2095e1_0.conda - sha256: 4212e2a97fa6173c95c0a54f6d2be6e006f047138920d2cd31a38bbcab152e65 - md5: 1b2ea7153a8d61acff6f026d97e0d4be +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-dev-13.5.37-h393e864_0.conda + sha256: 3b1d12b147dd3d5d7d1795b8035e936fc789cea80da012a7bf7771494c5e36de + md5: dad3464d390ad851f6facfd41bd03b5e depends: - - __glibc >=2.17,<3.0.a0 - - cuda-nvrtc 13.4.92 hd2095e1_0 - - cuda-version >=13.4,<13.5.0a0 + - __glibc >=2.28,<3.0.a0 + - cuda-nvrtc 13.5.37 h393e864_0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 constrains: - - cuda-nvrtc-static >=13.4.92 + - cuda-nvrtc-static >=13.5.37 license: LicenseRef-NVIDIA-End-User-License-Agreement run_exports: weak: - - cuda-nvrtc >=13.4.92,<14.0a0 - size: 39261 - timestamp: 1789606830146 + - cuda-nvrtc >=13.5.37,<14.0a0 + size: 43082 + timestamp: 1793827585357 - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-12.9.86-h69a702a_6.conda sha256: 5c70d91e6d30eb6000ea036558a20fd0b1bc13cdd2c04fd5dbf94d9caa0a7fbc md5: 704956f67e44ddf046565ead01f9efcd @@ -2953,18 +2953,18 @@ packages: run_exports: {} size: 25475 timestamp: 1771619493286 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-13.4.92-h69a702a_0.conda - sha256: bc06d579e9ce5ba8b1b85c9be9f5938f2962341a145bc7f6ae612028bd14e01a - md5: d157fe326ee607165acfbfd65e5c112e +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-13.5.37-h69a702a_0.conda + sha256: daeae1b128d2d145ba2ea32d765ba233f8b47c5cad2faf2ad872dea321264154 + md5: ef4638491e71d097ae0ccb665e00a202 depends: - - cuda-nvvm-dev_linux-64 13.4.92.* - - cuda-nvvm-impl 13.4.92.* - - cuda-nvvm-tools 13.4.92.* + - cuda-nvvm-dev_linux-64 13.5.37.* + - cuda-nvvm-impl 13.5.37.* + - cuda-nvvm-tools 13.5.37.* license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 26192 - timestamp: 1789628110041 + size: 26332 + timestamp: 1793856429826 - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-12.9.86-h4bc722e_2.conda sha256: f4d34556174e4faa9d374ba2244707082870e1bbc1bb441ad3d9d2cea37da6af md5: 82125dd3c0c4aa009faa00e2829b93d8 @@ -2977,18 +2977,18 @@ packages: run_exports: {} size: 21425520 timestamp: 1753975283188 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-13.4.92-hb03c661_0.conda - sha256: e4b00738683cf09489290718934bb4b05ba5e8db720f8e4e4a6ef19468e74ab2 - md5: 76e300ae92c07e9bc3a503b2d37d9996 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-13.5.37-hb03c661_0.conda + sha256: 3c254b3848271dd005a2bc70a1c143fc771a228fdc133447c1fb41782dc5bade + md5: 716f259daa4842c99e63b05df8831c56 depends: - __glibc >=2.17,<3.0.a0 - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=14 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 23220994 - timestamp: 1789621811068 + size: 24728001 + timestamp: 1793849327637 - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-12.9.86-h4bc722e_2.conda sha256: 45f5e881ed0d973132a5475a0b5c066db6e748ef3a831a14dba8374b252e0067 md5: f9af26e4079adcd72688a8e8dbecb229 @@ -3001,18 +3001,18 @@ packages: run_exports: {} size: 24246736 timestamp: 1753975332907 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-13.4.92-hb03c661_0.conda - sha256: 14f929d48d75040406b94238767b6ba9ecffc52868cd4c48c17e55ebb491f9c1 - md5: ccd172cfc6de8f133de24b9ad435e568 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-13.5.37-hb03c661_0.conda + sha256: 2eb90bb93878a7c4d36e132dc70fe3eb1a6ec2479d6ad3945be2e7cfda79cdf1 + md5: f6013fb58718a8220117b599fb07bb0c depends: - __glibc >=2.17,<3.0.a0 - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=14 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 31438390 - timestamp: 1789621846059 + size: 31281688 + timestamp: 1793849360057 - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-profiler-api-12.9.79-h7938cbb_1.conda sha256: 4f679dfbf2bf2d17abb507f31b0176c0e3572337b5005b9e36179948a53988ac md5: 90d09865fb37d11d510444e34ebe6a09 @@ -3024,17 +3024,17 @@ packages: run_exports: {} size: 23668 timestamp: 1761098836058 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-profiler-api-13.4.92-h7938cbb_0.conda - sha256: ffb3e9d6f01775f986e87eff96901ae6753d07b65612795149d6fe1bf9a6b918 - md5: 72d954dcb059383c207b3f33412ed27e +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-profiler-api-13.5.25-h7938cbb_0.conda + sha256: f46237ceb69ee8d5f5bc3df7e4bd9ca834420bacd5c5ed6a12af7d423fa0d11d + md5: a5619e40b36c7f824149169d6b122bcc depends: - cuda-cudart-dev - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 24906 - timestamp: 1789618194881 + size: 25028 + timestamp: 1793848601304 - conda: https://conda.anaconda.org/conda-forge/linux-64/cyrus-sasl-2.1.28-hac629b4_1.conda sha256: 7684da83306bb69686c0506fb09aa7074e1a55ade50c3a879e4e5df6eebb1009 md5: af491aae930edc096b58466c51c4126c @@ -3790,20 +3790,20 @@ packages: run_exports: {} size: 969845 timestamp: 1761098818759 -- conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.19.1.55-h63c01a6_0.conda - sha256: fc994de6871084dea809ec95103fbecf5ce385e6b0f0e63a828fe416165daf86 - md5: 8afff8d921690828f72a8a6daa59cd2d +- conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.20.0.107-h63c01a6_0.conda + sha256: 3898414ff755f882976449e8677517458fad2c637ead70828d03abfa6f1d5023 + md5: 65a81af50f78a21917f94e56e52821d7 depends: - __glibc >=2.28,<3.0.a0 - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 - rdma-core >=65.0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 1181393 - timestamp: 1789606467213 + size: 1203167 + timestamp: 1793825698223 - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-dev-1.14.1.1-hecca717_1.conda sha256: 3a7c726419017319df149ff67ea3efae37d668ecfc1aa2ac3273b21c4c76d68b md5: 74a93e4c8fd24d535abc546c6fee2155 @@ -3821,23 +3821,23 @@ packages: - libcufile >=1.14.1.1,<2.0a0 size: 36377 timestamp: 1761098841141 -- conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-dev-1.19.1.55-h393e864_0.conda - sha256: 338e7a32b73c3c18094f04540b44ceb67663d428c70bc45bb131dc54307891fe - md5: 458d85692498a049e51947887bd5f879 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-dev-1.20.0.107-h393e864_0.conda + sha256: 2255076e2728afe8c64fd9702571cea1b9cbfdb35118fff0081503e1392ca12e + md5: 5eff647a347283e5fdbc4ec6dc02afdd depends: - __glibc >=2.28,<3.0.a0 - - cuda-version >=13.4,<13.5.0a0 - - libcufile 1.19.1.55 h63c01a6_0 + - cuda-version >=13.5,<13.6.0a0 + - libcufile 1.20.0.107 h63c01a6_0 - libgcc >=15 - libstdcxx >=15 constrains: - - libcufile-static >=1.19.1.55 + - libcufile-static >=1.20.0.107 license: LicenseRef-NVIDIA-End-User-License-Agreement run_exports: weak: - - libcufile >=1.19.1.55,<2.0a0 - size: 44669 - timestamp: 1789606486070 + - libcufile >=1.20.0.107,<2.0a0 + size: 44878 + timestamp: 1793825707229 - conda: https://conda.anaconda.org/conda-forge/linux-64/libcups-2.3.3-h7a8fb5f_6.conda sha256: 205c4f19550f3647832ec44e35e6d93c8c206782bdd620c1d7cf66237580ff9c md5: 49c553b47ff679a6a1e9fc80b9c5a2d4 @@ -4390,19 +4390,19 @@ packages: run_exports: {} size: 818431 timestamp: 1782920268840 -- conda: https://conda.anaconda.org/conda-forge/linux-64/libnvfatbin-13.4.92-hd2095e1_0.conda - sha256: 04f90f6f5f7b6742e55e59b43c720e268a126c9e41e916d62bcfdf3b29085934 - md5: 60da2fd1476ab05656620f5f98841b9c +- conda: https://conda.anaconda.org/conda-forge/linux-64/libnvfatbin-13.5.37-h393e864_0.conda + sha256: 91b6c8db44ebf365cabc2d2b809c6550b17bc418cfd8cc857f7b5ee4f5c8e897 + md5: 663e8d240d8bbed1d0d536e18e16b552 depends: - - __glibc >=2.17,<3.0.a0 - - cuda-version >=13.4,<13.5.0a0 + - __glibc >=2.28,<3.0.a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 471390 - timestamp: 1789606414385 + size: 487593 + timestamp: 1793826271817 - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-12.9.86-hecca717_2.conda sha256: 3b1c851f4fc42d347ce1c1606bdd195343a47f121e0fceb7a1f1e5aa1d497da9 md5: 3461b0f2d5cbb7973d361f9e85241d98 @@ -4416,19 +4416,19 @@ packages: run_exports: {} size: 30515495 timestamp: 1760723776293 -- conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-13.4.92-hd2095e1_0.conda - sha256: 012e5d23799b63f4537baed0e9ec8a3dbdb834584275c00a8821d1cefe7abb02 - md5: c957b18c69a615602f25168465a27643 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-13.5.37-h393e864_0.conda + sha256: 55568e6d0c1874670460dea524aeb7a068abe7019905c13f6b5c30d78aa20e08 + md5: 715b30da39a2cea93a39ae391e900a81 depends: - - __glibc >=2.17,<3.0.a0 - - cuda-version >=13,<13.5.0a0 + - __glibc >=2.28,<3.0.a0 + - cuda-version >=13,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 32458616 - timestamp: 1789607057313 + size: 35404609 + timestamp: 1793827447618 - conda: https://conda.anaconda.org/conda-forge/linux-64/libogg-1.3.5-hd0c01bc_1.conda sha256: ffb066ddf2e76953f92e06677021c73c85536098f1c21fcd15360dbc859e22e4 md5: 68e52064ed3897463c0e958ab5c8f91b @@ -6038,7 +6038,7 @@ packages: license: MIT license_family: MIT purls: - - pkg:pypi/ruamel-yaml-clib?source=hash-mapping + - pkg:pypi/ruamel-yaml-clib?source=compressed-mapping run_exports: {} size: 158648 timestamp: 1788881211578 @@ -6999,20 +6999,21 @@ packages: run_exports: {} size: 23466 timestamp: 1749218349235 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-13.4.92-hae6cbe8_0.conda - sha256: 06f6668cd5c070629ca715b04437b19141faa766f4d55a9858dc4c2cc0d6f963 - md5: 66098da0435510950e3b3ba27f87b19d +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-13.5.37-hc1d3098_0.conda + sha256: e463423e2147d5d371d12a4d9508bf1076423dbfd359cf3ab5c15bcb960e6de6 + md5: ca04ac62dd83eae809009d54c19c2ec9 depends: + - __glibc >=2.28,<3.0.a0 - arm-variant * sbsa - - cuda-cudart_linux-aarch64 13.4.92 hae6cbe8_0 - - cuda-version >=13.4,<13.5.0a0 + - cuda-cudart_linux-aarch64 13.5.37 hf3a43d7_0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 24420 - timestamp: 1789613707699 + size: 28169 + timestamp: 1793838811578 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-12.9.79-h3ae8b8a_0.conda sha256: d70f85411992e03494f2fe94a9852d79f366a92f40ba791611eda5551044afe9 md5: d58cc487273764a11637456c06399ff0 @@ -7031,24 +7032,25 @@ packages: - cuda-cudart >=12.9.79,<13.0a0 size: 23911 timestamp: 1749218369632 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-13.4.92-hae6cbe8_0.conda - sha256: f7e9012a91f13310f9f2d82e9872a3c95feb268929197850849ee1dd281576f2 - md5: 7ed822aff3e57b107443927157bf83a2 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-13.5.37-hc1d3098_0.conda + sha256: e510eb31173c012b055701eb59c6b823a0e6e10b3344f4197de6080f32f8aaeb + md5: 222e112fa2909819e05588d748deb4f6 depends: + - __glibc >=2.28,<3.0.a0 - arm-variant * sbsa - - cuda-cudart 13.4.92 hae6cbe8_0 - - cuda-cudart-dev_linux-aarch64 13.4.92 hae6cbe8_0 - - cuda-cudart-static 13.4.92 hae6cbe8_0 - - cuda-version >=13.4,<13.5.0a0 + - cuda-cudart 13.5.37 hc1d3098_0 + - cuda-cudart-dev_linux-aarch64 13.5.37 hf3a43d7_0 + - cuda-cudart-static 13.5.37 hc1d3098_0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: weak: - - cuda-cudart >=13.4.92,<14.0a0 - size: 24906 - timestamp: 1789613723829 + - cuda-cudart >=13.5.37,<14.0a0 + size: 28647 + timestamp: 1793838822881 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-12.9.79-h3ae8b8a_0.conda sha256: dac33edcebbf557563a41521f67961039186efbc276903d937b32243ef3be937 md5: 365adcddf99b81eb323698fda31d507c @@ -7063,20 +7065,21 @@ packages: run_exports: {} size: 23507 timestamp: 1749218358755 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-13.4.92-hae6cbe8_0.conda - sha256: 5ed96adcf4542a70e4a7b0c899c3c1804a3fd3ce3996deae031d439152b41dc0 - md5: 9eae9fe5c7438b7f9d0f2243e534460b +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-13.5.37-hc1d3098_0.conda + sha256: 3358a2cad488eafc6fa53e67f8e3e07616046e8396452a43ec534851cf3e8d63 + md5: 13c3913c4963a1dcb24ea13459a6c31a depends: + - __glibc >=2.28,<3.0.a0 - arm-variant * sbsa - - cuda-cudart-static_linux-aarch64 13.4.92 hae6cbe8_0 - - cuda-version >=13.4,<13.5.0a0 + - cuda-cudart-static_linux-aarch64 13.5.37 hf3a43d7_0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 24336 - timestamp: 1789613715481 + size: 28150 + timestamp: 1793838818169 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-12.9.86-h8f3c8d4_1.conda sha256: e7f8d835d7bf993dcad9fba6db5af89c35b2b4f0282799b729bf6ad2c3bd896d md5: 48187c09673a42f9930764e8170b8787 @@ -7090,19 +7093,20 @@ packages: run_exports: {} size: 33382016 timestamp: 1760723722396 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-13.4.92-hae6cbe8_0.conda - sha256: cc793d547aecbed3042b9ec21492b41ba880588d175fee54b53698a359e42d55 - md5: e38ef9000b5d1d306d63cac489db3f9b +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-13.5.37-hc1d3098_0.conda + sha256: 4993514da21c14a2e325e75cf4c51ef2b7eed7c63e8512913ee6784715dd30cd + md5: 492e71116a8dd8cda8e70a58b5510f00 depends: + - __glibc >=2.28,<3.0.a0 - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 39026820 - timestamp: 1789606765991 + size: 42444638 + timestamp: 1793827474130 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-dev-12.9.86-h8f3c8d4_1.conda sha256: b1d1a74cbbdcf46c4ee737279df3220eb7a29393999bc96b3c1398f7de78c912 md5: 2346ee558cbfb7b857c8353ffc2553fa @@ -7121,24 +7125,25 @@ packages: - cuda-nvrtc >=12.9.86,<13.0a0 size: 36250 timestamp: 1760723865518 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-dev-13.4.92-hae6cbe8_0.conda - sha256: 0374b04a2c88a5dc7c66787ee09c67ad83160076ef5faeda5425ac209d9ee8a0 - md5: a21d44425c73060f71a739faf1f0e373 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-dev-13.5.37-hc1d3098_0.conda + sha256: d9740e2b0cfd8adaa66ec58912893635d152a46d12db85a1c3728b82bfec2c99 + md5: d893fb13ea4a19b7b9a18836baebb662 depends: + - __glibc >=2.28,<3.0.a0 - arm-variant * sbsa - - cuda-nvrtc 13.4.92 hae6cbe8_0 - - cuda-version >=13.4,<13.5.0a0 + - cuda-nvrtc 13.5.37 hc1d3098_0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 constrains: - arm-variant * sbsa - - cuda-nvrtc-static >=13.4.92 + - cuda-nvrtc-static >=13.5.37 license: LicenseRef-NVIDIA-End-User-License-Agreement run_exports: weak: - - cuda-nvrtc >=13.4.92,<14.0a0 - size: 39133 - timestamp: 1789606900425 + - cuda-nvrtc >=13.5.37,<14.0a0 + size: 43093 + timestamp: 1793827607415 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-12.9.86-he9431aa_106.conda sha256: 97bf1688e3847090d1c4193c39ca575a67e2183d0c20ddf8bcedc0f9d9528bbc md5: 8ace2a8121a5f733a902822290aae11c @@ -7151,18 +7156,18 @@ packages: run_exports: {} size: 25585 timestamp: 1771619514901 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-13.4.92-he9431aa_0.conda - sha256: fee7c55fbbfd6dbee7525f77331fd79b781b173ffd667633032933f9ab086deb - md5: d97d1d82d4870667de075b4296533c3d +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-13.5.37-he9431aa_0.conda + sha256: 630ed02369066e0eb189e2ecb997bf3e12522b20143960e19c4cbb78d929382f + md5: 9dfd45c73d661c543308bacd1634f0cd depends: - - cuda-nvvm-dev_linux-aarch64 13.4.92.* - - cuda-nvvm-impl 13.4.92.* - - cuda-nvvm-tools 13.4.92.* + - cuda-nvvm-dev_linux-aarch64 13.5.37.* + - cuda-nvvm-impl 13.5.37.* + - cuda-nvvm-tools 13.5.37.* license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 26203 - timestamp: 1789628130654 + size: 26275 + timestamp: 1793856449267 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-12.9.86-h7b14b0b_2.conda sha256: 100accfc6f608004ddef4b9004ee5179eddbac19e7d5c4c7bd5e6e8b71bd7c5d md5: 8e9fceb7b677be7107cc9c20f8d71d86 @@ -7175,18 +7180,18 @@ packages: run_exports: {} size: 21601172 timestamp: 1753975236344 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-13.4.92-hbe86820_0.conda - sha256: 098874e5c49fc5b15a6adf24e9f74c3c3a931acd35a0e5c8e586b81e07e38562 - md5: 22593909df4c2df690fe87b717caed69 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-13.5.37-hbe86820_0.conda + sha256: 9a07c9f0bb6ffe247568ab1257753472f2ea56c79b8a1e873ae482f906eb925b + md5: 19175674c2ffc7a605c64d54334dcb34 depends: - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=14 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 22024730 - timestamp: 1789621833954 + size: 23917690 + timestamp: 1793849359950 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-12.9.86-h7b14b0b_2.conda sha256: f5cf91e491e150e37cd224fa648c07f6b1cd2cbfee5affba10625df7ba0b0425 md5: 9a35dcda5573a713183f5159ec282364 @@ -7199,18 +7204,18 @@ packages: run_exports: {} size: 24411824 timestamp: 1753975273689 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-13.4.92-hbe86820_0.conda - sha256: c0e336db6fc4d4472aee0d9468596b1401e6be2f67bf225ff13150f18098069d - md5: 7c32a2cd7a126359a6b4e73073d424ab +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-13.5.37-hbe86820_0.conda + sha256: 08f4649fb4e147ac750d1a855fac53622a2944f23ccf3ded212021a9ec088cee + md5: 7f1c00619360960850a3abd2695eae11 depends: - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=14 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 29595859 - timestamp: 1789621862164 + size: 29506302 + timestamp: 1793849395707 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-12.9.79-h16bee8c_1.conda sha256: 6fa8a4d4548b114acd3c9849b65b5d9fcf1ca8f39cd2b792ce5167a51955100c md5: 875bfddc9855f12e9f518ef8e44c2d85 @@ -7223,20 +7228,20 @@ packages: run_exports: {} size: 23784 timestamp: 1761098779882 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-13.4.92-h16bee8c_0.conda - sha256: 54d56df54a2b86a58fe012c6246a0dc3446e6c31badeb08786edfb3dca65a536 - md5: e1bc0b155d82fbe81806e84f91ea3409 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-13.5.25-h16bee8c_0.conda + sha256: b31855288813515362c06b79c98af4e63d72fcec8206da711e5d52f7a0384246 + md5: 898922904a11a76741c38b06f553883c depends: - arm-variant * sbsa - cuda-cudart-dev - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 constrains: - arm-variant * sbsa license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 24888 - timestamp: 1789618201879 + size: 25092 + timestamp: 1793848625476 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cyrus-sasl-2.1.28-h6598af7_1.conda sha256: 0606296a3b0cc757229dd97db8c6dc0f77e54f975f89ae63c36fb01e2a2abe61 md5: f4fbf4001970e3e58984281a12c99969 @@ -7913,13 +7918,13 @@ packages: run_exports: {} size: 909365 timestamp: 1761098964619 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.19.1.55-hc7dfe37_0.conda - sha256: e7a507becf5e8fd3752cd7a6780b08259d38ca2b4f008e7056fee342f83f098c - md5: 1dc4a11faea48e96b3196be81f053e20 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.20.0.107-hc7dfe37_0.conda + sha256: 3c03b96625dedc0111443eeffcb4bee33356130329ef9fa662dddcdc1e5645d1 + md5: 9e0d1e5a29ed1544cd36a275ad99bd89 depends: - __glibc >=2.28,<3.0.a0 - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 - rdma-core >=65.0 @@ -7928,8 +7933,8 @@ packages: license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 1044986 - timestamp: 1789606504154 + size: 1059844 + timestamp: 1793825723426 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-dev-1.14.1.1-he38c790_1.conda sha256: 1d20ed52cd0a08fae11bdfba5762c50864651860f0d9f02ecf0eaed37a573a83 md5: 7c4d86e9dd8643ed77ba3c918637bb3e @@ -7948,25 +7953,25 @@ packages: - libcufile >=1.14.1.1,<2.0a0 size: 36798 timestamp: 1761098993768 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-dev-1.19.1.55-hc1d3098_0.conda - sha256: 02d75b13e84b97bc36ae336692b724af992235d6ee64eb6c8084001cf7d5ff56 - md5: 49ce45f74acb3deae6c406b2d6ad6307 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-dev-1.20.0.107-hc1d3098_0.conda + sha256: 6ac41942a2c89f31f9bce97b944f9748ba1d4516f393b849cc16904a3ff54966 + md5: 1e46aa87f12eeee4e2b4a3d1b40bc4df depends: - __glibc >=2.28,<3.0.a0 - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 - - libcufile 1.19.1.55 hc7dfe37_0 + - cuda-version >=13.5,<13.6.0a0 + - libcufile 1.20.0.107 hc7dfe37_0 - libgcc >=15 - libstdcxx >=15 constrains: - arm-variant * sbsa - - libcufile-static >=1.19.1.55 + - libcufile-static >=1.20.0.107 license: LicenseRef-NVIDIA-End-User-License-Agreement run_exports: weak: - - libcufile >=1.19.1.55,<2.0a0 - size: 44942 - timestamp: 1789606522891 + - libcufile >=1.20.0.107,<2.0a0 + size: 45199 + timestamp: 1793825735414 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcups-2.3.3-h4f2b762_6.conda sha256: 41b04f995c9f63af8c4065a35931e46cbc2fdd6b9bf7e4c19f90d53cbb2bc8e5 md5: 67828c963b17db7dc989fe5d509ef04a @@ -8482,12 +8487,13 @@ packages: run_exports: {} size: 771344 timestamp: 1782920321153 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvfatbin-13.4.92-hae6cbe8_0.conda - sha256: c6c3f53749a6d97d7ac11af3db202baebd7a66c05e5e451626d9aaf4bf083335 - md5: e74dbc480a19dfd0b459b5e6ccdffb2e +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvfatbin-13.5.37-hc1d3098_0.conda + sha256: af4476bdf0c37ce5780b9a676a8f4045774088989298cd6db1891f8d84928c8a + md5: 11845e653de3e016f3fa88936484b726 depends: + - __glibc >=2.28,<3.0.a0 - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 constrains: @@ -8495,8 +8501,8 @@ packages: license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 459532 - timestamp: 1789606465889 + size: 490333 + timestamp: 1793826306991 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-12.9.86-h8f3c8d4_2.conda sha256: d5ff36f46250069a23b18d557052c6656f40a002333885e8c5332071e873b48e md5: e318a6573fea150226d5f417d1c0807a @@ -8510,12 +8516,13 @@ packages: run_exports: {} size: 30323952 timestamp: 1760723774770 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-13.4.92-hae6cbe8_0.conda - sha256: 94dcf7a6fed2a2a35d102818bf4c542f19705543f0d57d98171938b52f0cf289 - md5: c4e8598eeec3a6c7a20d98e76ca1dc12 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-13.5.37-hc1d3098_0.conda + sha256: 48496e9772754713f6596e0cb03dbe90a0aca17a7a36bd371b80ba61d23685c6 + md5: cecb3997ae27e053384bef873afcad88 depends: + - __glibc >=2.28,<3.0.a0 - arm-variant * sbsa - - cuda-version >=13,<13.5.0a0 + - cuda-version >=13,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 constrains: @@ -8523,8 +8530,8 @@ packages: license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 30910418 - timestamp: 1789607078708 + size: 34126178 + timestamp: 1793827434689 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libogg-1.3.5-h86ecc28_1.conda sha256: 2c1b7c59badc2fd6c19b6926eabfce906c996068d38c2972bd1cfbe943c07420 md5: 319df383ae401c40970ee4e9bc836c7a @@ -9935,7 +9942,7 @@ packages: license: MIT license_family: MIT purls: - - pkg:pypi/rpds-py?source=hash-mapping + - pkg:pypi/rpds-py?source=compressed-mapping run_exports: {} size: 296806 timestamp: 1791202315258 @@ -10899,16 +10906,16 @@ packages: run_exports: {} size: 1150650 timestamp: 1746189825236 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-13.3.4.3.1-ha770c72_0.conda - sha256: 7e1ce635233921776d7bf4770507b3321de7c13e7b18212246088bfa6d042a33 - md5: cbb113d16fb31c3b86a81aa27ce98ba1 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-13.3.5.0.6-ha770c72_0.conda + sha256: a162d42741acb027157fa22063afa2e8e24e6b9f14fc7c1b6241b3a00848a63c + md5: fe4482d2d355c616912e3f800e2070c1 depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 1662856 - timestamp: 1789608402063 + size: 1760270 + timestamp: 1793830695675 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-12.9.27-h579c4fd_0.conda sha256: b4efaee8fa95b9ec97a462dc343914a138ece704895e33caa52ac55968f7adfa md5: 71e4d87a72bf003bd05f05a502288b2a @@ -10920,17 +10927,17 @@ packages: run_exports: {} size: 1149299 timestamp: 1746189919921 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-13.3.4.3.1-h579c4fd_0.conda - sha256: b8e94a8ab98c079c1999c3518ac6b3f4345dfb03c9dd10f0e7e09dee13b56503 - md5: 58cd3032f52d14c4b40e5be9b7716cbe +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-13.3.5.0.6-h579c4fd_0.conda + sha256: 437947642f680eab6677e8126b4b50bff1699f3186d40eefce1ec470c3d94145 + md5: b37fdb300dfdf9f089da9b5594a2e26b depends: - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 1660118 - timestamp: 1789608426183 + size: 1765124 + timestamp: 1793830718683 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-12.9.27-h57928b3_0.conda sha256: 681eb1d9afd596e04329a82b04734c0e37c6ecb94b3380f3a378d61983e2a8cc md5: 8f897dca7111f3bb4ded97ba6947b186 @@ -10941,16 +10948,16 @@ packages: run_exports: {} size: 1139649 timestamp: 1746189858434 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-13.3.4.3.1-h57928b3_0.conda - sha256: 2c1106ec2a6d44e4da8aa9ea0cec7cd2dd5e546d8dee3be87ec6cd1a759df560 - md5: 8e12329998fa601a84fae659b8a9daa4 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-13.3.5.0.6-h57928b3_0.conda + sha256: f11573fcea1cc6e843c111cebf0a843add26d3e0e93998c245c334bbce373d15 + md5: 0091c6d17c1912d501765bd489247fa8 depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 1645698 - timestamp: 1789608426235 + size: 1745417 + timestamp: 1793830698082 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-12.9.86-ha770c72_2.conda sha256: e6257534c4b4b6b8a1192f84191c34906ab9968c92680fa09f639e7846a87304 md5: 79d280de61e18010df5997daea4743df @@ -10961,16 +10968,16 @@ packages: run_exports: {} size: 94239 timestamp: 1753975242354 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-13.4.92-ha770c72_0.conda - sha256: c466ea01fc6a29a92178de0c3863bd87dd983fe3d9924031968f03993d31061a - md5: 50edc5671fa8afa45d12858d03b9317c +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-13.5.37-ha770c72_0.conda + sha256: bfb36c4eef0080c54c5a2ab8167bfdd7f81f99d2b31c1abc65268d39cad96eec + md5: eebaa40289b272cfe3d3fb464d9cde26 depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 120631 - timestamp: 1789621795566 + size: 127886 + timestamp: 1793849321971 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-12.9.86-h579c4fd_2.conda sha256: 1db1f3ff4b0f445ce4064eb323733f7612ce28bc879dd6849e162b1504b7474a md5: 86be43a4154301b74f823bc6fe476629 @@ -10982,17 +10989,17 @@ packages: run_exports: {} size: 94794 timestamp: 1753975199249 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-13.4.92-h579c4fd_0.conda - sha256: 3c5f5a9127e11aabbc2687d7baa4632282e679c2082a1e33fa2ded94df6ad3e7 - md5: b414b5c79800b8a851c1c47219ff3646 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-13.5.37-h579c4fd_0.conda + sha256: 413e1082c9d49b55bb50d256ab5d26c1d679f9ddec6ce22bf9d6b346e20c57c6 + md5: 250a3b106ab799f9d40351ec21383181 depends: - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 120832 - timestamp: 1789621817409 + size: 128095 + timestamp: 1793849350210 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-12.9.86-h57928b3_2.conda sha256: 2fccde18cafec3cdb6697f37c576567ac623dc69531e2a81bbc83d8a86a82d1f md5: 569c55bd368307e48191a2ed54c64428 @@ -11003,18 +11010,18 @@ packages: run_exports: {} size: 95452 timestamp: 1753975640812 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-13.4.92-h57928b3_0.conda - sha256: b589344ee13b60ddcd3e22a95e182f47bd3ba8aca7de3cd5507d24dda94294e8 - md5: ae321b42ec9f8402a91de767a9994075 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-13.5.37-h57928b3_0.conda + sha256: c6775c54acf219d1cd1c546cd497190f1ab493568a6f2470f8959e535713e60c + md5: 899177b5d9bf53d525c31cc468c02537 depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 constrains: - cuda-crt-dev_win-arm64 <0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 121099 - timestamp: 1789621789772 + size: 128488 + timestamp: 1793849338690 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-12.9.79-h3f2d84a_0.conda sha256: ffe86ed0144315b276f18020d836c8ef05bf971054cf7c3eb167af92494080d5 md5: 86e40eb67d83f1a58bdafdd44e5a77c6 @@ -11030,21 +11037,21 @@ packages: - cuda-cudart >=12.9.79,<13.0a0 size: 389140 timestamp: 1749218427266 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-13.4.92-h9e77f9f_0.conda - sha256: 45d34a14f307564c50d1c79576044704b74f602b83dfe1e53a90d18a082e3dc9 - md5: 17a1f0386fa11248e53dfa22d7d207fe +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-13.5.37-h528332f_0.conda + sha256: ef926bc9b35be692843c7eae9b6c8cfed9dbcd47ac3cb25b6eda18a40cdcf84c + md5: cb645f45e80f8464a37f525667a2700d depends: - cuda-cccl_linux-64 - cuda-cudart-static_linux-64 - cuda-cudart_linux-64 - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: weak: - - cuda-cudart >=13.4.92,<14.0a0 - size: 416061 - timestamp: 1789613678504 + - cuda-cudart >=13.5.37,<14.0a0 + size: 424774 + timestamp: 1793838742641 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-12.9.79-h3ae8b8a_0.conda sha256: ad64a1ecfc933172dbc6407d71b1abb78dc7ffcd5cc871baee238350307a7c0c md5: 60e07c05a51d5549bec1e7ee38849feb @@ -11061,22 +11068,22 @@ packages: - cuda-cudart >=12.9.79,<13.0a0 size: 388797 timestamp: 1749218354725 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-13.4.92-hae6cbe8_0.conda - sha256: 1764436ff98d0c03834a1e487b612203e027673016eb6d2771d6c79554c69686 - md5: f1f2c60c443fdeb43c08bca1755889e6 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-13.5.37-hf3a43d7_0.conda + sha256: 395efd05dd36ef0b0fb177fd71a73374d55e04271ea118ffc81ea9b1e0a5cf37 + md5: a491e68fef34137dc1a989a787b9d6fa depends: - arm-variant * sbsa - cuda-cccl_linux-aarch64 - cuda-cudart-static_linux-aarch64 - cuda-cudart_linux-aarch64 - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: weak: - - cuda-cudart >=13.4.92,<14.0a0 - size: 415739 - timestamp: 1789613711959 + - cuda-cudart >=13.5.37,<14.0a0 + size: 424984 + timestamp: 1793838814099 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-12.9.79-he0c23c2_0.conda sha256: e022d36a333420130faf6473c49f8dab54bf976cf320577ffb06db0a0797b734 md5: 3c3e2f6b5455783fd332a072d632ea78 @@ -11092,19 +11099,19 @@ packages: - cuda-cudart >=12.9.79,<13.0a0 size: 1190184 timestamp: 1749218971019 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-13.4.92-hac47afa_0.conda - sha256: 4abfcaa5ebdbbea0f0ad192b8b921190ed1ed1224f5a24120101c1cf85bd0e53 - md5: 26491aad3f51d28aae17df60869e9e48 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-13.5.37-hac47afa_0.conda + sha256: 606e842e9792e22ab2015cfa499a6555c5185b0f60641b3afcf9cd016f34f2a6 + md5: f74ec7dce121f61219a0ba093262b145 depends: - cuda-cccl_win-64 - cuda-cudart-static_win-64 - cuda-cudart_win-64 - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 1668588 - timestamp: 1789613696484 + size: 1644692 + timestamp: 1793838779656 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-12.9.79-h3f2d84a_0.conda sha256: d435f8a19b59b52ce460ee3a6bfd877288a0d1d645119a6ba60f1c3627dc5032 md5: b87bf315d81218dd63eb46cc1eaef775 @@ -11115,16 +11122,16 @@ packages: run_exports: {} size: 1148889 timestamp: 1749218381225 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-13.4.92-h9e77f9f_0.conda - sha256: 94c734267a05fa6b0112799f168cc301b24202d2aa86c3316ba62a35ccad0d67 - md5: 36eb8b22fd38769be7a5562d40c7c53f +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-13.5.37-h528332f_0.conda + sha256: bce31f6f68dcb7d40a99cdebf4da574000f01c4d61e5e2b0948061efcbdf475e + md5: 2295e382e56fcdd44710eefa0388d40a depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 1249118 - timestamp: 1789613660480 + size: 1231982 + timestamp: 1793838734706 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-12.9.79-h3ae8b8a_0.conda sha256: d4be038bad9abf0eac1e88dc57c8db6a469db8eb5d7c281085dfbb018ef84212 md5: 52498fedeb43bbd4c45f84a0fb722d21 @@ -11136,17 +11143,17 @@ packages: run_exports: {} size: 1152498 timestamp: 1749218333554 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-13.4.92-hae6cbe8_0.conda - sha256: 0b4f17267acbbff21198b7e82beba325aa4c90a44c7e0072ac59f0ec1b023206 - md5: cdfaf6ce08218553ea3a366f6c378351 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-13.5.37-hf3a43d7_0.conda + sha256: af7f2e6f10b5b22a461cd45673d4ad06a688a078e4b59f5684643a09e048ad24 + md5: 3585230ab125bc36a051a41c8442abe3 depends: - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 1245773 - timestamp: 1789613695146 + size: 1244121 + timestamp: 1793838802355 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-12.9.79-he0c23c2_0.conda sha256: 6a3410cd7ce07955cb705801055ef129ebee1cd6390c6fe9e5f607b67c3dba36 md5: 0dd152a1493d90356037604a865f050f @@ -11157,16 +11164,16 @@ packages: run_exports: {} size: 354611 timestamp: 1749218544740 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-13.4.92-hac47afa_0.conda - sha256: d64581ee7532b872a77b285c5dd374a75b76ac765546ab68bc0aa4cc03834f81 - md5: ee18191e4095b5fb3cb1c8935a83113f +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-13.5.37-hac47afa_0.conda + sha256: 49e922a7c66c4c95482cb6099ec1a29e92b8a24e9231269943bf9651106efb31 + md5: a5aefd822cf84c175045b809821dcb00 depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 82544 - timestamp: 1789613678949 + size: 86258 + timestamp: 1793838770865 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-12.9.79-h3f2d84a_0.conda sha256: 6cde0ace2b995b49d0db2eefb7bc30bf00ffc06bb98ef7113632dec8f8907475 md5: 64508631775fbbf9eca83c84b1df0cae @@ -11177,16 +11184,16 @@ packages: run_exports: {} size: 197249 timestamp: 1749218394213 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-13.4.92-h9e77f9f_0.conda - sha256: 280e2b0d195a07a48773f356bad5da0e78768c2e6ddba3594fd3ecf7f4756a88 - md5: 026c99a40ceaa3346b453fcfa243b20e +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-13.5.37-h528332f_0.conda + sha256: 42669cb43e0174bdf11644479cf469303c96593f49b58de6086511d409a6ca96 + md5: 0ff76002d4457f91a3d465fad8953acf depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 209905 - timestamp: 1789613664868 + size: 217600 + timestamp: 1793838736392 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-12.9.79-h3ae8b8a_0.conda sha256: 4900ff2f000a4f8a70a7bc8576469640aa6590618fa9e73c84e066e025dcb760 md5: cc2459ad427431e089d78d760cf24437 @@ -11198,17 +11205,17 @@ packages: run_exports: {} size: 212993 timestamp: 1749218341193 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-13.4.92-hae6cbe8_0.conda - sha256: c67f60f4504d3185248749a57cfac4dd94b531edefff25b70aed788f47f068c8 - md5: 0f97c2a60df80e0e9ef610751bd65714 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-13.5.37-hf3a43d7_0.conda + sha256: a1983a162f28146a5ebb6971aa6d4b74c739c35dee0f6404cbbcf57f1ece68c2 + md5: 1e2a3c2bf4a48e8dfe51151ac1105373 depends: - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 223916 - timestamp: 1789613700405 + size: 231517 + timestamp: 1793838805981 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-12.9.79-he0c23c2_0.conda sha256: 6a89a53cdbcfafa0bb55abee1b58492c6a9a28e688abe04f48f0d01649c5f3e4 md5: 71c9c2ab52226f990f268164381d8494 @@ -11219,16 +11226,16 @@ packages: run_exports: {} size: 23260 timestamp: 1749218569458 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-13.4.92-hac47afa_0.conda - sha256: 3904b9c77eb88f97b52274414eb363bd6546037723417a8fe90c3ded0e063452 - md5: fabfefb0dd7f73ca1c0b3ed7e6f296d0 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-13.5.37-hac47afa_0.conda + sha256: 89f42d3f97a2ab4e97f1b20fb95b6de2e38a725ce7740257a939892a83851295 + md5: 6ca0ae366edcfbd2e862f7fa77064507 depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 24076 - timestamp: 1789613682979 + size: 28032 + timestamp: 1793838772232 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-12.9.86-ha770c72_2.conda sha256: 522722dcaffd133e0c7500c69dc70e21ac34d6762dcbaabfe847439f944028f0 md5: 7b386291414c7eea113d25ac28a33772 @@ -11239,16 +11246,16 @@ packages: run_exports: {} size: 27096 timestamp: 1753975261562 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-13.4.92-ha770c72_0.conda - sha256: 17a075306c73d52a823992c060693cd51e643c06a61b432bcab86c2febe05eab - md5: 457e3fb2e3d05fb92492f59e49f5fad4 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-13.5.37-ha770c72_0.conda + sha256: 8c7b9dc07f6c6d1d2b7147babb576ca7f762f3c1dc03ee6cc7787393da43490e + md5: b2cb4bee35b8df262fbd9190e398a6dc depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 28932 - timestamp: 1789621802159 + size: 33175 + timestamp: 1793849323729 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-12.9.86-h579c4fd_2.conda sha256: 5f27299818ecef44d6cf46a99465671744f6074c14618b5f8491a03a62942a7f md5: c59b036058d7bf78ac0a99618c321e85 @@ -11260,17 +11267,17 @@ packages: run_exports: {} size: 27218 timestamp: 1753975206503 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-13.4.92-h579c4fd_0.conda - sha256: 735a4f7813deefece585f3f4088cfabdc4a52f5f8463fe0d0bcc5f48506c807a - md5: 5663c68295db5397d0512f5cfc4d0589 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-13.5.37-h579c4fd_0.conda + sha256: b62020bbc8052aa5bed11887ba15dd462af1d9bda0e61e843752d0b5eececcda + md5: d251a307d69a3427a2a374256d52dc5d depends: - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 29245 - timestamp: 1789621820857 + size: 33102 + timestamp: 1793849351989 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-12.9.86-h57928b3_2.conda sha256: 455dbf0ec81efdbd40c0387d82c77689721f6d34b6e7694ca0d51bad9392eddc md5: 23f7e70c03eabd2139b5e659c8e188b4 @@ -11281,18 +11288,18 @@ packages: run_exports: {} size: 27284 timestamp: 1753975714790 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-13.4.92-h57928b3_0.conda - sha256: bab894ab16990438a8aa70c80d20129d6c14ad36212493c2304f863be9984c4d - md5: e97ec4aeab07e839464377bc95f4f23c +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-13.5.37-h57928b3_0.conda + sha256: 6412334c558867a199c04b1821ca5e540194ac8b97c6a6555e54a638b95a44bd + md5: 6c4d877b3f769f5fc62f4aa0672a8ece depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 constrains: - cuda-nvvm-dev_win-arm64 <0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 33726 - timestamp: 1789621799731 + size: 37579 + timestamp: 1793849341859 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-pathfinder-1.8.3-pyhc364b38_0.conda sha256: 25b8f625cebe056be045bf9e484549188296b79793a340e059f13de4338939be md5: cb2babe521da8b1acaaea1cc12a282af @@ -11318,17 +11325,17 @@ packages: run_exports: {} size: 21578 timestamp: 1746134436166 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda - sha256: c75b079579323219d0e1848c3b6dc234c057e60072ecfa4b5678f6d2f99b0b4a - md5: 9ff0458c7a21690b23f37dee60f90300 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda + sha256: f6d5c12966fd5e050f8202b4cbfa275061f0df64a378f822b8ebc9a31df36250 + md5: b1f58e64d8125e60fb8d3d9046058271 constrains: - __cuda >=13 - - cudatoolkit 13.4|13.4.* + - cudatoolkit 13.5|13.5.* license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 21393 - timestamp: 1788980416483 + size: 21361 + timestamp: 1793820338666 - conda: https://conda.anaconda.org/conda-forge/noarch/cycler-0.12.1-pyhcf101f3_2.conda sha256: bb47aec5338695ff8efbddbc669064a3b10fe34ad881fb8ad5d64fbfa6910ed1 md5: 4c2a8fef270f6c69591889b93f9f55c1 @@ -11572,7 +11579,7 @@ packages: license: MIT license_family: MIT purls: - - pkg:pypi/imagesize?source=hash-mapping + - pkg:pypi/imagesize?source=compressed-mapping run_exports: {} size: 21467 timestamp: 1787649248672 @@ -11784,7 +11791,7 @@ packages: license: MIT license_family: MIT purls: - - pkg:pypi/jsonschema?source=compressed-mapping + - pkg:pypi/jsonschema?source=hash-mapping run_exports: {} size: 82084 timestamp: 1787579299493 @@ -12176,7 +12183,7 @@ packages: license: BSD-3-Clause license_family: BSD purls: - - pkg:pypi/nbclient?source=compressed-mapping + - pkg:pypi/nbclient?source=hash-mapping run_exports: {} size: 29971 timestamp: 1788212974885 @@ -13447,20 +13454,20 @@ packages: run_exports: {} size: 170799 timestamp: 1749218946117 -- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-13.4.92-hac47afa_0.conda - sha256: c7c7684c2e4f1050d3eb8fc72f142b139f7d4e68a3d8cf9d077888f09369c43c - md5: fcc933dd93b55752f3bbf89cb416f004 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-13.5.37-hac47afa_0.conda + sha256: e07f76ff8cd37ec9b46816b212f23e0c6f839cc47fb4572100d93a7935900da4 + md5: 47e84ee768e712919448f3a97cf44e69 depends: - - cuda-cudart_win-64 13.4.92 hac47afa_0 - - cuda-version >=13.4,<13.5.0a0 + - cuda-cudart_win-64 13.5.37 hac47afa_0 + - cuda-version >=13.5,<13.6.0a0 - ucrt >=10.0.20348.0 - vc >=14.3,<15 - vc14_runtime >=14.44.35208 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 215067 - timestamp: 1789613690715 + size: 219101 + timestamp: 1793838778253 - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-dev-12.9.79-he0c23c2_0.conda sha256: 1ee68f0ffd37889f0fc438d4da7124054b124632e1c3bc15950b9851b002473e md5: e5bb074108bc2501f8374e80748aa181 @@ -13479,22 +13486,22 @@ packages: - cuda-cudart >=12.9.79,<13.0a0 size: 23222 timestamp: 1749219022963 -- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-dev-13.4.92-hac47afa_0.conda - sha256: 997b3d08bbf65233b5dd06dd503b789d5e5219a351c0fa7ea751e7723b990a11 - md5: 9f8bcf3c1a6eeaa1e67da7b9a2877bdb - depends: - - cuda-cudart 13.4.92 hac47afa_0 - - cuda-cudart-dev_win-64 13.4.92 hac47afa_0 - - cuda-cudart-static 13.4.92 hac47afa_0 - - cuda-version >=13.4,<13.5.0a0 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-dev-13.5.37-hac47afa_0.conda + sha256: e70e6f2adbda4a807de71c42f972dc7eeb4a122ad0547b8acc747cbd6eaeec57 + md5: ee99809e2c5be2eb0c9a47bec70feea7 + depends: + - cuda-cudart 13.5.37 hac47afa_0 + - cuda-cudart-dev_win-64 13.5.37 hac47afa_0 + - cuda-cudart-static 13.5.37 hac47afa_0 + - cuda-version >=13.5,<13.6.0a0 - ucrt >=10.0.20348.0 - vc >=14.3,<15 - vc14_runtime >=14.44.35208 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 23884 - timestamp: 1789613707493 + size: 27871 + timestamp: 1793838784958 - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-static-12.9.79-he0c23c2_0.conda sha256: 02d3ff9ec59c7f59132ffe9398746ad9422a75706e7cad19acc6c30a5c0fc763 md5: 718879691b8119c893f587f46c734fca @@ -13509,20 +13516,20 @@ packages: run_exports: {} size: 23249 timestamp: 1749218998822 -- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-static-13.4.92-hac47afa_0.conda - sha256: 06d18da9c2898e08c792d09564de21778920ded1fd7215411e091bbea29a62d0 - md5: 844f6d2b9926023b3cff92040eafc3df +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-static-13.5.37-hac47afa_0.conda + sha256: 23db8ee7fd1dd19c7b359b2a6f0b3435c8e15947d6f7dbefcdb417063a60cb00 + md5: c516bf119f2d33e699b511582fa3fb15 depends: - - cuda-cudart-static_win-64 13.4.92 hac47afa_0 - - cuda-version >=13.4,<13.5.0a0 + - cuda-cudart-static_win-64 13.5.37 hac47afa_0 + - cuda-version >=13.5,<13.6.0a0 - ucrt >=10.0.20348.0 - vc >=14.3,<15 - vc14_runtime >=14.44.35208 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 23877 - timestamp: 1789613703473 + size: 27902 + timestamp: 1793838783740 - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-12.9.86-hac47afa_1.conda sha256: d90ef446ac859db26286a5d39d39333c4e4cee31ba5042b5c7922bd25de531f6 md5: d68b5d96a53c80dc3dbbd8f7c3b8106d @@ -13536,19 +13543,19 @@ packages: run_exports: {} size: 58467504 timestamp: 1760723834711 -- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-13.4.92-hac47afa_0.conda - sha256: 3cdbd1da5a4993cd486513ce2d4afcaf5ee29437e65984b9367775d9651f2f3b - md5: fecc38becd2d2c231a5fd275ba798479 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-13.5.37-hac47afa_0.conda + sha256: 8a14fb6eddb59d35b427eaff10c1ed0dccff66d6c4852012f2982cfae6126efe + md5: e5d223833dcfd668744bd63950427516 depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - ucrt >=10.0.20348.0 - vc >=14.3,<15 - vc14_runtime >=14.44.35208 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 36407421 - timestamp: 1789606716374 + size: 38191305 + timestamp: 1793827463426 - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-dev-12.9.86-hac47afa_1.conda sha256: 1e1c41f95d606eaf6581fccf9546ed6ee4053c42b78e11057cd6d2801b96f0e2 md5: b97225dd005cb0dcdca7911c61ca38e5 @@ -13564,21 +13571,21 @@ packages: - cuda-nvrtc >=12.9.86,<13.0a0 size: 35214 timestamp: 1760724506186 -- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-dev-13.4.92-hac47afa_0.conda - sha256: 12170480d393f454c674c230bdb2ff05483350af77ac2850bf3e0e261558f6c6 - md5: c8236f6fdd2ce0a124de4698fd0d8600 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-dev-13.5.37-hac47afa_0.conda + sha256: 9cde2eeaae037cec3791a140b42a447354ceffc82c31871768d439c4376e6421 + md5: 347fd41bf45e0f6d646e9e511bf5f18f depends: - - cuda-nvrtc 13.4.92 hac47afa_0 - - cuda-version >=13.4,<13.5.0a0 + - cuda-nvrtc 13.5.37 hac47afa_0 + - cuda-version >=13.5,<13.6.0a0 - ucrt >=10.0.20348.0 - vc >=14.3,<15 - vc14_runtime >=14.44.35208 license: LicenseRef-NVIDIA-End-User-License-Agreement run_exports: weak: - - cuda-nvrtc >=13.4.92,<14.0a0 - size: 38246 - timestamp: 1789607226146 + - cuda-nvrtc >=13.5.37,<14.0a0 + size: 42275 + timestamp: 1793828185148 - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-12.9.86-h719f0c7_6.conda sha256: 020a5bb67a35654f391d21b170ba763f95b7f133fec5678d69e676559dcd5653 md5: b162c7fb8b19f9102bd5f801d7f58ca2 @@ -13591,18 +13598,18 @@ packages: run_exports: {} size: 26007 timestamp: 1771619504675 -- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-13.4.92-h719f0c7_0.conda - sha256: e58e5d042b7db87838de8da7a19b53c65a3d86ca4e40dd9235a28532bf580ff1 - md5: 2f515eacb82e9efb14037048dffb9677 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-13.5.37-h719f0c7_0.conda + sha256: 37c4fb70789b263d8fe52aa95acb877bccdc934ea74353803b3195212fbd8bfc + md5: 54eae5e69b5fb8794f4d2cb8326509aa depends: - - cuda-nvvm-dev_win-64 13.4.92.* - - cuda-nvvm-impl 13.4.92.* - - cuda-nvvm-tools 13.4.92.* + - cuda-nvvm-dev_win-64 13.5.37.* + - cuda-nvvm-impl 13.5.37.* + - cuda-nvvm-tools 13.5.37.* license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 26714 - timestamp: 1789628111155 + size: 26772 + timestamp: 1793856430643 - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-12.9.86-h2466b09_2.conda sha256: 7b995ea653816b129bae6e4ee92898824a39fe82227472537bf75ac6ece7e955 md5: d8cea7bc32045bde718d0b1ceb595445 @@ -13616,19 +13623,19 @@ packages: run_exports: {} size: 31168 timestamp: 1753975780038 -- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-13.4.92-hfd05255_0.conda - sha256: 65c6c932c0bd2adeddccdafb1dedd148385b206e5a75712c8f1102a1ab3cb982 - md5: 698800762e29774687a870e6186c2be8 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-13.5.37-hfd05255_0.conda + sha256: eff2d53baf5cd7d0a50a5304e53ecf806936a68170c480532b1953bbad617801 + md5: a4eee226739bfdc212c2c6002e639eff depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - ucrt >=10.0.20348.0 - vc >=14.3,<15 - vc14_runtime >=14.44.35208 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 29226 - timestamp: 1789621808218 + size: 33018 + timestamp: 1793849345998 - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-12.9.86-h2466b09_2.conda sha256: 5692a559206420f77e376a598329db966da762ad574866f9cc80a447d26ac49c md5: 25e269101d3eb39715a48998bc04289e @@ -13642,19 +13649,19 @@ packages: run_exports: {} size: 40286977 timestamp: 1753975898550 -- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-13.4.92-hfd05255_0.conda - sha256: a7f95018c37175275e8630afd4f14fdf90a5d7350e7fee7f3efedcaca5cbf859 - md5: 35791b89ba9dcaf4ce936ba07a6b92e0 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-13.5.37-hfd05255_0.conda + sha256: 77172f6b9494199a64030cca426fe39048edeb3b544146dc7321c0fa5127425a + md5: e91aee62ef0af913b87e4c15eb078a6c depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - ucrt >=10.0.20348.0 - vc >=14.3,<15 - vc14_runtime >=14.44.35208 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 46534809 - timestamp: 1789621823012 + size: 48624273 + timestamp: 1793849354951 - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-profiler-api-12.9.79-h57928b3_1.conda sha256: e2ea70bfd20decd9e8401b5388693e1fd8e25a120580338a22b8b890f4933520 md5: 57d6f85f552878de71f8136cc6d2ab16 @@ -13666,17 +13673,17 @@ packages: run_exports: {} size: 24150 timestamp: 1761098813665 -- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-profiler-api-13.4.92-h57928b3_0.conda - sha256: 3c92ab33f680e39224432cda90dcd33c68ff18a6a08c2cf22a388c6443707582 - md5: 7e9711be580e9bff6ab449c1d79055c2 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-profiler-api-13.5.25-h57928b3_0.conda + sha256: df444d3638a0de3c74f5d3c523cfd17949b3df1d56b3eb6b0615b900a3873646 + md5: 6e047aaab389571405ed47aef70979ee depends: - cuda-cudart-dev - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 25442 - timestamp: 1789618183674 + size: 25485 + timestamp: 1793848614636 - conda: https://conda.anaconda.org/conda-forge/win-64/cython-3.2.9-py312hd245ac3_0.conda sha256: 277887d63842d6b9d8a49f6bde1c57149fd65342c85e1f3e2aa44402125d3115 md5: 762f58961f768b8790a215a8521d33cd @@ -14482,19 +14489,19 @@ packages: run_exports: {} size: 345191 timestamp: 1782920356823 -- conda: https://conda.anaconda.org/conda-forge/win-64/libnvfatbin-13.4.92-hac47afa_0.conda - sha256: fe7f06d28a8db4b71ca33b36b9e32c81a364e7f7e6a23d754068cd1db87f7db2 - md5: f4410583221c4b942775d7ad2ab19179 +- conda: https://conda.anaconda.org/conda-forge/win-64/libnvfatbin-13.5.37-hac47afa_0.conda + sha256: 2d5a20a0967b92e4cbe249ec86b7cda816de75ac49709559b094fd40cfe8bc44 + md5: 72398a4ebe74d9abcd46ec9688aaeb60 depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - ucrt >=10.0.20348.0 - vc >=14.3,<15 - vc14_runtime >=14.44.35208 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 361057 - timestamp: 1789606401543 + size: 354630 + timestamp: 1793826284465 - conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-12.9.86-hac47afa_2.conda sha256: adf35938c9ecd77d27c87ef870f7710ee422933ad95d1aac136ff39e7af0551f md5: feaee6b1ab0e7ed9152dc88e1b0eeddd @@ -14508,19 +14515,19 @@ packages: run_exports: {} size: 27343190 timestamp: 1760724535115 -- conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-13.4.92-hac47afa_0.conda - sha256: c9284ac173ba06ce1bfe07a7d7efa9580f170abcd2f669ca28c8810dc832e9d4 - md5: ce8b124cd742664cc342897524208e55 +- conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-13.5.37-hac47afa_0.conda + sha256: cb7b4e7be50997a9508deda709f3e1f03e9392ce431f63698cf47e946bd98b91 + md5: a10b6d0ba3e514a21e334d3b5917152b depends: - - cuda-version >=13,<13.5.0a0 + - cuda-version >=13,<13.6.0a0 - ucrt >=10.0.20348.0 - vc >=14.3,<15 - vc14_runtime >=14.44.35208 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 29916730 - timestamp: 1789607014695 + size: 31783851 + timestamp: 1793827454534 - conda: https://conda.anaconda.org/conda-forge/win-64/libogg-1.3.5-h2466b09_1.conda sha256: c63e5fb169dbd192aacdcee6e37235407f106b8ca9c9036942a25e0366cbc73c md5: b67ed8c9ca072695ff482e50d888a523 @@ -15823,22 +15830,22 @@ packages: - zstd >=1.5.7,<1.6.0a0 size: 387535 timestamp: 1786599623274 -- conda_source: cuda-bindings[6c9e4564] @ . +- conda_source: cuda-bindings[4dda4b8d] @ . variants: c_stdlib: sysroot c_stdlib_version: '2.28' - cuda_version: 12.* + cuda_version: 13.5.* python: 3.14.* target_platform: linux-64 depends: - __glibc >=2.28,<3.0.a0 - cuda-nvrtc - - cuda-nvrtc >=12.9.86,<13.0a0 + - cuda-nvrtc >=13.5.37,<14.0a0 - cuda-nvvm - cuda-pathfinder - cuda-version - libcufile - - libcufile >=1.14.1.1,<2.0a0 + - libcufile >=1.20.0.107,<2.0a0 - libgcc >=16 - libgcc >=16 - libnvfatbin @@ -15874,20 +15881,20 @@ packages: host_packages: - conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-hda65f42_10.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-12.9.79-h5888daf_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-12.9.79-h5888daf_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-12.9.79-h5888daf_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-12.9.86-hecca717_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-dev-12.9.86-hecca717_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-12.9.86-h69a702a_6.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-12.9.86-h4bc722e_2.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-12.9.86-h4bc722e_2.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-profiler-api-12.9.79-h7938cbb_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-dev-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-13.5.37-h69a702a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-13.5.37-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-13.5.37-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-profiler-api-13.5.25-h7938cbb_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/cython-3.2.9-py314h1807b08_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.46.1-default_hbd61a6d_102.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libcap-2.78-h084b8d7_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.14.1.1-hbc026e6_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-dev-1.14.1.1-hecca717_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.20.0.107-h63c01a6_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-dev-1.20.0.107-h393e864_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.8.5-hd2095e1_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.7.0-h81df57d_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libgcc-16.2.0-ha9f2e26_7.conda @@ -15911,13 +15918,13 @@ packages: - conda: https://conda.anaconda.org/conda-forge/linux-64/uv-0.13.5-h535ca38_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/zstd-1.5.7-hb78ec9c_7.conda - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-hbd8a1cb_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-12.9.27-ha770c72_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-12.9.86-ha770c72_2.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-12.9.79-h3f2d84a_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-12.9.79-h3f2d84a_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-12.9.79-h3f2d84a_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-12.9.86-ha770c72_2.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-12.9-h4f385c5_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-13.3.5.0.6-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-13.5.37-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-13.5.37-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-9_cp314.conda - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.0.0-pyh332efcf_0.conda @@ -15926,17 +15933,17 @@ packages: - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda - - conda_source: cuda-pathfinder[9b57eb00] @ ../cuda_pathfinder -- conda_source: cuda-bindings[8a8ae161] @ . + - conda_source: cuda-pathfinder[8f545c34] @ ../cuda_pathfinder +- conda_source: cuda-bindings[5f809bbb] @ . variants: c_compiler: vs2022 - cuda_version: 12.* + cuda_version: 13.5.* cxx_compiler: vs2022 python: 3.14.* target_platform: win-64 depends: - cuda-nvrtc - - cuda-nvrtc >=12.9.86,<13.0a0 + - cuda-nvrtc >=13.5.37,<14.0a0 - cuda-nvvm - cuda-pathfinder - cuda-version @@ -15957,13 +15964,13 @@ packages: - conda: https://conda.anaconda.org/conda-forge/win-64/vs2022_win-64-19.44.35207-ha74f236_41.conda host_packages: - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-h4c7d964_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-12.9.27-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-12.9.86-h57928b3_2.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-12.9.79-he0c23c2_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-12.9.79-he0c23c2_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-12.9.79-he0c23c2_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-12.9.86-h57928b3_2.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-12.9-h4f385c5_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-13.3.5.0.6-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-13.5.37-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-13.5.37-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-9_cp314.conda - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.0.0-pyh332efcf_0.conda @@ -15973,15 +15980,15 @@ packages: - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h0ad9c76_10.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-12.9.79-he0c23c2_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-dev-12.9.79-he0c23c2_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-static-12.9.79-he0c23c2_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-12.9.86-hac47afa_1.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-dev-12.9.86-hac47afa_1.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-12.9.86-h719f0c7_6.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-12.9.86-h2466b09_2.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-12.9.86-h2466b09_2.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-profiler-api-12.9.79-h57928b3_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-dev-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-static-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-dev-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-13.5.37-h719f0c7_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-13.5.37-hfd05255_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-13.5.37-hfd05255_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-profiler-api-13.5.25-h57928b3_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/cython-3.2.9-py314h344ed54_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libexpat-2.8.5-hac47afa_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libffi-3.7.0-h3d046cb_1.conda @@ -15999,96 +16006,23 @@ packages: - conda: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.51.36247-habf1de7_41.conda - conda: https://conda.anaconda.org/conda-forge/win-64/vcomp14-14.51.36247-habf1de7_41.conda - conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda - - conda_source: cuda-pathfinder[f6abc7c0] @ ../cuda_pathfinder -- conda_source: cuda-bindings[9de6602e] @ . - variants: - c_compiler: vs2022 - cuda_version: 13.4.* - cxx_compiler: vs2022 - python: 3.14.* - target_platform: win-64 - depends: - - cuda-nvrtc - - cuda-nvrtc >=13.4.92,<14.0a0 - - cuda-nvvm - - cuda-pathfinder - - cuda-version - - libnvfatbin - - libnvjitlink - - python - - python >=3.11 - - python_abi 3.14.* *_cp314 - - ucrt >=10.0.20348.0 - - vc >=14.3,<15 - - vc14_runtime >=14.44.35208 - license: Apache-2.0 - source_depends: - cuda-pathfinder: - path: ../cuda_pathfinder - build_packages: - - conda: https://conda.anaconda.org/conda-forge/noarch/vswhere-3.1.7-h40126e0_1.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/vs2022_win-64-19.44.35207-ha74f236_41.conda - host_packages: - - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-h4c7d964_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-13.3.4.3.1-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-13.4.92-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-13.4.92-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-9_cp314.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.0.0-pyh332efcf_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-scm-10.3.4-pyh5ded981_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.5.0-pyh5ded981_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h0ad9c76_10.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-dev-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-static-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-dev-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-13.4.92-h719f0c7_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-13.4.92-hfd05255_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-13.4.92-hfd05255_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-profiler-api-13.4.92-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cython-3.2.9-py314h344ed54_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libexpat-2.8.5-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libffi-3.7.0-h3d046cb_1.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/liblzma-5.8.3-hfd05255_1.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libmpdec-4.0.0-hfd05255_2.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libpython-3.14.10-hc6187dd_100_cp314.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libsqlite-3.54.1-hf5d6505_101.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libzlib-1.3.2-hfd05255_3.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/openssl-3.6.5-hf411b9b_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/python-3.14.10-h53f6dd8_100_cp314.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/tk-8.6.13-h967ab96_4.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/uv-0.13.5-hf7a7c96_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/vc-14.5-ha367084_41.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.51.36247-habf1de7_41.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/vcomp14-14.51.36247-habf1de7_41.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda - - conda_source: cuda-pathfinder[f6abc7c0] @ ../cuda_pathfinder -- conda_source: cuda-bindings[a363e215] @ . + - conda_source: cuda-pathfinder[b5bcf07a] @ ../cuda_pathfinder +- conda_source: cuda-bindings[6c9e4564] @ . variants: c_stdlib: sysroot c_stdlib_version: '2.28' - cuda_version: 13.4.* + cuda_version: 12.* python: 3.14.* target_platform: linux-64 depends: - __glibc >=2.28,<3.0.a0 - cuda-nvrtc - - cuda-nvrtc >=13.4.92,<14.0a0 + - cuda-nvrtc >=12.9.86,<13.0a0 - cuda-nvvm - cuda-pathfinder - cuda-version - libcufile - - libcufile >=1.19.1.55,<2.0a0 + - libcufile >=1.14.1.1,<2.0a0 - libgcc >=16 - libgcc >=16 - libnvfatbin @@ -16124,20 +16058,20 @@ packages: host_packages: - conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-hda65f42_10.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-dev-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-13.4.92-h69a702a_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-13.4.92-hb03c661_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-13.4.92-hb03c661_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-profiler-api-13.4.92-h7938cbb_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-12.9.79-h5888daf_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-12.9.79-h5888daf_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-12.9.79-h5888daf_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-12.9.86-hecca717_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-dev-12.9.86-hecca717_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-12.9.86-h69a702a_6.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-12.9.86-h4bc722e_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-12.9.86-h4bc722e_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-profiler-api-12.9.79-h7938cbb_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/cython-3.2.9-py314h1807b08_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.46.1-default_hbd61a6d_102.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libcap-2.78-h084b8d7_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.19.1.55-h63c01a6_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-dev-1.19.1.55-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.14.1.1-hbc026e6_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-dev-1.14.1.1-hecca717_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.8.5-hd2095e1_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.7.0-h81df57d_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libgcc-16.2.0-ha9f2e26_7.conda @@ -16161,13 +16095,13 @@ packages: - conda: https://conda.anaconda.org/conda-forge/linux-64/uv-0.13.5-h535ca38_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/zstd-1.5.7-hb78ec9c_7.conda - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-hbd8a1cb_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-13.3.4.3.1-ha770c72_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-13.4.92-ha770c72_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-13.4.92-h9e77f9f_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-13.4.92-h9e77f9f_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-13.4.92-h9e77f9f_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-13.4.92-ha770c72_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-12.9.27-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-12.9.86-ha770c72_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-12.9.79-h3f2d84a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-12.9.79-h3f2d84a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-12.9.79-h3f2d84a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-12.9.86-ha770c72_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-12.9-h4f385c5_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-9_cp314.conda - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.0.0-pyh332efcf_0.conda @@ -16177,22 +16111,22 @@ packages: - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda - conda_source: cuda-pathfinder[9b57eb00] @ ../cuda_pathfinder -- conda_source: cuda-bindings[de0b57e4] @ . +- conda_source: cuda-bindings[7248e39c] @ . variants: c_stdlib: sysroot c_stdlib_version: '2.28' - cuda_version: 13.4.* + cuda_version: 13.5.* python: 3.14.* target_platform: linux-aarch64 depends: - __glibc >=2.28,<3.0.a0 - cuda-nvrtc - - cuda-nvrtc >=13.4.92,<14.0a0 + - cuda-nvrtc >=13.5.37,<14.0a0 - cuda-nvvm - cuda-pathfinder - cuda-version - libcufile - - libcufile >=1.19.1.55,<2.0a0 + - libcufile >=1.20.0.107,<2.0a0 - libgcc >=16 - libgcc >=16 - libnvfatbin @@ -16228,20 +16162,20 @@ packages: host_packages: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/bzip2-1.0.8-h4777abc_10.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-dev-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-13.4.92-he9431aa_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-13.4.92-hbe86820_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-13.4.92-hbe86820_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-13.4.92-h16bee8c_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-dev-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-13.5.37-he9431aa_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-13.5.37-hbe86820_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-13.5.37-hbe86820_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-13.5.25-h16bee8c_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cython-3.2.9-py314hc6b4731_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ld_impl_linux-aarch64-2.46.1-default_h1979696_102.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcap-2.78-hfcc8634_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.19.1.55-hc7dfe37_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-dev-1.19.1.55-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.20.0.107-hc7dfe37_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-dev-1.20.0.107-hc1d3098_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libexpat-2.8.5-h4154aff_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libffi-3.7.0-hdaad0be_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgcc-16.2.0-h205dda4_7.conda @@ -16266,13 +16200,13 @@ packages: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/zstd-1.5.7-h9d15635_7.conda - conda: https://conda.anaconda.org/conda-forge/noarch/arm-variant-1.2.0-sbsa.conda - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-hbd8a1cb_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-13.3.4.3.1-h579c4fd_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-13.4.92-h579c4fd_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-13.4.92-h579c4fd_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-13.3.5.0.6-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-13.5.37-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-13.5.37-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-9_cp314.conda - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.0.0-pyh332efcf_0.conda @@ -16281,7 +16215,80 @@ packages: - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda - - conda_source: cuda-pathfinder[a51836e4] @ ../cuda_pathfinder + - conda_source: cuda-pathfinder[3da77f45] @ ../cuda_pathfinder +- conda_source: cuda-bindings[8a8ae161] @ . + variants: + c_compiler: vs2022 + cuda_version: 12.* + cxx_compiler: vs2022 + python: 3.14.* + target_platform: win-64 + depends: + - cuda-nvrtc + - cuda-nvrtc >=12.9.86,<13.0a0 + - cuda-nvvm + - cuda-pathfinder + - cuda-version + - libnvfatbin + - libnvjitlink + - python + - python >=3.11 + - python_abi 3.14.* *_cp314 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: Apache-2.0 + source_depends: + cuda-pathfinder: + path: ../cuda_pathfinder + build_packages: + - conda: https://conda.anaconda.org/conda-forge/noarch/vswhere-3.1.7-h40126e0_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vs2022_win-64-19.44.35207-ha74f236_41.conda + host_packages: + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-h4c7d964_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-12.9.27-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-12.9.86-h57928b3_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-12.9.86-h57928b3_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-12.9-h4f385c5_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-9_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.0.0-pyh332efcf_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-scm-10.3.4-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.5.0-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h0ad9c76_10.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-dev-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-static-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-12.9.86-hac47afa_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-dev-12.9.86-hac47afa_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-12.9.86-h719f0c7_6.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-12.9.86-h2466b09_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-12.9.86-h2466b09_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-profiler-api-12.9.79-h57928b3_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cython-3.2.9-py314h344ed54_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libexpat-2.8.5-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libffi-3.7.0-h3d046cb_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/liblzma-5.8.3-hfd05255_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libmpdec-4.0.0-hfd05255_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libpython-3.14.10-hc6187dd_100_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libsqlite-3.54.1-hf5d6505_101.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libzlib-1.3.2-hfd05255_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/openssl-3.6.5-hf411b9b_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/python-3.14.10-h53f6dd8_100_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/tk-8.6.13-h967ab96_4.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/uv-0.13.5-hf7a7c96_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vc-14.5-ha367084_41.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.51.36247-habf1de7_41.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vcomp14-14.51.36247-habf1de7_41.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda + - conda_source: cuda-pathfinder[f6abc7c0] @ ../cuda_pathfinder - conda_source: cuda-bindings[e3183a23] @ . variants: c_stdlib: sysroot @@ -16387,6 +16394,80 @@ packages: - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda - conda_source: cuda-pathfinder[a51836e4] @ ../cuda_pathfinder +- conda_source: cuda-pathfinder[3da77f45] @ ../cuda_pathfinder + variants: + target_platform: noarch + depends: + - python * + - python >=3.11 + license: Apache-2.0 + host_packages: + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/bzip2-1.0.8-h4777abc_10.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ld_impl_linux-aarch64-2.46.1-default_h1979696_103.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libedit-3.1.20260512-pl5321hc48eb74_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libexpat-2.8.5-h4154aff_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libffi-3.7.0-hdaad0be_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgcc-16.2.0-h205dda4_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgomp-16.2.0-h8acb6b2_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/liblzma-5.8.3-he30d5cf_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libmpdec-4.0.0-he30d5cf_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsqlite-3.54.1-hd26f1b6_100.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libstdcxx-16.2.0-hef695bb_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libuuid-2.42.4-hd6fdeab_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libzlib-1.3.2-hdc9db2a_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ncurses-6.6-h2b6f883_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/openssl-3.6.5-he6ad1d5_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/python-3.15.2-h0c7c799_100_cp315.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/tk-8.6.13-noxft_hf03c496_4.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/uv-0.13.5-h779c035_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/zstd-1.5.7-h9d15635_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-hbd8a1cb_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.15-9_cp315.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.2.1-pyhe730653_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-scm-10.3.4-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.5.0-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda +- conda_source: cuda-pathfinder[8f545c34] @ ../cuda_pathfinder + variants: + target_platform: noarch + depends: + - python * + - python >=3.11 + license: Apache-2.0 + host_packages: + - conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-hda65f42_10.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.46.1-default_hbd61a6d_103.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libedit-3.1.20260512-pl5321h373387f_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.8.5-hd2095e1_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.7.0-h81df57d_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgcc-16.2.0-ha9f2e26_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgomp-16.2.0-he0feb66_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/liblzma-5.8.3-hb03c661_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libmpdec-4.0.0-hb03c661_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libsqlite-3.54.1-h0737f62_100.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-16.2.0-h934c35e_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libuuid-2.42.4-hcfc3c73_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libzlib-1.3.2-h25fd6f3_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/ncurses-6.6-hdb14827_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.6.5-h781a0a9_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/python-3.15.2-h6e52b48_100_cp315.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.13-noxft_h1df4ec4_4.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/uv-0.13.5-h535ca38_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/zstd-1.5.7-hb78ec9c_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-hbd8a1cb_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.15-9_cp315.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.2.1-pyhe730653_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-scm-10.3.4-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.5.0-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda - conda_source: cuda-pathfinder[9b57eb00] @ ../cuda_pathfinder variants: target_platform: noarch @@ -16461,6 +16542,39 @@ packages: - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda +- conda_source: cuda-pathfinder[b5bcf07a] @ ../cuda_pathfinder + variants: + target_platform: noarch + depends: + - python * + - python >=3.11 + license: Apache-2.0 + host_packages: + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-h4c7d964_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.15-9_cp315.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.2.1-pyhe730653_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-scm-10.3.4-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.5.0-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h0ad9c76_10.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libexpat-2.8.5-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libffi-3.7.0-h3d046cb_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/liblzma-5.8.3-hfd05255_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libmpdec-4.0.0-hfd05255_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libsqlite-3.54.1-hf5d6505_100.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libzlib-1.3.2-hfd05255_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/openssl-3.6.5-hf411b9b_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/python-3.15.2-h53f6dd8_100_cp315.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/tk-8.6.13-h967ab96_4.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/uv-0.13.5-hf7a7c96_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vc-14.5-ha367084_41.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.51.36247-habf1de7_41.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vcomp14-14.51.36247-habf1de7_41.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda - conda_source: cuda-pathfinder[f6abc7c0] @ ../cuda_pathfinder variants: target_platform: noarch diff --git a/cuda_core/pixi.lock b/cuda_core/pixi.lock index 23b42e2e60e2..006059025b54 100644 --- a/cuda_core/pixi.lock +++ b/cuda_core/pixi.lock @@ -2,7 +2,7 @@ version: 7 platforms: - name: linux-64 virtual-packages: - - __unix=0=0 + - __unix=0 - __linux=4.18 - __glibc=2.28 - __archspec=0=x86_64 @@ -10,13 +10,13 @@ platforms: subdir: linux-64 virtual-packages: - __cuda=13 - - __unix=0=0 + - __unix=0 - __linux=4.18 - __glibc=2.28 - __archspec=0=x86_64 - name: linux-aarch64 virtual-packages: - - __unix=0=0 + - __unix=0 - __linux=4.18 - __glibc=2.28 - __archspec=0=aarch64 @@ -24,7 +24,7 @@ platforms: subdir: linux-aarch64 virtual-packages: - __cuda=13 - - __unix=0=0 + - __unix=0 - __linux=4.18 - __glibc=2.28 - __archspec=0=aarch64 @@ -260,7 +260,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/wayland-protocols-1.49-hd8ed1ab_0.conda - - conda_source: cuda-core[1204a228] @ . + - conda_source: cuda-core[0d1b6a19] @ . - pypi: ../cuda_python_test_helpers linux-aarch64: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda @@ -468,7 +468,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.5.0-pyh5ded981_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - - conda_source: cuda-core[df9822dd] @ . + - conda_source: cuda-core[03c04d4b] @ . - pypi: ../cuda_python_test_helpers win-64: - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-h4c7d964_0.conda @@ -616,7 +616,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/win-64/x265-3.5-h3ee6617_4.conda - conda: https://conda.anaconda.org/conda-forge/win-64/zlib-1.3.2-hfd05255_3.conda - conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda - - conda_source: cuda-core[0693e559] @ . + - conda_source: cuda-core[bd2b7b0c] @ . - pypi: ../cuda_python_test_helpers cu13: channels: @@ -632,15 +632,15 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-hda65f42_10.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/cairo-1.18.6-h3c89d7e_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/conda-gcc-specs-16.2.0-hf8037ed_7.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-dev-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-13.4.92-h69a702a_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-13.4.92-hb03c661_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-13.4.92-hb03c661_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-profiler-api-13.4.92-h7938cbb_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-dev-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-13.5.37-h69a702a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-13.5.37-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-13.5.37-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-profiler-api-13.5.25-h7938cbb_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/cython-3.2.9-py314h1807b08_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/dbus-1.16.2-he8c428d_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/ffmpeg-9.0.2-gpl_h2f7cf13_903.conda @@ -671,7 +671,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/libbrotlienc-1.2.0-h018ffa1_4.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libcap-2.78-h084b8d7_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libcblas-3.11.0-11_h0358290_openblas.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.19.1.55-h63c01a6_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.20.0.107-h63c01a6_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libdav1d7-1.5.4-hebe6cf0_4.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libdeflate-1.25-hd45a770_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libdovi-3.4.0-h39d0f39_1.conda @@ -702,8 +702,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/liblzma-5.8.3-hb03c661_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libmpdec-4.0.0-hb03c661_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libnl-3.11.0-hb03c661_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvfatbin-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-13.4.92-hd2095e1_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvfatbin-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-13.5.37-h393e864_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libogg-1.3.5-hd0c01bc_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenblas-0.3.34-pthreads_hf13c14d_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-2026.4.0-h42b6e13_0.conda @@ -797,13 +797,13 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-hbd8a1cb_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cloudpickle-3.1.2-pyhcf101f3_1.conda - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-13.3.4.3.1-ha770c72_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-13.4.92-ha770c72_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-13.4.92-h9e77f9f_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-13.4.92-h9e77f9f_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-13.4.92-h9e77f9f_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-13.4.92-ha770c72_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-13.3.5.0.6-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-13.5.37-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-13.5.37-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/docutils-0.23-pyhcf101f3_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-dejavu-sans-mono-2.37-hab24e00_0.tar.bz2 @@ -833,9 +833,9 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/wayland-protocols-1.49-hd8ed1ab_0.conda - - conda_source: cuda-bindings[79546b65] @ ../cuda_bindings_13 - - conda_source: cuda-core[e2d04db8] @ . - - conda_source: cuda-pathfinder[9b57eb00] @ ../cuda_pathfinder + - conda_source: cuda-bindings[9ff26a29] @ ../cuda_bindings_13 + - conda_source: cuda-core[a10511c6] @ . + - conda_source: cuda-pathfinder[8f545c34] @ ../cuda_pathfinder - pypi: ../cuda_python_test_helpers linux-aarch64: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda @@ -845,15 +845,15 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/bzip2-1.0.8-h4777abc_10.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cairo-1.18.6-hca320e2_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/conda-gcc-specs-16.2.0-h969d813_7.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-dev-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-13.4.92-he9431aa_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-13.4.92-hbe86820_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-13.4.92-hbe86820_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-13.4.92-h16bee8c_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-dev-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-13.5.37-he9431aa_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-13.5.37-hbe86820_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-13.5.37-hbe86820_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-13.5.25-h16bee8c_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cython-3.2.9-py314hc6b4731_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/dbus-1.16.2-h71d469a_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ffmpeg-9.0.2-gpl_h46e5802_903.conda @@ -881,7 +881,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libbrotlienc-1.2.0-hb247b97_4.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcap-2.78-hfcc8634_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcblas-3.11.0-11_hd72aa62_openblas.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.19.1.55-hc7dfe37_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.20.0.107-hc7dfe37_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libdav1d7-1.5.4-h29ee22c_4.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libdeflate-1.25-hfa851ae_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libdovi-3.4.0-h286a8f0_1.conda @@ -912,8 +912,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/liblzma-5.8.3-he30d5cf_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libmpdec-4.0.0-he30d5cf_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnl-3.11.0-he30d5cf_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvfatbin-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-13.4.92-hae6cbe8_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvfatbin-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-13.5.37-hc1d3098_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libogg-1.3.5-h86ecc28_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenblas-0.3.34-pthreads_h4148b7d_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-2026.4.0-h11c88c2_0.conda @@ -1002,13 +1002,13 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-hbd8a1cb_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cloudpickle-3.1.2-pyhcf101f3_1.conda - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-13.3.4.3.1-h579c4fd_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-13.4.92-h579c4fd_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-13.4.92-h579c4fd_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-13.3.5.0.6-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-13.5.37-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-13.5.37-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/docutils-0.23-pyhcf101f3_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-dejavu-sans-mono-2.37-hab24e00_0.tar.bz2 @@ -1037,21 +1037,21 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.5.0-pyh5ded981_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - - conda_source: cuda-bindings[dd9bab73] @ ../cuda_bindings_13 - - conda_source: cuda-core[d32d80be] @ . - - conda_source: cuda-pathfinder[a51836e4] @ ../cuda_pathfinder + - conda_source: cuda-bindings[e5ccaa65] @ ../cuda_bindings_13 + - conda_source: cuda-core[3eda8084] @ . + - conda_source: cuda-pathfinder[3da77f45] @ ../cuda_pathfinder - pypi: ../cuda_python_test_helpers win-64: - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-h4c7d964_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cloudpickle-3.1.2-pyhcf101f3_1.conda - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-13.3.4.3.1-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-13.4.92-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-13.4.92-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-13.3.5.0.6-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-13.5.37-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-13.5.37-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/docutils-0.23-pyhcf101f3_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-dejavu-sans-mono-2.37-hab24e00_0.tar.bz2 @@ -1089,11 +1089,11 @@ environments: - conda: https://conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h0ad9c76_10.conda - conda: https://conda.anaconda.org/conda-forge/win-64/cairo-1.18.6-h477c42c_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/conda-gcc-specs-16.2.0-h6d3b04a_7.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-dev-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-13.4.92-h719f0c7_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-13.4.92-hfd05255_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-13.4.92-hfd05255_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-dev-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-13.5.37-h719f0c7_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-13.5.37-hfd05255_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-13.5.37-hfd05255_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/cython-3.2.9-py314h344ed54_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/ffmpeg-9.0.2-gpl_h928aae7_903.conda - conda: https://conda.anaconda.org/conda-forge/win-64/fontconfig-2.18.3-hd47e2ca_1.conda @@ -1134,8 +1134,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/win-64/liblapack-3.11.0-11_hf9ab0e9_mkl.conda - conda: https://conda.anaconda.org/conda-forge/win-64/liblzma-5.8.3-hfd05255_1.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libmpdec-4.0.0-hfd05255_2.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libnvfatbin-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-13.4.92-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libnvfatbin-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-13.5.37-hac47afa_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libogg-1.3.5-h2466b09_1.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libopus-1.6.1-h6a83c73_1.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libpng-1.6.59-hdc8cecf_0.conda @@ -1178,9 +1178,9 @@ environments: - conda: https://conda.anaconda.org/conda-forge/win-64/x265-3.5-h3ee6617_4.conda - conda: https://conda.anaconda.org/conda-forge/win-64/zlib-1.3.2-hfd05255_3.conda - conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda - - conda_source: cuda-bindings[6abae617] @ ../cuda_bindings_13 - - conda_source: cuda-core[c16b8443] @ . - - conda_source: cuda-pathfinder[f6abc7c0] @ ../cuda_pathfinder + - conda_source: cuda-bindings[34cbcc35] @ ../cuda_bindings_13 + - conda_source: cuda-core[315d990f] @ . + - conda_source: cuda-pathfinder[b5bcf07a] @ ../cuda_pathfinder - pypi: ../cuda_python_test_helpers default: channels: @@ -1196,15 +1196,15 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-hda65f42_10.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/cairo-1.18.6-h3c89d7e_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/conda-gcc-specs-16.2.0-hf8037ed_7.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-dev-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-13.4.92-h69a702a_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-13.4.92-hb03c661_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-13.4.92-hb03c661_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-profiler-api-13.4.92-h7938cbb_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-dev-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-13.5.37-h69a702a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-13.5.37-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-13.5.37-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-profiler-api-13.5.25-h7938cbb_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/cython-3.2.9-py314h1807b08_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/dbus-1.16.2-he8c428d_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/ffmpeg-9.0.2-gpl_h2f7cf13_903.conda @@ -1235,7 +1235,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/libbrotlienc-1.2.0-h018ffa1_4.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libcap-2.78-h084b8d7_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libcblas-3.11.0-11_h0358290_openblas.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.19.1.55-h63c01a6_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.20.0.107-h63c01a6_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libdav1d7-1.5.4-hebe6cf0_4.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libdeflate-1.25-hd45a770_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libdovi-3.4.0-h39d0f39_1.conda @@ -1266,8 +1266,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/liblzma-5.8.3-hb03c661_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libmpdec-4.0.0-hb03c661_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libnl-3.11.0-hb03c661_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvfatbin-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-13.4.92-hd2095e1_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvfatbin-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-13.5.37-h393e864_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libogg-1.3.5-hd0c01bc_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenblas-0.3.34-pthreads_hf13c14d_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-2026.4.0-h42b6e13_0.conda @@ -1361,13 +1361,13 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-hbd8a1cb_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cloudpickle-3.1.2-pyhcf101f3_1.conda - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-13.3.4.3.1-ha770c72_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-13.4.92-ha770c72_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-13.4.92-h9e77f9f_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-13.4.92-h9e77f9f_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-13.4.92-h9e77f9f_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-13.4.92-ha770c72_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-13.3.5.0.6-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-13.5.37-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-13.5.37-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/docutils-0.23-pyhcf101f3_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-dejavu-sans-mono-2.37-hab24e00_0.tar.bz2 @@ -1397,9 +1397,9 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/wayland-protocols-1.49-hd8ed1ab_0.conda - - conda_source: cuda-bindings[79546b65] @ ../cuda_bindings_13 - - conda_source: cuda-core[e2d04db8] @ . - - conda_source: cuda-pathfinder[9b57eb00] @ ../cuda_pathfinder + - conda_source: cuda-bindings[9ff26a29] @ ../cuda_bindings_13 + - conda_source: cuda-core[a10511c6] @ . + - conda_source: cuda-pathfinder[8f545c34] @ ../cuda_pathfinder - pypi: ../cuda_python_test_helpers linux-aarch64: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda @@ -1409,15 +1409,15 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/bzip2-1.0.8-h4777abc_10.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cairo-1.18.6-hca320e2_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/conda-gcc-specs-16.2.0-h969d813_7.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-dev-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-13.4.92-he9431aa_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-13.4.92-hbe86820_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-13.4.92-hbe86820_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-13.4.92-h16bee8c_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-dev-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-13.5.37-he9431aa_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-13.5.37-hbe86820_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-13.5.37-hbe86820_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-13.5.25-h16bee8c_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cython-3.2.9-py314hc6b4731_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/dbus-1.16.2-h71d469a_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ffmpeg-9.0.2-gpl_h46e5802_903.conda @@ -1445,7 +1445,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libbrotlienc-1.2.0-hb247b97_4.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcap-2.78-hfcc8634_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcblas-3.11.0-11_hd72aa62_openblas.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.19.1.55-hc7dfe37_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.20.0.107-hc7dfe37_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libdav1d7-1.5.4-h29ee22c_4.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libdeflate-1.25-hfa851ae_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libdovi-3.4.0-h286a8f0_1.conda @@ -1476,8 +1476,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/liblzma-5.8.3-he30d5cf_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libmpdec-4.0.0-he30d5cf_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnl-3.11.0-he30d5cf_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvfatbin-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-13.4.92-hae6cbe8_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvfatbin-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-13.5.37-hc1d3098_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libogg-1.3.5-h86ecc28_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenblas-0.3.34-pthreads_h4148b7d_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-2026.4.0-h11c88c2_0.conda @@ -1566,13 +1566,13 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-hbd8a1cb_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cloudpickle-3.1.2-pyhcf101f3_1.conda - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-13.3.4.3.1-h579c4fd_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-13.4.92-h579c4fd_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-13.4.92-h579c4fd_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-13.3.5.0.6-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-13.5.37-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-13.5.37-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/docutils-0.23-pyhcf101f3_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-dejavu-sans-mono-2.37-hab24e00_0.tar.bz2 @@ -1601,21 +1601,21 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.5.0-pyh5ded981_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - - conda_source: cuda-bindings[dd9bab73] @ ../cuda_bindings_13 - - conda_source: cuda-core[d32d80be] @ . - - conda_source: cuda-pathfinder[a51836e4] @ ../cuda_pathfinder + - conda_source: cuda-bindings[e5ccaa65] @ ../cuda_bindings_13 + - conda_source: cuda-core[3eda8084] @ . + - conda_source: cuda-pathfinder[3da77f45] @ ../cuda_pathfinder - pypi: ../cuda_python_test_helpers win-64: - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-h4c7d964_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cloudpickle-3.1.2-pyhcf101f3_1.conda - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-13.3.4.3.1-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-13.4.92-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-13.4.92-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-13.3.5.0.6-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-13.5.37-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-13.5.37-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/docutils-0.23-pyhcf101f3_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-dejavu-sans-mono-2.37-hab24e00_0.tar.bz2 @@ -1653,11 +1653,11 @@ environments: - conda: https://conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h0ad9c76_10.conda - conda: https://conda.anaconda.org/conda-forge/win-64/cairo-1.18.6-h477c42c_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/conda-gcc-specs-16.2.0-h6d3b04a_7.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-dev-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-13.4.92-h719f0c7_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-13.4.92-hfd05255_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-13.4.92-hfd05255_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-dev-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-13.5.37-h719f0c7_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-13.5.37-hfd05255_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-13.5.37-hfd05255_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/cython-3.2.9-py314h344ed54_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/ffmpeg-9.0.2-gpl_h928aae7_903.conda - conda: https://conda.anaconda.org/conda-forge/win-64/fontconfig-2.18.3-hd47e2ca_1.conda @@ -1698,8 +1698,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/win-64/liblapack-3.11.0-11_hf9ab0e9_mkl.conda - conda: https://conda.anaconda.org/conda-forge/win-64/liblzma-5.8.3-hfd05255_1.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libmpdec-4.0.0-hfd05255_2.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libnvfatbin-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-13.4.92-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libnvfatbin-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-13.5.37-hac47afa_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libogg-1.3.5-h2466b09_1.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libopus-1.6.1-h6a83c73_1.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libpng-1.6.59-hdc8cecf_0.conda @@ -1742,9 +1742,9 @@ environments: - conda: https://conda.anaconda.org/conda-forge/win-64/x265-3.5-h3ee6617_4.conda - conda: https://conda.anaconda.org/conda-forge/win-64/zlib-1.3.2-hfd05255_3.conda - conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda - - conda_source: cuda-bindings[6abae617] @ ../cuda_bindings_13 - - conda_source: cuda-core[c16b8443] @ . - - conda_source: cuda-pathfinder[f6abc7c0] @ ../cuda_pathfinder + - conda_source: cuda-bindings[34cbcc35] @ ../cuda_bindings_13 + - conda_source: cuda-core[315d990f] @ . + - conda_source: cuda-pathfinder[b5bcf07a] @ ../cuda_pathfinder - pypi: ../cuda_python_test_helpers docs: channels: @@ -1757,11 +1757,11 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/brotli-python-1.2.0-py314hcd2bdb6_4.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-hda65f42_10.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/charset-normalizer-3.5.2-h1114479_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-13.4.92-h69a702a_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-13.4.92-hb03c661_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-13.4.92-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-13.5.37-h69a702a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-13.5.37-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-13.5.37-hb03c661_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/cython-3.2.9-py314h1807b08_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/debugpy-1.8.22-py314hf3b331d_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/keyutils-1.6.3-h7cc23a3_1.conda @@ -1770,7 +1770,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/libblas-3.11.0-11_h4a7cf45_openblas.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libcap-2.78-h084b8d7_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libcblas-3.11.0-11_h0358290_openblas.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.19.1.55-h63c01a6_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.20.0.107-h63c01a6_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libedit-3.1.20260512-pl5321h373387f_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.8.5-hd2095e1_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.7.0-h81df57d_1.conda @@ -1782,8 +1782,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/liblzma-5.8.3-hb03c661_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libmpdec-4.0.0-hb03c661_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libnl-3.11.0-hb03c661_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvfatbin-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-13.4.92-hd2095e1_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvfatbin-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-13.5.37-h393e864_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenblas-0.3.34-pthreads_hf13c14d_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libpython-3.14.10-hd51c5da_100_cp314.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libsodium-1.0.22-hebe6cf0_3.conda @@ -1833,9 +1833,9 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda - conda: https://conda.anaconda.org/conda-forge/noarch/comm-0.2.3-pyhe01879c_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cpython-3.14.8-py314hd8ed1ab_101.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-13.4.92-h9e77f9f_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-13.4.92-ha770c72_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-13.5.37-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/dict2css-0.6.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/docutils-0.21.2-pyhd8ed1ab_1.conda - conda: https://conda.anaconda.org/conda-forge/noarch/domdf-python-tools-3.10.0-pyhff2d567_0.conda @@ -1927,19 +1927,19 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/urllib3-2.8.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/webencodings-0.5.1-pyhd8ed1ab_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/zipp-4.1.1-pyh5ded981_0.conda - - conda_source: cuda-bindings[79546b65] @ ../cuda_bindings_13 - - conda_source: cuda-core[e2d04db8] @ . - - conda_source: cuda-pathfinder[9b57eb00] @ ../cuda_pathfinder + - conda_source: cuda-bindings[9ff26a29] @ ../cuda_bindings_13 + - conda_source: cuda-core[a10511c6] @ . + - conda_source: cuda-pathfinder[8f545c34] @ ../cuda_pathfinder - pypi: https://files.pythonhosted.org/packages/8c/79/017fab2f7167a9a9795665f894d04f77aafceca80821b51589bb4b23ff5c/nvidia_sphinx_theme-0.0.9.post1-py3-none-any.whl linux-aarch64: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/brotli-python-1.2.0-py314hd574b5f_4.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/bzip2-1.0.8-h4777abc_10.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-13.4.92-he9431aa_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-13.4.92-hbe86820_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-13.4.92-hbe86820_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-13.5.37-he9431aa_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-13.5.37-hbe86820_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-13.5.37-hbe86820_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cython-3.2.9-py314hc6b4731_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/debugpy-1.8.22-py314h8ac86d4_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/keyutils-1.6.3-h5bc82ec_1.conda @@ -1948,7 +1948,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libblas-3.11.0-11_haddc8a3_openblas.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcap-2.78-hfcc8634_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcblas-3.11.0-11_hd72aa62_openblas.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.19.1.55-hc7dfe37_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.20.0.107-hc7dfe37_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libedit-3.1.20260512-pl5321hc48eb74_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libexpat-2.8.5-h4154aff_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libffi-3.7.0-hdaad0be_1.conda @@ -1960,8 +1960,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/liblzma-5.8.3-he30d5cf_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libmpdec-4.0.0-he30d5cf_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnl-3.11.0-he30d5cf_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvfatbin-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-13.4.92-hae6cbe8_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvfatbin-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-13.5.37-hc1d3098_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenblas-0.3.34-pthreads_h4148b7d_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libpython-3.14.10-h150030a_100_cp314.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsodium-1.0.22-h29ee22c_3.conda @@ -2013,9 +2013,9 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda - conda: https://conda.anaconda.org/conda-forge/noarch/comm-0.2.3-pyhe01879c_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cpython-3.14.8-py314hd8ed1ab_101.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-13.4.92-h579c4fd_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-13.5.37-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/dict2css-0.6.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/docutils-0.21.2-pyhd8ed1ab_1.conda - conda: https://conda.anaconda.org/conda-forge/noarch/domdf-python-tools-3.10.0-pyhff2d567_0.conda @@ -2107,9 +2107,9 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/urllib3-2.8.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/webencodings-0.5.1-pyhd8ed1ab_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/zipp-4.1.1-pyh5ded981_0.conda - - conda_source: cuda-bindings[dd9bab73] @ ../cuda_bindings_13 - - conda_source: cuda-core[d32d80be] @ . - - conda_source: cuda-pathfinder[a51836e4] @ ../cuda_pathfinder + - conda_source: cuda-bindings[e5ccaa65] @ ../cuda_bindings_13 + - conda_source: cuda-core[3eda8084] @ . + - conda_source: cuda-pathfinder[3da77f45] @ ../cuda_pathfinder - pypi: https://files.pythonhosted.org/packages/8c/79/017fab2f7167a9a9795665f894d04f77aafceca80821b51589bb4b23ff5c/nvidia_sphinx_theme-0.0.9.post1-py3-none-any.whl win-64: - conda: https://conda.anaconda.org/conda-forge/noarch/_python_abi3_support-1.0-hd8ed1ab_3.conda @@ -2130,8 +2130,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda - conda: https://conda.anaconda.org/conda-forge/noarch/comm-0.2.3-pyhe01879c_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cpython-3.14.8-py314hd8ed1ab_101.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-13.4.92-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-13.5.37-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/dict2css-0.6.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/docutils-0.21.2-pyhd8ed1ab_1.conda - conda: https://conda.anaconda.org/conda-forge/noarch/domdf-python-tools-3.10.0-pyhff2d567_0.conda @@ -2225,10 +2225,10 @@ environments: - conda: https://conda.anaconda.org/conda-forge/win-64/brotli-python-1.2.0-py314h85cf176_4.conda - conda: https://conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h0ad9c76_10.conda - conda: https://conda.anaconda.org/conda-forge/win-64/charset-normalizer-3.5.2-h308a848_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-13.4.92-h719f0c7_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-13.4.92-hfd05255_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-13.4.92-hfd05255_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-13.5.37-h719f0c7_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-13.5.37-hfd05255_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-13.5.37-hfd05255_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/cython-3.2.9-py314h344ed54_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/debugpy-1.8.22-py314hb98de8c_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/icu-78.3-h5112557_2.conda @@ -2242,8 +2242,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/win-64/liblapack-3.11.0-11_hf9ab0e9_mkl.conda - conda: https://conda.anaconda.org/conda-forge/win-64/liblzma-5.8.3-hfd05255_1.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libmpdec-4.0.0-hfd05255_2.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libnvfatbin-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-13.4.92-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libnvfatbin-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-13.5.37-hac47afa_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libpython-3.14.10-hc6187dd_100_cp314.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libsodium-1.0.22-h6a83c73_3.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libsqlite-3.54.1-hf5d6505_101.conda @@ -2277,9 +2277,9 @@ environments: - conda: https://conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3.conda - conda: https://conda.anaconda.org/conda-forge/win-64/zeromq-4.3.5-h3a581c9_12.conda - conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda - - conda_source: cuda-bindings[6abae617] @ ../cuda_bindings_13 - - conda_source: cuda-core[c16b8443] @ . - - conda_source: cuda-pathfinder[f6abc7c0] @ ../cuda_pathfinder + - conda_source: cuda-bindings[34cbcc35] @ ../cuda_bindings_13 + - conda_source: cuda-core[315d990f] @ . + - conda_source: cuda-pathfinder[b5bcf07a] @ ../cuda_pathfinder - pypi: https://files.pythonhosted.org/packages/8c/79/017fab2f7167a9a9795665f894d04f77aafceca80821b51589bb4b23ff5c/nvidia_sphinx_theme-0.0.9.post1-py3-none-any.whl numba-classic: channels: @@ -2377,10 +2377,10 @@ environments: - pypi: https://files.pythonhosted.org/packages/7b/b2/a048b57f2ee4c5ff27a329bd1c4c3fae34c84771ad0ebfea179034c8cf29/nvidia_cuda_cccl-13.3.4.3.1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl - pypi: https://files.pythonhosted.org/packages/80/02/ba4b5eaec47fb1ae01138ab0d88c735e14e594a7c1bd8146cdd4dfe15d89/cuda_toolkit-13.4.2-py2.py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/98/8a/3431271f6344874b8f1ac03f16b3d679c91493f8da63f716160403e6d0a0/nvidia_cuda_runtime-13.4.92-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl - - pypi: https://files.pythonhosted.org/packages/b4/cb/6e5f7af55ea54b97c0ad1ab21597da29b3e2c62709fd94a091024b8446b0/cuda_core-1.2.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl - pypi: https://files.pythonhosted.org/packages/b8/c3/efb6bbb7307bf5c83dc4acca650280b210c67ed1a1a60f898a90e7c82e38/cuda_bindings-13.4.3-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl - pypi: https://files.pythonhosted.org/packages/b9/fb/f8e1890428f9f590b4beebd63b068aac1ce32a3331510c847b9f9a78f261/cuda_pathfinder-1.8.3-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/e3/b6/1db1a2f1164b82e5fd867e880dfd964516f1382fb7d35a916c0c2929fa55/numba_cuda-0.30.4-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/f2/1c/8e1f7d42984d6b164521a1dec587f3cf6d1fc585ff929f1420faa07da9d3/cuda_core-1.2.2-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl linux-aarch64-cuda-13: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/aom-3.4.0-headf329_1.tar.bz2 @@ -2457,13 +2457,13 @@ environments: - pypi: https://files.pythonhosted.org/packages/1f/a8/1cbd4014898af8b419e69b0d7dbc63da2121ee92d92b47d59f4fe9075349/nvidia_nvjitlink-13.4.92-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl - pypi: https://files.pythonhosted.org/packages/4f/73/cf76dc0083d68bd1e29309bc51fc95ada28d4b64d341e945eb3f8ec8edec/nvidia_cuda_nvrtc-13.4.92-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl - pypi: https://files.pythonhosted.org/packages/51/3b/2c6e9d88efa7b3585572760bca5e7da83fa9e06098a9386c7b29c81c46b2/nvidia_cuda_runtime-13.4.92-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl + - pypi: https://files.pythonhosted.org/packages/58/f0/437869ea39a6c97468d1141dcee862ccc3e409e8afabd78896e42213c867/cuda_core-1.2.2-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl - pypi: https://files.pythonhosted.org/packages/63/34/ba1c580383c9eada3711951fef0795c80b829a078d72188184bcab9dd527/packaging-26.3-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/65/11/1293429c1c3a3e19b551275e65efddd122a905bbe7e368816a59f3ef2a41/cuda_bindings-13.4.3-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl - pypi: https://files.pythonhosted.org/packages/7a/c4/e86f30b2b09c310c02ffdd8afd00f7e127d365131d163c926c98fc3ece22/llvmlite-0.50.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl - pypi: https://files.pythonhosted.org/packages/7c/14/47b329af0047e27e1f0fe2a2f5544f5c6660a01e1a1e0fe8445dddd5747f/numba_cuda-0.30.4-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl - pypi: https://files.pythonhosted.org/packages/80/02/ba4b5eaec47fb1ae01138ab0d88c735e14e594a7c1bd8146cdd4dfe15d89/cuda_toolkit-13.4.2-py2.py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/98/5c/8a3321fce98670dda24014b4e227c75cc19fa0baae1ee7e3201eda071c57/nvidia_nvvm-13.4.92-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl - - pypi: https://files.pythonhosted.org/packages/a5/86/5d37bb17c636a2ef45b0fd4135743809afd1dd530afde22fea3cb3eaf05d/cuda_core-1.2.1-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl - pypi: https://files.pythonhosted.org/packages/af/4d/aa2cefeef784c5695790931938944f76ee66d3c7c640f62326f64642f1c6/numba-0.68.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl - pypi: https://files.pythonhosted.org/packages/b9/fb/f8e1890428f9f590b4beebd63b068aac1ce32a3331510c847b9f9a78f261/cuda_pathfinder-1.8.3-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/c8/21/d49f8fdb03bb4108b12291e8ff2b86491d42cd158d33c7a3a55870384114/nvidia_cuda_cccl-13.3.4.3.1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl @@ -2716,9 +2716,9 @@ environments: - pypi: https://files.pythonhosted.org/packages/08/07/6def3acd0a934b91fa0053916da1f05d391e73eeea8750ec60b888d43b57/numba_cuda_mlir-0.5.4-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl - pypi: https://files.pythonhosted.org/packages/1d/6b/eef7a9e32872b8f41e145bf10cddc9af26e153c338852811fe9a9baddf9e/nvidia_nvjitlink-13.4.92-py3-none-manylinux2010_x86_64.manylinux_2_12_x86_64.whl - pypi: https://files.pythonhosted.org/packages/28/c9/6f50b170d6d6d55e5d8c30b773ea024bc4f4e8ce450904cbed12b47907c2/nvidia_nvvm-13.4.92-py3-none-manylinux2010_x86_64.manylinux_2_12_x86_64.whl - - pypi: https://files.pythonhosted.org/packages/4b/68/7482871b9da7d2239f512192339fad405d83af8fb8915319b31afeb42071/cuda_core-1.2.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl - pypi: https://files.pythonhosted.org/packages/56/9c/1342ebb460ce2afd014ec5a002adc99108e3c53a6b70f399cf64dd1f267d/nvidia_cuda_nvrtc-13.4.92-py3-none-manylinux2010_x86_64.manylinux_2_12_x86_64.whl - pypi: https://files.pythonhosted.org/packages/5a/8c/19c959c7497421559575a6c574ba40e18981558bb8289ddd8ef043b98c54/nvidia_cuda_nvcc-13.4.92-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl + - pypi: https://files.pythonhosted.org/packages/65/d4/5ea4865f80fe6789d89316c2d1270655e6e7da613fec1a3e1ec7b81e52f4/cuda_core-1.2.2-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl - pypi: https://files.pythonhosted.org/packages/80/02/ba4b5eaec47fb1ae01138ab0d88c735e14e594a7c1bd8146cdd4dfe15d89/cuda_toolkit-13.4.2-py2.py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/98/8a/3431271f6344874b8f1ac03f16b3d679c91493f8da63f716160403e6d0a0/nvidia_cuda_runtime-13.4.92-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl - pypi: https://files.pythonhosted.org/packages/a3/49/7a3769c43e432b0434dd46424058b47af4347167f0dfca1ecb27e2de92a1/cuda_bindings-13.4.3-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl @@ -2872,6 +2872,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-9_cp314.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - pypi: https://files.pythonhosted.org/packages/1f/a8/1cbd4014898af8b419e69b0d7dbc63da2121ee92d92b47d59f4fe9075349/nvidia_nvjitlink-13.4.92-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl + - pypi: https://files.pythonhosted.org/packages/48/0c/92d7b6a59918f11507f3f0da2279c4b2119727414d5ddef0ab480502a065/cuda_core-1.2.2-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl - pypi: https://files.pythonhosted.org/packages/4f/73/cf76dc0083d68bd1e29309bc51fc95ada28d4b64d341e945eb3f8ec8edec/nvidia_cuda_nvrtc-13.4.92-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl - pypi: https://files.pythonhosted.org/packages/51/3b/2c6e9d88efa7b3585572760bca5e7da83fa9e06098a9386c7b29c81c46b2/nvidia_cuda_runtime-13.4.92-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl - pypi: https://files.pythonhosted.org/packages/7d/9a/56d536da43d9d92986a707bdf2ac8a29f4942b2aa984f5f4daddcb4d497d/numba_cuda_mlir-0.5.4-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl @@ -2881,7 +2882,6 @@ environments: - pypi: https://files.pythonhosted.org/packages/ab/e6/3c094ef0eb00a7b0ff69a3915327e2c2d14e712ebe471a2217bf7f020f33/cuda_bindings-13.4.3-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl - pypi: https://files.pythonhosted.org/packages/ac/4c/3811a6606dd3af346c151049675b1ea232c9b15c97729f3e980b0b70fb06/nvidia_cuda_nvcc-13.4.92-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl - pypi: https://files.pythonhosted.org/packages/b9/fb/f8e1890428f9f590b4beebd63b068aac1ce32a3331510c847b9f9a78f261/cuda_pathfinder-1.8.3-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/fc/e9/5316d89fab1e62f8f16cd500843500f406cb8e8073968a79547fca4c2e5c/cuda_core-1.2.1-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl win-64-cuda-13: - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-h4c7d964_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-dejavu-sans-mono-2.37-hab24e00_0.tar.bz2 @@ -2981,17 +2981,17 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/cairo-1.18.6-h3c89d7e_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/cffi-2.1.1-py314h8d76f0c_3.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/conda-gcc-specs-15.3.0-h8846f6e_7.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-crt-tools-13.4.92-ha770c72_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cuobjdump-13.4.92-hb047bc3_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cupti-13.4.92-h393e864_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvcc-tools-13.4.92-hecca717_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvdisasm-13.4.92-hb047bc3_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvtx-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-13.4.92-h69a702a_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-13.4.92-hb03c661_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-13.4.92-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-crt-tools-13.5.37-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cuobjdump-13.5.37-h0cf1943_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cupti-13.5.25-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvcc-tools-13.5.37-hecca717_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvdisasm-13.5.37-h0cf1943_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvtx-13.5.25-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-13.5.37-h69a702a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-13.5.37-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-13.5.37-hb03c661_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/cupy-14.2.0-py314h194295f_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/cupy-core-14.2.0-py314h236c480_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/dav1d-1.2.1-hd590300_0.conda @@ -3026,14 +3026,14 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/libbrotlienc-1.2.0-h018ffa1_4.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libcap-2.78-h084b8d7_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libcblas-3.11.0-11_hfef963f_mkl.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libcublas-13.7.0.27-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcublas-13.10.0.20-h393e864_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libcudnn-9.26.0.51-h8a19d09_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libcudss-0.7.1.4-h7bcfba5_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufft-12.4.0.43-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.19.1.55-h63c01a6_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libcurand-10.4.4.72-h393e864_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libcusolver-12.3.2.15-h393e864_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libcusparse-12.8.6.72-hd2095e1_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufft-12.5.0.14-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.20.0.107-h63c01a6_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcurand-10.4.5.25-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcusolver-12.4.1.2-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcusparse-12.9.4.2-h393e864_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libdeflate-1.25-hd45a770_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libdovi-3.4.0-h39d0f39_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libdrm-2.4.129-h7cc23a3_0.conda @@ -3068,8 +3068,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/libmagma-2.10.0-hd93470c_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libmpdec-4.0.0-hb03c661_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libnl-3.11.0-hb03c661_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvfatbin-13.4.92-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-13.4.92-hd2095e1_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvfatbin-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-13.5.37-h393e864_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libogg-1.3.5-hd0c01bc_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-2026.2.1-h1f0fae8_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-auto-batch-plugin-2026.2.1-h7e124b3_0.conda @@ -3180,12 +3180,12 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-hbd8a1cb_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cpython-3.14.8-py314hd8ed1ab_101.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-13.3.4.3.1-ha770c72_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-13.4.92-h9e77f9f_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-13.4.92-h9e77f9f_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-13.4.92-h9e77f9f_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-13.4.92-ha770c72_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-13.3.5.0.6-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-13.5.37-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/filelock-4.0.12-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-dejavu-sans-mono-2.37-hab24e00_0.tar.bz2 @@ -3221,9 +3221,9 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/wayland-protocols-1.49-hd8ed1ab_0.conda - - conda_source: cuda-bindings[79546b65] @ ../cuda_bindings_13 - - conda_source: cuda-core[e2d04db8] @ . - - conda_source: cuda-pathfinder[9b57eb00] @ ../cuda_pathfinder + - conda_source: cuda-bindings[9ff26a29] @ ../cuda_bindings_13 + - conda_source: cuda-core[a10511c6] @ . + - conda_source: cuda-pathfinder[8f545c34] @ ../cuda_pathfinder - pypi: https://files.pythonhosted.org/packages/04/fb/8d570c9cd23eaacebd29064d4f883f3548db90594c21d0e7fc2ea4970112/nvtx-0.2.16-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl - pypi: https://files.pythonhosted.org/packages/1d/6b/eef7a9e32872b8f41e145bf10cddc9af26e153c338852811fe9a9baddf9e/nvidia_nvjitlink-13.4.92-py3-none-manylinux2010_x86_64.manylinux_2_12_x86_64.whl - pypi: https://files.pythonhosted.org/packages/3d/5f/2bd2fd4b99b0b5e76fea2f1fe149e05a7ec19a9a177758688bb82c7e3126/numba-0.68.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl @@ -3241,17 +3241,17 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cairo-1.18.6-hca320e2_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cffi-2.1.1-py314h65cb5ac_3.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/conda-gcc-specs-15.3.0-hbdd0822_7.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-crt-tools-13.4.92-h579c4fd_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cuobjdump-13.4.92-h4259b1c_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cupti-13.4.92-hc1d3098_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvcc-tools-13.4.92-h8f3c8d4_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvdisasm-13.4.92-h98f1979_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvtx-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-13.4.92-he9431aa_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-13.4.92-hbe86820_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-13.4.92-hbe86820_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-crt-tools-13.5.37-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cuobjdump-13.5.37-hd7b48eb_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cupti-13.5.25-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvcc-tools-13.5.37-h8f3c8d4_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvdisasm-13.5.37-h13100b1_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvtx-13.5.25-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-13.5.37-he9431aa_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-13.5.37-hbe86820_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-13.5.37-hbe86820_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cupy-14.2.0-py314h4dc59ae_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cupy-core-14.2.0-py314he33c60b_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/dav1d-1.2.1-h31becfc_0.conda @@ -3283,14 +3283,14 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libbrotlienc-1.2.0-hb247b97_4.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcap-2.78-hfcc8634_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcblas-3.11.0-11_hd72aa62_openblas.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcublas-13.7.0.27-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcublas-13.10.0.20-hc1d3098_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcudnn-9.26.0.51-hbf3bfcb_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcudss-0.7.1.4-he387df4_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufft-12.4.0.43-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.19.1.55-hc7dfe37_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcurand-10.4.4.72-hc1d3098_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcusolver-12.3.2.15-hc1d3098_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcusparse-12.8.6.72-hae6cbe8_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufft-12.5.0.14-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.20.0.107-hc7dfe37_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcurand-10.4.5.25-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcusolver-12.4.1.2-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcusparse-12.9.4.2-hc1d3098_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libdeflate-1.25-hfa851ae_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libdovi-3.4.0-h286a8f0_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libdrm-2.4.129-h5bc82ec_0.conda @@ -3325,8 +3325,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libmagma-2.10.0-he3ecef4_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libmpdec-4.0.0-he30d5cf_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnl-3.11.0-he30d5cf_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvfatbin-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-13.4.92-hae6cbe8_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvfatbin-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-13.5.37-hc1d3098_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libogg-1.3.5-h86ecc28_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenblas-0.3.34-openmp_hcf905d8_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-2026.2.1-h9a8427e_0.conda @@ -3432,12 +3432,12 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-hbd8a1cb_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cpython-3.14.8-py314hd8ed1ab_101.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-13.3.4.3.1-h579c4fd_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-13.4.92-hae6cbe8_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-13.4.92-h579c4fd_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-13.3.5.0.6-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-13.5.37-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/filelock-4.0.12-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-dejavu-sans-mono-2.37-hab24e00_0.tar.bz2 @@ -3473,9 +3473,9 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/typing-extensions-4.16.0-h69aa097_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - - conda_source: cuda-bindings[dd9bab73] @ ../cuda_bindings_13 - - conda_source: cuda-core[d32d80be] @ . - - conda_source: cuda-pathfinder[a51836e4] @ ../cuda_pathfinder + - conda_source: cuda-bindings[e5ccaa65] @ ../cuda_bindings_13 + - conda_source: cuda-core[3eda8084] @ . + - conda_source: cuda-pathfinder[3da77f45] @ ../cuda_pathfinder - pypi: https://files.pythonhosted.org/packages/1f/a8/1cbd4014898af8b419e69b0d7dbc63da2121ee92d92b47d59f4fe9075349/nvidia_nvjitlink-13.4.92-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl - pypi: https://files.pythonhosted.org/packages/53/4c/819e3fdbb405db297a15e06679f6b2b0a9a0420fea14dd562adc8eaa5ec9/nvtx-0.2.16-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl - pypi: https://files.pythonhosted.org/packages/74/70/c03aebc576ded2204e5bde9b86b215f0590a81261af333d4239b9f0aed0f/numba-0.68.0-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl @@ -3487,8 +3487,8 @@ environments: win-64-cuda-13: - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-h4c7d964_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-13.4.92-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-13.5.37-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-dejavu-sans-mono-2.37-hab24e00_0.tar.bz2 - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-inconsolata-3.000-h77eed37_0.tar.bz2 @@ -3512,10 +3512,10 @@ environments: - conda: https://conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h0ad9c76_10.conda - conda: https://conda.anaconda.org/conda-forge/win-64/cairo-1.18.6-h477c42c_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/cffi-2.1.1-py314h5a2d7ad_3.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-13.4.92-h719f0c7_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-13.4.92-hfd05255_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-13.4.92-hfd05255_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-13.5.37-h719f0c7_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-13.5.37-hfd05255_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-13.5.37-hfd05255_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/ffmpeg-9.0.2-gpl_h928aae7_903.conda - conda: https://conda.anaconda.org/conda-forge/win-64/fontconfig-2.18.3-hd47e2ca_1.conda - conda: https://conda.anaconda.org/conda-forge/win-64/freetype-2.14.3-h57928b3_2.conda @@ -3548,8 +3548,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/win-64/liblapack-3.11.0-11_hf9ab0e9_mkl.conda - conda: https://conda.anaconda.org/conda-forge/win-64/liblzma-5.8.3-hfd05255_1.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libmpdec-4.0.0-hfd05255_2.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libnvfatbin-13.4.92-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-13.4.92-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libnvfatbin-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-13.5.37-hac47afa_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libogg-1.3.5-h2466b09_1.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libopus-1.6.1-h6a83c73_1.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libpng-1.6.59-hdc8cecf_0.conda @@ -3588,9 +3588,9 @@ environments: - conda: https://conda.anaconda.org/conda-forge/win-64/x265-3.5-h3ee6617_4.conda - conda: https://conda.anaconda.org/conda-forge/win-64/zlib-1.3.2-hfd05255_3.conda - conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda - - conda_source: cuda-bindings[6abae617] @ ../cuda_bindings_13 - - conda_source: cuda-core[c16b8443] @ . - - conda_source: cuda-pathfinder[f6abc7c0] @ ../cuda_pathfinder + - conda_source: cuda-bindings[34cbcc35] @ ../cuda_bindings_13 + - conda_source: cuda-core[315d990f] @ . + - conda_source: cuda-pathfinder[b5bcf07a] @ ../cuda_pathfinder - pypi: https://files.pythonhosted.org/packages/0c/41/3e3528f3b0f9ffae69310d2e71f81ff74d272ee3b6c0600c4f4abaa31a80/numba-0.68.0-cp314-cp314-win_amd64.whl - pypi: https://files.pythonhosted.org/packages/0e/44/8a82ff02b52c6c28f69f60936ada7dc3d73496fbf1fbfc1f5dc43af52be7/nvtx-0.2.16-cp314-cp314-win_amd64.whl - pypi: https://files.pythonhosted.org/packages/21/82/3bf86d2e2808902013132e1ce905a7da0da53790f3836c64bf44d55e24f3/pywin32-312-cp314-cp314-win_amd64.whl @@ -3806,6 +3806,84 @@ packages: run_exports: {} size: 217200 timestamp: 1790766086110 +- conda: https://conda.anaconda.org/conda-forge/linux-64/clang-format-22-22.1.8-default_h0acdd01_11.conda + sha256: c8df03550b85c23d439180868c6c027776090ca724b13fceea9da4b9c2c30b99 + md5: d582ad78e4d0d327aac0aac55b1249ee + depends: + - libclang-cpp22.1 >=22.1.8,<22.2.0a0 + - __glibc >=2.17,<3.0.a0 + - libstdcxx >=15 + - libgcc >=15 + - libxml2 + - libxml2-16 >=2.15.4 + - zstd >=1.5.7,<1.6.0a0 + - libzlib >=1.3.2,<2.0a0 + - libllvm22 >=22.1.8,<22.2.0a0 + license: Apache-2.0 WITH LLVM-exception + license_family: APACHE + run_exports: {} + size: 75953 + timestamp: 1791934037580 +- conda: https://conda.anaconda.org/conda-forge/linux-64/clang-format-22.1.8-default_h0c12a12_11.conda + sha256: a41a4d1d58a0cb6b92cb355513f77d051f6a438252b166effeed13a336eafb9f + md5: 591e0cc0b8e100328b0eb0429142eea8 + depends: + - libclang-cpp22.1 >=22.1.8,<22.2.0a0 + - clang-format-22 ==22.1.8 default_h0acdd01_11 + - __glibc >=2.17,<3.0.a0 + - libstdcxx >=15 + - libgcc >=15 + - libxml2 + - libxml2-16 >=2.15.4 + - zstd >=1.5.7,<1.6.0a0 + - libzlib >=1.3.2,<2.0a0 + license: Apache-2.0 WITH LLVM-exception + license_family: APACHE + run_exports: {} + size: 33587 + timestamp: 1791934037580 +- conda: https://conda.anaconda.org/conda-forge/linux-64/clang-scan-deps-22.1.8-default_h0acdd01_11.conda + sha256: 180952a871c096f721a2ba272512123230b4730da0167d07ec2dfa1a2f8732e0 + md5: 0f0d704c38e187ff9da028d312060515 + depends: + - libclang13 >=22.1.8 + - libclang-cpp22.1 >=22.1.8,<22.2.0a0 + - __glibc >=2.17,<3.0.a0 + - libstdcxx >=15 + - libgcc >=15 + - libxml2 + - libxml2-16 >=2.15.4 + - zstd >=1.5.7,<1.6.0a0 + - libzlib >=1.3.2,<2.0a0 + - libllvm22 >=22.1.8,<22.2.0a0 + license: Apache-2.0 WITH LLVM-exception + license_family: APACHE + run_exports: {} + size: 112741 + timestamp: 1791934037580 +- conda: https://conda.anaconda.org/conda-forge/linux-64/clang-tools-22.1.8-default_ha96978a_11.conda + sha256: 174010779807e54216354b83589ffcafa62833a38908454948e556ea06f84bf6 + md5: 95e4a7cb19782afc48556075456335c4 + depends: + - clang-format ==22.1.8 default_h0c12a12_11 + - libclang13 >=22.1.8 + - clang-scan-deps ==22.1.8 default_h0acdd01_11 + - libclang-cpp22.1 >=22.1.8,<22.2.0a0 + - __glibc >=2.17,<3.0.a0 + - libstdcxx >=15 + - libgcc >=15 + - libxml2 + - libxml2-16 >=2.15.4 + - zstd >=1.5.7,<1.6.0a0 + - libzlib >=1.3.2,<2.0a0 + - libllvm22 >=22.1.8,<22.2.0a0 + constrains: + - clangdev ==22.1.8 + license: Apache-2.0 WITH LLVM-exception + license_family: APACHE + run_exports: {} + size: 11880110 + timestamp: 1791934037580 - conda: https://conda.anaconda.org/conda-forge/linux-64/conda-gcc-specs-14.4.0-h611768e_7.conda sha256: ea4f824f54077a8d28f42165ba1120b7e93a82d6ee271b72f59b05c2585f6233 md5: 523b1c52d7fc3e8ceb126352f1874c6d @@ -3863,9 +3941,31 @@ packages: run_exports: {} size: 5332602 timestamp: 1790138476788 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-bindings-13.4.4-py314hf3b331d_0.conda - sha256: a6d4881fa943437377a8cb797358c80ced88f092d820bbffda9e83148af588c3 - md5: 962de8d5b8fd3323100712f095c9a9af +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-bindings-12.9.9-py314hf3783bd_1.conda + sha256: 795f1eaf47e414a5ddde6fe170bb7eb5a2e8ede87491e512d9c75e1a4e379ff4 + md5: 0404b0f857e6bac25ba1b0caf1bcbd09 + depends: + - python + - cuda-pathfinder >=1.5.5,<2 + - cuda-version >=12,<13.0a0 + - cuda-nvrtc >=12,<13.0a0 + - cuda-nvcc-impl >=12,<13.0a0 + - libcufile >=1,<2.0a0 + - libnvjitlink >=12.3,<13 + - libstdcxx >=15 + - libgcc >=15 + - __glibc >=2.17,<3.0.a0 + - python_abi 3.14.* *_cp314 + constrains: + - cuda-cudart >=12,<13.0a0 + - libnvfatbin >=12,<13.0a0 + license: LicenseRef-NVIDIA-SOFTWARE-LICENSE + run_exports: {} + size: 5332469 + timestamp: 1792724955677 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-bindings-13.5.0-py314hf3b331d_0.conda + sha256: c4f625d63054ac7115bd74f36d39ff424f5ec65f0a67278091deaf2ead23dbff + md5: cf29cd4d44e067118d2bbb1321e42286 depends: - python - cuda-pathfinder >=1.5.5,<2 @@ -3883,8 +3983,8 @@ packages: - cuda-cudart >=13,<14.0a0 license: LicenseRef-NVIDIA-SOFTWARE-LICENSE run_exports: {} - size: 5312924 - timestamp: 1792600873913 + size: 6823586 + timestamp: 1793910315167 - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-crt-tools-12.9.86-ha770c72_2.conda sha256: 2da9964591af14ba11b2379bed01d56e7185260ee0998d1a939add7fb752db45 md5: 503a94e20d2690d534d676a764a1852c @@ -3895,16 +3995,16 @@ packages: run_exports: {} size: 29138 timestamp: 1753975252445 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-crt-tools-13.4.92-ha770c72_0.conda - sha256: 505d9de6a596af0cdc913163f06d6ee495c2ff03dae1a0218203f68c67d38a04 - md5: 9c6f5d8209847f2adaeaa9f9797194df +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-crt-tools-13.5.37-ha770c72_0.conda + sha256: c93747a282cf91b3c3ec963e42c5689e4dbc8e7947b76534afd44e7a7189d732 + md5: 652ebf938c9b4965d7c9a77f0ebcb1a7 depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 31392 - timestamp: 1789621799072 + size: 35315 + timestamp: 1793849323039 - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-12.9.79-h5888daf_0.conda sha256: 57d1294ecfaf9dc8cdb5fc4be3e63ebc7614538bddb5de53cfd9b1b7de43aed5 md5: cb15315d19b58bd9cd424084e58ad081 @@ -3919,33 +4019,20 @@ packages: run_exports: {} size: 23242 timestamp: 1749218416505 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-13.4.92-hd2095e1_0.conda - sha256: 53a8bb880726bfdb202c73d87bd90c0cc7ae15fc03af9d7f96652d994758b6e0 - md5: 6bb47c0b1719d824ccbc6bc5095065f4 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-13.5.37-h393e864_0.conda + sha256: dd28fbbc10ff5923cb84a2bd411fcfde0a0f783d5814d389cf8ebf9c3cc11a6a + md5: 29e91900de19ab583fbaa0fec7707766 depends: - - __glibc >=2.17,<3.0.a0 - - cuda-cudart_linux-64 13.4.92 h9e77f9f_0 - - cuda-version >=13.4,<13.5.0a0 + - __glibc >=2.28,<3.0.a0 + - cuda-cudart_linux-64 13.5.37 h528332f_0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 24234 - timestamp: 1789613674738 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-13.4.92-hd2095e1_1.conda - sha256: 2672a4c726ae152cbd011533a3092f601f03314073ba65874d34ceb6b51a2d61 - md5: 3042de847b53d8a818d5be7380f2b3d0 - depends: - - __glibc >=2.17,<3.0.a0 - - cuda-cudart_linux-64 13.4.92 h9e77f9f_1 - - cuda-version >=13.4,<13.5.0a0 - - libgcc >=15 - - libstdcxx >=15 - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: {} - size: 24261 - timestamp: 1791918060137 + size: 27967 + timestamp: 1793838739307 - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-12.9.79-h5888daf_0.conda sha256: 04d8235cb3cb3510c0492c3515a9d1a6053b50ef39be42b60cafb05044b5f4c6 md5: ba38a7c3b4c14625de45784b773f0c71 @@ -3964,41 +4051,24 @@ packages: - cuda-cudart >=12.9.79,<13.0a0 size: 23687 timestamp: 1749218464010 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-13.4.92-hd2095e1_0.conda - sha256: 49938a72c447c61039122b6e278609c76337eb1688780ffab7950ea7befdf37d - md5: 3a7ccbdbbe663de79b2a2325280b05b2 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-13.5.37-h393e864_0.conda + sha256: f6033e69c021f1c5be9bc69eecf54240521338b8901d34589979bbbeadfa6658 + md5: 2ddacc186c5ad89849047eb6990ba5f1 depends: - - __glibc >=2.17,<3.0.a0 - - cuda-cudart 13.4.92 hd2095e1_0 - - cuda-cudart-dev_linux-64 13.4.92 h9e77f9f_0 - - cuda-cudart-static 13.4.92 hd2095e1_0 - - cuda-version >=13.4,<13.5.0a0 + - __glibc >=2.28,<3.0.a0 + - cuda-cudart 13.5.37 h393e864_0 + - cuda-cudart-dev_linux-64 13.5.37 h528332f_0 + - cuda-cudart-static 13.5.37 h393e864_0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: weak: - - cuda-cudart >=13.4.92,<14.0a0 - size: 24719 - timestamp: 1789613691099 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-13.4.92-hd2095e1_1.conda - sha256: 66c42f44f3ed0c3a5808e8b01c58878fc6f320b63d7bdc446a965556888dba0d - md5: 456e334d56cfae38659da009f8dcdb15 - depends: - - __glibc >=2.17,<3.0.a0 - - cuda-cudart 13.4.92 hd2095e1_1 - - cuda-cudart-dev_linux-64 13.4.92 h9e77f9f_1 - - cuda-cudart-static 13.4.92 hd2095e1_1 - - cuda-version >=13.4,<13.5.0a0 - - libgcc >=15 - - libstdcxx >=15 - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: - weak: - - cuda-cudart >=13.4.92,<14.0a0 - size: 24799 - timestamp: 1791918074095 + - cuda-cudart >=13.5.37,<14.0a0 + size: 28519 + timestamp: 1793838746726 - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-12.9.79-h5888daf_0.conda sha256: 6261e1d9af80e1ec308e3e5e2ff825d189ef922d24093beaf6efca12e67ce060 md5: d3c4ac48f4967f09dd910d9c15d40c81 @@ -4013,60 +4083,47 @@ packages: run_exports: {} size: 23283 timestamp: 1749218442382 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-13.4.92-hd2095e1_0.conda - sha256: 57b553f7dc0e4631f06e1e5f20ea2bc4be490e06aa82644f1486c23533764b0f - md5: a7ffb9c2eb9aa04458b9ec8e34b6a6ea +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-13.5.37-h393e864_0.conda + sha256: 03191c243d5308fe2346f03ff8f53b973257fa3d62730aba5db95fba1f3c9ecb + md5: 95b7e7630bddcee394292f9958ffe528 depends: - - __glibc >=2.17,<3.0.a0 - - cuda-cudart-static_linux-64 13.4.92 h9e77f9f_0 - - cuda-version >=13.4,<13.5.0a0 + - __glibc >=2.28,<3.0.a0 + - cuda-cudart-static_linux-64 13.5.37 h528332f_0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 24203 - timestamp: 1789613683675 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-13.4.92-hd2095e1_1.conda - sha256: c9733c366e0bf39aba805e4a1af73864ee1c8aa32636d78649ab5ed15a702a3e - md5: 0cbec9120f1ba047ff3fe4af49fcea2b - depends: - - __glibc >=2.17,<3.0.a0 - - cuda-cudart-static_linux-64 13.4.92 h9e77f9f_1 - - cuda-version >=13.4,<13.5.0a0 - - libgcc >=15 - - libstdcxx >=15 - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: {} - size: 24189 - timestamp: 1791918068720 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cuobjdump-13.4.92-hb047bc3_0.conda - sha256: 74eddd8c304e88ba627fdc29eabf426950c65422da7a6824b43d86cf13c870c9 - md5: f1b2a73aba64d3fb077883703756cfcb + size: 27924 + timestamp: 1793838744605 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cuobjdump-13.5.37-h0cf1943_0.conda + sha256: 356bc406dfa7d15a3cad295b3dd5c7e09e8312335364ada644dbadda9d5239cc + md5: 8a1499fbe211ad3e85a3fe9652075f6c depends: - - __glibc >=2.17,<3.0.a0 + - __glibc >=2.28,<3.0.a0 - cuda-nvdisasm - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 322447 - timestamp: 1789611786271 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cupti-13.4.92-h393e864_0.conda - sha256: 4b5cc84ba084a43b3f9ae6ef9999c09c85c64066a0813cf665345bb7d0c74259 - md5: b0ecf59b59f7a24bb8cbbfd52d4e8d96 + size: 272266 + timestamp: 1793831507353 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cupti-13.5.25-h393e864_0.conda + sha256: 7f98958cbcd971ef05f1be1e3fb227a2804296422be1478aac6f943ebe3351d6 + md5: 1958a353f44edecd272640c4011d08cf depends: - __glibc >=2.28,<3.0.a0 - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 1777363 - timestamp: 1789606115780 + size: 2030400 + timestamp: 1793830725469 - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvcc-impl-12.9.86-h85509e4_2.conda sha256: 961cf20d411b7685cd744e6c6ed35efea547d095c62151d6f3053d9931bb994d md5: 67458d2685e7503933efa550f3ee40f3 @@ -4102,14 +4159,14 @@ packages: run_exports: {} size: 27380012 timestamp: 1753975454194 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvcc-tools-13.4.92-hecca717_0.conda - sha256: 5b58c0d456930816ddba2839040b0515d22e58042b9f29534bac7ef4f981afe1 - md5: 90ddef96c1108366deb9ba9cd8cf0b40 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvcc-tools-13.5.37-hecca717_0.conda + sha256: 813c37b4aef3ad84cee8b95056ad1b03997047c0f0cbc5c4edd9ba1d1cf2f0db + md5: 82ea1589d209e847b36bcbb5367e4deb depends: - __glibc >=2.17,<3.0.a0 - - cuda-crt-tools 13.4.92 ha770c72_0 - - cuda-nvvm-tools 13.4.92 hb03c661_0 - - cuda-version >=13.4,<13.5.0a0 + - cuda-crt-tools 13.5.37 ha770c72_0 + - cuda-nvvm-tools 13.5.37 hb03c661_0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=14 - libstdcxx >=14 constrains: @@ -4117,21 +4174,21 @@ packages: license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 36620945 - timestamp: 1789621919256 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvdisasm-13.4.92-hb047bc3_0.conda - sha256: 1153425fb31512e2373fadbdc02a10e3fedfd4896d806193eb7aef967e9685e7 - md5: 07e196b9b18a30cb0b3e558498638c0b + size: 36081939 + timestamp: 1793849433760 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvdisasm-13.5.37-h0cf1943_0.conda + sha256: 3efcc1871e58190fdcf00b3bc29a703a0a87dc9b5a21c6d1b60ee96c88b9f2d5 + md5: 98d83792c8b7951a1ce6bbddac85fb8d depends: - - __glibc >=2.17,<3.0.a0 - - cuda-version >=13.4,<13.5.0a0 + - __glibc >=2.28,<3.0.a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 5124073 - timestamp: 1789606119127 + size: 5104925 + timestamp: 1793826268133 - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-12.9.86-hecca717_1.conda sha256: 68f81268c25befa9b70dc49af469ab0eb131960e3700b9a4edb46a32da343a28 md5: 53f0062e2243b26e43ddac0b5267c6a3 @@ -4145,31 +4202,19 @@ packages: run_exports: {} size: 67168282 timestamp: 1760723629347 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-13.4.92-hd2095e1_0.conda - sha256: 1b5e968f355a723c6376eff6f79a95d67bebca62a255a48198d381c5b1fb3637 - md5: 6e7f43cf3b30bb22c746782d939cfc75 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-13.5.37-h393e864_0.conda + sha256: 9b99f46f0c8b22623092c5376de8108f7e79aecd382fd2cad20357f74d138200 + md5: bc62c5acdbca3f34e4b64ba4286a87e6 depends: - - __glibc >=2.17,<3.0.a0 - - cuda-version >=13.4,<13.5.0a0 + - __glibc >=2.28,<3.0.a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 40891762 - timestamp: 1789606732241 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-13.4.92-hd2095e1_1.conda - sha256: 57319804ae25e7912180761325ca7ae016c8d6b2e4bc8435ae32545ecc744d6d - md5: f851f3ec1da56007ac2a527c9c47bb75 - depends: - - __glibc >=2.17,<3.0.a0 - - cuda-version >=13.4,<13.5.0a0 - - libgcc >=15 - - libstdcxx >=15 - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: {} - size: 40861730 - timestamp: 1791919218242 + size: 43928678 + timestamp: 1793827440017 - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-dev-12.9.86-hecca717_1.conda sha256: ae620051c16eabf7720a47c5115634d64f7703d32124555ad0afccfd4b8d7cf4 md5: 0d28090f4e63410e20397c7975612837 @@ -4188,77 +4233,49 @@ packages: - cuda-nvrtc >=12.9.86,<13.0a0 size: 36819 timestamp: 1760723845601 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-dev-13.4.92-hd2095e1_0.conda - sha256: 4212e2a97fa6173c95c0a54f6d2be6e006f047138920d2cd31a38bbcab152e65 - md5: 1b2ea7153a8d61acff6f026d97e0d4be +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-dev-13.5.37-h393e864_0.conda + sha256: 3b1d12b147dd3d5d7d1795b8035e936fc789cea80da012a7bf7771494c5e36de + md5: dad3464d390ad851f6facfd41bd03b5e depends: - - __glibc >=2.17,<3.0.a0 - - cuda-nvrtc 13.4.92 hd2095e1_0 - - cuda-version >=13.4,<13.5.0a0 + - __glibc >=2.28,<3.0.a0 + - cuda-nvrtc 13.5.37 h393e864_0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 constrains: - - cuda-nvrtc-static >=13.4.92 + - cuda-nvrtc-static >=13.5.37 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: weak: - - cuda-nvrtc >=13.4.92,<14.0a0 - size: 39261 - timestamp: 1789606830146 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-dev-13.4.92-hd2095e1_1.conda - sha256: 219e74a39c7cf28ece1812a464b9678ee03493a137f725846321d7558607b72b - md5: 4afc933b4cd0164a27a95996037e6142 - depends: - - __glibc >=2.17,<3.0.a0 - - cuda-nvrtc 13.4.92 hd2095e1_1 - - cuda-version >=13.4,<13.5.0a0 - - libgcc >=15 - - libstdcxx >=15 - constrains: - - cuda-nvrtc-static >=13.4.92 - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: - weak: - - cuda-nvrtc >=13.4.92,<14.0a0 - size: 39135 - timestamp: 1791919341732 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvtx-13.4.92-hd2095e1_0.conda - sha256: e2db90bf7b9fc2e3c62e2460495e841432be9baad183d121f89e2176b9501666 - md5: 65782de8669ee5d15deae629a6e00df2 + - cuda-nvrtc >=13.5.37,<14.0a0 + size: 43082 + timestamp: 1793827585357 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvtx-13.5.25-h393e864_0.conda + sha256: 691a521c0933e321457f8000050981ee6d954d14d4cc48af24c8de19141b61ba + md5: 3f9ab77608c52f1f8277498c4b71f65b depends: - - __glibc >=2.17,<3.0.a0 - - cuda-version >=13.4,<13.5.0a0 + - __glibc >=2.28,<3.0.a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 33044 - timestamp: 1789606110269 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-13.4.92-h69a702a_0.conda - sha256: bc06d579e9ce5ba8b1b85c9be9f5938f2962341a145bc7f6ae612028bd14e01a - md5: d157fe326ee607165acfbfd65e5c112e + size: 33860 + timestamp: 1793826241260 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-13.5.37-h69a702a_0.conda + sha256: daeae1b128d2d145ba2ea32d765ba233f8b47c5cad2faf2ad872dea321264154 + md5: ef4638491e71d097ae0ccb665e00a202 depends: - - cuda-nvvm-dev_linux-64 13.4.92.* - - cuda-nvvm-impl 13.4.92.* - - cuda-nvvm-tools 13.4.92.* + - cuda-nvvm-dev_linux-64 13.5.37.* + - cuda-nvvm-impl 13.5.37.* + - cuda-nvvm-tools 13.5.37.* license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 26192 - timestamp: 1789628110041 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-13.4.92-h69a702a_1.conda - sha256: b56e84b0c5ff2a24bbcf80e10adf670060b18297a4768c377ad5141a6994816c - md5: 333d434b7590b7da177f92c195816127 - depends: - - cuda-nvvm-dev_linux-64 13.4.92.* - - cuda-nvvm-impl 13.4.92.* - - cuda-nvvm-tools 13.4.92.* - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: {} - size: 26278 - timestamp: 1792180995966 + size: 26332 + timestamp: 1793856429826 - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-12.9.86-h4bc722e_2.conda sha256: f4d34556174e4faa9d374ba2244707082870e1bbc1bb441ad3d9d2cea37da6af md5: 82125dd3c0c4aa009faa00e2829b93d8 @@ -4271,18 +4288,18 @@ packages: run_exports: {} size: 21425520 timestamp: 1753975283188 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-13.4.92-hb03c661_0.conda - sha256: e4b00738683cf09489290718934bb4b05ba5e8db720f8e4e4a6ef19468e74ab2 - md5: 76e300ae92c07e9bc3a503b2d37d9996 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-13.5.37-hb03c661_0.conda + sha256: 3c254b3848271dd005a2bc70a1c143fc771a228fdc133447c1fb41782dc5bade + md5: 716f259daa4842c99e63b05df8831c56 depends: - __glibc >=2.17,<3.0.a0 - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=14 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 23220994 - timestamp: 1789621811068 + size: 24728001 + timestamp: 1793849327637 - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-12.9.86-h4bc722e_2.conda sha256: 45f5e881ed0d973132a5475a0b5c066db6e748ef3a831a14dba8374b252e0067 md5: f9af26e4079adcd72688a8e8dbecb229 @@ -4295,18 +4312,18 @@ packages: run_exports: {} size: 24246736 timestamp: 1753975332907 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-13.4.92-hb03c661_0.conda - sha256: 14f929d48d75040406b94238767b6ba9ecffc52868cd4c48c17e55ebb491f9c1 - md5: ccd172cfc6de8f133de24b9ad435e568 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-13.5.37-hb03c661_0.conda + sha256: 2eb90bb93878a7c4d36e132dc70fe3eb1a6ec2479d6ad3945be2e7cfda79cdf1 + md5: f6013fb58718a8220117b599fb07bb0c depends: - __glibc >=2.17,<3.0.a0 - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=14 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 31438390 - timestamp: 1789621846059 + size: 31281688 + timestamp: 1793849360057 - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-profiler-api-12.9.79-h7938cbb_1.conda sha256: 4f679dfbf2bf2d17abb507f31b0176c0e3572337b5005b9e36179948a53988ac md5: 90d09865fb37d11d510444e34ebe6a09 @@ -4318,17 +4335,17 @@ packages: run_exports: {} size: 23668 timestamp: 1761098836058 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-profiler-api-13.4.92-h7938cbb_0.conda - sha256: ffb3e9d6f01775f986e87eff96901ae6753d07b65612795149d6fe1bf9a6b918 - md5: 72d954dcb059383c207b3f33412ed27e +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-profiler-api-13.5.25-h7938cbb_0.conda + sha256: f46237ceb69ee8d5f5bc3df7e4bd9ca834420bacd5c5ed6a12af7d423fa0d11d + md5: a5619e40b36c7f824149169d6b122bcc depends: - cuda-cudart-dev - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 24906 - timestamp: 1789618194881 + size: 25028 + timestamp: 1793848601304 - conda: https://conda.anaconda.org/conda-forge/linux-64/cupy-14.2.0-py314h194295f_2.conda sha256: 8f96d5be9ef97b98410a4ab61c598589dde9fd62c17a876f9ba8ac48d590f683 md5: 2bad2506977605b0c562135463ded39d @@ -5361,20 +5378,78 @@ packages: - libcblas >=3.11.0,<4.0a0 size: 18250 timestamp: 1789061057597 -- conda: https://conda.anaconda.org/conda-forge/linux-64/libcublas-13.7.0.27-h393e864_0.conda - sha256: 54cde457f1eeeb52e44075d22b64605fb55f18be2b5a3938b5af5db6ee9307e2 - md5: d849e40f408bf2948bf5551e21730bb3 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libclang-cpp22.1-22.1.8-default_h0acdd01_11.conda + sha256: e7a3df524a2900677c460e8cd1407db8aabadc3d19e6a713a58a4f29b1d4bef7 + md5: eccc111e6808c3aa5dd458a448c597e6 + depends: + - __glibc >=2.17,<3.0.a0 + - libstdcxx >=15 + - libgcc >=15 + - libxml2 + - libxml2-16 >=2.15.4 + - zstd >=1.5.7,<1.6.0a0 + - libzlib >=1.3.2,<2.0a0 + - libllvm22 >=22.1.8,<22.2.0a0 + license: Apache-2.0 WITH LLVM-exception + license_family: APACHE + run_exports: + weak: + - libclang-cpp22.1 >=22.1.8,<22.2.0a0 + size: 24529645 + timestamp: 1791934037580 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libclang-cpp23.1-23.1.4-default_h0acdd01_1.conda + sha256: 93dde2595e2c339d687be470e1f458f7641a52bda06762055db19237cbf40fac + md5: c3831139a4d948c287b4336f1b2059fd + depends: + - __glibc >=2.17,<3.0.a0 + - libstdcxx >=15 + - libgcc >=15 + - libzlib >=1.3.2,<2.0a0 + - zstd >=1.5.7,<1.6.0a0 + - libxml2 + - libxml2-16 >=2.15.4 + - libllvm23 >=23.1.4,<23.2.0a0 + license: Apache-2.0 WITH LLVM-exception + license_family: APACHE + run_exports: + weak: + - libclang-cpp23.1 >=23.1.4,<23.2.0a0 + size: 25352611 + timestamp: 1793320134248 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libclang13-23.1.4-default_h6e6c352_1.conda + sha256: 0d973a298e2e9efb1f563e0e1f2a39cc7704c4393e1aad1128c95b9b85bff1d1 + md5: 2ed7cfa18d17f82b546ee2ed46bf2f7b + depends: + - libclang-cpp23.1 ==23.1.4 default_h0acdd01_1 + - __glibc >=2.17,<3.0.a0 + - libstdcxx >=15 + - libgcc >=15 + - libzlib >=1.3.2,<2.0a0 + - zstd >=1.5.7,<1.6.0a0 + - libxml2 + - libxml2-16 >=2.15.4 + - libllvm23 >=23.1.4,<23.2.0a0 + license: Apache-2.0 WITH LLVM-exception + license_family: APACHE + run_exports: + weak: + - libclang13 >=23.1.4 + size: 15440270 + timestamp: 1793320134248 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libcublas-13.10.0.20-h393e864_0.conda + sha256: 632d302910fb7d6f68f06eaafa5473629c669e18afa85480d44f66782a126399 + md5: 25f3786ee6937cb517065bacaadfd5a3 depends: - __glibc >=2.28,<3.0.a0 - cuda-nvrtc - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 413945708 - timestamp: 1789060078056 + size: 416667541 + timestamp: 1793856783950 - conda: https://conda.anaconda.org/conda-forge/linux-64/libcudnn-9.26.0.51-h8a19d09_1.conda sha256: 4e57d89e2ff544bb9dd384f2b93ab2a83465ce41aac6535e3de36df787b15d0e md5: 67b59ef78312da29aaa46aa3d9b23815 @@ -5412,19 +5487,19 @@ packages: run_exports: {} size: 62715991 timestamp: 1770671835770 -- conda: https://conda.anaconda.org/conda-forge/linux-64/libcufft-12.4.0.43-hd2095e1_0.conda - sha256: a1ddcadd2b8ff5f8faea8a88e534a03eeedc60fc9b30f979d6f74d7a70d96a3e - md5: c3c98e06e6175db8a255cd221d63530e +- conda: https://conda.anaconda.org/conda-forge/linux-64/libcufft-12.5.0.14-h393e864_0.conda + sha256: fe7f7539adac531141ba4d067653fe4ee1db7e8ba166d0a7fcf7fb2f1d4e487e + md5: 4db6d84857d6e4a80a8c732c0154b20a depends: - - __glibc >=2.17,<3.0.a0 - - cuda-version >=13.4,<13.5.0a0 + - __glibc >=2.28,<3.0.a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 128358863 - timestamp: 1789606140113 + size: 131549156 + timestamp: 1793826884750 - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.14.1.1-hbc026e6_1.conda sha256: 5fa43e8a8d335fc0c3a6aeb2e7b0debc7d8495b8a60a56ac30f23b0e852ab74a md5: cab1818eada3952ed09c8dcbb7c26af7 @@ -5439,80 +5514,80 @@ packages: run_exports: {} size: 969845 timestamp: 1761098818759 -- conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.19.1.55-h63c01a6_0.conda - sha256: fc994de6871084dea809ec95103fbecf5ce385e6b0f0e63a828fe416165daf86 - md5: 8afff8d921690828f72a8a6daa59cd2d +- conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.20.0.107-h63c01a6_0.conda + sha256: 3898414ff755f882976449e8677517458fad2c637ead70828d03abfa6f1d5023 + md5: 65a81af50f78a21917f94e56e52821d7 depends: - __glibc >=2.28,<3.0.a0 - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 - rdma-core >=65.0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 1181393 - timestamp: 1789606467213 -- conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-dev-1.19.1.55-h393e864_0.conda - sha256: 338e7a32b73c3c18094f04540b44ceb67663d428c70bc45bb131dc54307891fe - md5: 458d85692498a049e51947887bd5f879 + size: 1203167 + timestamp: 1793825698223 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-dev-1.20.0.107-h393e864_0.conda + sha256: 2255076e2728afe8c64fd9702571cea1b9cbfdb35118fff0081503e1392ca12e + md5: 5eff647a347283e5fdbc4ec6dc02afdd depends: - __glibc >=2.28,<3.0.a0 - - cuda-version >=13.4,<13.5.0a0 - - libcufile 1.19.1.55 h63c01a6_0 + - cuda-version >=13.5,<13.6.0a0 + - libcufile 1.20.0.107 h63c01a6_0 - libgcc >=15 - libstdcxx >=15 constrains: - - libcufile-static >=1.19.1.55 + - libcufile-static >=1.20.0.107 license: LicenseRef-NVIDIA-End-User-License-Agreement run_exports: weak: - - libcufile >=1.19.1.55,<2.0a0 - size: 44669 - timestamp: 1789606486070 -- conda: https://conda.anaconda.org/conda-forge/linux-64/libcurand-10.4.4.72-h393e864_0.conda - sha256: 4ba24f402b546e40038d0ac2d4b04588e82bb9220d45f81922e40c5d236e09a1 - md5: 304573fc2ca85bc4404283b145cb7d81 + - libcufile >=1.20.0.107,<2.0a0 + size: 44878 + timestamp: 1793825707229 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libcurand-10.4.5.25-h393e864_0.conda + sha256: 229e080d84cd8293317205385bad1205b74db0df545e0a8d415847ff07496cbd + md5: 9aea1ca045ace288b397907016aa696a depends: - __glibc >=2.28,<3.0.a0 - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 44017988 - timestamp: 1789606135144 -- conda: https://conda.anaconda.org/conda-forge/linux-64/libcusolver-12.3.2.15-h393e864_0.conda - sha256: e621a19de1c81cc6f2d20bf63639e0e58145bffd4ccd516defefad5507c914bd - md5: ee2b10202efab252854ed12cbe627d44 + size: 42952183 + timestamp: 1793826258356 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libcusolver-12.4.1.2-h393e864_0.conda + sha256: f44832c31e4e7f440f70c91877e77922cf267b962dedb2a76becbe6eaa7bb474 + md5: 87e462ee9266e5a5e6ae43759716241d depends: - __glibc >=2.28,<3.0.a0 - - cuda-version >=13.4,<13.5.0a0 - - libcublas >=13.7.0.27,<13.8.0a0 - - libcusparse >=12.8.6.49,<12.9.0a0 + - cuda-version >=13.5,<13.6.0a0 + - libcublas + - libcusparse - libgcc >=15 - - libnvjitlink >=13.4.52,<14.0a0 + - libnvjitlink - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 212124698 - timestamp: 1789064577036 -- conda: https://conda.anaconda.org/conda-forge/linux-64/libcusparse-12.8.6.72-hd2095e1_0.conda - sha256: e0dd75af6806ac41ab759ea98c46ed2c4e8a74bcb61881e558469b847b2e2c0a - md5: 019e36b4aa18530d55562a191b81d2a2 + size: 254972649 + timestamp: 1793863745461 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libcusparse-12.9.4.2-h393e864_0.conda + sha256: c36fa3f3c085cabac50d7d799a3a2797c29bfd8bab9f7043e8690c38bc051c7d + md5: 3fef5cd9c3617e66517af6c518116ea7 depends: - - __glibc >=2.17,<3.0.a0 - - cuda-version >=13.4,<13.5.0a0 + - __glibc >=2.28,<3.0.a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - - libnvjitlink >=13.4.92,<14.0a0 + - libnvjitlink - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 160075271 - timestamp: 1789613901085 + size: 218591273 + timestamp: 1793836868988 - conda: https://conda.anaconda.org/conda-forge/linux-64/libdav1d7-1.5.4-hebe6cf0_4.conda sha256: 9d3d31b9549f76ab61e2678a22566e4342842f388ec6df4ac10aea3ae3526697 md5: ad38caba8fd619ac5e6d5fef0a6678cd @@ -5626,6 +5701,19 @@ packages: run_exports: {} size: 77893 timestamp: 1790346247149 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.9.0-hd2095e1_0.conda + sha256: 7b930a8b6bc6553cb754b4977a11f9c862c719a652fc2d128d89270992ce8beb + md5: 317ecabe4a58b3068c7958dc5eb89e43 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=15 + constrains: + - expat 2.9.0.* + license: MIT + license_family: MIT + run_exports: {} + size: 78894 + timestamp: 1793054221966 - conda: https://conda.anaconda.org/conda-forge/linux-64/libfabric-2.6.0-ha770c72_0.conda sha256: 45bb0eb92000a3f82555cc948013935aace8a1ea522b79700f58d3906c18e846 md5: b04e60c49d09399a009f3bb70bb53a23 @@ -6025,6 +6113,42 @@ packages: - liblapack >=3.11.0,<3.12.0a0 size: 18295 timestamp: 1789061064514 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libllvm22-22.1.8-h474f4eb_3.conda + sha256: 135b8b9bfed6a20cdbda657ddb4584d483203eb0e4c29e448a60d4bcc762f391 + md5: c927dba789a253045c0089cb25af44ac + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=15 + - libstdcxx >=15 + - libxml2 + - libxml2-16 >=2.15.4 + - libzlib >=1.3.2,<2.0a0 + - zstd >=1.5.7,<1.6.0a0 + license: Apache-2.0 WITH LLVM-exception + license_family: Apache + run_exports: + weak: + - libllvm22 >=22.1.8,<22.2.0a0 + size: 44629067 + timestamp: 1790110003063 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libllvm23-23.1.5-h474f4eb_0.conda + sha256: 9ab8b037a54db1abeb20f9a5e82e90a22f8a4b27094b599c04846ab58ed9a654 + md5: ed9777b6ef45514103feb5adcc4e58b1 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=15 + - libstdcxx >=15 + - libxml2 + - libxml2-16 >=2.15.4 + - libzlib >=1.3.2,<2.0a0 + - zstd >=1.5.7,<1.6.0a0 + license: Apache-2.0 WITH LLVM-exception + license_family: Apache + run_exports: + weak: + - libllvm23 >=23.1.5,<23.2.0a0 + size: 45069292 + timestamp: 1793798644563 - conda: https://conda.anaconda.org/conda-forge/linux-64/liblzma-5.8.3-hb03c661_1.conda sha256: 9787df8c22a59c9a70d3e5a10db9ad663485e75e9ccc3f09bd092cb7b95e0dab md5: 1390b7c5ac0b1d8e447bc5efa6d3c8c2 @@ -6100,31 +6224,19 @@ packages: - libnsl >=2.0.1,<2.1.0a0 size: 33731 timestamp: 1750274110928 -- conda: https://conda.anaconda.org/conda-forge/linux-64/libnvfatbin-13.4.92-hd2095e1_0.conda - sha256: 04f90f6f5f7b6742e55e59b43c720e268a126c9e41e916d62bcfdf3b29085934 - md5: 60da2fd1476ab05656620f5f98841b9c +- conda: https://conda.anaconda.org/conda-forge/linux-64/libnvfatbin-13.5.37-h393e864_0.conda + sha256: 91b6c8db44ebf365cabc2d2b809c6550b17bc418cfd8cc857f7b5ee4f5c8e897 + md5: 663e8d240d8bbed1d0d536e18e16b552 depends: - - __glibc >=2.17,<3.0.a0 - - cuda-version >=13.4,<13.5.0a0 + - __glibc >=2.28,<3.0.a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 471390 - timestamp: 1789606414385 -- conda: https://conda.anaconda.org/conda-forge/linux-64/libnvfatbin-13.4.92-hd2095e1_1.conda - sha256: 5b87bf6940fba461f7cea40422c9f94d2810e3f1a2fae21c8bf2d4acd54db325 - md5: e2cac273e90d61afcd4c4940c833c8ad - depends: - - __glibc >=2.17,<3.0.a0 - - cuda-version >=13.4,<13.5.0a0 - - libgcc >=15 - - libstdcxx >=15 - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: {} - size: 470847 - timestamp: 1791918029524 + size: 487593 + timestamp: 1793826271817 - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-12.9.86-hecca717_2.conda sha256: 3b1c851f4fc42d347ce1c1606bdd195343a47f121e0fceb7a1f1e5aa1d497da9 md5: 3461b0f2d5cbb7973d361f9e85241d98 @@ -6138,31 +6250,19 @@ packages: run_exports: {} size: 30515495 timestamp: 1760723776293 -- conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-13.4.92-hd2095e1_0.conda - sha256: 012e5d23799b63f4537baed0e9ec8a3dbdb834584275c00a8821d1cefe7abb02 - md5: c957b18c69a615602f25168465a27643 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-13.5.37-h393e864_0.conda + sha256: 55568e6d0c1874670460dea524aeb7a068abe7019905c13f6b5c30d78aa20e08 + md5: 715b30da39a2cea93a39ae391e900a81 depends: - - __glibc >=2.17,<3.0.a0 - - cuda-version >=13,<13.5.0a0 + - __glibc >=2.28,<3.0.a0 + - cuda-version >=13,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 32458616 - timestamp: 1789607057313 -- conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-13.4.92-hd2095e1_1.conda - sha256: 0505286a231e0f80ff9f594c4ff0ba2de64e894e14191447a28f11f04ea89eab - md5: 74c5eecbaadb9584ef44ed97b53244f6 - depends: - - __glibc >=2.17,<3.0.a0 - - cuda-version >=13,<13.5.0a0 - - libgcc >=15 - - libstdcxx >=15 - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: {} - size: 32432320 - timestamp: 1791919201214 + size: 35404609 + timestamp: 1793827447618 - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvptxcompiler-dev-12.9.86-ha770c72_2.conda sha256: 1e7a7b34f8639a5feb75ba864127059e4d83edfe1a516547f0dbb9941e7b8f8b md5: 3fd926c321c6dbf386aa14bd8b125bfb @@ -7194,6 +7294,19 @@ packages: - libuuid >=2.42.4,<3.0a0 size: 34442 timestamp: 1790121449161 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libuuid-2.42.4-hcfc3c73_1.conda + sha256: 0e2e8f2daa9306e67f046e31092d637431d8cf0a26c407ab22401d108c2d4631 + md5: d852293faea3c04a6e896b908b43aded + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=15 + license: BSD-3-Clause + license_family: BSD + run_exports: + weak: + - libuuid >=2.42.4,<3.0a0 + size: 36134 + timestamp: 1793891599274 - conda: https://conda.anaconda.org/conda-forge/linux-64/libuv-1.52.1-h280c20c_1.conda sha256: 67761d0206f84140047a367eaf9befe03a7e157a29ee25aee0047b40801cc6b6 md5: 01c4ed87826af55996768af6dbc936b4 @@ -7395,6 +7508,23 @@ packages: - libxkbcommon >=1.13.2,<2.0a0 size: 942571 timestamp: 1787178780572 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libxml2-16-2.15.4-hbdfff7e_1.conda + sha256: 642d5d650a5f877a13ca60b720ae88643a145a30fb7a1065fd96c370595a5e2c + md5: 36e109ff64ea3bc459fdf0bfad9dd21b + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=15 + - libiconv >=1.18,<2.0a0 + - liblzma >=5.8.3,<6.0a0 + - libzlib >=1.3.2,<2.0a0 + constrains: + - icu <0.0a0 + - libxml2 2.15.4 + license: MIT + license_family: MIT + run_exports: {} + size: 566161 + timestamp: 1791465627683 - conda: https://conda.anaconda.org/conda-forge/linux-64/libxml2-16-2.15.4-hf3af7cc_0.conda sha256: 9a1685c8d8b8488cd7882a9cd6e673e687211ca763ebbcd1e91b6f594eeadc45 md5: b7545c57a73a51d72aa6eee5695cf051 @@ -7452,6 +7582,26 @@ packages: - libxml2-16 >=2.15.4 size: 47077 timestamp: 1788635202698 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libxml2-2.15.4-ha7a5771_1.conda + sha256: ef0f51a53d5f5d8a0aa8a71115a36b1bb3cd3ac95d65ced2cbfec7f1f08229b0 + md5: 7c2fba53903a27aeb56a410a9510774b + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=15 + - libiconv >=1.18,<2.0a0 + - liblzma >=5.8.3,<6.0a0 + - libxml2-16 2.15.4 hbdfff7e_1 + - libzlib >=1.3.2,<2.0a0 + constrains: + - icu <0.0a0 + license: MIT + license_family: MIT + run_exports: + weak: + - libxml2 + - libxml2-16 >=2.15.4 + size: 46856 + timestamp: 1791465632103 - conda: https://conda.anaconda.org/conda-forge/linux-64/libzlib-1.3.2-h25fd6f3_3.conda sha256: eb8a0db0aa570124f7d2a93d7c7f596e3390df5e047818d873baad32985fc736 md5: 0de0122d9570a8ab637c6b73db268389 @@ -8290,7 +8440,7 @@ packages: license: MIT license_family: MIT purls: - - pkg:pypi/rpds-py?source=compressed-mapping + - pkg:pypi/rpds-py?source=hash-mapping run_exports: {} size: 302823 timestamp: 1791202484532 @@ -8305,7 +8455,7 @@ packages: license: MIT license_family: MIT purls: - - pkg:pypi/ruamel-yaml-clib?source=hash-mapping + - pkg:pypi/ruamel-yaml-clib?source=compressed-mapping run_exports: {} size: 160103 timestamp: 1788881212732 @@ -8632,6 +8782,20 @@ packages: run_exports: {} size: 14755479 timestamp: 1792672505702 +- conda: https://conda.anaconda.org/conda-forge/linux-64/uv-0.13.7-h535ca38_0.conda + sha256: a3014d1c201d62e6192309d67ed50075ce492981b4721bd5b8e7cb222d0c257f + md5: 53bdba3e216e191f2f0ea261efc3c9c2 + depends: + - libgcc >=15 + - __glibc >=2.17,<3.0.a0 + - libstdcxx >=15 + - zstd >=1.5.7,<1.6.0a0 + constrains: + - __glibc >=2.17 + license: Apache-2.0 OR MIT + run_exports: {} + size: 14855143 + timestamp: 1793689081389 - conda: https://conda.anaconda.org/conda-forge/linux-64/wayland-1.26.0-hc1c935e_2.conda sha256: df65b987979e6d7f88e756494da5a230d4f2d08d17437d04eecd35559c3a04e4 md5: 88a47e22b53e50865b1cabe2eb648352 @@ -9161,15 +9325,89 @@ packages: license: MIT license_family: MIT purls: - - pkg:pypi/cffi?source=hash-mapping + - pkg:pypi/cffi?source=compressed-mapping run_exports: {} size: 329121 timestamp: 1788485263944 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/conda-gcc-specs-14.4.0-h3e66f51_7.conda - sha256: 5eaa6c10b373efe871b416e0aab7383066e6b7a968c8eb31a27da69e019ea40f - md5: 4ff552dcb4a49a0d3ba260286bccfb0f +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/clang-format-22-22.1.8-default_h01b09c7_11.conda + sha256: b6083aa547ccc005fd1e0c1e2bebcfc8a3228bc3c6cf8a64b46c2ef0c0ebfd46 + md5: 6eaed1de724c5e30c4cca4e8c8006f84 depends: - - gcc_impl_linux-aarch64 >=14.4.0,<14.4.1.0a0 + - libclang-cpp22.1 >=22.1.8,<22.2.0a0 + - libstdcxx >=15 + - libgcc >=15 + - libzlib >=1.3.2,<2.0a0 + - zstd >=1.5.7,<1.6.0a0 + - libxml2 + - libxml2-16 >=2.15.4 + - libllvm22 >=22.1.8,<22.2.0a0 + license: Apache-2.0 WITH LLVM-exception + license_family: APACHE + run_exports: {} + size: 77167 + timestamp: 1791933904710 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/clang-format-22.1.8-default_hd528a3d_11.conda + sha256: 6409974b931a64256f9c5c5040e98667e6a7bbe4ca0395f039380fe8430fe081 + md5: 739a6824d0fed6d57910e72e9e12d3d8 + depends: + - libclang-cpp22.1 >=22.1.8,<22.2.0a0 + - clang-format-22 ==22.1.8 default_h01b09c7_11 + - libstdcxx >=15 + - libgcc >=15 + - libzlib >=1.3.2,<2.0a0 + - zstd >=1.5.7,<1.6.0a0 + - libxml2 + - libxml2-16 >=2.15.4 + license: Apache-2.0 WITH LLVM-exception + license_family: APACHE + run_exports: {} + size: 33403 + timestamp: 1791933904710 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/clang-scan-deps-22.1.8-default_h01b09c7_11.conda + sha256: 9a1d540a99ad7d1e10e1275b5af9710a438d4dc9a98d0f4b711aa87c1ac4d9f8 + md5: 3b5ee7a802821420f6e2a4d442610e37 + depends: + - libclang13 >=22.1.8 + - libclang-cpp22.1 >=22.1.8,<22.2.0a0 + - libstdcxx >=15 + - libgcc >=15 + - libzlib >=1.3.2,<2.0a0 + - zstd >=1.5.7,<1.6.0a0 + - libxml2 + - libxml2-16 >=2.15.4 + - libllvm22 >=22.1.8,<22.2.0a0 + license: Apache-2.0 WITH LLVM-exception + license_family: APACHE + run_exports: {} + size: 123998 + timestamp: 1791933904710 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/clang-tools-22.1.8-default_h31a7d68_11.conda + sha256: 779cd87b1fea7c853931aa0a5187773d7c0ef0b9a0cebc4bcf87fd8913690039 + md5: 890a29ee33f7f704ca3b9c9b7a7905f5 + depends: + - clang-format ==22.1.8 default_hd528a3d_11 + - libclang13 >=22.1.8 + - clang-scan-deps ==22.1.8 default_h01b09c7_11 + - libclang-cpp22.1 >=22.1.8,<22.2.0a0 + - libstdcxx >=15 + - libgcc >=15 + - libzlib >=1.3.2,<2.0a0 + - zstd >=1.5.7,<1.6.0a0 + - libxml2 + - libxml2-16 >=2.15.4 + - libllvm22 >=22.1.8,<22.2.0a0 + constrains: + - clangdev ==22.1.8 + license: Apache-2.0 WITH LLVM-exception + license_family: APACHE + run_exports: {} + size: 12533489 + timestamp: 1791933904710 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/conda-gcc-specs-14.4.0-h3e66f51_7.conda + sha256: 5eaa6c10b373efe871b416e0aab7383066e6b7a968c8eb31a27da69e019ea40f + md5: 4ff552dcb4a49a0d3ba260286bccfb0f + depends: + - gcc_impl_linux-aarch64 >=14.4.0,<14.4.1.0a0 license: GPL-3.0-only WITH GCC-exception-3.1 license_family: GPL purls: [] @@ -9222,9 +9460,31 @@ packages: run_exports: {} size: 4912603 timestamp: 1790138481012 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-bindings-13.4.4-py314h8ac86d4_0.conda - sha256: 6072bd9dfe639c0319722e2833b88525bb538daeef3828043f0ef5a632f1e069 - md5: 7553ec3b2dabebaa1f177d79c69675ef +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-bindings-12.9.9-py314h73c45f8_1.conda + sha256: c37cc43a710769b315d596edbcd9894ccdff2d937e334df7b19ff187adc3abdd + md5: 7af42fb082abd6ab0626b15d1dcf5c4e + depends: + - python + - cuda-pathfinder >=1.5.5,<2 + - cuda-version >=12.2,<13.0a0 + - cuda-nvrtc >=12,<13.0a0 + - cuda-nvcc-impl >=12,<13.0a0 + - libcufile >=1,<2.0a0 + - libnvjitlink >=12.3,<13 + - libstdcxx >=15 + - libgcc >=15 + - python 3.14.* *_cp314 + - python_abi 3.14.* *_cp314 + constrains: + - cuda-cudart >=12,<13.0a0 + - libnvfatbin >=12,<13.0a0 + license: LicenseRef-NVIDIA-SOFTWARE-LICENSE + run_exports: {} + size: 4912553 + timestamp: 1792724909207 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-bindings-13.5.0-py314h8ac86d4_0.conda + sha256: 80d37e97d6d08a42b203e42d5dd93b6f71d8f8b321acd103e3147640580ecb3c + md5: 6315f439a1c49172f2ca1032648355c2 depends: - python - cuda-pathfinder >=1.5.5,<2 @@ -9235,15 +9495,15 @@ packages: - libcudla >=13.0,<14.0a0 - libnvfatbin >=13.0,<14.0a0 - libnvjitlink >=13.0,<14.0a0 - - libstdcxx >=15 - libgcc >=15 + - libstdcxx >=15 - python_abi 3.14.* *_cp314 constrains: - cuda-cudart >=13,<14.0a0 license: LicenseRef-NVIDIA-SOFTWARE-LICENSE run_exports: {} - size: 4901057 - timestamp: 1792693939581 + size: 5989677 + timestamp: 1793910244179 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-crt-tools-12.9.86-h579c4fd_2.conda sha256: dad493fdcef9a5b84269bdd22b5dfbe73300d99057f2fc1a1ad1114a944167c7 md5: 6f66ef2abe496ac82066ea6b9f33ab90 @@ -9255,17 +9515,17 @@ packages: run_exports: {} size: 29186 timestamp: 1753975202369 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-crt-tools-13.4.92-h579c4fd_0.conda - sha256: 212d675bab35a0a4abf13b3f0df9e543d4052638ff50fcefef4474eab8083115 - md5: 935fff735a8726cb249c739ca79c0d3e +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-crt-tools-13.5.37-h579c4fd_0.conda + sha256: 5d3fc13495536babce5ff39825481d40b9a81e74c9c54dbfdc237a0b861d7c98 + md5: 7d36fd67abda474ca55b149bcb6afb78 depends: - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 31207 - timestamp: 1789621818430 + size: 35156 + timestamp: 1793849351365 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-12.9.79-h3ae8b8a_0.conda sha256: 3d6699fc27ffabf28a9d359b48e7b88437e4d945844718a58608627998db5d1b md5: df78e19e5fe656631d1470aa0fcf6ced @@ -9280,33 +9540,21 @@ packages: run_exports: {} size: 23466 timestamp: 1749218349235 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-13.4.92-hae6cbe8_0.conda - sha256: 06f6668cd5c070629ca715b04437b19141faa766f4d55a9858dc4c2cc0d6f963 - md5: 66098da0435510950e3b3ba27f87b19d +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-13.5.37-hc1d3098_0.conda + sha256: e463423e2147d5d371d12a4d9508bf1076423dbfd359cf3ab5c15bcb960e6de6 + md5: ca04ac62dd83eae809009d54c19c2ec9 depends: + - __glibc >=2.28,<3.0.a0 - arm-variant * sbsa - - cuda-cudart_linux-aarch64 13.4.92 hae6cbe8_0 - - cuda-version >=13.4,<13.5.0a0 + - cuda-cudart_linux-aarch64 13.5.37 hf3a43d7_0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 24420 - timestamp: 1789613707699 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-13.4.92-hae6cbe8_1.conda - sha256: 770b6d73c8f2b20eddd8e670079b93245d58fb613c6a377bc612be221c41c3de - md5: b104d84fca7f8253c40aa5120906e050 - depends: - - arm-variant * sbsa - - cuda-cudart_linux-aarch64 13.4.92 hae6cbe8_1 - - cuda-version >=13.4,<13.5.0a0 - - libgcc >=15 - - libstdcxx >=15 - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: {} - size: 24455 - timestamp: 1791918095186 + size: 28169 + timestamp: 1793838811578 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-12.9.79-h3ae8b8a_0.conda sha256: d70f85411992e03494f2fe94a9852d79f366a92f40ba791611eda5551044afe9 md5: d58cc487273764a11637456c06399ff0 @@ -9325,41 +9573,25 @@ packages: - cuda-cudart >=12.9.79,<13.0a0 size: 23911 timestamp: 1749218369632 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-13.4.92-hae6cbe8_0.conda - sha256: f7e9012a91f13310f9f2d82e9872a3c95feb268929197850849ee1dd281576f2 - md5: 7ed822aff3e57b107443927157bf83a2 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-13.5.37-hc1d3098_0.conda + sha256: e510eb31173c012b055701eb59c6b823a0e6e10b3344f4197de6080f32f8aaeb + md5: 222e112fa2909819e05588d748deb4f6 depends: + - __glibc >=2.28,<3.0.a0 - arm-variant * sbsa - - cuda-cudart 13.4.92 hae6cbe8_0 - - cuda-cudart-dev_linux-aarch64 13.4.92 hae6cbe8_0 - - cuda-cudart-static 13.4.92 hae6cbe8_0 - - cuda-version >=13.4,<13.5.0a0 + - cuda-cudart 13.5.37 hc1d3098_0 + - cuda-cudart-dev_linux-aarch64 13.5.37 hf3a43d7_0 + - cuda-cudart-static 13.5.37 hc1d3098_0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: weak: - - cuda-cudart >=13.4.92,<14.0a0 - size: 24906 - timestamp: 1789613723829 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-13.4.92-hae6cbe8_1.conda - sha256: 77beb9c91a07a21147541d229c8fce9b69513e8e0c1049bbdfb0c1c36d837533 - md5: 259c69ef83a5920548a789672ac479c7 - depends: - - arm-variant * sbsa - - cuda-cudart 13.4.92 hae6cbe8_1 - - cuda-cudart-dev_linux-aarch64 13.4.92 hae6cbe8_1 - - cuda-cudart-static 13.4.92 hae6cbe8_1 - - cuda-version >=13.4,<13.5.0a0 - - libgcc >=15 - - libstdcxx >=15 - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: - weak: - - cuda-cudart >=13.4.92,<14.0a0 - size: 24850 - timestamp: 1791918109321 + - cuda-cudart >=13.5.37,<14.0a0 + size: 28647 + timestamp: 1793838822881 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-12.9.79-h3ae8b8a_0.conda sha256: dac33edcebbf557563a41521f67961039186efbc276903d937b32243ef3be937 md5: 365adcddf99b81eb323698fda31d507c @@ -9374,53 +9606,42 @@ packages: run_exports: {} size: 23507 timestamp: 1749218358755 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-13.4.92-hae6cbe8_0.conda - sha256: 5ed96adcf4542a70e4a7b0c899c3c1804a3fd3ce3996deae031d439152b41dc0 - md5: 9eae9fe5c7438b7f9d0f2243e534460b +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-13.5.37-hc1d3098_0.conda + sha256: 3358a2cad488eafc6fa53e67f8e3e07616046e8396452a43ec534851cf3e8d63 + md5: 13c3913c4963a1dcb24ea13459a6c31a depends: + - __glibc >=2.28,<3.0.a0 - arm-variant * sbsa - - cuda-cudart-static_linux-aarch64 13.4.92 hae6cbe8_0 - - cuda-version >=13.4,<13.5.0a0 + - cuda-cudart-static_linux-aarch64 13.5.37 hf3a43d7_0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 24336 - timestamp: 1789613715481 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-13.4.92-hae6cbe8_1.conda - sha256: d40d5ba6da848b01c1595cda45505651069c98669fde4725b8c4eb87d66b50e3 - md5: c02b4368963fd077341a2f3f48563400 - depends: - - arm-variant * sbsa - - cuda-cudart-static_linux-aarch64 13.4.92 hae6cbe8_1 - - cuda-version >=13.4,<13.5.0a0 - - libgcc >=15 - - libstdcxx >=15 - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: {} - size: 24414 - timestamp: 1791918102674 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cuobjdump-13.4.92-h4259b1c_0.conda - sha256: be9b588f4cb4a0b0a92d6614efb52bc73e7a7636085166b8e173a68fad0d5b45 - md5: 9445138d2bf5215aedabb64004611ba5 + size: 28150 + timestamp: 1793838818169 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cuobjdump-13.5.37-hd7b48eb_0.conda + sha256: ed92cc70d89bd97c8a6d338fee0599d867323e331a0fcb293a5fda736a020376 + md5: d22581068592fefd06ae5ecbc72c866e depends: + - __glibc >=2.28,<3.0.a0 - cuda-nvdisasm - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 327963 - timestamp: 1789611805379 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cupti-13.4.92-hc1d3098_0.conda - sha256: 5f8569acdebf5b60a4a7aa9be9ef129b7689f5e3f322f2c81ce6d04a86ef6472 - md5: 3c255abecdd6a264fc9c51fadb3ef76d + size: 325069 + timestamp: 1793831526230 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cupti-13.5.25-hc1d3098_0.conda + sha256: d897d79a3d17bc5ce423b8ca36b555220728cd3498c27aecc5e1e56b42e0349a + md5: 2c2262c1b97e238f7a70ecbe80b23915 depends: - __glibc >=2.28,<3.0.a0 - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 constrains: @@ -9428,8 +9649,8 @@ packages: license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 1615767 - timestamp: 1789606162816 + size: 1836599 + timestamp: 1793830742052 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvcc-impl-12.9.86-h614329b_2.conda sha256: 60ca00b86a28f3f1abd080df6685c415a51f9a0267e65b3a56783b9b97265486 md5: 7ad15773a6b7617fb36cc3d92034f3e9 @@ -9466,14 +9687,14 @@ packages: run_exports: {} size: 23974390 timestamp: 1753975366926 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvcc-tools-13.4.92-h8f3c8d4_0.conda - sha256: 47b337bfc80435425d04baeff2d6fb6463dd9412e130b714461a3871c4dd127c - md5: 78bc61649a0f0a4a27936eab3b3d4acc +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvcc-tools-13.5.37-h8f3c8d4_0.conda + sha256: 130b46cf2ac75012df36920fb8c1daef5fa0843ac6c4d7e99bb7ad425296e2f2 + md5: ff70d033d01c7f2a3c06d1c5801a29a9 depends: - arm-variant * sbsa - - cuda-crt-tools 13.4.92 h579c4fd_0 - - cuda-nvvm-tools 13.4.92 hbe86820_0 - - cuda-version >=13.4,<13.5.0a0 + - cuda-crt-tools 13.5.37 h579c4fd_0 + - cuda-nvvm-tools 13.5.37 hbe86820_0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=14 - libstdcxx >=14 constrains: @@ -9481,14 +9702,15 @@ packages: license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 32303046 - timestamp: 1789621924502 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvdisasm-13.4.92-h98f1979_0.conda - sha256: c3ed0c78f8a8fe35cb51b74961dde10e4817b3d1180b2b506888b15002e7aec1 - md5: a214e60e37161c0661af759e73ba2adf + size: 31695934 + timestamp: 1793849472558 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvdisasm-13.5.37-h13100b1_0.conda + sha256: 854c1d06b0475837ed2d38e95b2d3819efc972d3d44b7da482587e7b17d2ec95 + md5: 8d16009a0eb890c758aae826c3e9007a depends: + - __glibc >=2.28,<3.0.a0 - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 constrains: @@ -9496,8 +9718,8 @@ packages: license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 5092218 - timestamp: 1789606142324 + size: 5062577 + timestamp: 1793826262565 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-12.9.86-h8f3c8d4_1.conda sha256: e7f8d835d7bf993dcad9fba6db5af89c35b2b4f0282799b729bf6ad2c3bd896d md5: 48187c09673a42f9930764e8170b8787 @@ -9511,31 +9733,20 @@ packages: run_exports: {} size: 33382016 timestamp: 1760723722396 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-13.4.92-hae6cbe8_0.conda - sha256: cc793d547aecbed3042b9ec21492b41ba880588d175fee54b53698a359e42d55 - md5: e38ef9000b5d1d306d63cac489db3f9b +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-13.5.37-hc1d3098_0.conda + sha256: 4993514da21c14a2e325e75cf4c51ef2b7eed7c63e8512913ee6784715dd30cd + md5: 492e71116a8dd8cda8e70a58b5510f00 depends: + - __glibc >=2.28,<3.0.a0 - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 39026820 - timestamp: 1789606765991 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-13.4.92-hae6cbe8_1.conda - sha256: c43853c59e2b6894489aae23a552e313e37687b3aca709e9d5f8ddb10b8e3554 - md5: d79160de33f2098808a6069a885b72ac - depends: - - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 - - libgcc >=15 - - libstdcxx >=15 - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: {} - size: 39027767 - timestamp: 1791919196421 + size: 42444638 + timestamp: 1793827474130 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-dev-12.9.86-h8f3c8d4_1.conda sha256: b1d1a74cbbdcf46c4ee737279df3220eb7a29393999bc96b3c1398f7de78c912 md5: 2346ee558cbfb7b857c8353ffc2553fa @@ -9555,49 +9766,33 @@ packages: - cuda-nvrtc >=12.9.86,<13.0a0 size: 36250 timestamp: 1760723865518 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-dev-13.4.92-hae6cbe8_0.conda - sha256: 0374b04a2c88a5dc7c66787ee09c67ad83160076ef5faeda5425ac209d9ee8a0 - md5: a21d44425c73060f71a739faf1f0e373 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-dev-13.5.37-hc1d3098_0.conda + sha256: d9740e2b0cfd8adaa66ec58912893635d152a46d12db85a1c3728b82bfec2c99 + md5: d893fb13ea4a19b7b9a18836baebb662 depends: + - __glibc >=2.28,<3.0.a0 - arm-variant * sbsa - - cuda-nvrtc 13.4.92 hae6cbe8_0 - - cuda-version >=13.4,<13.5.0a0 + - cuda-nvrtc 13.5.37 hc1d3098_0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 constrains: - arm-variant * sbsa - - cuda-nvrtc-static >=13.4.92 + - cuda-nvrtc-static >=13.5.37 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: weak: - - cuda-nvrtc >=13.4.92,<14.0a0 - size: 39133 - timestamp: 1789606900425 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-dev-13.4.92-hae6cbe8_1.conda - sha256: 6eb1b25932421a1f2448088e41ae99cd0707b9745f2c85d0c0e4c1469da96f38 - md5: c796f4e54351b72c9ebd277e2b30d97c - depends: - - arm-variant * sbsa - - cuda-nvrtc 13.4.92 hae6cbe8_1 - - cuda-version >=13.4,<13.5.0a0 - - libgcc >=15 - - libstdcxx >=15 - constrains: - - arm-variant * sbsa - - cuda-nvrtc-static >=13.4.92 - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: - weak: - - cuda-nvrtc >=13.4.92,<14.0a0 - size: 39155 - timestamp: 1791919300033 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvtx-13.4.92-hae6cbe8_0.conda - sha256: 9f5109e2bc0858a43e313f5b56f79814c8bb4f5abcba95103b34293a5a10f84c - md5: 202521274c2f3708cd4978e2b9ace814 + - cuda-nvrtc >=13.5.37,<14.0a0 + size: 43093 + timestamp: 1793827607415 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvtx-13.5.25-hc1d3098_0.conda + sha256: 61ed8dc5d6c3c37b27c5b263d1d4e35a21efc453ad1bebab837ee9fb694d08eb + md5: d3b19724d98bebccf0148bdd08d30c35 depends: + - __glibc >=2.28,<3.0.a0 - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 constrains: @@ -9605,31 +9800,20 @@ packages: license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 34144 - timestamp: 1789606149138 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-13.4.92-he9431aa_0.conda - sha256: fee7c55fbbfd6dbee7525f77331fd79b781b173ffd667633032933f9ab086deb - md5: d97d1d82d4870667de075b4296533c3d + size: 35004 + timestamp: 1793826346509 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-13.5.37-he9431aa_0.conda + sha256: 630ed02369066e0eb189e2ecb997bf3e12522b20143960e19c4cbb78d929382f + md5: 9dfd45c73d661c543308bacd1634f0cd depends: - - cuda-nvvm-dev_linux-aarch64 13.4.92.* - - cuda-nvvm-impl 13.4.92.* - - cuda-nvvm-tools 13.4.92.* + - cuda-nvvm-dev_linux-aarch64 13.5.37.* + - cuda-nvvm-impl 13.5.37.* + - cuda-nvvm-tools 13.5.37.* license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 26203 - timestamp: 1789628130654 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-13.4.92-he9431aa_1.conda - sha256: b835df7c790cc0d60be31a870348173dca3ef6d73c7c8d8a679fa062ab7b8764 - md5: 0d49e36b65fd93fcfcba7614ed92dafb - depends: - - cuda-nvvm-dev_linux-aarch64 13.4.92.* - - cuda-nvvm-impl 13.4.92.* - - cuda-nvvm-tools 13.4.92.* - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: {} - size: 26382 - timestamp: 1792181032938 + size: 26275 + timestamp: 1793856449267 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-12.9.86-h7b14b0b_2.conda sha256: 100accfc6f608004ddef4b9004ee5179eddbac19e7d5c4c7bd5e6e8b71bd7c5d md5: 8e9fceb7b677be7107cc9c20f8d71d86 @@ -9642,18 +9826,18 @@ packages: run_exports: {} size: 21601172 timestamp: 1753975236344 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-13.4.92-hbe86820_0.conda - sha256: 098874e5c49fc5b15a6adf24e9f74c3c3a931acd35a0e5c8e586b81e07e38562 - md5: 22593909df4c2df690fe87b717caed69 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-13.5.37-hbe86820_0.conda + sha256: 9a07c9f0bb6ffe247568ab1257753472f2ea56c79b8a1e873ae482f906eb925b + md5: 19175674c2ffc7a605c64d54334dcb34 depends: - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=14 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 22024730 - timestamp: 1789621833954 + size: 23917690 + timestamp: 1793849359950 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-12.9.86-h7b14b0b_2.conda sha256: f5cf91e491e150e37cd224fa648c07f6b1cd2cbfee5affba10625df7ba0b0425 md5: 9a35dcda5573a713183f5159ec282364 @@ -9666,18 +9850,18 @@ packages: run_exports: {} size: 24411824 timestamp: 1753975273689 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-13.4.92-hbe86820_0.conda - sha256: c0e336db6fc4d4472aee0d9468596b1401e6be2f67bf225ff13150f18098069d - md5: 7c32a2cd7a126359a6b4e73073d424ab +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-13.5.37-hbe86820_0.conda + sha256: 08f4649fb4e147ac750d1a855fac53622a2944f23ccf3ded212021a9ec088cee + md5: 7f1c00619360960850a3abd2695eae11 depends: - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=14 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 29595859 - timestamp: 1789621862164 + size: 29506302 + timestamp: 1793849395707 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-12.9.79-h16bee8c_1.conda sha256: 6fa8a4d4548b114acd3c9849b65b5d9fcf1ca8f39cd2b792ce5167a51955100c md5: 875bfddc9855f12e9f518ef8e44c2d85 @@ -9690,20 +9874,20 @@ packages: run_exports: {} size: 23784 timestamp: 1761098779882 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-13.4.92-h16bee8c_0.conda - sha256: 54d56df54a2b86a58fe012c6246a0dc3446e6c31badeb08786edfb3dca65a536 - md5: e1bc0b155d82fbe81806e84f91ea3409 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-13.5.25-h16bee8c_0.conda + sha256: b31855288813515362c06b79c98af4e63d72fcec8206da711e5d52f7a0384246 + md5: 898922904a11a76741c38b06f553883c depends: - arm-variant * sbsa - cuda-cudart-dev - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 constrains: - arm-variant * sbsa license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 24888 - timestamp: 1789618201879 + size: 25092 + timestamp: 1793848625476 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cupy-14.2.0-py314h4dc59ae_2.conda sha256: 5468d2baba4d35be2e4ea892eb3fc487920366c55f41d064100c289256f25e7b md5: aeffabc13aa324a1b2b65ccefc87bb8e @@ -10612,14 +10796,69 @@ packages: - libcblas >=3.11.0,<4.0a0 size: 18126 timestamp: 1789060984048 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcublas-13.7.0.27-hc1d3098_0.conda - sha256: be6e353d24ff9089a3ff9af0e6e55f5fde2853b7ea32c1a8ab6052f99f2b09c6 - md5: 87239c6045d3240754663a9b738c7ca8 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libclang-cpp22.1-22.1.8-default_h01b09c7_11.conda + sha256: ae31071580766e5b46423b46095430015b9cf10347c26abfebd29787ccfb8bfa + md5: 8677afd2444c3197599405be03f294b9 + depends: + - libstdcxx >=15 + - libgcc >=15 + - libzlib >=1.3.2,<2.0a0 + - zstd >=1.5.7,<1.6.0a0 + - libxml2 + - libxml2-16 >=2.15.4 + - libllvm22 >=22.1.8,<22.2.0a0 + license: Apache-2.0 WITH LLVM-exception + license_family: APACHE + run_exports: + weak: + - libclang-cpp22.1 >=22.1.8,<22.2.0a0 + size: 24845286 + timestamp: 1791933904710 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libclang-cpp23.1-23.1.4-default_h01b09c7_1.conda + sha256: e10bf8ecfa70105613e7667fe760fe62527e47353d128efab816dd9be1ca5580 + md5: d8b2d4fa2fb4f8ae3062a14120eee1b6 + depends: + - libstdcxx >=15 + - libgcc >=15 + - libzlib >=1.3.2,<2.0a0 + - libxml2 + - libxml2-16 >=2.15.4 + - zstd >=1.5.7,<1.6.0a0 + - libllvm23 >=23.1.4,<23.2.0a0 + license: Apache-2.0 WITH LLVM-exception + license_family: APACHE + run_exports: + weak: + - libclang-cpp23.1 >=23.1.4,<23.2.0a0 + size: 25745744 + timestamp: 1793320081850 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libclang13-23.1.4-default_h807fe02_1.conda + sha256: d7d6078247b209e6101d38fe2f4c7e0978dc59b20d91c2cf5860d2fca0d801d6 + md5: e2cf0e2eeb6e2797151e9ea43a602de6 + depends: + - libclang-cpp23.1 ==23.1.4 default_h01b09c7_1 + - libstdcxx >=15 + - libgcc >=15 + - libzlib >=1.3.2,<2.0a0 + - libxml2 + - libxml2-16 >=2.15.4 + - zstd >=1.5.7,<1.6.0a0 + - libllvm23 >=23.1.4,<23.2.0a0 + license: Apache-2.0 WITH LLVM-exception + license_family: APACHE + run_exports: + weak: + - libclang13 >=23.1.4 + size: 15693821 + timestamp: 1793320081850 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcublas-13.10.0.20-hc1d3098_0.conda + sha256: 0c1fc9c3f22c85f0803846ef658cde6b0aa7bd054845fc02b3906bcc20346743 + md5: 6c61edf1a91c26db3caff67e7b780baf depends: - __glibc >=2.28,<3.0.a0 - arm-variant * sbsa - cuda-nvrtc - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 constrains: @@ -10627,19 +10866,20 @@ packages: license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 528084048 - timestamp: 1789060123445 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcudla-13.4.92-h4154aff_1.conda - sha256: 1dd5c8a7686fb94adbb27581761b30ab3cab8c08128c78259bd673330acb8d43 - md5: a906ff84ca4793fe5e08ca8a1f8ac0b3 + size: 534502461 + timestamp: 1793856819000 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcudla-13.5.25-h4d4540f_0.conda + sha256: e1f06e7ab78bf5ec271132b4b81ec1f5322031deb2f75dc45e924810a34ccf41 + md5: e3e68d651da47f3a405f907616791e7e depends: - - cuda-version >=13.4,<13.5.0a0 + - __glibc >=2.28,<3.0.a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 license: LicenseRef-NVIDIA-End-User-License-Agreement run_exports: {} - size: 41371 - timestamp: 1791918069249 + size: 39015 + timestamp: 1793826271231 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcudnn-9.26.0.51-hbf3bfcb_1.conda sha256: 0885902b1d2d1025d3f787c0d41275153568d630524da2b4acafdc2700be8cfd md5: 72bf1312a79e82fec6d9e72e1b65ed44 @@ -10679,12 +10919,13 @@ packages: run_exports: {} size: 62631375 timestamp: 1770671821410 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufft-12.4.0.43-hae6cbe8_0.conda - sha256: 157956f9b5c2a45bf16371d87357580306a94657095bf67bf01262eefe8295e8 - md5: 2007bec409253b57b29881f4bde9654e +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufft-12.5.0.14-hc1d3098_0.conda + sha256: 79c390ecf7d18d3d55aaa0ade8f009194efcab7dc04f49c01d4b3c1597d1614a + md5: 0708c40617ef6ab5bdd75dde1c7e7475 depends: + - __glibc >=2.28,<3.0.a0 - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 constrains: @@ -10692,8 +10933,8 @@ packages: license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 128459721 - timestamp: 1789606201027 + size: 131780902 + timestamp: 1793826886842 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.14.1.1-had8bf56_1.conda sha256: fbc1fa6b3ddf946b2999c9820310682739505df71e1e2ac513a72efb951fa3e5 md5: ee136db5a5409dddc78eaf7658fccffe @@ -10709,13 +10950,13 @@ packages: run_exports: {} size: 909365 timestamp: 1761098964619 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.19.1.55-hc7dfe37_0.conda - sha256: e7a507becf5e8fd3752cd7a6780b08259d38ca2b4f008e7056fee342f83f098c - md5: 1dc4a11faea48e96b3196be81f053e20 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.20.0.107-hc7dfe37_0.conda + sha256: 3c03b96625dedc0111443eeffcb4bee33356130329ef9fa662dddcdc1e5645d1 + md5: 9e0d1e5a29ed1544cd36a275ad99bd89 depends: - __glibc >=2.28,<3.0.a0 - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 - rdma-core >=65.0 @@ -10724,34 +10965,34 @@ packages: license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 1044986 - timestamp: 1789606504154 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-dev-1.19.1.55-hc1d3098_0.conda - sha256: 02d75b13e84b97bc36ae336692b724af992235d6ee64eb6c8084001cf7d5ff56 - md5: 49ce45f74acb3deae6c406b2d6ad6307 + size: 1059844 + timestamp: 1793825723426 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-dev-1.20.0.107-hc1d3098_0.conda + sha256: 6ac41942a2c89f31f9bce97b944f9748ba1d4516f393b849cc16904a3ff54966 + md5: 1e46aa87f12eeee4e2b4a3d1b40bc4df depends: - __glibc >=2.28,<3.0.a0 - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 - - libcufile 1.19.1.55 hc7dfe37_0 + - cuda-version >=13.5,<13.6.0a0 + - libcufile 1.20.0.107 hc7dfe37_0 - libgcc >=15 - libstdcxx >=15 constrains: - arm-variant * sbsa - - libcufile-static >=1.19.1.55 + - libcufile-static >=1.20.0.107 license: LicenseRef-NVIDIA-End-User-License-Agreement run_exports: weak: - - libcufile >=1.19.1.55,<2.0a0 - size: 44942 - timestamp: 1789606522891 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcurand-10.4.4.72-hc1d3098_0.conda - sha256: 14cda898674c3039e43a35ecee5440a31b85d0ea71cb15e4f0c36958308e6e1d - md5: b8c4f833e9cfde44f051687de1a1dabb + - libcufile >=1.20.0.107,<2.0a0 + size: 45199 + timestamp: 1793825735414 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcurand-10.4.5.25-hc1d3098_0.conda + sha256: a8f1f6cf5f9c8da0b2b005c47c80058969ef38afe60d019e6cb726bb7d501802 + md5: 5d6c396461ce2ebc01a1e625a8de30cd depends: - __glibc >=2.28,<3.0.a0 - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 constrains: @@ -10759,43 +11000,44 @@ packages: license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 44324919 - timestamp: 1789606156738 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcusolver-12.3.2.15-hc1d3098_0.conda - sha256: 001b17958e8311906197e12440058e24b6132ad894bbbad18076b8fa2d71349a - md5: d66a63181adb996c9bbd5606f2e49d5f + size: 43251776 + timestamp: 1793826308536 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcusolver-12.4.1.2-hc1d3098_0.conda + sha256: 5c401c7c5436a702fadd7aa164fc3fbc8a9e75d7b7c06deabdcee0239a7fbfc5 + md5: cca8525e49fcdb581095e148dda6ea9c depends: - __glibc >=2.28,<3.0.a0 - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 - - libcublas >=13.7.0.27,<13.8.0a0 - - libcusparse >=12.8.6.49,<12.9.0a0 + - cuda-version >=13.5,<13.6.0a0 + - libcublas + - libcusparse - libgcc >=15 - - libnvjitlink >=13.4.52,<14.0a0 + - libnvjitlink - libstdcxx >=15 constrains: - arm-variant * sbsa license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 228400877 - timestamp: 1789064621245 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcusparse-12.8.6.72-hae6cbe8_0.conda - sha256: bd16e9756da87cad9e20182fb452254a8d093553e2435065dd0f4ba8d33b96d1 - md5: 30e51dd0c7693ca39a24752a49d9ee13 + size: 284730794 + timestamp: 1793863745357 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcusparse-12.9.4.2-hc1d3098_0.conda + sha256: 7ba7a566d832e6ecb13c3ccb179287d7bee2dd00e0cdfb2db1c176b260622887 + md5: 293aca9bccfa726fbfdd14af0cb986bc depends: + - __glibc >=2.28,<3.0.a0 - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - - libnvjitlink >=13.4.92,<14.0a0 + - libnvjitlink - libstdcxx >=15 constrains: - arm-variant * sbsa license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 176547821 - timestamp: 1789613927842 + size: 218538167 + timestamp: 1793836944280 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libdav1d7-1.5.4-h29ee22c_4.conda sha256: 8f4fc8d985a23357ab4cf70522eaadfe252197b61867e992bdc01508cc90a7fe md5: 104c03155aeec0a067c6fc8dc02d5154 @@ -10901,6 +11143,18 @@ packages: run_exports: {} size: 79463 timestamp: 1790346233159 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libexpat-2.9.0-h4154aff_0.conda + sha256: d3327ab1086334309cab3cf533c95f70c44dcbb8f66a99a92b23fb0f3f20f1da + md5: cb3ce9ae94bc74f792c119312e03bcf7 + depends: + - libgcc >=15 + constrains: + - expat 2.9.0.* + license: MIT + license_family: MIT + run_exports: {} + size: 80340 + timestamp: 1793054214232 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libfabric-2.6.0-h8af1aa0_0.conda sha256: b0a8c7e03897b28b5d18afe3d2a81d22db665cfbc60db580c6d5a5ec2701b832 md5: d22c0987ebdad5301396bf8bf2003d17 @@ -11258,6 +11512,40 @@ packages: - liblapack >=3.11.0,<3.12.0a0 size: 18185 timestamp: 1789060988481 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libllvm22-22.1.8-h680871c_3.conda + sha256: ce3b3adf238db44eb054e70f7f82f5959598542b2c31161bb89fb537d15084c9 + md5: beab24b90346fbbfe8e15af32bf77ef0 + depends: + - libgcc >=15 + - libstdcxx >=15 + - libxml2 + - libxml2-16 >=2.15.4 + - libzlib >=1.3.2,<2.0a0 + - zstd >=1.5.7,<1.6.0a0 + license: Apache-2.0 WITH LLVM-exception + license_family: Apache + run_exports: + weak: + - libllvm22 >=22.1.8,<22.2.0a0 + size: 45140222 + timestamp: 1790106063856 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libllvm23-23.1.5-h680871c_0.conda + sha256: fc290d5795cd007a36dd92963fd96f6ae4e88b64873bf20b396b851ca942d994 + md5: a543e0eb99345cf23f740a9dec8f858d + depends: + - libgcc >=15 + - libstdcxx >=15 + - libxml2 + - libxml2-16 >=2.15.4 + - libzlib >=1.3.2,<2.0a0 + - zstd >=1.5.7,<1.6.0a0 + license: Apache-2.0 WITH LLVM-exception + license_family: Apache + run_exports: + weak: + - libllvm23 >=23.1.5,<23.2.0a0 + size: 45808823 + timestamp: 1793748202548 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/liblzma-5.8.3-he30d5cf_1.conda sha256: f760669fd1cea27f689f411c0d5488e26ce50e382c9b63e4ad348f959850124a md5: e0e6411a60d00186eec7c73f4118ab67 @@ -11330,12 +11618,13 @@ packages: - libnsl >=2.0.1,<2.1.0a0 size: 34831 timestamp: 1750274211000 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvfatbin-13.4.92-hae6cbe8_0.conda - sha256: c6c3f53749a6d97d7ac11af3db202baebd7a66c05e5e451626d9aaf4bf083335 - md5: e74dbc480a19dfd0b459b5e6ccdffb2e +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvfatbin-13.5.37-hc1d3098_0.conda + sha256: af4476bdf0c37ce5780b9a676a8f4045774088989298cd6db1891f8d84928c8a + md5: 11845e653de3e016f3fa88936484b726 depends: + - __glibc >=2.28,<3.0.a0 - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 constrains: @@ -11343,22 +11632,8 @@ packages: license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 459532 - timestamp: 1789606465889 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvfatbin-13.4.92-hae6cbe8_1.conda - sha256: c05c26fc853311d9b472051d1b70f600290786d72fcfbff53299b497a590a9d4 - md5: bca9b99119adee7c2fc4b2f8b8f10409 - depends: - - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 - - libgcc >=15 - - libstdcxx >=15 - constrains: - - arm-variant * sbsa - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: {} - size: 459437 - timestamp: 1791918066854 + size: 490333 + timestamp: 1793826306991 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-12.9.86-h8f3c8d4_2.conda sha256: d5ff36f46250069a23b18d557052c6656f40a002333885e8c5332071e873b48e md5: e318a6573fea150226d5f417d1c0807a @@ -11372,12 +11647,13 @@ packages: run_exports: {} size: 30323952 timestamp: 1760723774770 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-13.4.92-hae6cbe8_0.conda - sha256: 94dcf7a6fed2a2a35d102818bf4c542f19705543f0d57d98171938b52f0cf289 - md5: c4e8598eeec3a6c7a20d98e76ca1dc12 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-13.5.37-hc1d3098_0.conda + sha256: 48496e9772754713f6596e0cb03dbe90a0aca17a7a36bd371b80ba61d23685c6 + md5: cecb3997ae27e053384bef873afcad88 depends: + - __glibc >=2.28,<3.0.a0 - arm-variant * sbsa - - cuda-version >=13,<13.5.0a0 + - cuda-version >=13,<13.6.0a0 - libgcc >=15 - libstdcxx >=15 constrains: @@ -11385,22 +11661,8 @@ packages: license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 30910418 - timestamp: 1789607078708 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-13.4.92-hae6cbe8_1.conda - sha256: 4e41ac1c68f295b0383f23cc6e891129cc6fec9bddc0db1f546fe6d5052477f0 - md5: 75e14b47789a15e3af40663210613d77 - depends: - - arm-variant * sbsa - - cuda-version >=13,<13.5.0a0 - - libgcc >=15 - - libstdcxx >=15 - constrains: - - arm-variant * sbsa - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: {} - size: 30911372 - timestamp: 1791919238753 + size: 34126178 + timestamp: 1793827434689 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvptxcompiler-dev-12.9.86-h579c4fd_2.conda sha256: 20cc92d163571b6d67efcfcb05dec042916219f29846152fdb696d499fa9fade md5: 096a5f4ddc263418d1b8160413a16c61 @@ -12335,6 +12597,18 @@ packages: - libuuid >=2.42.4,<3.0a0 size: 36296 timestamp: 1790121454455 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libuuid-2.42.4-hd6fdeab_1.conda + sha256: 66d4d6201d52b4e3679dcfcc73658902a1cfb1a096f9d72a7b2d93d78e13948a + md5: 394dc5a24e06bdea0b41389d1eee9a23 + depends: + - libgcc >=15 + license: BSD-3-Clause + license_family: BSD + run_exports: + weak: + - libuuid >=2.42.4,<3.0a0 + size: 37956 + timestamp: 1793891605926 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libuv-1.52.1-h80f16a2_1.conda sha256: 52f4bc6e340bde53bfe38e45f6cb1080a2d5f8891da9a647087f7cc6a6edfc22 md5: 8e2136432f02841b9d8b848045f66d7d @@ -12485,6 +12759,22 @@ packages: - libxkbcommon >=1.13.2,<2.0a0 size: 984153 timestamp: 1787178819842 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libxml2-16-2.15.4-h183574b_1.conda + sha256: 935a9ee7eedc0e79b0eb3243fa1d1070fa981f37a492dea3f898ecb49e17ae09 + md5: bef66bb00b0a18c129dedf0dee250e28 + depends: + - libgcc >=15 + - libiconv >=1.18,<2.0a0 + - liblzma >=5.8.3,<6.0a0 + - libzlib >=1.3.2,<2.0a0 + constrains: + - icu <0.0a0 + - libxml2 2.15.4 + license: MIT + license_family: MIT + run_exports: {} + size: 629268 + timestamp: 1791465615450 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libxml2-16-2.15.4-h2e5089f_0.conda sha256: 58bf7fcf64bae7f624a5e2aed860ddea614a8ec13c8c43fe150420a275b8bdb5 md5: 01dc16e9c00110df9c4197f8ffbab206 @@ -12539,6 +12829,25 @@ packages: - libxml2-16 >=2.15.4 size: 48693 timestamp: 1788635159263 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libxml2-2.15.4-ha1111c9_1.conda + sha256: 4d2fb77baf134ca2c4ba0c4ad760ff59f9c968aecbb7be7bbd530bd175e33953 + md5: 1ae53d1478445d9f49f3e23e3fc24314 + depends: + - libgcc >=15 + - libiconv >=1.18,<2.0a0 + - liblzma >=5.8.3,<6.0a0 + - libxml2-16 2.15.4 h183574b_1 + - libzlib >=1.3.2,<2.0a0 + constrains: + - icu <0.0a0 + license: MIT + license_family: MIT + run_exports: + weak: + - libxml2 + - libxml2-16 >=2.15.4 + size: 48626 + timestamp: 1791465618975 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libzlib-1.3.2-hdc9db2a_3.conda sha256: 76efa6cc9d7e6f5ee3bbca0939f64054af2bdfb3c3632531f8e633cf6c2ea41e md5: bd534c2fbe56d8c2ea3b2d8f5e12bca8 @@ -13314,7 +13623,7 @@ packages: license: MIT license_family: MIT purls: - - pkg:pypi/ruamel-yaml-clib?source=hash-mapping + - pkg:pypi/ruamel-yaml-clib?source=compressed-mapping run_exports: {} size: 151286 timestamp: 1788882471972 @@ -13629,6 +13938,19 @@ packages: run_exports: {} size: 14411564 timestamp: 1792672542028 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/uv-0.13.7-h779c035_0.conda + sha256: 998533e9479fb1478d674a95ad9fc9e3170d9fcc4b150e3b28003b097a408b2a + md5: cefd4c0fba2e7a6e4fb01082ebbec392 + depends: + - libstdcxx >=15 + - libgcc >=15 + - zstd >=1.5.7,<1.6.0a0 + constrains: + - __glibc >=2.17 + license: Apache-2.0 OR MIT + run_exports: {} + size: 14511868 + timestamp: 1793689082823 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/wayland-1.26.0-h637a836_2.conda sha256: 0692327145e39b3484382c2b069003b08398e961575bb6d35d3246f1cafa5d58 md5: cee65dc8a90933553988b50f5a03079a @@ -14139,6 +14461,24 @@ packages: run_exports: {} size: 131396 timestamp: 1792483552251 +- conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-h4c7d964_0.conda + sha256: f1d280d2618de987204102090e83733089c092dc2dd45686fd3dcbe809034f6a + md5: ea9dc39dcd2815202749c1e5bc2a8973 + depends: + - __win + license: ISC + run_exports: {} + size: 130423 + timestamp: 1792772460189 +- conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-hbd8a1cb_0.conda + sha256: 95619b9c1184be7175392eeb0ee7eeb5ccf25d280951f4225f2d62e725790be3 + md5: 3fd02989038a1e1cee627c14c2d73f29 + depends: + - __unix + license: ISC + run_exports: {} + size: 130057 + timestamp: 1792772446739 - conda: https://conda.anaconda.org/conda-forge/noarch/cachecontrol-0.14.4-pyha770c72_0.conda sha256: cca3a26282a5bc37a10afb1aa2006a21c45033cbc4ff012f9501f56f2a115c12 md5: 13bdbb9b693b29134c56a9a00c23de41 @@ -14249,16 +14589,16 @@ packages: run_exports: {} size: 1150650 timestamp: 1746189825236 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-13.3.4.3.1-ha770c72_0.conda - sha256: 7e1ce635233921776d7bf4770507b3321de7c13e7b18212246088bfa6d042a33 - md5: cbb113d16fb31c3b86a81aa27ce98ba1 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-13.3.5.0.6-ha770c72_0.conda + sha256: a162d42741acb027157fa22063afa2e8e24e6b9f14fc7c1b6241b3a00848a63c + md5: fe4482d2d355c616912e3f800e2070c1 depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 1662856 - timestamp: 1789608402063 + size: 1760270 + timestamp: 1793830695675 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-12.9.27-h579c4fd_0.conda sha256: b4efaee8fa95b9ec97a462dc343914a138ece704895e33caa52ac55968f7adfa md5: 71e4d87a72bf003bd05f05a502288b2a @@ -14270,17 +14610,17 @@ packages: run_exports: {} size: 1149299 timestamp: 1746189919921 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-13.3.4.3.1-h579c4fd_0.conda - sha256: b8e94a8ab98c079c1999c3518ac6b3f4345dfb03c9dd10f0e7e09dee13b56503 - md5: 58cd3032f52d14c4b40e5be9b7716cbe +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-13.3.5.0.6-h579c4fd_0.conda + sha256: 437947642f680eab6677e8126b4b50bff1699f3186d40eefce1ec470c3d94145 + md5: b37fdb300dfdf9f089da9b5594a2e26b depends: - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 1660118 - timestamp: 1789608426183 + size: 1765124 + timestamp: 1793830718683 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-12.9.27-h57928b3_0.conda sha256: 681eb1d9afd596e04329a82b04734c0e37c6ecb94b3380f3a378d61983e2a8cc md5: 8f897dca7111f3bb4ded97ba6947b186 @@ -14291,16 +14631,16 @@ packages: run_exports: {} size: 1139649 timestamp: 1746189858434 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-13.3.4.3.1-h57928b3_0.conda - sha256: 2c1106ec2a6d44e4da8aa9ea0cec7cd2dd5e546d8dee3be87ec6cd1a759df560 - md5: 8e12329998fa601a84fae659b8a9daa4 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-13.3.5.0.6-h57928b3_0.conda + sha256: f11573fcea1cc6e843c111cebf0a843add26d3e0e93998c245c334bbce373d15 + md5: 0091c6d17c1912d501765bd489247fa8 depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 1645698 - timestamp: 1789608426235 + size: 1745417 + timestamp: 1793830698082 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-12.9.86-ha770c72_2.conda sha256: e6257534c4b4b6b8a1192f84191c34906ab9968c92680fa09f639e7846a87304 md5: 79d280de61e18010df5997daea4743df @@ -14311,16 +14651,16 @@ packages: run_exports: {} size: 94239 timestamp: 1753975242354 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-13.4.92-ha770c72_0.conda - sha256: c466ea01fc6a29a92178de0c3863bd87dd983fe3d9924031968f03993d31061a - md5: 50edc5671fa8afa45d12858d03b9317c +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-13.5.37-ha770c72_0.conda + sha256: bfb36c4eef0080c54c5a2ab8167bfdd7f81f99d2b31c1abc65268d39cad96eec + md5: eebaa40289b272cfe3d3fb464d9cde26 depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 120631 - timestamp: 1789621795566 + size: 127886 + timestamp: 1793849321971 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-12.9.86-h579c4fd_2.conda sha256: 1db1f3ff4b0f445ce4064eb323733f7612ce28bc879dd6849e162b1504b7474a md5: 86be43a4154301b74f823bc6fe476629 @@ -14332,17 +14672,17 @@ packages: run_exports: {} size: 94794 timestamp: 1753975199249 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-13.4.92-h579c4fd_0.conda - sha256: 3c5f5a9127e11aabbc2687d7baa4632282e679c2082a1e33fa2ded94df6ad3e7 - md5: b414b5c79800b8a851c1c47219ff3646 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-13.5.37-h579c4fd_0.conda + sha256: 413e1082c9d49b55bb50d256ab5d26c1d679f9ddec6ce22bf9d6b346e20c57c6 + md5: 250a3b106ab799f9d40351ec21383181 depends: - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 120832 - timestamp: 1789621817409 + size: 128095 + timestamp: 1793849350210 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-12.9.86-h57928b3_2.conda sha256: 2fccde18cafec3cdb6697f37c576567ac623dc69531e2a81bbc83d8a86a82d1f md5: 569c55bd368307e48191a2ed54c64428 @@ -14353,18 +14693,18 @@ packages: run_exports: {} size: 95452 timestamp: 1753975640812 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-13.4.92-h57928b3_0.conda - sha256: b589344ee13b60ddcd3e22a95e182f47bd3ba8aca7de3cd5507d24dda94294e8 - md5: ae321b42ec9f8402a91de767a9994075 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-13.5.37-h57928b3_0.conda + sha256: c6775c54acf219d1cd1c546cd497190f1ab493568a6f2470f8959e535713e60c + md5: 899177b5d9bf53d525c31cc468c02537 depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 constrains: - cuda-crt-dev_win-arm64 <0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 121099 - timestamp: 1789621789772 + size: 128488 + timestamp: 1793849338690 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-12.9.79-h3f2d84a_0.conda sha256: ffe86ed0144315b276f18020d836c8ef05bf971054cf7c3eb167af92494080d5 md5: 86e40eb67d83f1a58bdafdd44e5a77c6 @@ -14380,35 +14720,21 @@ packages: - cuda-cudart >=12.9.79,<13.0a0 size: 389140 timestamp: 1749218427266 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-13.4.92-h9e77f9f_0.conda - sha256: 45d34a14f307564c50d1c79576044704b74f602b83dfe1e53a90d18a082e3dc9 - md5: 17a1f0386fa11248e53dfa22d7d207fe +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-13.5.37-h528332f_0.conda + sha256: ef926bc9b35be692843c7eae9b6c8cfed9dbcd47ac3cb25b6eda18a40cdcf84c + md5: cb645f45e80f8464a37f525667a2700d depends: - cuda-cccl_linux-64 - cuda-cudart-static_linux-64 - cuda-cudart_linux-64 - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: weak: - - cuda-cudart >=13.4.92,<14.0a0 - size: 416061 - timestamp: 1789613678504 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-13.4.92-h9e77f9f_1.conda - sha256: b57e47ceaa7a3ddfc578f03c1856cd02008f95bf633332a8e53bf9287a8702c7 - md5: 5f9ffe3ad903033e93e98d78f16378be - depends: - - cuda-cccl_linux-64 - - cuda-cudart-static_linux-64 - - cuda-cudart_linux-64 - - cuda-version >=13.4,<13.5.0a0 - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: - weak: - - cuda-cudart >=13.4.92,<14.0a0 - size: 414750 - timestamp: 1791918064480 + - cuda-cudart >=13.5.37,<14.0a0 + size: 424774 + timestamp: 1793838742641 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-12.9.79-h3ae8b8a_0.conda sha256: ad64a1ecfc933172dbc6407d71b1abb78dc7ffcd5cc871baee238350307a7c0c md5: 60e07c05a51d5549bec1e7ee38849feb @@ -14425,40 +14751,25 @@ packages: - cuda-cudart >=12.9.79,<13.0a0 size: 388797 timestamp: 1749218354725 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-13.4.92-hae6cbe8_0.conda - sha256: 1764436ff98d0c03834a1e487b612203e027673016eb6d2771d6c79554c69686 - md5: f1f2c60c443fdeb43c08bca1755889e6 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-13.5.37-hf3a43d7_0.conda + sha256: 395efd05dd36ef0b0fb177fd71a73374d55e04271ea118ffc81ea9b1e0a5cf37 + md5: a491e68fef34137dc1a989a787b9d6fa depends: - arm-variant * sbsa - cuda-cccl_linux-aarch64 - cuda-cudart-static_linux-aarch64 - cuda-cudart_linux-aarch64 - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: weak: - - cuda-cudart >=13.4.92,<14.0a0 - size: 415739 - timestamp: 1789613711959 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-13.4.92-hae6cbe8_1.conda - sha256: 12ec82791e888381c91313d665ecc46df601341636e9b058cf3cabb03c5f6096 - md5: 36d5fad84dbeb187005f085d9daeb8c4 - depends: - - arm-variant * sbsa - - cuda-cccl_linux-aarch64 - - cuda-cudart-static_linux-aarch64 - - cuda-cudart_linux-aarch64 - - cuda-version >=13.4,<13.5.0a0 - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: - weak: - - cuda-cudart >=13.4.92,<14.0a0 - size: 414595 - timestamp: 1791918098639 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-12.9.79-he0c23c2_0.conda - sha256: e022d36a333420130faf6473c49f8dab54bf976cf320577ffb06db0a0797b734 - md5: 3c3e2f6b5455783fd332a072d632ea78 + - cuda-cudart >=13.5.37,<14.0a0 + size: 424984 + timestamp: 1793838814099 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-12.9.79-he0c23c2_0.conda + sha256: e022d36a333420130faf6473c49f8dab54bf976cf320577ffb06db0a0797b734 + md5: 3c3e2f6b5455783fd332a072d632ea78 depends: - cuda-cccl_win-64 - cuda-cudart-static_win-64 @@ -14471,31 +14782,19 @@ packages: - cuda-cudart >=12.9.79,<13.0a0 size: 1190184 timestamp: 1749218971019 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-13.4.92-hac47afa_0.conda - sha256: 4abfcaa5ebdbbea0f0ad192b8b921190ed1ed1224f5a24120101c1cf85bd0e53 - md5: 26491aad3f51d28aae17df60869e9e48 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-13.5.37-hac47afa_0.conda + sha256: 606e842e9792e22ab2015cfa499a6555c5185b0f60641b3afcf9cd016f34f2a6 + md5: f74ec7dce121f61219a0ba093262b145 depends: - cuda-cccl_win-64 - cuda-cudart-static_win-64 - cuda-cudart_win-64 - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 1668588 - timestamp: 1789613696484 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-13.4.92-hac47afa_1.conda - sha256: 5fe763d0bfd19a7c122cae5eee218f7a8276763417b7116250bcfd161f9f7595 - md5: cbc8db11f210a9af642c8a82fc3d0efa - depends: - - cuda-cccl_win-64 - - cuda-cudart-static_win-64 - - cuda-cudart_win-64 - - cuda-version >=13.4,<13.5.0a0 - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: {} - size: 1672429 - timestamp: 1791918060378 + size: 1644692 + timestamp: 1793838779656 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-12.9.79-h3f2d84a_0.conda sha256: d435f8a19b59b52ce460ee3a6bfd877288a0d1d645119a6ba60f1c3627dc5032 md5: b87bf315d81218dd63eb46cc1eaef775 @@ -14506,25 +14805,16 @@ packages: run_exports: {} size: 1148889 timestamp: 1749218381225 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-13.4.92-h9e77f9f_0.conda - sha256: 94c734267a05fa6b0112799f168cc301b24202d2aa86c3316ba62a35ccad0d67 - md5: 36eb8b22fd38769be7a5562d40c7c53f +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-13.5.37-h528332f_0.conda + sha256: bce31f6f68dcb7d40a99cdebf4da574000f01c4d61e5e2b0948061efcbdf475e + md5: 2295e382e56fcdd44710eefa0388d40a depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 1249118 - timestamp: 1789613660480 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-13.4.92-h9e77f9f_1.conda - sha256: e51d1a571b02b1a427d16e2dc0c135a682900007e26d9d717e79bab0c58e4571 - md5: e6bd43601eb40f4330a934dc77f7d62c - depends: - - cuda-version >=13.4,<13.5.0a0 - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: {} - size: 1244417 - timestamp: 1791918050319 + size: 1231982 + timestamp: 1793838734706 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-12.9.79-h3ae8b8a_0.conda sha256: d4be038bad9abf0eac1e88dc57c8db6a469db8eb5d7c281085dfbb018ef84212 md5: 52498fedeb43bbd4c45f84a0fb722d21 @@ -14536,27 +14826,17 @@ packages: run_exports: {} size: 1152498 timestamp: 1749218333554 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-13.4.92-hae6cbe8_0.conda - sha256: 0b4f17267acbbff21198b7e82beba325aa4c90a44c7e0072ac59f0ec1b023206 - md5: cdfaf6ce08218553ea3a366f6c378351 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-13.5.37-hf3a43d7_0.conda + sha256: af7f2e6f10b5b22a461cd45673d4ad06a688a078e4b59f5684643a09e048ad24 + md5: 3585230ab125bc36a051a41c8442abe3 depends: - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 1245773 - timestamp: 1789613695146 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-13.4.92-hae6cbe8_1.conda - sha256: 9b7dff56b77ac18628f75cccb4dc7b940ff790e65f1def546facd73ffa726f5e - md5: 148d6b955ea3e7ec16d3e0e46de5c8f1 - depends: - - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: {} - size: 1242539 - timestamp: 1791918083843 + size: 1244121 + timestamp: 1793838802355 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-12.9.79-he0c23c2_0.conda sha256: 6a3410cd7ce07955cb705801055ef129ebee1cd6390c6fe9e5f607b67c3dba36 md5: 0dd152a1493d90356037604a865f050f @@ -14567,25 +14847,16 @@ packages: run_exports: {} size: 354611 timestamp: 1749218544740 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-13.4.92-hac47afa_0.conda - sha256: d64581ee7532b872a77b285c5dd374a75b76ac765546ab68bc0aa4cc03834f81 - md5: ee18191e4095b5fb3cb1c8935a83113f +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-13.5.37-hac47afa_0.conda + sha256: 49e922a7c66c4c95482cb6099ec1a29e92b8a24e9231269943bf9651106efb31 + md5: a5aefd822cf84c175045b809821dcb00 depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 82544 - timestamp: 1789613678949 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-13.4.92-hac47afa_1.conda - sha256: aa034a686ab953d19c462b91512ca75dc6c765fb7251357393103f7dabff9eb0 - md5: 8dd7ed65a32572fe4718ce7b6884a8cf - depends: - - cuda-version >=13.4,<13.5.0a0 - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: {} - size: 82491 - timestamp: 1791918049017 + size: 86258 + timestamp: 1793838770865 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-12.9.79-h3f2d84a_0.conda sha256: 6cde0ace2b995b49d0db2eefb7bc30bf00ffc06bb98ef7113632dec8f8907475 md5: 64508631775fbbf9eca83c84b1df0cae @@ -14596,25 +14867,16 @@ packages: run_exports: {} size: 197249 timestamp: 1749218394213 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-13.4.92-h9e77f9f_0.conda - sha256: 280e2b0d195a07a48773f356bad5da0e78768c2e6ddba3594fd3ecf7f4756a88 - md5: 026c99a40ceaa3346b453fcfa243b20e +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-13.5.37-h528332f_0.conda + sha256: 42669cb43e0174bdf11644479cf469303c96593f49b58de6086511d409a6ca96 + md5: 0ff76002d4457f91a3d465fad8953acf depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 209905 - timestamp: 1789613664868 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-13.4.92-h9e77f9f_1.conda - sha256: 33ff49906d42aa43847fd9b7fb139c064df3eb40dd10c85e0a84d224658d0bfc - md5: 49b13a38cd090122c59c10c77fd2a566 - depends: - - cuda-version >=13.4,<13.5.0a0 - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: {} - size: 209978 - timestamp: 1791918053765 + size: 217600 + timestamp: 1793838736392 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-12.9.79-h3ae8b8a_0.conda sha256: 4900ff2f000a4f8a70a7bc8576469640aa6590618fa9e73c84e066e025dcb760 md5: cc2459ad427431e089d78d760cf24437 @@ -14626,27 +14888,17 @@ packages: run_exports: {} size: 212993 timestamp: 1749218341193 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-13.4.92-hae6cbe8_0.conda - sha256: c67f60f4504d3185248749a57cfac4dd94b531edefff25b70aed788f47f068c8 - md5: 0f97c2a60df80e0e9ef610751bd65714 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-13.5.37-hf3a43d7_0.conda + sha256: a1983a162f28146a5ebb6971aa6d4b74c739c35dee0f6404cbbcf57f1ece68c2 + md5: 1e2a3c2bf4a48e8dfe51151ac1105373 depends: - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 223916 - timestamp: 1789613700405 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-13.4.92-hae6cbe8_1.conda - sha256: d8057012693e22e398b1089652545a338e3d577ca90f090da5bb2c62f7d72d02 - md5: 2e93fd552844f60e9fbe9d2c287be7d2 - depends: - - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: {} - size: 223994 - timestamp: 1791918088368 + size: 231517 + timestamp: 1793838805981 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-12.9.79-he0c23c2_0.conda sha256: 6a89a53cdbcfafa0bb55abee1b58492c6a9a28e688abe04f48f0d01649c5f3e4 md5: 71c9c2ab52226f990f268164381d8494 @@ -14657,25 +14909,16 @@ packages: run_exports: {} size: 23260 timestamp: 1749218569458 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-13.4.92-hac47afa_0.conda - sha256: 3904b9c77eb88f97b52274414eb363bd6546037723417a8fe90c3ded0e063452 - md5: fabfefb0dd7f73ca1c0b3ed7e6f296d0 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-13.5.37-hac47afa_0.conda + sha256: 89f42d3f97a2ab4e97f1b20fb95b6de2e38a725ce7740257a939892a83851295 + md5: 6ca0ae366edcfbd2e862f7fa77064507 depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 24076 - timestamp: 1789613682979 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-13.4.92-hac47afa_1.conda - sha256: 6a53afca9c5db3b75d57e446ba926b3327e261da39bd637f9b996f2e257267f9 - md5: 37a74c183777ec891017fe03c1705c3e - depends: - - cuda-version >=13.4,<13.5.0a0 - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: {} - size: 24041 - timestamp: 1791918051282 + size: 28032 + timestamp: 1793838772232 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvcc-dev_linux-64-12.9.86-he91c749_2.conda sha256: a1672a34439a72869de9e011e935d41b62fc8dfb1a2700e85ed8a7a129b79981 md5: 19d4e090217f0ea89d30bedb7461c048 @@ -14732,16 +14975,16 @@ packages: run_exports: {} size: 27096 timestamp: 1753975261562 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-13.4.92-ha770c72_0.conda - sha256: 17a075306c73d52a823992c060693cd51e643c06a61b432bcab86c2febe05eab - md5: 457e3fb2e3d05fb92492f59e49f5fad4 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-13.5.37-ha770c72_0.conda + sha256: 8c7b9dc07f6c6d1d2b7147babb576ca7f762f3c1dc03ee6cc7787393da43490e + md5: b2cb4bee35b8df262fbd9190e398a6dc depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 28932 - timestamp: 1789621802159 + size: 33175 + timestamp: 1793849323729 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-12.9.86-h579c4fd_2.conda sha256: 5f27299818ecef44d6cf46a99465671744f6074c14618b5f8491a03a62942a7f md5: c59b036058d7bf78ac0a99618c321e85 @@ -14753,17 +14996,17 @@ packages: run_exports: {} size: 27218 timestamp: 1753975206503 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-13.4.92-h579c4fd_0.conda - sha256: 735a4f7813deefece585f3f4088cfabdc4a52f5f8463fe0d0bcc5f48506c807a - md5: 5663c68295db5397d0512f5cfc4d0589 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-13.5.37-h579c4fd_0.conda + sha256: b62020bbc8052aa5bed11887ba15dd462af1d9bda0e61e843752d0b5eececcda + md5: d251a307d69a3427a2a374256d52dc5d depends: - arm-variant * sbsa - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 29245 - timestamp: 1789621820857 + size: 33102 + timestamp: 1793849351989 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-12.9.86-h57928b3_2.conda sha256: 455dbf0ec81efdbd40c0387d82c77689721f6d34b6e7694ca0d51bad9392eddc md5: 23f7e70c03eabd2139b5e659c8e188b4 @@ -14774,18 +15017,18 @@ packages: run_exports: {} size: 27284 timestamp: 1753975714790 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-13.4.92-h57928b3_0.conda - sha256: bab894ab16990438a8aa70c80d20129d6c14ad36212493c2304f863be9984c4d - md5: e97ec4aeab07e839464377bc95f4f23c +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-13.5.37-h57928b3_0.conda + sha256: 6412334c558867a199c04b1821ca5e540194ac8b97c6a6555e54a638b95a44bd + md5: 6c4d877b3f769f5fc62f4aa0672a8ece depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 constrains: - cuda-nvvm-dev_win-arm64 <0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 33726 - timestamp: 1789621799731 + size: 37579 + timestamp: 1793849341859 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-pathfinder-1.8.3-pyhc364b38_0.conda sha256: 25b8f625cebe056be045bf9e484549188296b79793a340e059f13de4338939be md5: cb2babe521da8b1acaaea1cc12a282af @@ -14800,6 +15043,18 @@ packages: run_exports: {} size: 53393 timestamp: 1790912935126 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-pathfinder-1.8.5-pyh5ded981_0.conda + sha256: dfff3c8158a220d4f96ba133cc54c21fc0ee81db2e58e4668f0652ccf06dce6f + md5: 3734df62809eb2ab5c377d729f1acca3 + depends: + - python >=3.11 + - cuda-version >=12.0,<14 + - python + license: Apache-2.0 + license_family: APACHE + run_exports: {} + size: 53262 + timestamp: 1793303003534 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-12.9-h4f385c5_3.conda sha256: 5f5f428031933f117ff9f7fcc650e6ea1b3fef5936cf84aa24af79167513b656 md5: b6d5d7f1c171cbd228ea06b556cfa859 @@ -14811,17 +15066,17 @@ packages: run_exports: {} size: 21578 timestamp: 1746134436166 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda - sha256: c75b079579323219d0e1848c3b6dc234c057e60072ecfa4b5678f6d2f99b0b4a - md5: 9ff0458c7a21690b23f37dee60f90300 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda + sha256: f6d5c12966fd5e050f8202b4cbfa275061f0df64a378f822b8ebc9a31df36250 + md5: b1f58e64d8125e60fb8d3d9046058271 constrains: - __cuda >=13 - - cudatoolkit 13.4|13.4.* + - cudatoolkit 13.5|13.5.* license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 21393 - timestamp: 1788980416483 + size: 21361 + timestamp: 1793820338666 - conda: https://conda.anaconda.org/conda-forge/noarch/dict2css-0.6.0-pyhd8ed1ab_0.conda sha256: 446d5d68b2e76ed4afbd23fdde580b242e4fd309006fc246181437942ef1fac7 md5: 788c6a27890b964b6980d062d593c5da @@ -15077,7 +15332,7 @@ packages: license: MIT license_family: MIT purls: - - pkg:pypi/imagesize?source=hash-mapping + - pkg:pypi/imagesize?source=compressed-mapping run_exports: {} size: 21467 timestamp: 1787649248672 @@ -15289,7 +15544,7 @@ packages: license: MIT license_family: MIT purls: - - pkg:pypi/jsonschema?source=compressed-mapping + - pkg:pypi/jsonschema?source=hash-mapping run_exports: {} size: 82084 timestamp: 1787579299493 @@ -15809,7 +16064,7 @@ packages: license: BSD-3-Clause license_family: BSD purls: - - pkg:pypi/nbclient?source=compressed-mapping + - pkg:pypi/nbclient?source=hash-mapping run_exports: {} size: 29971 timestamp: 1788212974885 @@ -16870,6 +17125,13 @@ packages: run_exports: {} size: 118849 timestamp: 1784250406640 +- conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026e-h5d301ff_0.conda + sha256: 2b7ca858879f183ce2dcc65b300f48a0133d5430550f35b23d80d405a0788dbf + md5: abccc3810d2b97e570dee487f2b46e38 + license: LicenseRef-Public-Domain + run_exports: {} + size: 119208 + timestamp: 1792758382821 - conda: https://conda.anaconda.org/conda-forge/noarch/urllib3-2.8.0-pyhd8ed1ab_0.conda sha256: c5511c190ab55168ca412f3c54592fbf677ae6250784cb72b227a7cf3f538f7d md5: 407a3d3778570bae8e8fcf554e803e43 @@ -17093,6 +17355,45 @@ packages: run_exports: {} size: 174725 timestamp: 1790766070886 +- conda: https://conda.anaconda.org/conda-forge/win-64/clang-format-22.1.8-default_hacd6ee9_11.conda + sha256: bb891883dcb38b4f13d9f9f916da5596c573b0b8b189d6ffa3e71a06b8c4da24 + md5: 19afdd78dcf33d8528eb36fb0a522bda + depends: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - llvm-openmp >=22.1.8 + - libzlib >=1.3.2,<2.0a0 + - libxml2 + - libxml2-16 >=2.15.4 + - zstd >=1.5.7,<1.6.0a0 + license: Apache-2.0 WITH LLVM-exception + license_family: APACHE + run_exports: {} + size: 1396592 + timestamp: 1791933858160 +- conda: https://conda.anaconda.org/conda-forge/win-64/clang-tools-22.1.8-default_h940401a_11.conda + sha256: ddb419d3191eec655b768a9d42c2f6c89c0c42345af287a0239711016277a60c + md5: 6c7c5fa6c90879a2362d810671334e72 + depends: + - clang-format ==22.1.8 default_hacd6ee9_11 + - libclang13 >=22.1.8 + - ucrt + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - llvm-openmp >=22.1.8 + - libzlib >=1.3.2,<2.0a0 + - libxml2 + - libxml2-16 >=2.15.4 + - zstd >=1.5.7,<1.6.0a0 + constrains: + - clangdev ==22.1.8 + license: Apache-2.0 WITH LLVM-exception + license_family: APACHE + run_exports: {} + size: 354846485 + timestamp: 1791933858160 - conda: https://conda.anaconda.org/conda-forge/win-64/conda-gcc-specs-16.2.0-h6d3b04a_7.conda sha256: 7e744bc0cc553eff5592405d67b9fe168b7c4c30a28a097f8bd00f26e2223440 md5: 1ac5f2629931a9863217c91b669e5f0f @@ -17127,9 +17428,30 @@ packages: run_exports: {} size: 4864697 timestamp: 1790138618137 -- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-bindings-13.4.4-py314hb98de8c_0.conda - sha256: 86e5bf47f199fafad4282058a116fbd7e09cfc7b00a647ad944e4372cd14d010 - md5: 7efa0516683a4b2abb9b0fb0ab8a0eed +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-bindings-12.9.9-py314h2547b3f_1.conda + sha256: 758e4a5c01c6785161cbf4210cd044bbc65392d6546148ae5ea221d8e8168f17 + md5: 5db8bc470744aef279212f07557f658a + depends: + - python + - cuda-pathfinder >=1.5.5,<2 + - cuda-version >=12,<13.0a0 + - cuda-nvrtc >=12,<13.0a0 + - cuda-nvcc-impl >=12,<13.0a0 + - libnvjitlink >=12.3,<13 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - python_abi 3.14.* *_cp314 + constrains: + - cuda-cudart >=12,<13.0a0 + - libnvfatbin >=12,<13.0a0 + license: LicenseRef-NVIDIA-SOFTWARE-LICENSE + run_exports: {} + size: 4999327 + timestamp: 1792725075012 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-bindings-13.5.0-py314hb98de8c_0.conda + sha256: 4efe9900937677fea6aefe82771d45d0b4d22a3e9d163f17bf628c5fc0d55c14 + md5: 01652abb100b3af26cad6c26ae6958f8 depends: - python - cuda-pathfinder >=1.5.5,<2 @@ -17146,8 +17468,8 @@ packages: - cuda-cudart >=13,<14.0a0 license: LicenseRef-NVIDIA-SOFTWARE-LICENSE run_exports: {} - size: 4585392 - timestamp: 1792600892330 + size: 6222719 + timestamp: 1793910662519 - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-crt-tools-12.9.86-h57928b3_2.conda sha256: fb2283a55820eeff84c861b469cfee6a9d0ac9aebe02e82aae480a60068a7659 md5: d0057a8511cb12745675db18ccbec8f2 @@ -17172,19 +17494,19 @@ packages: run_exports: {} size: 170799 timestamp: 1749218946117 -- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-13.4.92-hac47afa_1.conda - sha256: 8072dd05bd1913f079725fa2b0b8f3de07203a48f295dbe25be14eb98980bc37 - md5: fbaa83a80783c23d2e8309a468772075 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-13.5.37-hac47afa_0.conda + sha256: e07f76ff8cd37ec9b46816b212f23e0c6f839cc47fb4572100d93a7935900da4 + md5: 47e84ee768e712919448f3a97cf44e69 depends: - - cuda-cudart_win-64 13.4.92 hac47afa_1 - - cuda-version >=13.4,<13.5.0a0 + - cuda-cudart_win-64 13.5.37 hac47afa_0 + - cuda-version >=13.5,<13.6.0a0 - ucrt >=10.0.20348.0 - vc >=14.3,<15 - vc14_runtime >=14.44.35208 license: LicenseRef-NVIDIA-End-User-License-Agreement run_exports: {} - size: 215004 - timestamp: 1791918056787 + size: 219101 + timestamp: 1793838778253 - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-dev-12.9.79-he0c23c2_0.conda sha256: 1ee68f0ffd37889f0fc438d4da7124054b124632e1c3bc15950b9851b002473e md5: e5bb074108bc2501f8374e80748aa181 @@ -17203,21 +17525,21 @@ packages: - cuda-cudart >=12.9.79,<13.0a0 size: 23222 timestamp: 1749219022963 -- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-dev-13.4.92-hac47afa_1.conda - sha256: 83496a41db7ba5bcb24dd1df9577b3fa11f944c734826e02370d26b7b909e9be - md5: d445165d6611c98536982b6fd6a95ace - depends: - - cuda-cudart 13.4.92 hac47afa_1 - - cuda-cudart-dev_win-64 13.4.92 hac47afa_1 - - cuda-cudart-static 13.4.92 hac47afa_1 - - cuda-version >=13.4,<13.5.0a0 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-dev-13.5.37-hac47afa_0.conda + sha256: e70e6f2adbda4a807de71c42f972dc7eeb4a122ad0547b8acc747cbd6eaeec57 + md5: ee99809e2c5be2eb0c9a47bec70feea7 + depends: + - cuda-cudart 13.5.37 hac47afa_0 + - cuda-cudart-dev_win-64 13.5.37 hac47afa_0 + - cuda-cudart-static 13.5.37 hac47afa_0 + - cuda-version >=13.5,<13.6.0a0 - ucrt >=10.0.20348.0 - vc >=14.3,<15 - vc14_runtime >=14.44.35208 license: LicenseRef-NVIDIA-End-User-License-Agreement run_exports: {} - size: 23941 - timestamp: 1791918067507 + size: 27871 + timestamp: 1793838784958 - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-static-12.9.79-he0c23c2_0.conda sha256: 02d3ff9ec59c7f59132ffe9398746ad9422a75706e7cad19acc6c30a5c0fc763 md5: 718879691b8119c893f587f46c734fca @@ -17232,19 +17554,19 @@ packages: run_exports: {} size: 23249 timestamp: 1749218998822 -- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-static-13.4.92-hac47afa_1.conda - sha256: cbd7a3ddefe3f275aef653f2ce71c0177b61a549a141f6f5af10891c218e7adb - md5: b4852e2f2c5922ef5732facd6397d915 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-static-13.5.37-hac47afa_0.conda + sha256: 23db8ee7fd1dd19c7b359b2a6f0b3435c8e15947d6f7dbefcdb417063a60cb00 + md5: c516bf119f2d33e699b511582fa3fb15 depends: - - cuda-cudart-static_win-64 13.4.92 hac47afa_1 - - cuda-version >=13.4,<13.5.0a0 + - cuda-cudart-static_win-64 13.5.37 hac47afa_0 + - cuda-version >=13.5,<13.6.0a0 - ucrt >=10.0.20348.0 - vc >=14.3,<15 - vc14_runtime >=14.44.35208 license: LicenseRef-NVIDIA-End-User-License-Agreement run_exports: {} - size: 23939 - timestamp: 1791918065348 + size: 27902 + timestamp: 1793838783740 - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvcc-impl-12.9.86-h53cbb54_2.conda sha256: d52c7b77b7d4f707efb3b76f93beb1c2b97883db6605818c1727935df9babe5d md5: 17181de579b111f1cbad7af2b45aed0e @@ -17291,31 +17613,19 @@ packages: run_exports: {} size: 58467504 timestamp: 1760723834711 -- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-13.4.92-hac47afa_0.conda - sha256: 3cdbd1da5a4993cd486513ce2d4afcaf5ee29437e65984b9367775d9651f2f3b - md5: fecc38becd2d2c231a5fd275ba798479 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-13.5.37-hac47afa_0.conda + sha256: 8a14fb6eddb59d35b427eaff10c1ed0dccff66d6c4852012f2982cfae6126efe + md5: e5d223833dcfd668744bd63950427516 depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - ucrt >=10.0.20348.0 - vc >=14.3,<15 - vc14_runtime >=14.44.35208 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 36407421 - timestamp: 1789606716374 -- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-13.4.92-hac47afa_1.conda - sha256: bcf76878a22a140bf93c4ab77c9f2d3400e636e8478c4524b4cf1199629c247f - md5: d14681f66ecaae3949396f55e6a56a7b - depends: - - cuda-version >=13.4,<13.5.0a0 - - ucrt >=10.0.20348.0 - - vc >=14.3,<15 - - vc14_runtime >=14.44.35208 - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: {} - size: 36407569 - timestamp: 1791919216363 + size: 38191305 + timestamp: 1793827463426 - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-dev-12.9.86-hac47afa_1.conda sha256: 1e1c41f95d606eaf6581fccf9546ed6ee4053c42b78e11057cd6d2801b96f0e2 md5: b97225dd005cb0dcdca7911c61ca38e5 @@ -17332,12 +17642,12 @@ packages: - cuda-nvrtc >=12.9.86,<13.0a0 size: 35214 timestamp: 1760724506186 -- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-dev-13.4.92-hac47afa_0.conda - sha256: 12170480d393f454c674c230bdb2ff05483350af77ac2850bf3e0e261558f6c6 - md5: c8236f6fdd2ce0a124de4698fd0d8600 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-dev-13.5.37-hac47afa_0.conda + sha256: 9cde2eeaae037cec3791a140b42a447354ceffc82c31871768d439c4376e6421 + md5: 347fd41bf45e0f6d646e9e511bf5f18f depends: - - cuda-nvrtc 13.4.92 hac47afa_0 - - cuda-version >=13.4,<13.5.0a0 + - cuda-nvrtc 13.5.37 hac47afa_0 + - cuda-version >=13.5,<13.6.0a0 - ucrt >=10.0.20348.0 - vc >=14.3,<15 - vc14_runtime >=14.44.35208 @@ -17345,47 +17655,21 @@ packages: purls: [] run_exports: weak: - - cuda-nvrtc >=13.4.92,<14.0a0 - size: 38246 - timestamp: 1789607226146 -- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-dev-13.4.92-hac47afa_1.conda - sha256: 0e913bd798aa37746c6f3874097ab2490caf83e5650eeee27d27d76622c9f90d - md5: ba6bcf634f8c95008f82a2562074c054 - depends: - - cuda-nvrtc 13.4.92 hac47afa_1 - - cuda-version >=13.4,<13.5.0a0 - - ucrt >=10.0.20348.0 - - vc >=14.3,<15 - - vc14_runtime >=14.44.35208 - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: - weak: - - cuda-nvrtc >=13.4.92,<14.0a0 - size: 38346 - timestamp: 1791919775736 -- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-13.4.92-h719f0c7_0.conda - sha256: e58e5d042b7db87838de8da7a19b53c65a3d86ca4e40dd9235a28532bf580ff1 - md5: 2f515eacb82e9efb14037048dffb9677 + - cuda-nvrtc >=13.5.37,<14.0a0 + size: 42275 + timestamp: 1793828185148 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-13.5.37-h719f0c7_0.conda + sha256: 37c4fb70789b263d8fe52aa95acb877bccdc934ea74353803b3195212fbd8bfc + md5: 54eae5e69b5fb8794f4d2cb8326509aa depends: - - cuda-nvvm-dev_win-64 13.4.92.* - - cuda-nvvm-impl 13.4.92.* - - cuda-nvvm-tools 13.4.92.* + - cuda-nvvm-dev_win-64 13.5.37.* + - cuda-nvvm-impl 13.5.37.* + - cuda-nvvm-tools 13.5.37.* license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 26714 - timestamp: 1789628111155 -- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-13.4.92-h719f0c7_1.conda - sha256: d421379e5437c91fbbc06fa8cdfb966faa6f8f96a3579dd80289dcafa89cf793 - md5: a8d53f64997c6374a91f750d89138753 - depends: - - cuda-nvvm-dev_win-64 13.4.92.* - - cuda-nvvm-impl 13.4.92.* - - cuda-nvvm-tools 13.4.92.* - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: {} - size: 26872 - timestamp: 1792181036038 + size: 26772 + timestamp: 1793856430643 - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-12.9.86-h2466b09_2.conda sha256: 7b995ea653816b129bae6e4ee92898824a39fe82227472537bf75ac6ece7e955 md5: d8cea7bc32045bde718d0b1ceb595445 @@ -17399,19 +17683,19 @@ packages: run_exports: {} size: 31168 timestamp: 1753975780038 -- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-13.4.92-hfd05255_0.conda - sha256: 65c6c932c0bd2adeddccdafb1dedd148385b206e5a75712c8f1102a1ab3cb982 - md5: 698800762e29774687a870e6186c2be8 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-13.5.37-hfd05255_0.conda + sha256: eff2d53baf5cd7d0a50a5304e53ecf806936a68170c480532b1953bbad617801 + md5: a4eee226739bfdc212c2c6002e639eff depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - ucrt >=10.0.20348.0 - vc >=14.3,<15 - vc14_runtime >=14.44.35208 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 29226 - timestamp: 1789621808218 + size: 33018 + timestamp: 1793849345998 - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-12.9.86-h2466b09_2.conda sha256: 5692a559206420f77e376a598329db966da762ad574866f9cc80a447d26ac49c md5: 25e269101d3eb39715a48998bc04289e @@ -17425,29 +17709,29 @@ packages: run_exports: {} size: 40286977 timestamp: 1753975898550 -- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-13.4.92-hfd05255_0.conda - sha256: a7f95018c37175275e8630afd4f14fdf90a5d7350e7fee7f3efedcaca5cbf859 - md5: 35791b89ba9dcaf4ce936ba07a6b92e0 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-13.5.37-hfd05255_0.conda + sha256: 77172f6b9494199a64030cca426fe39048edeb3b544146dc7321c0fa5127425a + md5: e91aee62ef0af913b87e4c15eb078a6c depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - ucrt >=10.0.20348.0 - vc >=14.3,<15 - vc14_runtime >=14.44.35208 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 46534809 - timestamp: 1789621823012 -- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-profiler-api-13.4.92-h57928b3_0.conda - sha256: 3c92ab33f680e39224432cda90dcd33c68ff18a6a08c2cf22a388c6443707582 - md5: 7e9711be580e9bff6ab449c1d79055c2 + size: 48624273 + timestamp: 1793849354951 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-profiler-api-13.5.25-h57928b3_0.conda + sha256: df444d3638a0de3c74f5d3c523cfd17949b3df1d56b3eb6b0615b900a3873646 + md5: 6e047aaab389571405ed47aef70979ee depends: - cuda-cudart-dev - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 license: LicenseRef-NVIDIA-End-User-License-Agreement run_exports: {} - size: 25442 - timestamp: 1789618183674 + size: 25485 + timestamp: 1793848614636 - conda: https://conda.anaconda.org/conda-forge/win-64/cython-3.2.9-py314h344ed54_0.conda sha256: a061170102d6f1a0b64ed3be712ac653fd9c9e8b6bed6205f398dbf319dcc3c8 md5: 8ecd457018d6f302da0945cd2169167d @@ -17839,6 +18123,25 @@ packages: - libcblas >=3.11.0,<4.0a0 size: 67465 timestamp: 1789061353350 +- conda: https://conda.anaconda.org/conda-forge/win-64/libclang13-23.1.4-default_hacd6ee9_1.conda + sha256: 64977a6c73f2ab020d797792934fbffe9ce4a54950ef677b3fcfb34bf1d92aa6 + md5: 714b7b559a8da076dfbc4492e97241e5 + depends: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - llvm-openmp >=23.1.4 + - libzlib >=1.3.2,<2.0a0 + - libxml2 + - libxml2-16 >=2.15.4 + - zstd >=1.5.7,<1.6.0a0 + license: Apache-2.0 WITH LLVM-exception + license_family: APACHE + run_exports: + weak: + - libclang13 >=23.1.4 + size: 37503641 + timestamp: 1793319972287 - conda: https://conda.anaconda.org/conda-forge/win-64/libdav1d-1.5.4-h11686cb_4.conda sha256: 5dd8437e1c74d0e15599da918aec11624a3be664b3d0e81fcc0675c902d6337d md5: 7d912fa4bfd4a322a999ae6a99b8061b @@ -17895,6 +18198,20 @@ packages: run_exports: {} size: 72107 timestamp: 1790346254561 +- conda: https://conda.anaconda.org/conda-forge/win-64/libexpat-2.9.0-hac47afa_0.conda + sha256: d4a8e5aac8999a90cd71aa6f9f5c40d8594ed2b89cd7f898f997767ecc6cd52d + md5: 74ac404611024dc488ae71cfb7a5bf8f + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + constrains: + - expat 2.9.0.* + license: MIT + license_family: MIT + run_exports: {} + size: 72983 + timestamp: 1793054271728 - conda: https://conda.anaconda.org/conda-forge/win-64/libffi-3.7.0-h3d046cb_1.conda sha256: 613e8077c5cca5df7fe84ade7d5050301bee3c6c4c450ffe61d34a349ab4f11c md5: ceb38b0ba900847d8da4289c3c8e5708 @@ -18150,31 +18467,19 @@ packages: run_exports: {} size: 89109 timestamp: 1786650384519 -- conda: https://conda.anaconda.org/conda-forge/win-64/libnvfatbin-13.4.92-hac47afa_0.conda - sha256: fe7f06d28a8db4b71ca33b36b9e32c81a364e7f7e6a23d754068cd1db87f7db2 - md5: f4410583221c4b942775d7ad2ab19179 +- conda: https://conda.anaconda.org/conda-forge/win-64/libnvfatbin-13.5.37-hac47afa_0.conda + sha256: 2d5a20a0967b92e4cbe249ec86b7cda816de75ac49709559b094fd40cfe8bc44 + md5: 72398a4ebe74d9abcd46ec9688aaeb60 depends: - - cuda-version >=13.4,<13.5.0a0 + - cuda-version >=13.5,<13.6.0a0 - ucrt >=10.0.20348.0 - vc >=14.3,<15 - vc14_runtime >=14.44.35208 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 361057 - timestamp: 1789606401543 -- conda: https://conda.anaconda.org/conda-forge/win-64/libnvfatbin-13.4.92-hac47afa_1.conda - sha256: 282f0a522bf614b39b8ec84193b67bf418d0857d437261af077fa8911a6c7288 - md5: 59364d26258e158685e864dee431da98 - depends: - - cuda-version >=13.4,<13.5.0a0 - - ucrt >=10.0.20348.0 - - vc >=14.3,<15 - - vc14_runtime >=14.44.35208 - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: {} - size: 361088 - timestamp: 1791918034187 + size: 354630 + timestamp: 1793826284465 - conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-12.9.86-hac47afa_2.conda sha256: adf35938c9ecd77d27c87ef870f7710ee422933ad95d1aac136ff39e7af0551f md5: feaee6b1ab0e7ed9152dc88e1b0eeddd @@ -18188,31 +18493,19 @@ packages: run_exports: {} size: 27343190 timestamp: 1760724535115 -- conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-13.4.92-hac47afa_0.conda - sha256: c9284ac173ba06ce1bfe07a7d7efa9580f170abcd2f669ca28c8810dc832e9d4 - md5: ce8b124cd742664cc342897524208e55 +- conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-13.5.37-hac47afa_0.conda + sha256: cb7b4e7be50997a9508deda709f3e1f03e9392ce431f63698cf47e946bd98b91 + md5: a10b6d0ba3e514a21e334d3b5917152b depends: - - cuda-version >=13,<13.5.0a0 + - cuda-version >=13,<13.6.0a0 - ucrt >=10.0.20348.0 - vc >=14.3,<15 - vc14_runtime >=14.44.35208 license: LicenseRef-NVIDIA-End-User-License-Agreement purls: [] run_exports: {} - size: 29916730 - timestamp: 1789607014695 -- conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-13.4.92-hac47afa_1.conda - sha256: 17084d3d321f7fc0365221055ba75c5d06fb84732180b4e376354fc6c5198901 - md5: 55b9e83ee1b3bd8372b02e40cab34494 - depends: - - cuda-version >=13,<13.5.0a0 - - ucrt >=10.0.20348.0 - - vc >=14.3,<15 - - vc14_runtime >=14.44.35208 - license: LicenseRef-NVIDIA-End-User-License-Agreement - run_exports: {} - size: 29916659 - timestamp: 1791919214544 + size: 31783851 + timestamp: 1793827454534 - conda: https://conda.anaconda.org/conda-forge/win-64/libnvptxcompiler-dev-12.9.86-h57928b3_2.conda sha256: b05ab0cb8c66535a9cb27cf229752c42dab1fc4bda46c050514c42ad0a74b12c md5: ed841728d5a36ce8269c6f875c001236 @@ -18492,6 +18785,24 @@ packages: run_exports: {} size: 515800 timestamp: 1788635268845 +- conda: https://conda.anaconda.org/conda-forge/win-64/libxml2-16-2.15.4-h3cfd58e_1.conda + sha256: 819c4edd7b7bcfa9461aeccb56c0a7e9fa7c251163333e64222c142499822958 + md5: 69b4a6c50e1cb5865648e039da8e5c12 + depends: + - icu >=78.3,<79.0a0 + - libiconv >=1.18,<2.0a0 + - liblzma >=5.8.3,<6.0a0 + - libzlib >=1.3.2,<2.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + constrains: + - libxml2 2.15.4 + license: MIT + license_family: MIT + run_exports: {} + size: 515690 + timestamp: 1791465669912 - conda: https://conda.anaconda.org/conda-forge/win-64/libxml2-2.15.4-he095d88_0.conda sha256: a19bb3821830f6b1281e782844d5dd265f796dfed2e4812b16c9995a8c778c88 md5: 3ce54d0f8f24dfab99d82414411640aa @@ -18513,6 +18824,26 @@ packages: - libxml2-16 >=2.15.4 size: 43845 timestamp: 1788635276599 +- conda: https://conda.anaconda.org/conda-forge/win-64/libxml2-2.15.4-he095d88_1.conda + sha256: 81e8cace5c3cb62c4125882b4a6df33ab48c16349231d8ea5008bbe0ee93c10f + md5: babe0e64f176114f880f366eba9094af + depends: + - icu >=78.3,<79.0a0 + - libiconv >=1.18,<2.0a0 + - liblzma >=5.8.3,<6.0a0 + - libxml2-16 2.15.4 h3cfd58e_1 + - libzlib >=1.3.2,<2.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: MIT + license_family: MIT + run_exports: + weak: + - libxml2 + - libxml2-16 >=2.15.4 + size: 43629 + timestamp: 1791465677280 - conda: https://conda.anaconda.org/conda-forge/win-64/libzlib-1.3.2-hfd05255_3.conda sha256: 0629c2cc0404d3bb29d6baa7b4ba62da80797015e86de050db81ea5a07050527 md5: 5d2ff29d465097458cc3ff6569151991 @@ -18548,6 +18879,23 @@ packages: - llvm-openmp >=23.1.3 size: 342511 timestamp: 1791368620179 +- conda: https://conda.anaconda.org/conda-forge/win-64/llvm-openmp-23.1.5-h49e36cd_0.conda + sha256: f7b5e57c99568c23d97759820b9bb2eeae47dff5ba024ddc9dcdc08780da527d + md5: a5214fc108716578f1e920567309fcc3 + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + constrains: + - intel-openmp <0.0a0 + - openmp 23.1.5|23.1.5.* + license: Apache-2.0 WITH LLVM-exception + license_family: APACHE + run_exports: + strong: + - llvm-openmp >=23.1.5 + size: 344024 + timestamp: 1793827999834 - conda: https://conda.anaconda.org/conda-forge/win-64/m2-conda-epoch-20250515-0_x86_64.conda build_number: 0 sha256: 51e9214548f177db9c3fe70424e3774c95bf19cd69e0e56e83abe2e393228ba1 @@ -19144,6 +19492,18 @@ packages: run_exports: {} size: 13387537 timestamp: 1792672517235 +- conda: https://conda.anaconda.org/conda-forge/win-64/uv-0.13.7-hf7a7c96_0.conda + sha256: b662d664862bf73941b02ce76868398956cf893475dc3e31ff49de198b14b4a8 + md5: bab575f975c8a087dbbc56d8188265d7 + depends: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - zstd >=1.5.7,<1.6.0a0 + license: Apache-2.0 OR MIT + run_exports: {} + size: 13299866 + timestamp: 1793689103658 - conda: https://conda.anaconda.org/conda-forge/win-64/vc-14.5-ha367084_41.conda sha256: 35444c55a92e2f7f7ba26bc70f81e56e52344f7d064c0fd4b40a46a58517b79c md5: aa805b5522c2a98fa286e551a1f48546 @@ -19157,6 +19517,18 @@ packages: run_exports: {} size: 21383 timestamp: 1785359368566 +- conda: https://conda.anaconda.org/conda-forge/win-64/vc-14.5-ha367084_42.conda + sha256: 0598ca1ce913618cff9bd90391bcf75cd9edb22057c85dd6784dd762b7a888e2 + md5: 14166cbeafd1f1d255bd21abcc742a65 + depends: + - vc14_runtime >=14.51.36247 + track_features: + - vc14 + license: BSD-3-Clause + license_family: BSD + run_exports: {} + size: 21309 + timestamp: 1793305687162 - conda: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.51.36247-habf1de7_41.conda sha256: 4e4cb599cdc41bf2109d1464c127b5bcbddf548ce3e322e612afb691338b48f8 md5: ac5333bb3d429361f23adf704cc49a78 @@ -19171,6 +19543,19 @@ packages: run_exports: {} size: 767955 timestamp: 1785359364369 +- conda: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.51.36247-habf1de7_42.conda + sha256: 8dfbfd68ebf53249d11e528cbb80ad5a2460b0c5b4636eed82ee0d3950827a3d + md5: bc3b057d4b2458cf95326daa33acf9da + depends: + - ucrt >=10.0.20348.0 + - vcomp14 14.51.36247 habf1de7_42 + constrains: + - vs2015_runtime 14.51.36247.* *_42 + license: LicenseRef-MicrosoftVisualCpp2015-2022Runtime + license_family: Proprietary + run_exports: {} + size: 767099 + timestamp: 1793305684782 - conda: https://conda.anaconda.org/conda-forge/win-64/vcomp14-14.51.36247-habf1de7_41.conda sha256: 731e043390c9457299484d39e427221fc868a9249540a498a5a4f6456c7744d1 md5: 350bb67a5c8e5f1c53347ac544ab6600 @@ -19186,6 +19571,20 @@ packages: - vcomp14 >=14.51.36247 size: 155910 timestamp: 1785359349999 +- conda: https://conda.anaconda.org/conda-forge/win-64/vcomp14-14.51.36247-habf1de7_42.conda + sha256: b3558ed059d6272ef919ea959311af73c35b5fe43c789cd43f71b398671fec49 + md5: 948483905faab0e83c9aed0414004194 + depends: + - ucrt >=10.0.20348.0 + constrains: + - vs2015_runtime 14.51.36247.* *_42 + license: LicenseRef-MicrosoftVisualCpp2015-2022Runtime + license_family: Proprietary + run_exports: + strong: + - vcomp14 >=14.51.36247 + size: 155686 + timestamp: 1793305669217 - conda: https://conda.anaconda.org/conda-forge/win-64/vs2022_win-64-19.44.35207-ha74f236_41.conda sha256: 9d7d1b43cf4af5a8e8b1646175c9f899ffbcab189a33ac41127a96e7bcf41af0 md5: 04190e0ebd886433300ce9343ee98942 @@ -19204,6 +19603,24 @@ packages: - ucrt >=10.0.20348.0 size: 25462 timestamp: 1785358620723 +- conda: https://conda.anaconda.org/conda-forge/win-64/vs2022_win-64-19.44.35207-ha74f236_42.conda + sha256: 872123d66fbc41898bea34973cbf64544c41cdcd5123a00abe747c5f35b92898 + md5: 410be03ef3a0eb26e1b20cb90be5493c + depends: + - vswhere + constrains: + - vs_win-64 2022.14 + track_features: + - vc14 + license: BSD-3-Clause + license_family: BSD + run_exports: + strong: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + size: 25374 + timestamp: 1793120002126 - conda: https://conda.anaconda.org/conda-forge/win-64/wcwidth-0.9.2-py311hdbcae8a_0.conda noarch: python sha256: ad6a9373bed593daf3f8645044a2ac793726b4482ce78dbdb46a81cb9dfb4448 @@ -19321,16 +19738,16 @@ packages: - zstd >=1.5.7,<1.6.0a0 size: 387535 timestamp: 1786599623274 -- conda_source: cuda-bindings[6abae617] @ ../cuda_bindings_13 +- conda_source: cuda-bindings[34cbcc35] @ ../cuda_bindings_13 variants: c_compiler: vs2022 - cuda_version: 13.4.* + cuda_version: 13.5.* cxx_compiler: vs2022 python: 3.14.* target_platform: win-64 depends: - cuda-nvrtc - - cuda-nvrtc >=13.4.92,<14.0a0 + - cuda-nvrtc >=13.5.37,<14.0a0 - cuda-nvvm - cuda-pathfinder - cuda-version @@ -19351,13 +19768,13 @@ packages: - conda: https://conda.anaconda.org/conda-forge/win-64/vs2022_win-64-19.44.35207-ha74f236_41.conda host_packages: - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-h4c7d964_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-13.3.4.3.1-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-13.4.92-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-13.4.92-hac47afa_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-13.4.92-hac47afa_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-13.4.92-hac47afa_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-13.4.92-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-13.3.5.0.6-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-13.5.37-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-13.5.37-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-9_cp314.conda - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.2.1-pyhe730653_0.conda @@ -19367,15 +19784,15 @@ packages: - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h0ad9c76_10.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-13.4.92-hac47afa_1.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-dev-13.4.92-hac47afa_1.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-static-13.4.92-hac47afa_1.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-13.4.92-hac47afa_1.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-dev-13.4.92-hac47afa_1.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-13.4.92-h719f0c7_1.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-13.4.92-hfd05255_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-13.4.92-hfd05255_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-profiler-api-13.4.92-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-dev-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-static-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-dev-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-13.5.37-h719f0c7_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-13.5.37-hfd05255_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-13.5.37-hfd05255_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-profiler-api-13.5.25-h57928b3_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/cython-3.2.9-py314h344ed54_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libexpat-2.8.5-hac47afa_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libffi-3.7.0-h3d046cb_1.conda @@ -19393,23 +19810,23 @@ packages: - conda: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.51.36247-habf1de7_41.conda - conda: https://conda.anaconda.org/conda-forge/win-64/vcomp14-14.51.36247-habf1de7_41.conda - conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda - - conda_source: cuda-pathfinder[f6abc7c0] @ ../cuda_pathfinder -- conda_source: cuda-bindings[79546b65] @ ../cuda_bindings_13 + - conda_source: cuda-pathfinder[b5bcf07a] @ ../cuda_pathfinder +- conda_source: cuda-bindings[9ff26a29] @ ../cuda_bindings_13 variants: c_stdlib: sysroot c_stdlib_version: '2.28' - cuda_version: 13.4.* + cuda_version: 13.5.* python: 3.14.* target_platform: linux-64 depends: - __glibc >=2.28,<3.0.a0 - cuda-nvrtc - - cuda-nvrtc >=13.4.92,<14.0a0 + - cuda-nvrtc >=13.5.37,<14.0a0 - cuda-nvvm - cuda-pathfinder - cuda-version - libcufile - - libcufile >=1.19.1.55,<2.0a0 + - libcufile >=1.20.0.107,<2.0a0 - libgcc >=16 - libgcc >=16 - libnvfatbin @@ -19445,20 +19862,20 @@ packages: host_packages: - conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-hda65f42_10.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-13.4.92-hd2095e1_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-13.4.92-hd2095e1_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-13.4.92-hd2095e1_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-13.4.92-hd2095e1_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-dev-13.4.92-hd2095e1_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-13.4.92-h69a702a_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-13.4.92-hb03c661_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-13.4.92-hb03c661_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-profiler-api-13.4.92-h7938cbb_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-dev-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-13.5.37-h69a702a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-13.5.37-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-13.5.37-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-profiler-api-13.5.25-h7938cbb_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/cython-3.2.9-py314h1807b08_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.46.1-default_hbd61a6d_103.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libcap-2.78-h084b8d7_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.19.1.55-h63c01a6_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-dev-1.19.1.55-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.20.0.107-h63c01a6_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-dev-1.20.0.107-h393e864_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.8.5-hd2095e1_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.7.0-h81df57d_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libgcc-16.2.0-ha9f2e26_7.conda @@ -19482,13 +19899,13 @@ packages: - conda: https://conda.anaconda.org/conda-forge/linux-64/uv-0.13.5-h535ca38_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/zstd-1.5.7-hb78ec9c_7.conda - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-hbd8a1cb_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-13.3.4.3.1-ha770c72_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-13.4.92-ha770c72_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-13.4.92-h9e77f9f_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-13.4.92-h9e77f9f_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-13.4.92-h9e77f9f_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-13.4.92-ha770c72_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-13.3.5.0.6-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-13.5.37-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-13.5.37-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-9_cp314.conda - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.2.1-pyhe730653_0.conda @@ -19497,23 +19914,23 @@ packages: - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda - - conda_source: cuda-pathfinder[9b57eb00] @ ../cuda_pathfinder -- conda_source: cuda-bindings[dd9bab73] @ ../cuda_bindings_13 + - conda_source: cuda-pathfinder[8f545c34] @ ../cuda_pathfinder +- conda_source: cuda-bindings[e5ccaa65] @ ../cuda_bindings_13 variants: c_stdlib: sysroot c_stdlib_version: '2.28' - cuda_version: 13.4.* + cuda_version: 13.5.* python: 3.14.* target_platform: linux-aarch64 depends: - __glibc >=2.28,<3.0.a0 - cuda-nvrtc - - cuda-nvrtc >=13.4.92,<14.0a0 + - cuda-nvrtc >=13.5.37,<14.0a0 - cuda-nvvm - cuda-pathfinder - cuda-version - libcufile - - libcufile >=1.19.1.55,<2.0a0 + - libcufile >=1.20.0.107,<2.0a0 - libgcc >=16 - libgcc >=16 - libnvfatbin @@ -19549,20 +19966,20 @@ packages: host_packages: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/bzip2-1.0.8-h4777abc_10.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-13.4.92-hae6cbe8_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-13.4.92-hae6cbe8_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-13.4.92-hae6cbe8_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-13.4.92-hae6cbe8_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-dev-13.4.92-hae6cbe8_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-13.4.92-he9431aa_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-13.4.92-hbe86820_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-13.4.92-hbe86820_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-13.4.92-h16bee8c_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-dev-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-13.5.37-he9431aa_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-13.5.37-hbe86820_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-13.5.37-hbe86820_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-13.5.25-h16bee8c_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cython-3.2.9-py314hc6b4731_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ld_impl_linux-aarch64-2.46.1-default_h1979696_103.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcap-2.78-hfcc8634_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.19.1.55-hc7dfe37_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-dev-1.19.1.55-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.20.0.107-hc7dfe37_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-dev-1.20.0.107-hc1d3098_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libexpat-2.8.5-h4154aff_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libffi-3.7.0-hdaad0be_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgcc-16.2.0-h205dda4_7.conda @@ -19587,13 +20004,13 @@ packages: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/zstd-1.5.7-h9d15635_7.conda - conda: https://conda.anaconda.org/conda-forge/noarch/arm-variant-1.2.0-sbsa.conda - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-hbd8a1cb_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-13.3.4.3.1-h579c4fd_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-13.4.92-h579c4fd_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-13.4.92-hae6cbe8_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-13.4.92-hae6cbe8_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-13.4.92-hae6cbe8_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-13.4.92-h579c4fd_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-13.3.5.0.6-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-13.5.37-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-13.5.37-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-9_cp314.conda - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.2.1-pyhe730653_0.conda @@ -19602,84 +20019,126 @@ packages: - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda - - conda_source: cuda-pathfinder[a51836e4] @ ../cuda_pathfinder -- conda_source: cuda-core[0693e559] @ . + - conda_source: cuda-pathfinder[3da77f45] @ ../cuda_pathfinder +- conda_source: cuda-core[03c04d4b] @ . variants: - c_compiler: vs2022 + c_stdlib: sysroot + c_stdlib_version: '2.28' cuda_version: 12.* - cxx_compiler: vs2022 python: 3.14.* - target_platform: win-64 + target_platform: linux-aarch64 depends: + - __glibc >=2.28,<3.0.a0 - cuda-bindings - cuda-cudart >=12.9.79,<13.0a0 - cuda-nvrtc >=12.9.86,<13.0a0 - cuda-pathfinder - cuda-version + - libgcc >=16 + - libgcc >=16 + - libstdcxx >=16 - numpy - python - python >=3.11 - python_abi 3.14.* *_cp314 - - ucrt >=10.0.20348.0 - - vc >=14.3,<15 - - vc14_runtime >=14.44.35208 license: Apache-2.0 build_packages: - - conda: https://conda.anaconda.org/conda-forge/noarch/vswhere-3.1.7-h40126e0_1.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/vs2022_win-64-19.44.35207-ha74f236_41.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/binutils_impl_linux-aarch64-2.46.1-default_h5f4c503_103.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/binutils_linux-aarch64-2.46.1-default_hf1166c9_103.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gcc_impl_linux-aarch64-16.2.0-h5425ead_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gcc_linux-aarch64-16.2.0-h25cc031_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gxx_impl_linux-aarch64-16.2.0-h1e3c31f_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gxx_linux-aarch64-16.2.0-h423111d_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ld_impl_linux-aarch64-2.46.1-default_h1979696_103.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgcc-16.2.0-h205dda4_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgomp-16.2.0-h8acb6b2_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsanitizer-16.2.0-h73cac2c_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libstdcxx-16.2.0-hef695bb_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libzlib-1.3.2-hdc9db2a_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/zstd-1.5.7-h9d15635_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/kernel-headers_linux-aarch64-4.18.0-h05a177a_9.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libgcc-devel_linux-aarch64-16.2.0-hc0c2482_107.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libstdcxx-devel_linux-aarch64-16.2.0-h082e5f6_107.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sysroot_linux-aarch64-2.28-h585391f_9.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026e-h5d301ff_0.conda host_packages: - - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-h4c7d964_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-12.9.27-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-12.9.86-h57928b3_2.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-12.9.79-he0c23c2_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-12.9.79-he0c23c2_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-12.9.79-he0c23c2_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvcc-dev_win-64-12.9.86-h36c15f3_2.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-12.9.86-h57928b3_2.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-pathfinder-1.8.3-pyhc364b38_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-12.9-h4f385c5_3.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/libnvptxcompiler-dev_win-64-12.9.86-h57928b3_2.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/bzip2-1.0.8-h4777abc_10.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/clang-format-22-22.1.8-default_h01b09c7_11.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/clang-format-22.1.8-default_hd528a3d_11.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/clang-scan-deps-22.1.8-default_h01b09c7_11.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/clang-tools-22.1.8-default_h31a7d68_11.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-bindings-12.9.9-py314h73c45f8_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-crt-tools-12.9.86-h579c4fd_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvcc-impl-12.9.86-h614329b_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvcc-tools-12.9.86-h614329b_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-12.9.86-h8f3c8d4_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-dev-12.9.86-h8f3c8d4_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-12.9.86-h7b14b0b_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-12.9.86-h7b14b0b_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-12.9.79-h16bee8c_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cython-3.2.9-py314hc6b4731_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/dlpack-1.3-h4154aff_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ld_impl_linux-aarch64-2.46.1-default_h1979696_103.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcap-2.78-hfcc8634_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libclang-cpp22.1-22.1.8-default_h01b09c7_11.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libclang-cpp23.1-23.1.4-default_h01b09c7_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libclang13-23.1.4-default_h807fe02_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.14.1.1-had8bf56_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libexpat-2.9.0-h4154aff_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libffi-3.7.0-hdaad0be_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgcc-16.2.0-h205dda4_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgomp-16.2.0-h8acb6b2_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libiconv-1.18-h1ea5142_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libllvm22-22.1.8-h680871c_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libllvm23-23.1.5-h680871c_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/liblzma-5.8.3-he30d5cf_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libmpdec-4.0.0-he30d5cf_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnl-3.11.0-he30d5cf_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-12.9.86-h8f3c8d4_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvptxcompiler-dev-12.9.86-h579c4fd_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libpython-3.14.10-h150030a_100_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsqlite-3.54.1-hd26f1b6_101.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libstdcxx-16.2.0-hef695bb_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsystemd0-262.1-hd1ea486_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libudev1-262.1-hd1ea486_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libuuid-2.42.4-hd6fdeab_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libxml2-16-2.15.4-h183574b_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libxml2-2.15.4-ha1111c9_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libzlib-1.3.2-hdc9db2a_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ncurses-6.6-h2b6f883_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/openssl-3.6.5-he6ad1d5_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/python-3.14.10-hbec3b18_100_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/rdma-core-65.0-h807d763_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/readline-8.3-ha7194a6_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/tk-8.6.13-noxft_hf03c496_4.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/uv-0.13.7-h779c035_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/zstd-1.5.7-h9d15635_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/arm-variant-1.2.0-sbsa.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-hbd8a1cb_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-12.9.27-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-12.9.86-h579c4fd_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvcc-dev_linux-aarch64-12.9.86-h4310d6a_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-12.9.86-h579c4fd_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-pathfinder-1.8.5-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-12.9-h4f385c5_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libnvptxcompiler-dev_linux-aarch64-12.9.86-h579c4fd_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-9_cp314.conda - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.2.1-pyhe730653_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-scm-10.3.4-pyh5ded981_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.5.0-pyh5ded981_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026e-h5d301ff_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h0ad9c76_10.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-bindings-12.9.9-py314h2547b3f_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-crt-tools-12.9.86-h57928b3_2.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-12.9.79-he0c23c2_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-dev-12.9.79-he0c23c2_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-static-12.9.79-he0c23c2_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvcc-impl-12.9.86-h53cbb54_2.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvcc-tools-12.9.86-he0c23c2_2.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-12.9.86-hac47afa_1.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-dev-12.9.86-hac47afa_1.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-12.9.86-h2466b09_2.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-12.9.86-h2466b09_2.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cython-3.2.9-py314h344ed54_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/dlpack-1.3-hac47afa_1.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libexpat-2.8.5-hac47afa_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libffi-3.7.0-h3d046cb_1.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/liblzma-5.8.3-hfd05255_1.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libmpdec-4.0.0-hfd05255_2.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-12.9.86-hac47afa_2.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libnvptxcompiler-dev-12.9.86-h57928b3_2.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libpython-3.14.10-hc6187dd_100_cp314.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libsqlite-3.54.1-hf5d6505_100.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libzlib-1.3.2-hfd05255_3.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/openssl-3.6.5-hf411b9b_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/python-3.14.10-h53f6dd8_100_cp314.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/tk-8.6.13-h967ab96_4.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/uv-0.13.5-hf7a7c96_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/vc-14.5-ha367084_41.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.51.36247-habf1de7_41.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/vcomp14-14.51.36247-habf1de7_41.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda -- conda_source: cuda-core[1204a228] @ . +- conda_source: cuda-core[0d1b6a19] @ . variants: c_stdlib: sysroot c_stdlib_version: '2.28' @@ -19720,11 +20179,15 @@ packages: - conda: https://conda.anaconda.org/conda-forge/noarch/libgcc-devel_linux-64-16.2.0-he3ce08f_107.conda - conda: https://conda.anaconda.org/conda-forge/noarch/libstdcxx-devel_linux-64-16.2.0-h86e191b_107.conda - conda: https://conda.anaconda.org/conda-forge/noarch/sysroot_linux-64-2.28-h4ee821c_9.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026e-h5d301ff_0.conda host_packages: - conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-hda65f42_10.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-bindings-12.9.9-py314hf3783bd_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/clang-format-22-22.1.8-default_h0acdd01_11.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/clang-format-22.1.8-default_h0c12a12_11.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/clang-scan-deps-22.1.8-default_h0acdd01_11.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/clang-tools-22.1.8-default_ha96978a_11.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-bindings-12.9.9-py314hf3783bd_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-crt-tools-12.9.86-ha770c72_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-12.9.79-h5888daf_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-12.9.79-h5888daf_0.conda @@ -19740,22 +20203,30 @@ packages: - conda: https://conda.anaconda.org/conda-forge/linux-64/dlpack-1.3-hd2095e1_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.46.1-default_hbd61a6d_103.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libcap-2.78-h084b8d7_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libclang-cpp22.1-22.1.8-default_h0acdd01_11.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libclang-cpp23.1-23.1.4-default_h0acdd01_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libclang13-23.1.4-default_h6e6c352_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.14.1.1-hbc026e6_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.8.5-hd2095e1_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.9.0-hd2095e1_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.7.0-h81df57d_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libgcc-16.2.0-ha9f2e26_7.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libgomp-16.2.0-he0feb66_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libiconv-1.18-h0cb94f2_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libllvm22-22.1.8-h474f4eb_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libllvm23-23.1.5-h474f4eb_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/liblzma-5.8.3-hb03c661_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libmpdec-4.0.0-hb03c661_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libnl-3.11.0-hb03c661_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-12.9.86-hecca717_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvptxcompiler-dev-12.9.86-ha770c72_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libpython-3.14.10-hd51c5da_100_cp314.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libsqlite-3.54.1-h0737f62_100.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libsqlite-3.54.1-h0737f62_101.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-16.2.0-h934c35e_7.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libsystemd0-262.1-h26e0ef7_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libudev1-262.1-h26e0ef7_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libuuid-2.42.4-hcfc3c73_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libuuid-2.42.4-hcfc3c73_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libxml2-16-2.15.4-hbdfff7e_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libxml2-2.15.4-ha7a5771_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libzlib-1.3.2-h25fd6f3_3.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/ncurses-6.6-hdb14827_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.6.5-h781a0a9_0.conda @@ -19763,9 +20234,9 @@ packages: - conda: https://conda.anaconda.org/conda-forge/linux-64/rdma-core-65.0-h7b4f2e6_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/readline-8.3-hd6e31c0_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.13-noxft_h1df4ec4_4.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/uv-0.13.5-h535ca38_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/uv-0.13.7-h535ca38_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/zstd-1.5.7-hb78ec9c_7.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-hbd8a1cb_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-hbd8a1cb_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-12.9.27-ha770c72_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-12.9.86-ha770c72_2.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-12.9.79-h3f2d84a_0.conda @@ -19773,7 +20244,7 @@ packages: - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-12.9.79-h3f2d84a_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvcc-dev_linux-64-12.9.86-he91c749_2.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-12.9.86-ha770c72_2.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-pathfinder-1.8.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-pathfinder-1.8.5-pyh5ded981_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-12.9-h4f385c5_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/libnvptxcompiler-dev_linux-64-12.9.86-ha770c72_2.conda - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda @@ -19782,18 +20253,18 @@ packages: - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-scm-10.3.4-pyh5ded981_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.5.0-pyh5ded981_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026e-h5d301ff_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda -- conda_source: cuda-core[c16b8443] @ . +- conda_source: cuda-core[315d990f] @ . variants: c_compiler: vs2022 - cuda_version: 13.4.* + cuda_version: 13.5.* cxx_compiler: vs2022 python: 3.14.* target_platform: win-64 depends: - cuda-bindings - - cuda-nvrtc >=13.4.92,<14.0a0 + - cuda-nvrtc >=13.5.37,<14.0a0 - cuda-pathfinder - cuda-version - numpy @@ -19806,61 +20277,69 @@ packages: license: Apache-2.0 build_packages: - conda: https://conda.anaconda.org/conda-forge/noarch/vswhere-3.1.7-h40126e0_1.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/vs2022_win-64-19.44.35207-ha74f236_41.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vs2022_win-64-19.44.35207-ha74f236_42.conda host_packages: - - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-h4c7d964_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-13.3.4.3.1-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-13.4.92-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-13.4.92-hac47afa_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-13.4.92-hac47afa_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-13.4.92-hac47afa_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-pathfinder-1.8.3-pyhc364b38_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-h4c7d964_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-13.3.5.0.6-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-13.5.37-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-pathfinder-1.8.5-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-9_cp314.conda - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.2.1-pyhe730653_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-scm-10.3.4-pyh5ded981_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.5.0-pyh5ded981_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026e-h5d301ff_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h0ad9c76_10.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-bindings-13.4.4-py314hb98de8c_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-13.4.92-hac47afa_1.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-dev-13.4.92-hac47afa_1.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-13.4.92-hfd05255_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/clang-format-22.1.8-default_hacd6ee9_11.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/clang-tools-22.1.8-default_h940401a_11.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-bindings-13.5.0-py314hb98de8c_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-dev-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-13.5.37-hfd05255_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/cython-3.2.9-py314h344ed54_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/dlpack-1.3-hac47afa_1.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libexpat-2.8.5-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/icu-78.3-h5112557_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libclang13-23.1.4-default_hacd6ee9_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libexpat-2.9.0-hac47afa_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libffi-3.7.0-h3d046cb_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libiconv-1.18-hc1393d2_3.conda - conda: https://conda.anaconda.org/conda-forge/win-64/liblzma-5.8.3-hfd05255_1.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libmpdec-4.0.0-hfd05255_2.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libnvfatbin-13.4.92-hac47afa_1.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-13.4.92-hac47afa_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libnvfatbin-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-13.5.37-hac47afa_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libpython-3.14.10-hc6187dd_100_cp314.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/libsqlite-3.54.1-hf5d6505_100.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libsqlite-3.54.1-hf5d6505_101.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libxml2-16-2.15.4-h3cfd58e_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libxml2-2.15.4-he095d88_1.conda - conda: https://conda.anaconda.org/conda-forge/win-64/libzlib-1.3.2-hfd05255_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/llvm-openmp-23.1.5-h49e36cd_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/openssl-3.6.5-hf411b9b_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/python-3.14.10-h53f6dd8_100_cp314.conda - conda: https://conda.anaconda.org/conda-forge/win-64/tk-8.6.13-h967ab96_4.conda - conda: https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/uv-0.13.5-hf7a7c96_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/vc-14.5-ha367084_41.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.51.36247-habf1de7_41.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/vcomp14-14.51.36247-habf1de7_41.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/uv-0.13.7-hf7a7c96_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vc-14.5-ha367084_42.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.51.36247-habf1de7_42.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vcomp14-14.51.36247-habf1de7_42.conda - conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda -- conda_source: cuda-core[d32d80be] @ . +- conda_source: cuda-core[3eda8084] @ . variants: c_stdlib: sysroot c_stdlib_version: '2.28' - cuda_version: 13.4.* + cuda_version: 13.5.* python: 3.14.* target_platform: linux-aarch64 depends: - __glibc >=2.28,<3.0.a0 - cuda-bindings - - cuda-cudart >=13.4.92,<14.0a0 - - cuda-nvrtc >=13.4.92,<14.0a0 + - cuda-cudart >=13.5.37,<14.0a0 + - cuda-nvrtc >=13.5.37,<14.0a0 - cuda-pathfinder - cuda-version - libgcc >=16 @@ -19890,142 +20369,51 @@ packages: - conda: https://conda.anaconda.org/conda-forge/noarch/libgcc-devel_linux-aarch64-16.2.0-hc0c2482_107.conda - conda: https://conda.anaconda.org/conda-forge/noarch/libstdcxx-devel_linux-aarch64-16.2.0-h082e5f6_107.conda - conda: https://conda.anaconda.org/conda-forge/noarch/sysroot_linux-aarch64-2.28-h585391f_9.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026e-h5d301ff_0.conda host_packages: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/bzip2-1.0.8-h4777abc_10.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-bindings-13.4.4-py314h8ac86d4_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-13.4.92-hae6cbe8_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-13.4.92-hae6cbe8_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-13.4.92-hae6cbe8_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-13.4.92-hae6cbe8_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-dev-13.4.92-hae6cbe8_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-13.4.92-hbe86820_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-13.4.92-h16bee8c_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cython-3.2.9-py314hc6b4731_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/dlpack-1.3-h4154aff_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ld_impl_linux-aarch64-2.46.1-default_h1979696_103.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcap-2.78-hfcc8634_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcudla-13.4.92-h4154aff_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.19.1.55-hc7dfe37_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libexpat-2.8.5-h4154aff_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libffi-3.7.0-hdaad0be_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgcc-16.2.0-h205dda4_7.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgomp-16.2.0-h8acb6b2_7.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/liblzma-5.8.3-he30d5cf_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libmpdec-4.0.0-he30d5cf_2.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnl-3.11.0-he30d5cf_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvfatbin-13.4.92-hae6cbe8_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-13.4.92-hae6cbe8_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libpython-3.14.10-h150030a_100_cp314.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsqlite-3.54.1-hd26f1b6_100.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libstdcxx-16.2.0-hef695bb_7.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsystemd0-262.1-hd1ea486_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libudev1-262.1-hd1ea486_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libuuid-2.42.4-hd6fdeab_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libzlib-1.3.2-hdc9db2a_3.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ncurses-6.6-h2b6f883_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/openssl-3.6.5-he6ad1d5_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/python-3.14.10-hbec3b18_100_cp314.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/rdma-core-65.0-h807d763_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/readline-8.3-ha7194a6_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/tk-8.6.13-noxft_hf03c496_4.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/uv-0.13.5-h779c035_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/zstd-1.5.7-h9d15635_7.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/arm-variant-1.2.0-sbsa.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-hbd8a1cb_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-13.3.4.3.1-h579c4fd_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-13.4.92-h579c4fd_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-13.4.92-hae6cbe8_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-13.4.92-hae6cbe8_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-13.4.92-hae6cbe8_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-pathfinder-1.8.3-pyhc364b38_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-9_cp314.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.2.1-pyhe730653_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-scm-10.3.4-pyh5ded981_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.5.0-pyh5ded981_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda -- conda_source: cuda-core[df9822dd] @ . - variants: - c_stdlib: sysroot - c_stdlib_version: '2.28' - cuda_version: 12.* - python: 3.14.* - target_platform: linux-aarch64 - depends: - - __glibc >=2.28,<3.0.a0 - - cuda-bindings - - cuda-cudart >=12.9.79,<13.0a0 - - cuda-nvrtc >=12.9.86,<13.0a0 - - cuda-pathfinder - - cuda-version - - libgcc >=16 - - libgcc >=16 - - libstdcxx >=16 - - numpy - - python - - python >=3.11 - - python_abi 3.14.* *_cp314 - license: Apache-2.0 - build_packages: - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/binutils_impl_linux-aarch64-2.46.1-default_h5f4c503_103.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/binutils_linux-aarch64-2.46.1-default_hf1166c9_103.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gcc_impl_linux-aarch64-16.2.0-h5425ead_7.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gcc_linux-aarch64-16.2.0-h25cc031_2.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gxx_impl_linux-aarch64-16.2.0-h1e3c31f_7.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gxx_linux-aarch64-16.2.0-h423111d_2.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ld_impl_linux-aarch64-2.46.1-default_h1979696_103.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgcc-16.2.0-h205dda4_7.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgomp-16.2.0-h8acb6b2_7.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsanitizer-16.2.0-h73cac2c_7.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libstdcxx-16.2.0-hef695bb_7.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libzlib-1.3.2-hdc9db2a_3.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/zstd-1.5.7-h9d15635_7.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/kernel-headers_linux-aarch64-4.18.0-h05a177a_9.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/libgcc-devel_linux-aarch64-16.2.0-hc0c2482_107.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/libstdcxx-devel_linux-aarch64-16.2.0-h082e5f6_107.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/sysroot_linux-aarch64-2.28-h585391f_9.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - host_packages: - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/bzip2-1.0.8-h4777abc_10.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-bindings-12.9.9-py314h73c45f8_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-crt-tools-12.9.86-h579c4fd_2.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-12.9.79-h3ae8b8a_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-12.9.79-h3ae8b8a_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-12.9.79-h3ae8b8a_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvcc-impl-12.9.86-h614329b_2.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvcc-tools-12.9.86-h614329b_2.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-12.9.86-h8f3c8d4_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-dev-12.9.86-h8f3c8d4_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-12.9.86-h7b14b0b_2.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-12.9.86-h7b14b0b_2.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-12.9.79-h16bee8c_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/clang-format-22-22.1.8-default_h01b09c7_11.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/clang-format-22.1.8-default_hd528a3d_11.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/clang-scan-deps-22.1.8-default_h01b09c7_11.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/clang-tools-22.1.8-default_h31a7d68_11.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-bindings-13.5.0-py314h8ac86d4_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-dev-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-13.5.37-hbe86820_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-13.5.25-h16bee8c_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cython-3.2.9-py314hc6b4731_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/dlpack-1.3-h4154aff_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ld_impl_linux-aarch64-2.46.1-default_h1979696_103.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcap-2.78-hfcc8634_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.14.1.1-had8bf56_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libexpat-2.8.5-h4154aff_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libclang-cpp22.1-22.1.8-default_h01b09c7_11.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libclang-cpp23.1-23.1.4-default_h01b09c7_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libclang13-23.1.4-default_h807fe02_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcudla-13.5.25-h4d4540f_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.20.0.107-hc7dfe37_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libexpat-2.9.0-h4154aff_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libffi-3.7.0-hdaad0be_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgcc-16.2.0-h205dda4_7.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgomp-16.2.0-h8acb6b2_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libiconv-1.18-h1ea5142_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libllvm22-22.1.8-h680871c_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libllvm23-23.1.5-h680871c_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/liblzma-5.8.3-he30d5cf_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libmpdec-4.0.0-he30d5cf_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnl-3.11.0-he30d5cf_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-12.9.86-h8f3c8d4_2.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvptxcompiler-dev-12.9.86-h579c4fd_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvfatbin-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-13.5.37-hc1d3098_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libpython-3.14.10-h150030a_100_cp314.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsqlite-3.54.1-hd26f1b6_100.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsqlite-3.54.1-hd26f1b6_101.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libstdcxx-16.2.0-hef695bb_7.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsystemd0-262.1-hd1ea486_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libudev1-262.1-hd1ea486_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libuuid-2.42.4-hd6fdeab_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libuuid-2.42.4-hd6fdeab_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libxml2-16-2.15.4-h183574b_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libxml2-2.15.4-ha1111c9_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libzlib-1.3.2-hdc9db2a_3.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ncurses-6.6-h2b6f883_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/openssl-3.6.5-he6ad1d5_0.conda @@ -20033,40 +20421,37 @@ packages: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/rdma-core-65.0-h807d763_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/readline-8.3-ha7194a6_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/tk-8.6.13-noxft_hf03c496_4.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/uv-0.13.5-h779c035_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/uv-0.13.7-h779c035_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/zstd-1.5.7-h9d15635_7.conda - conda: https://conda.anaconda.org/conda-forge/noarch/arm-variant-1.2.0-sbsa.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-hbd8a1cb_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-12.9.27-h579c4fd_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-12.9.86-h579c4fd_2.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-12.9.79-h3ae8b8a_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-12.9.79-h3ae8b8a_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-12.9.79-h3ae8b8a_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvcc-dev_linux-aarch64-12.9.86-h4310d6a_2.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-12.9.86-h579c4fd_2.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-pathfinder-1.8.3-pyhc364b38_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-12.9-h4f385c5_3.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/libnvptxcompiler-dev_linux-aarch64-12.9.86-h579c4fd_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-hbd8a1cb_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-13.3.5.0.6-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-13.5.37-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-pathfinder-1.8.5-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-9_cp314.conda - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.2.1-pyhe730653_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-scm-10.3.4-pyh5ded981_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.5.0-pyh5ded981_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026e-h5d301ff_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda -- conda_source: cuda-core[e2d04db8] @ . +- conda_source: cuda-core[a10511c6] @ . variants: c_stdlib: sysroot c_stdlib_version: '2.28' - cuda_version: 13.4.* + cuda_version: 13.5.* python: 3.14.* target_platform: linux-64 depends: - __glibc >=2.28,<3.0.a0 - cuda-bindings - - cuda-cudart >=13.4.92,<14.0a0 - - cuda-nvrtc >=13.4.92,<14.0a0 + - cuda-cudart >=13.5.37,<14.0a0 + - cuda-nvrtc >=13.5.37,<14.0a0 - cuda-pathfinder - cuda-version - libgcc >=16 @@ -20096,38 +20481,50 @@ packages: - conda: https://conda.anaconda.org/conda-forge/noarch/libgcc-devel_linux-64-16.2.0-he3ce08f_107.conda - conda: https://conda.anaconda.org/conda-forge/noarch/libstdcxx-devel_linux-64-16.2.0-h86e191b_107.conda - conda: https://conda.anaconda.org/conda-forge/noarch/sysroot_linux-64-2.28-h4ee821c_9.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026e-h5d301ff_0.conda host_packages: - conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-hda65f42_10.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-bindings-13.4.4-py314hf3b331d_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-13.4.92-hd2095e1_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-13.4.92-hd2095e1_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-13.4.92-hd2095e1_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-13.4.92-hd2095e1_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-dev-13.4.92-hd2095e1_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-13.4.92-hb03c661_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-profiler-api-13.4.92-h7938cbb_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/clang-format-22-22.1.8-default_h0acdd01_11.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/clang-format-22.1.8-default_h0c12a12_11.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/clang-scan-deps-22.1.8-default_h0acdd01_11.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/clang-tools-22.1.8-default_ha96978a_11.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-bindings-13.5.0-py314hf3b331d_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-dev-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-13.5.37-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-profiler-api-13.5.25-h7938cbb_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/cython-3.2.9-py314h1807b08_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/dlpack-1.3-hd2095e1_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.46.1-default_hbd61a6d_103.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libcap-2.78-h084b8d7_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.19.1.55-h63c01a6_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.8.5-hd2095e1_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libclang-cpp22.1-22.1.8-default_h0acdd01_11.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libclang-cpp23.1-23.1.4-default_h0acdd01_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libclang13-23.1.4-default_h6e6c352_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.20.0.107-h63c01a6_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.9.0-hd2095e1_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.7.0-h81df57d_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libgcc-16.2.0-ha9f2e26_7.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libgomp-16.2.0-he0feb66_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libiconv-1.18-h0cb94f2_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libllvm22-22.1.8-h474f4eb_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libllvm23-23.1.5-h474f4eb_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/liblzma-5.8.3-hb03c661_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libmpdec-4.0.0-hb03c661_2.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libnl-3.11.0-hb03c661_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvfatbin-13.4.92-hd2095e1_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-13.4.92-hd2095e1_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvfatbin-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-13.5.37-h393e864_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libpython-3.14.10-hd51c5da_100_cp314.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libsqlite-3.54.1-h0737f62_100.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libsqlite-3.54.1-h0737f62_101.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-16.2.0-h934c35e_7.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libsystemd0-262.1-h26e0ef7_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libudev1-262.1-h26e0ef7_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libuuid-2.42.4-hcfc3c73_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libuuid-2.42.4-hcfc3c73_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libxml2-16-2.15.4-hbdfff7e_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libxml2-2.15.4-ha7a5771_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/libzlib-1.3.2-h25fd6f3_3.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/ncurses-6.6-hdb14827_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.6.5-h781a0a9_0.conda @@ -20135,62 +20532,109 @@ packages: - conda: https://conda.anaconda.org/conda-forge/linux-64/rdma-core-65.0-h7b4f2e6_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/readline-8.3-hd6e31c0_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.13-noxft_h1df4ec4_4.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/uv-0.13.5-h535ca38_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/uv-0.13.7-h535ca38_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/zstd-1.5.7-hb78ec9c_7.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-hbd8a1cb_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-13.3.4.3.1-ha770c72_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-13.4.92-ha770c72_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-13.4.92-h9e77f9f_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-13.4.92-h9e77f9f_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-13.4.92-h9e77f9f_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-pathfinder-1.8.3-pyhc364b38_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.4-hfacf21a_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-hbd8a1cb_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-13.3.5.0.6-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-13.5.37-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-pathfinder-1.8.5-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-9_cp314.conda - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.2.1-pyhe730653_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-scm-10.3.4-pyh5ded981_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.5.0-pyh5ded981_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026e-h5d301ff_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda -- conda_source: cuda-pathfinder[9b57eb00] @ ../cuda_pathfinder +- conda_source: cuda-core[bd2b7b0c] @ . variants: - target_platform: noarch + c_compiler: vs2022 + cuda_version: 12.* + cxx_compiler: vs2022 + python: 3.14.* + target_platform: win-64 depends: - - python * + - cuda-bindings + - cuda-cudart >=12.9.79,<13.0a0 + - cuda-nvrtc >=12.9.86,<13.0a0 + - cuda-pathfinder + - cuda-version + - numpy + - python - python >=3.11 + - python_abi 3.14.* *_cp314 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 license: Apache-2.0 + build_packages: + - conda: https://conda.anaconda.org/conda-forge/noarch/vswhere-3.1.7-h40126e0_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vs2022_win-64-19.44.35207-ha74f236_42.conda host_packages: - - conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-hda65f42_10.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.46.1-default_hbd61a6d_103.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libedit-3.1.20260512-pl5321h373387f_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.8.5-hd2095e1_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.7.0-h81df57d_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libgcc-16.2.0-ha9f2e26_7.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libgomp-16.2.0-he0feb66_7.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/liblzma-5.8.3-hb03c661_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libmpdec-4.0.0-hb03c661_2.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libsqlite-3.54.1-h0737f62_100.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-16.2.0-h934c35e_7.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libuuid-2.42.4-hcfc3c73_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/libzlib-1.3.2-h25fd6f3_3.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/ncurses-6.6-hdb14827_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.6.5-h781a0a9_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/python-3.15.2-h6e52b48_100_cp315.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.13-noxft_h1df4ec4_4.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/uv-0.13.5-h535ca38_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/zstd-1.5.7-hb78ec9c_7.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-hbd8a1cb_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-h4c7d964_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-12.9.27-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-12.9.86-h57928b3_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvcc-dev_win-64-12.9.86-h36c15f3_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-12.9.86-h57928b3_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-pathfinder-1.8.5-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-12.9-h4f385c5_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libnvptxcompiler-dev_win-64-12.9.86-h57928b3_2.conda - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.15-9_cp315.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-9_cp314.conda - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.2.1-pyhe730653_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-scm-10.3.4-pyh5ded981_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.5.0-pyh5ded981_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026e-h5d301ff_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda -- conda_source: cuda-pathfinder[a51836e4] @ ../cuda_pathfinder + - conda: https://conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h0ad9c76_10.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/clang-format-22.1.8-default_hacd6ee9_11.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/clang-tools-22.1.8-default_h940401a_11.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-bindings-12.9.9-py314h2547b3f_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-crt-tools-12.9.86-h57928b3_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-dev-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-static-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvcc-impl-12.9.86-h53cbb54_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvcc-tools-12.9.86-he0c23c2_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-12.9.86-hac47afa_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-dev-12.9.86-hac47afa_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-12.9.86-h2466b09_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-12.9.86-h2466b09_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cython-3.2.9-py314h344ed54_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/dlpack-1.3-hac47afa_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/icu-78.3-h5112557_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libclang13-23.1.4-default_hacd6ee9_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libexpat-2.9.0-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libffi-3.7.0-h3d046cb_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libiconv-1.18-hc1393d2_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/liblzma-5.8.3-hfd05255_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libmpdec-4.0.0-hfd05255_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-12.9.86-hac47afa_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libnvptxcompiler-dev-12.9.86-h57928b3_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libpython-3.14.10-hc6187dd_100_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libsqlite-3.54.1-hf5d6505_101.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libxml2-16-2.15.4-h3cfd58e_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libxml2-2.15.4-he095d88_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libzlib-1.3.2-hfd05255_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/llvm-openmp-23.1.5-h49e36cd_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/openssl-3.6.5-hf411b9b_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/python-3.14.10-h53f6dd8_100_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/tk-8.6.13-h967ab96_4.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/uv-0.13.7-hf7a7c96_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vc-14.5-ha367084_42.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.51.36247-habf1de7_42.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vcomp14-14.51.36247-habf1de7_42.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda +- conda_source: cuda-pathfinder[3da77f45] @ ../cuda_pathfinder variants: target_platform: noarch depends: @@ -20227,7 +20671,44 @@ packages: - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda -- conda_source: cuda-pathfinder[f6abc7c0] @ ../cuda_pathfinder +- conda_source: cuda-pathfinder[8f545c34] @ ../cuda_pathfinder + variants: + target_platform: noarch + depends: + - python * + - python >=3.11 + license: Apache-2.0 + host_packages: + - conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-hda65f42_10.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.46.1-default_hbd61a6d_103.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libedit-3.1.20260512-pl5321h373387f_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.8.5-hd2095e1_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.7.0-h81df57d_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgcc-16.2.0-ha9f2e26_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgomp-16.2.0-he0feb66_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/liblzma-5.8.3-hb03c661_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libmpdec-4.0.0-hb03c661_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libsqlite-3.54.1-h0737f62_100.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-16.2.0-h934c35e_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libuuid-2.42.4-hcfc3c73_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libzlib-1.3.2-h25fd6f3_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/ncurses-6.6-hdb14827_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.6.5-h781a0a9_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/python-3.15.2-h6e52b48_100_cp315.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.13-noxft_h1df4ec4_4.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/uv-0.13.5-h535ca38_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/zstd-1.5.7-hb78ec9c_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.19-hbd8a1cb_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.15-9_cp315.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.2.1-pyhe730653_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-scm-10.3.4-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.5.0-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda +- conda_source: cuda-pathfinder[b5bcf07a] @ ../cuda_pathfinder variants: target_platform: noarch depends: @@ -20425,10 +20906,10 @@ packages: - nvidia-cusolvermp-cu13>=0.8.0,<0.10 ; sys_platform == 'linux' and extra == 'cu13-distributed' - nvidia-nvshmem-cu13>=3.2.5 ; sys_platform == 'linux' and extra == 'cu13-distributed' requires_python: '>=3.10,<3.15' -- pypi: https://files.pythonhosted.org/packages/4b/68/7482871b9da7d2239f512192339fad405d83af8fb8915319b31afeb42071/cuda_core-1.2.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl +- pypi: https://files.pythonhosted.org/packages/48/0c/92d7b6a59918f11507f3f0da2279c4b2119727414d5ddef0ab480502a065/cuda_core-1.2.2-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl name: cuda-core - version: 1.2.1 - sha256: cfa6b43cd62560f707f11a63d88cefa8f8acf98ccb338a6a747b4a02ff6a0c66 + version: 1.2.2 + sha256: 7911da1a70e9d6b115db16f4995c4c00b9bb18457e4e5145b3ff27aa4dc291cd requires_dist: - cuda-pathfinder>=1.4.2 - numpy @@ -20539,6 +21020,19 @@ packages: version: 13.4.92 sha256: 5ce8c97b00b232c4f50c8c4b5a3b68cafee08bdb82ea86f2052ff01d03194f4a requires_python: '>=3' +- pypi: https://files.pythonhosted.org/packages/58/f0/437869ea39a6c97468d1141dcee862ccc3e409e8afabd78896e42213c867/cuda_core-1.2.2-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl + name: cuda-core + version: 1.2.2 + sha256: 29f0b14a513374e47c6bbd7f1185d735a9a8c3573abf8da4e836805c3d6c7d82 + requires_dist: + - cuda-pathfinder>=1.4.2 + - numpy + - backports-strenum ; python_full_version < '3.11' + - cuda-bindings[all]==12.* ; extra == 'cu12' + - cuda-toolkit==12.* ; extra == 'cu12' + - cuda-bindings[all]==13.* ; extra == 'cu13' + - cuda-toolkit==13.* ; extra == 'cu13' + requires_python: '>=3.10' - pypi: https://files.pythonhosted.org/packages/5a/8c/19c959c7497421559575a6c574ba40e18981558bb8289ddd8ef043b98c54/nvidia_cuda_nvcc-13.4.92-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl name: nvidia-cuda-nvcc version: 13.4.92 @@ -20569,6 +21063,19 @@ packages: - cuda-toolkit==13.* ; extra == 'all' - nvidia-cudla==13.* ; platform_machine == 'aarch64' and sys_platform == 'linux' and extra == 'all' requires_python: '>=3.10' +- pypi: https://files.pythonhosted.org/packages/65/d4/5ea4865f80fe6789d89316c2d1270655e6e7da613fec1a3e1ec7b81e52f4/cuda_core-1.2.2-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl + name: cuda-core + version: 1.2.2 + sha256: 5fd8ac1b7138babe1dc5476650aaab54810292885e5db9e18808ba616f4ccdce + requires_dist: + - cuda-pathfinder>=1.4.2 + - numpy + - backports-strenum ; python_full_version < '3.11' + - cuda-bindings[all]==12.* ; extra == 'cu12' + - cuda-toolkit==12.* ; extra == 'cu12' + - cuda-bindings[all]==13.* ; extra == 'cu13' + - cuda-toolkit==13.* ; extra == 'cu13' + requires_python: '>=3.10' - pypi: https://files.pythonhosted.org/packages/66/af/91fb413aa69b1b25f28980ad19ff39e52ff746b3fc7474b69bb622788bcb/cuda_cccl-1.2.1-cp314-cp314-manylinux_2_26_x86_64.whl name: cuda-cccl version: 1.2.1 @@ -20992,19 +21499,6 @@ packages: - cuda-toolkit==13.* ; extra == 'all' - nvidia-cudla==13.* ; platform_machine == 'aarch64' and sys_platform == 'linux' and extra == 'all' requires_python: '>=3.10' -- pypi: https://files.pythonhosted.org/packages/a5/86/5d37bb17c636a2ef45b0fd4135743809afd1dd530afde22fea3cb3eaf05d/cuda_core-1.2.1-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl - name: cuda-core - version: 1.2.1 - sha256: 5f21f9873b196efbb4f45360158b2a2ed19748b897e4d72dd4b9f589481cfb6f - requires_dist: - - cuda-pathfinder>=1.4.2 - - numpy - - backports-strenum ; python_full_version < '3.11' - - cuda-bindings[all]==12.* ; extra == 'cu12' - - cuda-toolkit==12.* ; extra == 'cu12' - - cuda-bindings[all]==13.* ; extra == 'cu13' - - cuda-toolkit==13.* ; extra == 'cu13' - requires_python: '>=3.10' - pypi: https://files.pythonhosted.org/packages/aa/e5/a5ae94ac6877063c122033299031f06d5c869b06db979f7387157fca6285/cutensor_cu13-2.8.1-py3-none-manylinux2014_aarch64.whl name: cutensor-cu13 version: 2.8.1 @@ -21039,19 +21533,6 @@ packages: - llvmlite>=0.50.0.dev0,<0.51 - numpy>=1.22,<2.6 requires_python: '>=3.10' -- pypi: https://files.pythonhosted.org/packages/b4/cb/6e5f7af55ea54b97c0ad1ab21597da29b3e2c62709fd94a091024b8446b0/cuda_core-1.2.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl - name: cuda-core - version: 1.2.1 - sha256: e7c6b207048189cb784bb7d6b3ec0fa782aaa6142002fa86f41c8846d7193c51 - requires_dist: - - cuda-pathfinder>=1.4.2 - - numpy - - backports-strenum ; python_full_version < '3.11' - - cuda-bindings[all]==12.* ; extra == 'cu12' - - cuda-toolkit==12.* ; extra == 'cu12' - - cuda-bindings[all]==13.* ; extra == 'cu13' - - cuda-toolkit==13.* ; extra == 'cu13' - requires_python: '>=3.10' - pypi: https://files.pythonhosted.org/packages/b8/c3/efb6bbb7307bf5c83dc4acca650280b210c67ed1a1a60f898a90e7c82e38/cuda_bindings-13.4.3-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl name: cuda-bindings version: 13.4.3 @@ -21134,10 +21615,10 @@ packages: version: 13.4.92 sha256: 731ce3de11df8add8306404417a1edaede225dbe27eb233aed37c8de9d4fe720 requires_python: '>=3' -- pypi: https://files.pythonhosted.org/packages/fc/e9/5316d89fab1e62f8f16cd500843500f406cb8e8073968a79547fca4c2e5c/cuda_core-1.2.1-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl +- pypi: https://files.pythonhosted.org/packages/f2/1c/8e1f7d42984d6b164521a1dec587f3cf6d1fc585ff929f1420faa07da9d3/cuda_core-1.2.2-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl name: cuda-core - version: 1.2.1 - sha256: 84d93ff9055fd9b942024d852d30de8a225357cc898a93c9beab62eb70ae9656 + version: 1.2.2 + sha256: 0b299eee52edece08b77428cfc22b33b29be1bc69c42878d2e6114031eac17e6 requires_dist: - cuda-pathfinder>=1.4.2 - numpy From ddc2a2ac66b0ebfd154c3fff90c9bb3e83483bbf Mon Sep 17 00:00:00 2001 From: Martin Durant Date: Thu, 5 Nov 2026 19:35:01 -0500 Subject: [PATCH 09/85] [FEA] Expose graph/node IDs as ints (#3332) * Expose graph/node IDs as ints * Shorted docstrings * Add cuda 12 compile-time guards * Make messages match * Small changes * Update message --- cuda_core/cuda/core/_module.pyi | 7 ++++ cuda_core/cuda/core/_module.pyx | 17 ++++++++ cuda_core/cuda/core/graph/_graph_builder.pyi | 6 +++ cuda_core/cuda/core/graph/_graph_builder.pyx | 18 +++++++++ .../cuda/core/graph/_graph_definition.pyi | 6 +++ .../cuda/core/graph/_graph_definition.pyx | 19 +++++++++ cuda_core/cuda/core/graph/_graph_node.pyi | 12 ++++++ cuda_core/cuda/core/graph/_graph_node.pyx | 40 +++++++++++++++++++ cuda_core/docs/source/api.rst | 9 +++++ cuda_core/docs/source/release/1.3.0-notes.rst | 6 +++ .../tests/graph/test_graph_definition.py | 28 +++++++++++++ cuda_core/tests/test_module.py | 13 ++++++ 12 files changed, 181 insertions(+) diff --git a/cuda_core/cuda/core/_module.pyi b/cuda_core/cuda/core/_module.pyi index 1212bc1f536f..3cf52899a1da 100644 --- a/cuda_core/cuda/core/_module.pyi +++ b/cuda_core/cuda/core/_module.pyi @@ -97,6 +97,13 @@ class KernelAttributes: @property def cluster_scheduling_policy_preference(self) -> int: """int : The block scheduling policy of a function.""" + @property + def device_node_update_supported(self) -> bool: + """bool : Whether this kernel can be the target of device-side graph node updates. + + Requires CUDA 13 build and CUDA driver 13.3+. + This attribute is read-only. + """ class KernelOccupancy: """This class offers methods to query occupancy metrics that help determine optimal diff --git a/cuda_core/cuda/core/_module.pyx b/cuda_core/cuda/core/_module.pyx index 52a2794cfa46..dab050faaab6 100644 --- a/cuda_core/cuda/core/_module.pyx +++ b/cuda_core/cuda/core/_module.pyx @@ -235,6 +235,23 @@ cdef class KernelAttributes: cydriver.CU_FUNC_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE, ) + @property + def device_node_update_supported(self) -> bool: + """bool : Whether this kernel can be the target of device-side graph node updates. + + Requires CUDA 13 build and CUDA driver 13.3+. + This attribute is read-only. + """ + IF CUDA_CORE_BUILD_MAJOR >= 13: + if cy_driver_version() < (13, 3, 0): + raise NotImplementedError("Device node update queries require CUDA driver 13.3 or newer") + return bool(self._get_cached_attribute( + self._effective_device_id(), + cydriver.CU_FUNC_ATTRIBUTE_DEVICE_NODE_UPDATE_SUPPORTED, + )) + ELSE: + raise NotImplementedError("Device node update queries require CUDA driver 13.3 or newer") + MaxPotentialBlockSizeOccupancyResult = namedtuple( "MaxPotentialBlockSizeOccupancyResult", ("min_grid_size", "max_block_size") diff --git a/cuda_core/cuda/core/graph/_graph_builder.pyi b/cuda_core/cuda/core/graph/_graph_builder.pyi index 78d89c3bfcba..7732a93797ac 100644 --- a/cuda_core/cuda/core/graph/_graph_builder.pyi +++ b/cuda_core/cuda/core/graph/_graph_builder.pyi @@ -472,6 +472,12 @@ class Graph: def is_closed(self) -> bool: """Whether this executable graph has been closed.""" @property + def id(self) -> int: + """The driver-assigned executable graph ID, as used in GraphViz DOT output. + + Requires CUDA >= 13.1. + """ + @property def handle(self) -> driver.CUgraphExec: """Return the underlying ``CUgraphExec`` object. diff --git a/cuda_core/cuda/core/graph/_graph_builder.pyx b/cuda_core/cuda/core/graph/_graph_builder.pyx index c1a3e287d95f..8f2779af4487 100644 --- a/cuda_core/cuda/core/graph/_graph_builder.pyx +++ b/cuda_core/cuda/core/graph/_graph_builder.pyx @@ -1256,6 +1256,24 @@ cdef class Graph: """Whether this executable graph has been closed.""" return self._h_graph_exec.get() == NULL + @property + def id(self) -> int: + """The driver-assigned executable graph ID, as used in GraphViz DOT output. + + Requires CUDA >= 13.1. + """ + if self.is_closed: + raise RuntimeError("Graph is closed") + IF CUDA_CORE_BUILD_MAJOR >= 13: + cdef unsigned int graph_id + if cy_driver_version() < (13, 1, 0): + raise NotImplementedError("Graph IDs require CUDA 13 build and driver 13.1 or newer") + with nogil: + HANDLE_RETURN(cydriver.cuGraphExecGetId(as_cu(self._h_graph_exec), &graph_id)) + return graph_id + ELSE: + raise NotImplementedError("Graph IDs require CUDA 13 build and driver 13.1 or newer") + @property def handle(self) -> driver.CUgraphExec: """Return the underlying ``CUgraphExec`` object. diff --git a/cuda_core/cuda/core/graph/_graph_definition.pyi b/cuda_core/cuda/core/graph/_graph_definition.pyi index 871201d4bb04..9af0b154826b 100644 --- a/cuda_core/cuda/core/graph/_graph_definition.pyi +++ b/cuda_core/cuda/core/graph/_graph_definition.pyi @@ -64,6 +64,12 @@ class GraphDefinition: def __eq__(self, other: object) -> bool: ... def __hash__(self) -> int: ... @property + def id(self) -> int: + """The driver-assigned graph ID, as used in GraphViz DOT output. + + Requires CUDA 13 build and driver 13.1+ + """ + @property def is_valid(self) -> bool: """Whether this graph definition remains valid.""" @property diff --git a/cuda_core/cuda/core/graph/_graph_definition.pyx b/cuda_core/cuda/core/graph/_graph_definition.pyx index ea97c47bc156..0f642b840b9d 100644 --- a/cuda_core/cuda/core/graph/_graph_definition.pyx +++ b/cuda_core/cuda/core/graph/_graph_definition.pyx @@ -23,6 +23,8 @@ from cuda.core._rt cimport ( create_graph_node_handle, ) from cuda.core._utils.cuda_utils cimport HANDLE_RETURN +IF CUDA_CORE_BUILD_MAJOR >= 13: + from cuda.core._utils.version cimport cy_driver_version from typing import TYPE_CHECKING @@ -145,6 +147,23 @@ cdef class GraphDefinition: def __hash__(self) -> int: return hash(self._h_graph.get()) + @property + def id(self) -> int: + """The driver-assigned graph ID, as used in GraphViz DOT output. + + Requires CUDA 13 build and driver 13.1+ + """ + GD_check_valid(self) + IF CUDA_CORE_BUILD_MAJOR >= 13: + cdef unsigned int graph_id + if cy_driver_version() < (13, 1, 0): + raise NotImplementedError("Graph IDs require CUDA 13 build and driver 13.1 or newer") + with nogil: + HANDLE_RETURN(cydriver.cuGraphGetId(as_cu(self._h_graph), &graph_id)) + return graph_id + ELSE: + raise NotImplementedError("Graph IDs require CUDA 13 build and driver 13.1 or newer") + @property def is_valid(self) -> bool: """Whether this graph definition remains valid.""" diff --git a/cuda_core/cuda/core/graph/_graph_node.pyi b/cuda_core/cuda/core/graph/_graph_node.pyi index ab52cad8910f..45498c550b31 100644 --- a/cuda_core/cuda/core/graph/_graph_node.pyi +++ b/cuda_core/cuda/core/graph/_graph_node.pyi @@ -43,6 +43,18 @@ class GraphNode: The node type enum value, or None for the entry node. """ @property + def local_id(self) -> int: + """The node's ID within its graph. + + Requires CUDA 13 build and driver 13.1+ + """ + @property + def tools_id(self) -> int: + """The node's ID reported by CUDA profiling and tooling interfaces. + + Requires CUDA 13 build and driver 13.1+ + """ + @property def graph(self) -> GraphDefinition: """Return the GraphDefinition this node belongs to.""" @property diff --git a/cuda_core/cuda/core/graph/_graph_node.pyx b/cuda_core/cuda/core/graph/_graph_node.pyx index 4e20427ef910..c5bdc1da92b7 100644 --- a/cuda_core/cuda/core/graph/_graph_node.pyx +++ b/cuda_core/cuda/core/graph/_graph_node.pyx @@ -65,6 +65,8 @@ from cuda.core._rt cimport ( make_opaque_py, ) from cuda.core._utils.cuda_utils cimport HANDLE_RETURN, _parse_fill_value +IF CUDA_CORE_BUILD_MAJOR >= 13: + from cuda.core._utils.version cimport cy_driver_version from cuda.core._host_callback cimport ( _resolve_host_callback, @@ -145,6 +147,44 @@ cdef class GraphNode: HANDLE_RETURN(cydriver.cuGraphNodeGetType(node, &node_type)) return driver.CUgraphNodeType(node_type) + @property + def local_id(self) -> int: + """The node's ID within its graph. + + Requires CUDA 13 build and driver 13.1+ + """ + GN_check_valid(self) + if self._is_entry: + raise ValueError("The entry node has no driver-assigned ID") + IF CUDA_CORE_BUILD_MAJOR >= 13: + cdef unsigned int node_id + if cy_driver_version() < (13, 1, 0): + raise NotImplementedError("Graph IDs require a CUDA 13 build of cuda.core and CUDA driver 13.1 or newer") + with nogil: + HANDLE_RETURN(cydriver.cuGraphNodeGetLocalId(as_cu(self._h_node), &node_id)) + return node_id + ELSE: + raise NotImplementedError("Graph IDs require a CUDA 13 build of cuda.core and CUDA driver 13.1 or newer") + + @property + def tools_id(self) -> int: + """The node's ID reported by CUDA profiling and tooling interfaces. + + Requires CUDA 13 build and driver 13.1+ + """ + GN_check_valid(self) + if self._is_entry: + raise ValueError("The entry node has no driver-assigned ID") + IF CUDA_CORE_BUILD_MAJOR >= 13: + cdef unsigned long long node_id + if cy_driver_version() < (13, 1, 0): + raise NotImplementedError("Graph IDs require a CUDA 13 build of cuda.core and CUDA driver 13.1 or newer") + with nogil: + HANDLE_RETURN(cydriver.cuGraphNodeGetToolsId(as_cu(self._h_node), &node_id)) + return node_id + ELSE: + raise NotImplementedError("Graph IDs require a CUDA 13 build of cuda.core and CUDA driver 13.1 or newer") + @property def graph(self) -> GraphDefinition: """Return the GraphDefinition this node belongs to.""" diff --git a/cuda_core/docs/source/api.rst b/cuda_core/docs/source/api.rst index c0c99f6befa2..bfc9bf042f23 100644 --- a/cuda_core/docs/source/api.rst +++ b/cuda_core/docs/source/api.rst @@ -154,6 +154,15 @@ CPU overhead. Graphs can be constructed in two ways: edges. Both produce an executable :class:`~graph.Graph` that can be launched on a :class:`Stream`. +With CUDA >= 13.1, graph definitions and +executable graphs expose a read-only integer, ``id``. Nodes expose ``local_id`` +(unique within their graph) and ``tools_id`` (for profiler correlation). +Use ``node.graph`` to obtain the containing graph definition; this view +shares ownership of the underlying graph. IDs are ephemeral, driver-assigned. + +``kernel.attributes.device_node_update_supported`` reports whether a kernel +supports device-side node updates. It requires CUDA >= 13.3. + .. currentmodule:: cuda.core .. autosummary:: diff --git a/cuda_core/docs/source/release/1.3.0-notes.rst b/cuda_core/docs/source/release/1.3.0-notes.rst index fc0893dcb498..167d4eafb733 100644 --- a/cuda_core/docs/source/release/1.3.0-notes.rst +++ b/cuda_core/docs/source/release/1.3.0-notes.rst @@ -45,6 +45,12 @@ Breaking Changes New features ------------ +- Added read-only ``GraphDefinition.id``, ``Graph.id``, ``GraphNode.local_id`` + and ``GraphNode.tools_id`` properties (CUDA 13 build and driver 13.1+), and + ``KernelAttributes.device_node_update_supported`` (CUDA 13 build and driver 13.3+). + The existing ``GraphNode.graph`` property provides containing-graph navigation. + (`#2360 `__) + - Added :func:`host_launch`, which enqueues a host function on a stream in stream order: a Python callable, or a ctypes function pointer with the ``CUhostFn`` prototype, which ``cuda.core`` passes to the driver as is, so a pointer to diff --git a/cuda_core/tests/graph/test_graph_definition.py b/cuda_core/tests/graph/test_graph_definition.py index 041790a25ebf..cd4f5038bd7b 100644 --- a/cuda_core/tests/graph/test_graph_definition.py +++ b/cuda_core/tests/graph/test_graph_definition.py @@ -811,6 +811,34 @@ def test_graphdef_handle_valid(init_cuda): assert int(sample_graphdef.handle) != 0 +def test_graph_identity_attributes(init_cuda): + from cuda.core._utils.version import BUILD_CUDA_MAJOR, driver_version + + definition = GraphDefinition() + node = definition.empty() + other = definition.empty() + graph = definition.instantiate() + + try: + if BUILD_CUDA_MAJOR < 13 or driver_version() < (13, 1, 0): + with pytest.raises(NotImplementedError): + _ = definition.id + with pytest.raises(NotImplementedError): + _ = graph.id + with pytest.raises(NotImplementedError): + _ = node.local_id + with pytest.raises(NotImplementedError): + _ = node.tools_id + return + assert isinstance(definition.id, int) + assert isinstance(graph.id, int) + assert node.graph == definition + assert node.local_id != other.local_id + assert node.tools_id != other.tools_id + finally: + graph.close() + + def test_graphdef_entry_is_virtual(init_cuda): """Internal entry node is virtual (no pred/succ, type is None).""" sample_graphdef = GraphDefinition() diff --git a/cuda_core/tests/test_module.py b/cuda_core/tests/test_module.py index c2a912fcf578..0e2ac8331245 100644 --- a/cuda_core/tests/test_module.py +++ b/cuda_core/tests/test_module.py @@ -345,6 +345,19 @@ def test_read_only_kernel_attributes(get_saxpy_kernel_cubin, attr, expected_type assert isinstance(value, expected_type), f"Expected {attr} to be of type {expected_type}, but got {type(value)}" +def test_device_node_update_supported(get_saxpy_kernel_cubin): + from cuda.core._utils.version import BUILD_CUDA_MAJOR, driver_version + + kernel, _ = get_saxpy_kernel_cubin + + for device in Device.get_all_devices(): + if BUILD_CUDA_MAJOR < 13 or driver_version() < (13, 3, 0): + with pytest.raises(NotImplementedError): + _ = kernel.attributes[device].device_node_update_supported + else: + assert isinstance(kernel.attributes[device].device_node_update_supported, bool) + + def test_object_code_load_ptx(get_saxpy_kernel_ptx): ptx, mod = get_saxpy_kernel_ptx sym_map = mod.symbol_mapping From ceb91b50b91293231c13494ea414caa8d115a759 Mon Sep 17 00:00:00 2001 From: jpascucci-nv Date: Fri, 6 Nov 2026 11:07:57 -0500 Subject: [PATCH 10/85] CI: use shallow, blob-filtered CCCL submodule checkouts (#3392) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * CI: use shallow, blob-filtered CCCL submodule checkouts closes #3351 actions/checkout applies its blob filter only to the root repository, leaving CCCL submodule clones unfiltered and causing slow, variable checkout times. Fetch submodules separately with --depth=1 --filter=blob:none across build, source-test, coverage, and rendered-documentation jobs. Preserve full root history and release tags for setuptools-scm, plus URL syncing and forced checkout for reused workspaces. Validation: fresh and reused checkout checks passed; nine workflow regression tests passed. Actionlint diagnostics are unchanged. Windows checkout timing remains unverified. * docs: use filtered shallow CCCL checkouts for contributors — codex GPT-6 on behalf of Ralf — Preserve root history and release tags while fetching CCCL separately with shallow history and blob filtering. Align the contributor guide and package installation examples, and control submodule fetches explicitly on updates. Signed-off-by: Ralf W. Grosse-Kunstleve * docs: simplify filtered clone instructions — codex GPT-6 on behalf of Ralf — Use Git's native submodule filtering in each clone example and retain the ordinary update instructions. Preserve full commit history and release tags while keeping the filtered recipe directly visible to users and agents. Signed-off-by: Ralf W. Grosse-Kunstleve --------- Signed-off-by: Ralf W. Grosse-Kunstleve Co-authored-by: Ralf W. Grosse-Kunstleve --- .github/workflows/build-wheel.yml | 9 ++++++-- .github/workflows/ci-pixi-source-test.yml | 27 ++++++++++++++++++----- .github/workflows/coverage.yml | 18 +++++++++++---- .github/workflows/lychee.yml | 10 +++++++-- .github/workflows/test-sdist-linux.yml | 8 ++++++- .github/workflows/test-sdist-windows.yml | 8 ++++++- CONTRIBUTING.md | 8 +++++-- ci/README.md | 19 ++++++++++++++++ cuda_core/docs/source/install.rst | 6 ++--- cuda_pathfinder/docs/source/install.rst | 2 +- 10 files changed, 93 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build-wheel.yml b/.github/workflows/build-wheel.yml index 14efc9f798b8..e757228cc49e 100644 --- a/.github/workflows/build-wheel.yml +++ b/.github/workflows/build-wheel.yml @@ -72,8 +72,13 @@ jobs: # but not historical blobs. fetch-depth: 0 filter: blob:none - # third_party/cccl provides the CCCL headers cuda.core compiles against. - submodules: true + # Fetch CCCL separately: checkout's filter does not apply to submodules. + submodules: false + + - name: Checkout CCCL submodule + run: | + git submodule sync --recursive + git submodule update --init --force --depth=1 --filter=blob:none --recursive - name: Register problem matchers # Compiler and Cython errors from the wheel builds become annotations diff --git a/.github/workflows/ci-pixi-source-test.yml b/.github/workflows/ci-pixi-source-test.yml index a09f2e2756f9..1e10d2a5a42a 100644 --- a/.github/workflows/ci-pixi-source-test.yml +++ b/.github/workflows/ci-pixi-source-test.yml @@ -88,8 +88,13 @@ jobs: # cuda.core's "cuda.bindings 12.x or 13.x must be installed" guard. fetch-depth: 0 filter: blob:none - # third_party/cccl provides the CCCL headers cuda.core compiles against. - submodules: true + # Fetch CCCL separately: checkout's filter does not apply to submodules. + submodules: false + + - name: Checkout CCCL submodule + run: | + git submodule sync --recursive + git submodule update --init --force --depth=1 --filter=blob:none --recursive - name: Setup pixi uses: ./.github/actions/setup-pixi @@ -147,8 +152,13 @@ jobs: # cuda.core's "cuda.bindings 12.x or 13.x must be installed" guard. fetch-depth: 0 filter: blob:none - # third_party/cccl provides the CCCL headers cuda.core compiles against. - submodules: true + # Fetch CCCL separately: checkout's filter does not apply to submodules. + submodules: false + + - name: Checkout CCCL submodule + run: | + git submodule sync --recursive + git submodule update --init --force --depth=1 --filter=blob:none --recursive - name: Setup pixi uses: ./.github/actions/setup-pixi @@ -215,8 +225,13 @@ jobs: # cuda.core's "cuda.bindings 12.x or 13.x must be installed" guard. fetch-depth: 0 filter: blob:none - # third_party/cccl provides the CCCL headers cuda.core compiles against. - submodules: true + # Fetch CCCL separately: checkout's filter does not apply to submodules. + submodules: false + + - name: Checkout CCCL submodule + run: | + git submodule sync --recursive + git submodule update --init --force --depth=1 --filter=blob:none --recursive - name: Setup proxy cache uses: nv-gha-runners/setup-proxy-cache@main diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index f75ac200b066..50d168db0421 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -71,8 +71,13 @@ jobs: # but not historical blobs. fetch-depth: 0 filter: blob:none - # third_party/cccl provides the CCCL headers cuda.core compiles against. - submodules: true + # Fetch CCCL separately: checkout's filter does not apply to submodules. + submodules: false + + - name: Checkout CCCL submodule + run: | + git submodule sync --recursive + git submodule update --init --force --depth=1 --filter=blob:none --recursive - name: Fix workspace ownership run: | @@ -238,8 +243,13 @@ jobs: # but not historical blobs. fetch-depth: 0 filter: blob:none - # third_party/cccl provides the CCCL headers cuda.core compiles against. - submodules: true + # Fetch CCCL separately: checkout's filter does not apply to submodules. + submodules: false + + - name: Checkout CCCL submodule + run: | + git submodule sync --recursive + git submodule update --init --force --depth=1 --filter=blob:none --recursive - name: Set up Python uses: $/.github/actions/setup-hardened-python diff --git a/.github/workflows/lychee.yml b/.github/workflows/lychee.yml index ecb609ef3955..f8f79822b643 100644 --- a/.github/workflows/lychee.yml +++ b/.github/workflows/lychee.yml @@ -63,8 +63,14 @@ jobs: # Keep SCM history/tags without downloading historical source blobs. filter: blob:none persist-credentials: false - # Rendered docs build cuda.core against the pinned CCCL headers. - submodules: ${{ matrix.kind == 'rendered' }} + # Fetch CCCL separately: checkout's filter does not apply to submodules. + submodules: false + + - name: Checkout CCCL submodule + if: ${{ matrix.kind == 'rendered' }} + run: | + git submodule sync --recursive + git submodule update --init --force --depth=1 --filter=blob:none --recursive - name: Set up Python id: python diff --git a/.github/workflows/test-sdist-linux.yml b/.github/workflows/test-sdist-linux.yml index a4dad6edbc5c..542ba2ebc937 100644 --- a/.github/workflows/test-sdist-linux.yml +++ b/.github/workflows/test-sdist-linux.yml @@ -47,7 +47,13 @@ jobs: # the commit graph (`git describe`) but not historical blobs. fetch-depth: 0 filter: blob:none - submodules: true + # Fetch CCCL separately: checkout's filter does not apply to submodules. + submodules: false + + - name: Checkout CCCL submodule + run: | + git submodule sync --recursive + git submodule update --init --force --depth=1 --filter=blob:none --recursive - name: Set up Python uses: ./.github/actions/setup-hardened-python diff --git a/.github/workflows/test-sdist-windows.yml b/.github/workflows/test-sdist-windows.yml index bffcf5d2ea92..0c0563126d1b 100644 --- a/.github/workflows/test-sdist-windows.yml +++ b/.github/workflows/test-sdist-windows.yml @@ -56,7 +56,13 @@ jobs: # the commit graph (`git describe`) but not historical blobs. fetch-depth: 0 filter: blob:none - submodules: true + # Fetch CCCL separately: checkout's filter does not apply to submodules. + submodules: false + + - name: Checkout CCCL submodule + run: | + git submodule sync --recursive + git submodule update --init --force --depth=1 --filter=blob:none --recursive - name: Set up Python uses: ./.github/actions/setup-hardened-python diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index df487ccfdc16..b614fdcc1e0c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -69,10 +69,11 @@ ran and any validation gaps. including the Developer Mode registry check.** Complete that setup before running the clone command. -From the directory where you want to create the checkout, run: +With Git 2.36 or newer, run this from the directory where you want to +create the checkout: ```console -$ git clone --config core.symlinks=true --config submodule.recurse=true --recurse-submodules https://github.com/NVIDIA/cuda-python.git +$ git clone --config core.symlinks=true --config submodule.recurse=true --recurse-submodules --filter=blob:none --also-filter-submodules https://github.com/NVIDIA/cuda-python.git $ cd cuda-python ``` @@ -81,6 +82,9 @@ This recipe sets up the repository for source builds and development: - `core.symlinks=true` materializes symlinks during checkout, including the build-critical `cuda_core/_build_shared.py`. - `--recurse-submodules` initializes the CCCL headers needed to build `cuda.core`. +- `--filter=blob:none --also-filter-submodules` skips historical file + contents in the repository and CCCL. Git downloads those contents + when needed; commit history and release tags remain available. - `submodule.recurse=true` keeps initialized submodules in sync on `git pull`, `git checkout`, and `git switch`. - The clone retains history and release tags for correct package versions. diff --git a/ci/README.md b/ci/README.md index 2fcd5b4ab1df..af468a8c745e 100644 --- a/ci/README.md +++ b/ci/README.md @@ -24,6 +24,25 @@ The pinned checkout action's [`README`](https://github.com/actions/checkout/blob/3d3c42e5aac5ba805825da76410c181273ba90b1/README.md#fetch-all-history-for-all-tags-and-branches) documents `fetch-depth: 0` for fetching all history, branches, and tags. +## CCCL Submodule Checkout + +Jobs that build `cuda.core` fetch its pinned CCCL headers in a separate step: +set `submodules: false` on `actions/checkout`, then run: + +```bash +git submodule sync --recursive +git submodule update --init --force --depth=1 --filter=blob:none --recursive +``` + +The checkout action's `filter` input applies only to the root repository, so +letting it fetch submodules downloads CCCL's unfiltered history. The separate +step limits submodule history to one commit and skips historical blobs, while +checking out the exact revision pinned by the root repository. Syncing URLs +and forcing checkout preserve the action's behavior on reused workspaces. +Keep `fetch-depth: 0` and `filter: blob:none` on the root checkout: package +versioning still needs its complete ancestry and release tags. See +[issue #3351](https://github.com/NVIDIA/cuda-python/issues/3351). + ## Documentation Link Checks Two pre-commit hooks check links with one pinned native wheel (`lychee-bin`, diff --git a/cuda_core/docs/source/install.rst b/cuda_core/docs/source/install.rst index 0b4374392b9b..e2d74063140c 100644 --- a/cuda_core/docs/source/install.rst +++ b/cuda_core/docs/source/install.rst @@ -130,7 +130,7 @@ recipe below. On native Windows outside WSL, complete its Windows setup .. code-block:: console - $ git clone --config core.symlinks=true --config submodule.recurse=true --recurse-submodules https://github.com/NVIDIA/cuda-python.git + $ git clone --config core.symlinks=true --config submodule.recurse=true --recurse-submodules --filter=blob:none --also-filter-submodules https://github.com/NVIDIA/cuda-python.git $ cd cuda-python/cuda_core $ pip install . @@ -161,7 +161,7 @@ For example, to work on ``cuda-core`` against CUDA 13: .. code-block:: console - $ git clone --config core.symlinks=true --config submodule.recurse=true --recurse-submodules https://github.com/NVIDIA/cuda-python.git + $ git clone --config core.symlinks=true --config submodule.recurse=true --recurse-submodules --filter=blob:none --also-filter-submodules https://github.com/NVIDIA/cuda-python.git $ cd cuda-python/cuda_core $ uv venv $ source .venv/bin/activate # On Windows: .venv\Scripts\activate @@ -184,7 +184,7 @@ For example, to work against CUDA 13: .. code-block:: console - $ git clone --config core.symlinks=true --config submodule.recurse=true --recurse-submodules https://github.com/NVIDIA/cuda-python.git + $ git clone --config core.symlinks=true --config submodule.recurse=true --recurse-submodules --filter=blob:none --also-filter-submodules https://github.com/NVIDIA/cuda-python.git $ cd cuda-python $ pixi run -e cu13 test-core diff --git a/cuda_pathfinder/docs/source/install.rst b/cuda_pathfinder/docs/source/install.rst index 6c2acbdd69a1..cf49c40891e8 100644 --- a/cuda_pathfinder/docs/source/install.rst +++ b/cuda_pathfinder/docs/source/install.rst @@ -64,7 +64,7 @@ before cloning. .. code-block:: console - $ git clone --config core.symlinks=true --config submodule.recurse=true --recurse-submodules https://github.com/NVIDIA/cuda-python.git + $ git clone --config core.symlinks=true --config submodule.recurse=true --recurse-submodules --filter=blob:none --also-filter-submodules https://github.com/NVIDIA/cuda-python.git $ cd cuda-python/cuda_pathfinder $ pip install . From 79d946824b15bc91c560c033770b88e5b35f0ae2 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Fri, 6 Nov 2026 08:37:19 -0800 Subject: [PATCH 11/85] ci: normalize toolkit configuration and isolate CUDA 13 versions (#3314) * ci: normalize toolkit configuration and isolate CUDA 13 versions Signed-off-by: Ralf W. Grosse-Kunstleve * test: derive current SCM fixture version from registry [skip ci] Signed-off-by: Ralf W. Grosse-Kunstleve * Address migration review: simplify configuration and tooling Signed-off-by: Ralf W. Grosse-Kunstleve --------- Signed-off-by: Ralf W. Grosse-Kunstleve --- .github/workflows/ci-nightly.yml | 7 +- .github/workflows/ci.yml | 11 ++- .github/workflows/test-wheel-linux.yml | 5 + .pre-commit-config.yaml | 4 +- ci/__init__.py | 2 + ci/tools/__init__.py | 2 + ci/tools/bindings_config.py | 60 ++++++++++++ ci/tools/check_pixi_cuda_version.py | 26 +++--- ci/tools/tests/test_bindings_config.py | 122 +++++++++++++++++++++++++ cuda_bindings_13/pyproject.toml | 2 +- cuda_python/setup.py | 2 +- 11 files changed, 218 insertions(+), 25 deletions(-) create mode 100644 ci/__init__.py create mode 100644 ci/tools/__init__.py create mode 100644 ci/tools/bindings_config.py create mode 100644 ci/tools/tests/test_bindings_config.py diff --git a/.github/workflows/ci-nightly.yml b/.github/workflows/ci-nightly.yml index 75425ef0627d..36f73c06e8d0 100644 --- a/.github/workflows/ci-nightly.yml +++ b/.github/workflows/ci-nightly.yml @@ -61,13 +61,12 @@ jobs: - name: Set up Python uses: ./.github/actions/setup-hardened-python with: - python-version: "3.12" + python-version: "3.11" - name: Run CI tools unit tests run: | - python -m pip install pytest pyyaml==6.0.3 pathspec==0.12.1 - # Standalone CI tool tests; skip repo-root conftest.py (imports cuda.pathfinder). - python -m pytest -v --noconftest ci/tools/tests + python -m pip install pytest==9.1.0 pyyaml==6.0.3 pathspec==0.12.1 "setuptools-scm[simple]>=8,!=10.1" + python -m pytest -v ci/tools/tests find-wheels: if: ${{ github.repository_owner == 'nvidia' && !inputs.documentation-links-only }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 920629706c74..0473ef37f491 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -258,8 +258,15 @@ jobs: echo "Reusable artifacts: run \`${run_id}\` at \`${merge_base}\` on \`${BASE_REF}\`." } >> "$GITHUB_STEP_SUMMARY" - - name: Test CI workplan planner - run: python3 -m unittest ci/tools/tests/test_compute_ci_plan.py + - name: Set up Python for CI tool tests + uses: ./.github/actions/setup-hardened-python + with: + python-version: "3.11" + + - name: Test CI tools + run: | + python -m pip install pytest==9.1.0 pyyaml==6.0.3 pathspec==0.12.1 "setuptools-scm[simple]>=8,!=10.1" + python -m pytest -v ci/tools/tests - name: Compute CI workplan id: workplan diff --git a/.github/workflows/test-wheel-linux.yml b/.github/workflows/test-wheel-linux.yml index c2c7523b68c5..ce529fc73ce9 100644 --- a/.github/workflows/test-wheel-linux.yml +++ b/.github/workflows/test-wheel-linux.yml @@ -146,6 +146,11 @@ jobs: dependencies: "jq wget libgl1 libegl1 g++ util-linux yq" dependent_exes: "jq wget yq" + - name: Update container CA certificates + run: | + apt-get update + apt-get install --only-upgrade -y ca-certificates + - name: Checkout driver install scripts (workflow revision) if: ${{ matrix.DRIVER != 'latest' && matrix.DRIVER != 'earliest' }} uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b37521f2e5e6..6dd0f2de6ef6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -80,10 +80,10 @@ repos: - id: check-pixi-cuda-version name: Check pixi cuda-version pins track ci/versions.yml - entry: python ./ci/tools/check_pixi_cuda_version.py + entry: python -m ci.tools.check_pixi_cuda_version language: python additional_dependencies: [pyyaml==6.0.3] - files: '^(ci/versions\.yml|cuda_bindings_13/pixi\.toml|cuda_core/pixi\.toml)$' + files: '^(ci/versions\.yml|ci/tools/(bindings_config|check_pixi_cuda_version)\.py|cuda_bindings_13/pixi\.toml|cuda_core/pixi\.toml)$' pass_filenames: false - id: check-mempool-hygiene diff --git a/ci/__init__.py b/ci/__init__.py new file mode 100644 index 000000000000..52a7a9daf028 --- /dev/null +++ b/ci/__init__.py @@ -0,0 +1,2 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 diff --git a/ci/tools/__init__.py b/ci/tools/__init__.py new file mode 100644 index 000000000000..52a7a9daf028 --- /dev/null +++ b/ci/tools/__init__.py @@ -0,0 +1,2 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 diff --git a/ci/tools/bindings_config.py b/ci/tools/bindings_config.py new file mode 100644 index 000000000000..50741f8e57e7 --- /dev/null +++ b/ci/tools/bindings_config.py @@ -0,0 +1,60 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +"""Read bindings package roots and release roles from the existing toolkit pins.""" + +from __future__ import annotations + +from dataclasses import dataclass +from pathlib import Path + +import yaml + +DEFAULT_CONFIG = Path(__file__).resolve().parents[2] / "ci" / "versions.yml" + + +@dataclass(frozen=True) +class BindingsPackage: + package_root: str + toolkit: tuple[int, int, int] + release_status: str + + @property + def toolkit_version(self) -> str: + return ".".join(map(str, self.toolkit)) + + @property + def ctk_target(self) -> str: + return f"{self.toolkit[0]}.{self.toolkit[1]}" + + @property + def cuda_major(self) -> str: + return str(self.toolkit[0]) + + @property + def cuda_variant(self) -> str: + return f"cu{self.cuda_major}" + + +@dataclass(frozen=True) +class BindingsConfig: + package_roots: tuple[BindingsPackage, ...] + + def get_package(self, package_root: str) -> BindingsPackage: + for package in self.package_roots: + if package.package_root == package_root: + return package + raise ValueError(f"unknown CUDA bindings package root: {package_root!r}") + + def package_for_release_status(self, release_status: str) -> BindingsPackage: + return next(package for package in self.package_roots if package.release_status == release_status) + + +def load_config(path: Path = DEFAULT_CONFIG) -> BindingsConfig: + """Normalize legacy build/prev_build fields without changing their consumers.""" + raw = yaml.safe_load(path.read_text(encoding="utf-8")) + packages = [] + for field, release_status in (("build", "current"), ("prev_build", "maintenance")): + major, minor, patch = map(int, raw["cuda"][field]["version"].split(".")) + packages.append(BindingsPackage(f"cuda_bindings_{major}", (major, minor, patch), release_status)) + return BindingsConfig(tuple(packages)) diff --git a/ci/tools/check_pixi_cuda_version.py b/ci/tools/check_pixi_cuda_version.py index acd244a73167..30f765acafa3 100644 --- a/ci/tools/check_pixi_cuda_version.py +++ b/ci/tools/check_pixi_cuda_version.py @@ -9,31 +9,27 @@ import tomllib from pathlib import Path -import yaml +from . import bindings_config ROOT = Path(__file__).resolve().parents[2] -VERSIONS_FILE_PATH = ROOT / "ci" / "versions.yml" -PIXI_FILES = [ROOT / d / "pixi.toml" for d in ("cuda_bindings_13", "cuda_core")] def main() -> int: - """Verify cuda_bindings_13/cuda_core pixi pins match ci/versions.yml.""" - if not VERSIONS_FILE_PATH.is_file(): - print(f"error: {VERSIONS_FILE_PATH} not found", file=sys.stderr) - return 2 + """Verify current bindings and cuda_core pixi pins match ci/versions.yml.""" try: - build_version = yaml.safe_load(VERSIONS_FILE_PATH.read_text(encoding="utf-8"))["cuda"]["build"]["version"] - except (KeyError, TypeError): - print(f"error: cuda.build.version not found in {VERSIONS_FILE_PATH}", file=sys.stderr) + current = bindings_config.load_config().package_for_release_status("current") + except (KeyError, TypeError, ValueError) as exc: + print(f"error: invalid CUDA toolkit pins in {bindings_config.DEFAULT_CONFIG}: {exc}", file=sys.stderr) return 2 - major, minor, *_ = build_version.split(".") - expected = f"{major}.{minor}.*" - cuda_feature = f"cu{major}" + build_version = current.toolkit_version + expected = f"{current.ctk_target}.*" + cuda_feature = current.cuda_variant errors: list[str] = [] checked: list[str] = [] - for path in PIXI_FILES: + for package_root in (current.package_root, "cuda_core"): + path = ROOT / package_root / "pixi.toml" if not path.is_file(): print(f"error: {path} not found", file=sys.stderr) return 2 @@ -69,7 +65,7 @@ def main() -> int: if errors: print( - f"error: cuda_bindings_13/cuda_core pixi cuda-version pins out of sync with " + f"error: {current.package_root}/cuda_core pixi cuda-version pins out of sync with " f"ci/versions.yml cuda.build.version={build_version!r} " f"(expected pin {expected!r}):", file=sys.stderr, diff --git a/ci/tools/tests/test_bindings_config.py b/ci/tools/tests/test_bindings_config.py new file mode 100644 index 000000000000..2a1efb5dd7a0 --- /dev/null +++ b/ci/tools/tests/test_bindings_config.py @@ -0,0 +1,122 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +from __future__ import annotations + +import runpy +import shutil +import subprocess +import tomllib +from pathlib import Path + +import pytest +import setuptools +from packaging.version import Version +from setuptools_scm import get_version + +from ci.tools import check_pixi_cuda_version +from ci.tools.bindings_config import BindingsPackage, load_config + +ROOT = Path(__file__).resolve().parents[3] + + +@pytest.fixture +def legacy_config(tmp_path): + path = tmp_path / "versions.yml" + path.write_text('cuda:\n build:\n version: "13.4.2"\n prev_build:\n version: "12.9.1"\n') + return path + + +@pytest.mark.agent_authored(model="gpt-6") +def test_normalizes_legacy_toolkit_pins(legacy_config): + config = load_config(legacy_config) + current = config.package_for_release_status("current") + maintenance = config.get_package("cuda_bindings_12") + assert current == BindingsPackage("cuda_bindings_13", (13, 4, 2), "current") + assert maintenance == config.package_for_release_status("maintenance") + assert maintenance.toolkit_version == "12.9.1" + assert maintenance.ctk_target == "12.9" + assert maintenance.cuda_major == "12" + assert maintenance.cuda_variant == "cu12" + + +@pytest.fixture +def pixi_checkout(tmp_path, monkeypatch, legacy_config): + for package_root in ("cuda_bindings_13", "cuda_core"): + path = tmp_path / package_root / "pixi.toml" + path.parent.mkdir() + path.write_text( + '[workspace.build-variants]\ncuda-version = ["13.4.*"]\n' + '[feature.cu13.dependencies]\ncuda-version = "13.4.*"\n' + ) + monkeypatch.setattr(check_pixi_cuda_version, "ROOT", tmp_path) + monkeypatch.setattr(check_pixi_cuda_version.bindings_config, "load_config", lambda: load_config(legacy_config)) + return tmp_path + + +@pytest.mark.agent_authored(model="gpt-6") +def test_pixi_check_keeps_current_bindings_and_core_contract(pixi_checkout, capsys): + # The hook requires only the current bindings workspace. + assert check_pixi_cuda_version.main() == 0 + output = capsys.readouterr().out + assert "cuda_bindings_13/pixi.toml" in output + assert "cuda_core/pixi.toml" in output + + +@pytest.mark.agent_authored(model="gpt-6") +def test_pixi_check_reports_core_pin_drift(pixi_checkout, capsys): + path = pixi_checkout / "cuda_core" / "pixi.toml" + path.write_text(path.read_text().replace('cuda-version = "13.4.*"', 'cuda-version = "13.3.*"')) + assert check_pixi_cuda_version.main() == 1 + assert "cuda_core/pixi.toml: feature.cu13.dependencies.cuda-version='13.3.*'" in capsys.readouterr().err + + +@pytest.mark.agent_authored(model="gpt-6") +def test_cuda12_milestone_does_not_change_current_package_versions(tmp_path, monkeypatch): + current = load_config(ROOT / "ci" / "versions.yml").package_for_release_status("current") + for package_root, filename in (("cuda_bindings_13", "pyproject.toml"), ("cuda_python", "setup.py")): + destination = tmp_path / package_root / filename + destination.parent.mkdir() + shutil.copyfile(ROOT / package_root / filename, destination) + + def git(*args): + return subprocess.run( # noqa: S603 + [ # noqa: S607 + "git", + "-c", + "user.name=CI test", + "-c", + "user.email=ci-test@example.invalid", + "-c", + "commit.gpgsign=false", + "-c", + "tag.gpgsign=false", + "-c", + "core.hooksPath=/dev/null", + *args, + ], + cwd=tmp_path, + check=True, + capture_output=True, + text=True, + ) + + git("init", "--quiet") + git("add", ".") + git("commit", "--quiet", "-m", "Current CUDA 13 release") + git("tag", f"v{current.toolkit_version}") + (tmp_path / "maintenance-change").touch() + git("add", ".") + git("commit", "--quiet", "-m", "CUDA 12 maintenance milestone") + git("tag", "v12.9.11a0") + + with (tmp_path / "cuda_bindings_13" / "pyproject.toml").open("rb") as stream: + scm = tomllib.load(stream)["tool"]["setuptools_scm"] + assert scm["git_describe_command"][-1] == f"v{current.cuda_major}.*" + bindings_version = get_version(root=tmp_path, git_describe_command=scm["git_describe_command"]) + metadata = {} + monkeypatch.setattr(setuptools, "setup", lambda **kwargs: metadata.update(kwargs)) + monkeypatch.setenv("CUDA_PYTHON_BUILD_MAJOR", "13") + runpy.run_path(str(tmp_path / "cuda_python" / "setup.py")) + assert Version(bindings_version).release[:2] == current.toolkit[:2] + assert metadata["version"] == bindings_version diff --git a/cuda_bindings_13/pyproject.toml b/cuda_bindings_13/pyproject.toml index 471fa0ee45c4..e6261ee483d3 100644 --- a/cuda_bindings_13/pyproject.toml +++ b/cuda_bindings_13/pyproject.toml @@ -112,4 +112,4 @@ markers = [ [tool.setuptools_scm] root = ".." version_file = "cuda/bindings/_version.py" -git_describe_command = ["git", "describe", "--dirty", "--tags", "--long", "--match", "v*[0-9]*"] +git_describe_command = ["git", "describe", "--dirty", "--tags", "--long", "--match", "v13.*"] diff --git a/cuda_python/setup.py b/cuda_python/setup.py index 2c308da1c513..2223375aa8a5 100644 --- a/cuda_python/setup.py +++ b/cuda_python/setup.py @@ -11,7 +11,7 @@ version = get_version( root="..", relative_to=__file__, - git_describe_command=["git", "describe", "--dirty", "--tags", "--long", "--match", "v*[0-9]*"], + git_describe_command=["git", "describe", "--dirty", "--tags", "--long", "--match", "v13.*"], ) From 960be69abeb9b12ac91ce7604ee07cca803a401e Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Fri, 6 Nov 2026 12:16:26 -0500 Subject: [PATCH 12/85] Remove duplicate entries in the migration table (#3396) --- cuda_bindings_13/docs/source/module/v2_migration.rst | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/cuda_bindings_13/docs/source/module/v2_migration.rst b/cuda_bindings_13/docs/source/module/v2_migration.rst index ed96a6db2562..f9833f425b71 100644 --- a/cuda_bindings_13/docs/source/module/v2_migration.rst +++ b/cuda_bindings_13/docs/source/module/v2_migration.rst @@ -858,9 +858,6 @@ Where the C symbol has a version suffix (``cuCtxCreate_v2``), the legacy module * - ``cuLaunchCooperativeKernel`` - ``launch_cooperative_kernel`` - - * - ``cuLaunchCooperativeKernelMultiDevice`` - - ``launch_cooperative_kernel_multi_device`` - - * - ``cuLaunchHostFunc`` - ``launch_host_func`` - @@ -1512,15 +1509,6 @@ Where the C symbol has a version suffix (``cuCtxCreate_v2``), the legacy module * - ``cuTexObjectGetTextureDesc`` - ``tex_object_get_texture_desc`` - - * - ``cuTexRefSetAddressMode`` - - ``tex_ref_set_address_mode`` - - - * - ``cuTexRefSetFilterMode`` - - ``tex_ref_set_filter_mode`` - - - * - ``cuTexRefSetMipmapFilterMode`` - - ``tex_ref_set_mipmap_filter_mode`` - - * - ``cuThreadExchangeStreamCaptureMode`` - ``thread_exchange_stream_capture_mode`` - From 5518e2d537ada99906d4aec489a39a6af9fe60b0 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Fri, 6 Nov 2026 11:28:46 -0800 Subject: [PATCH 13/85] build: enable CUDA 12 development with utility fixes (#3315) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit — codex GPT-6 on behalf of Ralf — Enable local CUDA 12 builds, tests and documentation on main, with source-build smoke coverage for both bindings roots. Use the retained v12.9.11a0 milestone with standard setuptools-scm versioning and remove temporary SCM bootstrap machinery. Signed-off-by: Ralf W. Grosse-Kunstleve --- .github/workflows/ci-nightly.yml | 2 +- .github/workflows/ci-pixi-source-test.yml | 60 +- .github/workflows/ci.yml | 2 +- .pre-commit-config.yaml | 4 +- AGENTS.md | 37 +- README.md | 11 +- ci/pyproject.toml | 30 + ci/tools/bindings_config.py | 45 +- ci/tools/check_pixi_cuda_version.py | 41 +- ci/tools/compute_ci_plan.py | 1 + ci/tools/tests/test_bindings_config.py | 69 +- .../test_pixi_lockfile_freshness_workflow.py | 11 - cuda_bindings_12/AGENTS.md | 31 + cuda_bindings_12/README.md | 32 +- .../cuda/bindings/_internal/utils.pyx | 9 +- cuda_bindings_12/cuda/bindings/_lib/utils.pxd | 1 + cuda_bindings_12/cuda/bindings/_lib/utils.pxi | 6 +- .../cuda/bindings/utils/__init__.py | 5 +- cuda_bindings_12/docs/source/install.md | 2 +- .../docs/source/release/12.X.Y-notes.rst | 48 +- cuda_bindings_12/docs/source/support.rst | 2 +- cuda_bindings_12/pixi.lock | 13185 ++++++++++++++++ cuda_bindings_12/pixi.toml | 172 + cuda_bindings_12/pyproject.toml | 43 +- cuda_bindings_12/tests/nvml/test_cuda.py | 26 +- cuda_bindings_12/tests/nvml/test_init.py | 14 +- cuda_bindings_12/tests/nvml/test_pynvml.py | 18 - cuda_bindings_12/tests/nvml/util.py | 2 +- cuda_bindings_12/tests/pytest.ini | 1 + cuda_bindings_12/tests/test_cuda.py | 1 + cuda_bindings_12/tests/test_nvjitlink.py | 7 + cuda_bindings_12/tests/test_nvvm.py | 2 +- cuda_bindings_12/tests/test_utils.py | 21 + cuda_bindings_13/README.md | 3 +- cuda_core/pixi.toml | 4 +- pixi.toml | 13 +- 36 files changed, 13800 insertions(+), 161 deletions(-) create mode 100644 ci/pyproject.toml create mode 100644 cuda_bindings_12/AGENTS.md create mode 100644 cuda_bindings_12/pixi.lock create mode 100644 cuda_bindings_12/pixi.toml diff --git a/.github/workflows/ci-nightly.yml b/.github/workflows/ci-nightly.yml index 36f73c06e8d0..f2026a379e3b 100644 --- a/.github/workflows/ci-nightly.yml +++ b/.github/workflows/ci-nightly.yml @@ -65,7 +65,7 @@ jobs: - name: Run CI tools unit tests run: | - python -m pip install pytest==9.1.0 pyyaml==6.0.3 pathspec==0.12.1 "setuptools-scm[simple]>=8,!=10.1" + python -m pip install -e './ci[test]' python -m pytest -v ci/tools/tests find-wheels: diff --git a/.github/workflows/ci-pixi-source-test.yml b/.github/workflows/ci-pixi-source-test.yml index 1e10d2a5a42a..a6011f3cba67 100644 --- a/.github/workflows/ci-pixi-source-test.yml +++ b/.github/workflows/ci-pixi-source-test.yml @@ -12,8 +12,8 @@ # only thing that runs the pixi source build end to end. # # Two tiers, to spend GPU minutes deliberately (GPUs are scarce): -# - build-smoke (PRs): CPU-only. Source-builds bindings + core, imports them, -# builds the cython test extensions and checks placement. Catches the +# - build-smoke (PRs): CPU-only. Source-builds both bindings roots and current +# Core, imports them, builds Cython extensions and checks placement. Catches the # compile / ABI / .so-placement regressions WITHOUT a GPU. # - build-identity-roundtrip (nightly + manual): CPU-only. cu13 -> cu12 -> # cu13 in one checkout, so build artifacts cannot be reused across CUDA @@ -42,11 +42,16 @@ on: # solve, so it can break the source build without a pixi.toml edit. - "**/pyproject.toml" - "cuda_bindings_13/build_hooks.py" + - "cuda_bindings_12/build_hooks.py" - "cuda_core/build_hooks.py" - "cuda_bindings_13/cuda/bindings/**" # generated bindings sources + - "cuda_bindings_12/cuda/bindings/**" - "cuda_bindings_13/tests/cython/**" + - "cuda_bindings_12/tests/**" - "cuda_core/tests/cython/**" - "ci/versions.yml" + - "ci/pyproject.toml" + - "ci/tools/bindings_config.py" - "ci/pixi-version.env" - ".github/actions/setup-pixi/action.yml" - ".github/workflows/ci-pixi-source-test.yml" @@ -54,7 +59,8 @@ on: inputs: cuda-env: description: "pixi environment to test (cu13 or cu12)." - type: string + type: choice + options: ["cu13", "cu12"] default: "cu13" defaults: @@ -73,12 +79,19 @@ env: jobs: # ── PR guard: CPU-only build + import + placement smoke ── build-smoke: - name: "build smoke (cu13, linux-64, CPU)" + name: "build smoke (${{ matrix.cuda-env }}, linux-64, CPU)" if: >- github.repository_owner == 'nvidia' && (github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch') runs-on: ubuntu-latest timeout-minutes: 45 + strategy: + fail-fast: false + matrix: + cuda-env: ${{ fromJSON(github.event_name == 'workflow_dispatch' && format('["{0}"]', inputs.cuda-env) || '["cu12","cu13"]') }} + env: + CUDA_ENV: ${{ matrix.cuda-env }} + BINDINGS_ROOT: cuda_bindings_${{ matrix.cuda-env == 'cu12' && '12' || '13' }} steps: - name: Checkout ${{ github.event.repository.name }} uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -100,24 +113,28 @@ jobs: uses: ./.github/actions/setup-pixi - name: Source-build + import + cython-placement smoke - env: - CUDA_ENV: ${{ inputs.cuda-env || 'cu13' }} run: | # pathfinder: pure-Python, no GPU. pixi run -e "${CUDA_ENV}" test-pathfinder - # bindings + core: force the source build (catches nvrtc/driver + # Force each bindings source build (catches nvrtc/driver # compile errors like #2182) and import them (catches ABI mismatches). - pixi run --manifest-path cuda_bindings_13 -e "${CUDA_ENV}" \ + pixi run --manifest-path "${BINDINGS_ROOT}" -e "${CUDA_ENV}" \ python -c "import cuda.bindings.driver, cuda.bindings.nvrtc, cuda.bindings.runtime; print('bindings import OK')" - pixi run --manifest-path cuda_core -e "${CUDA_ENV}" \ - python -c "import cuda.core; print('core import OK')" + if [[ "${CUDA_ENV}" == cu13 ]]; then + pixi run --manifest-path cuda_core -e "${CUDA_ENV}" \ + python -c "import cuda.core; print('core import OK')" + fi # cython test extensions: build them and confirm each .so landed next # to its .pyx in tests/cython (catches the placement regression #2180). - pixi run --manifest-path cuda_bindings_13 -e "${CUDA_ENV}" build-cython-tests - pixi run --manifest-path cuda_core -e "${CUDA_ENV}" build-cython-tests - for d in cuda_bindings_13/tests/cython cuda_core/tests/cython; do + pixi run --manifest-path "${BINDINGS_ROOT}" -e "${CUDA_ENV}" build-cython-tests + cython_dirs=("${BINDINGS_ROOT}/tests/cython") + if [[ "${CUDA_ENV}" == cu13 ]]; then + pixi run --manifest-path cuda_core -e "${CUDA_ENV}" build-cython-tests + cython_dirs+=(cuda_core/tests/cython) + fi + for d in "${cython_dirs[@]}"; do if ! compgen -G "${d}/*.cpython-*.so" > /dev/null; then echo "::error::no compiled cython test .so in ${d} (placement regression)" exit 1 @@ -136,8 +153,7 @@ jobs: # The round trip (not just cu13 -> cu12) is what catches the second half: # coming back to cu13 must not silently reuse the cu12 extension. # - # cuda_core only: cuda-bindings cannot be source-built in its cu12 - # environment at all, for reasons unrelated to stale artifacts. + # Core only: bindings majors have separate source roots and environments. build-identity-roundtrip: name: "cu13 -> cu12 -> cu13 round trip (linux-64, CPU)" if: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.repository_owner == 'nvidia' }} @@ -196,10 +212,14 @@ jobs: # ── Nightly: full `pixi run test` on a GPU runner ── full-test: - name: "pixi run test (${{ inputs.cuda-env || 'cu13' }}, linux-64, GPU)" + name: "pixi run test (${{ matrix.cuda-env }}, linux-64, GPU)" if: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.repository_owner == 'nvidia' }} runs-on: "linux-amd64-gpu-l4-latest-1" # same label scheme as test-wheel-linux.yml timeout-minutes: 90 + strategy: + fail-fast: false + matrix: + cuda-env: ${{ fromJSON(github.event_name == 'workflow_dispatch' && format('["{0}"]', inputs.cuda-env) || '["cu12","cu13"]') }} container: options: -u root --security-opt seccomp=unconfined --shm-size 16g image: ubuntu:24.04 @@ -233,6 +253,10 @@ jobs: git submodule sync --recursive git submodule update --init --force --depth=1 --filter=blob:none --recursive + - name: Trust the checkout for container source builds + # checkout's temporary Git configuration does not reach later steps. + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" + - name: Setup proxy cache uses: nv-gha-runners/setup-proxy-cache@main continue-on-error: true @@ -241,4 +265,6 @@ jobs: uses: ./.github/actions/setup-pixi - name: pixi run test - run: pixi run -e "${{ inputs.cuda-env || 'cu13' }}" test + env: + CUDA_ENV: ${{ matrix.cuda-env }} + run: pixi run -e "${CUDA_ENV}" test diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0473ef37f491..a816ac5b679e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -265,7 +265,7 @@ jobs: - name: Test CI tools run: | - python -m pip install pytest==9.1.0 pyyaml==6.0.3 pathspec==0.12.1 "setuptools-scm[simple]>=8,!=10.1" + python -m pip install -e './ci[test]' python -m pytest -v ci/tools/tests - name: Compute CI workplan diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6dd0f2de6ef6..abeffc5eb539 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -83,7 +83,7 @@ repos: entry: python -m ci.tools.check_pixi_cuda_version language: python additional_dependencies: [pyyaml==6.0.3] - files: '^(ci/versions\.yml|ci/tools/(bindings_config|check_pixi_cuda_version)\.py|cuda_bindings_13/pixi\.toml|cuda_core/pixi\.toml)$' + files: '^(ci/versions\.yml|ci/tools/(bindings_config|check_pixi_cuda_version)\.py|cuda_bindings_(?:12|13)/pixi\.toml|cuda_core/pixi\.toml)$' pass_filenames: false - id: check-mempool-hygiene @@ -162,7 +162,7 @@ repos: rev: "3e8a8703264a2f4a69428a0aa4dcb512790b2c8c" # frozen: v6.0.0 hooks: - id: check-added-large-files - exclude: '^(?:cuda_bindings_13/cuda/bindings/(?:nvml\.pyx|_v2/driver\.pyx)|cuda_bindings_12/cuda/bindings/(?:driver\.pyx|runtime\.pyx\.in|nvml\.pyx)|qa/.*\.svg)$' + exclude: '^(?:cuda_bindings_13/cuda/bindings/(?:nvml\.pyx|_v2/driver\.pyx)|cuda_bindings_12/cuda/bindings/(?:driver\.pyx|runtime\.pyx\.in|nvml\.pyx)|cuda_bindings_(?:12|13)/pixi\.lock|qa/.*\.svg)$' - id: check-case-conflict - id: check-docstring-first - id: check-merge-conflict diff --git a/AGENTS.md b/AGENTS.md index 55e92ba91d1a..637fb3d26753 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -8,10 +8,33 @@ guide for package-specific conventions and workflows. ## Package map - `cuda_pathfinder/`: Pure-Python library discovery and loading utilities. -- `cuda_bindings_13/`: Low-level CUDA host API bindings (Cython-heavy). +- `cuda_bindings_12/`: CUDA 12.9 maintenance bindings (Cython-heavy). +- `cuda_bindings_13/`: Current CUDA 13 bindings (Cython-heavy). - `cuda_core/`: High-level Pythonic CUDA APIs built on top of bindings. - `cuda_python/`: Metapackage and docs aggregation. +## Changes across bindings majors + +Both `cuda_bindings_12/` and `cuda_bindings_13/` are maintained on `main`. +When implementing or reviewing a change in either root, inspect the other +root's corresponding implementation, tests, and relevant build, packaging, +or documentation files, including files absent from the diff. Check shared +instructions and configuration affected by the change too. Apply this check +in both directions, and when changing shared build helpers, generation +inputs, CI selection, or release routing. + +- Make matching changes where the affected behavior applies to both roots. + Preserve intentional differences in supported APIs, toolkit inputs, source + layout, and compatibility behavior. Do not copy changes mechanically or add an unsupported API to make the roots match. +- Follow each package's generation instructions: change the generation source + and regenerate each affected root against its own inputs. Do not hand-edit + generated output. +- In the implementation or review summary, name the counterpart files inspected + and identify the matching changes or explain concretely why none are needed. + Reviewers must verify that assessment and flag omitted applicable changes; + absence from the diff is not evidence that the other root is unaffected. +- Preserve byte-for-byte invariants for package-local copies of shared helpers. + # Git-derived version lifecycle Package versions are derived from reachable Git tags by `setuptools-scm`. @@ -36,13 +59,17 @@ For each package tag namespace and target release `X.Y.Z`: existing history. - Treat pushed tags as immutable. Correct an unsuitable tagged state with a new versioned milestone rather than moving or replacing the existing tag. +- Before reserving a release number or creating an internal milestone, check + canonical tags and coordinate with release maintainers. Use an unused release + number, including releases tagged on other branches; keep the same target + across builds until release coordination requires a change. Use the package's established tag namespace, such as `vX.Y.Z...` for `cuda-bindings` and `cuda-python`, `cuda-core-vX.Y.Z...` for `cuda-core`, and -`cuda-pathfinder-vX.Y.Z...` for `cuda-pathfinder`. Builds that support the -pre-tag bootstrap should validate the resulting release tuple rather than -hard-code the expected alpha/development suffix, and should report the -effective `git describe` result for traceability. +`cuda-pathfinder-vX.Y.Z...` for `cuda-pathfinder`. Build validation should +check the resulting release tuple rather than hard-code the expected +alpha/development suffix, and report the effective `git describe` result for +traceability. # Contributions diff --git a/README.md b/README.md index 3e9ebf79afb2..016cb8a28ecc 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,14 @@ The list of available interfaces is: * cuFile * NVML +## Bindings source roots + +Current CUDA 13 bindings live in [`cuda_bindings_13/`](cuda_bindings_13/), and +CUDA 12 bindings sources have a separate +[developer environment](cuda_bindings_12/README.md). Both roots build the same +`cuda-bindings` distribution and `cuda.bindings` namespace; develop and test +them in separate environments. + ## License CUDA Python is licensed under the [Apache License 2.0](./LICENSE). Third-party @@ -59,7 +67,8 @@ The root `LICENSE` governs the repository as a whole: | Subproject | License | License file | | ---------------- | ---------- | -------------------------------------------------------- | -| `cuda.bindings` | Apache-2.0 | [`cuda_bindings_13/LICENSE`](./cuda_bindings_13/LICENSE) | +| `cuda.bindings` (CUDA 13) | Apache-2.0 | [`cuda_bindings_13/LICENSE`](./cuda_bindings_13/LICENSE) | +| `cuda.bindings` (CUDA 12) | Apache-2.0 | [`cuda_bindings_12/LICENSE`](./cuda_bindings_12/LICENSE) | | `cuda.core` | Apache-2.0 | [`cuda_core/LICENSE`](./cuda_core/LICENSE) | | `cuda.pathfinder`| Apache-2.0 | [`cuda_pathfinder/LICENSE`](./cuda_pathfinder/LICENSE) | | `cuda-python` | Apache-2.0 | [`cuda_python/LICENSE`](./cuda_python/LICENSE) | diff --git a/ci/pyproject.toml b/ci/pyproject.toml new file mode 100644 index 000000000000..988a7a50487d --- /dev/null +++ b/ci/pyproject.toml @@ -0,0 +1,30 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +[build-system] +requires = ["setuptools>=77.0.0"] +build-backend = "setuptools.build_meta" + +[project] +name = "cuda-python-ci-tools" +version = "0.0.0" +description = "Private CI support for the CUDA Python repository" +authors = [{ name = "NVIDIA Corporation" }] +license = "Apache-2.0" +requires-python = ">=3.11" +dependencies = [ + "packaging==26.0", + "PyYAML==6.0.3", +] + +[project.optional-dependencies] +test = [ + "pathspec==0.12.1", + "pytest==9.1.0", + "setuptools-scm[simple]>=8,!=10.1", + "wheel", +] + +[tool.setuptools] +packages = ["ci", "ci.tools"] +package-dir = { ci = "." } diff --git a/ci/tools/bindings_config.py b/ci/tools/bindings_config.py index 50741f8e57e7..a0449b51ada9 100644 --- a/ci/tools/bindings_config.py +++ b/ci/tools/bindings_config.py @@ -5,6 +5,9 @@ from __future__ import annotations +import argparse +import json +import sys from dataclasses import dataclass from pathlib import Path @@ -35,10 +38,21 @@ def cuda_major(self) -> str: def cuda_variant(self) -> str: return f"cu{self.cuda_major}" + def to_dict(self) -> dict[str, str]: + return { + "package_root": self.package_root, + "toolkit_version": self.toolkit_version, + "release_status": self.release_status, + "ctk_target": self.ctk_target, + "cuda_major": self.cuda_major, + "cuda_variant": self.cuda_variant, + } + @dataclass(frozen=True) class BindingsConfig: package_roots: tuple[BindingsPackage, ...] + python_supported: tuple[str, ...] def get_package(self, package_root: str) -> BindingsPackage: for package in self.package_roots: @@ -57,4 +71,33 @@ def load_config(path: Path = DEFAULT_CONFIG) -> BindingsConfig: for field, release_status in (("build", "current"), ("prev_build", "maintenance")): major, minor, patch = map(int, raw["cuda"][field]["version"].split(".")) packages.append(BindingsPackage(f"cuda_bindings_{major}", (major, minor, patch), release_status)) - return BindingsConfig(tuple(packages)) + return BindingsConfig(tuple(packages), tuple(raw["python"]["supported"])) + + +def main(argv: list[str] | None = None) -> int: + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--config", type=Path, default=DEFAULT_CONFIG) + output = parser.add_mutually_exclusive_group() + output.add_argument("--package-roots", action="store_true") + output.add_argument("--release-status", choices=("current", "maintenance")) + args = parser.parse_args(argv) + + config = load_config(args.config) + if args.release_status: + result = config.package_for_release_status(args.release_status).to_dict() + else: + packages = [package.to_dict() for package in config.package_roots] + result = ( + packages + if args.package_roots + else { + "python": {"supported": list(config.python_supported)}, + "package_roots": packages, + } + ) + print(json.dumps(result, separators=(",", ":"), sort_keys=True)) + return 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/ci/tools/check_pixi_cuda_version.py b/ci/tools/check_pixi_cuda_version.py index 30f765acafa3..14f4f8cbe9d1 100644 --- a/ci/tools/check_pixi_cuda_version.py +++ b/ci/tools/check_pixi_cuda_version.py @@ -1,7 +1,7 @@ # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -"""Check pixi cuda-version pins track ci/versions.yml (cuda.build.version).""" +"""Check bindings and Core Pixi toolkit pins track ci/versions.yml.""" from __future__ import annotations @@ -15,20 +15,23 @@ def main() -> int: - """Verify current bindings and cuda_core pixi pins match ci/versions.yml.""" + """Verify both bindings roots and Core use their configured toolkit line.""" try: - current = bindings_config.load_config().package_for_release_status("current") + config = bindings_config.load_config() except (KeyError, TypeError, ValueError) as exc: print(f"error: invalid CUDA toolkit pins in {bindings_config.DEFAULT_CONFIG}: {exc}", file=sys.stderr) return 2 - build_version = current.toolkit_version - expected = f"{current.ctk_target}.*" - cuda_feature = current.cuda_variant - + current = config.package_for_release_status("current") + checks = [(package.package_root, package) for package in config.package_roots] + checks.append(("cuda_core", current)) errors: list[str] = [] checked: list[str] = [] - for package_root in (current.package_root, "cuda_core"): + for package_root, package in checks: + allowed = {f"{package.ctk_target}.*"} + if package.release_status == "maintenance": + allowed.add(f"{package.cuda_major}.*") + cuda_feature = package.cuda_variant path = ROOT / package_root / "pixi.toml" if not path.is_file(): print(f"error: {path} not found", file=sys.stderr) @@ -45,17 +48,15 @@ def main() -> int: file=sys.stderr, ) return 2 - if expected not in variants: + if not allowed.intersection(variants): errors.append( f"{rel}: workspace.build-variants.cuda-version={variants!r} " - f"does not include {expected!r} " - f"(from ci/versions.yml cuda.build.version={build_version!r})" + f"does not include a pin for toolkit {package.toolkit_version!r} (allowed {sorted(allowed)!r})" ) - if cuda_pin != expected: + if cuda_pin not in allowed: errors.append( f"{rel}: feature.{cuda_feature}.dependencies.cuda-version={cuda_pin!r} " - f"!= {expected!r} " - f"(from ci/versions.yml cuda.build.version={build_version!r})" + f"does not match toolkit {package.toolkit_version!r} (allowed {sorted(allowed)!r})" ) checked.append( @@ -64,20 +65,12 @@ def main() -> int: ) if errors: - print( - f"error: {current.package_root}/cuda_core pixi cuda-version pins out of sync with " - f"ci/versions.yml cuda.build.version={build_version!r} " - f"(expected pin {expected!r}):", - file=sys.stderr, - ) + print("error: Pixi cuda-version pins out of sync with ci/versions.yml:", file=sys.stderr) for err in errors: print(f" - {err}", file=sys.stderr) return 1 - print( - f"OK: pixi cuda-version pins match ci/versions.yml " - f"cuda.build.version={build_version!r} (expected pin {expected!r}):" - ) + print("OK: Pixi cuda-version pins match ci/versions.yml:") for item in checked: print(f" - {item}") return 0 diff --git a/ci/tools/compute_ci_plan.py b/ci/tools/compute_ci_plan.py index 514930445691..fa90e356c85b 100644 --- a/ci/tools/compute_ci_plan.py +++ b/ci/tools/compute_ci_plan.py @@ -18,6 +18,7 @@ PLATFORMS = ("linux", "windows") PACKAGE_MODULES = { "cuda_pathfinder": "pathfinder", + "cuda_bindings_12": "bindings", "cuda_bindings_13": "bindings", "cuda_core": "core", "cuda_python": "python", diff --git a/ci/tools/tests/test_bindings_config.py b/ci/tools/tests/test_bindings_config.py index 2a1efb5dd7a0..e21adc79110f 100644 --- a/ci/tools/tests/test_bindings_config.py +++ b/ci/tools/tests/test_bindings_config.py @@ -3,6 +3,7 @@ from __future__ import annotations +import json import runpy import shutil import subprocess @@ -15,7 +16,8 @@ from setuptools_scm import get_version from ci.tools import check_pixi_cuda_version -from ci.tools.bindings_config import BindingsPackage, load_config +from ci.tools.bindings_config import BindingsPackage, load_config, main +from ci.tools.compute_ci_plan import compute_workplan ROOT = Path(__file__).resolve().parents[3] @@ -23,7 +25,10 @@ @pytest.fixture def legacy_config(tmp_path): path = tmp_path / "versions.yml" - path.write_text('cuda:\n build:\n version: "13.4.2"\n prev_build:\n version: "12.9.1"\n') + path.write_text( + 'cuda:\n build:\n version: "13.4.2"\n prev_build:\n version: "12.9.1"\n' + 'python:\n supported: ["3.11", "3.14t"]\n' + ) return path @@ -38,16 +43,40 @@ def test_normalizes_legacy_toolkit_pins(legacy_config): assert maintenance.ctk_target == "12.9" assert maintenance.cuda_major == "12" assert maintenance.cuda_variant == "cu12" + assert config.python_supported == ("3.11", "3.14t") + + +@pytest.mark.agent_authored(model="gpt-6") +def test_cli_supplies_matrix_and_release_role_records(legacy_config, capsys): + config_args = ["--config", str(legacy_config)] + assert main(config_args) == 0 + full = json.loads(capsys.readouterr().out) + assert full["python"]["supported"] == ["3.11", "3.14t"] + assert main([*config_args, "--package-roots"]) == 0 + assert json.loads(capsys.readouterr().out) == full["package_roots"] + assert main([*config_args, "--release-status", "maintenance"]) == 0 + assert json.loads(capsys.readouterr().out) == { + "package_root": "cuda_bindings_12", + "toolkit_version": "12.9.1", + "release_status": "maintenance", + "ctk_target": "12.9", + "cuda_major": "12", + "cuda_variant": "cu12", + } @pytest.fixture def pixi_checkout(tmp_path, monkeypatch, legacy_config): - for package_root in ("cuda_bindings_13", "cuda_core"): + for package_root, variant, pin in ( + ("cuda_bindings_12", "cu12", "12.*"), + ("cuda_bindings_13", "cu13", "13.4.*"), + ("cuda_core", "cu13", "13.4.*"), + ): path = tmp_path / package_root / "pixi.toml" path.parent.mkdir() path.write_text( - '[workspace.build-variants]\ncuda-version = ["13.4.*"]\n' - '[feature.cu13.dependencies]\ncuda-version = "13.4.*"\n' + f'[workspace.build-variants]\ncuda-version = ["{pin}"]\n' + f'[feature.{variant}.dependencies]\ncuda-version = "{pin}"\n' ) monkeypatch.setattr(check_pixi_cuda_version, "ROOT", tmp_path) monkeypatch.setattr(check_pixi_cuda_version.bindings_config, "load_config", lambda: load_config(legacy_config)) @@ -55,11 +84,11 @@ def pixi_checkout(tmp_path, monkeypatch, legacy_config): @pytest.mark.agent_authored(model="gpt-6") -def test_pixi_check_keeps_current_bindings_and_core_contract(pixi_checkout, capsys): - # The hook requires only the current bindings workspace. +def test_pixi_check_covers_both_bindings_and_current_core(pixi_checkout, capsys): assert check_pixi_cuda_version.main() == 0 output = capsys.readouterr().out assert "cuda_bindings_13/pixi.toml" in output + assert "cuda_bindings_12/pixi.toml" in output assert "cuda_core/pixi.toml" in output @@ -71,6 +100,32 @@ def test_pixi_check_reports_core_pin_drift(pixi_checkout, capsys): assert "cuda_core/pixi.toml: feature.cu13.dependencies.cuda-version='13.3.*'" in capsys.readouterr().err +@pytest.mark.parametrize( + ("package_root", "old_pin", "new_pin"), + [("cuda_bindings_12", "12.*", "11.*"), ("cuda_bindings_13", "13.4.*", "13.*")], +) +@pytest.mark.agent_authored(model="gpt-6") +def test_pixi_check_rejects_wrong_maintenance_major_and_broad_current_pin( + pixi_checkout, package_root, old_pin, new_pin, capsys +): + path = pixi_checkout / package_root / "pixi.toml" + path.write_text(path.read_text().replace(old_pin, new_pin)) + assert check_pixi_cuda_version.main() == 1 + assert f"{package_root}/pixi.toml" in capsys.readouterr().err + + +@pytest.mark.agent_authored(model="gpt-6") +def test_cuda12_source_changes_select_bindings_consumers(): + plan = compute_workplan( + ["cuda_bindings_12/cuda/bindings/_internal/utils.pyx"], merge_base="base", baseline_run_id="123" + ) + assert {name for name, decision in plan["modules"].items() if decision["needs_build"]} == { + "bindings", + "core", + "python", + } + + @pytest.mark.agent_authored(model="gpt-6") def test_cuda12_milestone_does_not_change_current_package_versions(tmp_path, monkeypatch): current = load_config(ROOT / "ci" / "versions.yml").package_for_release_status("current") diff --git a/ci/tools/tests/test_pixi_lockfile_freshness_workflow.py b/ci/tools/tests/test_pixi_lockfile_freshness_workflow.py index d5f94837861b..440e00e8cd4b 100644 --- a/ci/tools/tests/test_pixi_lockfile_freshness_workflow.py +++ b/ci/tools/tests/test_pixi_lockfile_freshness_workflow.py @@ -5,7 +5,6 @@ from __future__ import annotations -import shlex import subprocess from pathlib import Path @@ -108,13 +107,3 @@ def test_source_builds_and_tests_still_use_frozen_pixi(): for job in workflow["jobs"].values(): assert any(step.get("uses") == "./.github/actions/setup-pixi" for step in job["steps"]) assert any("pixi run" in step.get("run", "") for step in job["steps"]) - - -@pytest.mark.agent_authored(model="gpt-6") -def test_nightly_ci_declares_workflow_test_dependencies(): - workflow = _workflow("ci-nightly.yml") - step = next(step for step in workflow["jobs"]["test-ci-tools-for-release"]["steps"] if "run" in step) - install = next(line for line in step["run"].splitlines() if "pip install" in line) - dependencies = {argument.lower().split("==")[0] for argument in shlex.split(install)} - - assert {"pytest", "pyyaml"} <= dependencies diff --git a/cuda_bindings_12/AGENTS.md b/cuda_bindings_12/AGENTS.md new file mode 100644 index 000000000000..c3a5af6e2385 --- /dev/null +++ b/cuda_bindings_12/AGENTS.md @@ -0,0 +1,31 @@ +# CUDA 12 Maintenance Bindings + +This root maintains CUDA 12.9 bindings under the `cuda.bindings` namespace. +Follow the repository-wide instructions, including +[Changes across bindings majors](../AGENTS.md#changes-across-bindings-majors). +Inspect the CUDA 13 counterpart during implementation and review; preserve +intentional API, layout, and build differences. + +## Generated and handwritten sources + +- Files carrying a `CYTHON-BINDINGS-GENERATED` seal are generated inputs. + Change their generation source and regenerate against CUDA 12.9 inputs. + Record generator revision, toolkit inputs, and affected files. Do not edit + sealed files or recalculate their seals to conceal manual changes. +- Handwritten utilities, build helpers, tests, and documentation can be edited + directly. Inspect headers and provenance; a filename extension alone does + not identify generated code. +- Source builds parse CUDA headers and expand `.in` templates before Cython. + Regenerate these outputs from their templates and headers. Preserve the + CUDA 12 parser, legacy APIs, and namespace redirector. + +## Build and test guidance + +- Use CUDA 12.9 headers and a separate Python environment from CUDA 13. +- `_build_shared.py` links to the canonical helper in `cuda_bindings_13/`. + Preserve its symlink or byte-for-byte identity with the shared copies. +- Use the package's [developer commands](README.md). Build the Cython test + extensions before running `tests/cython/`. +- Legacy samples remain under `examples/`; CUDA 13 uses a different layout. +- Run the SCM preview bootstrap only in a disposable build checkout. Never + push its synthetic tags or run it in a shared development repository. diff --git a/cuda_bindings_12/README.md b/cuda_bindings_12/README.md index b0e6f29c14a3..41ef6226ffaa 100644 --- a/cuda_bindings_12/README.md +++ b/cuda_bindings_12/README.md @@ -13,9 +13,39 @@ Please refer to the [Installation page](https://nvidia.github.io/cuda-python/cud This subpackage adheres to the developing practices described in the parent metapackage [CONTRIBUTING.md](https://github.com/NVIDIA/cuda-python/blob/main/CONTRIBUTING.md). +CUDA 12.9 sources are developed here on `main`. This root and +`cuda_bindings_13/` build the same distribution and Python namespace; use +separate environments for them. From the repository root: + +```console +pixi run --manifest-path cuda_bindings_12 -e cu12 test +``` + +This builds bindings and Cython test extensions from source, then runs the +GPU test suite. `pixi run -e cu12 test-bindings` selects the same package. +For an existing Python environment with CUDA 12.9 headers, a compiler, +and pip 25.1 or newer: + +```console +cd cuda_bindings_12 +python -m pip install -v -e . --group test +tests/cython/build_tests.sh +python -m pytest tests/ tests/cython/ +``` + +Use `build_tests.bat` on Windows. Free-threaded Python also needs the +`test-ft` dependency group. + +Versions follow reachable `v12.*` tags through standard `setuptools-scm`. +The retained `v12.9.11a0` milestone on `main` anchors CUDA 12 development +versions. See the repository's +[version lifecycle](../AGENTS.md#git-derived-version-lifecycle). + + ## Testing -Testing dependencies can be installed using the `[test]` optional dependency identifier. For example, `pip install -v -e .[test]`. +Install the package and its `test` dependency group with +`python -m pip install -v -e . --group test` (pip 25.1 or newer). Multiple testing options are available: diff --git a/cuda_bindings_12/cuda/bindings/_internal/utils.pyx b/cuda_bindings_12/cuda/bindings/_internal/utils.pyx index df17a9e47df7..ce9012113df9 100644 --- a/cuda_bindings_12/cuda/bindings/_internal/utils.pyx +++ b/cuda_bindings_12/cuda/bindings/_internal/utils.pyx @@ -98,7 +98,14 @@ cdef int get_nested_resource_ptr(nested_resource[ResT] &in_out_ptr, object obj, nested_ptr.reset(nested_vec, True) for i, obj_i in enumerate(obj): if ResT is char: - obj_i_bytes = ((obj_i)).encode() + obj_i_type = type(obj_i) + if obj_i_type is str: + obj_i_bytes = obj_i.encode("utf-8") + elif obj_i_type is bytes: + obj_i_bytes = obj_i + else: + raise TypeError( + f"Expected str or bytes, got {obj_i_type.__name__}") str_len = (len(obj_i_bytes)) + 1 # including null termination deref(nested_res_vec)[i].resize(str_len) obj_i_ptr = (obj_i_bytes) diff --git a/cuda_bindings_12/cuda/bindings/_lib/utils.pxd b/cuda_bindings_12/cuda/bindings/_lib/utils.pxd index 706c6d3fc7a9..c36ddfb0d128 100644 --- a/cuda_bindings_12/cuda/bindings/_lib/utils.pxd +++ b/cuda_bindings_12/cuda/bindings/_lib/utils.pxd @@ -152,6 +152,7 @@ cdef class _HelperCUcoredumpSettings: cdef cydriver.CUcoredumpSettings_enum _attrib cdef bint _is_getter cdef size_t _size + cdef object _references # keeps caller bytes alive so _charstar stays valid # Return values cdef cpp_bool _bool diff --git a/cuda_bindings_12/cuda/bindings/_lib/utils.pxi b/cuda_bindings_12/cuda/bindings/_lib/utils.pxi index c11d0d0c1974..eebdd17b41e5 100644 --- a/cuda_bindings_12/cuda/bindings/_lib/utils.pxi +++ b/cuda_bindings_12/cuda/bindings/_lib/utils.pxi @@ -734,6 +734,8 @@ cdef class _HelperCUcoredumpSettings: self._cptr = self._charstar self._size = 1024 else: + # Keep a reference so the borrowed _charstar buffer stays alive. + self._references = init_value self._charstar = init_value self._cptr = self._charstar self._size = len(init_value) @@ -756,7 +758,9 @@ cdef class _HelperCUcoredumpSettings: raise TypeError('Unsupported attribute: {}'.format(attr.name)) def __dealloc__(self): - pass + # Only the getter owns heap storage; the setter borrows caller bytes. + if self._is_getter: + free(self._charstar) @property def cptr(self): diff --git a/cuda_bindings_12/cuda/bindings/utils/__init__.py b/cuda_bindings_12/cuda/bindings/utils/__init__.py index 2435d036b1f6..381dc9ea174d 100644 --- a/cuda_bindings_12/cuda/bindings/utils/__init__.py +++ b/cuda_bindings_12/cuda/bindings/utils/__init__.py @@ -27,6 +27,9 @@ def get_cuda_native_handle(obj: Any) -> int: """ obj_type = type(obj) try: - return _handle_getters[obj_type](obj) + getter = _handle_getters[obj_type] except KeyError: raise TypeError("Unknown type: " + str(obj_type)) from None + # Deliberately outside the try: a KeyError raised by the getter itself is a + # bug in that getter, not an unregistered type. + return getter(obj) diff --git a/cuda_bindings_12/docs/source/install.md b/cuda_bindings_12/docs/source/install.md index 5284536dd1b6..728c06729a4e 100644 --- a/cuda_bindings_12/docs/source/install.md +++ b/cuda_bindings_12/docs/source/install.md @@ -5,7 +5,7 @@ `cuda.bindings` supports the same platforms as CUDA. Runtime dependencies are: * Linux (x86-64, arm64) and Windows (x86-64) -* Python 3.10 - 3.15 +* Python 3.11 - 3.15 * Driver: Linux (450.80.02 or later) Windows (456.38 or later) * Optionally, NVRTC, nvJitLink, and NVVM from CUDA Toolkit 12.x diff --git a/cuda_bindings_12/docs/source/release/12.X.Y-notes.rst b/cuda_bindings_12/docs/source/release/12.X.Y-notes.rst index a6af0583fa64..8ab86396290e 100644 --- a/cuda_bindings_12/docs/source/release/12.X.Y-notes.rst +++ b/cuda_bindings_12/docs/source/release/12.X.Y-notes.rst @@ -1,4 +1,4 @@ -.. SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +.. SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. .. SPDX-License-Identifier: Apache-2.0 :orphan: @@ -8,42 +8,20 @@ ``cuda-bindings`` 12.X.Y Release notes ====================================== -Released on MM DD, 2025 +Unreleased +Breaking Changes +---------------- -Highlights ----------- +* CUDA 12 bindings require Python 3.11 or newer. Python versions older than + 3.11 are no longer supported; the supported range is Python 3.11-3.15. -* A utility module :mod:`cuda.bindings.utils` is added - - * Using ``int(cuda_obj)`` to retrieve the underlying address of a CUDA object is deprecated and - subject to future removal. Please switch to use :func:`~cuda.bindings.utils.get_cuda_native_handle` - instead. - -* The ``cuda.bindings.cufile`` Python module was added, wrapping the - `cuFile C APIs `_. - Supported on Linux only. - - * Currently using this module requires NumPy to be present. Any recent NumPy 1.x or 2.x should work. - -* Python bindings in every module, including ``driver``, ``runtime``, and ``nvrtc``, now have the GIL - released before calling the underlying C APIs. - -* The Python overhead of calling functions in CUDA bindings in ``driver``, - ``runtime`` and ``nvrtc`` has been reduced by approximately 30%. - -Bug fixes +Bug Fixes --------- - -Miscellaneous -------------- - -* Added PTX utilities including :func:`~utils.get_minimal_required_cuda_ver_from_ptx_ver` and :func:`~utils.get_ptx_ver`. -* Common CUDA objects such as :class:`~runtime.cudaStream_t` now compare equal if the underlying address is the same. - - -Known issues ------------- - -* Updating from older versions (v12.6.2.post1 and below) via ``pip install -U cuda-python`` might not work. Please do a clean re-installation by uninstalling ``pip uninstall -y cuda-python`` followed by installing ``pip install cuda-python``. +* Nested resource pointer conversion accepts both ``str`` and ``bytes`` + options, matching the CUDA 13 bindings behavior. +* Coredump settings retain borrowed string buffers for the duration of the + call and free the buffers allocated for getters. +* ``get_cuda_native_handle`` preserves a ``KeyError`` raised inside a + registered getter instead of reporting an unknown type. diff --git a/cuda_bindings_12/docs/source/support.rst b/cuda_bindings_12/docs/source/support.rst index 379bdb9d9ab2..c174762f5067 100644 --- a/cuda_bindings_12/docs/source/support.rst +++ b/cuda_bindings_12/docs/source/support.rst @@ -19,7 +19,7 @@ The ``cuda.bindings`` module has the following support policy: depends on the underlying driver and the Toolkit versions, as described in the compatibility documentation.) 4. The module supports all Python versions following the `CPython EOL schedule`_. As of writing - Python 3.10 - 3.15 are supported. + Python 3.11 - 3.15 are supported. 5. The module exposes a Cython layer from which types and functions could be ``cimport``'d. While we strive to keep this layer stable, due to Cython limitations a new *minor* release of this module could require Cython layer users to rebuild their projects and update their pinning to diff --git a/cuda_bindings_12/pixi.lock b/cuda_bindings_12/pixi.lock new file mode 100644 index 000000000000..cfe52a065066 --- /dev/null +++ b/cuda_bindings_12/pixi.lock @@ -0,0 +1,13185 @@ +version: 7 +platforms: +- name: linux-64 + virtual-packages: + - __unix=0=0 + - __linux=4.18 + - __glibc=2.28 + - __archspec=0=x86_64 +- name: linux-aarch64 + virtual-packages: + - __unix=0=0 + - __linux=4.18 + - __glibc=2.28 + - __archspec=0=aarch64 +- name: win-64 + virtual-packages: + - __win=10.0 + - __archspec=0=x86_64 +environments: + cu12: + channels: + - url: https://conda.anaconda.org/conda-forge/ + indexes: + - https://pypi.org/simple + packages: + linux-64: + - conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/alsa-lib-1.2.16.1-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/aom-3.14.1-pl5321h039972f_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/binutils_impl_linux-64-2.46.1-default_hfdba357_102.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-hda65f42_10.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cairo-1.18.4-he90730b_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/conda-gcc-specs-16.1.0-h5a3cd76_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-12.9.79-h5888daf_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-12.9.79-h5888daf_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-12.9.79-h5888daf_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-12.9.86-hecca717_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-12.9.86-h69a702a_6.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-12.9.86-h4bc722e_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-12.9.86-h4bc722e_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-profiler-api-12.9.79-h7938cbb_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cython-3.2.9-py314h1807b08_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/dav1d-1.2.1-hd590300_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/dbus-1.16.2-h24cb091_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/ffmpeg-9.0.1-gpl_hc45e1dd_900.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/fontconfig-2.18.3-h4db4eae_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/freetype-2.14.3-ha770c72_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/fribidi-1.0.16-hb03c661_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/gcc-16.1.0-hc6a0c74_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/gcc_impl_linux-64-16.1.0-hceef32b_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/gdk-pixbuf-2.44.8-h68053f1_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/glslang-16.5.0-h718be3e_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/gmp-6.3.0-hfd2156b_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/graphite2-1.3.15-h54a6638_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/gxx-16.1.0-hc6a0c74_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/gxx_impl_linux-64-16.1.0-he33a5f8_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/harfbuzz-14.3.1-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/icu-78.3-py310h44b86e0_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/intel-gmmlib-22.10.0-hb700be7_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/intel-media-driver-26.1.6-hecca717_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/lame-4.0-h770b6ad_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/lcms2-2.19.1-h0c24ade_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.46.1-default_hbd61a6d_102.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/lerc-4.2.0-hdb68285_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/level-zero-1.29.0-hb700be7_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libabseil-20260526.0-cxx17_h7b12aa8_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libass-0.17.5-h434b012_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libblas-3.11.0-9_h4a7cf45_openblas.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libbrotlicommon-1.2.0-h39a168f_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libbrotlidec-1.2.0-ha411449_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libbrotlienc-1.2.0-h018ffa1_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcap-2.78-h084b8d7_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcblas-3.11.0-9_h0358290_openblas.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.14.1.1-hbc026e6_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libdeflate-1.25-hd45a770_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libdovi-3.4.0-ha23c83e_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libdrm-2.4.129-h7cc23a3_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libegl-1.7.0-ha4b6fd6_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.9.0-hd2095e1_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.7.0-h3435931_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libflac-1.5.0-he200343_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libfreetype-2.14.3-ha770c72_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libfreetype6-2.14.3-h5e6c136_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgcc-16.1.0-ha9f2e26_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgcc-ng-16.1.0-h69a702a_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgfortran-16.1.0-h69a702a_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgfortran5-16.1.0-h79bb938_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgl-1.7.0-ha4b6fd6_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libglib-2.88.3-h45c3219_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libglvnd-1.7.0-ha4b6fd6_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libglx-1.7.0-ha4b6fd6_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgomp-16.1.0-he0feb66_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libharfbuzz-14.3.1-h23af247_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libharfbuzz-devel-14.3.1-h23af247_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libhwloc-2.13.0-default_he001693_1000.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libhwy-1.4.0-h3a9caae_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libiconv-1.18-h0cb94f2_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libjpeg-turbo-3.2.0-hb03c661_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libjxl-0.12.0-heb2dce7_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/liblapack-3.11.0-9_h47877c9_openblas.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/liblzma-5.8.3-hb03c661_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libmpdec-4.0.0-hb03c661_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnl-3.11.0-hb03c661_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvfatbin-12.9.82-hecca717_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-12.9.86-hecca717_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libogg-1.3.5-hd0c01bc_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenblas-0.3.34-pthreads_h94d23a6_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-2026.3.0-hb2f3c86_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-auto-batch-plugin-2026.3.0-h9f30d58_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-auto-plugin-2026.3.0-h9f30d58_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-hetero-plugin-2026.3.0-hfeb6f35_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-intel-cpu-plugin-2026.3.0-hb2f3c86_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-intel-gpu-plugin-2026.3.0-hb2f3c86_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-intel-npu-plugin-2026.3.0-hb2f3c86_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-ir-frontend-2026.3.0-hfeb6f35_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-onnx-frontend-2026.3.0-h6c33c14_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-paddle-frontend-2026.3.0-h6c33c14_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-pytorch-frontend-2026.3.0-h0542e35_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-tensorflow-frontend-2026.3.0-h565fa1b_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-tensorflow-lite-frontend-2026.3.0-h0542e35_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopus-1.6.1-h280c20c_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libpciaccess-0.19-hb03c661_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libplacebo-7.360.1-hc50b9dd_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libpng-1.6.58-h922cc85_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libprotobuf-7.35.1-h2840a7c_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libpython-3.14.10-hd51c5da_100_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/librsvg-2.62.3-h4c96295_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libsanitizer-16.1.0-hf2715c6_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libsndfile-1.2.2-hbc6d301_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libsqlite-3.54.1-h13e7031_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-16.1.0-h934c35e_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-ng-16.1.0-hdf11a46_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libsystemd0-257.13-h084b8d7_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libtiff-4.7.2-h9d88235_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libudev1-257.13-h084b8d7_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libunwind-1.8.3-h65a8314_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/liburing-2.14-hb700be7_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libusb-1.0.29-h73b1eb8_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libuuid-2.42.4-hcfc3c73_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libva-2.24.1-he1eb515_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libvorbis-1.3.7-h54a6638_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libvpl-2.16.0-h54a6638_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libvpx-1.15.2-hecca717_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libvulkan-loader-1.4.357.0-h5279c79_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libwebp-base-1.6.0-hd42ef1d_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libxcb-1.17.0-hb83e432_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libxkbcommon-1.13.2-h51789e4_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libxml2-16-2.15.3-hca6bf5a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libxml2-2.15.3-h49c6c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libzlib-1.3.2-h25fd6f3_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/mpg123-1.33.7-h8142553_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/ncurses-6.6-hdb14827_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/numpy-2.5.2-py314h2b28147_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/ocl-icd-2.3.4-hb03c661_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/opencl-headers-2025.06.13-hecca717_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/openh264-2.6.0-h65dd3cf_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.6.3-h35e630c_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/pango-1.58.2-hda50119_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/pcre2-10.47-haa7fec5_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/pixman-0.46.4-h54a6638_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/pthread-stubs-0.4-hb03c661_1003.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/pugixml-1.15-h3f63f65_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/pulseaudio-client-17.0-h9a6aba3_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/python-3.14.10-hcd007b5_100_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/rdma-core-63.0-h192683f_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/readline-8.3-hd6e31c0_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/sdl2-2.32.56-h54a6638_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/sdl3-3.4.14-hdeec2a5_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/shaderc-2026.3-h1b60276_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/snappy-1.2.2-h03e3b7b_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/spirv-tools-2026.3-hb700be7_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/svt-av1-4.2.0-hecca717_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/tbb-2023.0.0-hab88423_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.13-noxft_hd70dff1_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/wayland-1.26.0-h1964d1d_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/x264-1!164.3095-h166bdaf_2.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/linux-64/x265-3.5-h924138e_3.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/linux-64/xkeyboard-config-2.48-h280c20c_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libice-1.1.2-h280c20c_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libsm-1.2.6-h0d788c3_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libx11-1.8.13-he1eb515_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxau-1.0.12-hb03c661_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxcursor-1.2.3-hb9d3cd8_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxdmcp-1.1.5-hb03c661_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxext-1.3.7-h7cc23a3_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxfixes-6.0.2-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxi-1.8.3-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxrandr-1.5.5-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxrender-0.9.12-hb03c661_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxscrnsaver-1.2.4-hb9d3cd8_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxtst-1.2.5-hb9d3cd8_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/zstd-1.5.7-hb78ec9c_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-hbd8a1cb_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-12.9.27-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-12.9.86-ha770c72_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-12.9.79-h3f2d84a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-12.9.79-h3f2d84a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-12.9.79-h3f2d84a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-12.9.86-ha770c72_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-12.9-h4f385c5_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-dejavu-sans-mono-2.37-hab24e00_0.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-inconsolata-3.000-h77eed37_0.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-source-code-pro-2.038-h77eed37_0.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-ubuntu-0.83-h77eed37_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/fonts-conda-ecosystem-1-0.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/noarch/fonts-conda-forge-1-hc364b38_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/iniconfig-2.3.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/kernel-headers_linux-64-4.18.0-he073ed8_9.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libgcc-devel_linux-64-16.1.0-h59071f9_102.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libstdcxx-devel_linux-64-16.1.0-h41cdd0d_102.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pluggy-1.6.0-pyhf9edf01_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/py-cpuinfo-9.0.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pyglet-2.1.15-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pygments-2.21.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-9.1.1-pyhc364b38_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-benchmark-5.2.3-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-randomly-4.1.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-repeat-0.9.4-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-8_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.0.0-pyh332efcf_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sysroot_linux-64-2.28-h4ee821c_9.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.4.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/wayland-protocols-1.49-hd8ed1ab_0.conda + - conda_source: cuda-bindings[50d85498] @ . + - conda_source: cuda-pathfinder[ab855723] @ ../cuda_pathfinder + - pypi: ../cuda_python_test_helpers + linux-aarch64: + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/alsa-lib-1.2.16.1-he30d5cf_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/aom-3.14.1-pl5321h8fffa31_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/binutils_impl_linux-aarch64-2.46.1-default_h5f4c503_102.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/bzip2-1.0.8-h4777abc_10.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cairo-1.18.4-h0b6afd8_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/conda-gcc-specs-16.1.0-h4acae54_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-12.9.86-h8f3c8d4_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-12.9.86-he9431aa_106.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-12.9.86-h7b14b0b_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-12.9.86-h7b14b0b_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-12.9.79-h16bee8c_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cython-3.2.9-py314hc6b4731_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/dav1d-1.2.1-h31becfc_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/dbus-1.16.2-h70963c4_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ffmpeg-9.0.1-gpl_hcd1c4d7_900.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/fontconfig-2.18.3-ha4b22b4_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/freetype-2.14.3-h8af1aa0_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/fribidi-1.0.16-he30d5cf_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gcc-16.1.0-hfdd745d_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gcc_impl_linux-aarch64-16.1.0-h998876f_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gdk-pixbuf-2.44.8-hb26ce08_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/glslang-16.5.0-hfeb5c2c_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gmp-6.3.0-h4d6b352_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/graphite2-1.3.15-h7ac5ae9_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gxx-16.1.0-hfdd745d_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gxx_impl_linux-aarch64-16.1.0-hd5c6868_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/harfbuzz-14.3.1-h8af1aa0_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/icu-78.3-py311h3512406_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/lame-4.0-h7ce06ba_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/lcms2-2.19.1-h9d5b58d_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ld_impl_linux-aarch64-2.46.1-default_h1979696_102.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/lerc-4.2.0-h52b7260_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libabseil-20260526.0-cxx17_h6983b43_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libass-0.17.5-hac26362_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libblas-3.11.0-9_haddc8a3_openblas.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libbrotlicommon-1.2.0-h384ecca_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libbrotlidec-1.2.0-h011f0d3_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libbrotlienc-1.2.0-hb247b97_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcap-2.78-hfcc8634_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcblas-3.11.0-9_hd72aa62_openblas.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.14.1.1-had8bf56_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libdeflate-1.25-hfa851ae_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libdovi-3.4.0-hf71c8f5_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libdrm-2.4.129-h5bc82ec_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libegl-1.7.0-hd24410f_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libexpat-2.9.0-h4154aff_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libffi-3.7.0-h376a255_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libflac-1.5.0-he9c94f4_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libfreetype-2.14.3-h8af1aa0_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libfreetype6-2.14.3-h9cc7050_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgcc-16.1.0-h205dda4_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgcc-ng-16.1.0-he9431aa_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgfortran-16.1.0-he9431aa_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgfortran5-16.1.0-h47adacf_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgl-1.7.0-hd24410f_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libglib-2.88.3-had1c41b_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libglvnd-1.7.0-hd24410f_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libglx-1.7.0-hd24410f_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgomp-16.1.0-h8acb6b2_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libharfbuzz-14.3.1-h8f7ccb3_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libharfbuzz-devel-14.3.1-h8f7ccb3_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libhwloc-2.13.0-default_ha95e27d_1000.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libhwy-1.4.0-h9b45113_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libiconv-1.18-h1ea5142_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libjpeg-turbo-3.2.0-he30d5cf_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libjxl-0.12.0-h7a31cfc_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/liblapack-3.11.0-9_h88aeb00_openblas.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/liblzma-5.8.3-he30d5cf_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libmpdec-4.0.0-he30d5cf_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnl-3.11.0-he30d5cf_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvfatbin-12.9.82-h8f3c8d4_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-12.9.86-h8f3c8d4_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libogg-1.3.5-h86ecc28_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenblas-0.3.34-pthreads_h9d3fd7e_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-2026.3.0-h18f7da6_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-arm-cpu-plugin-2026.3.0-h18f7da6_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-auto-batch-plugin-2026.3.0-ha92a2b9_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-auto-plugin-2026.3.0-ha92a2b9_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-hetero-plugin-2026.3.0-h243f116_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-ir-frontend-2026.3.0-h243f116_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-onnx-frontend-2026.3.0-hfb90a0c_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-paddle-frontend-2026.3.0-hfb90a0c_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-pytorch-frontend-2026.3.0-ha85bb2c_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-tensorflow-frontend-2026.3.0-hba97658_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-tensorflow-lite-frontend-2026.3.0-ha85bb2c_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopus-1.6.1-h80f16a2_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libpciaccess-0.19-he30d5cf_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libplacebo-7.360.1-ha018e38_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libpng-1.6.58-hf9b7768_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libprotobuf-7.35.1-h30ec8a2_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libpython-3.14.10-h150030a_100_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/librsvg-2.62.3-hf685517_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsanitizer-16.1.0-h2510bd8_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsndfile-1.2.2-h7354dbf_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsqlite-3.54.1-h399dd60_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libstdcxx-16.1.0-hef695bb_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libstdcxx-ng-16.1.0-hdbbeba8_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsystemd0-257.13-hfcc8634_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libtiff-4.7.2-hdb009f0_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libudev1-257.13-hfcc8634_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libunwind-1.8.3-h6470e1d_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/liburing-2.14-hfefdfc9_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libusb-1.0.29-h06eaf92_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libuuid-2.42.4-hd6fdeab_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libvorbis-1.3.7-h7ac5ae9_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libvpx-1.15.2-hfae3067_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libvulkan-loader-1.4.357.0-h8b8848b_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libwebp-base-1.6.0-ha2e29f5_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libxcb-1.17.0-h3f04742_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libxkbcommon-1.13.2-he51e330_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libxml2-16-2.15.3-h79dcc73_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libxml2-2.15.3-h869d058_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libzlib-1.3.2-hdc9db2a_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/mpg123-1.33.7-h2b27223_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ncurses-6.6-h2b6f883_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/numpy-2.5.2-py314he1698a1_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/openh264-2.6.0-h663e864_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/openssl-3.6.3-h546c87b_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/pango-1.58.2-h8547ced_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/pcre2-10.47-hf841c20_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/pixman-0.46.4-h7ac5ae9_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/pthread-stubs-0.4-he30d5cf_1003.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/pugixml-1.15-h6ef32b0_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/pulseaudio-client-17.0-hcf98165_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/python-3.14.10-hbec3b18_100_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/rdma-core-63.0-h1f0f388_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/readline-8.3-ha7194a6_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/sdl2-2.32.56-h7ac5ae9_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/sdl3-3.4.14-had2c13b_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/shaderc-2026.3-h9a39c52_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/snappy-1.2.2-he774c54_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/spirv-tools-2026.3-hfefdfc9_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/svt-av1-4.2.0-hfae3067_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/tbb-2023.0.0-h57272ed_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/tk-8.6.13-noxft_h5cf4473_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/wayland-1.26.0-hb3e8f30_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/x264-1!164.3095-h4e544f5_2.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/x265-3.5-hdd96247_3.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xkeyboard-config-2.48-h80f16a2_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libice-1.1.2-h80f16a2_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libsm-1.2.6-hf23e593_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libx11-1.8.13-h63a1b12_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxau-1.0.12-he30d5cf_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxcursor-1.2.3-h86ecc28_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxdmcp-1.1.5-he30d5cf_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxext-1.3.7-h5bc82ec_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxfixes-6.0.2-he30d5cf_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxi-1.8.3-he30d5cf_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxrandr-1.5.5-he30d5cf_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxrender-0.9.12-he30d5cf_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxscrnsaver-1.2.4-h86ecc28_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxtst-1.2.5-h57736b2_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/zstd-1.5.7-h9d15635_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/arm-variant-1.2.0-sbsa.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-hbd8a1cb_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-12.9.27-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-12.9.86-h579c4fd_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-12.9.86-h579c4fd_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-12.9-h4f385c5_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-dejavu-sans-mono-2.37-hab24e00_0.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-inconsolata-3.000-h77eed37_0.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-source-code-pro-2.038-h77eed37_0.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-ubuntu-0.83-h77eed37_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/fonts-conda-ecosystem-1-0.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/noarch/fonts-conda-forge-1-hc364b38_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/iniconfig-2.3.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/kernel-headers_linux-aarch64-4.18.0-h05a177a_9.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libgcc-devel_linux-aarch64-16.1.0-hd673532_102.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libstdcxx-devel_linux-aarch64-16.1.0-h2445e1f_102.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pluggy-1.6.0-pyhf9edf01_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/py-cpuinfo-9.0.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pyglet-2.1.15-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pygments-2.21.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-9.1.1-pyhc364b38_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-benchmark-5.2.3-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-randomly-4.1.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-repeat-0.9.4-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-8_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.0.0-pyh332efcf_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sysroot_linux-aarch64-2.28-h585391f_9.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.4.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda_source: cuda-bindings[38e9f1b8] @ . + - conda_source: cuda-pathfinder[60c6ddae] @ ../cuda_pathfinder + - pypi: ../cuda_python_test_helpers + win-64: + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-h4c7d964_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-12.9.27-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-12.9.86-h57928b3_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-12.9.86-h57928b3_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-12.9-h4f385c5_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-dejavu-sans-mono-2.37-hab24e00_0.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-inconsolata-3.000-h77eed37_0.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-source-code-pro-2.038-h77eed37_0.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-ubuntu-0.83-h77eed37_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/fonts-conda-ecosystem-1-0.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/noarch/fonts-conda-forge-1-hc364b38_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/iniconfig-2.3.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libgcc-devel_win-64-16.1.0-hecf7705_102.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libstdcxx-devel_win-64-16.1.0-hc76ffd0_102.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/m2w64-sysroot_win-64-12.0.0.r4.gg4f2fc60ca-hd8ed1ab_10.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/mingw-w64-ucrt-x86_64-crt-git-12.0.0.r4.gg4f2fc60ca-hd8ed1ab_10.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/mingw-w64-ucrt-x86_64-headers-git-12.0.0.r4.gg4f2fc60ca-hd8ed1ab_10.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/mingw-w64-ucrt-x86_64-windows-default-manifest-6.4-he206cdd_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/mingw-w64-ucrt-x86_64-winpthreads-git-12.0.0.r4.gg4f2fc60ca-hd8ed1ab_10.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pluggy-1.6.0-pyhf9edf01_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/py-cpuinfo-9.0.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pyglet-2.1.15-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pygments-2.21.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-9.1.1-pyhc364b38_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-benchmark-5.2.3-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-randomly-4.1.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-repeat-0.9.4-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-8_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.0.0-pyh332efcf_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.4.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/aom-3.14.1-pl5321h06fc181_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/binutils_impl_win-64-2.46.1-default_ha84baeb_102.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h0ad9c76_10.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cairo-1.18.4-h477c42c_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/conda-gcc-specs-16.1.0-h851ee6d_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-dev-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-static-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-12.9.86-hac47afa_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-12.9.86-h719f0c7_6.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-12.9.86-h2466b09_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-12.9.86-h2466b09_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-profiler-api-12.9.79-h57928b3_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cython-3.2.9-py314h344ed54_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/dav1d-1.2.1-hcfcfb64_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/ffmpeg-9.0.1-gpl_h893bb9d_900.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/fontconfig-2.18.3-hd47e2ca_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/freetype-2.14.3-h57928b3_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/fribidi-1.0.16-hfd05255_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/gcc-16.1.0-hb5e953d_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/gcc_impl_win-64-16.1.0-h0942c35_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/gdk-pixbuf-2.44.8-h1f5b9c4_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/glib-2.88.3-h89924da_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/glib-tools-2.88.3-hf027272_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/graphite2-1.3.15-h5112557_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/gxx-16.1.0-hb5e953d_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/gxx_impl_win-64-16.1.0-he3d2c83_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/harfbuzz-14.3.1-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/icu-78.3-h5112557_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/lame-4.0-h0c5f640_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/ld_impl_win-64-2.46.1-default_hfd38196_102.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/lerc-4.2.0-hd936e49_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libblas-3.11.0-9_h8455456_mkl.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libbrotlicommon-1.2.0-hf02afa3_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libbrotlidec-1.2.0-h84f9c24_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libbrotlienc-1.2.0-he2a975b_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libcblas-3.11.0-9_h2a3cdd5_mkl.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libdeflate-1.25-h1a1d4e4_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libexpat-2.9.0-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libffi-3.7.0-h3d046cb_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libfreetype-2.14.3-h57928b3_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libfreetype6-2.14.3-hdbac1cb_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libgcc-16.1.0-h110b43a_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libglib-2.88.3-he810d59_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libgomp-16.1.0-h8ee18e1_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libharfbuzz-14.3.1-h03b5201_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libharfbuzz-devel-14.3.1-h03b5201_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libhwloc-2.13.0-default_h049141e_1000.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libhwy-1.4.0-h2419aca_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libiconv-1.18-hc1393d2_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libintl-0.22.5-h5728263_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libintl-devel-0.22.5-h5728263_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libjpeg-turbo-3.2.0-hfd05255_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libjxl-0.12.0-h932607e_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/liblapack-3.11.0-9_hf9ab0e9_mkl.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/liblzma-5.8.3-hfd05255_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libmpdec-4.0.0-hfd05255_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libnvfatbin-12.9.82-hac47afa_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-12.9.86-hac47afa_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libogg-1.3.5-h2466b09_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libopus-1.6.1-h6a83c73_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libpng-1.6.58-hdc8cecf_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libpython-3.14.10-hc6187dd_100_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/librsvg-2.62.3-h15cfe45_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libsqlite-3.54.1-hf5d6505_101.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libstdcxx-16.1.0-hae5796f_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libtiff-4.7.2-h8f73337_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libusb-1.0.29-h1839187_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libvorbis-1.3.7-h5112557_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libvulkan-loader-1.4.357.0-h477610d_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libwebp-base-1.6.0-h4d5522a_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libwinpthread-12.0.0.r4.gg4f2fc60ca-h57928b3_10.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libxml2-16-2.15.3-h3cfd58e_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libxml2-2.15.3-h8ef44ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libzlib-1.3.2-hfd05255_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/llvm-openmp-22.1.8-h4fa8253_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/m2-conda-epoch-20250515-0_x86_64.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/mkl-2026.1.0-hac47afa_234.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/mpg123-1.33.7-h365c5b5_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/numpy-2.5.2-py314h02f10f6_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/openh264-2.6.0-h1eab103_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/openssl-3.6.3-hf411b9b_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/pango-1.58.2-h13911b6_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/pcre2-10.47-hd2b5f0e_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/pixman-0.46.4-h5112557_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/python-3.14.10-h53f6dd8_100_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/sdl2-2.32.56-h5112557_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/sdl3-3.4.14-h5112557_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/svt-av1-4.2.0-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/tbb-2023.0.0-hd3d4ead_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/tk-8.6.13-h967ab96_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vc-14.5-ha367084_41.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.51.36247-habf1de7_41.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vcomp14-14.51.36247-habf1de7_41.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vs2015_runtime-14.51.36247-h633cb9f_41.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/x264-1!164.3095-h8ffe710_2.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/win-64/x265-3.5-h2d74725_3.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/win-64/zlib-1.3.2-hfd05255_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda + - conda_source: cuda-bindings[695c7ddf] @ . + - conda_source: cuda-pathfinder[89b6d34b] @ ../cuda_pathfinder + - pypi: ../cuda_python_test_helpers + default: + channels: + - url: https://conda.anaconda.org/conda-forge/ + indexes: + - https://pypi.org/simple + packages: + linux-64: + - conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/alsa-lib-1.2.16.1-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/aom-3.14.1-pl5321h039972f_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/binutils_impl_linux-64-2.46.1-default_hfdba357_102.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-hda65f42_10.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cairo-1.18.4-he90730b_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/conda-gcc-specs-16.1.0-h5a3cd76_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-12.9.79-h5888daf_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-12.9.79-h5888daf_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-12.9.79-h5888daf_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-12.9.86-hecca717_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-12.9.86-h69a702a_6.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-12.9.86-h4bc722e_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-12.9.86-h4bc722e_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-profiler-api-12.9.79-h7938cbb_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cython-3.2.9-py314h1807b08_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/dav1d-1.2.1-hd590300_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/dbus-1.16.2-h24cb091_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/ffmpeg-9.0.1-gpl_hc45e1dd_900.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/fontconfig-2.18.3-h4db4eae_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/freetype-2.14.3-ha770c72_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/fribidi-1.0.16-hb03c661_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/gcc-16.1.0-hc6a0c74_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/gcc_impl_linux-64-16.1.0-hceef32b_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/gdk-pixbuf-2.44.8-h68053f1_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/glslang-16.5.0-h718be3e_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/gmp-6.3.0-hfd2156b_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/graphite2-1.3.15-h54a6638_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/gxx-16.1.0-hc6a0c74_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/gxx_impl_linux-64-16.1.0-he33a5f8_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/harfbuzz-14.3.1-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/icu-78.3-py310h44b86e0_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/intel-gmmlib-22.10.0-hb700be7_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/intel-media-driver-26.1.6-hecca717_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/lame-4.0-h770b6ad_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/lcms2-2.19.1-h0c24ade_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.46.1-default_hbd61a6d_102.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/lerc-4.2.0-hdb68285_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/level-zero-1.29.0-hb700be7_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libabseil-20260526.0-cxx17_h7b12aa8_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libass-0.17.5-h434b012_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libblas-3.11.0-9_h4a7cf45_openblas.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libbrotlicommon-1.2.0-h39a168f_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libbrotlidec-1.2.0-ha411449_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libbrotlienc-1.2.0-h018ffa1_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcap-2.78-h084b8d7_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcblas-3.11.0-9_h0358290_openblas.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.14.1.1-hbc026e6_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libdeflate-1.25-hd45a770_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libdovi-3.4.0-ha23c83e_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libdrm-2.4.129-h7cc23a3_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libegl-1.7.0-ha4b6fd6_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.9.0-hd2095e1_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.7.0-h3435931_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libflac-1.5.0-he200343_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libfreetype-2.14.3-ha770c72_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libfreetype6-2.14.3-h5e6c136_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgcc-16.1.0-ha9f2e26_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgcc-ng-16.1.0-h69a702a_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgfortran-16.1.0-h69a702a_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgfortran5-16.1.0-h79bb938_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgl-1.7.0-ha4b6fd6_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libglib-2.88.3-h45c3219_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libglvnd-1.7.0-ha4b6fd6_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libglx-1.7.0-ha4b6fd6_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgomp-16.1.0-he0feb66_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libharfbuzz-14.3.1-h23af247_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libharfbuzz-devel-14.3.1-h23af247_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libhwloc-2.13.0-default_he001693_1000.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libhwy-1.4.0-h3a9caae_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libiconv-1.18-h0cb94f2_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libjpeg-turbo-3.2.0-hb03c661_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libjxl-0.12.0-heb2dce7_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/liblapack-3.11.0-9_h47877c9_openblas.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/liblzma-5.8.3-hb03c661_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libmpdec-4.0.0-hb03c661_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnl-3.11.0-hb03c661_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvfatbin-12.9.82-hecca717_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-12.9.86-hecca717_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libogg-1.3.5-hd0c01bc_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenblas-0.3.34-pthreads_h94d23a6_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-2026.3.0-hb2f3c86_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-auto-batch-plugin-2026.3.0-h9f30d58_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-auto-plugin-2026.3.0-h9f30d58_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-hetero-plugin-2026.3.0-hfeb6f35_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-intel-cpu-plugin-2026.3.0-hb2f3c86_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-intel-gpu-plugin-2026.3.0-hb2f3c86_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-intel-npu-plugin-2026.3.0-hb2f3c86_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-ir-frontend-2026.3.0-hfeb6f35_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-onnx-frontend-2026.3.0-h6c33c14_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-paddle-frontend-2026.3.0-h6c33c14_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-pytorch-frontend-2026.3.0-h0542e35_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-tensorflow-frontend-2026.3.0-h565fa1b_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-tensorflow-lite-frontend-2026.3.0-h0542e35_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopus-1.6.1-h280c20c_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libpciaccess-0.19-hb03c661_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libplacebo-7.360.1-hc50b9dd_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libpng-1.6.58-h922cc85_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libprotobuf-7.35.1-h2840a7c_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libpython-3.14.10-hd51c5da_100_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/librsvg-2.62.3-h4c96295_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libsanitizer-16.1.0-hf2715c6_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libsndfile-1.2.2-hbc6d301_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libsqlite-3.54.1-h13e7031_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-16.1.0-h934c35e_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-ng-16.1.0-hdf11a46_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libsystemd0-257.13-h084b8d7_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libtiff-4.7.2-h9d88235_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libudev1-257.13-h084b8d7_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libunwind-1.8.3-h65a8314_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/liburing-2.14-hb700be7_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libusb-1.0.29-h73b1eb8_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libuuid-2.42.4-hcfc3c73_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libva-2.24.1-he1eb515_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libvorbis-1.3.7-h54a6638_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libvpl-2.16.0-h54a6638_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libvpx-1.15.2-hecca717_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libvulkan-loader-1.4.357.0-h5279c79_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libwebp-base-1.6.0-hd42ef1d_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libxcb-1.17.0-hb83e432_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libxkbcommon-1.13.2-h51789e4_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libxml2-16-2.15.3-hca6bf5a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libxml2-2.15.3-h49c6c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libzlib-1.3.2-h25fd6f3_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/mpg123-1.33.7-h8142553_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/ncurses-6.6-hdb14827_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/numpy-2.5.2-py314h2b28147_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/ocl-icd-2.3.4-hb03c661_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/opencl-headers-2025.06.13-hecca717_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/openh264-2.6.0-h65dd3cf_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.6.3-h35e630c_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/pango-1.58.2-hda50119_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/pcre2-10.47-haa7fec5_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/pixman-0.46.4-h54a6638_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/pthread-stubs-0.4-hb03c661_1003.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/pugixml-1.15-h3f63f65_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/pulseaudio-client-17.0-h9a6aba3_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/python-3.14.10-hcd007b5_100_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/rdma-core-63.0-h192683f_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/readline-8.3-hd6e31c0_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/sdl2-2.32.56-h54a6638_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/sdl3-3.4.14-hdeec2a5_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/shaderc-2026.3-h1b60276_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/snappy-1.2.2-h03e3b7b_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/spirv-tools-2026.3-hb700be7_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/svt-av1-4.2.0-hecca717_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/tbb-2023.0.0-hab88423_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.13-noxft_hd70dff1_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/wayland-1.26.0-h1964d1d_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/x264-1!164.3095-h166bdaf_2.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/linux-64/x265-3.5-h924138e_3.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/linux-64/xkeyboard-config-2.48-h280c20c_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libice-1.1.2-h280c20c_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libsm-1.2.6-h0d788c3_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libx11-1.8.13-he1eb515_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxau-1.0.12-hb03c661_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxcursor-1.2.3-hb9d3cd8_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxdmcp-1.1.5-hb03c661_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxext-1.3.7-h7cc23a3_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxfixes-6.0.2-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxi-1.8.3-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxrandr-1.5.5-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxrender-0.9.12-hb03c661_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxscrnsaver-1.2.4-hb9d3cd8_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxtst-1.2.5-hb9d3cd8_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/zstd-1.5.7-hb78ec9c_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-hbd8a1cb_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-12.9.27-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-12.9.86-ha770c72_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-12.9.79-h3f2d84a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-12.9.79-h3f2d84a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-12.9.79-h3f2d84a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-12.9.86-ha770c72_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-12.9-h4f385c5_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-dejavu-sans-mono-2.37-hab24e00_0.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-inconsolata-3.000-h77eed37_0.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-source-code-pro-2.038-h77eed37_0.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-ubuntu-0.83-h77eed37_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/fonts-conda-ecosystem-1-0.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/noarch/fonts-conda-forge-1-hc364b38_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/iniconfig-2.3.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/kernel-headers_linux-64-4.18.0-he073ed8_9.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libgcc-devel_linux-64-16.1.0-h59071f9_102.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libstdcxx-devel_linux-64-16.1.0-h41cdd0d_102.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pluggy-1.6.0-pyhf9edf01_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/py-cpuinfo-9.0.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pyglet-2.1.15-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pygments-2.21.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-9.1.1-pyhc364b38_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-benchmark-5.2.3-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-randomly-4.1.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-repeat-0.9.4-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-8_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.0.0-pyh332efcf_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sysroot_linux-64-2.28-h4ee821c_9.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.4.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/wayland-protocols-1.49-hd8ed1ab_0.conda + - conda_source: cuda-bindings[50d85498] @ . + - conda_source: cuda-pathfinder[ab855723] @ ../cuda_pathfinder + - pypi: ../cuda_python_test_helpers + linux-aarch64: + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/alsa-lib-1.2.16.1-he30d5cf_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/aom-3.14.1-pl5321h8fffa31_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/binutils_impl_linux-aarch64-2.46.1-default_h5f4c503_102.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/bzip2-1.0.8-h4777abc_10.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cairo-1.18.4-h0b6afd8_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/conda-gcc-specs-16.1.0-h4acae54_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-12.9.86-h8f3c8d4_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-12.9.86-he9431aa_106.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-12.9.86-h7b14b0b_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-12.9.86-h7b14b0b_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-12.9.79-h16bee8c_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cython-3.2.9-py314hc6b4731_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/dav1d-1.2.1-h31becfc_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/dbus-1.16.2-h70963c4_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ffmpeg-9.0.1-gpl_hcd1c4d7_900.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/fontconfig-2.18.3-ha4b22b4_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/freetype-2.14.3-h8af1aa0_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/fribidi-1.0.16-he30d5cf_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gcc-16.1.0-hfdd745d_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gcc_impl_linux-aarch64-16.1.0-h998876f_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gdk-pixbuf-2.44.8-hb26ce08_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/glslang-16.5.0-hfeb5c2c_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gmp-6.3.0-h4d6b352_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/graphite2-1.3.15-h7ac5ae9_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gxx-16.1.0-hfdd745d_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gxx_impl_linux-aarch64-16.1.0-hd5c6868_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/harfbuzz-14.3.1-h8af1aa0_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/icu-78.3-py311h3512406_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/lame-4.0-h7ce06ba_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/lcms2-2.19.1-h9d5b58d_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ld_impl_linux-aarch64-2.46.1-default_h1979696_102.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/lerc-4.2.0-h52b7260_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libabseil-20260526.0-cxx17_h6983b43_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libass-0.17.5-hac26362_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libblas-3.11.0-9_haddc8a3_openblas.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libbrotlicommon-1.2.0-h384ecca_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libbrotlidec-1.2.0-h011f0d3_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libbrotlienc-1.2.0-hb247b97_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcap-2.78-hfcc8634_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcblas-3.11.0-9_hd72aa62_openblas.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.14.1.1-had8bf56_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libdeflate-1.25-hfa851ae_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libdovi-3.4.0-hf71c8f5_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libdrm-2.4.129-h5bc82ec_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libegl-1.7.0-hd24410f_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libexpat-2.9.0-h4154aff_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libffi-3.7.0-h376a255_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libflac-1.5.0-he9c94f4_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libfreetype-2.14.3-h8af1aa0_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libfreetype6-2.14.3-h9cc7050_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgcc-16.1.0-h205dda4_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgcc-ng-16.1.0-he9431aa_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgfortran-16.1.0-he9431aa_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgfortran5-16.1.0-h47adacf_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgl-1.7.0-hd24410f_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libglib-2.88.3-had1c41b_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libglvnd-1.7.0-hd24410f_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libglx-1.7.0-hd24410f_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgomp-16.1.0-h8acb6b2_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libharfbuzz-14.3.1-h8f7ccb3_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libharfbuzz-devel-14.3.1-h8f7ccb3_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libhwloc-2.13.0-default_ha95e27d_1000.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libhwy-1.4.0-h9b45113_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libiconv-1.18-h1ea5142_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libjpeg-turbo-3.2.0-he30d5cf_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libjxl-0.12.0-h7a31cfc_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/liblapack-3.11.0-9_h88aeb00_openblas.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/liblzma-5.8.3-he30d5cf_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libmpdec-4.0.0-he30d5cf_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnl-3.11.0-he30d5cf_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvfatbin-12.9.82-h8f3c8d4_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-12.9.86-h8f3c8d4_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libogg-1.3.5-h86ecc28_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenblas-0.3.34-pthreads_h9d3fd7e_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-2026.3.0-h18f7da6_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-arm-cpu-plugin-2026.3.0-h18f7da6_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-auto-batch-plugin-2026.3.0-ha92a2b9_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-auto-plugin-2026.3.0-ha92a2b9_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-hetero-plugin-2026.3.0-h243f116_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-ir-frontend-2026.3.0-h243f116_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-onnx-frontend-2026.3.0-hfb90a0c_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-paddle-frontend-2026.3.0-hfb90a0c_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-pytorch-frontend-2026.3.0-ha85bb2c_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-tensorflow-frontend-2026.3.0-hba97658_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-tensorflow-lite-frontend-2026.3.0-ha85bb2c_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopus-1.6.1-h80f16a2_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libpciaccess-0.19-he30d5cf_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libplacebo-7.360.1-ha018e38_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libpng-1.6.58-hf9b7768_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libprotobuf-7.35.1-h30ec8a2_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libpython-3.14.10-h150030a_100_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/librsvg-2.62.3-hf685517_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsanitizer-16.1.0-h2510bd8_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsndfile-1.2.2-h7354dbf_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsqlite-3.54.1-h399dd60_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libstdcxx-16.1.0-hef695bb_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libstdcxx-ng-16.1.0-hdbbeba8_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsystemd0-257.13-hfcc8634_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libtiff-4.7.2-hdb009f0_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libudev1-257.13-hfcc8634_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libunwind-1.8.3-h6470e1d_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/liburing-2.14-hfefdfc9_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libusb-1.0.29-h06eaf92_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libuuid-2.42.4-hd6fdeab_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libvorbis-1.3.7-h7ac5ae9_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libvpx-1.15.2-hfae3067_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libvulkan-loader-1.4.357.0-h8b8848b_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libwebp-base-1.6.0-ha2e29f5_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libxcb-1.17.0-h3f04742_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libxkbcommon-1.13.2-he51e330_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libxml2-16-2.15.3-h79dcc73_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libxml2-2.15.3-h869d058_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libzlib-1.3.2-hdc9db2a_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/mpg123-1.33.7-h2b27223_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ncurses-6.6-h2b6f883_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/numpy-2.5.2-py314he1698a1_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/openh264-2.6.0-h663e864_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/openssl-3.6.3-h546c87b_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/pango-1.58.2-h8547ced_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/pcre2-10.47-hf841c20_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/pixman-0.46.4-h7ac5ae9_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/pthread-stubs-0.4-he30d5cf_1003.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/pugixml-1.15-h6ef32b0_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/pulseaudio-client-17.0-hcf98165_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/python-3.14.10-hbec3b18_100_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/rdma-core-63.0-h1f0f388_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/readline-8.3-ha7194a6_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/sdl2-2.32.56-h7ac5ae9_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/sdl3-3.4.14-had2c13b_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/shaderc-2026.3-h9a39c52_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/snappy-1.2.2-he774c54_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/spirv-tools-2026.3-hfefdfc9_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/svt-av1-4.2.0-hfae3067_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/tbb-2023.0.0-h57272ed_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/tk-8.6.13-noxft_h5cf4473_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/wayland-1.26.0-hb3e8f30_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/x264-1!164.3095-h4e544f5_2.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/x265-3.5-hdd96247_3.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xkeyboard-config-2.48-h80f16a2_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libice-1.1.2-h80f16a2_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libsm-1.2.6-hf23e593_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libx11-1.8.13-h63a1b12_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxau-1.0.12-he30d5cf_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxcursor-1.2.3-h86ecc28_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxdmcp-1.1.5-he30d5cf_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxext-1.3.7-h5bc82ec_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxfixes-6.0.2-he30d5cf_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxi-1.8.3-he30d5cf_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxrandr-1.5.5-he30d5cf_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxrender-0.9.12-he30d5cf_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxscrnsaver-1.2.4-h86ecc28_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxtst-1.2.5-h57736b2_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/zstd-1.5.7-h9d15635_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/arm-variant-1.2.0-sbsa.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-hbd8a1cb_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-12.9.27-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-12.9.86-h579c4fd_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-12.9.86-h579c4fd_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-12.9-h4f385c5_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-dejavu-sans-mono-2.37-hab24e00_0.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-inconsolata-3.000-h77eed37_0.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-source-code-pro-2.038-h77eed37_0.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-ubuntu-0.83-h77eed37_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/fonts-conda-ecosystem-1-0.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/noarch/fonts-conda-forge-1-hc364b38_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/iniconfig-2.3.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/kernel-headers_linux-aarch64-4.18.0-h05a177a_9.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libgcc-devel_linux-aarch64-16.1.0-hd673532_102.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libstdcxx-devel_linux-aarch64-16.1.0-h2445e1f_102.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pluggy-1.6.0-pyhf9edf01_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/py-cpuinfo-9.0.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pyglet-2.1.15-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pygments-2.21.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-9.1.1-pyhc364b38_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-benchmark-5.2.3-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-randomly-4.1.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-repeat-0.9.4-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-8_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.0.0-pyh332efcf_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sysroot_linux-aarch64-2.28-h585391f_9.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.4.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda_source: cuda-bindings[38e9f1b8] @ . + - conda_source: cuda-pathfinder[60c6ddae] @ ../cuda_pathfinder + - pypi: ../cuda_python_test_helpers + win-64: + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-h4c7d964_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-12.9.27-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-12.9.86-h57928b3_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-12.9.86-h57928b3_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-12.9-h4f385c5_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-dejavu-sans-mono-2.37-hab24e00_0.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-inconsolata-3.000-h77eed37_0.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-source-code-pro-2.038-h77eed37_0.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-ubuntu-0.83-h77eed37_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/fonts-conda-ecosystem-1-0.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/noarch/fonts-conda-forge-1-hc364b38_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/iniconfig-2.3.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libgcc-devel_win-64-16.1.0-hecf7705_102.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libstdcxx-devel_win-64-16.1.0-hc76ffd0_102.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/m2w64-sysroot_win-64-12.0.0.r4.gg4f2fc60ca-hd8ed1ab_10.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/mingw-w64-ucrt-x86_64-crt-git-12.0.0.r4.gg4f2fc60ca-hd8ed1ab_10.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/mingw-w64-ucrt-x86_64-headers-git-12.0.0.r4.gg4f2fc60ca-hd8ed1ab_10.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/mingw-w64-ucrt-x86_64-windows-default-manifest-6.4-he206cdd_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/mingw-w64-ucrt-x86_64-winpthreads-git-12.0.0.r4.gg4f2fc60ca-hd8ed1ab_10.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pluggy-1.6.0-pyhf9edf01_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/py-cpuinfo-9.0.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pyglet-2.1.15-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pygments-2.21.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-9.1.1-pyhc364b38_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-benchmark-5.2.3-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-randomly-4.1.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-repeat-0.9.4-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-8_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.0.0-pyh332efcf_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.4.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/aom-3.14.1-pl5321h06fc181_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/binutils_impl_win-64-2.46.1-default_ha84baeb_102.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h0ad9c76_10.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cairo-1.18.4-h477c42c_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/conda-gcc-specs-16.1.0-h851ee6d_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-dev-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-static-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-12.9.86-hac47afa_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-12.9.86-h719f0c7_6.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-12.9.86-h2466b09_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-12.9.86-h2466b09_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-profiler-api-12.9.79-h57928b3_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cython-3.2.9-py314h344ed54_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/dav1d-1.2.1-hcfcfb64_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/ffmpeg-9.0.1-gpl_h893bb9d_900.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/fontconfig-2.18.3-hd47e2ca_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/freetype-2.14.3-h57928b3_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/fribidi-1.0.16-hfd05255_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/gcc-16.1.0-hb5e953d_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/gcc_impl_win-64-16.1.0-h0942c35_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/gdk-pixbuf-2.44.8-h1f5b9c4_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/glib-2.88.3-h89924da_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/glib-tools-2.88.3-hf027272_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/graphite2-1.3.15-h5112557_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/gxx-16.1.0-hb5e953d_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/gxx_impl_win-64-16.1.0-he3d2c83_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/harfbuzz-14.3.1-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/icu-78.3-h5112557_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/lame-4.0-h0c5f640_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/ld_impl_win-64-2.46.1-default_hfd38196_102.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/lerc-4.2.0-hd936e49_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libblas-3.11.0-9_h8455456_mkl.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libbrotlicommon-1.2.0-hf02afa3_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libbrotlidec-1.2.0-h84f9c24_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libbrotlienc-1.2.0-he2a975b_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libcblas-3.11.0-9_h2a3cdd5_mkl.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libdeflate-1.25-h1a1d4e4_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libexpat-2.9.0-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libffi-3.7.0-h3d046cb_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libfreetype-2.14.3-h57928b3_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libfreetype6-2.14.3-hdbac1cb_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libgcc-16.1.0-h110b43a_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libglib-2.88.3-he810d59_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libgomp-16.1.0-h8ee18e1_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libharfbuzz-14.3.1-h03b5201_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libharfbuzz-devel-14.3.1-h03b5201_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libhwloc-2.13.0-default_h049141e_1000.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libhwy-1.4.0-h2419aca_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libiconv-1.18-hc1393d2_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libintl-0.22.5-h5728263_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libintl-devel-0.22.5-h5728263_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libjpeg-turbo-3.2.0-hfd05255_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libjxl-0.12.0-h932607e_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/liblapack-3.11.0-9_hf9ab0e9_mkl.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/liblzma-5.8.3-hfd05255_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libmpdec-4.0.0-hfd05255_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libnvfatbin-12.9.82-hac47afa_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-12.9.86-hac47afa_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libogg-1.3.5-h2466b09_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libopus-1.6.1-h6a83c73_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libpng-1.6.58-hdc8cecf_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libpython-3.14.10-hc6187dd_100_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/librsvg-2.62.3-h15cfe45_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libsqlite-3.54.1-hf5d6505_101.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libstdcxx-16.1.0-hae5796f_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libtiff-4.7.2-h8f73337_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libusb-1.0.29-h1839187_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libvorbis-1.3.7-h5112557_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libvulkan-loader-1.4.357.0-h477610d_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libwebp-base-1.6.0-h4d5522a_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libwinpthread-12.0.0.r4.gg4f2fc60ca-h57928b3_10.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libxml2-16-2.15.3-h3cfd58e_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libxml2-2.15.3-h8ef44ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libzlib-1.3.2-hfd05255_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/llvm-openmp-22.1.8-h4fa8253_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/m2-conda-epoch-20250515-0_x86_64.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/mkl-2026.1.0-hac47afa_234.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/mpg123-1.33.7-h365c5b5_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/numpy-2.5.2-py314h02f10f6_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/openh264-2.6.0-h1eab103_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/openssl-3.6.3-hf411b9b_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/pango-1.58.2-h13911b6_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/pcre2-10.47-hd2b5f0e_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/pixman-0.46.4-h5112557_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/python-3.14.10-h53f6dd8_100_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/sdl2-2.32.56-h5112557_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/sdl3-3.4.14-h5112557_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/svt-av1-4.2.0-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/tbb-2023.0.0-hd3d4ead_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/tk-8.6.13-h967ab96_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vc-14.5-ha367084_41.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.51.36247-habf1de7_41.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vcomp14-14.51.36247-habf1de7_41.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vs2015_runtime-14.51.36247-h633cb9f_41.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/x264-1!164.3095-h8ffe710_2.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/win-64/x265-3.5-h2d74725_3.tar.bz2 + - conda: https://conda.anaconda.org/conda-forge/win-64/zlib-1.3.2-hfd05255_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda + - conda_source: cuda-bindings[695c7ddf] @ . + - conda_source: cuda-pathfinder[89b6d34b] @ ../cuda_pathfinder + - pypi: ../cuda_python_test_helpers + docs: + channels: + - url: https://conda.anaconda.org/conda-forge/ + indexes: + - https://pypi.org/simple + packages: + linux-64: + - conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/backports.zstd-1.7.0-py312h3f22e6b_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/brotli-python-1.2.0-py312he9c40d5_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-hda65f42_10.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-bindings-12.9.7-py312h6ec95bb_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-crt-tools-12.9.86-ha770c72_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-12.9.79-h5888daf_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-12.9.79-h5888daf_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-12.9.79-h5888daf_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvcc-impl-12.9.86-h85509e4_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvcc-tools-12.9.86-he02047a_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-12.9.86-hecca717_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-12.9.86-h4bc722e_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-12.9.86-h4bc722e_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cython-3.2.9-py312h68e6be4_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/debugpy-1.8.21-py312h8285ef7_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/greenlet-3.5.5-py312h8285ef7_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/keyutils-1.6.3-h7cc23a3_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/krb5-1.22.2-hbc21106_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.46.1-default_hbd61a6d_102.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libblas-3.11.0-9_h4a7cf45_openblas.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcap-2.78-h084b8d7_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcblas-3.11.0-9_h0358290_openblas.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.14.1.1-hbc026e6_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libedit-3.1.20250104-pl5321h373387f_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.9.0-hd2095e1_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.7.0-h3435931_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgcc-16.1.0-ha9f2e26_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgfortran-16.1.0-h69a702a_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgfortran5-16.1.0-h79bb938_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgomp-16.1.0-he0feb66_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/liblapack-3.11.0-9_h47877c9_openblas.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/liblzma-5.8.3-hb03c661_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnl-3.11.0-hb03c661_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnsl-2.0.1-hb9d3cd8_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-12.9.86-hecca717_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnvptxcompiler-dev-12.9.86-ha770c72_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libopenblas-0.3.34-pthreads_h94d23a6_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libpython-3.12.16-ha57cdbe_0_cpython.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libsodium-1.0.22-h280c20c_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libsqlite-3.54.1-h0737f62_101.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-16.1.0-h934c35e_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libsystemd0-257.13-h084b8d7_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libudev1-257.13-h084b8d7_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libuuid-2.42.4-hcfc3c73_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libxcrypt-4.4.38-h280c20c_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libzlib-1.3.2-h25fd6f3_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/make-4.4.1-hb03c661_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/markupsafe-3.0.3-py312h8a5da7c_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/msgpack-python-1.2.1-py312h0a2e395_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/ncurses-6.6-hdb14827_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/numpy-2.5.2-py312h33ff503_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.6.3-h35e630c_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/psutil-7.2.2-py312h5253ce2_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/python-3.12.16-h5f976f7_0_cpython.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/pyyaml-6.0.3-py312h8a5da7c_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/pyzmq-27.1.0-py312hda471dd_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/rdma-core-63.0-h192683f_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/readline-8.3-hd6e31c0_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/rpds-py-2026.6.3-py312h192e038_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/ruamel.yaml.clib-0.2.15-py312h5253ce2_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/scipy-1.18.0-py312h54fa4ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/sqlalchemy-2.0.52-py312h5253ce2_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.13-noxft_hd70dff1_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/tornado-6.5.8-py312h4c3975b_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/yaml-0.2.5-h280c20c_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/zeromq-4.3.5-h09e67af_11.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/zstd-1.5.7-hb78ec9c_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/_python_abi3_support-1.0-hd8ed1ab_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/accessible-pygments-0.0.5-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/alabaster-1.0.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/apeye-1.4.1-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/apeye-core-1.1.5-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/asttokens-3.0.2-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/attrs-26.1.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/autodocsumm-0.2.15-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/babel-2.18.0-pyhcf101f3_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/beautifulsoup4-4.15.0-pyha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-hbd8a1cb_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cachecontrol-0.14.4-pyha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/certifi-2026.10.23-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/charset-normalizer-3.5.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/click-8.4.2-pyhc90fa1f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/comm-0.2.3-pyhe01879c_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cpython-3.12.13-py312hd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-12.9.27-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-12.9.86-ha770c72_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-12.9.79-h3f2d84a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-12.9.79-h3f2d84a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-12.9.79-h3f2d84a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvcc-dev_linux-64-12.9.86-he91c749_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-12.9.86-ha770c72_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-pathfinder-1.6.1-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-12.9-h4f385c5_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/dict2css-0.6.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/docutils-0.21.2-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/domdf-python-tools-3.10.0-pyhff2d567_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/enum_tools-0.13.0-pyhcf101f3_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/executing-2.2.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/filelock-3.32.3-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/furo-2025.12.19-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/h2-4.4.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/hpack-4.2.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/html5lib-1.1-pyhd8ed1ab_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/hyperframe-6.1.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/idna-3.19-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/imagesize-2.0.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/importlib-metadata-9.0.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/importlib-resources-7.1.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/importlib_resources-7.1.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/iniconfig-2.3.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ipykernel-7.3.0-pyha191276_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ipython-9.16.1-pyh53cf698_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ipython_pygments_lexers-1.1.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/jedi-0.20.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/jinja2-3.1.6-pyhcf101f3_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/jsonschema-4.26.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/jsonschema-specifications-2025.9.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/jupyter-cache-1.0.1-pyhff2d567_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/jupyter_client-8.9.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/jupyter_core-5.9.1-pyhc90fa1f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libnvptxcompiler-dev_linux-64-12.9.86-ha770c72_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/markdown-it-py-4.2.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/matplotlib-inline-0.2.2-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/mdit-py-plugins-0.6.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/mdurl-0.1.2-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/mypy_extensions-1.1.0-pyha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/myst-nb-1.4.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/myst-parser-5.1.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/natsort-8.4.0-pyhcf101f3_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/nbclient-0.11.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/nbformat-5.11.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/nest-asyncio2-1.7.2-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/numpydoc-1.10.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/parso-0.8.7-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pexpect-4.9.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pip-26.2.2-pyh8b19718_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/platformdirs-4.11.3-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pluggy-1.6.0-pyhf9edf01_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/prompt-toolkit-3.0.53-pyha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ptyprocess-0.7.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pure_eval-0.2.3-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pydata-sphinx-theme-0.19.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pygments-2.21.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pysocks-1.7.1-pyha55dd90_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-9.1.1-pyhc364b38_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python-dateutil-2.9.0.post0-pyhe01879c_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python-fastjsonschema-2.22.2-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python-gil-3.12.13-hd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.12-8_cp312.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/referencing-0.37.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/requests-2.34.2-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/roman-5.2-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ruamel.yaml-0.19.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.0.0-pyh332efcf_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/six-1.17.0-pyhe01879c_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/snowballstemmer-3.1.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/soupsieve-2.9.2-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-8.1.3-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-autodoc-typehints-3.0.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-basic-ng-1.0.0b2-pyhd8ed1ab_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-copybutton-0.5.2-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-jinja2-compat-0.4.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-prompt-1.10.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-tabs-3.5.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-toolbox-4.3.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinxcontrib-applehelp-2.0.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinxcontrib-devhelp-2.0.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinxcontrib-htmlhelp-2.1.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinxcontrib-jsmath-1.0.1-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinxcontrib-qthelp-2.0.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinxcontrib-serializinghtml-2.0.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/stack_data-0.6.3-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tabulate-0.10.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tinycss2-1.5.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.4.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/traitlets-5.16.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing-extensions-4.16.0-h69aa097_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_inspect-0.9.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/urllib3-2.7.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/wcwidth-0.8.2-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/webencodings-0.5.1-pyhd8ed1ab_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/wheel-0.48.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/zipp-4.1.0-pyhcf101f3_0.conda + - pypi: https://files.pythonhosted.org/packages/8c/79/017fab2f7167a9a9795665f894d04f77aafceca80821b51589bb4b23ff5c/nvidia_sphinx_theme-0.0.9.post1-py3-none-any.whl + linux-aarch64: + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/backports.zstd-1.7.0-py312h22d1088_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/brotli-python-1.2.0-py312h41c1d46_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/bzip2-1.0.8-h4777abc_10.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-bindings-12.9.7-py312hdebd348_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-crt-tools-12.9.86-h579c4fd_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvcc-impl-12.9.86-h614329b_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvcc-tools-12.9.86-h614329b_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-12.9.86-h8f3c8d4_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-12.9.86-h7b14b0b_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-12.9.86-h7b14b0b_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cython-3.2.9-py312hbda70bc_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/debugpy-1.8.21-py312hf55c4e8_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/greenlet-3.5.5-py312hf55c4e8_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/keyutils-1.6.3-h5bc82ec_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/krb5-1.22.2-h095d8e5_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ld_impl_linux-aarch64-2.46.1-default_h1979696_102.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libblas-3.11.0-9_haddc8a3_openblas.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcap-2.78-hfcc8634_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcblas-3.11.0-9_hd72aa62_openblas.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.14.1.1-had8bf56_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libedit-3.1.20250104-pl5321hc48eb74_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libexpat-2.9.0-h4154aff_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libffi-3.7.0-h376a255_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgcc-16.1.0-h205dda4_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgfortran-16.1.0-he9431aa_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgfortran5-16.1.0-h47adacf_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgomp-16.1.0-h8acb6b2_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/liblapack-3.11.0-9_h88aeb00_openblas.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/liblzma-5.8.3-he30d5cf_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnl-3.11.0-he30d5cf_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnsl-2.0.1-h86ecc28_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-12.9.86-h8f3c8d4_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvptxcompiler-dev-12.9.86-h579c4fd_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenblas-0.3.34-pthreads_h9d3fd7e_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libpython-3.12.16-h3cfa5a6_0_cpython.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsodium-1.0.22-h80f16a2_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsqlite-3.54.1-hd26f1b6_101.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libstdcxx-16.1.0-hef695bb_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsystemd0-257.13-hfcc8634_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libudev1-257.13-hfcc8634_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libuuid-2.42.4-hd6fdeab_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libxcrypt-4.4.38-h80f16a2_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libzlib-1.3.2-hdc9db2a_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/make-4.4.1-he30d5cf_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/markupsafe-3.0.3-py312hd077ced_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/msgpack-python-1.2.1-py312h1683e8e_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ncurses-6.6-h2b6f883_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/numpy-2.5.2-py312hce9e0af_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/openssl-3.6.3-h546c87b_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/psutil-7.2.2-py312hd41f8a7_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/python-3.12.16-h94ad73b_0_cpython.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/pyyaml-6.0.3-py312ha4530ae_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/pyzmq-27.1.0-py312hdf0a211_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/rdma-core-63.0-h1f0f388_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/readline-8.3-ha7194a6_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/rpds-py-2026.6.3-py312h00f41f5_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ruamel.yaml.clib-0.2.15-py312hd41f8a7_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/scipy-1.18.0-py312ha7f05e0_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/sqlalchemy-2.0.52-py312h2fc9c67_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/tk-8.6.13-noxft_h5cf4473_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/tornado-6.5.8-py312hefbd42c_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/yaml-0.2.5-h80f16a2_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/zeromq-4.3.5-hec9560f_11.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/zstd-1.5.7-h9d15635_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/_python_abi3_support-1.0-hd8ed1ab_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/accessible-pygments-0.0.5-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/alabaster-1.0.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/apeye-1.4.1-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/apeye-core-1.1.5-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/arm-variant-1.2.0-sbsa.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/asttokens-3.0.2-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/attrs-26.1.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/autodocsumm-0.2.15-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/babel-2.18.0-pyhcf101f3_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/beautifulsoup4-4.15.0-pyha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-hbd8a1cb_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cachecontrol-0.14.4-pyha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/certifi-2026.10.23-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/charset-normalizer-3.5.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/click-8.4.2-pyhc90fa1f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/comm-0.2.3-pyhe01879c_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cpython-3.12.13-py312hd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-12.9.27-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-12.9.86-h579c4fd_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvcc-dev_linux-aarch64-12.9.86-h4310d6a_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-12.9.86-h579c4fd_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-pathfinder-1.6.1-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-12.9-h4f385c5_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/dict2css-0.6.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/docutils-0.21.2-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/domdf-python-tools-3.10.0-pyhff2d567_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/enum_tools-0.13.0-pyhcf101f3_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/executing-2.2.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/filelock-3.32.3-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/furo-2025.12.19-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/h2-4.4.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/hpack-4.2.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/html5lib-1.1-pyhd8ed1ab_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/hyperframe-6.1.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/idna-3.19-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/imagesize-2.0.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/importlib-metadata-9.0.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/importlib-resources-7.1.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/importlib_resources-7.1.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/iniconfig-2.3.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ipykernel-7.3.0-pyha191276_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ipython-9.16.1-pyh53cf698_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ipython_pygments_lexers-1.1.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/jedi-0.20.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/jinja2-3.1.6-pyhcf101f3_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/jsonschema-4.26.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/jsonschema-specifications-2025.9.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/jupyter-cache-1.0.1-pyhff2d567_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/jupyter_client-8.9.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/jupyter_core-5.9.1-pyhc90fa1f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libnvptxcompiler-dev_linux-aarch64-12.9.86-h579c4fd_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/markdown-it-py-4.2.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/matplotlib-inline-0.2.2-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/mdit-py-plugins-0.6.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/mdurl-0.1.2-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/mypy_extensions-1.1.0-pyha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/myst-nb-1.4.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/myst-parser-5.1.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/natsort-8.4.0-pyhcf101f3_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/nbclient-0.11.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/nbformat-5.11.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/nest-asyncio2-1.7.2-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/numpydoc-1.10.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/parso-0.8.7-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pexpect-4.9.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pip-26.2.2-pyh8b19718_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/platformdirs-4.11.3-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pluggy-1.6.0-pyhf9edf01_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/prompt-toolkit-3.0.53-pyha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ptyprocess-0.7.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pure_eval-0.2.3-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pydata-sphinx-theme-0.19.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pygments-2.21.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pysocks-1.7.1-pyha55dd90_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-9.1.1-pyhc364b38_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python-dateutil-2.9.0.post0-pyhe01879c_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python-fastjsonschema-2.22.2-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python-gil-3.12.13-hd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.12-8_cp312.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/referencing-0.37.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/requests-2.34.2-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/roman-5.2-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ruamel.yaml-0.19.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.0.0-pyh332efcf_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/six-1.17.0-pyhe01879c_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/snowballstemmer-3.1.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/soupsieve-2.9.2-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-8.1.3-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-autodoc-typehints-3.0.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-basic-ng-1.0.0b2-pyhd8ed1ab_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-copybutton-0.5.2-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-jinja2-compat-0.4.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-prompt-1.10.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-tabs-3.5.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-toolbox-4.3.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinxcontrib-applehelp-2.0.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinxcontrib-devhelp-2.0.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinxcontrib-htmlhelp-2.1.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinxcontrib-jsmath-1.0.1-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinxcontrib-qthelp-2.0.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinxcontrib-serializinghtml-2.0.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/stack_data-0.6.3-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tabulate-0.10.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tinycss2-1.5.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.4.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/traitlets-5.16.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing-extensions-4.16.0-h69aa097_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_inspect-0.9.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/urllib3-2.7.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/wcwidth-0.8.2-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/webencodings-0.5.1-pyhd8ed1ab_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/wheel-0.48.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/zipp-4.1.0-pyhcf101f3_0.conda + - pypi: https://files.pythonhosted.org/packages/8c/79/017fab2f7167a9a9795665f894d04f77aafceca80821b51589bb4b23ff5c/nvidia_sphinx_theme-0.0.9.post1-py3-none-any.whl + win-64: + - conda: https://conda.anaconda.org/conda-forge/noarch/_python_abi3_support-1.0-hd8ed1ab_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/accessible-pygments-0.0.5-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/alabaster-1.0.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/apeye-1.4.1-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/apeye-core-1.1.5-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/asttokens-3.0.2-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/attrs-26.1.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/autodocsumm-0.2.15-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/babel-2.18.0-pyhcf101f3_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/beautifulsoup4-4.15.0-pyha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-h4c7d964_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cachecontrol-0.14.4-pyha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/certifi-2026.10.23-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/charset-normalizer-3.5.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/click-8.4.2-pyh6dadd2b_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/comm-0.2.3-pyhe01879c_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cpython-3.12.13-py312hd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-12.9.27-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-12.9.86-h57928b3_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvcc-dev_win-64-12.9.86-h36c15f3_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-12.9.86-h57928b3_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-pathfinder-1.6.1-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-12.9-h4f385c5_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/dict2css-0.6.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/docutils-0.21.2-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/domdf-python-tools-3.10.0-pyhff2d567_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/enum_tools-0.13.0-pyhcf101f3_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/executing-2.2.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/filelock-3.32.3-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/furo-2025.12.19-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/h2-4.4.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/hpack-4.2.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/html5lib-1.1-pyhd8ed1ab_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/hyperframe-6.1.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/idna-3.19-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/imagesize-2.0.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/importlib-metadata-9.0.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/importlib-resources-7.1.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/importlib_resources-7.1.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/iniconfig-2.3.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ipykernel-7.3.0-pyh6dadd2b_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ipython-9.16.1-pyhe2676ad_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ipython_pygments_lexers-1.1.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/jedi-0.20.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/jinja2-3.1.6-pyhcf101f3_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/jsonschema-4.26.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/jsonschema-specifications-2025.9.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/jupyter-cache-1.0.1-pyhff2d567_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/jupyter_client-8.9.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/jupyter_core-5.9.1-pyh6dadd2b_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libnvptxcompiler-dev_win-64-12.9.86-h57928b3_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/markdown-it-py-4.2.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/matplotlib-inline-0.2.2-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/mdit-py-plugins-0.6.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/mdurl-0.1.2-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/mypy_extensions-1.1.0-pyha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/myst-nb-1.4.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/myst-parser-5.1.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/natsort-8.4.0-pyhcf101f3_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/nbclient-0.11.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/nbformat-5.11.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/nest-asyncio2-1.7.2-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/numpydoc-1.10.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/parso-0.8.7-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pip-26.2.2-pyh8b19718_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/platformdirs-4.11.3-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pluggy-1.6.0-pyhf9edf01_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/prompt-toolkit-3.0.53-pyha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pure_eval-0.2.3-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pydata-sphinx-theme-0.19.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pygments-2.21.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pysocks-1.7.1-pyh09c184e_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-9.1.1-pyhc364b38_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python-dateutil-2.9.0.post0-pyhe01879c_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python-fastjsonschema-2.22.2-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python-gil-3.12.13-hd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.12-8_cp312.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/referencing-0.37.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/requests-2.34.2-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/roman-5.2-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ruamel.yaml-0.19.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.0.0-pyh332efcf_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/six-1.17.0-pyhe01879c_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/snowballstemmer-3.1.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/soupsieve-2.9.2-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-8.1.3-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-autodoc-typehints-3.0.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-basic-ng-1.0.0b2-pyhd8ed1ab_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-copybutton-0.5.2-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-jinja2-compat-0.4.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-prompt-1.10.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-tabs-3.5.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-toolbox-4.3.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinxcontrib-applehelp-2.0.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinxcontrib-devhelp-2.0.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinxcontrib-htmlhelp-2.1.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinxcontrib-jsmath-1.0.1-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinxcontrib-qthelp-2.0.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sphinxcontrib-serializinghtml-2.0.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/stack_data-0.6.3-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tabulate-0.10.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tinycss2-1.5.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.4.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/traitlets-5.16.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing-extensions-4.16.0-h69aa097_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_inspect-0.9.0-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/urllib3-2.7.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/wcwidth-0.8.2-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/webencodings-0.5.1-pyhd8ed1ab_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/wheel-0.48.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/win_inet_pton-1.1.0-pyh7428d3b_8.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/zipp-4.1.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/backports.zstd-1.7.0-py312h06d0912_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/brotli-python-1.2.0-py312ha763cb9_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h0ad9c76_10.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-bindings-12.9.7-py312ha085c13_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-crt-tools-12.9.86-h57928b3_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-dev-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-static-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvcc-impl-12.9.86-h53cbb54_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvcc-tools-12.9.86-he0c23c2_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-12.9.86-hac47afa_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-12.9.86-h2466b09_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-12.9.86-h2466b09_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cython-3.2.9-py312hd245ac3_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/debugpy-1.8.21-py312ha1a9051_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/greenlet-3.5.5-py312ha1a9051_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/krb5-1.22.2-h719d79b_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libblas-3.11.0-9_h8455456_mkl.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libcblas-3.11.0-9_h2a3cdd5_mkl.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libexpat-2.9.0-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libffi-3.7.0-h3d046cb_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libgcc-16.1.0-h110b43a_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libgomp-16.1.0-h8ee18e1_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libhwloc-2.13.0-default_h049141e_1000.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libiconv-1.18-hc1393d2_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/liblapack-3.11.0-9_hf9ab0e9_mkl.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/liblzma-5.8.3-hfd05255_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-12.9.86-hac47afa_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libnvptxcompiler-dev-12.9.86-h57928b3_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libpython-3.12.16-hfb4101e_0_cpython.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libsodium-1.0.22-h6a83c73_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libsqlite-3.54.1-hf5d6505_101.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libwinpthread-12.0.0.r4.gg4f2fc60ca-h57928b3_10.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libxml2-16-2.15.3-h692994f_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libxml2-2.15.3-hbc0d294_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libzlib-1.3.2-hfd05255_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/llvm-openmp-22.1.8-h4fa8253_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/make-4.4.1-hba3369d_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/markupsafe-3.0.3-py312h05f76fc_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/mkl-2026.1.0-hac47afa_234.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/msgpack-python-1.2.1-py312h78d62e6_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/numpy-2.5.2-py312ha3f287d_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/openssl-3.6.3-hf411b9b_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/psutil-7.2.2-py312he5662c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/python-3.12.16-hb12b558_0_cpython.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/pywin32-312-py312h829343e_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/pyyaml-6.0.3-py312h05f76fc_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/pyzmq-27.1.0-py312h343a6d4_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/rpds-py-2026.6.3-py312hd944d65_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/ruamel.yaml.clib-0.2.15-py312he5662c2_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/scipy-1.18.0-py312h9b3c559_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/sqlalchemy-2.0.52-py312he5662c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/tbb-2023.0.0-hd3d4ead_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/tk-8.6.13-h967ab96_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/tornado-6.5.8-py312he06e257_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vc-14.5-ha367084_41.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.51.36247-habf1de7_41.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vcomp14-14.51.36247-habf1de7_41.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/zeromq-4.3.5-h3a581c9_11.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda + - pypi: https://files.pythonhosted.org/packages/8c/79/017fab2f7167a9a9795665f894d04f77aafceca80821b51589bb4b23ff5c/nvidia_sphinx_theme-0.0.9.post1-py3-none-any.whl +packages: +- conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda + build_number: 20 + sha256: 1dd3fffd892081df9726d7eb7e0dea6198962ba775bd88842135a4ddb4deb3c9 + md5: a9f577daf3de00bca7c3c76c0ecbd1de + depends: + - __glibc >=2.17,<3.0.a0 + - libgomp >=7.5.0 + constrains: + - openmp_impl <0.0a0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + strong: + - _openmp_mutex >=4.5 + size: 28948 + timestamp: 1770939786096 +- conda: https://conda.anaconda.org/conda-forge/linux-64/alsa-lib-1.2.16.1-hb03c661_0.conda + sha256: cf93ca0f1f107e95a35969a4622684e08fcb8cf37f8cf4a1e9e424828386c921 + md5: 8904e09bda369377b3dd07e2ac828c5d + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + license: LGPL-2.1-or-later + license_family: LGPL + purls: [] + run_exports: + weak: + - alsa-lib >=1.2.16.1,<1.3.0a0 + size: 592377 + timestamp: 1781521980743 +- conda: https://conda.anaconda.org/conda-forge/linux-64/aom-3.14.1-pl5321h039972f_1.conda + sha256: b1d972a9b949a88babee681437535550b3ca5dbca6a23a40dffeb7900fec19fd + md5: 5a78a69eb3b50f24b379e9d2a93163ae + depends: + - __glibc >=2.17,<3.0.a0 + - libstdcxx >=14 + - libgcc >=14 + license: BSD-2-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - aom >=3.14.1,<3.15.0a0 + size: 3103347 + timestamp: 1780752473089 +- conda: https://conda.anaconda.org/conda-forge/linux-64/backports.zstd-1.7.0-py312h3f22e6b_0.conda + sha256: c10df0467f534472f0aa39013850d6dd9dd38ea5a6fb5c0812afb6f3fc768924 + md5: e7eb25765bdf21397cc6e30828871625 + depends: + - python + - __glibc >=2.17,<3.0.a0 + - libgcc >=15 + - python_abi 3.12.* *_cp312 + - zstd >=1.5.7,<1.6.0a0 + license: BSD-3-Clause AND MIT AND EPL-2.0 + purls: + - pkg:pypi/backports-zstd?source=hash-mapping + run_exports: {} + size: 240967 + timestamp: 1786861419155 +- conda: https://conda.anaconda.org/conda-forge/linux-64/binutils_impl_linux-64-2.46.1-default_hfdba357_102.conda + sha256: fb7bf36984a37ce7e4714d1d1da0bd0e3bfc679520f5cdc184afc676fd4b5da2 + md5: a0c5e0b7f58c8ceeb08e5bc41251d5a2 + depends: + - ld_impl_linux-64 2.46.1 default_hbd61a6d_102 + - sysroot_linux-64 + - zstd >=1.5.7,<1.6.0a0 + license: GPL-3.0-only + license_family: GPL + purls: [] + run_exports: {} + size: 3713752 + timestamp: 1784214522814 +- conda: https://conda.anaconda.org/conda-forge/linux-64/binutils_linux-64-2.46.1-default_h4852527_102.conda + sha256: 08d7238663fc408ba2ab60b02fa3d06a7ca9d872962e03e90c7e0fdecb7ed1d0 + md5: 32fd07abe84eb14f17c7f5cc6fa8df82 + depends: + - binutils_impl_linux-64 2.46.1 default_hfdba357_102 + license: GPL-3.0-only + license_family: GPL + run_exports: {} + size: 36337 + timestamp: 1784214551894 +- conda: https://conda.anaconda.org/conda-forge/linux-64/brotli-python-1.2.0-py312he9c40d5_3.conda + sha256: 32ae6e002843704af9f39395f3116815fa66f2b27de1bd9044fb2a2d53fbe3d3 + md5: d176f3ed2824f930b524c45eb8f158bb + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=15 + - libstdcxx >=15 + - python >=3.12,<3.13.0a0 + - python_abi 3.12.* *_cp312 + constrains: + - libbrotlicommon 1.2.0 h39a168f_3 + license: MIT + license_family: MIT + purls: + - pkg:pypi/brotli?source=hash-mapping + run_exports: {} + size: 367032 + timestamp: 1786622975850 +- conda: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-hda65f42_10.conda + sha256: 1a0d382c515ebf55f8ee1f38c8b81bc95af5c2acc42ad53b66bc5df932032f96 + md5: e675fabcf81499adc7edf58124fb1e01 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + license: bzip2-1.0.6 + license_family: BSD + purls: [] + run_exports: + weak: + - bzip2 >=1.0.8,<2.0a0 + size: 257808 + timestamp: 1785906269155 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cairo-1.18.4-he90730b_1.conda + sha256: 06525fa0c4e4f56e771a3b986d0fdf0f0fc5a3270830ee47e127a5105bde1b9a + md5: bb6c4808bfa69d6f7f6b07e5846ced37 + depends: + - __glibc >=2.17,<3.0.a0 + - fontconfig >=2.15.0,<3.0a0 + - fonts-conda-ecosystem + - icu >=78.1,<79.0a0 + - libexpat >=2.7.3,<3.0a0 + - libfreetype >=2.14.1 + - libfreetype6 >=2.14.1 + - libgcc >=14 + - libglib >=2.86.3,<3.0a0 + - libpng >=1.6.53,<1.7.0a0 + - libstdcxx >=14 + - libxcb >=1.17.0,<2.0a0 + - libzlib >=1.3.1,<2.0a0 + - pixman >=0.46.4,<1.0a0 + - xorg-libice >=1.1.2,<2.0a0 + - xorg-libsm >=1.2.6,<2.0a0 + - xorg-libx11 >=1.8.12,<2.0a0 + - xorg-libxext >=1.3.6,<2.0a0 + - xorg-libxrender >=0.9.12,<0.10.0a0 + license: LGPL-2.1-only or MPL-1.1 + purls: [] + run_exports: + weak: + - cairo >=1.18.4,<2.0a0 + size: 989514 + timestamp: 1766415934926 +- conda: https://conda.anaconda.org/conda-forge/linux-64/conda-gcc-specs-16.1.0-h5a3cd76_2.conda + sha256: 1e30eb3d63f41b052f6888edaad63c25183f90e8edb53c2855af5f582487fe13 + md5: 357356e180fda1269caa9823f847cbb8 + depends: + - gcc_impl_linux-64 >=16.1.0,<16.1.1.0a0 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: {} + size: 32391 + timestamp: 1787165557922 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-bindings-12.9.7-py312h6ec95bb_1.conda + sha256: db9d54a9205d424e670226187120f0e784c43a7a0c626eccb61289783933a1c2 + md5: 343c1eee3ba82710b12e1a90df90dc22 + depends: + - python + - cuda-pathfinder >=1.5.5,<2 + - cuda-version >=12,<13.0a0 + - cuda-nvrtc >=12,<13.0a0 + - cuda-nvcc-impl >=12,<13.0a0 + - libcufile >=1,<2.0a0 + - libnvjitlink >=12.3,<13 + - libgcc >=14 + - libstdcxx >=14 + - __glibc >=2.17,<3.0.a0 + - python_abi 3.12.* *_cp312 + constrains: + - cuda-cudart >=12,<13.0a0 + - libnvfatbin >=12,<13.0a0 + license: LicenseRef-NVIDIA-SOFTWARE-LICENSE + purls: + - pkg:pypi/cuda-bindings?source=hash-mapping + run_exports: {} + size: 5123472 + timestamp: 1782354988736 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-crt-tools-12.9.86-ha770c72_2.conda + sha256: 2da9964591af14ba11b2379bed01d56e7185260ee0998d1a939add7fb752db45 + md5: 503a94e20d2690d534d676a764a1852c + depends: + - cuda-version >=12.9,<12.10.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 29138 + timestamp: 1753975252445 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-12.9.79-h5888daf_0.conda + sha256: 57d1294ecfaf9dc8cdb5fc4be3e63ebc7614538bddb5de53cfd9b1b7de43aed5 + md5: cb15315d19b58bd9cd424084e58ad081 + depends: + - __glibc >=2.17,<3.0.a0 + - cuda-cudart_linux-64 12.9.79 h3f2d84a_0 + - cuda-version >=12.9,<12.10.0a0 + - libgcc >=13 + - libstdcxx >=13 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 23242 + timestamp: 1749218416505 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-12.9.79-h5888daf_0.conda + sha256: 04d8235cb3cb3510c0492c3515a9d1a6053b50ef39be42b60cafb05044b5f4c6 + md5: ba38a7c3b4c14625de45784b773f0c71 + depends: + - __glibc >=2.17,<3.0.a0 + - cuda-cudart 12.9.79 h5888daf_0 + - cuda-cudart-dev_linux-64 12.9.79 h3f2d84a_0 + - cuda-cudart-static 12.9.79 h5888daf_0 + - cuda-version >=12.9,<12.10.0a0 + - libgcc >=13 + - libstdcxx >=13 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: + weak: + - cuda-cudart >=12.9.79,<13.0a0 + size: 23687 + timestamp: 1749218464010 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-12.9.79-h5888daf_0.conda + sha256: 6261e1d9af80e1ec308e3e5e2ff825d189ef922d24093beaf6efca12e67ce060 + md5: d3c4ac48f4967f09dd910d9c15d40c81 + depends: + - __glibc >=2.17,<3.0.a0 + - cuda-cudart-static_linux-64 12.9.79 h3f2d84a_0 + - cuda-version >=12.9,<12.10.0a0 + - libgcc >=13 + - libstdcxx >=13 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 23283 + timestamp: 1749218442382 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvcc-impl-12.9.86-h85509e4_2.conda + sha256: 961cf20d411b7685cd744e6c6ed35efea547d095c62151d6f3053d9931bb994d + md5: 67458d2685e7503933efa550f3ee40f3 + depends: + - cuda-cudart >=12.9.79,<13.0a0 + - cuda-cudart-dev + - cuda-nvcc-dev_linux-64 12.9.86 he91c749_2 + - cuda-nvcc-tools 12.9.86 he02047a_2 + - cuda-nvvm-impl 12.9.86 h4bc722e_2 + - cuda-version >=12.9,<12.10.0a0 + - libnvptxcompiler-dev 12.9.86 ha770c72_2 + constrains: + - gcc_impl_linux-64 >=6,<15.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 27215 + timestamp: 1753975546846 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvcc-tools-12.9.86-he02047a_2.conda + sha256: 0e849be7b5e4832ca218ec2c48a9ba3a15a984f629e2e54f38a53f4f57220341 + md5: dc256c9864c2e8e9c817fbca1c84a4bc + depends: + - __glibc >=2.17,<3.0.a0 + - cuda-crt-tools 12.9.86 ha770c72_2 + - cuda-nvvm-tools 12.9.86 h4bc722e_2 + - cuda-version >=12.9,<12.10.0a0 + - libgcc >=12 + - libstdcxx >=12 + constrains: + - gcc_impl_linux-64 >=6,<15.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 27380012 + timestamp: 1753975454194 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-12.9.86-hecca717_1.conda + sha256: 68f81268c25befa9b70dc49af469ab0eb131960e3700b9a4edb46a32da343a28 + md5: 53f0062e2243b26e43ddac0b5267c6a3 + depends: + - __glibc >=2.17,<3.0.a0 + - cuda-version >=12.9,<12.10.0a0 + - libgcc >=14 + - libstdcxx >=14 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 67168282 + timestamp: 1760723629347 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-dev-12.9.86-hecca717_1.conda + sha256: ae620051c16eabf7720a47c5115634d64f7703d32124555ad0afccfd4b8d7cf4 + md5: 0d28090f4e63410e20397c7975612837 + depends: + - __glibc >=2.17,<3.0.a0 + - cuda-nvrtc 12.9.86 hecca717_1 + - cuda-version >=12.9,<12.10.0a0 + - libgcc >=14 + - libstdcxx >=14 + constrains: + - cuda-nvrtc-static >=12.9.86 + license: LicenseRef-NVIDIA-End-User-License-Agreement + run_exports: + weak: + - cuda-nvrtc >=12.9.86,<13.0a0 + size: 36819 + timestamp: 1760723845601 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-12.9.86-h69a702a_6.conda + sha256: 5c70d91e6d30eb6000ea036558a20fd0b1bc13cdd2c04fd5dbf94d9caa0a7fbc + md5: 704956f67e44ddf046565ead01f9efcd + depends: + - cuda-nvvm-dev_linux-64 12.9.86.* + - cuda-nvvm-impl 12.9.86.* + - cuda-nvvm-tools 12.9.86.* + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 25475 + timestamp: 1771619493286 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-12.9.86-h4bc722e_2.conda + sha256: f4d34556174e4faa9d374ba2244707082870e1bbc1bb441ad3d9d2cea37da6af + md5: 82125dd3c0c4aa009faa00e2829b93d8 + depends: + - __glibc >=2.17,<3.0.a0 + - cuda-version >=12.9,<12.10.0a0 + - libgcc >=12 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 21425520 + timestamp: 1753975283188 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-12.9.86-h4bc722e_2.conda + sha256: 45f5e881ed0d973132a5475a0b5c066db6e748ef3a831a14dba8374b252e0067 + md5: f9af26e4079adcd72688a8e8dbecb229 + depends: + - __glibc >=2.17,<3.0.a0 + - cuda-version >=12.9,<12.10.0a0 + - libgcc >=12 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 24246736 + timestamp: 1753975332907 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-profiler-api-12.9.79-h7938cbb_1.conda + sha256: 4f679dfbf2bf2d17abb507f31b0176c0e3572337b5005b9e36179948a53988ac + md5: 90d09865fb37d11d510444e34ebe6a09 + depends: + - cuda-cudart-dev + - cuda-version >=12.9,<12.10.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 23668 + timestamp: 1761098836058 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cython-3.2.9-py312h68e6be4_0.conda + sha256: 13e37a868e52933951b3f80fd5fe953742804499f2ee2b9a123e74070c265c0d + md5: 7311d3a6721eec7d76f4a84045f1ddfd + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libstdcxx >=14 + - python >=3.12,<3.13.0a0 + - python_abi 3.12.* *_cp312 + license: Apache-2.0 + license_family: APACHE + purls: + - pkg:pypi/cython?source=hash-mapping + run_exports: {} + size: 3731635 + timestamp: 1785016112258 +- conda: https://conda.anaconda.org/conda-forge/linux-64/cython-3.2.9-py314h1807b08_0.conda + sha256: 46b24c9a7de27f16a36942d74fd305064a408da959c6e885680cb072ca5bcaed + md5: 09bf9e0921002ec563b5e7c710caada2 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libstdcxx >=14 + - python >=3.14,<3.15.0a0 + - python_abi 3.14.* *_cp314 + license: Apache-2.0 + license_family: APACHE + purls: + - pkg:pypi/cython?source=hash-mapping + run_exports: {} + size: 3818345 + timestamp: 1786935119541 +- conda: https://conda.anaconda.org/conda-forge/linux-64/dav1d-1.2.1-hd590300_0.conda + sha256: 22053a5842ca8ee1cf8e1a817138cdb5e647eb2c46979f84153f6ad7bde73020 + md5: 418c6ca5929a611cbd69204907a83995 + depends: + - libgcc-ng >=12 + license: BSD-2-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - dav1d >=1.2.1,<1.2.2.0a0 + size: 760229 + timestamp: 1685695754230 +- conda: https://conda.anaconda.org/conda-forge/linux-64/dbus-1.16.2-h24cb091_1.conda + sha256: 8bb557af1b2b7983cf56292336a1a1853f26555d9c6cecf1e5b2b96838c9da87 + md5: ce96f2f470d39bd96ce03945af92e280 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libstdcxx >=14 + - libzlib >=1.3.1,<2.0a0 + - libglib >=2.86.2,<3.0a0 + - libexpat >=2.7.3,<3.0a0 + license: AFL-2.1 OR GPL-2.0-or-later + purls: [] + run_exports: + weak: + - dbus >=1.16.2,<2.0a0 + size: 447649 + timestamp: 1764536047944 +- conda: https://conda.anaconda.org/conda-forge/linux-64/debugpy-1.8.21-py312h8285ef7_0.conda + sha256: b8dbe25820064a099f315bbb8f45f5bac3fddb63e96af3cbf0c93a830733ef34 + md5: e6778419a1851f6e15820558abddfa04 + depends: + - python + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libstdcxx >=14 + - python_abi 3.12.* *_cp312 + license: MIT + license_family: MIT + purls: + - pkg:pypi/debugpy?source=hash-mapping + run_exports: {} + size: 2821960 + timestamp: 1780390159181 +- conda: https://conda.anaconda.org/conda-forge/linux-64/ffmpeg-9.0.1-gpl_hc45e1dd_900.conda + sha256: 3848776a096b92665b6419ea5bd7867a3bd5e512bf8a328ef1264e4609dcae4d + md5: 21be8a374cbd1a1c75c75a9179b604e8 + depends: + - __glibc >=2.17,<3.0.a0 + - alsa-lib >=1.2.16.1,<1.3.0a0 + - aom >=3.14.1,<3.15.0a0 + - bzip2 >=1.0.8,<2.0a0 + - dav1d >=1.2.1,<1.2.2.0a0 + - fontconfig >=2.18.3,<3.0a0 + - fonts-conda-ecosystem + - gmp >=6.3.0,<7.0a0 + - lame >=4.0,<4.1.0a0 + - libass >=0.17.5,<0.17.6.0a0 + - libexpat >=2.8.1,<3.0a0 + - libfreetype >=2.14.3 + - libfreetype6 >=2.14.3 + - libgcc >=15 + - libharfbuzz >=14.3.0 + - libiconv >=1.18,<2.0a0 + - libjxl >=0.12.0,<0.13.0a0 + - liblzma >=5.8.3,<6.0a0 + - libopenvino >=2026.3.0,<2026.3.1.0a0 + - libopenvino-auto-batch-plugin >=2026.3.0,<2026.3.1.0a0 + - libopenvino-auto-plugin >=2026.3.0,<2026.3.1.0a0 + - libopenvino-hetero-plugin >=2026.3.0,<2026.3.1.0a0 + - libopenvino-intel-cpu-plugin >=2026.3.0,<2026.3.1.0a0 + - libopenvino-intel-gpu-plugin >=2026.3.0,<2026.3.1.0a0 + - libopenvino-intel-npu-plugin >=2026.3.0,<2026.3.1.0a0 + - libopenvino-ir-frontend >=2026.3.0,<2026.3.1.0a0 + - libopenvino-onnx-frontend >=2026.3.0,<2026.3.1.0a0 + - libopenvino-paddle-frontend >=2026.3.0,<2026.3.1.0a0 + - libopenvino-pytorch-frontend >=2026.3.0,<2026.3.1.0a0 + - libopenvino-tensorflow-frontend >=2026.3.0,<2026.3.1.0a0 + - libopenvino-tensorflow-lite-frontend >=2026.3.0,<2026.3.1.0a0 + - libopus >=1.6.1,<2.0a0 + - libplacebo >=7.360.1,<7.361.0a0 + - librsvg >=2.62.3,<3.0a0 + - libstdcxx >=15 + - libva >=2.24.1,<3.0a0 + - libvorbis >=1.3.7,<1.4.0a0 + - libvpl >=2.16.0,<2.17.0a0 + - libvpx >=1.15.2,<1.16.0a0 + - libvulkan-loader >=1.4.357.0,<2.0a0 + - libwebp-base >=1.6.0,<2.0a0 + - libxcb >=1.17.0,<2.0a0 + - libxml2 + - libxml2-16 >=2.14.6 + - libzlib >=1.3.2,<2.0a0 + - openh264 >=2.6.0,<2.6.1.0a0 + - openssl >=3.5.7,<4.0a0 + - pulseaudio-client >=17.0,<17.1.0a0 + - sdl2 >=2.32.56,<3.0a0 + - svt-av1 >=4.2.0,<4.2.1.0a0 + - x264 >=1!164.3095,<1!165 + - x265 >=3.5,<3.6.0a0 + - xorg-libx11 >=1.8.13,<2.0a0 + constrains: + - __cuda >=12.8 + license: GPL-2.0-or-later + license_family: GPL + purls: [] + run_exports: + weak: + - ffmpeg >=9.0.1,<10.0a0 + size: 13764967 + timestamp: 1786704879493 +- conda: https://conda.anaconda.org/conda-forge/linux-64/fontconfig-2.18.3-h4db4eae_1.conda + sha256: 5a3eb10b18a97223ab06b3a7f0d7f56658db2f2800e2f2af95836fe3bf55ba63 + md5: 922776b528a470ab5afa81fd42abfa1d + depends: + - __glibc >=2.17,<3.0.a0 + - libexpat >=2.8.1,<3.0a0 + - libfreetype >=2.14.3 + - libfreetype6 >=2.14.3 + - libgcc >=15 + - libuuid >=2.42.2,<3.0a0 + - libzlib >=1.3.2,<2.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - fontconfig >=2.18.3,<3.0a0 + - fonts-conda-ecosystem + size: 296288 + timestamp: 1786667377340 +- conda: https://conda.anaconda.org/conda-forge/linux-64/freetype-2.14.3-ha770c72_2.conda + sha256: 612a8e0c1a6ecae23da54d81ef395f6ebb5c8e4468ec2611593ebce75876a4e0 + md5: 2d0ea23b23603e07ca47f23f949f67b6 + depends: + - libfreetype 2.14.3 ha770c72_2 + - libfreetype6 2.14.3 h5e6c136_2 + license: GPL-2.0-only OR FTL + purls: [] + run_exports: + weak: + - libfreetype >=2.14.3 + - libfreetype6 >=2.14.3 + size: 175239 + timestamp: 1786641011029 +- conda: https://conda.anaconda.org/conda-forge/linux-64/fribidi-1.0.16-hb03c661_1.conda + sha256: 4846a3ca0402f3fe33ad84ed50ab213c6aafde4a0faef3c5002f6bf753e21671 + md5: 1cd10eda5692519d01bb20e086e214c9 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + license: LGPL-2.1-or-later + purls: [] + run_exports: + weak: + - fribidi >=1.0.16,<2.0a0 + size: 61782 + timestamp: 1785912528684 +- conda: https://conda.anaconda.org/conda-forge/linux-64/gcc-16.1.0-hc6a0c74_2.conda + sha256: 28d90e9cdbcd419c8920b1aa5a5c0123692cfc0c66d1aba440bef723e08d234f + md5: 81548459a06e0742193e46908b2dfd7f + depends: + - conda-gcc-specs + - gcc_impl_linux-64 16.1.0 hceef32b_2 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: {} + size: 29266 + timestamp: 1787165672919 +- conda: https://conda.anaconda.org/conda-forge/linux-64/gcc_impl_linux-64-16.1.0-hceef32b_2.conda + sha256: 13de2dde37ff5271325fd00872a7c754b12d9e21f879093ed32b916ac4edba2a + md5: 3ab6cd4599e8ba71760ac99ec2791358 + depends: + - binutils_impl_linux-64 >=2.46.1 + - libgcc >=16.1.0 + - libgcc-devel_linux-64 16.1.0 h59071f9_102 + - libgomp >=16.1.0 + - libsanitizer 16.1.0 hf2715c6_2 + - libstdcxx >=16.1.0 + - libstdcxx-devel_linux-64 16.1.0 h41cdd0d_102 + - sysroot_linux-64 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: {} + size: 85033227 + timestamp: 1787165439877 +- conda: https://conda.anaconda.org/conda-forge/linux-64/gcc_linux-64-16.1.0-h5fd2508_1.conda + sha256: c5dbb64ba518cad32636d4eba8ab93452468de5b35449e68a4596a232d9b1ce1 + md5: 1b100ff2d40abfb288564b4d541e5651 + depends: + - gcc_impl_linux-64 16.1.0.* + - binutils_linux-64 + - sysroot_linux-64 + license: BSD-3-Clause + license_family: BSD + run_exports: + strong: + - libgcc >=16 + size: 29776 + timestamp: 1787166205890 +- conda: https://conda.anaconda.org/conda-forge/linux-64/gdk-pixbuf-2.44.8-h68053f1_0.conda + sha256: 4345423572cb80f13acbe52987a880576046a0b42c4e22e3a85e0198ee02aab0 + md5: 10dab6a745f32ceeac6c9e00d9979797 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=15 + - libglib >=2.88.3,<3.0a0 + - libjpeg-turbo >=3.2.0,<4.0a0 + - liblzma >=5.8.3,<6.0a0 + - libpng >=1.6.58,<1.7.0a0 + - libtiff >=4.7.2,<4.8.0a0 + license: LGPL-2.1-or-later + license_family: LGPL + purls: [] + run_exports: + weak: + - gdk-pixbuf >=2.44.8,<3.0a0 + size: 579757 + timestamp: 1786715266831 +- conda: https://conda.anaconda.org/conda-forge/linux-64/glslang-16.5.0-h718be3e_1.conda + sha256: b213106181aa7bb52e202ddaef411f106a2e9d641f1ee618fd7ce9e30b265f9b + md5: 3e8c7b2e4ddda1d61b8b3afa01be7d97 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libstdcxx >=14 + - spirv-tools >=2026,<2027.0a0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - glslang >=16,<17.0a0 + size: 1395808 + timestamp: 1785879900020 +- conda: https://conda.anaconda.org/conda-forge/linux-64/gmp-6.3.0-hfd2156b_3.conda + sha256: f36c336efc874f346a53a9011f67e997f9faac505562cc18c13b6d399cfe61c7 + md5: 576e32739f323438bf69ab006c21be7b + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libstdcxx >=14 + license: GPL-2.0-or-later OR LGPL-3.0-or-later + purls: [] + run_exports: + weak: + - gmp >=6.3.0,<7.0a0 + size: 493498 + timestamp: 1786629164954 +- conda: https://conda.anaconda.org/conda-forge/linux-64/graphite2-1.3.15-h54a6638_1.conda + sha256: 7fa3b6a9c081fa3e545573152a788d061a0a0ba57df7251cc0f4f75225fc93e7 + md5: f9fe2984587fa8235a6af6004760cd18 + depends: + - __glibc >=2.17,<3.0.a0 + - libstdcxx >=14 + - libgcc >=14 + license: LGPL-2.0-or-later + license_family: LGPL + purls: [] + run_exports: + weak: + - graphite2 >=1.3.15,<2.0a0 + size: 102835 + timestamp: 1786118485753 +- conda: https://conda.anaconda.org/conda-forge/linux-64/greenlet-3.5.5-py312h8285ef7_0.conda + sha256: dd501d5a23203ce6d770044270c46e132973c7f8aa515a6dd097a11bb2e5a800 + md5: ddf5a875fe09a244a1f64329272bdc32 + depends: + - python + - libstdcxx >=14 + - libgcc >=14 + - __glibc >=2.17,<3.0.a0 + - python_abi 3.12.* *_cp312 + license: MIT + license_family: MIT + purls: + - pkg:pypi/greenlet?source=hash-mapping + run_exports: {} + size: 275998 + timestamp: 1786384044080 +- conda: https://conda.anaconda.org/conda-forge/linux-64/gxx-16.1.0-hc6a0c74_2.conda + sha256: c892dfe5d8206dc4a28a6dbe6320de27c47aaf332dce425179e3f9c8583508d8 + md5: 39c0beea3d46e6d468d5d18cffd5ffb7 + depends: + - conda-gcc-specs + - gcc 16.1.0 hc6a0c74_2 + - gxx_impl_linux-64 16.1.0 he33a5f8_2 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: {} + size: 28729 + timestamp: 1787165769807 +- conda: https://conda.anaconda.org/conda-forge/linux-64/gxx_impl_linux-64-16.1.0-he33a5f8_2.conda + sha256: 23fcc35dadc706af11c55a0f49484ed0a4f65eeb893b19d1a3666cabc750832c + md5: e7c7ddb0a745833c1b9273612fabcdba + depends: + - gcc_impl_linux-64 16.1.0 hceef32b_2 + - libstdcxx-devel_linux-64 16.1.0 h41cdd0d_102 + - sysroot_linux-64 + - tzdata + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: {} + size: 17515260 + timestamp: 1787165632737 +- conda: https://conda.anaconda.org/conda-forge/linux-64/gxx_linux-64-16.1.0-h63736ef_1.conda + sha256: 30cff74a8875ffd2affa658715bac10868918889c5e58c0696a5135ca7445d7e + md5: 074d51fab78a50c4568d0d3571fa4494 + depends: + - gxx_impl_linux-64 16.1.0.* + - gcc_linux-64 ==16.1.0 h5fd2508_1 + - binutils_linux-64 + - sysroot_linux-64 + license: BSD-3-Clause + license_family: BSD + run_exports: + strong: + - libstdcxx >=16 + - libgcc >=16 + size: 28164 + timestamp: 1787166205890 +- conda: https://conda.anaconda.org/conda-forge/linux-64/harfbuzz-14.3.1-ha770c72_0.conda + sha256: d2b22411323270acf8199070fe3377d72f36830f467f09fb2f5bcd4dc3ef77dd + md5: 15971d7910faa28aa5b0b2560b9a3bab + depends: + - libharfbuzz-devel 14.3.1 h23af247_0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libharfbuzz >=14.3.1 + size: 11076 + timestamp: 1786970900409 +- conda: https://conda.anaconda.org/conda-forge/linux-64/icu-78.3-py310h44b86e0_2.conda + sha256: 9f07834f0c546ab14d885ce0366285f61f44e326c0edd1fc63b8294e113ae432 + md5: 72a381cbad04f24b1c2a43ef707f45b4 + depends: + - __glibc >=2.17,<3.0.a0 + - libstdcxx >=14 + - libgcc >=14 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - icu >=78.3,<79.0a0 + size: 14459115 + timestamp: 1786545741408 +- conda: https://conda.anaconda.org/conda-forge/linux-64/intel-gmmlib-22.10.0-hb700be7_0.conda + sha256: bc231d69eb6663db0e09738fb916c5e5507147cf1ac60f364f964004e0b29bab + md5: 10909406c1b0e4b57f9f4f0eb0999af8 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libstdcxx >=14 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - intel-gmmlib >=22.10.0,<23.0a0 + size: 1013714 + timestamp: 1774422680665 +- conda: https://conda.anaconda.org/conda-forge/linux-64/intel-media-driver-26.1.6-hecca717_0.conda + sha256: 7cbd7fda22db70c64af64c9173434a4ede58e4f220bda52a044e469aa94c65cb + md5: aaf7c3db8c7c4533deb5449d3ba1c51f + depends: + - __glibc >=2.17,<3.0.a0 + - intel-gmmlib >=22.10.0,<23.0a0 + - libgcc >=14 + - libstdcxx >=14 + - libva >=2.23.0,<3.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - intel-media-driver >=26.1.6,<26.2.0a0 + size: 8782375 + timestamp: 1776080148587 +- conda: https://conda.anaconda.org/conda-forge/linux-64/keyutils-1.6.3-h7cc23a3_1.conda + sha256: dd053c96dcb0dcfd59422aefea9d2fe937a190167f34fba7893ec1e10a7e8963 + md5: ba55d1b89fd7775e67de8291029b4059 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=15 + license: LGPL-2.1-or-later + purls: [] + run_exports: + weak: + - keyutils >=1.6.3,<2.0a0 + size: 135295 + timestamp: 1786739238128 +- conda: https://conda.anaconda.org/conda-forge/linux-64/krb5-1.22.2-hbc21106_2.conda + sha256: 2a5c38c85e63df84c4e69ee71439841ce570d259ae3060627bb9a49a938d66f4 + md5: 53318d715316929a574f83591308b1f8 + depends: + - __glibc >=2.17,<3.0.a0 + - keyutils >=1.6.3,<2.0a0 + - libedit >=3.1.20250104,<3.2.0a0 + - libedit >=3.1.20250104,<4.0a0 + - libgcc >=15 + - libstdcxx >=15 + - openssl >=3.5.7,<4.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - krb5 >=1.22.2,<1.23.0a0 + size: 1394333 + timestamp: 1786762112514 +- conda: https://conda.anaconda.org/conda-forge/linux-64/lame-4.0-h770b6ad_1.conda + sha256: 560a8561c5cc1f3c05b1e91d93436eb14fe55beb29c27e02623b42960d64d91f + md5: 5aecb65b6ecfee6f878e6789a8a779de + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - mpg123 >=1.33.7,<1.34.0a0 + license: LGPL-2.0-only + license_family: LGPL + purls: [] + run_exports: + weak: + - lame >=4.0,<4.1.0a0 + size: 304210 + timestamp: 1786292506120 +- conda: https://conda.anaconda.org/conda-forge/linux-64/lcms2-2.19.1-h0c24ade_1.conda + sha256: 112b5b9462572d970f4abd2912f76a25ee7db158b1e7260163d91dd8a630db84 + md5: 8b3ce45e929cd8e8e5f4d18586b56d8b + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libjpeg-turbo >=3.1.4.1,<4.0a0 + - libtiff >=4.7.1,<4.8.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - lcms2 >=2.19.1,<3.0a0 + size: 251971 + timestamp: 1780211695895 +- conda: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.46.1-default_hbd61a6d_102.conda + sha256: 27d83f1188cd19bcb7754a078b3fa7f4cfb8527f8eb2fde54dd01fc529d1adec + md5: 449500f2c089da11c40f5c21312e3e07 + depends: + - __glibc >=2.17,<3.0.a0 + - zstd >=1.5.7,<1.6.0a0 + constrains: + - binutils_impl_linux-64 2.46.1 + license: GPL-3.0-only + license_family: GPL + purls: [] + run_exports: {} + size: 745303 + timestamp: 1784214507189 +- conda: https://conda.anaconda.org/conda-forge/linux-64/lerc-4.2.0-hdb68285_0.conda + sha256: bf9fdebf55d8bc99d83531cdffda00703f4dc5f93a1a956768c147362c72feda + md5: fb9d356b1a57d6d54768be7ebd5fce09 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libstdcxx >=14 + license: Apache-2.0 + license_family: Apache + purls: [] + run_exports: + weak: + - lerc >=4.2.0,<5.0a0 + size: 271158 + timestamp: 1785036167977 +- conda: https://conda.anaconda.org/conda-forge/linux-64/level-zero-1.29.0-hb700be7_0.conda + sha256: d87cfc5eaa08eefff97d891ecb49faa958fcfc32a425767796269c4100d4e516 + md5: f3c3bc77c96af553f761af0e78bc8d9d + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libstdcxx >=14 + license: MIT + license_family: MIT + purls: [] + run_exports: {} + size: 875773 + timestamp: 1780142086148 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libabseil-20260526.0-cxx17_h7b12aa8_1.conda + sha256: 32933de2d4fa6e6ffd949052815b49cb65a0649ad70007155c533ab97ea8cefd + md5: c4393db381bffa0a83a8d9e47b238106 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libstdcxx >=14 + constrains: + - abseil-cpp =20260526.0 + - libabseil-static =20260526.0=cxx17* + license: Apache-2.0 + license_family: Apache + purls: [] + run_exports: + weak: + - libabseil >=20260526.0,<20260527.0a0 + - libabseil =*=cxx17* + size: 1437712 + timestamp: 1780524559298 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libass-0.17.5-h434b012_0.conda + sha256: 24d4b59a0267e1c159c3af82df106b42faeefccceba3c489044c93abf113c503 + md5: c1cb4d6e8a6e3f724740dee5346fc8b4 + depends: + - libgcc >=14 + - __glibc >=2.17,<3.0.a0 + - libfreetype >=2.14.3 + - libfreetype6 >=2.14.3 + - libzlib >=1.3.2,<2.0a0 + - fribidi >=1.0.16,<2.0a0 + - fontconfig >=2.18.1,<3.0a0 + - fonts-conda-ecosystem + - libiconv >=1.18,<2.0a0 + - harfbuzz >=14.2.1 + license: ISC + purls: [] + run_exports: + weak: + - libass >=0.17.5,<0.17.6.0a0 + size: 154964 + timestamp: 1782298715788 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libblas-3.11.0-9_h4a7cf45_openblas.conda + build_number: 9 + sha256: 39c7b3c5427b435c9c059ede9da61d46d42574e5b846ad37fdc3af4a5eab1e48 + md5: f5c4b041925dea221dc4bad2e50569d9 + depends: + - libopenblas >=0.3.34,<0.3.35.0a0 + - libopenblas >=0.3.34,<1.0a0 + constrains: + - blas 2.309 openblas + - libcblas 3.11.0 9*_openblas + - liblapack 3.11.0 9*_openblas + - liblapacke 3.11.0 9*_openblas + - mkl <2027 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libblas >=3.11.0,<4.0a0 + size: 18033 + timestamp: 1786059035239 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libbrotlicommon-1.2.0-h39a168f_3.conda + sha256: e5864f257f839ffc27d681659bac95901f524f602b9121e5dcc5e2df18437f2d + md5: 7a2499a177753582fb7ae7e9dc4a908a + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=15 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libbrotlicommon >=1.2.0,<1.3.0a0 + size: 80265 + timestamp: 1786622773969 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libbrotlidec-1.2.0-ha411449_3.conda + sha256: dad31b6d104973deb89710929a35651033aad692d4e7793cdb5b786a9bd54678 + md5: 6ab3315dc56618d652c1da42a648a129 + depends: + - __glibc >=2.17,<3.0.a0 + - libbrotlicommon 1.2.0 h39a168f_3 + - libgcc >=15 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libbrotlidec >=1.2.0,<1.3.0a0 + size: 34828 + timestamp: 1786622783405 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libbrotlienc-1.2.0-h018ffa1_3.conda + sha256: d37124d0f51816e7d5e3a94bfc9ed3d6174d077f9b4f832d20c5a08b52bebf1f + md5: 2ac965638d4c6b2b38383bb1aebaf543 + depends: + - __glibc >=2.17,<3.0.a0 + - libbrotlicommon 1.2.0 h39a168f_3 + - libgcc >=15 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libbrotlienc >=1.2.0,<1.3.0a0 + size: 298639 + timestamp: 1786622792145 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libcap-2.78-h084b8d7_1.conda + sha256: 8cb25174d6b6fac95d31e86cfe41faffc8ee9dacbf2bfd22e6c23377e8f338c1 + md5: 5db514adf5f843126ff846d1510f22a4 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libcap >=2.78,<2.79.0a0 + size: 124306 + timestamp: 1786025967663 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libcblas-3.11.0-9_h0358290_openblas.conda + build_number: 9 + sha256: 4c532a70ea9aeff2fa1aabaa4828ebc00c2ed12b22aa8ba19da5302b882fc82b + md5: 092c5649f3727af436ab0f67f48c3811 + depends: + - libblas 3.11.0 9_h4a7cf45_openblas + constrains: + - blas 2.309 openblas + - liblapack 3.11.0 9*_openblas + - liblapacke 3.11.0 9*_openblas + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libcblas >=3.11.0,<4.0a0 + size: 17998 + timestamp: 1786059041397 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.14.1.1-hbc026e6_1.conda + sha256: 5fa43e8a8d335fc0c3a6aeb2e7b0debc7d8495b8a60a56ac30f23b0e852ab74a + md5: cab1818eada3952ed09c8dcbb7c26af7 + depends: + - __glibc >=2.17,<3.0.a0 + - cuda-version >=12.9,<12.10.0a0 + - libgcc >=14 + - libstdcxx >=14 + - rdma-core >=59.0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 969845 + timestamp: 1761098818759 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-dev-1.14.1.1-hecca717_1.conda + sha256: 3a7c726419017319df149ff67ea3efae37d668ecfc1aa2ac3273b21c4c76d68b + md5: 74a93e4c8fd24d535abc546c6fee2155 + depends: + - __glibc >=2.17,<3.0.a0 + - cuda-version >=12.9,<12.10.0a0 + - libcufile 1.14.1.1 hbc026e6_1 + - libgcc >=14 + - libstdcxx >=14 + constrains: + - libcufile-static >=1.14.1.1 + license: LicenseRef-NVIDIA-End-User-License-Agreement + run_exports: + weak: + - libcufile >=1.14.1.1,<2.0a0 + size: 36377 + timestamp: 1761098841141 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libdeflate-1.25-hd45a770_1.conda + sha256: 82e134c8a08b1eed9a2ed8ab578b89aa1730dcde3dea8dd87645ed0637878e54 + md5: 40f9b31aa9cf007789867df0decd0492 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libdeflate >=1.25,<1.26.0a0 + size: 73710 + timestamp: 1785908694612 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libdovi-3.4.0-ha23c83e_0.conda + sha256: cea351b57c30d70e288b53ea69a1dcf6b750992f5d7717a7fc364072fa1209e7 + md5: 4377d220f09344452b227d699cacce4f + depends: + - libgcc >=14 + - __glibc >=2.17,<3.0.a0 + constrains: + - __glibc >=2.17 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libdovi >=3.4.0,<4.0a0 + size: 404998 + timestamp: 1784281566921 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libdrm-2.4.129-h7cc23a3_0.conda + sha256: ea46b0ca0fa16af1f8b329b740e6cd8b4577c5378fa8717b28a885f70668633d + md5: 64cc91512b6278c315349dc13c53f680 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=15 + - libpciaccess >=0.19,<0.20.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libdrm >=2.4.129,<2.5.0a0 + size: 313461 + timestamp: 1786684701973 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libedit-3.1.20250104-pl5321h373387f_1.conda + sha256: 6473eb8caf2aae830f37caa93db9b26dddf7ac84b63229e8bf7fc0e5c3ab95b0 + md5: 50708d3b951d0f8e2d7f2df5b5edc040 + depends: + - ncurses + - libgcc >=14 + - __glibc >=2.17,<3.0.a0 + - ncurses >=6.6,<7.0a0 + license: BSD-2-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libedit >=3.1.20250104,<3.2.0a0 + size: 135098 + timestamp: 1786616658086 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libegl-1.7.0-ha4b6fd6_3.conda + sha256: 9a25ea93e8272785405a21d30f84e620befb1d545f6dfaae18f06103b5df0443 + md5: 75e9f795be506c96dd43cb09c7c8d557 + depends: + - __glibc >=2.17,<3.0.a0 + - libglvnd 1.7.0 ha4b6fd6_3 + license: LicenseRef-libglvnd + purls: [] + run_exports: {} + size: 46500 + timestamp: 1779728188901 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.8.1-hecca717_1.conda + sha256: 16feffd9ddbbe5b718515d38ee376c685ba95491cd901244e24671d20b952a77 + md5: b24d3c612f71e7aa74158d92106318b2 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + constrains: + - expat 2.8.1.* + license: MIT + license_family: MIT + purls: [] + run_exports: {} + size: 77856 + timestamp: 1781203599810 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.9.0-hd2095e1_0.conda + sha256: 7b930a8b6bc6553cb754b4977a11f9c862c719a652fc2d128d89270992ce8beb + md5: 317ecabe4a58b3068c7958dc5eb89e43 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=15 + constrains: + - expat 2.9.0.* + license: MIT + license_family: MIT + purls: [] + run_exports: {} + size: 78894 + timestamp: 1793054221966 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.7.0-h3435931_0.conda + sha256: ac38603008bf1e99b8ed379b1a656a67a70e2841f2b6a069c630cdf6316012d2 + md5: 0abe40a9880086ca4d2e5daf09dceff9 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libffi >=3.7.0,<3.8.0a0 + size: 67576 + timestamp: 1783520858222 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libflac-1.5.0-he200343_1.conda + sha256: e755e234236bdda3d265ae82e5b0581d259a9279e3e5b31d745dc43251ad64fb + md5: 47595b9d53054907a00d95e4d47af1d6 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libiconv >=1.18,<2.0a0 + - libogg >=1.3.5,<1.4.0a0 + - libstdcxx >=14 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libflac >=1.5.0,<1.6.0a0 + size: 424563 + timestamp: 1764526740626 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libfreetype-2.14.3-ha770c72_2.conda + sha256: fb12ecb46c30d18d928c0e8fc346ab13b5f6fc8a9cacae4f2f4bb188782586f5 + md5: f8054e759d0ddddaf34a5c8fedc900a1 + depends: + - libfreetype6 >=2.14.3 + license: GPL-2.0-only OR FTL + purls: [] + run_exports: {} + size: 8407 + timestamp: 1786641007099 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libfreetype6-2.14.3-h5e6c136_2.conda + sha256: ec607dd5445dd17ff6bf8b7fe6832e5504c226dd91d3aaea7ba83569808b0ce4 + md5: b72a266a9317036fd0464cb98b027cd0 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=15 + - libpng >=1.6.58,<1.7.0a0 + - libzlib >=1.3.2,<2.0a0 + constrains: + - freetype >=2.14.3 + license: GPL-2.0-only OR FTL + purls: [] + run_exports: {} + size: 387671 + timestamp: 1786641006460 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libgcc-16.1.0-ha9f2e26_2.conda + sha256: 4b733b68027a638fd24a38aaed1ebb05e055bef694970fab745b1c7678ca16f1 + md5: b230041fd4acdd1127ef5870174310ef + depends: + - __glibc >=2.17,<3.0.a0 + - _openmp_mutex >=4.5 + constrains: + - libgcc-ng ==16.1.0=*_2 + - libgomp 16.1.0 he0feb66_2 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: {} + size: 1056637 + timestamp: 1787165351282 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libgcc-ng-16.1.0-h69a702a_2.conda + sha256: 23bfa3ade2de6e0b9af4a04cacd0d4d526c80a16686f264498475339f01d17d3 + md5: be5ca38a4a2ddfda85ad7aae7d67238a + depends: + - libgcc 16.1.0 ha9f2e26_2 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: + strong: + - libgcc + size: 28293 + timestamp: 1787165356218 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libgfortran-16.1.0-h69a702a_2.conda + sha256: f608de89b2579d0e3ffa748476ad50e26ef3f9adf9ebbb619db679663cbf88ac + md5: 85c8f13b26afe335c9df928995f56683 + depends: + - libgfortran5 16.1.0 h79bb938_2 + constrains: + - libgfortran-ng ==16.1.0=*_2 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: {} + size: 28257 + timestamp: 1787165383846 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libgfortran5-16.1.0-h79bb938_2.conda + sha256: 627b865f5ba4da4d5508e90453d9419f28ed8a72f8577086681b589cf9579fab + md5: 60fe1556f159aad832acef6bf8a5102d + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=16.1.0 + constrains: + - libgfortran 16.1.0 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: {} + size: 2538899 + timestamp: 1787165364214 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libgl-1.7.0-ha4b6fd6_3.conda + sha256: ec353b3076ed8e357ed961d0e9ff6997491cade0e603de5bd18a2e301ac78ebd + md5: f25206d7322c0e9648e8b83694d143ab + depends: + - __glibc >=2.17,<3.0.a0 + - libglvnd 1.7.0 ha4b6fd6_3 + - libglx 1.7.0 ha4b6fd6_3 + license: LicenseRef-libglvnd + purls: [] + run_exports: {} + size: 133469 + timestamp: 1779728207669 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libglib-2.88.3-h45c3219_1.conda + sha256: 4499458124bcf0bd45e8bd17576f9f007cb1373cb3b01659105443f522bab45c + md5: 533cb021c1bfeba9f720e669cd863fdf + depends: + - libgcc >=14 + - __glibc >=2.17,<3.0.a0 + - pcre2 >=10.47,<10.48.0a0 + - libzlib >=1.3.2,<2.0a0 + - libiconv >=1.18,<2.0a0 + - libffi >=3.7.0,<3.8.0a0 + constrains: + - glib >2.66 + license: LGPL-2.1-or-later + purls: [] + run_exports: + weak: + - libglib >=2.88.3,<3.0a0 + size: 4755172 + timestamp: 1786457663614 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libglvnd-1.7.0-ha4b6fd6_3.conda + sha256: e019ebe4e3f5cdf23e2f5e58ddf7ade27988c53820115b17b98f218ebcc87748 + md5: eb83f3f8cecc3e9bff9e250817fc69b6 + depends: + - __glibc >=2.17,<3.0.a0 + license: LicenseRef-libglvnd + purls: [] + run_exports: {} + size: 133586 + timestamp: 1779728183422 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libglx-1.7.0-ha4b6fd6_3.conda + sha256: 2f74713c9ca408ea84e88a30a9028153e7b553e8bb42e06139eac9a753c27da9 + md5: ec3c4350aa0261bf7f87b8ca15c8e80e + depends: + - __glibc >=2.17,<3.0.a0 + - libglvnd 1.7.0 ha4b6fd6_3 + - xorg-libx11 >=1.8.13,<2.0a0 + license: LicenseRef-libglvnd + purls: [] + run_exports: {} + size: 76586 + timestamp: 1779728199059 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libgomp-16.1.0-he0feb66_2.conda + sha256: 7d4d1891d5fe5d75a73dd7268e8f2d7c11b7b637dea901a429f8056511960267 + md5: 583bc8fce86ce542fa9a25c5b4d71e80 + depends: + - __glibc >=2.17,<3.0.a0 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: + strong: + - _openmp_mutex >=4.5 + size: 640468 + timestamp: 1787165281830 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libharfbuzz-14.3.1-h23af247_0.conda + sha256: a4eac5a21b84e0fc753b72de01781f634fc9ab70fd32a28d6a40a19700c9188a + md5: 29709e61096dd490fff9e833e4c869f6 + depends: + - __glibc >=2.17,<3.0.a0 + - cairo >=1.18.4,<2.0a0 + - graphite2 >=1.3.15,<2.0a0 + - icu >=78.3,<79.0a0 + - libfreetype >=2.14.3 + - libfreetype6 >=2.14.3 + - libgcc >=15 + - libglib >=2.88.3,<3.0a0 + - libpng >=1.6.58,<1.7.0a0 + - libstdcxx >=15 + - libzlib >=1.3.2,<2.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: {} + size: 1353639 + timestamp: 1786970872936 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libharfbuzz-devel-14.3.1-h23af247_0.conda + sha256: 9d9d620141102dcb580d8f42d1a6c9e7e691a8dfa0284783e712679723067d15 + md5: e0f17ce01589ffa7d773be573e97b36c + depends: + - __glibc >=2.17,<3.0.a0 + - cairo >=1.18.4,<2.0a0 + - freetype + - graphite2 >=1.3.15,<2.0a0 + - icu >=78.3,<79.0a0 + - libfreetype >=2.14.3 + - libfreetype6 >=2.14.3 + - libgcc >=15 + - libglib >=2.88.3,<3.0a0 + - libharfbuzz 14.3.1 h23af247_0 + - libpng >=1.6.58,<1.7.0a0 + - libstdcxx >=15 + - libzlib >=1.3.2,<2.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libharfbuzz >=14.3.1 + size: 2114382 + timestamp: 1786970892473 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libhwloc-2.13.0-default_he001693_1000.conda + sha256: 5041d295813dfb84652557839825880aae296222ab725972285c5abe3b6e4288 + md5: c197985b58bc813d26b42881f0021c82 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libstdcxx >=14 + - libxml2 + - libxml2-16 >=2.14.6 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libhwloc >=2.13.0,<2.13.1.0a0 + size: 2436378 + timestamp: 1770953868164 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libhwy-1.4.0-h3a9caae_0.conda + sha256: 02ab5e50c3921e88ad4dd0bc8f3fe282d2d7d03a20203d3281954b94641deb3d + md5: 9544a7225c8366ea2c397aad5fb53470 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libstdcxx >=14 + license: Apache-2.0 OR BSD-3-Clause + purls: [] + run_exports: + weak: + - libhwy >=1.4.0,<1.5.0a0 + size: 1431901 + timestamp: 1784325535334 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libiconv-1.18-h0cb94f2_3.conda + sha256: f943117edb9cd4d9c61cc972eee5a34291dc55ea7a6e9e38da104995841cbcb6 + md5: f92233bf33e24a25668bb2119e2c51f9 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=15 + license: LGPL-2.1-only + purls: [] + run_exports: + weak: + - libiconv >=1.18,<2.0a0 + size: 789471 + timestamp: 1787033836207 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libjpeg-turbo-3.2.0-hb03c661_1.conda + sha256: bba8538e6538ed58a8479b332337b96986561f975d06cfa2039a016c2d246ee4 + md5: 898d1c9793eaa52efc4727bd84d2e39a + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + constrains: + - jpeg <0.0.0a + license: IJG AND BSD-3-Clause AND Zlib + purls: [] + run_exports: + weak: + - libjpeg-turbo >=3.2.0,<4.0a0 + size: 650434 + timestamp: 1785896381946 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libjxl-0.12.0-heb2dce7_2.conda + sha256: 965e59ea776344e93a416f7e0ba309810470a61c0e0c65f1eb90be0e808d7e9c + md5: 485788d339785bac87fe86315b4a0627 + depends: + - libgcc >=15 + - __glibc >=2.17,<3.0.a0 + - libstdcxx >=15 + - libhwy >=1.4.0,<1.5.0a0 + - libbrotlienc >=1.2.0,<1.3.0a0 + - libbrotlidec >=1.2.0,<1.3.0a0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libjxl >=0.12.0,<0.13.0a0 + size: 1886013 + timestamp: 1786691380980 +- conda: https://conda.anaconda.org/conda-forge/linux-64/liblapack-3.11.0-9_h47877c9_openblas.conda + build_number: 9 + sha256: ea989e2dabd21d296a5a4ec515e695645aefcdf778ffdb5eeea515421d243ab5 + md5: e51473c2b7e1f9cb61daafccfd912abf + depends: + - libblas 3.11.0 9_h4a7cf45_openblas + constrains: + - blas 2.309 openblas + - libcblas 3.11.0 9*_openblas + - liblapacke 3.11.0 9*_openblas + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - liblapack >=3.11.0,<3.12.0a0 + size: 18021 + timestamp: 1786059046733 +- conda: https://conda.anaconda.org/conda-forge/linux-64/liblzma-5.8.3-hb03c661_1.conda + sha256: 9787df8c22a59c9a70d3e5a10db9ad663485e75e9ccc3f09bd092cb7b95e0dab + md5: 1390b7c5ac0b1d8e447bc5efa6d3c8c2 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + constrains: + - xz 5.8.3.* + license: 0BSD + purls: [] + run_exports: + weak: + - liblzma >=5.8.3,<6.0a0 + size: 112995 + timestamp: 1786348617826 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libmpdec-4.0.0-hb03c661_2.conda + sha256: 46820b4a835e175940ae20bec00fdddaff804cda27a1408ab1b95e77a2196437 + md5: fcfed1dc5053eb1901b66e7b1fc32588 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + license: BSD-2-Clause + license_family: BSD + purls: [] + run_exports: {} + size: 92759 + timestamp: 1786650399772 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libnl-3.11.0-hb03c661_1.conda + sha256: d0f2fd77aad83641c11bc3686bac677e99869f1d62b99e5064c9d99af8bfde6a + md5: eeaf53e3c9593d63ffee5ad97182858e + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + license: LGPL-2.1-or-later + license_family: LGPL + purls: [] + run_exports: + weak: + - libnl >=3.11.0,<4.0a0 + size: 735004 + timestamp: 1787038268022 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libnsl-2.0.1-hb9d3cd8_1.conda + sha256: 927fe72b054277cde6cb82597d0fcf6baf127dcbce2e0a9d8925a68f1265eef5 + md5: d864d34357c3b65a4b731f78c0801dc4 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 + license: LGPL-2.1-only + license_family: GPL + purls: [] + run_exports: + weak: + - libnsl >=2.0.1,<2.1.0a0 + size: 33731 + timestamp: 1750274110928 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libnvfatbin-12.9.82-hecca717_2.conda + sha256: e044659e3a7e0a3168951fe8c4d7ad0e3b243211037d326d4e62540c75ce010a + md5: 1812ac6d93b3d1079881ccac0615e273 + depends: + - __glibc >=2.17,<3.0.a0 + - cuda-version >=12,<12.10.0a0 + - libgcc >=14 + - libstdcxx >=14 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 818431 + timestamp: 1782920268840 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libnvjitlink-12.9.86-hecca717_2.conda + sha256: 3b1c851f4fc42d347ce1c1606bdd195343a47f121e0fceb7a1f1e5aa1d497da9 + md5: 3461b0f2d5cbb7973d361f9e85241d98 + depends: + - __glibc >=2.17,<3.0.a0 + - cuda-version >=12,<12.10.0a0 + - libgcc >=14 + - libstdcxx >=14 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 30515495 + timestamp: 1760723776293 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libnvptxcompiler-dev-12.9.86-ha770c72_2.conda + sha256: 1e7a7b34f8639a5feb75ba864127059e4d83edfe1a516547f0dbb9941e7b8f8b + md5: 3fd926c321c6dbf386aa14bd8b125bfb + depends: + - cuda-version >=12.9,<12.10.0a0 + - libnvptxcompiler-dev_linux-64 12.9.86 ha770c72_2 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 27046 + timestamp: 1753975516342 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libogg-1.3.5-hd0c01bc_1.conda + sha256: ffb066ddf2e76953f92e06677021c73c85536098f1c21fcd15360dbc859e22e4 + md5: 68e52064ed3897463c0e958ab5c8f91b + depends: + - libgcc >=13 + - __glibc >=2.17,<3.0.a0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libogg >=1.3.5,<1.4.0a0 + size: 218500 + timestamp: 1745825989535 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libopenblas-0.3.34-pthreads_h94d23a6_0.conda + sha256: 23392fc4f4e5ba230fcd1ef825878ba5ca7ee4f6259fac0cbb13299134b7bf7a + md5: c282d68f272927612462b5d626838ef1 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libgfortran + - libgfortran5 >=14.3.0 + constrains: + - openblas >=0.3.34,<0.3.35.0a0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libopenblas >=0.3.34,<1.0a0 + size: 5952629 + timestamp: 1784287497473 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-2026.3.0-hb2f3c86_0.conda + sha256: b52a974c4414aaf035ea9925e2f584d4a5b54194a7944978650a36c0153a8d9c + md5: 103554a12a2f6666aaaa360d30513911 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libstdcxx >=14 + - pugixml >=1.15,<1.16.0a0 + - tbb >=2023.0.0 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: + weak: + - libopenvino >=2026.3.0,<2026.3.1.0a0 + size: 6958517 + timestamp: 1786130942671 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-auto-batch-plugin-2026.3.0-h9f30d58_0.conda + sha256: d70333e5fb2cab7518ba7db2fab371a98670a1b74e7bd53b49e18f1d55e67e38 + md5: 9728955c5c968923cdaf79317837ded4 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libopenvino 2026.3.0 hb2f3c86_0 + - libstdcxx >=14 + - tbb >=2023.0.0 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: {} + size: 115265 + timestamp: 1786130964003 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-auto-plugin-2026.3.0-h9f30d58_0.conda + sha256: c9d1c80ec9b267cbbcbf234a358087ea42903f3bccdbbc7c663782943b4679ca + md5: 5fcbc9ef55adbffc1b804ae9c5f0e8d2 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libopenvino 2026.3.0 hb2f3c86_0 + - libstdcxx >=14 + - tbb >=2023.0.0 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: {} + size: 251255 + timestamp: 1786130975924 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-hetero-plugin-2026.3.0-hfeb6f35_0.conda + sha256: b0614ed14c8896c3c60d06522a40d5e4414024112fe88e6eab62afcbfb259a03 + md5: 00addda23f9daf34d787e8b445d81256 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libopenvino 2026.3.0 hb2f3c86_0 + - libstdcxx >=14 + - pugixml >=1.15,<1.16.0a0 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: {} + size: 224643 + timestamp: 1786130986082 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-intel-cpu-plugin-2026.3.0-hb2f3c86_0.conda + sha256: 2306149a9b5fbac3a7f4217c868c504cb1706691ef9f63c4d6b0661cd84e160c + md5: 7559b02ec79104bb3e60658310815b4e + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libopenvino 2026.3.0 hb2f3c86_0 + - libstdcxx >=14 + - pugixml >=1.15,<1.16.0a0 + - tbb >=2023.0.0 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: {} + size: 13897562 + timestamp: 1786130996462 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-intel-gpu-plugin-2026.3.0-hb2f3c86_0.conda + sha256: 1442f41ff6ae171aba788c6e3bf1b156759b9f239d06a974f723b56e8bcb067b + md5: e9fed808af5cab2c1cf79c4a1c5fc399 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libopenvino 2026.3.0 hb2f3c86_0 + - libstdcxx >=14 + - ocl-icd >=2.3.4,<3.0a0 + - pugixml >=1.15,<1.16.0a0 + - tbb >=2023.0.0 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: {} + size: 12124352 + timestamp: 1786131034750 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-intel-npu-plugin-2026.3.0-hb2f3c86_0.conda + sha256: 1634885934423c4ffbaee56d9699190adc67334eab92b370f9015e5fc1247e58 + md5: 2402c917805aa66fd8604fc0b7292ec7 + depends: + - __glibc >=2.17,<3.0.a0 + - level-zero >=1.29.0,<2.0a0 + - libgcc >=14 + - libopenvino 2026.3.0 hb2f3c86_0 + - libstdcxx >=14 + - pugixml >=1.15,<1.16.0a0 + - tbb >=2023.0.0 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: {} + size: 2802782 + timestamp: 1786131067457 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-ir-frontend-2026.3.0-hfeb6f35_0.conda + sha256: 4bca7d1b71182b1c95a82e77ad01402b261dac603acd9200f5b492e65bc8ca3d + md5: 2254de1e118bb39c876297b941c41d7b + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libopenvino 2026.3.0 hb2f3c86_0 + - libstdcxx >=14 + - pugixml >=1.15,<1.16.0a0 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: + weak: + - libopenvino-ir-frontend >=2026.3.0,<2026.3.1.0a0 + size: 205085 + timestamp: 1786131080935 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-onnx-frontend-2026.3.0-h6c33c14_0.conda + sha256: f07168ce6d25aa529458c5c548df0b0e8b4033c8093a22aed92ee818c2e06679 + md5: 5a81c93a4ef5fe765fdc72ea0bb8ee48 + depends: + - __glibc >=2.17,<3.0.a0 + - libabseil * cxx17* + - libabseil >=20260526.0,<20260527.0a0 + - libgcc >=14 + - libopenvino 2026.3.0 hb2f3c86_0 + - libprotobuf >=7.35.1,<7.35.2.0a0 + - libstdcxx >=14 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: + weak: + - libopenvino-onnx-frontend >=2026.3.0,<2026.3.1.0a0 + size: 2106186 + timestamp: 1786131093355 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-paddle-frontend-2026.3.0-h6c33c14_0.conda + sha256: 3f28b4438c3014c5b05d196cf4abbb7214dc5877b887100f7663eff722347713 + md5: 5ad8dacb488082db12c72422c3deba74 + depends: + - __glibc >=2.17,<3.0.a0 + - libabseil * cxx17* + - libabseil >=20260526.0,<20260527.0a0 + - libgcc >=14 + - libopenvino 2026.3.0 hb2f3c86_0 + - libprotobuf >=7.35.1,<7.35.2.0a0 + - libstdcxx >=14 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: + weak: + - libopenvino-paddle-frontend >=2026.3.0,<2026.3.1.0a0 + size: 690800 + timestamp: 1786131106085 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-pytorch-frontend-2026.3.0-h0542e35_0.conda + sha256: 9ae24b2df1aeda9aedfcc6ba08fcf1ba34b169481ff874288310282ce5659d07 + md5: 7e0fd6af38383ab7bd71dc6af22355f3 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libopenvino 2026.3.0 hb2f3c86_0 + - libstdcxx >=14 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: + weak: + - libopenvino-pytorch-frontend >=2026.3.0,<2026.3.1.0a0 + size: 1236788 + timestamp: 1786131116811 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-tensorflow-frontend-2026.3.0-h565fa1b_0.conda + sha256: d1a027725dc6d6c2558e9e2b5ea65f99e982ec6adf575cef49be1ab5ecae8a47 + md5: e76e8e113e406442c0ca41284f6c3f0d + depends: + - __glibc >=2.17,<3.0.a0 + - libabseil * cxx17* + - libabseil >=20260526.0,<20260527.0a0 + - libgcc >=14 + - libopenvino 2026.3.0 hb2f3c86_0 + - libprotobuf >=7.35.1,<7.35.2.0a0 + - libstdcxx >=14 + - snappy >=1.2.2,<1.3.0a0 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: + weak: + - libopenvino-tensorflow-frontend >=2026.3.0,<2026.3.1.0a0 + size: 1289288 + timestamp: 1786131128541 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libopenvino-tensorflow-lite-frontend-2026.3.0-h0542e35_0.conda + sha256: 0a48ed163e475f3eff7ee358921f1393bbc769a58412c3b84cf27d86d1253440 + md5: e4318029124b4cacb8a2bfe884613676 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libopenvino 2026.3.0 hb2f3c86_0 + - libstdcxx >=14 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: + weak: + - libopenvino-tensorflow-lite-frontend >=2026.3.0,<2026.3.1.0a0 + size: 511389 + timestamp: 1786131139830 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libopus-1.6.1-h280c20c_0.conda + sha256: f1061a26213b9653bbb8372bfa3f291787ca091a9a3060a10df4d5297aad74fd + md5: 2446ac1fe030c2aa6141386c1f5a6aed + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libopus >=1.6.1,<2.0a0 + size: 324993 + timestamp: 1768497114401 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libpciaccess-0.19-hb03c661_1.conda + sha256: addc80c69d362a9e6c40305c493139a8e9ee504b2f45a6687dbdaa9da3c6183c + md5: 35fa2b34bbced424e6976d30f5fde576 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libpciaccess >=0.19,<0.20.0a0 + size: 30070 + timestamp: 1785971678815 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libplacebo-7.360.1-hc50b9dd_1.conda + sha256: 7fa90c06b81559cb56ea7806a6696fb4902a1acc20bbaff1bd3a4a75b3ffa0d5 + md5: 4a750e2ae0d52d003bb1e3421581585e + depends: + - libstdcxx >=14 + - libgcc >=14 + - __glibc >=2.17,<3.0.a0 + - libdovi >=3.4.0,<4.0a0 + - lcms2 >=2.19.1,<3.0a0 + - shaderc >=2026.3,<2026.4.0a0 + - libvulkan-loader >=1.4.341.0,<2.0a0 + license: LGPL-2.1-or-later + purls: [] + run_exports: + weak: + - libplacebo >=7.360.1,<7.361.0a0 + size: 550759 + timestamp: 1784287829706 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libpng-1.6.58-h922cc85_1.conda + sha256: c19eefb87d70d9b4b0629fa48414a155a47a1be4f04583ae71ed8c5a9a32fdcb + md5: fcf71c8d979148873f6f8ad4cfc73d86 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=15 + - libzlib >=1.3.2,<2.0a0 + license: zlib-acknowledgement + purls: [] + run_exports: + weak: + - libpng >=1.6.58,<1.7.0a0 + size: 316643 + timestamp: 1786616563127 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libprotobuf-7.35.1-h2840a7c_2.conda + sha256: b5ac3938186516c1091b96414c34f90255da2a3bbd736a0712b22bbf4b5ebf02 + md5: 729db8acaadb9a5e5bb2dc3d9ac84ae4 + depends: + - __glibc >=2.17,<3.0.a0 + - libabseil * cxx17* + - libabseil >=20260526.0,<20260527.0a0 + - libgcc >=14 + - libstdcxx >=14 + - libzlib >=1.3.2,<2.0a0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libprotobuf >=7.35.1,<7.35.2.0a0 + size: 3774596 + timestamp: 1783168720126 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libpython-3.12.16-ha57cdbe_0_cpython.conda + sha256: 71126cad347dfd1be645b1207baa3729e64f055edb5f785dadeb84872480a015 + md5: e1442492859319edcd76293a2488156e + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=15 + license: Python-2.0 + purls: [] + run_exports: + weak: + - libpython >=3.12,<4.0a0 + size: 8763999 + timestamp: 1793015475617 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libpython-3.14.10-hd51c5da_100_cp314.conda + build_number: 100 + sha256: 3b9f11f136074f81db3ca56f2f514f466456dbab1189e68b3681b53387043daa + md5: f008c8aee493801d0326a7616dec5aa9 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=15 + license: Python-2.0 + purls: [] + run_exports: + weak: + - libpython >=3.14,<4.0a0 + size: 10589254 + timestamp: 1793015132429 +- conda: https://conda.anaconda.org/conda-forge/linux-64/librsvg-2.62.3-h4c96295_0.conda + sha256: 5571bd8239d71961d4e3ce972f865b3ea95a91ce0b53d5749fe2dd24254ddbda + md5: 492c8d9b1c564c2e948b6cb4ba0f8261 + depends: + - __glibc >=2.17,<3.0.a0 + - cairo >=1.18.4,<2.0a0 + - fontconfig >=2.18.0,<3.0a0 + - fonts-conda-ecosystem + - gdk-pixbuf >=2.44.6,<3.0a0 + - harfbuzz >=14.2.0 + - libgcc >=14 + - libglib >=2.88.1,<3.0a0 + - libxml2-16 >=2.14.6 + - pango >=1.56.4,<2.0a0 + constrains: + - __glibc >=2.17 + license: LGPL-2.1-or-later + purls: [] + run_exports: + weak: + - librsvg >=2.62.3,<3.0a0 + size: 3476570 + timestamp: 1780450632624 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libsanitizer-16.1.0-hf2715c6_2.conda + sha256: 6f93ba4dc464c082e760f642e80ed7573707bc95887eacb0aa862fbd6a6f0fd3 + md5: e8f551ba141d88e3caa3ab22ec296fb5 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=16.1.0 + - libstdcxx >=16.1.0 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: + weak: + - libsanitizer 16.1.0 + size: 7962096 + timestamp: 1787165391989 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libsndfile-1.2.2-hbc6d301_3.conda + sha256: 3503121a77d76e33f668916b69d4b20cb6a21f62aa4351d1506271ae9d184c61 + md5: a2bc10137c845d9c45067f3c53aad6e5 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libstdcxx >=14 + - libvorbis >=1.3.7,<1.4.0a0 + - libopus >=1.6.1,<2.0a0 + - lame >=4.0,<4.1.0a0 + - mpg123 >=1.33.7,<1.34.0a0 + - libogg >=1.3.5,<1.4.0a0 + - libflac >=1.5.0,<1.6.0a0 + license: LGPL-2.1-or-later + purls: [] + run_exports: + weak: + - libsndfile >=1.2.2,<1.3.0a0 + size: 387942 + timestamp: 1786538522787 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libsodium-1.0.22-h280c20c_1.conda + sha256: b677bbf1c339d894757c3dcfbb2f88649e499e4991d70ae09a1466da9a6c92d6 + md5: 965e4d531b588b2e42f66fd8e48b056c + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + license: ISC + purls: [] + run_exports: + weak: + - libsodium >=1.0.22,<1.0.23.0a0 + size: 269272 + timestamp: 1779163468406 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libsqlite-3.53.4-h13e7031_1.conda + sha256: f20d70da54e5b31dd4a51fb1efeaafafd5ab6dd8d7ac9d1438eaa2526ac4ed3d + md5: e72bbec309c2b0f37823ee7d4fabfcd3 + depends: + - __glibc >=2.17,<3.0.a0 + - icu >=78.3,<79.0a0 + - libgcc >=15 + - libzlib >=1.3.2,<2.0a0 + license: blessing + purls: [] + run_exports: + weak: + - libsqlite >=3.53.4,<4.0a0 + size: 974348 + timestamp: 1787051145557 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libsqlite-3.54.1-h0737f62_101.conda + sha256: c294029f893d05286f1061bbab85b820f1eea73dd859af4bcc619197bcc34810 + md5: 36e097bf5f1e0699e88c8ac801f2dc65 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=15 + - libzlib >=1.3.2,<2.0a0 + constrains: + - icu <0.0a0 + license: blessing + purls: [] + run_exports: + weak: + - libsqlite >=3.54.1,<4.0a0 + size: 980491 + timestamp: 1793051548007 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libsqlite-3.54.1-h13e7031_0.conda + sha256: 07b3c98282022f05781122d073f84e944bfb4299946e8457ece3ce6c384ff78e + md5: 8f15f0ec9b69344df5c3bb5cce1751a1 + depends: + - __glibc >=2.17,<3.0.a0 + - icu >=78.3,<79.0a0 + - libgcc >=15 + - libzlib >=1.3.2,<2.0a0 + license: blessing + purls: [] + run_exports: + weak: + - libsqlite >=3.54.1,<4.0a0 + size: 983668 + timestamp: 1792175587601 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-16.1.0-h934c35e_2.conda + sha256: af96a5fcf1ce0659d257ababc1b8d0bbb698250e8140c6b8352f60d3be075392 + md5: d4883ac53b4074ca17e5c567bb8008f1 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc 16.1.0 ha9f2e26_2 + constrains: + - libstdcxx-ng ==16.1.0=*_2 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: {} + size: 6630263 + timestamp: 1787165375778 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-ng-16.1.0-hdf11a46_2.conda + sha256: f096fb41c6ad3ef41c479ebce001329a531e0862c9a88979203597b610383158 + md5: 8531022ddd724933da9dc3d426a5ad9d + depends: + - libstdcxx 16.1.0 h934c35e_2 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: + strong: + - libstdcxx + size: 28339 + timestamp: 1787165409751 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libsystemd0-257.13-h084b8d7_1.conda + sha256: 2293884d59cf0436c37fc0a4bad71011a8de2a6913610d1c701a7703377c1f75 + md5: ea0da9c20bbb221b530810c3c68bbe62 + depends: + - __glibc >=2.17,<3.0.a0 + - libcap >=2.78,<2.79.0a0 + - libgcc >=14 + license: LGPL-2.1-or-later + purls: [] + run_exports: {} + size: 493022 + timestamp: 1780084748140 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libtiff-4.7.2-h9d88235_0.conda + sha256: b31346e1c01ab40a170e91147092ee8fd92b1dee3c66ee47ef025571c879b159 + md5: c1fcb4a88bc15a9f77ad8d27d7af1df9 + depends: + - __glibc >=2.17,<3.0.a0 + - lerc >=4.1.0,<5.0a0 + - libdeflate >=1.25,<1.26.0a0 + - libgcc >=14 + - libjpeg-turbo >=3.1.4.1,<4.0a0 + - liblzma >=5.8.3,<6.0a0 + - libstdcxx >=14 + - libwebp-base >=1.6.0,<2.0a0 + - libzlib >=1.3.2,<2.0a0 + - zstd >=1.5.7,<1.6.0a0 + license: HPND + purls: [] + run_exports: + weak: + - libtiff >=4.7.2,<4.8.0a0 + size: 452337 + timestamp: 1783084902636 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libudev1-257.13-h084b8d7_1.conda + sha256: 287d05680e49eea51b8145fbf34bc213c0618b04f32e450e9da5d715e5134e38 + md5: 89e5671a076d99516a6acd72a35b1640 + depends: + - __glibc >=2.17,<3.0.a0 + - libcap >=2.78,<2.79.0a0 + - libgcc >=14 + license: LGPL-2.1-or-later + purls: [] + run_exports: {} + size: 145969 + timestamp: 1780084753104 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libunwind-1.8.3-h65a8314_0.conda + sha256: 71c8b9d5c72473752a0bb6e91b01dd209a03916cb71f36cc6a564e3a2a132d7a + md5: e179a69edd30d75c0144d7a380b88f28 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libstdcxx >=14 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libunwind >=1.8.3,<1.9.0a0 + size: 75995 + timestamp: 1757032240102 +- conda: https://conda.anaconda.org/conda-forge/linux-64/liburing-2.14-hb700be7_0.conda + sha256: 3d17b7aa90610afc65356e9e6149aeac0b2df19deda73a51f0a09cf04fd89286 + md5: 56f65185b520e016d29d01657ac02c0d + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libstdcxx >=14 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - liburing >=2.14,<2.15.0a0 + size: 154203 + timestamp: 1770566529700 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libusb-1.0.29-h73b1eb8_0.conda + sha256: 89c84f5b26028a9d0f5c4014330703e7dff73ba0c98f90103e9cef6b43a5323c + md5: d17e3fb595a9f24fa9e149239a33475d + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 + - libudev1 >=257.4 + license: LGPL-2.1-or-later + purls: [] + run_exports: + weak: + - libusb >=1.0.29,<2.0a0 + size: 89551 + timestamp: 1748856210075 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libuuid-2.42.2-h5347b49_0.conda + sha256: 9b1bdce27a7e31f7d241aeecff67a1f3101d52a2b1e33ccc2cdf2613072bf81f + md5: 01bb81d12c957de066ea7362007df642 + depends: + - libgcc >=14 + - __glibc >=2.17,<3.0.a0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libuuid >=2.42.2,<3.0a0 + size: 40017 + timestamp: 1781625522462 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libuuid-2.42.4-hcfc3c73_0.conda + sha256: f34b8d1de9a2bf62476d8608057d9b8a918d97444236dc53a47128f2fae79041 + md5: 54a948337e66706380ff24d6b5fde63f + depends: + - libgcc >=15 + - __glibc >=2.17,<3.0.a0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libuuid >=2.42.4,<3.0a0 + size: 34442 + timestamp: 1790121449161 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libva-2.24.1-he1eb515_0.conda + sha256: 16a76abbb4fd1de4516ac4a3d06cbf1f561bc8049ca72b04dcac395eee74d017 + md5: eb1b7f8bfdea40eef150c4a1d37df09e + depends: + - __glibc >=2.17,<3.0.a0 + - libdrm >=2.4.127,<2.5.0a0 + - libegl >=1.7.0,<2.0a0 + - libgcc >=14 + - libgl >=1.7.0,<2.0a0 + - libglx >=1.7.0,<2.0a0 + - libxcb >=1.17.0,<2.0a0 + - wayland >=1.25.0,<2.0a0 + - wayland-protocols + - xorg-libx11 >=1.8.13,<2.0a0 + - xorg-libxext >=1.3.7,<2.0a0 + - xorg-libxfixes >=6.0.2,<7.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libva >=2.24.1,<3.0a0 + size: 222717 + timestamp: 1783519315031 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libvorbis-1.3.7-h54a6638_2.conda + sha256: ca494c99c7e5ecc1b4cd2f72b5584cef3d4ce631d23511184411abcbb90a21a5 + md5: b4ecbefe517ed0157c37f8182768271c + depends: + - libogg + - libgcc >=14 + - __glibc >=2.17,<3.0.a0 + - libstdcxx >=14 + - libgcc >=14 + - libogg >=1.3.5,<1.4.0a0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libvorbis >=1.3.7,<1.4.0a0 + size: 285894 + timestamp: 1753879378005 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libvpl-2.16.0-h54a6638_0.conda + sha256: 38850657dd6835613ef16b34895a54bea98bc7639db6a649c886b331635714fc + md5: 9f6b0090c3902b2c763a16f7dace7b6e + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libstdcxx >=14 + - intel-media-driver >=26.1.2,<26.2.0a0 + - libva >=2.23.0,<3.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libvpl >=2.16.0,<2.17.0a0 + size: 287992 + timestamp: 1772980546550 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libvpx-1.15.2-hecca717_0.conda + sha256: 8e1119977f235b488ab32d540c018d3fd1eccefc3dd3859921a0ff555d8c10d2 + md5: 10f5008f1c89a40b09711b5a9cdbd229 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libstdcxx >=14 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libvpx >=1.15.2,<1.16.0a0 + size: 1070048 + timestamp: 1762010217363 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libvulkan-loader-1.4.357.0-h5279c79_0.conda + sha256: 1e30138cff1e6ba5739ce3ec787b24ef22ac6e2008d8a2073df334e9e5f8690b + md5: 9d8c72f797f6f2d1c32897603d70824c + depends: + - __glibc >=2.17,<3.0.a0 + - libstdcxx >=14 + - libgcc >=14 + - xorg-libx11 >=1.8.13,<2.0a0 + - xorg-libxrandr >=1.5.5,<2.0a0 + constrains: + - libvulkan-headers 1.4.357.0.* + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: + weak: + - libvulkan-loader >=1.4.357.0,<2.0a0 + size: 203456 + timestamp: 1785311377294 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libwebp-base-1.6.0-hd42ef1d_1.conda + sha256: 8415001414f488c85b72b9d8cc2071dfb3981a47bc3c8eb56ef91a57d12eae7f + md5: 9332b53d0ea93c5d39e33be03a0c611a + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + constrains: + - libwebp 1.6.0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libwebp-base >=1.6.0,<2.0a0 + size: 428430 + timestamp: 1785954557217 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libxcb-1.17.0-hb83e432_1.conda + sha256: ce25a1efa85a78a3ce3b16721d9c36153814adbf2fb004a15f72ec69894b4cb1 + md5: 64e856c420205b009da26471d3ac161d + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=15 + - pthread-stubs + - xorg-libxau >=1.0.12,<2.0a0 + - xorg-libxdmcp >=1.1.5,<2.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libxcb >=1.17.0,<2.0a0 + size: 397355 + timestamp: 1787077466600 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libxcrypt-4.4.38-h280c20c_0.conda + sha256: f7e9292dd219a6435bbb1223da9586c3e70d66d169c5a92f08db3f2127df04e9 + md5: f7a7ff5a6ab331e037abd34f379a631d + depends: + - libgcc >=14 + - __glibc >=2.17,<3.0.a0 + license: LGPL-2.1-or-later + purls: [] + run_exports: + weak: + - libxcrypt >=4.4.38 + size: 101957 + timestamp: 1785887123445 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libxkbcommon-1.13.2-h51789e4_1.conda + sha256: d44878d396713ccf3b355df617f61c40a1442fffcf134392bc6ce0e6c2219369 + md5: f888787e0eab7a8076a67d197e155ffc + depends: + - xkeyboard-config + - libstdcxx >=14 + - libgcc >=14 + - __glibc >=2.17,<3.0.a0 + - libxcb >=1.17.0,<2.0a0 + - xorg-libxau >=1.0.12,<2.0a0 + - libxml2 + - libxml2-16 >=2.14.6 + license: MIT AND MIT-open-group AND HPND AND HPND-sell-variant AND ISC + purls: [] + run_exports: + weak: + - libxkbcommon >=1.13.2,<2.0a0 + size: 942571 + timestamp: 1787178780572 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libxml2-16-2.15.3-hca6bf5a_0.conda + sha256: 3d44f737c5ae52d5af32682cc1530df433f401f8e58a7533926536244127572a + md5: e79d2c2f24b027aa8d5ab1b1ba3061e7 + depends: + - __glibc >=2.17,<3.0.a0 + - icu >=78.3,<79.0a0 + - libgcc >=14 + - libiconv >=1.18,<2.0a0 + - liblzma >=5.8.3,<6.0a0 + - libzlib >=1.3.2,<2.0a0 + constrains: + - libxml2 2.15.3 + license: MIT + license_family: MIT + purls: [] + run_exports: {} + size: 559775 + timestamp: 1776376739004 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libxml2-2.15.3-h49c6c72_0.conda + sha256: 3bc5551720c58591f6ea1146f7d1539c734ed1c40e7b9f5cb8cb7e900c509aba + md5: 995d8c8bad2a3cc8db14675a153dec2b + depends: + - __glibc >=2.17,<3.0.a0 + - icu >=78.3,<79.0a0 + - libgcc >=14 + - libiconv >=1.18,<2.0a0 + - liblzma >=5.8.3,<6.0a0 + - libxml2-16 2.15.3 hca6bf5a_0 + - libzlib >=1.3.2,<2.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libxml2 + - libxml2-16 >=2.15.3 + size: 46810 + timestamp: 1776376751152 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libzlib-1.3.2-h25fd6f3_3.conda + sha256: eb8a0db0aa570124f7d2a93d7c7f596e3390df5e047818d873baad32985fc736 + md5: 0de0122d9570a8ab637c6b73db268389 + depends: + - __glibc >=2.17,<3.0.a0 + constrains: + - zlib 1.3.2 *_3 + license: Zlib + license_family: Other + purls: [] + run_exports: + weak: + - libzlib >=1.3.2,<2.0a0 + size: 63713 + timestamp: 1785362952714 +- conda: https://conda.anaconda.org/conda-forge/linux-64/make-4.4.1-hb03c661_3.conda + sha256: 4c65d2769847778a6d84db6984ac81bcec6f8958d349f1fe57ae040ccc56a801 + md5: b4a198dc40024de2a59c1343e4ae4144 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + license: GPL-3.0-or-later + license_family: GPL + purls: [] + run_exports: {} + size: 510695 + timestamp: 1785879853297 +- conda: https://conda.anaconda.org/conda-forge/linux-64/markupsafe-3.0.3-py312h8a5da7c_1.conda + sha256: 5f3aad1f3a685ed0b591faad335957dbdb1b73abfd6fc731a0d42718e0653b33 + md5: 93a4752d42b12943a355b682ee43285b + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - python >=3.12,<3.13.0a0 + - python_abi 3.12.* *_cp312 + constrains: + - jinja2 >=3.0.0 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/markupsafe?source=hash-mapping + run_exports: {} + size: 26057 + timestamp: 1772445297924 +- conda: https://conda.anaconda.org/conda-forge/linux-64/mpg123-1.33.7-h8142553_0.conda + sha256: 065c3cbc1d2de67bf3ffeb66a8e05cd89c12289b0bd0d877db52e472e45c231c + md5: 1d90b387cb397d0a75fd2a70be28cad1 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libstdcxx >=14 + license: LGPL-2.1-only + license_family: LGPL + purls: [] + run_exports: + weak: + - mpg123 >=1.33.7,<1.34.0a0 + size: 491740 + timestamp: 1786232222548 +- conda: https://conda.anaconda.org/conda-forge/linux-64/msgpack-python-1.2.1-py312h0a2e395_1.conda + sha256: c9764c77dd7f9c581c1d8a24c3024edf777cacfb5a4180de5badc6638dc8590f + md5: a142257c1b69e37cfefc66dc228a4d93 + depends: + - python + - __glibc >=2.17,<3.0.a0 + - libstdcxx >=14 + - libgcc >=14 + - python_abi 3.12.* *_cp312 + license: Apache-2.0 + license_family: APACHE + purls: + - pkg:pypi/msgpack?source=hash-mapping + run_exports: {} + size: 112800 + timestamp: 1782460774570 +- conda: https://conda.anaconda.org/conda-forge/linux-64/ncurses-6.6-hdb14827_1.conda + sha256: 5d46557214ed184381dafe835b7c94a474a1c3b307a08a250b1ea4779b44ffb3 + md5: ee6c0cd80a60961a1f48aa3e0b91f986 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + license: X11 AND BSD-3-Clause + purls: [] + run_exports: + weak: + - ncurses >=6.6,<7.0a0 + size: 911196 + timestamp: 1786355078102 +- conda: https://conda.anaconda.org/conda-forge/linux-64/numpy-2.5.2-py312h33ff503_0.conda + sha256: 1235aaa0e265d7b0247fe6fb456a55f10f5fddf5349b652727fcdcdff4a26eb4 + md5: 3e15aca2584b6c69dc09ba2aa5ae1503 + depends: + - python + - __glibc >=2.17,<3.0.a0 + - libstdcxx >=14 + - libgcc >=14 + - liblapack >=3.9.0,<4.0a0 + - libblas >=3.9.0,<4.0a0 + - python_abi 3.12.* *_cp312 + - libcblas >=3.9.0,<4.0a0 + constrains: + - numpy-base <0a0 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/numpy?source=hash-mapping + run_exports: + weak: + - numpy >=1.25,<3 + size: 8950985 + timestamp: 1786330619159 +- conda: https://conda.anaconda.org/conda-forge/linux-64/numpy-2.5.2-py314h2b28147_0.conda + sha256: 124b753583ea9c157301fe78de3e88aa5fa8806bd2da8abaa8808065d1b93d51 + md5: d77631addad93399a90157d2c597e7f3 + depends: + - python + - libstdcxx >=14 + - libgcc >=14 + - __glibc >=2.17,<3.0.a0 + - python_abi 3.14.* *_cp314 + - libblas >=3.9.0,<4.0a0 + - liblapack >=3.9.0,<4.0a0 + - libcblas >=3.9.0,<4.0a0 + constrains: + - numpy-base <0a0 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/numpy?source=hash-mapping + run_exports: + weak: + - numpy >=1.25,<3 + size: 9119694 + timestamp: 1786330625923 +- conda: https://conda.anaconda.org/conda-forge/linux-64/ocl-icd-2.3.4-hb03c661_1.conda + sha256: 75f3bf733523a338f73d6c276c4a26634877cd970edb558f2769d9fa52b100a9 + md5: c2871ba95727fd1382c05db66048b64c + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - opencl-headers >=2025.6.13 + license: BSD-2-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - ocl-icd >=2.3.4,<3.0a0 + size: 109598 + timestamp: 1780362789611 +- conda: https://conda.anaconda.org/conda-forge/linux-64/opencl-headers-2025.06.13-hecca717_0.conda + sha256: 8de2f0cd8a659b01abf86e7fbb8cea4f28ada62fd288429a2bbc040db1b98dd0 + md5: c930c8052d780caa41216af7de472226 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libstdcxx >=14 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: {} + size: 55754 + timestamp: 1773844383536 +- conda: https://conda.anaconda.org/conda-forge/linux-64/openh264-2.6.0-h65dd3cf_1.conda + sha256: 5317c5c23762f3fe1c8510565a2bb94c645e1470ff73b386315656404f7eb58a + md5: 69894a95220a17a66272daa701c387bc + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libstdcxx >=14 + license: BSD-2-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - openh264 >=2.6.0,<2.6.1.0a0 + size: 726478 + timestamp: 1782685945856 +- conda: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.6.3-h35e630c_1.conda + sha256: 012096056b97abf1f68c46b7146bd2cbd68c1be762340b4f5dad4fbbe99177bc + md5: c5955c27917ff2234def47f075e71e02 + depends: + - __glibc >=2.17,<3.0.a0 + - ca-certificates + - libgcc >=14 + license: Apache-2.0 + license_family: Apache + purls: [] + run_exports: + weak: + - openssl >=3.6.3,<4.0a0 + size: 3182423 + timestamp: 1785913583650 +- conda: https://conda.anaconda.org/conda-forge/linux-64/pango-1.58.2-hda50119_0.conda + sha256: 48f27a6c3e4062bc09dafe9c7f6b288c5de5655e81095ab7f1aad920b2163b7b + md5: 6a2822aaf9a34ac3708904a47ff3dd7e + depends: + - __glibc >=2.17,<3.0.a0 + - cairo >=1.18.4,<2.0a0 + - fontconfig >=2.18.2,<3.0a0 + - fonts-conda-ecosystem + - fribidi >=1.0.16,<2.0a0 + - libexpat >=2.8.1,<3.0a0 + - libfreetype >=2.14.3 + - libfreetype6 >=2.14.3 + - libgcc >=14 + - libglib >=2.88.3,<3.0a0 + - libharfbuzz >=14.3.0 + - libpng >=1.6.58,<1.7.0a0 + - libzlib >=1.3.2,<2.0a0 + license: LGPL-2.1-or-later + purls: [] + run_exports: + weak: + - pango >=1.58.2,<2.0a0 + size: 469916 + timestamp: 1786107384537 +- conda: https://conda.anaconda.org/conda-forge/linux-64/pcre2-10.47-haa7fec5_0.conda + sha256: 5e6f7d161356fefd981948bea5139c5aa0436767751a6930cb1ca801ebb113ff + md5: 7a3bff861a6583f1889021facefc08b1 + depends: + - __glibc >=2.17,<3.0.a0 + - bzip2 >=1.0.8,<2.0a0 + - libgcc >=14 + - libzlib >=1.3.1,<2.0a0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - pcre2 >=10.47,<10.48.0a0 + size: 1222481 + timestamp: 1763655398280 +- conda: https://conda.anaconda.org/conda-forge/linux-64/pixman-0.46.4-h54a6638_3.conda + sha256: 829d8288764282de5a9f7b9169acb75cc7dc0b6c3fe2535cfe87dea3436bbc5d + md5: 0ee5bb30034b081a1386c1e2c98ab0a7 + depends: + - libstdcxx >=14 + - libgcc >=14 + - __glibc >=2.17,<3.0.a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - pixman >=0.46.4,<1.0a0 + size: 376704 + timestamp: 1786106621354 +- conda: https://conda.anaconda.org/conda-forge/linux-64/psutil-7.2.2-py312h5253ce2_0.conda + sha256: d834fd656133c9e4eaf63ffe9a117c7d0917d86d89f7d64073f4e3a0020bd8a7 + md5: dd94c506b119130aef5a9382aed648e7 + depends: + - python + - libgcc >=14 + - __glibc >=2.17,<3.0.a0 + - python_abi 3.12.* *_cp312 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/psutil?source=hash-mapping + run_exports: {} + size: 225545 + timestamp: 1769678155334 +- conda: https://conda.anaconda.org/conda-forge/linux-64/pthread-stubs-0.4-hb03c661_1003.conda + sha256: afc3b27b2cbb0487c1d0e963f96e71181ecfb623a24fb393bb19ff974a6382a1 + md5: df2c27f36bdb0dde779f55b5df76a352 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + license: MIT + license_family: MIT + purls: [] + run_exports: {} + size: 9115 + timestamp: 1786067714761 +- conda: https://conda.anaconda.org/conda-forge/linux-64/pugixml-1.15-h3f63f65_0.conda + sha256: 23c98a5000356e173568dc5c5770b53393879f946f3ace716bbdefac2a8b23d2 + md5: b11a4c6bf6f6f44e5e143f759ffa2087 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 + - libstdcxx >=13 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - pugixml >=1.15,<1.16.0a0 + size: 118488 + timestamp: 1736601364156 +- conda: https://conda.anaconda.org/conda-forge/linux-64/pulseaudio-client-17.0-h9a6aba3_3.conda + sha256: 0a0858c59805d627d02bdceee965dd84fde0aceab03a2f984325eec08d822096 + md5: b8ea447fdf62e3597cb8d2fae4eb1a90 + depends: + - __glibc >=2.17,<3.0.a0 + - dbus >=1.16.2,<2.0a0 + - libgcc >=14 + - libglib >=2.86.1,<3.0a0 + - libiconv >=1.18,<2.0a0 + - libsndfile >=1.2.2,<1.3.0a0 + - libsystemd0 >=257.10 + - libxcb >=1.17.0,<2.0a0 + constrains: + - pulseaudio 17.0 *_3 + license: LGPL-2.1-or-later + license_family: LGPL + purls: [] + run_exports: + weak: + - pulseaudio-client >=17.0,<17.1.0a0 + size: 750785 + timestamp: 1763148198088 +- conda: https://conda.anaconda.org/conda-forge/linux-64/python-3.12.16-h5f976f7_0_cpython.conda + sha256: a40188b47c3995bc42a33820be4d780af5c11cc295409413fb925549f0abfe92 + md5: bef9f5422e5246840497b4ae3d968001 + depends: + - __glibc >=2.17,<3.0.a0 + - bzip2 >=1.0.8,<2.0a0 + - ld_impl_linux-64 >=2.36.1 + - libexpat >=2.8.5,<3.0a0 + - libffi >=3.7.0,<3.8.0a0 + - libgcc >=15 + - liblzma >=5.8.3,<6.0a0 + - libnsl >=2.0.1,<2.1.0a0 + - libpython 3.12.16 ha57cdbe_0_cpython + - libsqlite >=3.54.1,<4.0a0 + - libuuid >=2.42.4,<3.0a0 + - libxcrypt >=4.4.38 + - libzlib >=1.3.2,<2.0a0 + - ncurses >=6.6,<7.0a0 + - openssl >=3.5.9,<4.0a0 + - readline >=8.3,<9.0a0 + - tk >=8.6.13,<8.7.0a0 + - tzdata + constrains: + - python_abi 3.12.* *_cp312 + license: Python-2.0 + purls: [] + run_exports: + weak: + - python_abi 3.12.* *_cp312 + noarch: + - python + size: 22997826 + timestamp: 1793015501085 +- conda: https://conda.anaconda.org/conda-forge/linux-64/python-3.14.10-hcd007b5_100_cp314.conda + build_number: 100 + sha256: bb457298c776d0edd30d727d96629e57df63e9a4ba2dd11553019267b61ef5f4 + md5: 1ce8b91e22d9210ca907a2df3a7ddfc2 + depends: + - __glibc >=2.17,<3.0.a0 + - bzip2 >=1.0.8,<2.0a0 + - ld_impl_linux-64 >=2.36.1 + - libexpat >=2.8.5,<3.0a0 + - libffi >=3.7.0,<3.8.0a0 + - libgcc >=15 + - liblzma >=5.8.3,<6.0a0 + - libmpdec >=4.0.0,<5.0a0 + - libpython 3.14.10 hd51c5da_100_cp314 + - libsqlite >=3.54.1,<4.0a0 + - libuuid >=2.42.4,<3.0a0 + - libzlib >=1.3.2,<2.0a0 + - ncurses >=6.6,<7.0a0 + - openssl >=3.5.9,<4.0a0 + - python_abi 3.14.* *_cp314 + - readline >=8.3,<9.0a0 + - tk >=8.6.13,<8.7.0a0 + - tzdata + - zstd >=1.5.7,<1.6.0a0 + license: Python-2.0 + purls: [] + run_exports: + weak: + - python_abi 3.14.* *_cp314 + noarch: + - python + size: 26698311 + timestamp: 1793015162391 + python_site_packages_path: lib/python3.14/site-packages +- conda: https://conda.anaconda.org/conda-forge/linux-64/pyyaml-6.0.3-py312h8a5da7c_1.conda + sha256: cb142bfd92f6e55749365ddc244294fa7b64db6d08c45b018ff1c658907bfcbf + md5: 15878599a87992e44c059731771591cb + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - python >=3.12,<3.13.0a0 + - python_abi 3.12.* *_cp312 + - yaml >=0.2.5,<0.3.0a0 + license: MIT + license_family: MIT + purls: + - pkg:pypi/pyyaml?source=hash-mapping + run_exports: {} + size: 198293 + timestamp: 1770223620706 +- conda: https://conda.anaconda.org/conda-forge/linux-64/pyzmq-27.1.0-py312hda471dd_3.conda + noarch: python + sha256: 970b2a1d12983d8d1cc05d914ad88a0b6ef1fa14038c9649aa834dd6ebee65d7 + md5: acd216255e1370e9aeab5351b831f07c + depends: + - python + - libgcc >=14 + - libstdcxx >=14 + - __glibc >=2.17,<3.0.a0 + - _python_abi3_support 1.* + - cpython >=3.12 + - zeromq >=4.3.5,<4.4.0a0 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/pyzmq?source=hash-mapping + run_exports: {} + size: 210896 + timestamp: 1779483879367 +- conda: https://conda.anaconda.org/conda-forge/linux-64/rdma-core-63.0-h192683f_1.conda + sha256: f0931894c751b22be09d7c976343a2957a14a59cfe0db04d916d1b93bd66ffcf + md5: da47d3251c0f0d16b2801afe5a77b532 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libnl >=3.11.0,<4.0a0 + - libstdcxx >=14 + - libsystemd0 >=257.13 + - libudev1 >=257.13 + license: Linux-OpenIB + license_family: BSD + purls: [] + run_exports: + weak: + - rdma-core >=63.0 + size: 1281605 + timestamp: 1778528449130 +- conda: https://conda.anaconda.org/conda-forge/linux-64/readline-8.3-hd6e31c0_1.conda + sha256: 01b3fe073a66e321970d09e04b388708f8cbdca5cdfbfcb7c9eeb470ad10383d + md5: 69c01c781e7c8190bbdaf79e3848c5ca + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=15 + - ncurses >=6.6,<7.0a0 + license: GPL-3.0-only + license_family: GPL + purls: [] + run_exports: + weak: + - readline >=8.3,<9.0a0 + size: 348899 + timestamp: 1787033801506 +- conda: https://conda.anaconda.org/conda-forge/linux-64/rpds-py-2026.6.3-py312h192e038_0.conda + sha256: 4a190c74b5f3b441820a3142b03a489987c724b65237882ebe87d75892345d17 + md5: 40984fba15f43a366ea4c6dea2b4c8bd + depends: + - python + - libgcc >=14 + - __glibc >=2.17,<3.0.a0 + - python_abi 3.12.* *_cp312 + constrains: + - __glibc >=2.17 + license: MIT + license_family: MIT + purls: + - pkg:pypi/rpds-py?source=hash-mapping + run_exports: {} + size: 300259 + timestamp: 1782831325201 +- conda: https://conda.anaconda.org/conda-forge/linux-64/ruamel.yaml.clib-0.2.15-py312h5253ce2_1.conda + sha256: dc520329bdfd356e2f464393f8ad9b8450fd5a269699907b2b8d629300c2c068 + md5: 84aa470567e2211a2f8e5c8491cdd78c + depends: + - python + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - python_abi 3.12.* *_cp312 + license: MIT + license_family: MIT + purls: + - pkg:pypi/ruamel-yaml-clib?source=hash-mapping + run_exports: {} + size: 148221 + timestamp: 1766159515069 +- conda: https://conda.anaconda.org/conda-forge/linux-64/scipy-1.18.0-py312h54fa4ab_0.conda + sha256: c304dfb0bbf0d824d3706623f6437237d7bfc83941bb7b18f80e05abb10ec79e + md5: f8d242c552b0f7f682451ce95879af5e + depends: + - __glibc >=2.17,<3.0.a0 + - libblas >=3.9.0,<4.0a0 + - libcblas >=3.9.0,<4.0a0 + - libgcc >=14 + - libgfortran + - libgfortran5 >=14.3.0 + - liblapack >=3.9.0,<4.0a0 + - libstdcxx >=14 + - numpy <2.7 + - numpy >=1.23,<3 + - numpy >=2.0.0 + - python >=3.12,<3.13.0a0 + - python_abi 3.12.* *_cp312 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/scipy?source=hash-mapping + run_exports: {} + size: 17104066 + timestamp: 1781912972195 +- conda: https://conda.anaconda.org/conda-forge/linux-64/sdl2-2.32.56-h54a6638_0.conda + sha256: 987ad072939fdd51c92ea8d3544b286bb240aefda329f9b03a51d9b7e777f9de + md5: cdd138897d94dc07d99afe7113a07bec + depends: + - libstdcxx >=14 + - libgcc >=14 + - __glibc >=2.17,<3.0.a0 + - libgl >=1.7.0,<2.0a0 + - sdl3 >=3.2.22,<4.0a0 + - libegl >=1.7.0,<2.0a0 + license: Zlib + purls: [] + run_exports: + weak: + - sdl2 >=2.32.56,<3.0a0 + size: 589145 + timestamp: 1757842881000 +- conda: https://conda.anaconda.org/conda-forge/linux-64/sdl3-3.4.14-hdeec2a5_0.conda + sha256: b7f4a338074d0daa5086d6d7f319dd79b277c47a761abd8ebac72c0253f4c6ad + md5: 1ef39a7b42a06e262723fa7937210639 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libstdcxx >=14 + - libvulkan-loader >=1.4.357.0,<2.0a0 + - liburing >=2.14,<2.15.0a0 + - libudev1 >=257.13 + - xorg-libxcursor >=1.2.3,<2.0a0 + - xorg-libxtst >=1.2.5,<2.0a0 + - dbus >=1.16.2,<2.0a0 + - libunwind >=1.8.3,<1.9.0a0 + - libusb >=1.0.29,<2.0a0 + - libegl >=1.7.0,<2.0a0 + - pulseaudio-client >=17.0,<17.1.0a0 + - libgl >=1.7.0,<2.0a0 + - xorg-libxext >=1.3.7,<2.0a0 + - xorg-libxfixes >=6.0.2,<7.0a0 + - libdrm >=2.4.127,<2.5.0a0 + - xorg-libxi >=1.8.3,<2.0a0 + - wayland >=1.26.0,<2.0a0 + - xorg-libxscrnsaver >=1.2.4,<2.0a0 + - libxkbcommon >=1.13.2,<2.0a0 + - xorg-libx11 >=1.8.13,<2.0a0 + license: Zlib + purls: [] + run_exports: + weak: + - sdl3 >=3.4.14,<4.0a0 + size: 2158268 + timestamp: 1785816103164 +- conda: https://conda.anaconda.org/conda-forge/linux-64/shaderc-2026.3-h1b60276_0.conda + sha256: 1325456e9cff1ec8a5e826f64b8eef5806162bfcceeed2e32817a3c280f0dfc9 + md5: ee5e719bbf258faa3b6533a1a621092b + depends: + - __glibc >=2.17,<3.0.a0 + - glslang >=16,<17.0a0 + - libgcc >=14 + - libstdcxx >=14 + - spirv-tools >=2026,<2027.0a0 + license: Apache-2.0 + license_family: Apache + purls: [] + run_exports: + weak: + - shaderc >=2026.3,<2026.4.0a0 + size: 114267 + timestamp: 1784251192959 +- conda: https://conda.anaconda.org/conda-forge/linux-64/snappy-1.2.2-h03e3b7b_1.conda + sha256: 48f3f6a76c34b2cfe80de9ce7f2283ecb55d5ed47367ba91e8bb8104e12b8f11 + md5: 98b6c9dc80eb87b2519b97bcf7e578dd + depends: + - libgcc >=14 + - __glibc >=2.17,<3.0.a0 + - libstdcxx >=14 + - libgcc >=14 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - snappy >=1.2.2,<1.3.0a0 + size: 45829 + timestamp: 1762948049098 +- conda: https://conda.anaconda.org/conda-forge/linux-64/spirv-tools-2026.3-hb700be7_0.conda + sha256: 863058fea246a08b348e010462dd5637cac9a15964012ae6c174f0f89978705f + md5: 471eb0afe44e7546d26209ed45b58ec9 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libstdcxx >=14 + constrains: + - spirv-headers >=1.4.357.0,<1.4.357.1.0a0 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: + weak: + - spirv-tools >=2026,<2027.0a0 + size: 2753273 + timestamp: 1786908115068 +- conda: https://conda.anaconda.org/conda-forge/linux-64/sqlalchemy-2.0.52-py312h5253ce2_0.conda + sha256: c6677580087354e02e98fe3d356ca3de3d6f0521da831ea949b7a42e52bfd60d + md5: 3d301c6754633aacf499ac6ee63bd2b8 + depends: + - python + - greenlet !=0.4.17 + - typing-extensions >=4.6.0 + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - python_abi 3.12.* *_cp312 + license: MIT + license_family: MIT + purls: + - pkg:pypi/sqlalchemy?source=hash-mapping + run_exports: {} + size: 3721699 + timestamp: 1786535232010 +- conda: https://conda.anaconda.org/conda-forge/linux-64/svt-av1-4.2.0-hecca717_0.conda + sha256: c79f983a6bb4218bdef9064aec5821d59d744f9a98f8cf8437c7bd0351df0d95 + md5: 683f1b6d013bb1eb0d5c8025d2eb21a3 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libstdcxx >=14 + license: BSD-2-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - svt-av1 >=4.2.0,<4.2.1.0a0 + size: 2666786 + timestamp: 1784069888521 +- conda: https://conda.anaconda.org/conda-forge/linux-64/tbb-2023.0.0-hab88423_2.conda + sha256: 30cb9355c2fefc20ff1a3d6566b9714d5614086a2524c07721fc344eb20515ae + md5: 7073b15f9364ebc118998601ac6ca6a6 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libhwloc >=2.13.0,<2.13.1.0a0 + - libstdcxx >=14 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: {} + size: 182331 + timestamp: 1778673758649 +- conda: https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.13-noxft_hd70dff1_3.conda + build_number: 103 + sha256: 43624eab22f5f29df7d6ffe914cf442f28fd559b55b290906255492826e636e8 + md5: 48a1049e710857572fc2a832aa394d9f + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libzlib >=1.3.2,<2.0a0 + constrains: + - xorg-libx11 >=1.8.13,<2.0a0 + license: TCL + purls: [] + run_exports: + weak: + - tk >=8.6.13,<8.7.0a0 + size: 3550916 + timestamp: 1784229071544 +- conda: https://conda.anaconda.org/conda-forge/linux-64/tornado-6.5.8-py312h4c3975b_0.conda + sha256: 2ea8f8b10e869b675d2fba157b387eaf4eed1696bfc924bb7b28e67d7aa0a947 + md5: 5423c2b8f82d60320e65b9ff30babbdf + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - python >=3.12,<3.13.0a0 + - python_abi 3.12.* *_cp312 + license: Apache-2.0 + license_family: Apache + purls: + - pkg:pypi/tornado?source=hash-mapping + run_exports: {} + size: 869730 + timestamp: 1786226754702 +- conda: https://conda.anaconda.org/conda-forge/linux-64/uv-0.13.5-h535ca38_0.conda + sha256: 10bd0e46b8b32a73d2d443f627f1c518200d63a4371ab2a218d3a2c895d87173 + md5: 1ceaca51ae1cd358b54a5e4ec6005ddf + depends: + - libstdcxx >=15 + - libgcc >=15 + - __glibc >=2.17,<3.0.a0 + - zstd >=1.5.7,<1.6.0a0 + constrains: + - __glibc >=2.17 + license: Apache-2.0 OR MIT + run_exports: {} + size: 14755479 + timestamp: 1792672505702 +- conda: https://conda.anaconda.org/conda-forge/linux-64/wayland-1.26.0-h1964d1d_1.conda + sha256: a8f1333274382d23721d6f72483ece364631231f8ac3f74389951b1ff2820148 + md5: 47e3c5d0b1e968ee49efc7c3fa8ebc0c + depends: + - __glibc >=2.17,<3.0.a0 + - libexpat >=2.8.1,<3.0a0 + - libffi >=3.7.0,<3.8.0a0 + - libgcc >=14 + - libstdcxx >=14 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - wayland >=1.26.0,<2.0a0 + size: 339462 + timestamp: 1786151675802 +- conda: https://conda.anaconda.org/conda-forge/linux-64/x264-1!164.3095-h166bdaf_2.tar.bz2 + sha256: 175315eb3d6ea1f64a6ce470be00fa2ee59980108f246d3072ab8b977cb048a5 + md5: 6c99772d483f566d59e25037fea2c4b1 + depends: + - libgcc-ng >=12 + license: GPL-2.0-or-later + license_family: GPL + purls: [] + run_exports: + weak: + - x264 >=1!164.3095,<1!165 + size: 897548 + timestamp: 1660323080555 +- conda: https://conda.anaconda.org/conda-forge/linux-64/x265-3.5-h924138e_3.tar.bz2 + sha256: 76c7405bcf2af639971150f342550484efac18219c0203c5ee2e38b8956fe2a0 + md5: e7f6ed84d4623d52ee581325c1587a6b + depends: + - libgcc-ng >=10.3.0 + - libstdcxx-ng >=10.3.0 + license: GPL-2.0-or-later + license_family: GPL + purls: [] + run_exports: + weak: + - x265 >=3.5,<3.6.0a0 + size: 3357188 + timestamp: 1646609687141 +- conda: https://conda.anaconda.org/conda-forge/linux-64/xkeyboard-config-2.48-h280c20c_0.conda + sha256: 3b04afd5d1a65d2d27ac2d49a63b01ab8bcd875776779ec63e337370ed38afdc + md5: b233b41be0bf210989d57160ed39b394 + depends: + - libgcc >=14 + - __glibc >=2.17,<3.0.a0 + - xorg-libx11 >=1.8.13,<2.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: {} + size: 441670 + timestamp: 1782027360439 +- conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libice-1.1.2-h280c20c_0.conda + sha256: 49b532d1df875c6749d9078b56a76f3f5db49a5abe0ca620b593ed474ef0ebf1 + md5: 85c9442aec283b4e464fa9ecc484a2f3 + depends: + - libgcc >=14 + - __glibc >=2.17,<3.0.a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - xorg-libice >=1.1.2,<2.0a0 + size: 62517 + timestamp: 1786474410404 +- conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libsm-1.2.6-h0d788c3_1.conda + sha256: ef907caee0665cf3b0f775602cc50e388e3bade8ce22ecade0873ff26604b2fd + md5: aa7459ed9ad086ba11dda843d764b33d + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - xorg-libice >=1.1.2,<2.0a0 + - libuuid >=2.42.2,<3.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - xorg-libsm >=1.2.6,<2.0a0 + size: 30739 + timestamp: 1786545374265 +- conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libx11-1.8.13-he1eb515_1.conda + sha256: 68053eebfa9f0d91666786c8fb5839d989aa9b869add92cb8815228bb2d7302c + md5: 8c282bbe4808a3cc80a5c98e9aec1cfc + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - libxcb >=1.17.0,<2.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - xorg-libx11 >=1.8.13,<2.0a0 + size: 839578 + timestamp: 1787087012372 +- conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxau-1.0.12-hb03c661_2.conda + sha256: cbf891f6cc1a859347680af1c8562bc6b033bf182a2a3bb536016932be3206de + md5: f06ef439c280a5f90b8bf62355008dbc + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - xorg-libxau >=1.0.12,<2.0a0 + size: 16419 + timestamp: 1786381001122 +- conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxcursor-1.2.3-hb9d3cd8_0.conda + sha256: 832f538ade441b1eee863c8c91af9e69b356cd3e9e1350fff4fe36cc573fc91a + md5: 2ccd714aa2242315acaf0a67faea780b + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 + - xorg-libx11 >=1.8.10,<2.0a0 + - xorg-libxfixes >=6.0.1,<7.0a0 + - xorg-libxrender >=0.9.11,<0.10.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - xorg-libxcursor >=1.2.3,<2.0a0 + size: 32533 + timestamp: 1730908305254 +- conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxdmcp-1.1.5-hb03c661_2.conda + sha256: c50a16c05ccd7fe7dd6d6cfb539f4e9a491d50f9ed7a5c902fec638f7d0d27be + md5: 2e66c929f3d879708335b6ea4557c838 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - xorg-libxdmcp >=1.1.5,<2.0a0 + size: 21120 + timestamp: 1786381006369 +- conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxext-1.3.7-h7cc23a3_1.conda + sha256: aa9bbe8b278aacc194e280ff5037f9f9a1f2c5b33ed97de8e7f01cfbe90dda43 + md5: e5b6b28536b81b3f4cb20db4668a4642 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=15 + - xorg-libx11 >=1.8.13,<2.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - xorg-libxext >=1.3.7,<2.0a0 + size: 53124 + timestamp: 1787100841900 +- conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxfixes-6.0.2-hb03c661_0.conda + sha256: 83c4c99d60b8784a611351220452a0a85b080668188dce5dfa394b723d7b64f4 + md5: ba231da7fccf9ea1e768caf5c7099b84 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - xorg-libx11 >=1.8.12,<2.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - xorg-libxfixes >=6.0.2,<7.0a0 + size: 20071 + timestamp: 1759282564045 +- conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxi-1.8.3-hb03c661_0.conda + sha256: 495f99c8eacfa4ae2d8fed2a7f2105777af89acdc204df145d2bbbc380ac631b + md5: adba2e334082bb218db806d4c12277c9 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - xorg-libx11 >=1.8.13,<2.0a0 + - xorg-libxext >=1.3.7,<2.0a0 + - xorg-libxfixes >=6.0.2,<7.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - xorg-libxi >=1.8.3,<2.0a0 + size: 47717 + timestamp: 1779111857071 +- conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxrandr-1.5.5-hb03c661_0.conda + sha256: 80ed047a5cb30632c3dc5804c7716131d767089f65877813d4ae855ee5c9d343 + md5: e192019153591938acf7322b6459d36e + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - xorg-libx11 >=1.8.12,<2.0a0 + - xorg-libxext >=1.3.6,<2.0a0 + - xorg-libxrender >=0.9.12,<0.10.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - xorg-libxrandr >=1.5.5,<2.0a0 + size: 30456 + timestamp: 1769445263457 +- conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxrender-0.9.12-hb03c661_1.conda + sha256: 6901f91d398811e4ec89d7e20a69abac02a7bfebfaf073338b7ea3d1a99685b7 + md5: e470d224a7a5be1b1d021bded7abb536 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=14 + - xorg-libx11 >=1.8.13,<2.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - xorg-libxrender >=0.9.12,<0.10.0a0 + size: 34645 + timestamp: 1787100191192 +- conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxscrnsaver-1.2.4-hb9d3cd8_0.conda + sha256: 58e8fc1687534124832d22e102f098b5401173212ac69eb9fd96b16a3e2c8cb2 + md5: 303f7a0e9e0cd7d250bb6b952cecda90 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 + - xorg-libx11 >=1.8.10,<2.0a0 + - xorg-libxext >=1.3.6,<2.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - xorg-libxscrnsaver >=1.2.4,<2.0a0 + size: 14412 + timestamp: 1727899730073 +- conda: https://conda.anaconda.org/conda-forge/linux-64/xorg-libxtst-1.2.5-hb9d3cd8_3.conda + sha256: 752fdaac5d58ed863bbf685bb6f98092fe1a488ea8ebb7ed7b606ccfce08637a + md5: 7bbe9a0cc0df0ac5f5a8ad6d6a11af2f + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 + - xorg-libx11 >=1.8.10,<2.0a0 + - xorg-libxext >=1.3.6,<2.0a0 + - xorg-libxi >=1.7.10,<2.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - xorg-libxtst >=1.2.5,<2.0a0 + size: 32808 + timestamp: 1727964811275 +- conda: https://conda.anaconda.org/conda-forge/linux-64/yaml-0.2.5-h280c20c_3.conda + sha256: 6d9ea2f731e284e9316d95fa61869fe7bbba33df7929f82693c121022810f4ad + md5: a77f85f77be52ff59391544bfe73390a + depends: + - libgcc >=14 + - __glibc >=2.17,<3.0.a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - yaml >=0.2.5,<0.3.0a0 + size: 85189 + timestamp: 1753484064210 +- conda: https://conda.anaconda.org/conda-forge/linux-64/zeromq-4.3.5-h09e67af_11.conda + sha256: dc9f28dedcb5f35a127fad2d847674d2833369dd616d294e423b8997df31d8a8 + md5: 96b08867e21d4694fa5c2c226e6581b0 + depends: + - libgcc >=14 + - __glibc >=2.17,<3.0.a0 + - libstdcxx >=14 + - krb5 >=1.22.2,<1.23.0a0 + - libsodium >=1.0.22,<1.0.23.0a0 + license: MPL-2.0 + license_family: MOZILLA + purls: [] + run_exports: + weak: + - zeromq >=4.3.5,<4.4.0a0 + size: 311184 + timestamp: 1779123989774 +- conda: https://conda.anaconda.org/conda-forge/linux-64/zstd-1.5.7-hb78ec9c_7.conda + sha256: 47d682b9f6d6ec9eb1a6e6c3e75ea6273e899e78fb7fc59f81d39745009fbc60 + md5: aa459086047c0e5e27023ab19f8cb86a + depends: + - __glibc >=2.17,<3.0.a0 + - libzlib >=1.3.2,<2.0a0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - zstd >=1.5.7,<1.6.0a0 + size: 601301 + timestamp: 1786599621503 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda + build_number: 20 + sha256: a2527b1d81792a0ccd2c05850960df119c2b6d8f5fdec97f2db7d25dc23b1068 + md5: 468fd3bb9e1f671d36c2cbc677e56f1d + depends: + - libgomp >=7.5.0 + constrains: + - openmp_impl <0.0a0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + strong: + - _openmp_mutex >=4.5 + size: 28926 + timestamp: 1770939656741 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/alsa-lib-1.2.16.1-he30d5cf_0.conda + sha256: 105e4c19cfa770affcb9a64b9d2451f406914cd09a67664009910869fa01a639 + md5: 5427b5dcb268bddf1a69c16d1cb77a47 + depends: + - libgcc >=14 + license: LGPL-2.1-or-later + license_family: LGPL + purls: [] + run_exports: + weak: + - alsa-lib >=1.2.16.1,<1.3.0a0 + size: 621865 + timestamp: 1781522013595 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/aom-3.14.1-pl5321h8fffa31_1.conda + sha256: a228f46f68fa3e2e50a09b5a4cefd1ee2c1ce868bfa2a288867b3d44b6e77427 + md5: a3c86229b531656c2bce99e8a6c6de4a + depends: + - libstdcxx >=14 + - libgcc >=14 + license: BSD-2-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - aom >=3.14.1,<3.15.0a0 + size: 4091040 + timestamp: 1780752489693 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/backports.zstd-1.7.0-py312h22d1088_0.conda + sha256: ca437dff643bdb17dcc433661650d83e6102b34ad52303af4fa2d5126af0144f + md5: cf9331987e4b79231565507322651487 + depends: + - python + - libgcc >=15 + - python_abi 3.12.* *_cp312 + - zstd >=1.5.7,<1.6.0a0 + license: BSD-3-Clause AND MIT AND EPL-2.0 + purls: + - pkg:pypi/backports-zstd?source=hash-mapping + run_exports: {} + size: 241995 + timestamp: 1786861408180 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/binutils_impl_linux-aarch64-2.46.1-default_h5f4c503_102.conda + sha256: eebe159bf600943552e4319ff4ce27b6a2dadf0dcc5443e76dcee9259a408e11 + md5: 58f37d76b8234c69dbf2939d511bea0b + depends: + - ld_impl_linux-aarch64 2.46.1 default_h1979696_102 + - sysroot_linux-aarch64 + - zstd >=1.5.7,<1.6.0a0 + license: GPL-3.0-only + license_family: GPL + purls: [] + run_exports: {} + size: 4677171 + timestamp: 1784214549910 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/binutils_linux-aarch64-2.46.1-default_hf1166c9_102.conda + sha256: d41099a3fe2809a3ab3e4c718ecff4d5f8879e7949f3c8e8efa97fa06a90248c + md5: 9a340123cb7217eae51c5cae24484631 + depends: + - binutils_impl_linux-aarch64 2.46.1 default_h5f4c503_102 + license: GPL-3.0-only + license_family: GPL + run_exports: {} + size: 36196 + timestamp: 1784214578949 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/brotli-python-1.2.0-py312h41c1d46_3.conda + sha256: 478ecfe797fc37e2e95093774810ce76d34c0738b2d08ac3e88cb342c88f1b75 + md5: 001b8b88d982096da52039fee68f47f1 + depends: + - libgcc >=15 + - libstdcxx >=15 + - python >=3.12,<3.13.0a0 + - python_abi 3.12.* *_cp312 + constrains: + - libbrotlicommon 1.2.0 h384ecca_3 + license: MIT + license_family: MIT + purls: + - pkg:pypi/brotli?source=hash-mapping + run_exports: {} + size: 367476 + timestamp: 1786622919850 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/bzip2-1.0.8-h4777abc_10.conda + sha256: 24eacc8a20fd7c4616566178562bef7f9344eb4a8700cfc3180fa75a6ff9d39f + md5: fd544ef1c672d645bf78e5819cbb8f91 + depends: + - libgcc >=14 + license: bzip2-1.0.6 + license_family: BSD + purls: [] + run_exports: + weak: + - bzip2 >=1.0.8,<2.0a0 + size: 194694 + timestamp: 1785906301397 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cairo-1.18.4-h0b6afd8_1.conda + sha256: 675db823f3d6fb6bf747fab3b0170ba99b269a07cf6df1e49fff2f9972be9cd1 + md5: 043c13ed3a18396994be9b4fab6572ad + depends: + - fontconfig >=2.15.0,<3.0a0 + - fonts-conda-ecosystem + - icu >=78.1,<79.0a0 + - libexpat >=2.7.3,<3.0a0 + - libfreetype >=2.14.1 + - libfreetype6 >=2.14.1 + - libgcc >=14 + - libglib >=2.86.3,<3.0a0 + - libpng >=1.6.53,<1.7.0a0 + - libstdcxx >=14 + - libxcb >=1.17.0,<2.0a0 + - libzlib >=1.3.1,<2.0a0 + - pixman >=0.46.4,<1.0a0 + - xorg-libice >=1.1.2,<2.0a0 + - xorg-libsm >=1.2.6,<2.0a0 + - xorg-libx11 >=1.8.12,<2.0a0 + - xorg-libxext >=1.3.6,<2.0a0 + - xorg-libxrender >=0.9.12,<0.10.0a0 + license: LGPL-2.1-only or MPL-1.1 + purls: [] + run_exports: + weak: + - cairo >=1.18.4,<2.0a0 + size: 927045 + timestamp: 1766416003626 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/conda-gcc-specs-16.1.0-h4acae54_2.conda + sha256: f2d7a32a681b9d76fa2d2195d1b83f54c8b62fee97bb4271420f180e6537d912 + md5: a05a8cdb0ef05a80c1dc98f6cdcd55a0 + depends: + - gcc_impl_linux-aarch64 >=16.1.0,<16.1.1.0a0 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: {} + size: 32280 + timestamp: 1787164611341 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-bindings-12.9.7-py312hdebd348_1.conda + sha256: 9f4878be4f23dda46fb4f0c6d93c9d23fae4771e973a567beac55ea637a1909b + md5: d328b89bcb5eb29857c00fddf4a25e52 + depends: + - python + - cuda-pathfinder >=1.5.5,<2 + - cuda-version >=12.2,<13.0a0 + - cuda-nvrtc >=12,<13.0a0 + - cuda-nvcc-impl >=12,<13.0a0 + - libcufile >=1,<2.0a0 + - libnvjitlink >=12.3,<13 + - libgcc >=14 + - python 3.12.* *_cpython + - libstdcxx >=14 + - python_abi 3.12.* *_cp312 + constrains: + - cuda-cudart >=12,<13.0a0 + - libnvfatbin >=12,<13.0a0 + license: LicenseRef-NVIDIA-SOFTWARE-LICENSE + purls: + - pkg:pypi/cuda-bindings?source=hash-mapping + run_exports: {} + size: 4646579 + timestamp: 1782355019087 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-crt-tools-12.9.86-h579c4fd_2.conda + sha256: dad493fdcef9a5b84269bdd22b5dfbe73300d99057f2fc1a1ad1114a944167c7 + md5: 6f66ef2abe496ac82066ea6b9f33ab90 + depends: + - arm-variant * sbsa + - cuda-version >=12.9,<12.10.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 29186 + timestamp: 1753975202369 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-12.9.79-h3ae8b8a_0.conda + sha256: 3d6699fc27ffabf28a9d359b48e7b88437e4d945844718a58608627998db5d1b + md5: df78e19e5fe656631d1470aa0fcf6ced + depends: + - arm-variant * sbsa + - cuda-cudart_linux-aarch64 12.9.79 h3ae8b8a_0 + - cuda-version >=12.9,<12.10.0a0 + - libgcc >=13 + - libstdcxx >=13 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 23466 + timestamp: 1749218349235 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-12.9.79-h3ae8b8a_0.conda + sha256: d70f85411992e03494f2fe94a9852d79f366a92f40ba791611eda5551044afe9 + md5: d58cc487273764a11637456c06399ff0 + depends: + - arm-variant * sbsa + - cuda-cudart 12.9.79 h3ae8b8a_0 + - cuda-cudart-dev_linux-aarch64 12.9.79 h3ae8b8a_0 + - cuda-cudart-static 12.9.79 h3ae8b8a_0 + - cuda-version >=12.9,<12.10.0a0 + - libgcc >=13 + - libstdcxx >=13 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: + weak: + - cuda-cudart >=12.9.79,<13.0a0 + size: 23911 + timestamp: 1749218369632 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-12.9.79-h3ae8b8a_0.conda + sha256: dac33edcebbf557563a41521f67961039186efbc276903d937b32243ef3be937 + md5: 365adcddf99b81eb323698fda31d507c + depends: + - arm-variant * sbsa + - cuda-cudart-static_linux-aarch64 12.9.79 h3ae8b8a_0 + - cuda-version >=12.9,<12.10.0a0 + - libgcc >=13 + - libstdcxx >=13 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 23507 + timestamp: 1749218358755 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvcc-impl-12.9.86-h614329b_2.conda + sha256: 60ca00b86a28f3f1abd080df6685c415a51f9a0267e65b3a56783b9b97265486 + md5: 7ad15773a6b7617fb36cc3d92034f3e9 + depends: + - arm-variant * sbsa + - cuda-cudart >=12.9.79,<13.0a0 + - cuda-cudart-dev + - cuda-nvcc-dev_linux-aarch64 12.9.86 h4310d6a_2 + - cuda-nvcc-tools 12.9.86 h614329b_2 + - cuda-nvvm-impl 12.9.86 h7b14b0b_2 + - cuda-version >=12.9,<12.10.0a0 + - libnvptxcompiler-dev 12.9.86 h579c4fd_2 + constrains: + - gcc_impl_linux-aarch64 >=6,<15.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 27322 + timestamp: 1753975427660 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvcc-tools-12.9.86-h614329b_2.conda + sha256: 1cc064e076c417bca2de7fb6ee28df0964cbad25eada2131a48b43ab36cdea33 + md5: ab332ca8da729b13bf7e5b0022c2702c + depends: + - arm-variant * sbsa + - cuda-crt-tools 12.9.86 h579c4fd_2 + - cuda-nvvm-tools 12.9.86 h7b14b0b_2 + - cuda-version >=12.9,<12.10.0a0 + - libgcc >=12 + - libstdcxx >=12 + constrains: + - gcc_impl_linux-aarch64 >=6,<15.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 23974390 + timestamp: 1753975366926 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-12.9.86-h8f3c8d4_1.conda + sha256: e7f8d835d7bf993dcad9fba6db5af89c35b2b4f0282799b729bf6ad2c3bd896d + md5: 48187c09673a42f9930764e8170b8787 + depends: + - arm-variant * sbsa + - cuda-version >=12.9,<12.10.0a0 + - libgcc >=14 + - libstdcxx >=14 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 33382016 + timestamp: 1760723722396 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-dev-12.9.86-h8f3c8d4_1.conda + sha256: b1d1a74cbbdcf46c4ee737279df3220eb7a29393999bc96b3c1398f7de78c912 + md5: 2346ee558cbfb7b857c8353ffc2553fa + depends: + - arm-variant * sbsa + - cuda-nvrtc 12.9.86 h8f3c8d4_1 + - cuda-version >=12.9,<12.10.0a0 + - libgcc >=14 + - libstdcxx >=14 + constrains: + - cuda-nvrtc-static >=12.9.86 + - arm-variant * sbsa + license: LicenseRef-NVIDIA-End-User-License-Agreement + run_exports: + weak: + - cuda-nvrtc >=12.9.86,<13.0a0 + size: 36250 + timestamp: 1760723865518 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-12.9.86-he9431aa_106.conda + sha256: 97bf1688e3847090d1c4193c39ca575a67e2183d0c20ddf8bcedc0f9d9528bbc + md5: 8ace2a8121a5f733a902822290aae11c + depends: + - cuda-nvvm-dev_linux-aarch64 12.9.86.* + - cuda-nvvm-impl 12.9.86.* + - cuda-nvvm-tools 12.9.86.* + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 25585 + timestamp: 1771619514901 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-12.9.86-h7b14b0b_2.conda + sha256: 100accfc6f608004ddef4b9004ee5179eddbac19e7d5c4c7bd5e6e8b71bd7c5d + md5: 8e9fceb7b677be7107cc9c20f8d71d86 + depends: + - arm-variant * sbsa + - cuda-version >=12.9,<12.10.0a0 + - libgcc >=12 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 21601172 + timestamp: 1753975236344 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-12.9.86-h7b14b0b_2.conda + sha256: f5cf91e491e150e37cd224fa648c07f6b1cd2cbfee5affba10625df7ba0b0425 + md5: 9a35dcda5573a713183f5159ec282364 + depends: + - arm-variant * sbsa + - cuda-version >=12.9,<12.10.0a0 + - libgcc >=12 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 24411824 + timestamp: 1753975273689 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-12.9.79-h16bee8c_1.conda + sha256: 6fa8a4d4548b114acd3c9849b65b5d9fcf1ca8f39cd2b792ce5167a51955100c + md5: 875bfddc9855f12e9f518ef8e44c2d85 + depends: + - arm-variant * sbsa + - cuda-cudart-dev + - cuda-version >=12.9,<12.10.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 23784 + timestamp: 1761098779882 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cython-3.2.9-py312hbda70bc_0.conda + sha256: 9c3df78ef64fc05aaf01b4d16ccefe25656b7aac677a3a9d5e89e0c462c65a2c + md5: 30984003a6a35ea7b9eedc979cf52c7e + depends: + - libgcc >=14 + - libstdcxx >=14 + - python >=3.12,<3.13.0a0 + - python_abi 3.12.* *_cp312 + license: Apache-2.0 + license_family: APACHE + purls: + - pkg:pypi/cython?source=hash-mapping + run_exports: {} + size: 3649707 + timestamp: 1785016066705 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cython-3.2.9-py314hc6b4731_0.conda + sha256: 84aebc300e4a0f4ea697d95ec97277301e83f0a457e61efb48b27a14cfb37bda + md5: 4a44c5167b358f22ae2cd89b07728797 + depends: + - libgcc >=14 + - libstdcxx >=14 + - python >=3.14,<3.15.0a0 + - python_abi 3.14.* *_cp314 + license: Apache-2.0 + license_family: APACHE + purls: + - pkg:pypi/cython?source=hash-mapping + run_exports: {} + size: 3741802 + timestamp: 1785016071504 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/dav1d-1.2.1-h31becfc_0.conda + sha256: 33fe66d025cf5bac7745196d1a3dd7a437abcf2dbce66043e9745218169f7e17 + md5: 6e5a87182d66b2d1328a96b61ca43a62 + depends: + - libgcc-ng >=12 + license: BSD-2-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - dav1d >=1.2.1,<1.2.2.0a0 + size: 347363 + timestamp: 1685696690003 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/dbus-1.16.2-h70963c4_1.conda + sha256: 3af801577431af47c0b72a82bb93c654f03072dece0a2a6f92df8a6802f52a22 + md5: a4b6b82427d15f0489cef0df2d82f926 + depends: + - libstdcxx >=14 + - libgcc >=14 + - libglib >=2.86.2,<3.0a0 + - libzlib >=1.3.1,<2.0a0 + - libexpat >=2.7.3,<3.0a0 + license: AFL-2.1 OR GPL-2.0-or-later + purls: [] + run_exports: + weak: + - dbus >=1.16.2,<2.0a0 + size: 480416 + timestamp: 1764536098891 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/debugpy-1.8.21-py312hf55c4e8_0.conda + sha256: 9d8a3442fae659629980c972b5f7ba8c2d339d233bd1de38ae72faf244cdc3a9 + md5: 228761e2c5f069dc8445337bd4abe097 + depends: + - python + - libgcc >=14 + - python 3.12.* *_cpython + - libstdcxx >=14 + - python_abi 3.12.* *_cp312 + license: MIT + license_family: MIT + purls: + - pkg:pypi/debugpy?source=hash-mapping + run_exports: {} + size: 2791691 + timestamp: 1780390168122 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ffmpeg-9.0.1-gpl_hcd1c4d7_900.conda + sha256: 2835138469d3bc5f06abe683f5f3df342fa4cefc8e1b7e4325b6d726d69d41ae + md5: 16df5bfde5557da591ed445804bc8f46 + depends: + - alsa-lib >=1.2.16.1,<1.3.0a0 + - aom >=3.14.1,<3.15.0a0 + - bzip2 >=1.0.8,<2.0a0 + - dav1d >=1.2.1,<1.2.2.0a0 + - fontconfig >=2.18.3,<3.0a0 + - fonts-conda-ecosystem + - gmp >=6.3.0,<7.0a0 + - lame >=4.0,<4.1.0a0 + - libass >=0.17.5,<0.17.6.0a0 + - libexpat >=2.8.1,<3.0a0 + - libfreetype >=2.14.3 + - libfreetype6 >=2.14.3 + - libgcc >=15 + - libharfbuzz >=14.3.0 + - libiconv >=1.18,<2.0a0 + - libjxl >=0.12.0,<0.13.0a0 + - liblzma >=5.8.3,<6.0a0 + - libopenvino >=2026.3.0,<2026.3.1.0a0 + - libopenvino-arm-cpu-plugin >=2026.3.0,<2026.3.1.0a0 + - libopenvino-auto-batch-plugin >=2026.3.0,<2026.3.1.0a0 + - libopenvino-auto-plugin >=2026.3.0,<2026.3.1.0a0 + - libopenvino-hetero-plugin >=2026.3.0,<2026.3.1.0a0 + - libopenvino-ir-frontend >=2026.3.0,<2026.3.1.0a0 + - libopenvino-onnx-frontend >=2026.3.0,<2026.3.1.0a0 + - libopenvino-paddle-frontend >=2026.3.0,<2026.3.1.0a0 + - libopenvino-pytorch-frontend >=2026.3.0,<2026.3.1.0a0 + - libopenvino-tensorflow-frontend >=2026.3.0,<2026.3.1.0a0 + - libopenvino-tensorflow-lite-frontend >=2026.3.0,<2026.3.1.0a0 + - libopus >=1.6.1,<2.0a0 + - libplacebo >=7.360.1,<7.361.0a0 + - librsvg >=2.62.3,<3.0a0 + - libstdcxx >=15 + - libvorbis >=1.3.7,<1.4.0a0 + - libvpx >=1.15.2,<1.16.0a0 + - libvulkan-loader >=1.4.357.0,<2.0a0 + - libwebp-base >=1.6.0,<2.0a0 + - libxcb >=1.17.0,<2.0a0 + - libxml2 + - libxml2-16 >=2.14.6 + - libzlib >=1.3.2,<2.0a0 + - openh264 >=2.6.0,<2.6.1.0a0 + - openssl >=3.5.7,<4.0a0 + - pulseaudio-client >=17.0,<17.1.0a0 + - sdl2 >=2.32.56,<3.0a0 + - svt-av1 >=4.2.0,<4.2.1.0a0 + - x264 >=1!164.3095,<1!165 + - x265 >=3.5,<3.6.0a0 + - xorg-libx11 >=1.8.13,<2.0a0 + constrains: + - __cuda >=12.8 + license: GPL-2.0-or-later + license_family: GPL + purls: [] + run_exports: + weak: + - ffmpeg >=9.0.1,<10.0a0 + size: 13191134 + timestamp: 1786704937927 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/fontconfig-2.18.3-ha4b22b4_1.conda + sha256: 5f7801b6044ff233943e68f5156d4987fe8447d1be9378fb5c67f7aa009a33e7 + md5: bb629904b3e9326efaa5c39c956f2b63 + depends: + - libexpat >=2.8.1,<3.0a0 + - libfreetype >=2.14.3 + - libfreetype6 >=2.14.3 + - libgcc >=15 + - libuuid >=2.42.2,<3.0a0 + - libzlib >=1.3.2,<2.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - fontconfig >=2.18.3,<3.0a0 + - fonts-conda-ecosystem + size: 304159 + timestamp: 1786667327378 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/freetype-2.14.3-h8af1aa0_2.conda + sha256: 7af9e368efdaf59e0709ae89c2e7f0ce0e1067a857958f367318ff3c27209a64 + md5: f5d76071be867597bab18a0e45d588e1 + depends: + - libfreetype 2.14.3 h8af1aa0_2 + - libfreetype6 2.14.3 h9cc7050_2 + license: GPL-2.0-only OR FTL + purls: [] + run_exports: + weak: + - libfreetype >=2.14.3 + - libfreetype6 >=2.14.3 + size: 174712 + timestamp: 1786640946309 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/fribidi-1.0.16-he30d5cf_1.conda + sha256: 0b11eca89f8143a1eed1cb64876c2015aaccc1e794394706dae2978dfdee148e + md5: a53fb4bfd0bc371eab779e79152fea74 + depends: + - libgcc >=14 + license: LGPL-2.1-or-later + purls: [] + run_exports: + weak: + - fribidi >=1.0.16,<2.0a0 + size: 63507 + timestamp: 1785912512987 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gcc-16.1.0-hfdd745d_2.conda + sha256: 7444174af15de9f6ab1cdcbb601a5c2d64529b1f2335b4f5d7033c3b93efd928 + md5: 6aff25b657edcba83b47e1f3df6de1d0 + depends: + - conda-gcc-specs + - gcc_impl_linux-aarch64 16.1.0 h998876f_2 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: {} + size: 29189 + timestamp: 1787164706844 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gcc_impl_linux-aarch64-16.1.0-h998876f_2.conda + sha256: 876c65381cfe670190d006e131c0d94d7afc56850ea77e4ca430cd9a42d97901 + md5: 9ae9626b6f170c73b7ad0b6d46962784 + depends: + - binutils_impl_linux-aarch64 >=2.46.1 + - libgcc >=16.1.0 + - libgcc-devel_linux-aarch64 16.1.0 hd673532_102 + - libgomp >=16.1.0 + - libsanitizer 16.1.0 h2510bd8_2 + - libstdcxx >=16.1.0 + - libstdcxx-devel_linux-aarch64 16.1.0 h2445e1f_102 + - sysroot_linux-aarch64 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: {} + size: 76690199 + timestamp: 1787164502217 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gcc_linux-aarch64-16.1.0-hed00b63_1.conda + sha256: 25616cffe3cf0d939909e9b53da7ffebcea9dda61e67e138e9b9a905f25a7eb5 + md5: 6975e69904faf9e23ffcbe59fa0d8861 + depends: + - gcc_impl_linux-aarch64 16.1.0.* + - binutils_linux-aarch64 + - sysroot_linux-aarch64 + license: BSD-3-Clause + license_family: BSD + run_exports: + strong: + - libgcc >=16 + size: 29527 + timestamp: 1787166199966 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gdk-pixbuf-2.44.8-hb26ce08_0.conda + sha256: 2b2e4c60a7699dca619cab6123486c058e75931d61cfa272b42be8d09b5fbfc1 + md5: 1290c220c77ac0d9ad15db64870023a7 + depends: + - libgcc >=15 + - libglib >=2.88.3,<3.0a0 + - libjpeg-turbo >=3.2.0,<4.0a0 + - liblzma >=5.8.3,<6.0a0 + - libpng >=1.6.58,<1.7.0a0 + - libtiff >=4.7.2,<4.8.0a0 + license: LGPL-2.1-or-later + license_family: LGPL + purls: [] + run_exports: + weak: + - gdk-pixbuf >=2.44.8,<3.0a0 + size: 581638 + timestamp: 1786717909641 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/glslang-16.5.0-hfeb5c2c_1.conda + sha256: ffddee19cabdba3835974f42def5339aa9edcdb36c7e178c42dceb3514769011 + md5: 3cf455cc596845f04200a6f2d67f4366 + depends: + - libgcc >=14 + - libstdcxx >=14 + - spirv-tools >=2026,<2027.0a0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - glslang >=16,<17.0a0 + size: 1398415 + timestamp: 1785879950902 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gmp-6.3.0-h4d6b352_3.conda + sha256: ab165962a7316f269a7bde936aa442bf69f0fed97a497e63ec28f366b4999037 + md5: ce2326e31df1913341036653e1c07baa + depends: + - libstdcxx >=14 + - libgcc >=14 + license: GPL-2.0-or-later OR LGPL-3.0-or-later + purls: [] + run_exports: + weak: + - gmp >=6.3.0,<7.0a0 + size: 457444 + timestamp: 1786629160018 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/graphite2-1.3.15-h7ac5ae9_1.conda + sha256: 5be01914b445dfbde85a4751b1d12b331740e7af68a86e4ef6313ab38a870fdd + md5: c5835ff5788e0d772d67a97bd5fe001b + depends: + - libstdcxx >=14 + - libgcc >=14 + license: LGPL-2.0-or-later + license_family: LGPL + purls: [] + run_exports: + weak: + - graphite2 >=1.3.15,<2.0a0 + size: 119414 + timestamp: 1786118514013 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/greenlet-3.5.5-py312hf55c4e8_0.conda + sha256: bb028656fcaf6b29afc51d51488c89948fe14142250d2531d1a239dcc951bf8d + md5: 9a2e24d7c7f65dd81e11ee404b2e5cef + depends: + - python + - python 3.12.* *_cpython + - libgcc >=14 + - libstdcxx >=14 + - python_abi 3.12.* *_cp312 + license: MIT + license_family: MIT + purls: + - pkg:pypi/greenlet?source=hash-mapping + run_exports: {} + size: 279798 + timestamp: 1786384055329 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gxx-16.1.0-hfdd745d_2.conda + sha256: ac8e591114228e96d55c6d0bfc30a2510ba94a0d9cbb86e60baf311e75b8382d + md5: 5c100a1b94ae399af55fa3d208468be1 + depends: + - conda-gcc-specs + - gcc 16.1.0 hfdd745d_2 + - gxx_impl_linux-aarch64 16.1.0 hd5c6868_2 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: {} + size: 28614 + timestamp: 1787164736946 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gxx_impl_linux-aarch64-16.1.0-hd5c6868_2.conda + sha256: 149b32c85faea366f09df9e20bba194a6455d0ad801a568b7857d1090dcf3bd5 + md5: 602150d91feb5a9ea227ad0722d7e982 + depends: + - gcc_impl_linux-aarch64 16.1.0 h998876f_2 + - libstdcxx-devel_linux-aarch64 16.1.0 h2445e1f_102 + - sysroot_linux-aarch64 + - tzdata + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: {} + size: 15360140 + timestamp: 1787164680765 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gxx_linux-aarch64-16.1.0-hdc5d2df_1.conda + sha256: b4437b50af3a08a90fed435769a37dc892dba8aafa11f2918a215c2aee17a0b3 + md5: 77bfa23b3b135380a0bed9d7a9d024fd + depends: + - gxx_impl_linux-aarch64 16.1.0.* + - gcc_linux-aarch64 ==16.1.0 hed00b63_1 + - binutils_linux-aarch64 + - sysroot_linux-aarch64 + license: BSD-3-Clause + license_family: BSD + run_exports: + strong: + - libstdcxx >=16 + - libgcc >=16 + size: 27954 + timestamp: 1787166199966 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/harfbuzz-14.3.1-h8af1aa0_0.conda + sha256: 91d714113121591adff3193d4de9aa57bc4c9fe3644514b344151f8f6576c1b7 + md5: 637aed5a74074c59107b6d0bb97d9266 + depends: + - libharfbuzz-devel 14.3.1 h8f7ccb3_0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libharfbuzz >=14.3.1 + size: 11103 + timestamp: 1786970826414 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/icu-78.3-py311h3512406_2.conda + sha256: 54d921defd947adb58a90e10203d3bfe6c1f209f5f1a1ad2c6a9f7617f2fb59e + md5: b35bbb1b957440ed742f35fb96eb7f1c + depends: + - libgcc >=14 + - libstdcxx >=14 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - icu >=78.3,<79.0a0 + size: 14688525 + timestamp: 1786545779464 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/keyutils-1.6.3-h5bc82ec_1.conda + sha256: 3999b1472f1e549a0b766428e2823abf20626aac5314b474c9b76bf6eb679def + md5: 6d9be306ecb8dfc9ff46f02cb367d5c2 + depends: + - libgcc >=15 + license: LGPL-2.1-or-later + purls: [] + run_exports: + weak: + - keyutils >=1.6.3,<2.0a0 + size: 129546 + timestamp: 1786739205968 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/krb5-1.22.2-h095d8e5_2.conda + sha256: 601d79af94d9562ba70e2d4947034ba159aae293a3c860855335a7c76c14400e + md5: a4d0da122ba952abf76981e76d0d283c + depends: + - keyutils >=1.6.3,<2.0a0 + - libedit >=3.1.20250104,<3.2.0a0 + - libedit >=3.1.20250104,<4.0a0 + - libgcc >=15 + - libstdcxx >=15 + - openssl >=3.5.7,<4.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - krb5 >=1.22.2,<1.23.0a0 + size: 1538590 + timestamp: 1786762058856 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/lame-4.0-h7ce06ba_1.conda + sha256: ba9cc2ae7c2b60259fb94a607e59a2b3a04b3e186d333e2dbdc619f59a891464 + md5: 1ad30e9af2941ff12351f17d33ec1acb + depends: + - libgcc >=14 + - mpg123 >=1.33.7,<1.34.0a0 + license: LGPL-2.0-only + license_family: LGPL + purls: [] + run_exports: + weak: + - lame >=4.0,<4.1.0a0 + size: 335199 + timestamp: 1786292484241 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/lcms2-2.19.1-h9d5b58d_1.conda + sha256: ed213207bbf11663181941e0931caa9ce748f0544688e8e0fbcf330bca279389 + md5: 9183fda4be2b4ee5760cdb8e540439c8 + depends: + - libgcc >=14 + - libjpeg-turbo >=3.1.4.1,<4.0a0 + - libtiff >=4.7.1,<4.8.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - lcms2 >=2.19.1,<3.0a0 + size: 296564 + timestamp: 1780211834883 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ld_impl_linux-aarch64-2.46.1-default_h1979696_102.conda + sha256: 2c4901f4227b0850328ed0c69f958b30ad2cd18982f7a31c7c1f911827004d08 + md5: 489444d0acb2a579d2a002d85a08c059 + depends: + - zstd >=1.5.7,<1.6.0a0 + constrains: + - binutils_impl_linux-aarch64 2.46.1 + license: GPL-3.0-only + license_family: GPL + purls: [] + run_exports: {} + size: 905305 + timestamp: 1784214534868 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/lerc-4.2.0-h52b7260_0.conda + sha256: 0176a71d64fcb5aec43c9e8ab4ae72faa6c6b0b1cda8f40b65e19429ce13c84d + md5: 9fcfe6be4f752b72be7abc69842ca396 + depends: + - libgcc >=14 + - libstdcxx >=14 + license: Apache-2.0 + license_family: Apache + purls: [] + run_exports: + weak: + - lerc >=4.2.0,<5.0a0 + size: 244850 + timestamp: 1785038308130 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libabseil-20260526.0-cxx17_h6983b43_1.conda + sha256: 51f53ae6266889f0972a10c2773465da5554fdf55ac15b9dea3e7f77520022d9 + md5: d8637f7cc7143fe4ad2eceac8e8cf033 + depends: + - libgcc >=14 + - libstdcxx >=14 + constrains: + - abseil-cpp =20260526.0 + - libabseil-static =20260526.0=cxx17* + license: Apache-2.0 + license_family: Apache + purls: [] + run_exports: + weak: + - libabseil >=20260526.0,<20260527.0a0 + - libabseil =*=cxx17* + size: 1457025 + timestamp: 1780524543286 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libass-0.17.5-hac26362_0.conda + sha256: e6029ed8232ea197f54ffffb7701b85ae1ee2850d44699d9554fadb95c578bd7 + md5: 00b2bb0ddef69e0fe6d42aff08abeaec + depends: + - libgcc >=14 + - libfreetype >=2.14.3 + - libfreetype6 >=2.14.3 + - fontconfig >=2.18.1,<3.0a0 + - fonts-conda-ecosystem + - fribidi >=1.0.16,<2.0a0 + - libiconv >=1.18,<2.0a0 + - harfbuzz >=14.2.1 + - libzlib >=1.3.2,<2.0a0 + license: ISC + purls: [] + run_exports: + weak: + - libass >=0.17.5,<0.17.6.0a0 + size: 178938 + timestamp: 1782298717792 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libblas-3.11.0-9_haddc8a3_openblas.conda + build_number: 9 + sha256: 5ad8fda537086a842379b7eb8d67770674e3c3afa66b09690ed62b54439fc227 + md5: c2d360534e0377666eaf8f86e605511c + depends: + - libopenblas >=0.3.34,<0.3.35.0a0 + - libopenblas >=0.3.34,<1.0a0 + constrains: + - blas 2.309 openblas + - libcblas 3.11.0 9*_openblas + - liblapack 3.11.0 9*_openblas + - liblapacke 3.11.0 9*_openblas + - mkl <2027 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libblas >=3.11.0,<4.0a0 + size: 18024 + timestamp: 1786058936290 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libbrotlicommon-1.2.0-h384ecca_3.conda + sha256: e81f38af3387620c4afb3769e668ecfb5bf9426bd9fd9db8a70d071ca4477b1f + md5: d0d4029ed32776dce412334e0f1c6160 + depends: + - libgcc >=15 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libbrotlicommon >=1.2.0,<1.3.0a0 + size: 80692 + timestamp: 1786622718545 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libbrotlidec-1.2.0-h011f0d3_3.conda + sha256: a2e41f51d4f05bd96b1148c35882a880e85f2b316f238a32d657d908b928aae6 + md5: 8c25aeafcbf1629c1e39ee7c03e77c93 + depends: + - libbrotlicommon 1.2.0 h384ecca_3 + - libgcc >=15 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libbrotlidec >=1.2.0,<1.3.0a0 + size: 33949 + timestamp: 1786622726640 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libbrotlienc-1.2.0-hb247b97_3.conda + sha256: 4173e5c4d42bf08a9fc751914122acb87f6a565563cc11e8e896f2fa0dcd2ce9 + md5: 35f63f9c1202a85c121dbe40657612af + depends: + - libbrotlicommon 1.2.0 h384ecca_3 + - libgcc >=15 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libbrotlienc >=1.2.0,<1.3.0a0 + size: 348164 + timestamp: 1786622734798 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcap-2.78-hfcc8634_1.conda + sha256: 6487e7644d062e18d389c11a9a3183e5a71c2652d05fdd88dbd063ad09f7ad4b + md5: 5e347c665a310b4c148bbb02596ae0c3 + depends: + - libgcc >=14 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libcap >=2.78,<2.79.0a0 + size: 108530 + timestamp: 1786025925536 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcblas-3.11.0-9_hd72aa62_openblas.conda + build_number: 9 + sha256: 9e83c59429296818e7111a9f80f29c2c8a1e5ab9ae2d59aec8e67af9b87ac923 + md5: 1ff91e2252ca15db87a27b7b3ff280ae + depends: + - libblas 3.11.0 9_haddc8a3_openblas + constrains: + - blas 2.309 openblas + - liblapack 3.11.0 9*_openblas + - liblapacke 3.11.0 9*_openblas + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libcblas >=3.11.0,<4.0a0 + size: 17977 + timestamp: 1786058941306 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.14.1.1-had8bf56_1.conda + sha256: fbc1fa6b3ddf946b2999c9820310682739505df71e1e2ac513a72efb951fa3e5 + md5: ee136db5a5409dddc78eaf7658fccffe + depends: + - __glibc >=2.28,<3.0.a0 + - arm-variant * sbsa + - cuda-version >=12.9,<12.10.0a0 + - libgcc >=14 + - libstdcxx >=14 + - rdma-core >=59.0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 909365 + timestamp: 1761098964619 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-dev-1.14.1.1-he38c790_1.conda + sha256: 1d20ed52cd0a08fae11bdfba5762c50864651860f0d9f02ecf0eaed37a573a83 + md5: 7c4d86e9dd8643ed77ba3c918637bb3e + depends: + - __glibc >=2.28,<3.0.a0 + - arm-variant * sbsa + - cuda-version >=12.9,<12.10.0a0 + - libcufile 1.14.1.1 had8bf56_1 + - libgcc >=14 + - libstdcxx >=14 + constrains: + - libcufile-static >=1.14.1.1 + license: LicenseRef-NVIDIA-End-User-License-Agreement + run_exports: + weak: + - libcufile >=1.14.1.1,<2.0a0 + size: 36798 + timestamp: 1761098993768 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libdeflate-1.25-hfa851ae_1.conda + sha256: 4cb3da1d4ce7540604219d2a016253777da66c1a710c41557bc708aae7f54a75 + md5: 8cdf7f7e4908c9b2cf50c58966f2ff64 + depends: + - libgcc >=14 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libdeflate >=1.25,<1.26.0a0 + size: 71628 + timestamp: 1785908730449 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libdovi-3.4.0-hf71c8f5_0.conda + sha256: d12c0db93410085c827587352f05b24ba56ac786285752a4b2aba59309b09832 + md5: 318831d864fbd3a513d71bb0db5ff9e6 + depends: + - libgcc >=14 + constrains: + - __glibc >=2.17 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libdovi >=3.4.0,<4.0a0 + size: 408693 + timestamp: 1784281571706 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libdrm-2.4.129-h5bc82ec_0.conda + sha256: 2a0ee6c7648de5a5b7de2b861aa1aba01c860218f8b97af63ac6c81b0175b960 + md5: 3f34f401fa04c0ad38ff15b046c20596 + depends: + - libgcc >=15 + - libpciaccess >=0.19,<0.20.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libdrm >=2.4.129,<2.5.0a0 + size: 346564 + timestamp: 1786684730263 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libedit-3.1.20250104-pl5321hc48eb74_1.conda + sha256: 2d7218da06f1121619335bff25a2669df810dee90d2eb65b17f8b2e6b1c0d372 + md5: 6e06eb2c9fda76721699bcdd759b9c60 + depends: + - ncurses + - libgcc >=14 + - ncurses >=6.6,<7.0a0 + license: BSD-2-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libedit >=3.1.20250104,<3.2.0a0 + size: 149007 + timestamp: 1786616643904 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libegl-1.7.0-hd24410f_3.conda + sha256: b987d3874edfcd9c7ddca86c003cb04ae51160a72c173a24cd46ab9eeb8886ab + md5: ec017f25e5d01ef9dd81e95ff73ff051 + depends: + - libglvnd 1.7.0 hd24410f_3 + license: LicenseRef-libglvnd + purls: [] + run_exports: {} + size: 54600 + timestamp: 1779728234591 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libexpat-2.8.1-hfae3067_1.conda + sha256: 20a5726bc8705d91437c9e6ef83b30da64a1719b869656d20a1ee818333ea5ac + md5: fac3b65a605cd253037fdf3daf2de8d9 + depends: + - libgcc >=14 + constrains: + - expat 2.8.1.* + license: MIT + license_family: MIT + purls: [] + run_exports: {} + size: 77649 + timestamp: 1781203572523 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libexpat-2.9.0-h4154aff_0.conda + sha256: d3327ab1086334309cab3cf533c95f70c44dcbb8f66a99a92b23fb0f3f20f1da + md5: cb3ce9ae94bc74f792c119312e03bcf7 + depends: + - libgcc >=15 + constrains: + - expat 2.9.0.* + license: MIT + license_family: MIT + purls: [] + run_exports: {} + size: 80340 + timestamp: 1793054214232 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libffi-3.7.0-h376a255_0.conda + sha256: c95b5b5fc13c8d7af2a9908e6c64844f48787a7631f8abcde1813dc21b3b079e + md5: 81aedbde3ea118c602e8b289bf565ac5 + depends: + - libgcc >=14 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libffi >=3.7.0,<3.8.0a0 + size: 63746 + timestamp: 1783520889209 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libflac-1.5.0-he9c94f4_1.conda + sha256: 175cdc1865c3d6becc87e96bf44010a8e14f3021600ddad59417ed36e677b1ea + md5: cbe37f1d15f60b5e5272955b55b65325 + depends: + - libgcc >=14 + - libiconv >=1.18,<2.0a0 + - libogg >=1.3.5,<1.4.0a0 + - libstdcxx >=14 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libflac >=1.5.0,<1.6.0a0 + size: 397272 + timestamp: 1764526699497 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libfreetype-2.14.3-h8af1aa0_2.conda + sha256: 1e6ba895a397ee4fc1646f21000903ad13d93e9e6d9a7fb4dcef1baa837970bf + md5: 9d7e520ae06d08185ef2d500ff116d30 + depends: + - libfreetype6 >=2.14.3 + license: GPL-2.0-only OR FTL + purls: [] + run_exports: {} + size: 8409 + timestamp: 1786640943558 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libfreetype6-2.14.3-h9cc7050_2.conda + sha256: d29eac57042f2362d4e45c63a4a78d64a30e5284b1da29b99e0c1526671dd4c3 + md5: f7ee9de31f98281a3e451e496fbee3b5 + depends: + - libgcc >=15 + - libpng >=1.6.58,<1.7.0a0 + - libzlib >=1.3.2,<2.0a0 + constrains: + - freetype >=2.14.3 + license: GPL-2.0-only OR FTL + purls: [] + run_exports: {} + size: 445035 + timestamp: 1786640942903 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgcc-16.1.0-h205dda4_2.conda + sha256: 8f67a9b2ca7814b9480907bc9875f9643e0880e1a190bede54db88a02eeac76c + md5: 73685f300c39141946aa83a3b283c238 + depends: + - _openmp_mutex >=4.5 + constrains: + - libgcc-ng ==16.1.0=*_2 + - libgomp 16.1.0 h8acb6b2_2 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: {} + size: 627721 + timestamp: 1787164430390 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgcc-ng-16.1.0-he9431aa_2.conda + sha256: b02d2865d2021e9bf1e945e9e7f3159c6c6e435e2f931e0834c18107941d7e7a + md5: dbfad493f04404a02f6e67370483d17e + depends: + - libgcc 16.1.0 h205dda4_2 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: + strong: + - libgcc + size: 28219 + timestamp: 1787164434239 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgfortran-16.1.0-he9431aa_2.conda + sha256: 82e0e0a77afb7c2fe1eef9128e2b2fc9ce1d23f6ce3340685610d468f222cae8 + md5: 3b93b41efc143168edf2946f146ce11d + depends: + - libgfortran5 16.1.0 h47adacf_2 + constrains: + - libgfortran-ng ==16.1.0=*_2 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: {} + size: 28172 + timestamp: 1787164456115 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgfortran5-16.1.0-h47adacf_2.conda + sha256: 34b76bdabf1e75032802ab28b222226c630b5bb33cbcf37f019e89d805837e78 + md5: 10bf62128b3a5bd7388fa2b0749de565 + depends: + - libgcc >=16.1.0 + constrains: + - libgfortran 16.1.0 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: {} + size: 1495125 + timestamp: 1787164440512 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgl-1.7.0-hd24410f_3.conda + sha256: 05c75a2034bdbca29bab467d02ad770ed5e524e4f0670432258f2d8487c95348 + md5: 6e893c36f31502dd195d3d58f455fdbd + depends: + - libglvnd 1.7.0 hd24410f_3 + - libglx 1.7.0 hd24410f_3 + license: LicenseRef-libglvnd + purls: [] + run_exports: {} + size: 148112 + timestamp: 1779728248678 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libglib-2.88.3-had1c41b_1.conda + sha256: 0f8a6e2346540a7cbbd3bfb41395385190821247b9f8003859089ea3c2b623c2 + md5: 11f141ce3aca0b2a07cd5bc07e6072f6 + depends: + - libgcc >=14 + - libffi >=3.7.0,<3.8.0a0 + - libiconv >=1.18,<2.0a0 + - libzlib >=1.3.2,<2.0a0 + - pcre2 >=10.47,<10.48.0a0 + constrains: + - glib >2.66 + license: LGPL-2.1-or-later + purls: [] + run_exports: + weak: + - libglib >=2.88.3,<3.0a0 + size: 4945329 + timestamp: 1786457675064 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libglvnd-1.7.0-hd24410f_3.conda + sha256: ca124e53765a2b123e0ca6ce809c7caf188bb26e5fe125b69099378276d5e66f + md5: a2ad848c0aab2e326c6af08ea20502f4 + license: LicenseRef-libglvnd + purls: [] + run_exports: {} + size: 146645 + timestamp: 1779728228274 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libglx-1.7.0-hd24410f_3.conda + sha256: 2698b415b9f7b692cd64e34db623e1a6e54ed54e78b0b4e5d4ea6762791e9118 + md5: 338faf34b78d053841098c0528699e34 + depends: + - libglvnd 1.7.0 hd24410f_3 + - xorg-libx11 >=1.8.13,<2.0a0 + license: LicenseRef-libglvnd + purls: [] + run_exports: {} + size: 76704 + timestamp: 1779728242753 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgomp-16.1.0-h8acb6b2_2.conda + sha256: c47d48956ab7b399744ae363509dc644ac614b0ad9c000beaeeea8b1c6e258e3 + md5: 8d427a4d1a086922e2e1cd536b9c63cf + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: + strong: + - _openmp_mutex >=4.5 + size: 617395 + timestamp: 1787164364894 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libharfbuzz-14.3.1-h8f7ccb3_0.conda + sha256: 7bd39d90363ac1b1f51a48510eb624bd053520ba0fefa656e717388bae3c6a7c + md5: ea9294a2b068d982e9e8ef4e7c48f7ac + depends: + - cairo >=1.18.4,<2.0a0 + - graphite2 >=1.3.15,<2.0a0 + - icu >=78.3,<79.0a0 + - libfreetype >=2.14.3 + - libfreetype6 >=2.14.3 + - libgcc >=15 + - libglib >=2.88.3,<3.0a0 + - libpng >=1.6.58,<1.7.0a0 + - libstdcxx >=15 + - libzlib >=1.3.2,<2.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: {} + size: 1407242 + timestamp: 1786970801231 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libharfbuzz-devel-14.3.1-h8f7ccb3_0.conda + sha256: f750ba44b7e2519dcd72450ca78d804d37f027f0b7930400003096bcda68be04 + md5: e432909c0984c98b6ce080657c6928ca + depends: + - cairo >=1.18.4,<2.0a0 + - freetype + - graphite2 >=1.3.15,<2.0a0 + - icu >=78.3,<79.0a0 + - libfreetype >=2.14.3 + - libfreetype6 >=2.14.3 + - libgcc >=15 + - libglib >=2.88.3,<3.0a0 + - libharfbuzz 14.3.1 h8f7ccb3_0 + - libpng >=1.6.58,<1.7.0a0 + - libstdcxx >=15 + - libzlib >=1.3.2,<2.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libharfbuzz >=14.3.1 + size: 2162092 + timestamp: 1786970819598 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libhwloc-2.13.0-default_ha95e27d_1000.conda + sha256: 88888d99e81c93e7331f2eb0fec08b3c4a47a1bfa1c88b3e641f6568569b6261 + md5: 974183f6420938051e2f3208922d057f + depends: + - libgcc >=14 + - libstdcxx >=14 + - libxml2 + - libxml2-16 >=2.14.6 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libhwloc >=2.13.0,<2.13.1.0a0 + size: 2453519 + timestamp: 1770953713701 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libhwy-1.4.0-h9b45113_0.conda + sha256: 6583ca6181e2c70367a62951fb7e82fd63048ab667af3c254ca3ba35a8ea2a0c + md5: 321d06ae401d0f7face5326d78f84fc8 + depends: + - libgcc >=14 + - libstdcxx >=14 + license: Apache-2.0 OR BSD-3-Clause + purls: [] + run_exports: + weak: + - libhwy >=1.4.0,<1.5.0a0 + size: 947179 + timestamp: 1784325595902 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libiconv-1.18-h1ea5142_3.conda + sha256: d22c666eb887afd2119aac2110e23a0e817e9391bda99293421f7c46dab1564c + md5: 951b54a36388613a99820b33b997f690 + depends: + - libgcc >=15 + license: LGPL-2.1-only + purls: [] + run_exports: + weak: + - libiconv >=1.18,<2.0a0 + size: 785924 + timestamp: 1787033793216 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libjpeg-turbo-3.2.0-he30d5cf_1.conda + sha256: c5626ea672be2e59784f9be20dc8ceb7961b8ab0053651ded2dffec64e4b8245 + md5: 8730e25aa7eab80ca86dfb9a6bedf1ba + depends: + - libgcc >=14 + constrains: + - jpeg <0.0.0a + license: IJG AND BSD-3-Clause AND Zlib + purls: [] + run_exports: + weak: + - libjpeg-turbo >=3.2.0,<4.0a0 + size: 716519 + timestamp: 1785896318334 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libjxl-0.12.0-h7a31cfc_2.conda + sha256: 9769e5deda696c88c5d3a2e137af13db7934e4f7231dfd92527e683f76d874bf + md5: 6053b222ea74b7f6d04d770d85d62948 + depends: + - libgcc >=15 + - libstdcxx >=15 + - libbrotlienc >=1.2.0,<1.3.0a0 + - libbrotlidec >=1.2.0,<1.3.0a0 + - libhwy >=1.4.0,<1.5.0a0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libjxl >=0.12.0,<0.13.0a0 + size: 2171868 + timestamp: 1786691386840 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/liblapack-3.11.0-9_h88aeb00_openblas.conda + build_number: 9 + sha256: 562077bf38f962f6b80ec4e021bd2328f603ce0b112d3045b3f3b37f1a110f73 + md5: c560d88ddee90ba4120ac63eda69fbee + depends: + - libblas 3.11.0 9_haddc8a3_openblas + constrains: + - blas 2.309 openblas + - libcblas 3.11.0 9*_openblas + - liblapacke 3.11.0 9*_openblas + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - liblapack >=3.11.0,<3.12.0a0 + size: 18007 + timestamp: 1786058945578 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/liblzma-5.8.3-he30d5cf_1.conda + sha256: f760669fd1cea27f689f411c0d5488e26ce50e382c9b63e4ad348f959850124a + md5: e0e6411a60d00186eec7c73f4118ab67 + depends: + - libgcc >=14 + constrains: + - xz 5.8.3.* + license: 0BSD + purls: [] + run_exports: + weak: + - liblzma >=5.8.3,<6.0a0 + size: 125578 + timestamp: 1786348561649 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libmpdec-4.0.0-he30d5cf_2.conda + sha256: 5d6621a2229777824386164b40c67ff804fe98dd4165354cf73ee73e282a2adf + md5: eaaaec4776cd8a7b987c4b1782220141 + depends: + - libgcc >=14 + license: BSD-2-Clause + license_family: BSD + purls: [] + run_exports: {} + size: 113885 + timestamp: 1786650485380 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnl-3.11.0-he30d5cf_1.conda + sha256: d5a50ee7a82e8fb98069b51af2e28a2360cd9f67c3fb4376ecea75598f0c3ef6 + md5: 649b8ed2e7639550c891f875dfb01e88 + depends: + - libgcc >=14 + license: LGPL-2.1-or-later + license_family: LGPL + purls: [] + run_exports: + weak: + - libnl >=3.11.0,<4.0a0 + size: 743370 + timestamp: 1787038306943 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnsl-2.0.1-h86ecc28_1.conda + sha256: c0dc4d84198e3eef1f37321299e48e2754ca83fd12e6284754e3cb231357c3a5 + md5: d5d58b2dc3e57073fe22303f5fed4db7 + depends: + - libgcc >=13 + license: LGPL-2.1-only + license_family: GPL + purls: [] + run_exports: + weak: + - libnsl >=2.0.1,<2.1.0a0 + size: 34831 + timestamp: 1750274211000 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvfatbin-12.9.82-h8f3c8d4_2.conda + sha256: 11a041920935c01fce0cc351f5db4157a3154e9a1aa3cfec29a707fb44c9a112 + md5: 230f26daf9cfcf4a4185c0c6f9cbdcb2 + depends: + - arm-variant * sbsa + - cuda-version >=12,<12.10.0a0 + - libgcc >=14 + - libstdcxx >=14 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 771344 + timestamp: 1782920321153 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvjitlink-12.9.86-h8f3c8d4_2.conda + sha256: d5ff36f46250069a23b18d557052c6656f40a002333885e8c5332071e873b48e + md5: e318a6573fea150226d5f417d1c0807a + depends: + - arm-variant * sbsa + - cuda-version >=12,<12.10.0a0 + - libgcc >=14 + - libstdcxx >=14 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 30323952 + timestamp: 1760723774770 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnvptxcompiler-dev-12.9.86-h579c4fd_2.conda + sha256: 20cc92d163571b6d67efcfcb05dec042916219f29846152fdb696d499fa9fade + md5: 096a5f4ddc263418d1b8160413a16c61 + depends: + - arm-variant * sbsa + - cuda-version >=12.9,<12.10.0a0 + - libnvptxcompiler-dev_linux-aarch64 12.9.86 h579c4fd_2 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 27138 + timestamp: 1753975408006 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libogg-1.3.5-h86ecc28_1.conda + sha256: 2c1b7c59badc2fd6c19b6926eabfce906c996068d38c2972bd1cfbe943c07420 + md5: 319df383ae401c40970ee4e9bc836c7a + depends: + - libgcc >=13 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libogg >=1.3.5,<1.4.0a0 + size: 220653 + timestamp: 1745826021156 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenblas-0.3.34-pthreads_h9d3fd7e_0.conda + sha256: 0905b8acaff83558e5007351b2de329ce212ef5acbd595fcc22bb7fa1592f277 + md5: c37ba01d9ab7bfaf5f5dddc5d8807454 + depends: + - libgcc >=14 + - libgfortran + - libgfortran5 >=14.3.0 + constrains: + - openblas >=0.3.34,<0.3.35.0a0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libopenblas >=0.3.34,<1.0a0 + size: 5332045 + timestamp: 1784287139395 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-2026.3.0-h18f7da6_0.conda + sha256: 5f32dae84af50d6c827e86a9ff69347b6c729fb48bf34eec45a2f75991c28599 + md5: 7f5cb1ec2d79862c25b3655c4a4be134 + depends: + - libgcc >=14 + - libstdcxx >=14 + - pugixml >=1.15,<1.16.0a0 + - tbb >=2023.0.0 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: + weak: + - libopenvino >=2026.3.0,<2026.3.1.0a0 + size: 6104414 + timestamp: 1786125970101 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-arm-cpu-plugin-2026.3.0-h18f7da6_0.conda + sha256: b91dcebd6ea2236d413d3f026e738b1d35f57099351e9137b8d0242739f836ba + md5: 42e7705ae0c0a42fd37a15685a88e94b + depends: + - libgcc >=14 + - libopenvino 2026.3.0 h18f7da6_0 + - libstdcxx >=14 + - pugixml >=1.15,<1.16.0a0 + - tbb >=2023.0.0 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: {} + size: 10459044 + timestamp: 1786125988568 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-auto-batch-plugin-2026.3.0-ha92a2b9_0.conda + sha256: eb1723d1a4ca78d34470856e3b95ad30a534085a219e85149ef2c679d7fdfbdf + md5: f08c3480f8a916cbd483d0d11217b230 + depends: + - libgcc >=14 + - libopenvino 2026.3.0 h18f7da6_0 + - libstdcxx >=14 + - tbb >=2023.0.0 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: {} + size: 111414 + timestamp: 1786126017105 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-auto-plugin-2026.3.0-ha92a2b9_0.conda + sha256: 7476b8c0b95c965b3544504b647e0528df00816286cdef53befbd5ca161cfa0a + md5: 6825f08ddc3d38d95f878ef6780e73c3 + depends: + - libgcc >=14 + - libopenvino 2026.3.0 h18f7da6_0 + - libstdcxx >=14 + - tbb >=2023.0.0 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: {} + size: 238304 + timestamp: 1786126025324 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-hetero-plugin-2026.3.0-h243f116_0.conda + sha256: e4320c205324a4801ec98f95f73a1efa8d264a30e4e4f005e2926bba1f0b2819 + md5: 357a4baccc99198573cb355aeeac4038 + depends: + - libgcc >=14 + - libopenvino 2026.3.0 h18f7da6_0 + - libstdcxx >=14 + - pugixml >=1.15,<1.16.0a0 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: {} + size: 215728 + timestamp: 1786126033594 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-ir-frontend-2026.3.0-h243f116_0.conda + sha256: 8e1dc24d203f08f0143be45ed9852bc3a5897025d2608b856852ad4e8ea8ec79 + md5: 0de93b8b53792b7213e5c3591cccad16 + depends: + - libgcc >=14 + - libopenvino 2026.3.0 h18f7da6_0 + - libstdcxx >=14 + - pugixml >=1.15,<1.16.0a0 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: + weak: + - libopenvino-ir-frontend >=2026.3.0,<2026.3.1.0a0 + size: 198176 + timestamp: 1786126041827 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-onnx-frontend-2026.3.0-hfb90a0c_0.conda + sha256: 9fcaec775c835ef474af83bc9749789794b2d3c2e17643a067f18969c8c2fb44 + md5: c88bee2c416f893f97892da5ca3a71c1 + depends: + - libabseil * cxx17* + - libabseil >=20260526.0,<20260527.0a0 + - libgcc >=14 + - libopenvino 2026.3.0 h18f7da6_0 + - libprotobuf >=7.35.1,<7.35.2.0a0 + - libstdcxx >=14 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: + weak: + - libopenvino-onnx-frontend >=2026.3.0,<2026.3.1.0a0 + size: 1917529 + timestamp: 1786126051250 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-paddle-frontend-2026.3.0-hfb90a0c_0.conda + sha256: f07338ccb931d31b9965ff9af9b33f3403a9c2c76e40d400117f8a489286eba7 + md5: 4ac0a8ea5ddc667bd982f80afb2a9b26 + depends: + - libabseil * cxx17* + - libabseil >=20260526.0,<20260527.0a0 + - libgcc >=14 + - libopenvino 2026.3.0 h18f7da6_0 + - libprotobuf >=7.35.1,<7.35.2.0a0 + - libstdcxx >=14 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: + weak: + - libopenvino-paddle-frontend >=2026.3.0,<2026.3.1.0a0 + size: 646503 + timestamp: 1786126061713 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-pytorch-frontend-2026.3.0-ha85bb2c_0.conda + sha256: a3934264c40091bfa0f4714bb05fd15e1f41000cd4d99cf45c3632bc6f25e682 + md5: fabb410e39ca81c5885ebb9cca146310 + depends: + - libgcc >=14 + - libopenvino 2026.3.0 h18f7da6_0 + - libstdcxx >=14 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: + weak: + - libopenvino-pytorch-frontend >=2026.3.0,<2026.3.1.0a0 + size: 1136280 + timestamp: 1786126070349 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-tensorflow-frontend-2026.3.0-hba97658_0.conda + sha256: 41e9c88bc1dfcce23c6ac5cf71f54775adb64fe0717bda194b674ebc478d557d + md5: 02b09a9bbd116e7d83849eda44b116a4 + depends: + - libabseil * cxx17* + - libabseil >=20260526.0,<20260527.0a0 + - libgcc >=14 + - libopenvino 2026.3.0 h18f7da6_0 + - libprotobuf >=7.35.1,<7.35.2.0a0 + - libstdcxx >=14 + - snappy >=1.2.2,<1.3.0a0 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: + weak: + - libopenvino-tensorflow-frontend >=2026.3.0,<2026.3.1.0a0 + size: 1219157 + timestamp: 1786126079947 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopenvino-tensorflow-lite-frontend-2026.3.0-ha85bb2c_0.conda + sha256: a52f9d03eee040b433f61661d6acec7209e4a0be050507aa33e3c039f09e51e8 + md5: e1464d38eae6013a29881c21b5731ddd + depends: + - libgcc >=14 + - libopenvino 2026.3.0 h18f7da6_0 + - libstdcxx >=14 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: + weak: + - libopenvino-tensorflow-lite-frontend >=2026.3.0,<2026.3.1.0a0 + size: 477952 + timestamp: 1786126089139 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libopus-1.6.1-h80f16a2_0.conda + sha256: 059214f037fa5e51080f5aced39466993b2311a01d871086bd6d2a59bfbf59b5 + md5: c781f98ca7b987f968369bc768b2cd55 + depends: + - libgcc >=14 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libopus >=1.6.1,<2.0a0 + size: 383586 + timestamp: 1768497303687 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libpciaccess-0.19-he30d5cf_1.conda + sha256: 2161dacebeb075187f20ba35529297e7d4f6d456a89c4474062782436dbe3735 + md5: b1cb4a94819281ecb0391438e0be505c + depends: + - libgcc >=14 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libpciaccess >=0.19,<0.20.0a0 + size: 31035 + timestamp: 1785971703914 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libplacebo-7.360.1-ha018e38_1.conda + sha256: 22fe6a6f34b6910c23cdaac21166cddd70ff385ced7aa45322b70c736fcae4c3 + md5: 6a8214555c597ce831d41d63f3fd3f71 + depends: + - libstdcxx >=14 + - libgcc >=14 + - shaderc >=2026.3,<2026.4.0a0 + - libdovi >=3.4.0,<4.0a0 + - libvulkan-loader >=1.4.341.0,<2.0a0 + - lcms2 >=2.19.1,<3.0a0 + license: LGPL-2.1-or-later + purls: [] + run_exports: + weak: + - libplacebo >=7.360.1,<7.361.0a0 + size: 565641 + timestamp: 1784287829183 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libpng-1.6.58-hf9b7768_1.conda + sha256: bd6e423b08342969689d8893c965aad78244b29724da2168aef3634fa0e1ebd7 + md5: 308ecb7ad60637dc5e95558ab583c5ba + depends: + - libgcc >=15 + - libzlib >=1.3.2,<2.0a0 + license: zlib-acknowledgement + purls: [] + run_exports: + weak: + - libpng >=1.6.58,<1.7.0a0 + size: 333238 + timestamp: 1786616546810 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libprotobuf-7.35.1-h30ec8a2_2.conda + sha256: df3cd7057c4a1d229bff2c9060c03425a42fb12d7d7e7fe985f63907c9e88922 + md5: b9c3b50124bf5fd1ff3ed97ee55f6266 + depends: + - libabseil * cxx17* + - libabseil >=20260526.0,<20260527.0a0 + - libgcc >=14 + - libstdcxx >=14 + - libzlib >=1.3.2,<2.0a0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libprotobuf >=7.35.1,<7.35.2.0a0 + size: 3597785 + timestamp: 1783168080031 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libpython-3.12.16-h3cfa5a6_0_cpython.conda + sha256: 4c746ea6ce098d53e85776106458ea99b310d45f962c4ccc5db6f1f2439c25f4 + md5: 1686b0d3a036cf68629281e5bc725c82 + depends: + - libgcc >=15 + license: Python-2.0 + purls: [] + run_exports: + weak: + - libpython >=3.12,<4.0a0 + size: 8232992 + timestamp: 1793016009855 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libpython-3.14.10-h150030a_100_cp314.conda + build_number: 100 + sha256: 2c129cb0c2cd1477991fe56df594c8cacf00314a7c4ec8c016a368e738413e70 + md5: 992eb5cdfbb73122fba26a67d8bb24e8 + depends: + - libgcc >=15 + license: Python-2.0 + purls: [] + run_exports: + weak: + - libpython >=3.14,<4.0a0 + size: 9757243 + timestamp: 1793015252809 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/librsvg-2.62.3-hf685517_0.conda + sha256: c95ac70755863d8522c1115b54afca86148ea25366b616aa84c993c2ca54b9ce + md5: 38209cc04b3e3e5624c534bc703e6939 + depends: + - cairo >=1.18.4,<2.0a0 + - fontconfig >=2.18.0,<3.0a0 + - fonts-conda-ecosystem + - gdk-pixbuf >=2.44.6,<3.0a0 + - harfbuzz >=14.2.0 + - libgcc >=14 + - libglib >=2.88.1,<3.0a0 + - libxml2-16 >=2.14.6 + - pango >=1.56.4,<2.0a0 + constrains: + - __glibc >=2.17 + license: LGPL-2.1-or-later + purls: [] + run_exports: + weak: + - librsvg >=2.62.3,<3.0a0 + size: 3052373 + timestamp: 1780456154830 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsanitizer-16.1.0-h2510bd8_2.conda + sha256: bb46fd60e0bed6e6b34eaa037daa4aa3c8b570e6d61dc925eaee4e82ddf1d79b + md5: e904e995159a71fc9b8f1d2fcca7366e + depends: + - libgcc >=16.1.0 + - libstdcxx >=16.1.0 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: + weak: + - libsanitizer 16.1.0 + size: 7659334 + timestamp: 1787164462584 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsndfile-1.2.2-h7354dbf_3.conda + sha256: d92e859d8eef147faa00d4d494d7f2d2805327dbfcfa05f71b239907f5706149 + md5: 721cd8fba5d2a457f5f18f86eff9b841 + depends: + - libgcc >=14 + - libstdcxx >=14 + - libogg >=1.3.5,<1.4.0a0 + - libopus >=1.6.1,<2.0a0 + - libflac >=1.5.0,<1.6.0a0 + - libvorbis >=1.3.7,<1.4.0a0 + - mpg123 >=1.33.7,<1.34.0a0 + - lame >=4.0,<4.1.0a0 + license: LGPL-2.1-or-later + purls: [] + run_exports: + weak: + - libsndfile >=1.2.2,<1.3.0a0 + size: 456116 + timestamp: 1786538532217 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsodium-1.0.22-h80f16a2_1.conda + sha256: 36fb7afb28fecb8d678611e05a96b1e135510369b7fe5e353e407308ef1f6796 + md5: 5cb9cebc948d70e6e7c81670f911dab3 + depends: + - libgcc >=14 + license: ISC + purls: [] + run_exports: + weak: + - libsodium >=1.0.22,<1.0.23.0a0 + size: 283426 + timestamp: 1779163468728 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsqlite-3.53.4-h399dd60_1.conda + sha256: fae75e68e9dbc3c90dcf93d4bae6315f1330c95aaf1404a721e8468266c23475 + md5: 27e16aa1f45c787aa181549be6f209f4 + depends: + - icu >=78.3,<79.0a0 + - libgcc >=15 + - libzlib >=1.3.2,<2.0a0 + license: blessing + purls: [] + run_exports: + weak: + - libsqlite >=3.53.4,<4.0a0 + size: 972932 + timestamp: 1787051100646 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsqlite-3.54.1-h399dd60_0.conda + sha256: 6ac4bef81dc57000d16f6e230f4157e2d054189800346b59f3613c07b249dceb + md5: d1e0812292cb0f17e574dfe63eb69971 + depends: + - icu >=78.3,<79.0a0 + - libgcc >=15 + - libzlib >=1.3.2,<2.0a0 + license: blessing + purls: [] + run_exports: + weak: + - libsqlite >=3.54.1,<4.0a0 + size: 982114 + timestamp: 1792175598077 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsqlite-3.54.1-hd26f1b6_101.conda + sha256: 61a67f7085f497fa7622c6e1ae8611b8b2796a2eca70dcecc8d9124ca4f0d46b + md5: e5ac4a3119ab693d90cd7599982a791e + depends: + - libgcc >=15 + - libzlib >=1.3.2,<2.0a0 + constrains: + - icu <0.0a0 + license: blessing + purls: [] + run_exports: + weak: + - libsqlite >=3.54.1,<4.0a0 + size: 977839 + timestamp: 1793051533271 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libstdcxx-16.1.0-hef695bb_2.conda + sha256: ebe8a5794162ec1603c43eadc23f0feaaf4894bcc52e9061c4d452237a6b3c99 + md5: b1ff3987d440eed553b5015ee18e0d58 + depends: + - libgcc 16.1.0 h205dda4_2 + constrains: + - libstdcxx-ng ==16.1.0=*_2 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: {} + size: 6260013 + timestamp: 1787164448776 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libstdcxx-ng-16.1.0-hdbbeba8_2.conda + sha256: cd0919277f81f783ecd113692a6e0a13000d847c2e4591b316a942a5d8a4b98b + md5: 2f75cf9611149a0a1b33c619d5555411 + depends: + - libstdcxx 16.1.0 hef695bb_2 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: + strong: + - libstdcxx + size: 28262 + timestamp: 1787164477642 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsystemd0-257.13-hfcc8634_1.conda + sha256: 7938befc6a09d9f829663ea134b01bea78dabe08d928e9a7caa68e2d726e03c5 + md5: d8981d39a52ab992a033a68927da47e0 + depends: + - libcap >=2.78,<2.79.0a0 + - libgcc >=14 + license: LGPL-2.1-or-later + purls: [] + run_exports: {} + size: 515284 + timestamp: 1780084773602 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libtiff-4.7.2-hdb009f0_0.conda + sha256: ef1006578ef7e3f7c420e89d87846213ceb3fdcef2626af2558cbede53d36839 + md5: 20166e2297c1cac346b544d5f6197440 + depends: + - lerc >=4.1.0,<5.0a0 + - libdeflate >=1.25,<1.26.0a0 + - libgcc >=14 + - libjpeg-turbo >=3.1.4.1,<4.0a0 + - liblzma >=5.8.3,<6.0a0 + - libstdcxx >=14 + - libwebp-base >=1.6.0,<2.0a0 + - libzlib >=1.3.2,<2.0a0 + - zstd >=1.5.7,<1.6.0a0 + license: HPND + purls: [] + run_exports: + weak: + - libtiff >=4.7.2,<4.8.0a0 + size: 508982 + timestamp: 1783084925965 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libudev1-257.13-hfcc8634_1.conda + sha256: 1963dbd5a5c08390db2321dd2fa5c9df45c0fe68701fce4f9c36141155b4de13 + md5: 67728797901490baae52b3ce8d738d34 + depends: + - libcap >=2.78,<2.79.0a0 + - libgcc >=14 + license: LGPL-2.1-or-later + purls: [] + run_exports: {} + size: 156922 + timestamp: 1780084778404 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libunwind-1.8.3-h6470e1d_0.conda + sha256: 86c013d522975b76e16a74341bfcb22f6ec2e9b8b87ec3e15380f46c435eaa7b + md5: 5d8191a950e492a06dc29b491dd5f7c5 + depends: + - libgcc >=14 + - libstdcxx >=14 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libunwind >=1.8.3,<1.9.0a0 + size: 94555 + timestamp: 1757032278900 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/liburing-2.14-hfefdfc9_0.conda + sha256: 7584dc478a34e50c5dc0e0ceac4cb9819ff352bc3a5d0cbb001b974dab9a0967 + md5: 9d32167817a5a85724e8524436559229 + depends: + - libgcc >=14 + - libstdcxx >=14 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - liburing >=2.14,<2.15.0a0 + size: 155011 + timestamp: 1770567701524 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libusb-1.0.29-h06eaf92_0.conda + sha256: a60aae6b529cd7caa7842f9781ef95b93014e618f71fb005e404af434d76a33f + md5: 9a86e7473e16fe25c5c47f6c1376ac82 + depends: + - libgcc >=13 + - libudev1 >=257.4 + license: LGPL-2.1-or-later + purls: [] + run_exports: + weak: + - libusb >=1.0.29,<2.0a0 + size: 93129 + timestamp: 1748856228398 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libuuid-2.42.2-h1022ec0_0.conda + sha256: 7663489f97c104ae3814db10f384932c74b439f3c1fd4247e4fe3599830c090a + md5: 58fa42bc4bc71fc329889497ec15effb + depends: + - libgcc >=14 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libuuid >=2.42.2,<3.0a0 + size: 43248 + timestamp: 1781625528371 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libuuid-2.42.4-hd6fdeab_0.conda + sha256: 4d94770cc7c47eb4a0d7b92f16d7a450506d1a82406d63c987d6208ab2fb8a16 + md5: 9d63e86dc027166aaaeb0c99a0a90fd7 + depends: + - libgcc >=15 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libuuid >=2.42.4,<3.0a0 + size: 36296 + timestamp: 1790121454455 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libvorbis-1.3.7-h7ac5ae9_2.conda + sha256: 066708ca7179a1c6e5639d015de7ed6e432b93ad50525843db67d57eb1ba1faf + md5: 9d099329070afe52d797462ca7bf35f3 + depends: + - libogg + - libstdcxx >=14 + - libgcc >=14 + - libogg >=1.3.5,<1.4.0a0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libvorbis >=1.3.7,<1.4.0a0 + size: 289391 + timestamp: 1753879417231 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libvpx-1.15.2-hfae3067_0.conda + sha256: 4b60838eee9bda276f4b75906745d8f98f74c4b40d741050e07b2a96fcaf753f + md5: dd61430bfc5499c75422afdd0fe0a1bb + depends: + - libgcc >=14 + - libstdcxx >=14 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libvpx >=1.15.2,<1.16.0a0 + size: 1296382 + timestamp: 1762012332100 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libvulkan-loader-1.4.357.0-h8b8848b_0.conda + sha256: 0c3d264d8dae9f6bc57a9143934d1914f60b206fe6b110ccc3cf2fd2a5b90508 + md5: 34b3f91180116e005605e174b626e2ff + depends: + - libstdcxx >=14 + - libgcc >=14 + - xorg-libx11 >=1.8.13,<2.0a0 + - xorg-libxrandr >=1.5.5,<2.0a0 + constrains: + - libvulkan-headers 1.4.357.0.* + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: + weak: + - libvulkan-loader >=1.4.357.0,<2.0a0 + size: 227452 + timestamp: 1785311395466 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libwebp-base-1.6.0-ha2e29f5_1.conda + sha256: 4c64e6843d64876d054a28ecbab70abdf145da3c2cbdaa4a43db26cdf0fd760b + md5: 548943c39851543734ce0d20eeb469b0 + depends: + - libgcc >=14 + constrains: + - libwebp 1.6.0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libwebp-base >=1.6.0,<2.0a0 + size: 357551 + timestamp: 1785956962809 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libxcb-1.17.0-h3f04742_1.conda + sha256: 5e804b6221d22732826091c9da062acaaae6cd45a2458be29fe4e55c47510212 + md5: caa24d7637c6df83b4c8203f5680266e + depends: + - libgcc >=15 + - pthread-stubs + - xorg-libxau >=1.0.12,<2.0a0 + - xorg-libxdmcp >=1.1.5,<2.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libxcb >=1.17.0,<2.0a0 + size: 401513 + timestamp: 1787077419191 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libxcrypt-4.4.38-h80f16a2_0.conda + sha256: d3514900e2121972e435f7803763c1843dad6709e48aa02a2b47c4d481f83be7 + md5: b1a5cb7ff2d8f5911ba1fb6897176098 + depends: + - libgcc >=14 + license: LGPL-2.1-or-later + purls: [] + run_exports: + weak: + - libxcrypt >=4.4.38 + size: 133882 + timestamp: 1785887114864 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libxkbcommon-1.13.2-he51e330_1.conda + sha256: b196478988b576d324b3343fdcf4972a42647ea0a5c1b02dc77b926a64b8ceb8 + md5: a9abdfd661d3bf523244a5488ca0f6a5 + depends: + - xkeyboard-config + - libstdcxx >=14 + - libgcc >=14 + - xorg-libxau >=1.0.12,<2.0a0 + - libxcb >=1.17.0,<2.0a0 + - libxml2 + - libxml2-16 >=2.14.6 + license: MIT AND MIT-open-group AND HPND AND HPND-sell-variant AND ISC + purls: [] + run_exports: + weak: + - libxkbcommon >=1.13.2,<2.0a0 + size: 984153 + timestamp: 1787178819842 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libxml2-16-2.15.3-h79dcc73_0.conda + sha256: ad048a9ca1bf2cdfedb2b0c231050da416c44ee1436a3d1a83b51d2e2deaa842 + md5: 68866231cfe8789e780347f2482df96d + depends: + - icu >=78.3,<79.0a0 + - libgcc >=14 + - libiconv >=1.18,<2.0a0 + - liblzma >=5.8.3,<6.0a0 + - libzlib >=1.3.2,<2.0a0 + constrains: + - libxml2 2.15.3 + license: MIT + license_family: MIT + purls: [] + run_exports: {} + size: 601948 + timestamp: 1776376758674 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libxml2-2.15.3-h869d058_0.conda + sha256: e3af6af9df73bd3c7a8e4e6c8cc38df3699e7f588b0705c257a8601e40acfbdf + md5: 2cffef27cb2eb9ed1e315a1e269d4335 + depends: + - icu >=78.3,<79.0a0 + - libgcc >=14 + - libiconv >=1.18,<2.0a0 + - liblzma >=5.8.3,<6.0a0 + - libxml2-16 2.15.3 h79dcc73_0 + - libzlib >=1.3.2,<2.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libxml2 + - libxml2-16 >=2.15.3 + size: 48101 + timestamp: 1776376766341 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libzlib-1.3.2-hdc9db2a_3.conda + sha256: 76efa6cc9d7e6f5ee3bbca0939f64054af2bdfb3c3632531f8e633cf6c2ea41e + md5: bd534c2fbe56d8c2ea3b2d8f5e12bca8 + constrains: + - zlib 1.3.2 *_3 + license: Zlib + license_family: Other + purls: [] + run_exports: + weak: + - libzlib >=1.3.2,<2.0a0 + size: 70108 + timestamp: 1785276540870 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/make-4.4.1-he30d5cf_3.conda + sha256: b008fb8ba5c93478dacf36d60eed1b2de341d69773c3f73621d2a9e56f834d9d + md5: 9d82bf3d9bf57d56906354e2ad58204a + depends: + - libgcc >=14 + license: GPL-3.0-or-later + license_family: GPL + purls: [] + run_exports: {} + size: 531874 + timestamp: 1785879822550 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/markupsafe-3.0.3-py312hd077ced_1.conda + sha256: 5919bf53e9f74ee1c6ce35ce13a7cd92741d45385c2d0b3eae48b01c0f11f41a + md5: 1fecdd103b37427ba6041b9b03d657ea + depends: + - libgcc >=14 + - python >=3.12,<3.13.0a0 + - python_abi 3.12.* *_cp312 + constrains: + - jinja2 >=3.0.0 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/markupsafe?source=hash-mapping + run_exports: {} + size: 26305 + timestamp: 1772446326927 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/mpg123-1.33.7-h2b27223_0.conda + sha256: 6506406e322bd3b5094579454a612fd5f1a349239530bc303d96782b9c0e710d + md5: d45db08f3b813b3b8b9c992e3583ac58 + depends: + - libgcc >=14 + - libstdcxx >=14 + license: LGPL-2.1-only + license_family: LGPL + purls: [] + run_exports: + weak: + - mpg123 >=1.33.7,<1.34.0a0 + size: 575523 + timestamp: 1786232162349 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/msgpack-python-1.2.1-py312h1683e8e_1.conda + sha256: 2d760955dd3ef02428291efc1590067a7d045cf716bd2cdd30dc6924d1ca480e + md5: 0909f1715c44d390a8ba18be4e5a0fd1 + depends: + - python + - libstdcxx >=14 + - libgcc >=14 + - python_abi 3.12.* *_cp312 + license: Apache-2.0 + license_family: APACHE + purls: + - pkg:pypi/msgpack?source=hash-mapping + run_exports: {} + size: 109581 + timestamp: 1786217402304 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ncurses-6.6-h2b6f883_1.conda + sha256: d69a04914139627f0a6bfd19412d6c7f1e37edc896af84a6011e07e8bc1e69fa + md5: c3b4349171ca987ff33a1de61f7b3f96 + depends: + - libgcc >=14 + license: X11 AND BSD-3-Clause + purls: [] + run_exports: + weak: + - ncurses >=6.6,<7.0a0 + size: 955422 + timestamp: 1786355019431 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/numpy-2.5.2-py312hce9e0af_0.conda + sha256: 29205d0c829c594e457289fae07fd7942d612afc15a947570c4686275c6a35f6 + md5: f1b530dcaa95a1e5ee7a992c4217cfef + depends: + - python + - libgcc >=14 + - libstdcxx >=14 + - liblapack >=3.9.0,<4.0a0 + - libblas >=3.9.0,<4.0a0 + - python_abi 3.12.* *_cp312 + - libcblas >=3.9.0,<4.0a0 + constrains: + - numpy-base <0a0 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/numpy?source=hash-mapping + run_exports: + weak: + - numpy >=1.25,<3 + size: 8029479 + timestamp: 1786330610947 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/numpy-2.5.2-py314he1698a1_0.conda + sha256: 094fb3f85c0af562d46dc96277d0d2297f651ca35ae99009313dcfb28da7c73d + md5: a1b6c6047ad7dc032db6380ffb72b1ca + depends: + - python + - libgcc >=14 + - libstdcxx >=14 + - python_abi 3.14.* *_cp314 + - libcblas >=3.9.0,<4.0a0 + - liblapack >=3.9.0,<4.0a0 + - libblas >=3.9.0,<4.0a0 + constrains: + - numpy-base <0a0 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/numpy?source=hash-mapping + run_exports: + weak: + - numpy >=1.25,<3 + size: 8192594 + timestamp: 1786330616684 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/openh264-2.6.0-h663e864_1.conda + sha256: c90d20ddcf28537ea6c1bd1c26a7abcba6baf9d7cdec493daa04bf0a968d1264 + md5: 0d86d4becd3cd1ce48011f71099211be + depends: + - libgcc >=14 + - libstdcxx >=14 + license: BSD-2-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - openh264 >=2.6.0,<2.6.1.0a0 + size: 795565 + timestamp: 1782685979198 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/openssl-3.6.3-h546c87b_1.conda + sha256: c89e748e8a008e8ca6f25e102362f33319db0c98cc29d98ddada92842f636327 + md5: 1600dfde78c5adba306f8571af62a323 + depends: + - ca-certificates + - libgcc >=14 + license: Apache-2.0 + license_family: Apache + purls: [] + run_exports: + weak: + - openssl >=3.6.3,<4.0a0 + size: 3719270 + timestamp: 1785913554920 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/pango-1.58.2-h8547ced_0.conda + sha256: 7337c11d536da3c920a7bc67fc4a5a927c3366cb08d95c66056319145a847535 + md5: de1fcba6c7fe5efc236b58e38516bd39 + depends: + - cairo >=1.18.4,<2.0a0 + - fontconfig >=2.18.2,<3.0a0 + - fonts-conda-ecosystem + - fribidi >=1.0.16,<2.0a0 + - libexpat >=2.8.1,<3.0a0 + - libfreetype >=2.14.3 + - libfreetype6 >=2.14.3 + - libgcc >=14 + - libglib >=2.88.3,<3.0a0 + - libharfbuzz >=14.3.0 + - libpng >=1.6.58,<1.7.0a0 + - libzlib >=1.3.2,<2.0a0 + license: LGPL-2.1-or-later + purls: [] + run_exports: + weak: + - pango >=1.58.2,<2.0a0 + size: 482634 + timestamp: 1786110288624 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/pcre2-10.47-hf841c20_0.conda + sha256: 04df2cee95feba440387f33f878e9f655521e69f4be33a0cd637f07d3d81f0f9 + md5: 1a30c42e32ca0ea216bd0bfe6f842f0b + depends: + - bzip2 >=1.0.8,<2.0a0 + - libgcc >=14 + - libzlib >=1.3.1,<2.0a0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - pcre2 >=10.47,<10.48.0a0 + size: 1166552 + timestamp: 1763655534263 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/pixman-0.46.4-h7ac5ae9_3.conda + sha256: ed718d35c744ceef33063b5686f27b4b8d30d4065485e24efafb248658ee83b5 + md5: c5f34596fc05afb9ccc2782c42bcfcc5 + depends: + - libstdcxx >=14 + - libgcc >=14 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - pixman >=0.46.4,<1.0a0 + size: 304657 + timestamp: 1786106625126 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/psutil-7.2.2-py312hd41f8a7_0.conda + sha256: ea2f332dde5f428c506816d39063705c40767a350f54c22fde89b74aac878355 + md5: 4efa924b35ea429f3ded10ddae9d5fb3 + depends: + - python + - python 3.12.* *_cpython + - libgcc >=14 + - python_abi 3.12.* *_cp312 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/psutil?source=hash-mapping + run_exports: {} + size: 230283 + timestamp: 1769678159757 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/pthread-stubs-0.4-he30d5cf_1003.conda + sha256: 6138ca8729e6af8658c7e184c38370bec9b0b7840272deff79a3d0c1090f07e4 + md5: 75ad6624c7f795b828227672ca4b5f0b + depends: + - libgcc >=14 + license: MIT + license_family: MIT + purls: [] + run_exports: {} + size: 9235 + timestamp: 1786069420166 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/pugixml-1.15-h6ef32b0_0.conda + sha256: adc17205a87e064508d809fe5542b7cf49f9b9a458418f8448e2fc895fcd04f3 + md5: 53e14f45d38558aa2b9a15b07416e472 + depends: + - libgcc >=13 + - libstdcxx >=13 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - pugixml >=1.15,<1.16.0a0 + size: 113424 + timestamp: 1737355438448 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/pulseaudio-client-17.0-hcf98165_3.conda + sha256: bb55db0dfe120f6063ad3ac74524b37c0bf92c6002cc059c31a5506f96a67f22 + md5: 8d73cfc699cd0a5ed2ea04bfb73eee0a + depends: + - dbus >=1.16.2,<2.0a0 + - libgcc >=14 + - libglib >=2.86.1,<3.0a0 + - libiconv >=1.18,<2.0a0 + - libsndfile >=1.2.2,<1.3.0a0 + - libsystemd0 >=257.10 + - libxcb >=1.17.0,<2.0a0 + constrains: + - pulseaudio 17.0 *_3 + license: LGPL-2.1-or-later + license_family: LGPL + purls: [] + run_exports: + weak: + - pulseaudio-client >=17.0,<17.1.0a0 + size: 760306 + timestamp: 1763148231117 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/python-3.12.16-h94ad73b_0_cpython.conda + sha256: fd15475f0d09e51c564a2ca7b3210bbc29d573cf8ef13f29ccfbd9825519fc8c + md5: 85e2422da0ae7d8e8b7847179866aa90 + depends: + - bzip2 >=1.0.8,<2.0a0 + - ld_impl_linux-aarch64 >=2.36.1 + - libexpat >=2.8.5,<3.0a0 + - libffi >=3.7.0,<3.8.0a0 + - libgcc >=15 + - liblzma >=5.8.3,<6.0a0 + - libnsl >=2.0.1,<2.1.0a0 + - libpython 3.12.16 h3cfa5a6_0_cpython + - libsqlite >=3.54.1,<4.0a0 + - libuuid >=2.42.4,<3.0a0 + - libxcrypt >=4.4.38 + - libzlib >=1.3.2,<2.0a0 + - ncurses >=6.6,<7.0a0 + - openssl >=3.5.9,<4.0a0 + - readline >=8.3,<9.0a0 + - tk >=8.6.13,<8.7.0a0 + - tzdata + constrains: + - python_abi 3.12.* *_cp312 + license: Python-2.0 + purls: [] + run_exports: + weak: + - python_abi 3.12.* *_cp312 + noarch: + - python + size: 22411446 + timestamp: 1793016037969 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/python-3.14.10-hbec3b18_100_cp314.conda + build_number: 100 + sha256: 1d3db41917590d2a665e2400844d08698f1352ceaf0ff07a98161b54eb346ef2 + md5: 08942a495c3debed351d8a365cd09af5 + depends: + - bzip2 >=1.0.8,<2.0a0 + - ld_impl_linux-aarch64 >=2.36.1 + - libexpat >=2.8.5,<3.0a0 + - libffi >=3.7.0,<3.8.0a0 + - libgcc >=15 + - liblzma >=5.8.3,<6.0a0 + - libmpdec >=4.0.0,<5.0a0 + - libpython 3.14.10 h150030a_100_cp314 + - libsqlite >=3.54.1,<4.0a0 + - libuuid >=2.42.4,<3.0a0 + - libzlib >=1.3.2,<2.0a0 + - ncurses >=6.6,<7.0a0 + - openssl >=3.5.9,<4.0a0 + - python_abi 3.14.* *_cp314 + - readline >=8.3,<9.0a0 + - tk >=8.6.13,<8.7.0a0 + - tzdata + - zstd >=1.5.7,<1.6.0a0 + license: Python-2.0 + purls: [] + run_exports: + weak: + - python_abi 3.14.* *_cp314 + noarch: + - python + size: 25620130 + timestamp: 1793015285925 + python_site_packages_path: lib/python3.14/site-packages +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/pyyaml-6.0.3-py312ha4530ae_1.conda + sha256: 0ba02720b470150a8c6261a86ea4db01dcf121e16a3e3978a84e965d3fe9c39a + md5: 47018c13dbb26186b577fd8bd1823a44 + depends: + - libgcc >=14 + - python >=3.12,<3.13.0a0 + - python >=3.12,<3.13.0a0 *_cpython + - python_abi 3.12.* *_cp312 + - yaml >=0.2.5,<0.3.0a0 + license: MIT + license_family: MIT + purls: + - pkg:pypi/pyyaml?source=hash-mapping + run_exports: {} + size: 192182 + timestamp: 1770223431156 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/pyzmq-27.1.0-py312hdf0a211_3.conda + noarch: python + sha256: 0bf98beaccc17a101d8e8496b88708f938e098a2606f6cc802379dc716572614 + md5: acc7f0e3fc38e949267bc9a4f09ded15 + depends: + - python + - libgcc >=14 + - libstdcxx >=14 + - zeromq >=4.3.5,<4.4.0a0 + - _python_abi3_support 1.* + - cpython >=3.12 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/pyzmq?source=hash-mapping + run_exports: {} + size: 212016 + timestamp: 1779483886884 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/rdma-core-63.0-h1f0f388_1.conda + sha256: 89dc4066bf0a2ee8e0cdeb6b6e8884c2c36c9a82855a438a0720ee59297fae3e + md5: 94e99208cc8828d5953fac098814a0e9 + depends: + - libgcc >=14 + - libnl >=3.11.0,<4.0a0 + - libstdcxx >=14 + - libsystemd0 >=257.13 + - libudev1 >=257.13 + license: Linux-OpenIB + license_family: BSD + purls: [] + run_exports: + weak: + - rdma-core >=63.0 + size: 1351719 + timestamp: 1778528506759 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/readline-8.3-ha7194a6_1.conda + sha256: 80167dcf73a96b6d0c1bb2298d7b8b9bc21b27cc5bf56979f9c548b49a4d1722 + md5: 5b399a7afa10098f2a6b02263181426e + depends: + - libgcc >=15 + - ncurses >=6.6,<7.0a0 + license: GPL-3.0-only + license_family: GPL + purls: [] + run_exports: + weak: + - readline >=8.3,<9.0a0 + size: 364344 + timestamp: 1787033761576 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/rpds-py-2026.6.3-py312h00f41f5_0.conda + sha256: 0f80e0149ea885b378cbcbc5c01b7b3b32fb0918775d3898e97b69999fe3b78b + md5: 9d4967f1582f83435b649a7998e7f942 + depends: + - python + - libgcc >=14 + - python_abi 3.12.* *_cp312 + constrains: + - __glibc >=2.17 + license: MIT + license_family: MIT + purls: + - pkg:pypi/rpds-py?source=hash-mapping + run_exports: {} + size: 295235 + timestamp: 1782831257757 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ruamel.yaml.clib-0.2.15-py312hd41f8a7_1.conda + sha256: 0183f9c738abe70a9e292342877932eefc6a60dcfad7c58d6b0df77236052e17 + md5: 1c284baa9b7c47ccca48d776c7c93893 + depends: + - python + - libgcc >=14 + - python 3.12.* *_cpython + - python_abi 3.12.* *_cp312 + license: MIT + license_family: MIT + purls: + - pkg:pypi/ruamel-yaml-clib?source=hash-mapping + run_exports: {} + size: 147242 + timestamp: 1766159546485 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/scipy-1.18.0-py312ha7f05e0_0.conda + sha256: 79343875bcc5cce28a54001844b221395b883a3d28fd8d9125dd38a4afab825b + md5: c957cde07f79a2cf5c7e9cdab39fa90b + depends: + - libblas >=3.9.0,<4.0a0 + - libcblas >=3.9.0,<4.0a0 + - libgcc >=14 + - libgfortran + - libgfortran5 >=14.3.0 + - liblapack >=3.9.0,<4.0a0 + - libstdcxx >=14 + - numpy <2.7 + - numpy >=1.23,<3 + - numpy >=2.0.0 + - python >=3.12,<3.13.0a0 + - python_abi 3.12.* *_cp312 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/scipy?source=hash-mapping + run_exports: {} + size: 17170333 + timestamp: 1781912658149 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/sdl2-2.32.56-h7ac5ae9_0.conda + sha256: 47f4ef4cd2313906840f146b18fee95c2a3a4fa9bd0afdb2d519e6c0aa8ca2ed + md5: 54747a3f3c468c5f446c78974c8c1234 + depends: + - libstdcxx >=14 + - libgcc >=14 + - sdl3 >=3.2.22,<4.0a0 + - libgl >=1.7.0,<2.0a0 + - libegl >=1.7.0,<2.0a0 + license: Zlib + purls: [] + run_exports: + weak: + - sdl2 >=2.32.56,<3.0a0 + size: 597756 + timestamp: 1757842928996 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/sdl3-3.4.14-had2c13b_0.conda + sha256: 9ca267af883667fa20b0ec9e6d4a7ad6a54e9ef65c130880cce1bce539bde49d + md5: 6afcf0629c8cdc96f1f6e9bc06ac25de + depends: + - libstdcxx >=14 + - libgcc >=14 + - xorg-libx11 >=1.8.13,<2.0a0 + - wayland >=1.26.0,<2.0a0 + - xorg-libxi >=1.8.3,<2.0a0 + - libegl >=1.7.0,<2.0a0 + - xorg-libxtst >=1.2.5,<2.0a0 + - libvulkan-loader >=1.4.357.0,<2.0a0 + - xorg-libxext >=1.3.7,<2.0a0 + - libudev1 >=257.13 + - dbus >=1.16.2,<2.0a0 + - xorg-libxfixes >=6.0.2,<7.0a0 + - libxkbcommon >=1.13.2,<2.0a0 + - pulseaudio-client >=17.0,<17.1.0a0 + - xorg-libxscrnsaver >=1.2.4,<2.0a0 + - liburing >=2.14,<2.15.0a0 + - xorg-libxcursor >=1.2.3,<2.0a0 + - libunwind >=1.8.3,<1.9.0a0 + - libdrm >=2.4.127,<2.5.0a0 + - libgl >=1.7.0,<2.0a0 + - libusb >=1.0.29,<2.0a0 + license: Zlib + purls: [] + run_exports: + weak: + - sdl3 >=3.4.14,<4.0a0 + size: 2157224 + timestamp: 1785816119163 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/shaderc-2026.3-h9a39c52_0.conda + sha256: f3c16aeeae7dee968ff429e07a9100abe7a7a59ba0a262bc628dda04d0a96348 + md5: 3f4eeb1a29600a3e184835cade2b1621 + depends: + - glslang >=16,<17.0a0 + - libgcc >=14 + - libstdcxx >=14 + - spirv-tools >=2026,<2027.0a0 + license: Apache-2.0 + license_family: Apache + purls: [] + run_exports: + weak: + - shaderc >=2026.3,<2026.4.0a0 + size: 117255 + timestamp: 1784251230054 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/snappy-1.2.2-he774c54_1.conda + sha256: a8a79c53852fb07286407907402caa5a96b6e22b518c4f010be40647f9ee3726 + md5: 3dec912091fb88614afa0af2712c1362 + depends: + - libgcc >=14 + - libstdcxx >=14 + - libgcc >=14 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - snappy >=1.2.2,<1.3.0a0 + size: 47096 + timestamp: 1762948094646 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/spirv-tools-2026.3-hfefdfc9_0.conda + sha256: 7befe58fcf61d93790570ca54620c10dd30668af0f6a0adffc4cdf16bd795037 + md5: 0f015ecd08599eaaa0e9387597108695 + depends: + - libgcc >=14 + - libstdcxx >=14 + constrains: + - spirv-headers >=1.4.357.0,<1.4.357.1.0a0 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: + weak: + - spirv-tools >=2026,<2027.0a0 + size: 2361152 + timestamp: 1786908177381 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/sqlalchemy-2.0.52-py312h2fc9c67_0.conda + sha256: 6006ff829117b0e1efa70f83c631f7d522c9979de5286ca69b804e6177b24a7d + md5: 1c79fab0b42577004a89aaec3b4adbc6 + depends: + - python + - greenlet !=0.4.17 + - typing-extensions >=4.6.0 + - libgcc >=14 + - python_abi 3.12.* *_cp312 + license: MIT + license_family: MIT + purls: + - pkg:pypi/sqlalchemy?source=hash-mapping + run_exports: {} + size: 3729200 + timestamp: 1786535217317 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/svt-av1-4.2.0-hfae3067_0.conda + sha256: 5f4c820fbf924145755c394df3d6ab98c96d6f5630ba486ce6f568de25d5845d + md5: 54ccc3ac256db941ff50f0fada595fa0 + depends: + - libgcc >=14 + - libstdcxx >=14 + license: BSD-2-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - svt-av1 >=4.2.0,<4.2.1.0a0 + size: 2083840 + timestamp: 1784069822348 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/tbb-2023.0.0-h57272ed_2.conda + sha256: 7ed4e93fad3707aa1686c5be286604c63aad33c9765a0d53fab7adbd179510b3 + md5: 0bc302bd45e5f744a672eb4f4a930398 + depends: + - libgcc >=14 + - libhwloc >=2.13.0,<2.13.1.0a0 + - libstdcxx >=14 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: {} + size: 145425 + timestamp: 1778675412470 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/tk-8.6.13-noxft_h5cf4473_3.conda + build_number: 103 + sha256: cd51fbda051a9f3679d10ef4a94cd1ff38c10533b82845dadce8ba87245ba4ce + md5: 89e78452e06563964e419059ee45584a + depends: + - libgcc >=14 + - libzlib >=1.3.2,<2.0a0 + constrains: + - xorg-libx11 >=1.8.13,<2.0a0 + license: TCL + purls: [] + run_exports: + weak: + - tk >=8.6.13,<8.7.0a0 + size: 3683040 + timestamp: 1784229053797 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/tornado-6.5.8-py312hefbd42c_0.conda + sha256: d6e1b5017ba755c8b32f81b8a3f620ccbe1254bb63a2a5cb36e2779c2ec64b99 + md5: a6227a242f0f34c7bfd132ae5612b775 + depends: + - libgcc >=14 + - python >=3.12,<3.13.0a0 + - python_abi 3.12.* *_cp312 + license: Apache-2.0 + license_family: Apache + purls: + - pkg:pypi/tornado?source=hash-mapping + run_exports: {} + size: 870861 + timestamp: 1786228525800 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/uv-0.13.5-h779c035_0.conda + sha256: c0abca1fd01f574aecf4d34e10c62756ae2017932f17e976e5bb16e507ce49ea + md5: eb5a268a2196021718667622ae365845 + depends: + - libgcc >=15 + - libstdcxx >=15 + - zstd >=1.5.7,<1.6.0a0 + constrains: + - __glibc >=2.17 + license: Apache-2.0 OR MIT + run_exports: {} + size: 14411564 + timestamp: 1792672542028 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/wayland-1.26.0-hb3e8f30_1.conda + sha256: 0cea81af0776eb1f472504c30590aa42fcef6c85b3982a2886e43d2b0bb800da + md5: 980e4d3720dac935b7bfa58dec351244 + depends: + - libexpat >=2.8.1,<3.0a0 + - libffi >=3.7.0,<3.8.0a0 + - libgcc >=14 + - libstdcxx >=14 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - wayland >=1.26.0,<2.0a0 + size: 342074 + timestamp: 1786151707553 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/x264-1!164.3095-h4e544f5_2.tar.bz2 + sha256: b48f150db8c052c197691c9d76f59e252d3a7f01de123753d51ebf2eed1cf057 + md5: 0efaf807a0b5844ce5f605bd9b668281 + depends: + - libgcc-ng >=12 + license: GPL-2.0-or-later + license_family: GPL + purls: [] + run_exports: + weak: + - x264 >=1!164.3095,<1!165 + size: 1000661 + timestamp: 1660324722559 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/x265-3.5-hdd96247_3.tar.bz2 + sha256: cb2227f2441499900bdc0168eb423d7b2056c8fd5a3541df4e2d05509a88c668 + md5: 786853760099c74a1d4f0da98dd67aea + depends: + - libgcc-ng >=10.3.0 + - libstdcxx-ng >=10.3.0 + license: GPL-2.0-or-later + license_family: GPL + purls: [] + run_exports: + weak: + - x265 >=3.5,<3.6.0a0 + size: 1018181 + timestamp: 1646610147365 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xkeyboard-config-2.48-h80f16a2_0.conda + sha256: 96078068df25ddccc60958be740e6fa99efb1e0fa2dae2f84e775201bf84d70c + md5: 3dbc6d9e1f8a8768e7ef9f57585a43ca + depends: + - libgcc >=14 + - xorg-libx11 >=1.8.13,<2.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: {} + size: 442725 + timestamp: 1782027381059 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libice-1.1.2-h80f16a2_0.conda + sha256: e56bb636aefe3503a53520a0b7f3737f3a26fe0accf0befffc24d1c0ddd27008 + md5: 0566e37830f85911b141524635939941 + depends: + - libgcc >=14 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - xorg-libice >=1.1.2,<2.0a0 + size: 63847 + timestamp: 1786474771090 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libsm-1.2.6-hf23e593_1.conda + sha256: 4978f89a764b54dc8be7a115b2d57f570f793243f3227653232742ce0946101b + md5: f5f4a1233da463827499fb4e5e1f0172 + depends: + - libgcc >=14 + - xorg-libice >=1.1.2,<2.0a0 + - libuuid >=2.42.2,<3.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - xorg-libsm >=1.2.6,<2.0a0 + size: 31476 + timestamp: 1786546266048 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libx11-1.8.13-h63a1b12_1.conda + sha256: 9ff59d55cbf85561833be3604a8c0a5497b0f13cdf122e8bb490e9cf3138d116 + md5: 8e873e9efc395329b914ee44e305b624 + depends: + - libgcc >=14 + - libxcb >=1.17.0,<2.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - xorg-libx11 >=1.8.13,<2.0a0 + size: 875768 + timestamp: 1787087025456 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxau-1.0.12-he30d5cf_2.conda + sha256: 0822f3a8eb2a54bb41e1133f010e09d4a3242f8f12a372dfff7ad7248c5dbd29 + md5: b03af9d9dfe7aec9e27db74fc41a4ba9 + depends: + - libgcc >=14 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - xorg-libxau >=1.0.12,<2.0a0 + size: 17413 + timestamp: 1786382929588 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxcursor-1.2.3-h86ecc28_0.conda + sha256: c5d3692520762322a9598e7448492309f5ee9d8f3aff72d787cf06e77c42507f + md5: f2054759c2203d12d0007005e1f1296d + depends: + - libgcc >=13 + - xorg-libx11 >=1.8.9,<2.0a0 + - xorg-libxfixes >=6.0.1,<7.0a0 + - xorg-libxrender >=0.9.11,<0.10.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - xorg-libxcursor >=1.2.3,<2.0a0 + size: 34596 + timestamp: 1730908388714 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxdmcp-1.1.5-he30d5cf_2.conda + sha256: 681465a02be4ac256c05cd5b32ce9812da1563b75be1bfc8884d991454194df3 + md5: 044c398bf4b3b9c01741d8afe4ce1c3e + depends: + - libgcc >=14 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - xorg-libxdmcp >=1.1.5,<2.0a0 + size: 21558 + timestamp: 1786383120543 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxext-1.3.7-h5bc82ec_1.conda + sha256: e2cc4ba2b5291710f9ae3e88d917d778ce7911262450e673ba8a597a5d43490a + md5: 32734d534d08a853f22bdef1d43223b7 + depends: + - libgcc >=15 + - xorg-libx11 >=1.8.13,<2.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - xorg-libxext >=1.3.7,<2.0a0 + size: 53801 + timestamp: 1787103097310 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxfixes-6.0.2-he30d5cf_0.conda + sha256: 8cb9c88e25c57e47419e98f04f9ef3154ad96b9f858c88c570c7b91216a64d0e + md5: e8b4056544341daf1d415eaeae7a040c + depends: + - libgcc >=14 + - xorg-libx11 >=1.8.12,<2.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - xorg-libxfixes >=6.0.2,<7.0a0 + size: 20704 + timestamp: 1759284028146 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxi-1.8.3-he30d5cf_0.conda + sha256: 0c1c7b39763469cfe0e9c6d0f9a39415321f477710719f4c5d63c61ea270271c + md5: f8ad5777ecc217d383a722598dbeb1ac + depends: + - libgcc >=14 + - xorg-libx11 >=1.8.13,<2.0a0 + - xorg-libxext >=1.3.7,<2.0a0 + - xorg-libxfixes >=6.0.2,<7.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - xorg-libxi >=1.8.3,<2.0a0 + size: 49292 + timestamp: 1779113229775 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxrandr-1.5.5-he30d5cf_0.conda + sha256: 9f5196665a8d72f4f119c40dcc4bafeb0b540b102cc7b8b299c2abf599e7919f + md5: 1f64c613f0b8d67e9fb0e165d898fb6b + depends: + - libgcc >=14 + - xorg-libx11 >=1.8.12,<2.0a0 + - xorg-libxext >=1.3.6,<2.0a0 + - xorg-libxrender >=0.9.12,<0.10.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - xorg-libxrandr >=1.5.5,<2.0a0 + size: 31122 + timestamp: 1769445286951 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxrender-0.9.12-he30d5cf_1.conda + sha256: 3cbac6f69e4a8634ba6b60cf283cba92606c8c74caa1369b799325f96b2f0cbf + md5: 1bcdaa1fc263291e6f42ff061666f3ae + depends: + - libgcc >=14 + - xorg-libx11 >=1.8.13,<2.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - xorg-libxrender >=0.9.12,<0.10.0a0 + size: 35814 + timestamp: 1787100239228 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxscrnsaver-1.2.4-h86ecc28_0.conda + sha256: ab88b1533e7498baeb00cbda50c899a6fe73eaee14df32c57b8ad3f2a0b3cc26 + md5: 7a0a04defd4399a93936f06fcfac5531 + depends: + - libgcc >=13 + - xorg-libx11 >=1.8.12,<2.0a0 + - xorg-libxext >=1.3.6,<2.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - xorg-libxscrnsaver >=1.2.4,<2.0a0 + size: 15720 + timestamp: 1750007336692 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/xorg-libxtst-1.2.5-h57736b2_3.conda + sha256: 6eaffce5a34fc0a16a21ddeaefb597e792a263b1b0c387c1ce46b0a967d558e1 + md5: c05698071b5c8e0da82a282085845860 + depends: + - libgcc >=13 + - xorg-libx11 >=1.8.9,<2.0a0 + - xorg-libxext >=1.3.6,<2.0a0 + - xorg-libxi >=1.7.10,<2.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - xorg-libxtst >=1.2.5,<2.0a0 + size: 33786 + timestamp: 1727964907993 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/yaml-0.2.5-h80f16a2_3.conda + sha256: 66265e943f32ce02396ad214e27cb35f5b0490b3bd4f064446390f9d67fa5d88 + md5: 032d8030e4a24fe1f72c74423a46fb88 + depends: + - libgcc >=14 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - yaml >=0.2.5,<0.3.0a0 + size: 88088 + timestamp: 1753484092643 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/zeromq-4.3.5-hec9560f_11.conda + sha256: 134bceda31df1ad0dbadb61dd30e7254f5eab398288fcdd8b070946130533b5a + md5: 1ae4f546793d83754d79a43a38154746 + depends: + - libstdcxx >=14 + - libgcc >=14 + - krb5 >=1.22.2,<1.23.0a0 + - libsodium >=1.0.22,<1.0.23.0a0 + license: MPL-2.0 + license_family: MOZILLA + purls: [] + run_exports: + weak: + - zeromq >=4.3.5,<4.4.0a0 + size: 355573 + timestamp: 1779123980042 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/zstd-1.5.7-h9d15635_7.conda + sha256: 427fd14bcb3b8659796fecc682716617409350fb5a98e5b7b47558a10d1a2fc7 + md5: d942e34ac3920ba83f8b2d0169570187 + depends: + - libzlib >=1.3.2,<2.0a0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - zstd >=1.5.7,<1.6.0a0 + size: 615477 + timestamp: 1786599613561 +- conda: https://conda.anaconda.org/conda-forge/noarch/_python_abi3_support-1.0-hd8ed1ab_3.conda + sha256: 2a7204314663eeda5dec482a956f0e2eaf289bd5b9953eaaaad0e81aa64638f2 + md5: 3845f3d75991bae0fb90884662f4327c + depends: + - cpython + - python-gil + license: MIT + license_family: MIT + purls: [] + run_exports: {} + size: 8144 + timestamp: 1784221492234 +- conda: https://conda.anaconda.org/conda-forge/noarch/accessible-pygments-0.0.5-pyhd8ed1ab_1.conda + sha256: 1307719f0d8ee694fc923579a39c0621c23fdaa14ccdf9278a5aac5665ac58e9 + md5: 74ac5069774cdbc53910ec4d631a3999 + depends: + - pygments + - python >=3.9 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/accessible-pygments?source=hash-mapping + run_exports: {} + size: 1326096 + timestamp: 1734956217254 +- conda: https://conda.anaconda.org/conda-forge/noarch/alabaster-1.0.0-pyhd8ed1ab_1.conda + sha256: 6c4456a138919dae9edd3ac1a74b6fbe5fd66c05675f54df2f8ab8c8d0cc6cea + md5: 1fd9696649f65fd6611fcdb4ffec738a + depends: + - python >=3.10 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/alabaster?source=hash-mapping + run_exports: {} + size: 18684 + timestamp: 1733750512696 +- conda: https://conda.anaconda.org/conda-forge/noarch/apeye-1.4.1-pyhd8ed1ab_1.conda + sha256: b554d2d2fc869a5955ebb3e5c8aea5e13ec49363b782b08e1802e29c91beaebf + md5: 0f2a7ba1dfc3b6117cfd864d25fa86ce + depends: + - apeye-core >=1.0.0b2 + - domdf-python-tools >=2.6.0 + - platformdirs >=2.3.0 + - python >=3.9 + - requests >=2.24.0 + constrains: + - cachecontrol >=0.12.6 + license: LGPL-3.0-or-later + license_family: LGPL + purls: + - pkg:pypi/apeye?source=hash-mapping + run_exports: {} + size: 95690 + timestamp: 1738250335247 +- conda: https://conda.anaconda.org/conda-forge/noarch/apeye-core-1.1.5-pyhd8ed1ab_1.conda + sha256: 3ee9787c3876c2ffb4b3c77ac73c0b28d67d18a376f4c952643cac95020a2a14 + md5: b60c08c6a0cbb505016075bb9e484e56 + depends: + - domdf-python-tools >=2.6.0 + - idna >=2.5 + - python >=3.9 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/apeye-core?source=hash-mapping + run_exports: {} + size: 94258 + timestamp: 1738681346787 +- conda: https://conda.anaconda.org/conda-forge/noarch/arm-variant-1.2.0-sbsa.conda + sha256: 0658cac65071ace5beded633851681e6f0b381040c8ce313bbe2a0ab410c5072 + md5: b7d6244b9c7a660f10336645e73c2cd2 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + strong: + - arm-variant * sbsa + size: 7126 + timestamp: 1742928603302 +- conda: https://conda.anaconda.org/conda-forge/noarch/asttokens-3.0.2-pyhd8ed1ab_0.conda + sha256: fbbd8ce60cbd5c16f3fe559eb644551f94285caff30985ea961ff851c1cf25ac + md5: 89d495168582cb00428dad699d149624 + depends: + - python >=3.10 + constrains: + - astroid >=2,<5 + license: Apache-2.0 + license_family: Apache + purls: + - pkg:pypi/asttokens?source=hash-mapping + run_exports: {} + size: 34639 + timestamp: 1783975742052 +- conda: https://conda.anaconda.org/conda-forge/noarch/attrs-26.1.0-pyhcf101f3_0.conda + sha256: 1b6124230bb4e571b1b9401537ecff575b7b109cc3a21ee019f65e083b8399ab + md5: c6b0543676ecb1fb2d7643941fe375f2 + depends: + - python >=3.10 + - python + license: MIT + license_family: MIT + purls: + - pkg:pypi/attrs?source=hash-mapping + run_exports: {} + size: 64927 + timestamp: 1773935801332 +- conda: https://conda.anaconda.org/conda-forge/noarch/autodocsumm-0.2.15-pyhd8ed1ab_0.conda + sha256: 21cb40c7c5f47bf54d2722b1ab3c91f747ef2b80ba16ece058755371e5c6385b + md5: e51977d5fe34698e26a20950b8b449e6 + depends: + - python >=3.7 + - sphinx >=2.2,<10.0 + license: Apache-2.0 + license_family: APACHE + purls: + - pkg:pypi/autodocsumm?source=hash-mapping + run_exports: {} + size: 20495 + timestamp: 1774600916594 +- conda: https://conda.anaconda.org/conda-forge/noarch/babel-2.18.0-pyhcf101f3_1.conda + sha256: a14a9ad02101aab25570543a59c5193043b73dc311a25650134ed9e6cb691770 + md5: f1976ce927373500cc19d3c0b2c85177 + depends: + - python >=3.10 + - python + constrains: + - pytz >=2015.7 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/babel?source=hash-mapping + run_exports: {} + size: 7684321 + timestamp: 1772555330347 +- conda: https://conda.anaconda.org/conda-forge/noarch/beautifulsoup4-4.15.0-pyha770c72_0.conda + sha256: aed4b9dcf68ec2a75e5645fed14d77fd884d38d2e52bfa6ef4b278d90cd88781 + md5: 3b261da3fe9b4168738712832410b022 + depends: + - python >=3.10 + - soupsieve >=1.2 + - typing-extensions + license: MIT + license_family: MIT + purls: + - pkg:pypi/beautifulsoup4?source=hash-mapping + run_exports: {} + size: 92704 + timestamp: 1780853175566 +- conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-h4c7d964_0.conda + sha256: f1d280d2618de987204102090e83733089c092dc2dd45686fd3dcbe809034f6a + md5: ea9dc39dcd2815202749c1e5bc2a8973 + depends: + - __win + license: ISC + purls: [] + run_exports: {} + size: 130423 + timestamp: 1792772460189 +- conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-hbd8a1cb_0.conda + sha256: 95619b9c1184be7175392eeb0ee7eeb5ccf25d280951f4225f2d62e725790be3 + md5: 3fd02989038a1e1cee627c14c2d73f29 + depends: + - __unix + license: ISC + purls: [] + run_exports: {} + size: 130057 + timestamp: 1792772446739 +- conda: https://conda.anaconda.org/conda-forge/noarch/cachecontrol-0.14.4-pyha770c72_0.conda + sha256: cca3a26282a5bc37a10afb1aa2006a21c45033cbc4ff012f9501f56f2a115c12 + md5: 13bdbb9b693b29134c56a9a00c23de41 + depends: + - msgpack-python >=0.5.2,<2.0.0 + - python >=3.10 + - requests >=2.16.0 + license: Apache-2.0 + license_family: Apache + purls: + - pkg:pypi/cachecontrol?source=hash-mapping + run_exports: {} + size: 24906 + timestamp: 1782470439060 +- conda: https://conda.anaconda.org/conda-forge/noarch/certifi-2026.10.23-pyhd8ed1ab_0.conda + sha256: 04e641ccaa58278b431e97f2a43090bafc676436d04b5860dfd9b18166f2b326 + md5: 484e26532435808425148c83bf58aa0b + depends: + - python >=3.11 + license: ISC + purls: + - pkg:pypi/certifi?source=compressed-mapping + run_exports: {} + size: 135537 + timestamp: 1792764012327 +- conda: https://conda.anaconda.org/conda-forge/noarch/charset-normalizer-3.5.1-pyhd8ed1ab_0.conda + sha256: cb60ef3e0631c8bacb4f7057196dee4496091a22baa3bb4b9bccb12c7e1c921b + md5: e0ac3accc64e23e40969d660e5f58ac8 + depends: + - python >=3.10 + license: MIT + license_family: MIT + purls: + - pkg:pypi/charset-normalizer?source=compressed-mapping + run_exports: {} + size: 64487 + timestamp: 1786835648298 +- conda: https://conda.anaconda.org/conda-forge/noarch/click-8.4.2-pyh6dadd2b_0.conda + sha256: 5b5c96afdd801dd9c3b78ebc2cd9a9f3ce34186257415d394dde1aa8468aa3c0 + md5: 8a0d65027e25e367f9f1754f0604e8de + depends: + - __win + - colorama + - python >=3.10 + - python + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/click?source=hash-mapping + run_exports: {} + size: 106227 + timestamp: 1783085395110 +- conda: https://conda.anaconda.org/conda-forge/noarch/click-8.4.2-pyhc90fa1f_0.conda + sha256: ccc4787f511964f9a1f2d2d2859c91c5d571fb60f7f09d4c4e092c9b7a94e671 + md5: 2c4bd6aeb90bb157456841c3270a0d92 + depends: + - __unix + - python + - python >=3.10 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/click?source=hash-mapping + run_exports: {} + size: 107155 + timestamp: 1783085363526 +- conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda + sha256: ab29d57dc70786c1269633ba3dff20288b81664d3ff8d21af995742e2bb03287 + md5: 962b9857ee8e7018c22f2776ffa0b2d7 + depends: + - python >=3.9 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/colorama?source=hash-mapping + run_exports: {} + size: 27011 + timestamp: 1733218222191 +- conda: https://conda.anaconda.org/conda-forge/noarch/comm-0.2.3-pyhe01879c_0.conda + sha256: 576a44729314ad9e4e5ebe055fbf48beb8116b60e58f9070278985b2b634f212 + md5: 2da13f2b299d8e1995bafbbe9689a2f7 + depends: + - python >=3.9 + - python + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/comm?source=hash-mapping + run_exports: {} + size: 14690 + timestamp: 1753453984907 +- conda: https://conda.anaconda.org/conda-forge/noarch/cpython-3.12.13-py312hd8ed1ab_1.conda + noarch: generic + sha256: b7ea8ebc1b2059159cbd49e0c9d1815713c73c4a55156b060c28dd61cfbdf9c2 + md5: 171d0cc7f621a0371ea273a05abdb46c + depends: + - python >=3.12,<3.13.0a0 + - python_abi * *_cp312 + license: Python-2.0 + purls: [] + run_exports: {} + size: 45930 + timestamp: 1786443506006 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-12.9.27-ha770c72_0.conda + sha256: 2ee3b9564ca326226e5cda41d11b251482df8e7c757e333d28ec75213c75d126 + md5: 87ff6381e33b76e5b9b179a2cdd005ec + depends: + - cuda-version >=12.9,<12.10.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 1150650 + timestamp: 1746189825236 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-12.9.27-h579c4fd_0.conda + sha256: b4efaee8fa95b9ec97a462dc343914a138ece704895e33caa52ac55968f7adfa + md5: 71e4d87a72bf003bd05f05a502288b2a + depends: + - arm-variant * sbsa + - cuda-version >=12.9,<12.10.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 1149299 + timestamp: 1746189919921 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-12.9.27-h57928b3_0.conda + sha256: 681eb1d9afd596e04329a82b04734c0e37c6ecb94b3380f3a378d61983e2a8cc + md5: 8f897dca7111f3bb4ded97ba6947b186 + depends: + - cuda-version >=12.9,<12.10.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 1139649 + timestamp: 1746189858434 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-12.9.86-ha770c72_2.conda + sha256: e6257534c4b4b6b8a1192f84191c34906ab9968c92680fa09f639e7846a87304 + md5: 79d280de61e18010df5997daea4743df + depends: + - cuda-version >=12.9,<12.10.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 94239 + timestamp: 1753975242354 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-12.9.86-h579c4fd_2.conda + sha256: 1db1f3ff4b0f445ce4064eb323733f7612ce28bc879dd6849e162b1504b7474a + md5: 86be43a4154301b74f823bc6fe476629 + depends: + - arm-variant * sbsa + - cuda-version >=12.9,<12.10.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 94794 + timestamp: 1753975199249 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-12.9.86-h57928b3_2.conda + sha256: 2fccde18cafec3cdb6697f37c576567ac623dc69531e2a81bbc83d8a86a82d1f + md5: 569c55bd368307e48191a2ed54c64428 + depends: + - cuda-version >=12.9,<12.10.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 95452 + timestamp: 1753975640812 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-12.9.79-h3f2d84a_0.conda + sha256: ffe86ed0144315b276f18020d836c8ef05bf971054cf7c3eb167af92494080d5 + md5: 86e40eb67d83f1a58bdafdd44e5a77c6 + depends: + - cuda-cccl_linux-64 + - cuda-cudart-static_linux-64 + - cuda-cudart_linux-64 + - cuda-version >=12.9,<12.10.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: + weak: + - cuda-cudart >=12.9.79,<13.0a0 + size: 389140 + timestamp: 1749218427266 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-12.9.79-h3ae8b8a_0.conda + sha256: ad64a1ecfc933172dbc6407d71b1abb78dc7ffcd5cc871baee238350307a7c0c + md5: 60e07c05a51d5549bec1e7ee38849feb + depends: + - arm-variant * sbsa + - cuda-cccl_linux-aarch64 + - cuda-cudart-static_linux-aarch64 + - cuda-cudart_linux-aarch64 + - cuda-version >=12.9,<12.10.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: + weak: + - cuda-cudart >=12.9.79,<13.0a0 + size: 388797 + timestamp: 1749218354725 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-12.9.79-he0c23c2_0.conda + sha256: e022d36a333420130faf6473c49f8dab54bf976cf320577ffb06db0a0797b734 + md5: 3c3e2f6b5455783fd332a072d632ea78 + depends: + - cuda-cccl_win-64 + - cuda-cudart-static_win-64 + - cuda-cudart_win-64 + - cuda-version >=12.9,<12.10.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: + weak: + - cuda-cudart >=12.9.79,<13.0a0 + size: 1190184 + timestamp: 1749218971019 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-12.9.79-h3f2d84a_0.conda + sha256: d435f8a19b59b52ce460ee3a6bfd877288a0d1d645119a6ba60f1c3627dc5032 + md5: b87bf315d81218dd63eb46cc1eaef775 + depends: + - cuda-version >=12.9,<12.10.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 1148889 + timestamp: 1749218381225 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-12.9.79-h3ae8b8a_0.conda + sha256: d4be038bad9abf0eac1e88dc57c8db6a469db8eb5d7c281085dfbb018ef84212 + md5: 52498fedeb43bbd4c45f84a0fb722d21 + depends: + - arm-variant * sbsa + - cuda-version >=12.9,<12.10.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 1152498 + timestamp: 1749218333554 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-12.9.79-he0c23c2_0.conda + sha256: 6a3410cd7ce07955cb705801055ef129ebee1cd6390c6fe9e5f607b67c3dba36 + md5: 0dd152a1493d90356037604a865f050f + depends: + - cuda-version >=12.9,<12.10.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 354611 + timestamp: 1749218544740 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-12.9.79-h3f2d84a_0.conda + sha256: 6cde0ace2b995b49d0db2eefb7bc30bf00ffc06bb98ef7113632dec8f8907475 + md5: 64508631775fbbf9eca83c84b1df0cae + depends: + - cuda-version >=12.9,<12.10.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 197249 + timestamp: 1749218394213 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-12.9.79-h3ae8b8a_0.conda + sha256: 4900ff2f000a4f8a70a7bc8576469640aa6590618fa9e73c84e066e025dcb760 + md5: cc2459ad427431e089d78d760cf24437 + depends: + - arm-variant * sbsa + - cuda-version >=12.9,<12.10.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 212993 + timestamp: 1749218341193 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-12.9.79-he0c23c2_0.conda + sha256: 6a89a53cdbcfafa0bb55abee1b58492c6a9a28e688abe04f48f0d01649c5f3e4 + md5: 71c9c2ab52226f990f268164381d8494 + depends: + - cuda-version >=12.9,<12.10.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 23260 + timestamp: 1749218569458 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvcc-dev_linux-64-12.9.86-he91c749_2.conda + sha256: a1672a34439a72869de9e011e935d41b62fc8dfb1a2700e85ed8a7a129b79981 + md5: 19d4e090217f0ea89d30bedb7461c048 + depends: + - cuda-crt-dev_linux-64 12.9.86 ha770c72_2 + - cuda-nvvm-dev_linux-64 12.9.86 ha770c72_2 + - cuda-version >=12.9,<12.10.0a0 + - libgcc >=6 + - libnvptxcompiler-dev_linux-64 12.9.86 ha770c72_2 + constrains: + - gcc_impl_linux-64 >=6,<15.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 28121 + timestamp: 1753975535813 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvcc-dev_linux-aarch64-12.9.86-h4310d6a_2.conda + sha256: f4b2917f38867dd1ad9cfb029c790cfdbee89f79919cd43b7ce0142cc77bfd35 + md5: e508550bd3d76ef97eaf5aab9ca757cd + depends: + - arm-variant * sbsa + - cuda-crt-dev_linux-aarch64 12.9.86 h579c4fd_2 + - cuda-nvvm-dev_linux-aarch64 12.9.86 h579c4fd_2 + - cuda-version >=12.9,<12.10.0a0 + - libgcc >=6 + - libnvptxcompiler-dev_linux-aarch64 12.9.86 h579c4fd_2 + constrains: + - gcc_impl_linux-aarch64 >=6,<15.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 28252 + timestamp: 1753975422031 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvcc-dev_win-64-12.9.86-h36c15f3_2.conda + sha256: e50255fe30f60135414e8b657c4ffdb12938af06463c959280eceb7166f69eb5 + md5: 20c8a059c5175ab804e7fc94213eb464 + depends: + - cuda-crt-dev_win-64 12.9.86 h57928b3_2 + - cuda-nvvm-dev_win-64 12.9.86 h57928b3_2 + - cuda-version >=12.9,<12.10.0a0 + - libnvptxcompiler-dev_win-64 12.9.86 h57928b3_2 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 23452957 + timestamp: 1753976361068 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-12.9.86-ha770c72_2.conda + sha256: 522722dcaffd133e0c7500c69dc70e21ac34d6762dcbaabfe847439f944028f0 + md5: 7b386291414c7eea113d25ac28a33772 + depends: + - cuda-version >=12.9,<12.10.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 27096 + timestamp: 1753975261562 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-12.9.86-h579c4fd_2.conda + sha256: 5f27299818ecef44d6cf46a99465671744f6074c14618b5f8491a03a62942a7f + md5: c59b036058d7bf78ac0a99618c321e85 + depends: + - arm-variant * sbsa + - cuda-version >=12.9,<12.10.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 27218 + timestamp: 1753975206503 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-12.9.86-h57928b3_2.conda + sha256: 455dbf0ec81efdbd40c0387d82c77689721f6d34b6e7694ca0d51bad9392eddc + md5: 23f7e70c03eabd2139b5e659c8e188b4 + depends: + - cuda-version >=12.9,<12.10.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 27284 + timestamp: 1753975714790 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-pathfinder-1.6.1-pyhc364b38_0.conda + sha256: 13ac7a16860bc817a2b5461731ec4bbb22ebf7e4e38183441b1f9fdde9ce4191 + md5: 43b0f44f0bfbfcda7cb25cfde0fd747b + depends: + - python >=3.10 + - cuda-version >=12.0,<14 + - python + license: Apache-2.0 + license_family: APACHE + purls: + - pkg:pypi/cuda-pathfinder?source=hash-mapping + run_exports: {} + size: 51858 + timestamp: 1787073465607 +- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-12.9-h4f385c5_3.conda + sha256: 5f5f428031933f117ff9f7fcc650e6ea1b3fef5936cf84aa24af79167513b656 + md5: b6d5d7f1c171cbd228ea06b556cfa859 + constrains: + - cudatoolkit 12.9|12.9.* + - __cuda >=12 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 21578 + timestamp: 1746134436166 +- conda: https://conda.anaconda.org/conda-forge/noarch/dict2css-0.6.0-pyhd8ed1ab_0.conda + sha256: 446d5d68b2e76ed4afbd23fdde580b242e4fd309006fc246181437942ef1fac7 + md5: 788c6a27890b964b6980d062d593c5da + depends: + - domdf-python-tools >=2.2.0 + - python >=3.10 + - tinycss2 >=1.2.1 + license: MIT + license_family: MIT + purls: + - pkg:pypi/dict2css?source=hash-mapping + run_exports: {} + size: 16157 + timestamp: 1779358557191 +- conda: https://conda.anaconda.org/conda-forge/noarch/docutils-0.21.2-pyhd8ed1ab_1.conda + sha256: fa5966bb1718bbf6967a85075e30e4547901410cc7cb7b16daf68942e9a94823 + md5: 24c1ca34138ee57de72a943237cde4cc + depends: + - python >=3.9 + license: CC-PDDC AND BSD-3-Clause AND BSD-2-Clause AND ZPL-2.1 + purls: + - pkg:pypi/docutils?source=hash-mapping + run_exports: {} + size: 402700 + timestamp: 1733217860944 +- conda: https://conda.anaconda.org/conda-forge/noarch/domdf-python-tools-3.10.0-pyhff2d567_0.conda + sha256: e7a7121de51caa332e73a0a7345d78fb514a8460311347be5d8eba0738c66c31 + md5: 0254332c3957f0ae09a58670c2d7ea01 + depends: + - importlib-metadata >=3.6.0 + - importlib-resources >=3.0.0 + - natsort >=7.0.1 + - python >=3.9 + - typing-extensions >=3.7.4.1 + license: MIT + license_family: MIT + purls: + - pkg:pypi/domdf-python-tools?source=hash-mapping + run_exports: {} + size: 96253 + timestamp: 1739444562482 +- conda: https://conda.anaconda.org/conda-forge/noarch/enum_tools-0.13.0-pyhcf101f3_1.conda + sha256: 6a9ca88e9cb9410fbc2a3ec8ef8fa691bfd69541b652cd9e6ec1accf02f07cb1 + md5: 2c4a76362cf961db49bc9dbd8707dcef + depends: + - pygments >=2.6.1 + - python >=3.10 + - typing-extensions >=3.7.4.3 + - python + constrains: + - sphinx >=3.4.0 + - sphinx-toolbox >=2.16.0 + license: LGPL-3.0-or-later + license_family: LGPL + purls: + - pkg:pypi/enum-tools?source=hash-mapping + run_exports: {} + size: 31183 + timestamp: 1777266899521 +- conda: https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda + sha256: ee6cf346d017d954255bbcbdb424cddea4d14e4ed7e9813e429db1d795d01144 + md5: 8e662bd460bda79b1ea39194e3c4c9ab + depends: + - python >=3.10 + - typing_extensions >=4.6.0 + license: MIT and PSF-2.0 + purls: + - pkg:pypi/exceptiongroup?source=hash-mapping + run_exports: {} + size: 21333 + timestamp: 1763918099466 +- conda: https://conda.anaconda.org/conda-forge/noarch/executing-2.2.1-pyhd8ed1ab_0.conda + sha256: 210c8165a58fdbf16e626aac93cc4c14dbd551a01d1516be5ecad795d2422cad + md5: ff9efb7f7469aed3c4a8106ffa29593c + depends: + - python >=3.10 + license: MIT + license_family: MIT + purls: + - pkg:pypi/executing?source=hash-mapping + run_exports: {} + size: 30753 + timestamp: 1756729456476 +- conda: https://conda.anaconda.org/conda-forge/noarch/filelock-3.32.3-pyhd8ed1ab_0.conda + sha256: 43832e6442c59af5d65c6a5afa5a4a5160f6a45c8cc25f5275a9454161c40bfd + md5: 1ef717bcf73da3edcaaf7bf12a1e846c + depends: + - python >=3.10 + license: Unlicense + purls: + - pkg:pypi/filelock?source=hash-mapping + run_exports: {} + size: 78106 + timestamp: 1786669915951 +- conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-dejavu-sans-mono-2.37-hab24e00_0.tar.bz2 + sha256: 58d7f40d2940dd0a8aa28651239adbf5613254df0f75789919c4e6762054403b + md5: 0c96522c6bdaed4b1566d11387caaf45 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: {} + size: 397370 + timestamp: 1566932522327 +- conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-inconsolata-3.000-h77eed37_0.tar.bz2 + sha256: c52a29fdac682c20d252facc50f01e7c2e7ceac52aa9817aaf0bb83f7559ec5c + md5: 34893075a5c9e55cdafac56607368fc6 + license: OFL-1.1 + license_family: Other + purls: [] + run_exports: {} + size: 96530 + timestamp: 1620479909603 +- conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-source-code-pro-2.038-h77eed37_0.tar.bz2 + sha256: 00925c8c055a2275614b4d983e1df637245e19058d79fc7dd1a93b8d9fb4b139 + md5: 4d59c254e01d9cde7957100457e2d5fb + license: OFL-1.1 + license_family: Other + purls: [] + run_exports: {} + size: 700814 + timestamp: 1620479612257 +- conda: https://conda.anaconda.org/conda-forge/noarch/font-ttf-ubuntu-0.83-h77eed37_3.conda + sha256: 2821ec1dc454bd8b9a31d0ed22a7ce22422c0aef163c59f49dfdf915d0f0ca14 + md5: 49023d73832ef61042f6a237cb2687e7 + license: LicenseRef-Ubuntu-Font-Licence-Version-1.0 + license_family: Other + purls: [] + run_exports: {} + size: 1620504 + timestamp: 1727511233259 +- conda: https://conda.anaconda.org/conda-forge/noarch/fonts-conda-ecosystem-1-0.tar.bz2 + sha256: a997f2f1921bb9c9d76e6fa2f6b408b7fa549edd349a77639c9fe7a23ea93e61 + md5: fee5683a3f04bd15cbd8318b096a27ab + depends: + - fonts-conda-forge + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: {} + size: 3667 + timestamp: 1566974674465 +- conda: https://conda.anaconda.org/conda-forge/noarch/fonts-conda-forge-1-hc364b38_1.conda + sha256: 54eea8469786bc2291cc40bca5f46438d3e062a399e8f53f013b6a9f50e98333 + md5: a7970cd949a077b7cb9696379d338681 + depends: + - font-ttf-ubuntu + - font-ttf-inconsolata + - font-ttf-dejavu-sans-mono + - font-ttf-source-code-pro + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: {} + size: 4059 + timestamp: 1762351264405 +- conda: https://conda.anaconda.org/conda-forge/noarch/furo-2025.12.19-pyhd8ed1ab_1.conda + sha256: 0b6c349fb314515b6d0bda4973edeab83366e4ebe6d57a435c028193ebe1e6f6 + md5: a119df8b5f08fe7b185f5923ab8c4c0e + depends: + - accessible-pygments >=0.0.5 + - beautifulsoup4 + - pygments >=2.7 + - python >=3.10 + - sphinx >=7.0,<10.0 + - sphinx-basic-ng + license: MIT + license_family: MIT + purls: + - pkg:pypi/furo?source=hash-mapping + run_exports: {} + size: 83092 + timestamp: 1772974091117 +- conda: https://conda.anaconda.org/conda-forge/noarch/h2-4.4.1-pyhcf101f3_0.conda + sha256: 307dd6ec90140c3cf4171071b0e5e870abec314f4565c1edd5bc433e942cdcc0 + md5: e652ac7756069c456d0da2a922cd7df5 + depends: + - python >=3.10 + - hyperframe >=6.1,<7 + - hpack >=4.2,<5 + - python + license: MIT + license_family: MIT + purls: + - pkg:pypi/h2?source=hash-mapping + run_exports: {} + size: 100789 + timestamp: 1785796355216 +- conda: https://conda.anaconda.org/conda-forge/noarch/hpack-4.2.0-pyhd8ed1ab_0.conda + sha256: fdcea5d7cb314485d3907192ef024c704311548c5b0cbeb390cd1951051e29d2 + md5: b395909221b9bd1df066e5930e18855b + depends: + - python >=3.10 + license: MIT + license_family: MIT + purls: + - pkg:pypi/hpack?source=hash-mapping + run_exports: {} + size: 32884 + timestamp: 1782283986153 +- conda: https://conda.anaconda.org/conda-forge/noarch/html5lib-1.1-pyhd8ed1ab_2.conda + sha256: 8027e436ad59e2a7392f6036392ef9d6c223798d8a1f4f12d5926362def02367 + md5: cf25bfddbd3bc275f3d3f9936cee1dd3 + depends: + - python >=3.9 + - six >=1.9 + - webencodings + license: MIT + license_family: MIT + purls: + - pkg:pypi/html5lib?source=hash-mapping + run_exports: {} + size: 94853 + timestamp: 1734075276288 +- conda: https://conda.anaconda.org/conda-forge/noarch/hyperframe-6.1.0-pyhd8ed1ab_0.conda + sha256: 77af6f5fe8b62ca07d09ac60127a30d9069fdc3c68d6b256754d0ffb1f7779f8 + md5: 8e6923fc12f1fe8f8c4e5c9f343256ac + depends: + - python >=3.9 + license: MIT + license_family: MIT + purls: + - pkg:pypi/hyperframe?source=hash-mapping + run_exports: {} + size: 17397 + timestamp: 1737618427549 +- conda: https://conda.anaconda.org/conda-forge/noarch/idna-3.19-pyhcf101f3_0.conda + sha256: 1c35a59c1545ad0fdaddf1fbde7bcfa6ef41a8d68c3a2b0b4a291be00676163e + md5: a39ae05027e9b707742e41b30d296b75 + depends: + - python >=3.10 + - python + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/idna?source=compressed-mapping + run_exports: {} + size: 177433 + timestamp: 1787059857580 +- conda: https://conda.anaconda.org/conda-forge/noarch/imagesize-2.0.0-pyhd8ed1ab_0.conda + sha256: 5a047f9eac290e679b4e6f6f4cbfcc5acdfbf031a4f06824d4ddb590cdbb850b + md5: 92617c2ba2847cca7a6ed813b6f4ab79 + depends: + - python >=3.10 + license: MIT + license_family: MIT + purls: + - pkg:pypi/imagesize?source=hash-mapping + run_exports: {} + size: 15729 + timestamp: 1773752188889 +- conda: https://conda.anaconda.org/conda-forge/noarch/importlib-metadata-9.0.0-pyhcf101f3_0.conda + sha256: 43e2a5497cad1598ff88a3e69f69bc88b7b8f141fa63c60eab5db296317318b8 + md5: ffc17e785d64e12fc311af9184221839 + depends: + - python >=3.10 + - zipp >=3.20 + - python + license: Apache-2.0 + license_family: APACHE + purls: + - pkg:pypi/importlib-metadata?source=hash-mapping + run_exports: {} + size: 34766 + timestamp: 1779714582554 +- conda: https://conda.anaconda.org/conda-forge/noarch/importlib-resources-7.1.0-pyhd8ed1ab_0.conda + sha256: 6a2f86ef0965605d742b5b94229bf8b829258d0a9f640e3651901cc72ef9a0a5 + md5: e3bffa82b874f8b9a2631bddb3869529 + depends: + - importlib_resources >=7.1.0,<7.1.1.0a0 + - python >=3.10 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: {} + size: 10354 + timestamp: 1776068852701 +- conda: https://conda.anaconda.org/conda-forge/noarch/importlib_resources-7.1.0-pyhd8ed1ab_0.conda + sha256: a563a51aa522998172838e867e6dedcf630bc45796e8612f5a1f6d73e9c8125a + md5: 0ba6225c279baf7ea9473a62ea0ec9ae + depends: + - python >=3.10 + - zipp >=3.1.0 + constrains: + - importlib-resources >=7.1.0,<7.1.1.0a0 + license: Apache-2.0 + license_family: APACHE + purls: + - pkg:pypi/importlib-resources?source=hash-mapping + run_exports: {} + size: 34809 + timestamp: 1776068839274 +- conda: https://conda.anaconda.org/conda-forge/noarch/iniconfig-2.3.0-pyhd8ed1ab_0.conda + sha256: e1a9e3b1c8fe62dc3932a616c284b5d8cbe3124bbfbedcf4ce5c828cb166ee19 + md5: 9614359868482abba1bd15ce465e3c42 + depends: + - python >=3.10 + license: MIT + license_family: MIT + purls: + - pkg:pypi/iniconfig?source=hash-mapping + run_exports: {} + size: 13387 + timestamp: 1760831448842 +- conda: https://conda.anaconda.org/conda-forge/noarch/ipykernel-7.3.0-pyh6dadd2b_0.conda + sha256: e3ff0b3d5db5c31830030406f50ac2c9a5c31b86f1c2cef87a6042f0a4c77eb7 + md5: dd5c51d5c42381ba4a2e0ce32e02ba17 + depends: + - __win + - comm >=0.1.1 + - debugpy >=1.6.5 + - ipython >=7.23.1 + - jupyter_client >=8.9.0 + - jupyter_core >=5.1,!=6.0.* + - matplotlib-inline >=0.1 + - nest-asyncio2 >=1.7.0 + - packaging >=22 + - psutil >=5.7 + - python >=3.10 + - pyzmq >=25 + - tornado >=6.4.1 + - traitlets >=5.4.0 + - python + constrains: + - appnope >=0.1.2 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/ipykernel?source=hash-mapping + run_exports: {} + size: 138046 + timestamp: 1781101760172 +- conda: https://conda.anaconda.org/conda-forge/noarch/ipykernel-7.3.0-pyha191276_0.conda + sha256: 305ad9226363ff5f259c404dd9a7508183a2e150739b2adc43db7d817234da66 + md5: 2b47a10e4d98334f8171ff60aea05ff3 + depends: + - __linux + - comm >=0.1.1 + - debugpy >=1.6.5 + - ipython >=7.23.1 + - jupyter_client >=8.9.0 + - jupyter_core >=5.1,!=6.0.* + - matplotlib-inline >=0.1 + - nest-asyncio2 >=1.7.0 + - packaging >=22 + - psutil >=5.7 + - python >=3.10 + - pyzmq >=25 + - tornado >=6.4.1 + - traitlets >=5.4.0 + - python + constrains: + - appnope >=0.1.2 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/ipykernel?source=hash-mapping + run_exports: {} + size: 138635 + timestamp: 1781101665847 +- conda: https://conda.anaconda.org/conda-forge/noarch/ipython-9.16.1-pyh53cf698_0.conda + sha256: 8470648b5e790d1881c09c02068d53e1bf0126f020db02a6dc2e73400cf1eeeb + md5: 23564ed27c9c7714905be96ac5786500 + depends: + - __unix + - ipython_pygments_lexers >=1.0.0 + - jedi >=0.18.2 + - matplotlib-inline >=0.1.6 + - prompt-toolkit >=3.0.41,<3.1.0 + - psutil >=7 + - pygments >=2.14.0 + - python >=3.11 + - stack_data >=0.6.0 + - traitlets >=5.13.0 + - typing_extensions >=4.6 + - pexpect >4.6 + - python + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/ipython?source=hash-mapping + run_exports: {} + size: 716078 + timestamp: 1785754203352 +- conda: https://conda.anaconda.org/conda-forge/noarch/ipython-9.16.1-pyhe2676ad_0.conda + sha256: 2a0cd24e5c0e1eb8b7baf06346906673f6b8abea151ce302d7d978a3c416aeec + md5: d7c95d926befcfa22bee69bb1980e2ce + depends: + - __win + - ipython_pygments_lexers >=1.0.0 + - jedi >=0.18.2 + - matplotlib-inline >=0.1.6 + - prompt-toolkit >=3.0.41,<3.1.0 + - psutil >=7 + - pygments >=2.14.0 + - python >=3.11 + - stack_data >=0.6.0 + - traitlets >=5.13.0 + - typing_extensions >=4.6 + - colorama >=0.4.4 + - python + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/ipython?source=hash-mapping + run_exports: {} + size: 715162 + timestamp: 1785754256301 +- conda: https://conda.anaconda.org/conda-forge/noarch/ipython_pygments_lexers-1.1.1-pyhd8ed1ab_0.conda + sha256: 894682a42a7d659ae12878dbcb274516a7031bbea9104e92f8e88c1f2765a104 + md5: bd80ba060603cc228d9d81c257093119 + depends: + - pygments + - python >=3.9 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/ipython-pygments-lexers?source=hash-mapping + run_exports: {} + size: 13993 + timestamp: 1737123723464 +- conda: https://conda.anaconda.org/conda-forge/noarch/jedi-0.20.0-pyhcf101f3_0.conda + sha256: 744143551c1c7b528b82533fb641b9d7db20b2203abc4c2635c387fa6c089fc3 + md5: c2b3d37aa1411031126036ee76a8a861 + depends: + - python >=3.10 + - parso >=0.8.6,<0.9.0 + - python + license: Apache-2.0 AND MIT + purls: + - pkg:pypi/jedi?source=hash-mapping + run_exports: {} + size: 2715215 + timestamp: 1782251948616 +- conda: https://conda.anaconda.org/conda-forge/noarch/jinja2-3.1.6-pyhcf101f3_1.conda + sha256: fc9ca7348a4f25fed2079f2153ecdcf5f9cf2a0bc36c4172420ca09e1849df7b + md5: 04558c96691bed63104678757beb4f8d + depends: + - markupsafe >=2.0 + - python >=3.10 + - python + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/jinja2?source=hash-mapping + run_exports: {} + size: 120685 + timestamp: 1764517220861 +- conda: https://conda.anaconda.org/conda-forge/noarch/jsonschema-4.26.0-pyhcf101f3_0.conda + sha256: db973a37d75db8e19b5f44bbbdaead0c68dde745407f281e2a7fe4db74ec51d7 + md5: ada41c863af263cc4c5fcbaff7c3e4dc + depends: + - attrs >=22.2.0 + - jsonschema-specifications >=2023.3.6 + - python >=3.10 + - referencing >=0.28.4 + - rpds-py >=0.25.0 + - python + license: MIT + license_family: MIT + purls: + - pkg:pypi/jsonschema?source=hash-mapping + run_exports: {} + size: 82356 + timestamp: 1767839954256 +- conda: https://conda.anaconda.org/conda-forge/noarch/jsonschema-specifications-2025.9.1-pyhcf101f3_0.conda + sha256: 0a4f3b132f0faca10c89fdf3b60e15abb62ded6fa80aebfc007d05965192aa04 + md5: 439cd0f567d697b20a8f45cb70a1005a + depends: + - python >=3.10 + - referencing >=0.31.0 + - python + license: MIT + license_family: MIT + purls: + - pkg:pypi/jsonschema-specifications?source=hash-mapping + run_exports: {} + size: 19236 + timestamp: 1757335715225 +- conda: https://conda.anaconda.org/conda-forge/noarch/jupyter-cache-1.0.1-pyhff2d567_0.conda + sha256: 054d397dd45ed08bffb0976702e553dfb0d0b0a477da9cff36e2ea702e928f48 + md5: b0ee650829b8974202a7abe7f8b81e5a + depends: + - attrs + - click + - importlib-metadata + - nbclient >=0.2 + - nbformat + - python >=3.9 + - pyyaml + - sqlalchemy >=1.3.12,<3 + - tabulate + license: MIT + license_family: MIT + purls: + - pkg:pypi/jupyter-cache?source=hash-mapping + run_exports: {} + size: 31236 + timestamp: 1731777189586 +- conda: https://conda.anaconda.org/conda-forge/noarch/jupyter_client-8.9.1-pyhcf101f3_0.conda + sha256: 48b18974cc93b2c0d2681563237034e521f51d1878f0bbc6a5a67ca31b1608a6 + md5: 49440e66df843bee2273937e8032ec43 + depends: + - jupyter_core >=5.1 + - python >=3.10 + - python-dateutil >=2.8.2 + - pyzmq >=25.0 + - tornado >=6.4.1 + - traitlets >=5.3 + - typing_extensions >=4.13.0 + - python + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/jupyter-client?source=hash-mapping + run_exports: {} + size: 117954 + timestamp: 1781019994076 +- conda: https://conda.anaconda.org/conda-forge/noarch/jupyter_core-5.9.1-pyh6dadd2b_0.conda + sha256: ed709a6c25b731e01563521ef338b93986cd14b5bc17f35e9382000864872ccc + md5: a8db462b01221e9f5135be466faeb3e0 + depends: + - __win + - pywin32 + - platformdirs >=2.5 + - python >=3.10 + - traitlets >=5.3 + - python + constrains: + - pywin32 >=300 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/jupyter-core?source=hash-mapping + run_exports: {} + size: 64679 + timestamp: 1760643889625 +- conda: https://conda.anaconda.org/conda-forge/noarch/jupyter_core-5.9.1-pyhc90fa1f_0.conda + sha256: 1d34b80e5bfcd5323f104dbf99a2aafc0e5d823019d626d0dce5d3d356a2a52a + md5: b38fe4e78ee75def7e599843ef4c1ab0 + depends: + - __unix + - python + - platformdirs >=2.5 + - python >=3.10 + - traitlets >=5.3 + - python + constrains: + - pywin32 >=300 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/jupyter-core?source=hash-mapping + run_exports: {} + size: 65503 + timestamp: 1760643864586 +- conda: https://conda.anaconda.org/conda-forge/noarch/kernel-headers_linux-64-4.18.0-he073ed8_9.conda + sha256: 41557eeadf641de6aeae49486cef30d02a6912d8da98585d687894afd65b356a + md5: 86d9cba083cd041bfbf242a01a7a1999 + constrains: + - sysroot_linux-64 ==2.28 + license: LGPL-2.0-or-later AND LGPL-2.0-or-later WITH exceptions AND GPL-2.0-or-later + license_family: GPL + purls: [] + run_exports: {} + size: 1278712 + timestamp: 1765578681495 +- conda: https://conda.anaconda.org/conda-forge/noarch/kernel-headers_linux-aarch64-4.18.0-h05a177a_9.conda + sha256: 5d224bf4df9bac24e69de41897c53756108c5271a0e5d2d2f66fd4e2fbc1d84b + md5: bb3b7cad9005f2cbf9d169fb30263f3e + constrains: + - sysroot_linux-aarch64 ==2.28 + license: LGPL-2.0-or-later AND LGPL-2.0-or-later WITH exceptions AND GPL-2.0-or-later + license_family: GPL + purls: [] + run_exports: {} + size: 1248134 + timestamp: 1765578613607 +- conda: https://conda.anaconda.org/conda-forge/noarch/libgcc-devel_linux-64-16.1.0-h59071f9_102.conda + sha256: 6bc83b1cbb82292da5e2307baa6ca35c70b94713a6c8bb7571c3b84dc7c13a2e + md5: 88543bc2f8ecafd2b207424a63a26f49 + depends: + - __unix + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: {} + size: 3103886 + timestamp: 1787165271697 +- conda: https://conda.anaconda.org/conda-forge/noarch/libgcc-devel_linux-aarch64-16.1.0-hd673532_102.conda + sha256: b501040edd7760c8fd0690797abefae412527f091e302ef7754e3fdd2026c42b + md5: 815f9cdd357b1b3563556dd9adad5597 + depends: + - __unix + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: {} + size: 2357208 + timestamp: 1787164356336 +- conda: https://conda.anaconda.org/conda-forge/noarch/libgcc-devel_win-64-16.1.0-hecf7705_102.conda + sha256: c4109f73927eac3b635139137b1f30d331fde59c7b15f2b585cd7cdcc1204a55 + md5: 5f1ff5c8ea174345c5e45ae104a0a66d + depends: + - m2-conda-epoch + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: {} + size: 2419197 + timestamp: 1787166432786 +- conda: https://conda.anaconda.org/conda-forge/noarch/libnvptxcompiler-dev_linux-64-12.9.86-ha770c72_2.conda + sha256: 17952c32eac197a59c119fdf3fb6f08c6a29c225a80bae141ac904ad212b87dd + md5: a66a909acf08924aced622903832a937 + depends: + - cuda-version >=12.9,<12.10.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 14422867 + timestamp: 1753975387297 +- conda: https://conda.anaconda.org/conda-forge/noarch/libnvptxcompiler-dev_linux-aarch64-12.9.86-h579c4fd_2.conda + sha256: 0b0b96f4bb99d9f9fccfcd34fcb5b0f465c05373c9628ffa32951ed5fc7ab379 + md5: 3f6edd278c0a724f427d2655111c1c72 + depends: + - arm-variant * sbsa + - cuda-version >=12.9,<12.10.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 13939480 + timestamp: 1753975314178 +- conda: https://conda.anaconda.org/conda-forge/noarch/libnvptxcompiler-dev_win-64-12.9.86-h57928b3_2.conda + sha256: 9858bc91d01ab6d3a21039f37c8e22e3cb59542b7d308098b10bbe2b12be0aaa + md5: 77baf6d1c6916a86ab99ce4e83282e4f + depends: + - cuda-version >=12.9,<12.10.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 31818844 + timestamp: 1753976049670 +- conda: https://conda.anaconda.org/conda-forge/noarch/libstdcxx-devel_linux-64-16.1.0-h41cdd0d_102.conda + sha256: fa3399192aa567a85c7fa698990c5a8412d0c5d06d0a787dce900725d2fa1760 + md5: a64e9877b568575ac1d8ef73a208ee92 + depends: + - __unix + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: {} + size: 23474177 + timestamp: 1787165294351 +- conda: https://conda.anaconda.org/conda-forge/noarch/libstdcxx-devel_linux-aarch64-16.1.0-h2445e1f_102.conda + sha256: 3bc11bc5763bbd3155f07146314440ab3a074483b06b0f9b6b4120dce41e163e + md5: c120d97c22af34a1bd3170a4cf8ada52 + depends: + - __unix + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: {} + size: 19145587 + timestamp: 1787164374800 +- conda: https://conda.anaconda.org/conda-forge/noarch/libstdcxx-devel_win-64-16.1.0-hc76ffd0_102.conda + sha256: 80b864a82655aa7a1caf7dae067fbdb85428c397f6193da65da25f97c6dba158 + md5: 7e2976df6bc9f80d13d79e85101dfb64 + depends: + - m2-conda-epoch + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: {} + size: 13783582 + timestamp: 1787166451739 +- conda: https://conda.anaconda.org/conda-forge/noarch/m2w64-sysroot_win-64-12.0.0.r4.gg4f2fc60ca-hd8ed1ab_10.conda + sha256: fb0ffe6b3c25189038c29abbd1fac2522d87fe2775a09e5f5088e5542dc3309b + md5: 9676d2a30fa3ffa4e5350041d0993758 + depends: + - m2-conda-epoch + - mingw-w64-ucrt-x86_64-crt-git 12.0.0.r4.gg4f2fc60ca hd8ed1ab_10 + - mingw-w64-ucrt-x86_64-headers-git 12.0.0.r4.gg4f2fc60ca hd8ed1ab_10 + - mingw-w64-ucrt-x86_64-windows-default-manifest + - mingw-w64-ucrt-x86_64-winpthreads-git 12.0.0.r4.gg4f2fc60ca hd8ed1ab_10 + - ucrt + purls: [] + run_exports: + strong: + - libwinpthread >=12.0.0.r4.gg4f2fc60ca + size: 8421 + timestamp: 1759768559974 +- conda: https://conda.anaconda.org/conda-forge/noarch/markdown-it-py-4.2.0-pyhd8ed1ab_0.conda + sha256: 0c4c35376fe920714390d46e4b8d31c876d65f18e1655899e0763ec25f2a902f + md5: 6d03368f2b2b0a5fb6839df53b2eb5e0 + depends: + - mdurl >=0.1,<1 + - python >=3.10 + license: MIT + license_family: MIT + purls: + - pkg:pypi/markdown-it-py?source=hash-mapping + run_exports: {} + size: 69017 + timestamp: 1778169663339 +- conda: https://conda.anaconda.org/conda-forge/noarch/matplotlib-inline-0.2.2-pyhd8ed1ab_0.conda + sha256: 35b43d7343f74452307fd018a1cca92b8f68961ff8e2ab6a81ce0a703c9a3764 + md5: 9acc1c385be401d533ff70ef5b50dae6 + depends: + - python >=3.10 + - traitlets + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/matplotlib-inline?source=hash-mapping + run_exports: {} + size: 15725 + timestamp: 1778264403247 +- conda: https://conda.anaconda.org/conda-forge/noarch/mdit-py-plugins-0.6.1-pyhd8ed1ab_0.conda + sha256: 49db23cbfb1c1d414a14d7540195208b994ebd747beba0f15c903f3a0a2dc446 + md5: ad6821df7a98510117db06e9a833281f + depends: + - markdown-it-py >=2.0.0,<5.0.0 + - python >=3.10 + license: MIT + license_family: MIT + purls: + - pkg:pypi/mdit-py-plugins?source=hash-mapping + run_exports: {} + size: 50460 + timestamp: 1778692223625 +- conda: https://conda.anaconda.org/conda-forge/noarch/mdurl-0.1.2-pyhd8ed1ab_1.conda + sha256: 78c1bbe1723449c52b7a9df1af2ee5f005209f67e40b6e1d3c7619127c43b1c7 + md5: 592132998493b3ff25fd7479396e8351 + depends: + - python >=3.9 + license: MIT + license_family: MIT + purls: + - pkg:pypi/mdurl?source=hash-mapping + run_exports: {} + size: 14465 + timestamp: 1733255681319 +- conda: https://conda.anaconda.org/conda-forge/noarch/mingw-w64-ucrt-x86_64-crt-git-12.0.0.r4.gg4f2fc60ca-hd8ed1ab_10.conda + sha256: de3e42149b498c16bfb485b7729f4ca0fe392be576a2a10ff702d661799b1df3 + md5: 44ffa6d68699ec9321f6d48d75bdc726 + depends: + - m2-conda-epoch + - mingw-w64-ucrt-x86_64-headers-git 12.0.0.r4.gg4f2fc60ca hd8ed1ab_10 + constrains: + - mingw-w64-ucrt-x86_64-winpthreads-git 12.0.0.r4.gg4f2fc60ca.* + license: ZPL-2.1 + purls: [] + run_exports: {} + size: 5663635 + timestamp: 1759768458961 +- conda: https://conda.anaconda.org/conda-forge/noarch/mingw-w64-ucrt-x86_64-headers-git-12.0.0.r4.gg4f2fc60ca-hd8ed1ab_10.conda + sha256: 1add86481f35163215e7076e6f06f22aa9f1f9345a5fff5cb07bc846c13fbec7 + md5: cab7b807024204893ef5bb1860d91408 + depends: + - m2-conda-epoch + constrains: + - mingw-w64-ucrt-x86_64-crt-git 12.0.0.r4.gg4f2fc60ca.* + - mingw-w64-ucrt-x86_64-winpthreads-git 12.0.0.r4.gg4f2fc60ca.* + license: ZPL-2.1 AND LGPL-2.1-or-later + purls: [] + run_exports: {} + size: 7089846 + timestamp: 1759768412123 +- conda: https://conda.anaconda.org/conda-forge/noarch/mingw-w64-ucrt-x86_64-windows-default-manifest-6.4-he206cdd_7.conda + sha256: 5b0df4e0ba8487ffd59f60c34c5dbb9e001ecd2c5d2c66ba88eada40bfa3ecb8 + md5: 1d6b5c96d7e3cce773519d7d1a4482f0 + depends: + - __win + constrains: + - m2w64-sysroot_win-64 >=12.0.0.r0 + license: FSFAP + purls: [] + run_exports: {} + size: 7412 + timestamp: 1717486007140 +- conda: https://conda.anaconda.org/conda-forge/noarch/mingw-w64-ucrt-x86_64-winpthreads-git-12.0.0.r4.gg4f2fc60ca-hd8ed1ab_10.conda + sha256: 828abb111286940473c4c665fc8ab300d28920f5af83b32295e8bf2256a8f342 + md5: ba0eeff6a5c62b83c771bb392e22dbb4 + depends: + - m2-conda-epoch + - mingw-w64-ucrt-x86_64-headers-git 12.0.0.r4.gg4f2fc60ca hd8ed1ab_10 + constrains: + - mingw-w64-ucrt-x86_64-crt-git 12.0.0.r4.gg4f2fc60ca.* + license: MIT AND BSD-3-Clause-Clear + purls: [] + run_exports: {} + size: 123916 + timestamp: 1759768539535 +- conda: https://conda.anaconda.org/conda-forge/noarch/mypy_extensions-1.1.0-pyha770c72_0.conda + sha256: 6ed158e4e5dd8f6a10ad9e525631e35cee8557718f83de7a4e3966b1f772c4b1 + md5: e9c622e0d00fa24a6292279af3ab6d06 + depends: + - python >=3.9 + license: MIT + license_family: MIT + purls: + - pkg:pypi/mypy-extensions?source=hash-mapping + run_exports: {} + size: 11766 + timestamp: 1745776666688 +- conda: https://conda.anaconda.org/conda-forge/noarch/myst-nb-1.4.0-pyhcf101f3_0.conda + sha256: c81d0c8c74c3da66808f8da09d8e48f2af2d173d357d45239defaf466838edba + md5: da07c7b1588ad0a44118d28aeb31b6a6 + depends: + - importlib-metadata + - ipykernel + - ipython + - jupyter-cache >=0.5 + - myst-parser >=1.0.0 + - nbclient + - nbformat >=5.0 + - python >=3.10 + - pyyaml + - sphinx >=5 + - typing_extensions + - python + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/myst-nb?source=hash-mapping + run_exports: {} + size: 68766 + timestamp: 1772587444587 +- conda: https://conda.anaconda.org/conda-forge/noarch/myst-parser-5.1.0-pyhd8ed1ab_0.conda + sha256: 94235bc1f769cf35029942ecb2ca796f18e730c1bf5aeef95e72680ebcfacfef + md5: 580615e59fc7c07741e4d2ab052cfc8b + depends: + - docutils >=0.20,<0.23 + - jinja2 + - markdown-it-py >=4.2.0,<4.3.0 + - mdit-py-plugins >=0.6.1,<0.7 + - python >=3.11 + - pyyaml + - sphinx >=8,<10 + license: MIT + license_family: MIT + purls: + - pkg:pypi/myst-parser?source=hash-mapping + run_exports: {} + size: 74888 + timestamp: 1778696564508 +- conda: https://conda.anaconda.org/conda-forge/noarch/natsort-8.4.0-pyhcf101f3_2.conda + sha256: aeb1548eb72e4f198e72f19d242fb695b35add2ac7b2c00e0d83687052867680 + md5: e941e85e273121222580723010bd4fa2 + depends: + - python >=3.9 + - python + license: MIT + license_family: MIT + purls: + - pkg:pypi/natsort?source=hash-mapping + run_exports: {} + size: 39262 + timestamp: 1770905275632 +- conda: https://conda.anaconda.org/conda-forge/noarch/nbclient-0.11.0-pyhd8ed1ab_0.conda + sha256: eceb424236fbbb9b337a857fe5448307b57a2a3fb2db389ae37e7a8b8cdca2ab + md5: cf01a81d7960ad9c829bf2e794fcee9a + depends: + - jupyter_client >=7.0.0 + - jupyter_core >=5.4 + - nbformat >=5.2.0 + - python >=3.10 + - traitlets >=5.13 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/nbclient?source=hash-mapping + run_exports: {} + size: 29138 + timestamp: 1780661039538 +- conda: https://conda.anaconda.org/conda-forge/noarch/nbformat-5.11.1-pyhcf101f3_0.conda + sha256: d85d76827ff732e1639f50f45e4d7d3387a27abd857b194dcbb5bb4166c2a7c2 + md5: 2fbbf92e1173ae024f0b12759c1e64a1 + depends: + - jsonschema >=2.6 + - jupyter_core >=4.12,!=5.0.* + - python >=3.10 + - python-fastjsonschema >=2.15 + - traitlets >=5.1 + - python + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/nbformat?source=compressed-mapping + run_exports: {} + size: 107750 + timestamp: 1787133512599 +- conda: https://conda.anaconda.org/conda-forge/noarch/nest-asyncio2-1.7.2-pyhcf101f3_0.conda + sha256: e6768ceef038f4d7e083de7e393f5dd7d672b937e2bda570b740f6399b686689 + md5: fcd832bfd4749e9b246112b6894f97fc + depends: + - python >=3.10 + - python + license: BSD-2-Clause + license_family: BSD + purls: + - pkg:pypi/nest-asyncio2?source=hash-mapping + run_exports: {} + size: 15903 + timestamp: 1770973502283 +- conda: https://conda.anaconda.org/conda-forge/noarch/numpydoc-1.10.0-pyhcf101f3_0.conda + sha256: 482d94fce136c4352b18c6397b9faf0a3149bfb12499ab1ffebad8db0cb6678f + md5: 3aa4b625f20f55cf68e92df5e5bf3c39 + depends: + - python >=3.10 + - sphinx >=6 + - tomli >=1.1.0 + - python + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/numpydoc?source=hash-mapping + run_exports: {} + size: 65801 + timestamp: 1764715638266 +- conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + sha256: c432626b16768b8dab228bfb706f7060c2d462a21c516d240f68f2f902b5a044 + md5: 936687ed80f295a1f5dbcf8bd34c252c + depends: + - python >=3.9 + - python + license: Apache-2.0 + license_family: APACHE + purls: + - pkg:pypi/packaging?source=hash-mapping + run_exports: {} + size: 116363 + timestamp: 1785888127370 +- conda: https://conda.anaconda.org/conda-forge/noarch/parso-0.8.7-pyhcf101f3_0.conda + sha256: 611882f7944b467281c46644ffde6c5145d1a7730388bcde26e7e86819b0998e + md5: 39894c952938276405a1bd30e4ce2caf + depends: + - python >=3.10 + - python + license: MIT + license_family: MIT + purls: + - pkg:pypi/parso?source=hash-mapping + run_exports: {} + size: 82472 + timestamp: 1777722955579 +- conda: https://conda.anaconda.org/conda-forge/noarch/pexpect-4.9.0-pyhd8ed1ab_1.conda + sha256: 202af1de83b585d36445dc1fda94266697341994d1a3328fabde4989e1b3d07a + md5: d0d408b1f18883a944376da5cf8101ea + depends: + - ptyprocess >=0.5 + - python >=3.9 + license: ISC + purls: + - pkg:pypi/pexpect?source=hash-mapping + run_exports: {} + size: 53561 + timestamp: 1733302019362 +- conda: https://conda.anaconda.org/conda-forge/noarch/pip-26.2.2-pyh8b19718_0.conda + sha256: 83babe5e3c4021b061275164a7c28bd62d183cc77b4c2260ae80f19fcb0a98dd + md5: ec04c2ab74b2ca2d524fc10f558427c6 + depends: + - python >=3.11,<3.13.0a0 + - setuptools + - wheel + license: MIT + license_family: MIT + purls: + - pkg:pypi/pip?source=compressed-mapping + run_exports: {} + size: 1201888 + timestamp: 1792524308470 +- conda: https://conda.anaconda.org/conda-forge/noarch/platformdirs-4.11.3-pyhcf101f3_0.conda + sha256: 810511c90649ca59fa0174958a210fd5051c0a7848cfbd42c87054a6836726b5 + md5: 31474b00d0ca5accac14eda09ba11216 + depends: + - python >=3.10 + - python + license: MIT + license_family: MIT + purls: + - pkg:pypi/platformdirs?source=hash-mapping + run_exports: {} + size: 26956 + timestamp: 1786708411066 +- conda: https://conda.anaconda.org/conda-forge/noarch/pluggy-1.6.0-pyhf9edf01_1.conda + sha256: e14aafa63efa0528ca99ba568eaf506eb55a0371d12e6250aaaa61718d2eb62e + md5: d7585b6550ad04c8c5e21097ada2888e + depends: + - python >=3.9 + - python + license: MIT + license_family: MIT + purls: + - pkg:pypi/pluggy?source=hash-mapping + run_exports: {} + size: 25877 + timestamp: 1764896838868 +- conda: https://conda.anaconda.org/conda-forge/noarch/prompt-toolkit-3.0.53-pyha770c72_0.conda + sha256: efe8def2c93aa34cd8d3c9af1dc4c7d312791cf769d8b2b615e32733e6df6051 + md5: 39c92a39517316e5001d645ae63d9ab9 + depends: + - python >=3.10 + - wcwidth + constrains: + - prompt_toolkit 3.0.53 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/prompt-toolkit?source=hash-mapping + run_exports: {} + size: 276081 + timestamp: 1785160613307 +- conda: https://conda.anaconda.org/conda-forge/noarch/ptyprocess-0.7.0-pyhd8ed1ab_1.conda + sha256: a7713dfe30faf17508ec359e0bc7e0983f5d94682492469bd462cdaae9c64d83 + md5: 7d9daffbb8d8e0af0f769dbbcd173a54 + depends: + - python >=3.9 + license: ISC + purls: + - pkg:pypi/ptyprocess?source=hash-mapping + run_exports: {} + size: 19457 + timestamp: 1733302371990 +- conda: https://conda.anaconda.org/conda-forge/noarch/pure_eval-0.2.3-pyhd8ed1ab_1.conda + sha256: 71bd24600d14bb171a6321d523486f6a06f855e75e547fa0cb2a0953b02047f0 + md5: 3bfdfb8dbcdc4af1ae3f9a8eb3948f04 + depends: + - python >=3.9 + license: MIT + license_family: MIT + purls: + - pkg:pypi/pure-eval?source=hash-mapping + run_exports: {} + size: 16668 + timestamp: 1733569518868 +- conda: https://conda.anaconda.org/conda-forge/noarch/py-cpuinfo-9.0.0-pyhd8ed1ab_1.conda + sha256: 6d8f03c13d085a569fde931892cded813474acbef2e03381a1a87f420c7da035 + md5: 46830ee16925d5ed250850503b5dc3a8 + depends: + - python >=3.9 + license: MIT + license_family: MIT + purls: + - pkg:pypi/py-cpuinfo?source=hash-mapping + run_exports: {} + size: 25766 + timestamp: 1733236452235 +- conda: https://conda.anaconda.org/conda-forge/noarch/pyclibrary-0.2.2-pyhd8ed1ab_1.conda + sha256: 210a7beee6dce5e57d4d4166b6fd93693ede3e213510efa7373103f10c18d057 + md5: 0cda5dbfd261b08292fcf16429662b0a + depends: + - pyparsing >=2.3.1,<4 + - python >=3.9 + license: MIT + license_family: MIT + run_exports: {} + size: 437505 + timestamp: 1734953615203 +- conda: https://conda.anaconda.org/conda-forge/noarch/pydata-sphinx-theme-0.19.0-pyhcf101f3_0.conda + sha256: 6deac8ece8b8e243634c13837967b253b8c9b09ef39beaaff494584ee05465c7 + md5: 87921f66a4dc56ce92e4ff13be5f63dc + depends: + - accessible-pygments + - babel + - beautifulsoup4 + - docutils !=0.17.0 + - pygments >=2.7 + - python >=3.10 + - sphinx >=8.0 + - typing_extensions + - python + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/pydata-sphinx-theme?source=hash-mapping + run_exports: {} + size: 1312203 + timestamp: 1781528227244 +- conda: https://conda.anaconda.org/conda-forge/noarch/pyglet-2.1.15-pyhd8ed1ab_0.conda + sha256: 8ca25ae8d49e85e76b0f86e265cb0298874cb7c2e65b2620defaa80ad49560dd + md5: d46ece489f2dcce81d7af736025a9e42 + depends: + - ffmpeg >=4.0.0 + - freetype + - python >=3.10 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/pyglet?source=hash-mapping + run_exports: {} + size: 729762 + timestamp: 1782670710304 +- conda: https://conda.anaconda.org/conda-forge/noarch/pygments-2.21.0-pyhcf101f3_0.conda + sha256: f5f015ff1bc3e1b7fc08eee096b1865234189ae0b82bebdb86a5369116e42fa0 + md5: 2882dee445dfa45b0c5afce3ffb7730a + depends: + - python >=3.10 + - python + license: BSD-2-Clause + license_family: BSD + purls: + - pkg:pypi/pygments?source=compressed-mapping + run_exports: {} + size: 959376 + timestamp: 1786995678795 +- conda: https://conda.anaconda.org/conda-forge/noarch/pyparsing-3.3.2-pyhcf101f3_0.conda + sha256: 417fba4783e528ee732afa82999300859b065dc59927344b4859c64aae7182de + md5: 3687cc0b82a8b4c17e1f0eb7e47163d5 + depends: + - python >=3.10 + - python + license: MIT + license_family: MIT + run_exports: {} + size: 110893 + timestamp: 1769003998136 +- conda: https://conda.anaconda.org/conda-forge/noarch/pysocks-1.7.1-pyh09c184e_7.conda + sha256: d016e04b0e12063fbee4a2d5fbb9b39a8d191b5a0042f0b8459188aedeabb0ca + md5: e2fd202833c4a981ce8a65974fe4abd1 + depends: + - __win + - python >=3.9 + - win_inet_pton + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/pysocks?source=hash-mapping + run_exports: {} + size: 21784 + timestamp: 1733217448189 +- conda: https://conda.anaconda.org/conda-forge/noarch/pysocks-1.7.1-pyha55dd90_7.conda + sha256: ba3b032fa52709ce0d9fd388f63d330a026754587a2f461117cac9ab73d8d0d8 + md5: 461219d1a5bd61342293efa2c0c90eac + depends: + - __unix + - python >=3.9 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/pysocks?source=hash-mapping + run_exports: {} + size: 21085 + timestamp: 1733217331982 +- conda: https://conda.anaconda.org/conda-forge/noarch/pytest-9.1.1-pyhc364b38_2.conda + sha256: 430051d80765207a7d782b2b188230ba1489d35c6e75fd9903f76cb9fda4af16 + md5: 64c98a12c4e23eb238bf66bbecafdf3c + depends: + - colorama + - pygments >=2.7.2 + - python >=3.10 + - iniconfig >=1.0.1 + - packaging >=22 + - pluggy >=1.5,<2 + - tomli >=1 + - exceptiongroup >=1 + - python + constrains: + - pytest-faulthandler >=2 + license: MIT + license_family: MIT + purls: + - pkg:pypi/pytest?source=hash-mapping + run_exports: {} + size: 306724 + timestamp: 1782127176429 +- conda: https://conda.anaconda.org/conda-forge/noarch/pytest-benchmark-5.2.3-pyhd8ed1ab_0.conda + sha256: 2f2229415a6e5387c1faaedf442ea8c07471cb2bf5ad1007b9cfb83ea85ca29a + md5: 0e7294ed4af8b833fcd2c101d647c3da + depends: + - py-cpuinfo + - pytest >=8.1 + - python >=3.10 + license: BSD-2-Clause + license_family: BSD + purls: + - pkg:pypi/pytest-benchmark?source=hash-mapping + run_exports: {} + size: 43976 + timestamp: 1762716480208 +- conda: https://conda.anaconda.org/conda-forge/noarch/pytest-randomly-4.1.0-pyhd8ed1ab_0.conda + sha256: c292d7060f043577569b9c257cbef99446a356e1b1f90482e1058c111d5e374b + md5: b869f743e0e40024d14b22e3f6268fe4 + depends: + - pytest + - python >=3.10 + license: MIT + license_family: MIT + purls: + - pkg:pypi/pytest-randomly?source=hash-mapping + run_exports: {} + size: 15440 + timestamp: 1785269179302 +- conda: https://conda.anaconda.org/conda-forge/noarch/pytest-repeat-0.9.4-pyhd8ed1ab_0.conda + sha256: cea7b0555c22a734d732f98a3b256646f3d82d926a35fa2bfd16f11395abd83b + md5: 9e8871313f26d8b6f0232522b3bc47a5 + depends: + - pytest >=5 + - python >=3.9 + license: MPL-2.0 + license_family: MOZILLA + purls: + - pkg:pypi/pytest-repeat?source=hash-mapping + run_exports: {} + size: 10537 + timestamp: 1744061283541 +- conda: https://conda.anaconda.org/conda-forge/noarch/python-dateutil-2.9.0.post0-pyhe01879c_2.conda + sha256: d6a17ece93bbd5139e02d2bd7dbfa80bee1a4261dced63f65f679121686bf664 + md5: 5b8d21249ff20967101ffa321cab24e8 + depends: + - python >=3.9 + - six >=1.5 + - python + license: Apache-2.0 + license_family: APACHE + purls: + - pkg:pypi/python-dateutil?source=hash-mapping + run_exports: {} + size: 233310 + timestamp: 1751104122689 +- conda: https://conda.anaconda.org/conda-forge/noarch/python-fastjsonschema-2.22.2-pyhcf101f3_0.conda + sha256: fc4a704822df22defce49d0fb811fdc036a1fd3b579aeaa601228e9cfd198b3d + md5: aa75b7f096d17621bc307b3025b29461 + depends: + - python >=3.10 + - python + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/fastjsonschema?source=compressed-mapping + run_exports: {} + size: 254446 + timestamp: 1786892280524 +- conda: https://conda.anaconda.org/conda-forge/noarch/python-gil-3.12.13-hd8ed1ab_1.conda + sha256: cf0972372c4469881e13e9342ab51aed8b25d0d5dff45fcd0fe847b3dd11f97c + md5: 87225cc6af32ec67528efa39c4945aaf + depends: + - cpython 3.12.13.* + - python_abi * *_cp312 + license: Python-2.0 + purls: [] + run_exports: {} + size: 45874 + timestamp: 1786443525835 +- conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.12-8_cp312.conda + build_number: 8 + sha256: 80677180dd3c22deb7426ca89d6203f1c7f1f256f2d5a94dc210f6e758229809 + md5: c3efd25ac4d74b1584d2f7a57195ddf1 + constrains: + - python 3.12.* *_cpython + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: {} + size: 6958 + timestamp: 1752805918820 +- conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-8_cp314.conda + build_number: 8 + sha256: ad6d2e9ac39751cc0529dd1566a26751a0bf2542adb0c232533d32e176e21db5 + md5: 0539938c55b6b1a59b560e843ad864a4 + constrains: + - python 3.14.* *_cp314 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: {} + size: 6989 + timestamp: 1752805904792 +- conda: https://conda.anaconda.org/conda-forge/noarch/referencing-0.37.0-pyhcf101f3_0.conda + sha256: 0577eedfb347ff94d0f2fa6c052c502989b028216996b45c7f21236f25864414 + md5: 870293df500ca7e18bedefa5838a22ab + depends: + - attrs >=22.2.0 + - python >=3.10 + - rpds-py >=0.7.0 + - typing_extensions >=4.4.0 + - python + license: MIT + license_family: MIT + purls: + - pkg:pypi/referencing?source=hash-mapping + run_exports: {} + size: 51788 + timestamp: 1760379115194 +- conda: https://conda.anaconda.org/conda-forge/noarch/requests-2.34.2-pyhcf101f3_0.conda + sha256: 1715246b19c9f85ee022933b4845f2fc14ac9184981b7b7d9b728bec8e9588da + md5: 4a85203c1d80c1059086ae860836ffb9 + depends: + - python >=3.10 + - certifi >=2023.5.7 + - charset-normalizer >=2,<4 + - idna >=2.5,<4 + - urllib3 >=1.26,<3 + - python + constrains: + - chardet >=3.0.2,<8 + license: Apache-2.0 + license_family: APACHE + purls: + - pkg:pypi/requests?source=hash-mapping + run_exports: {} + size: 68709 + timestamp: 1778851103479 +- conda: https://conda.anaconda.org/conda-forge/noarch/roman-5.2-pyhcf101f3_0.conda + sha256: 1e8721aa6bbae93c2f27778afac35edc1178cc7284e067fa7b531a859655a866 + md5: d4decf19981d32d102bf007b7e287b9a + depends: + - python >=3.10 + - python + license: ZPL-2.1 + purls: + - pkg:pypi/roman?source=hash-mapping + run_exports: {} + size: 13894 + timestamp: 1763405456774 +- conda: https://conda.anaconda.org/conda-forge/noarch/ruamel.yaml-0.19.1-pyhcf101f3_0.conda + sha256: b48bebe297a63ae60f52e50be328262e880702db4d9b4e86731473ada459c2a1 + md5: 06ad944772941d5dae1e0d09848d8e49 + depends: + - python >=3.10 + - ruamel.yaml.clib >=0.2.15 + - python + license: MIT + license_family: MIT + purls: + - pkg:pypi/ruamel-yaml?source=hash-mapping + run_exports: {} + size: 98448 + timestamp: 1767538149184 +- conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.0.0-pyh332efcf_0.conda + sha256: 9e200ee5f9ff19a4d94e4b51c4856d53dec849f91032f345cf0c6bc3d51a7183 + md5: 62ac906f1cd582c6c264c95625cb9d6f + depends: + - python >=3.10 + license: MIT + license_family: MIT + purls: + - pkg:pypi/setuptools?source=compressed-mapping + run_exports: {} + size: 524488 + timestamp: 1786282924579 +- conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-scm-10.2.1-pyhcf101f3_0.conda + sha256: 8eb9daf6fc70111abf73f848c6d32d2769aa1fba550f793b865076fd4e33fb3a + md5: eefa3bc61c9224107d3a9afeb37552a9 + depends: + - python >=3.10 + - vcs_versioning >=2.0.0.dev0 + - packaging >=20 + - setuptools + - tomli >=1 + - typing_extensions + - python + license: MIT + license_family: MIT + run_exports: {} + size: 29407 + timestamp: 1784653562396 +- conda: https://conda.anaconda.org/conda-forge/noarch/six-1.17.0-pyhe01879c_1.conda + sha256: 458227f759d5e3fcec5d9b7acce54e10c9e1f4f4b7ec978f3bfd54ce4ee9853d + md5: 3339e3b65d58accf4ca4fb8748ab16b3 + depends: + - python >=3.9 + - python + license: MIT + license_family: MIT + purls: + - pkg:pypi/six?source=hash-mapping + run_exports: {} + size: 18455 + timestamp: 1753199211006 +- conda: https://conda.anaconda.org/conda-forge/noarch/snowballstemmer-3.1.1-pyhd8ed1ab_0.conda + sha256: ad89284ea94821c20ff87e64b948e4afc690cf5202d14c009355b0594cf23aea + md5: 46b6abe31482f6bca064b965696ae807 + depends: + - python >=3.10 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/snowballstemmer?source=hash-mapping + run_exports: {} + size: 74456 + timestamp: 1780468201547 +- conda: https://conda.anaconda.org/conda-forge/noarch/soupsieve-2.9.2-pyhd8ed1ab_0.conda + sha256: 056d7a2e91e303a9ee37e580f6dde0511fc3fb72476581cc337aacf2cc747613 + md5: ba33e6c8a46ee373fdf6dd8665212778 + depends: + - python >=3.10 + license: MIT + license_family: MIT + purls: + - pkg:pypi/soupsieve?source=compressed-mapping + run_exports: {} + size: 39439 + timestamp: 1786202135509 +- conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-8.1.3-pyhd8ed1ab_1.conda + sha256: 3228eb332ce159f031d4b7d2e08117df973b0ba3ddcb8f5dbb7f429f71d27ea1 + md5: 1a3281a0dc355c02b5506d87db2d78ac + depends: + - alabaster >=0.7.14 + - babel >=2.13 + - colorama >=0.4.6 + - docutils >=0.20,<0.22 + - imagesize >=1.3 + - jinja2 >=3.1 + - packaging >=23.0 + - pygments >=2.17 + - python >=3.10 + - requests >=2.30.0 + - snowballstemmer >=2.2 + - sphinxcontrib-applehelp >=1.0.7 + - sphinxcontrib-devhelp >=1.0.6 + - sphinxcontrib-htmlhelp >=2.0.6 + - sphinxcontrib-jsmath >=1.0.1 + - sphinxcontrib-qthelp >=1.0.6 + - sphinxcontrib-serializinghtml >=1.1.9 + - tomli >=2.0 + license: BSD-2-Clause + license_family: BSD + purls: + - pkg:pypi/sphinx?source=hash-mapping + run_exports: {} + size: 1387076 + timestamp: 1733754175386 +- conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-autodoc-typehints-3.0.1-pyhd8ed1ab_0.conda + sha256: 0f93bb75a41918433abc8d8d80ef99d7fd8658d5ba34da3c5d8f707cb6bb3f46 + md5: 6ad405d62c8de3792608a27b7e085e15 + depends: + - python >=3.10 + - sphinx >=8.1.3 + license: MIT + license_family: MIT + purls: + - pkg:pypi/sphinx-autodoc-typehints?source=hash-mapping + run_exports: {} + size: 24055 + timestamp: 1737099757820 +- conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-basic-ng-1.0.0b2-pyhd8ed1ab_3.conda + sha256: 90d900d31afe0bd6f42cf1e529e23e6eac4284b48bc64e5e942f19f5bf8ef0f2 + md5: a090580065b21d9c56662ebe68f6e7a6 + depends: + - python >=3.9 + - sphinx >=4.0 + license: MIT + license_family: MIT + purls: + - pkg:pypi/sphinx-basic-ng?source=hash-mapping + run_exports: {} + size: 20495 + timestamp: 1737748706101 +- conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-copybutton-0.5.2-pyhd8ed1ab_1.conda + sha256: 8cd892e49cb4d00501bc4439fb0c73ca44905f01a65b2b7fa05ba0e8f3924f19 + md5: bf22cb9c439572760316ce0748af3713 + depends: + - python >=3.9 + - sphinx >=1.8 + license: MIT + license_family: MIT + purls: + - pkg:pypi/sphinx-copybutton?source=hash-mapping + run_exports: {} + size: 17893 + timestamp: 1734573117732 +- conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-jinja2-compat-0.4.1-pyhd8ed1ab_0.conda + sha256: 115f4306ace812d90b4ffab5ac27cc01c2fac13df67c5dcc37931130c8ebea13 + md5: 7ecc82915cd2c4654fa26ddc4d3650f7 + depends: + - jinja2 >=2.10 + - markupsafe >=1 + - python >=3.9 + license: MIT + license_family: MIT + purls: + - pkg:pypi/sphinx-jinja2-compat?source=hash-mapping + run_exports: {} + size: 12320 + timestamp: 1754550385132 +- conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-prompt-1.10.1-pyhd8ed1ab_0.conda + sha256: 3d2e0d961b38f66ea3e7decd04917bf69104b6683dae778e4d3ef5291c04b861 + md5: bfc047865de18ef2657bd8a95d7b8b49 + depends: + - pygments + - python >=3.11 + - sphinx + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/sphinx-prompt?source=hash-mapping + run_exports: {} + size: 12214 + timestamp: 1758128174284 +- conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-tabs-3.5.0-pyhd8ed1ab_0.conda + sha256: 9070e6f3185e8a5fa12c91ac1fcd3b288c6d724be0b589c8b8215ad5cca1e0f5 + md5: 954d1340349f0d9aa7e9a7efb79c42dc + depends: + - docutils >=0.18.0 + - pygments + - python >=3.10 + - sphinx >=7 + license: MIT + license_family: MIT + purls: + - pkg:pypi/sphinx-tabs?source=hash-mapping + run_exports: {} + size: 16463 + timestamp: 1780932961443 +- conda: https://conda.anaconda.org/conda-forge/noarch/sphinx-toolbox-4.3.0-pyhd8ed1ab_0.conda + sha256: b5d36034b8d247c0198d78708631dc93240ec8c48a02aa0c56401bc8c3428dce + md5: 9f2d71c1524e4f439e6d0028b6f86be2 + depends: + - apeye >=0.4.0 + - autodocsumm >=0.2.0 + - beautifulsoup4 >=4.9.1 + - cachecontrol >=0.13.0 + - dict2css >=0.2.3 + - docutils >=0.16 + - domdf-python-tools >=2.9.0 + - filelock >=3.8.0 + - html5lib >=1.1 + - python >=3.10 + - roman >4.0 + - ruamel.yaml >=0.16.12 + - sphinx >=3.2.0 + - sphinx-autodoc-typehints <3.6.0,>=1.11.1 + - sphinx-jinja2-compat >=0.1.0 + - sphinx-prompt >=1.1.0 + - sphinx-tabs <3.6.0,>=3.4.7 + - tabulate >=0.8.7 + - typing-extensions !=3.10.0.1,>=3.7.4.3 + - typing_inspect >=0.6.0 + license: MIT + license_family: MIT + purls: + - pkg:pypi/sphinx-toolbox?source=hash-mapping + run_exports: {} + size: 101346 + timestamp: 1785317197648 +- conda: https://conda.anaconda.org/conda-forge/noarch/sphinxcontrib-applehelp-2.0.0-pyhd8ed1ab_1.conda + sha256: d7433a344a9ad32a680b881c81b0034bc61618d12c39dd6e3309abeffa9577ba + md5: 16e3f039c0aa6446513e94ab18a8784b + depends: + - python >=3.9 + - sphinx >=5 + license: BSD-2-Clause + license_family: BSD + purls: + - pkg:pypi/sphinxcontrib-applehelp?source=hash-mapping + run_exports: {} + size: 29752 + timestamp: 1733754216334 +- conda: https://conda.anaconda.org/conda-forge/noarch/sphinxcontrib-devhelp-2.0.0-pyhd8ed1ab_1.conda + sha256: 55d5076005d20b84b20bee7844e686b7e60eb9f683af04492e598a622b12d53d + md5: 910f28a05c178feba832f842155cbfff + depends: + - python >=3.9 + - sphinx >=5 + license: BSD-2-Clause + license_family: BSD + purls: + - pkg:pypi/sphinxcontrib-devhelp?source=hash-mapping + run_exports: {} + size: 24536 + timestamp: 1733754232002 +- conda: https://conda.anaconda.org/conda-forge/noarch/sphinxcontrib-htmlhelp-2.1.0-pyhd8ed1ab_1.conda + sha256: c1492c0262ccf16694bdcd3bb62aa4627878ea8782d5cd3876614ffeb62b3996 + md5: e9fb3fe8a5b758b4aff187d434f94f03 + depends: + - python >=3.9 + - sphinx >=5 + license: BSD-2-Clause + license_family: BSD + purls: + - pkg:pypi/sphinxcontrib-htmlhelp?source=hash-mapping + run_exports: {} + size: 32895 + timestamp: 1733754385092 +- conda: https://conda.anaconda.org/conda-forge/noarch/sphinxcontrib-jsmath-1.0.1-pyhd8ed1ab_1.conda + sha256: 578bef5ec630e5b2b8810d898bbbf79b9ae66d49b7938bcc3efc364e679f2a62 + md5: fa839b5ff59e192f411ccc7dae6588bb + depends: + - python >=3.9 + license: BSD-2-Clause + license_family: BSD + purls: + - pkg:pypi/sphinxcontrib-jsmath?source=hash-mapping + run_exports: {} + size: 10462 + timestamp: 1733753857224 +- conda: https://conda.anaconda.org/conda-forge/noarch/sphinxcontrib-qthelp-2.0.0-pyhd8ed1ab_1.conda + sha256: c664fefae4acdb5fae973bdde25836faf451f41d04342b64a358f9a7753c92ca + md5: 00534ebcc0375929b45c3039b5ba7636 + depends: + - python >=3.9 + - sphinx >=5 + license: BSD-2-Clause + license_family: BSD + purls: + - pkg:pypi/sphinxcontrib-qthelp?source=hash-mapping + run_exports: {} + size: 26959 + timestamp: 1733753505008 +- conda: https://conda.anaconda.org/conda-forge/noarch/sphinxcontrib-serializinghtml-2.0.0-pyhd8ed1ab_0.conda + sha256: 20b49741065fd7d3fabf98caf6d19b6436badb06b6d41f66b58f1fc2b52f37a1 + md5: f77df1fcf9af03b7287342638befca77 + depends: + - python >=3.10 + - sphinx >=5 + license: BSD-2-Clause + license_family: BSD + purls: + - pkg:pypi/sphinxcontrib-serializinghtml?source=hash-mapping + run_exports: {} + size: 30640 + timestamp: 1781260357443 +- conda: https://conda.anaconda.org/conda-forge/noarch/stack_data-0.6.3-pyhd8ed1ab_1.conda + sha256: 570da295d421661af487f1595045760526964f41471021056e993e73089e9c41 + md5: b1b505328da7a6b246787df4b5a49fbc + depends: + - asttokens + - executing + - pure_eval + - python >=3.9 + license: MIT + license_family: MIT + purls: + - pkg:pypi/stack-data?source=hash-mapping + run_exports: {} + size: 26988 + timestamp: 1733569565672 +- conda: https://conda.anaconda.org/conda-forge/noarch/sysroot_linux-64-2.28-h4ee821c_9.conda + sha256: c47299fe37aebb0fcf674b3be588e67e4afb86225be4b0d452c7eb75c086b851 + md5: 13dc3adbc692664cd3beabd216434749 + depends: + - __glibc >=2.28 + - kernel-headers_linux-64 4.18.0 he073ed8_9 + - tzdata + license: LGPL-2.0-or-later AND LGPL-2.0-or-later WITH exceptions AND GPL-2.0-or-later + license_family: GPL + purls: [] + run_exports: + strong: + - __glibc >=2.28,<3.0.a0 + size: 24008591 + timestamp: 1765578833462 +- conda: https://conda.anaconda.org/conda-forge/noarch/sysroot_linux-aarch64-2.28-h585391f_9.conda + sha256: 1bd2db6b2e451247bab103e4a0128cf6c7595dd72cb26d70f7fadd9edd1d1bc3 + md5: fdf07ab944a222ff28c754914fdb0740 + depends: + - __glibc >=2.28 + - kernel-headers_linux-aarch64 4.18.0 h05a177a_9 + - tzdata + license: LGPL-2.0-or-later AND LGPL-2.0-or-later WITH exceptions AND GPL-2.0-or-later + license_family: GPL + purls: [] + run_exports: + strong: + - __glibc >=2.28,<3.0.a0 + size: 23644746 + timestamp: 1765578629426 +- conda: https://conda.anaconda.org/conda-forge/noarch/tabulate-0.10.0-pyhcf101f3_0.conda + sha256: 3f661e98a09f976775a494488beb3d35ebb00f535b169c6bd891f2e280d55783 + md5: 3b887b7b3468b0f494b4fad40178b043 + depends: + - python >=3.10 + - python + license: MIT + license_family: MIT + purls: + - pkg:pypi/tabulate?source=hash-mapping + run_exports: {} + size: 43964 + timestamp: 1772732795746 +- conda: https://conda.anaconda.org/conda-forge/noarch/tinycss2-1.5.1-pyhcf101f3_0.conda + sha256: 7c803480dbfb8b536b9bf6287fa2aa0a4f970f8c09075694174eb4550a4524cd + md5: c0d0b883e97906f7524e2aac94be0e0d + depends: + - python >=3.10 + - webencodings >=0.4 + - python + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/tinycss2?source=hash-mapping + run_exports: {} + size: 30571 + timestamp: 1764621508086 +- conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.4.1-pyhcf101f3_0.conda + sha256: 91cafdb64268e43e0e10d30bd1bef5af392e69f00edd34dfaf909f69ab2da6bd + md5: b5325cf06a000c5b14970462ff5e4d58 + depends: + - python >=3.10 + - python + license: MIT + license_family: MIT + purls: + - pkg:pypi/tomli?source=hash-mapping + run_exports: {} + size: 21561 + timestamp: 1774492402955 +- conda: https://conda.anaconda.org/conda-forge/noarch/traitlets-5.16.1-pyhcf101f3_0.conda + sha256: 03dba5917f944c6684ab44c81daacac1624cd148e4b2cae215dcec594a210c48 + md5: a79bf97561232a31447b6246c2153ab5 + depends: + - python >=3.10 + - python + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/traitlets?source=hash-mapping + run_exports: {} + size: 116935 + timestamp: 1785761789772 +- conda: https://conda.anaconda.org/conda-forge/noarch/typing-extensions-4.16.0-h69aa097_0.conda + sha256: b141933ece3518f6d7b75dfb59451e2f26b405a44c18e2518a83e9a02e09315c + md5: c680b5747e8c4c8f23dca0bb7042a8fc + depends: + - typing_extensions ==4.16.0 pyhcf101f3_0 + license: PSF-2.0 + license_family: PSF + purls: [] + run_exports: {} + size: 94080 + timestamp: 1783002732887 +- conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda + sha256: 2d888f90af0686044882c74193ec80a90ec1943145d94a7b1b048958acda1848 + md5: c70ad746c22219b9700931707482992c + depends: + - python >=3.10 + - python + license: PSF-2.0 + license_family: PSF + purls: + - pkg:pypi/typing-extensions?source=hash-mapping + run_exports: {} + size: 52631 + timestamp: 1783002732887 +- conda: https://conda.anaconda.org/conda-forge/noarch/typing_inspect-0.9.0-pyhd8ed1ab_1.conda + sha256: a3fbdd31b509ff16c7314e8d01c41d9146504df632a360ab30dbc1d3ca79b7c0 + md5: fa31df4d4193aabccaf09ce78a187faf + depends: + - mypy_extensions >=0.3.0 + - python >=3.9 + - typing_extensions >=3.7.4 + license: MIT + license_family: MIT + purls: + - pkg:pypi/typing-inspect?source=hash-mapping + run_exports: {} + size: 14919 + timestamp: 1733845966415 +- conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + sha256: b928c30ddcb0e3f544c6eade8352737e6e610e263276b90232db6a578ef899d8 + md5: fcb489df604d100968b737f2cb6076c6 + license: LicenseRef-Public-Domain + purls: [] + run_exports: {} + size: 118849 + timestamp: 1784250406640 +- conda: https://conda.anaconda.org/conda-forge/noarch/urllib3-2.7.0-pyhd8ed1ab_0.conda + sha256: feff959a816f7988a0893201aa9727bbb7ee1e9cec2c4f0428269b489eb93fb4 + md5: cbb88288f74dbe6ada1c6c7d0a97223e + depends: + - backports.zstd >=1.0.0 + - brotli-python >=1.2.0 + - h2 >=4,<5 + - pysocks >=1.5.6,<2.0,!=1.5.7 + - python >=3.10 + license: MIT + license_family: MIT + purls: + - pkg:pypi/urllib3?source=hash-mapping + run_exports: {} + size: 103560 + timestamp: 1778188657149 +- conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.3.1-pyhcf101f3_0.conda + sha256: cec2b683070a2413796552011751483299b804f7410f99cc739e2bc4f083ba3f + md5: 6043a03a3733302373b30e16ecc408b7 + depends: + - python >=3.10 + - packaging >=26.2 + - tomli >=1 + - typing_extensions >=4.1 + - python + license: MIT + license_family: MIT + run_exports: {} + size: 88449 + timestamp: 1787149152008 +- conda: https://conda.anaconda.org/conda-forge/noarch/vswhere-3.1.7-h40126e0_1.conda + sha256: b72270395326dc56de9bd6ca82f63791b3c8c9e2b98e25242a9869a4ca821895 + md5: f622897afff347b715d046178ad745a5 + depends: + - __win + license: MIT + license_family: MIT + run_exports: {} + size: 238764 + timestamp: 1745560912727 +- conda: https://conda.anaconda.org/conda-forge/noarch/wayland-protocols-1.49-hd8ed1ab_0.conda + sha256: 04ce686cd187d379344f9b2be7b4da5f431b265dc0944a6b764fab9da9171948 + md5: 0839a3421140d4a9ba93fb988698fc00 + license: MIT + license_family: MIT + purls: [] + run_exports: {} + size: 147954 + timestamp: 1780946721169 +- conda: https://conda.anaconda.org/conda-forge/noarch/wcwidth-0.8.2-pyhd8ed1ab_0.conda + sha256: 4acf845da404e84cef1acccc66cc0156af1b83a5b5d7077b2ca19b705c561e57 + md5: 99f7755ec8648a042b0dbe906234f888 + depends: + - python >=3.10 + license: MIT + license_family: MIT + purls: + - pkg:pypi/wcwidth?source=hash-mapping + run_exports: {} + size: 132415 + timestamp: 1782771807703 +- conda: https://conda.anaconda.org/conda-forge/noarch/webencodings-0.5.1-pyhd8ed1ab_3.conda + sha256: 19ff205e138bb056a46f9e3839935a2e60bd1cf01c8241a5e172a422fed4f9c6 + md5: 2841eb5bfc75ce15e9a0054b98dcd64d + depends: + - python >=3.9 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/webencodings?source=hash-mapping + run_exports: {} + size: 15496 + timestamp: 1733236131358 +- conda: https://conda.anaconda.org/conda-forge/noarch/wheel-0.48.0-pyhd8ed1ab_0.conda + sha256: ba64b29b6d418024cb565081a1799262cb2780d2534ff4c14f76aa858c4286cd + md5: 9a2124517bfd5d792e0f7b86eefdfeb8 + depends: + - packaging >=24.0 + - python >=3.10 + license: MIT + license_family: MIT + purls: + - pkg:pypi/wheel?source=compressed-mapping + run_exports: {} + size: 34528 + timestamp: 1786613220176 +- conda: https://conda.anaconda.org/conda-forge/noarch/win_inet_pton-1.1.0-pyh7428d3b_8.conda + sha256: 93807369ab91f230cf9e6e2a237eaa812492fe00face5b38068735858fba954f + md5: 46e441ba871f524e2b067929da3051c2 + depends: + - __win + - python >=3.9 + license: LicenseRef-Public-Domain + purls: + - pkg:pypi/win-inet-pton?source=hash-mapping + run_exports: {} + size: 9555 + timestamp: 1733130678956 +- conda: https://conda.anaconda.org/conda-forge/noarch/zipp-4.1.0-pyhcf101f3_0.conda + sha256: 210bd31c22bb88f5e2a167df24c95bb5f152b2ada7502f9b8c49d1f5366db423 + md5: ba3dcdc8584155c97c648ae9c044b7a3 + depends: + - python >=3.10 + - python + license: MIT + license_family: MIT + purls: + - pkg:pypi/zipp?source=hash-mapping + run_exports: {} + size: 24190 + timestamp: 1779159948016 +- conda: https://conda.anaconda.org/conda-forge/win-64/_openmp_mutex-4.5-20_gnu.conda + build_number: 20 + sha256: 8a1cee28bd0ee7451ada1cd50b64720e57e17ff994fc62dd8329bef570d382e4 + md5: 1626967b574d1784b578b52eaeb071e7 + depends: + - libgomp >=7.5.0 + - libwinpthread >=12.0.0.r4.gg4f2fc60ca + constrains: + - openmp_impl <0.0a0 + - msys2-conda-epoch <0.0a0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + strong: + - _openmp_mutex >=4.5 + size: 52252 + timestamp: 1770943776666 +- conda: https://conda.anaconda.org/conda-forge/win-64/aom-3.14.1-pl5321h06fc181_1.conda + sha256: 3033fa8953f7f0c1bb5b89b5af77253badc14a89ba94d743dde3c9159e10fd5e + md5: 7a8ace8100a48355a34d87386012c57b + depends: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + license: BSD-2-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - aom >=3.14.1,<3.15.0a0 + size: 2214571 + timestamp: 1780752497150 +- conda: https://conda.anaconda.org/conda-forge/win-64/backports.zstd-1.7.0-py312h06d0912_0.conda + sha256: 492b36f6c1380562f16e7ac0b2aae2f74a6d66eb4806689a791ccdbd0b4fb162 + md5: d7c56279ddf11b597934de1b928e799d + depends: + - python + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - python_abi 3.12.* *_cp312 + - zstd >=1.5.7,<1.6.0a0 + license: BSD-3-Clause AND MIT AND EPL-2.0 + purls: + - pkg:pypi/backports-zstd?source=hash-mapping + run_exports: {} + size: 239485 + timestamp: 1786861404460 +- conda: https://conda.anaconda.org/conda-forge/win-64/binutils_impl_win-64-2.46.1-default_ha84baeb_102.conda + sha256: 83476bc3ed6ee4f1d6e67e6e1360696a0ac3e99679f9c142674003cf721740e3 + md5: 7832bada38267be3333319febcf5e4fc + depends: + - ld_impl_win-64 2.46.1 default_hfd38196_102 + - m2w64-sysroot_win-64 >=12.0.0.r0 + - zstd >=1.5.7,<1.6.0a0 + license: GPL-3.0-only + license_family: GPL + purls: [] + run_exports: {} + size: 6140284 + timestamp: 1784214565466 +- conda: https://conda.anaconda.org/conda-forge/win-64/brotli-python-1.2.0-py312ha763cb9_3.conda + sha256: ab6bc41db5efb67b68d54dc2631131e210ac8c1930ab30c4c6a6e2470c16be0c + md5: 4d0e6b94ff31b79f35a7f341e4eb73b0 + depends: + - python >=3.12,<3.13.0a0 + - python_abi 3.12.* *_cp312 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + constrains: + - libbrotlicommon 1.2.0 hf02afa3_3 + license: MIT + license_family: MIT + purls: + - pkg:pypi/brotli?source=hash-mapping + run_exports: {} + size: 336846 + timestamp: 1786622959392 +- conda: https://conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h0ad9c76_10.conda + sha256: 04767466ee9227c9c57ab2c6503e0149177d34111c7418d2f420297acb1eb229 + md5: c3301c058362f340100d91cd8be0393f + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: bzip2-1.0.6 + license_family: BSD + purls: [] + run_exports: + weak: + - bzip2 >=1.0.8,<2.0a0 + size: 55919 + timestamp: 1785906343696 +- conda: https://conda.anaconda.org/conda-forge/win-64/cairo-1.18.4-h477c42c_1.conda + sha256: 9ee4ad706c5d3e1c6c469785d60e3c2b263eec569be0eac7be33fbaef978bccc + md5: 52ea1beba35b69852d210242dd20f97d + depends: + - fontconfig >=2.15.0,<3.0a0 + - fonts-conda-ecosystem + - icu >=78.1,<79.0a0 + - libexpat >=2.7.3,<3.0a0 + - libfreetype >=2.14.1 + - libfreetype6 >=2.14.1 + - libglib >=2.86.3,<3.0a0 + - libpng >=1.6.53,<1.7.0a0 + - libzlib >=1.3.1,<2.0a0 + - pixman >=0.46.4,<1.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: LGPL-2.1-only or MPL-1.1 + purls: [] + run_exports: + weak: + - cairo >=1.18.4,<2.0a0 + size: 1537783 + timestamp: 1766416059188 +- conda: https://conda.anaconda.org/conda-forge/win-64/conda-gcc-specs-16.1.0-h851ee6d_2.conda + sha256: 6dde0bb3835cf83401d1e42403fd7552be4ccffe6529aaeae3e607161f71662c + md5: ae9ec9aea92b9e55c82b0e01d52c9cc9 + depends: + - gcc_impl_win-64 >=16.1.0,<16.1.1.0a0 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: {} + size: 47251 + timestamp: 1787166657998 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-bindings-12.9.7-py312ha085c13_1.conda + sha256: 21eb9190e0bd232918f61efc4d67e430b873e3d744b2073cdf6354ee52a04313 + md5: fe6a020333090bdf917583beaa25b1a8 + depends: + - python + - cuda-pathfinder >=1.5.5,<2 + - cuda-version >=12,<13.0a0 + - cuda-nvrtc >=12,<13.0a0 + - cuda-nvcc-impl >=12,<13.0a0 + - libnvjitlink >=12.3,<13 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - python_abi 3.12.* *_cp312 + constrains: + - cuda-cudart >=12,<13.0a0 + - libnvfatbin >=12,<13.0a0 + license: LicenseRef-NVIDIA-SOFTWARE-LICENSE + purls: + - pkg:pypi/cuda-bindings?source=hash-mapping + run_exports: {} + size: 4364910 + timestamp: 1782355189622 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-crt-tools-12.9.86-h57928b3_2.conda + sha256: fb2283a55820eeff84c861b469cfee6a9d0ac9aebe02e82aae480a60068a7659 + md5: d0057a8511cb12745675db18ccbec8f2 + depends: + - cuda-version >=12.9,<12.10.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 29604 + timestamp: 1753975679251 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-12.9.79-he0c23c2_0.conda + sha256: a30cd9adf3a70d069d4d87c5728ec16778b77071629612ca5d8513cd92d89c09 + md5: 0a243d4f000a0d2f51dd94ee9132b234 + depends: + - cuda-cudart_win-64 12.9.79 he0c23c2_0 + - cuda-version >=12.9,<12.10.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 170799 + timestamp: 1749218946117 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-dev-12.9.79-he0c23c2_0.conda + sha256: 1ee68f0ffd37889f0fc438d4da7124054b124632e1c3bc15950b9851b002473e + md5: e5bb074108bc2501f8374e80748aa181 + depends: + - cuda-cudart 12.9.79 he0c23c2_0 + - cuda-cudart-dev_win-64 12.9.79 he0c23c2_0 + - cuda-cudart-static 12.9.79 he0c23c2_0 + - cuda-version >=12.9,<12.10.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: + weak: + - cuda-cudart >=12.9.79,<13.0a0 + size: 23222 + timestamp: 1749219022963 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-static-12.9.79-he0c23c2_0.conda + sha256: 02d3ff9ec59c7f59132ffe9398746ad9422a75706e7cad19acc6c30a5c0fc763 + md5: 718879691b8119c893f587f46c734fca + depends: + - cuda-cudart-static_win-64 12.9.79 he0c23c2_0 + - cuda-version >=12.9,<12.10.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 23249 + timestamp: 1749218998822 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvcc-impl-12.9.86-h53cbb54_2.conda + sha256: d52c7b77b7d4f707efb3b76f93beb1c2b97883db6605818c1727935df9babe5d + md5: 17181de579b111f1cbad7af2b45aed0e + depends: + - cuda-cudart >=12.9.79,<13.0a0 + - cuda-cudart-dev + - cuda-nvcc-dev_win-64 12.9.86 h36c15f3_2 + - cuda-nvcc-tools 12.9.86 he0c23c2_2 + - cuda-nvvm-impl 12.9.86 h2466b09_2 + - cuda-version >=12.9,<12.10.0a0 + - libnvptxcompiler-dev 12.9.86 h57928b3_2 + constrains: + - vc >=14.2 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 27684 + timestamp: 1753976469818 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvcc-tools-12.9.86-he0c23c2_2.conda + sha256: e28baff7cbee6bbc30797adfe09f497c9ac2b69deb7f5152fc7e238c2f37e42b + md5: b018676d60a0f1e51a120382db5221fc + depends: + - cuda-crt-tools 12.9.86 h57928b3_2 + - cuda-nvvm-tools 12.9.86 h2466b09_2 + - cuda-version >=12.9,<12.10.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 27361 + timestamp: 1753976245101 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-12.9.86-hac47afa_1.conda + sha256: d90ef446ac859db26286a5d39d39333c4e4cee31ba5042b5c7922bd25de531f6 + md5: d68b5d96a53c80dc3dbbd8f7c3b8106d + depends: + - cuda-version >=12.9,<12.10.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 58467504 + timestamp: 1760723834711 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-dev-12.9.86-hac47afa_1.conda + sha256: 1e1c41f95d606eaf6581fccf9546ed6ee4053c42b78e11057cd6d2801b96f0e2 + md5: b97225dd005cb0dcdca7911c61ca38e5 + depends: + - cuda-nvrtc 12.9.86 hac47afa_1 + - cuda-version >=12.9,<12.10.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: LicenseRef-NVIDIA-End-User-License-Agreement + run_exports: + weak: + - cuda-nvrtc >=12.9.86,<13.0a0 + size: 35214 + timestamp: 1760724506186 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-12.9.86-h719f0c7_6.conda + sha256: 020a5bb67a35654f391d21b170ba763f95b7f133fec5678d69e676559dcd5653 + md5: b162c7fb8b19f9102bd5f801d7f58ca2 + depends: + - cuda-nvvm-dev_win-64 12.9.86.* + - cuda-nvvm-impl 12.9.86.* + - cuda-nvvm-tools 12.9.86.* + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 26007 + timestamp: 1771619504675 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-12.9.86-h2466b09_2.conda + sha256: 7b995ea653816b129bae6e4ee92898824a39fe82227472537bf75ac6ece7e955 + md5: d8cea7bc32045bde718d0b1ceb595445 + depends: + - cuda-version >=12.9,<12.10.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 31168 + timestamp: 1753975780038 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-12.9.86-h2466b09_2.conda + sha256: 5692a559206420f77e376a598329db966da762ad574866f9cc80a447d26ac49c + md5: 25e269101d3eb39715a48998bc04289e + depends: + - cuda-version >=12.9,<12.10.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 40286977 + timestamp: 1753975898550 +- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-profiler-api-12.9.79-h57928b3_1.conda + sha256: e2ea70bfd20decd9e8401b5388693e1fd8e25a120580338a22b8b890f4933520 + md5: 57d6f85f552878de71f8136cc6d2ab16 + depends: + - cuda-cudart-dev + - cuda-version >=12.9,<12.10.0a0 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 24150 + timestamp: 1761098813665 +- conda: https://conda.anaconda.org/conda-forge/win-64/cython-3.2.9-py312hd245ac3_0.conda + sha256: 277887d63842d6b9d8a49f6bde1c57149fd65342c85e1f3e2aa44402125d3115 + md5: 762f58961f768b8790a215a8521d33cd + depends: + - python >=3.12,<3.13.0a0 + - python_abi 3.12.* *_cp312 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: Apache-2.0 + license_family: APACHE + purls: + - pkg:pypi/cython?source=hash-mapping + run_exports: {} + size: 3316549 + timestamp: 1785016176418 +- conda: https://conda.anaconda.org/conda-forge/win-64/cython-3.2.9-py314h344ed54_0.conda + sha256: a061170102d6f1a0b64ed3be712ac653fd9c9e8b6bed6205f398dbf319dcc3c8 + md5: 8ecd457018d6f302da0945cd2169167d + depends: + - python >=3.14,<3.15.0a0 + - python_abi 3.14.* *_cp314 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: Apache-2.0 + license_family: APACHE + purls: + - pkg:pypi/cython?source=hash-mapping + run_exports: {} + size: 3343814 + timestamp: 1785016211855 +- conda: https://conda.anaconda.org/conda-forge/win-64/dav1d-1.2.1-hcfcfb64_0.conda + sha256: 2aa2083c9c186da7d6f975ccfbef654ed54fff27f4bc321dbcd12cee932ec2c4 + md5: ed2c27bda330e3f0ab41577cf8b9b585 + depends: + - ucrt >=10.0.20348.0 + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + license: BSD-2-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - dav1d >=1.2.1,<1.2.2.0a0 + size: 618643 + timestamp: 1685696352968 +- conda: https://conda.anaconda.org/conda-forge/win-64/debugpy-1.8.21-py312ha1a9051_0.conda + sha256: a41f403ca4b7b0c001140ac7a39fce1c0494ba95e8359f7a47590ed4377728a2 + md5: 5628287239c9ef6df2d66dc143f7c8dd + depends: + - python + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - python_abi 3.12.* *_cp312 + license: MIT + license_family: MIT + purls: + - pkg:pypi/debugpy?source=hash-mapping + run_exports: {} + size: 3995148 + timestamp: 1780390185301 +- conda: https://conda.anaconda.org/conda-forge/win-64/ffmpeg-9.0.1-gpl_h893bb9d_900.conda + sha256: 34ca3f87a4ee1774892024a1f9159bed2cf2f0da0a914833904a692f085e4367 + md5: 427d6171db8991b7a6554cc40da3efe2 + depends: + - aom >=3.14.1,<3.15.0a0 + - bzip2 >=1.0.8,<2.0a0 + - dav1d >=1.2.1,<1.2.2.0a0 + - fontconfig >=2.18.3,<3.0a0 + - fonts-conda-ecosystem + - lame >=4.0,<4.1.0a0 + - libexpat >=2.8.1,<3.0a0 + - libfreetype >=2.14.3 + - libfreetype6 >=2.14.3 + - libharfbuzz >=14.3.0 + - libiconv >=1.18,<2.0a0 + - libjxl >=0.12.0,<0.13.0a0 + - liblzma >=5.8.3,<6.0a0 + - libopus >=1.6.1,<2.0a0 + - librsvg >=2.62.3,<3.0a0 + - libvorbis >=1.3.7,<1.4.0a0 + - libvulkan-loader >=1.4.357.0,<2.0a0 + - libwebp-base >=1.6.0,<2.0a0 + - libxml2 + - libxml2-16 >=2.14.6 + - libzlib >=1.3.2,<2.0a0 + - openh264 >=2.6.0,<2.6.1.0a0 + - openssl >=3.5.7,<4.0a0 + - sdl2 >=2.32.56,<3.0a0 + - svt-av1 >=4.2.0,<4.2.1.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - x264 >=1!164.3095,<1!165 + - x265 >=3.5,<3.6.0a0 + constrains: + - __cuda >=12.8 + license: GPL-2.0-or-later + license_family: GPL + purls: [] + run_exports: + weak: + - ffmpeg >=9.0.1,<10.0a0 + size: 11511745 + timestamp: 1786705688472 +- conda: https://conda.anaconda.org/conda-forge/win-64/fontconfig-2.18.3-hd47e2ca_1.conda + sha256: f26139e3c774a6434c8a73381c08e3d2a4c2f9d9ef9587c66aab8836211ee2ec + md5: ed95670fed91b091fe34ba6cae6677d7 + depends: + - libexpat >=2.8.1,<3.0a0 + - libfreetype >=2.14.3 + - libfreetype6 >=2.14.3 + - libiconv >=1.18,<2.0a0 + - libintl >=0.22.5,<1.0a0 + - libzlib >=1.3.2,<2.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - fontconfig >=2.18.3,<3.0a0 + - fonts-conda-ecosystem + size: 217988 + timestamp: 1786667461139 +- conda: https://conda.anaconda.org/conda-forge/win-64/freetype-2.14.3-h57928b3_2.conda + sha256: 32f7dd8ffe62fd485e9e6570e871f5be45af74c84fde62241a2417046a373efd + md5: 6fc6c09c05a099d58efd9b2e96598e41 + depends: + - libfreetype 2.14.3 h57928b3_2 + - libfreetype6 2.14.3 hdbac1cb_2 + - zlib + license: GPL-2.0-only OR FTL + purls: [] + run_exports: + weak: + - libfreetype >=2.14.3 + - libfreetype6 >=2.14.3 + size: 186945 + timestamp: 1786641050416 +- conda: https://conda.anaconda.org/conda-forge/win-64/fribidi-1.0.16-hfd05255_1.conda + sha256: 274b3e4ae5dff527062039d1dcb5cfdd9f91fa7d8eaf61358c09450b361385de + md5: 66f5ce9d0d618332023619a899ceb26f + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: LGPL-2.1-or-later + purls: [] + run_exports: + weak: + - fribidi >=1.0.16,<2.0a0 + size: 65318 + timestamp: 1785912637725 +- conda: https://conda.anaconda.org/conda-forge/win-64/gcc-16.1.0-hb5e953d_2.conda + sha256: ca8e5e8f5e606b494bad058201f1b3e02a7868097a0b22dfae53e676f474c4ad + md5: e4b4424b5db07664bc371f68fdc0df67 + depends: + - conda-gcc-specs + - gcc_impl_win-64 16.1.0 h0942c35_2 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: {} + size: 1357709 + timestamp: 1787166786587 +- conda: https://conda.anaconda.org/conda-forge/win-64/gcc_impl_win-64-16.1.0-h0942c35_2.conda + sha256: 4cc3aa54715f4904eda0a3a32d40341093a8b4ada9c9f78010c8bcb08e5ca489 + md5: 61b19e45d33195a0d482998f53a83c20 + depends: + - binutils_impl_win-64 >=2.46.1 + - libgcc >=16.1.0 + - libgcc-devel_win-64 16.1.0 hecf7705_102 + - libgomp >=16.1.0 + - libstdcxx >=16.1.0 + - libstdcxx-devel_win-64 16.1.0 hc76ffd0_102 + - m2w64-sysroot_win-64 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: {} + size: 64038389 + timestamp: 1787166553763 +- conda: https://conda.anaconda.org/conda-forge/win-64/gdk-pixbuf-2.44.8-h1f5b9c4_0.conda + sha256: 17dd50f1729768ae2583b1aed7170c55c7966e9bf931501f63c5972f5f228ea3 + md5: 192391c5b8a9fc598d4fc20e1b17d5ee + depends: + - libglib >=2.88.3,<3.0a0 + - libintl >=0.22.5,<1.0a0 + - libjpeg-turbo >=3.2.0,<4.0a0 + - liblzma >=5.8.3,<6.0a0 + - libpng >=1.6.58,<1.7.0a0 + - libtiff >=4.7.2,<4.8.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: LGPL-2.1-or-later + license_family: LGPL + purls: [] + run_exports: + weak: + - gdk-pixbuf >=2.44.8,<3.0a0 + size: 578422 + timestamp: 1786715362203 +- conda: https://conda.anaconda.org/conda-forge/win-64/glib-2.88.3-h89924da_1.conda + sha256: 4aadcd822cee664e41f413fc73d58ee44e9f9609dfa8bae7fedd01d569b1447c + md5: ac5df4663035b908c8bdccfd7fe45e0e + depends: + - python * + - packaging + - libglib ==2.88.3 he810d59_1 + - glib-tools ==2.88.3 hf027272_1 + - libintl-devel + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - libintl >=0.22.5,<1.0a0 + license: LGPL-2.1-or-later + purls: [] + run_exports: + weak: + - libglib >=2.88.3,<3.0a0 + size: 76039 + timestamp: 1786457672418 +- conda: https://conda.anaconda.org/conda-forge/win-64/glib-tools-2.88.3-hf027272_1.conda + sha256: b4b637f6e3b408e21af8e98d635745146f7434ecf1b7ca73b8e510c1d3544ef1 + md5: a22de7dd4d070f48158307df1749c9b1 + depends: + - libglib ==2.88.3 he810d59_1 + - libffi + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - libintl >=0.22.5,<1.0a0 + license: LGPL-2.1-or-later + purls: [] + run_exports: {} + size: 251656 + timestamp: 1786457672418 +- conda: https://conda.anaconda.org/conda-forge/win-64/graphite2-1.3.15-h5112557_1.conda + sha256: 93a59bdf944fb6f947bd7ad2f293d5d80db3a90f8ff8dfabc591e3752141e46f + md5: 79538e7a7bc024084eda5989f73fde35 + depends: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + license: LGPL-2.0-or-later + license_family: LGPL + purls: [] + run_exports: + weak: + - graphite2 >=1.3.15,<2.0a0 + size: 98064 + timestamp: 1786118492029 +- conda: https://conda.anaconda.org/conda-forge/win-64/greenlet-3.5.5-py312ha1a9051_0.conda + sha256: 97094aa5236f3b5d245a3faf068fa3eb643ec17462bc92bccd45d0b13c06a9c6 + md5: 7037cdbca1ce13941d30bc6a5935594b + depends: + - python + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - python_abi 3.12.* *_cp312 + license: MIT + license_family: MIT + purls: + - pkg:pypi/greenlet?source=hash-mapping + run_exports: {} + size: 256994 + timestamp: 1786384103960 +- conda: https://conda.anaconda.org/conda-forge/win-64/gxx-16.1.0-hb5e953d_2.conda + sha256: 4f7e79e5f51d64e594a35ef458bcd549db393459feee555f1edea7479e295d51 + md5: 9e71d5e7ce9c73f809a81b61ea765ec5 + depends: + - conda-gcc-specs + - gcc 16.1.0 hb5e953d_2 + - gxx_impl_win-64 16.1.0 he3d2c83_2 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: {} + size: 927372 + timestamp: 1787166826183 +- conda: https://conda.anaconda.org/conda-forge/win-64/gxx_impl_win-64-16.1.0-he3d2c83_2.conda + sha256: 0277f22b2b697df6a0cdc53225cb12975c0ca922413fd4482c1964994c0d8c29 + md5: c70ea0125b4897a3b32388203255f999 + depends: + - gcc_impl_win-64 16.1.0 h0942c35_2 + - libstdcxx-devel_win-64 16.1.0 hc76ffd0_102 + - m2w64-sysroot_win-64 + - tzdata + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: {} + size: 15247571 + timestamp: 1787166750693 +- conda: https://conda.anaconda.org/conda-forge/win-64/harfbuzz-14.3.1-h57928b3_0.conda + sha256: 5e410d9a7e589978aa2e11be32715db51ee4f67ac8e8ef2785f7b24172a1221d + md5: 699242debb10424f042a52d478418ded + depends: + - libharfbuzz-devel 14.3.1 h03b5201_0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libharfbuzz >=14.3.1 + size: 11519 + timestamp: 1786971106695 +- conda: https://conda.anaconda.org/conda-forge/win-64/icu-78.3-h5112557_2.conda + sha256: 75c549b55b673e15de8785a8e5dd85bca7eb612eee0ff4dc8d7bdaa15eacbdbb + md5: e596942e8ee6ee17fdcf1e6a77757a66 + depends: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - icu >=78.3,<79.0a0 + size: 16835644 + timestamp: 1784916416303 +- conda: https://conda.anaconda.org/conda-forge/win-64/krb5-1.22.2-h719d79b_2.conda + sha256: 63ff03324e903eb01a715ccf357df56d66224e61952fd6615d86490ebefb3285 + md5: 93f5a01dec294a2228f757fe2f3432d4 + depends: + - openssl >=3.5.7,<4.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - krb5 >=1.22.2,<1.23.0a0 + size: 753425 + timestamp: 1786762169034 +- conda: https://conda.anaconda.org/conda-forge/win-64/lame-4.0-h0c5f640_1.conda + sha256: c1df9067381c938f819639a3c1b151a28bd1880c044951b5e14785a89fd91cf5 + md5: f2520f0d4797754e640bc20bbcfdea6d + depends: + - mpg123 >=1.33.7,<1.34.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: LGPL-2.0-only + license_family: LGPL + purls: [] + run_exports: + weak: + - lame >=4.0,<4.1.0a0 + size: 360500 + timestamp: 1786292530281 +- conda: https://conda.anaconda.org/conda-forge/win-64/ld_impl_win-64-2.46.1-default_hfd38196_102.conda + sha256: e3cb27be096acab3c8d5ed36961e291e3e6e9c2323dd3fd565623a4c093e931c + md5: 179ed4e90a5c9560bebb28292a726f12 + depends: + - zstd >=1.5.7,<1.6.0a0 + constrains: + - binutils_impl_win-64 2.46.1 + license: GPL-3.0-only + license_family: GPL + purls: [] + run_exports: {} + size: 896485 + timestamp: 1784214548635 +- conda: https://conda.anaconda.org/conda-forge/win-64/lerc-4.2.0-hd936e49_0.conda + sha256: 93d666f63f284ef77b87b0b1f77b70f7d36d315a132f9afa64bc0012d937ba39 + md5: add59e2b60ac9d4299d17c938185c75a + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: Apache-2.0 + license_family: Apache + purls: [] + run_exports: + weak: + - lerc >=4.2.0,<5.0a0 + size: 175297 + timestamp: 1785036247761 +- conda: https://conda.anaconda.org/conda-forge/win-64/libblas-3.11.0-9_h8455456_mkl.conda + build_number: 9 + sha256: a99c640f10a3f77efe5c6605676ddc8d365d020eec4fdf1c803d34bdaf49b357 + md5: 17b26a4ad064259983bec1eaa36f40d3 + depends: + - mkl >=2026.1.0,<2027.0a0 + constrains: + - blas 2.309 mkl + - libcblas 3.11.0 9*_mkl + - liblapack 3.11.0 9*_mkl + - liblapacke 3.11.0 9*_mkl + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libblas >=3.11.0,<4.0a0 + size: 67235 + timestamp: 1786059219098 +- conda: https://conda.anaconda.org/conda-forge/win-64/libbrotlicommon-1.2.0-hf02afa3_3.conda + sha256: c739589318a1f8a88cd1b66d385176fd1ec2c4609e9f90d23d748be94b547e4e + md5: 8ef4beb3cb18e1a876b9af9a757cc1a5 + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libbrotlicommon >=1.2.0,<1.3.0a0 + size: 82655 + timestamp: 1786622832371 +- conda: https://conda.anaconda.org/conda-forge/win-64/libbrotlidec-1.2.0-h84f9c24_3.conda + sha256: f4bdb7ec97c3122e531fc867efae5ec928b649d047aa70d42893f0d8eb110fd9 + md5: 10c479888ee4e960587967b2d0c8143a + depends: + - libbrotlicommon 1.2.0 hf02afa3_3 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libbrotlidec >=1.2.0,<1.3.0a0 + size: 34788 + timestamp: 1786622843818 +- conda: https://conda.anaconda.org/conda-forge/win-64/libbrotlienc-1.2.0-he2a975b_3.conda + sha256: c5e638ea9704c94b316238b425a3439ba38d4d8fba81682842e6d7d464472848 + md5: cb5d08dc81f52e87c27914b5636cd995 + depends: + - libbrotlicommon 1.2.0 hf02afa3_3 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libbrotlienc >=1.2.0,<1.3.0a0 + size: 253894 + timestamp: 1786622854214 +- conda: https://conda.anaconda.org/conda-forge/win-64/libcblas-3.11.0-9_h2a3cdd5_mkl.conda + build_number: 9 + sha256: 8c20714bbb85c8a109e9002e76c32be64a82d9867beb1a35a20c85258cc2b535 + md5: 9d1d0c22e9ed8c31ec2efc0d063d6f48 + depends: + - libblas 3.11.0 9_h8455456_mkl + constrains: + - blas 2.309 mkl + - liblapack 3.11.0 9*_mkl + - liblapacke 3.11.0 9*_mkl + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libcblas >=3.11.0,<4.0a0 + size: 67587 + timestamp: 1786059232952 +- conda: https://conda.anaconda.org/conda-forge/win-64/libdeflate-1.25-h1a1d4e4_1.conda + sha256: af1cda21d4653f594fbef20aa4e1ff158a546902b3307ef8af9a9b44b43862d2 + md5: e4e122e124676a49eebf241399ad8393 + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libdeflate >=1.25,<1.26.0a0 + size: 157828 + timestamp: 1785908793271 +- conda: https://conda.anaconda.org/conda-forge/win-64/libexpat-2.8.1-hac47afa_1.conda + sha256: 1a54d874addda73b6f7164d5f3905821277a1831bcc05edd74b3085391688571 + md5: ccc490c81ffe14181861beac0e8f3169 + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + constrains: + - expat 2.8.1.* + license: MIT + license_family: MIT + purls: [] + run_exports: {} + size: 71631 + timestamp: 1781203724164 +- conda: https://conda.anaconda.org/conda-forge/win-64/libexpat-2.9.0-hac47afa_0.conda + sha256: d4a8e5aac8999a90cd71aa6f9f5c40d8594ed2b89cd7f898f997767ecc6cd52d + md5: 74ac404611024dc488ae71cfb7a5bf8f + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + constrains: + - expat 2.9.0.* + license: MIT + license_family: MIT + purls: [] + run_exports: {} + size: 72983 + timestamp: 1793054271728 +- conda: https://conda.anaconda.org/conda-forge/win-64/libffi-3.7.0-h3d046cb_0.conda + sha256: 2ea8d2fe7b84ca37653777e15ac1e7abd35f0c90d3efbe7f6c4de9b489606369 + md5: 92bdfc0e5012660892b0e0eaf3069a5c + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libffi >=3.7.0,<3.8.0a0 + size: 50247 + timestamp: 1783521107166 +- conda: https://conda.anaconda.org/conda-forge/win-64/libfreetype-2.14.3-h57928b3_2.conda + sha256: d794d7fddb6eea50e18a62fa27ab3819f40d51bad00b90cf4ca591fb0d4006c2 + md5: 740f99c3c91079c03874b809fedace1b + depends: + - libfreetype6 >=2.14.3 + license: GPL-2.0-only OR FTL + purls: [] + run_exports: {} + size: 8742 + timestamp: 1786641045882 +- conda: https://conda.anaconda.org/conda-forge/win-64/libfreetype6-2.14.3-hdbac1cb_2.conda + sha256: cbc650854003e434d4ff6c7b1a2667e38a4242ad8a391a1c5ff89721624065ce + md5: 8157483eb7ed3fcba71aad3b50a97131 + depends: + - libpng >=1.6.58,<1.7.0a0 + - libzlib >=1.3.2,<2.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + constrains: + - freetype >=2.14.3 + license: GPL-2.0-only OR FTL + purls: [] + run_exports: {} + size: 340385 + timestamp: 1786641044865 +- conda: https://conda.anaconda.org/conda-forge/win-64/libgcc-16.1.0-h110b43a_2.conda + sha256: 4457d44a3ec12e7304ca248f418ed3a1a5da7152c5627dc422e33982d71fff94 + md5: a23cb46435dc757667ee85c060dea30a + depends: + - _openmp_mutex >=4.5 + - libwinpthread >=12.0.0.r4.gg4f2fc60ca + constrains: + - libgcc-ng ==16.1.0=*_2 + - libgomp 16.1.0 h8ee18e1_2 + - msys2-conda-epoch <0.0a0 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: {} + size: 818811 + timestamp: 1787166490957 +- conda: https://conda.anaconda.org/conda-forge/win-64/libglib-2.88.3-he810d59_1.conda + sha256: fd94edec4f945c82ba6b983aae2bec21dd08209a5b387fb7a713534bb3db51af + md5: d8b3236ab45b58a0c4f4aa0a286cee13 + depends: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - pcre2 >=10.47,<10.48.0a0 + - libffi >=3.7.0,<3.8.0a0 + - libintl >=0.22.5,<1.0a0 + - libiconv >=1.18,<2.0a0 + - libzlib >=1.3.2,<2.0a0 + constrains: + - glib >2.66 + license: LGPL-2.1-or-later + purls: [] + run_exports: + weak: + - libglib >=2.88.3,<3.0a0 + size: 4518977 + timestamp: 1786457672418 +- conda: https://conda.anaconda.org/conda-forge/win-64/libgomp-16.1.0-h8ee18e1_2.conda + sha256: 58d07dbe9dc4f3abd6ee6beec4e875469d0734b203161d34e156eeeff6ef41bf + md5: 9db12c082cf914035ad95b1cea237fc8 + depends: + - libwinpthread >=12.0.0.r4.gg4f2fc60ca + constrains: + - msys2-conda-epoch <0.0a0 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: + strong: + - _openmp_mutex >=4.5 + - libgomp >=16.1.0 + size: 682073 + timestamp: 1787166441157 +- conda: https://conda.anaconda.org/conda-forge/win-64/libharfbuzz-14.3.1-h03b5201_0.conda + sha256: 79fa7b957cb1fa539b5be09a67872360e507a3f25501a0ceb26cda2b5091686e + md5: 72c117cd3215779e10bf16266db1d70e + depends: + - cairo >=1.18.4,<2.0a0 + - graphite2 >=1.3.15,<2.0a0 + - icu >=78.3,<79.0a0 + - libexpat >=2.8.1,<3.0a0 + - libfreetype >=2.14.3 + - libfreetype6 >=2.14.3 + - libglib >=2.88.3,<3.0a0 + - libpng >=1.6.58,<1.7.0a0 + - libzlib >=1.3.2,<2.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: MIT + license_family: MIT + purls: [] + run_exports: {} + size: 1042074 + timestamp: 1786971066342 +- conda: https://conda.anaconda.org/conda-forge/win-64/libharfbuzz-devel-14.3.1-h03b5201_0.conda + sha256: 88c637d1465c608f2096119d50cf464bd5aa271ea033c3cb830c0f1792cc1cb6 + md5: 44a5f97ff0fc9d87d935478631aee3d6 + depends: + - cairo >=1.18.4,<2.0a0 + - freetype + - glib + - graphite2 >=1.3.15,<2.0a0 + - icu >=78.3,<79.0a0 + - libexpat >=2.8.1,<3.0a0 + - libfreetype >=2.14.3 + - libfreetype6 >=2.14.3 + - libglib >=2.88.3,<3.0a0 + - libharfbuzz 14.3.1 h03b5201_0 + - libpng >=1.6.58,<1.7.0a0 + - libzlib >=1.3.2,<2.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libharfbuzz >=14.3.1 + size: 325706 + timestamp: 1786971096676 +- conda: https://conda.anaconda.org/conda-forge/win-64/libhwloc-2.13.0-default_h049141e_1000.conda + sha256: 2ee12e37223dfcd0acd050c80a91150c482b6e2899198521e1800dce66662467 + md5: 6a01c986e30292c715038d2788aa1385 + depends: + - libwinpthread >=12.0.0.r4.gg4f2fc60ca + - libxml2 + - libxml2-16 >=2.14.6 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libhwloc >=2.13.0,<2.13.1.0a0 + size: 2396128 + timestamp: 1770954127918 +- conda: https://conda.anaconda.org/conda-forge/win-64/libhwy-1.4.0-h2419aca_0.conda + sha256: ade3e4e8e09051bad9c75ea9e96b09e3c635216c409c87c369e6f8566a528cb1 + md5: 430378e206cf5a148fc8da7603b2466e + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: Apache-2.0 OR BSD-3-Clause + purls: [] + run_exports: + weak: + - libhwy >=1.4.0,<1.5.0a0 + size: 564121 + timestamp: 1784325614001 +- conda: https://conda.anaconda.org/conda-forge/win-64/libiconv-1.18-hc1393d2_3.conda + sha256: 35e04e3ddac7720fc7c550a1c9f998604299d6a7bd1f3ec9b2825d825061daa2 + md5: a8a2abdf0f901bc4779d9b7be0845921 + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: LGPL-2.1-only + purls: [] + run_exports: + weak: + - libiconv >=1.18,<2.0a0 + size: 694899 + timestamp: 1787033851701 +- conda: https://conda.anaconda.org/conda-forge/win-64/libintl-0.22.5-h5728263_3.conda + sha256: c7e4600f28bcada8ea81456a6530c2329312519efcf0c886030ada38976b0511 + md5: 2cf0cf76cc15d360dfa2f17fd6cf9772 + depends: + - libiconv >=1.17,<2.0a0 + license: LGPL-2.1-or-later + purls: [] + run_exports: + weak: + - libintl >=0.22.5,<1.0a0 + size: 95568 + timestamp: 1723629479451 +- conda: https://conda.anaconda.org/conda-forge/win-64/libintl-devel-0.22.5-h5728263_3.conda + sha256: be1f3c48bc750bca7e68955d57180dfd826d6f9fa7eb32994f6cb61b813f9a6a + md5: 7537784e9e35399234d4007f45cdb744 + depends: + - libiconv >=1.17,<2.0a0 + - libintl 0.22.5 h5728263_3 + license: LGPL-2.1-or-later + purls: [] + run_exports: + weak: + - libintl >=0.22.5,<1.0a0 + size: 40746 + timestamp: 1723629745649 +- conda: https://conda.anaconda.org/conda-forge/win-64/libjpeg-turbo-3.2.0-hfd05255_1.conda + sha256: df78ab4c0eecb3dd9331898f96baeed8e5ca1c363346332517abeb0b614b9a53 + md5: fc2c23bacefd1e733f1e1d6cd3b2aaeb + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + constrains: + - jpeg <0.0.0a + license: IJG AND BSD-3-Clause AND Zlib + purls: [] + run_exports: + weak: + - libjpeg-turbo >=3.2.0,<4.0a0 + size: 990125 + timestamp: 1785896494014 +- conda: https://conda.anaconda.org/conda-forge/win-64/libjxl-0.12.0-h932607e_2.conda + sha256: c0381a39fd601430ebe7e2686543f5b1685d2374d8bb7be0aabf4d4705327efa + md5: cf415a2296a1d862e93559645c91fd30 + depends: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - libhwy >=1.4.0,<1.5.0a0 + - libbrotlienc >=1.2.0,<1.3.0a0 + - libbrotlidec >=1.2.0,<1.3.0a0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libjxl >=0.12.0,<0.13.0a0 + size: 1199700 + timestamp: 1786691396735 +- conda: https://conda.anaconda.org/conda-forge/win-64/liblapack-3.11.0-9_hf9ab0e9_mkl.conda + build_number: 9 + sha256: 62d0a7a70ee13c554d5d7ff94a2ba758c4111439822dcc81324dd4cfaf576071 + md5: bee6f13ab945c4034bdd0f722ad14dd5 + depends: + - libblas 3.11.0 9_h8455456_mkl + constrains: + - blas 2.309 mkl + - libcblas 3.11.0 9*_mkl + - liblapacke 3.11.0 9*_mkl + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - liblapack >=3.11.0,<3.12.0a0 + size: 79963 + timestamp: 1786059243440 +- conda: https://conda.anaconda.org/conda-forge/win-64/liblzma-5.8.3-hfd05255_1.conda + sha256: d36c4a1e1f80fd08e18a407e03622ff2f34dfdd022da6488ad19603dea19e6d5 + md5: 880a0c8549479b198af21ba5dc49b109 + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + constrains: + - xz 5.8.3.* + license: 0BSD + purls: [] + run_exports: + weak: + - liblzma >=5.8.3,<6.0a0 + size: 105809 + timestamp: 1786348717883 +- conda: https://conda.anaconda.org/conda-forge/win-64/libmpdec-4.0.0-hfd05255_2.conda + sha256: f07e451de3db1836b87f7aedf95c8e65cdb06c0e6105329ba24bb5f7b5c75e2a + md5: 5ae92fd6614edd024576e14069d7ad4c + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: BSD-2-Clause + license_family: BSD + purls: [] + run_exports: {} + size: 89109 + timestamp: 1786650384519 +- conda: https://conda.anaconda.org/conda-forge/win-64/libnvfatbin-12.9.82-hac47afa_2.conda + sha256: 31b31c81575656d967722ca5d795a414b069ce618714422fb2b6890583ad83e2 + md5: 24695ab1ce33e2fda666dab89c1a23f0 + depends: + - cuda-version >=12,<12.10.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 345191 + timestamp: 1782920356823 +- conda: https://conda.anaconda.org/conda-forge/win-64/libnvjitlink-12.9.86-hac47afa_2.conda + sha256: adf35938c9ecd77d27c87ef870f7710ee422933ad95d1aac136ff39e7af0551f + md5: feaee6b1ab0e7ed9152dc88e1b0eeddd + depends: + - cuda-version >=12,<12.10.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 27343190 + timestamp: 1760724535115 +- conda: https://conda.anaconda.org/conda-forge/win-64/libnvptxcompiler-dev-12.9.86-h57928b3_2.conda + sha256: b05ab0cb8c66535a9cb27cf229752c42dab1fc4bda46c050514c42ad0a74b12c + md5: ed841728d5a36ce8269c6f875c001236 + depends: + - cuda-version >=12.9,<12.10.0a0 + - libnvptxcompiler-dev_win-64 12.9.86 h57928b3_2 + license: LicenseRef-NVIDIA-End-User-License-Agreement + purls: [] + run_exports: {} + size: 27359 + timestamp: 1753976279054 +- conda: https://conda.anaconda.org/conda-forge/win-64/libogg-1.3.5-h2466b09_1.conda + sha256: c63e5fb169dbd192aacdcee6e37235407f106b8ca9c9036942a25e0366cbc73c + md5: b67ed8c9ca072695ff482e50d888a523 + depends: + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + - ucrt >=10.0.20348.0 + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + - ucrt >=10.0.20348.0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libogg >=1.3.5,<1.4.0a0 + size: 35040 + timestamp: 1745826086628 +- conda: https://conda.anaconda.org/conda-forge/win-64/libopus-1.6.1-h6a83c73_0.conda + sha256: c3678f111866235b44fa65265966abae7d90b6387178f1459afaedcee8b4a997 + md5: 0ed21da5b6e3a0393e05762b3cce2878 + depends: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libopus >=1.6.1,<2.0a0 + size: 307373 + timestamp: 1768497136248 +- conda: https://conda.anaconda.org/conda-forge/win-64/libpng-1.6.58-hdc8cecf_1.conda + sha256: 8c49c32adf3ba2c59783630b82377f54ab72204ea99e2bafc90a47a8e25c1032 + md5: 5aa7348e73691187c81d51616f17e48a + depends: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - libzlib >=1.3.2,<2.0a0 + license: zlib-acknowledgement + purls: [] + run_exports: + weak: + - libpng >=1.6.58,<1.7.0a0 + size: 385462 + timestamp: 1786616543374 +- conda: https://conda.anaconda.org/conda-forge/win-64/libpython-3.12.16-hfb4101e_0_cpython.conda + sha256: dd208ae5026d15eb90763f6f41b26c502a52c66f77687fa7a8682b7ef33ffd5c + md5: 134d0d3f298ff8dde24757d46acfd71e + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: Python-2.0 + purls: [] + run_exports: {} + size: 47258 + timestamp: 1793014239570 +- conda: https://conda.anaconda.org/conda-forge/win-64/libpython-3.14.10-hc6187dd_100_cp314.conda + build_number: 100 + sha256: 4a2aca6cae2d615561aaab82dfced03de8646baf9971656d2e2d240fcd97e04d + md5: 6859b319b6f4d3591220babc08039a23 + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: Python-2.0 + purls: [] + run_exports: {} + size: 52098 + timestamp: 1793016142437 +- conda: https://conda.anaconda.org/conda-forge/win-64/librsvg-2.62.3-h15cfe45_0.conda + sha256: 6f678be6074b79fe754660d16857a6edba73dd197ad92086250dc38c11b179ab + md5: 3fffc63af7b943cde57aa72f5ffe6048 + depends: + - cairo >=1.18.4,<2.0a0 + - gdk-pixbuf >=2.44.6,<3.0a0 + - harfbuzz >=14.2.0 + - libglib >=2.88.1,<3.0a0 + - libxml2-16 >=2.14.6 + - pango >=1.56.4,<2.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: LGPL-2.1-or-later + purls: [] + run_exports: + weak: + - librsvg >=2.62.3,<3.0a0 + size: 3361405 + timestamp: 1780451179155 +- conda: https://conda.anaconda.org/conda-forge/win-64/libsodium-1.0.22-h6a83c73_1.conda + sha256: de45b71224da77a1c3a7dd48d8885eb957c9f05455d4f0828463293e7144330f + md5: 7d5abf7ca1bd00b43d273f44d93d05dc + depends: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + license: ISC + purls: [] + run_exports: + weak: + - libsodium >=1.0.22,<1.0.23.0a0 + size: 280234 + timestamp: 1779164124739 +- conda: https://conda.anaconda.org/conda-forge/win-64/libsqlite-3.53.4-hf5d6505_1.conda + sha256: 0a45d7c0f20146fff787a106f8fa187872e309c70975ff8f0936e188914c26ad + md5: a72d495965b144bb7da033642d389047 + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: blessing + purls: [] + run_exports: + weak: + - libsqlite >=3.53.4,<4.0a0 + size: 1314919 + timestamp: 1787051140039 +- conda: https://conda.anaconda.org/conda-forge/win-64/libsqlite-3.54.1-hf5d6505_101.conda + sha256: 1f7ddd7d9383cf6ab6ee5a3a84e07a679a8539edc0ddd05fe476ff08142bf742 + md5: 3fd1cac4336c12f2fb5545a999d7e9b6 + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: blessing + purls: [] + run_exports: + weak: + - libsqlite >=3.54.1,<4.0a0 + size: 1333137 + timestamp: 1793051563198 +- conda: https://conda.anaconda.org/conda-forge/win-64/libstdcxx-16.1.0-hae5796f_2.conda + sha256: 3e5a28cee4547403a3f19db2bf79ce9c013ccc0f1cb1b1598df12dd05861477f + md5: 952dcf4ca72d4a886ea6e513ae478970 + depends: + - libgcc 16.1.0 h110b43a_2 + - libwinpthread >=12.0.0.r4.gg4f2fc60ca + constrains: + - libstdcxx-ng ==16.1.0=*_2 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + purls: [] + run_exports: {} + size: 7246535 + timestamp: 1787166510830 +- conda: https://conda.anaconda.org/conda-forge/win-64/libtiff-4.7.2-h8f73337_0.conda + sha256: ec6d66308a6d6abaf3225f2f185113e6172e77eb0fa8622af982d7a5d6d47a2c + md5: e83f459471905a04ebe15e21d063c49d + depends: + - lerc >=4.1.0,<5.0a0 + - libdeflate >=1.25,<1.26.0a0 + - libjpeg-turbo >=3.1.4.1,<4.0a0 + - liblzma >=5.8.3,<6.0a0 + - libzlib >=1.3.2,<2.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - zstd >=1.5.7,<1.6.0a0 + license: HPND + purls: [] + run_exports: + weak: + - libtiff >=4.7.2,<4.8.0a0 + size: 1014598 + timestamp: 1783085017197 +- conda: https://conda.anaconda.org/conda-forge/win-64/libusb-1.0.29-h1839187_0.conda + sha256: 9837f8e8de20b6c9c033561cd33b4554cd551b217e3b8d2862b353ed2c23d8b8 + md5: a656b2c367405cd24988cf67ff2675aa + depends: + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + - ucrt >=10.0.20348.0 + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + - ucrt >=10.0.20348.0 + license: LGPL-2.1-or-later + purls: [] + run_exports: + weak: + - libusb >=1.0.29,<2.0a0 + size: 118204 + timestamp: 1748856290542 +- conda: https://conda.anaconda.org/conda-forge/win-64/libvorbis-1.3.7-h5112557_2.conda + sha256: 429124709c73b2e8fae5570bdc6b42f5418a7551ba72e591bb960b752e87b365 + md5: 42a8a56c60882da5d451aa95b8455111 + depends: + - libogg + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - libogg >=1.3.5,<1.4.0a0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libvorbis >=1.3.7,<1.4.0a0 + size: 243401 + timestamp: 1753879416570 +- conda: https://conda.anaconda.org/conda-forge/win-64/libvulkan-loader-1.4.357.0-h477610d_0.conda + sha256: 432d4796261bc4a4525e8ecf262361c3f69d815af823ebf60242093e47333674 + md5: 63d913ed8ee946e25b1ebf7d9f477b67 + depends: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + constrains: + - libvulkan-headers 1.4.357.0.* + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: + weak: + - libvulkan-loader >=1.4.357.0,<2.0a0 + size: 286754 + timestamp: 1785311500125 +- conda: https://conda.anaconda.org/conda-forge/win-64/libwebp-base-1.6.0-h4d5522a_1.conda + sha256: 4470d98d3178b0d45492eed4808afe421d2e7808352b8d06c2dc29166b75d94d + md5: 35a9475e4cc999d52921f57c181979fc + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + constrains: + - libwebp 1.6.0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - libwebp-base >=1.6.0,<2.0a0 + size: 278886 + timestamp: 1785954716703 +- conda: https://conda.anaconda.org/conda-forge/win-64/libwinpthread-12.0.0.r4.gg4f2fc60ca-h57928b3_10.conda + sha256: 0fccf2d17026255b6e10ace1f191d0a2a18f2d65088fd02430be17c701f8ffe0 + md5: 8a86073cf3b343b87d03f41790d8b4e5 + depends: + - ucrt + constrains: + - pthreads-win32 <0.0a0 + - msys2-conda-epoch <0.0a0 + license: MIT AND BSD-3-Clause-Clear + purls: [] + run_exports: {} + size: 36621 + timestamp: 1759768399557 +- conda: https://conda.anaconda.org/conda-forge/win-64/libxml2-16-2.15.3-h3cfd58e_0.conda + sha256: 3b61ee3caba702d2ff432fa3920835db963026e5c99c4e6fdca0c6114f59e7ce + md5: 9e8dd0d90ed830107b2c36801035b7db + depends: + - icu >=78.3,<79.0a0 + - libiconv >=1.18,<2.0a0 + - liblzma >=5.8.3,<6.0a0 + - libzlib >=1.3.2,<2.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + constrains: + - libxml2 2.15.3 + license: MIT + license_family: MIT + purls: [] + run_exports: {} + size: 519871 + timestamp: 1776376969852 +- conda: https://conda.anaconda.org/conda-forge/win-64/libxml2-16-2.15.3-h692994f_0.conda + sha256: 8038084c60eda2006d0122d05e3364fe8db0a18935ca6ed0168b5ba5aa33f904 + md5: f7d6fcda29570e20851b78d92ea2154e + depends: + - libiconv >=1.18,<2.0a0 + - liblzma >=5.8.3,<6.0a0 + - libzlib >=1.3.2,<2.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + constrains: + - libxml2 2.15.3 + - icu <0.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: {} + size: 518869 + timestamp: 1776376971242 +- conda: https://conda.anaconda.org/conda-forge/win-64/libxml2-2.15.3-h8ef44ab_0.conda + sha256: a4599c6bbbbdd7db570896e520c557eec8e66d94e839a59d17dc1f24a3d5f82b + md5: 95591ca5671d2213f5b2d5aa7818420d + depends: + - icu >=78.3,<79.0a0 + - libiconv >=1.18,<2.0a0 + - liblzma >=5.8.3,<6.0a0 + - libxml2-16 2.15.3 h3cfd58e_0 + - libzlib >=1.3.2,<2.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libxml2 + - libxml2-16 >=2.15.3 + size: 43684 + timestamp: 1776376992865 +- conda: https://conda.anaconda.org/conda-forge/win-64/libxml2-2.15.3-hbc0d294_0.conda + sha256: da68af9d9d28d65a6916db1bef68f8a25c64c4fdcf759f32a2d2f2f143220adf + md5: e3b5acbb857a12f5d59e8d174bc536c0 + depends: + - libiconv >=1.18,<2.0a0 + - liblzma >=5.8.3,<6.0a0 + - libxml2-16 2.15.3 h692994f_0 + - libzlib >=1.3.2,<2.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + constrains: + - icu <0.0a0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - libxml2 + - libxml2-16 >=2.15.3 + size: 43916 + timestamp: 1776376994334 +- conda: https://conda.anaconda.org/conda-forge/win-64/libzlib-1.3.2-hfd05255_3.conda + sha256: 0629c2cc0404d3bb29d6baa7b4ba62da80797015e86de050db81ea5a07050527 + md5: 5d2ff29d465097458cc3ff6569151991 + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + constrains: + - zlib 1.3.2 *_3 + license: Zlib + license_family: Other + purls: [] + run_exports: + weak: + - libzlib >=1.3.2,<2.0a0 + size: 58529 + timestamp: 1785276664143 +- conda: https://conda.anaconda.org/conda-forge/win-64/llvm-openmp-22.1.8-h4fa8253_0.conda + sha256: 50c02902bb516eeb56680358f052be38b5bf74b40e78ea4b2a675e84957e7307 + md5: de3551bf6508d45ca46b714639e52823 + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + constrains: + - openmp 22.1.8|22.1.8.* + - intel-openmp <0.0a0 + license: Apache-2.0 WITH LLVM-exception + license_family: APACHE + purls: [] + run_exports: + strong: + - llvm-openmp >=22.1.8 + size: 348002 + timestamp: 1781737042070 +- conda: https://conda.anaconda.org/conda-forge/win-64/m2-conda-epoch-20250515-0_x86_64.conda + build_number: 0 + sha256: 51e9214548f177db9c3fe70424e3774c95bf19cd69e0e56e83abe2e393228ba1 + md5: 7d60fb16df2cd07fbc3dbff1c9df4244 + constrains: + - msys2-conda-epoch <0.0a0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - m2-conda-epoch 20250515 *_x86_64 + noarch: + - m2-conda-epoch 20250515 *_x86_64 + size: 7539 + timestamp: 1747330852019 +- conda: https://conda.anaconda.org/conda-forge/win-64/make-4.4.1-hba3369d_3.conda + sha256: 8b1a30f3e6442ed4c161e7aabab396ce35c61a3c235ece53edf2a78c95d18fed + md5: 01f0e2393626438c79e4f167f853b304 + depends: + - libgcc >=14 + - libwinpthread >=12.0.0.r4.gg4f2fc60ca + - ucrt >=10.0.20348.0 + license: GPL-3.0-or-later + license_family: GPL + purls: [] + run_exports: {} + size: 2207518 + timestamp: 1785879951361 +- conda: https://conda.anaconda.org/conda-forge/win-64/markupsafe-3.0.3-py312h05f76fc_1.conda + sha256: b744287a780211ac4595126ef96a44309c791f155d4724021ef99092bae4aace + md5: a73298d225c7852f97403ca105d10a13 + depends: + - python >=3.12,<3.13.0a0 + - python_abi 3.12.* *_cp312 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + constrains: + - jinja2 >=3.0.0 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/markupsafe?source=hash-mapping + run_exports: {} + size: 28510 + timestamp: 1772445175216 +- conda: https://conda.anaconda.org/conda-forge/win-64/mkl-2026.1.0-hac47afa_234.conda + sha256: f7568a5ebf9f4a401a6d9da7be4f82a8794cf305e870e77923a5712ba7f4b964 + md5: f0510f9d5e501462d72a5c0c798dbcc3 + depends: + - llvm-openmp >=22.1.8 + - tbb >=2023.0.0 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: LicenseRef-IntelSimplifiedSoftwareOct2022 + license_family: Proprietary + purls: [] + run_exports: {} + size: 114429478 + timestamp: 1786086389935 +- conda: https://conda.anaconda.org/conda-forge/win-64/mpg123-1.33.7-h365c5b5_0.conda + sha256: 844868a7dc886bd1bf569613cd2609d335c4728c9b89a4eb6c9113ca6d67f946 + md5: bf6e07b61800a79426c4b6bdbdd0111a + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: LGPL-2.1-only + license_family: LGPL + purls: [] + run_exports: + weak: + - mpg123 >=1.33.7,<1.34.0a0 + size: 268619 + timestamp: 1786232242913 +- conda: https://conda.anaconda.org/conda-forge/win-64/msgpack-python-1.2.1-py312h78d62e6_1.conda + sha256: f43cc72ae92759d661187cb4bc4fb4721b97128d150f336b9b0ebf24b8600a27 + md5: 0ac1766b278a8547f22cd0820b8a7e96 + depends: + - python + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - python_abi 3.12.* *_cp312 + license: Apache-2.0 + license_family: APACHE + purls: + - pkg:pypi/msgpack?source=hash-mapping + run_exports: {} + size: 89054 + timestamp: 1782460807428 +- conda: https://conda.anaconda.org/conda-forge/win-64/numpy-2.5.2-py312ha3f287d_0.conda + sha256: 1001b7aec66a029e43ced0981f804063f21779989f5be92afbe57ba6dbc9b0e0 + md5: aabb836a50a8be95424c224fcb9c4dd5 + depends: + - python + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - libcblas >=3.9.0,<4.0a0 + - liblapack >=3.9.0,<4.0a0 + - libblas >=3.9.0,<4.0a0 + - python_abi 3.12.* *_cp312 + constrains: + - numpy-base <0a0 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/numpy?source=hash-mapping + run_exports: + weak: + - numpy >=1.25,<3 + size: 7310151 + timestamp: 1786330621317 +- conda: https://conda.anaconda.org/conda-forge/win-64/numpy-2.5.2-py314h02f10f6_0.conda + sha256: 14067f2c7628320708f73531c98c16753ee3991230c6ae32873baed911771b09 + md5: bd342de8875a168535a553191b405821 + depends: + - python + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - libcblas >=3.9.0,<4.0a0 + - libblas >=3.9.0,<4.0a0 + - liblapack >=3.9.0,<4.0a0 + - python_abi 3.14.* *_cp314 + constrains: + - numpy-base <0a0 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/numpy?source=hash-mapping + run_exports: + weak: + - numpy >=1.25,<3 + size: 7462504 + timestamp: 1786330617237 +- conda: https://conda.anaconda.org/conda-forge/win-64/openh264-2.6.0-h1eab103_1.conda + sha256: 8d7e4a2dcd68afcc87c1e875a19600d980ca8f792f00105a622efd5faed6b05a + md5: 91c186a483e5491170156399b2850804 + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: BSD-2-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - openh264 >=2.6.0,<2.6.1.0a0 + size: 422904 + timestamp: 1782686043511 +- conda: https://conda.anaconda.org/conda-forge/win-64/openssl-3.6.3-hf411b9b_1.conda + sha256: 2ebff5a1b5793e82495bf33c91fba040e11ff23333c2385ac66d0c3aee2cc14c + md5: a978392692a910ba1c8920ccb1e784b3 + depends: + - ca-certificates + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: Apache-2.0 + license_family: Apache + purls: [] + run_exports: + weak: + - openssl >=3.6.3,<4.0a0 + size: 9427535 + timestamp: 1785915614585 +- conda: https://conda.anaconda.org/conda-forge/win-64/pango-1.58.2-h13911b6_0.conda + sha256: 85fc9c2a3b805d7ad784b6b307f4cf4833d3525ab409a7f86262d476a67d441f + md5: 22d750d2ebf4109bc66c036f1e52b982 + depends: + - cairo >=1.18.4,<2.0a0 + - fontconfig >=2.18.2,<3.0a0 + - fonts-conda-ecosystem + - fribidi >=1.0.16,<2.0a0 + - libexpat >=2.8.1,<3.0a0 + - libfreetype >=2.14.3 + - libfreetype6 >=2.14.3 + - libglib >=2.88.3,<3.0a0 + - libharfbuzz >=14.3.0 + - libpng >=1.6.58,<1.7.0a0 + - libzlib >=1.3.2,<2.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + license: LGPL-2.1-or-later + purls: [] + run_exports: + weak: + - pango >=1.58.2,<2.0a0 + size: 466294 + timestamp: 1786107518608 +- conda: https://conda.anaconda.org/conda-forge/win-64/pcre2-10.47-hd2b5f0e_0.conda + sha256: 3e9e02174edf02cb4bcdd75668ad7b74b8061791a3bc8bdb8a52ae336761ba3e + md5: 77eaf2336f3ae749e712f63e36b0f0a1 + depends: + - bzip2 >=1.0.8,<2.0a0 + - libzlib >=1.3.1,<2.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - pcre2 >=10.47,<10.48.0a0 + size: 995992 + timestamp: 1763655708300 +- conda: https://conda.anaconda.org/conda-forge/win-64/pixman-0.46.4-h5112557_3.conda + sha256: cad8b94c2b00264a15d469eed6dc53aac1c59c6d46f27ad1d91bfaf227cf136a + md5: 27c5be39d9e4d25fe85b89a069360d1e + depends: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - pixman >=0.46.4,<1.0a0 + size: 257473 + timestamp: 1786106677325 +- conda: https://conda.anaconda.org/conda-forge/win-64/psutil-7.2.2-py312he5662c2_0.conda + sha256: edffc84c001a05b996b5f8607c8164432754e86ec9224e831cd00ebabdec04e7 + md5: a2724c93b745fc7861948eb8b9f6679a + depends: + - python + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - python_abi 3.12.* *_cp312 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/psutil?source=hash-mapping + run_exports: {} + size: 242769 + timestamp: 1769678170631 +- conda: https://conda.anaconda.org/conda-forge/win-64/python-3.12.16-hb12b558_0_cpython.conda + sha256: c51326f96259254d1f977d131b3bd9a366021f4c96cd3724e9c74ec56fc4983e + md5: bff3704491215f1058d97c08f80da001 + depends: + - bzip2 >=1.0.8,<2.0a0 + - libexpat >=2.8.5,<3.0a0 + - libffi >=3.7.0,<3.8.0a0 + - liblzma >=5.8.3,<6.0a0 + - libpython 3.12.16 hfb4101e_0_cpython + - libsqlite >=3.54.1,<4.0a0 + - libzlib >=1.3.2,<2.0a0 + - openssl >=3.5.9,<4.0a0 + - tk >=8.6.13,<8.7.0a0 + - tzdata + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + constrains: + - python_abi 3.12.* *_cp312 + license: Python-2.0 + purls: [] + run_exports: + weak: + - python_abi 3.12.* *_cp312 + noarch: + - python + size: 15868346 + timestamp: 1793014290652 +- conda: https://conda.anaconda.org/conda-forge/win-64/python-3.14.10-h53f6dd8_100_cp314.conda + build_number: 100 + sha256: c9f74f58f15bcd7571869903e43fa1e1bc3b60d9faf959f71979415f360a8281 + md5: 6ec60259155b4f6cab1ab0917040298c + depends: + - bzip2 >=1.0.8,<2.0a0 + - libexpat >=2.8.5,<3.0a0 + - libffi >=3.7.0,<3.8.0a0 + - liblzma >=5.8.3,<6.0a0 + - libmpdec >=4.0.0,<5.0a0 + - libpython 3.14.10 hc6187dd_100_cp314 + - libsqlite >=3.54.1,<4.0a0 + - libzlib >=1.3.2,<2.0a0 + - openssl >=3.5.9,<4.0a0 + - python_abi 3.14.* *_cp314 + - tk >=8.6.13,<8.7.0a0 + - tzdata + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - zstd >=1.5.7,<1.6.0a0 + license: Python-2.0 + purls: [] + run_exports: + weak: + - python_abi 3.14.* *_cp314 + noarch: + - python + size: 18780090 + timestamp: 1793016249254 + python_site_packages_path: Lib/site-packages +- conda: https://conda.anaconda.org/conda-forge/win-64/pywin32-312-py312h829343e_0.conda + sha256: e4560c30234075bf17c641cb651279ff6c6f2bad581dfc37ed780f159909b2d3 + md5: 47f425e058b0a4b66712784a0d24b45d + depends: + - python + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - python_abi 3.12.* *_cp312 + license: PSF-2.0 + license_family: PSF + purls: + - pkg:pypi/pywin32?source=hash-mapping + run_exports: {} + size: 4459779 + timestamp: 1781362887119 +- conda: https://conda.anaconda.org/conda-forge/win-64/pyyaml-6.0.3-py312h05f76fc_1.conda + sha256: 1cab6cbd6042b2a1d8ee4d6b4ec7f36637a41f57d2f5c5cf0c12b7c4ce6a62f6 + md5: 9f6ebef672522cb9d9a6257215ca5743 + depends: + - python >=3.12,<3.13.0a0 + - python_abi 3.12.* *_cp312 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - yaml >=0.2.5,<0.3.0a0 + license: MIT + license_family: MIT + purls: + - pkg:pypi/pyyaml?source=hash-mapping + run_exports: {} + size: 179738 + timestamp: 1770223468771 +- conda: https://conda.anaconda.org/conda-forge/win-64/pyzmq-27.1.0-py312h343a6d4_3.conda + noarch: python + sha256: d7e65c44ea8a92f80cc0e424b4b7dbe63b8a9ec04ea774b7d4f7aed4c34cce4c + md5: ebbda9a4e5161d6e1f98146ad057dc10 + depends: + - python + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - _python_abi3_support 1.* + - cpython >=3.12 + - zeromq >=4.3.5,<4.3.6.0a0 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/pyzmq?source=hash-mapping + run_exports: {} + size: 182831 + timestamp: 1779483925948 +- conda: https://conda.anaconda.org/conda-forge/win-64/rpds-py-2026.6.3-py312hd944d65_0.conda + sha256: 8df011d21a56a4fb9aa0d5b27c2d0138058a4d82af532723e1002a643c02dead + md5: 4a097aa0b62666ceb97a5ed5b9345131 + depends: + - python + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - python_abi 3.12.* *_cp312 + license: MIT + license_family: MIT + purls: + - pkg:pypi/rpds-py?source=hash-mapping + run_exports: {} + size: 217956 + timestamp: 1782831653430 +- conda: https://conda.anaconda.org/conda-forge/win-64/ruamel.yaml.clib-0.2.15-py312he5662c2_1.conda + sha256: a28bd33ef3380c44632d6ead75a6ec170e135f18941f4b1d77f1cc1b24c1dc02 + md5: cc0977464335ea5c2e5ee3d00458e0c2 + depends: + - python + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - python_abi 3.12.* *_cp312 + license: MIT + license_family: MIT + purls: + - pkg:pypi/ruamel-yaml-clib?source=hash-mapping + run_exports: {} + size: 105961 + timestamp: 1766159551536 +- conda: https://conda.anaconda.org/conda-forge/win-64/scipy-1.18.0-py312h9b3c559_0.conda + sha256: 68e7c49be1e409ed2ac44f2977581d58a9a4d12e6724a4a5c5470348e5e40f34 + md5: e1fee578f6c533ff532693143919afde + depends: + - libblas >=3.9.0,<4.0a0 + - libcblas >=3.9.0,<4.0a0 + - liblapack >=3.9.0,<4.0a0 + - numpy <2.7 + - numpy >=1.23,<3 + - numpy >=2.0.0 + - python >=3.12,<3.13.0a0 + - python_abi 3.12.* *_cp312 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/scipy?source=hash-mapping + run_exports: {} + size: 15077907 + timestamp: 1781914327034 +- conda: https://conda.anaconda.org/conda-forge/win-64/sdl2-2.32.56-h5112557_0.conda + sha256: d17da21386bdbf32bce5daba5142916feb95eed63ef92b285808c765705bbfd2 + md5: 4cffbfebb6614a1bff3fc666527c25c7 + depends: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - sdl3 >=3.2.22,<4.0a0 + license: Zlib + purls: [] + run_exports: + weak: + - sdl2 >=2.32.56,<3.0a0 + size: 572101 + timestamp: 1757842925694 +- conda: https://conda.anaconda.org/conda-forge/win-64/sdl3-3.4.14-h5112557_0.conda + sha256: bb70cacf72c45481ebe534d49c8c0b0ad5f72afa69d21ff741186db19f67f4b9 + md5: a9448d016627e0ff20e20fd6bbe7a928 + depends: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - libvulkan-loader >=1.4.357.0,<2.0a0 + - libusb >=1.0.29,<2.0a0 + license: Zlib + purls: [] + run_exports: + weak: + - sdl3 >=3.4.14,<4.0a0 + size: 1680176 + timestamp: 1785816137266 +- conda: https://conda.anaconda.org/conda-forge/win-64/sqlalchemy-2.0.52-py312he5662c2_0.conda + sha256: 5688b521af1ba1241a821f54ecb0eabd75946f7317e18498655a695ce030a8ed + md5: 451f7566472a964ea24b86cffe8c1038 + depends: + - python + - greenlet !=0.4.17 + - typing-extensions >=4.6.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - python_abi 3.12.* *_cp312 + license: MIT + license_family: MIT + purls: + - pkg:pypi/sqlalchemy?source=hash-mapping + run_exports: {} + size: 3679537 + timestamp: 1786535215569 +- conda: https://conda.anaconda.org/conda-forge/win-64/svt-av1-4.2.0-hac47afa_0.conda + sha256: 6dc6ed0e651e99d03ae25b6a358064247c96b1cb436fdbf973ab25c1c6aedcd4 + md5: c49fb5bcbd2f2537875e4b2f62c0de3b + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: BSD-2-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - svt-av1 >=4.2.0,<4.2.1.0a0 + size: 1833926 + timestamp: 1784070033860 +- conda: https://conda.anaconda.org/conda-forge/win-64/tbb-2023.0.0-hd3d4ead_2.conda + sha256: 8a4053839b8e997a5965e2dff7d6cf3c77be62d82c0e48c8a04a5ed2d2e73035 + md5: 8ee01a693aecff5432069eaaf1183c45 + depends: + - libhwloc >=2.13.0,<2.13.1.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: Apache-2.0 + license_family: APACHE + purls: [] + run_exports: {} + size: 156515 + timestamp: 1778673901757 +- conda: https://conda.anaconda.org/conda-forge/win-64/tk-8.6.13-h967ab96_3.conda + sha256: 13fa29257d43f8e630a1e591ed77fae9bbbb236b011432f01e2034cf36e6bf03 + md5: aaf79e2af50a151fb5b5a3e3f38b7a69 + depends: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + license: TCL + purls: [] + run_exports: + weak: + - tk >=8.6.13,<8.7.0a0 + size: 3782314 + timestamp: 1784229072899 +- conda: https://conda.anaconda.org/conda-forge/win-64/tornado-6.5.8-py312he06e257_0.conda + sha256: b7efb0de7b09e7333c11d46e04eb9a68f5c72a916e440fc451664bc3457900d3 + md5: 9104ee965ddb1d19ca60a5116582ce55 + depends: + - python >=3.12,<3.13.0a0 + - python_abi 3.12.* *_cp312 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: Apache-2.0 + license_family: Apache + purls: + - pkg:pypi/tornado?source=hash-mapping + run_exports: {} + size: 869273 + timestamp: 1786226848377 +- conda: https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0.conda + sha256: 3005729dce6f3d3f5ec91dfc49fc75a0095f9cd23bab49efb899657297ac91a5 + md5: 71b24316859acd00bdb8b38f5e2ce328 + constrains: + - vc14_runtime >=14.29.30037 + - vs2015_runtime >=14.29.30037 + license: LicenseRef-MicrosoftWindowsSDK10 + purls: [] + run_exports: {} + size: 694692 + timestamp: 1756385147981 +- conda: https://conda.anaconda.org/conda-forge/win-64/uv-0.13.5-hf7a7c96_0.conda + sha256: c9fb87a2ab0af5834973ae2abccbabfd42fbc69dc6ed3ab71c6f221a57b32724 + md5: 616630f7ae33e7e1dd4794f5932032d4 + depends: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - zstd >=1.5.7,<1.6.0a0 + license: Apache-2.0 OR MIT + run_exports: {} + size: 13387537 + timestamp: 1792672517235 +- conda: https://conda.anaconda.org/conda-forge/win-64/vc-14.5-ha367084_41.conda + sha256: 35444c55a92e2f7f7ba26bc70f81e56e52344f7d064c0fd4b40a46a58517b79c + md5: aa805b5522c2a98fa286e551a1f48546 + depends: + - vc14_runtime >=14.51.36247 + track_features: + - vc14 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: {} + size: 21383 + timestamp: 1785359368566 +- conda: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.51.36247-habf1de7_41.conda + sha256: 4e4cb599cdc41bf2109d1464c127b5bcbddf548ce3e322e612afb691338b48f8 + md5: ac5333bb3d429361f23adf704cc49a78 + depends: + - ucrt >=10.0.20348.0 + - vcomp14 14.51.36247 habf1de7_41 + constrains: + - vs2015_runtime 14.51.36247.* *_41 + license: LicenseRef-MicrosoftVisualCpp2015-2022Runtime + license_family: Proprietary + purls: [] + run_exports: {} + size: 767955 + timestamp: 1785359364369 +- conda: https://conda.anaconda.org/conda-forge/win-64/vcomp14-14.51.36247-habf1de7_41.conda + sha256: 731e043390c9457299484d39e427221fc868a9249540a498a5a4f6456c7744d1 + md5: 350bb67a5c8e5f1c53347ac544ab6600 + depends: + - ucrt >=10.0.20348.0 + constrains: + - vs2015_runtime 14.51.36247.* *_41 + license: LicenseRef-MicrosoftVisualCpp2015-2022Runtime + license_family: Proprietary + purls: [] + run_exports: + strong: + - vcomp14 >=14.51.36247 + size: 155910 + timestamp: 1785359349999 +- conda: https://conda.anaconda.org/conda-forge/win-64/vs2015_runtime-14.51.36247-h633cb9f_41.conda + sha256: ee0ae67c96b80b9fdb50c3f617c6329dbcdf1562d0267604f6c0e24f494431d6 + md5: 21504569fa34b5d3a67760219e3ff1cc + depends: + - vc14_runtime >=14.51.36247 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: {} + size: 21386 + timestamp: 1785359368990 +- conda: https://conda.anaconda.org/conda-forge/win-64/vs2022_win-64-19.44.35207-ha74f236_41.conda + sha256: 9d7d1b43cf4af5a8e8b1646175c9f899ffbcab189a33ac41127a96e7bcf41af0 + md5: 04190e0ebd886433300ce9343ee98942 + depends: + - vswhere + constrains: + - vs_win-64 2022.14 + track_features: + - vc14 + license: BSD-3-Clause + license_family: BSD + run_exports: + strong: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + size: 25462 + timestamp: 1785358620723 +- conda: https://conda.anaconda.org/conda-forge/win-64/x264-1!164.3095-h8ffe710_2.tar.bz2 + sha256: 97166b318f8c68ffe4d50b2f4bd36e415219eeaef233e7d41c54244dc6108249 + md5: 19e39905184459760ccb8cf5c75f148b + depends: + - vc >=14.1,<15 + - vs2015_runtime >=14.16.27033 + license: GPL-2.0-or-later + license_family: GPL + purls: [] + run_exports: + weak: + - x264 >=1!164.3095,<1!165 + size: 1041889 + timestamp: 1660323726084 +- conda: https://conda.anaconda.org/conda-forge/win-64/x265-3.5-h2d74725_3.tar.bz2 + sha256: 02b9874049112f2b7335c9a3e880ac05d99a08d9a98160c5a98898b2b3ac42b2 + md5: ca7129a334198f08347fb19ac98a2de9 + depends: + - vc >=14.1,<15 + - vs2015_runtime >=14.16.27033 + license: GPL-2.0-or-later + license_family: GPL + purls: [] + run_exports: + weak: + - x265 >=3.5,<3.6.0a0 + size: 5517425 + timestamp: 1646611941216 +- conda: https://conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3.conda + sha256: 80ee68c1e7683a35295232ea79bcc87279d31ffeda04a1665efdb43cbd50a309 + md5: 433699cba6602098ae8957a323da2664 + depends: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + license: MIT + license_family: MIT + purls: [] + run_exports: + weak: + - yaml >=0.2.5,<0.3.0a0 + size: 63944 + timestamp: 1753484092156 +- conda: https://conda.anaconda.org/conda-forge/win-64/zeromq-4.3.5-h3a581c9_11.conda + sha256: c3e279cb309b153152fcdd6ee6d039ad996d563c849f06be39d85b8e3351df25 + md5: f016c0c5f9c01549b259146614786192 + depends: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - libsodium >=1.0.22,<1.0.23.0a0 + - krb5 >=1.22.2,<1.23.0a0 + license: MPL-2.0 + license_family: MOZILLA + purls: [] + run_exports: + weak: + - zeromq >=4.3.5,<4.3.6.0a0 + size: 265717 + timestamp: 1779124031378 +- conda: https://conda.anaconda.org/conda-forge/win-64/zlib-1.3.2-hfd05255_3.conda + sha256: 5a0b55df66ff07b4342e04967cef69f8bf348f6a0fb1cc1eca741c7b015dfe77 + md5: 945092a9bc1d0f250f7d5ecf51ecd471 + depends: + - libzlib 1.3.2 hfd05255_3 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: Zlib + license_family: Other + purls: [] + run_exports: + weak: + - libzlib >=1.3.2,<2.0a0 + size: 851288 + timestamp: 1785276674755 +- conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda + sha256: ca7daae4f218a11fab82cc2857f0ea518ec3f46acec60490485347a4c22c6b3e + md5: e4ac308c39d6d0e131154976da67cf3b + depends: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - libzlib >=1.3.2,<2.0a0 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: + weak: + - zstd >=1.5.7,<1.6.0a0 + size: 387535 + timestamp: 1786599623274 +- conda_source: cuda-bindings[38e9f1b8] @ . + variants: + c_stdlib: sysroot + c_stdlib_version: '2.28' + python: 3.14.* + target_platform: linux-aarch64 + depends: + - python + - python >=3.11 + - cuda-version 12.* + - cuda-pathfinder + - libnvjitlink + - cuda-nvrtc + - cuda-nvrtc >=12.9.86,<13.0a0 + - cuda-nvvm + - libnvfatbin + - libcufile + - libcufile >=1.14.1.1,<2.0a0 + - libgcc >=16 + - libgcc >=16 + - libstdcxx >=16 + - __glibc >=2.28,<3.0.a0 + - python_abi 3.14.* *_cp314 + license: Apache-2.0 + source_depends: + cuda-pathfinder: + path: ../cuda_pathfinder + build_packages: + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/binutils_impl_linux-aarch64-2.46.1-default_h5f4c503_102.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/binutils_linux-aarch64-2.46.1-default_hf1166c9_102.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gcc_impl_linux-aarch64-16.1.0-h998876f_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gcc_linux-aarch64-16.1.0-hed00b63_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gxx_impl_linux-aarch64-16.1.0-hd5c6868_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gxx_linux-aarch64-16.1.0-hdc5d2df_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ld_impl_linux-aarch64-2.46.1-default_h1979696_102.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgcc-16.1.0-h205dda4_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgomp-16.1.0-h8acb6b2_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsanitizer-16.1.0-h2510bd8_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libstdcxx-16.1.0-hef695bb_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libzlib-1.3.2-hdc9db2a_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/zstd-1.5.7-h9d15635_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/kernel-headers_linux-aarch64-4.18.0-h05a177a_9.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libgcc-devel_linux-aarch64-16.1.0-hd673532_102.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libstdcxx-devel_linux-aarch64-16.1.0-h2445e1f_102.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sysroot_linux-aarch64-2.28-h585391f_9.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + host_packages: + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/bzip2-1.0.8-h4777abc_10.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-12.9.86-h8f3c8d4_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-dev-12.9.86-h8f3c8d4_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-12.9.86-he9431aa_106.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-12.9.86-h7b14b0b_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-12.9.86-h7b14b0b_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-12.9.79-h16bee8c_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cython-3.2.9-py314hc6b4731_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ld_impl_linux-aarch64-2.46.1-default_h1979696_102.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcap-2.78-hfcc8634_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.14.1.1-had8bf56_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-dev-1.14.1.1-he38c790_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libexpat-2.9.0-h4154aff_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libffi-3.7.0-h376a255_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgcc-16.1.0-h205dda4_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgomp-16.1.0-h8acb6b2_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/liblzma-5.8.3-he30d5cf_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libmpdec-4.0.0-he30d5cf_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnl-3.11.0-he30d5cf_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libpython-3.14.10-h150030a_100_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsqlite-3.54.1-hd26f1b6_101.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libstdcxx-16.1.0-hef695bb_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsystemd0-257.13-hfcc8634_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libudev1-257.13-hfcc8634_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libuuid-2.42.4-hd6fdeab_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libzlib-1.3.2-hdc9db2a_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ncurses-6.6-h2b6f883_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/openssl-3.6.3-h546c87b_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/python-3.14.10-hbec3b18_100_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/rdma-core-63.0-h1f0f388_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/readline-8.3-ha7194a6_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/tk-8.6.13-noxft_h5cf4473_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/uv-0.13.5-h779c035_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/zstd-1.5.7-h9d15635_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/arm-variant-1.2.0-sbsa.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-hbd8a1cb_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-12.9.27-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-12.9.86-h579c4fd_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-12.9.86-h579c4fd_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-12.9-h4f385c5_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pyclibrary-0.2.2-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pyparsing-3.3.2-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-8_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.0.0-pyh332efcf_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-scm-10.2.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.4.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.3.1-pyhcf101f3_0.conda + - conda_source: cuda-pathfinder[60c6ddae] @ ../cuda_pathfinder +- conda_source: cuda-bindings[50d85498] @ . + variants: + c_stdlib: sysroot + c_stdlib_version: '2.28' + python: 3.14.* + target_platform: linux-64 + depends: + - python + - python >=3.11 + - cuda-version 12.* + - cuda-pathfinder + - libnvjitlink + - cuda-nvrtc + - cuda-nvrtc >=12.9.86,<13.0a0 + - cuda-nvvm + - libnvfatbin + - libcufile + - libcufile >=1.14.1.1,<2.0a0 + - libgcc >=16 + - libgcc >=16 + - libstdcxx >=16 + - __glibc >=2.28,<3.0.a0 + - python_abi 3.14.* *_cp314 + license: Apache-2.0 + source_depends: + cuda-pathfinder: + path: ../cuda_pathfinder + build_packages: + - conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/binutils_impl_linux-64-2.46.1-default_hfdba357_102.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/binutils_linux-64-2.46.1-default_h4852527_102.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/gcc_impl_linux-64-16.1.0-hceef32b_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/gcc_linux-64-16.1.0-h5fd2508_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/gxx_impl_linux-64-16.1.0-he33a5f8_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/gxx_linux-64-16.1.0-h63736ef_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.46.1-default_hbd61a6d_102.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgcc-16.1.0-ha9f2e26_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgomp-16.1.0-he0feb66_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libsanitizer-16.1.0-hf2715c6_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-16.1.0-h934c35e_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libzlib-1.3.2-h25fd6f3_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/zstd-1.5.7-hb78ec9c_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/kernel-headers_linux-64-4.18.0-he073ed8_9.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libgcc-devel_linux-64-16.1.0-h59071f9_102.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libstdcxx-devel_linux-64-16.1.0-h41cdd0d_102.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sysroot_linux-64-2.28-h4ee821c_9.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + host_packages: + - conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-hda65f42_10.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-12.9.79-h5888daf_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-12.9.79-h5888daf_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-12.9.79-h5888daf_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-12.9.86-hecca717_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-dev-12.9.86-hecca717_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-12.9.86-h69a702a_6.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-12.9.86-h4bc722e_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-12.9.86-h4bc722e_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-profiler-api-12.9.79-h7938cbb_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cython-3.2.9-py314h1807b08_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.46.1-default_hbd61a6d_102.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcap-2.78-h084b8d7_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.14.1.1-hbc026e6_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-dev-1.14.1.1-hecca717_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.9.0-hd2095e1_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.7.0-h3435931_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgcc-16.1.0-ha9f2e26_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgomp-16.1.0-he0feb66_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/liblzma-5.8.3-hb03c661_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libmpdec-4.0.0-hb03c661_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnl-3.11.0-hb03c661_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libpython-3.14.10-hd51c5da_100_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libsqlite-3.54.1-h0737f62_101.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-16.1.0-h934c35e_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libsystemd0-257.13-h084b8d7_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libudev1-257.13-h084b8d7_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libuuid-2.42.4-hcfc3c73_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libzlib-1.3.2-h25fd6f3_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/ncurses-6.6-hdb14827_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.6.3-h35e630c_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/python-3.14.10-hcd007b5_100_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/rdma-core-63.0-h192683f_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/readline-8.3-hd6e31c0_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.13-noxft_hd70dff1_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/uv-0.13.5-h535ca38_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/zstd-1.5.7-hb78ec9c_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-hbd8a1cb_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-12.9.27-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-12.9.86-ha770c72_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-12.9.79-h3f2d84a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-12.9.79-h3f2d84a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-12.9.79-h3f2d84a_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-12.9.86-ha770c72_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-12.9-h4f385c5_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pyclibrary-0.2.2-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pyparsing-3.3.2-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-8_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.0.0-pyh332efcf_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-scm-10.2.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.4.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.3.1-pyhcf101f3_0.conda + - conda_source: cuda-pathfinder[ab855723] @ ../cuda_pathfinder +- conda_source: cuda-bindings[695c7ddf] @ . + variants: + c_compiler: vs2022 + cxx_compiler: vs2022 + python: 3.14.* + target_platform: win-64 + depends: + - python + - python >=3.11 + - cuda-version 12.* + - cuda-pathfinder + - libnvjitlink + - cuda-nvrtc + - cuda-nvrtc >=12.9.86,<13.0a0 + - cuda-nvvm + - libnvfatbin + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - python_abi 3.14.* *_cp314 + license: Apache-2.0 + source_depends: + cuda-pathfinder: + path: ../cuda_pathfinder + build_packages: + - conda: https://conda.anaconda.org/conda-forge/noarch/vswhere-3.1.7-h40126e0_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vs2022_win-64-19.44.35207-ha74f236_41.conda + host_packages: + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-h4c7d964_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-12.9.27-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-12.9.86-h57928b3_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-12.9.86-h57928b3_2.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-12.9-h4f385c5_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pyclibrary-0.2.2-pyhd8ed1ab_1.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pyparsing-3.3.2-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-8_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.0.0-pyh332efcf_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-scm-10.2.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.4.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.3.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h0ad9c76_10.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-dev-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-static-12.9.79-he0c23c2_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-12.9.86-hac47afa_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-dev-12.9.86-hac47afa_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-12.9.86-h719f0c7_6.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-12.9.86-h2466b09_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-12.9.86-h2466b09_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-profiler-api-12.9.79-h57928b3_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cython-3.2.9-py314h344ed54_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libexpat-2.9.0-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libffi-3.7.0-h3d046cb_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/liblzma-5.8.3-hfd05255_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libmpdec-4.0.0-hfd05255_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libpython-3.14.10-hc6187dd_100_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libsqlite-3.54.1-hf5d6505_101.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libzlib-1.3.2-hfd05255_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/openssl-3.6.3-hf411b9b_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/python-3.14.10-h53f6dd8_100_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/tk-8.6.13-h967ab96_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/uv-0.13.5-hf7a7c96_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vc-14.5-ha367084_41.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.51.36247-habf1de7_41.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vcomp14-14.51.36247-habf1de7_41.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda + - conda_source: cuda-pathfinder[89b6d34b] @ ../cuda_pathfinder +- conda_source: cuda-pathfinder[60c6ddae] @ ../cuda_pathfinder + variants: + target_platform: noarch + depends: + - python >=3.11 + - python * + license: Apache-2.0 + host_packages: + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/bzip2-1.0.8-h4777abc_10.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/icu-78.3-py311h3512406_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ld_impl_linux-aarch64-2.46.1-default_h1979696_102.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libexpat-2.9.0-h4154aff_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libffi-3.7.0-h376a255_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgcc-16.1.0-h205dda4_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgomp-16.1.0-h8acb6b2_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/liblzma-5.8.3-he30d5cf_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libmpdec-4.0.0-he30d5cf_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsqlite-3.54.1-h399dd60_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libstdcxx-16.1.0-hef695bb_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libuuid-2.42.4-hd6fdeab_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libzlib-1.3.2-hdc9db2a_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ncurses-6.6-h2b6f883_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/openssl-3.6.3-h546c87b_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/python-3.14.10-hbec3b18_100_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/readline-8.3-ha7194a6_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/tk-8.6.13-noxft_h5cf4473_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/uv-0.13.5-h779c035_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/zstd-1.5.7-h9d15635_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-hbd8a1cb_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-8_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.0.0-pyh332efcf_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-scm-10.2.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.4.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.3.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libpython-3.14.10-h150030a_100_cp314.conda +- conda_source: cuda-pathfinder[89b6d34b] @ ../cuda_pathfinder + variants: + target_platform: noarch + depends: + - python >=3.11 + - python * + license: Apache-2.0 + host_packages: + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-h4c7d964_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-8_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.0.0-pyh332efcf_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-scm-10.2.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.4.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.3.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h0ad9c76_10.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libexpat-2.9.0-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libffi-3.7.0-h3d046cb_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/liblzma-5.8.3-hfd05255_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libmpdec-4.0.0-hfd05255_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libsqlite-3.54.1-hf5d6505_101.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libzlib-1.3.2-hfd05255_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/openssl-3.6.3-hf411b9b_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/python-3.14.10-h53f6dd8_100_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/tk-8.6.13-h967ab96_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/uv-0.13.5-hf7a7c96_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vc-14.5-ha367084_41.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.51.36247-habf1de7_41.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vcomp14-14.51.36247-habf1de7_41.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libpython-3.14.10-hc6187dd_100_cp314.conda +- conda_source: cuda-pathfinder[ab855723] @ ../cuda_pathfinder + variants: + target_platform: noarch + depends: + - python >=3.11 + - python * + license: Apache-2.0 + host_packages: + - conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-hda65f42_10.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/icu-78.3-py310h44b86e0_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.46.1-default_hbd61a6d_102.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.9.0-hd2095e1_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.7.0-h3435931_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgcc-16.1.0-ha9f2e26_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgomp-16.1.0-he0feb66_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/liblzma-5.8.3-hb03c661_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libmpdec-4.0.0-hb03c661_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libsqlite-3.54.1-h13e7031_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-16.1.0-h934c35e_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libuuid-2.42.4-hcfc3c73_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libzlib-1.3.2-h25fd6f3_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/ncurses-6.6-hdb14827_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.6.3-h35e630c_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/python-3.14.10-hcd007b5_100_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/readline-8.3-hd6e31c0_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.13-noxft_hd70dff1_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/uv-0.13.5-h535ca38_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/zstd-1.5.7-hb78ec9c_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-hbd8a1cb_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-8_cp314.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.0.0-pyh332efcf_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-scm-10.2.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.4.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.3.1-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libpython-3.14.10-hd51c5da_100_cp314.conda +- pypi: ../cuda_python_test_helpers + name: cuda-python-test-helpers + requires_dist: + - packaging>=24 + requires_python: '>=3.11' +- pypi: https://files.pythonhosted.org/packages/8c/79/017fab2f7167a9a9795665f894d04f77aafceca80821b51589bb4b23ff5c/nvidia_sphinx_theme-0.0.9.post1-py3-none-any.whl + name: nvidia-sphinx-theme + version: 0.0.9.post1 + sha256: 21ca60206dff2f380d7783d64bbaf71a5b9cacae53c7d0686f089c16b5a3d45a + requires_dist: + - sphinx>=7.1 + - pydata-sphinx-theme>=0.15 + requires_python: '>=3.10' diff --git a/cuda_bindings_12/pixi.toml b/cuda_bindings_12/pixi.toml new file mode 100644 index 000000000000..7ebdb9db738d --- /dev/null +++ b/cuda_bindings_12/pixi.toml @@ -0,0 +1,172 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + +[workspace] +channels = ["conda-forge"] +platforms = ["linux-64", "linux-aarch64", "win-64"] +preview = ["pixi-build"] + +[workspace.build-variants] +python = ["3.11.*", "3.12.*", "3.13.*", "3.14.*"] +cuda-version = ["12.*"] + +[feature.test.dependencies] +cuda-bindings = { path = "." } +pytest = ">=9.1.0" +pytest-benchmark = ">=3.4.1" +pytest-randomly = "*" +pytest-repeat = "*" +pyglet = ">=2.1.9" +numpy = "*" + +[feature.test.pypi-dependencies] +cuda-python-test-helpers = { path = "../cuda_python_test_helpers", editable = true } + +# Keep this dependency set aligned with cuda_python/docs/environment-docs.yml. +[feature.docs.dependencies] +cuda-bindings = "12.9.*" +python = "3.12.*" +cython = ">=3.2.5,<3.3" +enum_tools = "*" +furo = "*" +make = "*" +myst-nb = "*" +myst-parser = "*" +numpy = "*" +numpydoc = "*" +pip = "*" +pydata-sphinx-theme = "*" +pytest = "*" +scipy = "*" +sphinx = "<8.2.0" +sphinx-copybutton = "*" +sphinx-toolbox = "*" + +[feature.cython-tests.dependencies] +cython = ">=3.2.5,<3.3" # for tests that exercise APIs from cython +setuptools = "*" # for distutils +gxx = "*" # to compile the generated code +# These are necessary because running the Cython tests requires compiling +# after the package build and the tests transitively depend on CUDA headers. +cuda-cudart-dev = "*" +cuda-profiler-api = "*" + +[feature.cython-tests.target.linux-64.dependencies] +cuda-crt-dev_linux-64 = "*" + +[feature.cython-tests.target.linux-aarch64.dependencies] +cuda-crt-dev_linux-aarch64 = "*" + +[feature.cython-tests.target.win-64.dependencies] +cuda-crt-dev_win-64 = "*" + +# For finding headers when building the Cython tests. +[feature.cython-tests.target.linux-64.activation.env] +CUDA_HOME = "$CONDA_PREFIX/targets/x86_64-linux" + +[feature.cython-tests.target.linux-aarch64.activation.env] +CUDA_HOME = "$CONDA_PREFIX/targets/sbsa-linux" + +[feature.cython-tests.target.win-64.activation.env] +CUDA_HOME = "$CONDA_PREFIX/Library" + +[feature.cu12.dependencies] +cuda-version = "12.*" + +[environments] +default = { features = ["cu12", "test", "cython-tests"], solve-group = "default" } +cu12 = { features = ["cu12", "test", "cython-tests"], solve-group = "cu12" } +docs = { features = ["cu12", "docs"], solve-group = "docs" } + +[feature.docs.pypi-dependencies] +nvidia-sphinx-theme = "*" + +[package] +name = "cuda-bindings" +version = "12.9.11.dev0" + +[package.build] +backend = { name = "pixi-build-python", version = "*" } + +[package.build.config] +compilers = ["c", "cxx"] + +[package.build.target.linux-64.config.env] +CUDA_HOME = "$PREFIX/targets/x86_64-linux" +CUDA_PYTHON_PARALLEL_LEVEL = "$(nproc)" + +[package.build.target.linux-aarch64.config.env] +CUDA_HOME = "$PREFIX/targets/sbsa-linux" +CUDA_PYTHON_PARALLEL_LEVEL = "$(nproc)" + +[package.build.target.win-64.config.env] +CUDA_HOME = "$PREFIX/Library" + +[package.host-dependencies] +python = "*" +cuda-version = "12.*" +setuptools = ">=80" +setuptools-scm = ">=8,!=10.1" +cython = ">=3.2.5,<3.3" +pyclibrary = ">=0.1.7" +cuda-pathfinder = { path = "../cuda_pathfinder" } +cuda-cudart-static = "*" +cuda-nvrtc-dev = "*" +cuda-profiler-api = "*" +cuda-nvvm = "*" + +[package.target.linux.host-dependencies] +libcufile-dev = "*" + +[package.target.linux-64.host-dependencies] +cuda-crt-dev_linux-64 = "*" + +[package.target.linux-aarch64.host-dependencies] +cuda-crt-dev_linux-aarch64 = "*" + +[package.target.win-64.host-dependencies] +cuda-crt-dev_win-64 = "*" + +[package.run-dependencies] +python = "*" +cuda-version = "12.*" +cuda-pathfinder = { path = "../cuda_pathfinder" } +libnvjitlink = "*" +cuda-nvrtc = "*" +cuda-nvvm = "*" +libnvfatbin = "*" + +[package.target.linux.run-dependencies] +libcufile = "*" + +[target.linux.tasks.build-cython-tests] +cmd = ["$PIXI_PROJECT_ROOT/tests/cython/build_tests.sh"] + +[target.win-64.tasks.build-cython-tests] +cmd = ["$PIXI_PROJECT_ROOT/tests/cython/build_tests.bat"] + +[target.linux.tasks.test] +cmd = [ + "pytest", + "$PIXI_PROJECT_ROOT", + "--override-ini", + "norecursedirs=examples", # include cython tests (ignore by default config) +] +depends-on = [{ task = "build-cython-tests" }] + +[target.linux.tasks.build-docs] +cmd = [ + "bash", + "-lc", + "rm -rf \"$PIXI_PROJECT_ROOT/docs/build\" \"$PIXI_PROJECT_ROOT/docs/source/generated\" && cd \"$PIXI_PROJECT_ROOT/docs\" && ./build_docs.sh", +] + +[target.win-64.tasks.test] +cmd = [ + "pytest", + "$PIXI_PROJECT_ROOT", + "--override-ini", + "norecursedirs=examples", # include cython tests (ignore by default config) +] +depends-on = [{ task = "build-cython-tests" }] diff --git a/cuda_bindings_12/pyproject.toml b/cuda_bindings_12/pyproject.toml index bed6398769ff..97f24d473b19 100644 --- a/cuda_bindings_12/pyproject.toml +++ b/cuda_bindings_12/pyproject.toml @@ -2,10 +2,11 @@ # SPDX-License-Identifier: Apache-2.0 [build-system] +# Keep the external tools in sync with dependency-groups.build. requires = [ "setuptools>=80.0.0", - "setuptools-scm[simple]>=8", - "cython>=3.2,<3.3", + "setuptools-scm[simple]>=8,!=10.1", + "cython>=3.2.5,<3.3", "pyclibrary>=0.1.7" ] build-backend = "build_hooks" @@ -19,14 +20,13 @@ license = "Apache-2.0" license-files = ["LICENSE"] classifiers = [ "Intended Audience :: Developers", - "Topic :: Database", "Topic :: Scientific/Engineering", "Programming Language :: Python", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: 3.15", "Environment :: GPU :: NVIDIA CUDA", ] dynamic = [ @@ -36,6 +36,7 @@ dynamic = [ dependencies = [ "cuda-pathfinder ~=1.1", ] +requires-python = ">=3.11" [project.optional-dependencies] all = [ @@ -46,14 +47,30 @@ all = [ "nvidia-cufile-cu12; sys_platform == 'linux'", ] + +[dependency-groups] +# Keep build in sync with build-system.requires. +build = [ + "setuptools>=80.0.0", + "setuptools-scm[simple]>=8,!=10.1", + "cython>=3.2.5,<3.3", + "pyclibrary>=0.1.7", +] test = [ - "cython>=3.2,<3.3", - "setuptools>=77.0.0", + "cython>=3.2.5,<3.3", + "setuptools>=80.0.0", "numpy>=1.21.1", - "pytest>=6.2.4", - "pytest-benchmark>=3.4.1", - "pytest-subtests>=0.11.0", - "pyglet>=2.1.9" + "pytest==9.1.0", + "pytest-benchmark==5.2.3", + "pytest-repeat==0.9.4", + "pytest-randomly==4.1.0", + # CI: one GitHub annotation per failed test; inert outside GitHub Actions. + "pytest-github-actions-annotate-failures==0.4.2", + "pyglet==2.1.14", + "packaging>=24", +] +test-ft = [ + "pytest-run-parallel==0.10.0", ] [project.urls] @@ -126,6 +143,4 @@ exclude = ["cuda/bindings/_version.py"] [tool.setuptools_scm] root = ".." version_file = "cuda/bindings/_version.py" -# We deliberately do not want to include the version suffixes (a/b/rc) in cuda-bindings versioning -tag_regex = "^(?Pv\\d+\\.\\d+\\.\\d+)" -git_describe_command = ["git", "describe", "--dirty", "--tags", "--long", "--match", "v*[0-9]*"] +git_describe_command = ["git", "describe", "--dirty", "--tags", "--long", "--match", "v12.*"] diff --git a/cuda_bindings_12/tests/nvml/test_cuda.py b/cuda_bindings_12/tests/nvml/test_cuda.py index d05e2634a126..aaab23e55fe7 100644 --- a/cuda_bindings_12/tests/nvml/test_cuda.py +++ b/cuda_bindings_12/tests/nvml/test_cuda.py @@ -1,6 +1,8 @@ # SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 +import pytest + import cuda.bindings.driver as cuda from cuda.bindings import nvml @@ -15,10 +17,15 @@ def get_nvml_device_names(): for idx in range(num_devices): handle = nvml.device_get_handle_by_index_v2(idx) name = nvml.device_get_name(handle) - info = nvml.device_get_pci_info_v3(handle) - assert isinstance(info.bus, int) + try: + info = nvml.device_get_pci_info_v3(handle) + except nvml.NotSupportedError: + bus_id = -1 + else: + bus_id = info.bus + assert isinstance(bus_id, int) assert isinstance(name, str) - result.append({"name": name, "id": info.bus}) + result.append({"name": name, "id": bus_id}) return result @@ -54,4 +61,15 @@ def test_cuda_device_order(): cuda_devices = get_cuda_device_names() nvml_devices = get_nvml_device_names() - assert cuda_devices == nvml_devices, "CUDA and NVML device lists do not match" + for kind in ("Orin", "Thor"): + if any(kind in device["name"] for device in nvml_devices): + pytest.skip(f"Skipping test on {kind}, which has non-standard device naming") + + def compare(cuda_device, nvml_device): + return cuda_device["name"] == nvml_device["name"] and ( + nvml_device["id"] == -1 or cuda_device["id"] == nvml_device["id"] + ) + + assert len(cuda_devices) <= len(nvml_devices) + for cuda_device in cuda_devices: + assert any(compare(cuda_device, nvml_device) for nvml_device in nvml_devices) diff --git a/cuda_bindings_12/tests/nvml/test_init.py b/cuda_bindings_12/tests/nvml/test_init.py index 2be94434591a..fcde20853d70 100644 --- a/cuda_bindings_12/tests/nvml/test_init.py +++ b/cuda_bindings_12/tests/nvml/test_init.py @@ -6,7 +6,15 @@ import pytest -from cuda.bindings import nvml +from cuda.bindings import driver, nvml + + +def _driver_version_at_least_13_4(): + (status,) = driver.cuInit(0) + assert status == driver.CUresult.CUDA_SUCCESS + status, version = driver.cuDriverGetVersion() + assert status == driver.CUresult.CUDA_SUCCESS + return version >= 13040 def assert_nvml_is_initialized(): @@ -36,10 +44,14 @@ def test_devices_are_the_same_architecture(all_devices): @pytest.mark.skipif(sys.platform == "win32", reason="Test not supported on Windows") +@pytest.mark.thread_unsafe(reason="nvml init affects other threads") def test_init_ref_count(): """ Verifies that we can call NVML shutdown and init(2) multiple times, and that ref counting works """ + if _driver_version_at_least_13_4(): + pytest.skip("Init behavior changed in CUDA 13.4") + with pytest.raises(nvml.UninitializedError): nvml.shutdown() diff --git a/cuda_bindings_12/tests/nvml/test_pynvml.py b/cuda_bindings_12/tests/nvml/test_pynvml.py index a96b2c87575f..e3ea533dd834 100644 --- a/cuda_bindings_12/tests/nvml/test_pynvml.py +++ b/cuda_bindings_12/tests/nvml/test_pynvml.py @@ -4,8 +4,6 @@ # A set of tests ported from https://github.com/gpuopenanalytics/pynvml/blob/11.5.3/pynvml/tests/test_nvml.py import os -import time - import pytest from cuda.bindings import nvml @@ -147,22 +145,6 @@ def test_device_get_power_usage(ngpus, handles): assert power_mwatts >= 0.0 -def test_device_get_total_energy_consumption(ngpus, handles): - for i in range(ngpus): - with unsupported_before(handles[i], nvml.DeviceArch.VOLTA): - energy_mjoules1 = nvml.device_get_total_energy_consumption(handles[i]) - - for j in range(10): # idle for 150 ms - time.sleep(0.015) # and check for increase every 15 ms - with unsupported_before(handles[i], nvml.DeviceArch.VOLTA): - energy_mjoules2 = nvml.device_get_total_energy_consumption(handles[i]) - assert energy_mjoules2 >= energy_mjoules1 - if energy_mjoules2 > energy_mjoules1: - break - else: - raise AssertionError("energy did not increase across 150 ms interval") - - # [Skipping] pynvml.nvmlDeviceGetGpuOperationMode # [Skipping] pynvml.nvmlDeviceGetCurrentGpuOperationMode # [Skipping] pynvml.nvmlDeviceGetPendingGpuOperationMode diff --git a/cuda_bindings_12/tests/nvml/util.py b/cuda_bindings_12/tests/nvml/util.py index 038fe58d8be2..06cb1c2277af 100644 --- a/cuda_bindings_12/tests/nvml/util.py +++ b/cuda_bindings_12/tests/nvml/util.py @@ -43,5 +43,5 @@ def supports_ecc(device): def supports_nvlink(device): fields = nvml.FieldValue(1) - fields[0].field_id = nvml.FI.DEV_NVLINK_GET_STATE + fields[0].field_id = nvml.FieldId.DEV_NVLINK_GET_STATE return nvml.device_get_field_values(device, fields)[0].nvml_return == nvml.Return.SUCCESS diff --git a/cuda_bindings_12/tests/pytest.ini b/cuda_bindings_12/tests/pytest.ini index 549228324444..a08f8f0db8b7 100644 --- a/cuda_bindings_12/tests/pytest.ini +++ b/cuda_bindings_12/tests/pytest.ini @@ -4,6 +4,7 @@ [pytest] norecursedirs = cython markers = + thread_unsafe: modifies process-global state and must run without concurrent tests # Keep this authorship marker registry in sync across all pytest config roots. # Search for "agent_authored(model)" before editing. agent_authored(model): agent-authored test not yet materially human-reviewed diff --git a/cuda_bindings_12/tests/test_cuda.py b/cuda_bindings_12/tests/test_cuda.py index a03844a2b84a..57744c95df83 100644 --- a/cuda_bindings_12/tests/test_cuda.py +++ b/cuda_bindings_12/tests/test_cuda.py @@ -610,6 +610,7 @@ def test_cuda_graphMem_attr(): or not supportsCudaAPI("cuCoredumpGetAttributeGlobal"), reason="Coredump API not present", ) +@pytest.mark.thread_unsafe(reason="coredump settings are process-global") def test_cuda_coredump_attr(): (err,) = cuda.cuInit(0) assert err == cuda.CUresult.CUDA_SUCCESS diff --git a/cuda_bindings_12/tests/test_nvjitlink.py b/cuda_bindings_12/tests/test_nvjitlink.py index 19dc040e47d0..bec58b7a0482 100644 --- a/cuda_bindings_12/tests/test_nvjitlink.py +++ b/cuda_bindings_12/tests/test_nvjitlink.py @@ -100,6 +100,13 @@ def test_create_and_destroy(option): nvjitlink.destroy(handle) +@pytest.mark.human_authored +def test_create_and_destroy_bytes_options(): + handle = nvjitlink.create(1, [b"-arch=sm_80"]) + assert handle != 0 + nvjitlink.destroy(handle) + + @pytest.mark.parametrize("option", ARCHITECTURES) def test_complete_empty(option): handle = nvjitlink.create(1, [f"-arch={option}"]) diff --git a/cuda_bindings_12/tests/test_nvvm.py b/cuda_bindings_12/tests/test_nvvm.py index bd6f49f03f1e..3cea5a0f8176 100644 --- a/cuda_bindings_12/tests/test_nvvm.py +++ b/cuda_bindings_12/tests/test_nvvm.py @@ -246,7 +246,7 @@ def test_get_buffer_empty(get_size, get_buffer): assert buffer == b"\x00" -@pytest.mark.parametrize("options", [[], ["-opt=0"], ["-opt=3", "-g"]]) +@pytest.mark.parametrize("options", [[], ["-opt=0"], ["-opt=3", "-g"], [b"-opt=0"]]) def test_compile_program_with_minimal_nvvm_ir(minimal_nvvmir, options): with nvvm_program() as prog: nvvm.add_module_to_program(prog, minimal_nvvmir, len(minimal_nvvmir), "FileNameHere.ll") diff --git a/cuda_bindings_12/tests/test_utils.py b/cuda_bindings_12/tests/test_utils.py index 8904d65d2ed1..33487c7f529c 100644 --- a/cuda_bindings_12/tests/test_utils.py +++ b/cuda_bindings_12/tests/test_utils.py @@ -92,6 +92,27 @@ def test_get_handle_error(target): handle = get_cuda_native_handle(target) +@pytest.mark.agent_authored(model="claude-opus-5") +def test_get_handle_does_not_report_a_registered_type_as_unknown(monkeypatch): + """A KeyError from inside a handle getter is a bug in that getter. + + Reporting it as "Unknown type" is wrong twice over: the type *is* + registered, and `from None` hides the traceback that would say otherwise. + """ + from cuda.bindings.utils import _handle_getters + + class Registered: + pass + + def getter(_obj): + raise KeyError("lookup inside the getter failed") + + monkeypatch.setitem(_handle_getters, Registered, getter) + + with pytest.raises(KeyError, match="lookup inside the getter failed"): + get_cuda_native_handle(Registered()) + + @pytest.mark.parametrize( "module", [ diff --git a/cuda_bindings_13/README.md b/cuda_bindings_13/README.md index 91b38ab885ba..6495f0aa7761 100644 --- a/cuda_bindings_13/README.md +++ b/cuda_bindings_13/README.md @@ -20,7 +20,8 @@ Debuggable builds are not supported on Windows. ## Testing -Testing dependencies can be installed using the `[test]` optional dependency identifier. For example, `pip install -v -e .[test]`. +With pip 25.1 or newer, install testing dependencies using the `test` +dependency group: `python -m pip install -v -e . --group test`. Multiple testing options are available: diff --git a/cuda_core/pixi.toml b/cuda_core/pixi.toml index da1649f41107..b845599c039d 100644 --- a/cuda_core/pixi.toml +++ b/cuda_core/pixi.toml @@ -320,7 +320,7 @@ cmd = ["$PIXI_PROJECT_ROOT/tests/cython/build_tests.bat"] [target.linux.tasks.test] cmd = [ "pytest", - "$PIXI_PROJECT_ROOT", + "$PIXI_PROJECT_ROOT/tests", "--override-ini", "norecursedirs=\"\"", # include cython tests (ignore by default config) ] @@ -329,7 +329,7 @@ depends-on = [{ task = "build-cython-tests" }] [target.win-64.tasks.test] cmd = [ "pytest", - "$PIXI_PROJECT_ROOT", + "$PIXI_PROJECT_ROOT/tests", "--override-ini", "norecursedirs=\"\"", # include cython tests (ignore by default config) ] diff --git a/pixi.toml b/pixi.toml index 52469b716c72..e36791eff9fb 100644 --- a/pixi.toml +++ b/pixi.toml @@ -20,13 +20,10 @@ PIXI_ENVIRONMENT_NAME = "${PIXI_ENVIRONMENT_NAME/default/cu13}" # Test Tasks # Runs tests across all sub-packages: pathfinder → bindings → core (dependency order). # -# Each sub-package has its own pixi.toml. We wrap each task in `bash -c '...'` -# (single-quoted in TOML, double-quoted inside) because pixi `cmd` arrays do -# not expand shell variables -- without this, the inner `pixi run` would drop -# into the sub-package's `default` environment, which lacks a cuda-version -# pin, causing the conda solver to pick a mismatched CUDA toolkit. Forwarding -# `-e "$PIXI_ENVIRONMENT_NAME"` keeps the active environment consistent end -# to end. +# Each sub-package has its own pixi.toml. Forward `-e "$PIXI_ENVIRONMENT_NAME"` +# so nested tasks keep the selected CUDA environment. Pixi expands variables +# while rendering these command arrays, before Bash runs: use existing +# environment variables, not variables assigned inside the Bash command. # # Linux-only for now; Windows/macOS root test-task parity is tracked # separately. @@ -43,7 +40,7 @@ cmd = [ cmd = [ "bash", "-c", - 'pixi run --manifest-path "$PIXI_PROJECT_ROOT/cuda_bindings_13" -e "$PIXI_ENVIRONMENT_NAME" test', + 'pixi run --manifest-path "$PIXI_PROJECT_ROOT/cuda_bindings_${PIXI_ENVIRONMENT_NAME#cu}" -e "$PIXI_ENVIRONMENT_NAME" test', ] [target.linux.tasks.test-core] From 63efb2db31f06ce4c1edc0c3fe5bcd78d8cb720a Mon Sep 17 00:00:00 2001 From: Ralf Juengling Date: Fri, 6 Nov 2026 12:02:28 -0800 Subject: [PATCH 14/85] CI: Fix compute-sanitizer setup and harden mini-CTK fetching (#3397) CI: Fix compute-sanitizer setup and harden mini-CTK fetching - Fix sanitizer mode, broken by #2437: the sanitizer step reran fetch_ctk, which deleted the mini CTK. A new install-mode: add input installs on top of the existing toolkit instead. - Install compute-sanitizer from the build CTK (cuda.build.version) rather than a run-time scrape of the latest release; remove ci/tools/guess_latest.sh. - Fail closed when a public CUDA version has no pinned manifest hash. Pin 13.5.0 and test that every CI CUDA version is pinned. --- .github/actions/fetch_ctk/action.yml | 45 +++++++++++++++++++++- .github/workflows/test-wheel-linux.yml | 7 +++- ci/tools/compute_ci_plan.py | 1 - ci/tools/env-vars | 1 - ci/tools/fetch_ctk_redistrib.py | 19 ++++----- ci/tools/guess_latest.sh | 42 -------------------- ci/tools/tests/test_compute_ci_plan.py | 1 - ci/tools/tests/test_fetch_ctk_redistrib.py | 41 +++++++++++++++++--- ci/versions.yml | 6 ++- 9 files changed, 98 insertions(+), 65 deletions(-) delete mode 100644 ci/tools/guess_latest.sh diff --git a/.github/actions/fetch_ctk/action.yml b/.github/actions/fetch_ctk/action.yml index 65b05a66acfd..034f3c416f80 100644 --- a/.github/actions/fetch_ctk/action.yml +++ b/.github/actions/fetch_ctk/action.yml @@ -19,6 +19,14 @@ inputs: description: "where the CTK components will be installed to, relative to $PWD" required: false default: "./cuda_toolkit" + install-mode: + description: > + "replace" (default) empties cuda-path before installing. + "add" installs the components on top of the mini CTK that an earlier + fetch_ctk call installed at the same cuda-path, and leaves the + environment that call exported unchanged. + required: false + default: "replace" redist-base-url: description: > Base URL of a redistrib server (manifest and component archives). @@ -43,6 +51,34 @@ runs: with: dependent_exes: "curl unzip tar sha256sum cygpath" + - name: Check install mode + shell: bash --noprofile --norc -xeuo pipefail {0} + run: | + case "${{ inputs.install-mode }}" in + replace) + ;; + add) + # The environment exports are skipped in this mode, so the target + # must be the CUDA_PATH an earlier fetch_ctk call exported. + if [[ -z "${CUDA_PATH:-}" ]]; then + echo "::error::install-mode 'add' requires CUDA_PATH from an earlier fetch_ctk call" + exit 1 + fi + EXISTING_PATH="$CUDA_PATH" + if [[ "${{ inputs.host-platform }}" == win* ]]; then + EXISTING_PATH="$(cygpath -u "$EXISTING_PATH")" + fi + if [[ "$(realpath -e "${{ inputs.cuda-path }}")" != "$(realpath -e "$EXISTING_PATH")" ]]; then + echo "::error::install-mode 'add' requires cuda-path to be the existing CUDA_PATH ($CUDA_PATH)" + exit 1 + fi + ;; + *) + echo "::error::install-mode must be 'replace' or 'add', got '${{ inputs.install-mode }}'" + exit 1 + ;; + esac + - name: Set up CTK cache variable shell: bash --noprofile --norc -xeuo pipefail {0} run: | @@ -170,7 +206,9 @@ runs: # symlinks from a prerelease CTK at ./cuda_toolkit/include etc., causing # "cp: cannot overwrite non-directory" failures on the next restore). CUDA_PATH="${{ inputs.cuda-path }}" - rm -rf $CUDA_PATH + if [[ "${{ inputs.install-mode }}" == replace ]]; then + rm -rf $CUDA_PATH + fi mkdir -p $CUDA_PATH # Unfortunately we cannot use "rsync -av $CACHE_TMP_DIR/ $CUDA_PATH" because # not all runners have rsync pre-installed (or even installable, such as @@ -194,7 +232,9 @@ runs: ls -l CACHE_TMP_DIR="./cache_tmp_dir" CUDA_PATH="${{ inputs.cuda-path }}" - rm -rf $CUDA_PATH + if [[ "${{ inputs.install-mode }}" == replace ]]; then + rm -rf $CUDA_PATH + fi mkdir -p $CUDA_PATH tar -xzvf $CTK_CACHE_FILENAME # Can't use rsync here, see above @@ -203,6 +243,7 @@ runs: ls -l $CUDA_PATH - name: Set output environment variables + if: ${{ inputs.install-mode == 'replace' }} shell: bash --noprofile --norc -xeuo pipefail {0} run: | # mimics actual CTK installation diff --git a/.github/workflows/test-wheel-linux.yml b/.github/workflows/test-wheel-linux.yml index ce529fc73ce9..9a7ae677a5c9 100644 --- a/.github/workflows/test-wheel-linux.yml +++ b/.github/workflows/test-wheel-linux.yml @@ -366,14 +366,17 @@ jobs: host-platform: ${{ inputs.host-platform }} cuda-version: ${{ matrix.CUDA_VER }} - - name: Set up latest cuda_sanitizer_api + - name: Set up cuda_sanitizer_api if: ${{ (env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true') && env.SETUP_SANITIZER == '1' }} uses: ./.github/actions/fetch_ctk continue-on-error: false with: host-platform: ${{ inputs.host-platform }} - cuda-version: ${{ env.LATEST_CUDA_VERSION }} + # The build CTK's sanitizer, not the matrix CTK's: older sanitizers + # crash on the cuda.core tests, and newer ones carry the fixes. + cuda-version: ${{ inputs.build-ctk-ver }} cuda-components: "cuda_sanitizer_api" + install-mode: add - name: Set up compute-sanitizer if: ${{ env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' }} diff --git a/ci/tools/compute_ci_plan.py b/ci/tools/compute_ci_plan.py index fa90e356c85b..98b8499d0044 100644 --- a/ci/tools/compute_ci_plan.py +++ b/ci/tools/compute_ci_plan.py @@ -57,7 +57,6 @@ ".github/workflows/test-wheel-linux.yml": "linux", ".github/workflows/test-wheel-windows.yml": "windows", "ci/tools/configure_driver_mode.ps1": "windows", - "ci/tools/guess_latest.sh": "linux", "ci/tools/install_gpu_driver.ps1": "windows", "ci/tools/install_gpu_driver.sh": "linux", "ci/tools/setup-sanitizer": "linux", diff --git a/ci/tools/env-vars b/ci/tools/env-vars index 262de4230659..9946ad549de4 100755 --- a/ci/tools/env-vars +++ b/ci/tools/env-vars @@ -119,7 +119,6 @@ elif [[ "${1}" == "test" ]]; then # We only test compute-sanitizer on python 3.12 arbitrarily; we don't need to use sanitizer on the entire matrix # Only local ctk installs have compute-sanitizer; there is no wheel for it if [[ "${PY_VER}" == "3.12" && "${CUDA_VER}" != "11.8.0" && "${LOCAL_CTK}" == 1 && "${HOST_PLATFORM}" == linux* ]]; then - echo "LATEST_CUDA_VERSION=$(bash ci/tools/guess_latest.sh $TEST_CUDA_MAJOR)" >> $GITHUB_ENV SETUP_SANITIZER=1 else SETUP_SANITIZER=0 diff --git a/ci/tools/fetch_ctk_redistrib.py b/ci/tools/fetch_ctk_redistrib.py index 1a75ed471a83..6217dad42da0 100644 --- a/ci/tools/fetch_ctk_redistrib.py +++ b/ci/tools/fetch_ctk_redistrib.py @@ -29,10 +29,11 @@ # Known-good sha256 of the redistrib metadata JSON, keyed by CUDA version. # Per-archive verification is only trustworthy if the JSON that carries the -# archive hashes is itself trusted, so we pin the metadata too. A version that -# is absent here is not blocked -- failing closed would break CI on every new -# CTK -- but `verify-metadata` emits a warning; add the version's hash below as -# it enters the matrix to pin it. Regenerate with: +# archive hashes is itself trusted, so we pin the metadata too. `verify-metadata` +# fails on a public-server version that is absent here, so add a version's hash +# below in the same change that adds it to ci/versions.yml or a LOCAL_CTK row of +# ci/test-matrix.yml; tests/test_fetch_ctk_redistrib.py enforces this. +# Regenerate with: # curl -fsSL \ # https://developer.download.nvidia.com/compute/cuda/redist/redistrib_.json \ # | sha256sum @@ -41,6 +42,7 @@ "12.9.1": "8335301010b0023ee1ff61eb11e2600ca62002d76780de4089011ad77e0c7630", "13.0.2": "fce66717a81c510ffeb89ecc3e79849ab34af3b80139f750876d9033e31d71c2", "13.4.2": "015b97aa3977d4d0bade1631b226b6d4cbe48751cc841aad9193295df7f9047a", + "13.5.0": "401529e951b845788177f999c0756c520c4d0db1cd4cd05c0a295e331884b596", } @@ -154,8 +156,8 @@ def verify_metadata_sha256(*, cuda_version: str, metadata_path: str, metadata_so manifest under the same version number, so it is never checked against them; it only gets a warning. - Returns a process exit code: 1 on a mismatch (fail closed), 0 when the hash - matches, the version is not pinned yet, or the source is custom (warn only). + Returns a process exit code: 1 on a mismatch or an unpinned public version + (fail closed), 0 when the hash matches or the source is custom (warn only). """ actual = compute_file_sha256(metadata_path) if metadata_source == "custom": @@ -168,11 +170,11 @@ def verify_metadata_sha256(*, cuda_version: str, metadata_path: str, metadata_so expected = KNOWN_REDISTRIB_SHA256.get(cuda_version) if expected is None: print( - f"WARNING: no pinned redistrib sha256 for CUDA {cuda_version!r}; got {actual}. " + f"ERROR: no pinned redistrib sha256 for CUDA {cuda_version!r}; got {actual}. " f"Add it to KNOWN_REDISTRIB_SHA256 in {Path(__file__).name} to pin it.", file=sys.stderr, ) - return 0 + return 1 if actual != expected: print( f"ERROR: redistrib metadata sha256 mismatch for CUDA {cuda_version!r}: expected {expected}, got {actual}", @@ -207,7 +209,6 @@ def parse_args(argv: list[str] | None = None) -> argparse.Namespace: verify_parser.add_argument("--cuda-version", required=True) verify_parser.add_argument("--metadata-path", required=True) verify_parser.add_argument("--metadata-source", choices=("public", "custom"), default="public") - return parser.parse_args(argv) diff --git a/ci/tools/guess_latest.sh b/ci/tools/guess_latest.sh deleted file mode 100644 index f9d383f2094b..000000000000 --- a/ci/tools/guess_latest.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash -# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -# -# SPDX-License-Identifier: Apache-2.0 - -# URL to search -URL="https://developer.download.nvidia.com/compute/cuda/redist/" - -# Ensure exactly one argument is provided -if [ "$#" -ne 1 ]; then - echo "Usage: $0 " - exit 1 -fi - -# Accept major version as the first argument -MAJOR_VERSION="$1" - -# Fetch the directory listing and extract the latest version number -get_latest_version() { - # Get the HTML content of the page - local html_content=$(wget -q -O - "$URL") - - # Extract links matching the pattern redistrib_?.?.?.json - local files=$(echo "$html_content" | grep -oP "redistrib_${MAJOR_VERSION}\.[0-9]+\.[0-9]+\.json" | cut -d'"' -f2) - - # If files were found, extract the version numbers and find the latest - if [ -n "$files" ]; then - # Extract just the version numbers using regex - local versions=$(echo "$files" | grep -oP "redistrib_\K${MAJOR_VERSION}\.[0-9]+\.[0-9]+(?=\.json)") - - # Sort the versions and get the latest - local latest_version=$(echo "$versions" | sort -V | tail -n 1) - echo "$latest_version" - else - echo "No files matching the pattern were found." - return 1 - fi -} - -# Call the function and store the result -latest_version=$(get_latest_version) -echo $latest_version diff --git a/ci/tools/tests/test_compute_ci_plan.py b/ci/tools/tests/test_compute_ci_plan.py index b87326420ee5..c08eddb6dcda 100644 --- a/ci/tools/tests/test_compute_ci_plan.py +++ b/ci/tools/tests/test_compute_ci_plan.py @@ -85,7 +85,6 @@ def test_test_infrastructure_platforms(self) -> None: ".github/workflows/test-wheel-linux.yml": {"linux"}, ".github/workflows/test-wheel-windows.yml": {"windows"}, "ci/tools/configure_driver_mode.ps1": {"windows"}, - "ci/tools/guess_latest.sh": {"linux"}, "ci/tools/install_gpu_driver.ps1": {"windows"}, "ci/tools/install_gpu_driver.sh": {"linux"}, "ci/tools/setup-sanitizer": {"linux"}, diff --git a/ci/tools/tests/test_fetch_ctk_redistrib.py b/ci/tools/tests/test_fetch_ctk_redistrib.py index dad75da1a1b2..03f9a29df501 100644 --- a/ci/tools/tests/test_fetch_ctk_redistrib.py +++ b/ci/tools/tests/test_fetch_ctk_redistrib.py @@ -4,13 +4,16 @@ from __future__ import annotations import json +import re import sys from pathlib import Path import pytest +import yaml sys.path.insert(0, str(Path(__file__).parent.parent)) from fetch_ctk_redistrib import ( + KNOWN_REDISTRIB_SHA256, compute_file_sha256, get_component_relative_path, get_component_sha256, @@ -18,6 +21,9 @@ verify_metadata_sha256, ) +CI_DIR = Path(__file__).resolve().parents[2] +SHA256_RE = re.compile(r"^[0-9a-f]{64}$") + # Minimal redistrib-shaped metadata. "cccl" exercises the cuda_cccl -> cccl # alias; "no_sha" lacks the sha256 field. FAKE_METADATA = { @@ -101,14 +107,37 @@ def test_verify_metadata_mismatch_fails_closed(tmp_path, monkeypatch): assert verify_metadata_sha256(cuda_version="1.2.3", metadata_path=str(f)) == 1 -@pytest.mark.agent_authored(model="claude-opus-4.8") -def test_verify_metadata_unknown_version_warns(tmp_path, capsys): +@pytest.mark.agent_authored(model="claude-opus-5.5") +def test_verify_metadata_unknown_version_fails_closed(tmp_path, capsys): f = tmp_path / "redistrib.json" f.write_bytes(b"whatever") - # An unpinned version must not fail closed (it would break CI on every new - # CTK), but it must emit a warning. - assert verify_metadata_sha256(cuda_version="99.9.9", metadata_path=str(f)) == 0 - assert "WARNING" in capsys.readouterr().err + assert verify_metadata_sha256(cuda_version="99.9.9", metadata_path=str(f)) == 1 + assert "ERROR" in capsys.readouterr().err + + +@pytest.mark.agent_authored(model="claude-opus-5.5") +def test_known_redistrib_sha256_covers_ci_cuda_versions(): + # Every CUDA version CI fetches from the public server must be pinned, so a + # version bump fails here instead of in the fetch_ctk step. + versions = yaml.safe_load((CI_DIR / "versions.yml").read_text(encoding="utf-8")) + matrix = yaml.safe_load((CI_DIR / "test-matrix.yml").read_text(encoding="utf-8")) + required = {str(entry["version"]) for entry in versions["cuda"].values()} + required |= { + str(row["CUDA_VER"]) + for platform in ("linux", "windows") + for rows in matrix[platform].values() + for row in rows + if str(row.get("LOCAL_CTK")) == "1" + } + assert required + missing = sorted(required - KNOWN_REDISTRIB_SHA256.keys()) + assert not missing, ( + f"CUDA versions used by CI have no pinned redistrib manifest hash: {missing}. " + "Add them to KNOWN_REDISTRIB_SHA256 in ci/tools/fetch_ctk_redistrib.py; compute each hash with " + "`curl -fsSL https://developer.download.nvidia.com/compute/cuda/redist/redistrib_.json | sha256sum`." + ) + for version, sha256 in KNOWN_REDISTRIB_SHA256.items(): + assert SHA256_RE.fullmatch(sha256), f"invalid pinned sha256 for CUDA {version}" @pytest.mark.agent_authored(model="claude-opus-4.8") diff --git a/ci/versions.yml b/ci/versions.yml index 2a48f83497cf..e1238c28756f 100644 --- a/ci/versions.yml +++ b/ci/versions.yml @@ -3,9 +3,13 @@ backport_branch: "12.9.x" # keep in sync with target-branch in .github/dependabot.yml -# This controls the version of the upstream CTK to install to build the wheels. +# This controls the version of the upstream CTK to install to build the wheels, +# and the compute-sanitizer version used in all sanitizer test runs. # It is not the version of cuda_bindings/cuda_python being released, which is # solely determined by git tags via setuptools_scm. +# Each version here, and in every LOCAL_CTK: '1' row of ci/test-matrix.yml, +# needs a pinned manifest hash in KNOWN_REDISTRIB_SHA256 in +# ci/tools/fetch_ctk_redistrib.py; fetch_ctk fails without one. cuda: build: version: "13.5.0" From db463bf3d66b1c7ff63f6bab61d58dfe867c250c Mon Sep 17 00:00:00 2001 From: Ralf Juengling Date: Fri, 6 Nov 2026 15:24:46 -0800 Subject: [PATCH 15/85] ci: install cuda-gdb for cuda.core local-CTK tests (#3371) ci: install cuda-gdb for cuda.core local-CTK tests Install cuda_gdb on top of the mini CTK, using fetch_ctk's install-mode: add, only in local-CTK jobs that run cuda.core tests. This enables test_cuda_gdb_shows_nvrtc_debug_source_lines, which skipped without cuda-gdb on PATH, without growing the default mini CTK. --- .github/workflows/test-wheel-linux.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/test-wheel-linux.yml b/.github/workflows/test-wheel-linux.yml index 9a7ae677a5c9..61f969c79421 100644 --- a/.github/workflows/test-wheel-linux.yml +++ b/.github/workflows/test-wheel-linux.yml @@ -366,6 +366,18 @@ jobs: host-platform: ${{ inputs.host-platform }} cuda-version: ${{ matrix.CUDA_VER }} + - name: Set up cuda_gdb + # $/ loads the action from the workflow's commit: the inputs.sha + # checkout can predate install-mode, and ./ would then wipe the mini CTK. + if: ${{ matrix.LOCAL_CTK == '1' && env.TEST_CORE == 'true' }} + uses: $/.github/actions/fetch_ctk + continue-on-error: false + with: + host-platform: ${{ inputs.host-platform }} + cuda-version: ${{ matrix.CUDA_VER }} + cuda-components: "cuda_gdb" + install-mode: add + - name: Set up cuda_sanitizer_api if: ${{ (env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true') && env.SETUP_SANITIZER == '1' }} uses: ./.github/actions/fetch_ctk From 24168ccb8668a933ff14707cdd10b93b40784103 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Mon, 9 Nov 2026 09:04:17 -0500 Subject: [PATCH 16/85] [doc-only] Fix stale NVML API catalog entries (#3386) Remove EventData_v2 and replace GpuOperationalEventContextLegacyXid_v1 and OperationalEventContextInfo_v1 with the exported EventSetGetGpuOperationalEventContextLegacyXid_v1 and EventSetGetContextInfo_v1. Fixes #3382 Co-authored-by: Claude Sonnet 5.5 --- cuda_bindings_13/docs/source/module/nvml.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cuda_bindings_13/docs/source/module/nvml.rst b/cuda_bindings_13/docs/source/module/nvml.rst index d51e52b56c8a..39b53f031e2d 100644 --- a/cuda_bindings_13/docs/source/module/nvml.rst +++ b/cuda_bindings_13/docs/source/module/nvml.rst @@ -547,7 +547,8 @@ Types EccSramUniqueUncorrectedErrorEntry_v1 EncoderSessionInfo EventData - EventData_v2 + EventSetGetContextInfo_v1 + EventSetGetGpuOperationalEventContextLegacyXid_v1 ExcludedDeviceInfo FBCSessionInfo FBCStats @@ -561,7 +562,6 @@ Types GpuFabricInfo_v4 GpuInstanceInfo GpuOperationalEventConfig_v1 - GpuOperationalEventContextLegacyXid_v1 GpuInstancePlacement GpuInstanceProfileInfo_v3 GpuThermalSettings @@ -590,7 +590,6 @@ Types NvlinkTelemetrySample_v1 NvlinkTelemetrySamples_v1 ObservedMetrics - OperationalEventContextInfo_v1 PciInfo PciInfoExt_v1 PerfMetricControllerSample From 1ced0b1db63fd0b3c67deae7d3a4e42b3434f497 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Mon, 9 Nov 2026 09:04:44 -0500 Subject: [PATCH 17/85] [doc-only] Fix memcpy entry in driver_v2 API catalog (#3385) The autosummary list in driver_v2.rst named `cu_memcpy`, but the actual export is `cuda.bindings._v2.driver.memcpy`. Sphinx failed the import and silently dropped the entry and its detail page. Fixes #3381 Co-authored-by: Claude Sonnet 5.5 --- cuda_bindings_13/docs/source/module/driver_v2.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cuda_bindings_13/docs/source/module/driver_v2.rst b/cuda_bindings_13/docs/source/module/driver_v2.rst index 7dce1e9db2a7..4933528d0c9b 100644 --- a/cuda_bindings_13/docs/source/module/driver_v2.rst +++ b/cuda_bindings_13/docs/source/module/driver_v2.rst @@ -555,7 +555,7 @@ This section describes the memory management functions of the low-level CUDA dri ipc_close_mem_handle mem_host_register_v2 mem_host_unregister - cu_memcpy + memcpy memcpy_peer memcpy_htod_v2 memcpy_dtoh_v2 From 3f47399da9d9595691cb63598be0b0f384e274e8 Mon Sep 17 00:00:00 2001 From: Andy Jost Date: Mon, 9 Nov 2026 09:06:54 -0800 Subject: [PATCH 18/85] feat(cuda.core): share VirtualMemoryResource buffers with fabric handles (#3230) * refactor(cuda.core): rename VirtualMemoryIPCBufferDescriptor to VirtualMemoryFdBufferDescriptor The class carries POSIX file descriptors for VirtualMemoryResource buffers. A fabric-handle descriptor will sit beside it, so its name now says which transport it is. No alias: the class first appears in the unreleased 1.3.0. No behavior change. Written by Codex (gpt-6.1-sol); reviewed by Claude. Co-Authored-By: Claude Fable 5.1 * feat(cuda.core): share VirtualMemoryResource buffers with fabric handles Add VirtualMemoryFabricBufferDescriptor, a plain-data descriptor that carries one opaque 64-byte CUmemFabricHandle per physical allocation, the allocation sizes, the buffer size, and the exporting device's UUID. VirtualMemoryResource exports it when config.handle_type is "fabric", and Buffer.from_ipc_descriptor imports it through the shared _VirtualMemoryDescriptor interface that the POSIX fd descriptor also implements, so both transports run one import loop. Fabric descriptors travel through plain pickle and multiprocessing without the file-descriptor machinery and pin nothing: the exporter keeps the buffer alive until every importer has imported it. A stale or forged handle fails at import with a driver error and a note. Resource construction checks Device.properties.handle_type_fabric_supported and raises RuntimeError when the device lacks an NVLink fabric or an accessible IMEX channel. from_handles() rebuilds a descriptor received through a transport of your own. A location mismatch at import names the owning device by UUID. Sharing is supported on one node; multi-node sharing is untested. The project's CI has no fabric-capable runner; the release note says so. Part of #2980. Written by Codex (gpt-6.1-sol); reviewed by Claude. Co-Authored-By: Claude Fable 5.1 * fix(cuda.core): harden the fabric transport after review and GPU runs Zero the 64-byte handle struct before a fabric export. The driver fills its fields and leaves the padding, so two exports of one buffer carried different stack bytes (seen on B300); the export now returns the same bytes for the same allocation, and no stack bytes travel in a descriptor. The fabric test fixtures allocate once per device after the attribute check. Inside a container that has the IMEX channel device node the attribute is true while the GPU has no fabric, and the allocation is refused; that is what the CI runners do. A refused physical allocation on a fabric resource now carries a note about the fabric and IMEX requirements, and the docs say that the attribute can be true where the allocation still fails. The import-error tests check cuda.core's note, not the driver's status, which varies with the IMEX setup. Garbage handles use fixed patterns instead of os.urandom. The release note names the POSIX fd descriptor as the one that pins. One note per import failure. _handles is readonly on both descriptors. Written by Claude after the de novo review, CodeRabbit, CI, and the Hopper and B300 runs. Co-Authored-By: Claude Fable 5.1 * fix(cuda.core): drop an unreachable return in the VMM allocation-error helper Cython reported the stray line as unreachable code, and the wheel builds treat Cython warnings as errors. The return goes back to the note helper it belonged to. Co-Authored-By: Claude Fable 5.1 * test(cuda.core): let the fabric probe skip only on a refused allocation The fixture probe skipped every fabric test on any CUDAError from the probe allocation, which would hide a real failure (an out-of-memory condition, for one) as 'no fabric here'. It now skips on the statuses that mean the device has no usable fabric (NOT_PERMITTED on the CI runners, INVALID_VALUE on an H200 without an IMEX channel, NOT_SUPPORTED) and lets anything else propagate, per the test guide's rule on capability probes. Co-Authored-By: Claude Fable 5.1 * test(cuda.core): skip fabric tests only on cuda.core's allocation note The fixture probe skipped the fabric tests on three driver statuses from the whole probe allocation. A status from the address reservation, the mapping, or the stream setup could therefore pass as 'no fabric here' and hide a real failure on a fabric-capable device. The probe now skips only when the exception carries the note that VirtualMemoryResource attaches to a refused physical allocation with a fabric handle (appended to the message on Python 3.10), and lets every other CUDAError propagate. The 1.3.0 release note described every export as a POSIX file descriptor that plain pickle cannot carry. It now describes the two transports separately: file descriptors for "posix_fd", plain-data fabric handles for "fabric". Co-Authored-By: Claude Fable 5.1 * docs(cuda.core): say why the fabric attribute can be true where allocation fails The docstrings, the allocation note, the release note, and the fixture comment explained the over-reporting attribute with a container that has the IMEX channel device node. The CI evidence says otherwise: the runner VMs disable NVLink and have no channel node, and the attribute is still true on the r595 and 610 drivers there. The 13.4 driver source adds the channel subscription to the attribute; no driver checks for an NVLink fabric. The text now states that, without the container example. Co-Authored-By: Claude Fable 5.1 * fix(cuda.core): address fabric IPC review feedback --------- Co-authored-by: Claude Fable 5.1 --- cuda_core/cuda/core/_cpp/rt/VMM_DESIGN.md | 49 ++- cuda_core/cuda/core/_memory/_ipc.pxd | 14 +- cuda_core/cuda/core/_memory/_ipc.pyi | 81 +++- cuda_core/cuda/core/_memory/_ipc.pyx | 172 +++++++-- .../core/_memory/_virtual_memory_resource.pyi | 71 +++- .../core/_memory/_virtual_memory_resource.pyx | 195 +++++++--- cuda_core/docs/source/api_private.rst | 1 + cuda_core/docs/source/release/1.3.0-notes.rst | 48 ++- cuda_core/tests/conftest.py | 64 ++++ cuda_core/tests/memory_ipc/test_errors.py | 2 +- cuda_core/tests/memory_ipc/test_vmm_fabric.py | 361 ++++++++++++++++++ cuda_core/tests/memory_ipc/test_vmm_ipc.py | 29 +- 12 files changed, 945 insertions(+), 142 deletions(-) create mode 100644 cuda_core/tests/memory_ipc/test_vmm_fabric.py diff --git a/cuda_core/cuda/core/_cpp/rt/VMM_DESIGN.md b/cuda_core/cuda/core/_cpp/rt/VMM_DESIGN.md index ce1f9dab90bf..fbc7b3d2ae44 100644 --- a/cuda_core/cuda/core/_cpp/rt/VMM_DESIGN.md +++ b/cuda_core/cuda/core/_cpp/rt/VMM_DESIGN.md @@ -204,7 +204,7 @@ what makes that safe: the allocation is released exactly once, when its last map A `VirtualMemoryBuffer` is shared the way pool-backed buffers are, through `Buffer.ipc_descriptor` and `Buffer.from_ipc_descriptor`, when the resource's -`handle_type` can travel between processes (`posix_fd` on Linux) and the memory +`handle_type` can travel between processes (`posix_fd` or `fabric` on Linux) and the memory lives on a device (`is_ipc_enabled` reports both; host-located memory is not shared yet). The exporter calls `cuMemExportToShareableHandle` once per mapping that covers the buffer's size, in address order, and the @@ -298,16 +298,43 @@ A `modify_allocation` config must keep the resource's `handle_type`: every chunk of a buffer must be exportable the same way. Fabric handles. `CU_MEM_HANDLE_TYPE_FABRIC` exports a `CUmemFabricHandle`, 64 -bytes of plain data that travel through `pickle`, MPI, or a socket, need no -close, and cannot hold a reference to the allocation while in flight. The -importer needs access to the exporter's IMEX channel rather than a matching -device index, and the memory may live on another node. The file-descriptor -rules above (ownership, pinning, `pickle` raising, the same-device check) do -not hold for it, so fabric sharing gets a descriptor class of its own instead -of a widened `VirtualMemoryFdBufferDescriptor`, whose `handles` stay -`IPCAllocationHandle`s. `from_fds()` is POSIX-only by construction for the -same reason and takes no handle type; a fabric descriptor is plain data and -needs no out-of-band constructor. Tracked on the VMM epic (#2980). +opaque bytes cached by the driver at `cuMemCreate`. Repeated exports of one +allocation return the same bytes once the handle struct is zeroed before the +export (the driver fills its fields and leaves the padding, which otherwise +made two exports of one buffer compare unequal on B300); export creates no OS +object and takes no reference. `VirtualMemoryFabricBufferDescriptor` carries one `bytes` per +allocation, its size, the buffer size, and the owner's device UUID. It +compares and hashes by (sizes, handles, size); the UUID is diagnostic metadata. +`from_handles()` validates externally transported handles and sizes. Plain +`pickle`, `multiprocessing`, MPI, or a socket can carry the descriptor, with +no reduction registration or spawning-Popen retention. The fd descriptor +keeps its ownership and identity semantics and its POSIX-only `from_fds()`. + +Nothing pins the allocation between export and import. The exporter must keep +the buffer alive until every importer has imported it; a descriptor parked +in a queue holds no driver reference. Import takes references of its own, +so the imported buffer is independent of the exporter after import. A stale +or forged handle fails with a driver error; an import failure carries a note +about stale handles, forgery, and differing IMEX channels. Imported memory +cannot be re-exported; the same provenance check covers both transports. + +Both concrete descriptors derive from `_VirtualMemoryDescriptor`, whose +`handle_ptr` supplies an fd cast to `void*` or fills a caller-provided fabric +scratch struct and returns its address. The import loop checks the handle +type before driver calls and uses the same location check, reservation, +mappings, and range for both transports. An imported fabric allocation +reports DEVICE and the owner's device ordinal as numbered by the importer. +A location mismatch includes the owner's UUID and its local ordinal, or says +that the UUID is not visible in this process. + +Construction checks `Device.properties.handle_type_fabric_supported` once +for a device-located fabric resource. It requires an NVLink fabric and an +accessible IMEX channel (`/dev/nvidia-caps-imex-channels/channel*`); otherwise +construction raises a useful `RuntimeError` before an opaque allocation +failure. `is_ipc_enabled` remains a configuration query without driver calls. +The types are available in both supported bindings majors; no version gate +is needed. Sharing is supported on one node; multi-node IMEX sharing is out +of scope and untested. Tracked on the VMM epic (#2980). ## Why `modify_allocation` returns a new buffer diff --git a/cuda_core/cuda/core/_memory/_ipc.pxd b/cuda_core/cuda/core/_memory/_ipc.pxd index 75d41c511933..a3b77dffd506 100644 --- a/cuda_core/cuda/core/_memory/_ipc.pxd +++ b/cuda_core/cuda/core/_memory/_ipc.pxd @@ -55,10 +55,20 @@ cdef class IPCAllocationHandle: # Descriptor of a VirtualMemoryResource buffer: one exported handle per # physical allocation that backs the buffer, in address order. -cdef class VirtualMemoryFdBufferDescriptor(IPCBufferDescriptor): - cdef readonly int _handle_type +cdef class _VirtualMemoryDescriptor(IPCBufferDescriptor): cdef readonly tuple _chunk_sizes + + cdef int driver_handle_type(self) except -1 + cdef void* handle_ptr(self, Py_ssize_t i, cydriver.CUmemFabricHandle* scratch) except? NULL + + +cdef class VirtualMemoryFdBufferDescriptor(_VirtualMemoryDescriptor): + cdef readonly tuple _handles + + +cdef class VirtualMemoryFabricBufferDescriptor(_VirtualMemoryDescriptor): cdef readonly tuple _handles + cdef object _owner_uuid # Buffer IPC Implementation diff --git a/cuda_core/cuda/core/_memory/_ipc.pyi b/cuda_core/cuda/core/_memory/_ipc.pyi index ffc3f39f602e..31f74ab2d173 100644 --- a/cuda_core/cuda/core/_memory/_ipc.pyi +++ b/cuda_core/cuda/core/_memory/_ipc.pyi @@ -58,7 +58,18 @@ class IPCAllocationHandle: @property def uuid(self) -> uuid.UUID: ... -class VirtualMemoryFdBufferDescriptor(IPCBufferDescriptor): +class _VirtualMemoryDescriptor(IPCBufferDescriptor): + """Common allocation layout and driver-handle interface for VMM descriptors.""" + _chunk_sizes: tuple[Any, ...] + + @property + def handle_type(self) -> VirtualMemoryHandleType: + """The export handle type; the importing resource must use the same type.""" + @property + def sizes(self) -> tuple[int, ...]: + """Size of each physical allocation, in address order; the sum is at least ``size``.""" + +class VirtualMemoryFdBufferDescriptor(_VirtualMemoryDescriptor): """Serializable object describing a :class:`VirtualMemoryBuffer` that can be shared between processes. The descriptor holds one exported POSIX file descriptor per physical @@ -66,8 +77,7 @@ class VirtualMemoryFdBufferDescriptor(IPCBufferDescriptor): :class:`IPCAllocationHandle` that the descriptor owns and closes when it is released), with each allocation's size (``sizes``) and the buffer's size (``size``, which may be smaller than their sum). ``handle_type`` is - ``"posix_fd"``, the only handle type cuda.core shares today; the rules - below describe file descriptors. + ``"posix_fd"``; the rules below describe file descriptors. A descriptor pins the physical memory while it exists, in every process that holds one, and nothing else does: the exporting buffer keeps no @@ -92,12 +102,10 @@ class VirtualMemoryFdBufferDescriptor(IPCBufferDescriptor): which checks what it can and fails instead of mapping a size the driver rejects. """ - _handle_type: int - _chunk_sizes: tuple[Any, ...] _handles: tuple[Any, ...] @staticmethod - def _from_exports(handle_type: int, chunk_sizes: tuple[int, ...], handles: tuple[Any, ...], size: int) -> VirtualMemoryFdBufferDescriptor: ... + def _from_exports(chunk_sizes: tuple[int, ...], handles: tuple[Any, ...], size: int) -> VirtualMemoryFdBufferDescriptor: ... @classmethod def from_fds(cls, fds: Iterable[int | IPCAllocationHandle], sizes: Iterable[int], *, size: int | None=None) -> VirtualMemoryFdBufferDescriptor: """Build a descriptor from POSIX file descriptors received outside ``multiprocessing``. @@ -133,12 +141,6 @@ class VirtualMemoryFdBufferDescriptor(IPCBufferDescriptor): If an ``int`` is not an open file descriptor. """ @property - def handle_type(self) -> VirtualMemoryHandleType: - """The handle type the exporter used; the importing resource must be configured with the same.""" - @property - def sizes(self) -> tuple[int, ...]: - """Size of each physical allocation, in address order; the sum is at least ``size``.""" - @property def handles(self) -> tuple[IPCAllocationHandle, ...]: """The exported handles, one :class:`IPCAllocationHandle` per allocation, in address order. @@ -155,5 +157,60 @@ class VirtualMemoryFdBufferDescriptor(IPCBufferDescriptor): """ def __reduce__(self) -> tuple[object, ...]: ... +class VirtualMemoryFabricBufferDescriptor(_VirtualMemoryDescriptor): + """Plain-data descriptor of a :class:`VirtualMemoryBuffer` exported with fabric handles. + + Each physical allocation contributes one opaque 64-byte handle, in address + order. Plain ``pickle``, ``multiprocessing``, or a transport of your own + can carry these bytes. Use :meth:`from_handles` to rebuild a descriptor + received outside cuda.core, then :meth:`Buffer.from_ipc_descriptor` to + import it. ``handle_type`` is always ``"fabric"``. + + Nothing is pinned: unlike a file descriptor, a fabric descriptor parked + in a queue does not retain the memory. The exporter must keep the buffer + alive until every importer has imported it. After import, the imported + allocation holds its own driver references and is independent of the + exporter. Importing a stale or forged handle fails with a driver error. + + Sharing is supported on one node; multi-node sharing is untested. Fabric + handles require an NVLink fabric and an accessible IMEX channel. Treat + handles and sizes received from another process as untrusted and import + only through :meth:`Buffer.from_ipc_descriptor`. + """ + _handles: tuple[Any, ...] + + @staticmethod + def _from_exports(sizes: tuple[int, ...], handles: tuple[bytes, ...], size: int, owner_uuid: str | None) -> VirtualMemoryFabricBufferDescriptor: ... + @classmethod + def from_handles(cls, handles: Iterable[bytes], sizes: Iterable[int], *, size: int | None=None, owner_uuid: str | None=None) -> VirtualMemoryFabricBufferDescriptor: + """Build a descriptor from fabric handles received through a transport of your own. + + Parameters + ---------- + handles : Iterable[bytes] + One opaque 64-byte handle per physical allocation, in address order. + sizes : Iterable[int] + One positive allocation size per handle, in the same order. + size : int, optional + Buffer size, between zero and the sum of ``sizes``; the sum by default. + owner_uuid : str, optional + Exporting device's UUID, used to identify the owner in error messages. + + Raises + ------ + ValueError + If counts differ, a handle is not 64 bytes, an allocation size is + not a positive integer, or the buffer size is outside the allocation sizes. + """ + @property + def handles(self) -> tuple[bytes, ...]: + """One opaque 64-byte fabric handle per allocation, in address order.""" + @property + def owner_uuid(self) -> str | None: + """The exporting device's UUID, if supplied by the exporter.""" + def __reduce__(self) -> tuple[object, ...]: ... + def __eq__(self, other) -> bool: ... + def __hash__(self) -> int: ... + def _reduce_allocation_handle(alloc_handle: IPCAllocationHandle) -> tuple[object, ...]: ... def _reconstruct_allocation_handle(cls: type, df: object, uuid: uuid.UUID | None) -> IPCAllocationHandle: ... diff --git a/cuda_core/cuda/core/_memory/_ipc.pyx b/cuda_core/cuda/core/_memory/_ipc.pyx index 37e08729dae4..cb79d54871db 100644 --- a/cuda_core/cuda/core/_memory/_ipc.pyx +++ b/cuda_core/cuda/core/_memory/_ipc.pyx @@ -7,6 +7,8 @@ from __future__ import annotations cimport cpython from libc.stddef cimport size_t +from libc.stdint cimport uintptr_t +from libc.string cimport memcpy from cuda.bindings cimport cydriver from cuda.core._memory._buffer cimport Buffer, Buffer_check_open, Buffer_from_deviceptr_handle from cuda.core._memory._memory_pool cimport _MemPool, MP_check_open @@ -177,7 +179,33 @@ def _reconstruct_allocation_handle(cls: type, df: object, uuid: uuid.UUID | None multiprocessing.reduction.register(IPCAllocationHandle, _reduce_allocation_handle) -cdef class VirtualMemoryFdBufferDescriptor(IPCBufferDescriptor): +cdef class _VirtualMemoryDescriptor(IPCBufferDescriptor): + """Common allocation layout and driver-handle interface for VMM descriptors.""" + + @property + def handle_type(self) -> VirtualMemoryHandleType: + """The export handle type; the importing resource must use the same type.""" + from cuda.core._memory._virtual_memory_resource import VirtualMemoryResourceOptions + + handle_type = self.driver_handle_type() + for spec, value in VirtualMemoryResourceOptions._handle_types.items(): + if spec is not None and int(value) == handle_type: + return spec + raise ValueError(f"the descriptor carries an unknown handle type ({handle_type})") + + @property + def sizes(self) -> tuple[int, ...]: + """Size of each physical allocation, in address order; the sum is at least ``size``.""" + return self._chunk_sizes + + cdef int driver_handle_type(self) except -1: + raise NotImplementedError("a concrete VMM descriptor is required") + + cdef void* handle_ptr(self, Py_ssize_t i, cydriver.CUmemFabricHandle* scratch) except? NULL: + raise NotImplementedError("a concrete VMM descriptor is required") + + +cdef class VirtualMemoryFdBufferDescriptor(_VirtualMemoryDescriptor): """Serializable object describing a :class:`VirtualMemoryBuffer` that can be shared between processes. The descriptor holds one exported POSIX file descriptor per physical @@ -185,8 +213,7 @@ cdef class VirtualMemoryFdBufferDescriptor(IPCBufferDescriptor): :class:`IPCAllocationHandle` that the descriptor owns and closes when it is released), with each allocation's size (``sizes``) and the buffer's size (``size``, which may be smaller than their sum). ``handle_type`` is - ``"posix_fd"``, the only handle type cuda.core shares today; the rules - below describe file descriptors. + ``"posix_fd"``; the rules below describe file descriptors. A descriptor pins the physical memory while it exists, in every process that holds one, and nothing else does: the exporting buffer keeps no @@ -214,13 +241,12 @@ cdef class VirtualMemoryFdBufferDescriptor(IPCBufferDescriptor): @staticmethod def _from_exports( - handle_type: int, chunk_sizes: tuple[int, ...], handles: tuple, size: int + chunk_sizes: tuple[int, ...], handles: tuple, size: int ) -> VirtualMemoryFdBufferDescriptor: cdef VirtualMemoryFdBufferDescriptor self = VirtualMemoryFdBufferDescriptor.__new__( VirtualMemoryFdBufferDescriptor) self._payload = b"" self._size = size - self._handle_type = handle_type self._chunk_sizes = tuple(chunk_sizes) self._handles = tuple(handles) return self @@ -265,7 +291,6 @@ cdef class VirtualMemoryFdBufferDescriptor(IPCBufferDescriptor): OSError If an ``int`` is not an open file descriptor. """ - cdef int driver_type = cydriver.CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR cdef tuple sizes_t = tuple(operator.index(n) for n in sizes) cdef list given = list(fds) if len(given) != len(sizes_t): @@ -292,22 +317,15 @@ cdef class VirtualMemoryFdBufferDescriptor(IPCBufferDescriptor): raise # The handle owns the duplicate now; if append fails, the handle closes it once. handles.append(handle) - return VirtualMemoryFdBufferDescriptor._from_exports(driver_type, sizes_t, tuple(handles), size) - - @property - def handle_type(self) -> VirtualMemoryHandleType: - """The handle type the exporter used; the importing resource must be configured with the same.""" - from cuda.core._memory._virtual_memory_resource import VirtualMemoryResourceOptions + return VirtualMemoryFdBufferDescriptor._from_exports(sizes_t, tuple(handles), size) - for spec, value in VirtualMemoryResourceOptions._handle_types.items(): - if spec is not None and int(value) == self._handle_type: - return spec - raise ValueError(f"the descriptor carries an unknown handle type ({self._handle_type})") + cdef int driver_handle_type(self) except -1: + return cydriver.CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR - @property - def sizes(self) -> tuple[int, ...]: - """Size of each physical allocation, in address order; the sum is at least ``size``.""" - return self._chunk_sizes + cdef void* handle_ptr(self, Py_ssize_t i, cydriver.CUmemFabricHandle* scratch) except? NULL: + # fd zero is valid, so NULL is a valid result unless an exception is set. + cdef int fd = int(self._handles[i]) + return fd @property def handles(self) -> tuple[IPCAllocationHandle, ...]: @@ -331,7 +349,117 @@ cdef class VirtualMemoryFdBufferDescriptor(IPCBufferDescriptor): def __reduce__(self) -> tuple[object, ...]: # multiprocessing duplicates the IPCAllocationHandle fds into the receiver; plain pickle raises. return VirtualMemoryFdBufferDescriptor._from_exports, ( - self._handle_type, self._chunk_sizes, self._handles, self._size) + self._chunk_sizes, self._handles, self._size) + + +cdef class VirtualMemoryFabricBufferDescriptor(_VirtualMemoryDescriptor): + """Plain-data descriptor of a :class:`VirtualMemoryBuffer` exported with fabric handles. + + Each physical allocation contributes one opaque 64-byte handle, in address + order. Plain ``pickle``, ``multiprocessing``, or a transport of your own + can carry these bytes. Use :meth:`from_handles` to rebuild a descriptor + received outside cuda.core, then :meth:`Buffer.from_ipc_descriptor` to + import it. ``handle_type`` is always ``"fabric"``. + + Nothing is pinned: unlike a file descriptor, a fabric descriptor parked + in a queue does not retain the memory. The exporter must keep the buffer + alive until every importer has imported it. After import, the imported + allocation holds its own driver references and is independent of the + exporter. Importing a stale or forged handle fails with a driver error. + + Sharing is supported on one node; multi-node sharing is untested. Fabric + handles require an NVLink fabric and an accessible IMEX channel. Treat + handles and sizes received from another process as untrusted and import + only through :meth:`Buffer.from_ipc_descriptor`. + """ + + @staticmethod + def _from_exports( + sizes: tuple[int, ...], handles: tuple[bytes, ...], size: int, owner_uuid: str | None + ) -> VirtualMemoryFabricBufferDescriptor: + return VirtualMemoryFabricBufferDescriptor.from_handles( + handles, sizes, size=size, owner_uuid=owner_uuid) + + @classmethod + def from_handles( + cls, handles: Iterable[bytes], sizes: Iterable[int], *, + size: int | None = None, owner_uuid: str | None = None, + ) -> VirtualMemoryFabricBufferDescriptor: + """Build a descriptor from fabric handles received through a transport of your own. + + Parameters + ---------- + handles : Iterable[bytes] + One opaque 64-byte handle per physical allocation, in address order. + sizes : Iterable[int] + One positive allocation size per handle, in the same order. + size : int, optional + Buffer size, between zero and the sum of ``sizes``; the sum by default. + owner_uuid : str, optional + Exporting device's UUID, used to identify the owner in error messages. + + Raises + ------ + ValueError + If counts differ, a handle is not 64 bytes, an allocation size is + not a positive integer, or the buffer size is outside the allocation sizes. + """ + cdef tuple handles_t = tuple(handles) + try: + sizes_t = tuple(operator.index(n) for n in sizes) + size = None if size is None else operator.index(size) + except TypeError as exc: + raise ValueError("allocation sizes and size must be integers") from exc + if len(handles_t) != len(sizes_t): + raise ValueError(f"{len(handles_t)} handles for {len(sizes_t)} sizes; one size per handle is required") + for handle in handles_t: + if not isinstance(handle, bytes) or len(handle) != 64: + raise ValueError("each fabric handle must be 64 bytes") + for n in sizes_t: + if n <= 0: + raise ValueError(f"allocation sizes must be positive, got {n}") + total = sum(sizes_t) + size = total if size is None else size + if size < 0 or size > total: + raise ValueError(f"size {size} is outside 0..{total}, the sum of the allocation sizes") + cdef VirtualMemoryFabricBufferDescriptor self = VirtualMemoryFabricBufferDescriptor.__new__(cls) + self._payload = b"" + self._chunk_sizes = sizes_t + self._handles = handles_t + self._size = size + self._owner_uuid = owner_uuid + return self + + @property + def handles(self) -> tuple[bytes, ...]: + """One opaque 64-byte fabric handle per allocation, in address order.""" + return self._handles + + @property + def owner_uuid(self) -> str | None: + """The exporting device's UUID, if supplied by the exporter.""" + return self._owner_uuid + + cdef int driver_handle_type(self) except -1: + return cydriver.CU_MEM_HANDLE_TYPE_FABRIC + + cdef void* handle_ptr(self, Py_ssize_t i, cydriver.CUmemFabricHandle* scratch) except? NULL: + cdef bytes handle = self._handles[i] + memcpy(scratch.data, handle, 64) + return scratch + + def __reduce__(self) -> tuple[object, ...]: + return VirtualMemoryFabricBufferDescriptor._from_exports, ( + self._chunk_sizes, self._handles, self._size, self._owner_uuid) + + def __eq__(self, other) -> bool: + if not isinstance(other, VirtualMemoryFabricBufferDescriptor): + return NotImplemented + cdef VirtualMemoryFabricBufferDescriptor rhs = other + return (self._chunk_sizes, self._handles, self._size) == (rhs._chunk_sizes, rhs._handles, rhs._size) + + def __hash__(self) -> int: + return hash((self._chunk_sizes, self._handles, self._size)) # Buffer IPC Implementation @@ -359,7 +487,7 @@ cdef Buffer Buffer_from_ipc_descriptor( cls, object mr, IPCBufferDescriptor ipc_descriptor, stream ): """Import a buffer that was exported from another process.""" - if isinstance(ipc_descriptor, VirtualMemoryFdBufferDescriptor): + if isinstance(ipc_descriptor, _VirtualMemoryDescriptor): # Imported here rather than cimported: _virtual_memory_resource # cimports this module. from cuda.core._memory._virtual_memory_resource import VirtualMemoryResource diff --git a/cuda_core/cuda/core/_memory/_virtual_memory_resource.pyi b/cuda_core/cuda/core/_memory/_virtual_memory_resource.pyi index 32562a6c8c22..d4effa2496a7 100644 --- a/cuda_core/cuda/core/_memory/_virtual_memory_resource.pyi +++ b/cuda_core/cuda/core/_memory/_virtual_memory_resource.pyi @@ -6,7 +6,9 @@ from typing import Iterable from cuda.core._device import Device from cuda.core._memory._buffer import Buffer, MemoryResource -from cuda.core._memory._ipc import VirtualMemoryFdBufferDescriptor +from cuda.core._memory._ipc import (VirtualMemoryFabricBufferDescriptor, + VirtualMemoryFdBufferDescriptor, + _VirtualMemoryDescriptor) from cuda.core._stream import Stream from cuda.core._utils.cuda_utils import driver from cuda.core.graph import GraphBuilder @@ -18,7 +20,7 @@ from cuda.core.typing import (DevicePointerType, VirtualMemoryAccessType, __all__ = ['VirtualMemoryBuffer', 'VirtualMemoryResource', 'VirtualMemoryResourceOptions'] _HOST_LOCATION_TYPES = frozenset({VirtualMemoryLocationType.HOST, VirtualMemoryLocationType.HOST_NUMA, VirtualMemoryLocationType.HOST_NUMA_CURRENT}) -_IPC_HANDLE_TYPES = frozenset({VirtualMemoryHandleType.POSIX_FD}) if platform.system() == 'Linux' else frozenset() +_IPC_HANDLE_TYPES = frozenset({VirtualMemoryHandleType.POSIX_FD, VirtualMemoryHandleType.FABRIC}) if platform.system() == 'Linux' else frozenset() @dataclass class VirtualMemoryResourceOptions: @@ -37,10 +39,21 @@ class VirtualMemoryResourceOptions: handle_type: :obj:`~_memory.VirtualMemoryHandleType` | str | None Export handle type for the physical allocation, and the switch for sharing buffers with other processes (see - :attr:`VirtualMemoryResource.is_ipc_enabled`). Use ``"posix_fd"`` on - if you plan to import/export the allocation. Use `None` if you - don't need an exportable handle. The default on Windows is `None`, - "posix_fd" otherwise. ``location_type="host"`` requires `None`. + :attr:`VirtualMemoryResource.is_ipc_enabled`). Use ``"posix_fd"`` or + ``"fabric"`` on Linux if you plan to import/export the allocation. + Fabric handles work with plain ``pickle`` and pin nothing: keep the + exporting buffer alive until every importer has imported it. Sharing + is supported on one node; multi-node sharing is untested. Fabric needs + an NVLink fabric and an accessible IMEX channel + (``/dev/nvidia-caps-imex-channels/channel*``); construction raises + ``RuntimeError`` if the device reports no fabric handle support. A + device can report support while the allocation is refused, because + the attribute does not check for an NVLink fabric and older drivers + do not check for an IMEX channel; the allocation then fails with a + driver error that says so. + Use `None` if you don't need an exportable handle. The default is + `None` on Windows and ``"posix_fd"`` otherwise. + ``location_type="host"`` requires `None`. gpu_direct_rdma: bool Hint that the allocation should be GDR-capable (if supported). granularity: :obj:`~_memory.VirtualMemoryGranularityType` | str @@ -108,10 +121,15 @@ class VirtualMemoryBuffer(Buffer): freed when the last buffer that maps it closes. """ @property - def ipc_descriptor(self) -> VirtualMemoryFdBufferDescriptor: + def ipc_descriptor(self) -> VirtualMemoryFdBufferDescriptor | VirtualMemoryFabricBufferDescriptor: """A new descriptor for sharing this buffer with other processes. - Every access exports the physical allocations that back the buffer + The descriptor type follows the resource's ``handle_type``. Fabric + descriptors carry plain bytes and pin nothing: keep the exporting + buffer alive until every importer has imported it. Plain ``pickle`` + works for fabric descriptors and buffers. + + For ``"posix_fd"``, every access exports the physical allocations again and returns a new descriptor that owns one file descriptor per allocation; the file descriptors close when the descriptor is released. Keep the descriptor in a variable while you use its @@ -185,8 +203,9 @@ class VirtualMemoryResource(MemoryResource): A shared buffer's descriptor comes from the exporting process and is not trusted: :meth:`Buffer.from_ipc_descriptor` checks what it can, and the driver rejects a size that does not match the exported allocation. Unpickling a shared buffer performs a live import, - so unpickle buffers only from a trusted principal. A descriptor pins the physical memory - while it exists; release it when the receiver has imported it. + so unpickle buffers only from a trusted principal. A POSIX fd descriptor pins the physical + memory while it exists; release it when the receiver has imported it. Fabric descriptors + pin nothing; keep the exporting buffer alive until every importer has imported it. Notes ----- @@ -201,7 +220,7 @@ class VirtualMemoryResource(MemoryResource): :meth:`Buffer.set_deallocation_stream`. Buffers can be shared with other processes when ``config.handle_type`` - is ``"posix_fd"`` (Linux), the only handle type cuda.core shares today; + is ``"posix_fd"`` or ``"fabric"`` on Linux; ``handle_type`` is the switch and :attr:`is_ipc_enabled` the query. The rules that follow describe POSIX file descriptors. :attr:`Buffer.ipc_descriptor` exports the physical allocations that back @@ -218,8 +237,22 @@ class VirtualMemoryResource(MemoryResource): ``VirtualMemoryFdBufferDescriptor.from_fds()``. The importing resource maps the memory for its device and the devices in its ``peers`` option, with its own access options. A descriptor pins the physical memory while - it exists, in every process that holds one, and nothing else does. A - buffer that contains imported memory (an import, or anything + it exists, in every process that holds one, and nothing else does. + Fabric descriptors carry one opaque 64-byte handle per allocation and work + with plain ``pickle``; they pin nothing, so the exporter must keep the + buffer alive until every importer has imported it. Rebuild handles sent + through a transport of your own with + ``VirtualMemoryFabricBufferDescriptor.from_handles()``. Fabric sharing is + supported on one node; multi-node sharing is untested. It requires a device + on an NVLink fabric and an accessible IMEX channel + (``/dev/nvidia-caps-imex-channels/channel*``); construction raises + ``RuntimeError`` when the device reports no fabric handle support. A device + can report support while the allocation is refused, because the attribute + does not check for an NVLink fabric and older drivers do not check for an + IMEX channel; the allocation then fails with a driver error that says so. + Fabric-handle sharing was validated on NVIDIA internal hardware and is not + covered by the project's CI in this release. + A buffer that contains imported memory (an import, or anything :meth:`modify_allocation` derived from one) cannot be exported again; forward the descriptor it came from, or copy into a buffer you own. """ @@ -348,15 +381,15 @@ class VirtualMemoryResource(MemoryResource): def is_ipc_enabled(self) -> bool: """Whether buffers of this resource can be shared with other processes. - True when ``config.handle_type`` is ``"posix_fd"`` on Linux and the - memory lives on a device; ``handle_type`` is the only switch, there is + True when ``config.handle_type`` is ``"posix_fd"`` or ``"fabric"`` on + Linux and the memory lives on a device; ``handle_type`` is the only switch, there is no separate option. With ``handle_type=None`` the allocations cannot - be exported, Win32 KMT handles are not transported by cuda.core, and - fabric handles are not supported yet. Host-located virtual memory - (``location_type`` ``"host"``, ``"host_numa"``, or + be exported, and Win32 KMT handles are not transported by cuda.core. + This is a configuration query and makes no driver call. Host-located + virtual memory (``location_type`` ``"host"``, ``"host_numa"``, or ``"host_numa_current"``) is not shared yet. """ - def _import_ipc_buffer(self, desc: VirtualMemoryFdBufferDescriptor, stream) -> VirtualMemoryBuffer: + def _import_ipc_buffer(self, desc: _VirtualMemoryDescriptor, stream) -> VirtualMemoryBuffer: """Import a buffer that another process exported; see :meth:`Buffer.from_ipc_descriptor`. Every exported allocation is imported with this resource's handle diff --git a/cuda_core/cuda/core/_memory/_virtual_memory_resource.pyx b/cuda_core/cuda/core/_memory/_virtual_memory_resource.pyx index 9af21db3ff0f..db6bae19fb56 100644 --- a/cuda_core/cuda/core/_memory/_virtual_memory_resource.pyx +++ b/cuda_core/cuda/core/_memory/_virtual_memory_resource.pyx @@ -4,10 +4,11 @@ from __future__ import annotations -from libc.stdint cimport uintptr_t from libc.string cimport memset from libcpp.vector cimport vector +cimport cpython + from cuda.bindings cimport cydriver from cuda.core._memory._buffer cimport ( Buffer, @@ -18,6 +19,8 @@ from cuda.core._memory._buffer cimport ( from cuda.core._memory._ipc cimport ( IPCAllocationHandle, IPCDataForBuffer, + _VirtualMemoryDescriptor, + VirtualMemoryFabricBufferDescriptor, VirtualMemoryFdBufferDescriptor, ) from cuda.core._rt cimport ( @@ -83,9 +86,12 @@ _HOST_LOCATION_TYPES = frozenset( ) # Handle types whose exported handles cuda.core can carry to another process. -# POSIX file descriptors travel through multiprocessing on Linux. Win32 KMT -# handles have no transport here, and fabric handles are not supported yet. -_IPC_HANDLE_TYPES = frozenset({VirtualMemoryHandleType.POSIX_FD}) if platform.system() == "Linux" else frozenset() +# POSIX file descriptors and plain fabric handles are transported on Linux. +# Win32 KMT handles have no transport here. +_IPC_HANDLE_TYPES = ( + frozenset({VirtualMemoryHandleType.POSIX_FD, VirtualMemoryHandleType.FABRIC}) + if platform.system() == "Linux" else frozenset() +) @dataclass @@ -105,10 +111,21 @@ class VirtualMemoryResourceOptions: handle_type: :obj:`~_memory.VirtualMemoryHandleType` | str | None Export handle type for the physical allocation, and the switch for sharing buffers with other processes (see - :attr:`VirtualMemoryResource.is_ipc_enabled`). Use ``"posix_fd"`` on - if you plan to import/export the allocation. Use `None` if you - don't need an exportable handle. The default on Windows is `None`, - "posix_fd" otherwise. ``location_type="host"`` requires `None`. + :attr:`VirtualMemoryResource.is_ipc_enabled`). Use ``"posix_fd"`` or + ``"fabric"`` on Linux if you plan to import/export the allocation. + Fabric handles work with plain ``pickle`` and pin nothing: keep the + exporting buffer alive until every importer has imported it. Sharing + is supported on one node; multi-node sharing is untested. Fabric needs + an NVLink fabric and an accessible IMEX channel + (``/dev/nvidia-caps-imex-channels/channel*``); construction raises + ``RuntimeError`` if the device reports no fabric handle support. A + device can report support while the allocation is refused, because + the attribute does not check for an NVLink fabric and older drivers + do not check for an IMEX channel; the allocation then fails with a + driver error that says so. + Use `None` if you don't need an exportable handle. The default is + `None` on Windows and ``"posix_fd"`` otherwise. + ``location_type="host"`` requires `None`. gpu_direct_rdma: bool Hint that the allocation should be GDR-capable (if supported). granularity: :obj:`~_memory.VirtualMemoryGranularityType` | str @@ -248,27 +265,38 @@ cdef int _raise_last_error() except -1: ) -cdef inline int _attach_note(exc, str detail) except -1: - # PEP 678 notes (Python 3.11+) keep the detail separable from the message; - # older interpreters get it appended to the message instead. - add_note = getattr(exc, "add_note", None) - if add_note is not None: - add_note(detail) - else: - exc.args = (f"{exc.args[0]} ({detail})", *exc.args[1:]) - return 0 - - cdef int _raise_last_error_noting(str detail) except -1: """Raise the status a handle factory recorded, with ``detail`` attached as a note.""" try: _raise_last_error() except Exception as exc: - _attach_note(exc, detail) + exc.add_note(detail) raise return 0 +cdef int _raise_allocation_error( + cydriver.CUresult status, cydriver.CUmemAllocationHandleType requested_handle_types +) except -1: + """Raise a physical-allocation failure, noting possible fabric configuration errors.""" + if (requested_handle_types == cydriver.CU_MEM_HANDLE_TYPE_FABRIC + and status in (cydriver.CUDA_ERROR_NOT_PERMITTED, + cydriver.CUDA_ERROR_NOT_SUPPORTED, + cydriver.CUDA_ERROR_INVALID_VALUE)): + _check_noting( + status, + "while creating a physical allocation with a fabric handle; fabric handles need an NVLink fabric " + "and an accessible IMEX channel, and a device can report support while the allocation is refused " + "(the attribute does not check for an NVLink fabric, and older drivers do not check for an IMEX " + "channel)" + ) + HANDLE_RETURN(status) + raise RuntimeError( + "internal cuda.core error, please report: a physical allocation factory " + "returned an empty handle without recording a CUDA error" + ) + + cdef int _check_noting(cydriver.CUresult status, str detail) except -1: """``HANDLE_RETURN(status)``, with ``detail`` attached to the raised error as a note.""" if status == cydriver.CUDA_SUCCESS: @@ -276,7 +304,7 @@ cdef int _check_noting(cydriver.CUresult status, str detail) except -1: try: HANDLE_RETURN(status) except Exception as exc: - _attach_note(exc, detail) + exc.add_note(detail) raise return 0 @@ -306,10 +334,15 @@ cdef class VirtualMemoryBuffer(Buffer): """ @property - def ipc_descriptor(self) -> VirtualMemoryFdBufferDescriptor: + def ipc_descriptor(self) -> VirtualMemoryFdBufferDescriptor | VirtualMemoryFabricBufferDescriptor: """A new descriptor for sharing this buffer with other processes. - Every access exports the physical allocations that back the buffer + The descriptor type follows the resource's ``handle_type``. Fabric + descriptors carry plain bytes and pin nothing: keep the exporting + buffer alive until every importer has imported it. Plain ``pickle`` + works for fabric descriptors and buffers. + + For ``"posix_fd"``, every access exports the physical allocations again and returns a new descriptor that owns one file descriptor per allocation; the file descriptors close when the descriptor is released. Keep the descriptor in a variable while you use its @@ -347,6 +380,8 @@ cdef class VirtualMemoryBuffer(Buffer): # Buffers from a trusted principal. Must not serialize the parent's stream. Buffer_check_open(self) desc = _export_ipc_descriptor(self) + if isinstance(desc, VirtualMemoryFabricBufferDescriptor): + return Buffer._reduce_helper, (self.memory_resource, desc) popen = _mp_context.get_spawning_popen() if popen is not None: # A Queue, Pipe, or Pool duplicates the file descriptors while this @@ -419,8 +454,9 @@ cdef class VirtualMemoryResource(MemoryResource): A shared buffer's descriptor comes from the exporting process and is not trusted: :meth:`Buffer.from_ipc_descriptor` checks what it can, and the driver rejects a size that does not match the exported allocation. Unpickling a shared buffer performs a live import, - so unpickle buffers only from a trusted principal. A descriptor pins the physical memory - while it exists; release it when the receiver has imported it. + so unpickle buffers only from a trusted principal. A POSIX fd descriptor pins the physical + memory while it exists; release it when the receiver has imported it. Fabric descriptors + pin nothing; keep the exporting buffer alive until every importer has imported it. Notes ----- @@ -435,7 +471,7 @@ cdef class VirtualMemoryResource(MemoryResource): :meth:`Buffer.set_deallocation_stream`. Buffers can be shared with other processes when ``config.handle_type`` - is ``"posix_fd"`` (Linux), the only handle type cuda.core shares today; + is ``"posix_fd"`` or ``"fabric"`` on Linux; ``handle_type`` is the switch and :attr:`is_ipc_enabled` the query. The rules that follow describe POSIX file descriptors. :attr:`Buffer.ipc_descriptor` exports the physical allocations that back @@ -452,8 +488,22 @@ cdef class VirtualMemoryResource(MemoryResource): ``VirtualMemoryFdBufferDescriptor.from_fds()``. The importing resource maps the memory for its device and the devices in its ``peers`` option, with its own access options. A descriptor pins the physical memory while - it exists, in every process that holds one, and nothing else does. A - buffer that contains imported memory (an import, or anything + it exists, in every process that holds one, and nothing else does. + Fabric descriptors carry one opaque 64-byte handle per allocation and work + with plain ``pickle``; they pin nothing, so the exporter must keep the + buffer alive until every importer has imported it. Rebuild handles sent + through a transport of your own with + ``VirtualMemoryFabricBufferDescriptor.from_handles()``. Fabric sharing is + supported on one node; multi-node sharing is untested. It requires a device + on an NVLink fabric and an accessible IMEX channel + (``/dev/nvidia-caps-imex-channels/channel*``); construction raises + ``RuntimeError`` when the device reports no fabric handle support. A device + can report support while the allocation is refused, because the attribute + does not check for an NVLink fabric and older drivers do not check for an + IMEX channel; the allocation then fails with a driver error that says so. + Fabric-handle sharing was validated on NVIDIA internal hardware and is not + covered by the project's CI in this release. + A buffer that contains imported memory (an import, or anything :meth:`modify_allocation` derived from one) cannot be exported again; forward the descriptor it came from, or copy into a buffer you own. """ @@ -472,6 +522,13 @@ cdef class VirtualMemoryResource(MemoryResource): self.device = None if self.device is not None and not self.device.properties.virtual_memory_management_supported: raise RuntimeError("VirtualMemoryResource requires CUDA VMM API support") + if (self.config.handle_type == VirtualMemoryHandleType.FABRIC + and self.device is not None and not self.device.properties.handle_type_fabric_supported): + raise RuntimeError( + "fabric handles need a device on an NVLink fabric and an accessible IMEX channel " + "(/dev/nvidia-caps-imex-channels/channel*); " + f"device {self.device.device_id} reports no fabric handle support" + ) self._check_config(self.config) def __reduce__(self) -> tuple[object, ...]: @@ -685,7 +742,7 @@ cdef class VirtualMemoryResource(MemoryResource): with nogil: h_alloc = create_mem_allocation_handle(aligned, prop, descs.data(), descs.size()) if not h_alloc: - _raise_last_error() + _raise_allocation_error(get_last_error(), prop.requestedHandleTypes) with nogil: h_res = create_va_reservation_handle(aligned, addr_align, hint) if not h_res: @@ -838,7 +895,7 @@ cdef class VirtualMemoryResource(MemoryResource): with nogil: h_alloc = create_mem_allocation_handle(add, prop, descs.data(), descs.size()) if not h_alloc: - _raise_last_error() + _raise_allocation_error(get_last_error(), prop.requestedHandleTypes) with nogil: h_map = create_va_mapping_handle(base + total, h_alloc, h_res) if not h_map: @@ -871,7 +928,7 @@ cdef class VirtualMemoryResource(MemoryResource): with nogil: h_alloc = create_mem_allocation_handle(add, prop, descs.data(), descs.size()) if not h_alloc: - _raise_last_error() + _raise_allocation_error(get_last_error(), prop.requestedHandleTypes) with nogil: m2 = create_va_mapping_handle(base_new + offset, h_alloc, h_res_new) if not m2: @@ -940,12 +997,12 @@ cdef class VirtualMemoryResource(MemoryResource): def is_ipc_enabled(self) -> bool: """Whether buffers of this resource can be shared with other processes. - True when ``config.handle_type`` is ``"posix_fd"`` on Linux and the - memory lives on a device; ``handle_type`` is the only switch, there is + True when ``config.handle_type`` is ``"posix_fd"`` or ``"fabric"`` on + Linux and the memory lives on a device; ``handle_type`` is the only switch, there is no separate option. With ``handle_type=None`` the allocations cannot - be exported, Win32 KMT handles are not transported by cuda.core, and - fabric handles are not supported yet. Host-located virtual memory - (``location_type`` ``"host"``, ``"host_numa"``, or + be exported, and Win32 KMT handles are not transported by cuda.core. + This is a configuration query and makes no driver call. Host-located + virtual memory (``location_type`` ``"host"``, ``"host_numa"``, or ``"host_numa_current"``) is not shared yet. """ return ( @@ -953,7 +1010,7 @@ cdef class VirtualMemoryResource(MemoryResource): and self.config.location_type not in _HOST_LOCATION_TYPES ) - def _import_ipc_buffer(self, VirtualMemoryFdBufferDescriptor desc not None, stream) -> VirtualMemoryBuffer: + def _import_ipc_buffer(self, _VirtualMemoryDescriptor desc not None, stream) -> VirtualMemoryBuffer: """Import a buffer that another process exported; see :meth:`Buffer.from_ipc_descriptor`. Every exported allocation is imported with this resource's handle @@ -982,19 +1039,20 @@ cdef class VirtualMemoryResource(MemoryResource): cdef size_t gran, gran_min = 0, addr_align, chunk, total = 0, offset = 0 cdef Py_ssize_t n, i cdef cydriver.CUdeviceptr hint - cdef int handle_type, fd + cdef int handle_type + cdef cydriver.CUmemFabricHandle fh cdef void* os_handle if not self.is_ipc_enabled: raise RuntimeError("Memory resource is not IPC-enabled") handle_type = int(VirtualMemoryResourceOptions._handle_type_to_driver(cfg.handle_type)) - if desc._handle_type != handle_type: + if desc.driver_handle_type() != handle_type: raise ValueError( "the descriptor's handle type does not match this resource's " f"handle_type={str(cfg.handle_type)!r}; import it with a resource configured like the exporter's" ) n = len(desc._chunk_sizes) - if n != len(desc._handles): + if n != len(desc.handles): raise ValueError("malformed VirtualMemoryResource buffer descriptor") if stream is not None: s = Stream_accept(stream) @@ -1046,19 +1104,25 @@ cdef class VirtualMemoryResource(MemoryResource): # buffer therefore does not keep the descriptor; its file descriptors # live only as long as the caller holds the descriptor object. for i in range(n): - fd = int(desc._handles[i]) # raises if the handle was closed chunk = desc._chunk_sizes[i] - os_handle = fd + os_handle = desc.handle_ptr(i, &fh) with nogil: h_alloc = import_mem_allocation_handle( os_handle, handle_type, chunk, descs.data(), descs.size()) if not h_alloc: - _raise_last_error_noting( - f"while importing chunk {i + 1} of {n} of a VirtualMemoryResource buffer descriptor; either " - "the shared handle does not refer to a CUDA allocation exported with " - f"handle_type={str(cfg.handle_type)!r}, or the device that owns the memory is not usable in " - "this process (for example, CUDA_VISIBLE_DEVICES hides it)" - ) + if handle_type == cydriver.CU_MEM_HANDLE_TYPE_FABRIC: + note = ( + f"while importing chunk {i + 1} of {n} of a fabric buffer descriptor; the handle may be " + "stale (the exporting buffer was closed), forged, or exported on a different IMEX channel" + ) + else: + note = ( + f"while importing chunk {i + 1} of {n} of a VirtualMemoryResource buffer descriptor; either " + "the shared handle does not refer to a CUDA allocation exported with " + f"handle_type={str(cfg.handle_type)!r}, or the device that owns the memory is not usable in " + "this process (for example, CUDA_VISIBLE_DEVICES hides it)" + ) + _raise_last_error_noting(note) # The exporter chose where the memory lives. This resource must map # memory of that kind on that device, or its access descriptors # would describe the wrong location. @@ -1068,8 +1132,23 @@ cdef class VirtualMemoryResource(MemoryResource): prop.location.type == cydriver.CU_MEM_LOCATION_TYPE_DEVICE and imported_prop.location.id != prop.location.id ): + owner_detail = "" + owner_uuid = getattr(desc, "owner_uuid", None) + if owner_uuid is not None: + try: + owner = _device_from_uuid(owner_uuid) + except RuntimeError: + owner_detail = ( + f"memory belongs to the device with UUID {owner_uuid}, " + "which is not visible in this process; " + ) + else: + owner_detail = ( + f"memory belongs to the device with UUID {owner_uuid}, " + f"which is device {owner.device_id} in this process; " + ) raise ValueError( - f"chunk {i + 1} of the descriptor is memory on {_describe_location(imported_prop.location)}, " + f"{owner_detail}chunk {i + 1} of the descriptor is memory on {_describe_location(imported_prop.location)}, " f"but this resource maps memory on {_describe_location(prop.location)}; import the descriptor " "with a VirtualMemoryResource for the device that owns the memory, and name other devices " "in its peers option" @@ -1129,7 +1208,7 @@ def _reconstruct_virtual_memory_resource( return cls(device, replace(config, peers=peers)) -cdef VirtualMemoryFdBufferDescriptor _export_ipc_descriptor(Buffer buf): +cdef _VirtualMemoryDescriptor _export_ipc_descriptor(Buffer buf): """Export the allocations that back ``buf`` as shareable handles, in address order. Only the allocations that cover ``buf.size`` are exported; a buffer's size @@ -1149,6 +1228,7 @@ cdef VirtualMemoryFdBufferDescriptor _export_ipc_descriptor(Buffer buf): cdef size_t i, n, chunk, offset = 0 cdef int handle_type cdef int fd = -1 + cdef cydriver.CUmemFabricHandle fh cdef list sizes = [] cdef list handles = [] @@ -1173,6 +1253,16 @@ cdef VirtualMemoryFdBufferDescriptor _export_ipc_descriptor(Buffer buf): for i in range(n): h_alloc = allocs[i] chunk = mem_allocation_size(h_alloc) + if handle_type == cydriver.CU_MEM_HANDLE_TYPE_FABRIC: + # The driver fills its fields of the 64 bytes and leaves the padding; zero it first so that two + # exports of one allocation carry the same bytes and no stack bytes travel in a descriptor. + memset(&fh, 0, sizeof(fh)) + with nogil: + HANDLE_RETURN(cydriver.cuMemExportToShareableHandle( + &fh, as_cu(h_alloc), handle_type, 0)) + handles.append(cpython.PyBytes_FromStringAndSize(fh.data, sizeof(fh.data))) + sizes.append(chunk) + continue with nogil: status = cydriver.cuMemExportToShareableHandle( &fd, as_cu(h_alloc), handle_type, 0) @@ -1191,4 +1281,7 @@ cdef VirtualMemoryFdBufferDescriptor _export_ipc_descriptor(Buffer buf): # The handle owns the fd now; if append fails, the handle closes it once. handles.append(handle) sizes.append(chunk) - return VirtualMemoryFdBufferDescriptor._from_exports(handle_type, tuple(sizes), tuple(handles), buf._size) + if handle_type == cydriver.CU_MEM_HANDLE_TYPE_FABRIC: + return VirtualMemoryFabricBufferDescriptor._from_exports( + tuple(sizes), tuple(handles), buf._size, mr.device.uuid) + return VirtualMemoryFdBufferDescriptor._from_exports(tuple(sizes), tuple(handles), buf._size) diff --git a/cuda_core/docs/source/api_private.rst b/cuda_core/docs/source/api_private.rst index ccec08ce5af9..9a061a9dde37 100644 --- a/cuda_core/docs/source/api_private.rst +++ b/cuda_core/docs/source/api_private.rst @@ -49,6 +49,7 @@ CUDA runtime _memory._ipc.IPCAllocationHandle _memory._ipc.IPCBufferDescriptor _memory._ipc.VirtualMemoryFdBufferDescriptor + _memory._ipc.VirtualMemoryFabricBufferDescriptor _memory._managed_buffer.AccessedBySetProxy _memory._memory_pool._MemPoolAttributes diff --git a/cuda_core/docs/source/release/1.3.0-notes.rst b/cuda_core/docs/source/release/1.3.0-notes.rst index 167d4eafb733..4feeb7d03703 100644 --- a/cuda_core/docs/source/release/1.3.0-notes.rst +++ b/cuda_core/docs/source/release/1.3.0-notes.rst @@ -122,21 +122,39 @@ New features and proceeds without the synchronization. - :class:`VirtualMemoryResource` buffers can now be shared with other - processes the way pool-backed buffers are. :attr:`Buffer.ipc_descriptor` - exports every physical allocation that backs a :class:`VirtualMemoryBuffer` - as a POSIX file descriptor, :meth:`Buffer.from_ipc_descriptor` imports the - descriptor with a ``VirtualMemoryResource`` of the receiving process for the - device that owns the memory, and a buffer or its descriptor can be sent - through ``multiprocessing`` directly (plain ``pickle`` cannot carry file - descriptors). :attr:`VirtualMemoryResource.is_ipc_enabled` is ``True`` when - the resource's ``handle_type`` is ``"posix_fd"`` on Linux and the memory - lives on a device; host-located virtual memory is not shared yet. A grown buffer - imports as one contiguous range. A descriptor holds one file descriptor per - physical allocation and pins the memory while it exists; nothing else does. - A buffer that contains imported memory cannot be exported again. For a - transport of your own, the descriptor exposes ``fds``, ``sizes``, and - ``size``, and ``VirtualMemoryFdBufferDescriptor.from_fds()`` rebuilds it - in the receiver. Fabric handles are not shared yet. + processes the way pool-backed buffers are, through two transports chosen + by the resource's ``handle_type``. :attr:`Buffer.ipc_descriptor` exports + every physical allocation that backs a :class:`VirtualMemoryBuffer`, + :meth:`Buffer.from_ipc_descriptor` imports the descriptor with a + ``VirtualMemoryResource`` of the receiving process for the device that owns + the memory, and :attr:`VirtualMemoryResource.is_ipc_enabled` is ``True`` + when ``handle_type`` is ``"posix_fd"`` or ``"fabric"`` on Linux and the + memory lives on a device; host-located virtual memory is not shared yet. A + grown buffer imports as one contiguous range, and a buffer that contains + imported memory cannot be exported again. + + With ``"posix_fd"``, each allocation is exported as a POSIX file + descriptor; a buffer or its descriptor travels through ``multiprocessing`` + directly (plain ``pickle`` cannot carry file descriptors). The descriptor + holds one file descriptor per physical allocation and pins the memory while + it exists; nothing else does. For a transport of your own, it exposes + ``fds``, ``sizes``, and ``size``, and + ``VirtualMemoryFdBufferDescriptor.from_fds()`` rebuilds it in the receiver. + + With ``"fabric"``, each allocation is exported as a 64-byte fabric handle; + the descriptor is plain data that ``pickle`` carries, and it pins nothing: + keep the exporting buffer alive until every importer has imported it. + ``VirtualMemoryFabricBufferDescriptor.from_handles()`` rebuilds a descriptor + received through a transport of your own. Sharing is supported on one node; + multi-node sharing is untested. Fabric requires an NVLink fabric and an + accessible IMEX channel (``/dev/nvidia-caps-imex-channels/channel*``); + resource construction raises ``RuntimeError`` when the device reports no + fabric handle support. A device can report support while the allocation is + refused, because the attribute does not check for an NVLink fabric and + older drivers do not check for an IMEX channel; the allocation then fails + with a driver error that says so. Fabric-handle sharing was + validated on NVIDIA internal hardware and is not covered by the project's + CI in this release. (`#2980 `__) Fixes and enhancements diff --git a/cuda_core/tests/conftest.py b/cuda_core/tests/conftest.py index e62f89b82517..eeee15dff2ac 100644 --- a/cuda_core/tests/conftest.py +++ b/cuda_core/tests/conftest.py @@ -425,6 +425,70 @@ def vmm_ipc_device_x2(device_x2): yield devices +_fabric_allocation_error = {} # device ordinal -> "" when a fabric allocation works there, else the status + + +def _require_vmm_fabric_device(device): + """Return a VMM device with fabric handles and an accessible IMEX channel, or skip.""" + from cuda_python_test_helpers import IS_WINDOWS, IS_WSL + + if IS_WINDOWS or IS_WSL: + pytest.skip("Sharing fabric handles requires Linux") + if not device.properties.virtual_memory_management_supported: + pytest.skip("Virtual memory management is not supported on this device") + if not device.properties.handle_type_fabric_supported: + pytest.skip("Fabric handles need an NVLink fabric and an accessible IMEX channel") + # The attribute does not check for an NVLink fabric, and older drivers do not check for an IMEX + # channel either, so it is true on the CI runners (no fabric, no channel), where the allocation + # itself is refused. Probe once per device. + if device.device_id not in _fabric_allocation_error: + from cuda.core import Device, VirtualMemoryResource, VirtualMemoryResourceOptions + from cuda.core._utils.cuda_utils import CUDAError + + current = Device() + device.set_current() + try: + mr = VirtualMemoryResource(device, VirtualMemoryResourceOptions(handle_type="fabric")) + mr.allocate(1).close() + _fabric_allocation_error[device.device_id] = "" + except CUDAError as exc: + # Only a refused physical allocation means "no fabric here" (NOT_PERMITTED on the CI runners, + # INVALID_VALUE on an H200 without an IMEX channel). VirtualMemoryResource attaches its note about + # the fabric and IMEX requirements at that stage alone; + # a failure of the reservation, the mapping, or the stream setup is a real error and propagates. + if "fabric handle" not in " ".join(getattr(exc, "__notes__", ())): + raise + _fabric_allocation_error[device.device_id] = str(exc).split(":", 1)[0] + finally: + current.set_current() + if _fabric_allocation_error[device.device_id]: + pytest.skip( + "The device reports fabric handle support, but a fabric allocation is refused here: " + + _fabric_allocation_error[device.device_id] + ) + return device + + +@pytest.fixture +def vmm_fabric_device(init_cuda): + """A fabric-capable VMM device, tracking spawned children for teardown.""" + from helpers.child_processes import track_child_processes + + device = _require_vmm_fabric_device(init_cuda) + with track_child_processes(): + yield device + + +@pytest.fixture +def vmm_fabric_device_x2(device_x2): + """Two fabric-capable VMM devices, tracking spawned children for teardown.""" + from helpers.child_processes import track_child_processes + + devices = tuple(_require_vmm_fabric_device(device) for device in device_x2) + with track_child_processes(): + yield devices + + def _make_ipc_memory_resource(kind, device): """Create an IPC-enabled memory resource of the given kind, or skip when the device cannot.""" if kind == "device": diff --git a/cuda_core/tests/memory_ipc/test_errors.py b/cuda_core/tests/memory_ipc/test_errors.py index aec81c82c6e3..a036c87363ba 100644 --- a/cuda_core/tests/memory_ipc/test_errors.py +++ b/cuda_core/tests/memory_ipc/test_errors.py @@ -243,7 +243,7 @@ def PARENT_ACTION(self, queue): else: # The VMM descriptor carries the exported handles and their sizes; # forge only the buffer size. - oversized = type(desc)._from_exports(desc._handle_type, desc._chunk_sizes, desc._handles, desc.size * 100) + oversized = type(desc)._from_exports(desc._chunk_sizes, desc._handles, desc.size * 100) stream.sync() queue.put(oversized) diff --git a/cuda_core/tests/memory_ipc/test_vmm_fabric.py b/cuda_core/tests/memory_ipc/test_vmm_fabric.py new file mode 100644 index 000000000000..bb0491c4dcb1 --- /dev/null +++ b/cuda_core/tests/memory_ipc/test_vmm_fabric.py @@ -0,0 +1,361 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +"""Single-node VMM sharing with plain fabric handles (issue #2980).""" + +import ctypes +import gc +import multiprocessing as mp +import os +import pickle +from contextlib import ExitStack, closing + +import pytest +from helpers.child_processes import child_timeout_sec, kill_subprocesses, warmup_multiprocessing + +from cuda.bindings import driver +from cuda.core import Buffer, Device, VirtualMemoryResource, VirtualMemoryResourceOptions +from cuda.core._device import _device_from_uuid +from cuda.core._memory._ipc import VirtualMemoryFabricBufferDescriptor +from cuda.core._utils.cuda_utils import CUDAError, handle_return +from cuda_python_test_helpers import IS_WINDOWS, IS_WSL + +CHILD_TIMEOUT_SEC = child_timeout_sec() +pytestmark = pytest.mark.parallel_threads_limit(4) + + +def _resource(device, **options): + options.setdefault("handle_type", "fabric") + return VirtualMemoryResource(device, VirtualMemoryResourceOptions(**options)) + + +def _fill(buf, value): + handle_return(driver.cuMemsetD8(int(buf.handle), value, buf.size)) + handle_return(driver.cuCtxSynchronize()) + + +def _read(buf): + host = (ctypes.c_ubyte * 16)() + handle_return(driver.cuMemcpyDtoH(ctypes.addressof(host), int(buf.handle), 16)) + return bytes(host) + + +def _check_import_error(exc): + # The driver's status for a bad handle varies with the IMEX setup; the note is cuda.core's and does not. + notes = " ".join(exc.__notes__) + for detail in ("stale", "exporting buffer was closed", "forged", "different IMEX channel"): + assert detail in notes + + +def _exchange(owner_uuid, payload): + device = _device_from_uuid(owner_uuid) + device.set_current() + buf = ( + Buffer.from_ipc_descriptor(_resource(device), payload, stream=device.default_stream) + if isinstance(payload, VirtualMemoryFabricBufferDescriptor) + else payload + ) + with buf: + seen = _read(buf) + _fill(buf, 0x62) + return seen + + +def _child_exchange(owner_uuid, mode, incoming, outgoing): + if mode == "queue": + payload = incoming.get(timeout=CHILD_TIMEOUT_SEC) + elif mode == "pipe": + assert incoming.poll(CHILD_TIMEOUT_SEC), "no payload from parent" + payload = incoming.recv() + else: + payload = incoming + outgoing.send(_exchange(owner_uuid, payload)) + outgoing.close() + + +def _round_trip(mode, owner_uuid, payload): + if mode == "pool": + with mp.Pool(1) as pool: + return pool.apply_async(_exchange, (owner_uuid, payload)).get(timeout=CHILD_TIMEOUT_SEC) + with ExitStack() as stack: + receive, send = mp.Pipe(duplex=False) + stack.enter_context(receive) + stack.enter_context(send) + if mode == "queue": + incoming = mp.Queue() + stack.callback(incoming.join_thread) + stack.callback(incoming.close) + child_input = incoming + elif mode == "pipe": + child_input, incoming = mp.Pipe(duplex=False) + stack.enter_context(child_input) + stack.enter_context(incoming) + else: + child_input = payload + process = stack.enter_context( + closing(mp.Process(target=_child_exchange, args=(owner_uuid, mode, child_input, send))) + ) + try: + process.start() + send.close() + if mode == "queue": + incoming.put(payload) + elif mode == "pipe": + child_input.close() + incoming.send(payload) + assert receive.poll(CHILD_TIMEOUT_SEC), "child did not respond" + result = receive.recv() + process.join(timeout=CHILD_TIMEOUT_SEC) + finally: + survivors = kill_subprocesses(process) + assert not survivors, "child did not exit within timeout" + assert process.exitcode == 0 + return result + + +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_export_shape(vmm_fabric_device): + device = vmm_fabric_device + mr = _resource(device) + with mr.allocate(1) as first, mr.modify_allocation(first, 2 * first.size) as grown: + desc = grown.ipc_descriptor + assert desc.handle_type == "fabric" + assert desc.owner_uuid == device.uuid + assert desc.sizes == (first.size, first.size) + assert desc.size == grown.size == sum(desc.sizes) + assert all(isinstance(handle, bytes) and len(handle) == 64 for handle in desc.handles) + assert len(desc.handles) == 2 + assert desc.handles[0] != desc.handles[1] + assert ( + desc == grown.ipc_descriptor + ) # the driver caches the packet per allocation; the export zeroes its padding + assert pickle.loads(pickle.dumps(desc)) == desc # noqa: S301 our own plain data + prefix = VirtualMemoryFabricBufferDescriptor.from_handles(desc.handles, desc.sizes, size=1) + with Buffer.from_ipc_descriptor(mr, prefix, stream=device.default_stream) as alias: + assert alias.size == 1 < sum(prefix.sizes) + assert not hasattr(desc, "fds") + with mr.allocate(0) as empty: + desc = empty.ipc_descriptor + assert (desc.handles, desc.sizes, desc.size) == ((), (), 0) + with Buffer.from_ipc_descriptor(mr, desc, stream=device.default_stream) as alias: + assert alias.is_mapped and alias.size == 0 + + +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_descriptor_pickle_and_validation(): + descriptor = VirtualMemoryFabricBufferDescriptor + with pytest.raises(RuntimeError, match="cannot be instantiated directly"): + descriptor() + desc = descriptor.from_handles([bytes(64)], [4096], size=2048, owner_uuid="owner") + rebuilt = pickle.loads(pickle.dumps(desc)) # noqa: S301 our own plain data + assert rebuilt == desc and rebuilt is not desc + assert hash(rebuilt) == hash(desc) + assert rebuilt.owner_uuid == "owner" + assert desc == descriptor.from_handles(desc.handles, desc.sizes, size=desc.size, owner_uuid="other") + assert desc != descriptor.from_handles(desc.handles, desc.sizes) + assert desc != descriptor.from_handles([b"x" * 64], desc.sizes, size=desc.size) + assert desc != descriptor.from_handles(desc.handles, [8192], size=desc.size) + assert desc != object() + assert descriptor.from_handles(desc.handles, desc.sizes).size == 4096 + for handles, sizes, size in ( + ([bytes(63)], [4096], None), + ([bytes(65)], [4096], None), + ([bytearray(64)], [4096], None), + ([bytes(64)], [], None), + ([bytes(64)], [0], None), + ([bytes(64)], [-1], None), + ([bytes(64)], [1.5], None), + ([bytes(64)], [4096], 4097), + ([bytes(64)], [4096], -1), + ([bytes(64)], [4096], 1.5), + ): + with pytest.raises(ValueError): + descriptor.from_handles(handles, sizes, size=size) + + +@pytest.mark.parametrize("mode", ["queue", "pipe", "argument", "pool"]) +@pytest.mark.parametrize("send_buffer", [False, True], ids=["descriptor", "buffer"]) +@pytest.mark.thread_unsafe(reason="counts process-global file descriptors") +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_cross_process(vmm_fabric_device, mode, send_buffer): + warmup_multiprocessing() + device = vmm_fabric_device + with _resource(device).allocate(1) as buf: + _fill(buf, 0x51) + gc.collect() + before = len(os.listdir("/proc/self/fd")) + payload = buf if send_buffer else buf.ipc_descriptor + assert len(os.listdir("/proc/self/fd")) == before + assert _round_trip(mode, device.uuid, payload) == b"\x51" * 16 + assert _read(buf) == b"\x62" * 16 + gc.collect() + assert len(os.listdir("/proc/self/fd")) == before + + +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_second_gpu_and_wrong_owner(vmm_fabric_device_x2): + owner, peer = vmm_fabric_device_x2 + if not peer.can_access_peer(owner): + pytest.skip("Second device cannot access the owner's memory") + mr = _resource(owner, peers=[peer.device_id]) + with mr.allocate(1) as buf: + _fill(buf, 0x53) + desc = buf.ipc_descriptor + with pytest.raises(ValueError) as info: + Buffer.from_ipc_descriptor(_resource(peer), desc, stream=peer.default_stream) + assert f"memory belongs to the device with UUID {owner.uuid}" in str(info.value) + assert f"which is device {owner.device_id} in this process" in str(info.value) + hidden_owner = VirtualMemoryFabricBufferDescriptor.from_handles( + desc.handles, desc.sizes, size=desc.size, owner_uuid="missing-owner" + ) + with pytest.raises(ValueError, match="UUID missing-owner, which is not visible in this process"): + Buffer.from_ipc_descriptor(_resource(peer), hidden_owner, stream=peer.default_stream) + with Buffer.from_ipc_descriptor(mr, desc, stream=owner.default_stream) as alias: + # set_current replaces the top of the context stack, so switch back the same way. + peer.set_current() + try: + assert _read(alias) == b"\x53" * 16 + _fill(alias, 0x54) + finally: + owner.set_current() + assert _read(buf) == b"\x54" * 16 + buf.close() + assert _read(alias) == b"\x54" * 16 # the imported allocation owns a reference + + +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_handle_type_mismatch(vmm_ipc_device): + device = vmm_ipc_device + if not device.properties.handle_type_fabric_supported: + pytest.skip("Device does not support fabric handles") + fabric, fd = _resource(device), _resource(device, handle_type="posix_fd") + # Empty descriptors would need no import call; even these must reject a mismatch. + for exporting, importing in ((fabric, fd), (fd, fabric)): + with exporting.allocate(0) as buf, pytest.raises(ValueError, match="configured like the exporter's"): + Buffer.from_ipc_descriptor(importing, buf.ipc_descriptor, stream=device.default_stream) + + +# Fixed patterns: a random first byte of 0x01 would read as the driver's own handle type and take another error path. +@pytest.mark.parametrize("handle", [bytes(64), b"\xff" * 64], ids=["zero", "ones"]) +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_garbage(vmm_fabric_device, handle): + device = vmm_fabric_device + mr = _resource(device) + with mr.allocate(1) as buf: + desc = VirtualMemoryFabricBufferDescriptor.from_handles([handle], [buf.size]) + with pytest.raises(CUDAError) as info: + Buffer.from_ipc_descriptor(mr, desc, stream=device.default_stream) + _check_import_error(info.value) + + +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_stale_descriptor(vmm_fabric_device): + device = vmm_fabric_device + mr = _resource(device) + with mr.allocate(1) as buf: + desc = buf.ipc_descriptor + with pytest.raises(CUDAError) as info: + Buffer.from_ipc_descriptor(mr, desc, stream=device.default_stream) + _check_import_error(info.value) + + +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_reexport_imported_derivatives(vmm_fabric_device): + device = vmm_fabric_device + mr = _resource(device) + with ExitStack() as stack: + buf = stack.enter_context(mr.allocate(1)) + alias = stack.enter_context(Buffer.from_ipc_descriptor(mr, buf.ipc_descriptor, stream=device.default_stream)) + same = stack.enter_context(mr.modify_allocation(alias, alias.size)) + smaller_request = stack.enter_context(mr.modify_allocation(alias, 1)) + grown = stack.enter_context(mr.modify_allocation(alias, 2 * alias.size)) + for imported in (alias, same, smaller_request, grown): + with pytest.raises(RuntimeError, match="imported from another process"): + _ = imported.ipc_descriptor + with pytest.raises(RuntimeError, match="imported from another process"): + pickle.dumps(imported) + + +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_buffer_pickle(vmm_fabric_device): + device = vmm_fabric_device + mr = _resource(device) + with mr.allocate(1) as buf: + _fill(buf, 0x55) + with pickle.loads(pickle.dumps(buf)) as alias: # noqa: S301 our own live buffer + assert alias.is_mapped + assert _read(alias) == b"\x55" * 16 + _fill(alias, 0x56) + assert _read(buf) == b"\x56" * 16 + + +def _child_stale_queue(queue, ready, outgoing): + assert ready.wait(CHILD_TIMEOUT_SEC), "parent did not release the export" + try: + buf = queue.get(timeout=CHILD_TIMEOUT_SEC) + except CUDAError as exc: + _check_import_error(exc) + outgoing.send("stale") + else: + buf.close() + raise AssertionError("queued fabric buffer pinned the allocation") + assert queue.get(timeout=CHILD_TIMEOUT_SEC) == "next item" + outgoing.close() + + +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_queued_buffer_does_not_pin(vmm_fabric_device): + device = vmm_fabric_device + mr = _resource(device) + with ExitStack() as stack: + buf = stack.enter_context(mr.allocate(1)) + unaffected = stack.enter_context(mr.allocate(1)) + _fill(unaffected, 0x57) + queue = mp.Queue() + stack.callback(queue.join_thread) + stack.callback(queue.close) + ready = mp.Event() + receive, send = mp.Pipe(duplex=False) + stack.enter_context(receive) + stack.enter_context(send) + process = stack.enter_context(closing(mp.Process(target=_child_stale_queue, args=(queue, ready, send)))) + try: + process.start() + send.close() + queue.put(buf) + queue.put("next item") + # Finish pickling before close, but hold the child before unpickling. + queue.close() + queue.join_thread() + buf.close() + ready.set() + assert receive.poll(CHILD_TIMEOUT_SEC), "child did not report the stale import" + assert receive.recv() == "stale" + process.join(timeout=CHILD_TIMEOUT_SEC) + finally: + survivors = kill_subprocesses(process) + assert not survivors, "child did not exit within timeout" + assert process.exitcode == 0 + assert _read(unaffected) == b"\x57" * 16 + with mr.allocate(1) as fresh: + _fill(fresh, 0x58) + assert _read(fresh) == b"\x58" * 16 + + +@pytest.mark.skipif(IS_WINDOWS or IS_WSL, reason="Fabric IPC requires Linux") +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_unsupported_fabric_construction(init_cuda): + unsupported = [ + device + for device in Device.get_all_devices() + if device.properties.virtual_memory_management_supported and not device.properties.handle_type_fabric_supported + ] + if not unsupported: + pytest.skip("No visible VMM device without fabric handle support") + for device in unsupported: + with pytest.raises(RuntimeError) as info: + _resource(device) + message = str(info.value) + assert "NVLink fabric" in message + assert "accessible IMEX channel (/dev/nvidia-caps-imex-channels/channel*)" in message + assert f"device {device.device_id} reports no fabric handle support" in message diff --git a/cuda_core/tests/memory_ipc/test_vmm_ipc.py b/cuda_core/tests/memory_ipc/test_vmm_ipc.py index 728040fb147c..204804fb6c08 100644 --- a/cuda_core/tests/memory_ipc/test_vmm_ipc.py +++ b/cuda_core/tests/memory_ipc/test_vmm_ipc.py @@ -30,7 +30,12 @@ from cuda.bindings import driver from cuda.core import Buffer, Device, MemoryResource, VirtualMemoryResource, VirtualMemoryResourceOptions from cuda.core._dlpack import DLDeviceType -from cuda.core._memory._ipc import IPCAllocationHandle, IPCBufferDescriptor, VirtualMemoryFdBufferDescriptor +from cuda.core._memory._ipc import ( + IPCAllocationHandle, + IPCBufferDescriptor, + VirtualMemoryFabricBufferDescriptor, + VirtualMemoryFdBufferDescriptor, +) from cuda.core._memory._virtual_memory_resource import VirtualMemoryBuffer from cuda.core._utils.cuda_utils import CUDAError, handle_return from cuda.core.utils import StridedMemoryView @@ -109,13 +114,10 @@ def _has_note(exc, text): def _forge(desc, **fields): """A copy of ``desc`` with some fields replaced, as a hostile or buggy peer could send.""" - fields.setdefault("handle_type", desc._handle_type) fields.setdefault("chunk_sizes", desc._chunk_sizes) fields.setdefault("handles", desc._handles) fields.setdefault("size", desc.size) - return VirtualMemoryFdBufferDescriptor._from_exports( - fields["handle_type"], fields["chunk_sizes"], fields["handles"], fields["size"] - ) + return VirtualMemoryFdBufferDescriptor._from_exports(fields["chunk_sizes"], fields["handles"], fields["size"]) class _SharedStub(MemoryResource): @@ -177,17 +179,26 @@ def _on_queue_feeder_error(e, _obj): ("options", "expected"), [ pytest.param({"handle_type": "posix_fd"}, True, id="posix_fd"), + pytest.param({"handle_type": "fabric"}, True, id="fabric"), pytest.param({"handle_type": None}, False, id="none"), - pytest.param({"handle_type": "fabric"}, False, id="fabric"), pytest.param({"handle_type": "win32_kmt"}, False, id="win32_kmt"), pytest.param({"location_type": "host", "handle_type": None}, False, id="host"), pytest.param( {"location_type": "host_numa", "numa_id": 0, "handle_type": "posix_fd"}, False, id="host_numa-posix_fd" ), + pytest.param( + {"location_type": "host_numa", "numa_id": 0, "handle_type": "fabric"}, False, id="host_numa-fabric" + ), ], ) def test_is_ipc_enabled(vmm_ipc_device, options, expected): - """Only POSIX file descriptors on device memory have a transport; host-located memory is not shared yet.""" + """POSIX fd and fabric device memory have transports; host-located memory is not shared yet.""" + if ( + options.get("location_type", "device") == "device" + and options.get("handle_type") == "fabric" + and not vmm_ipc_device.properties.handle_type_fabric_supported + ): + pytest.skip("Device does not support fabric handles") mr = VirtualMemoryResource(vmm_ipc_device, config=VirtualMemoryResourceOptions(**options)) assert mr.is_ipc_enabled is expected @@ -353,9 +364,9 @@ def test_rejected_before_import(self, vmm_ipc_device): with mr.allocate(1) as buf: gran = buf.size desc = buf.ipc_descriptor - fabric = int(driver.CUmemAllocationHandleType.CU_MEM_HANDLE_TYPE_FABRIC) + fabric = VirtualMemoryFabricBufferDescriptor.from_handles([bytes(64)], [gran]) cases = [ - (_forge(desc, handle_type=fabric), ValueError, "handle type does not match"), + (fabric, ValueError, "handle type does not match"), (_forge(desc, chunk_sizes=(gran, gran)), ValueError, "malformed"), (_forge(desc, chunk_sizes=(0,), size=0), ValueError, "positive multiple"), (_forge(desc, chunk_sizes=(gran + 1,)), ValueError, "positive multiple"), From 5f0baca9e76bfccf95bfb3952b4644be4d84c3bd Mon Sep 17 00:00:00 2001 From: Rui Luo Date: Tue, 10 Nov 2026 01:08:10 +0800 Subject: [PATCH 19/85] fix(cuda.core): keep DLPack owner alive for derived StridedMemoryView (#3378) * fix(cuda.core): keep DLPack owner alive for derived StridedMemoryView Signed-off-by: Rui Luo * docs(cuda.core): add release note for derived view DLPack fix Signed-off-by: Rui Luo --------- Signed-off-by: Rui Luo --- cuda_core/cuda/core/_memoryview.pyx | 6 +++ cuda_core/docs/source/release/1.3.0-notes.rst | 6 +++ cuda_core/tests/test_utils_dlpack.py | 37 +++++++++++++++++++ 3 files changed, 49 insertions(+) diff --git a/cuda_core/cuda/core/_memoryview.pyx b/cuda_core/cuda/core/_memoryview.pyx index 287a01a70bc8..fd73cbb77efc 100644 --- a/cuda_core/cuda/core/_memoryview.pyx +++ b/cuda_core/cuda/core/_memoryview.pyx @@ -570,12 +570,18 @@ cdef class StridedMemoryView: """ Returns Buffer instance with the underlying data. If the SMV was created from a Buffer, it will return the same Buffer instance. + If the SMV was imported via DLPack, it will return a new instance owned by this view. Otherwise, it will create a new instance with owner set to the exporting object. """ cdef object buffer if self._buffer is None: if isinstance(self.exporting_obj, Buffer): buffer = self.exporting_obj + elif self.dl_tensor != NULL: + # This view holds the consumed capsule and calls its deleter in + # __dealloc__; the exporting object need not keep the memory alive. + # Not cached: a cached Buffer owned by self would form a cycle. + return Buffer.from_handle(self.ptr, 0, owner=self) else: buffer = Buffer.from_handle(self.ptr, 0, owner=self.exporting_obj) if self._buffer is None: diff --git a/cuda_core/docs/source/release/1.3.0-notes.rst b/cuda_core/docs/source/release/1.3.0-notes.rst index 4feeb7d03703..bc76d7f8db63 100644 --- a/cuda_core/docs/source/release/1.3.0-notes.rst +++ b/cuda_core/docs/source/release/1.3.0-notes.rst @@ -378,6 +378,12 @@ Fixes and enhancements Python exception when an export or import fails, as required by the DLPack contract, instead of returning ``-1`` with no exception set. +- A view created with :meth:`~utils.StridedMemoryView.view` from a + ``StridedMemoryView`` imported through DLPack now keeps the imported + tensor alive. Previously, releasing the original view invoked the DLPack + deleter while the derived view still referenced the memory, which could + free a producer's temporary allocation too early. + - :meth:`~graph.MemcpyNode.update` and the executable view of a memcpy node now accept nodes recorded by stream capture. The driver stores the operands of a captured :meth:`Buffer.copy_from` or :meth:`Buffer.copy_to` as unified diff --git a/cuda_core/tests/test_utils_dlpack.py b/cuda_core/tests/test_utils_dlpack.py index 4664b2da3f34..9489c977d3f3 100644 --- a/cuda_core/tests/test_utils_dlpack.py +++ b/cuda_core/tests/test_utils_dlpack.py @@ -8,6 +8,8 @@ """ import ctypes +import gc +import weakref from pathlib import Path try: @@ -105,6 +107,41 @@ def test_dlpack_view_of_buffer_reuses_exporting_buffer(init_cuda): buffer.close() +class _EphemeralDLPackExporter: + """CPU exporter whose capsule is the only owner of a freshly created array.""" + + def __init__(self): + self.array_ref = None + + def __dlpack_device__(self): + return (int(DLDeviceType.kDLCPU), 0) + + def __dlpack__(self, **kwargs): + array = np.arange(4, dtype=np.int32) + self.array_ref = weakref.ref(array) + return array.__dlpack__(**kwargs) + + +@pytest.mark.agent_authored(model="claude-opus-5-5") +def test_dlpack_derived_view_keeps_capsule_owned_storage_alive(init_cuda): + """A derived view keeps capsule-owned storage alive until the last view is released.""" + exporter = _EphemeralDLPackExporter() + original = StridedMemoryView.from_dlpack(exporter, stream_ptr=-1) + derived = original.view(dtype=original.dtype) + ptr = original.ptr + del original + gc.collect() + + # Check liveness before reading, so a regression fails without touching freed memory. + assert exporter.array_ref() is not None + assert derived.ptr == ptr + assert np.from_dlpack(derived).tolist() == [0, 1, 2, 3] + + del derived + # No gc.collect(): the capsule must be released by reference counting, not a cycle. + assert exporter.array_ref() is None + + def test_dlpack_export_unversioned_capsule_and_deleter(): """``__dlpack__()`` with no ``max_version`` yields an *unversioned* unused DLPack capsule; dropping it unconsumed runs ``_smv_pycapsule_deleter`` on From c394b5e160959597f11b15a87f7cc38d9226e94e Mon Sep 17 00:00:00 2001 From: jpascucci-nv Date: Mon, 9 Nov 2026 13:20:51 -0500 Subject: [PATCH 20/85] ci: fix Linux coverage checkout ownership (#3412) closes #3411 Move the workspace ownership fix before the CCCL submodule checkout. The separate checkout step introduced in #3392 ran before ownership was corrected, causing Git to fail with "detected dubious ownership". This prevented Linux coverage data from being uploaded, causing the combine job to fail with "Artifact not found: coverage-data-linux". Validation: git diff --check passes; actionlint diagnostics are unchanged from baseline. CI has not been rerun. --- .github/workflows/coverage.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 50d168db0421..599ae88161c1 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -74,15 +74,15 @@ jobs: # Fetch CCCL separately: checkout's filter does not apply to submodules. submodules: false + - name: Fix workspace ownership + run: | + chown -R $(id -u):$(id -g) "$GITHUB_WORKSPACE" + - name: Checkout CCCL submodule run: | git submodule sync --recursive git submodule update --init --force --depth=1 --filter=blob:none --recursive - - name: Fix workspace ownership - run: | - chown -R $(id -u):$(id -g) "$GITHUB_WORKSPACE" - - name: Install dependencies uses: ./.github/actions/install_unix_deps continue-on-error: false From e96903e7058d1e26fb056b1a9e4f6e98d67c967e Mon Sep 17 00:00:00 2001 From: Saiyam Bharara <56036921+saiyambharara@users.noreply.github.com> Date: Tue, 10 Nov 2026 01:43:21 +0530 Subject: [PATCH 21/85] fix(cuda.core): grant the current device access to PinnedMemoryResource pools (#3405) Signed-off-by: Saiyam Bharara --- .../core/_memory/_pinned_memory_resource.pyi | 8 +++- .../core/_memory/_pinned_memory_resource.pyx | 38 ++++++++++++---- cuda_core/docs/source/release/1.3.0-notes.rst | 7 +++ cuda_core/tests/test_memory.py | 45 +++++++++++++++++++ 4 files changed, 89 insertions(+), 9 deletions(-) diff --git a/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyi b/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyi index 244553778b98..af909bb095a8 100644 --- a/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyi +++ b/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyi @@ -73,6 +73,12 @@ class PinnedMemoryResource(_MemPool): is unsupported and stream-ordered allocation is not needed, use :class:`LegacyPinnedMemoryResource`. + The driver makes a host memory pool accessible only from the host by + default, so the resource grants the device that is current when it is + created read and write access to the pool. Kernels on other devices cannot + access its buffers. Without options, the grant applies to the driver's + current pool, which the whole process shares. + To create an IPC-Enabled memory resource (MR) that is capable of sharing allocations between processes, specify ``ipc_enabled=True`` in the initializer option. When IPC is enabled and ``numa_id`` is not specified, the NUMA node @@ -167,7 +173,7 @@ class PinnedMemoryResource(_MemPool): """The host NUMA node ID used for pool placement, or -1 for OS-managed placement.""" @property def is_device_accessible(self) -> bool: - """Return True. This memory resource provides device-accessible buffers.""" + """Return True. The device that is current when the resource is created can read and write its buffers.""" @property def is_host_accessible(self) -> bool: """Return True. This memory resource provides host-accessible buffers.""" diff --git a/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyx b/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyx index 62ff20bf8a81..cbfaa4f76384 100644 --- a/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyx +++ b/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyx @@ -15,6 +15,8 @@ from cuda.core._memory._memory_pool cimport ( ) from cuda.core._memory cimport _ipc from cuda.core._memory._ipc cimport IPCAllocationHandle +from cuda.core._memory._location cimport cumemlocation_from_id +from cuda.core._rt cimport as_cu from cuda.core._stream cimport Stream, Stream_accept from cuda.core._utils.cuda_utils cimport ( check_or_create_options, @@ -99,6 +101,12 @@ cdef class PinnedMemoryResource(_MemPool): is unsupported and stream-ordered allocation is not needed, use :class:`LegacyPinnedMemoryResource`. + The driver makes a host memory pool accessible only from the host by + default, so the resource grants the device that is current when it is + created read and write access to the pool. Kernels on other devices cannot + access its buffers. Without options, the grant applies to the driver's + current pool, which the whole process shares. + To create an IPC-Enabled memory resource (MR) that is capable of sharing allocations between processes, specify ``ipc_enabled=True`` in the initializer option. When IPC is enabled and ``numa_id`` is not specified, the NUMA node @@ -141,13 +149,7 @@ cdef class PinnedMemoryResource(_MemPool): raise TypeError("Cannot allocate from a mapped IPC-enabled memory resource") cdef Stream s = Stream_accept(stream) device = s.device - cdef bint supported = ( - device.properties.host_numa_memory_pools_supported - if self._numa_id >= 0 - else device.properties.host_memory_pools_supported - ) - - if not supported: + if not _host_pool_supported(device, self._numa_id): raise RuntimeError( f"CUDA device {device.device_id} does not support the requested " "host memory pool for PinnedMemoryResource. Use " @@ -244,7 +246,7 @@ cdef class PinnedMemoryResource(_MemPool): @property def is_device_accessible(self) -> bool: - """Return True. This memory resource provides device-accessible buffers.""" + """Return True. The device that is current when the resource is created can read and write its buffers.""" return True @property @@ -253,6 +255,14 @@ cdef class PinnedMemoryResource(_MemPool): return True +cdef inline bint _host_pool_supported(device, int numa_id): + return ( + device.properties.host_numa_memory_pools_supported + if numa_id >= 0 + else device.properties.host_memory_pools_supported + ) + + cdef inline _PMR_init(PinnedMemoryResource self, options): from .._device import Device @@ -264,6 +274,7 @@ cdef inline _PMR_init(PinnedMemoryResource self, options): cdef size_t max_size = 0 cdef cydriver.CUmemLocationType loc_type cdef int numa_id = -1 + cdef cydriver.CUmemAccessDesc access if opts is not None: ipc_enabled = opts.ipc_enabled @@ -309,6 +320,17 @@ cdef inline _PMR_init(PinnedMemoryResource self, options): max_size, ) + # A pool on a host location is accessible only from the host by default + # (see cuMemPoolCreate), so grant the current device read/write access. A + # device without host pool support cannot allocate from it anyway. + dev = Device() + if _host_pool_supported(dev, numa_id): + access.location = cumemlocation_from_id( + cydriver.CUmemLocationType.CU_MEM_LOCATION_TYPE_DEVICE, dev.device_id) + access.flags = cydriver.CUmemAccess_flags.CU_MEM_ACCESS_FLAGS_PROT_READWRITE + with nogil: + HANDLE_RETURN(cydriver.cuMemPoolSetAccess(as_cu(self._h_pool), &access, 1)) + def _deep_reduce_pinned_memory_resource(mr: object) -> tuple[object, ...]: check_multiprocessing_start_method() diff --git a/cuda_core/docs/source/release/1.3.0-notes.rst b/cuda_core/docs/source/release/1.3.0-notes.rst index bc76d7f8db63..831666f29868 100644 --- a/cuda_core/docs/source/release/1.3.0-notes.rst +++ b/cuda_core/docs/source/release/1.3.0-notes.rst @@ -160,6 +160,13 @@ New features Fixes and enhancements ---------------------- +- Kernels can read and write :class:`PinnedMemoryResource` buffers. The driver + makes a host memory pool accessible only from the host by default, so a + kernel that touched such a buffer failed with ``CUDA_ERROR_ILLEGAL_ADDRESS``. + The resource now grants the device that is current when it is created read + and write access to the pool. + (`#3205 `__) + - ``register()`` on a :class:`~_memory.DeviceMemoryResource` or a :class:`PinnedMemoryResource` now raises ``ValueError`` when the resource already has a different UUID. The check used to be an ``assert``, so under diff --git a/cuda_core/tests/test_memory.py b/cuda_core/tests/test_memory.py index 953ded9f04ac..fbafb1b2207d 100644 --- a/cuda_core/tests/test_memory.py +++ b/cuda_core/tests/test_memory.py @@ -51,6 +51,7 @@ DeviceMemoryResource, DeviceMemoryResourceOptions, GraphMemoryResource, + LaunchConfig, LegacyPinnedMemoryResource, ManagedBuffer, ManagedMemoryResource, @@ -58,10 +59,13 @@ MemoryResource, PinnedMemoryResource, PinnedMemoryResourceOptions, + Program, + ProgramOptions, StreamOptions, VirtualMemoryBuffer, VirtualMemoryResource, VirtualMemoryResourceOptions, + launch, ) from cuda.core._dlpack import DLDeviceType from cuda.core._memory._ipc import IPCBufferDescriptor @@ -1242,6 +1246,47 @@ def test_pinned_memory_resource_initialization(init_cuda): buffer.close() +@pytest.mark.human_reviewed +@pytest.mark.parametrize("pool", ["current", "new", "new_numa"]) +def test_pinned_memory_resource_kernel_access(init_cuda, pool): + """A kernel on the current device reads and writes PinnedMemoryResource buffers (#3205).""" + device = init_cuda + skip_if_pinned_memory_unsupported(device) + if pool == "current": + options = None + elif pool == "new": + options = PinnedMemoryResourceOptions(max_size=POOL_SIZE) + else: + numa_id = device.properties.host_numa_id + if numa_id < 0 or not device.properties.host_numa_memory_pools_supported: + pytest.skip("Device does not support host NUMA memory pools") + options = PinnedMemoryResourceOptions(max_size=POOL_SIZE, numa_id=numa_id) + + code = r""" + extern "C" __global__ void double_plus_one(int* data, size_t n) { + size_t i = blockIdx.x * blockDim.x + threadIdx.x; + if (i < n) data[i] = data[i] * 2 + 1; + } + """ + kernel = ( + Program(code, "c++", ProgramOptions(arch=f"sm_{device.arch}")).compile("cubin").get_kernel("double_plus_one") + ) + + n = 1024 + mr = create_pinned_memory_resource_or_xfail(options, xfail_device=device) + buffer = _allocate_pinned_buffer_or_xfail(mr, n * ctypes.sizeof(ctypes.c_int), device=device) + stream = device.default_stream + stream.sync() + data = (ctypes.c_int * n).from_address(int(buffer.handle)) + data[:] = range(n) + + launch(stream, LaunchConfig(grid=(n + 255) // 256, block=256), kernel, buffer, ctypes.c_size_t(n)) + stream.sync() + assert data[:] == [2 * i + 1 for i in range(n)] + buffer.close() + mr.close() + + @pytest.mark.agent_authored(model="cursor-grok-4.5") def test_pinned_memory_resource_rejects_unsupported_host_pool(init_cuda): """allocate() must fail on devices without host memory pool support (see #2486).""" From fe9bb74fce369b2f932e9c4effd7e5ac204dd99b Mon Sep 17 00:00:00 2001 From: Rui Luo Date: Tue, 10 Nov 2026 21:15:29 +0800 Subject: [PATCH 22/85] ci: capture coverage before pytest imports (#3358) * ci: capture coverage before pytest imports Signed-off-by: Rui Luo * ci: preserve pytest-cov while tracing core imports Signed-off-by: Rui Luo --------- Signed-off-by: Rui Luo --- .github/workflows/coverage.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 599ae88161c1..6f3404159af3 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -186,6 +186,15 @@ jobs: cd $INSTALL_ROOT $REPO_ROOT/.venv/bin/pytest -v --cov=./cuda --cov-append --cov-context=test --cov-config=$REPO_ROOT/.coveragerc $REPO_ROOT/cuda_bindings_13/tests + - name: Trace cuda.core imports + continue-on-error: true + run: | + cd $INSTALL_ROOT + # Trace collection-time imports before the regular pytest-cov run. + "$REPO_ROOT/.venv/bin/python" -m coverage run \ + --append --source=./cuda --rcfile="$REPO_ROOT/.coveragerc" \ + -m pytest -p no:pytest_cov --collect-only -qq "$REPO_ROOT/cuda_core/tests" + - name: Run cuda.core tests continue-on-error: true run: | @@ -450,6 +459,15 @@ jobs: --cov-config="$GITHUB_WORKSPACE/.coveragerc" \ "$GITHUB_WORKSPACE/cuda_bindings_13/tests" + - name: Trace cuda.core imports + continue-on-error: true + run: | + cd "${{ steps.install-root.outputs.INSTALL_ROOT }}" + # Use a separate process so pytest-cov retains lifecycle contexts. + "$GITHUB_WORKSPACE/.venv/Scripts/python" -m coverage run \ + --append --source=./cuda --rcfile="$GITHUB_WORKSPACE/.coveragerc" \ + -m pytest -p no:pytest_cov --collect-only -qq "$GITHUB_WORKSPACE/cuda_core/tests" + - name: Run cuda.core tests continue-on-error: true run: | From a0a152ba3fe7216c50b6c14e0b171b9727736996 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Tue, 10 Nov 2026 09:54:14 -0800 Subject: [PATCH 23/85] fix(pathfinder): return resolved paths for discovered CUDA components (#3418) * fix(pathfinder): resolve discovered component paths * ci: require manual copy-pr-bot approval * docs(pathfinder): prepare 1.9.0 release notes --- .../_binaries/find_nvidia_binary_utility.py | 14 +-- .../pathfinder/_dynamic_libs/search_steps.py | 6 +- .../_headers/find_nvidia_headers.py | 8 +- .../_static_libs/find_bitcode_lib.py | 12 +-- .../_static_libs/find_static_lib.py | 12 +-- .../cuda/pathfinder/_utils/resolve_path.py | 10 +++ cuda_pathfinder/docs/nv-versions.json | 4 + cuda_pathfinder/docs/source/api.rst | 7 ++ .../docs/source/release/1.9.0-notes.rst | 35 ++++++++ .../tests/test_find_bitcode_lib.py | 87 ++++++++++++++++++- .../tests/test_find_nvidia_binaries.py | 73 +++++++++++++--- .../tests/test_find_nvidia_headers.py | 43 ++++++++- cuda_pathfinder/tests/test_find_static_lib.py | 85 +++++++++++++++++- cuda_pathfinder/tests/test_search_steps.py | 23 +++++ .../tests/test_utils_resolve_path.py | 66 ++++++++++++++ 15 files changed, 443 insertions(+), 42 deletions(-) create mode 100644 cuda_pathfinder/cuda/pathfinder/_utils/resolve_path.py create mode 100644 cuda_pathfinder/docs/source/release/1.9.0-notes.rst create mode 100644 cuda_pathfinder/tests/test_utils_resolve_path.py diff --git a/cuda_pathfinder/cuda/pathfinder/_binaries/find_nvidia_binary_utility.py b/cuda_pathfinder/cuda/pathfinder/_binaries/find_nvidia_binary_utility.py index 42dcfda1cfb6..b5fa3cc8cc30 100644 --- a/cuda_pathfinder/cuda/pathfinder/_binaries/find_nvidia_binary_utility.py +++ b/cuda_pathfinder/cuda/pathfinder/_binaries/find_nvidia_binary_utility.py @@ -11,6 +11,8 @@ from cuda.pathfinder._utils.find_sub_dirs import find_sub_dirs_all_sitepackages from cuda.pathfinder._utils.platform_aware import IS_WINDOWS +from .._utils.resolve_path import resolve_path + class UnsupportedBinaryError(Exception): def __init__(self, utility: str) -> None: @@ -55,7 +57,7 @@ def _resolve_candidate_paths(candidates: Iterable[str]) -> str | None: continue seen.add(candidate) if _is_executable_candidate(candidate): - return os.path.abspath(candidate) + return str(resolve_path(candidate)) return None @@ -85,9 +87,7 @@ def _resolve_in_trusted_dirs(normalized_name: str, dirs: list[str]) -> str | Non seen.add(directory) candidate = os.path.join(directory, normalized_name) if _is_executable_candidate(candidate): - # Return an absolute path, as the docstring promises (a relative - # search dir would otherwise leak a relative result). - return os.path.abspath(candidate) + return str(resolve_path(candidate)) return None @@ -116,9 +116,9 @@ def find_nvidia_binary_utility(utility_name: str) -> str | None: also recognizes ``.bat`` and ``.cmd`` files on Windows. Returns: - str or None: Absolute path to the discovered executable, or ``None`` - if the utility cannot be found. The returned path is normalized - (absolute and with resolved separators). + str or None: Resolved absolute path to the discovered executable, or + ``None`` if the utility cannot be found. Symlinks and parent-directory + components are resolved to identify the selected executable. Raises: UnsupportedBinaryError: If ``utility_name`` is not in the supported set diff --git a/cuda_pathfinder/cuda/pathfinder/_dynamic_libs/search_steps.py b/cuda_pathfinder/cuda/pathfinder/_dynamic_libs/search_steps.py index 80779f72ae29..015de5d68e2c 100644 --- a/cuda_pathfinder/cuda/pathfinder/_dynamic_libs/search_steps.py +++ b/cuda_pathfinder/cuda/pathfinder/_dynamic_libs/search_steps.py @@ -31,6 +31,8 @@ from cuda.pathfinder._utils.env_vars import get_cuda_path_or_home from cuda.pathfinder._utils.path_sort import numeric_aware_path_sort_key +from .._utils.resolve_path import resolve_path + # --------------------------------------------------------------------------- # Data types # --------------------------------------------------------------------------- @@ -76,7 +78,7 @@ def _iter_lib_dirs(root: str, rel_dirs: tuple[str, ...]) -> Iterator[str]: for rel_path in rel_dirs: for dirname in sorted(glob.glob(os.path.join(root, rel_path))): if os.path.isdir(dirname): - yield os.path.normpath(dirname) + yield str(resolve_path(dirname)) def _iter_lib_dirs_using_anchor( @@ -247,7 +249,7 @@ def find_in_program_files_roots(ctx: SearchContext) -> FindResult | None: for root in sorted(glob.glob(root_glob), key=numeric_aware_path_sort_key, reverse=True): if not os.path.isdir(root): continue - result = _find_under_anchor_root(ctx, os.path.normpath(root), "ProgramFiles") + result = _find_under_anchor_root(ctx, str(resolve_path(root)), "ProgramFiles") if result is not None: return result return None diff --git a/cuda_pathfinder/cuda/pathfinder/_headers/find_nvidia_headers.py b/cuda_pathfinder/cuda/pathfinder/_headers/find_nvidia_headers.py index 86a86b2999c8..a4afada8555b 100644 --- a/cuda_pathfinder/cuda/pathfinder/_headers/find_nvidia_headers.py +++ b/cuda_pathfinder/cuda/pathfinder/_headers/find_nvidia_headers.py @@ -25,6 +25,8 @@ from cuda.pathfinder._utils.find_sub_dirs import find_sub_dirs_all_sitepackages from cuda.pathfinder._utils.path_sort import numeric_aware_path_sort_key +from .._utils.resolve_path import resolve_path + if TYPE_CHECKING: from cuda.pathfinder._headers.header_descriptor import HeaderDescriptor @@ -52,7 +54,7 @@ def __post_init__(self) -> None: def _abs_norm(path: str | None) -> str | None: if path: - return os.path.normpath(os.path.abspath(path)) + return str(resolve_path(path)) return None @@ -195,7 +197,7 @@ def locate_nvidia_header_directory(libname: str) -> LocatedHeaderDir | None: (e.g., ``"nvrtc"``, ``"cusolver"``, ``"nvshmem"``). Returns: - LocatedHeaderDir or None: A LocatedHeaderDir object containing the absolute path + LocatedHeaderDir or None: A LocatedHeaderDir object containing the resolved absolute path to the discovered header directory and information about where it was found, or ``None`` if the headers cannot be found. @@ -225,7 +227,7 @@ def find_nvidia_header_directory(libname: str) -> str | None: (e.g., ``"nvrtc"``, ``"cusolver"``, ``"nvshmem"``). Returns: - str or None: Absolute path to the discovered header directory, or ``None`` + str or None: Resolved absolute path to the discovered header directory, or ``None`` if the headers cannot be found. Raises: diff --git a/cuda_pathfinder/cuda/pathfinder/_static_libs/find_bitcode_lib.py b/cuda_pathfinder/cuda/pathfinder/_static_libs/find_bitcode_lib.py index fd9f3cdfe550..8f8e99de82d9 100644 --- a/cuda_pathfinder/cuda/pathfinder/_static_libs/find_bitcode_lib.py +++ b/cuda_pathfinder/cuda/pathfinder/_static_libs/find_bitcode_lib.py @@ -11,6 +11,8 @@ from cuda.pathfinder._utils.find_sub_dirs import find_sub_dirs_all_sitepackages from cuda.pathfinder._utils.platform_aware import IS_WINDOWS +from .._utils.resolve_path import resolve_path + class BitcodeLibNotFoundError(RuntimeError): """Raised when a bitcode library cannot be found.""" @@ -95,7 +97,7 @@ def try_site_packages(self) -> Path | None: for abs_dir in find_sub_dirs_all_sitepackages(sub_dir): file_path = Path(abs_dir, self.filename) if file_path.is_file(): - return file_path + return resolve_path(file_path) return None def try_with_conda_prefix(self) -> Path | None: @@ -106,7 +108,7 @@ def try_with_conda_prefix(self) -> Path | None: anchor = Path(conda_prefix, "Library") if IS_WINDOWS else Path(conda_prefix) file_path = anchor / self.rel_path / self.filename if file_path.is_file(): - return file_path + return resolve_path(file_path) return None def try_with_cuda_home(self) -> Path | None: @@ -118,7 +120,7 @@ def try_with_cuda_home(self) -> Path | None: anchor = Path(cuda_home) file_path = anchor / self.rel_path / self.filename if file_path.is_file(): - return file_path + return resolve_path(file_path) _no_such_file_in_dir( anchor / self.rel_path, @@ -135,7 +137,7 @@ def raise_not_found_error(self) -> NoReturn: def locate_bitcode_lib(name: str) -> LocatedBitcodeLib: - """Locate a bitcode library by name. + """Locate a bitcode library by name, returning its resolved absolute path. Raises: ValueError: If ``name`` is not a supported bitcode library. @@ -175,7 +177,7 @@ def locate_bitcode_lib(name: str) -> LocatedBitcodeLib: @functools.cache def find_bitcode_lib(name: str) -> str: - """Find the absolute path to a bitcode library. + """Find the resolved absolute path to a bitcode library. Raises: ValueError: If ``name`` is not a supported bitcode library. diff --git a/cuda_pathfinder/cuda/pathfinder/_static_libs/find_static_lib.py b/cuda_pathfinder/cuda/pathfinder/_static_libs/find_static_lib.py index f0f1c85f538e..0a56885b598c 100644 --- a/cuda_pathfinder/cuda/pathfinder/_static_libs/find_static_lib.py +++ b/cuda_pathfinder/cuda/pathfinder/_static_libs/find_static_lib.py @@ -12,6 +12,8 @@ from cuda.pathfinder._utils.platform_aware import IS_WINDOWS from cuda.pathfinder._utils.windows_arch import windows_python_arch +from .._utils.resolve_path import resolve_path + class StaticLibNotFoundError(RuntimeError): """Raised when a static library cannot be found.""" @@ -92,7 +94,7 @@ def try_site_packages(self) -> Path | None: for abs_dir in find_sub_dirs_all_sitepackages(sub_dir): file_path = Path(abs_dir, self.filename) if file_path.is_file(): - return file_path + return resolve_path(file_path) return None def try_with_conda_prefix(self) -> Path | None: @@ -104,7 +106,7 @@ def try_with_conda_prefix(self) -> Path | None: for rel_path in self.conda_rel_paths: file_path = anchor / rel_path / self.filename if file_path.is_file(): - return file_path + return resolve_path(file_path) return None def try_with_cuda_home(self) -> Path | None: @@ -117,7 +119,7 @@ def try_with_cuda_home(self) -> Path | None: for rel_path in self.ctk_rel_paths: file_path = anchor / rel_path / self.filename if file_path.is_file(): - return file_path + return resolve_path(file_path) _no_such_file_in_dir( anchor / self.ctk_rel_paths[0], @@ -134,7 +136,7 @@ def raise_not_found_error(self) -> NoReturn: def locate_static_lib(name: str) -> LocatedStaticLib: - """Locate a static library by name. + """Locate a static library by name, returning its resolved absolute path. Raises: ValueError: If ``name`` is not a supported static library. @@ -174,7 +176,7 @@ def locate_static_lib(name: str) -> LocatedStaticLib: @functools.cache def find_static_lib(name: str) -> str: - """Find the absolute path to a static library. + """Find the resolved absolute path to a static library. Raises: ValueError: If ``name`` is not a supported static library. diff --git a/cuda_pathfinder/cuda/pathfinder/_utils/resolve_path.py b/cuda_pathfinder/cuda/pathfinder/_utils/resolve_path.py new file mode 100644 index 000000000000..e562be191578 --- /dev/null +++ b/cuda_pathfinder/cuda/pathfinder/_utils/resolve_path.py @@ -0,0 +1,10 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +import os +from pathlib import Path + + +def resolve_path(*parts: str | os.PathLike[str]) -> Path: + """Build a canonical absolute path, resolving symlinks and parent components.""" + return Path(*parts).resolve() diff --git a/cuda_pathfinder/docs/nv-versions.json b/cuda_pathfinder/docs/nv-versions.json index 38d1e2abf391..2adde8cc61f0 100644 --- a/cuda_pathfinder/docs/nv-versions.json +++ b/cuda_pathfinder/docs/nv-versions.json @@ -3,6 +3,10 @@ "version": "latest", "url": "https://nvidia.github.io/cuda-python/cuda-pathfinder/latest/" }, + { + "version": "1.9.0", + "url": "https://nvidia.github.io/cuda-python/cuda-pathfinder/1.9.0/" + }, { "version": "1.8.6", "url": "https://nvidia.github.io/cuda-python/cuda-pathfinder/1.8.6/" diff --git a/cuda_pathfinder/docs/source/api.rst b/cuda_pathfinder/docs/source/api.rst index f65014923f98..06c731437783 100644 --- a/cuda_pathfinder/docs/source/api.rst +++ b/cuda_pathfinder/docs/source/api.rst @@ -10,6 +10,13 @@ The ``cuda.pathfinder`` module provides utilities for loading NVIDIA dynamic lib locating NVIDIA C/C++ header directories, finding CUDA binary utilities, and locating CUDA bitcode and static libraries. +Header, binary-utility, bitcode-library, and static-library lookups return +resolved absolute paths. Symlinks and parent-directory components (``..``) +are resolved using the filesystem, so the returned path identifies the +selected component even when a configured root contains a symlink followed +by ``..``. Cached results retain the resolved path selected by the first +lookup. Public path values remain strings. + .. NOTE: The source of truth for public APIs is cuda_pathfinder/cuda/pathfinder/__init__.py. .. Keep this documentation in sync when adding or removing exports. diff --git a/cuda_pathfinder/docs/source/release/1.9.0-notes.rst b/cuda_pathfinder/docs/source/release/1.9.0-notes.rst new file mode 100644 index 000000000000..556788803753 --- /dev/null +++ b/cuda_pathfinder/docs/source/release/1.9.0-notes.rst @@ -0,0 +1,35 @@ +.. SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +.. SPDX-License-Identifier: Apache-2.0 + +.. py:currentmodule:: cuda.pathfinder + +``cuda-pathfinder`` 1.9.0 Release notes +======================================= + +Compatibility note +------------------ + +Header, binary utility, static library, and bitcode library lookups now return +resolved absolute paths. Symlinks are followed, so returned paths can differ +from the configured alias, including the basename of a symlinked file. +The ``filename`` fields of :class:`LocatedStaticLib` and +:class:`LocatedBitcodeLib` continue to report the filename searched for. +Public return types, search order, and cache lifetimes are unchanged. +This minor release reflects the intentional change in returned path spelling. + +Bugfixes +-------- + +* Return absolute static-library and bitcode-library paths for relative wheel, + Conda, and CUDA Toolkit roots, keeping cached results valid after a change + of working directory. Resolve Windows drive-relative roots such as + ``D:toolkit`` correctly, including on Python 3.11. + (`Issue #3363 `_, + `PR #3418 `_) + +* Preserve the filesystem meaning of roots containing a symlink followed by + ``..``. Header and binary utility lookups return the selected component's + resolved path, and dynamic-library directory discovery no longer collapses + these roots lexically into a different location. + (`Issue #3413 `_, + `PR #3418 `_) diff --git a/cuda_pathfinder/tests/test_find_bitcode_lib.py b/cuda_pathfinder/tests/test_find_bitcode_lib.py index 6b5f2de49eb3..3ecd7fddf255 100644 --- a/cuda_pathfinder/tests/test_find_bitcode_lib.py +++ b/cuda_pathfinder/tests/test_find_bitcode_lib.py @@ -85,8 +85,7 @@ def test_locate_bitcode_lib(info_summary_append, libname): _located_bitcode_lib_asserts(located_lib) assert Path(lib_path).is_file() assert lib_path == located_lib.abs_path - expected_filename = located_lib.filename - assert Path(lib_path).name == expected_filename + assert located_lib.filename == _bitcode_lib_filename(libname) @pytest.mark.usefixtures("clear_find_bitcode_lib_cache") @@ -135,6 +134,90 @@ def find_expected_sub_dir(sub_dir): assert located_lib.found_via == "CUDA_PATH" +@pytest.mark.usefixtures("clear_find_bitcode_lib_cache") +@pytest.mark.parametrize("source", ("site-packages", "conda", "CUDA_PATH")) +@pytest.mark.agent_authored(model="gpt-6") +def test_locate_bitcode_lib_returns_resolved_path_for_relative_root(monkeypatch, tmp_path, source): + monkeypatch.chdir(tmp_path) + monkeypatch.delenv("CONDA_PREFIX", raising=False) + monkeypatch.delenv("CUDA_HOME", raising=False) + monkeypatch.delenv("CUDA_PATH", raising=False) + + info = _bitcode_lib_info("device") + root = Path("relative-root") + if source == "site-packages": + lib_dir = root / Path(info["site_packages_dirs"][0]) + monkeypatch.setattr(find_bitcode_lib_module, "find_sub_dirs_all_sitepackages", lambda _sub_dir: [str(lib_dir)]) + else: + monkeypatch.setattr(find_bitcode_lib_module, "find_sub_dirs_all_sitepackages", lambda _sub_dir: []) + if source == "conda": + monkeypatch.setenv("CONDA_PREFIX", str(root)) + lib_dir = _conda_anchor(root) / Path(info["rel_path"]) + else: + monkeypatch.setenv("CUDA_HOME", str(root)) + lib_dir = root / Path(info["rel_path"]) + + expected = (tmp_path / lib_dir / info["filename"]).resolve() + expected.parent.mkdir(parents=True) + expected.touch() + located = locate_bitcode_lib("device") + assert located.found_via == source + assert located.abs_path == str(expected) + assert find_bitcode_lib("device") == str(expected) + + monkeypatch.chdir(tmp_path.parent) + assert Path(located.abs_path).is_file() + assert Path(find_bitcode_lib("device")).is_file() + + +@pytest.mark.skipif(os.name == "nt", reason="POSIX symlink parent traversal") +@pytest.mark.usefixtures("clear_find_bitcode_lib_cache") +@pytest.mark.agent_authored(model="gpt-6") +def test_locate_bitcode_lib_preserves_symlink_parent(monkeypatch, tmp_path): + monkeypatch.chdir(tmp_path) + monkeypatch.delenv("CONDA_PREFIX", raising=False) + monkeypatch.delenv("CUDA_PATH", raising=False) + monkeypatch.setenv("CUDA_HOME", "alias/..") + monkeypatch.setattr(find_bitcode_lib_module, "find_sub_dirs_all_sitepackages", lambda _sub_dir: []) + + real_root = tmp_path / "real" + (real_root / "child").mkdir(parents=True) + (tmp_path / "alias").symlink_to(real_root / "child", target_is_directory=True) + info = _bitcode_lib_info("device") + expected = real_root / info["rel_path"] / info["filename"] + expected.parent.mkdir(parents=True) + expected.touch() + + located = locate_bitcode_lib("device") + assert located.abs_path == str(expected.resolve()) + cached = find_bitcode_lib("device") + monkeypatch.chdir(tmp_path.parent) + assert cached == str(expected.resolve()) + assert find_bitcode_lib("device") == cached + + +@pytest.mark.skipif(os.name == "nt", reason="Symlink creation requires privileges on Windows") +@pytest.mark.usefixtures("clear_find_bitcode_lib_cache") +@pytest.mark.agent_authored(model="gpt-6") +def test_locate_bitcode_lib_resolves_symlinked_file(monkeypatch, tmp_path): + monkeypatch.delenv("CONDA_PREFIX", raising=False) + monkeypatch.delenv("CUDA_PATH", raising=False) + monkeypatch.setattr(find_bitcode_lib_module, "find_sub_dirs_all_sitepackages", lambda _sub_dir: []) + root = tmp_path / "toolkit" + monkeypatch.setenv("CUDA_HOME", str(root)) + info = _bitcode_lib_info("device") + target = tmp_path / "actual-library" + target.touch() + candidate = root / info["rel_path"] / info["filename"] + candidate.parent.mkdir(parents=True) + candidate.symlink_to(target) + + located = locate_bitcode_lib("device") + assert located.abs_path == str(target.resolve()) + assert located.filename == info["filename"] + assert find_bitcode_lib("device") == located.abs_path + + @pytest.mark.usefixtures("clear_find_bitcode_lib_cache") def test_find_bitcode_lib_not_found_error_includes_cuda_home_directory_listing(monkeypatch, tmp_path): cuda_home = tmp_path / "cuda-home" diff --git a/cuda_pathfinder/tests/test_find_nvidia_binaries.py b/cuda_pathfinder/tests/test_find_nvidia_binaries.py index 1fc9cb29906b..19ecb9c77736 100644 --- a/cuda_pathfinder/tests/test_find_nvidia_binaries.py +++ b/cuda_pathfinder/tests/test_find_nvidia_binaries.py @@ -2,6 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 import os +from pathlib import Path import pytest @@ -14,6 +15,7 @@ SUPPORTED_BINARIES, SUPPORTED_BINARIES_ALL, ) +from cuda.pathfinder._utils.env_vars import get_cuda_path_or_home CUDA13_WHEEL_BINARIES = frozenset( ("nvcc", "ptxas", "nvdisasm", "cuobjdump", "fatbinary", "bin2c", "nvlink", "compute-sanitizer") @@ -55,8 +57,10 @@ def test_cuda13_wheel_layout_is_declared_and_preferred(): @pytest.fixture def clear_find_binary_cache(): find_nvidia_binary_utility.cache_clear() + get_cuda_path_or_home.cache_clear() yield find_nvidia_binary_utility.cache_clear() + get_cuda_path_or_home.cache_clear() def _patch_exec_probe(mocker, existing=()): @@ -77,6 +81,51 @@ def fake_is_executable_candidate(path): return checked +@pytest.mark.skipif(os.name == "nt", reason="POSIX symlink traversal") +@pytest.mark.parametrize("layout", ("direct", "symlink", "symlink-parent")) +@pytest.mark.usefixtures("clear_find_binary_cache") +@pytest.mark.agent_authored(model="gpt-6") +def test_binary_lookup_returns_resolved_path(tmp_path, monkeypatch, layout): + sdk = tmp_path / "installed" / "sdk" + (sdk / "leaf").mkdir(parents=True) + (sdk / "bin").mkdir() + executable = sdk / "bin" / "nvcc" + executable.touch() + executable.chmod(0o700) + + monkeypatch.chdir(tmp_path) + if layout == "direct": + configured_root = Path("installed/sdk") + else: + target = sdk if layout == "symlink" else sdk / "leaf" + Path("alias").symlink_to(target, target_is_directory=True) + configured_root = Path("alias") if layout == "symlink" else Path("alias/..") + monkeypatch.delenv("CONDA_PREFIX", raising=False) + monkeypatch.delenv("CUDA_HOME", raising=False) + monkeypatch.setenv("CUDA_PATH", str(configured_root)) + monkeypatch.setattr(binary_finder_module, "find_sub_dirs_all_sitepackages", lambda _sub_dir: []) + + found = find_nvidia_binary_utility("nvcc") + + assert found == str(executable.resolve()) + assert Path(found).samefile(executable) + monkeypatch.chdir(tmp_path.parent) + assert find_nvidia_binary_utility("nvcc") == found + assert Path(find_nvidia_binary_utility("nvcc")).samefile(executable) + + +@pytest.mark.skipif(os.name == "nt", reason="POSIX symlink fixture") +@pytest.mark.agent_authored(model="gpt-6") +def test_resolve_candidate_paths_returns_symlink_target(tmp_path): + executable = tmp_path / "nvcc-real" + executable.touch() + executable.chmod(0o700) + alias = tmp_path / "nvcc" + alias.symlink_to(executable) + + assert binary_finder_module._resolve_candidate_paths([str(alias)]) == str(executable.resolve()) + + @pytest.mark.usefixtures("clear_find_binary_cache") def test_find_binary_search_path_includes_site_packages_conda_cuda(monkeypatch, mocker): conda_prefix = os.path.join(os.sep, "conda") @@ -180,7 +229,7 @@ def test_find_compute_sanitizer_prefers_ctk_launcher_with_executable_fallback( existing.append(launcher) checked = _patch_exec_probe(mocker, existing=existing) - assert find_nvidia_binary_utility("compute-sanitizer") == os.path.abspath(os.path.join(cuda_home, expected_rel)) + assert find_nvidia_binary_utility("compute-sanitizer") == str(Path(cuda_home, expected_rel).resolve()) assert checked == [os.path.join(cuda_home, rel) for rel in checked_rels] canary_mock.assert_not_called() @@ -198,7 +247,7 @@ def test_find_compute_sanitizer_uses_canary_ctk_root(monkeypatch, mocker): canary = mocker.patch.object(binary_finder_module, "_resolve_ctk_root_via_canary", return_value=ctk_root) checked = _patch_exec_probe(mocker, existing=[launcher]) - assert find_nvidia_binary_utility("compute-sanitizer") == os.path.abspath(launcher) + assert find_nvidia_binary_utility("compute-sanitizer") == str(Path(launcher).resolve()) assert checked == [launcher] canary.assert_called_once_with() @@ -226,7 +275,7 @@ def test_find_binary_windows_nsight_conda_precedes_registry(monkeypatch, mocker, canary = mocker.patch.object(binary_finder_module, "_resolve_ctk_root_via_canary") checked = _patch_exec_probe(mocker, existing=[expected]) - assert find_nvidia_binary_utility(utility_name) == os.path.abspath(expected) + assert find_nvidia_binary_utility(utility_name) == str(Path(expected).resolve()) assert checked == [ *(os.path.join(site_dir, name) for name in candidate_names), os.path.join(conda_bin, candidate_names[0]), @@ -281,7 +330,7 @@ def test_find_binary_windows_nsight_composes_registry_and_native_target( canary = mocker.patch.object(binary_finder_module, "_resolve_ctk_root_via_canary") checked = _patch_exec_probe(mocker, existing=[expected]) - assert find_nvidia_binary_utility(utility_name) == os.path.abspath(expected) + assert find_nvidia_binary_utility(utility_name) == str(Path(expected).resolve()) assert checked == [ *(os.path.join(directory, name) for directory in (site_dir, conda_bin) for name in candidate_names), *((os.path.join(install_root, "ncu.bat"),) if utility_name == "ncu" else ()), @@ -310,7 +359,7 @@ def test_find_binary_windows_ncu_launcher_hit_does_not_resolve_machine_arch(monk canary = mocker.patch.object(binary_finder_module, "_resolve_ctk_root_via_canary") checked = _patch_exec_probe(mocker, existing=[launcher]) - assert find_nvidia_binary_utility("ncu") == os.path.abspath(launcher) + assert find_nvidia_binary_utility("ncu") == str(Path(launcher).resolve()) assert checked == [launcher] registry_root.assert_called_once_with("Compute") machine_arch.assert_not_called() @@ -362,7 +411,7 @@ def test_find_windows_nsight_legacy_names_remain_literal_in_early_search(monkeyp ncu_candidates = mocker.patch.object(binary_finder_module.windows_nsight, "ncu_candidate_paths") checked = _patch_exec_probe(mocker, existing=[expected]) - assert find_nvidia_binary_utility(utility_name) == os.path.abspath(expected) + assert find_nvidia_binary_utility(utility_name) == str(Path(expected).resolve()) assert checked == [os.path.join(site_dir, f"{utility_name}.exe"), expected] find_sub_dirs.assert_called_once_with(site_key.split(os.sep)) get_cuda_path.assert_not_called() @@ -386,7 +435,7 @@ def test_find_windows_nsight_legacy_names_remain_literal_in_ctk(monkeypatch, moc canary = mocker.patch.object(binary_finder_module, "_resolve_ctk_root_via_canary") checked = _patch_exec_probe(mocker, existing=[expected]) - assert find_nvidia_binary_utility(utility_name) == os.path.abspath(expected) + assert find_nvidia_binary_utility(utility_name) == str(Path(expected).resolve()) assert checked == [ os.path.join(cuda_home, "bin", "x64", f"{utility_name}.exe"), os.path.join(cuda_home, "bin", "x86_64", f"{utility_name}.exe"), @@ -421,7 +470,7 @@ def test_find_binary_first_matching_dir_wins(monkeypatch, mocker): result = find_nvidia_binary_utility("nvcc") # Conda comes before CUDA_HOME, so the Conda hit wins and CUDA_HOME is never probed. - assert result == os.path.abspath(conda_nvcc) + assert result == str(Path(conda_nvcc).resolve()) assert checked == [os.path.join(site_dir, "nvcc"), conda_nvcc] @@ -442,7 +491,7 @@ def test_find_binary_ctk_root_canary_fallback(monkeypatch, mocker): result = find_nvidia_binary_utility("nvcc") - assert result == os.path.abspath(ctk_nvcc) + assert result == str(Path(ctk_nvcc).resolve()) canary_mock.assert_called_once_with() # No earlier trusted dirs existed, so the only probe is the canary bin dir. assert checked == [ctk_nvcc] @@ -487,7 +536,7 @@ def test_find_binary_canary_not_consulted_when_found_earlier(monkeypatch, mocker result = find_nvidia_binary_utility("nvcc") - assert result == os.path.abspath(conda_nvcc) + assert result == str(Path(conda_nvcc).resolve()) canary_mock.assert_not_called() @@ -657,9 +706,9 @@ def test_resolve_in_trusted_dirs_returns_absolute_path(tmp_path, monkeypatch, mo side_effect=lambda path: path == candidate, ) - # Anchor CWD so os.path.abspath is deterministic for the assertion. + # Anchor CWD so relative candidates have a deterministic resolved path. monkeypatch.chdir(tmp_path) result = binary_finder_module._resolve_in_trusted_dirs("nvcc", [rel_dir]) assert os.path.isabs(result) - assert result == os.path.abspath(os.path.join(str(tmp_path), candidate)) + assert result == str((tmp_path / candidate).resolve()) diff --git a/cuda_pathfinder/tests/test_find_nvidia_headers.py b/cuda_pathfinder/tests/test_find_nvidia_headers.py index ec114372b880..74bddf25d83a 100644 --- a/cuda_pathfinder/tests/test_find_nvidia_headers.py +++ b/cuda_pathfinder/tests/test_find_nvidia_headers.py @@ -217,6 +217,41 @@ def test_locate_non_ctk_headers_uses_product_root(tmp_path, monkeypatch, mocker, assert located_hdr_dir.found_via == env_var +@pytest.mark.skipif(os.name == "nt", reason="POSIX symlink traversal") +@pytest.mark.parametrize("layout", ("direct", "symlink", "symlink-parent")) +@pytest.mark.usefixtures("clear_locate_nvidia_header_cache") +@pytest.mark.agent_authored(model="gpt-6") +def test_header_lookup_returns_resolved_path(tmp_path, monkeypatch, layout): + sdk = tmp_path / "installed" / "sdk" + (sdk / "leaf").mkdir(parents=True) + header_dir = sdk / "include" + header_dir.mkdir() + header = header_dir / "cudnn.h" + header.touch() + + monkeypatch.chdir(tmp_path) + if layout == "direct": + configured_root = Path("installed/sdk") + else: + target = sdk if layout == "symlink" else sdk / "leaf" + Path("alias").symlink_to(target, target_is_directory=True) + configured_root = Path("alias") if layout == "symlink" else Path("alias/..") + monkeypatch.delenv("CONDA_PREFIX", raising=False) + monkeypatch.setenv("CUDNN_PATH", str(configured_root)) + monkeypatch.setattr(find_nvidia_headers_module, "find_sub_dirs_all_sitepackages", lambda _sub_dir: []) + + located = locate_nvidia_header_directory("cudnn") + + assert located is not None + assert located.found_via == "CUDNN_PATH" + assert located.abs_path == str(header_dir.resolve()) + assert Path(located.abs_path, "cudnn.h").samefile(header) + monkeypatch.chdir(tmp_path.parent) + assert find_nvidia_header_directory("cudnn") == located.abs_path + assert locate_nvidia_header_directory("cudnn") is located + assert Path(find_nvidia_header_directory("cudnn"), "cudnn.h").samefile(header) + + @pytest.mark.parametrize( ("libname", "system_pattern"), [ @@ -299,13 +334,13 @@ def test_locate_non_ctk_headers(info_summary_append, libname): assert (hdr_dir_path / SUPPORTED_HEADERS_NON_CTK[libname]).is_file() if have_distribution_for(libname): assert hdr_dir is not None - assert "site-packages" in Path(hdr_dir).parts + assert located_hdr_dir.found_via == "site-packages" elif STRICTNESS == "all_must_work": assert hdr_dir is not None if located_hdr_dir.found_via in HEADER_DESCRIPTORS[libname].product_root_env_vars: - assert hdr_dir.startswith(os.environ[located_hdr_dir.found_via]) + assert Path(hdr_dir).is_relative_to(Path(os.environ[located_hdr_dir.found_via]).resolve()) elif conda_prefix := os.environ.get("CONDA_PREFIX"): - assert hdr_dir.startswith(conda_prefix) + assert Path(hdr_dir).is_relative_to(Path(conda_prefix).resolve()) else: inst_dirs = SUPPORTED_INSTALL_DIRS_NON_CTK.get(libname) if inst_dirs is not None: @@ -313,7 +348,7 @@ def test_locate_non_ctk_headers(info_summary_append, libname): # Absolute glob pattern: Path.glob needs a separate base dir, # and the wildcard is not pinned to the last component. globbed = glob.glob(os.path.expandvars(inst_dir)) - if hdr_dir in globbed: + if Path(hdr_dir) in (Path(path).resolve() for path in globbed): break else: raise RuntimeError(f"{hdr_dir=} does not match any {inst_dirs=}") diff --git a/cuda_pathfinder/tests/test_find_static_lib.py b/cuda_pathfinder/tests/test_find_static_lib.py index cf0e62dc8a2b..3cc3adc8f241 100644 --- a/cuda_pathfinder/tests/test_find_static_lib.py +++ b/cuda_pathfinder/tests/test_find_static_lib.py @@ -71,8 +71,7 @@ def test_locate_static_lib(info_summary_append, libname): _located_static_lib_asserts(located_lib) assert Path(lib_path).is_file() assert lib_path == located_lib.abs_path - expected_filename = located_lib.filename - assert Path(lib_path).name == expected_filename + assert located_lib.filename == find_static_lib_module._SUPPORTED_STATIC_LIBS_INFO[libname]["filename"] @pytest.mark.usefixtures("clear_find_static_lib_cache") @@ -117,6 +116,88 @@ def test_locate_static_lib_search_order(monkeypatch, tmp_path): assert located_lib.found_via == "CUDA_PATH" +@pytest.mark.usefixtures("clear_find_static_lib_cache") +@pytest.mark.parametrize("source", ("site-packages", "conda", "CUDA_PATH")) +@pytest.mark.agent_authored(model="gpt-6") +def test_locate_static_lib_returns_resolved_path_for_relative_root(monkeypatch, tmp_path, source): + monkeypatch.chdir(tmp_path) + monkeypatch.delenv("CONDA_PREFIX", raising=False) + monkeypatch.delenv("CUDA_HOME", raising=False) + monkeypatch.delenv("CUDA_PATH", raising=False) + + root = Path("relative-root") + if source == "site-packages": + lib_dir = root / Path(CUDADEVRT_INFO["site_packages_dirs"][0]) + monkeypatch.setattr(find_static_lib_module, "find_sub_dirs_all_sitepackages", lambda _sub_dir: [str(lib_dir)]) + else: + monkeypatch.setattr(find_static_lib_module, "find_sub_dirs_all_sitepackages", lambda _sub_dir: []) + if source == "conda": + monkeypatch.setenv("CONDA_PREFIX", str(root)) + lib_dir = _conda_anchor(root) / Path(CUDADEVRT_INFO["conda_rel_paths"][0]) + else: + monkeypatch.setenv("CUDA_HOME", str(root)) + lib_dir = root / Path(CUDADEVRT_INFO["ctk_rel_paths"][0]) + + expected = (tmp_path / lib_dir / CUDADEVRT_INFO["filename"]).resolve() + expected.parent.mkdir(parents=True) + expected.touch() + located = locate_static_lib("cudadevrt") + assert located.found_via == source + assert located.abs_path == str(expected) + assert find_static_lib("cudadevrt") == str(expected) + + monkeypatch.chdir(tmp_path.parent) + assert Path(located.abs_path).is_file() + assert Path(find_static_lib("cudadevrt")).is_file() + + +@pytest.mark.skipif(os.name == "nt", reason="POSIX symlink parent traversal") +@pytest.mark.usefixtures("clear_find_static_lib_cache") +@pytest.mark.agent_authored(model="gpt-6") +def test_locate_static_lib_preserves_symlink_parent(monkeypatch, tmp_path): + monkeypatch.chdir(tmp_path) + monkeypatch.delenv("CONDA_PREFIX", raising=False) + monkeypatch.delenv("CUDA_PATH", raising=False) + monkeypatch.setenv("CUDA_HOME", "alias/..") + monkeypatch.setattr(find_static_lib_module, "find_sub_dirs_all_sitepackages", lambda _sub_dir: []) + + real_root = tmp_path / "real" + (real_root / "child").mkdir(parents=True) + (tmp_path / "alias").symlink_to(real_root / "child", target_is_directory=True) + expected = real_root / Path(CUDADEVRT_INFO["ctk_rel_paths"][0]) / CUDADEVRT_INFO["filename"] + expected.parent.mkdir(parents=True) + expected.touch() + + located = locate_static_lib("cudadevrt") + assert located.abs_path == str(expected.resolve()) + cached = find_static_lib("cudadevrt") + monkeypatch.chdir(tmp_path.parent) + assert cached == str(expected.resolve()) + assert find_static_lib("cudadevrt") == cached + + +@pytest.mark.skipif(os.name == "nt", reason="Symlink creation requires privileges on Windows") +@pytest.mark.usefixtures("clear_find_static_lib_cache") +@pytest.mark.agent_authored(model="gpt-6") +def test_locate_static_lib_resolves_symlinked_file(monkeypatch, tmp_path): + monkeypatch.delenv("CONDA_PREFIX", raising=False) + monkeypatch.delenv("CUDA_PATH", raising=False) + monkeypatch.setattr(find_static_lib_module, "find_sub_dirs_all_sitepackages", lambda _sub_dir: []) + root = tmp_path / "toolkit" + monkeypatch.setenv("CUDA_HOME", str(root)) + info = CUDADEVRT_INFO + target = tmp_path / "actual-library" + target.touch() + candidate = root / info["ctk_rel_paths"][0] / info["filename"] + candidate.parent.mkdir(parents=True) + candidate.symlink_to(target) + + located = locate_static_lib("cudadevrt") + assert located.abs_path == str(target.resolve()) + assert located.filename == info["filename"] + assert find_static_lib("cudadevrt") == located.abs_path + + @pytest.mark.usefixtures("clear_find_static_lib_cache") def test_locate_static_lib_conda_rel_path_fallback(monkeypatch, tmp_path): filename = CUDADEVRT_INFO["filename"] diff --git a/cuda_pathfinder/tests/test_search_steps.py b/cuda_pathfinder/tests/test_search_steps.py index 5fa194d544a0..af752643f100 100644 --- a/cuda_pathfinder/tests/test_search_steps.py +++ b/cuda_pathfinder/tests/test_search_steps.py @@ -661,6 +661,29 @@ def test_found_linux(self, mocker, tmp_path): assert result.abs_path == str(so_file) assert result.found_via == "CUDA_PATH" + @pytest.mark.skipif(os.name == "nt", reason="POSIX symlink parent traversal") + @pytest.mark.agent_authored(model="gpt-6") + def test_symlink_parent_root_selects_correct_library(self, mocker, tmp_path): + sdk = tmp_path / "installed" / "sdk" + (sdk / "leaf").mkdir(parents=True) + lib_dir = sdk / "lib64" + lib_dir.mkdir() + selected_library = lib_dir / "libcudart.so" + selected_library.touch() + alias = tmp_path / "alias" + alias.symlink_to(sdk / "leaf", target_is_directory=True) + + wrong_lib_dir = tmp_path / "lib64" + wrong_lib_dir.mkdir() + (wrong_lib_dir / "libcudart.so").touch() + mocker.patch(f"{_STEPS_MOD}.get_cuda_path_or_home", return_value=str(alias / "..")) + + result = find_in_cuda_path(_ctx(platform=LinuxSearchPlatform())) + + assert result is not None + assert result.found_via == "CUDA_PATH" + assert os.path.samefile(result.abs_path, selected_library) + def test_found_windows(self, mocker, tmp_path): bin_dir = tmp_path / "bin" bin_dir.mkdir() diff --git a/cuda_pathfinder/tests/test_utils_resolve_path.py b/cuda_pathfinder/tests/test_utils_resolve_path.py new file mode 100644 index 000000000000..9c41197a84c0 --- /dev/null +++ b/cuda_pathfinder/tests/test_utils_resolve_path.py @@ -0,0 +1,66 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +import ctypes +import os +import subprocess +from pathlib import Path + +import pytest + +from cuda.pathfinder._utils.resolve_path import resolve_path + + +@pytest.mark.agent_authored(model="gpt-6") +def test_resolve_path_anchors_relative_parts(monkeypatch, tmp_path): + monkeypatch.chdir(tmp_path) + target = tmp_path / "toolkit" / "library.a" + target.parent.mkdir() + target.touch() + + found = resolve_path("toolkit", Path("library.a")) + assert found == target.resolve() + monkeypatch.chdir(tmp_path.parent) + assert found.is_file() + + +@pytest.mark.skipif(os.name == "nt", reason="POSIX symlink parent traversal") +@pytest.mark.agent_authored(model="gpt-6") +def test_resolve_path_follows_symlink_before_parent(tmp_path): + sdk = tmp_path / "sdk" + (sdk / "leaf").mkdir(parents=True) + (sdk / "include").mkdir() + target = sdk / "include" / "header.h" + target.touch() + alias = tmp_path / "alias" + alias.symlink_to(sdk / "leaf", target_is_directory=True) + + assert resolve_path(alias, "..", "include", "header.h") == target.resolve() + + +@pytest.mark.skipif(os.name != "nt", reason="Windows drive-relative paths") +@pytest.mark.thread_unsafe +@pytest.mark.agent_authored(model="gpt-6") +def test_resolve_path_anchors_another_drive_current_directory(monkeypatch, tmp_path): + target = tmp_path / "toolkit" / "library.a" + target.parent.mkdir() + target.touch() + used_drives = ctypes.windll.kernel32.GetLogicalDrives() + drive = next(f"{chr(ord('A') + index)}:" for index in range(25, 2, -1) if not used_drives & (1 << index)) + + subst = Path(os.environ["SYSTEMROOT"], "System32", "subst.exe").resolve() + assert subst.is_absolute() and subst.is_file() + subprocess.run( # noqa: S603 - trusted System32 executable and test-owned arguments. + [str(subst), drive, str(tmp_path)], check=True, capture_output=True + ) + try: + # Remember a cwd on the temporary drive, then switch back to the host drive. + monkeypatch.chdir(drive + "\\") + monkeypatch.chdir(tmp_path) + assert Path.cwd().drive.casefold() != drive.casefold() + found = resolve_path(drive + "toolkit", "library.a") + assert found == target.resolve() + finally: + subprocess.run( # noqa: S603 - remove only the temporary drive created by this test. + [str(subst), drive, "/d"], check=True, capture_output=True + ) From cf00f451f450290631f7fafb5484e8fafee6600f Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Tue, 10 Nov 2026 14:35:46 -0500 Subject: [PATCH 24/85] Catch-up generated code (#3410) --- .../cuda/bindings/_internal/cudla_linux.pyx | 157 +- .../cuda/bindings/_internal/cudla_windows.pyx | 101 +- .../cuda/bindings/_internal/cufile_linux.pyx | 509 +- .../cuda/bindings/_internal/driver_linux.pyx | 2112 +++------ .../bindings/_internal/driver_windows.pyx | 2112 +++------ .../bindings/_internal/nvfatbin_linux.pyx | 146 +- .../bindings/_internal/nvfatbin_windows.pyx | 94 +- .../bindings/_internal/nvjitlink_linux.pyx | 190 +- .../bindings/_internal/nvjitlink_windows.pyx | 122 +- .../cuda/bindings/_internal/nvml_linux.pyx | 4172 ++--------------- .../cuda/bindings/_internal/nvml_windows.pyx | 2676 ++--------- .../cuda/bindings/_internal/nvrtc_linux.pyx | 333 +- .../cuda/bindings/_internal/nvrtc_windows.pyx | 213 +- .../cuda/bindings/_internal/nvvm_linux.pyx | 168 +- .../cuda/bindings/_internal/nvvm_windows.pyx | 108 +- cuda_bindings_13/cuda/bindings/cudla.pyx | 40 +- 16 files changed, 2240 insertions(+), 11013 deletions(-) diff --git a/cuda_bindings_13/cuda/bindings/_internal/cudla_linux.pyx b/cuda_bindings_13/cuda/bindings/_internal/cudla_linux.pyx index 461464febfd8..07e44bf22d56 100644 --- a/cuda_bindings_13/cuda/bindings/_internal/cudla_linux.pyx +++ b/cuda_bindings_13/cuda/bindings/_internal/cudla_linux.pyx @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # This code was automatically generated across versions from 1.5.0 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=e12046de9e30b8295fe41d5061cde9687a84c9bcca32bbf6ddbcfa565fc488b5 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=cb3b6b9aa1163e7e39f1bd8728002ff326c7893c6f53adc17810a4ab7ac856f2 # <<<< PREAMBLE CONTENT >>>> @@ -82,102 +82,36 @@ cdef void* __cudlaGetLastError = NULL cdef void* __cudlaDestroyDevice = NULL cdef void* __cudlaSetTaskTimeoutInMs = NULL +cdef enum: _cyb_cudla_n_functions = 13 +cdef void** _cyb_cudla_slots[_cyb_cudla_n_functions] +cdef const char* _cyb_cudla_names[_cyb_cudla_n_functions] +_cyb_cudla_slots[0] = &__cudlaGetVersion; _cyb_cudla_names[0] = b'cudlaGetVersion' +_cyb_cudla_slots[1] = &__cudlaDeviceGetCount; _cyb_cudla_names[1] = b'cudlaDeviceGetCount' +_cyb_cudla_slots[2] = &__cudlaCreateDevice; _cyb_cudla_names[2] = b'cudlaCreateDevice' +_cyb_cudla_slots[3] = &__cudlaMemRegister; _cyb_cudla_names[3] = b'cudlaMemRegister' +_cyb_cudla_slots[4] = &__cudlaModuleLoadFromMemory; _cyb_cudla_names[4] = b'cudlaModuleLoadFromMemory' +_cyb_cudla_slots[5] = &__cudlaModuleGetAttributes; _cyb_cudla_names[5] = b'cudlaModuleGetAttributes' +_cyb_cudla_slots[6] = &__cudlaModuleUnload; _cyb_cudla_names[6] = b'cudlaModuleUnload' +_cyb_cudla_slots[7] = &__cudlaSubmitTask; _cyb_cudla_names[7] = b'cudlaSubmitTask' +_cyb_cudla_slots[8] = &__cudlaDeviceGetAttribute; _cyb_cudla_names[8] = b'cudlaDeviceGetAttribute' +_cyb_cudla_slots[9] = &__cudlaMemUnregister; _cyb_cudla_names[9] = b'cudlaMemUnregister' +_cyb_cudla_slots[10] = &__cudlaGetLastError; _cyb_cudla_names[10] = b'cudlaGetLastError' +_cyb_cudla_slots[11] = &__cudlaDestroyDevice; _cyb_cudla_names[11] = b'cudlaDestroyDevice' +_cyb_cudla_slots[12] = &__cudlaSetTaskTimeoutInMs; _cyb_cudla_names[12] = b'cudlaSetTaskTimeoutInMs' + cdef int _init_cudla() except -1 nogil: global _cyb___py_cudla_init cdef void* handle = NULL + cdef Py_ssize_t i with gil, _cyb_symbol_lock: if _cyb___py_cudla_init: return 0 - global __cudlaGetVersion - __cudlaGetVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cudlaGetVersion') - if __cudlaGetVersion == NULL: - if handle == NULL: - handle = load_library() - __cudlaGetVersion = _cyb_dlsym(handle, 'cudlaGetVersion') - - global __cudlaDeviceGetCount - __cudlaDeviceGetCount = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cudlaDeviceGetCount') - if __cudlaDeviceGetCount == NULL: - if handle == NULL: - handle = load_library() - __cudlaDeviceGetCount = _cyb_dlsym(handle, 'cudlaDeviceGetCount') - - global __cudlaCreateDevice - __cudlaCreateDevice = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cudlaCreateDevice') - if __cudlaCreateDevice == NULL: - if handle == NULL: - handle = load_library() - __cudlaCreateDevice = _cyb_dlsym(handle, 'cudlaCreateDevice') - - global __cudlaMemRegister - __cudlaMemRegister = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cudlaMemRegister') - if __cudlaMemRegister == NULL: - if handle == NULL: - handle = load_library() - __cudlaMemRegister = _cyb_dlsym(handle, 'cudlaMemRegister') - - global __cudlaModuleLoadFromMemory - __cudlaModuleLoadFromMemory = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cudlaModuleLoadFromMemory') - if __cudlaModuleLoadFromMemory == NULL: - if handle == NULL: - handle = load_library() - __cudlaModuleLoadFromMemory = _cyb_dlsym(handle, 'cudlaModuleLoadFromMemory') - - global __cudlaModuleGetAttributes - __cudlaModuleGetAttributes = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cudlaModuleGetAttributes') - if __cudlaModuleGetAttributes == NULL: - if handle == NULL: - handle = load_library() - __cudlaModuleGetAttributes = _cyb_dlsym(handle, 'cudlaModuleGetAttributes') - - global __cudlaModuleUnload - __cudlaModuleUnload = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cudlaModuleUnload') - if __cudlaModuleUnload == NULL: - if handle == NULL: - handle = load_library() - __cudlaModuleUnload = _cyb_dlsym(handle, 'cudlaModuleUnload') - - global __cudlaSubmitTask - __cudlaSubmitTask = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cudlaSubmitTask') - if __cudlaSubmitTask == NULL: - if handle == NULL: - handle = load_library() - __cudlaSubmitTask = _cyb_dlsym(handle, 'cudlaSubmitTask') - - global __cudlaDeviceGetAttribute - __cudlaDeviceGetAttribute = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cudlaDeviceGetAttribute') - if __cudlaDeviceGetAttribute == NULL: - if handle == NULL: - handle = load_library() - __cudlaDeviceGetAttribute = _cyb_dlsym(handle, 'cudlaDeviceGetAttribute') - - global __cudlaMemUnregister - __cudlaMemUnregister = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cudlaMemUnregister') - if __cudlaMemUnregister == NULL: - if handle == NULL: - handle = load_library() - __cudlaMemUnregister = _cyb_dlsym(handle, 'cudlaMemUnregister') - - global __cudlaGetLastError - __cudlaGetLastError = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cudlaGetLastError') - if __cudlaGetLastError == NULL: - if handle == NULL: - handle = load_library() - __cudlaGetLastError = _cyb_dlsym(handle, 'cudlaGetLastError') - - global __cudlaDestroyDevice - __cudlaDestroyDevice = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cudlaDestroyDevice') - if __cudlaDestroyDevice == NULL: - if handle == NULL: - handle = load_library() - __cudlaDestroyDevice = _cyb_dlsym(handle, 'cudlaDestroyDevice') - - global __cudlaSetTaskTimeoutInMs - __cudlaSetTaskTimeoutInMs = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cudlaSetTaskTimeoutInMs') - if __cudlaSetTaskTimeoutInMs == NULL: - if handle == NULL: - handle = load_library() - __cudlaSetTaskTimeoutInMs = _cyb_dlsym(handle, 'cudlaSetTaskTimeoutInMs') + for i in range(_cyb_cudla_n_functions): + _cyb_cudla_slots[i][0] = _cyb_dlsym(_cyb_RTLD_DEFAULT, _cyb_cudla_names[i]) + if _cyb_cudla_slots[i][0] == NULL: + if handle == NULL: + handle = load_library() + _cyb_cudla_slots[i][0] = _cyb_dlsym(handle, _cyb_cudla_names[i]) _cyb_atomic_int_store(&_cyb___py_cudla_init, 1) return 0 @@ -196,44 +130,9 @@ cpdef dict _inspect_function_pointers(): _check_or_init_cudla() cdef dict data = {} - global __cudlaGetVersion - data["__cudlaGetVersion"] = __cudlaGetVersion - - global __cudlaDeviceGetCount - data["__cudlaDeviceGetCount"] = __cudlaDeviceGetCount - - global __cudlaCreateDevice - data["__cudlaCreateDevice"] = __cudlaCreateDevice - - global __cudlaMemRegister - data["__cudlaMemRegister"] = __cudlaMemRegister - - global __cudlaModuleLoadFromMemory - data["__cudlaModuleLoadFromMemory"] = __cudlaModuleLoadFromMemory - - global __cudlaModuleGetAttributes - data["__cudlaModuleGetAttributes"] = __cudlaModuleGetAttributes - - global __cudlaModuleUnload - data["__cudlaModuleUnload"] = __cudlaModuleUnload - - global __cudlaSubmitTask - data["__cudlaSubmitTask"] = __cudlaSubmitTask - - global __cudlaDeviceGetAttribute - data["__cudlaDeviceGetAttribute"] = __cudlaDeviceGetAttribute - - global __cudlaMemUnregister - data["__cudlaMemUnregister"] = __cudlaMemUnregister - - global __cudlaGetLastError - data["__cudlaGetLastError"] = __cudlaGetLastError - - global __cudlaDestroyDevice - data["__cudlaDestroyDevice"] = __cudlaDestroyDevice - - global __cudlaSetTaskTimeoutInMs - data["__cudlaSetTaskTimeoutInMs"] = __cudlaSetTaskTimeoutInMs + cdef Py_ssize_t i + for i in range(_cyb_cudla_n_functions): + data['__' + _cyb_cudla_names[i].decode()] = _cyb_cudla_slots[i][0] _cyb_func_ptrs = data return data diff --git a/cuda_bindings_13/cuda/bindings/_internal/cudla_windows.pyx b/cuda_bindings_13/cuda/bindings/_internal/cudla_windows.pyx index f7a1af513405..58fd6b48f70f 100644 --- a/cuda_bindings_13/cuda/bindings/_internal/cudla_windows.pyx +++ b/cuda_bindings_13/cuda/bindings/_internal/cudla_windows.pyx @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # This code was automatically generated across versions from 1.5.0 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=9df535111c371b1a39c43b944cf9245be42211d5f06b80d888ea9c4596329edc +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=aa6f8135abba7596111ca9a218e25ed73978afc7f5c88ea07cc58a63a32da4dc # <<<< PREAMBLE CONTENT >>>> @@ -85,53 +85,35 @@ cdef void* __cudlaGetLastError = NULL cdef void* __cudlaDestroyDevice = NULL cdef void* __cudlaSetTaskTimeoutInMs = NULL +cdef enum: _cyb_cudla_n_functions = 13 +cdef void** _cyb_cudla_slots[_cyb_cudla_n_functions] +cdef const char* _cyb_cudla_names[_cyb_cudla_n_functions] +_cyb_cudla_slots[0] = &__cudlaGetVersion; _cyb_cudla_names[0] = b'cudlaGetVersion' +_cyb_cudla_slots[1] = &__cudlaDeviceGetCount; _cyb_cudla_names[1] = b'cudlaDeviceGetCount' +_cyb_cudla_slots[2] = &__cudlaCreateDevice; _cyb_cudla_names[2] = b'cudlaCreateDevice' +_cyb_cudla_slots[3] = &__cudlaMemRegister; _cyb_cudla_names[3] = b'cudlaMemRegister' +_cyb_cudla_slots[4] = &__cudlaModuleLoadFromMemory; _cyb_cudla_names[4] = b'cudlaModuleLoadFromMemory' +_cyb_cudla_slots[5] = &__cudlaModuleGetAttributes; _cyb_cudla_names[5] = b'cudlaModuleGetAttributes' +_cyb_cudla_slots[6] = &__cudlaModuleUnload; _cyb_cudla_names[6] = b'cudlaModuleUnload' +_cyb_cudla_slots[7] = &__cudlaSubmitTask; _cyb_cudla_names[7] = b'cudlaSubmitTask' +_cyb_cudla_slots[8] = &__cudlaDeviceGetAttribute; _cyb_cudla_names[8] = b'cudlaDeviceGetAttribute' +_cyb_cudla_slots[9] = &__cudlaMemUnregister; _cyb_cudla_names[9] = b'cudlaMemUnregister' +_cyb_cudla_slots[10] = &__cudlaGetLastError; _cyb_cudla_names[10] = b'cudlaGetLastError' +_cyb_cudla_slots[11] = &__cudlaDestroyDevice; _cyb_cudla_names[11] = b'cudlaDestroyDevice' +_cyb_cudla_slots[12] = &__cudlaSetTaskTimeoutInMs; _cyb_cudla_names[12] = b'cudlaSetTaskTimeoutInMs' + cdef int _init_cudla() except -1 nogil: global _cyb___py_cudla_init cdef int err cdef uintptr_t handle + cdef Py_ssize_t i with gil, _cyb_symbol_lock: if _cyb___py_cudla_init: return 0 handle = load_library() - global __cudlaGetVersion - __cudlaGetVersion = _cyb_GetProcAddress(handle, 'cudlaGetVersion') - - global __cudlaDeviceGetCount - __cudlaDeviceGetCount = _cyb_GetProcAddress(handle, 'cudlaDeviceGetCount') - - global __cudlaCreateDevice - __cudlaCreateDevice = _cyb_GetProcAddress(handle, 'cudlaCreateDevice') - - global __cudlaMemRegister - __cudlaMemRegister = _cyb_GetProcAddress(handle, 'cudlaMemRegister') - - global __cudlaModuleLoadFromMemory - __cudlaModuleLoadFromMemory = _cyb_GetProcAddress(handle, 'cudlaModuleLoadFromMemory') - - global __cudlaModuleGetAttributes - __cudlaModuleGetAttributes = _cyb_GetProcAddress(handle, 'cudlaModuleGetAttributes') - - global __cudlaModuleUnload - __cudlaModuleUnload = _cyb_GetProcAddress(handle, 'cudlaModuleUnload') - - global __cudlaSubmitTask - __cudlaSubmitTask = _cyb_GetProcAddress(handle, 'cudlaSubmitTask') - - global __cudlaDeviceGetAttribute - __cudlaDeviceGetAttribute = _cyb_GetProcAddress(handle, 'cudlaDeviceGetAttribute') - - global __cudlaMemUnregister - __cudlaMemUnregister = _cyb_GetProcAddress(handle, 'cudlaMemUnregister') - - global __cudlaGetLastError - __cudlaGetLastError = _cyb_GetProcAddress(handle, 'cudlaGetLastError') - - global __cudlaDestroyDevice - __cudlaDestroyDevice = _cyb_GetProcAddress(handle, 'cudlaDestroyDevice') - - global __cudlaSetTaskTimeoutInMs - __cudlaSetTaskTimeoutInMs = _cyb_GetProcAddress(handle, 'cudlaSetTaskTimeoutInMs') + for i in range(_cyb_cudla_n_functions): + _cyb_cudla_slots[i][0] = _cyb_GetProcAddress(handle, _cyb_cudla_names[i]) _cyb_atomic_int_store(&_cyb___py_cudla_init, 1) return 0 @@ -150,44 +132,9 @@ cpdef dict _inspect_function_pointers(): _check_or_init_cudla() cdef dict data = {} - global __cudlaGetVersion - data["__cudlaGetVersion"] = __cudlaGetVersion - - global __cudlaDeviceGetCount - data["__cudlaDeviceGetCount"] = __cudlaDeviceGetCount - - global __cudlaCreateDevice - data["__cudlaCreateDevice"] = __cudlaCreateDevice - - global __cudlaMemRegister - data["__cudlaMemRegister"] = __cudlaMemRegister - - global __cudlaModuleLoadFromMemory - data["__cudlaModuleLoadFromMemory"] = __cudlaModuleLoadFromMemory - - global __cudlaModuleGetAttributes - data["__cudlaModuleGetAttributes"] = __cudlaModuleGetAttributes - - global __cudlaModuleUnload - data["__cudlaModuleUnload"] = __cudlaModuleUnload - - global __cudlaSubmitTask - data["__cudlaSubmitTask"] = __cudlaSubmitTask - - global __cudlaDeviceGetAttribute - data["__cudlaDeviceGetAttribute"] = __cudlaDeviceGetAttribute - - global __cudlaMemUnregister - data["__cudlaMemUnregister"] = __cudlaMemUnregister - - global __cudlaGetLastError - data["__cudlaGetLastError"] = __cudlaGetLastError - - global __cudlaDestroyDevice - data["__cudlaDestroyDevice"] = __cudlaDestroyDevice - - global __cudlaSetTaskTimeoutInMs - data["__cudlaSetTaskTimeoutInMs"] = __cudlaSetTaskTimeoutInMs + cdef Py_ssize_t i + for i in range(_cyb_cudla_n_functions): + data['__' + _cyb_cudla_names[i].decode()] = _cyb_cudla_slots[i][0] _cyb_func_ptrs = data return data diff --git a/cuda_bindings_13/cuda/bindings/_internal/cufile_linux.pyx b/cuda_bindings_13/cuda/bindings/_internal/cufile_linux.pyx index 6f5f8835407f..15bf2e5495d9 100644 --- a/cuda_bindings_13/cuda/bindings/_internal/cufile_linux.pyx +++ b/cuda_bindings_13/cuda/bindings/_internal/cufile_linux.pyx @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated across versions from 12.9.1 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=f4d10643352df1fe4737e5da36a2aeea86a4b00a5d2b505fa84c95aa11539127 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=5a9cf48798f2417f44a0ed12648c61e0f9ada86e4001ab1430706e9e2c21cc2b # <<<< PREAMBLE CONTENT >>>> @@ -113,326 +113,68 @@ cdef void* __cuFileGetParameterPosixPoolSlabArray = NULL cdef void* __cuFileReadv = NULL cdef void* __cuFileWritev = NULL +cdef enum: _cyb_cufile_n_functions = 45 +cdef void** _cyb_cufile_slots[_cyb_cufile_n_functions] +cdef const char* _cyb_cufile_names[_cyb_cufile_n_functions] +_cyb_cufile_slots[0] = &__cuFileHandleRegister; _cyb_cufile_names[0] = b'cuFileHandleRegister' +_cyb_cufile_slots[1] = &__cuFileHandleDeregister; _cyb_cufile_names[1] = b'cuFileHandleDeregister' +_cyb_cufile_slots[2] = &__cuFileBufRegister; _cyb_cufile_names[2] = b'cuFileBufRegister' +_cyb_cufile_slots[3] = &__cuFileBufDeregister; _cyb_cufile_names[3] = b'cuFileBufDeregister' +_cyb_cufile_slots[4] = &__cuFileRead; _cyb_cufile_names[4] = b'cuFileRead' +_cyb_cufile_slots[5] = &__cuFileWrite; _cyb_cufile_names[5] = b'cuFileWrite' +_cyb_cufile_slots[6] = &__cuFileDriverOpen; _cyb_cufile_names[6] = b'cuFileDriverOpen' +_cyb_cufile_slots[7] = &__cuFileDriverClose; _cyb_cufile_names[7] = b'cuFileDriverClose' +_cyb_cufile_slots[8] = &__cuFileDriverClose_v2; _cyb_cufile_names[8] = b'cuFileDriverClose_v2' +_cyb_cufile_slots[9] = &__cuFileUseCount; _cyb_cufile_names[9] = b'cuFileUseCount' +_cyb_cufile_slots[10] = &__cuFileDriverGetProperties; _cyb_cufile_names[10] = b'cuFileDriverGetProperties' +_cyb_cufile_slots[11] = &__cuFileDriverSetPollMode; _cyb_cufile_names[11] = b'cuFileDriverSetPollMode' +_cyb_cufile_slots[12] = &__cuFileDriverSetMaxDirectIOSize; _cyb_cufile_names[12] = b'cuFileDriverSetMaxDirectIOSize' +_cyb_cufile_slots[13] = &__cuFileDriverSetMaxCacheSize; _cyb_cufile_names[13] = b'cuFileDriverSetMaxCacheSize' +_cyb_cufile_slots[14] = &__cuFileDriverSetMaxPinnedMemSize; _cyb_cufile_names[14] = b'cuFileDriverSetMaxPinnedMemSize' +_cyb_cufile_slots[15] = &__cuFileBatchIOSetUp; _cyb_cufile_names[15] = b'cuFileBatchIOSetUp' +_cyb_cufile_slots[16] = &__cuFileBatchIOSubmit; _cyb_cufile_names[16] = b'cuFileBatchIOSubmit' +_cyb_cufile_slots[17] = &__cuFileBatchIOGetStatus; _cyb_cufile_names[17] = b'cuFileBatchIOGetStatus' +_cyb_cufile_slots[18] = &__cuFileBatchIOCancel; _cyb_cufile_names[18] = b'cuFileBatchIOCancel' +_cyb_cufile_slots[19] = &__cuFileBatchIODestroy; _cyb_cufile_names[19] = b'cuFileBatchIODestroy' +_cyb_cufile_slots[20] = &__cuFileReadAsync; _cyb_cufile_names[20] = b'cuFileReadAsync' +_cyb_cufile_slots[21] = &__cuFileWriteAsync; _cyb_cufile_names[21] = b'cuFileWriteAsync' +_cyb_cufile_slots[22] = &__cuFileStreamRegister; _cyb_cufile_names[22] = b'cuFileStreamRegister' +_cyb_cufile_slots[23] = &__cuFileStreamDeregister; _cyb_cufile_names[23] = b'cuFileStreamDeregister' +_cyb_cufile_slots[24] = &__cuFileGetVersion; _cyb_cufile_names[24] = b'cuFileGetVersion' +_cyb_cufile_slots[25] = &__cuFileGetParameterSizeT; _cyb_cufile_names[25] = b'cuFileGetParameterSizeT' +_cyb_cufile_slots[26] = &__cuFileGetParameterBool; _cyb_cufile_names[26] = b'cuFileGetParameterBool' +_cyb_cufile_slots[27] = &__cuFileGetParameterString; _cyb_cufile_names[27] = b'cuFileGetParameterString' +_cyb_cufile_slots[28] = &__cuFileSetParameterSizeT; _cyb_cufile_names[28] = b'cuFileSetParameterSizeT' +_cyb_cufile_slots[29] = &__cuFileSetParameterBool; _cyb_cufile_names[29] = b'cuFileSetParameterBool' +_cyb_cufile_slots[30] = &__cuFileSetParameterString; _cyb_cufile_names[30] = b'cuFileSetParameterString' +_cyb_cufile_slots[31] = &__cuFileGetParameterMinMaxValue; _cyb_cufile_names[31] = b'cuFileGetParameterMinMaxValue' +_cyb_cufile_slots[32] = &__cuFileSetStatsLevel; _cyb_cufile_names[32] = b'cuFileSetStatsLevel' +_cyb_cufile_slots[33] = &__cuFileGetStatsLevel; _cyb_cufile_names[33] = b'cuFileGetStatsLevel' +_cyb_cufile_slots[34] = &__cuFileStatsStart; _cyb_cufile_names[34] = b'cuFileStatsStart' +_cyb_cufile_slots[35] = &__cuFileStatsStop; _cyb_cufile_names[35] = b'cuFileStatsStop' +_cyb_cufile_slots[36] = &__cuFileStatsReset; _cyb_cufile_names[36] = b'cuFileStatsReset' +_cyb_cufile_slots[37] = &__cuFileGetStatsL1; _cyb_cufile_names[37] = b'cuFileGetStatsL1' +_cyb_cufile_slots[38] = &__cuFileGetStatsL2; _cyb_cufile_names[38] = b'cuFileGetStatsL2' +_cyb_cufile_slots[39] = &__cuFileGetStatsL3; _cyb_cufile_names[39] = b'cuFileGetStatsL3' +_cyb_cufile_slots[40] = &__cuFileGetBARSizeInKB; _cyb_cufile_names[40] = b'cuFileGetBARSizeInKB' +_cyb_cufile_slots[41] = &__cuFileSetParameterPosixPoolSlabArray; _cyb_cufile_names[41] = b'cuFileSetParameterPosixPoolSlabArray' +_cyb_cufile_slots[42] = &__cuFileGetParameterPosixPoolSlabArray; _cyb_cufile_names[42] = b'cuFileGetParameterPosixPoolSlabArray' +_cyb_cufile_slots[43] = &__cuFileReadv; _cyb_cufile_names[43] = b'cuFileReadv' +_cyb_cufile_slots[44] = &__cuFileWritev; _cyb_cufile_names[44] = b'cuFileWritev' + cdef int _init_cufile() except -1 nogil: global _cyb___py_cufile_init cdef void* handle = NULL + cdef Py_ssize_t i with gil, _cyb_symbol_lock: if _cyb___py_cufile_init: return 0 - global __cuFileHandleRegister - __cuFileHandleRegister = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileHandleRegister') - if __cuFileHandleRegister == NULL: - if handle == NULL: - handle = load_library() - __cuFileHandleRegister = _cyb_dlsym(handle, 'cuFileHandleRegister') - - global __cuFileHandleDeregister - __cuFileHandleDeregister = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileHandleDeregister') - if __cuFileHandleDeregister == NULL: - if handle == NULL: - handle = load_library() - __cuFileHandleDeregister = _cyb_dlsym(handle, 'cuFileHandleDeregister') - - global __cuFileBufRegister - __cuFileBufRegister = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileBufRegister') - if __cuFileBufRegister == NULL: - if handle == NULL: - handle = load_library() - __cuFileBufRegister = _cyb_dlsym(handle, 'cuFileBufRegister') - - global __cuFileBufDeregister - __cuFileBufDeregister = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileBufDeregister') - if __cuFileBufDeregister == NULL: - if handle == NULL: - handle = load_library() - __cuFileBufDeregister = _cyb_dlsym(handle, 'cuFileBufDeregister') - - global __cuFileRead - __cuFileRead = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileRead') - if __cuFileRead == NULL: - if handle == NULL: - handle = load_library() - __cuFileRead = _cyb_dlsym(handle, 'cuFileRead') - - global __cuFileWrite - __cuFileWrite = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileWrite') - if __cuFileWrite == NULL: - if handle == NULL: - handle = load_library() - __cuFileWrite = _cyb_dlsym(handle, 'cuFileWrite') - - global __cuFileDriverOpen - __cuFileDriverOpen = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileDriverOpen') - if __cuFileDriverOpen == NULL: - if handle == NULL: - handle = load_library() - __cuFileDriverOpen = _cyb_dlsym(handle, 'cuFileDriverOpen') - - global __cuFileDriverClose - __cuFileDriverClose = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileDriverClose') - if __cuFileDriverClose == NULL: - if handle == NULL: - handle = load_library() - __cuFileDriverClose = _cyb_dlsym(handle, 'cuFileDriverClose') - - global __cuFileDriverClose_v2 - __cuFileDriverClose_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileDriverClose_v2') - if __cuFileDriverClose_v2 == NULL: - if handle == NULL: - handle = load_library() - __cuFileDriverClose_v2 = _cyb_dlsym(handle, 'cuFileDriverClose_v2') - - global __cuFileUseCount - __cuFileUseCount = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileUseCount') - if __cuFileUseCount == NULL: - if handle == NULL: - handle = load_library() - __cuFileUseCount = _cyb_dlsym(handle, 'cuFileUseCount') - - global __cuFileDriverGetProperties - __cuFileDriverGetProperties = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileDriverGetProperties') - if __cuFileDriverGetProperties == NULL: - if handle == NULL: - handle = load_library() - __cuFileDriverGetProperties = _cyb_dlsym(handle, 'cuFileDriverGetProperties') - - global __cuFileDriverSetPollMode - __cuFileDriverSetPollMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileDriverSetPollMode') - if __cuFileDriverSetPollMode == NULL: - if handle == NULL: - handle = load_library() - __cuFileDriverSetPollMode = _cyb_dlsym(handle, 'cuFileDriverSetPollMode') - - global __cuFileDriverSetMaxDirectIOSize - __cuFileDriverSetMaxDirectIOSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileDriverSetMaxDirectIOSize') - if __cuFileDriverSetMaxDirectIOSize == NULL: - if handle == NULL: - handle = load_library() - __cuFileDriverSetMaxDirectIOSize = _cyb_dlsym(handle, 'cuFileDriverSetMaxDirectIOSize') - - global __cuFileDriverSetMaxCacheSize - __cuFileDriverSetMaxCacheSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileDriverSetMaxCacheSize') - if __cuFileDriverSetMaxCacheSize == NULL: - if handle == NULL: - handle = load_library() - __cuFileDriverSetMaxCacheSize = _cyb_dlsym(handle, 'cuFileDriverSetMaxCacheSize') - - global __cuFileDriverSetMaxPinnedMemSize - __cuFileDriverSetMaxPinnedMemSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileDriverSetMaxPinnedMemSize') - if __cuFileDriverSetMaxPinnedMemSize == NULL: - if handle == NULL: - handle = load_library() - __cuFileDriverSetMaxPinnedMemSize = _cyb_dlsym(handle, 'cuFileDriverSetMaxPinnedMemSize') - - global __cuFileBatchIOSetUp - __cuFileBatchIOSetUp = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileBatchIOSetUp') - if __cuFileBatchIOSetUp == NULL: - if handle == NULL: - handle = load_library() - __cuFileBatchIOSetUp = _cyb_dlsym(handle, 'cuFileBatchIOSetUp') - - global __cuFileBatchIOSubmit - __cuFileBatchIOSubmit = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileBatchIOSubmit') - if __cuFileBatchIOSubmit == NULL: - if handle == NULL: - handle = load_library() - __cuFileBatchIOSubmit = _cyb_dlsym(handle, 'cuFileBatchIOSubmit') - - global __cuFileBatchIOGetStatus - __cuFileBatchIOGetStatus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileBatchIOGetStatus') - if __cuFileBatchIOGetStatus == NULL: - if handle == NULL: - handle = load_library() - __cuFileBatchIOGetStatus = _cyb_dlsym(handle, 'cuFileBatchIOGetStatus') - - global __cuFileBatchIOCancel - __cuFileBatchIOCancel = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileBatchIOCancel') - if __cuFileBatchIOCancel == NULL: - if handle == NULL: - handle = load_library() - __cuFileBatchIOCancel = _cyb_dlsym(handle, 'cuFileBatchIOCancel') - - global __cuFileBatchIODestroy - __cuFileBatchIODestroy = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileBatchIODestroy') - if __cuFileBatchIODestroy == NULL: - if handle == NULL: - handle = load_library() - __cuFileBatchIODestroy = _cyb_dlsym(handle, 'cuFileBatchIODestroy') - - global __cuFileReadAsync - __cuFileReadAsync = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileReadAsync') - if __cuFileReadAsync == NULL: - if handle == NULL: - handle = load_library() - __cuFileReadAsync = _cyb_dlsym(handle, 'cuFileReadAsync') - - global __cuFileWriteAsync - __cuFileWriteAsync = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileWriteAsync') - if __cuFileWriteAsync == NULL: - if handle == NULL: - handle = load_library() - __cuFileWriteAsync = _cyb_dlsym(handle, 'cuFileWriteAsync') - - global __cuFileStreamRegister - __cuFileStreamRegister = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileStreamRegister') - if __cuFileStreamRegister == NULL: - if handle == NULL: - handle = load_library() - __cuFileStreamRegister = _cyb_dlsym(handle, 'cuFileStreamRegister') - - global __cuFileStreamDeregister - __cuFileStreamDeregister = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileStreamDeregister') - if __cuFileStreamDeregister == NULL: - if handle == NULL: - handle = load_library() - __cuFileStreamDeregister = _cyb_dlsym(handle, 'cuFileStreamDeregister') - - global __cuFileGetVersion - __cuFileGetVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileGetVersion') - if __cuFileGetVersion == NULL: - if handle == NULL: - handle = load_library() - __cuFileGetVersion = _cyb_dlsym(handle, 'cuFileGetVersion') - - global __cuFileGetParameterSizeT - __cuFileGetParameterSizeT = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileGetParameterSizeT') - if __cuFileGetParameterSizeT == NULL: - if handle == NULL: - handle = load_library() - __cuFileGetParameterSizeT = _cyb_dlsym(handle, 'cuFileGetParameterSizeT') - - global __cuFileGetParameterBool - __cuFileGetParameterBool = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileGetParameterBool') - if __cuFileGetParameterBool == NULL: - if handle == NULL: - handle = load_library() - __cuFileGetParameterBool = _cyb_dlsym(handle, 'cuFileGetParameterBool') - - global __cuFileGetParameterString - __cuFileGetParameterString = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileGetParameterString') - if __cuFileGetParameterString == NULL: - if handle == NULL: - handle = load_library() - __cuFileGetParameterString = _cyb_dlsym(handle, 'cuFileGetParameterString') - - global __cuFileSetParameterSizeT - __cuFileSetParameterSizeT = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileSetParameterSizeT') - if __cuFileSetParameterSizeT == NULL: - if handle == NULL: - handle = load_library() - __cuFileSetParameterSizeT = _cyb_dlsym(handle, 'cuFileSetParameterSizeT') - - global __cuFileSetParameterBool - __cuFileSetParameterBool = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileSetParameterBool') - if __cuFileSetParameterBool == NULL: - if handle == NULL: - handle = load_library() - __cuFileSetParameterBool = _cyb_dlsym(handle, 'cuFileSetParameterBool') - - global __cuFileSetParameterString - __cuFileSetParameterString = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileSetParameterString') - if __cuFileSetParameterString == NULL: - if handle == NULL: - handle = load_library() - __cuFileSetParameterString = _cyb_dlsym(handle, 'cuFileSetParameterString') - - global __cuFileGetParameterMinMaxValue - __cuFileGetParameterMinMaxValue = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileGetParameterMinMaxValue') - if __cuFileGetParameterMinMaxValue == NULL: - if handle == NULL: - handle = load_library() - __cuFileGetParameterMinMaxValue = _cyb_dlsym(handle, 'cuFileGetParameterMinMaxValue') - - global __cuFileSetStatsLevel - __cuFileSetStatsLevel = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileSetStatsLevel') - if __cuFileSetStatsLevel == NULL: - if handle == NULL: - handle = load_library() - __cuFileSetStatsLevel = _cyb_dlsym(handle, 'cuFileSetStatsLevel') - - global __cuFileGetStatsLevel - __cuFileGetStatsLevel = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileGetStatsLevel') - if __cuFileGetStatsLevel == NULL: - if handle == NULL: - handle = load_library() - __cuFileGetStatsLevel = _cyb_dlsym(handle, 'cuFileGetStatsLevel') - - global __cuFileStatsStart - __cuFileStatsStart = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileStatsStart') - if __cuFileStatsStart == NULL: - if handle == NULL: - handle = load_library() - __cuFileStatsStart = _cyb_dlsym(handle, 'cuFileStatsStart') - - global __cuFileStatsStop - __cuFileStatsStop = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileStatsStop') - if __cuFileStatsStop == NULL: - if handle == NULL: - handle = load_library() - __cuFileStatsStop = _cyb_dlsym(handle, 'cuFileStatsStop') - - global __cuFileStatsReset - __cuFileStatsReset = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileStatsReset') - if __cuFileStatsReset == NULL: - if handle == NULL: - handle = load_library() - __cuFileStatsReset = _cyb_dlsym(handle, 'cuFileStatsReset') - - global __cuFileGetStatsL1 - __cuFileGetStatsL1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileGetStatsL1') - if __cuFileGetStatsL1 == NULL: - if handle == NULL: - handle = load_library() - __cuFileGetStatsL1 = _cyb_dlsym(handle, 'cuFileGetStatsL1') - - global __cuFileGetStatsL2 - __cuFileGetStatsL2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileGetStatsL2') - if __cuFileGetStatsL2 == NULL: - if handle == NULL: - handle = load_library() - __cuFileGetStatsL2 = _cyb_dlsym(handle, 'cuFileGetStatsL2') - - global __cuFileGetStatsL3 - __cuFileGetStatsL3 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileGetStatsL3') - if __cuFileGetStatsL3 == NULL: - if handle == NULL: - handle = load_library() - __cuFileGetStatsL3 = _cyb_dlsym(handle, 'cuFileGetStatsL3') - - global __cuFileGetBARSizeInKB - __cuFileGetBARSizeInKB = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileGetBARSizeInKB') - if __cuFileGetBARSizeInKB == NULL: - if handle == NULL: - handle = load_library() - __cuFileGetBARSizeInKB = _cyb_dlsym(handle, 'cuFileGetBARSizeInKB') - - global __cuFileSetParameterPosixPoolSlabArray - __cuFileSetParameterPosixPoolSlabArray = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileSetParameterPosixPoolSlabArray') - if __cuFileSetParameterPosixPoolSlabArray == NULL: - if handle == NULL: - handle = load_library() - __cuFileSetParameterPosixPoolSlabArray = _cyb_dlsym(handle, 'cuFileSetParameterPosixPoolSlabArray') - - global __cuFileGetParameterPosixPoolSlabArray - __cuFileGetParameterPosixPoolSlabArray = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileGetParameterPosixPoolSlabArray') - if __cuFileGetParameterPosixPoolSlabArray == NULL: - if handle == NULL: - handle = load_library() - __cuFileGetParameterPosixPoolSlabArray = _cyb_dlsym(handle, 'cuFileGetParameterPosixPoolSlabArray') - - global __cuFileReadv - __cuFileReadv = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileReadv') - if __cuFileReadv == NULL: - if handle == NULL: - handle = load_library() - __cuFileReadv = _cyb_dlsym(handle, 'cuFileReadv') - - global __cuFileWritev - __cuFileWritev = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileWritev') - if __cuFileWritev == NULL: - if handle == NULL: - handle = load_library() - __cuFileWritev = _cyb_dlsym(handle, 'cuFileWritev') + for i in range(_cyb_cufile_n_functions): + _cyb_cufile_slots[i][0] = _cyb_dlsym(_cyb_RTLD_DEFAULT, _cyb_cufile_names[i]) + if _cyb_cufile_slots[i][0] == NULL: + if handle == NULL: + handle = load_library() + _cyb_cufile_slots[i][0] = _cyb_dlsym(handle, _cyb_cufile_names[i]) _cyb_atomic_int_store(&_cyb___py_cufile_init, 1) return 0 @@ -451,140 +193,9 @@ cpdef dict _inspect_function_pointers(): _check_or_init_cufile() cdef dict data = {} - global __cuFileHandleRegister - data["__cuFileHandleRegister"] = __cuFileHandleRegister - - global __cuFileHandleDeregister - data["__cuFileHandleDeregister"] = __cuFileHandleDeregister - - global __cuFileBufRegister - data["__cuFileBufRegister"] = __cuFileBufRegister - - global __cuFileBufDeregister - data["__cuFileBufDeregister"] = __cuFileBufDeregister - - global __cuFileRead - data["__cuFileRead"] = __cuFileRead - - global __cuFileWrite - data["__cuFileWrite"] = __cuFileWrite - - global __cuFileDriverOpen - data["__cuFileDriverOpen"] = __cuFileDriverOpen - - global __cuFileDriverClose - data["__cuFileDriverClose"] = __cuFileDriverClose - - global __cuFileDriverClose_v2 - data["__cuFileDriverClose_v2"] = __cuFileDriverClose_v2 - - global __cuFileUseCount - data["__cuFileUseCount"] = __cuFileUseCount - - global __cuFileDriverGetProperties - data["__cuFileDriverGetProperties"] = __cuFileDriverGetProperties - - global __cuFileDriverSetPollMode - data["__cuFileDriverSetPollMode"] = __cuFileDriverSetPollMode - - global __cuFileDriverSetMaxDirectIOSize - data["__cuFileDriverSetMaxDirectIOSize"] = __cuFileDriverSetMaxDirectIOSize - - global __cuFileDriverSetMaxCacheSize - data["__cuFileDriverSetMaxCacheSize"] = __cuFileDriverSetMaxCacheSize - - global __cuFileDriverSetMaxPinnedMemSize - data["__cuFileDriverSetMaxPinnedMemSize"] = __cuFileDriverSetMaxPinnedMemSize - - global __cuFileBatchIOSetUp - data["__cuFileBatchIOSetUp"] = __cuFileBatchIOSetUp - - global __cuFileBatchIOSubmit - data["__cuFileBatchIOSubmit"] = __cuFileBatchIOSubmit - - global __cuFileBatchIOGetStatus - data["__cuFileBatchIOGetStatus"] = __cuFileBatchIOGetStatus - - global __cuFileBatchIOCancel - data["__cuFileBatchIOCancel"] = __cuFileBatchIOCancel - - global __cuFileBatchIODestroy - data["__cuFileBatchIODestroy"] = __cuFileBatchIODestroy - - global __cuFileReadAsync - data["__cuFileReadAsync"] = __cuFileReadAsync - - global __cuFileWriteAsync - data["__cuFileWriteAsync"] = __cuFileWriteAsync - - global __cuFileStreamRegister - data["__cuFileStreamRegister"] = __cuFileStreamRegister - - global __cuFileStreamDeregister - data["__cuFileStreamDeregister"] = __cuFileStreamDeregister - - global __cuFileGetVersion - data["__cuFileGetVersion"] = __cuFileGetVersion - - global __cuFileGetParameterSizeT - data["__cuFileGetParameterSizeT"] = __cuFileGetParameterSizeT - - global __cuFileGetParameterBool - data["__cuFileGetParameterBool"] = __cuFileGetParameterBool - - global __cuFileGetParameterString - data["__cuFileGetParameterString"] = __cuFileGetParameterString - - global __cuFileSetParameterSizeT - data["__cuFileSetParameterSizeT"] = __cuFileSetParameterSizeT - - global __cuFileSetParameterBool - data["__cuFileSetParameterBool"] = __cuFileSetParameterBool - - global __cuFileSetParameterString - data["__cuFileSetParameterString"] = __cuFileSetParameterString - - global __cuFileGetParameterMinMaxValue - data["__cuFileGetParameterMinMaxValue"] = __cuFileGetParameterMinMaxValue - - global __cuFileSetStatsLevel - data["__cuFileSetStatsLevel"] = __cuFileSetStatsLevel - - global __cuFileGetStatsLevel - data["__cuFileGetStatsLevel"] = __cuFileGetStatsLevel - - global __cuFileStatsStart - data["__cuFileStatsStart"] = __cuFileStatsStart - - global __cuFileStatsStop - data["__cuFileStatsStop"] = __cuFileStatsStop - - global __cuFileStatsReset - data["__cuFileStatsReset"] = __cuFileStatsReset - - global __cuFileGetStatsL1 - data["__cuFileGetStatsL1"] = __cuFileGetStatsL1 - - global __cuFileGetStatsL2 - data["__cuFileGetStatsL2"] = __cuFileGetStatsL2 - - global __cuFileGetStatsL3 - data["__cuFileGetStatsL3"] = __cuFileGetStatsL3 - - global __cuFileGetBARSizeInKB - data["__cuFileGetBARSizeInKB"] = __cuFileGetBARSizeInKB - - global __cuFileSetParameterPosixPoolSlabArray - data["__cuFileSetParameterPosixPoolSlabArray"] = __cuFileSetParameterPosixPoolSlabArray - - global __cuFileGetParameterPosixPoolSlabArray - data["__cuFileGetParameterPosixPoolSlabArray"] = __cuFileGetParameterPosixPoolSlabArray - - global __cuFileReadv - data["__cuFileReadv"] = __cuFileReadv - - global __cuFileWritev - data["__cuFileWritev"] = __cuFileWritev + cdef Py_ssize_t i + for i in range(_cyb_cufile_n_functions): + data['__' + _cyb_cufile_names[i].decode()] = _cyb_cufile_slots[i][0] _cyb_func_ptrs = data return data diff --git a/cuda_bindings_13/cuda/bindings/_internal/driver_linux.pyx b/cuda_bindings_13/cuda/bindings/_internal/driver_linux.pyx index a1a4472fe910..343a0f40011c 100644 --- a/cuda_bindings_13/cuda/bindings/_internal/driver_linux.pyx +++ b/cuda_bindings_13/cuda/bindings/_internal/driver_linux.pyx @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated across versions from 12.9.0 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=855d1d0530ab58f150ca5fb8b9ec43262cf0df681f507e2b53feeb6cf77c7c17 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=88aca008ee6758ef246c48fb5bdbd47afdc6c4b096a9f8f4dfe3209ae3ce2dea # <<<< PREAMBLE CONTENT >>>> @@ -594,6 +594,536 @@ cdef void* __cuCheckpointOperationComplete = NULL cdef void* __cuFabricCpyBatchAsync = NULL cdef void* __cuTensorMapSetAllocationClass = NULL +cdef enum: _cyb_driver_n_functions = 526 +cdef void** _cyb_driver_slots[_cyb_driver_n_functions] +cdef const char* _cyb_driver_names[_cyb_driver_n_functions] +_cyb_driver_slots[0] = &__cuGetErrorString; _cyb_driver_names[0] = b'cuGetErrorString' +_cyb_driver_slots[1] = &__cuGetErrorName; _cyb_driver_names[1] = b'cuGetErrorName' +_cyb_driver_slots[2] = &__cuInit; _cyb_driver_names[2] = b'cuInit' +_cyb_driver_slots[3] = &__cuDriverGetVersion; _cyb_driver_names[3] = b'cuDriverGetVersion' +_cyb_driver_slots[4] = &__cuDeviceGet; _cyb_driver_names[4] = b'cuDeviceGet' +_cyb_driver_slots[5] = &__cuDeviceGetCount; _cyb_driver_names[5] = b'cuDeviceGetCount' +_cyb_driver_slots[6] = &__cuDeviceGetName; _cyb_driver_names[6] = b'cuDeviceGetName' +_cyb_driver_slots[7] = &__cuDeviceGetUuid_v2; _cyb_driver_names[7] = b'cuDeviceGetUuid_v2' +_cyb_driver_slots[8] = &__cuDeviceGetLuid; _cyb_driver_names[8] = b'cuDeviceGetLuid' +_cyb_driver_slots[9] = &__cuDeviceTotalMem_v2; _cyb_driver_names[9] = b'cuDeviceTotalMem_v2' +_cyb_driver_slots[10] = &__cuDeviceGetTexture1DLinearMaxWidth; _cyb_driver_names[10] = b'cuDeviceGetTexture1DLinearMaxWidth' +_cyb_driver_slots[11] = &__cuDeviceGetAttribute; _cyb_driver_names[11] = b'cuDeviceGetAttribute' +_cyb_driver_slots[12] = &__cuDeviceGetNvSciSyncAttributes; _cyb_driver_names[12] = b'cuDeviceGetNvSciSyncAttributes' +_cyb_driver_slots[13] = &__cuDeviceSetMemPool; _cyb_driver_names[13] = b'cuDeviceSetMemPool' +_cyb_driver_slots[14] = &__cuDeviceGetMemPool; _cyb_driver_names[14] = b'cuDeviceGetMemPool' +_cyb_driver_slots[15] = &__cuDeviceGetDefaultMemPool; _cyb_driver_names[15] = b'cuDeviceGetDefaultMemPool' +_cyb_driver_slots[16] = &__cuDeviceGetExecAffinitySupport; _cyb_driver_names[16] = b'cuDeviceGetExecAffinitySupport' +_cyb_driver_slots[17] = &__cuFlushGPUDirectRDMAWrites; _cyb_driver_names[17] = b'cuFlushGPUDirectRDMAWrites' +_cyb_driver_slots[18] = &__cuDeviceGetProperties; _cyb_driver_names[18] = b'cuDeviceGetProperties' +_cyb_driver_slots[19] = &__cuDeviceComputeCapability; _cyb_driver_names[19] = b'cuDeviceComputeCapability' +_cyb_driver_slots[20] = &__cuDevicePrimaryCtxRetain; _cyb_driver_names[20] = b'cuDevicePrimaryCtxRetain' +_cyb_driver_slots[21] = &__cuDevicePrimaryCtxRelease_v2; _cyb_driver_names[21] = b'cuDevicePrimaryCtxRelease_v2' +_cyb_driver_slots[22] = &__cuDevicePrimaryCtxSetFlags_v2; _cyb_driver_names[22] = b'cuDevicePrimaryCtxSetFlags_v2' +_cyb_driver_slots[23] = &__cuDevicePrimaryCtxGetState; _cyb_driver_names[23] = b'cuDevicePrimaryCtxGetState' +_cyb_driver_slots[24] = &__cuDevicePrimaryCtxReset_v2; _cyb_driver_names[24] = b'cuDevicePrimaryCtxReset_v2' +_cyb_driver_slots[25] = &__cuCtxCreate_v2; _cyb_driver_names[25] = b'cuCtxCreate_v2' +_cyb_driver_slots[26] = &__cuCtxCreate_v3; _cyb_driver_names[26] = b'cuCtxCreate_v3' +_cyb_driver_slots[27] = &__cuCtxCreate_v4; _cyb_driver_names[27] = b'cuCtxCreate_v4' +_cyb_driver_slots[28] = &__cuCtxDestroy_v2; _cyb_driver_names[28] = b'cuCtxDestroy_v2' +_cyb_driver_slots[29] = &__cuCtxPushCurrent_v2; _cyb_driver_names[29] = b'cuCtxPushCurrent_v2' +_cyb_driver_slots[30] = &__cuCtxPopCurrent_v2; _cyb_driver_names[30] = b'cuCtxPopCurrent_v2' +_cyb_driver_slots[31] = &__cuCtxSetCurrent; _cyb_driver_names[31] = b'cuCtxSetCurrent' +_cyb_driver_slots[32] = &__cuCtxGetCurrent; _cyb_driver_names[32] = b'cuCtxGetCurrent' +_cyb_driver_slots[33] = &__cuCtxGetDevice; _cyb_driver_names[33] = b'cuCtxGetDevice' +_cyb_driver_slots[34] = &__cuCtxGetFlags; _cyb_driver_names[34] = b'cuCtxGetFlags' +_cyb_driver_slots[35] = &__cuCtxSetFlags; _cyb_driver_names[35] = b'cuCtxSetFlags' +_cyb_driver_slots[36] = &__cuCtxGetId; _cyb_driver_names[36] = b'cuCtxGetId' +_cyb_driver_slots[37] = &__cuCtxSynchronize; _cyb_driver_names[37] = b'cuCtxSynchronize' +_cyb_driver_slots[38] = &__cuCtxSetLimit; _cyb_driver_names[38] = b'cuCtxSetLimit' +_cyb_driver_slots[39] = &__cuCtxGetLimit; _cyb_driver_names[39] = b'cuCtxGetLimit' +_cyb_driver_slots[40] = &__cuCtxGetCacheConfig; _cyb_driver_names[40] = b'cuCtxGetCacheConfig' +_cyb_driver_slots[41] = &__cuCtxSetCacheConfig; _cyb_driver_names[41] = b'cuCtxSetCacheConfig' +_cyb_driver_slots[42] = &__cuCtxGetApiVersion; _cyb_driver_names[42] = b'cuCtxGetApiVersion' +_cyb_driver_slots[43] = &__cuCtxGetStreamPriorityRange; _cyb_driver_names[43] = b'cuCtxGetStreamPriorityRange' +_cyb_driver_slots[44] = &__cuCtxResetPersistingL2Cache; _cyb_driver_names[44] = b'cuCtxResetPersistingL2Cache' +_cyb_driver_slots[45] = &__cuCtxGetExecAffinity; _cyb_driver_names[45] = b'cuCtxGetExecAffinity' +_cyb_driver_slots[46] = &__cuCtxRecordEvent; _cyb_driver_names[46] = b'cuCtxRecordEvent' +_cyb_driver_slots[47] = &__cuCtxWaitEvent; _cyb_driver_names[47] = b'cuCtxWaitEvent' +_cyb_driver_slots[48] = &__cuCtxAttach; _cyb_driver_names[48] = b'cuCtxAttach' +_cyb_driver_slots[49] = &__cuCtxDetach; _cyb_driver_names[49] = b'cuCtxDetach' +_cyb_driver_slots[50] = &__cuCtxGetSharedMemConfig; _cyb_driver_names[50] = b'cuCtxGetSharedMemConfig' +_cyb_driver_slots[51] = &__cuCtxSetSharedMemConfig; _cyb_driver_names[51] = b'cuCtxSetSharedMemConfig' +_cyb_driver_slots[52] = &__cuModuleLoad; _cyb_driver_names[52] = b'cuModuleLoad' +_cyb_driver_slots[53] = &__cuModuleLoadData; _cyb_driver_names[53] = b'cuModuleLoadData' +_cyb_driver_slots[54] = &__cuModuleLoadDataEx; _cyb_driver_names[54] = b'cuModuleLoadDataEx' +_cyb_driver_slots[55] = &__cuModuleLoadFatBinary; _cyb_driver_names[55] = b'cuModuleLoadFatBinary' +_cyb_driver_slots[56] = &__cuModuleUnload; _cyb_driver_names[56] = b'cuModuleUnload' +_cyb_driver_slots[57] = &__cuModuleGetLoadingMode; _cyb_driver_names[57] = b'cuModuleGetLoadingMode' +_cyb_driver_slots[58] = &__cuModuleGetFunction; _cyb_driver_names[58] = b'cuModuleGetFunction' +_cyb_driver_slots[59] = &__cuModuleGetFunctionCount; _cyb_driver_names[59] = b'cuModuleGetFunctionCount' +_cyb_driver_slots[60] = &__cuModuleEnumerateFunctions; _cyb_driver_names[60] = b'cuModuleEnumerateFunctions' +_cyb_driver_slots[61] = &__cuModuleGetGlobal_v2; _cyb_driver_names[61] = b'cuModuleGetGlobal_v2' +_cyb_driver_slots[62] = &__cuLinkCreate_v2; _cyb_driver_names[62] = b'cuLinkCreate_v2' +_cyb_driver_slots[63] = &__cuLinkAddData_v2; _cyb_driver_names[63] = b'cuLinkAddData_v2' +_cyb_driver_slots[64] = &__cuLinkAddFile_v2; _cyb_driver_names[64] = b'cuLinkAddFile_v2' +_cyb_driver_slots[65] = &__cuLinkComplete; _cyb_driver_names[65] = b'cuLinkComplete' +_cyb_driver_slots[66] = &__cuLinkDestroy; _cyb_driver_names[66] = b'cuLinkDestroy' +_cyb_driver_slots[67] = &__cuModuleGetTexRef; _cyb_driver_names[67] = b'cuModuleGetTexRef' +_cyb_driver_slots[68] = &__cuModuleGetSurfRef; _cyb_driver_names[68] = b'cuModuleGetSurfRef' +_cyb_driver_slots[69] = &__cuLibraryLoadData; _cyb_driver_names[69] = b'cuLibraryLoadData' +_cyb_driver_slots[70] = &__cuLibraryLoadFromFile; _cyb_driver_names[70] = b'cuLibraryLoadFromFile' +_cyb_driver_slots[71] = &__cuLibraryUnload; _cyb_driver_names[71] = b'cuLibraryUnload' +_cyb_driver_slots[72] = &__cuLibraryGetKernel; _cyb_driver_names[72] = b'cuLibraryGetKernel' +_cyb_driver_slots[73] = &__cuLibraryGetKernelCount; _cyb_driver_names[73] = b'cuLibraryGetKernelCount' +_cyb_driver_slots[74] = &__cuLibraryEnumerateKernels; _cyb_driver_names[74] = b'cuLibraryEnumerateKernels' +_cyb_driver_slots[75] = &__cuLibraryGetModule; _cyb_driver_names[75] = b'cuLibraryGetModule' +_cyb_driver_slots[76] = &__cuKernelGetFunction; _cyb_driver_names[76] = b'cuKernelGetFunction' +_cyb_driver_slots[77] = &__cuKernelGetLibrary; _cyb_driver_names[77] = b'cuKernelGetLibrary' +_cyb_driver_slots[78] = &__cuLibraryGetGlobal; _cyb_driver_names[78] = b'cuLibraryGetGlobal' +_cyb_driver_slots[79] = &__cuLibraryGetManaged; _cyb_driver_names[79] = b'cuLibraryGetManaged' +_cyb_driver_slots[80] = &__cuLibraryGetUnifiedFunction; _cyb_driver_names[80] = b'cuLibraryGetUnifiedFunction' +_cyb_driver_slots[81] = &__cuKernelGetAttribute; _cyb_driver_names[81] = b'cuKernelGetAttribute' +_cyb_driver_slots[82] = &__cuKernelSetAttribute; _cyb_driver_names[82] = b'cuKernelSetAttribute' +_cyb_driver_slots[83] = &__cuKernelSetCacheConfig; _cyb_driver_names[83] = b'cuKernelSetCacheConfig' +_cyb_driver_slots[84] = &__cuKernelGetName; _cyb_driver_names[84] = b'cuKernelGetName' +_cyb_driver_slots[85] = &__cuKernelGetParamInfo; _cyb_driver_names[85] = b'cuKernelGetParamInfo' +_cyb_driver_slots[86] = &__cuMemGetInfo_v2; _cyb_driver_names[86] = b'cuMemGetInfo_v2' +_cyb_driver_slots[87] = &__cuMemAlloc_v2; _cyb_driver_names[87] = b'cuMemAlloc_v2' +_cyb_driver_slots[88] = &__cuMemAllocPitch_v2; _cyb_driver_names[88] = b'cuMemAllocPitch_v2' +_cyb_driver_slots[89] = &__cuMemFree_v2; _cyb_driver_names[89] = b'cuMemFree_v2' +_cyb_driver_slots[90] = &__cuMemGetAddressRange_v2; _cyb_driver_names[90] = b'cuMemGetAddressRange_v2' +_cyb_driver_slots[91] = &__cuMemAllocHost_v2; _cyb_driver_names[91] = b'cuMemAllocHost_v2' +_cyb_driver_slots[92] = &__cuMemFreeHost; _cyb_driver_names[92] = b'cuMemFreeHost' +_cyb_driver_slots[93] = &__cuMemHostAlloc; _cyb_driver_names[93] = b'cuMemHostAlloc' +_cyb_driver_slots[94] = &__cuMemHostGetDevicePointer_v2; _cyb_driver_names[94] = b'cuMemHostGetDevicePointer_v2' +_cyb_driver_slots[95] = &__cuMemHostGetFlags; _cyb_driver_names[95] = b'cuMemHostGetFlags' +_cyb_driver_slots[96] = &__cuMemAllocManaged; _cyb_driver_names[96] = b'cuMemAllocManaged' +_cyb_driver_slots[97] = &__cuDeviceRegisterAsyncNotification; _cyb_driver_names[97] = b'cuDeviceRegisterAsyncNotification' +_cyb_driver_slots[98] = &__cuDeviceUnregisterAsyncNotification; _cyb_driver_names[98] = b'cuDeviceUnregisterAsyncNotification' +_cyb_driver_slots[99] = &__cuDeviceGetByPCIBusId; _cyb_driver_names[99] = b'cuDeviceGetByPCIBusId' +_cyb_driver_slots[100] = &__cuDeviceGetPCIBusId; _cyb_driver_names[100] = b'cuDeviceGetPCIBusId' +_cyb_driver_slots[101] = &__cuIpcGetEventHandle; _cyb_driver_names[101] = b'cuIpcGetEventHandle' +_cyb_driver_slots[102] = &__cuIpcOpenEventHandle; _cyb_driver_names[102] = b'cuIpcOpenEventHandle' +_cyb_driver_slots[103] = &__cuIpcGetMemHandle; _cyb_driver_names[103] = b'cuIpcGetMemHandle' +_cyb_driver_slots[104] = &__cuIpcOpenMemHandle_v2; _cyb_driver_names[104] = b'cuIpcOpenMemHandle_v2' +_cyb_driver_slots[105] = &__cuIpcCloseMemHandle; _cyb_driver_names[105] = b'cuIpcCloseMemHandle' +_cyb_driver_slots[106] = &__cuMemHostRegister_v2; _cyb_driver_names[106] = b'cuMemHostRegister_v2' +_cyb_driver_slots[107] = &__cuMemHostUnregister; _cyb_driver_names[107] = b'cuMemHostUnregister' +_cyb_driver_slots[108] = &__cuMemcpy; _cyb_driver_names[108] = b'cuMemcpy' +_cyb_driver_slots[109] = &__cuMemcpyPeer; _cyb_driver_names[109] = b'cuMemcpyPeer' +_cyb_driver_slots[110] = &__cuMemcpyHtoD_v2; _cyb_driver_names[110] = b'cuMemcpyHtoD_v2' +_cyb_driver_slots[111] = &__cuMemcpyDtoH_v2; _cyb_driver_names[111] = b'cuMemcpyDtoH_v2' +_cyb_driver_slots[112] = &__cuMemcpyDtoD_v2; _cyb_driver_names[112] = b'cuMemcpyDtoD_v2' +_cyb_driver_slots[113] = &__cuMemcpyDtoA_v2; _cyb_driver_names[113] = b'cuMemcpyDtoA_v2' +_cyb_driver_slots[114] = &__cuMemcpyAtoD_v2; _cyb_driver_names[114] = b'cuMemcpyAtoD_v2' +_cyb_driver_slots[115] = &__cuMemcpyHtoA_v2; _cyb_driver_names[115] = b'cuMemcpyHtoA_v2' +_cyb_driver_slots[116] = &__cuMemcpyAtoH_v2; _cyb_driver_names[116] = b'cuMemcpyAtoH_v2' +_cyb_driver_slots[117] = &__cuMemcpyAtoA_v2; _cyb_driver_names[117] = b'cuMemcpyAtoA_v2' +_cyb_driver_slots[118] = &__cuMemcpy2D_v2; _cyb_driver_names[118] = b'cuMemcpy2D_v2' +_cyb_driver_slots[119] = &__cuMemcpy2DUnaligned_v2; _cyb_driver_names[119] = b'cuMemcpy2DUnaligned_v2' +_cyb_driver_slots[120] = &__cuMemcpy3D_v2; _cyb_driver_names[120] = b'cuMemcpy3D_v2' +_cyb_driver_slots[121] = &__cuMemcpy3DPeer; _cyb_driver_names[121] = b'cuMemcpy3DPeer' +_cyb_driver_slots[122] = &__cuMemcpyAsync; _cyb_driver_names[122] = b'cuMemcpyAsync' +_cyb_driver_slots[123] = &__cuMemcpyPeerAsync; _cyb_driver_names[123] = b'cuMemcpyPeerAsync' +_cyb_driver_slots[124] = &__cuMemcpyHtoDAsync_v2; _cyb_driver_names[124] = b'cuMemcpyHtoDAsync_v2' +_cyb_driver_slots[125] = &__cuMemcpyDtoHAsync_v2; _cyb_driver_names[125] = b'cuMemcpyDtoHAsync_v2' +_cyb_driver_slots[126] = &__cuMemcpyDtoDAsync_v2; _cyb_driver_names[126] = b'cuMemcpyDtoDAsync_v2' +_cyb_driver_slots[127] = &__cuMemcpyHtoAAsync_v2; _cyb_driver_names[127] = b'cuMemcpyHtoAAsync_v2' +_cyb_driver_slots[128] = &__cuMemcpyAtoHAsync_v2; _cyb_driver_names[128] = b'cuMemcpyAtoHAsync_v2' +_cyb_driver_slots[129] = &__cuMemcpy2DAsync_v2; _cyb_driver_names[129] = b'cuMemcpy2DAsync_v2' +_cyb_driver_slots[130] = &__cuMemcpy3DAsync_v2; _cyb_driver_names[130] = b'cuMemcpy3DAsync_v2' +_cyb_driver_slots[131] = &__cuMemcpy3DPeerAsync; _cyb_driver_names[131] = b'cuMemcpy3DPeerAsync' +_cyb_driver_slots[132] = &__cuMemsetD8_v2; _cyb_driver_names[132] = b'cuMemsetD8_v2' +_cyb_driver_slots[133] = &__cuMemsetD16_v2; _cyb_driver_names[133] = b'cuMemsetD16_v2' +_cyb_driver_slots[134] = &__cuMemsetD32_v2; _cyb_driver_names[134] = b'cuMemsetD32_v2' +_cyb_driver_slots[135] = &__cuMemsetD2D8_v2; _cyb_driver_names[135] = b'cuMemsetD2D8_v2' +_cyb_driver_slots[136] = &__cuMemsetD2D16_v2; _cyb_driver_names[136] = b'cuMemsetD2D16_v2' +_cyb_driver_slots[137] = &__cuMemsetD2D32_v2; _cyb_driver_names[137] = b'cuMemsetD2D32_v2' +_cyb_driver_slots[138] = &__cuMemsetD8Async; _cyb_driver_names[138] = b'cuMemsetD8Async' +_cyb_driver_slots[139] = &__cuMemsetD16Async; _cyb_driver_names[139] = b'cuMemsetD16Async' +_cyb_driver_slots[140] = &__cuMemsetD32Async; _cyb_driver_names[140] = b'cuMemsetD32Async' +_cyb_driver_slots[141] = &__cuMemsetD2D8Async; _cyb_driver_names[141] = b'cuMemsetD2D8Async' +_cyb_driver_slots[142] = &__cuMemsetD2D16Async; _cyb_driver_names[142] = b'cuMemsetD2D16Async' +_cyb_driver_slots[143] = &__cuMemsetD2D32Async; _cyb_driver_names[143] = b'cuMemsetD2D32Async' +_cyb_driver_slots[144] = &__cuArrayCreate_v2; _cyb_driver_names[144] = b'cuArrayCreate_v2' +_cyb_driver_slots[145] = &__cuArrayGetDescriptor_v2; _cyb_driver_names[145] = b'cuArrayGetDescriptor_v2' +_cyb_driver_slots[146] = &__cuArrayGetSparseProperties; _cyb_driver_names[146] = b'cuArrayGetSparseProperties' +_cyb_driver_slots[147] = &__cuMipmappedArrayGetSparseProperties; _cyb_driver_names[147] = b'cuMipmappedArrayGetSparseProperties' +_cyb_driver_slots[148] = &__cuArrayGetMemoryRequirements; _cyb_driver_names[148] = b'cuArrayGetMemoryRequirements' +_cyb_driver_slots[149] = &__cuMipmappedArrayGetMemoryRequirements; _cyb_driver_names[149] = b'cuMipmappedArrayGetMemoryRequirements' +_cyb_driver_slots[150] = &__cuArrayGetPlane; _cyb_driver_names[150] = b'cuArrayGetPlane' +_cyb_driver_slots[151] = &__cuArrayDestroy; _cyb_driver_names[151] = b'cuArrayDestroy' +_cyb_driver_slots[152] = &__cuArray3DCreate_v2; _cyb_driver_names[152] = b'cuArray3DCreate_v2' +_cyb_driver_slots[153] = &__cuArray3DGetDescriptor_v2; _cyb_driver_names[153] = b'cuArray3DGetDescriptor_v2' +_cyb_driver_slots[154] = &__cuMipmappedArrayCreate; _cyb_driver_names[154] = b'cuMipmappedArrayCreate' +_cyb_driver_slots[155] = &__cuMipmappedArrayGetLevel; _cyb_driver_names[155] = b'cuMipmappedArrayGetLevel' +_cyb_driver_slots[156] = &__cuMipmappedArrayDestroy; _cyb_driver_names[156] = b'cuMipmappedArrayDestroy' +_cyb_driver_slots[157] = &__cuMemGetHandleForAddressRange; _cyb_driver_names[157] = b'cuMemGetHandleForAddressRange' +_cyb_driver_slots[158] = &__cuMemBatchDecompressAsync; _cyb_driver_names[158] = b'cuMemBatchDecompressAsync' +_cyb_driver_slots[159] = &__cuMemAddressReserve; _cyb_driver_names[159] = b'cuMemAddressReserve' +_cyb_driver_slots[160] = &__cuMemAddressFree; _cyb_driver_names[160] = b'cuMemAddressFree' +_cyb_driver_slots[161] = &__cuMemCreate; _cyb_driver_names[161] = b'cuMemCreate' +_cyb_driver_slots[162] = &__cuMemRelease; _cyb_driver_names[162] = b'cuMemRelease' +_cyb_driver_slots[163] = &__cuMemMap; _cyb_driver_names[163] = b'cuMemMap' +_cyb_driver_slots[164] = &__cuMemMapArrayAsync; _cyb_driver_names[164] = b'cuMemMapArrayAsync' +_cyb_driver_slots[165] = &__cuMemUnmap; _cyb_driver_names[165] = b'cuMemUnmap' +_cyb_driver_slots[166] = &__cuMemSetAccess; _cyb_driver_names[166] = b'cuMemSetAccess' +_cyb_driver_slots[167] = &__cuMemGetAccess; _cyb_driver_names[167] = b'cuMemGetAccess' +_cyb_driver_slots[168] = &__cuMemExportToShareableHandle; _cyb_driver_names[168] = b'cuMemExportToShareableHandle' +_cyb_driver_slots[169] = &__cuMemImportFromShareableHandle; _cyb_driver_names[169] = b'cuMemImportFromShareableHandle' +_cyb_driver_slots[170] = &__cuMemGetAllocationGranularity; _cyb_driver_names[170] = b'cuMemGetAllocationGranularity' +_cyb_driver_slots[171] = &__cuMemGetAllocationPropertiesFromHandle; _cyb_driver_names[171] = b'cuMemGetAllocationPropertiesFromHandle' +_cyb_driver_slots[172] = &__cuMemRetainAllocationHandle; _cyb_driver_names[172] = b'cuMemRetainAllocationHandle' +_cyb_driver_slots[173] = &__cuMemFreeAsync; _cyb_driver_names[173] = b'cuMemFreeAsync' +_cyb_driver_slots[174] = &__cuMemAllocAsync; _cyb_driver_names[174] = b'cuMemAllocAsync' +_cyb_driver_slots[175] = &__cuMemPoolTrimTo; _cyb_driver_names[175] = b'cuMemPoolTrimTo' +_cyb_driver_slots[176] = &__cuMemPoolSetAttribute; _cyb_driver_names[176] = b'cuMemPoolSetAttribute' +_cyb_driver_slots[177] = &__cuMemPoolGetAttribute; _cyb_driver_names[177] = b'cuMemPoolGetAttribute' +_cyb_driver_slots[178] = &__cuMemPoolSetAccess; _cyb_driver_names[178] = b'cuMemPoolSetAccess' +_cyb_driver_slots[179] = &__cuMemPoolGetAccess; _cyb_driver_names[179] = b'cuMemPoolGetAccess' +_cyb_driver_slots[180] = &__cuMemPoolCreate; _cyb_driver_names[180] = b'cuMemPoolCreate' +_cyb_driver_slots[181] = &__cuMemPoolDestroy; _cyb_driver_names[181] = b'cuMemPoolDestroy' +_cyb_driver_slots[182] = &__cuMemAllocFromPoolAsync; _cyb_driver_names[182] = b'cuMemAllocFromPoolAsync' +_cyb_driver_slots[183] = &__cuMemPoolExportToShareableHandle; _cyb_driver_names[183] = b'cuMemPoolExportToShareableHandle' +_cyb_driver_slots[184] = &__cuMemPoolImportFromShareableHandle; _cyb_driver_names[184] = b'cuMemPoolImportFromShareableHandle' +_cyb_driver_slots[185] = &__cuMemPoolExportPointer; _cyb_driver_names[185] = b'cuMemPoolExportPointer' +_cyb_driver_slots[186] = &__cuMemPoolImportPointer; _cyb_driver_names[186] = b'cuMemPoolImportPointer' +_cyb_driver_slots[187] = &__cuMulticastCreate; _cyb_driver_names[187] = b'cuMulticastCreate' +_cyb_driver_slots[188] = &__cuMulticastAddDevice; _cyb_driver_names[188] = b'cuMulticastAddDevice' +_cyb_driver_slots[189] = &__cuMulticastBindMem; _cyb_driver_names[189] = b'cuMulticastBindMem' +_cyb_driver_slots[190] = &__cuMulticastBindAddr; _cyb_driver_names[190] = b'cuMulticastBindAddr' +_cyb_driver_slots[191] = &__cuMulticastUnbind; _cyb_driver_names[191] = b'cuMulticastUnbind' +_cyb_driver_slots[192] = &__cuMulticastGetGranularity; _cyb_driver_names[192] = b'cuMulticastGetGranularity' +_cyb_driver_slots[193] = &__cuPointerGetAttribute; _cyb_driver_names[193] = b'cuPointerGetAttribute' +_cyb_driver_slots[194] = &__cuMemPrefetchAsync_v2; _cyb_driver_names[194] = b'cuMemPrefetchAsync_v2' +_cyb_driver_slots[195] = &__cuMemAdvise_v2; _cyb_driver_names[195] = b'cuMemAdvise_v2' +_cyb_driver_slots[196] = &__cuMemRangeGetAttribute; _cyb_driver_names[196] = b'cuMemRangeGetAttribute' +_cyb_driver_slots[197] = &__cuMemRangeGetAttributes; _cyb_driver_names[197] = b'cuMemRangeGetAttributes' +_cyb_driver_slots[198] = &__cuPointerSetAttribute; _cyb_driver_names[198] = b'cuPointerSetAttribute' +_cyb_driver_slots[199] = &__cuPointerGetAttributes; _cyb_driver_names[199] = b'cuPointerGetAttributes' +_cyb_driver_slots[200] = &__cuStreamCreate; _cyb_driver_names[200] = b'cuStreamCreate' +_cyb_driver_slots[201] = &__cuStreamCreateWithPriority; _cyb_driver_names[201] = b'cuStreamCreateWithPriority' +_cyb_driver_slots[202] = &__cuStreamGetPriority; _cyb_driver_names[202] = b'cuStreamGetPriority' +_cyb_driver_slots[203] = &__cuStreamGetDevice; _cyb_driver_names[203] = b'cuStreamGetDevice' +_cyb_driver_slots[204] = &__cuStreamGetFlags; _cyb_driver_names[204] = b'cuStreamGetFlags' +_cyb_driver_slots[205] = &__cuStreamGetId; _cyb_driver_names[205] = b'cuStreamGetId' +_cyb_driver_slots[206] = &__cuStreamGetCtx; _cyb_driver_names[206] = b'cuStreamGetCtx' +_cyb_driver_slots[207] = &__cuStreamGetCtx_v2; _cyb_driver_names[207] = b'cuStreamGetCtx_v2' +_cyb_driver_slots[208] = &__cuStreamWaitEvent; _cyb_driver_names[208] = b'cuStreamWaitEvent' +_cyb_driver_slots[209] = &__cuStreamAddCallback; _cyb_driver_names[209] = b'cuStreamAddCallback' +_cyb_driver_slots[210] = &__cuStreamBeginCapture_v2; _cyb_driver_names[210] = b'cuStreamBeginCapture_v2' +_cyb_driver_slots[211] = &__cuStreamBeginCaptureToGraph; _cyb_driver_names[211] = b'cuStreamBeginCaptureToGraph' +_cyb_driver_slots[212] = &__cuThreadExchangeStreamCaptureMode; _cyb_driver_names[212] = b'cuThreadExchangeStreamCaptureMode' +_cyb_driver_slots[213] = &__cuStreamEndCapture; _cyb_driver_names[213] = b'cuStreamEndCapture' +_cyb_driver_slots[214] = &__cuStreamIsCapturing; _cyb_driver_names[214] = b'cuStreamIsCapturing' +_cyb_driver_slots[215] = &__cuStreamGetCaptureInfo_v2; _cyb_driver_names[215] = b'cuStreamGetCaptureInfo_v2' +_cyb_driver_slots[216] = &__cuStreamGetCaptureInfo_v3; _cyb_driver_names[216] = b'cuStreamGetCaptureInfo_v3' +_cyb_driver_slots[217] = &__cuStreamUpdateCaptureDependencies_v2; _cyb_driver_names[217] = b'cuStreamUpdateCaptureDependencies_v2' +_cyb_driver_slots[218] = &__cuStreamAttachMemAsync; _cyb_driver_names[218] = b'cuStreamAttachMemAsync' +_cyb_driver_slots[219] = &__cuStreamQuery; _cyb_driver_names[219] = b'cuStreamQuery' +_cyb_driver_slots[220] = &__cuStreamSynchronize; _cyb_driver_names[220] = b'cuStreamSynchronize' +_cyb_driver_slots[221] = &__cuStreamDestroy_v2; _cyb_driver_names[221] = b'cuStreamDestroy_v2' +_cyb_driver_slots[222] = &__cuStreamCopyAttributes; _cyb_driver_names[222] = b'cuStreamCopyAttributes' +_cyb_driver_slots[223] = &__cuStreamGetAttribute; _cyb_driver_names[223] = b'cuStreamGetAttribute' +_cyb_driver_slots[224] = &__cuStreamSetAttribute; _cyb_driver_names[224] = b'cuStreamSetAttribute' +_cyb_driver_slots[225] = &__cuEventCreate; _cyb_driver_names[225] = b'cuEventCreate' +_cyb_driver_slots[226] = &__cuEventRecord; _cyb_driver_names[226] = b'cuEventRecord' +_cyb_driver_slots[227] = &__cuEventRecordWithFlags; _cyb_driver_names[227] = b'cuEventRecordWithFlags' +_cyb_driver_slots[228] = &__cuEventQuery; _cyb_driver_names[228] = b'cuEventQuery' +_cyb_driver_slots[229] = &__cuEventSynchronize; _cyb_driver_names[229] = b'cuEventSynchronize' +_cyb_driver_slots[230] = &__cuEventDestroy_v2; _cyb_driver_names[230] = b'cuEventDestroy_v2' +_cyb_driver_slots[231] = &__cuEventElapsedTime_v2; _cyb_driver_names[231] = b'cuEventElapsedTime_v2' +_cyb_driver_slots[232] = &__cuImportExternalMemory; _cyb_driver_names[232] = b'cuImportExternalMemory' +_cyb_driver_slots[233] = &__cuExternalMemoryGetMappedBuffer; _cyb_driver_names[233] = b'cuExternalMemoryGetMappedBuffer' +_cyb_driver_slots[234] = &__cuExternalMemoryGetMappedMipmappedArray; _cyb_driver_names[234] = b'cuExternalMemoryGetMappedMipmappedArray' +_cyb_driver_slots[235] = &__cuDestroyExternalMemory; _cyb_driver_names[235] = b'cuDestroyExternalMemory' +_cyb_driver_slots[236] = &__cuImportExternalSemaphore; _cyb_driver_names[236] = b'cuImportExternalSemaphore' +_cyb_driver_slots[237] = &__cuSignalExternalSemaphoresAsync; _cyb_driver_names[237] = b'cuSignalExternalSemaphoresAsync' +_cyb_driver_slots[238] = &__cuWaitExternalSemaphoresAsync; _cyb_driver_names[238] = b'cuWaitExternalSemaphoresAsync' +_cyb_driver_slots[239] = &__cuDestroyExternalSemaphore; _cyb_driver_names[239] = b'cuDestroyExternalSemaphore' +_cyb_driver_slots[240] = &__cuStreamWaitValue32_v2; _cyb_driver_names[240] = b'cuStreamWaitValue32_v2' +_cyb_driver_slots[241] = &__cuStreamWaitValue64_v2; _cyb_driver_names[241] = b'cuStreamWaitValue64_v2' +_cyb_driver_slots[242] = &__cuStreamWriteValue32_v2; _cyb_driver_names[242] = b'cuStreamWriteValue32_v2' +_cyb_driver_slots[243] = &__cuStreamWriteValue64_v2; _cyb_driver_names[243] = b'cuStreamWriteValue64_v2' +_cyb_driver_slots[244] = &__cuStreamBatchMemOp_v2; _cyb_driver_names[244] = b'cuStreamBatchMemOp_v2' +_cyb_driver_slots[245] = &__cuFuncGetAttribute; _cyb_driver_names[245] = b'cuFuncGetAttribute' +_cyb_driver_slots[246] = &__cuFuncSetAttribute; _cyb_driver_names[246] = b'cuFuncSetAttribute' +_cyb_driver_slots[247] = &__cuFuncSetCacheConfig; _cyb_driver_names[247] = b'cuFuncSetCacheConfig' +_cyb_driver_slots[248] = &__cuFuncGetModule; _cyb_driver_names[248] = b'cuFuncGetModule' +_cyb_driver_slots[249] = &__cuFuncGetName; _cyb_driver_names[249] = b'cuFuncGetName' +_cyb_driver_slots[250] = &__cuFuncGetParamInfo; _cyb_driver_names[250] = b'cuFuncGetParamInfo' +_cyb_driver_slots[251] = &__cuFuncIsLoaded; _cyb_driver_names[251] = b'cuFuncIsLoaded' +_cyb_driver_slots[252] = &__cuFuncLoad; _cyb_driver_names[252] = b'cuFuncLoad' +_cyb_driver_slots[253] = &__cuLaunchKernel; _cyb_driver_names[253] = b'cuLaunchKernel' +_cyb_driver_slots[254] = &__cuLaunchKernelEx; _cyb_driver_names[254] = b'cuLaunchKernelEx' +_cyb_driver_slots[255] = &__cuLaunchCooperativeKernel; _cyb_driver_names[255] = b'cuLaunchCooperativeKernel' +_cyb_driver_slots[256] = &__cuLaunchCooperativeKernelMultiDevice; _cyb_driver_names[256] = b'cuLaunchCooperativeKernelMultiDevice' +_cyb_driver_slots[257] = &__cuLaunchHostFunc; _cyb_driver_names[257] = b'cuLaunchHostFunc' +_cyb_driver_slots[258] = &__cuFuncSetBlockShape; _cyb_driver_names[258] = b'cuFuncSetBlockShape' +_cyb_driver_slots[259] = &__cuFuncSetSharedSize; _cyb_driver_names[259] = b'cuFuncSetSharedSize' +_cyb_driver_slots[260] = &__cuParamSetSize; _cyb_driver_names[260] = b'cuParamSetSize' +_cyb_driver_slots[261] = &__cuParamSeti; _cyb_driver_names[261] = b'cuParamSeti' +_cyb_driver_slots[262] = &__cuParamSetf; _cyb_driver_names[262] = b'cuParamSetf' +_cyb_driver_slots[263] = &__cuParamSetv; _cyb_driver_names[263] = b'cuParamSetv' +_cyb_driver_slots[264] = &__cuLaunch; _cyb_driver_names[264] = b'cuLaunch' +_cyb_driver_slots[265] = &__cuLaunchGrid; _cyb_driver_names[265] = b'cuLaunchGrid' +_cyb_driver_slots[266] = &__cuLaunchGridAsync; _cyb_driver_names[266] = b'cuLaunchGridAsync' +_cyb_driver_slots[267] = &__cuParamSetTexRef; _cyb_driver_names[267] = b'cuParamSetTexRef' +_cyb_driver_slots[268] = &__cuFuncSetSharedMemConfig; _cyb_driver_names[268] = b'cuFuncSetSharedMemConfig' +_cyb_driver_slots[269] = &__cuGraphCreate; _cyb_driver_names[269] = b'cuGraphCreate' +_cyb_driver_slots[270] = &__cuGraphAddKernelNode_v2; _cyb_driver_names[270] = b'cuGraphAddKernelNode_v2' +_cyb_driver_slots[271] = &__cuGraphKernelNodeGetParams_v2; _cyb_driver_names[271] = b'cuGraphKernelNodeGetParams_v2' +_cyb_driver_slots[272] = &__cuGraphKernelNodeSetParams_v2; _cyb_driver_names[272] = b'cuGraphKernelNodeSetParams_v2' +_cyb_driver_slots[273] = &__cuGraphAddMemcpyNode; _cyb_driver_names[273] = b'cuGraphAddMemcpyNode' +_cyb_driver_slots[274] = &__cuGraphMemcpyNodeGetParams; _cyb_driver_names[274] = b'cuGraphMemcpyNodeGetParams' +_cyb_driver_slots[275] = &__cuGraphMemcpyNodeSetParams; _cyb_driver_names[275] = b'cuGraphMemcpyNodeSetParams' +_cyb_driver_slots[276] = &__cuGraphAddMemsetNode; _cyb_driver_names[276] = b'cuGraphAddMemsetNode' +_cyb_driver_slots[277] = &__cuGraphMemsetNodeGetParams; _cyb_driver_names[277] = b'cuGraphMemsetNodeGetParams' +_cyb_driver_slots[278] = &__cuGraphMemsetNodeSetParams; _cyb_driver_names[278] = b'cuGraphMemsetNodeSetParams' +_cyb_driver_slots[279] = &__cuGraphAddHostNode; _cyb_driver_names[279] = b'cuGraphAddHostNode' +_cyb_driver_slots[280] = &__cuGraphHostNodeGetParams; _cyb_driver_names[280] = b'cuGraphHostNodeGetParams' +_cyb_driver_slots[281] = &__cuGraphHostNodeSetParams; _cyb_driver_names[281] = b'cuGraphHostNodeSetParams' +_cyb_driver_slots[282] = &__cuGraphAddChildGraphNode; _cyb_driver_names[282] = b'cuGraphAddChildGraphNode' +_cyb_driver_slots[283] = &__cuGraphChildGraphNodeGetGraph; _cyb_driver_names[283] = b'cuGraphChildGraphNodeGetGraph' +_cyb_driver_slots[284] = &__cuGraphAddEmptyNode; _cyb_driver_names[284] = b'cuGraphAddEmptyNode' +_cyb_driver_slots[285] = &__cuGraphAddEventRecordNode; _cyb_driver_names[285] = b'cuGraphAddEventRecordNode' +_cyb_driver_slots[286] = &__cuGraphEventRecordNodeGetEvent; _cyb_driver_names[286] = b'cuGraphEventRecordNodeGetEvent' +_cyb_driver_slots[287] = &__cuGraphEventRecordNodeSetEvent; _cyb_driver_names[287] = b'cuGraphEventRecordNodeSetEvent' +_cyb_driver_slots[288] = &__cuGraphAddEventWaitNode; _cyb_driver_names[288] = b'cuGraphAddEventWaitNode' +_cyb_driver_slots[289] = &__cuGraphEventWaitNodeGetEvent; _cyb_driver_names[289] = b'cuGraphEventWaitNodeGetEvent' +_cyb_driver_slots[290] = &__cuGraphEventWaitNodeSetEvent; _cyb_driver_names[290] = b'cuGraphEventWaitNodeSetEvent' +_cyb_driver_slots[291] = &__cuGraphAddExternalSemaphoresSignalNode; _cyb_driver_names[291] = b'cuGraphAddExternalSemaphoresSignalNode' +_cyb_driver_slots[292] = &__cuGraphExternalSemaphoresSignalNodeGetParams; _cyb_driver_names[292] = b'cuGraphExternalSemaphoresSignalNodeGetParams' +_cyb_driver_slots[293] = &__cuGraphExternalSemaphoresSignalNodeSetParams; _cyb_driver_names[293] = b'cuGraphExternalSemaphoresSignalNodeSetParams' +_cyb_driver_slots[294] = &__cuGraphAddExternalSemaphoresWaitNode; _cyb_driver_names[294] = b'cuGraphAddExternalSemaphoresWaitNode' +_cyb_driver_slots[295] = &__cuGraphExternalSemaphoresWaitNodeGetParams; _cyb_driver_names[295] = b'cuGraphExternalSemaphoresWaitNodeGetParams' +_cyb_driver_slots[296] = &__cuGraphExternalSemaphoresWaitNodeSetParams; _cyb_driver_names[296] = b'cuGraphExternalSemaphoresWaitNodeSetParams' +_cyb_driver_slots[297] = &__cuGraphAddBatchMemOpNode; _cyb_driver_names[297] = b'cuGraphAddBatchMemOpNode' +_cyb_driver_slots[298] = &__cuGraphBatchMemOpNodeGetParams; _cyb_driver_names[298] = b'cuGraphBatchMemOpNodeGetParams' +_cyb_driver_slots[299] = &__cuGraphBatchMemOpNodeSetParams; _cyb_driver_names[299] = b'cuGraphBatchMemOpNodeSetParams' +_cyb_driver_slots[300] = &__cuGraphExecBatchMemOpNodeSetParams; _cyb_driver_names[300] = b'cuGraphExecBatchMemOpNodeSetParams' +_cyb_driver_slots[301] = &__cuGraphAddMemAllocNode; _cyb_driver_names[301] = b'cuGraphAddMemAllocNode' +_cyb_driver_slots[302] = &__cuGraphMemAllocNodeGetParams; _cyb_driver_names[302] = b'cuGraphMemAllocNodeGetParams' +_cyb_driver_slots[303] = &__cuGraphAddMemFreeNode; _cyb_driver_names[303] = b'cuGraphAddMemFreeNode' +_cyb_driver_slots[304] = &__cuGraphMemFreeNodeGetParams; _cyb_driver_names[304] = b'cuGraphMemFreeNodeGetParams' +_cyb_driver_slots[305] = &__cuDeviceGraphMemTrim; _cyb_driver_names[305] = b'cuDeviceGraphMemTrim' +_cyb_driver_slots[306] = &__cuDeviceGetGraphMemAttribute; _cyb_driver_names[306] = b'cuDeviceGetGraphMemAttribute' +_cyb_driver_slots[307] = &__cuDeviceSetGraphMemAttribute; _cyb_driver_names[307] = b'cuDeviceSetGraphMemAttribute' +_cyb_driver_slots[308] = &__cuGraphClone; _cyb_driver_names[308] = b'cuGraphClone' +_cyb_driver_slots[309] = &__cuGraphNodeFindInClone; _cyb_driver_names[309] = b'cuGraphNodeFindInClone' +_cyb_driver_slots[310] = &__cuGraphNodeGetType; _cyb_driver_names[310] = b'cuGraphNodeGetType' +_cyb_driver_slots[311] = &__cuGraphGetNodes; _cyb_driver_names[311] = b'cuGraphGetNodes' +_cyb_driver_slots[312] = &__cuGraphGetRootNodes; _cyb_driver_names[312] = b'cuGraphGetRootNodes' +_cyb_driver_slots[313] = &__cuGraphGetEdges_v2; _cyb_driver_names[313] = b'cuGraphGetEdges_v2' +_cyb_driver_slots[314] = &__cuGraphNodeGetDependencies_v2; _cyb_driver_names[314] = b'cuGraphNodeGetDependencies_v2' +_cyb_driver_slots[315] = &__cuGraphNodeGetDependentNodes_v2; _cyb_driver_names[315] = b'cuGraphNodeGetDependentNodes_v2' +_cyb_driver_slots[316] = &__cuGraphAddDependencies_v2; _cyb_driver_names[316] = b'cuGraphAddDependencies_v2' +_cyb_driver_slots[317] = &__cuGraphRemoveDependencies_v2; _cyb_driver_names[317] = b'cuGraphRemoveDependencies_v2' +_cyb_driver_slots[318] = &__cuGraphDestroyNode; _cyb_driver_names[318] = b'cuGraphDestroyNode' +_cyb_driver_slots[319] = &__cuGraphInstantiateWithFlags; _cyb_driver_names[319] = b'cuGraphInstantiateWithFlags' +_cyb_driver_slots[320] = &__cuGraphInstantiateWithParams; _cyb_driver_names[320] = b'cuGraphInstantiateWithParams' +_cyb_driver_slots[321] = &__cuGraphExecGetFlags; _cyb_driver_names[321] = b'cuGraphExecGetFlags' +_cyb_driver_slots[322] = &__cuGraphExecKernelNodeSetParams_v2; _cyb_driver_names[322] = b'cuGraphExecKernelNodeSetParams_v2' +_cyb_driver_slots[323] = &__cuGraphExecMemcpyNodeSetParams; _cyb_driver_names[323] = b'cuGraphExecMemcpyNodeSetParams' +_cyb_driver_slots[324] = &__cuGraphExecMemsetNodeSetParams; _cyb_driver_names[324] = b'cuGraphExecMemsetNodeSetParams' +_cyb_driver_slots[325] = &__cuGraphExecHostNodeSetParams; _cyb_driver_names[325] = b'cuGraphExecHostNodeSetParams' +_cyb_driver_slots[326] = &__cuGraphExecChildGraphNodeSetParams; _cyb_driver_names[326] = b'cuGraphExecChildGraphNodeSetParams' +_cyb_driver_slots[327] = &__cuGraphExecEventRecordNodeSetEvent; _cyb_driver_names[327] = b'cuGraphExecEventRecordNodeSetEvent' +_cyb_driver_slots[328] = &__cuGraphExecEventWaitNodeSetEvent; _cyb_driver_names[328] = b'cuGraphExecEventWaitNodeSetEvent' +_cyb_driver_slots[329] = &__cuGraphExecExternalSemaphoresSignalNodeSetParams; _cyb_driver_names[329] = b'cuGraphExecExternalSemaphoresSignalNodeSetParams' +_cyb_driver_slots[330] = &__cuGraphExecExternalSemaphoresWaitNodeSetParams; _cyb_driver_names[330] = b'cuGraphExecExternalSemaphoresWaitNodeSetParams' +_cyb_driver_slots[331] = &__cuGraphNodeSetEnabled; _cyb_driver_names[331] = b'cuGraphNodeSetEnabled' +_cyb_driver_slots[332] = &__cuGraphNodeGetEnabled; _cyb_driver_names[332] = b'cuGraphNodeGetEnabled' +_cyb_driver_slots[333] = &__cuGraphUpload; _cyb_driver_names[333] = b'cuGraphUpload' +_cyb_driver_slots[334] = &__cuGraphLaunch; _cyb_driver_names[334] = b'cuGraphLaunch' +_cyb_driver_slots[335] = &__cuGraphExecDestroy; _cyb_driver_names[335] = b'cuGraphExecDestroy' +_cyb_driver_slots[336] = &__cuGraphDestroy; _cyb_driver_names[336] = b'cuGraphDestroy' +_cyb_driver_slots[337] = &__cuGraphExecUpdate_v2; _cyb_driver_names[337] = b'cuGraphExecUpdate_v2' +_cyb_driver_slots[338] = &__cuGraphKernelNodeCopyAttributes; _cyb_driver_names[338] = b'cuGraphKernelNodeCopyAttributes' +_cyb_driver_slots[339] = &__cuGraphKernelNodeGetAttribute; _cyb_driver_names[339] = b'cuGraphKernelNodeGetAttribute' +_cyb_driver_slots[340] = &__cuGraphKernelNodeSetAttribute; _cyb_driver_names[340] = b'cuGraphKernelNodeSetAttribute' +_cyb_driver_slots[341] = &__cuGraphDebugDotPrint; _cyb_driver_names[341] = b'cuGraphDebugDotPrint' +_cyb_driver_slots[342] = &__cuUserObjectCreate; _cyb_driver_names[342] = b'cuUserObjectCreate' +_cyb_driver_slots[343] = &__cuUserObjectRetain; _cyb_driver_names[343] = b'cuUserObjectRetain' +_cyb_driver_slots[344] = &__cuUserObjectRelease; _cyb_driver_names[344] = b'cuUserObjectRelease' +_cyb_driver_slots[345] = &__cuGraphRetainUserObject; _cyb_driver_names[345] = b'cuGraphRetainUserObject' +_cyb_driver_slots[346] = &__cuGraphReleaseUserObject; _cyb_driver_names[346] = b'cuGraphReleaseUserObject' +_cyb_driver_slots[347] = &__cuGraphAddNode_v2; _cyb_driver_names[347] = b'cuGraphAddNode_v2' +_cyb_driver_slots[348] = &__cuGraphNodeSetParams; _cyb_driver_names[348] = b'cuGraphNodeSetParams' +_cyb_driver_slots[349] = &__cuGraphExecNodeSetParams; _cyb_driver_names[349] = b'cuGraphExecNodeSetParams' +_cyb_driver_slots[350] = &__cuGraphConditionalHandleCreate; _cyb_driver_names[350] = b'cuGraphConditionalHandleCreate' +_cyb_driver_slots[351] = &__cuOccupancyMaxActiveBlocksPerMultiprocessor; _cyb_driver_names[351] = b'cuOccupancyMaxActiveBlocksPerMultiprocessor' +_cyb_driver_slots[352] = &__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags; _cyb_driver_names[352] = b'cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' +_cyb_driver_slots[353] = &__cuOccupancyMaxPotentialBlockSize; _cyb_driver_names[353] = b'cuOccupancyMaxPotentialBlockSize' +_cyb_driver_slots[354] = &__cuOccupancyMaxPotentialBlockSizeWithFlags; _cyb_driver_names[354] = b'cuOccupancyMaxPotentialBlockSizeWithFlags' +_cyb_driver_slots[355] = &__cuOccupancyAvailableDynamicSMemPerBlock; _cyb_driver_names[355] = b'cuOccupancyAvailableDynamicSMemPerBlock' +_cyb_driver_slots[356] = &__cuOccupancyMaxPotentialClusterSize; _cyb_driver_names[356] = b'cuOccupancyMaxPotentialClusterSize' +_cyb_driver_slots[357] = &__cuOccupancyMaxActiveClusters; _cyb_driver_names[357] = b'cuOccupancyMaxActiveClusters' +_cyb_driver_slots[358] = &__cuTexRefSetArray; _cyb_driver_names[358] = b'cuTexRefSetArray' +_cyb_driver_slots[359] = &__cuTexRefSetMipmappedArray; _cyb_driver_names[359] = b'cuTexRefSetMipmappedArray' +_cyb_driver_slots[360] = &__cuTexRefSetAddress_v2; _cyb_driver_names[360] = b'cuTexRefSetAddress_v2' +_cyb_driver_slots[361] = &__cuTexRefSetAddress2D_v3; _cyb_driver_names[361] = b'cuTexRefSetAddress2D_v3' +_cyb_driver_slots[362] = &__cuTexRefSetFormat; _cyb_driver_names[362] = b'cuTexRefSetFormat' +_cyb_driver_slots[363] = &__cuTexRefSetAddressMode; _cyb_driver_names[363] = b'cuTexRefSetAddressMode' +_cyb_driver_slots[364] = &__cuTexRefSetFilterMode; _cyb_driver_names[364] = b'cuTexRefSetFilterMode' +_cyb_driver_slots[365] = &__cuTexRefSetMipmapFilterMode; _cyb_driver_names[365] = b'cuTexRefSetMipmapFilterMode' +_cyb_driver_slots[366] = &__cuTexRefSetMipmapLevelBias; _cyb_driver_names[366] = b'cuTexRefSetMipmapLevelBias' +_cyb_driver_slots[367] = &__cuTexRefSetMipmapLevelClamp; _cyb_driver_names[367] = b'cuTexRefSetMipmapLevelClamp' +_cyb_driver_slots[368] = &__cuTexRefSetMaxAnisotropy; _cyb_driver_names[368] = b'cuTexRefSetMaxAnisotropy' +_cyb_driver_slots[369] = &__cuTexRefSetBorderColor; _cyb_driver_names[369] = b'cuTexRefSetBorderColor' +_cyb_driver_slots[370] = &__cuTexRefSetFlags; _cyb_driver_names[370] = b'cuTexRefSetFlags' +_cyb_driver_slots[371] = &__cuTexRefGetAddress_v2; _cyb_driver_names[371] = b'cuTexRefGetAddress_v2' +_cyb_driver_slots[372] = &__cuTexRefGetArray; _cyb_driver_names[372] = b'cuTexRefGetArray' +_cyb_driver_slots[373] = &__cuTexRefGetMipmappedArray; _cyb_driver_names[373] = b'cuTexRefGetMipmappedArray' +_cyb_driver_slots[374] = &__cuTexRefGetAddressMode; _cyb_driver_names[374] = b'cuTexRefGetAddressMode' +_cyb_driver_slots[375] = &__cuTexRefGetFilterMode; _cyb_driver_names[375] = b'cuTexRefGetFilterMode' +_cyb_driver_slots[376] = &__cuTexRefGetFormat; _cyb_driver_names[376] = b'cuTexRefGetFormat' +_cyb_driver_slots[377] = &__cuTexRefGetMipmapFilterMode; _cyb_driver_names[377] = b'cuTexRefGetMipmapFilterMode' +_cyb_driver_slots[378] = &__cuTexRefGetMipmapLevelBias; _cyb_driver_names[378] = b'cuTexRefGetMipmapLevelBias' +_cyb_driver_slots[379] = &__cuTexRefGetMipmapLevelClamp; _cyb_driver_names[379] = b'cuTexRefGetMipmapLevelClamp' +_cyb_driver_slots[380] = &__cuTexRefGetMaxAnisotropy; _cyb_driver_names[380] = b'cuTexRefGetMaxAnisotropy' +_cyb_driver_slots[381] = &__cuTexRefGetBorderColor; _cyb_driver_names[381] = b'cuTexRefGetBorderColor' +_cyb_driver_slots[382] = &__cuTexRefGetFlags; _cyb_driver_names[382] = b'cuTexRefGetFlags' +_cyb_driver_slots[383] = &__cuTexRefCreate; _cyb_driver_names[383] = b'cuTexRefCreate' +_cyb_driver_slots[384] = &__cuTexRefDestroy; _cyb_driver_names[384] = b'cuTexRefDestroy' +_cyb_driver_slots[385] = &__cuSurfRefSetArray; _cyb_driver_names[385] = b'cuSurfRefSetArray' +_cyb_driver_slots[386] = &__cuSurfRefGetArray; _cyb_driver_names[386] = b'cuSurfRefGetArray' +_cyb_driver_slots[387] = &__cuTexObjectCreate; _cyb_driver_names[387] = b'cuTexObjectCreate' +_cyb_driver_slots[388] = &__cuTexObjectDestroy; _cyb_driver_names[388] = b'cuTexObjectDestroy' +_cyb_driver_slots[389] = &__cuTexObjectGetResourceDesc; _cyb_driver_names[389] = b'cuTexObjectGetResourceDesc' +_cyb_driver_slots[390] = &__cuTexObjectGetTextureDesc; _cyb_driver_names[390] = b'cuTexObjectGetTextureDesc' +_cyb_driver_slots[391] = &__cuTexObjectGetResourceViewDesc; _cyb_driver_names[391] = b'cuTexObjectGetResourceViewDesc' +_cyb_driver_slots[392] = &__cuSurfObjectCreate; _cyb_driver_names[392] = b'cuSurfObjectCreate' +_cyb_driver_slots[393] = &__cuSurfObjectDestroy; _cyb_driver_names[393] = b'cuSurfObjectDestroy' +_cyb_driver_slots[394] = &__cuSurfObjectGetResourceDesc; _cyb_driver_names[394] = b'cuSurfObjectGetResourceDesc' +_cyb_driver_slots[395] = &__cuTensorMapEncodeTiled; _cyb_driver_names[395] = b'cuTensorMapEncodeTiled' +_cyb_driver_slots[396] = &__cuTensorMapEncodeIm2col; _cyb_driver_names[396] = b'cuTensorMapEncodeIm2col' +_cyb_driver_slots[397] = &__cuTensorMapEncodeIm2colWide; _cyb_driver_names[397] = b'cuTensorMapEncodeIm2colWide' +_cyb_driver_slots[398] = &__cuTensorMapReplaceAddress; _cyb_driver_names[398] = b'cuTensorMapReplaceAddress' +_cyb_driver_slots[399] = &__cuDeviceCanAccessPeer; _cyb_driver_names[399] = b'cuDeviceCanAccessPeer' +_cyb_driver_slots[400] = &__cuCtxEnablePeerAccess; _cyb_driver_names[400] = b'cuCtxEnablePeerAccess' +_cyb_driver_slots[401] = &__cuCtxDisablePeerAccess; _cyb_driver_names[401] = b'cuCtxDisablePeerAccess' +_cyb_driver_slots[402] = &__cuDeviceGetP2PAttribute; _cyb_driver_names[402] = b'cuDeviceGetP2PAttribute' +_cyb_driver_slots[403] = &__cuGraphicsUnregisterResource; _cyb_driver_names[403] = b'cuGraphicsUnregisterResource' +_cyb_driver_slots[404] = &__cuGraphicsSubResourceGetMappedArray; _cyb_driver_names[404] = b'cuGraphicsSubResourceGetMappedArray' +_cyb_driver_slots[405] = &__cuGraphicsResourceGetMappedMipmappedArray; _cyb_driver_names[405] = b'cuGraphicsResourceGetMappedMipmappedArray' +_cyb_driver_slots[406] = &__cuGraphicsResourceGetMappedPointer_v2; _cyb_driver_names[406] = b'cuGraphicsResourceGetMappedPointer_v2' +_cyb_driver_slots[407] = &__cuGraphicsResourceSetMapFlags_v2; _cyb_driver_names[407] = b'cuGraphicsResourceSetMapFlags_v2' +_cyb_driver_slots[408] = &__cuGraphicsMapResources; _cyb_driver_names[408] = b'cuGraphicsMapResources' +_cyb_driver_slots[409] = &__cuGraphicsUnmapResources; _cyb_driver_names[409] = b'cuGraphicsUnmapResources' +_cyb_driver_slots[410] = &__cuGetProcAddress_v2; _cyb_driver_names[410] = b'cuGetProcAddress_v2' +_cyb_driver_slots[411] = &__cuCoredumpGetAttribute; _cyb_driver_names[411] = b'cuCoredumpGetAttribute' +_cyb_driver_slots[412] = &__cuCoredumpGetAttributeGlobal; _cyb_driver_names[412] = b'cuCoredumpGetAttributeGlobal' +_cyb_driver_slots[413] = &__cuCoredumpSetAttribute; _cyb_driver_names[413] = b'cuCoredumpSetAttribute' +_cyb_driver_slots[414] = &__cuCoredumpSetAttributeGlobal; _cyb_driver_names[414] = b'cuCoredumpSetAttributeGlobal' +_cyb_driver_slots[415] = &__cuGetExportTable; _cyb_driver_names[415] = b'cuGetExportTable' +_cyb_driver_slots[416] = &__cuGreenCtxCreate; _cyb_driver_names[416] = b'cuGreenCtxCreate' +_cyb_driver_slots[417] = &__cuGreenCtxDestroy; _cyb_driver_names[417] = b'cuGreenCtxDestroy' +_cyb_driver_slots[418] = &__cuCtxFromGreenCtx; _cyb_driver_names[418] = b'cuCtxFromGreenCtx' +_cyb_driver_slots[419] = &__cuDeviceGetDevResource; _cyb_driver_names[419] = b'cuDeviceGetDevResource' +_cyb_driver_slots[420] = &__cuCtxGetDevResource; _cyb_driver_names[420] = b'cuCtxGetDevResource' +_cyb_driver_slots[421] = &__cuGreenCtxGetDevResource; _cyb_driver_names[421] = b'cuGreenCtxGetDevResource' +_cyb_driver_slots[422] = &__cuDevSmResourceSplitByCount; _cyb_driver_names[422] = b'cuDevSmResourceSplitByCount' +_cyb_driver_slots[423] = &__cuDevResourceGenerateDesc; _cyb_driver_names[423] = b'cuDevResourceGenerateDesc' +_cyb_driver_slots[424] = &__cuGreenCtxRecordEvent; _cyb_driver_names[424] = b'cuGreenCtxRecordEvent' +_cyb_driver_slots[425] = &__cuGreenCtxWaitEvent; _cyb_driver_names[425] = b'cuGreenCtxWaitEvent' +_cyb_driver_slots[426] = &__cuStreamGetGreenCtx; _cyb_driver_names[426] = b'cuStreamGetGreenCtx' +_cyb_driver_slots[427] = &__cuGreenCtxStreamCreate; _cyb_driver_names[427] = b'cuGreenCtxStreamCreate' +_cyb_driver_slots[428] = &__cuLogsRegisterCallback; _cyb_driver_names[428] = b'cuLogsRegisterCallback' +_cyb_driver_slots[429] = &__cuLogsUnregisterCallback; _cyb_driver_names[429] = b'cuLogsUnregisterCallback' +_cyb_driver_slots[430] = &__cuLogsCurrent; _cyb_driver_names[430] = b'cuLogsCurrent' +_cyb_driver_slots[431] = &__cuLogsDumpToFile; _cyb_driver_names[431] = b'cuLogsDumpToFile' +_cyb_driver_slots[432] = &__cuLogsDumpToMemory; _cyb_driver_names[432] = b'cuLogsDumpToMemory' +_cyb_driver_slots[433] = &__cuCheckpointProcessGetRestoreThreadId; _cyb_driver_names[433] = b'cuCheckpointProcessGetRestoreThreadId' +_cyb_driver_slots[434] = &__cuCheckpointProcessGetState; _cyb_driver_names[434] = b'cuCheckpointProcessGetState' +_cyb_driver_slots[435] = &__cuCheckpointProcessLock; _cyb_driver_names[435] = b'cuCheckpointProcessLock' +_cyb_driver_slots[436] = &__cuCheckpointProcessCheckpoint; _cyb_driver_names[436] = b'cuCheckpointProcessCheckpoint' +_cyb_driver_slots[437] = &__cuCheckpointProcessRestore; _cyb_driver_names[437] = b'cuCheckpointProcessRestore' +_cyb_driver_slots[438] = &__cuCheckpointProcessUnlock; _cyb_driver_names[438] = b'cuCheckpointProcessUnlock' +_cyb_driver_slots[439] = &__cuGraphicsEGLRegisterImage; _cyb_driver_names[439] = b'cuGraphicsEGLRegisterImage' +_cyb_driver_slots[440] = &__cuEGLStreamConsumerConnect; _cyb_driver_names[440] = b'cuEGLStreamConsumerConnect' +_cyb_driver_slots[441] = &__cuEGLStreamConsumerConnectWithFlags; _cyb_driver_names[441] = b'cuEGLStreamConsumerConnectWithFlags' +_cyb_driver_slots[442] = &__cuEGLStreamConsumerDisconnect; _cyb_driver_names[442] = b'cuEGLStreamConsumerDisconnect' +_cyb_driver_slots[443] = &__cuEGLStreamConsumerAcquireFrame; _cyb_driver_names[443] = b'cuEGLStreamConsumerAcquireFrame' +_cyb_driver_slots[444] = &__cuEGLStreamConsumerReleaseFrame; _cyb_driver_names[444] = b'cuEGLStreamConsumerReleaseFrame' +_cyb_driver_slots[445] = &__cuEGLStreamProducerConnect; _cyb_driver_names[445] = b'cuEGLStreamProducerConnect' +_cyb_driver_slots[446] = &__cuEGLStreamProducerDisconnect; _cyb_driver_names[446] = b'cuEGLStreamProducerDisconnect' +_cyb_driver_slots[447] = &__cuEGLStreamProducerPresentFrame; _cyb_driver_names[447] = b'cuEGLStreamProducerPresentFrame' +_cyb_driver_slots[448] = &__cuEGLStreamProducerReturnFrame; _cyb_driver_names[448] = b'cuEGLStreamProducerReturnFrame' +_cyb_driver_slots[449] = &__cuGraphicsResourceGetMappedEglFrame; _cyb_driver_names[449] = b'cuGraphicsResourceGetMappedEglFrame' +_cyb_driver_slots[450] = &__cuEventCreateFromEGLSync; _cyb_driver_names[450] = b'cuEventCreateFromEGLSync' +_cyb_driver_slots[451] = &__cuGraphicsGLRegisterBuffer; _cyb_driver_names[451] = b'cuGraphicsGLRegisterBuffer' +_cyb_driver_slots[452] = &__cuGraphicsGLRegisterImage; _cyb_driver_names[452] = b'cuGraphicsGLRegisterImage' +_cyb_driver_slots[453] = &__cuGLGetDevices_v2; _cyb_driver_names[453] = b'cuGLGetDevices_v2' +_cyb_driver_slots[454] = &__cuGLCtxCreate_v2; _cyb_driver_names[454] = b'cuGLCtxCreate_v2' +_cyb_driver_slots[455] = &__cuGLInit; _cyb_driver_names[455] = b'cuGLInit' +_cyb_driver_slots[456] = &__cuGLRegisterBufferObject; _cyb_driver_names[456] = b'cuGLRegisterBufferObject' +_cyb_driver_slots[457] = &__cuGLMapBufferObject_v2; _cyb_driver_names[457] = b'cuGLMapBufferObject_v2' +_cyb_driver_slots[458] = &__cuGLUnmapBufferObject; _cyb_driver_names[458] = b'cuGLUnmapBufferObject' +_cyb_driver_slots[459] = &__cuGLUnregisterBufferObject; _cyb_driver_names[459] = b'cuGLUnregisterBufferObject' +_cyb_driver_slots[460] = &__cuGLSetBufferObjectMapFlags; _cyb_driver_names[460] = b'cuGLSetBufferObjectMapFlags' +_cyb_driver_slots[461] = &__cuGLMapBufferObjectAsync_v2; _cyb_driver_names[461] = b'cuGLMapBufferObjectAsync_v2' +_cyb_driver_slots[462] = &__cuGLUnmapBufferObjectAsync; _cyb_driver_names[462] = b'cuGLUnmapBufferObjectAsync' +_cyb_driver_slots[463] = &__cuProfilerInitialize; _cyb_driver_names[463] = b'cuProfilerInitialize' +_cyb_driver_slots[464] = &__cuProfilerStart; _cyb_driver_names[464] = b'cuProfilerStart' +_cyb_driver_slots[465] = &__cuProfilerStop; _cyb_driver_names[465] = b'cuProfilerStop' +_cyb_driver_slots[466] = &__cuVDPAUGetDevice; _cyb_driver_names[466] = b'cuVDPAUGetDevice' +_cyb_driver_slots[467] = &__cuVDPAUCtxCreate_v2; _cyb_driver_names[467] = b'cuVDPAUCtxCreate_v2' +_cyb_driver_slots[468] = &__cuGraphicsVDPAURegisterVideoSurface; _cyb_driver_names[468] = b'cuGraphicsVDPAURegisterVideoSurface' +_cyb_driver_slots[469] = &__cuGraphicsVDPAURegisterOutputSurface; _cyb_driver_names[469] = b'cuGraphicsVDPAURegisterOutputSurface' +_cyb_driver_slots[470] = &__cuDeviceGetHostAtomicCapabilities; _cyb_driver_names[470] = b'cuDeviceGetHostAtomicCapabilities' +_cyb_driver_slots[471] = &__cuCtxGetDevice_v2; _cyb_driver_names[471] = b'cuCtxGetDevice_v2' +_cyb_driver_slots[472] = &__cuCtxSynchronize_v2; _cyb_driver_names[472] = b'cuCtxSynchronize_v2' +_cyb_driver_slots[473] = &__cuMemcpyBatchAsync_v2; _cyb_driver_names[473] = b'cuMemcpyBatchAsync_v2' +_cyb_driver_slots[474] = &__cuMemcpy3DBatchAsync_v2; _cyb_driver_names[474] = b'cuMemcpy3DBatchAsync_v2' +_cyb_driver_slots[475] = &__cuMemGetDefaultMemPool; _cyb_driver_names[475] = b'cuMemGetDefaultMemPool' +_cyb_driver_slots[476] = &__cuMemGetMemPool; _cyb_driver_names[476] = b'cuMemGetMemPool' +_cyb_driver_slots[477] = &__cuMemSetMemPool; _cyb_driver_names[477] = b'cuMemSetMemPool' +_cyb_driver_slots[478] = &__cuMemPrefetchBatchAsync; _cyb_driver_names[478] = b'cuMemPrefetchBatchAsync' +_cyb_driver_slots[479] = &__cuMemDiscardBatchAsync; _cyb_driver_names[479] = b'cuMemDiscardBatchAsync' +_cyb_driver_slots[480] = &__cuMemDiscardAndPrefetchBatchAsync; _cyb_driver_names[480] = b'cuMemDiscardAndPrefetchBatchAsync' +_cyb_driver_slots[481] = &__cuDeviceGetP2PAtomicCapabilities; _cyb_driver_names[481] = b'cuDeviceGetP2PAtomicCapabilities' +_cyb_driver_slots[482] = &__cuGreenCtxGetId; _cyb_driver_names[482] = b'cuGreenCtxGetId' +_cyb_driver_slots[483] = &__cuMulticastBindMem_v2; _cyb_driver_names[483] = b'cuMulticastBindMem_v2' +_cyb_driver_slots[484] = &__cuMulticastBindAddr_v2; _cyb_driver_names[484] = b'cuMulticastBindAddr_v2' +_cyb_driver_slots[485] = &__cuGraphNodeGetContainingGraph; _cyb_driver_names[485] = b'cuGraphNodeGetContainingGraph' +_cyb_driver_slots[486] = &__cuGraphNodeGetLocalId; _cyb_driver_names[486] = b'cuGraphNodeGetLocalId' +_cyb_driver_slots[487] = &__cuGraphNodeGetToolsId; _cyb_driver_names[487] = b'cuGraphNodeGetToolsId' +_cyb_driver_slots[488] = &__cuGraphGetId; _cyb_driver_names[488] = b'cuGraphGetId' +_cyb_driver_slots[489] = &__cuGraphExecGetId; _cyb_driver_names[489] = b'cuGraphExecGetId' +_cyb_driver_slots[490] = &__cuDevSmResourceSplit; _cyb_driver_names[490] = b'cuDevSmResourceSplit' +_cyb_driver_slots[491] = &__cuStreamGetDevResource; _cyb_driver_names[491] = b'cuStreamGetDevResource' +_cyb_driver_slots[492] = &__cuKernelGetParamCount; _cyb_driver_names[492] = b'cuKernelGetParamCount' +_cyb_driver_slots[493] = &__cuMemcpyWithAttributesAsync; _cyb_driver_names[493] = b'cuMemcpyWithAttributesAsync' +_cyb_driver_slots[494] = &__cuMemcpy3DWithAttributesAsync; _cyb_driver_names[494] = b'cuMemcpy3DWithAttributesAsync' +_cyb_driver_slots[495] = &__cuStreamBeginCaptureToCig; _cyb_driver_names[495] = b'cuStreamBeginCaptureToCig' +_cyb_driver_slots[496] = &__cuStreamEndCaptureToCig; _cyb_driver_names[496] = b'cuStreamEndCaptureToCig' +_cyb_driver_slots[497] = &__cuFuncGetParamCount; _cyb_driver_names[497] = b'cuFuncGetParamCount' +_cyb_driver_slots[498] = &__cuLaunchHostFunc_v2; _cyb_driver_names[498] = b'cuLaunchHostFunc_v2' +_cyb_driver_slots[499] = &__cuGraphNodeGetParams; _cyb_driver_names[499] = b'cuGraphNodeGetParams' +_cyb_driver_slots[500] = &__cuCoredumpRegisterStartCallback; _cyb_driver_names[500] = b'cuCoredumpRegisterStartCallback' +_cyb_driver_slots[501] = &__cuCoredumpRegisterCompleteCallback; _cyb_driver_names[501] = b'cuCoredumpRegisterCompleteCallback' +_cyb_driver_slots[502] = &__cuCoredumpDeregisterStartCallback; _cyb_driver_names[502] = b'cuCoredumpDeregisterStartCallback' +_cyb_driver_slots[503] = &__cuCoredumpDeregisterCompleteCallback; _cyb_driver_names[503] = b'cuCoredumpDeregisterCompleteCallback' +_cyb_driver_slots[504] = &__cuLogicalEndpointIdReserve; _cyb_driver_names[504] = b'cuLogicalEndpointIdReserve' +_cyb_driver_slots[505] = &__cuLogicalEndpointIdRelease; _cyb_driver_names[505] = b'cuLogicalEndpointIdRelease' +_cyb_driver_slots[506] = &__cuLogicalEndpointCreate; _cyb_driver_names[506] = b'cuLogicalEndpointCreate' +_cyb_driver_slots[507] = &__cuLogicalEndpointAddDevice; _cyb_driver_names[507] = b'cuLogicalEndpointAddDevice' +_cyb_driver_slots[508] = &__cuLogicalEndpointDestroy; _cyb_driver_names[508] = b'cuLogicalEndpointDestroy' +_cyb_driver_slots[509] = &__cuLogicalEndpointBindAddr; _cyb_driver_names[509] = b'cuLogicalEndpointBindAddr' +_cyb_driver_slots[510] = &__cuLogicalEndpointBindMem; _cyb_driver_names[510] = b'cuLogicalEndpointBindMem' +_cyb_driver_slots[511] = &__cuLogicalEndpointUnbind; _cyb_driver_names[511] = b'cuLogicalEndpointUnbind' +_cyb_driver_slots[512] = &__cuLogicalEndpointExport; _cyb_driver_names[512] = b'cuLogicalEndpointExport' +_cyb_driver_slots[513] = &__cuLogicalEndpointImport; _cyb_driver_names[513] = b'cuLogicalEndpointImport' +_cyb_driver_slots[514] = &__cuLogicalEndpointGetLimits; _cyb_driver_names[514] = b'cuLogicalEndpointGetLimits' +_cyb_driver_slots[515] = &__cuLogicalEndpointQuery; _cyb_driver_names[515] = b'cuLogicalEndpointQuery' +_cyb_driver_slots[516] = &__cuStreamBeginRecaptureToGraph; _cyb_driver_names[516] = b'cuStreamBeginRecaptureToGraph' +_cyb_driver_slots[517] = &__cuDeviceGetFabricClusterUuid; _cyb_driver_names[517] = b'cuDeviceGetFabricClusterUuid' +_cyb_driver_slots[518] = &__cuDeviceGetCliqueCount; _cyb_driver_names[518] = b'cuDeviceGetCliqueCount' +_cyb_driver_slots[519] = &__cuDeviceGetCliqueInfo; _cyb_driver_names[519] = b'cuDeviceGetCliqueInfo' +_cyb_driver_slots[520] = &__cuMemGetLocationInfo; _cyb_driver_names[520] = b'cuMemGetLocationInfo' +_cyb_driver_slots[521] = &__cuGraphAddNode_v3; _cyb_driver_names[521] = b'cuGraphAddNode_v3' +_cyb_driver_slots[522] = &__cuGraphNodeSetParams_v2; _cyb_driver_names[522] = b'cuGraphNodeSetParams_v2' +_cyb_driver_slots[523] = &__cuCheckpointOperationComplete; _cyb_driver_names[523] = b'cuCheckpointOperationComplete' +_cyb_driver_slots[524] = &__cuFabricCpyBatchAsync; _cyb_driver_names[524] = b'cuFabricCpyBatchAsync' +_cyb_driver_slots[525] = &__cuTensorMapSetAllocationClass; _cyb_driver_names[525] = b'cuTensorMapSetAllocationClass' + cdef int _init_driver() except -1 nogil: global _cyb___py_driver_init cdef void* handle = NULL @@ -2208,1583 +2738,9 @@ cpdef dict _inspect_function_pointers(): _check_or_init_driver() cdef dict data = {} - global __cuGetErrorString - data["__cuGetErrorString"] = __cuGetErrorString - - global __cuGetErrorName - data["__cuGetErrorName"] = __cuGetErrorName - - global __cuInit - data["__cuInit"] = __cuInit - - global __cuDriverGetVersion - data["__cuDriverGetVersion"] = __cuDriverGetVersion - - global __cuDeviceGet - data["__cuDeviceGet"] = __cuDeviceGet - - global __cuDeviceGetCount - data["__cuDeviceGetCount"] = __cuDeviceGetCount - - global __cuDeviceGetName - data["__cuDeviceGetName"] = __cuDeviceGetName - - global __cuDeviceGetUuid_v2 - data["__cuDeviceGetUuid_v2"] = __cuDeviceGetUuid_v2 - - global __cuDeviceGetLuid - data["__cuDeviceGetLuid"] = __cuDeviceGetLuid - - global __cuDeviceTotalMem_v2 - data["__cuDeviceTotalMem_v2"] = __cuDeviceTotalMem_v2 - - global __cuDeviceGetTexture1DLinearMaxWidth - data["__cuDeviceGetTexture1DLinearMaxWidth"] = __cuDeviceGetTexture1DLinearMaxWidth - - global __cuDeviceGetAttribute - data["__cuDeviceGetAttribute"] = __cuDeviceGetAttribute - - global __cuDeviceGetNvSciSyncAttributes - data["__cuDeviceGetNvSciSyncAttributes"] = __cuDeviceGetNvSciSyncAttributes - - global __cuDeviceSetMemPool - data["__cuDeviceSetMemPool"] = __cuDeviceSetMemPool - - global __cuDeviceGetMemPool - data["__cuDeviceGetMemPool"] = __cuDeviceGetMemPool - - global __cuDeviceGetDefaultMemPool - data["__cuDeviceGetDefaultMemPool"] = __cuDeviceGetDefaultMemPool - - global __cuDeviceGetExecAffinitySupport - data["__cuDeviceGetExecAffinitySupport"] = __cuDeviceGetExecAffinitySupport - - global __cuFlushGPUDirectRDMAWrites - data["__cuFlushGPUDirectRDMAWrites"] = __cuFlushGPUDirectRDMAWrites - - global __cuDeviceGetProperties - data["__cuDeviceGetProperties"] = __cuDeviceGetProperties - - global __cuDeviceComputeCapability - data["__cuDeviceComputeCapability"] = __cuDeviceComputeCapability - - global __cuDevicePrimaryCtxRetain - data["__cuDevicePrimaryCtxRetain"] = __cuDevicePrimaryCtxRetain - - global __cuDevicePrimaryCtxRelease_v2 - data["__cuDevicePrimaryCtxRelease_v2"] = __cuDevicePrimaryCtxRelease_v2 - - global __cuDevicePrimaryCtxSetFlags_v2 - data["__cuDevicePrimaryCtxSetFlags_v2"] = __cuDevicePrimaryCtxSetFlags_v2 - - global __cuDevicePrimaryCtxGetState - data["__cuDevicePrimaryCtxGetState"] = __cuDevicePrimaryCtxGetState - - global __cuDevicePrimaryCtxReset_v2 - data["__cuDevicePrimaryCtxReset_v2"] = __cuDevicePrimaryCtxReset_v2 - - global __cuCtxCreate_v2 - data["__cuCtxCreate_v2"] = __cuCtxCreate_v2 - - global __cuCtxCreate_v3 - data["__cuCtxCreate_v3"] = __cuCtxCreate_v3 - - global __cuCtxCreate_v4 - data["__cuCtxCreate_v4"] = __cuCtxCreate_v4 - - global __cuCtxDestroy_v2 - data["__cuCtxDestroy_v2"] = __cuCtxDestroy_v2 - - global __cuCtxPushCurrent_v2 - data["__cuCtxPushCurrent_v2"] = __cuCtxPushCurrent_v2 - - global __cuCtxPopCurrent_v2 - data["__cuCtxPopCurrent_v2"] = __cuCtxPopCurrent_v2 - - global __cuCtxSetCurrent - data["__cuCtxSetCurrent"] = __cuCtxSetCurrent - - global __cuCtxGetCurrent - data["__cuCtxGetCurrent"] = __cuCtxGetCurrent - - global __cuCtxGetDevice - data["__cuCtxGetDevice"] = __cuCtxGetDevice - - global __cuCtxGetFlags - data["__cuCtxGetFlags"] = __cuCtxGetFlags - - global __cuCtxSetFlags - data["__cuCtxSetFlags"] = __cuCtxSetFlags - - global __cuCtxGetId - data["__cuCtxGetId"] = __cuCtxGetId - - global __cuCtxSynchronize - data["__cuCtxSynchronize"] = __cuCtxSynchronize - - global __cuCtxSetLimit - data["__cuCtxSetLimit"] = __cuCtxSetLimit - - global __cuCtxGetLimit - data["__cuCtxGetLimit"] = __cuCtxGetLimit - - global __cuCtxGetCacheConfig - data["__cuCtxGetCacheConfig"] = __cuCtxGetCacheConfig - - global __cuCtxSetCacheConfig - data["__cuCtxSetCacheConfig"] = __cuCtxSetCacheConfig - - global __cuCtxGetApiVersion - data["__cuCtxGetApiVersion"] = __cuCtxGetApiVersion - - global __cuCtxGetStreamPriorityRange - data["__cuCtxGetStreamPriorityRange"] = __cuCtxGetStreamPriorityRange - - global __cuCtxResetPersistingL2Cache - data["__cuCtxResetPersistingL2Cache"] = __cuCtxResetPersistingL2Cache - - global __cuCtxGetExecAffinity - data["__cuCtxGetExecAffinity"] = __cuCtxGetExecAffinity - - global __cuCtxRecordEvent - data["__cuCtxRecordEvent"] = __cuCtxRecordEvent - - global __cuCtxWaitEvent - data["__cuCtxWaitEvent"] = __cuCtxWaitEvent - - global __cuCtxAttach - data["__cuCtxAttach"] = __cuCtxAttach - - global __cuCtxDetach - data["__cuCtxDetach"] = __cuCtxDetach - - global __cuCtxGetSharedMemConfig - data["__cuCtxGetSharedMemConfig"] = __cuCtxGetSharedMemConfig - - global __cuCtxSetSharedMemConfig - data["__cuCtxSetSharedMemConfig"] = __cuCtxSetSharedMemConfig - - global __cuModuleLoad - data["__cuModuleLoad"] = __cuModuleLoad - - global __cuModuleLoadData - data["__cuModuleLoadData"] = __cuModuleLoadData - - global __cuModuleLoadDataEx - data["__cuModuleLoadDataEx"] = __cuModuleLoadDataEx - - global __cuModuleLoadFatBinary - data["__cuModuleLoadFatBinary"] = __cuModuleLoadFatBinary - - global __cuModuleUnload - data["__cuModuleUnload"] = __cuModuleUnload - - global __cuModuleGetLoadingMode - data["__cuModuleGetLoadingMode"] = __cuModuleGetLoadingMode - - global __cuModuleGetFunction - data["__cuModuleGetFunction"] = __cuModuleGetFunction - - global __cuModuleGetFunctionCount - data["__cuModuleGetFunctionCount"] = __cuModuleGetFunctionCount - - global __cuModuleEnumerateFunctions - data["__cuModuleEnumerateFunctions"] = __cuModuleEnumerateFunctions - - global __cuModuleGetGlobal_v2 - data["__cuModuleGetGlobal_v2"] = __cuModuleGetGlobal_v2 - - global __cuLinkCreate_v2 - data["__cuLinkCreate_v2"] = __cuLinkCreate_v2 - - global __cuLinkAddData_v2 - data["__cuLinkAddData_v2"] = __cuLinkAddData_v2 - - global __cuLinkAddFile_v2 - data["__cuLinkAddFile_v2"] = __cuLinkAddFile_v2 - - global __cuLinkComplete - data["__cuLinkComplete"] = __cuLinkComplete - - global __cuLinkDestroy - data["__cuLinkDestroy"] = __cuLinkDestroy - - global __cuModuleGetTexRef - data["__cuModuleGetTexRef"] = __cuModuleGetTexRef - - global __cuModuleGetSurfRef - data["__cuModuleGetSurfRef"] = __cuModuleGetSurfRef - - global __cuLibraryLoadData - data["__cuLibraryLoadData"] = __cuLibraryLoadData - - global __cuLibraryLoadFromFile - data["__cuLibraryLoadFromFile"] = __cuLibraryLoadFromFile - - global __cuLibraryUnload - data["__cuLibraryUnload"] = __cuLibraryUnload - - global __cuLibraryGetKernel - data["__cuLibraryGetKernel"] = __cuLibraryGetKernel - - global __cuLibraryGetKernelCount - data["__cuLibraryGetKernelCount"] = __cuLibraryGetKernelCount - - global __cuLibraryEnumerateKernels - data["__cuLibraryEnumerateKernels"] = __cuLibraryEnumerateKernels - - global __cuLibraryGetModule - data["__cuLibraryGetModule"] = __cuLibraryGetModule - - global __cuKernelGetFunction - data["__cuKernelGetFunction"] = __cuKernelGetFunction - - global __cuKernelGetLibrary - data["__cuKernelGetLibrary"] = __cuKernelGetLibrary - - global __cuLibraryGetGlobal - data["__cuLibraryGetGlobal"] = __cuLibraryGetGlobal - - global __cuLibraryGetManaged - data["__cuLibraryGetManaged"] = __cuLibraryGetManaged - - global __cuLibraryGetUnifiedFunction - data["__cuLibraryGetUnifiedFunction"] = __cuLibraryGetUnifiedFunction - - global __cuKernelGetAttribute - data["__cuKernelGetAttribute"] = __cuKernelGetAttribute - - global __cuKernelSetAttribute - data["__cuKernelSetAttribute"] = __cuKernelSetAttribute - - global __cuKernelSetCacheConfig - data["__cuKernelSetCacheConfig"] = __cuKernelSetCacheConfig - - global __cuKernelGetName - data["__cuKernelGetName"] = __cuKernelGetName - - global __cuKernelGetParamInfo - data["__cuKernelGetParamInfo"] = __cuKernelGetParamInfo - - global __cuMemGetInfo_v2 - data["__cuMemGetInfo_v2"] = __cuMemGetInfo_v2 - - global __cuMemAlloc_v2 - data["__cuMemAlloc_v2"] = __cuMemAlloc_v2 - - global __cuMemAllocPitch_v2 - data["__cuMemAllocPitch_v2"] = __cuMemAllocPitch_v2 - - global __cuMemFree_v2 - data["__cuMemFree_v2"] = __cuMemFree_v2 - - global __cuMemGetAddressRange_v2 - data["__cuMemGetAddressRange_v2"] = __cuMemGetAddressRange_v2 - - global __cuMemAllocHost_v2 - data["__cuMemAllocHost_v2"] = __cuMemAllocHost_v2 - - global __cuMemFreeHost - data["__cuMemFreeHost"] = __cuMemFreeHost - - global __cuMemHostAlloc - data["__cuMemHostAlloc"] = __cuMemHostAlloc - - global __cuMemHostGetDevicePointer_v2 - data["__cuMemHostGetDevicePointer_v2"] = __cuMemHostGetDevicePointer_v2 - - global __cuMemHostGetFlags - data["__cuMemHostGetFlags"] = __cuMemHostGetFlags - - global __cuMemAllocManaged - data["__cuMemAllocManaged"] = __cuMemAllocManaged - - global __cuDeviceRegisterAsyncNotification - data["__cuDeviceRegisterAsyncNotification"] = __cuDeviceRegisterAsyncNotification - - global __cuDeviceUnregisterAsyncNotification - data["__cuDeviceUnregisterAsyncNotification"] = __cuDeviceUnregisterAsyncNotification - - global __cuDeviceGetByPCIBusId - data["__cuDeviceGetByPCIBusId"] = __cuDeviceGetByPCIBusId - - global __cuDeviceGetPCIBusId - data["__cuDeviceGetPCIBusId"] = __cuDeviceGetPCIBusId - - global __cuIpcGetEventHandle - data["__cuIpcGetEventHandle"] = __cuIpcGetEventHandle - - global __cuIpcOpenEventHandle - data["__cuIpcOpenEventHandle"] = __cuIpcOpenEventHandle - - global __cuIpcGetMemHandle - data["__cuIpcGetMemHandle"] = __cuIpcGetMemHandle - - global __cuIpcOpenMemHandle_v2 - data["__cuIpcOpenMemHandle_v2"] = __cuIpcOpenMemHandle_v2 - - global __cuIpcCloseMemHandle - data["__cuIpcCloseMemHandle"] = __cuIpcCloseMemHandle - - global __cuMemHostRegister_v2 - data["__cuMemHostRegister_v2"] = __cuMemHostRegister_v2 - - global __cuMemHostUnregister - data["__cuMemHostUnregister"] = __cuMemHostUnregister - - global __cuMemcpy - data["__cuMemcpy"] = __cuMemcpy - - global __cuMemcpyPeer - data["__cuMemcpyPeer"] = __cuMemcpyPeer - - global __cuMemcpyHtoD_v2 - data["__cuMemcpyHtoD_v2"] = __cuMemcpyHtoD_v2 - - global __cuMemcpyDtoH_v2 - data["__cuMemcpyDtoH_v2"] = __cuMemcpyDtoH_v2 - - global __cuMemcpyDtoD_v2 - data["__cuMemcpyDtoD_v2"] = __cuMemcpyDtoD_v2 - - global __cuMemcpyDtoA_v2 - data["__cuMemcpyDtoA_v2"] = __cuMemcpyDtoA_v2 - - global __cuMemcpyAtoD_v2 - data["__cuMemcpyAtoD_v2"] = __cuMemcpyAtoD_v2 - - global __cuMemcpyHtoA_v2 - data["__cuMemcpyHtoA_v2"] = __cuMemcpyHtoA_v2 - - global __cuMemcpyAtoH_v2 - data["__cuMemcpyAtoH_v2"] = __cuMemcpyAtoH_v2 - - global __cuMemcpyAtoA_v2 - data["__cuMemcpyAtoA_v2"] = __cuMemcpyAtoA_v2 - - global __cuMemcpy2D_v2 - data["__cuMemcpy2D_v2"] = __cuMemcpy2D_v2 - - global __cuMemcpy2DUnaligned_v2 - data["__cuMemcpy2DUnaligned_v2"] = __cuMemcpy2DUnaligned_v2 - - global __cuMemcpy3D_v2 - data["__cuMemcpy3D_v2"] = __cuMemcpy3D_v2 - - global __cuMemcpy3DPeer - data["__cuMemcpy3DPeer"] = __cuMemcpy3DPeer - - global __cuMemcpyAsync - data["__cuMemcpyAsync"] = __cuMemcpyAsync - - global __cuMemcpyPeerAsync - data["__cuMemcpyPeerAsync"] = __cuMemcpyPeerAsync - - global __cuMemcpyHtoDAsync_v2 - data["__cuMemcpyHtoDAsync_v2"] = __cuMemcpyHtoDAsync_v2 - - global __cuMemcpyDtoHAsync_v2 - data["__cuMemcpyDtoHAsync_v2"] = __cuMemcpyDtoHAsync_v2 - - global __cuMemcpyDtoDAsync_v2 - data["__cuMemcpyDtoDAsync_v2"] = __cuMemcpyDtoDAsync_v2 - - global __cuMemcpyHtoAAsync_v2 - data["__cuMemcpyHtoAAsync_v2"] = __cuMemcpyHtoAAsync_v2 - - global __cuMemcpyAtoHAsync_v2 - data["__cuMemcpyAtoHAsync_v2"] = __cuMemcpyAtoHAsync_v2 - - global __cuMemcpy2DAsync_v2 - data["__cuMemcpy2DAsync_v2"] = __cuMemcpy2DAsync_v2 - - global __cuMemcpy3DAsync_v2 - data["__cuMemcpy3DAsync_v2"] = __cuMemcpy3DAsync_v2 - - global __cuMemcpy3DPeerAsync - data["__cuMemcpy3DPeerAsync"] = __cuMemcpy3DPeerAsync - - global __cuMemsetD8_v2 - data["__cuMemsetD8_v2"] = __cuMemsetD8_v2 - - global __cuMemsetD16_v2 - data["__cuMemsetD16_v2"] = __cuMemsetD16_v2 - - global __cuMemsetD32_v2 - data["__cuMemsetD32_v2"] = __cuMemsetD32_v2 - - global __cuMemsetD2D8_v2 - data["__cuMemsetD2D8_v2"] = __cuMemsetD2D8_v2 - - global __cuMemsetD2D16_v2 - data["__cuMemsetD2D16_v2"] = __cuMemsetD2D16_v2 - - global __cuMemsetD2D32_v2 - data["__cuMemsetD2D32_v2"] = __cuMemsetD2D32_v2 - - global __cuMemsetD8Async - data["__cuMemsetD8Async"] = __cuMemsetD8Async - - global __cuMemsetD16Async - data["__cuMemsetD16Async"] = __cuMemsetD16Async - - global __cuMemsetD32Async - data["__cuMemsetD32Async"] = __cuMemsetD32Async - - global __cuMemsetD2D8Async - data["__cuMemsetD2D8Async"] = __cuMemsetD2D8Async - - global __cuMemsetD2D16Async - data["__cuMemsetD2D16Async"] = __cuMemsetD2D16Async - - global __cuMemsetD2D32Async - data["__cuMemsetD2D32Async"] = __cuMemsetD2D32Async - - global __cuArrayCreate_v2 - data["__cuArrayCreate_v2"] = __cuArrayCreate_v2 - - global __cuArrayGetDescriptor_v2 - data["__cuArrayGetDescriptor_v2"] = __cuArrayGetDescriptor_v2 - - global __cuArrayGetSparseProperties - data["__cuArrayGetSparseProperties"] = __cuArrayGetSparseProperties - - global __cuMipmappedArrayGetSparseProperties - data["__cuMipmappedArrayGetSparseProperties"] = __cuMipmappedArrayGetSparseProperties - - global __cuArrayGetMemoryRequirements - data["__cuArrayGetMemoryRequirements"] = __cuArrayGetMemoryRequirements - - global __cuMipmappedArrayGetMemoryRequirements - data["__cuMipmappedArrayGetMemoryRequirements"] = __cuMipmappedArrayGetMemoryRequirements - - global __cuArrayGetPlane - data["__cuArrayGetPlane"] = __cuArrayGetPlane - - global __cuArrayDestroy - data["__cuArrayDestroy"] = __cuArrayDestroy - - global __cuArray3DCreate_v2 - data["__cuArray3DCreate_v2"] = __cuArray3DCreate_v2 - - global __cuArray3DGetDescriptor_v2 - data["__cuArray3DGetDescriptor_v2"] = __cuArray3DGetDescriptor_v2 - - global __cuMipmappedArrayCreate - data["__cuMipmappedArrayCreate"] = __cuMipmappedArrayCreate - - global __cuMipmappedArrayGetLevel - data["__cuMipmappedArrayGetLevel"] = __cuMipmappedArrayGetLevel - - global __cuMipmappedArrayDestroy - data["__cuMipmappedArrayDestroy"] = __cuMipmappedArrayDestroy - - global __cuMemGetHandleForAddressRange - data["__cuMemGetHandleForAddressRange"] = __cuMemGetHandleForAddressRange - - global __cuMemBatchDecompressAsync - data["__cuMemBatchDecompressAsync"] = __cuMemBatchDecompressAsync - - global __cuMemAddressReserve - data["__cuMemAddressReserve"] = __cuMemAddressReserve - - global __cuMemAddressFree - data["__cuMemAddressFree"] = __cuMemAddressFree - - global __cuMemCreate - data["__cuMemCreate"] = __cuMemCreate - - global __cuMemRelease - data["__cuMemRelease"] = __cuMemRelease - - global __cuMemMap - data["__cuMemMap"] = __cuMemMap - - global __cuMemMapArrayAsync - data["__cuMemMapArrayAsync"] = __cuMemMapArrayAsync - - global __cuMemUnmap - data["__cuMemUnmap"] = __cuMemUnmap - - global __cuMemSetAccess - data["__cuMemSetAccess"] = __cuMemSetAccess - - global __cuMemGetAccess - data["__cuMemGetAccess"] = __cuMemGetAccess - - global __cuMemExportToShareableHandle - data["__cuMemExportToShareableHandle"] = __cuMemExportToShareableHandle - - global __cuMemImportFromShareableHandle - data["__cuMemImportFromShareableHandle"] = __cuMemImportFromShareableHandle - - global __cuMemGetAllocationGranularity - data["__cuMemGetAllocationGranularity"] = __cuMemGetAllocationGranularity - - global __cuMemGetAllocationPropertiesFromHandle - data["__cuMemGetAllocationPropertiesFromHandle"] = __cuMemGetAllocationPropertiesFromHandle - - global __cuMemRetainAllocationHandle - data["__cuMemRetainAllocationHandle"] = __cuMemRetainAllocationHandle - - global __cuMemFreeAsync - data["__cuMemFreeAsync"] = __cuMemFreeAsync - - global __cuMemAllocAsync - data["__cuMemAllocAsync"] = __cuMemAllocAsync - - global __cuMemPoolTrimTo - data["__cuMemPoolTrimTo"] = __cuMemPoolTrimTo - - global __cuMemPoolSetAttribute - data["__cuMemPoolSetAttribute"] = __cuMemPoolSetAttribute - - global __cuMemPoolGetAttribute - data["__cuMemPoolGetAttribute"] = __cuMemPoolGetAttribute - - global __cuMemPoolSetAccess - data["__cuMemPoolSetAccess"] = __cuMemPoolSetAccess - - global __cuMemPoolGetAccess - data["__cuMemPoolGetAccess"] = __cuMemPoolGetAccess - - global __cuMemPoolCreate - data["__cuMemPoolCreate"] = __cuMemPoolCreate - - global __cuMemPoolDestroy - data["__cuMemPoolDestroy"] = __cuMemPoolDestroy - - global __cuMemAllocFromPoolAsync - data["__cuMemAllocFromPoolAsync"] = __cuMemAllocFromPoolAsync - - global __cuMemPoolExportToShareableHandle - data["__cuMemPoolExportToShareableHandle"] = __cuMemPoolExportToShareableHandle - - global __cuMemPoolImportFromShareableHandle - data["__cuMemPoolImportFromShareableHandle"] = __cuMemPoolImportFromShareableHandle - - global __cuMemPoolExportPointer - data["__cuMemPoolExportPointer"] = __cuMemPoolExportPointer - - global __cuMemPoolImportPointer - data["__cuMemPoolImportPointer"] = __cuMemPoolImportPointer - - global __cuMulticastCreate - data["__cuMulticastCreate"] = __cuMulticastCreate - - global __cuMulticastAddDevice - data["__cuMulticastAddDevice"] = __cuMulticastAddDevice - - global __cuMulticastBindMem - data["__cuMulticastBindMem"] = __cuMulticastBindMem - - global __cuMulticastBindAddr - data["__cuMulticastBindAddr"] = __cuMulticastBindAddr - - global __cuMulticastUnbind - data["__cuMulticastUnbind"] = __cuMulticastUnbind - - global __cuMulticastGetGranularity - data["__cuMulticastGetGranularity"] = __cuMulticastGetGranularity - - global __cuPointerGetAttribute - data["__cuPointerGetAttribute"] = __cuPointerGetAttribute - - global __cuMemPrefetchAsync_v2 - data["__cuMemPrefetchAsync_v2"] = __cuMemPrefetchAsync_v2 - - global __cuMemAdvise_v2 - data["__cuMemAdvise_v2"] = __cuMemAdvise_v2 - - global __cuMemRangeGetAttribute - data["__cuMemRangeGetAttribute"] = __cuMemRangeGetAttribute - - global __cuMemRangeGetAttributes - data["__cuMemRangeGetAttributes"] = __cuMemRangeGetAttributes - - global __cuPointerSetAttribute - data["__cuPointerSetAttribute"] = __cuPointerSetAttribute - - global __cuPointerGetAttributes - data["__cuPointerGetAttributes"] = __cuPointerGetAttributes - - global __cuStreamCreate - data["__cuStreamCreate"] = __cuStreamCreate - - global __cuStreamCreateWithPriority - data["__cuStreamCreateWithPriority"] = __cuStreamCreateWithPriority - - global __cuStreamGetPriority - data["__cuStreamGetPriority"] = __cuStreamGetPriority - - global __cuStreamGetDevice - data["__cuStreamGetDevice"] = __cuStreamGetDevice - - global __cuStreamGetFlags - data["__cuStreamGetFlags"] = __cuStreamGetFlags - - global __cuStreamGetId - data["__cuStreamGetId"] = __cuStreamGetId - - global __cuStreamGetCtx - data["__cuStreamGetCtx"] = __cuStreamGetCtx - - global __cuStreamGetCtx_v2 - data["__cuStreamGetCtx_v2"] = __cuStreamGetCtx_v2 - - global __cuStreamWaitEvent - data["__cuStreamWaitEvent"] = __cuStreamWaitEvent - - global __cuStreamAddCallback - data["__cuStreamAddCallback"] = __cuStreamAddCallback - - global __cuStreamBeginCapture_v2 - data["__cuStreamBeginCapture_v2"] = __cuStreamBeginCapture_v2 - - global __cuStreamBeginCaptureToGraph - data["__cuStreamBeginCaptureToGraph"] = __cuStreamBeginCaptureToGraph - - global __cuThreadExchangeStreamCaptureMode - data["__cuThreadExchangeStreamCaptureMode"] = __cuThreadExchangeStreamCaptureMode - - global __cuStreamEndCapture - data["__cuStreamEndCapture"] = __cuStreamEndCapture - - global __cuStreamIsCapturing - data["__cuStreamIsCapturing"] = __cuStreamIsCapturing - - global __cuStreamGetCaptureInfo_v2 - data["__cuStreamGetCaptureInfo_v2"] = __cuStreamGetCaptureInfo_v2 - - global __cuStreamGetCaptureInfo_v3 - data["__cuStreamGetCaptureInfo_v3"] = __cuStreamGetCaptureInfo_v3 - - global __cuStreamUpdateCaptureDependencies_v2 - data["__cuStreamUpdateCaptureDependencies_v2"] = __cuStreamUpdateCaptureDependencies_v2 - - global __cuStreamAttachMemAsync - data["__cuStreamAttachMemAsync"] = __cuStreamAttachMemAsync - - global __cuStreamQuery - data["__cuStreamQuery"] = __cuStreamQuery - - global __cuStreamSynchronize - data["__cuStreamSynchronize"] = __cuStreamSynchronize - - global __cuStreamDestroy_v2 - data["__cuStreamDestroy_v2"] = __cuStreamDestroy_v2 - - global __cuStreamCopyAttributes - data["__cuStreamCopyAttributes"] = __cuStreamCopyAttributes - - global __cuStreamGetAttribute - data["__cuStreamGetAttribute"] = __cuStreamGetAttribute - - global __cuStreamSetAttribute - data["__cuStreamSetAttribute"] = __cuStreamSetAttribute - - global __cuEventCreate - data["__cuEventCreate"] = __cuEventCreate - - global __cuEventRecord - data["__cuEventRecord"] = __cuEventRecord - - global __cuEventRecordWithFlags - data["__cuEventRecordWithFlags"] = __cuEventRecordWithFlags - - global __cuEventQuery - data["__cuEventQuery"] = __cuEventQuery - - global __cuEventSynchronize - data["__cuEventSynchronize"] = __cuEventSynchronize - - global __cuEventDestroy_v2 - data["__cuEventDestroy_v2"] = __cuEventDestroy_v2 - - global __cuEventElapsedTime_v2 - data["__cuEventElapsedTime_v2"] = __cuEventElapsedTime_v2 - - global __cuImportExternalMemory - data["__cuImportExternalMemory"] = __cuImportExternalMemory - - global __cuExternalMemoryGetMappedBuffer - data["__cuExternalMemoryGetMappedBuffer"] = __cuExternalMemoryGetMappedBuffer - - global __cuExternalMemoryGetMappedMipmappedArray - data["__cuExternalMemoryGetMappedMipmappedArray"] = __cuExternalMemoryGetMappedMipmappedArray - - global __cuDestroyExternalMemory - data["__cuDestroyExternalMemory"] = __cuDestroyExternalMemory - - global __cuImportExternalSemaphore - data["__cuImportExternalSemaphore"] = __cuImportExternalSemaphore - - global __cuSignalExternalSemaphoresAsync - data["__cuSignalExternalSemaphoresAsync"] = __cuSignalExternalSemaphoresAsync - - global __cuWaitExternalSemaphoresAsync - data["__cuWaitExternalSemaphoresAsync"] = __cuWaitExternalSemaphoresAsync - - global __cuDestroyExternalSemaphore - data["__cuDestroyExternalSemaphore"] = __cuDestroyExternalSemaphore - - global __cuStreamWaitValue32_v2 - data["__cuStreamWaitValue32_v2"] = __cuStreamWaitValue32_v2 - - global __cuStreamWaitValue64_v2 - data["__cuStreamWaitValue64_v2"] = __cuStreamWaitValue64_v2 - - global __cuStreamWriteValue32_v2 - data["__cuStreamWriteValue32_v2"] = __cuStreamWriteValue32_v2 - - global __cuStreamWriteValue64_v2 - data["__cuStreamWriteValue64_v2"] = __cuStreamWriteValue64_v2 - - global __cuStreamBatchMemOp_v2 - data["__cuStreamBatchMemOp_v2"] = __cuStreamBatchMemOp_v2 - - global __cuFuncGetAttribute - data["__cuFuncGetAttribute"] = __cuFuncGetAttribute - - global __cuFuncSetAttribute - data["__cuFuncSetAttribute"] = __cuFuncSetAttribute - - global __cuFuncSetCacheConfig - data["__cuFuncSetCacheConfig"] = __cuFuncSetCacheConfig - - global __cuFuncGetModule - data["__cuFuncGetModule"] = __cuFuncGetModule - - global __cuFuncGetName - data["__cuFuncGetName"] = __cuFuncGetName - - global __cuFuncGetParamInfo - data["__cuFuncGetParamInfo"] = __cuFuncGetParamInfo - - global __cuFuncIsLoaded - data["__cuFuncIsLoaded"] = __cuFuncIsLoaded - - global __cuFuncLoad - data["__cuFuncLoad"] = __cuFuncLoad - - global __cuLaunchKernel - data["__cuLaunchKernel"] = __cuLaunchKernel - - global __cuLaunchKernelEx - data["__cuLaunchKernelEx"] = __cuLaunchKernelEx - - global __cuLaunchCooperativeKernel - data["__cuLaunchCooperativeKernel"] = __cuLaunchCooperativeKernel - - global __cuLaunchCooperativeKernelMultiDevice - data["__cuLaunchCooperativeKernelMultiDevice"] = __cuLaunchCooperativeKernelMultiDevice - - global __cuLaunchHostFunc - data["__cuLaunchHostFunc"] = __cuLaunchHostFunc - - global __cuFuncSetBlockShape - data["__cuFuncSetBlockShape"] = __cuFuncSetBlockShape - - global __cuFuncSetSharedSize - data["__cuFuncSetSharedSize"] = __cuFuncSetSharedSize - - global __cuParamSetSize - data["__cuParamSetSize"] = __cuParamSetSize - - global __cuParamSeti - data["__cuParamSeti"] = __cuParamSeti - - global __cuParamSetf - data["__cuParamSetf"] = __cuParamSetf - - global __cuParamSetv - data["__cuParamSetv"] = __cuParamSetv - - global __cuLaunch - data["__cuLaunch"] = __cuLaunch - - global __cuLaunchGrid - data["__cuLaunchGrid"] = __cuLaunchGrid - - global __cuLaunchGridAsync - data["__cuLaunchGridAsync"] = __cuLaunchGridAsync - - global __cuParamSetTexRef - data["__cuParamSetTexRef"] = __cuParamSetTexRef - - global __cuFuncSetSharedMemConfig - data["__cuFuncSetSharedMemConfig"] = __cuFuncSetSharedMemConfig - - global __cuGraphCreate - data["__cuGraphCreate"] = __cuGraphCreate - - global __cuGraphAddKernelNode_v2 - data["__cuGraphAddKernelNode_v2"] = __cuGraphAddKernelNode_v2 - - global __cuGraphKernelNodeGetParams_v2 - data["__cuGraphKernelNodeGetParams_v2"] = __cuGraphKernelNodeGetParams_v2 - - global __cuGraphKernelNodeSetParams_v2 - data["__cuGraphKernelNodeSetParams_v2"] = __cuGraphKernelNodeSetParams_v2 - - global __cuGraphAddMemcpyNode - data["__cuGraphAddMemcpyNode"] = __cuGraphAddMemcpyNode - - global __cuGraphMemcpyNodeGetParams - data["__cuGraphMemcpyNodeGetParams"] = __cuGraphMemcpyNodeGetParams - - global __cuGraphMemcpyNodeSetParams - data["__cuGraphMemcpyNodeSetParams"] = __cuGraphMemcpyNodeSetParams - - global __cuGraphAddMemsetNode - data["__cuGraphAddMemsetNode"] = __cuGraphAddMemsetNode - - global __cuGraphMemsetNodeGetParams - data["__cuGraphMemsetNodeGetParams"] = __cuGraphMemsetNodeGetParams - - global __cuGraphMemsetNodeSetParams - data["__cuGraphMemsetNodeSetParams"] = __cuGraphMemsetNodeSetParams - - global __cuGraphAddHostNode - data["__cuGraphAddHostNode"] = __cuGraphAddHostNode - - global __cuGraphHostNodeGetParams - data["__cuGraphHostNodeGetParams"] = __cuGraphHostNodeGetParams - - global __cuGraphHostNodeSetParams - data["__cuGraphHostNodeSetParams"] = __cuGraphHostNodeSetParams - - global __cuGraphAddChildGraphNode - data["__cuGraphAddChildGraphNode"] = __cuGraphAddChildGraphNode - - global __cuGraphChildGraphNodeGetGraph - data["__cuGraphChildGraphNodeGetGraph"] = __cuGraphChildGraphNodeGetGraph - - global __cuGraphAddEmptyNode - data["__cuGraphAddEmptyNode"] = __cuGraphAddEmptyNode - - global __cuGraphAddEventRecordNode - data["__cuGraphAddEventRecordNode"] = __cuGraphAddEventRecordNode - - global __cuGraphEventRecordNodeGetEvent - data["__cuGraphEventRecordNodeGetEvent"] = __cuGraphEventRecordNodeGetEvent - - global __cuGraphEventRecordNodeSetEvent - data["__cuGraphEventRecordNodeSetEvent"] = __cuGraphEventRecordNodeSetEvent - - global __cuGraphAddEventWaitNode - data["__cuGraphAddEventWaitNode"] = __cuGraphAddEventWaitNode - - global __cuGraphEventWaitNodeGetEvent - data["__cuGraphEventWaitNodeGetEvent"] = __cuGraphEventWaitNodeGetEvent - - global __cuGraphEventWaitNodeSetEvent - data["__cuGraphEventWaitNodeSetEvent"] = __cuGraphEventWaitNodeSetEvent - - global __cuGraphAddExternalSemaphoresSignalNode - data["__cuGraphAddExternalSemaphoresSignalNode"] = __cuGraphAddExternalSemaphoresSignalNode - - global __cuGraphExternalSemaphoresSignalNodeGetParams - data["__cuGraphExternalSemaphoresSignalNodeGetParams"] = __cuGraphExternalSemaphoresSignalNodeGetParams - - global __cuGraphExternalSemaphoresSignalNodeSetParams - data["__cuGraphExternalSemaphoresSignalNodeSetParams"] = __cuGraphExternalSemaphoresSignalNodeSetParams - - global __cuGraphAddExternalSemaphoresWaitNode - data["__cuGraphAddExternalSemaphoresWaitNode"] = __cuGraphAddExternalSemaphoresWaitNode - - global __cuGraphExternalSemaphoresWaitNodeGetParams - data["__cuGraphExternalSemaphoresWaitNodeGetParams"] = __cuGraphExternalSemaphoresWaitNodeGetParams - - global __cuGraphExternalSemaphoresWaitNodeSetParams - data["__cuGraphExternalSemaphoresWaitNodeSetParams"] = __cuGraphExternalSemaphoresWaitNodeSetParams - - global __cuGraphAddBatchMemOpNode - data["__cuGraphAddBatchMemOpNode"] = __cuGraphAddBatchMemOpNode - - global __cuGraphBatchMemOpNodeGetParams - data["__cuGraphBatchMemOpNodeGetParams"] = __cuGraphBatchMemOpNodeGetParams - - global __cuGraphBatchMemOpNodeSetParams - data["__cuGraphBatchMemOpNodeSetParams"] = __cuGraphBatchMemOpNodeSetParams - - global __cuGraphExecBatchMemOpNodeSetParams - data["__cuGraphExecBatchMemOpNodeSetParams"] = __cuGraphExecBatchMemOpNodeSetParams - - global __cuGraphAddMemAllocNode - data["__cuGraphAddMemAllocNode"] = __cuGraphAddMemAllocNode - - global __cuGraphMemAllocNodeGetParams - data["__cuGraphMemAllocNodeGetParams"] = __cuGraphMemAllocNodeGetParams - - global __cuGraphAddMemFreeNode - data["__cuGraphAddMemFreeNode"] = __cuGraphAddMemFreeNode - - global __cuGraphMemFreeNodeGetParams - data["__cuGraphMemFreeNodeGetParams"] = __cuGraphMemFreeNodeGetParams - - global __cuDeviceGraphMemTrim - data["__cuDeviceGraphMemTrim"] = __cuDeviceGraphMemTrim - - global __cuDeviceGetGraphMemAttribute - data["__cuDeviceGetGraphMemAttribute"] = __cuDeviceGetGraphMemAttribute - - global __cuDeviceSetGraphMemAttribute - data["__cuDeviceSetGraphMemAttribute"] = __cuDeviceSetGraphMemAttribute - - global __cuGraphClone - data["__cuGraphClone"] = __cuGraphClone - - global __cuGraphNodeFindInClone - data["__cuGraphNodeFindInClone"] = __cuGraphNodeFindInClone - - global __cuGraphNodeGetType - data["__cuGraphNodeGetType"] = __cuGraphNodeGetType - - global __cuGraphGetNodes - data["__cuGraphGetNodes"] = __cuGraphGetNodes - - global __cuGraphGetRootNodes - data["__cuGraphGetRootNodes"] = __cuGraphGetRootNodes - - global __cuGraphGetEdges_v2 - data["__cuGraphGetEdges_v2"] = __cuGraphGetEdges_v2 - - global __cuGraphNodeGetDependencies_v2 - data["__cuGraphNodeGetDependencies_v2"] = __cuGraphNodeGetDependencies_v2 - - global __cuGraphNodeGetDependentNodes_v2 - data["__cuGraphNodeGetDependentNodes_v2"] = __cuGraphNodeGetDependentNodes_v2 - - global __cuGraphAddDependencies_v2 - data["__cuGraphAddDependencies_v2"] = __cuGraphAddDependencies_v2 - - global __cuGraphRemoveDependencies_v2 - data["__cuGraphRemoveDependencies_v2"] = __cuGraphRemoveDependencies_v2 - - global __cuGraphDestroyNode - data["__cuGraphDestroyNode"] = __cuGraphDestroyNode - - global __cuGraphInstantiateWithFlags - data["__cuGraphInstantiateWithFlags"] = __cuGraphInstantiateWithFlags - - global __cuGraphInstantiateWithParams - data["__cuGraphInstantiateWithParams"] = __cuGraphInstantiateWithParams - - global __cuGraphExecGetFlags - data["__cuGraphExecGetFlags"] = __cuGraphExecGetFlags - - global __cuGraphExecKernelNodeSetParams_v2 - data["__cuGraphExecKernelNodeSetParams_v2"] = __cuGraphExecKernelNodeSetParams_v2 - - global __cuGraphExecMemcpyNodeSetParams - data["__cuGraphExecMemcpyNodeSetParams"] = __cuGraphExecMemcpyNodeSetParams - - global __cuGraphExecMemsetNodeSetParams - data["__cuGraphExecMemsetNodeSetParams"] = __cuGraphExecMemsetNodeSetParams - - global __cuGraphExecHostNodeSetParams - data["__cuGraphExecHostNodeSetParams"] = __cuGraphExecHostNodeSetParams - - global __cuGraphExecChildGraphNodeSetParams - data["__cuGraphExecChildGraphNodeSetParams"] = __cuGraphExecChildGraphNodeSetParams - - global __cuGraphExecEventRecordNodeSetEvent - data["__cuGraphExecEventRecordNodeSetEvent"] = __cuGraphExecEventRecordNodeSetEvent - - global __cuGraphExecEventWaitNodeSetEvent - data["__cuGraphExecEventWaitNodeSetEvent"] = __cuGraphExecEventWaitNodeSetEvent - - global __cuGraphExecExternalSemaphoresSignalNodeSetParams - data["__cuGraphExecExternalSemaphoresSignalNodeSetParams"] = __cuGraphExecExternalSemaphoresSignalNodeSetParams - - global __cuGraphExecExternalSemaphoresWaitNodeSetParams - data["__cuGraphExecExternalSemaphoresWaitNodeSetParams"] = __cuGraphExecExternalSemaphoresWaitNodeSetParams - - global __cuGraphNodeSetEnabled - data["__cuGraphNodeSetEnabled"] = __cuGraphNodeSetEnabled - - global __cuGraphNodeGetEnabled - data["__cuGraphNodeGetEnabled"] = __cuGraphNodeGetEnabled - - global __cuGraphUpload - data["__cuGraphUpload"] = __cuGraphUpload - - global __cuGraphLaunch - data["__cuGraphLaunch"] = __cuGraphLaunch - - global __cuGraphExecDestroy - data["__cuGraphExecDestroy"] = __cuGraphExecDestroy - - global __cuGraphDestroy - data["__cuGraphDestroy"] = __cuGraphDestroy - - global __cuGraphExecUpdate_v2 - data["__cuGraphExecUpdate_v2"] = __cuGraphExecUpdate_v2 - - global __cuGraphKernelNodeCopyAttributes - data["__cuGraphKernelNodeCopyAttributes"] = __cuGraphKernelNodeCopyAttributes - - global __cuGraphKernelNodeGetAttribute - data["__cuGraphKernelNodeGetAttribute"] = __cuGraphKernelNodeGetAttribute - - global __cuGraphKernelNodeSetAttribute - data["__cuGraphKernelNodeSetAttribute"] = __cuGraphKernelNodeSetAttribute - - global __cuGraphDebugDotPrint - data["__cuGraphDebugDotPrint"] = __cuGraphDebugDotPrint - - global __cuUserObjectCreate - data["__cuUserObjectCreate"] = __cuUserObjectCreate - - global __cuUserObjectRetain - data["__cuUserObjectRetain"] = __cuUserObjectRetain - - global __cuUserObjectRelease - data["__cuUserObjectRelease"] = __cuUserObjectRelease - - global __cuGraphRetainUserObject - data["__cuGraphRetainUserObject"] = __cuGraphRetainUserObject - - global __cuGraphReleaseUserObject - data["__cuGraphReleaseUserObject"] = __cuGraphReleaseUserObject - - global __cuGraphAddNode_v2 - data["__cuGraphAddNode_v2"] = __cuGraphAddNode_v2 - - global __cuGraphNodeSetParams - data["__cuGraphNodeSetParams"] = __cuGraphNodeSetParams - - global __cuGraphExecNodeSetParams - data["__cuGraphExecNodeSetParams"] = __cuGraphExecNodeSetParams - - global __cuGraphConditionalHandleCreate - data["__cuGraphConditionalHandleCreate"] = __cuGraphConditionalHandleCreate - - global __cuOccupancyMaxActiveBlocksPerMultiprocessor - data["__cuOccupancyMaxActiveBlocksPerMultiprocessor"] = __cuOccupancyMaxActiveBlocksPerMultiprocessor - - global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags - data["__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags"] = __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags - - global __cuOccupancyMaxPotentialBlockSize - data["__cuOccupancyMaxPotentialBlockSize"] = __cuOccupancyMaxPotentialBlockSize - - global __cuOccupancyMaxPotentialBlockSizeWithFlags - data["__cuOccupancyMaxPotentialBlockSizeWithFlags"] = __cuOccupancyMaxPotentialBlockSizeWithFlags - - global __cuOccupancyAvailableDynamicSMemPerBlock - data["__cuOccupancyAvailableDynamicSMemPerBlock"] = __cuOccupancyAvailableDynamicSMemPerBlock - - global __cuOccupancyMaxPotentialClusterSize - data["__cuOccupancyMaxPotentialClusterSize"] = __cuOccupancyMaxPotentialClusterSize - - global __cuOccupancyMaxActiveClusters - data["__cuOccupancyMaxActiveClusters"] = __cuOccupancyMaxActiveClusters - - global __cuTexRefSetArray - data["__cuTexRefSetArray"] = __cuTexRefSetArray - - global __cuTexRefSetMipmappedArray - data["__cuTexRefSetMipmappedArray"] = __cuTexRefSetMipmappedArray - - global __cuTexRefSetAddress_v2 - data["__cuTexRefSetAddress_v2"] = __cuTexRefSetAddress_v2 - - global __cuTexRefSetAddress2D_v3 - data["__cuTexRefSetAddress2D_v3"] = __cuTexRefSetAddress2D_v3 - - global __cuTexRefSetFormat - data["__cuTexRefSetFormat"] = __cuTexRefSetFormat - - global __cuTexRefSetAddressMode - data["__cuTexRefSetAddressMode"] = __cuTexRefSetAddressMode - - global __cuTexRefSetFilterMode - data["__cuTexRefSetFilterMode"] = __cuTexRefSetFilterMode - - global __cuTexRefSetMipmapFilterMode - data["__cuTexRefSetMipmapFilterMode"] = __cuTexRefSetMipmapFilterMode - - global __cuTexRefSetMipmapLevelBias - data["__cuTexRefSetMipmapLevelBias"] = __cuTexRefSetMipmapLevelBias - - global __cuTexRefSetMipmapLevelClamp - data["__cuTexRefSetMipmapLevelClamp"] = __cuTexRefSetMipmapLevelClamp - - global __cuTexRefSetMaxAnisotropy - data["__cuTexRefSetMaxAnisotropy"] = __cuTexRefSetMaxAnisotropy - - global __cuTexRefSetBorderColor - data["__cuTexRefSetBorderColor"] = __cuTexRefSetBorderColor - - global __cuTexRefSetFlags - data["__cuTexRefSetFlags"] = __cuTexRefSetFlags - - global __cuTexRefGetAddress_v2 - data["__cuTexRefGetAddress_v2"] = __cuTexRefGetAddress_v2 - - global __cuTexRefGetArray - data["__cuTexRefGetArray"] = __cuTexRefGetArray - - global __cuTexRefGetMipmappedArray - data["__cuTexRefGetMipmappedArray"] = __cuTexRefGetMipmappedArray - - global __cuTexRefGetAddressMode - data["__cuTexRefGetAddressMode"] = __cuTexRefGetAddressMode - - global __cuTexRefGetFilterMode - data["__cuTexRefGetFilterMode"] = __cuTexRefGetFilterMode - - global __cuTexRefGetFormat - data["__cuTexRefGetFormat"] = __cuTexRefGetFormat - - global __cuTexRefGetMipmapFilterMode - data["__cuTexRefGetMipmapFilterMode"] = __cuTexRefGetMipmapFilterMode - - global __cuTexRefGetMipmapLevelBias - data["__cuTexRefGetMipmapLevelBias"] = __cuTexRefGetMipmapLevelBias - - global __cuTexRefGetMipmapLevelClamp - data["__cuTexRefGetMipmapLevelClamp"] = __cuTexRefGetMipmapLevelClamp - - global __cuTexRefGetMaxAnisotropy - data["__cuTexRefGetMaxAnisotropy"] = __cuTexRefGetMaxAnisotropy - - global __cuTexRefGetBorderColor - data["__cuTexRefGetBorderColor"] = __cuTexRefGetBorderColor - - global __cuTexRefGetFlags - data["__cuTexRefGetFlags"] = __cuTexRefGetFlags - - global __cuTexRefCreate - data["__cuTexRefCreate"] = __cuTexRefCreate - - global __cuTexRefDestroy - data["__cuTexRefDestroy"] = __cuTexRefDestroy - - global __cuSurfRefSetArray - data["__cuSurfRefSetArray"] = __cuSurfRefSetArray - - global __cuSurfRefGetArray - data["__cuSurfRefGetArray"] = __cuSurfRefGetArray - - global __cuTexObjectCreate - data["__cuTexObjectCreate"] = __cuTexObjectCreate - - global __cuTexObjectDestroy - data["__cuTexObjectDestroy"] = __cuTexObjectDestroy - - global __cuTexObjectGetResourceDesc - data["__cuTexObjectGetResourceDesc"] = __cuTexObjectGetResourceDesc - - global __cuTexObjectGetTextureDesc - data["__cuTexObjectGetTextureDesc"] = __cuTexObjectGetTextureDesc - - global __cuTexObjectGetResourceViewDesc - data["__cuTexObjectGetResourceViewDesc"] = __cuTexObjectGetResourceViewDesc - - global __cuSurfObjectCreate - data["__cuSurfObjectCreate"] = __cuSurfObjectCreate - - global __cuSurfObjectDestroy - data["__cuSurfObjectDestroy"] = __cuSurfObjectDestroy - - global __cuSurfObjectGetResourceDesc - data["__cuSurfObjectGetResourceDesc"] = __cuSurfObjectGetResourceDesc - - global __cuTensorMapEncodeTiled - data["__cuTensorMapEncodeTiled"] = __cuTensorMapEncodeTiled - - global __cuTensorMapEncodeIm2col - data["__cuTensorMapEncodeIm2col"] = __cuTensorMapEncodeIm2col - - global __cuTensorMapEncodeIm2colWide - data["__cuTensorMapEncodeIm2colWide"] = __cuTensorMapEncodeIm2colWide - - global __cuTensorMapReplaceAddress - data["__cuTensorMapReplaceAddress"] = __cuTensorMapReplaceAddress - - global __cuDeviceCanAccessPeer - data["__cuDeviceCanAccessPeer"] = __cuDeviceCanAccessPeer - - global __cuCtxEnablePeerAccess - data["__cuCtxEnablePeerAccess"] = __cuCtxEnablePeerAccess - - global __cuCtxDisablePeerAccess - data["__cuCtxDisablePeerAccess"] = __cuCtxDisablePeerAccess - - global __cuDeviceGetP2PAttribute - data["__cuDeviceGetP2PAttribute"] = __cuDeviceGetP2PAttribute - - global __cuGraphicsUnregisterResource - data["__cuGraphicsUnregisterResource"] = __cuGraphicsUnregisterResource - - global __cuGraphicsSubResourceGetMappedArray - data["__cuGraphicsSubResourceGetMappedArray"] = __cuGraphicsSubResourceGetMappedArray - - global __cuGraphicsResourceGetMappedMipmappedArray - data["__cuGraphicsResourceGetMappedMipmappedArray"] = __cuGraphicsResourceGetMappedMipmappedArray - - global __cuGraphicsResourceGetMappedPointer_v2 - data["__cuGraphicsResourceGetMappedPointer_v2"] = __cuGraphicsResourceGetMappedPointer_v2 - - global __cuGraphicsResourceSetMapFlags_v2 - data["__cuGraphicsResourceSetMapFlags_v2"] = __cuGraphicsResourceSetMapFlags_v2 - - global __cuGraphicsMapResources - data["__cuGraphicsMapResources"] = __cuGraphicsMapResources - - global __cuGraphicsUnmapResources - data["__cuGraphicsUnmapResources"] = __cuGraphicsUnmapResources - - global __cuGetProcAddress_v2 - data["__cuGetProcAddress_v2"] = __cuGetProcAddress_v2 - - global __cuCoredumpGetAttribute - data["__cuCoredumpGetAttribute"] = __cuCoredumpGetAttribute - - global __cuCoredumpGetAttributeGlobal - data["__cuCoredumpGetAttributeGlobal"] = __cuCoredumpGetAttributeGlobal - - global __cuCoredumpSetAttribute - data["__cuCoredumpSetAttribute"] = __cuCoredumpSetAttribute - - global __cuCoredumpSetAttributeGlobal - data["__cuCoredumpSetAttributeGlobal"] = __cuCoredumpSetAttributeGlobal - - global __cuGetExportTable - data["__cuGetExportTable"] = __cuGetExportTable - - global __cuGreenCtxCreate - data["__cuGreenCtxCreate"] = __cuGreenCtxCreate - - global __cuGreenCtxDestroy - data["__cuGreenCtxDestroy"] = __cuGreenCtxDestroy - - global __cuCtxFromGreenCtx - data["__cuCtxFromGreenCtx"] = __cuCtxFromGreenCtx - - global __cuDeviceGetDevResource - data["__cuDeviceGetDevResource"] = __cuDeviceGetDevResource - - global __cuCtxGetDevResource - data["__cuCtxGetDevResource"] = __cuCtxGetDevResource - - global __cuGreenCtxGetDevResource - data["__cuGreenCtxGetDevResource"] = __cuGreenCtxGetDevResource - - global __cuDevSmResourceSplitByCount - data["__cuDevSmResourceSplitByCount"] = __cuDevSmResourceSplitByCount - - global __cuDevResourceGenerateDesc - data["__cuDevResourceGenerateDesc"] = __cuDevResourceGenerateDesc - - global __cuGreenCtxRecordEvent - data["__cuGreenCtxRecordEvent"] = __cuGreenCtxRecordEvent - - global __cuGreenCtxWaitEvent - data["__cuGreenCtxWaitEvent"] = __cuGreenCtxWaitEvent - - global __cuStreamGetGreenCtx - data["__cuStreamGetGreenCtx"] = __cuStreamGetGreenCtx - - global __cuGreenCtxStreamCreate - data["__cuGreenCtxStreamCreate"] = __cuGreenCtxStreamCreate - - global __cuLogsRegisterCallback - data["__cuLogsRegisterCallback"] = __cuLogsRegisterCallback - - global __cuLogsUnregisterCallback - data["__cuLogsUnregisterCallback"] = __cuLogsUnregisterCallback - - global __cuLogsCurrent - data["__cuLogsCurrent"] = __cuLogsCurrent - - global __cuLogsDumpToFile - data["__cuLogsDumpToFile"] = __cuLogsDumpToFile - - global __cuLogsDumpToMemory - data["__cuLogsDumpToMemory"] = __cuLogsDumpToMemory - - global __cuCheckpointProcessGetRestoreThreadId - data["__cuCheckpointProcessGetRestoreThreadId"] = __cuCheckpointProcessGetRestoreThreadId - - global __cuCheckpointProcessGetState - data["__cuCheckpointProcessGetState"] = __cuCheckpointProcessGetState - - global __cuCheckpointProcessLock - data["__cuCheckpointProcessLock"] = __cuCheckpointProcessLock - - global __cuCheckpointProcessCheckpoint - data["__cuCheckpointProcessCheckpoint"] = __cuCheckpointProcessCheckpoint - - global __cuCheckpointProcessRestore - data["__cuCheckpointProcessRestore"] = __cuCheckpointProcessRestore - - global __cuCheckpointProcessUnlock - data["__cuCheckpointProcessUnlock"] = __cuCheckpointProcessUnlock - - global __cuGraphicsEGLRegisterImage - data["__cuGraphicsEGLRegisterImage"] = __cuGraphicsEGLRegisterImage - - global __cuEGLStreamConsumerConnect - data["__cuEGLStreamConsumerConnect"] = __cuEGLStreamConsumerConnect - - global __cuEGLStreamConsumerConnectWithFlags - data["__cuEGLStreamConsumerConnectWithFlags"] = __cuEGLStreamConsumerConnectWithFlags - - global __cuEGLStreamConsumerDisconnect - data["__cuEGLStreamConsumerDisconnect"] = __cuEGLStreamConsumerDisconnect - - global __cuEGLStreamConsumerAcquireFrame - data["__cuEGLStreamConsumerAcquireFrame"] = __cuEGLStreamConsumerAcquireFrame - - global __cuEGLStreamConsumerReleaseFrame - data["__cuEGLStreamConsumerReleaseFrame"] = __cuEGLStreamConsumerReleaseFrame - - global __cuEGLStreamProducerConnect - data["__cuEGLStreamProducerConnect"] = __cuEGLStreamProducerConnect - - global __cuEGLStreamProducerDisconnect - data["__cuEGLStreamProducerDisconnect"] = __cuEGLStreamProducerDisconnect - - global __cuEGLStreamProducerPresentFrame - data["__cuEGLStreamProducerPresentFrame"] = __cuEGLStreamProducerPresentFrame - - global __cuEGLStreamProducerReturnFrame - data["__cuEGLStreamProducerReturnFrame"] = __cuEGLStreamProducerReturnFrame - - global __cuGraphicsResourceGetMappedEglFrame - data["__cuGraphicsResourceGetMappedEglFrame"] = __cuGraphicsResourceGetMappedEglFrame - - global __cuEventCreateFromEGLSync - data["__cuEventCreateFromEGLSync"] = __cuEventCreateFromEGLSync - - global __cuGraphicsGLRegisterBuffer - data["__cuGraphicsGLRegisterBuffer"] = __cuGraphicsGLRegisterBuffer - - global __cuGraphicsGLRegisterImage - data["__cuGraphicsGLRegisterImage"] = __cuGraphicsGLRegisterImage - - global __cuGLGetDevices_v2 - data["__cuGLGetDevices_v2"] = __cuGLGetDevices_v2 - - global __cuGLCtxCreate_v2 - data["__cuGLCtxCreate_v2"] = __cuGLCtxCreate_v2 - - global __cuGLInit - data["__cuGLInit"] = __cuGLInit - - global __cuGLRegisterBufferObject - data["__cuGLRegisterBufferObject"] = __cuGLRegisterBufferObject - - global __cuGLMapBufferObject_v2 - data["__cuGLMapBufferObject_v2"] = __cuGLMapBufferObject_v2 - - global __cuGLUnmapBufferObject - data["__cuGLUnmapBufferObject"] = __cuGLUnmapBufferObject - - global __cuGLUnregisterBufferObject - data["__cuGLUnregisterBufferObject"] = __cuGLUnregisterBufferObject - - global __cuGLSetBufferObjectMapFlags - data["__cuGLSetBufferObjectMapFlags"] = __cuGLSetBufferObjectMapFlags - - global __cuGLMapBufferObjectAsync_v2 - data["__cuGLMapBufferObjectAsync_v2"] = __cuGLMapBufferObjectAsync_v2 - - global __cuGLUnmapBufferObjectAsync - data["__cuGLUnmapBufferObjectAsync"] = __cuGLUnmapBufferObjectAsync - - global __cuProfilerInitialize - data["__cuProfilerInitialize"] = __cuProfilerInitialize - - global __cuProfilerStart - data["__cuProfilerStart"] = __cuProfilerStart - - global __cuProfilerStop - data["__cuProfilerStop"] = __cuProfilerStop - - global __cuVDPAUGetDevice - data["__cuVDPAUGetDevice"] = __cuVDPAUGetDevice - - global __cuVDPAUCtxCreate_v2 - data["__cuVDPAUCtxCreate_v2"] = __cuVDPAUCtxCreate_v2 - - global __cuGraphicsVDPAURegisterVideoSurface - data["__cuGraphicsVDPAURegisterVideoSurface"] = __cuGraphicsVDPAURegisterVideoSurface - - global __cuGraphicsVDPAURegisterOutputSurface - data["__cuGraphicsVDPAURegisterOutputSurface"] = __cuGraphicsVDPAURegisterOutputSurface - - global __cuDeviceGetHostAtomicCapabilities - data["__cuDeviceGetHostAtomicCapabilities"] = __cuDeviceGetHostAtomicCapabilities - - global __cuCtxGetDevice_v2 - data["__cuCtxGetDevice_v2"] = __cuCtxGetDevice_v2 - - global __cuCtxSynchronize_v2 - data["__cuCtxSynchronize_v2"] = __cuCtxSynchronize_v2 - - global __cuMemcpyBatchAsync_v2 - data["__cuMemcpyBatchAsync_v2"] = __cuMemcpyBatchAsync_v2 - - global __cuMemcpy3DBatchAsync_v2 - data["__cuMemcpy3DBatchAsync_v2"] = __cuMemcpy3DBatchAsync_v2 - - global __cuMemGetDefaultMemPool - data["__cuMemGetDefaultMemPool"] = __cuMemGetDefaultMemPool - - global __cuMemGetMemPool - data["__cuMemGetMemPool"] = __cuMemGetMemPool - - global __cuMemSetMemPool - data["__cuMemSetMemPool"] = __cuMemSetMemPool - - global __cuMemPrefetchBatchAsync - data["__cuMemPrefetchBatchAsync"] = __cuMemPrefetchBatchAsync - - global __cuMemDiscardBatchAsync - data["__cuMemDiscardBatchAsync"] = __cuMemDiscardBatchAsync - - global __cuMemDiscardAndPrefetchBatchAsync - data["__cuMemDiscardAndPrefetchBatchAsync"] = __cuMemDiscardAndPrefetchBatchAsync - - global __cuDeviceGetP2PAtomicCapabilities - data["__cuDeviceGetP2PAtomicCapabilities"] = __cuDeviceGetP2PAtomicCapabilities - - global __cuGreenCtxGetId - data["__cuGreenCtxGetId"] = __cuGreenCtxGetId - - global __cuMulticastBindMem_v2 - data["__cuMulticastBindMem_v2"] = __cuMulticastBindMem_v2 - - global __cuMulticastBindAddr_v2 - data["__cuMulticastBindAddr_v2"] = __cuMulticastBindAddr_v2 - - global __cuGraphNodeGetContainingGraph - data["__cuGraphNodeGetContainingGraph"] = __cuGraphNodeGetContainingGraph - - global __cuGraphNodeGetLocalId - data["__cuGraphNodeGetLocalId"] = __cuGraphNodeGetLocalId - - global __cuGraphNodeGetToolsId - data["__cuGraphNodeGetToolsId"] = __cuGraphNodeGetToolsId - - global __cuGraphGetId - data["__cuGraphGetId"] = __cuGraphGetId - - global __cuGraphExecGetId - data["__cuGraphExecGetId"] = __cuGraphExecGetId - - global __cuDevSmResourceSplit - data["__cuDevSmResourceSplit"] = __cuDevSmResourceSplit - - global __cuStreamGetDevResource - data["__cuStreamGetDevResource"] = __cuStreamGetDevResource - - global __cuKernelGetParamCount - data["__cuKernelGetParamCount"] = __cuKernelGetParamCount - - global __cuMemcpyWithAttributesAsync - data["__cuMemcpyWithAttributesAsync"] = __cuMemcpyWithAttributesAsync - - global __cuMemcpy3DWithAttributesAsync - data["__cuMemcpy3DWithAttributesAsync"] = __cuMemcpy3DWithAttributesAsync - - global __cuStreamBeginCaptureToCig - data["__cuStreamBeginCaptureToCig"] = __cuStreamBeginCaptureToCig - - global __cuStreamEndCaptureToCig - data["__cuStreamEndCaptureToCig"] = __cuStreamEndCaptureToCig - - global __cuFuncGetParamCount - data["__cuFuncGetParamCount"] = __cuFuncGetParamCount - - global __cuLaunchHostFunc_v2 - data["__cuLaunchHostFunc_v2"] = __cuLaunchHostFunc_v2 - - global __cuGraphNodeGetParams - data["__cuGraphNodeGetParams"] = __cuGraphNodeGetParams - - global __cuCoredumpRegisterStartCallback - data["__cuCoredumpRegisterStartCallback"] = __cuCoredumpRegisterStartCallback - - global __cuCoredumpRegisterCompleteCallback - data["__cuCoredumpRegisterCompleteCallback"] = __cuCoredumpRegisterCompleteCallback - - global __cuCoredumpDeregisterStartCallback - data["__cuCoredumpDeregisterStartCallback"] = __cuCoredumpDeregisterStartCallback - - global __cuCoredumpDeregisterCompleteCallback - data["__cuCoredumpDeregisterCompleteCallback"] = __cuCoredumpDeregisterCompleteCallback - - global __cuLogicalEndpointIdReserve - data["__cuLogicalEndpointIdReserve"] = __cuLogicalEndpointIdReserve - - global __cuLogicalEndpointIdRelease - data["__cuLogicalEndpointIdRelease"] = __cuLogicalEndpointIdRelease - - global __cuLogicalEndpointCreate - data["__cuLogicalEndpointCreate"] = __cuLogicalEndpointCreate - - global __cuLogicalEndpointAddDevice - data["__cuLogicalEndpointAddDevice"] = __cuLogicalEndpointAddDevice - - global __cuLogicalEndpointDestroy - data["__cuLogicalEndpointDestroy"] = __cuLogicalEndpointDestroy - - global __cuLogicalEndpointBindAddr - data["__cuLogicalEndpointBindAddr"] = __cuLogicalEndpointBindAddr - - global __cuLogicalEndpointBindMem - data["__cuLogicalEndpointBindMem"] = __cuLogicalEndpointBindMem - - global __cuLogicalEndpointUnbind - data["__cuLogicalEndpointUnbind"] = __cuLogicalEndpointUnbind - - global __cuLogicalEndpointExport - data["__cuLogicalEndpointExport"] = __cuLogicalEndpointExport - - global __cuLogicalEndpointImport - data["__cuLogicalEndpointImport"] = __cuLogicalEndpointImport - - global __cuLogicalEndpointGetLimits - data["__cuLogicalEndpointGetLimits"] = __cuLogicalEndpointGetLimits - - global __cuLogicalEndpointQuery - data["__cuLogicalEndpointQuery"] = __cuLogicalEndpointQuery - - global __cuStreamBeginRecaptureToGraph - data["__cuStreamBeginRecaptureToGraph"] = __cuStreamBeginRecaptureToGraph - - global __cuDeviceGetFabricClusterUuid - data["__cuDeviceGetFabricClusterUuid"] = __cuDeviceGetFabricClusterUuid - - global __cuDeviceGetCliqueCount - data["__cuDeviceGetCliqueCount"] = __cuDeviceGetCliqueCount - - global __cuDeviceGetCliqueInfo - data["__cuDeviceGetCliqueInfo"] = __cuDeviceGetCliqueInfo - - global __cuMemGetLocationInfo - data["__cuMemGetLocationInfo"] = __cuMemGetLocationInfo - - global __cuGraphAddNode_v3 - data["__cuGraphAddNode_v3"] = __cuGraphAddNode_v3 - - global __cuGraphNodeSetParams_v2 - data["__cuGraphNodeSetParams_v2"] = __cuGraphNodeSetParams_v2 - - global __cuCheckpointOperationComplete - data["__cuCheckpointOperationComplete"] = __cuCheckpointOperationComplete - - global __cuFabricCpyBatchAsync - data["__cuFabricCpyBatchAsync"] = __cuFabricCpyBatchAsync - - global __cuTensorMapSetAllocationClass - data["__cuTensorMapSetAllocationClass"] = __cuTensorMapSetAllocationClass + cdef Py_ssize_t i + for i in range(_cyb_driver_n_functions): + data['__' + _cyb_driver_names[i].decode()] = _cyb_driver_slots[i][0] _cyb_func_ptrs = data return data diff --git a/cuda_bindings_13/cuda/bindings/_internal/driver_windows.pyx b/cuda_bindings_13/cuda/bindings/_internal/driver_windows.pyx index 6b32bdba99a1..3f777db036cc 100644 --- a/cuda_bindings_13/cuda/bindings/_internal/driver_windows.pyx +++ b/cuda_bindings_13/cuda/bindings/_internal/driver_windows.pyx @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated across versions from 12.9.0 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=265db3de415ec26f7b9cfd9961c846938d258ff2c840d500316a3fd24266d6ac +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=0af7e354161a1b02160f05a035142fb5042cba981abc1c661dedc9706e1523d8 # <<<< PREAMBLE CONTENT >>>> @@ -595,6 +595,536 @@ cdef void* __cuCheckpointOperationComplete = NULL cdef void* __cuFabricCpyBatchAsync = NULL cdef void* __cuTensorMapSetAllocationClass = NULL +cdef enum: _cyb_driver_n_functions = 526 +cdef void** _cyb_driver_slots[_cyb_driver_n_functions] +cdef const char* _cyb_driver_names[_cyb_driver_n_functions] +_cyb_driver_slots[0] = &__cuGetErrorString; _cyb_driver_names[0] = b'cuGetErrorString' +_cyb_driver_slots[1] = &__cuGetErrorName; _cyb_driver_names[1] = b'cuGetErrorName' +_cyb_driver_slots[2] = &__cuInit; _cyb_driver_names[2] = b'cuInit' +_cyb_driver_slots[3] = &__cuDriverGetVersion; _cyb_driver_names[3] = b'cuDriverGetVersion' +_cyb_driver_slots[4] = &__cuDeviceGet; _cyb_driver_names[4] = b'cuDeviceGet' +_cyb_driver_slots[5] = &__cuDeviceGetCount; _cyb_driver_names[5] = b'cuDeviceGetCount' +_cyb_driver_slots[6] = &__cuDeviceGetName; _cyb_driver_names[6] = b'cuDeviceGetName' +_cyb_driver_slots[7] = &__cuDeviceGetUuid_v2; _cyb_driver_names[7] = b'cuDeviceGetUuid_v2' +_cyb_driver_slots[8] = &__cuDeviceGetLuid; _cyb_driver_names[8] = b'cuDeviceGetLuid' +_cyb_driver_slots[9] = &__cuDeviceTotalMem_v2; _cyb_driver_names[9] = b'cuDeviceTotalMem_v2' +_cyb_driver_slots[10] = &__cuDeviceGetTexture1DLinearMaxWidth; _cyb_driver_names[10] = b'cuDeviceGetTexture1DLinearMaxWidth' +_cyb_driver_slots[11] = &__cuDeviceGetAttribute; _cyb_driver_names[11] = b'cuDeviceGetAttribute' +_cyb_driver_slots[12] = &__cuDeviceGetNvSciSyncAttributes; _cyb_driver_names[12] = b'cuDeviceGetNvSciSyncAttributes' +_cyb_driver_slots[13] = &__cuDeviceSetMemPool; _cyb_driver_names[13] = b'cuDeviceSetMemPool' +_cyb_driver_slots[14] = &__cuDeviceGetMemPool; _cyb_driver_names[14] = b'cuDeviceGetMemPool' +_cyb_driver_slots[15] = &__cuDeviceGetDefaultMemPool; _cyb_driver_names[15] = b'cuDeviceGetDefaultMemPool' +_cyb_driver_slots[16] = &__cuDeviceGetExecAffinitySupport; _cyb_driver_names[16] = b'cuDeviceGetExecAffinitySupport' +_cyb_driver_slots[17] = &__cuFlushGPUDirectRDMAWrites; _cyb_driver_names[17] = b'cuFlushGPUDirectRDMAWrites' +_cyb_driver_slots[18] = &__cuDeviceGetProperties; _cyb_driver_names[18] = b'cuDeviceGetProperties' +_cyb_driver_slots[19] = &__cuDeviceComputeCapability; _cyb_driver_names[19] = b'cuDeviceComputeCapability' +_cyb_driver_slots[20] = &__cuDevicePrimaryCtxRetain; _cyb_driver_names[20] = b'cuDevicePrimaryCtxRetain' +_cyb_driver_slots[21] = &__cuDevicePrimaryCtxRelease_v2; _cyb_driver_names[21] = b'cuDevicePrimaryCtxRelease_v2' +_cyb_driver_slots[22] = &__cuDevicePrimaryCtxSetFlags_v2; _cyb_driver_names[22] = b'cuDevicePrimaryCtxSetFlags_v2' +_cyb_driver_slots[23] = &__cuDevicePrimaryCtxGetState; _cyb_driver_names[23] = b'cuDevicePrimaryCtxGetState' +_cyb_driver_slots[24] = &__cuDevicePrimaryCtxReset_v2; _cyb_driver_names[24] = b'cuDevicePrimaryCtxReset_v2' +_cyb_driver_slots[25] = &__cuCtxCreate_v2; _cyb_driver_names[25] = b'cuCtxCreate_v2' +_cyb_driver_slots[26] = &__cuCtxCreate_v3; _cyb_driver_names[26] = b'cuCtxCreate_v3' +_cyb_driver_slots[27] = &__cuCtxCreate_v4; _cyb_driver_names[27] = b'cuCtxCreate_v4' +_cyb_driver_slots[28] = &__cuCtxDestroy_v2; _cyb_driver_names[28] = b'cuCtxDestroy_v2' +_cyb_driver_slots[29] = &__cuCtxPushCurrent_v2; _cyb_driver_names[29] = b'cuCtxPushCurrent_v2' +_cyb_driver_slots[30] = &__cuCtxPopCurrent_v2; _cyb_driver_names[30] = b'cuCtxPopCurrent_v2' +_cyb_driver_slots[31] = &__cuCtxSetCurrent; _cyb_driver_names[31] = b'cuCtxSetCurrent' +_cyb_driver_slots[32] = &__cuCtxGetCurrent; _cyb_driver_names[32] = b'cuCtxGetCurrent' +_cyb_driver_slots[33] = &__cuCtxGetDevice; _cyb_driver_names[33] = b'cuCtxGetDevice' +_cyb_driver_slots[34] = &__cuCtxGetFlags; _cyb_driver_names[34] = b'cuCtxGetFlags' +_cyb_driver_slots[35] = &__cuCtxSetFlags; _cyb_driver_names[35] = b'cuCtxSetFlags' +_cyb_driver_slots[36] = &__cuCtxGetId; _cyb_driver_names[36] = b'cuCtxGetId' +_cyb_driver_slots[37] = &__cuCtxSynchronize; _cyb_driver_names[37] = b'cuCtxSynchronize' +_cyb_driver_slots[38] = &__cuCtxSetLimit; _cyb_driver_names[38] = b'cuCtxSetLimit' +_cyb_driver_slots[39] = &__cuCtxGetLimit; _cyb_driver_names[39] = b'cuCtxGetLimit' +_cyb_driver_slots[40] = &__cuCtxGetCacheConfig; _cyb_driver_names[40] = b'cuCtxGetCacheConfig' +_cyb_driver_slots[41] = &__cuCtxSetCacheConfig; _cyb_driver_names[41] = b'cuCtxSetCacheConfig' +_cyb_driver_slots[42] = &__cuCtxGetApiVersion; _cyb_driver_names[42] = b'cuCtxGetApiVersion' +_cyb_driver_slots[43] = &__cuCtxGetStreamPriorityRange; _cyb_driver_names[43] = b'cuCtxGetStreamPriorityRange' +_cyb_driver_slots[44] = &__cuCtxResetPersistingL2Cache; _cyb_driver_names[44] = b'cuCtxResetPersistingL2Cache' +_cyb_driver_slots[45] = &__cuCtxGetExecAffinity; _cyb_driver_names[45] = b'cuCtxGetExecAffinity' +_cyb_driver_slots[46] = &__cuCtxRecordEvent; _cyb_driver_names[46] = b'cuCtxRecordEvent' +_cyb_driver_slots[47] = &__cuCtxWaitEvent; _cyb_driver_names[47] = b'cuCtxWaitEvent' +_cyb_driver_slots[48] = &__cuCtxAttach; _cyb_driver_names[48] = b'cuCtxAttach' +_cyb_driver_slots[49] = &__cuCtxDetach; _cyb_driver_names[49] = b'cuCtxDetach' +_cyb_driver_slots[50] = &__cuCtxGetSharedMemConfig; _cyb_driver_names[50] = b'cuCtxGetSharedMemConfig' +_cyb_driver_slots[51] = &__cuCtxSetSharedMemConfig; _cyb_driver_names[51] = b'cuCtxSetSharedMemConfig' +_cyb_driver_slots[52] = &__cuModuleLoad; _cyb_driver_names[52] = b'cuModuleLoad' +_cyb_driver_slots[53] = &__cuModuleLoadData; _cyb_driver_names[53] = b'cuModuleLoadData' +_cyb_driver_slots[54] = &__cuModuleLoadDataEx; _cyb_driver_names[54] = b'cuModuleLoadDataEx' +_cyb_driver_slots[55] = &__cuModuleLoadFatBinary; _cyb_driver_names[55] = b'cuModuleLoadFatBinary' +_cyb_driver_slots[56] = &__cuModuleUnload; _cyb_driver_names[56] = b'cuModuleUnload' +_cyb_driver_slots[57] = &__cuModuleGetLoadingMode; _cyb_driver_names[57] = b'cuModuleGetLoadingMode' +_cyb_driver_slots[58] = &__cuModuleGetFunction; _cyb_driver_names[58] = b'cuModuleGetFunction' +_cyb_driver_slots[59] = &__cuModuleGetFunctionCount; _cyb_driver_names[59] = b'cuModuleGetFunctionCount' +_cyb_driver_slots[60] = &__cuModuleEnumerateFunctions; _cyb_driver_names[60] = b'cuModuleEnumerateFunctions' +_cyb_driver_slots[61] = &__cuModuleGetGlobal_v2; _cyb_driver_names[61] = b'cuModuleGetGlobal_v2' +_cyb_driver_slots[62] = &__cuLinkCreate_v2; _cyb_driver_names[62] = b'cuLinkCreate_v2' +_cyb_driver_slots[63] = &__cuLinkAddData_v2; _cyb_driver_names[63] = b'cuLinkAddData_v2' +_cyb_driver_slots[64] = &__cuLinkAddFile_v2; _cyb_driver_names[64] = b'cuLinkAddFile_v2' +_cyb_driver_slots[65] = &__cuLinkComplete; _cyb_driver_names[65] = b'cuLinkComplete' +_cyb_driver_slots[66] = &__cuLinkDestroy; _cyb_driver_names[66] = b'cuLinkDestroy' +_cyb_driver_slots[67] = &__cuModuleGetTexRef; _cyb_driver_names[67] = b'cuModuleGetTexRef' +_cyb_driver_slots[68] = &__cuModuleGetSurfRef; _cyb_driver_names[68] = b'cuModuleGetSurfRef' +_cyb_driver_slots[69] = &__cuLibraryLoadData; _cyb_driver_names[69] = b'cuLibraryLoadData' +_cyb_driver_slots[70] = &__cuLibraryLoadFromFile; _cyb_driver_names[70] = b'cuLibraryLoadFromFile' +_cyb_driver_slots[71] = &__cuLibraryUnload; _cyb_driver_names[71] = b'cuLibraryUnload' +_cyb_driver_slots[72] = &__cuLibraryGetKernel; _cyb_driver_names[72] = b'cuLibraryGetKernel' +_cyb_driver_slots[73] = &__cuLibraryGetKernelCount; _cyb_driver_names[73] = b'cuLibraryGetKernelCount' +_cyb_driver_slots[74] = &__cuLibraryEnumerateKernels; _cyb_driver_names[74] = b'cuLibraryEnumerateKernels' +_cyb_driver_slots[75] = &__cuLibraryGetModule; _cyb_driver_names[75] = b'cuLibraryGetModule' +_cyb_driver_slots[76] = &__cuKernelGetFunction; _cyb_driver_names[76] = b'cuKernelGetFunction' +_cyb_driver_slots[77] = &__cuKernelGetLibrary; _cyb_driver_names[77] = b'cuKernelGetLibrary' +_cyb_driver_slots[78] = &__cuLibraryGetGlobal; _cyb_driver_names[78] = b'cuLibraryGetGlobal' +_cyb_driver_slots[79] = &__cuLibraryGetManaged; _cyb_driver_names[79] = b'cuLibraryGetManaged' +_cyb_driver_slots[80] = &__cuLibraryGetUnifiedFunction; _cyb_driver_names[80] = b'cuLibraryGetUnifiedFunction' +_cyb_driver_slots[81] = &__cuKernelGetAttribute; _cyb_driver_names[81] = b'cuKernelGetAttribute' +_cyb_driver_slots[82] = &__cuKernelSetAttribute; _cyb_driver_names[82] = b'cuKernelSetAttribute' +_cyb_driver_slots[83] = &__cuKernelSetCacheConfig; _cyb_driver_names[83] = b'cuKernelSetCacheConfig' +_cyb_driver_slots[84] = &__cuKernelGetName; _cyb_driver_names[84] = b'cuKernelGetName' +_cyb_driver_slots[85] = &__cuKernelGetParamInfo; _cyb_driver_names[85] = b'cuKernelGetParamInfo' +_cyb_driver_slots[86] = &__cuMemGetInfo_v2; _cyb_driver_names[86] = b'cuMemGetInfo_v2' +_cyb_driver_slots[87] = &__cuMemAlloc_v2; _cyb_driver_names[87] = b'cuMemAlloc_v2' +_cyb_driver_slots[88] = &__cuMemAllocPitch_v2; _cyb_driver_names[88] = b'cuMemAllocPitch_v2' +_cyb_driver_slots[89] = &__cuMemFree_v2; _cyb_driver_names[89] = b'cuMemFree_v2' +_cyb_driver_slots[90] = &__cuMemGetAddressRange_v2; _cyb_driver_names[90] = b'cuMemGetAddressRange_v2' +_cyb_driver_slots[91] = &__cuMemAllocHost_v2; _cyb_driver_names[91] = b'cuMemAllocHost_v2' +_cyb_driver_slots[92] = &__cuMemFreeHost; _cyb_driver_names[92] = b'cuMemFreeHost' +_cyb_driver_slots[93] = &__cuMemHostAlloc; _cyb_driver_names[93] = b'cuMemHostAlloc' +_cyb_driver_slots[94] = &__cuMemHostGetDevicePointer_v2; _cyb_driver_names[94] = b'cuMemHostGetDevicePointer_v2' +_cyb_driver_slots[95] = &__cuMemHostGetFlags; _cyb_driver_names[95] = b'cuMemHostGetFlags' +_cyb_driver_slots[96] = &__cuMemAllocManaged; _cyb_driver_names[96] = b'cuMemAllocManaged' +_cyb_driver_slots[97] = &__cuDeviceRegisterAsyncNotification; _cyb_driver_names[97] = b'cuDeviceRegisterAsyncNotification' +_cyb_driver_slots[98] = &__cuDeviceUnregisterAsyncNotification; _cyb_driver_names[98] = b'cuDeviceUnregisterAsyncNotification' +_cyb_driver_slots[99] = &__cuDeviceGetByPCIBusId; _cyb_driver_names[99] = b'cuDeviceGetByPCIBusId' +_cyb_driver_slots[100] = &__cuDeviceGetPCIBusId; _cyb_driver_names[100] = b'cuDeviceGetPCIBusId' +_cyb_driver_slots[101] = &__cuIpcGetEventHandle; _cyb_driver_names[101] = b'cuIpcGetEventHandle' +_cyb_driver_slots[102] = &__cuIpcOpenEventHandle; _cyb_driver_names[102] = b'cuIpcOpenEventHandle' +_cyb_driver_slots[103] = &__cuIpcGetMemHandle; _cyb_driver_names[103] = b'cuIpcGetMemHandle' +_cyb_driver_slots[104] = &__cuIpcOpenMemHandle_v2; _cyb_driver_names[104] = b'cuIpcOpenMemHandle_v2' +_cyb_driver_slots[105] = &__cuIpcCloseMemHandle; _cyb_driver_names[105] = b'cuIpcCloseMemHandle' +_cyb_driver_slots[106] = &__cuMemHostRegister_v2; _cyb_driver_names[106] = b'cuMemHostRegister_v2' +_cyb_driver_slots[107] = &__cuMemHostUnregister; _cyb_driver_names[107] = b'cuMemHostUnregister' +_cyb_driver_slots[108] = &__cuMemcpy; _cyb_driver_names[108] = b'cuMemcpy' +_cyb_driver_slots[109] = &__cuMemcpyPeer; _cyb_driver_names[109] = b'cuMemcpyPeer' +_cyb_driver_slots[110] = &__cuMemcpyHtoD_v2; _cyb_driver_names[110] = b'cuMemcpyHtoD_v2' +_cyb_driver_slots[111] = &__cuMemcpyDtoH_v2; _cyb_driver_names[111] = b'cuMemcpyDtoH_v2' +_cyb_driver_slots[112] = &__cuMemcpyDtoD_v2; _cyb_driver_names[112] = b'cuMemcpyDtoD_v2' +_cyb_driver_slots[113] = &__cuMemcpyDtoA_v2; _cyb_driver_names[113] = b'cuMemcpyDtoA_v2' +_cyb_driver_slots[114] = &__cuMemcpyAtoD_v2; _cyb_driver_names[114] = b'cuMemcpyAtoD_v2' +_cyb_driver_slots[115] = &__cuMemcpyHtoA_v2; _cyb_driver_names[115] = b'cuMemcpyHtoA_v2' +_cyb_driver_slots[116] = &__cuMemcpyAtoH_v2; _cyb_driver_names[116] = b'cuMemcpyAtoH_v2' +_cyb_driver_slots[117] = &__cuMemcpyAtoA_v2; _cyb_driver_names[117] = b'cuMemcpyAtoA_v2' +_cyb_driver_slots[118] = &__cuMemcpy2D_v2; _cyb_driver_names[118] = b'cuMemcpy2D_v2' +_cyb_driver_slots[119] = &__cuMemcpy2DUnaligned_v2; _cyb_driver_names[119] = b'cuMemcpy2DUnaligned_v2' +_cyb_driver_slots[120] = &__cuMemcpy3D_v2; _cyb_driver_names[120] = b'cuMemcpy3D_v2' +_cyb_driver_slots[121] = &__cuMemcpy3DPeer; _cyb_driver_names[121] = b'cuMemcpy3DPeer' +_cyb_driver_slots[122] = &__cuMemcpyAsync; _cyb_driver_names[122] = b'cuMemcpyAsync' +_cyb_driver_slots[123] = &__cuMemcpyPeerAsync; _cyb_driver_names[123] = b'cuMemcpyPeerAsync' +_cyb_driver_slots[124] = &__cuMemcpyHtoDAsync_v2; _cyb_driver_names[124] = b'cuMemcpyHtoDAsync_v2' +_cyb_driver_slots[125] = &__cuMemcpyDtoHAsync_v2; _cyb_driver_names[125] = b'cuMemcpyDtoHAsync_v2' +_cyb_driver_slots[126] = &__cuMemcpyDtoDAsync_v2; _cyb_driver_names[126] = b'cuMemcpyDtoDAsync_v2' +_cyb_driver_slots[127] = &__cuMemcpyHtoAAsync_v2; _cyb_driver_names[127] = b'cuMemcpyHtoAAsync_v2' +_cyb_driver_slots[128] = &__cuMemcpyAtoHAsync_v2; _cyb_driver_names[128] = b'cuMemcpyAtoHAsync_v2' +_cyb_driver_slots[129] = &__cuMemcpy2DAsync_v2; _cyb_driver_names[129] = b'cuMemcpy2DAsync_v2' +_cyb_driver_slots[130] = &__cuMemcpy3DAsync_v2; _cyb_driver_names[130] = b'cuMemcpy3DAsync_v2' +_cyb_driver_slots[131] = &__cuMemcpy3DPeerAsync; _cyb_driver_names[131] = b'cuMemcpy3DPeerAsync' +_cyb_driver_slots[132] = &__cuMemsetD8_v2; _cyb_driver_names[132] = b'cuMemsetD8_v2' +_cyb_driver_slots[133] = &__cuMemsetD16_v2; _cyb_driver_names[133] = b'cuMemsetD16_v2' +_cyb_driver_slots[134] = &__cuMemsetD32_v2; _cyb_driver_names[134] = b'cuMemsetD32_v2' +_cyb_driver_slots[135] = &__cuMemsetD2D8_v2; _cyb_driver_names[135] = b'cuMemsetD2D8_v2' +_cyb_driver_slots[136] = &__cuMemsetD2D16_v2; _cyb_driver_names[136] = b'cuMemsetD2D16_v2' +_cyb_driver_slots[137] = &__cuMemsetD2D32_v2; _cyb_driver_names[137] = b'cuMemsetD2D32_v2' +_cyb_driver_slots[138] = &__cuMemsetD8Async; _cyb_driver_names[138] = b'cuMemsetD8Async' +_cyb_driver_slots[139] = &__cuMemsetD16Async; _cyb_driver_names[139] = b'cuMemsetD16Async' +_cyb_driver_slots[140] = &__cuMemsetD32Async; _cyb_driver_names[140] = b'cuMemsetD32Async' +_cyb_driver_slots[141] = &__cuMemsetD2D8Async; _cyb_driver_names[141] = b'cuMemsetD2D8Async' +_cyb_driver_slots[142] = &__cuMemsetD2D16Async; _cyb_driver_names[142] = b'cuMemsetD2D16Async' +_cyb_driver_slots[143] = &__cuMemsetD2D32Async; _cyb_driver_names[143] = b'cuMemsetD2D32Async' +_cyb_driver_slots[144] = &__cuArrayCreate_v2; _cyb_driver_names[144] = b'cuArrayCreate_v2' +_cyb_driver_slots[145] = &__cuArrayGetDescriptor_v2; _cyb_driver_names[145] = b'cuArrayGetDescriptor_v2' +_cyb_driver_slots[146] = &__cuArrayGetSparseProperties; _cyb_driver_names[146] = b'cuArrayGetSparseProperties' +_cyb_driver_slots[147] = &__cuMipmappedArrayGetSparseProperties; _cyb_driver_names[147] = b'cuMipmappedArrayGetSparseProperties' +_cyb_driver_slots[148] = &__cuArrayGetMemoryRequirements; _cyb_driver_names[148] = b'cuArrayGetMemoryRequirements' +_cyb_driver_slots[149] = &__cuMipmappedArrayGetMemoryRequirements; _cyb_driver_names[149] = b'cuMipmappedArrayGetMemoryRequirements' +_cyb_driver_slots[150] = &__cuArrayGetPlane; _cyb_driver_names[150] = b'cuArrayGetPlane' +_cyb_driver_slots[151] = &__cuArrayDestroy; _cyb_driver_names[151] = b'cuArrayDestroy' +_cyb_driver_slots[152] = &__cuArray3DCreate_v2; _cyb_driver_names[152] = b'cuArray3DCreate_v2' +_cyb_driver_slots[153] = &__cuArray3DGetDescriptor_v2; _cyb_driver_names[153] = b'cuArray3DGetDescriptor_v2' +_cyb_driver_slots[154] = &__cuMipmappedArrayCreate; _cyb_driver_names[154] = b'cuMipmappedArrayCreate' +_cyb_driver_slots[155] = &__cuMipmappedArrayGetLevel; _cyb_driver_names[155] = b'cuMipmappedArrayGetLevel' +_cyb_driver_slots[156] = &__cuMipmappedArrayDestroy; _cyb_driver_names[156] = b'cuMipmappedArrayDestroy' +_cyb_driver_slots[157] = &__cuMemGetHandleForAddressRange; _cyb_driver_names[157] = b'cuMemGetHandleForAddressRange' +_cyb_driver_slots[158] = &__cuMemBatchDecompressAsync; _cyb_driver_names[158] = b'cuMemBatchDecompressAsync' +_cyb_driver_slots[159] = &__cuMemAddressReserve; _cyb_driver_names[159] = b'cuMemAddressReserve' +_cyb_driver_slots[160] = &__cuMemAddressFree; _cyb_driver_names[160] = b'cuMemAddressFree' +_cyb_driver_slots[161] = &__cuMemCreate; _cyb_driver_names[161] = b'cuMemCreate' +_cyb_driver_slots[162] = &__cuMemRelease; _cyb_driver_names[162] = b'cuMemRelease' +_cyb_driver_slots[163] = &__cuMemMap; _cyb_driver_names[163] = b'cuMemMap' +_cyb_driver_slots[164] = &__cuMemMapArrayAsync; _cyb_driver_names[164] = b'cuMemMapArrayAsync' +_cyb_driver_slots[165] = &__cuMemUnmap; _cyb_driver_names[165] = b'cuMemUnmap' +_cyb_driver_slots[166] = &__cuMemSetAccess; _cyb_driver_names[166] = b'cuMemSetAccess' +_cyb_driver_slots[167] = &__cuMemGetAccess; _cyb_driver_names[167] = b'cuMemGetAccess' +_cyb_driver_slots[168] = &__cuMemExportToShareableHandle; _cyb_driver_names[168] = b'cuMemExportToShareableHandle' +_cyb_driver_slots[169] = &__cuMemImportFromShareableHandle; _cyb_driver_names[169] = b'cuMemImportFromShareableHandle' +_cyb_driver_slots[170] = &__cuMemGetAllocationGranularity; _cyb_driver_names[170] = b'cuMemGetAllocationGranularity' +_cyb_driver_slots[171] = &__cuMemGetAllocationPropertiesFromHandle; _cyb_driver_names[171] = b'cuMemGetAllocationPropertiesFromHandle' +_cyb_driver_slots[172] = &__cuMemRetainAllocationHandle; _cyb_driver_names[172] = b'cuMemRetainAllocationHandle' +_cyb_driver_slots[173] = &__cuMemFreeAsync; _cyb_driver_names[173] = b'cuMemFreeAsync' +_cyb_driver_slots[174] = &__cuMemAllocAsync; _cyb_driver_names[174] = b'cuMemAllocAsync' +_cyb_driver_slots[175] = &__cuMemPoolTrimTo; _cyb_driver_names[175] = b'cuMemPoolTrimTo' +_cyb_driver_slots[176] = &__cuMemPoolSetAttribute; _cyb_driver_names[176] = b'cuMemPoolSetAttribute' +_cyb_driver_slots[177] = &__cuMemPoolGetAttribute; _cyb_driver_names[177] = b'cuMemPoolGetAttribute' +_cyb_driver_slots[178] = &__cuMemPoolSetAccess; _cyb_driver_names[178] = b'cuMemPoolSetAccess' +_cyb_driver_slots[179] = &__cuMemPoolGetAccess; _cyb_driver_names[179] = b'cuMemPoolGetAccess' +_cyb_driver_slots[180] = &__cuMemPoolCreate; _cyb_driver_names[180] = b'cuMemPoolCreate' +_cyb_driver_slots[181] = &__cuMemPoolDestroy; _cyb_driver_names[181] = b'cuMemPoolDestroy' +_cyb_driver_slots[182] = &__cuMemAllocFromPoolAsync; _cyb_driver_names[182] = b'cuMemAllocFromPoolAsync' +_cyb_driver_slots[183] = &__cuMemPoolExportToShareableHandle; _cyb_driver_names[183] = b'cuMemPoolExportToShareableHandle' +_cyb_driver_slots[184] = &__cuMemPoolImportFromShareableHandle; _cyb_driver_names[184] = b'cuMemPoolImportFromShareableHandle' +_cyb_driver_slots[185] = &__cuMemPoolExportPointer; _cyb_driver_names[185] = b'cuMemPoolExportPointer' +_cyb_driver_slots[186] = &__cuMemPoolImportPointer; _cyb_driver_names[186] = b'cuMemPoolImportPointer' +_cyb_driver_slots[187] = &__cuMulticastCreate; _cyb_driver_names[187] = b'cuMulticastCreate' +_cyb_driver_slots[188] = &__cuMulticastAddDevice; _cyb_driver_names[188] = b'cuMulticastAddDevice' +_cyb_driver_slots[189] = &__cuMulticastBindMem; _cyb_driver_names[189] = b'cuMulticastBindMem' +_cyb_driver_slots[190] = &__cuMulticastBindAddr; _cyb_driver_names[190] = b'cuMulticastBindAddr' +_cyb_driver_slots[191] = &__cuMulticastUnbind; _cyb_driver_names[191] = b'cuMulticastUnbind' +_cyb_driver_slots[192] = &__cuMulticastGetGranularity; _cyb_driver_names[192] = b'cuMulticastGetGranularity' +_cyb_driver_slots[193] = &__cuPointerGetAttribute; _cyb_driver_names[193] = b'cuPointerGetAttribute' +_cyb_driver_slots[194] = &__cuMemPrefetchAsync_v2; _cyb_driver_names[194] = b'cuMemPrefetchAsync_v2' +_cyb_driver_slots[195] = &__cuMemAdvise_v2; _cyb_driver_names[195] = b'cuMemAdvise_v2' +_cyb_driver_slots[196] = &__cuMemRangeGetAttribute; _cyb_driver_names[196] = b'cuMemRangeGetAttribute' +_cyb_driver_slots[197] = &__cuMemRangeGetAttributes; _cyb_driver_names[197] = b'cuMemRangeGetAttributes' +_cyb_driver_slots[198] = &__cuPointerSetAttribute; _cyb_driver_names[198] = b'cuPointerSetAttribute' +_cyb_driver_slots[199] = &__cuPointerGetAttributes; _cyb_driver_names[199] = b'cuPointerGetAttributes' +_cyb_driver_slots[200] = &__cuStreamCreate; _cyb_driver_names[200] = b'cuStreamCreate' +_cyb_driver_slots[201] = &__cuStreamCreateWithPriority; _cyb_driver_names[201] = b'cuStreamCreateWithPriority' +_cyb_driver_slots[202] = &__cuStreamGetPriority; _cyb_driver_names[202] = b'cuStreamGetPriority' +_cyb_driver_slots[203] = &__cuStreamGetDevice; _cyb_driver_names[203] = b'cuStreamGetDevice' +_cyb_driver_slots[204] = &__cuStreamGetFlags; _cyb_driver_names[204] = b'cuStreamGetFlags' +_cyb_driver_slots[205] = &__cuStreamGetId; _cyb_driver_names[205] = b'cuStreamGetId' +_cyb_driver_slots[206] = &__cuStreamGetCtx; _cyb_driver_names[206] = b'cuStreamGetCtx' +_cyb_driver_slots[207] = &__cuStreamGetCtx_v2; _cyb_driver_names[207] = b'cuStreamGetCtx_v2' +_cyb_driver_slots[208] = &__cuStreamWaitEvent; _cyb_driver_names[208] = b'cuStreamWaitEvent' +_cyb_driver_slots[209] = &__cuStreamAddCallback; _cyb_driver_names[209] = b'cuStreamAddCallback' +_cyb_driver_slots[210] = &__cuStreamBeginCapture_v2; _cyb_driver_names[210] = b'cuStreamBeginCapture_v2' +_cyb_driver_slots[211] = &__cuStreamBeginCaptureToGraph; _cyb_driver_names[211] = b'cuStreamBeginCaptureToGraph' +_cyb_driver_slots[212] = &__cuThreadExchangeStreamCaptureMode; _cyb_driver_names[212] = b'cuThreadExchangeStreamCaptureMode' +_cyb_driver_slots[213] = &__cuStreamEndCapture; _cyb_driver_names[213] = b'cuStreamEndCapture' +_cyb_driver_slots[214] = &__cuStreamIsCapturing; _cyb_driver_names[214] = b'cuStreamIsCapturing' +_cyb_driver_slots[215] = &__cuStreamGetCaptureInfo_v2; _cyb_driver_names[215] = b'cuStreamGetCaptureInfo_v2' +_cyb_driver_slots[216] = &__cuStreamGetCaptureInfo_v3; _cyb_driver_names[216] = b'cuStreamGetCaptureInfo_v3' +_cyb_driver_slots[217] = &__cuStreamUpdateCaptureDependencies_v2; _cyb_driver_names[217] = b'cuStreamUpdateCaptureDependencies_v2' +_cyb_driver_slots[218] = &__cuStreamAttachMemAsync; _cyb_driver_names[218] = b'cuStreamAttachMemAsync' +_cyb_driver_slots[219] = &__cuStreamQuery; _cyb_driver_names[219] = b'cuStreamQuery' +_cyb_driver_slots[220] = &__cuStreamSynchronize; _cyb_driver_names[220] = b'cuStreamSynchronize' +_cyb_driver_slots[221] = &__cuStreamDestroy_v2; _cyb_driver_names[221] = b'cuStreamDestroy_v2' +_cyb_driver_slots[222] = &__cuStreamCopyAttributes; _cyb_driver_names[222] = b'cuStreamCopyAttributes' +_cyb_driver_slots[223] = &__cuStreamGetAttribute; _cyb_driver_names[223] = b'cuStreamGetAttribute' +_cyb_driver_slots[224] = &__cuStreamSetAttribute; _cyb_driver_names[224] = b'cuStreamSetAttribute' +_cyb_driver_slots[225] = &__cuEventCreate; _cyb_driver_names[225] = b'cuEventCreate' +_cyb_driver_slots[226] = &__cuEventRecord; _cyb_driver_names[226] = b'cuEventRecord' +_cyb_driver_slots[227] = &__cuEventRecordWithFlags; _cyb_driver_names[227] = b'cuEventRecordWithFlags' +_cyb_driver_slots[228] = &__cuEventQuery; _cyb_driver_names[228] = b'cuEventQuery' +_cyb_driver_slots[229] = &__cuEventSynchronize; _cyb_driver_names[229] = b'cuEventSynchronize' +_cyb_driver_slots[230] = &__cuEventDestroy_v2; _cyb_driver_names[230] = b'cuEventDestroy_v2' +_cyb_driver_slots[231] = &__cuEventElapsedTime_v2; _cyb_driver_names[231] = b'cuEventElapsedTime_v2' +_cyb_driver_slots[232] = &__cuImportExternalMemory; _cyb_driver_names[232] = b'cuImportExternalMemory' +_cyb_driver_slots[233] = &__cuExternalMemoryGetMappedBuffer; _cyb_driver_names[233] = b'cuExternalMemoryGetMappedBuffer' +_cyb_driver_slots[234] = &__cuExternalMemoryGetMappedMipmappedArray; _cyb_driver_names[234] = b'cuExternalMemoryGetMappedMipmappedArray' +_cyb_driver_slots[235] = &__cuDestroyExternalMemory; _cyb_driver_names[235] = b'cuDestroyExternalMemory' +_cyb_driver_slots[236] = &__cuImportExternalSemaphore; _cyb_driver_names[236] = b'cuImportExternalSemaphore' +_cyb_driver_slots[237] = &__cuSignalExternalSemaphoresAsync; _cyb_driver_names[237] = b'cuSignalExternalSemaphoresAsync' +_cyb_driver_slots[238] = &__cuWaitExternalSemaphoresAsync; _cyb_driver_names[238] = b'cuWaitExternalSemaphoresAsync' +_cyb_driver_slots[239] = &__cuDestroyExternalSemaphore; _cyb_driver_names[239] = b'cuDestroyExternalSemaphore' +_cyb_driver_slots[240] = &__cuStreamWaitValue32_v2; _cyb_driver_names[240] = b'cuStreamWaitValue32_v2' +_cyb_driver_slots[241] = &__cuStreamWaitValue64_v2; _cyb_driver_names[241] = b'cuStreamWaitValue64_v2' +_cyb_driver_slots[242] = &__cuStreamWriteValue32_v2; _cyb_driver_names[242] = b'cuStreamWriteValue32_v2' +_cyb_driver_slots[243] = &__cuStreamWriteValue64_v2; _cyb_driver_names[243] = b'cuStreamWriteValue64_v2' +_cyb_driver_slots[244] = &__cuStreamBatchMemOp_v2; _cyb_driver_names[244] = b'cuStreamBatchMemOp_v2' +_cyb_driver_slots[245] = &__cuFuncGetAttribute; _cyb_driver_names[245] = b'cuFuncGetAttribute' +_cyb_driver_slots[246] = &__cuFuncSetAttribute; _cyb_driver_names[246] = b'cuFuncSetAttribute' +_cyb_driver_slots[247] = &__cuFuncSetCacheConfig; _cyb_driver_names[247] = b'cuFuncSetCacheConfig' +_cyb_driver_slots[248] = &__cuFuncGetModule; _cyb_driver_names[248] = b'cuFuncGetModule' +_cyb_driver_slots[249] = &__cuFuncGetName; _cyb_driver_names[249] = b'cuFuncGetName' +_cyb_driver_slots[250] = &__cuFuncGetParamInfo; _cyb_driver_names[250] = b'cuFuncGetParamInfo' +_cyb_driver_slots[251] = &__cuFuncIsLoaded; _cyb_driver_names[251] = b'cuFuncIsLoaded' +_cyb_driver_slots[252] = &__cuFuncLoad; _cyb_driver_names[252] = b'cuFuncLoad' +_cyb_driver_slots[253] = &__cuLaunchKernel; _cyb_driver_names[253] = b'cuLaunchKernel' +_cyb_driver_slots[254] = &__cuLaunchKernelEx; _cyb_driver_names[254] = b'cuLaunchKernelEx' +_cyb_driver_slots[255] = &__cuLaunchCooperativeKernel; _cyb_driver_names[255] = b'cuLaunchCooperativeKernel' +_cyb_driver_slots[256] = &__cuLaunchCooperativeKernelMultiDevice; _cyb_driver_names[256] = b'cuLaunchCooperativeKernelMultiDevice' +_cyb_driver_slots[257] = &__cuLaunchHostFunc; _cyb_driver_names[257] = b'cuLaunchHostFunc' +_cyb_driver_slots[258] = &__cuFuncSetBlockShape; _cyb_driver_names[258] = b'cuFuncSetBlockShape' +_cyb_driver_slots[259] = &__cuFuncSetSharedSize; _cyb_driver_names[259] = b'cuFuncSetSharedSize' +_cyb_driver_slots[260] = &__cuParamSetSize; _cyb_driver_names[260] = b'cuParamSetSize' +_cyb_driver_slots[261] = &__cuParamSeti; _cyb_driver_names[261] = b'cuParamSeti' +_cyb_driver_slots[262] = &__cuParamSetf; _cyb_driver_names[262] = b'cuParamSetf' +_cyb_driver_slots[263] = &__cuParamSetv; _cyb_driver_names[263] = b'cuParamSetv' +_cyb_driver_slots[264] = &__cuLaunch; _cyb_driver_names[264] = b'cuLaunch' +_cyb_driver_slots[265] = &__cuLaunchGrid; _cyb_driver_names[265] = b'cuLaunchGrid' +_cyb_driver_slots[266] = &__cuLaunchGridAsync; _cyb_driver_names[266] = b'cuLaunchGridAsync' +_cyb_driver_slots[267] = &__cuParamSetTexRef; _cyb_driver_names[267] = b'cuParamSetTexRef' +_cyb_driver_slots[268] = &__cuFuncSetSharedMemConfig; _cyb_driver_names[268] = b'cuFuncSetSharedMemConfig' +_cyb_driver_slots[269] = &__cuGraphCreate; _cyb_driver_names[269] = b'cuGraphCreate' +_cyb_driver_slots[270] = &__cuGraphAddKernelNode_v2; _cyb_driver_names[270] = b'cuGraphAddKernelNode_v2' +_cyb_driver_slots[271] = &__cuGraphKernelNodeGetParams_v2; _cyb_driver_names[271] = b'cuGraphKernelNodeGetParams_v2' +_cyb_driver_slots[272] = &__cuGraphKernelNodeSetParams_v2; _cyb_driver_names[272] = b'cuGraphKernelNodeSetParams_v2' +_cyb_driver_slots[273] = &__cuGraphAddMemcpyNode; _cyb_driver_names[273] = b'cuGraphAddMemcpyNode' +_cyb_driver_slots[274] = &__cuGraphMemcpyNodeGetParams; _cyb_driver_names[274] = b'cuGraphMemcpyNodeGetParams' +_cyb_driver_slots[275] = &__cuGraphMemcpyNodeSetParams; _cyb_driver_names[275] = b'cuGraphMemcpyNodeSetParams' +_cyb_driver_slots[276] = &__cuGraphAddMemsetNode; _cyb_driver_names[276] = b'cuGraphAddMemsetNode' +_cyb_driver_slots[277] = &__cuGraphMemsetNodeGetParams; _cyb_driver_names[277] = b'cuGraphMemsetNodeGetParams' +_cyb_driver_slots[278] = &__cuGraphMemsetNodeSetParams; _cyb_driver_names[278] = b'cuGraphMemsetNodeSetParams' +_cyb_driver_slots[279] = &__cuGraphAddHostNode; _cyb_driver_names[279] = b'cuGraphAddHostNode' +_cyb_driver_slots[280] = &__cuGraphHostNodeGetParams; _cyb_driver_names[280] = b'cuGraphHostNodeGetParams' +_cyb_driver_slots[281] = &__cuGraphHostNodeSetParams; _cyb_driver_names[281] = b'cuGraphHostNodeSetParams' +_cyb_driver_slots[282] = &__cuGraphAddChildGraphNode; _cyb_driver_names[282] = b'cuGraphAddChildGraphNode' +_cyb_driver_slots[283] = &__cuGraphChildGraphNodeGetGraph; _cyb_driver_names[283] = b'cuGraphChildGraphNodeGetGraph' +_cyb_driver_slots[284] = &__cuGraphAddEmptyNode; _cyb_driver_names[284] = b'cuGraphAddEmptyNode' +_cyb_driver_slots[285] = &__cuGraphAddEventRecordNode; _cyb_driver_names[285] = b'cuGraphAddEventRecordNode' +_cyb_driver_slots[286] = &__cuGraphEventRecordNodeGetEvent; _cyb_driver_names[286] = b'cuGraphEventRecordNodeGetEvent' +_cyb_driver_slots[287] = &__cuGraphEventRecordNodeSetEvent; _cyb_driver_names[287] = b'cuGraphEventRecordNodeSetEvent' +_cyb_driver_slots[288] = &__cuGraphAddEventWaitNode; _cyb_driver_names[288] = b'cuGraphAddEventWaitNode' +_cyb_driver_slots[289] = &__cuGraphEventWaitNodeGetEvent; _cyb_driver_names[289] = b'cuGraphEventWaitNodeGetEvent' +_cyb_driver_slots[290] = &__cuGraphEventWaitNodeSetEvent; _cyb_driver_names[290] = b'cuGraphEventWaitNodeSetEvent' +_cyb_driver_slots[291] = &__cuGraphAddExternalSemaphoresSignalNode; _cyb_driver_names[291] = b'cuGraphAddExternalSemaphoresSignalNode' +_cyb_driver_slots[292] = &__cuGraphExternalSemaphoresSignalNodeGetParams; _cyb_driver_names[292] = b'cuGraphExternalSemaphoresSignalNodeGetParams' +_cyb_driver_slots[293] = &__cuGraphExternalSemaphoresSignalNodeSetParams; _cyb_driver_names[293] = b'cuGraphExternalSemaphoresSignalNodeSetParams' +_cyb_driver_slots[294] = &__cuGraphAddExternalSemaphoresWaitNode; _cyb_driver_names[294] = b'cuGraphAddExternalSemaphoresWaitNode' +_cyb_driver_slots[295] = &__cuGraphExternalSemaphoresWaitNodeGetParams; _cyb_driver_names[295] = b'cuGraphExternalSemaphoresWaitNodeGetParams' +_cyb_driver_slots[296] = &__cuGraphExternalSemaphoresWaitNodeSetParams; _cyb_driver_names[296] = b'cuGraphExternalSemaphoresWaitNodeSetParams' +_cyb_driver_slots[297] = &__cuGraphAddBatchMemOpNode; _cyb_driver_names[297] = b'cuGraphAddBatchMemOpNode' +_cyb_driver_slots[298] = &__cuGraphBatchMemOpNodeGetParams; _cyb_driver_names[298] = b'cuGraphBatchMemOpNodeGetParams' +_cyb_driver_slots[299] = &__cuGraphBatchMemOpNodeSetParams; _cyb_driver_names[299] = b'cuGraphBatchMemOpNodeSetParams' +_cyb_driver_slots[300] = &__cuGraphExecBatchMemOpNodeSetParams; _cyb_driver_names[300] = b'cuGraphExecBatchMemOpNodeSetParams' +_cyb_driver_slots[301] = &__cuGraphAddMemAllocNode; _cyb_driver_names[301] = b'cuGraphAddMemAllocNode' +_cyb_driver_slots[302] = &__cuGraphMemAllocNodeGetParams; _cyb_driver_names[302] = b'cuGraphMemAllocNodeGetParams' +_cyb_driver_slots[303] = &__cuGraphAddMemFreeNode; _cyb_driver_names[303] = b'cuGraphAddMemFreeNode' +_cyb_driver_slots[304] = &__cuGraphMemFreeNodeGetParams; _cyb_driver_names[304] = b'cuGraphMemFreeNodeGetParams' +_cyb_driver_slots[305] = &__cuDeviceGraphMemTrim; _cyb_driver_names[305] = b'cuDeviceGraphMemTrim' +_cyb_driver_slots[306] = &__cuDeviceGetGraphMemAttribute; _cyb_driver_names[306] = b'cuDeviceGetGraphMemAttribute' +_cyb_driver_slots[307] = &__cuDeviceSetGraphMemAttribute; _cyb_driver_names[307] = b'cuDeviceSetGraphMemAttribute' +_cyb_driver_slots[308] = &__cuGraphClone; _cyb_driver_names[308] = b'cuGraphClone' +_cyb_driver_slots[309] = &__cuGraphNodeFindInClone; _cyb_driver_names[309] = b'cuGraphNodeFindInClone' +_cyb_driver_slots[310] = &__cuGraphNodeGetType; _cyb_driver_names[310] = b'cuGraphNodeGetType' +_cyb_driver_slots[311] = &__cuGraphGetNodes; _cyb_driver_names[311] = b'cuGraphGetNodes' +_cyb_driver_slots[312] = &__cuGraphGetRootNodes; _cyb_driver_names[312] = b'cuGraphGetRootNodes' +_cyb_driver_slots[313] = &__cuGraphGetEdges_v2; _cyb_driver_names[313] = b'cuGraphGetEdges_v2' +_cyb_driver_slots[314] = &__cuGraphNodeGetDependencies_v2; _cyb_driver_names[314] = b'cuGraphNodeGetDependencies_v2' +_cyb_driver_slots[315] = &__cuGraphNodeGetDependentNodes_v2; _cyb_driver_names[315] = b'cuGraphNodeGetDependentNodes_v2' +_cyb_driver_slots[316] = &__cuGraphAddDependencies_v2; _cyb_driver_names[316] = b'cuGraphAddDependencies_v2' +_cyb_driver_slots[317] = &__cuGraphRemoveDependencies_v2; _cyb_driver_names[317] = b'cuGraphRemoveDependencies_v2' +_cyb_driver_slots[318] = &__cuGraphDestroyNode; _cyb_driver_names[318] = b'cuGraphDestroyNode' +_cyb_driver_slots[319] = &__cuGraphInstantiateWithFlags; _cyb_driver_names[319] = b'cuGraphInstantiateWithFlags' +_cyb_driver_slots[320] = &__cuGraphInstantiateWithParams; _cyb_driver_names[320] = b'cuGraphInstantiateWithParams' +_cyb_driver_slots[321] = &__cuGraphExecGetFlags; _cyb_driver_names[321] = b'cuGraphExecGetFlags' +_cyb_driver_slots[322] = &__cuGraphExecKernelNodeSetParams_v2; _cyb_driver_names[322] = b'cuGraphExecKernelNodeSetParams_v2' +_cyb_driver_slots[323] = &__cuGraphExecMemcpyNodeSetParams; _cyb_driver_names[323] = b'cuGraphExecMemcpyNodeSetParams' +_cyb_driver_slots[324] = &__cuGraphExecMemsetNodeSetParams; _cyb_driver_names[324] = b'cuGraphExecMemsetNodeSetParams' +_cyb_driver_slots[325] = &__cuGraphExecHostNodeSetParams; _cyb_driver_names[325] = b'cuGraphExecHostNodeSetParams' +_cyb_driver_slots[326] = &__cuGraphExecChildGraphNodeSetParams; _cyb_driver_names[326] = b'cuGraphExecChildGraphNodeSetParams' +_cyb_driver_slots[327] = &__cuGraphExecEventRecordNodeSetEvent; _cyb_driver_names[327] = b'cuGraphExecEventRecordNodeSetEvent' +_cyb_driver_slots[328] = &__cuGraphExecEventWaitNodeSetEvent; _cyb_driver_names[328] = b'cuGraphExecEventWaitNodeSetEvent' +_cyb_driver_slots[329] = &__cuGraphExecExternalSemaphoresSignalNodeSetParams; _cyb_driver_names[329] = b'cuGraphExecExternalSemaphoresSignalNodeSetParams' +_cyb_driver_slots[330] = &__cuGraphExecExternalSemaphoresWaitNodeSetParams; _cyb_driver_names[330] = b'cuGraphExecExternalSemaphoresWaitNodeSetParams' +_cyb_driver_slots[331] = &__cuGraphNodeSetEnabled; _cyb_driver_names[331] = b'cuGraphNodeSetEnabled' +_cyb_driver_slots[332] = &__cuGraphNodeGetEnabled; _cyb_driver_names[332] = b'cuGraphNodeGetEnabled' +_cyb_driver_slots[333] = &__cuGraphUpload; _cyb_driver_names[333] = b'cuGraphUpload' +_cyb_driver_slots[334] = &__cuGraphLaunch; _cyb_driver_names[334] = b'cuGraphLaunch' +_cyb_driver_slots[335] = &__cuGraphExecDestroy; _cyb_driver_names[335] = b'cuGraphExecDestroy' +_cyb_driver_slots[336] = &__cuGraphDestroy; _cyb_driver_names[336] = b'cuGraphDestroy' +_cyb_driver_slots[337] = &__cuGraphExecUpdate_v2; _cyb_driver_names[337] = b'cuGraphExecUpdate_v2' +_cyb_driver_slots[338] = &__cuGraphKernelNodeCopyAttributes; _cyb_driver_names[338] = b'cuGraphKernelNodeCopyAttributes' +_cyb_driver_slots[339] = &__cuGraphKernelNodeGetAttribute; _cyb_driver_names[339] = b'cuGraphKernelNodeGetAttribute' +_cyb_driver_slots[340] = &__cuGraphKernelNodeSetAttribute; _cyb_driver_names[340] = b'cuGraphKernelNodeSetAttribute' +_cyb_driver_slots[341] = &__cuGraphDebugDotPrint; _cyb_driver_names[341] = b'cuGraphDebugDotPrint' +_cyb_driver_slots[342] = &__cuUserObjectCreate; _cyb_driver_names[342] = b'cuUserObjectCreate' +_cyb_driver_slots[343] = &__cuUserObjectRetain; _cyb_driver_names[343] = b'cuUserObjectRetain' +_cyb_driver_slots[344] = &__cuUserObjectRelease; _cyb_driver_names[344] = b'cuUserObjectRelease' +_cyb_driver_slots[345] = &__cuGraphRetainUserObject; _cyb_driver_names[345] = b'cuGraphRetainUserObject' +_cyb_driver_slots[346] = &__cuGraphReleaseUserObject; _cyb_driver_names[346] = b'cuGraphReleaseUserObject' +_cyb_driver_slots[347] = &__cuGraphAddNode_v2; _cyb_driver_names[347] = b'cuGraphAddNode_v2' +_cyb_driver_slots[348] = &__cuGraphNodeSetParams; _cyb_driver_names[348] = b'cuGraphNodeSetParams' +_cyb_driver_slots[349] = &__cuGraphExecNodeSetParams; _cyb_driver_names[349] = b'cuGraphExecNodeSetParams' +_cyb_driver_slots[350] = &__cuGraphConditionalHandleCreate; _cyb_driver_names[350] = b'cuGraphConditionalHandleCreate' +_cyb_driver_slots[351] = &__cuOccupancyMaxActiveBlocksPerMultiprocessor; _cyb_driver_names[351] = b'cuOccupancyMaxActiveBlocksPerMultiprocessor' +_cyb_driver_slots[352] = &__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags; _cyb_driver_names[352] = b'cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' +_cyb_driver_slots[353] = &__cuOccupancyMaxPotentialBlockSize; _cyb_driver_names[353] = b'cuOccupancyMaxPotentialBlockSize' +_cyb_driver_slots[354] = &__cuOccupancyMaxPotentialBlockSizeWithFlags; _cyb_driver_names[354] = b'cuOccupancyMaxPotentialBlockSizeWithFlags' +_cyb_driver_slots[355] = &__cuOccupancyAvailableDynamicSMemPerBlock; _cyb_driver_names[355] = b'cuOccupancyAvailableDynamicSMemPerBlock' +_cyb_driver_slots[356] = &__cuOccupancyMaxPotentialClusterSize; _cyb_driver_names[356] = b'cuOccupancyMaxPotentialClusterSize' +_cyb_driver_slots[357] = &__cuOccupancyMaxActiveClusters; _cyb_driver_names[357] = b'cuOccupancyMaxActiveClusters' +_cyb_driver_slots[358] = &__cuTexRefSetArray; _cyb_driver_names[358] = b'cuTexRefSetArray' +_cyb_driver_slots[359] = &__cuTexRefSetMipmappedArray; _cyb_driver_names[359] = b'cuTexRefSetMipmappedArray' +_cyb_driver_slots[360] = &__cuTexRefSetAddress_v2; _cyb_driver_names[360] = b'cuTexRefSetAddress_v2' +_cyb_driver_slots[361] = &__cuTexRefSetAddress2D_v3; _cyb_driver_names[361] = b'cuTexRefSetAddress2D_v3' +_cyb_driver_slots[362] = &__cuTexRefSetFormat; _cyb_driver_names[362] = b'cuTexRefSetFormat' +_cyb_driver_slots[363] = &__cuTexRefSetAddressMode; _cyb_driver_names[363] = b'cuTexRefSetAddressMode' +_cyb_driver_slots[364] = &__cuTexRefSetFilterMode; _cyb_driver_names[364] = b'cuTexRefSetFilterMode' +_cyb_driver_slots[365] = &__cuTexRefSetMipmapFilterMode; _cyb_driver_names[365] = b'cuTexRefSetMipmapFilterMode' +_cyb_driver_slots[366] = &__cuTexRefSetMipmapLevelBias; _cyb_driver_names[366] = b'cuTexRefSetMipmapLevelBias' +_cyb_driver_slots[367] = &__cuTexRefSetMipmapLevelClamp; _cyb_driver_names[367] = b'cuTexRefSetMipmapLevelClamp' +_cyb_driver_slots[368] = &__cuTexRefSetMaxAnisotropy; _cyb_driver_names[368] = b'cuTexRefSetMaxAnisotropy' +_cyb_driver_slots[369] = &__cuTexRefSetBorderColor; _cyb_driver_names[369] = b'cuTexRefSetBorderColor' +_cyb_driver_slots[370] = &__cuTexRefSetFlags; _cyb_driver_names[370] = b'cuTexRefSetFlags' +_cyb_driver_slots[371] = &__cuTexRefGetAddress_v2; _cyb_driver_names[371] = b'cuTexRefGetAddress_v2' +_cyb_driver_slots[372] = &__cuTexRefGetArray; _cyb_driver_names[372] = b'cuTexRefGetArray' +_cyb_driver_slots[373] = &__cuTexRefGetMipmappedArray; _cyb_driver_names[373] = b'cuTexRefGetMipmappedArray' +_cyb_driver_slots[374] = &__cuTexRefGetAddressMode; _cyb_driver_names[374] = b'cuTexRefGetAddressMode' +_cyb_driver_slots[375] = &__cuTexRefGetFilterMode; _cyb_driver_names[375] = b'cuTexRefGetFilterMode' +_cyb_driver_slots[376] = &__cuTexRefGetFormat; _cyb_driver_names[376] = b'cuTexRefGetFormat' +_cyb_driver_slots[377] = &__cuTexRefGetMipmapFilterMode; _cyb_driver_names[377] = b'cuTexRefGetMipmapFilterMode' +_cyb_driver_slots[378] = &__cuTexRefGetMipmapLevelBias; _cyb_driver_names[378] = b'cuTexRefGetMipmapLevelBias' +_cyb_driver_slots[379] = &__cuTexRefGetMipmapLevelClamp; _cyb_driver_names[379] = b'cuTexRefGetMipmapLevelClamp' +_cyb_driver_slots[380] = &__cuTexRefGetMaxAnisotropy; _cyb_driver_names[380] = b'cuTexRefGetMaxAnisotropy' +_cyb_driver_slots[381] = &__cuTexRefGetBorderColor; _cyb_driver_names[381] = b'cuTexRefGetBorderColor' +_cyb_driver_slots[382] = &__cuTexRefGetFlags; _cyb_driver_names[382] = b'cuTexRefGetFlags' +_cyb_driver_slots[383] = &__cuTexRefCreate; _cyb_driver_names[383] = b'cuTexRefCreate' +_cyb_driver_slots[384] = &__cuTexRefDestroy; _cyb_driver_names[384] = b'cuTexRefDestroy' +_cyb_driver_slots[385] = &__cuSurfRefSetArray; _cyb_driver_names[385] = b'cuSurfRefSetArray' +_cyb_driver_slots[386] = &__cuSurfRefGetArray; _cyb_driver_names[386] = b'cuSurfRefGetArray' +_cyb_driver_slots[387] = &__cuTexObjectCreate; _cyb_driver_names[387] = b'cuTexObjectCreate' +_cyb_driver_slots[388] = &__cuTexObjectDestroy; _cyb_driver_names[388] = b'cuTexObjectDestroy' +_cyb_driver_slots[389] = &__cuTexObjectGetResourceDesc; _cyb_driver_names[389] = b'cuTexObjectGetResourceDesc' +_cyb_driver_slots[390] = &__cuTexObjectGetTextureDesc; _cyb_driver_names[390] = b'cuTexObjectGetTextureDesc' +_cyb_driver_slots[391] = &__cuTexObjectGetResourceViewDesc; _cyb_driver_names[391] = b'cuTexObjectGetResourceViewDesc' +_cyb_driver_slots[392] = &__cuSurfObjectCreate; _cyb_driver_names[392] = b'cuSurfObjectCreate' +_cyb_driver_slots[393] = &__cuSurfObjectDestroy; _cyb_driver_names[393] = b'cuSurfObjectDestroy' +_cyb_driver_slots[394] = &__cuSurfObjectGetResourceDesc; _cyb_driver_names[394] = b'cuSurfObjectGetResourceDesc' +_cyb_driver_slots[395] = &__cuTensorMapEncodeTiled; _cyb_driver_names[395] = b'cuTensorMapEncodeTiled' +_cyb_driver_slots[396] = &__cuTensorMapEncodeIm2col; _cyb_driver_names[396] = b'cuTensorMapEncodeIm2col' +_cyb_driver_slots[397] = &__cuTensorMapEncodeIm2colWide; _cyb_driver_names[397] = b'cuTensorMapEncodeIm2colWide' +_cyb_driver_slots[398] = &__cuTensorMapReplaceAddress; _cyb_driver_names[398] = b'cuTensorMapReplaceAddress' +_cyb_driver_slots[399] = &__cuDeviceCanAccessPeer; _cyb_driver_names[399] = b'cuDeviceCanAccessPeer' +_cyb_driver_slots[400] = &__cuCtxEnablePeerAccess; _cyb_driver_names[400] = b'cuCtxEnablePeerAccess' +_cyb_driver_slots[401] = &__cuCtxDisablePeerAccess; _cyb_driver_names[401] = b'cuCtxDisablePeerAccess' +_cyb_driver_slots[402] = &__cuDeviceGetP2PAttribute; _cyb_driver_names[402] = b'cuDeviceGetP2PAttribute' +_cyb_driver_slots[403] = &__cuGraphicsUnregisterResource; _cyb_driver_names[403] = b'cuGraphicsUnregisterResource' +_cyb_driver_slots[404] = &__cuGraphicsSubResourceGetMappedArray; _cyb_driver_names[404] = b'cuGraphicsSubResourceGetMappedArray' +_cyb_driver_slots[405] = &__cuGraphicsResourceGetMappedMipmappedArray; _cyb_driver_names[405] = b'cuGraphicsResourceGetMappedMipmappedArray' +_cyb_driver_slots[406] = &__cuGraphicsResourceGetMappedPointer_v2; _cyb_driver_names[406] = b'cuGraphicsResourceGetMappedPointer_v2' +_cyb_driver_slots[407] = &__cuGraphicsResourceSetMapFlags_v2; _cyb_driver_names[407] = b'cuGraphicsResourceSetMapFlags_v2' +_cyb_driver_slots[408] = &__cuGraphicsMapResources; _cyb_driver_names[408] = b'cuGraphicsMapResources' +_cyb_driver_slots[409] = &__cuGraphicsUnmapResources; _cyb_driver_names[409] = b'cuGraphicsUnmapResources' +_cyb_driver_slots[410] = &__cuGetProcAddress_v2; _cyb_driver_names[410] = b'cuGetProcAddress_v2' +_cyb_driver_slots[411] = &__cuCoredumpGetAttribute; _cyb_driver_names[411] = b'cuCoredumpGetAttribute' +_cyb_driver_slots[412] = &__cuCoredumpGetAttributeGlobal; _cyb_driver_names[412] = b'cuCoredumpGetAttributeGlobal' +_cyb_driver_slots[413] = &__cuCoredumpSetAttribute; _cyb_driver_names[413] = b'cuCoredumpSetAttribute' +_cyb_driver_slots[414] = &__cuCoredumpSetAttributeGlobal; _cyb_driver_names[414] = b'cuCoredumpSetAttributeGlobal' +_cyb_driver_slots[415] = &__cuGetExportTable; _cyb_driver_names[415] = b'cuGetExportTable' +_cyb_driver_slots[416] = &__cuGreenCtxCreate; _cyb_driver_names[416] = b'cuGreenCtxCreate' +_cyb_driver_slots[417] = &__cuGreenCtxDestroy; _cyb_driver_names[417] = b'cuGreenCtxDestroy' +_cyb_driver_slots[418] = &__cuCtxFromGreenCtx; _cyb_driver_names[418] = b'cuCtxFromGreenCtx' +_cyb_driver_slots[419] = &__cuDeviceGetDevResource; _cyb_driver_names[419] = b'cuDeviceGetDevResource' +_cyb_driver_slots[420] = &__cuCtxGetDevResource; _cyb_driver_names[420] = b'cuCtxGetDevResource' +_cyb_driver_slots[421] = &__cuGreenCtxGetDevResource; _cyb_driver_names[421] = b'cuGreenCtxGetDevResource' +_cyb_driver_slots[422] = &__cuDevSmResourceSplitByCount; _cyb_driver_names[422] = b'cuDevSmResourceSplitByCount' +_cyb_driver_slots[423] = &__cuDevResourceGenerateDesc; _cyb_driver_names[423] = b'cuDevResourceGenerateDesc' +_cyb_driver_slots[424] = &__cuGreenCtxRecordEvent; _cyb_driver_names[424] = b'cuGreenCtxRecordEvent' +_cyb_driver_slots[425] = &__cuGreenCtxWaitEvent; _cyb_driver_names[425] = b'cuGreenCtxWaitEvent' +_cyb_driver_slots[426] = &__cuStreamGetGreenCtx; _cyb_driver_names[426] = b'cuStreamGetGreenCtx' +_cyb_driver_slots[427] = &__cuGreenCtxStreamCreate; _cyb_driver_names[427] = b'cuGreenCtxStreamCreate' +_cyb_driver_slots[428] = &__cuLogsRegisterCallback; _cyb_driver_names[428] = b'cuLogsRegisterCallback' +_cyb_driver_slots[429] = &__cuLogsUnregisterCallback; _cyb_driver_names[429] = b'cuLogsUnregisterCallback' +_cyb_driver_slots[430] = &__cuLogsCurrent; _cyb_driver_names[430] = b'cuLogsCurrent' +_cyb_driver_slots[431] = &__cuLogsDumpToFile; _cyb_driver_names[431] = b'cuLogsDumpToFile' +_cyb_driver_slots[432] = &__cuLogsDumpToMemory; _cyb_driver_names[432] = b'cuLogsDumpToMemory' +_cyb_driver_slots[433] = &__cuCheckpointProcessGetRestoreThreadId; _cyb_driver_names[433] = b'cuCheckpointProcessGetRestoreThreadId' +_cyb_driver_slots[434] = &__cuCheckpointProcessGetState; _cyb_driver_names[434] = b'cuCheckpointProcessGetState' +_cyb_driver_slots[435] = &__cuCheckpointProcessLock; _cyb_driver_names[435] = b'cuCheckpointProcessLock' +_cyb_driver_slots[436] = &__cuCheckpointProcessCheckpoint; _cyb_driver_names[436] = b'cuCheckpointProcessCheckpoint' +_cyb_driver_slots[437] = &__cuCheckpointProcessRestore; _cyb_driver_names[437] = b'cuCheckpointProcessRestore' +_cyb_driver_slots[438] = &__cuCheckpointProcessUnlock; _cyb_driver_names[438] = b'cuCheckpointProcessUnlock' +_cyb_driver_slots[439] = &__cuGraphicsEGLRegisterImage; _cyb_driver_names[439] = b'cuGraphicsEGLRegisterImage' +_cyb_driver_slots[440] = &__cuEGLStreamConsumerConnect; _cyb_driver_names[440] = b'cuEGLStreamConsumerConnect' +_cyb_driver_slots[441] = &__cuEGLStreamConsumerConnectWithFlags; _cyb_driver_names[441] = b'cuEGLStreamConsumerConnectWithFlags' +_cyb_driver_slots[442] = &__cuEGLStreamConsumerDisconnect; _cyb_driver_names[442] = b'cuEGLStreamConsumerDisconnect' +_cyb_driver_slots[443] = &__cuEGLStreamConsumerAcquireFrame; _cyb_driver_names[443] = b'cuEGLStreamConsumerAcquireFrame' +_cyb_driver_slots[444] = &__cuEGLStreamConsumerReleaseFrame; _cyb_driver_names[444] = b'cuEGLStreamConsumerReleaseFrame' +_cyb_driver_slots[445] = &__cuEGLStreamProducerConnect; _cyb_driver_names[445] = b'cuEGLStreamProducerConnect' +_cyb_driver_slots[446] = &__cuEGLStreamProducerDisconnect; _cyb_driver_names[446] = b'cuEGLStreamProducerDisconnect' +_cyb_driver_slots[447] = &__cuEGLStreamProducerPresentFrame; _cyb_driver_names[447] = b'cuEGLStreamProducerPresentFrame' +_cyb_driver_slots[448] = &__cuEGLStreamProducerReturnFrame; _cyb_driver_names[448] = b'cuEGLStreamProducerReturnFrame' +_cyb_driver_slots[449] = &__cuGraphicsResourceGetMappedEglFrame; _cyb_driver_names[449] = b'cuGraphicsResourceGetMappedEglFrame' +_cyb_driver_slots[450] = &__cuEventCreateFromEGLSync; _cyb_driver_names[450] = b'cuEventCreateFromEGLSync' +_cyb_driver_slots[451] = &__cuGraphicsGLRegisterBuffer; _cyb_driver_names[451] = b'cuGraphicsGLRegisterBuffer' +_cyb_driver_slots[452] = &__cuGraphicsGLRegisterImage; _cyb_driver_names[452] = b'cuGraphicsGLRegisterImage' +_cyb_driver_slots[453] = &__cuGLGetDevices_v2; _cyb_driver_names[453] = b'cuGLGetDevices_v2' +_cyb_driver_slots[454] = &__cuGLCtxCreate_v2; _cyb_driver_names[454] = b'cuGLCtxCreate_v2' +_cyb_driver_slots[455] = &__cuGLInit; _cyb_driver_names[455] = b'cuGLInit' +_cyb_driver_slots[456] = &__cuGLRegisterBufferObject; _cyb_driver_names[456] = b'cuGLRegisterBufferObject' +_cyb_driver_slots[457] = &__cuGLMapBufferObject_v2; _cyb_driver_names[457] = b'cuGLMapBufferObject_v2' +_cyb_driver_slots[458] = &__cuGLUnmapBufferObject; _cyb_driver_names[458] = b'cuGLUnmapBufferObject' +_cyb_driver_slots[459] = &__cuGLUnregisterBufferObject; _cyb_driver_names[459] = b'cuGLUnregisterBufferObject' +_cyb_driver_slots[460] = &__cuGLSetBufferObjectMapFlags; _cyb_driver_names[460] = b'cuGLSetBufferObjectMapFlags' +_cyb_driver_slots[461] = &__cuGLMapBufferObjectAsync_v2; _cyb_driver_names[461] = b'cuGLMapBufferObjectAsync_v2' +_cyb_driver_slots[462] = &__cuGLUnmapBufferObjectAsync; _cyb_driver_names[462] = b'cuGLUnmapBufferObjectAsync' +_cyb_driver_slots[463] = &__cuProfilerInitialize; _cyb_driver_names[463] = b'cuProfilerInitialize' +_cyb_driver_slots[464] = &__cuProfilerStart; _cyb_driver_names[464] = b'cuProfilerStart' +_cyb_driver_slots[465] = &__cuProfilerStop; _cyb_driver_names[465] = b'cuProfilerStop' +_cyb_driver_slots[466] = &__cuVDPAUGetDevice; _cyb_driver_names[466] = b'cuVDPAUGetDevice' +_cyb_driver_slots[467] = &__cuVDPAUCtxCreate_v2; _cyb_driver_names[467] = b'cuVDPAUCtxCreate_v2' +_cyb_driver_slots[468] = &__cuGraphicsVDPAURegisterVideoSurface; _cyb_driver_names[468] = b'cuGraphicsVDPAURegisterVideoSurface' +_cyb_driver_slots[469] = &__cuGraphicsVDPAURegisterOutputSurface; _cyb_driver_names[469] = b'cuGraphicsVDPAURegisterOutputSurface' +_cyb_driver_slots[470] = &__cuDeviceGetHostAtomicCapabilities; _cyb_driver_names[470] = b'cuDeviceGetHostAtomicCapabilities' +_cyb_driver_slots[471] = &__cuCtxGetDevice_v2; _cyb_driver_names[471] = b'cuCtxGetDevice_v2' +_cyb_driver_slots[472] = &__cuCtxSynchronize_v2; _cyb_driver_names[472] = b'cuCtxSynchronize_v2' +_cyb_driver_slots[473] = &__cuMemcpyBatchAsync_v2; _cyb_driver_names[473] = b'cuMemcpyBatchAsync_v2' +_cyb_driver_slots[474] = &__cuMemcpy3DBatchAsync_v2; _cyb_driver_names[474] = b'cuMemcpy3DBatchAsync_v2' +_cyb_driver_slots[475] = &__cuMemGetDefaultMemPool; _cyb_driver_names[475] = b'cuMemGetDefaultMemPool' +_cyb_driver_slots[476] = &__cuMemGetMemPool; _cyb_driver_names[476] = b'cuMemGetMemPool' +_cyb_driver_slots[477] = &__cuMemSetMemPool; _cyb_driver_names[477] = b'cuMemSetMemPool' +_cyb_driver_slots[478] = &__cuMemPrefetchBatchAsync; _cyb_driver_names[478] = b'cuMemPrefetchBatchAsync' +_cyb_driver_slots[479] = &__cuMemDiscardBatchAsync; _cyb_driver_names[479] = b'cuMemDiscardBatchAsync' +_cyb_driver_slots[480] = &__cuMemDiscardAndPrefetchBatchAsync; _cyb_driver_names[480] = b'cuMemDiscardAndPrefetchBatchAsync' +_cyb_driver_slots[481] = &__cuDeviceGetP2PAtomicCapabilities; _cyb_driver_names[481] = b'cuDeviceGetP2PAtomicCapabilities' +_cyb_driver_slots[482] = &__cuGreenCtxGetId; _cyb_driver_names[482] = b'cuGreenCtxGetId' +_cyb_driver_slots[483] = &__cuMulticastBindMem_v2; _cyb_driver_names[483] = b'cuMulticastBindMem_v2' +_cyb_driver_slots[484] = &__cuMulticastBindAddr_v2; _cyb_driver_names[484] = b'cuMulticastBindAddr_v2' +_cyb_driver_slots[485] = &__cuGraphNodeGetContainingGraph; _cyb_driver_names[485] = b'cuGraphNodeGetContainingGraph' +_cyb_driver_slots[486] = &__cuGraphNodeGetLocalId; _cyb_driver_names[486] = b'cuGraphNodeGetLocalId' +_cyb_driver_slots[487] = &__cuGraphNodeGetToolsId; _cyb_driver_names[487] = b'cuGraphNodeGetToolsId' +_cyb_driver_slots[488] = &__cuGraphGetId; _cyb_driver_names[488] = b'cuGraphGetId' +_cyb_driver_slots[489] = &__cuGraphExecGetId; _cyb_driver_names[489] = b'cuGraphExecGetId' +_cyb_driver_slots[490] = &__cuDevSmResourceSplit; _cyb_driver_names[490] = b'cuDevSmResourceSplit' +_cyb_driver_slots[491] = &__cuStreamGetDevResource; _cyb_driver_names[491] = b'cuStreamGetDevResource' +_cyb_driver_slots[492] = &__cuKernelGetParamCount; _cyb_driver_names[492] = b'cuKernelGetParamCount' +_cyb_driver_slots[493] = &__cuMemcpyWithAttributesAsync; _cyb_driver_names[493] = b'cuMemcpyWithAttributesAsync' +_cyb_driver_slots[494] = &__cuMemcpy3DWithAttributesAsync; _cyb_driver_names[494] = b'cuMemcpy3DWithAttributesAsync' +_cyb_driver_slots[495] = &__cuStreamBeginCaptureToCig; _cyb_driver_names[495] = b'cuStreamBeginCaptureToCig' +_cyb_driver_slots[496] = &__cuStreamEndCaptureToCig; _cyb_driver_names[496] = b'cuStreamEndCaptureToCig' +_cyb_driver_slots[497] = &__cuFuncGetParamCount; _cyb_driver_names[497] = b'cuFuncGetParamCount' +_cyb_driver_slots[498] = &__cuLaunchHostFunc_v2; _cyb_driver_names[498] = b'cuLaunchHostFunc_v2' +_cyb_driver_slots[499] = &__cuGraphNodeGetParams; _cyb_driver_names[499] = b'cuGraphNodeGetParams' +_cyb_driver_slots[500] = &__cuCoredumpRegisterStartCallback; _cyb_driver_names[500] = b'cuCoredumpRegisterStartCallback' +_cyb_driver_slots[501] = &__cuCoredumpRegisterCompleteCallback; _cyb_driver_names[501] = b'cuCoredumpRegisterCompleteCallback' +_cyb_driver_slots[502] = &__cuCoredumpDeregisterStartCallback; _cyb_driver_names[502] = b'cuCoredumpDeregisterStartCallback' +_cyb_driver_slots[503] = &__cuCoredumpDeregisterCompleteCallback; _cyb_driver_names[503] = b'cuCoredumpDeregisterCompleteCallback' +_cyb_driver_slots[504] = &__cuLogicalEndpointIdReserve; _cyb_driver_names[504] = b'cuLogicalEndpointIdReserve' +_cyb_driver_slots[505] = &__cuLogicalEndpointIdRelease; _cyb_driver_names[505] = b'cuLogicalEndpointIdRelease' +_cyb_driver_slots[506] = &__cuLogicalEndpointCreate; _cyb_driver_names[506] = b'cuLogicalEndpointCreate' +_cyb_driver_slots[507] = &__cuLogicalEndpointAddDevice; _cyb_driver_names[507] = b'cuLogicalEndpointAddDevice' +_cyb_driver_slots[508] = &__cuLogicalEndpointDestroy; _cyb_driver_names[508] = b'cuLogicalEndpointDestroy' +_cyb_driver_slots[509] = &__cuLogicalEndpointBindAddr; _cyb_driver_names[509] = b'cuLogicalEndpointBindAddr' +_cyb_driver_slots[510] = &__cuLogicalEndpointBindMem; _cyb_driver_names[510] = b'cuLogicalEndpointBindMem' +_cyb_driver_slots[511] = &__cuLogicalEndpointUnbind; _cyb_driver_names[511] = b'cuLogicalEndpointUnbind' +_cyb_driver_slots[512] = &__cuLogicalEndpointExport; _cyb_driver_names[512] = b'cuLogicalEndpointExport' +_cyb_driver_slots[513] = &__cuLogicalEndpointImport; _cyb_driver_names[513] = b'cuLogicalEndpointImport' +_cyb_driver_slots[514] = &__cuLogicalEndpointGetLimits; _cyb_driver_names[514] = b'cuLogicalEndpointGetLimits' +_cyb_driver_slots[515] = &__cuLogicalEndpointQuery; _cyb_driver_names[515] = b'cuLogicalEndpointQuery' +_cyb_driver_slots[516] = &__cuStreamBeginRecaptureToGraph; _cyb_driver_names[516] = b'cuStreamBeginRecaptureToGraph' +_cyb_driver_slots[517] = &__cuDeviceGetFabricClusterUuid; _cyb_driver_names[517] = b'cuDeviceGetFabricClusterUuid' +_cyb_driver_slots[518] = &__cuDeviceGetCliqueCount; _cyb_driver_names[518] = b'cuDeviceGetCliqueCount' +_cyb_driver_slots[519] = &__cuDeviceGetCliqueInfo; _cyb_driver_names[519] = b'cuDeviceGetCliqueInfo' +_cyb_driver_slots[520] = &__cuMemGetLocationInfo; _cyb_driver_names[520] = b'cuMemGetLocationInfo' +_cyb_driver_slots[521] = &__cuGraphAddNode_v3; _cyb_driver_names[521] = b'cuGraphAddNode_v3' +_cyb_driver_slots[522] = &__cuGraphNodeSetParams_v2; _cyb_driver_names[522] = b'cuGraphNodeSetParams_v2' +_cyb_driver_slots[523] = &__cuCheckpointOperationComplete; _cyb_driver_names[523] = b'cuCheckpointOperationComplete' +_cyb_driver_slots[524] = &__cuFabricCpyBatchAsync; _cyb_driver_names[524] = b'cuFabricCpyBatchAsync' +_cyb_driver_slots[525] = &__cuTensorMapSetAllocationClass; _cyb_driver_names[525] = b'cuTensorMapSetAllocationClass' + cdef int _init_driver() except -1 nogil: global _cyb___py_driver_init cdef uintptr_t handle = 0 @@ -2211,1583 +2741,9 @@ cpdef dict _inspect_function_pointers(): _check_or_init_driver() cdef dict data = {} - global __cuGetErrorString - data["__cuGetErrorString"] = __cuGetErrorString - - global __cuGetErrorName - data["__cuGetErrorName"] = __cuGetErrorName - - global __cuInit - data["__cuInit"] = __cuInit - - global __cuDriverGetVersion - data["__cuDriverGetVersion"] = __cuDriverGetVersion - - global __cuDeviceGet - data["__cuDeviceGet"] = __cuDeviceGet - - global __cuDeviceGetCount - data["__cuDeviceGetCount"] = __cuDeviceGetCount - - global __cuDeviceGetName - data["__cuDeviceGetName"] = __cuDeviceGetName - - global __cuDeviceGetUuid_v2 - data["__cuDeviceGetUuid_v2"] = __cuDeviceGetUuid_v2 - - global __cuDeviceGetLuid - data["__cuDeviceGetLuid"] = __cuDeviceGetLuid - - global __cuDeviceTotalMem_v2 - data["__cuDeviceTotalMem_v2"] = __cuDeviceTotalMem_v2 - - global __cuDeviceGetTexture1DLinearMaxWidth - data["__cuDeviceGetTexture1DLinearMaxWidth"] = __cuDeviceGetTexture1DLinearMaxWidth - - global __cuDeviceGetAttribute - data["__cuDeviceGetAttribute"] = __cuDeviceGetAttribute - - global __cuDeviceGetNvSciSyncAttributes - data["__cuDeviceGetNvSciSyncAttributes"] = __cuDeviceGetNvSciSyncAttributes - - global __cuDeviceSetMemPool - data["__cuDeviceSetMemPool"] = __cuDeviceSetMemPool - - global __cuDeviceGetMemPool - data["__cuDeviceGetMemPool"] = __cuDeviceGetMemPool - - global __cuDeviceGetDefaultMemPool - data["__cuDeviceGetDefaultMemPool"] = __cuDeviceGetDefaultMemPool - - global __cuDeviceGetExecAffinitySupport - data["__cuDeviceGetExecAffinitySupport"] = __cuDeviceGetExecAffinitySupport - - global __cuFlushGPUDirectRDMAWrites - data["__cuFlushGPUDirectRDMAWrites"] = __cuFlushGPUDirectRDMAWrites - - global __cuDeviceGetProperties - data["__cuDeviceGetProperties"] = __cuDeviceGetProperties - - global __cuDeviceComputeCapability - data["__cuDeviceComputeCapability"] = __cuDeviceComputeCapability - - global __cuDevicePrimaryCtxRetain - data["__cuDevicePrimaryCtxRetain"] = __cuDevicePrimaryCtxRetain - - global __cuDevicePrimaryCtxRelease_v2 - data["__cuDevicePrimaryCtxRelease_v2"] = __cuDevicePrimaryCtxRelease_v2 - - global __cuDevicePrimaryCtxSetFlags_v2 - data["__cuDevicePrimaryCtxSetFlags_v2"] = __cuDevicePrimaryCtxSetFlags_v2 - - global __cuDevicePrimaryCtxGetState - data["__cuDevicePrimaryCtxGetState"] = __cuDevicePrimaryCtxGetState - - global __cuDevicePrimaryCtxReset_v2 - data["__cuDevicePrimaryCtxReset_v2"] = __cuDevicePrimaryCtxReset_v2 - - global __cuCtxCreate_v2 - data["__cuCtxCreate_v2"] = __cuCtxCreate_v2 - - global __cuCtxCreate_v3 - data["__cuCtxCreate_v3"] = __cuCtxCreate_v3 - - global __cuCtxCreate_v4 - data["__cuCtxCreate_v4"] = __cuCtxCreate_v4 - - global __cuCtxDestroy_v2 - data["__cuCtxDestroy_v2"] = __cuCtxDestroy_v2 - - global __cuCtxPushCurrent_v2 - data["__cuCtxPushCurrent_v2"] = __cuCtxPushCurrent_v2 - - global __cuCtxPopCurrent_v2 - data["__cuCtxPopCurrent_v2"] = __cuCtxPopCurrent_v2 - - global __cuCtxSetCurrent - data["__cuCtxSetCurrent"] = __cuCtxSetCurrent - - global __cuCtxGetCurrent - data["__cuCtxGetCurrent"] = __cuCtxGetCurrent - - global __cuCtxGetDevice - data["__cuCtxGetDevice"] = __cuCtxGetDevice - - global __cuCtxGetFlags - data["__cuCtxGetFlags"] = __cuCtxGetFlags - - global __cuCtxSetFlags - data["__cuCtxSetFlags"] = __cuCtxSetFlags - - global __cuCtxGetId - data["__cuCtxGetId"] = __cuCtxGetId - - global __cuCtxSynchronize - data["__cuCtxSynchronize"] = __cuCtxSynchronize - - global __cuCtxSetLimit - data["__cuCtxSetLimit"] = __cuCtxSetLimit - - global __cuCtxGetLimit - data["__cuCtxGetLimit"] = __cuCtxGetLimit - - global __cuCtxGetCacheConfig - data["__cuCtxGetCacheConfig"] = __cuCtxGetCacheConfig - - global __cuCtxSetCacheConfig - data["__cuCtxSetCacheConfig"] = __cuCtxSetCacheConfig - - global __cuCtxGetApiVersion - data["__cuCtxGetApiVersion"] = __cuCtxGetApiVersion - - global __cuCtxGetStreamPriorityRange - data["__cuCtxGetStreamPriorityRange"] = __cuCtxGetStreamPriorityRange - - global __cuCtxResetPersistingL2Cache - data["__cuCtxResetPersistingL2Cache"] = __cuCtxResetPersistingL2Cache - - global __cuCtxGetExecAffinity - data["__cuCtxGetExecAffinity"] = __cuCtxGetExecAffinity - - global __cuCtxRecordEvent - data["__cuCtxRecordEvent"] = __cuCtxRecordEvent - - global __cuCtxWaitEvent - data["__cuCtxWaitEvent"] = __cuCtxWaitEvent - - global __cuCtxAttach - data["__cuCtxAttach"] = __cuCtxAttach - - global __cuCtxDetach - data["__cuCtxDetach"] = __cuCtxDetach - - global __cuCtxGetSharedMemConfig - data["__cuCtxGetSharedMemConfig"] = __cuCtxGetSharedMemConfig - - global __cuCtxSetSharedMemConfig - data["__cuCtxSetSharedMemConfig"] = __cuCtxSetSharedMemConfig - - global __cuModuleLoad - data["__cuModuleLoad"] = __cuModuleLoad - - global __cuModuleLoadData - data["__cuModuleLoadData"] = __cuModuleLoadData - - global __cuModuleLoadDataEx - data["__cuModuleLoadDataEx"] = __cuModuleLoadDataEx - - global __cuModuleLoadFatBinary - data["__cuModuleLoadFatBinary"] = __cuModuleLoadFatBinary - - global __cuModuleUnload - data["__cuModuleUnload"] = __cuModuleUnload - - global __cuModuleGetLoadingMode - data["__cuModuleGetLoadingMode"] = __cuModuleGetLoadingMode - - global __cuModuleGetFunction - data["__cuModuleGetFunction"] = __cuModuleGetFunction - - global __cuModuleGetFunctionCount - data["__cuModuleGetFunctionCount"] = __cuModuleGetFunctionCount - - global __cuModuleEnumerateFunctions - data["__cuModuleEnumerateFunctions"] = __cuModuleEnumerateFunctions - - global __cuModuleGetGlobal_v2 - data["__cuModuleGetGlobal_v2"] = __cuModuleGetGlobal_v2 - - global __cuLinkCreate_v2 - data["__cuLinkCreate_v2"] = __cuLinkCreate_v2 - - global __cuLinkAddData_v2 - data["__cuLinkAddData_v2"] = __cuLinkAddData_v2 - - global __cuLinkAddFile_v2 - data["__cuLinkAddFile_v2"] = __cuLinkAddFile_v2 - - global __cuLinkComplete - data["__cuLinkComplete"] = __cuLinkComplete - - global __cuLinkDestroy - data["__cuLinkDestroy"] = __cuLinkDestroy - - global __cuModuleGetTexRef - data["__cuModuleGetTexRef"] = __cuModuleGetTexRef - - global __cuModuleGetSurfRef - data["__cuModuleGetSurfRef"] = __cuModuleGetSurfRef - - global __cuLibraryLoadData - data["__cuLibraryLoadData"] = __cuLibraryLoadData - - global __cuLibraryLoadFromFile - data["__cuLibraryLoadFromFile"] = __cuLibraryLoadFromFile - - global __cuLibraryUnload - data["__cuLibraryUnload"] = __cuLibraryUnload - - global __cuLibraryGetKernel - data["__cuLibraryGetKernel"] = __cuLibraryGetKernel - - global __cuLibraryGetKernelCount - data["__cuLibraryGetKernelCount"] = __cuLibraryGetKernelCount - - global __cuLibraryEnumerateKernels - data["__cuLibraryEnumerateKernels"] = __cuLibraryEnumerateKernels - - global __cuLibraryGetModule - data["__cuLibraryGetModule"] = __cuLibraryGetModule - - global __cuKernelGetFunction - data["__cuKernelGetFunction"] = __cuKernelGetFunction - - global __cuKernelGetLibrary - data["__cuKernelGetLibrary"] = __cuKernelGetLibrary - - global __cuLibraryGetGlobal - data["__cuLibraryGetGlobal"] = __cuLibraryGetGlobal - - global __cuLibraryGetManaged - data["__cuLibraryGetManaged"] = __cuLibraryGetManaged - - global __cuLibraryGetUnifiedFunction - data["__cuLibraryGetUnifiedFunction"] = __cuLibraryGetUnifiedFunction - - global __cuKernelGetAttribute - data["__cuKernelGetAttribute"] = __cuKernelGetAttribute - - global __cuKernelSetAttribute - data["__cuKernelSetAttribute"] = __cuKernelSetAttribute - - global __cuKernelSetCacheConfig - data["__cuKernelSetCacheConfig"] = __cuKernelSetCacheConfig - - global __cuKernelGetName - data["__cuKernelGetName"] = __cuKernelGetName - - global __cuKernelGetParamInfo - data["__cuKernelGetParamInfo"] = __cuKernelGetParamInfo - - global __cuMemGetInfo_v2 - data["__cuMemGetInfo_v2"] = __cuMemGetInfo_v2 - - global __cuMemAlloc_v2 - data["__cuMemAlloc_v2"] = __cuMemAlloc_v2 - - global __cuMemAllocPitch_v2 - data["__cuMemAllocPitch_v2"] = __cuMemAllocPitch_v2 - - global __cuMemFree_v2 - data["__cuMemFree_v2"] = __cuMemFree_v2 - - global __cuMemGetAddressRange_v2 - data["__cuMemGetAddressRange_v2"] = __cuMemGetAddressRange_v2 - - global __cuMemAllocHost_v2 - data["__cuMemAllocHost_v2"] = __cuMemAllocHost_v2 - - global __cuMemFreeHost - data["__cuMemFreeHost"] = __cuMemFreeHost - - global __cuMemHostAlloc - data["__cuMemHostAlloc"] = __cuMemHostAlloc - - global __cuMemHostGetDevicePointer_v2 - data["__cuMemHostGetDevicePointer_v2"] = __cuMemHostGetDevicePointer_v2 - - global __cuMemHostGetFlags - data["__cuMemHostGetFlags"] = __cuMemHostGetFlags - - global __cuMemAllocManaged - data["__cuMemAllocManaged"] = __cuMemAllocManaged - - global __cuDeviceRegisterAsyncNotification - data["__cuDeviceRegisterAsyncNotification"] = __cuDeviceRegisterAsyncNotification - - global __cuDeviceUnregisterAsyncNotification - data["__cuDeviceUnregisterAsyncNotification"] = __cuDeviceUnregisterAsyncNotification - - global __cuDeviceGetByPCIBusId - data["__cuDeviceGetByPCIBusId"] = __cuDeviceGetByPCIBusId - - global __cuDeviceGetPCIBusId - data["__cuDeviceGetPCIBusId"] = __cuDeviceGetPCIBusId - - global __cuIpcGetEventHandle - data["__cuIpcGetEventHandle"] = __cuIpcGetEventHandle - - global __cuIpcOpenEventHandle - data["__cuIpcOpenEventHandle"] = __cuIpcOpenEventHandle - - global __cuIpcGetMemHandle - data["__cuIpcGetMemHandle"] = __cuIpcGetMemHandle - - global __cuIpcOpenMemHandle_v2 - data["__cuIpcOpenMemHandle_v2"] = __cuIpcOpenMemHandle_v2 - - global __cuIpcCloseMemHandle - data["__cuIpcCloseMemHandle"] = __cuIpcCloseMemHandle - - global __cuMemHostRegister_v2 - data["__cuMemHostRegister_v2"] = __cuMemHostRegister_v2 - - global __cuMemHostUnregister - data["__cuMemHostUnregister"] = __cuMemHostUnregister - - global __cuMemcpy - data["__cuMemcpy"] = __cuMemcpy - - global __cuMemcpyPeer - data["__cuMemcpyPeer"] = __cuMemcpyPeer - - global __cuMemcpyHtoD_v2 - data["__cuMemcpyHtoD_v2"] = __cuMemcpyHtoD_v2 - - global __cuMemcpyDtoH_v2 - data["__cuMemcpyDtoH_v2"] = __cuMemcpyDtoH_v2 - - global __cuMemcpyDtoD_v2 - data["__cuMemcpyDtoD_v2"] = __cuMemcpyDtoD_v2 - - global __cuMemcpyDtoA_v2 - data["__cuMemcpyDtoA_v2"] = __cuMemcpyDtoA_v2 - - global __cuMemcpyAtoD_v2 - data["__cuMemcpyAtoD_v2"] = __cuMemcpyAtoD_v2 - - global __cuMemcpyHtoA_v2 - data["__cuMemcpyHtoA_v2"] = __cuMemcpyHtoA_v2 - - global __cuMemcpyAtoH_v2 - data["__cuMemcpyAtoH_v2"] = __cuMemcpyAtoH_v2 - - global __cuMemcpyAtoA_v2 - data["__cuMemcpyAtoA_v2"] = __cuMemcpyAtoA_v2 - - global __cuMemcpy2D_v2 - data["__cuMemcpy2D_v2"] = __cuMemcpy2D_v2 - - global __cuMemcpy2DUnaligned_v2 - data["__cuMemcpy2DUnaligned_v2"] = __cuMemcpy2DUnaligned_v2 - - global __cuMemcpy3D_v2 - data["__cuMemcpy3D_v2"] = __cuMemcpy3D_v2 - - global __cuMemcpy3DPeer - data["__cuMemcpy3DPeer"] = __cuMemcpy3DPeer - - global __cuMemcpyAsync - data["__cuMemcpyAsync"] = __cuMemcpyAsync - - global __cuMemcpyPeerAsync - data["__cuMemcpyPeerAsync"] = __cuMemcpyPeerAsync - - global __cuMemcpyHtoDAsync_v2 - data["__cuMemcpyHtoDAsync_v2"] = __cuMemcpyHtoDAsync_v2 - - global __cuMemcpyDtoHAsync_v2 - data["__cuMemcpyDtoHAsync_v2"] = __cuMemcpyDtoHAsync_v2 - - global __cuMemcpyDtoDAsync_v2 - data["__cuMemcpyDtoDAsync_v2"] = __cuMemcpyDtoDAsync_v2 - - global __cuMemcpyHtoAAsync_v2 - data["__cuMemcpyHtoAAsync_v2"] = __cuMemcpyHtoAAsync_v2 - - global __cuMemcpyAtoHAsync_v2 - data["__cuMemcpyAtoHAsync_v2"] = __cuMemcpyAtoHAsync_v2 - - global __cuMemcpy2DAsync_v2 - data["__cuMemcpy2DAsync_v2"] = __cuMemcpy2DAsync_v2 - - global __cuMemcpy3DAsync_v2 - data["__cuMemcpy3DAsync_v2"] = __cuMemcpy3DAsync_v2 - - global __cuMemcpy3DPeerAsync - data["__cuMemcpy3DPeerAsync"] = __cuMemcpy3DPeerAsync - - global __cuMemsetD8_v2 - data["__cuMemsetD8_v2"] = __cuMemsetD8_v2 - - global __cuMemsetD16_v2 - data["__cuMemsetD16_v2"] = __cuMemsetD16_v2 - - global __cuMemsetD32_v2 - data["__cuMemsetD32_v2"] = __cuMemsetD32_v2 - - global __cuMemsetD2D8_v2 - data["__cuMemsetD2D8_v2"] = __cuMemsetD2D8_v2 - - global __cuMemsetD2D16_v2 - data["__cuMemsetD2D16_v2"] = __cuMemsetD2D16_v2 - - global __cuMemsetD2D32_v2 - data["__cuMemsetD2D32_v2"] = __cuMemsetD2D32_v2 - - global __cuMemsetD8Async - data["__cuMemsetD8Async"] = __cuMemsetD8Async - - global __cuMemsetD16Async - data["__cuMemsetD16Async"] = __cuMemsetD16Async - - global __cuMemsetD32Async - data["__cuMemsetD32Async"] = __cuMemsetD32Async - - global __cuMemsetD2D8Async - data["__cuMemsetD2D8Async"] = __cuMemsetD2D8Async - - global __cuMemsetD2D16Async - data["__cuMemsetD2D16Async"] = __cuMemsetD2D16Async - - global __cuMemsetD2D32Async - data["__cuMemsetD2D32Async"] = __cuMemsetD2D32Async - - global __cuArrayCreate_v2 - data["__cuArrayCreate_v2"] = __cuArrayCreate_v2 - - global __cuArrayGetDescriptor_v2 - data["__cuArrayGetDescriptor_v2"] = __cuArrayGetDescriptor_v2 - - global __cuArrayGetSparseProperties - data["__cuArrayGetSparseProperties"] = __cuArrayGetSparseProperties - - global __cuMipmappedArrayGetSparseProperties - data["__cuMipmappedArrayGetSparseProperties"] = __cuMipmappedArrayGetSparseProperties - - global __cuArrayGetMemoryRequirements - data["__cuArrayGetMemoryRequirements"] = __cuArrayGetMemoryRequirements - - global __cuMipmappedArrayGetMemoryRequirements - data["__cuMipmappedArrayGetMemoryRequirements"] = __cuMipmappedArrayGetMemoryRequirements - - global __cuArrayGetPlane - data["__cuArrayGetPlane"] = __cuArrayGetPlane - - global __cuArrayDestroy - data["__cuArrayDestroy"] = __cuArrayDestroy - - global __cuArray3DCreate_v2 - data["__cuArray3DCreate_v2"] = __cuArray3DCreate_v2 - - global __cuArray3DGetDescriptor_v2 - data["__cuArray3DGetDescriptor_v2"] = __cuArray3DGetDescriptor_v2 - - global __cuMipmappedArrayCreate - data["__cuMipmappedArrayCreate"] = __cuMipmappedArrayCreate - - global __cuMipmappedArrayGetLevel - data["__cuMipmappedArrayGetLevel"] = __cuMipmappedArrayGetLevel - - global __cuMipmappedArrayDestroy - data["__cuMipmappedArrayDestroy"] = __cuMipmappedArrayDestroy - - global __cuMemGetHandleForAddressRange - data["__cuMemGetHandleForAddressRange"] = __cuMemGetHandleForAddressRange - - global __cuMemBatchDecompressAsync - data["__cuMemBatchDecompressAsync"] = __cuMemBatchDecompressAsync - - global __cuMemAddressReserve - data["__cuMemAddressReserve"] = __cuMemAddressReserve - - global __cuMemAddressFree - data["__cuMemAddressFree"] = __cuMemAddressFree - - global __cuMemCreate - data["__cuMemCreate"] = __cuMemCreate - - global __cuMemRelease - data["__cuMemRelease"] = __cuMemRelease - - global __cuMemMap - data["__cuMemMap"] = __cuMemMap - - global __cuMemMapArrayAsync - data["__cuMemMapArrayAsync"] = __cuMemMapArrayAsync - - global __cuMemUnmap - data["__cuMemUnmap"] = __cuMemUnmap - - global __cuMemSetAccess - data["__cuMemSetAccess"] = __cuMemSetAccess - - global __cuMemGetAccess - data["__cuMemGetAccess"] = __cuMemGetAccess - - global __cuMemExportToShareableHandle - data["__cuMemExportToShareableHandle"] = __cuMemExportToShareableHandle - - global __cuMemImportFromShareableHandle - data["__cuMemImportFromShareableHandle"] = __cuMemImportFromShareableHandle - - global __cuMemGetAllocationGranularity - data["__cuMemGetAllocationGranularity"] = __cuMemGetAllocationGranularity - - global __cuMemGetAllocationPropertiesFromHandle - data["__cuMemGetAllocationPropertiesFromHandle"] = __cuMemGetAllocationPropertiesFromHandle - - global __cuMemRetainAllocationHandle - data["__cuMemRetainAllocationHandle"] = __cuMemRetainAllocationHandle - - global __cuMemFreeAsync - data["__cuMemFreeAsync"] = __cuMemFreeAsync - - global __cuMemAllocAsync - data["__cuMemAllocAsync"] = __cuMemAllocAsync - - global __cuMemPoolTrimTo - data["__cuMemPoolTrimTo"] = __cuMemPoolTrimTo - - global __cuMemPoolSetAttribute - data["__cuMemPoolSetAttribute"] = __cuMemPoolSetAttribute - - global __cuMemPoolGetAttribute - data["__cuMemPoolGetAttribute"] = __cuMemPoolGetAttribute - - global __cuMemPoolSetAccess - data["__cuMemPoolSetAccess"] = __cuMemPoolSetAccess - - global __cuMemPoolGetAccess - data["__cuMemPoolGetAccess"] = __cuMemPoolGetAccess - - global __cuMemPoolCreate - data["__cuMemPoolCreate"] = __cuMemPoolCreate - - global __cuMemPoolDestroy - data["__cuMemPoolDestroy"] = __cuMemPoolDestroy - - global __cuMemAllocFromPoolAsync - data["__cuMemAllocFromPoolAsync"] = __cuMemAllocFromPoolAsync - - global __cuMemPoolExportToShareableHandle - data["__cuMemPoolExportToShareableHandle"] = __cuMemPoolExportToShareableHandle - - global __cuMemPoolImportFromShareableHandle - data["__cuMemPoolImportFromShareableHandle"] = __cuMemPoolImportFromShareableHandle - - global __cuMemPoolExportPointer - data["__cuMemPoolExportPointer"] = __cuMemPoolExportPointer - - global __cuMemPoolImportPointer - data["__cuMemPoolImportPointer"] = __cuMemPoolImportPointer - - global __cuMulticastCreate - data["__cuMulticastCreate"] = __cuMulticastCreate - - global __cuMulticastAddDevice - data["__cuMulticastAddDevice"] = __cuMulticastAddDevice - - global __cuMulticastBindMem - data["__cuMulticastBindMem"] = __cuMulticastBindMem - - global __cuMulticastBindAddr - data["__cuMulticastBindAddr"] = __cuMulticastBindAddr - - global __cuMulticastUnbind - data["__cuMulticastUnbind"] = __cuMulticastUnbind - - global __cuMulticastGetGranularity - data["__cuMulticastGetGranularity"] = __cuMulticastGetGranularity - - global __cuPointerGetAttribute - data["__cuPointerGetAttribute"] = __cuPointerGetAttribute - - global __cuMemPrefetchAsync_v2 - data["__cuMemPrefetchAsync_v2"] = __cuMemPrefetchAsync_v2 - - global __cuMemAdvise_v2 - data["__cuMemAdvise_v2"] = __cuMemAdvise_v2 - - global __cuMemRangeGetAttribute - data["__cuMemRangeGetAttribute"] = __cuMemRangeGetAttribute - - global __cuMemRangeGetAttributes - data["__cuMemRangeGetAttributes"] = __cuMemRangeGetAttributes - - global __cuPointerSetAttribute - data["__cuPointerSetAttribute"] = __cuPointerSetAttribute - - global __cuPointerGetAttributes - data["__cuPointerGetAttributes"] = __cuPointerGetAttributes - - global __cuStreamCreate - data["__cuStreamCreate"] = __cuStreamCreate - - global __cuStreamCreateWithPriority - data["__cuStreamCreateWithPriority"] = __cuStreamCreateWithPriority - - global __cuStreamGetPriority - data["__cuStreamGetPriority"] = __cuStreamGetPriority - - global __cuStreamGetDevice - data["__cuStreamGetDevice"] = __cuStreamGetDevice - - global __cuStreamGetFlags - data["__cuStreamGetFlags"] = __cuStreamGetFlags - - global __cuStreamGetId - data["__cuStreamGetId"] = __cuStreamGetId - - global __cuStreamGetCtx - data["__cuStreamGetCtx"] = __cuStreamGetCtx - - global __cuStreamGetCtx_v2 - data["__cuStreamGetCtx_v2"] = __cuStreamGetCtx_v2 - - global __cuStreamWaitEvent - data["__cuStreamWaitEvent"] = __cuStreamWaitEvent - - global __cuStreamAddCallback - data["__cuStreamAddCallback"] = __cuStreamAddCallback - - global __cuStreamBeginCapture_v2 - data["__cuStreamBeginCapture_v2"] = __cuStreamBeginCapture_v2 - - global __cuStreamBeginCaptureToGraph - data["__cuStreamBeginCaptureToGraph"] = __cuStreamBeginCaptureToGraph - - global __cuThreadExchangeStreamCaptureMode - data["__cuThreadExchangeStreamCaptureMode"] = __cuThreadExchangeStreamCaptureMode - - global __cuStreamEndCapture - data["__cuStreamEndCapture"] = __cuStreamEndCapture - - global __cuStreamIsCapturing - data["__cuStreamIsCapturing"] = __cuStreamIsCapturing - - global __cuStreamGetCaptureInfo_v2 - data["__cuStreamGetCaptureInfo_v2"] = __cuStreamGetCaptureInfo_v2 - - global __cuStreamGetCaptureInfo_v3 - data["__cuStreamGetCaptureInfo_v3"] = __cuStreamGetCaptureInfo_v3 - - global __cuStreamUpdateCaptureDependencies_v2 - data["__cuStreamUpdateCaptureDependencies_v2"] = __cuStreamUpdateCaptureDependencies_v2 - - global __cuStreamAttachMemAsync - data["__cuStreamAttachMemAsync"] = __cuStreamAttachMemAsync - - global __cuStreamQuery - data["__cuStreamQuery"] = __cuStreamQuery - - global __cuStreamSynchronize - data["__cuStreamSynchronize"] = __cuStreamSynchronize - - global __cuStreamDestroy_v2 - data["__cuStreamDestroy_v2"] = __cuStreamDestroy_v2 - - global __cuStreamCopyAttributes - data["__cuStreamCopyAttributes"] = __cuStreamCopyAttributes - - global __cuStreamGetAttribute - data["__cuStreamGetAttribute"] = __cuStreamGetAttribute - - global __cuStreamSetAttribute - data["__cuStreamSetAttribute"] = __cuStreamSetAttribute - - global __cuEventCreate - data["__cuEventCreate"] = __cuEventCreate - - global __cuEventRecord - data["__cuEventRecord"] = __cuEventRecord - - global __cuEventRecordWithFlags - data["__cuEventRecordWithFlags"] = __cuEventRecordWithFlags - - global __cuEventQuery - data["__cuEventQuery"] = __cuEventQuery - - global __cuEventSynchronize - data["__cuEventSynchronize"] = __cuEventSynchronize - - global __cuEventDestroy_v2 - data["__cuEventDestroy_v2"] = __cuEventDestroy_v2 - - global __cuEventElapsedTime_v2 - data["__cuEventElapsedTime_v2"] = __cuEventElapsedTime_v2 - - global __cuImportExternalMemory - data["__cuImportExternalMemory"] = __cuImportExternalMemory - - global __cuExternalMemoryGetMappedBuffer - data["__cuExternalMemoryGetMappedBuffer"] = __cuExternalMemoryGetMappedBuffer - - global __cuExternalMemoryGetMappedMipmappedArray - data["__cuExternalMemoryGetMappedMipmappedArray"] = __cuExternalMemoryGetMappedMipmappedArray - - global __cuDestroyExternalMemory - data["__cuDestroyExternalMemory"] = __cuDestroyExternalMemory - - global __cuImportExternalSemaphore - data["__cuImportExternalSemaphore"] = __cuImportExternalSemaphore - - global __cuSignalExternalSemaphoresAsync - data["__cuSignalExternalSemaphoresAsync"] = __cuSignalExternalSemaphoresAsync - - global __cuWaitExternalSemaphoresAsync - data["__cuWaitExternalSemaphoresAsync"] = __cuWaitExternalSemaphoresAsync - - global __cuDestroyExternalSemaphore - data["__cuDestroyExternalSemaphore"] = __cuDestroyExternalSemaphore - - global __cuStreamWaitValue32_v2 - data["__cuStreamWaitValue32_v2"] = __cuStreamWaitValue32_v2 - - global __cuStreamWaitValue64_v2 - data["__cuStreamWaitValue64_v2"] = __cuStreamWaitValue64_v2 - - global __cuStreamWriteValue32_v2 - data["__cuStreamWriteValue32_v2"] = __cuStreamWriteValue32_v2 - - global __cuStreamWriteValue64_v2 - data["__cuStreamWriteValue64_v2"] = __cuStreamWriteValue64_v2 - - global __cuStreamBatchMemOp_v2 - data["__cuStreamBatchMemOp_v2"] = __cuStreamBatchMemOp_v2 - - global __cuFuncGetAttribute - data["__cuFuncGetAttribute"] = __cuFuncGetAttribute - - global __cuFuncSetAttribute - data["__cuFuncSetAttribute"] = __cuFuncSetAttribute - - global __cuFuncSetCacheConfig - data["__cuFuncSetCacheConfig"] = __cuFuncSetCacheConfig - - global __cuFuncGetModule - data["__cuFuncGetModule"] = __cuFuncGetModule - - global __cuFuncGetName - data["__cuFuncGetName"] = __cuFuncGetName - - global __cuFuncGetParamInfo - data["__cuFuncGetParamInfo"] = __cuFuncGetParamInfo - - global __cuFuncIsLoaded - data["__cuFuncIsLoaded"] = __cuFuncIsLoaded - - global __cuFuncLoad - data["__cuFuncLoad"] = __cuFuncLoad - - global __cuLaunchKernel - data["__cuLaunchKernel"] = __cuLaunchKernel - - global __cuLaunchKernelEx - data["__cuLaunchKernelEx"] = __cuLaunchKernelEx - - global __cuLaunchCooperativeKernel - data["__cuLaunchCooperativeKernel"] = __cuLaunchCooperativeKernel - - global __cuLaunchCooperativeKernelMultiDevice - data["__cuLaunchCooperativeKernelMultiDevice"] = __cuLaunchCooperativeKernelMultiDevice - - global __cuLaunchHostFunc - data["__cuLaunchHostFunc"] = __cuLaunchHostFunc - - global __cuFuncSetBlockShape - data["__cuFuncSetBlockShape"] = __cuFuncSetBlockShape - - global __cuFuncSetSharedSize - data["__cuFuncSetSharedSize"] = __cuFuncSetSharedSize - - global __cuParamSetSize - data["__cuParamSetSize"] = __cuParamSetSize - - global __cuParamSeti - data["__cuParamSeti"] = __cuParamSeti - - global __cuParamSetf - data["__cuParamSetf"] = __cuParamSetf - - global __cuParamSetv - data["__cuParamSetv"] = __cuParamSetv - - global __cuLaunch - data["__cuLaunch"] = __cuLaunch - - global __cuLaunchGrid - data["__cuLaunchGrid"] = __cuLaunchGrid - - global __cuLaunchGridAsync - data["__cuLaunchGridAsync"] = __cuLaunchGridAsync - - global __cuParamSetTexRef - data["__cuParamSetTexRef"] = __cuParamSetTexRef - - global __cuFuncSetSharedMemConfig - data["__cuFuncSetSharedMemConfig"] = __cuFuncSetSharedMemConfig - - global __cuGraphCreate - data["__cuGraphCreate"] = __cuGraphCreate - - global __cuGraphAddKernelNode_v2 - data["__cuGraphAddKernelNode_v2"] = __cuGraphAddKernelNode_v2 - - global __cuGraphKernelNodeGetParams_v2 - data["__cuGraphKernelNodeGetParams_v2"] = __cuGraphKernelNodeGetParams_v2 - - global __cuGraphKernelNodeSetParams_v2 - data["__cuGraphKernelNodeSetParams_v2"] = __cuGraphKernelNodeSetParams_v2 - - global __cuGraphAddMemcpyNode - data["__cuGraphAddMemcpyNode"] = __cuGraphAddMemcpyNode - - global __cuGraphMemcpyNodeGetParams - data["__cuGraphMemcpyNodeGetParams"] = __cuGraphMemcpyNodeGetParams - - global __cuGraphMemcpyNodeSetParams - data["__cuGraphMemcpyNodeSetParams"] = __cuGraphMemcpyNodeSetParams - - global __cuGraphAddMemsetNode - data["__cuGraphAddMemsetNode"] = __cuGraphAddMemsetNode - - global __cuGraphMemsetNodeGetParams - data["__cuGraphMemsetNodeGetParams"] = __cuGraphMemsetNodeGetParams - - global __cuGraphMemsetNodeSetParams - data["__cuGraphMemsetNodeSetParams"] = __cuGraphMemsetNodeSetParams - - global __cuGraphAddHostNode - data["__cuGraphAddHostNode"] = __cuGraphAddHostNode - - global __cuGraphHostNodeGetParams - data["__cuGraphHostNodeGetParams"] = __cuGraphHostNodeGetParams - - global __cuGraphHostNodeSetParams - data["__cuGraphHostNodeSetParams"] = __cuGraphHostNodeSetParams - - global __cuGraphAddChildGraphNode - data["__cuGraphAddChildGraphNode"] = __cuGraphAddChildGraphNode - - global __cuGraphChildGraphNodeGetGraph - data["__cuGraphChildGraphNodeGetGraph"] = __cuGraphChildGraphNodeGetGraph - - global __cuGraphAddEmptyNode - data["__cuGraphAddEmptyNode"] = __cuGraphAddEmptyNode - - global __cuGraphAddEventRecordNode - data["__cuGraphAddEventRecordNode"] = __cuGraphAddEventRecordNode - - global __cuGraphEventRecordNodeGetEvent - data["__cuGraphEventRecordNodeGetEvent"] = __cuGraphEventRecordNodeGetEvent - - global __cuGraphEventRecordNodeSetEvent - data["__cuGraphEventRecordNodeSetEvent"] = __cuGraphEventRecordNodeSetEvent - - global __cuGraphAddEventWaitNode - data["__cuGraphAddEventWaitNode"] = __cuGraphAddEventWaitNode - - global __cuGraphEventWaitNodeGetEvent - data["__cuGraphEventWaitNodeGetEvent"] = __cuGraphEventWaitNodeGetEvent - - global __cuGraphEventWaitNodeSetEvent - data["__cuGraphEventWaitNodeSetEvent"] = __cuGraphEventWaitNodeSetEvent - - global __cuGraphAddExternalSemaphoresSignalNode - data["__cuGraphAddExternalSemaphoresSignalNode"] = __cuGraphAddExternalSemaphoresSignalNode - - global __cuGraphExternalSemaphoresSignalNodeGetParams - data["__cuGraphExternalSemaphoresSignalNodeGetParams"] = __cuGraphExternalSemaphoresSignalNodeGetParams - - global __cuGraphExternalSemaphoresSignalNodeSetParams - data["__cuGraphExternalSemaphoresSignalNodeSetParams"] = __cuGraphExternalSemaphoresSignalNodeSetParams - - global __cuGraphAddExternalSemaphoresWaitNode - data["__cuGraphAddExternalSemaphoresWaitNode"] = __cuGraphAddExternalSemaphoresWaitNode - - global __cuGraphExternalSemaphoresWaitNodeGetParams - data["__cuGraphExternalSemaphoresWaitNodeGetParams"] = __cuGraphExternalSemaphoresWaitNodeGetParams - - global __cuGraphExternalSemaphoresWaitNodeSetParams - data["__cuGraphExternalSemaphoresWaitNodeSetParams"] = __cuGraphExternalSemaphoresWaitNodeSetParams - - global __cuGraphAddBatchMemOpNode - data["__cuGraphAddBatchMemOpNode"] = __cuGraphAddBatchMemOpNode - - global __cuGraphBatchMemOpNodeGetParams - data["__cuGraphBatchMemOpNodeGetParams"] = __cuGraphBatchMemOpNodeGetParams - - global __cuGraphBatchMemOpNodeSetParams - data["__cuGraphBatchMemOpNodeSetParams"] = __cuGraphBatchMemOpNodeSetParams - - global __cuGraphExecBatchMemOpNodeSetParams - data["__cuGraphExecBatchMemOpNodeSetParams"] = __cuGraphExecBatchMemOpNodeSetParams - - global __cuGraphAddMemAllocNode - data["__cuGraphAddMemAllocNode"] = __cuGraphAddMemAllocNode - - global __cuGraphMemAllocNodeGetParams - data["__cuGraphMemAllocNodeGetParams"] = __cuGraphMemAllocNodeGetParams - - global __cuGraphAddMemFreeNode - data["__cuGraphAddMemFreeNode"] = __cuGraphAddMemFreeNode - - global __cuGraphMemFreeNodeGetParams - data["__cuGraphMemFreeNodeGetParams"] = __cuGraphMemFreeNodeGetParams - - global __cuDeviceGraphMemTrim - data["__cuDeviceGraphMemTrim"] = __cuDeviceGraphMemTrim - - global __cuDeviceGetGraphMemAttribute - data["__cuDeviceGetGraphMemAttribute"] = __cuDeviceGetGraphMemAttribute - - global __cuDeviceSetGraphMemAttribute - data["__cuDeviceSetGraphMemAttribute"] = __cuDeviceSetGraphMemAttribute - - global __cuGraphClone - data["__cuGraphClone"] = __cuGraphClone - - global __cuGraphNodeFindInClone - data["__cuGraphNodeFindInClone"] = __cuGraphNodeFindInClone - - global __cuGraphNodeGetType - data["__cuGraphNodeGetType"] = __cuGraphNodeGetType - - global __cuGraphGetNodes - data["__cuGraphGetNodes"] = __cuGraphGetNodes - - global __cuGraphGetRootNodes - data["__cuGraphGetRootNodes"] = __cuGraphGetRootNodes - - global __cuGraphGetEdges_v2 - data["__cuGraphGetEdges_v2"] = __cuGraphGetEdges_v2 - - global __cuGraphNodeGetDependencies_v2 - data["__cuGraphNodeGetDependencies_v2"] = __cuGraphNodeGetDependencies_v2 - - global __cuGraphNodeGetDependentNodes_v2 - data["__cuGraphNodeGetDependentNodes_v2"] = __cuGraphNodeGetDependentNodes_v2 - - global __cuGraphAddDependencies_v2 - data["__cuGraphAddDependencies_v2"] = __cuGraphAddDependencies_v2 - - global __cuGraphRemoveDependencies_v2 - data["__cuGraphRemoveDependencies_v2"] = __cuGraphRemoveDependencies_v2 - - global __cuGraphDestroyNode - data["__cuGraphDestroyNode"] = __cuGraphDestroyNode - - global __cuGraphInstantiateWithFlags - data["__cuGraphInstantiateWithFlags"] = __cuGraphInstantiateWithFlags - - global __cuGraphInstantiateWithParams - data["__cuGraphInstantiateWithParams"] = __cuGraphInstantiateWithParams - - global __cuGraphExecGetFlags - data["__cuGraphExecGetFlags"] = __cuGraphExecGetFlags - - global __cuGraphExecKernelNodeSetParams_v2 - data["__cuGraphExecKernelNodeSetParams_v2"] = __cuGraphExecKernelNodeSetParams_v2 - - global __cuGraphExecMemcpyNodeSetParams - data["__cuGraphExecMemcpyNodeSetParams"] = __cuGraphExecMemcpyNodeSetParams - - global __cuGraphExecMemsetNodeSetParams - data["__cuGraphExecMemsetNodeSetParams"] = __cuGraphExecMemsetNodeSetParams - - global __cuGraphExecHostNodeSetParams - data["__cuGraphExecHostNodeSetParams"] = __cuGraphExecHostNodeSetParams - - global __cuGraphExecChildGraphNodeSetParams - data["__cuGraphExecChildGraphNodeSetParams"] = __cuGraphExecChildGraphNodeSetParams - - global __cuGraphExecEventRecordNodeSetEvent - data["__cuGraphExecEventRecordNodeSetEvent"] = __cuGraphExecEventRecordNodeSetEvent - - global __cuGraphExecEventWaitNodeSetEvent - data["__cuGraphExecEventWaitNodeSetEvent"] = __cuGraphExecEventWaitNodeSetEvent - - global __cuGraphExecExternalSemaphoresSignalNodeSetParams - data["__cuGraphExecExternalSemaphoresSignalNodeSetParams"] = __cuGraphExecExternalSemaphoresSignalNodeSetParams - - global __cuGraphExecExternalSemaphoresWaitNodeSetParams - data["__cuGraphExecExternalSemaphoresWaitNodeSetParams"] = __cuGraphExecExternalSemaphoresWaitNodeSetParams - - global __cuGraphNodeSetEnabled - data["__cuGraphNodeSetEnabled"] = __cuGraphNodeSetEnabled - - global __cuGraphNodeGetEnabled - data["__cuGraphNodeGetEnabled"] = __cuGraphNodeGetEnabled - - global __cuGraphUpload - data["__cuGraphUpload"] = __cuGraphUpload - - global __cuGraphLaunch - data["__cuGraphLaunch"] = __cuGraphLaunch - - global __cuGraphExecDestroy - data["__cuGraphExecDestroy"] = __cuGraphExecDestroy - - global __cuGraphDestroy - data["__cuGraphDestroy"] = __cuGraphDestroy - - global __cuGraphExecUpdate_v2 - data["__cuGraphExecUpdate_v2"] = __cuGraphExecUpdate_v2 - - global __cuGraphKernelNodeCopyAttributes - data["__cuGraphKernelNodeCopyAttributes"] = __cuGraphKernelNodeCopyAttributes - - global __cuGraphKernelNodeGetAttribute - data["__cuGraphKernelNodeGetAttribute"] = __cuGraphKernelNodeGetAttribute - - global __cuGraphKernelNodeSetAttribute - data["__cuGraphKernelNodeSetAttribute"] = __cuGraphKernelNodeSetAttribute - - global __cuGraphDebugDotPrint - data["__cuGraphDebugDotPrint"] = __cuGraphDebugDotPrint - - global __cuUserObjectCreate - data["__cuUserObjectCreate"] = __cuUserObjectCreate - - global __cuUserObjectRetain - data["__cuUserObjectRetain"] = __cuUserObjectRetain - - global __cuUserObjectRelease - data["__cuUserObjectRelease"] = __cuUserObjectRelease - - global __cuGraphRetainUserObject - data["__cuGraphRetainUserObject"] = __cuGraphRetainUserObject - - global __cuGraphReleaseUserObject - data["__cuGraphReleaseUserObject"] = __cuGraphReleaseUserObject - - global __cuGraphAddNode_v2 - data["__cuGraphAddNode_v2"] = __cuGraphAddNode_v2 - - global __cuGraphNodeSetParams - data["__cuGraphNodeSetParams"] = __cuGraphNodeSetParams - - global __cuGraphExecNodeSetParams - data["__cuGraphExecNodeSetParams"] = __cuGraphExecNodeSetParams - - global __cuGraphConditionalHandleCreate - data["__cuGraphConditionalHandleCreate"] = __cuGraphConditionalHandleCreate - - global __cuOccupancyMaxActiveBlocksPerMultiprocessor - data["__cuOccupancyMaxActiveBlocksPerMultiprocessor"] = __cuOccupancyMaxActiveBlocksPerMultiprocessor - - global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags - data["__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags"] = __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags - - global __cuOccupancyMaxPotentialBlockSize - data["__cuOccupancyMaxPotentialBlockSize"] = __cuOccupancyMaxPotentialBlockSize - - global __cuOccupancyMaxPotentialBlockSizeWithFlags - data["__cuOccupancyMaxPotentialBlockSizeWithFlags"] = __cuOccupancyMaxPotentialBlockSizeWithFlags - - global __cuOccupancyAvailableDynamicSMemPerBlock - data["__cuOccupancyAvailableDynamicSMemPerBlock"] = __cuOccupancyAvailableDynamicSMemPerBlock - - global __cuOccupancyMaxPotentialClusterSize - data["__cuOccupancyMaxPotentialClusterSize"] = __cuOccupancyMaxPotentialClusterSize - - global __cuOccupancyMaxActiveClusters - data["__cuOccupancyMaxActiveClusters"] = __cuOccupancyMaxActiveClusters - - global __cuTexRefSetArray - data["__cuTexRefSetArray"] = __cuTexRefSetArray - - global __cuTexRefSetMipmappedArray - data["__cuTexRefSetMipmappedArray"] = __cuTexRefSetMipmappedArray - - global __cuTexRefSetAddress_v2 - data["__cuTexRefSetAddress_v2"] = __cuTexRefSetAddress_v2 - - global __cuTexRefSetAddress2D_v3 - data["__cuTexRefSetAddress2D_v3"] = __cuTexRefSetAddress2D_v3 - - global __cuTexRefSetFormat - data["__cuTexRefSetFormat"] = __cuTexRefSetFormat - - global __cuTexRefSetAddressMode - data["__cuTexRefSetAddressMode"] = __cuTexRefSetAddressMode - - global __cuTexRefSetFilterMode - data["__cuTexRefSetFilterMode"] = __cuTexRefSetFilterMode - - global __cuTexRefSetMipmapFilterMode - data["__cuTexRefSetMipmapFilterMode"] = __cuTexRefSetMipmapFilterMode - - global __cuTexRefSetMipmapLevelBias - data["__cuTexRefSetMipmapLevelBias"] = __cuTexRefSetMipmapLevelBias - - global __cuTexRefSetMipmapLevelClamp - data["__cuTexRefSetMipmapLevelClamp"] = __cuTexRefSetMipmapLevelClamp - - global __cuTexRefSetMaxAnisotropy - data["__cuTexRefSetMaxAnisotropy"] = __cuTexRefSetMaxAnisotropy - - global __cuTexRefSetBorderColor - data["__cuTexRefSetBorderColor"] = __cuTexRefSetBorderColor - - global __cuTexRefSetFlags - data["__cuTexRefSetFlags"] = __cuTexRefSetFlags - - global __cuTexRefGetAddress_v2 - data["__cuTexRefGetAddress_v2"] = __cuTexRefGetAddress_v2 - - global __cuTexRefGetArray - data["__cuTexRefGetArray"] = __cuTexRefGetArray - - global __cuTexRefGetMipmappedArray - data["__cuTexRefGetMipmappedArray"] = __cuTexRefGetMipmappedArray - - global __cuTexRefGetAddressMode - data["__cuTexRefGetAddressMode"] = __cuTexRefGetAddressMode - - global __cuTexRefGetFilterMode - data["__cuTexRefGetFilterMode"] = __cuTexRefGetFilterMode - - global __cuTexRefGetFormat - data["__cuTexRefGetFormat"] = __cuTexRefGetFormat - - global __cuTexRefGetMipmapFilterMode - data["__cuTexRefGetMipmapFilterMode"] = __cuTexRefGetMipmapFilterMode - - global __cuTexRefGetMipmapLevelBias - data["__cuTexRefGetMipmapLevelBias"] = __cuTexRefGetMipmapLevelBias - - global __cuTexRefGetMipmapLevelClamp - data["__cuTexRefGetMipmapLevelClamp"] = __cuTexRefGetMipmapLevelClamp - - global __cuTexRefGetMaxAnisotropy - data["__cuTexRefGetMaxAnisotropy"] = __cuTexRefGetMaxAnisotropy - - global __cuTexRefGetBorderColor - data["__cuTexRefGetBorderColor"] = __cuTexRefGetBorderColor - - global __cuTexRefGetFlags - data["__cuTexRefGetFlags"] = __cuTexRefGetFlags - - global __cuTexRefCreate - data["__cuTexRefCreate"] = __cuTexRefCreate - - global __cuTexRefDestroy - data["__cuTexRefDestroy"] = __cuTexRefDestroy - - global __cuSurfRefSetArray - data["__cuSurfRefSetArray"] = __cuSurfRefSetArray - - global __cuSurfRefGetArray - data["__cuSurfRefGetArray"] = __cuSurfRefGetArray - - global __cuTexObjectCreate - data["__cuTexObjectCreate"] = __cuTexObjectCreate - - global __cuTexObjectDestroy - data["__cuTexObjectDestroy"] = __cuTexObjectDestroy - - global __cuTexObjectGetResourceDesc - data["__cuTexObjectGetResourceDesc"] = __cuTexObjectGetResourceDesc - - global __cuTexObjectGetTextureDesc - data["__cuTexObjectGetTextureDesc"] = __cuTexObjectGetTextureDesc - - global __cuTexObjectGetResourceViewDesc - data["__cuTexObjectGetResourceViewDesc"] = __cuTexObjectGetResourceViewDesc - - global __cuSurfObjectCreate - data["__cuSurfObjectCreate"] = __cuSurfObjectCreate - - global __cuSurfObjectDestroy - data["__cuSurfObjectDestroy"] = __cuSurfObjectDestroy - - global __cuSurfObjectGetResourceDesc - data["__cuSurfObjectGetResourceDesc"] = __cuSurfObjectGetResourceDesc - - global __cuTensorMapEncodeTiled - data["__cuTensorMapEncodeTiled"] = __cuTensorMapEncodeTiled - - global __cuTensorMapEncodeIm2col - data["__cuTensorMapEncodeIm2col"] = __cuTensorMapEncodeIm2col - - global __cuTensorMapEncodeIm2colWide - data["__cuTensorMapEncodeIm2colWide"] = __cuTensorMapEncodeIm2colWide - - global __cuTensorMapReplaceAddress - data["__cuTensorMapReplaceAddress"] = __cuTensorMapReplaceAddress - - global __cuDeviceCanAccessPeer - data["__cuDeviceCanAccessPeer"] = __cuDeviceCanAccessPeer - - global __cuCtxEnablePeerAccess - data["__cuCtxEnablePeerAccess"] = __cuCtxEnablePeerAccess - - global __cuCtxDisablePeerAccess - data["__cuCtxDisablePeerAccess"] = __cuCtxDisablePeerAccess - - global __cuDeviceGetP2PAttribute - data["__cuDeviceGetP2PAttribute"] = __cuDeviceGetP2PAttribute - - global __cuGraphicsUnregisterResource - data["__cuGraphicsUnregisterResource"] = __cuGraphicsUnregisterResource - - global __cuGraphicsSubResourceGetMappedArray - data["__cuGraphicsSubResourceGetMappedArray"] = __cuGraphicsSubResourceGetMappedArray - - global __cuGraphicsResourceGetMappedMipmappedArray - data["__cuGraphicsResourceGetMappedMipmappedArray"] = __cuGraphicsResourceGetMappedMipmappedArray - - global __cuGraphicsResourceGetMappedPointer_v2 - data["__cuGraphicsResourceGetMappedPointer_v2"] = __cuGraphicsResourceGetMappedPointer_v2 - - global __cuGraphicsResourceSetMapFlags_v2 - data["__cuGraphicsResourceSetMapFlags_v2"] = __cuGraphicsResourceSetMapFlags_v2 - - global __cuGraphicsMapResources - data["__cuGraphicsMapResources"] = __cuGraphicsMapResources - - global __cuGraphicsUnmapResources - data["__cuGraphicsUnmapResources"] = __cuGraphicsUnmapResources - - global __cuGetProcAddress_v2 - data["__cuGetProcAddress_v2"] = __cuGetProcAddress_v2 - - global __cuCoredumpGetAttribute - data["__cuCoredumpGetAttribute"] = __cuCoredumpGetAttribute - - global __cuCoredumpGetAttributeGlobal - data["__cuCoredumpGetAttributeGlobal"] = __cuCoredumpGetAttributeGlobal - - global __cuCoredumpSetAttribute - data["__cuCoredumpSetAttribute"] = __cuCoredumpSetAttribute - - global __cuCoredumpSetAttributeGlobal - data["__cuCoredumpSetAttributeGlobal"] = __cuCoredumpSetAttributeGlobal - - global __cuGetExportTable - data["__cuGetExportTable"] = __cuGetExportTable - - global __cuGreenCtxCreate - data["__cuGreenCtxCreate"] = __cuGreenCtxCreate - - global __cuGreenCtxDestroy - data["__cuGreenCtxDestroy"] = __cuGreenCtxDestroy - - global __cuCtxFromGreenCtx - data["__cuCtxFromGreenCtx"] = __cuCtxFromGreenCtx - - global __cuDeviceGetDevResource - data["__cuDeviceGetDevResource"] = __cuDeviceGetDevResource - - global __cuCtxGetDevResource - data["__cuCtxGetDevResource"] = __cuCtxGetDevResource - - global __cuGreenCtxGetDevResource - data["__cuGreenCtxGetDevResource"] = __cuGreenCtxGetDevResource - - global __cuDevSmResourceSplitByCount - data["__cuDevSmResourceSplitByCount"] = __cuDevSmResourceSplitByCount - - global __cuDevResourceGenerateDesc - data["__cuDevResourceGenerateDesc"] = __cuDevResourceGenerateDesc - - global __cuGreenCtxRecordEvent - data["__cuGreenCtxRecordEvent"] = __cuGreenCtxRecordEvent - - global __cuGreenCtxWaitEvent - data["__cuGreenCtxWaitEvent"] = __cuGreenCtxWaitEvent - - global __cuStreamGetGreenCtx - data["__cuStreamGetGreenCtx"] = __cuStreamGetGreenCtx - - global __cuGreenCtxStreamCreate - data["__cuGreenCtxStreamCreate"] = __cuGreenCtxStreamCreate - - global __cuLogsRegisterCallback - data["__cuLogsRegisterCallback"] = __cuLogsRegisterCallback - - global __cuLogsUnregisterCallback - data["__cuLogsUnregisterCallback"] = __cuLogsUnregisterCallback - - global __cuLogsCurrent - data["__cuLogsCurrent"] = __cuLogsCurrent - - global __cuLogsDumpToFile - data["__cuLogsDumpToFile"] = __cuLogsDumpToFile - - global __cuLogsDumpToMemory - data["__cuLogsDumpToMemory"] = __cuLogsDumpToMemory - - global __cuCheckpointProcessGetRestoreThreadId - data["__cuCheckpointProcessGetRestoreThreadId"] = __cuCheckpointProcessGetRestoreThreadId - - global __cuCheckpointProcessGetState - data["__cuCheckpointProcessGetState"] = __cuCheckpointProcessGetState - - global __cuCheckpointProcessLock - data["__cuCheckpointProcessLock"] = __cuCheckpointProcessLock - - global __cuCheckpointProcessCheckpoint - data["__cuCheckpointProcessCheckpoint"] = __cuCheckpointProcessCheckpoint - - global __cuCheckpointProcessRestore - data["__cuCheckpointProcessRestore"] = __cuCheckpointProcessRestore - - global __cuCheckpointProcessUnlock - data["__cuCheckpointProcessUnlock"] = __cuCheckpointProcessUnlock - - global __cuGraphicsEGLRegisterImage - data["__cuGraphicsEGLRegisterImage"] = __cuGraphicsEGLRegisterImage - - global __cuEGLStreamConsumerConnect - data["__cuEGLStreamConsumerConnect"] = __cuEGLStreamConsumerConnect - - global __cuEGLStreamConsumerConnectWithFlags - data["__cuEGLStreamConsumerConnectWithFlags"] = __cuEGLStreamConsumerConnectWithFlags - - global __cuEGLStreamConsumerDisconnect - data["__cuEGLStreamConsumerDisconnect"] = __cuEGLStreamConsumerDisconnect - - global __cuEGLStreamConsumerAcquireFrame - data["__cuEGLStreamConsumerAcquireFrame"] = __cuEGLStreamConsumerAcquireFrame - - global __cuEGLStreamConsumerReleaseFrame - data["__cuEGLStreamConsumerReleaseFrame"] = __cuEGLStreamConsumerReleaseFrame - - global __cuEGLStreamProducerConnect - data["__cuEGLStreamProducerConnect"] = __cuEGLStreamProducerConnect - - global __cuEGLStreamProducerDisconnect - data["__cuEGLStreamProducerDisconnect"] = __cuEGLStreamProducerDisconnect - - global __cuEGLStreamProducerPresentFrame - data["__cuEGLStreamProducerPresentFrame"] = __cuEGLStreamProducerPresentFrame - - global __cuEGLStreamProducerReturnFrame - data["__cuEGLStreamProducerReturnFrame"] = __cuEGLStreamProducerReturnFrame - - global __cuGraphicsResourceGetMappedEglFrame - data["__cuGraphicsResourceGetMappedEglFrame"] = __cuGraphicsResourceGetMappedEglFrame - - global __cuEventCreateFromEGLSync - data["__cuEventCreateFromEGLSync"] = __cuEventCreateFromEGLSync - - global __cuGraphicsGLRegisterBuffer - data["__cuGraphicsGLRegisterBuffer"] = __cuGraphicsGLRegisterBuffer - - global __cuGraphicsGLRegisterImage - data["__cuGraphicsGLRegisterImage"] = __cuGraphicsGLRegisterImage - - global __cuGLGetDevices_v2 - data["__cuGLGetDevices_v2"] = __cuGLGetDevices_v2 - - global __cuGLCtxCreate_v2 - data["__cuGLCtxCreate_v2"] = __cuGLCtxCreate_v2 - - global __cuGLInit - data["__cuGLInit"] = __cuGLInit - - global __cuGLRegisterBufferObject - data["__cuGLRegisterBufferObject"] = __cuGLRegisterBufferObject - - global __cuGLMapBufferObject_v2 - data["__cuGLMapBufferObject_v2"] = __cuGLMapBufferObject_v2 - - global __cuGLUnmapBufferObject - data["__cuGLUnmapBufferObject"] = __cuGLUnmapBufferObject - - global __cuGLUnregisterBufferObject - data["__cuGLUnregisterBufferObject"] = __cuGLUnregisterBufferObject - - global __cuGLSetBufferObjectMapFlags - data["__cuGLSetBufferObjectMapFlags"] = __cuGLSetBufferObjectMapFlags - - global __cuGLMapBufferObjectAsync_v2 - data["__cuGLMapBufferObjectAsync_v2"] = __cuGLMapBufferObjectAsync_v2 - - global __cuGLUnmapBufferObjectAsync - data["__cuGLUnmapBufferObjectAsync"] = __cuGLUnmapBufferObjectAsync - - global __cuProfilerInitialize - data["__cuProfilerInitialize"] = __cuProfilerInitialize - - global __cuProfilerStart - data["__cuProfilerStart"] = __cuProfilerStart - - global __cuProfilerStop - data["__cuProfilerStop"] = __cuProfilerStop - - global __cuVDPAUGetDevice - data["__cuVDPAUGetDevice"] = __cuVDPAUGetDevice - - global __cuVDPAUCtxCreate_v2 - data["__cuVDPAUCtxCreate_v2"] = __cuVDPAUCtxCreate_v2 - - global __cuGraphicsVDPAURegisterVideoSurface - data["__cuGraphicsVDPAURegisterVideoSurface"] = __cuGraphicsVDPAURegisterVideoSurface - - global __cuGraphicsVDPAURegisterOutputSurface - data["__cuGraphicsVDPAURegisterOutputSurface"] = __cuGraphicsVDPAURegisterOutputSurface - - global __cuDeviceGetHostAtomicCapabilities - data["__cuDeviceGetHostAtomicCapabilities"] = __cuDeviceGetHostAtomicCapabilities - - global __cuCtxGetDevice_v2 - data["__cuCtxGetDevice_v2"] = __cuCtxGetDevice_v2 - - global __cuCtxSynchronize_v2 - data["__cuCtxSynchronize_v2"] = __cuCtxSynchronize_v2 - - global __cuMemcpyBatchAsync_v2 - data["__cuMemcpyBatchAsync_v2"] = __cuMemcpyBatchAsync_v2 - - global __cuMemcpy3DBatchAsync_v2 - data["__cuMemcpy3DBatchAsync_v2"] = __cuMemcpy3DBatchAsync_v2 - - global __cuMemGetDefaultMemPool - data["__cuMemGetDefaultMemPool"] = __cuMemGetDefaultMemPool - - global __cuMemGetMemPool - data["__cuMemGetMemPool"] = __cuMemGetMemPool - - global __cuMemSetMemPool - data["__cuMemSetMemPool"] = __cuMemSetMemPool - - global __cuMemPrefetchBatchAsync - data["__cuMemPrefetchBatchAsync"] = __cuMemPrefetchBatchAsync - - global __cuMemDiscardBatchAsync - data["__cuMemDiscardBatchAsync"] = __cuMemDiscardBatchAsync - - global __cuMemDiscardAndPrefetchBatchAsync - data["__cuMemDiscardAndPrefetchBatchAsync"] = __cuMemDiscardAndPrefetchBatchAsync - - global __cuDeviceGetP2PAtomicCapabilities - data["__cuDeviceGetP2PAtomicCapabilities"] = __cuDeviceGetP2PAtomicCapabilities - - global __cuGreenCtxGetId - data["__cuGreenCtxGetId"] = __cuGreenCtxGetId - - global __cuMulticastBindMem_v2 - data["__cuMulticastBindMem_v2"] = __cuMulticastBindMem_v2 - - global __cuMulticastBindAddr_v2 - data["__cuMulticastBindAddr_v2"] = __cuMulticastBindAddr_v2 - - global __cuGraphNodeGetContainingGraph - data["__cuGraphNodeGetContainingGraph"] = __cuGraphNodeGetContainingGraph - - global __cuGraphNodeGetLocalId - data["__cuGraphNodeGetLocalId"] = __cuGraphNodeGetLocalId - - global __cuGraphNodeGetToolsId - data["__cuGraphNodeGetToolsId"] = __cuGraphNodeGetToolsId - - global __cuGraphGetId - data["__cuGraphGetId"] = __cuGraphGetId - - global __cuGraphExecGetId - data["__cuGraphExecGetId"] = __cuGraphExecGetId - - global __cuDevSmResourceSplit - data["__cuDevSmResourceSplit"] = __cuDevSmResourceSplit - - global __cuStreamGetDevResource - data["__cuStreamGetDevResource"] = __cuStreamGetDevResource - - global __cuKernelGetParamCount - data["__cuKernelGetParamCount"] = __cuKernelGetParamCount - - global __cuMemcpyWithAttributesAsync - data["__cuMemcpyWithAttributesAsync"] = __cuMemcpyWithAttributesAsync - - global __cuMemcpy3DWithAttributesAsync - data["__cuMemcpy3DWithAttributesAsync"] = __cuMemcpy3DWithAttributesAsync - - global __cuStreamBeginCaptureToCig - data["__cuStreamBeginCaptureToCig"] = __cuStreamBeginCaptureToCig - - global __cuStreamEndCaptureToCig - data["__cuStreamEndCaptureToCig"] = __cuStreamEndCaptureToCig - - global __cuFuncGetParamCount - data["__cuFuncGetParamCount"] = __cuFuncGetParamCount - - global __cuLaunchHostFunc_v2 - data["__cuLaunchHostFunc_v2"] = __cuLaunchHostFunc_v2 - - global __cuGraphNodeGetParams - data["__cuGraphNodeGetParams"] = __cuGraphNodeGetParams - - global __cuCoredumpRegisterStartCallback - data["__cuCoredumpRegisterStartCallback"] = __cuCoredumpRegisterStartCallback - - global __cuCoredumpRegisterCompleteCallback - data["__cuCoredumpRegisterCompleteCallback"] = __cuCoredumpRegisterCompleteCallback - - global __cuCoredumpDeregisterStartCallback - data["__cuCoredumpDeregisterStartCallback"] = __cuCoredumpDeregisterStartCallback - - global __cuCoredumpDeregisterCompleteCallback - data["__cuCoredumpDeregisterCompleteCallback"] = __cuCoredumpDeregisterCompleteCallback - - global __cuLogicalEndpointIdReserve - data["__cuLogicalEndpointIdReserve"] = __cuLogicalEndpointIdReserve - - global __cuLogicalEndpointIdRelease - data["__cuLogicalEndpointIdRelease"] = __cuLogicalEndpointIdRelease - - global __cuLogicalEndpointCreate - data["__cuLogicalEndpointCreate"] = __cuLogicalEndpointCreate - - global __cuLogicalEndpointAddDevice - data["__cuLogicalEndpointAddDevice"] = __cuLogicalEndpointAddDevice - - global __cuLogicalEndpointDestroy - data["__cuLogicalEndpointDestroy"] = __cuLogicalEndpointDestroy - - global __cuLogicalEndpointBindAddr - data["__cuLogicalEndpointBindAddr"] = __cuLogicalEndpointBindAddr - - global __cuLogicalEndpointBindMem - data["__cuLogicalEndpointBindMem"] = __cuLogicalEndpointBindMem - - global __cuLogicalEndpointUnbind - data["__cuLogicalEndpointUnbind"] = __cuLogicalEndpointUnbind - - global __cuLogicalEndpointExport - data["__cuLogicalEndpointExport"] = __cuLogicalEndpointExport - - global __cuLogicalEndpointImport - data["__cuLogicalEndpointImport"] = __cuLogicalEndpointImport - - global __cuLogicalEndpointGetLimits - data["__cuLogicalEndpointGetLimits"] = __cuLogicalEndpointGetLimits - - global __cuLogicalEndpointQuery - data["__cuLogicalEndpointQuery"] = __cuLogicalEndpointQuery - - global __cuStreamBeginRecaptureToGraph - data["__cuStreamBeginRecaptureToGraph"] = __cuStreamBeginRecaptureToGraph - - global __cuDeviceGetFabricClusterUuid - data["__cuDeviceGetFabricClusterUuid"] = __cuDeviceGetFabricClusterUuid - - global __cuDeviceGetCliqueCount - data["__cuDeviceGetCliqueCount"] = __cuDeviceGetCliqueCount - - global __cuDeviceGetCliqueInfo - data["__cuDeviceGetCliqueInfo"] = __cuDeviceGetCliqueInfo - - global __cuMemGetLocationInfo - data["__cuMemGetLocationInfo"] = __cuMemGetLocationInfo - - global __cuGraphAddNode_v3 - data["__cuGraphAddNode_v3"] = __cuGraphAddNode_v3 - - global __cuGraphNodeSetParams_v2 - data["__cuGraphNodeSetParams_v2"] = __cuGraphNodeSetParams_v2 - - global __cuCheckpointOperationComplete - data["__cuCheckpointOperationComplete"] = __cuCheckpointOperationComplete - - global __cuFabricCpyBatchAsync - data["__cuFabricCpyBatchAsync"] = __cuFabricCpyBatchAsync - - global __cuTensorMapSetAllocationClass - data["__cuTensorMapSetAllocationClass"] = __cuTensorMapSetAllocationClass + cdef Py_ssize_t i + for i in range(_cyb_driver_n_functions): + data['__' + _cyb_driver_names[i].decode()] = _cyb_driver_slots[i][0] _cyb_func_ptrs = data return data diff --git a/cuda_bindings_13/cuda/bindings/_internal/nvfatbin_linux.pyx b/cuda_bindings_13/cuda/bindings/_internal/nvfatbin_linux.pyx index b8bfa45c9940..8458c8cd6332 100644 --- a/cuda_bindings_13/cuda/bindings/_internal/nvfatbin_linux.pyx +++ b/cuda_bindings_13/cuda/bindings/_internal/nvfatbin_linux.pyx @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated across versions from 12.4.1 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=ee7ad44436c6350374b5c52db31ca66c2bb4d83577f805457127b51edb8d1d6b +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=8934b7f337c877db73540d82524de10847b1beb8d17b4bd86a2cd07329fc1882 # <<<< PREAMBLE CONTENT >>>> @@ -77,95 +77,35 @@ cdef void* __nvFatbinAddIndex = NULL cdef void* __nvFatbinAddReloc = NULL cdef void* __nvFatbinAddTileIR = NULL +cdef enum: _cyb_nvfatbin_n_functions = 12 +cdef void** _cyb_nvfatbin_slots[_cyb_nvfatbin_n_functions] +cdef const char* _cyb_nvfatbin_names[_cyb_nvfatbin_n_functions] +_cyb_nvfatbin_slots[0] = &__nvFatbinGetErrorString; _cyb_nvfatbin_names[0] = b'nvFatbinGetErrorString' +_cyb_nvfatbin_slots[1] = &__nvFatbinCreate; _cyb_nvfatbin_names[1] = b'nvFatbinCreate' +_cyb_nvfatbin_slots[2] = &__nvFatbinDestroy; _cyb_nvfatbin_names[2] = b'nvFatbinDestroy' +_cyb_nvfatbin_slots[3] = &__nvFatbinAddPTX; _cyb_nvfatbin_names[3] = b'nvFatbinAddPTX' +_cyb_nvfatbin_slots[4] = &__nvFatbinAddCubin; _cyb_nvfatbin_names[4] = b'nvFatbinAddCubin' +_cyb_nvfatbin_slots[5] = &__nvFatbinAddLTOIR; _cyb_nvfatbin_names[5] = b'nvFatbinAddLTOIR' +_cyb_nvfatbin_slots[6] = &__nvFatbinSize; _cyb_nvfatbin_names[6] = b'nvFatbinSize' +_cyb_nvfatbin_slots[7] = &__nvFatbinGet; _cyb_nvfatbin_names[7] = b'nvFatbinGet' +_cyb_nvfatbin_slots[8] = &__nvFatbinVersion; _cyb_nvfatbin_names[8] = b'nvFatbinVersion' +_cyb_nvfatbin_slots[9] = &__nvFatbinAddIndex; _cyb_nvfatbin_names[9] = b'nvFatbinAddIndex' +_cyb_nvfatbin_slots[10] = &__nvFatbinAddReloc; _cyb_nvfatbin_names[10] = b'nvFatbinAddReloc' +_cyb_nvfatbin_slots[11] = &__nvFatbinAddTileIR; _cyb_nvfatbin_names[11] = b'nvFatbinAddTileIR' + cdef int _init_nvfatbin() except -1 nogil: global _cyb___py_nvfatbin_init cdef void* handle = NULL + cdef Py_ssize_t i with gil, _cyb_symbol_lock: if _cyb___py_nvfatbin_init: return 0 - global __nvFatbinGetErrorString - __nvFatbinGetErrorString = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvFatbinGetErrorString') - if __nvFatbinGetErrorString == NULL: - if handle == NULL: - handle = load_library() - __nvFatbinGetErrorString = _cyb_dlsym(handle, 'nvFatbinGetErrorString') - - global __nvFatbinCreate - __nvFatbinCreate = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvFatbinCreate') - if __nvFatbinCreate == NULL: - if handle == NULL: - handle = load_library() - __nvFatbinCreate = _cyb_dlsym(handle, 'nvFatbinCreate') - - global __nvFatbinDestroy - __nvFatbinDestroy = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvFatbinDestroy') - if __nvFatbinDestroy == NULL: - if handle == NULL: - handle = load_library() - __nvFatbinDestroy = _cyb_dlsym(handle, 'nvFatbinDestroy') - - global __nvFatbinAddPTX - __nvFatbinAddPTX = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvFatbinAddPTX') - if __nvFatbinAddPTX == NULL: - if handle == NULL: - handle = load_library() - __nvFatbinAddPTX = _cyb_dlsym(handle, 'nvFatbinAddPTX') - - global __nvFatbinAddCubin - __nvFatbinAddCubin = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvFatbinAddCubin') - if __nvFatbinAddCubin == NULL: - if handle == NULL: - handle = load_library() - __nvFatbinAddCubin = _cyb_dlsym(handle, 'nvFatbinAddCubin') - - global __nvFatbinAddLTOIR - __nvFatbinAddLTOIR = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvFatbinAddLTOIR') - if __nvFatbinAddLTOIR == NULL: - if handle == NULL: - handle = load_library() - __nvFatbinAddLTOIR = _cyb_dlsym(handle, 'nvFatbinAddLTOIR') - - global __nvFatbinSize - __nvFatbinSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvFatbinSize') - if __nvFatbinSize == NULL: - if handle == NULL: - handle = load_library() - __nvFatbinSize = _cyb_dlsym(handle, 'nvFatbinSize') - - global __nvFatbinGet - __nvFatbinGet = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvFatbinGet') - if __nvFatbinGet == NULL: - if handle == NULL: - handle = load_library() - __nvFatbinGet = _cyb_dlsym(handle, 'nvFatbinGet') - - global __nvFatbinVersion - __nvFatbinVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvFatbinVersion') - if __nvFatbinVersion == NULL: - if handle == NULL: - handle = load_library() - __nvFatbinVersion = _cyb_dlsym(handle, 'nvFatbinVersion') - - global __nvFatbinAddIndex - __nvFatbinAddIndex = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvFatbinAddIndex') - if __nvFatbinAddIndex == NULL: - if handle == NULL: - handle = load_library() - __nvFatbinAddIndex = _cyb_dlsym(handle, 'nvFatbinAddIndex') - - global __nvFatbinAddReloc - __nvFatbinAddReloc = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvFatbinAddReloc') - if __nvFatbinAddReloc == NULL: - if handle == NULL: - handle = load_library() - __nvFatbinAddReloc = _cyb_dlsym(handle, 'nvFatbinAddReloc') - - global __nvFatbinAddTileIR - __nvFatbinAddTileIR = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvFatbinAddTileIR') - if __nvFatbinAddTileIR == NULL: - if handle == NULL: - handle = load_library() - __nvFatbinAddTileIR = _cyb_dlsym(handle, 'nvFatbinAddTileIR') + for i in range(_cyb_nvfatbin_n_functions): + _cyb_nvfatbin_slots[i][0] = _cyb_dlsym(_cyb_RTLD_DEFAULT, _cyb_nvfatbin_names[i]) + if _cyb_nvfatbin_slots[i][0] == NULL: + if handle == NULL: + handle = load_library() + _cyb_nvfatbin_slots[i][0] = _cyb_dlsym(handle, _cyb_nvfatbin_names[i]) _cyb_atomic_int_store(&_cyb___py_nvfatbin_init, 1) return 0 @@ -184,41 +124,9 @@ cpdef dict _inspect_function_pointers(): _check_or_init_nvfatbin() cdef dict data = {} - global __nvFatbinGetErrorString - data["__nvFatbinGetErrorString"] = __nvFatbinGetErrorString - - global __nvFatbinCreate - data["__nvFatbinCreate"] = __nvFatbinCreate - - global __nvFatbinDestroy - data["__nvFatbinDestroy"] = __nvFatbinDestroy - - global __nvFatbinAddPTX - data["__nvFatbinAddPTX"] = __nvFatbinAddPTX - - global __nvFatbinAddCubin - data["__nvFatbinAddCubin"] = __nvFatbinAddCubin - - global __nvFatbinAddLTOIR - data["__nvFatbinAddLTOIR"] = __nvFatbinAddLTOIR - - global __nvFatbinSize - data["__nvFatbinSize"] = __nvFatbinSize - - global __nvFatbinGet - data["__nvFatbinGet"] = __nvFatbinGet - - global __nvFatbinVersion - data["__nvFatbinVersion"] = __nvFatbinVersion - - global __nvFatbinAddIndex - data["__nvFatbinAddIndex"] = __nvFatbinAddIndex - - global __nvFatbinAddReloc - data["__nvFatbinAddReloc"] = __nvFatbinAddReloc - - global __nvFatbinAddTileIR - data["__nvFatbinAddTileIR"] = __nvFatbinAddTileIR + cdef Py_ssize_t i + for i in range(_cyb_nvfatbin_n_functions): + data['__' + _cyb_nvfatbin_names[i].decode()] = _cyb_nvfatbin_slots[i][0] _cyb_func_ptrs = data return data diff --git a/cuda_bindings_13/cuda/bindings/_internal/nvfatbin_windows.pyx b/cuda_bindings_13/cuda/bindings/_internal/nvfatbin_windows.pyx index 184ec635e522..e0144d55a379 100644 --- a/cuda_bindings_13/cuda/bindings/_internal/nvfatbin_windows.pyx +++ b/cuda_bindings_13/cuda/bindings/_internal/nvfatbin_windows.pyx @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated across versions from 12.4.1 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=6156b0629deca180ced793acd420ff65b545a87ae0c537f32d526a9302ff735f +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=6181cdeb35d8ffd970e30339adfb9eb8d5e05bee58a4b5c1f46388823d424f52 # <<<< PREAMBLE CONTENT >>>> @@ -77,50 +77,34 @@ cdef void* __nvFatbinAddIndex = NULL cdef void* __nvFatbinAddReloc = NULL cdef void* __nvFatbinAddTileIR = NULL +cdef enum: _cyb_nvfatbin_n_functions = 12 +cdef void** _cyb_nvfatbin_slots[_cyb_nvfatbin_n_functions] +cdef const char* _cyb_nvfatbin_names[_cyb_nvfatbin_n_functions] +_cyb_nvfatbin_slots[0] = &__nvFatbinGetErrorString; _cyb_nvfatbin_names[0] = b'nvFatbinGetErrorString' +_cyb_nvfatbin_slots[1] = &__nvFatbinCreate; _cyb_nvfatbin_names[1] = b'nvFatbinCreate' +_cyb_nvfatbin_slots[2] = &__nvFatbinDestroy; _cyb_nvfatbin_names[2] = b'nvFatbinDestroy' +_cyb_nvfatbin_slots[3] = &__nvFatbinAddPTX; _cyb_nvfatbin_names[3] = b'nvFatbinAddPTX' +_cyb_nvfatbin_slots[4] = &__nvFatbinAddCubin; _cyb_nvfatbin_names[4] = b'nvFatbinAddCubin' +_cyb_nvfatbin_slots[5] = &__nvFatbinAddLTOIR; _cyb_nvfatbin_names[5] = b'nvFatbinAddLTOIR' +_cyb_nvfatbin_slots[6] = &__nvFatbinSize; _cyb_nvfatbin_names[6] = b'nvFatbinSize' +_cyb_nvfatbin_slots[7] = &__nvFatbinGet; _cyb_nvfatbin_names[7] = b'nvFatbinGet' +_cyb_nvfatbin_slots[8] = &__nvFatbinVersion; _cyb_nvfatbin_names[8] = b'nvFatbinVersion' +_cyb_nvfatbin_slots[9] = &__nvFatbinAddIndex; _cyb_nvfatbin_names[9] = b'nvFatbinAddIndex' +_cyb_nvfatbin_slots[10] = &__nvFatbinAddReloc; _cyb_nvfatbin_names[10] = b'nvFatbinAddReloc' +_cyb_nvfatbin_slots[11] = &__nvFatbinAddTileIR; _cyb_nvfatbin_names[11] = b'nvFatbinAddTileIR' + cdef int _init_nvfatbin() except -1 nogil: global _cyb___py_nvfatbin_init cdef int err cdef uintptr_t handle + cdef Py_ssize_t i with gil, _cyb_symbol_lock: if _cyb___py_nvfatbin_init: return 0 handle = load_library() - global __nvFatbinGetErrorString - __nvFatbinGetErrorString = _cyb_GetProcAddress(handle, 'nvFatbinGetErrorString') - - global __nvFatbinCreate - __nvFatbinCreate = _cyb_GetProcAddress(handle, 'nvFatbinCreate') - - global __nvFatbinDestroy - __nvFatbinDestroy = _cyb_GetProcAddress(handle, 'nvFatbinDestroy') - - global __nvFatbinAddPTX - __nvFatbinAddPTX = _cyb_GetProcAddress(handle, 'nvFatbinAddPTX') - - global __nvFatbinAddCubin - __nvFatbinAddCubin = _cyb_GetProcAddress(handle, 'nvFatbinAddCubin') - - global __nvFatbinAddLTOIR - __nvFatbinAddLTOIR = _cyb_GetProcAddress(handle, 'nvFatbinAddLTOIR') - - global __nvFatbinSize - __nvFatbinSize = _cyb_GetProcAddress(handle, 'nvFatbinSize') - - global __nvFatbinGet - __nvFatbinGet = _cyb_GetProcAddress(handle, 'nvFatbinGet') - - global __nvFatbinVersion - __nvFatbinVersion = _cyb_GetProcAddress(handle, 'nvFatbinVersion') - - global __nvFatbinAddIndex - __nvFatbinAddIndex = _cyb_GetProcAddress(handle, 'nvFatbinAddIndex') - - global __nvFatbinAddReloc - __nvFatbinAddReloc = _cyb_GetProcAddress(handle, 'nvFatbinAddReloc') - - global __nvFatbinAddTileIR - __nvFatbinAddTileIR = _cyb_GetProcAddress(handle, 'nvFatbinAddTileIR') + for i in range(_cyb_nvfatbin_n_functions): + _cyb_nvfatbin_slots[i][0] = _cyb_GetProcAddress(handle, _cyb_nvfatbin_names[i]) _cyb_atomic_int_store(&_cyb___py_nvfatbin_init, 1) return 0 @@ -139,41 +123,9 @@ cpdef dict _inspect_function_pointers(): _check_or_init_nvfatbin() cdef dict data = {} - global __nvFatbinGetErrorString - data["__nvFatbinGetErrorString"] = __nvFatbinGetErrorString - - global __nvFatbinCreate - data["__nvFatbinCreate"] = __nvFatbinCreate - - global __nvFatbinDestroy - data["__nvFatbinDestroy"] = __nvFatbinDestroy - - global __nvFatbinAddPTX - data["__nvFatbinAddPTX"] = __nvFatbinAddPTX - - global __nvFatbinAddCubin - data["__nvFatbinAddCubin"] = __nvFatbinAddCubin - - global __nvFatbinAddLTOIR - data["__nvFatbinAddLTOIR"] = __nvFatbinAddLTOIR - - global __nvFatbinSize - data["__nvFatbinSize"] = __nvFatbinSize - - global __nvFatbinGet - data["__nvFatbinGet"] = __nvFatbinGet - - global __nvFatbinVersion - data["__nvFatbinVersion"] = __nvFatbinVersion - - global __nvFatbinAddIndex - data["__nvFatbinAddIndex"] = __nvFatbinAddIndex - - global __nvFatbinAddReloc - data["__nvFatbinAddReloc"] = __nvFatbinAddReloc - - global __nvFatbinAddTileIR - data["__nvFatbinAddTileIR"] = __nvFatbinAddTileIR + cdef Py_ssize_t i + for i in range(_cyb_nvfatbin_n_functions): + data['__' + _cyb_nvfatbin_names[i].decode()] = _cyb_nvfatbin_slots[i][0] _cyb_func_ptrs = data return data diff --git a/cuda_bindings_13/cuda/bindings/_internal/nvjitlink_linux.pyx b/cuda_bindings_13/cuda/bindings/_internal/nvjitlink_linux.pyx index e111a388264c..c8273905e512 100644 --- a/cuda_bindings_13/cuda/bindings/_internal/nvjitlink_linux.pyx +++ b/cuda_bindings_13/cuda/bindings/_internal/nvjitlink_linux.pyx @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated across versions from 12.0.1 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=2431782fe8a19bbf3a3b31a80cf2a59526361ea4c3961f17c635000bdba5a1b7 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=61060e81e509d327cb18d44b6e814164bb217d277af9a29d42708989acddee28 # <<<< PREAMBLE CONTENT >>>> @@ -84,123 +84,39 @@ cdef void* __nvJitLinkVersion = NULL cdef void* __nvJitLinkGetLinkedLTOIRSize = NULL cdef void* __nvJitLinkGetLinkedLTOIR = NULL +cdef enum: _cyb_nvjitlink_n_functions = 16 +cdef void** _cyb_nvjitlink_slots[_cyb_nvjitlink_n_functions] +cdef const char* _cyb_nvjitlink_names[_cyb_nvjitlink_n_functions] +_cyb_nvjitlink_slots[0] = &__nvJitLinkCreate; _cyb_nvjitlink_names[0] = b'nvJitLinkCreate' +_cyb_nvjitlink_slots[1] = &__nvJitLinkDestroy; _cyb_nvjitlink_names[1] = b'nvJitLinkDestroy' +_cyb_nvjitlink_slots[2] = &__nvJitLinkAddData; _cyb_nvjitlink_names[2] = b'nvJitLinkAddData' +_cyb_nvjitlink_slots[3] = &__nvJitLinkAddFile; _cyb_nvjitlink_names[3] = b'nvJitLinkAddFile' +_cyb_nvjitlink_slots[4] = &__nvJitLinkComplete; _cyb_nvjitlink_names[4] = b'nvJitLinkComplete' +_cyb_nvjitlink_slots[5] = &__nvJitLinkGetLinkedCubinSize; _cyb_nvjitlink_names[5] = b'nvJitLinkGetLinkedCubinSize' +_cyb_nvjitlink_slots[6] = &__nvJitLinkGetLinkedCubin; _cyb_nvjitlink_names[6] = b'nvJitLinkGetLinkedCubin' +_cyb_nvjitlink_slots[7] = &__nvJitLinkGetLinkedPtxSize; _cyb_nvjitlink_names[7] = b'nvJitLinkGetLinkedPtxSize' +_cyb_nvjitlink_slots[8] = &__nvJitLinkGetLinkedPtx; _cyb_nvjitlink_names[8] = b'nvJitLinkGetLinkedPtx' +_cyb_nvjitlink_slots[9] = &__nvJitLinkGetErrorLogSize; _cyb_nvjitlink_names[9] = b'nvJitLinkGetErrorLogSize' +_cyb_nvjitlink_slots[10] = &__nvJitLinkGetErrorLog; _cyb_nvjitlink_names[10] = b'nvJitLinkGetErrorLog' +_cyb_nvjitlink_slots[11] = &__nvJitLinkGetInfoLogSize; _cyb_nvjitlink_names[11] = b'nvJitLinkGetInfoLogSize' +_cyb_nvjitlink_slots[12] = &__nvJitLinkGetInfoLog; _cyb_nvjitlink_names[12] = b'nvJitLinkGetInfoLog' +_cyb_nvjitlink_slots[13] = &__nvJitLinkVersion; _cyb_nvjitlink_names[13] = b'nvJitLinkVersion' +_cyb_nvjitlink_slots[14] = &__nvJitLinkGetLinkedLTOIRSize; _cyb_nvjitlink_names[14] = b'nvJitLinkGetLinkedLTOIRSize' +_cyb_nvjitlink_slots[15] = &__nvJitLinkGetLinkedLTOIR; _cyb_nvjitlink_names[15] = b'nvJitLinkGetLinkedLTOIR' + cdef int _init_nvjitlink() except -1 nogil: global _cyb___py_nvjitlink_init cdef void* handle = NULL + cdef Py_ssize_t i with gil, _cyb_symbol_lock: if _cyb___py_nvjitlink_init: return 0 - global __nvJitLinkCreate - __nvJitLinkCreate = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkCreate') - if __nvJitLinkCreate == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkCreate = _cyb_dlsym(handle, 'nvJitLinkCreate') - - global __nvJitLinkDestroy - __nvJitLinkDestroy = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkDestroy') - if __nvJitLinkDestroy == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkDestroy = _cyb_dlsym(handle, 'nvJitLinkDestroy') - - global __nvJitLinkAddData - __nvJitLinkAddData = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkAddData') - if __nvJitLinkAddData == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkAddData = _cyb_dlsym(handle, 'nvJitLinkAddData') - - global __nvJitLinkAddFile - __nvJitLinkAddFile = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkAddFile') - if __nvJitLinkAddFile == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkAddFile = _cyb_dlsym(handle, 'nvJitLinkAddFile') - - global __nvJitLinkComplete - __nvJitLinkComplete = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkComplete') - if __nvJitLinkComplete == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkComplete = _cyb_dlsym(handle, 'nvJitLinkComplete') - - global __nvJitLinkGetLinkedCubinSize - __nvJitLinkGetLinkedCubinSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkGetLinkedCubinSize') - if __nvJitLinkGetLinkedCubinSize == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkGetLinkedCubinSize = _cyb_dlsym(handle, 'nvJitLinkGetLinkedCubinSize') - - global __nvJitLinkGetLinkedCubin - __nvJitLinkGetLinkedCubin = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkGetLinkedCubin') - if __nvJitLinkGetLinkedCubin == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkGetLinkedCubin = _cyb_dlsym(handle, 'nvJitLinkGetLinkedCubin') - - global __nvJitLinkGetLinkedPtxSize - __nvJitLinkGetLinkedPtxSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkGetLinkedPtxSize') - if __nvJitLinkGetLinkedPtxSize == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkGetLinkedPtxSize = _cyb_dlsym(handle, 'nvJitLinkGetLinkedPtxSize') - - global __nvJitLinkGetLinkedPtx - __nvJitLinkGetLinkedPtx = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkGetLinkedPtx') - if __nvJitLinkGetLinkedPtx == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkGetLinkedPtx = _cyb_dlsym(handle, 'nvJitLinkGetLinkedPtx') - - global __nvJitLinkGetErrorLogSize - __nvJitLinkGetErrorLogSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkGetErrorLogSize') - if __nvJitLinkGetErrorLogSize == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkGetErrorLogSize = _cyb_dlsym(handle, 'nvJitLinkGetErrorLogSize') - - global __nvJitLinkGetErrorLog - __nvJitLinkGetErrorLog = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkGetErrorLog') - if __nvJitLinkGetErrorLog == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkGetErrorLog = _cyb_dlsym(handle, 'nvJitLinkGetErrorLog') - - global __nvJitLinkGetInfoLogSize - __nvJitLinkGetInfoLogSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkGetInfoLogSize') - if __nvJitLinkGetInfoLogSize == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkGetInfoLogSize = _cyb_dlsym(handle, 'nvJitLinkGetInfoLogSize') - - global __nvJitLinkGetInfoLog - __nvJitLinkGetInfoLog = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkGetInfoLog') - if __nvJitLinkGetInfoLog == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkGetInfoLog = _cyb_dlsym(handle, 'nvJitLinkGetInfoLog') - - global __nvJitLinkVersion - __nvJitLinkVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkVersion') - if __nvJitLinkVersion == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkVersion = _cyb_dlsym(handle, 'nvJitLinkVersion') - - global __nvJitLinkGetLinkedLTOIRSize - __nvJitLinkGetLinkedLTOIRSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkGetLinkedLTOIRSize') - if __nvJitLinkGetLinkedLTOIRSize == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkGetLinkedLTOIRSize = _cyb_dlsym(handle, 'nvJitLinkGetLinkedLTOIRSize') - - global __nvJitLinkGetLinkedLTOIR - __nvJitLinkGetLinkedLTOIR = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkGetLinkedLTOIR') - if __nvJitLinkGetLinkedLTOIR == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkGetLinkedLTOIR = _cyb_dlsym(handle, 'nvJitLinkGetLinkedLTOIR') + for i in range(_cyb_nvjitlink_n_functions): + _cyb_nvjitlink_slots[i][0] = _cyb_dlsym(_cyb_RTLD_DEFAULT, _cyb_nvjitlink_names[i]) + if _cyb_nvjitlink_slots[i][0] == NULL: + if handle == NULL: + handle = load_library() + _cyb_nvjitlink_slots[i][0] = _cyb_dlsym(handle, _cyb_nvjitlink_names[i]) _cyb_atomic_int_store(&_cyb___py_nvjitlink_init, 1) return 0 @@ -219,53 +135,9 @@ cpdef dict _inspect_function_pointers(): _check_or_init_nvjitlink() cdef dict data = {} - global __nvJitLinkCreate - data["__nvJitLinkCreate"] = __nvJitLinkCreate - - global __nvJitLinkDestroy - data["__nvJitLinkDestroy"] = __nvJitLinkDestroy - - global __nvJitLinkAddData - data["__nvJitLinkAddData"] = __nvJitLinkAddData - - global __nvJitLinkAddFile - data["__nvJitLinkAddFile"] = __nvJitLinkAddFile - - global __nvJitLinkComplete - data["__nvJitLinkComplete"] = __nvJitLinkComplete - - global __nvJitLinkGetLinkedCubinSize - data["__nvJitLinkGetLinkedCubinSize"] = __nvJitLinkGetLinkedCubinSize - - global __nvJitLinkGetLinkedCubin - data["__nvJitLinkGetLinkedCubin"] = __nvJitLinkGetLinkedCubin - - global __nvJitLinkGetLinkedPtxSize - data["__nvJitLinkGetLinkedPtxSize"] = __nvJitLinkGetLinkedPtxSize - - global __nvJitLinkGetLinkedPtx - data["__nvJitLinkGetLinkedPtx"] = __nvJitLinkGetLinkedPtx - - global __nvJitLinkGetErrorLogSize - data["__nvJitLinkGetErrorLogSize"] = __nvJitLinkGetErrorLogSize - - global __nvJitLinkGetErrorLog - data["__nvJitLinkGetErrorLog"] = __nvJitLinkGetErrorLog - - global __nvJitLinkGetInfoLogSize - data["__nvJitLinkGetInfoLogSize"] = __nvJitLinkGetInfoLogSize - - global __nvJitLinkGetInfoLog - data["__nvJitLinkGetInfoLog"] = __nvJitLinkGetInfoLog - - global __nvJitLinkVersion - data["__nvJitLinkVersion"] = __nvJitLinkVersion - - global __nvJitLinkGetLinkedLTOIRSize - data["__nvJitLinkGetLinkedLTOIRSize"] = __nvJitLinkGetLinkedLTOIRSize - - global __nvJitLinkGetLinkedLTOIR - data["__nvJitLinkGetLinkedLTOIR"] = __nvJitLinkGetLinkedLTOIR + cdef Py_ssize_t i + for i in range(_cyb_nvjitlink_n_functions): + data['__' + _cyb_nvjitlink_names[i].decode()] = _cyb_nvjitlink_slots[i][0] _cyb_func_ptrs = data return data diff --git a/cuda_bindings_13/cuda/bindings/_internal/nvjitlink_windows.pyx b/cuda_bindings_13/cuda/bindings/_internal/nvjitlink_windows.pyx index 734225fc1f05..8e7c87d62593 100644 --- a/cuda_bindings_13/cuda/bindings/_internal/nvjitlink_windows.pyx +++ b/cuda_bindings_13/cuda/bindings/_internal/nvjitlink_windows.pyx @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated across versions from 12.0.1 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=270522778c3ffb7ae74b92961fe742afb6c41e96604b97bea7478ce71a554b81 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=75640ee43762d0c259e6720c8d80bafbc5ba178a32133367cf31f2a21d828c6d # <<<< PREAMBLE CONTENT >>>> @@ -82,62 +82,38 @@ cdef void* __nvJitLinkVersion = NULL cdef void* __nvJitLinkGetLinkedLTOIRSize = NULL cdef void* __nvJitLinkGetLinkedLTOIR = NULL +cdef enum: _cyb_nvjitlink_n_functions = 16 +cdef void** _cyb_nvjitlink_slots[_cyb_nvjitlink_n_functions] +cdef const char* _cyb_nvjitlink_names[_cyb_nvjitlink_n_functions] +_cyb_nvjitlink_slots[0] = &__nvJitLinkCreate; _cyb_nvjitlink_names[0] = b'nvJitLinkCreate' +_cyb_nvjitlink_slots[1] = &__nvJitLinkDestroy; _cyb_nvjitlink_names[1] = b'nvJitLinkDestroy' +_cyb_nvjitlink_slots[2] = &__nvJitLinkAddData; _cyb_nvjitlink_names[2] = b'nvJitLinkAddData' +_cyb_nvjitlink_slots[3] = &__nvJitLinkAddFile; _cyb_nvjitlink_names[3] = b'nvJitLinkAddFile' +_cyb_nvjitlink_slots[4] = &__nvJitLinkComplete; _cyb_nvjitlink_names[4] = b'nvJitLinkComplete' +_cyb_nvjitlink_slots[5] = &__nvJitLinkGetLinkedCubinSize; _cyb_nvjitlink_names[5] = b'nvJitLinkGetLinkedCubinSize' +_cyb_nvjitlink_slots[6] = &__nvJitLinkGetLinkedCubin; _cyb_nvjitlink_names[6] = b'nvJitLinkGetLinkedCubin' +_cyb_nvjitlink_slots[7] = &__nvJitLinkGetLinkedPtxSize; _cyb_nvjitlink_names[7] = b'nvJitLinkGetLinkedPtxSize' +_cyb_nvjitlink_slots[8] = &__nvJitLinkGetLinkedPtx; _cyb_nvjitlink_names[8] = b'nvJitLinkGetLinkedPtx' +_cyb_nvjitlink_slots[9] = &__nvJitLinkGetErrorLogSize; _cyb_nvjitlink_names[9] = b'nvJitLinkGetErrorLogSize' +_cyb_nvjitlink_slots[10] = &__nvJitLinkGetErrorLog; _cyb_nvjitlink_names[10] = b'nvJitLinkGetErrorLog' +_cyb_nvjitlink_slots[11] = &__nvJitLinkGetInfoLogSize; _cyb_nvjitlink_names[11] = b'nvJitLinkGetInfoLogSize' +_cyb_nvjitlink_slots[12] = &__nvJitLinkGetInfoLog; _cyb_nvjitlink_names[12] = b'nvJitLinkGetInfoLog' +_cyb_nvjitlink_slots[13] = &__nvJitLinkVersion; _cyb_nvjitlink_names[13] = b'nvJitLinkVersion' +_cyb_nvjitlink_slots[14] = &__nvJitLinkGetLinkedLTOIRSize; _cyb_nvjitlink_names[14] = b'nvJitLinkGetLinkedLTOIRSize' +_cyb_nvjitlink_slots[15] = &__nvJitLinkGetLinkedLTOIR; _cyb_nvjitlink_names[15] = b'nvJitLinkGetLinkedLTOIR' + cdef int _init_nvjitlink() except -1 nogil: global _cyb___py_nvjitlink_init cdef int err cdef uintptr_t handle + cdef Py_ssize_t i with gil, _cyb_symbol_lock: if _cyb___py_nvjitlink_init: return 0 handle = load_library() - global __nvJitLinkCreate - __nvJitLinkCreate = _cyb_GetProcAddress(handle, 'nvJitLinkCreate') - - global __nvJitLinkDestroy - __nvJitLinkDestroy = _cyb_GetProcAddress(handle, 'nvJitLinkDestroy') - - global __nvJitLinkAddData - __nvJitLinkAddData = _cyb_GetProcAddress(handle, 'nvJitLinkAddData') - - global __nvJitLinkAddFile - __nvJitLinkAddFile = _cyb_GetProcAddress(handle, 'nvJitLinkAddFile') - - global __nvJitLinkComplete - __nvJitLinkComplete = _cyb_GetProcAddress(handle, 'nvJitLinkComplete') - - global __nvJitLinkGetLinkedCubinSize - __nvJitLinkGetLinkedCubinSize = _cyb_GetProcAddress(handle, 'nvJitLinkGetLinkedCubinSize') - - global __nvJitLinkGetLinkedCubin - __nvJitLinkGetLinkedCubin = _cyb_GetProcAddress(handle, 'nvJitLinkGetLinkedCubin') - - global __nvJitLinkGetLinkedPtxSize - __nvJitLinkGetLinkedPtxSize = _cyb_GetProcAddress(handle, 'nvJitLinkGetLinkedPtxSize') - - global __nvJitLinkGetLinkedPtx - __nvJitLinkGetLinkedPtx = _cyb_GetProcAddress(handle, 'nvJitLinkGetLinkedPtx') - - global __nvJitLinkGetErrorLogSize - __nvJitLinkGetErrorLogSize = _cyb_GetProcAddress(handle, 'nvJitLinkGetErrorLogSize') - - global __nvJitLinkGetErrorLog - __nvJitLinkGetErrorLog = _cyb_GetProcAddress(handle, 'nvJitLinkGetErrorLog') - - global __nvJitLinkGetInfoLogSize - __nvJitLinkGetInfoLogSize = _cyb_GetProcAddress(handle, 'nvJitLinkGetInfoLogSize') - - global __nvJitLinkGetInfoLog - __nvJitLinkGetInfoLog = _cyb_GetProcAddress(handle, 'nvJitLinkGetInfoLog') - - global __nvJitLinkVersion - __nvJitLinkVersion = _cyb_GetProcAddress(handle, 'nvJitLinkVersion') - - global __nvJitLinkGetLinkedLTOIRSize - __nvJitLinkGetLinkedLTOIRSize = _cyb_GetProcAddress(handle, 'nvJitLinkGetLinkedLTOIRSize') - - global __nvJitLinkGetLinkedLTOIR - __nvJitLinkGetLinkedLTOIR = _cyb_GetProcAddress(handle, 'nvJitLinkGetLinkedLTOIR') + for i in range(_cyb_nvjitlink_n_functions): + _cyb_nvjitlink_slots[i][0] = _cyb_GetProcAddress(handle, _cyb_nvjitlink_names[i]) _cyb_atomic_int_store(&_cyb___py_nvjitlink_init, 1) return 0 @@ -156,53 +132,9 @@ cpdef dict _inspect_function_pointers(): _check_or_init_nvjitlink() cdef dict data = {} - global __nvJitLinkCreate - data["__nvJitLinkCreate"] = __nvJitLinkCreate - - global __nvJitLinkDestroy - data["__nvJitLinkDestroy"] = __nvJitLinkDestroy - - global __nvJitLinkAddData - data["__nvJitLinkAddData"] = __nvJitLinkAddData - - global __nvJitLinkAddFile - data["__nvJitLinkAddFile"] = __nvJitLinkAddFile - - global __nvJitLinkComplete - data["__nvJitLinkComplete"] = __nvJitLinkComplete - - global __nvJitLinkGetLinkedCubinSize - data["__nvJitLinkGetLinkedCubinSize"] = __nvJitLinkGetLinkedCubinSize - - global __nvJitLinkGetLinkedCubin - data["__nvJitLinkGetLinkedCubin"] = __nvJitLinkGetLinkedCubin - - global __nvJitLinkGetLinkedPtxSize - data["__nvJitLinkGetLinkedPtxSize"] = __nvJitLinkGetLinkedPtxSize - - global __nvJitLinkGetLinkedPtx - data["__nvJitLinkGetLinkedPtx"] = __nvJitLinkGetLinkedPtx - - global __nvJitLinkGetErrorLogSize - data["__nvJitLinkGetErrorLogSize"] = __nvJitLinkGetErrorLogSize - - global __nvJitLinkGetErrorLog - data["__nvJitLinkGetErrorLog"] = __nvJitLinkGetErrorLog - - global __nvJitLinkGetInfoLogSize - data["__nvJitLinkGetInfoLogSize"] = __nvJitLinkGetInfoLogSize - - global __nvJitLinkGetInfoLog - data["__nvJitLinkGetInfoLog"] = __nvJitLinkGetInfoLog - - global __nvJitLinkVersion - data["__nvJitLinkVersion"] = __nvJitLinkVersion - - global __nvJitLinkGetLinkedLTOIRSize - data["__nvJitLinkGetLinkedLTOIRSize"] = __nvJitLinkGetLinkedLTOIRSize - - global __nvJitLinkGetLinkedLTOIR - data["__nvJitLinkGetLinkedLTOIR"] = __nvJitLinkGetLinkedLTOIR + cdef Py_ssize_t i + for i in range(_cyb_nvjitlink_n_functions): + data['__' + _cyb_nvjitlink_names[i].decode()] = _cyb_nvjitlink_slots[i][0] _cyb_func_ptrs = data return data diff --git a/cuda_bindings_13/cuda/bindings/_internal/nvml_linux.pyx b/cuda_bindings_13/cuda/bindings/_internal/nvml_linux.pyx index 2bf779719536..d44f0d69c8ba 100644 --- a/cuda_bindings_13/cuda/bindings/_internal/nvml_linux.pyx +++ b/cuda_bindings_13/cuda/bindings/_internal/nvml_linux.pyx @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated across versions from 12.9.1 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=589b797dba719fa1bd4ef7aaea9924fcd57ac9582373b2b48866c0609680266c +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=5f17ea23ec5cd82621614d664bfddb8c7cb48a59dedab4f94d090f5ed88fc43b # <<<< PREAMBLE CONTENT >>>> @@ -443,2657 +443,401 @@ cdef void* __nvmlDeviceLockNvlinkRemapTable_v1 = NULL cdef void* __nvmlDeviceSetupNvlinkNvleEncryptionKey_v1 = NULL cdef void* __nvmlDeviceGetNvlinkNvlePrivateInfo_v1 = NULL +cdef enum: _cyb_nvml_n_functions = 378 +cdef void** _cyb_nvml_slots[_cyb_nvml_n_functions] +cdef const char* _cyb_nvml_names[_cyb_nvml_n_functions] +_cyb_nvml_slots[0] = &__nvmlInit_v2; _cyb_nvml_names[0] = b'nvmlInit_v2' +_cyb_nvml_slots[1] = &__nvmlInitWithFlags; _cyb_nvml_names[1] = b'nvmlInitWithFlags' +_cyb_nvml_slots[2] = &__nvmlShutdown; _cyb_nvml_names[2] = b'nvmlShutdown' +_cyb_nvml_slots[3] = &__nvmlErrorString; _cyb_nvml_names[3] = b'nvmlErrorString' +_cyb_nvml_slots[4] = &__nvmlSystemGetDriverVersion; _cyb_nvml_names[4] = b'nvmlSystemGetDriverVersion' +_cyb_nvml_slots[5] = &__nvmlSystemGetNVMLVersion; _cyb_nvml_names[5] = b'nvmlSystemGetNVMLVersion' +_cyb_nvml_slots[6] = &__nvmlSystemGetCudaDriverVersion; _cyb_nvml_names[6] = b'nvmlSystemGetCudaDriverVersion' +_cyb_nvml_slots[7] = &__nvmlSystemGetCudaDriverVersion_v2; _cyb_nvml_names[7] = b'nvmlSystemGetCudaDriverVersion_v2' +_cyb_nvml_slots[8] = &__nvmlSystemGetProcessName; _cyb_nvml_names[8] = b'nvmlSystemGetProcessName' +_cyb_nvml_slots[9] = &__nvmlSystemGetHicVersion; _cyb_nvml_names[9] = b'nvmlSystemGetHicVersion' +_cyb_nvml_slots[10] = &__nvmlSystemGetTopologyGpuSet; _cyb_nvml_names[10] = b'nvmlSystemGetTopologyGpuSet' +_cyb_nvml_slots[11] = &__nvmlSystemGetDriverBranch; _cyb_nvml_names[11] = b'nvmlSystemGetDriverBranch' +_cyb_nvml_slots[12] = &__nvmlUnitGetCount; _cyb_nvml_names[12] = b'nvmlUnitGetCount' +_cyb_nvml_slots[13] = &__nvmlUnitGetHandleByIndex; _cyb_nvml_names[13] = b'nvmlUnitGetHandleByIndex' +_cyb_nvml_slots[14] = &__nvmlUnitGetUnitInfo; _cyb_nvml_names[14] = b'nvmlUnitGetUnitInfo' +_cyb_nvml_slots[15] = &__nvmlUnitGetLedState; _cyb_nvml_names[15] = b'nvmlUnitGetLedState' +_cyb_nvml_slots[16] = &__nvmlUnitGetPsuInfo; _cyb_nvml_names[16] = b'nvmlUnitGetPsuInfo' +_cyb_nvml_slots[17] = &__nvmlUnitGetTemperature; _cyb_nvml_names[17] = b'nvmlUnitGetTemperature' +_cyb_nvml_slots[18] = &__nvmlUnitGetFanSpeedInfo; _cyb_nvml_names[18] = b'nvmlUnitGetFanSpeedInfo' +_cyb_nvml_slots[19] = &__nvmlUnitGetDevices; _cyb_nvml_names[19] = b'nvmlUnitGetDevices' +_cyb_nvml_slots[20] = &__nvmlDeviceGetCount_v2; _cyb_nvml_names[20] = b'nvmlDeviceGetCount_v2' +_cyb_nvml_slots[21] = &__nvmlDeviceGetAttributes_v2; _cyb_nvml_names[21] = b'nvmlDeviceGetAttributes_v2' +_cyb_nvml_slots[22] = &__nvmlDeviceGetHandleByIndex_v2; _cyb_nvml_names[22] = b'nvmlDeviceGetHandleByIndex_v2' +_cyb_nvml_slots[23] = &__nvmlDeviceGetHandleBySerial; _cyb_nvml_names[23] = b'nvmlDeviceGetHandleBySerial' +_cyb_nvml_slots[24] = &__nvmlDeviceGetHandleByUUID; _cyb_nvml_names[24] = b'nvmlDeviceGetHandleByUUID' +_cyb_nvml_slots[25] = &__nvmlDeviceGetHandleByUUIDV; _cyb_nvml_names[25] = b'nvmlDeviceGetHandleByUUIDV' +_cyb_nvml_slots[26] = &__nvmlDeviceGetHandleByPciBusId_v2; _cyb_nvml_names[26] = b'nvmlDeviceGetHandleByPciBusId_v2' +_cyb_nvml_slots[27] = &__nvmlDeviceGetName; _cyb_nvml_names[27] = b'nvmlDeviceGetName' +_cyb_nvml_slots[28] = &__nvmlDeviceGetBrand; _cyb_nvml_names[28] = b'nvmlDeviceGetBrand' +_cyb_nvml_slots[29] = &__nvmlDeviceGetIndex; _cyb_nvml_names[29] = b'nvmlDeviceGetIndex' +_cyb_nvml_slots[30] = &__nvmlDeviceGetSerial; _cyb_nvml_names[30] = b'nvmlDeviceGetSerial' +_cyb_nvml_slots[31] = &__nvmlDeviceGetModuleId; _cyb_nvml_names[31] = b'nvmlDeviceGetModuleId' +_cyb_nvml_slots[32] = &__nvmlDeviceGetC2cModeInfoV; _cyb_nvml_names[32] = b'nvmlDeviceGetC2cModeInfoV' +_cyb_nvml_slots[33] = &__nvmlDeviceGetMemoryAffinity; _cyb_nvml_names[33] = b'nvmlDeviceGetMemoryAffinity' +_cyb_nvml_slots[34] = &__nvmlDeviceGetCpuAffinityWithinScope; _cyb_nvml_names[34] = b'nvmlDeviceGetCpuAffinityWithinScope' +_cyb_nvml_slots[35] = &__nvmlDeviceGetCpuAffinity; _cyb_nvml_names[35] = b'nvmlDeviceGetCpuAffinity' +_cyb_nvml_slots[36] = &__nvmlDeviceSetCpuAffinity; _cyb_nvml_names[36] = b'nvmlDeviceSetCpuAffinity' +_cyb_nvml_slots[37] = &__nvmlDeviceClearCpuAffinity; _cyb_nvml_names[37] = b'nvmlDeviceClearCpuAffinity' +_cyb_nvml_slots[38] = &__nvmlDeviceGetNumaNodeId; _cyb_nvml_names[38] = b'nvmlDeviceGetNumaNodeId' +_cyb_nvml_slots[39] = &__nvmlDeviceGetTopologyCommonAncestor; _cyb_nvml_names[39] = b'nvmlDeviceGetTopologyCommonAncestor' +_cyb_nvml_slots[40] = &__nvmlDeviceGetTopologyNearestGpus; _cyb_nvml_names[40] = b'nvmlDeviceGetTopologyNearestGpus' +_cyb_nvml_slots[41] = &__nvmlDeviceGetP2PStatus; _cyb_nvml_names[41] = b'nvmlDeviceGetP2PStatus' +_cyb_nvml_slots[42] = &__nvmlDeviceGetUUID; _cyb_nvml_names[42] = b'nvmlDeviceGetUUID' +_cyb_nvml_slots[43] = &__nvmlDeviceGetMinorNumber; _cyb_nvml_names[43] = b'nvmlDeviceGetMinorNumber' +_cyb_nvml_slots[44] = &__nvmlDeviceGetBoardPartNumber; _cyb_nvml_names[44] = b'nvmlDeviceGetBoardPartNumber' +_cyb_nvml_slots[45] = &__nvmlDeviceGetInforomVersion; _cyb_nvml_names[45] = b'nvmlDeviceGetInforomVersion' +_cyb_nvml_slots[46] = &__nvmlDeviceGetInforomImageVersion; _cyb_nvml_names[46] = b'nvmlDeviceGetInforomImageVersion' +_cyb_nvml_slots[47] = &__nvmlDeviceGetInforomConfigurationChecksum; _cyb_nvml_names[47] = b'nvmlDeviceGetInforomConfigurationChecksum' +_cyb_nvml_slots[48] = &__nvmlDeviceValidateInforom; _cyb_nvml_names[48] = b'nvmlDeviceValidateInforom' +_cyb_nvml_slots[49] = &__nvmlDeviceGetLastBBXFlushTime; _cyb_nvml_names[49] = b'nvmlDeviceGetLastBBXFlushTime' +_cyb_nvml_slots[50] = &__nvmlDeviceGetDisplayMode; _cyb_nvml_names[50] = b'nvmlDeviceGetDisplayMode' +_cyb_nvml_slots[51] = &__nvmlDeviceGetDisplayActive; _cyb_nvml_names[51] = b'nvmlDeviceGetDisplayActive' +_cyb_nvml_slots[52] = &__nvmlDeviceGetPersistenceMode; _cyb_nvml_names[52] = b'nvmlDeviceGetPersistenceMode' +_cyb_nvml_slots[53] = &__nvmlDeviceGetPciInfoExt; _cyb_nvml_names[53] = b'nvmlDeviceGetPciInfoExt' +_cyb_nvml_slots[54] = &__nvmlDeviceGetPciInfo_v3; _cyb_nvml_names[54] = b'nvmlDeviceGetPciInfo_v3' +_cyb_nvml_slots[55] = &__nvmlDeviceGetMaxPcieLinkGeneration; _cyb_nvml_names[55] = b'nvmlDeviceGetMaxPcieLinkGeneration' +_cyb_nvml_slots[56] = &__nvmlDeviceGetGpuMaxPcieLinkGeneration; _cyb_nvml_names[56] = b'nvmlDeviceGetGpuMaxPcieLinkGeneration' +_cyb_nvml_slots[57] = &__nvmlDeviceGetMaxPcieLinkWidth; _cyb_nvml_names[57] = b'nvmlDeviceGetMaxPcieLinkWidth' +_cyb_nvml_slots[58] = &__nvmlDeviceGetCurrPcieLinkGeneration; _cyb_nvml_names[58] = b'nvmlDeviceGetCurrPcieLinkGeneration' +_cyb_nvml_slots[59] = &__nvmlDeviceGetCurrPcieLinkWidth; _cyb_nvml_names[59] = b'nvmlDeviceGetCurrPcieLinkWidth' +_cyb_nvml_slots[60] = &__nvmlDeviceGetPcieThroughput; _cyb_nvml_names[60] = b'nvmlDeviceGetPcieThroughput' +_cyb_nvml_slots[61] = &__nvmlDeviceGetPcieReplayCounter; _cyb_nvml_names[61] = b'nvmlDeviceGetPcieReplayCounter' +_cyb_nvml_slots[62] = &__nvmlDeviceGetClockInfo; _cyb_nvml_names[62] = b'nvmlDeviceGetClockInfo' +_cyb_nvml_slots[63] = &__nvmlDeviceGetMaxClockInfo; _cyb_nvml_names[63] = b'nvmlDeviceGetMaxClockInfo' +_cyb_nvml_slots[64] = &__nvmlDeviceGetGpcClkVfOffset; _cyb_nvml_names[64] = b'nvmlDeviceGetGpcClkVfOffset' +_cyb_nvml_slots[65] = &__nvmlDeviceGetClock; _cyb_nvml_names[65] = b'nvmlDeviceGetClock' +_cyb_nvml_slots[66] = &__nvmlDeviceGetMaxCustomerBoostClock; _cyb_nvml_names[66] = b'nvmlDeviceGetMaxCustomerBoostClock' +_cyb_nvml_slots[67] = &__nvmlDeviceGetSupportedMemoryClocks; _cyb_nvml_names[67] = b'nvmlDeviceGetSupportedMemoryClocks' +_cyb_nvml_slots[68] = &__nvmlDeviceGetSupportedGraphicsClocks; _cyb_nvml_names[68] = b'nvmlDeviceGetSupportedGraphicsClocks' +_cyb_nvml_slots[69] = &__nvmlDeviceGetAutoBoostedClocksEnabled; _cyb_nvml_names[69] = b'nvmlDeviceGetAutoBoostedClocksEnabled' +_cyb_nvml_slots[70] = &__nvmlDeviceGetFanSpeed; _cyb_nvml_names[70] = b'nvmlDeviceGetFanSpeed' +_cyb_nvml_slots[71] = &__nvmlDeviceGetFanSpeed_v2; _cyb_nvml_names[71] = b'nvmlDeviceGetFanSpeed_v2' +_cyb_nvml_slots[72] = &__nvmlDeviceGetFanSpeedRPM; _cyb_nvml_names[72] = b'nvmlDeviceGetFanSpeedRPM' +_cyb_nvml_slots[73] = &__nvmlDeviceGetTargetFanSpeed; _cyb_nvml_names[73] = b'nvmlDeviceGetTargetFanSpeed' +_cyb_nvml_slots[74] = &__nvmlDeviceGetMinMaxFanSpeed; _cyb_nvml_names[74] = b'nvmlDeviceGetMinMaxFanSpeed' +_cyb_nvml_slots[75] = &__nvmlDeviceGetFanControlPolicy_v2; _cyb_nvml_names[75] = b'nvmlDeviceGetFanControlPolicy_v2' +_cyb_nvml_slots[76] = &__nvmlDeviceGetNumFans; _cyb_nvml_names[76] = b'nvmlDeviceGetNumFans' +_cyb_nvml_slots[77] = &__nvmlDeviceGetCoolerInfo; _cyb_nvml_names[77] = b'nvmlDeviceGetCoolerInfo' +_cyb_nvml_slots[78] = &__nvmlDeviceGetTemperatureV; _cyb_nvml_names[78] = b'nvmlDeviceGetTemperatureV' +_cyb_nvml_slots[79] = &__nvmlDeviceGetTemperatureThreshold; _cyb_nvml_names[79] = b'nvmlDeviceGetTemperatureThreshold' +_cyb_nvml_slots[80] = &__nvmlDeviceGetMarginTemperature; _cyb_nvml_names[80] = b'nvmlDeviceGetMarginTemperature' +_cyb_nvml_slots[81] = &__nvmlDeviceGetThermalSettings; _cyb_nvml_names[81] = b'nvmlDeviceGetThermalSettings' +_cyb_nvml_slots[82] = &__nvmlDeviceGetPerformanceState; _cyb_nvml_names[82] = b'nvmlDeviceGetPerformanceState' +_cyb_nvml_slots[83] = &__nvmlDeviceGetCurrentClocksEventReasons; _cyb_nvml_names[83] = b'nvmlDeviceGetCurrentClocksEventReasons' +_cyb_nvml_slots[84] = &__nvmlDeviceGetSupportedClocksEventReasons; _cyb_nvml_names[84] = b'nvmlDeviceGetSupportedClocksEventReasons' +_cyb_nvml_slots[85] = &__nvmlDeviceGetPowerState; _cyb_nvml_names[85] = b'nvmlDeviceGetPowerState' +_cyb_nvml_slots[86] = &__nvmlDeviceGetDynamicPstatesInfo; _cyb_nvml_names[86] = b'nvmlDeviceGetDynamicPstatesInfo' +_cyb_nvml_slots[87] = &__nvmlDeviceGetMemClkVfOffset; _cyb_nvml_names[87] = b'nvmlDeviceGetMemClkVfOffset' +_cyb_nvml_slots[88] = &__nvmlDeviceGetMinMaxClockOfPState; _cyb_nvml_names[88] = b'nvmlDeviceGetMinMaxClockOfPState' +_cyb_nvml_slots[89] = &__nvmlDeviceGetSupportedPerformanceStates; _cyb_nvml_names[89] = b'nvmlDeviceGetSupportedPerformanceStates' +_cyb_nvml_slots[90] = &__nvmlDeviceGetGpcClkMinMaxVfOffset; _cyb_nvml_names[90] = b'nvmlDeviceGetGpcClkMinMaxVfOffset' +_cyb_nvml_slots[91] = &__nvmlDeviceGetMemClkMinMaxVfOffset; _cyb_nvml_names[91] = b'nvmlDeviceGetMemClkMinMaxVfOffset' +_cyb_nvml_slots[92] = &__nvmlDeviceGetClockOffsets; _cyb_nvml_names[92] = b'nvmlDeviceGetClockOffsets' +_cyb_nvml_slots[93] = &__nvmlDeviceSetClockOffsets; _cyb_nvml_names[93] = b'nvmlDeviceSetClockOffsets' +_cyb_nvml_slots[94] = &__nvmlDeviceGetPerformanceModes; _cyb_nvml_names[94] = b'nvmlDeviceGetPerformanceModes' +_cyb_nvml_slots[95] = &__nvmlDeviceGetCurrentClockFreqs; _cyb_nvml_names[95] = b'nvmlDeviceGetCurrentClockFreqs' +_cyb_nvml_slots[96] = &__nvmlDeviceGetPowerManagementLimit; _cyb_nvml_names[96] = b'nvmlDeviceGetPowerManagementLimit' +_cyb_nvml_slots[97] = &__nvmlDeviceGetPowerManagementLimitConstraints; _cyb_nvml_names[97] = b'nvmlDeviceGetPowerManagementLimitConstraints' +_cyb_nvml_slots[98] = &__nvmlDeviceGetPowerManagementDefaultLimit; _cyb_nvml_names[98] = b'nvmlDeviceGetPowerManagementDefaultLimit' +_cyb_nvml_slots[99] = &__nvmlDeviceGetPowerUsage; _cyb_nvml_names[99] = b'nvmlDeviceGetPowerUsage' +_cyb_nvml_slots[100] = &__nvmlDeviceGetTotalEnergyConsumption; _cyb_nvml_names[100] = b'nvmlDeviceGetTotalEnergyConsumption' +_cyb_nvml_slots[101] = &__nvmlDeviceGetEnforcedPowerLimit; _cyb_nvml_names[101] = b'nvmlDeviceGetEnforcedPowerLimit' +_cyb_nvml_slots[102] = &__nvmlDeviceGetGpuOperationMode; _cyb_nvml_names[102] = b'nvmlDeviceGetGpuOperationMode' +_cyb_nvml_slots[103] = &__nvmlDeviceGetMemoryInfo_v2; _cyb_nvml_names[103] = b'nvmlDeviceGetMemoryInfo_v2' +_cyb_nvml_slots[104] = &__nvmlDeviceGetComputeMode; _cyb_nvml_names[104] = b'nvmlDeviceGetComputeMode' +_cyb_nvml_slots[105] = &__nvmlDeviceGetCudaComputeCapability; _cyb_nvml_names[105] = b'nvmlDeviceGetCudaComputeCapability' +_cyb_nvml_slots[106] = &__nvmlDeviceGetDramEncryptionMode; _cyb_nvml_names[106] = b'nvmlDeviceGetDramEncryptionMode' +_cyb_nvml_slots[107] = &__nvmlDeviceSetDramEncryptionMode; _cyb_nvml_names[107] = b'nvmlDeviceSetDramEncryptionMode' +_cyb_nvml_slots[108] = &__nvmlDeviceGetEccMode; _cyb_nvml_names[108] = b'nvmlDeviceGetEccMode' +_cyb_nvml_slots[109] = &__nvmlDeviceGetDefaultEccMode; _cyb_nvml_names[109] = b'nvmlDeviceGetDefaultEccMode' +_cyb_nvml_slots[110] = &__nvmlDeviceGetBoardId; _cyb_nvml_names[110] = b'nvmlDeviceGetBoardId' +_cyb_nvml_slots[111] = &__nvmlDeviceGetMultiGpuBoard; _cyb_nvml_names[111] = b'nvmlDeviceGetMultiGpuBoard' +_cyb_nvml_slots[112] = &__nvmlDeviceGetTotalEccErrors; _cyb_nvml_names[112] = b'nvmlDeviceGetTotalEccErrors' +_cyb_nvml_slots[113] = &__nvmlDeviceGetMemoryErrorCounter; _cyb_nvml_names[113] = b'nvmlDeviceGetMemoryErrorCounter' +_cyb_nvml_slots[114] = &__nvmlDeviceGetUtilizationRates; _cyb_nvml_names[114] = b'nvmlDeviceGetUtilizationRates' +_cyb_nvml_slots[115] = &__nvmlDeviceGetEncoderUtilization; _cyb_nvml_names[115] = b'nvmlDeviceGetEncoderUtilization' +_cyb_nvml_slots[116] = &__nvmlDeviceGetEncoderCapacity; _cyb_nvml_names[116] = b'nvmlDeviceGetEncoderCapacity' +_cyb_nvml_slots[117] = &__nvmlDeviceGetEncoderStats; _cyb_nvml_names[117] = b'nvmlDeviceGetEncoderStats' +_cyb_nvml_slots[118] = &__nvmlDeviceGetEncoderSessions; _cyb_nvml_names[118] = b'nvmlDeviceGetEncoderSessions' +_cyb_nvml_slots[119] = &__nvmlDeviceGetDecoderUtilization; _cyb_nvml_names[119] = b'nvmlDeviceGetDecoderUtilization' +_cyb_nvml_slots[120] = &__nvmlDeviceGetJpgUtilization; _cyb_nvml_names[120] = b'nvmlDeviceGetJpgUtilization' +_cyb_nvml_slots[121] = &__nvmlDeviceGetOfaUtilization; _cyb_nvml_names[121] = b'nvmlDeviceGetOfaUtilization' +_cyb_nvml_slots[122] = &__nvmlDeviceGetFBCStats; _cyb_nvml_names[122] = b'nvmlDeviceGetFBCStats' +_cyb_nvml_slots[123] = &__nvmlDeviceGetFBCSessions; _cyb_nvml_names[123] = b'nvmlDeviceGetFBCSessions' +_cyb_nvml_slots[124] = &__nvmlDeviceGetDriverModel_v2; _cyb_nvml_names[124] = b'nvmlDeviceGetDriverModel_v2' +_cyb_nvml_slots[125] = &__nvmlDeviceGetVbiosVersion; _cyb_nvml_names[125] = b'nvmlDeviceGetVbiosVersion' +_cyb_nvml_slots[126] = &__nvmlDeviceGetBridgeChipInfo; _cyb_nvml_names[126] = b'nvmlDeviceGetBridgeChipInfo' +_cyb_nvml_slots[127] = &__nvmlDeviceGetComputeRunningProcesses_v3; _cyb_nvml_names[127] = b'nvmlDeviceGetComputeRunningProcesses_v3' +_cyb_nvml_slots[128] = &__nvmlDeviceGetGraphicsRunningProcesses_v3; _cyb_nvml_names[128] = b'nvmlDeviceGetGraphicsRunningProcesses_v3' +_cyb_nvml_slots[129] = &__nvmlDeviceGetMPSComputeRunningProcesses_v3; _cyb_nvml_names[129] = b'nvmlDeviceGetMPSComputeRunningProcesses_v3' +_cyb_nvml_slots[130] = &__nvmlDeviceGetRunningProcessDetailList; _cyb_nvml_names[130] = b'nvmlDeviceGetRunningProcessDetailList' +_cyb_nvml_slots[131] = &__nvmlDeviceOnSameBoard; _cyb_nvml_names[131] = b'nvmlDeviceOnSameBoard' +_cyb_nvml_slots[132] = &__nvmlDeviceGetAPIRestriction; _cyb_nvml_names[132] = b'nvmlDeviceGetAPIRestriction' +_cyb_nvml_slots[133] = &__nvmlDeviceGetSamples; _cyb_nvml_names[133] = b'nvmlDeviceGetSamples' +_cyb_nvml_slots[134] = &__nvmlDeviceGetBAR1MemoryInfo; _cyb_nvml_names[134] = b'nvmlDeviceGetBAR1MemoryInfo' +_cyb_nvml_slots[135] = &__nvmlDeviceGetIrqNum; _cyb_nvml_names[135] = b'nvmlDeviceGetIrqNum' +_cyb_nvml_slots[136] = &__nvmlDeviceGetNumGpuCores; _cyb_nvml_names[136] = b'nvmlDeviceGetNumGpuCores' +_cyb_nvml_slots[137] = &__nvmlDeviceGetPowerSource; _cyb_nvml_names[137] = b'nvmlDeviceGetPowerSource' +_cyb_nvml_slots[138] = &__nvmlDeviceGetMemoryBusWidth; _cyb_nvml_names[138] = b'nvmlDeviceGetMemoryBusWidth' +_cyb_nvml_slots[139] = &__nvmlDeviceGetPcieLinkMaxSpeed; _cyb_nvml_names[139] = b'nvmlDeviceGetPcieLinkMaxSpeed' +_cyb_nvml_slots[140] = &__nvmlDeviceGetPcieSpeed; _cyb_nvml_names[140] = b'nvmlDeviceGetPcieSpeed' +_cyb_nvml_slots[141] = &__nvmlDeviceGetAdaptiveClockInfoStatus; _cyb_nvml_names[141] = b'nvmlDeviceGetAdaptiveClockInfoStatus' +_cyb_nvml_slots[142] = &__nvmlDeviceGetBusType; _cyb_nvml_names[142] = b'nvmlDeviceGetBusType' +_cyb_nvml_slots[143] = &__nvmlDeviceGetGpuFabricInfoV; _cyb_nvml_names[143] = b'nvmlDeviceGetGpuFabricInfoV' +_cyb_nvml_slots[144] = &__nvmlSystemGetConfComputeCapabilities; _cyb_nvml_names[144] = b'nvmlSystemGetConfComputeCapabilities' +_cyb_nvml_slots[145] = &__nvmlSystemGetConfComputeState; _cyb_nvml_names[145] = b'nvmlSystemGetConfComputeState' +_cyb_nvml_slots[146] = &__nvmlDeviceGetConfComputeMemSizeInfo; _cyb_nvml_names[146] = b'nvmlDeviceGetConfComputeMemSizeInfo' +_cyb_nvml_slots[147] = &__nvmlSystemGetConfComputeGpusReadyState; _cyb_nvml_names[147] = b'nvmlSystemGetConfComputeGpusReadyState' +_cyb_nvml_slots[148] = &__nvmlDeviceGetConfComputeProtectedMemoryUsage; _cyb_nvml_names[148] = b'nvmlDeviceGetConfComputeProtectedMemoryUsage' +_cyb_nvml_slots[149] = &__nvmlDeviceGetConfComputeGpuCertificate; _cyb_nvml_names[149] = b'nvmlDeviceGetConfComputeGpuCertificate' +_cyb_nvml_slots[150] = &__nvmlDeviceGetConfComputeGpuAttestationReport; _cyb_nvml_names[150] = b'nvmlDeviceGetConfComputeGpuAttestationReport' +_cyb_nvml_slots[151] = &__nvmlSystemGetConfComputeKeyRotationThresholdInfo; _cyb_nvml_names[151] = b'nvmlSystemGetConfComputeKeyRotationThresholdInfo' +_cyb_nvml_slots[152] = &__nvmlDeviceSetConfComputeUnprotectedMemSize; _cyb_nvml_names[152] = b'nvmlDeviceSetConfComputeUnprotectedMemSize' +_cyb_nvml_slots[153] = &__nvmlSystemSetConfComputeGpusReadyState; _cyb_nvml_names[153] = b'nvmlSystemSetConfComputeGpusReadyState' +_cyb_nvml_slots[154] = &__nvmlSystemSetConfComputeKeyRotationThresholdInfo; _cyb_nvml_names[154] = b'nvmlSystemSetConfComputeKeyRotationThresholdInfo' +_cyb_nvml_slots[155] = &__nvmlSystemGetConfComputeSettings; _cyb_nvml_names[155] = b'nvmlSystemGetConfComputeSettings' +_cyb_nvml_slots[156] = &__nvmlDeviceGetGspFirmwareVersion; _cyb_nvml_names[156] = b'nvmlDeviceGetGspFirmwareVersion' +_cyb_nvml_slots[157] = &__nvmlDeviceGetGspFirmwareMode; _cyb_nvml_names[157] = b'nvmlDeviceGetGspFirmwareMode' +_cyb_nvml_slots[158] = &__nvmlDeviceGetSramEccErrorStatus; _cyb_nvml_names[158] = b'nvmlDeviceGetSramEccErrorStatus' +_cyb_nvml_slots[159] = &__nvmlDeviceGetAccountingMode; _cyb_nvml_names[159] = b'nvmlDeviceGetAccountingMode' +_cyb_nvml_slots[160] = &__nvmlDeviceGetAccountingStats; _cyb_nvml_names[160] = b'nvmlDeviceGetAccountingStats' +_cyb_nvml_slots[161] = &__nvmlDeviceGetAccountingPids; _cyb_nvml_names[161] = b'nvmlDeviceGetAccountingPids' +_cyb_nvml_slots[162] = &__nvmlDeviceGetAccountingBufferSize; _cyb_nvml_names[162] = b'nvmlDeviceGetAccountingBufferSize' +_cyb_nvml_slots[163] = &__nvmlDeviceGetRetiredPages; _cyb_nvml_names[163] = b'nvmlDeviceGetRetiredPages' +_cyb_nvml_slots[164] = &__nvmlDeviceGetRetiredPages_v2; _cyb_nvml_names[164] = b'nvmlDeviceGetRetiredPages_v2' +_cyb_nvml_slots[165] = &__nvmlDeviceGetRetiredPagesPendingStatus; _cyb_nvml_names[165] = b'nvmlDeviceGetRetiredPagesPendingStatus' +_cyb_nvml_slots[166] = &__nvmlDeviceGetRemappedRows; _cyb_nvml_names[166] = b'nvmlDeviceGetRemappedRows' +_cyb_nvml_slots[167] = &__nvmlDeviceGetRowRemapperHistogram; _cyb_nvml_names[167] = b'nvmlDeviceGetRowRemapperHistogram' +_cyb_nvml_slots[168] = &__nvmlDeviceGetArchitecture; _cyb_nvml_names[168] = b'nvmlDeviceGetArchitecture' +_cyb_nvml_slots[169] = &__nvmlDeviceGetClkMonStatus; _cyb_nvml_names[169] = b'nvmlDeviceGetClkMonStatus' +_cyb_nvml_slots[170] = &__nvmlDeviceGetProcessUtilization; _cyb_nvml_names[170] = b'nvmlDeviceGetProcessUtilization' +_cyb_nvml_slots[171] = &__nvmlDeviceGetProcessesUtilizationInfo; _cyb_nvml_names[171] = b'nvmlDeviceGetProcessesUtilizationInfo' +_cyb_nvml_slots[172] = &__nvmlDeviceGetPlatformInfo; _cyb_nvml_names[172] = b'nvmlDeviceGetPlatformInfo' +_cyb_nvml_slots[173] = &__nvmlUnitSetLedState; _cyb_nvml_names[173] = b'nvmlUnitSetLedState' +_cyb_nvml_slots[174] = &__nvmlDeviceSetPersistenceMode; _cyb_nvml_names[174] = b'nvmlDeviceSetPersistenceMode' +_cyb_nvml_slots[175] = &__nvmlDeviceSetComputeMode; _cyb_nvml_names[175] = b'nvmlDeviceSetComputeMode' +_cyb_nvml_slots[176] = &__nvmlDeviceSetEccMode; _cyb_nvml_names[176] = b'nvmlDeviceSetEccMode' +_cyb_nvml_slots[177] = &__nvmlDeviceClearEccErrorCounts; _cyb_nvml_names[177] = b'nvmlDeviceClearEccErrorCounts' +_cyb_nvml_slots[178] = &__nvmlDeviceSetDriverModel; _cyb_nvml_names[178] = b'nvmlDeviceSetDriverModel' +_cyb_nvml_slots[179] = &__nvmlDeviceSetGpuLockedClocks; _cyb_nvml_names[179] = b'nvmlDeviceSetGpuLockedClocks' +_cyb_nvml_slots[180] = &__nvmlDeviceResetGpuLockedClocks; _cyb_nvml_names[180] = b'nvmlDeviceResetGpuLockedClocks' +_cyb_nvml_slots[181] = &__nvmlDeviceSetMemoryLockedClocks; _cyb_nvml_names[181] = b'nvmlDeviceSetMemoryLockedClocks' +_cyb_nvml_slots[182] = &__nvmlDeviceResetMemoryLockedClocks; _cyb_nvml_names[182] = b'nvmlDeviceResetMemoryLockedClocks' +_cyb_nvml_slots[183] = &__nvmlDeviceSetAutoBoostedClocksEnabled; _cyb_nvml_names[183] = b'nvmlDeviceSetAutoBoostedClocksEnabled' +_cyb_nvml_slots[184] = &__nvmlDeviceSetDefaultAutoBoostedClocksEnabled; _cyb_nvml_names[184] = b'nvmlDeviceSetDefaultAutoBoostedClocksEnabled' +_cyb_nvml_slots[185] = &__nvmlDeviceSetDefaultFanSpeed_v2; _cyb_nvml_names[185] = b'nvmlDeviceSetDefaultFanSpeed_v2' +_cyb_nvml_slots[186] = &__nvmlDeviceSetFanControlPolicy; _cyb_nvml_names[186] = b'nvmlDeviceSetFanControlPolicy' +_cyb_nvml_slots[187] = &__nvmlDeviceSetTemperatureThreshold; _cyb_nvml_names[187] = b'nvmlDeviceSetTemperatureThreshold' +_cyb_nvml_slots[188] = &__nvmlDeviceSetGpuOperationMode; _cyb_nvml_names[188] = b'nvmlDeviceSetGpuOperationMode' +_cyb_nvml_slots[189] = &__nvmlDeviceSetAPIRestriction; _cyb_nvml_names[189] = b'nvmlDeviceSetAPIRestriction' +_cyb_nvml_slots[190] = &__nvmlDeviceSetFanSpeed_v2; _cyb_nvml_names[190] = b'nvmlDeviceSetFanSpeed_v2' +_cyb_nvml_slots[191] = &__nvmlDeviceSetAccountingMode; _cyb_nvml_names[191] = b'nvmlDeviceSetAccountingMode' +_cyb_nvml_slots[192] = &__nvmlDeviceClearAccountingPids; _cyb_nvml_names[192] = b'nvmlDeviceClearAccountingPids' +_cyb_nvml_slots[193] = &__nvmlDeviceSetPowerManagementLimit_v2; _cyb_nvml_names[193] = b'nvmlDeviceSetPowerManagementLimit_v2' +_cyb_nvml_slots[194] = &__nvmlDeviceGetNvLinkState; _cyb_nvml_names[194] = b'nvmlDeviceGetNvLinkState' +_cyb_nvml_slots[195] = &__nvmlDeviceGetNvLinkVersion; _cyb_nvml_names[195] = b'nvmlDeviceGetNvLinkVersion' +_cyb_nvml_slots[196] = &__nvmlDeviceGetNvLinkCapability; _cyb_nvml_names[196] = b'nvmlDeviceGetNvLinkCapability' +_cyb_nvml_slots[197] = &__nvmlDeviceGetNvLinkRemotePciInfo_v2; _cyb_nvml_names[197] = b'nvmlDeviceGetNvLinkRemotePciInfo_v2' +_cyb_nvml_slots[198] = &__nvmlDeviceGetNvLinkErrorCounter; _cyb_nvml_names[198] = b'nvmlDeviceGetNvLinkErrorCounter' +_cyb_nvml_slots[199] = &__nvmlDeviceResetNvLinkErrorCounters; _cyb_nvml_names[199] = b'nvmlDeviceResetNvLinkErrorCounters' +_cyb_nvml_slots[200] = &__nvmlDeviceGetNvLinkRemoteDeviceType; _cyb_nvml_names[200] = b'nvmlDeviceGetNvLinkRemoteDeviceType' +_cyb_nvml_slots[201] = &__nvmlDeviceSetNvLinkDeviceLowPowerThreshold; _cyb_nvml_names[201] = b'nvmlDeviceSetNvLinkDeviceLowPowerThreshold' +_cyb_nvml_slots[202] = &__nvmlSystemSetNvlinkBwMode; _cyb_nvml_names[202] = b'nvmlSystemSetNvlinkBwMode' +_cyb_nvml_slots[203] = &__nvmlSystemGetNvlinkBwMode; _cyb_nvml_names[203] = b'nvmlSystemGetNvlinkBwMode' +_cyb_nvml_slots[204] = &__nvmlDeviceGetNvlinkSupportedBwModes; _cyb_nvml_names[204] = b'nvmlDeviceGetNvlinkSupportedBwModes' +_cyb_nvml_slots[205] = &__nvmlDeviceGetNvlinkBwMode; _cyb_nvml_names[205] = b'nvmlDeviceGetNvlinkBwMode' +_cyb_nvml_slots[206] = &__nvmlDeviceSetNvlinkBwMode; _cyb_nvml_names[206] = b'nvmlDeviceSetNvlinkBwMode' +_cyb_nvml_slots[207] = &__nvmlEventSetCreate; _cyb_nvml_names[207] = b'nvmlEventSetCreate' +_cyb_nvml_slots[208] = &__nvmlDeviceRegisterEvents; _cyb_nvml_names[208] = b'nvmlDeviceRegisterEvents' +_cyb_nvml_slots[209] = &__nvmlDeviceGetSupportedEventTypes; _cyb_nvml_names[209] = b'nvmlDeviceGetSupportedEventTypes' +_cyb_nvml_slots[210] = &__nvmlEventSetWait_v2; _cyb_nvml_names[210] = b'nvmlEventSetWait_v2' +_cyb_nvml_slots[211] = &__nvmlEventSetFree; _cyb_nvml_names[211] = b'nvmlEventSetFree' +_cyb_nvml_slots[212] = &__nvmlSystemEventSetCreate; _cyb_nvml_names[212] = b'nvmlSystemEventSetCreate' +_cyb_nvml_slots[213] = &__nvmlSystemEventSetFree; _cyb_nvml_names[213] = b'nvmlSystemEventSetFree' +_cyb_nvml_slots[214] = &__nvmlSystemRegisterEvents; _cyb_nvml_names[214] = b'nvmlSystemRegisterEvents' +_cyb_nvml_slots[215] = &__nvmlSystemEventSetWait; _cyb_nvml_names[215] = b'nvmlSystemEventSetWait' +_cyb_nvml_slots[216] = &__nvmlDeviceModifyDrainState; _cyb_nvml_names[216] = b'nvmlDeviceModifyDrainState' +_cyb_nvml_slots[217] = &__nvmlDeviceQueryDrainState; _cyb_nvml_names[217] = b'nvmlDeviceQueryDrainState' +_cyb_nvml_slots[218] = &__nvmlDeviceRemoveGpu_v2; _cyb_nvml_names[218] = b'nvmlDeviceRemoveGpu_v2' +_cyb_nvml_slots[219] = &__nvmlDeviceDiscoverGpus; _cyb_nvml_names[219] = b'nvmlDeviceDiscoverGpus' +_cyb_nvml_slots[220] = &__nvmlDeviceGetFieldValues; _cyb_nvml_names[220] = b'nvmlDeviceGetFieldValues' +_cyb_nvml_slots[221] = &__nvmlDeviceClearFieldValues; _cyb_nvml_names[221] = b'nvmlDeviceClearFieldValues' +_cyb_nvml_slots[222] = &__nvmlDeviceGetVirtualizationMode; _cyb_nvml_names[222] = b'nvmlDeviceGetVirtualizationMode' +_cyb_nvml_slots[223] = &__nvmlDeviceGetHostVgpuMode; _cyb_nvml_names[223] = b'nvmlDeviceGetHostVgpuMode' +_cyb_nvml_slots[224] = &__nvmlDeviceSetVirtualizationMode; _cyb_nvml_names[224] = b'nvmlDeviceSetVirtualizationMode' +_cyb_nvml_slots[225] = &__nvmlDeviceGetVgpuHeterogeneousMode; _cyb_nvml_names[225] = b'nvmlDeviceGetVgpuHeterogeneousMode' +_cyb_nvml_slots[226] = &__nvmlDeviceSetVgpuHeterogeneousMode; _cyb_nvml_names[226] = b'nvmlDeviceSetVgpuHeterogeneousMode' +_cyb_nvml_slots[227] = &__nvmlVgpuInstanceGetPlacementId; _cyb_nvml_names[227] = b'nvmlVgpuInstanceGetPlacementId' +_cyb_nvml_slots[228] = &__nvmlDeviceGetVgpuTypeSupportedPlacements; _cyb_nvml_names[228] = b'nvmlDeviceGetVgpuTypeSupportedPlacements' +_cyb_nvml_slots[229] = &__nvmlDeviceGetVgpuTypeCreatablePlacements; _cyb_nvml_names[229] = b'nvmlDeviceGetVgpuTypeCreatablePlacements' +_cyb_nvml_slots[230] = &__nvmlVgpuTypeGetGspHeapSize; _cyb_nvml_names[230] = b'nvmlVgpuTypeGetGspHeapSize' +_cyb_nvml_slots[231] = &__nvmlVgpuTypeGetFbReservation; _cyb_nvml_names[231] = b'nvmlVgpuTypeGetFbReservation' +_cyb_nvml_slots[232] = &__nvmlVgpuInstanceGetRuntimeStateSize; _cyb_nvml_names[232] = b'nvmlVgpuInstanceGetRuntimeStateSize' +_cyb_nvml_slots[233] = &__nvmlDeviceSetVgpuCapabilities; _cyb_nvml_names[233] = b'nvmlDeviceSetVgpuCapabilities' +_cyb_nvml_slots[234] = &__nvmlDeviceGetGridLicensableFeatures_v4; _cyb_nvml_names[234] = b'nvmlDeviceGetGridLicensableFeatures_v4' +_cyb_nvml_slots[235] = &__nvmlGetVgpuDriverCapabilities; _cyb_nvml_names[235] = b'nvmlGetVgpuDriverCapabilities' +_cyb_nvml_slots[236] = &__nvmlDeviceGetVgpuCapabilities; _cyb_nvml_names[236] = b'nvmlDeviceGetVgpuCapabilities' +_cyb_nvml_slots[237] = &__nvmlDeviceGetSupportedVgpus; _cyb_nvml_names[237] = b'nvmlDeviceGetSupportedVgpus' +_cyb_nvml_slots[238] = &__nvmlDeviceGetCreatableVgpus; _cyb_nvml_names[238] = b'nvmlDeviceGetCreatableVgpus' +_cyb_nvml_slots[239] = &__nvmlVgpuTypeGetClass; _cyb_nvml_names[239] = b'nvmlVgpuTypeGetClass' +_cyb_nvml_slots[240] = &__nvmlVgpuTypeGetName; _cyb_nvml_names[240] = b'nvmlVgpuTypeGetName' +_cyb_nvml_slots[241] = &__nvmlVgpuTypeGetGpuInstanceProfileId; _cyb_nvml_names[241] = b'nvmlVgpuTypeGetGpuInstanceProfileId' +_cyb_nvml_slots[242] = &__nvmlVgpuTypeGetDeviceID; _cyb_nvml_names[242] = b'nvmlVgpuTypeGetDeviceID' +_cyb_nvml_slots[243] = &__nvmlVgpuTypeGetFramebufferSize; _cyb_nvml_names[243] = b'nvmlVgpuTypeGetFramebufferSize' +_cyb_nvml_slots[244] = &__nvmlVgpuTypeGetNumDisplayHeads; _cyb_nvml_names[244] = b'nvmlVgpuTypeGetNumDisplayHeads' +_cyb_nvml_slots[245] = &__nvmlVgpuTypeGetResolution; _cyb_nvml_names[245] = b'nvmlVgpuTypeGetResolution' +_cyb_nvml_slots[246] = &__nvmlVgpuTypeGetLicense; _cyb_nvml_names[246] = b'nvmlVgpuTypeGetLicense' +_cyb_nvml_slots[247] = &__nvmlVgpuTypeGetFrameRateLimit; _cyb_nvml_names[247] = b'nvmlVgpuTypeGetFrameRateLimit' +_cyb_nvml_slots[248] = &__nvmlVgpuTypeGetMaxInstances; _cyb_nvml_names[248] = b'nvmlVgpuTypeGetMaxInstances' +_cyb_nvml_slots[249] = &__nvmlVgpuTypeGetMaxInstancesPerVm; _cyb_nvml_names[249] = b'nvmlVgpuTypeGetMaxInstancesPerVm' +_cyb_nvml_slots[250] = &__nvmlVgpuTypeGetBAR1Info; _cyb_nvml_names[250] = b'nvmlVgpuTypeGetBAR1Info' +_cyb_nvml_slots[251] = &__nvmlDeviceGetActiveVgpus; _cyb_nvml_names[251] = b'nvmlDeviceGetActiveVgpus' +_cyb_nvml_slots[252] = &__nvmlVgpuInstanceGetVmID; _cyb_nvml_names[252] = b'nvmlVgpuInstanceGetVmID' +_cyb_nvml_slots[253] = &__nvmlVgpuInstanceGetUUID; _cyb_nvml_names[253] = b'nvmlVgpuInstanceGetUUID' +_cyb_nvml_slots[254] = &__nvmlVgpuInstanceGetVmDriverVersion; _cyb_nvml_names[254] = b'nvmlVgpuInstanceGetVmDriverVersion' +_cyb_nvml_slots[255] = &__nvmlVgpuInstanceGetFbUsage; _cyb_nvml_names[255] = b'nvmlVgpuInstanceGetFbUsage' +_cyb_nvml_slots[256] = &__nvmlVgpuInstanceGetLicenseStatus; _cyb_nvml_names[256] = b'nvmlVgpuInstanceGetLicenseStatus' +_cyb_nvml_slots[257] = &__nvmlVgpuInstanceGetType; _cyb_nvml_names[257] = b'nvmlVgpuInstanceGetType' +_cyb_nvml_slots[258] = &__nvmlVgpuInstanceGetFrameRateLimit; _cyb_nvml_names[258] = b'nvmlVgpuInstanceGetFrameRateLimit' +_cyb_nvml_slots[259] = &__nvmlVgpuInstanceGetEccMode; _cyb_nvml_names[259] = b'nvmlVgpuInstanceGetEccMode' +_cyb_nvml_slots[260] = &__nvmlVgpuInstanceGetEncoderCapacity; _cyb_nvml_names[260] = b'nvmlVgpuInstanceGetEncoderCapacity' +_cyb_nvml_slots[261] = &__nvmlVgpuInstanceSetEncoderCapacity; _cyb_nvml_names[261] = b'nvmlVgpuInstanceSetEncoderCapacity' +_cyb_nvml_slots[262] = &__nvmlVgpuInstanceGetEncoderStats; _cyb_nvml_names[262] = b'nvmlVgpuInstanceGetEncoderStats' +_cyb_nvml_slots[263] = &__nvmlVgpuInstanceGetEncoderSessions; _cyb_nvml_names[263] = b'nvmlVgpuInstanceGetEncoderSessions' +_cyb_nvml_slots[264] = &__nvmlVgpuInstanceGetFBCStats; _cyb_nvml_names[264] = b'nvmlVgpuInstanceGetFBCStats' +_cyb_nvml_slots[265] = &__nvmlVgpuInstanceGetFBCSessions; _cyb_nvml_names[265] = b'nvmlVgpuInstanceGetFBCSessions' +_cyb_nvml_slots[266] = &__nvmlVgpuInstanceGetGpuInstanceId; _cyb_nvml_names[266] = b'nvmlVgpuInstanceGetGpuInstanceId' +_cyb_nvml_slots[267] = &__nvmlVgpuInstanceGetGpuPciId; _cyb_nvml_names[267] = b'nvmlVgpuInstanceGetGpuPciId' +_cyb_nvml_slots[268] = &__nvmlVgpuTypeGetCapabilities; _cyb_nvml_names[268] = b'nvmlVgpuTypeGetCapabilities' +_cyb_nvml_slots[269] = &__nvmlVgpuInstanceGetMdevUUID; _cyb_nvml_names[269] = b'nvmlVgpuInstanceGetMdevUUID' +_cyb_nvml_slots[270] = &__nvmlGpuInstanceGetCreatableVgpus; _cyb_nvml_names[270] = b'nvmlGpuInstanceGetCreatableVgpus' +_cyb_nvml_slots[271] = &__nvmlVgpuTypeGetMaxInstancesPerGpuInstance; _cyb_nvml_names[271] = b'nvmlVgpuTypeGetMaxInstancesPerGpuInstance' +_cyb_nvml_slots[272] = &__nvmlGpuInstanceGetActiveVgpus; _cyb_nvml_names[272] = b'nvmlGpuInstanceGetActiveVgpus' +_cyb_nvml_slots[273] = &__nvmlGpuInstanceSetVgpuSchedulerState; _cyb_nvml_names[273] = b'nvmlGpuInstanceSetVgpuSchedulerState' +_cyb_nvml_slots[274] = &__nvmlGpuInstanceGetVgpuSchedulerState; _cyb_nvml_names[274] = b'nvmlGpuInstanceGetVgpuSchedulerState' +_cyb_nvml_slots[275] = &__nvmlGpuInstanceGetVgpuSchedulerLog; _cyb_nvml_names[275] = b'nvmlGpuInstanceGetVgpuSchedulerLog' +_cyb_nvml_slots[276] = &__nvmlGpuInstanceGetVgpuTypeCreatablePlacements; _cyb_nvml_names[276] = b'nvmlGpuInstanceGetVgpuTypeCreatablePlacements' +_cyb_nvml_slots[277] = &__nvmlGpuInstanceGetVgpuHeterogeneousMode; _cyb_nvml_names[277] = b'nvmlGpuInstanceGetVgpuHeterogeneousMode' +_cyb_nvml_slots[278] = &__nvmlGpuInstanceSetVgpuHeterogeneousMode; _cyb_nvml_names[278] = b'nvmlGpuInstanceSetVgpuHeterogeneousMode' +_cyb_nvml_slots[279] = &__nvmlVgpuInstanceGetMetadata; _cyb_nvml_names[279] = b'nvmlVgpuInstanceGetMetadata' +_cyb_nvml_slots[280] = &__nvmlDeviceGetVgpuMetadata; _cyb_nvml_names[280] = b'nvmlDeviceGetVgpuMetadata' +_cyb_nvml_slots[281] = &__nvmlGetVgpuCompatibility; _cyb_nvml_names[281] = b'nvmlGetVgpuCompatibility' +_cyb_nvml_slots[282] = &__nvmlDeviceGetPgpuMetadataString; _cyb_nvml_names[282] = b'nvmlDeviceGetPgpuMetadataString' +_cyb_nvml_slots[283] = &__nvmlDeviceGetVgpuSchedulerLog; _cyb_nvml_names[283] = b'nvmlDeviceGetVgpuSchedulerLog' +_cyb_nvml_slots[284] = &__nvmlDeviceGetVgpuSchedulerState; _cyb_nvml_names[284] = b'nvmlDeviceGetVgpuSchedulerState' +_cyb_nvml_slots[285] = &__nvmlDeviceGetVgpuSchedulerCapabilities; _cyb_nvml_names[285] = b'nvmlDeviceGetVgpuSchedulerCapabilities' +_cyb_nvml_slots[286] = &__nvmlDeviceSetVgpuSchedulerState; _cyb_nvml_names[286] = b'nvmlDeviceSetVgpuSchedulerState' +_cyb_nvml_slots[287] = &__nvmlGetVgpuVersion; _cyb_nvml_names[287] = b'nvmlGetVgpuVersion' +_cyb_nvml_slots[288] = &__nvmlSetVgpuVersion; _cyb_nvml_names[288] = b'nvmlSetVgpuVersion' +_cyb_nvml_slots[289] = &__nvmlDeviceGetVgpuUtilization; _cyb_nvml_names[289] = b'nvmlDeviceGetVgpuUtilization' +_cyb_nvml_slots[290] = &__nvmlDeviceGetVgpuInstancesUtilizationInfo; _cyb_nvml_names[290] = b'nvmlDeviceGetVgpuInstancesUtilizationInfo' +_cyb_nvml_slots[291] = &__nvmlDeviceGetVgpuProcessUtilization; _cyb_nvml_names[291] = b'nvmlDeviceGetVgpuProcessUtilization' +_cyb_nvml_slots[292] = &__nvmlDeviceGetVgpuProcessesUtilizationInfo; _cyb_nvml_names[292] = b'nvmlDeviceGetVgpuProcessesUtilizationInfo' +_cyb_nvml_slots[293] = &__nvmlVgpuInstanceGetAccountingMode; _cyb_nvml_names[293] = b'nvmlVgpuInstanceGetAccountingMode' +_cyb_nvml_slots[294] = &__nvmlVgpuInstanceGetAccountingPids; _cyb_nvml_names[294] = b'nvmlVgpuInstanceGetAccountingPids' +_cyb_nvml_slots[295] = &__nvmlVgpuInstanceGetAccountingStats; _cyb_nvml_names[295] = b'nvmlVgpuInstanceGetAccountingStats' +_cyb_nvml_slots[296] = &__nvmlVgpuInstanceClearAccountingPids; _cyb_nvml_names[296] = b'nvmlVgpuInstanceClearAccountingPids' +_cyb_nvml_slots[297] = &__nvmlVgpuInstanceGetLicenseInfo_v2; _cyb_nvml_names[297] = b'nvmlVgpuInstanceGetLicenseInfo_v2' +_cyb_nvml_slots[298] = &__nvmlGetExcludedDeviceCount; _cyb_nvml_names[298] = b'nvmlGetExcludedDeviceCount' +_cyb_nvml_slots[299] = &__nvmlGetExcludedDeviceInfoByIndex; _cyb_nvml_names[299] = b'nvmlGetExcludedDeviceInfoByIndex' +_cyb_nvml_slots[300] = &__nvmlDeviceSetMigMode; _cyb_nvml_names[300] = b'nvmlDeviceSetMigMode' +_cyb_nvml_slots[301] = &__nvmlDeviceGetMigMode; _cyb_nvml_names[301] = b'nvmlDeviceGetMigMode' +_cyb_nvml_slots[302] = &__nvmlDeviceGetGpuInstanceProfileInfoV; _cyb_nvml_names[302] = b'nvmlDeviceGetGpuInstanceProfileInfoV' +_cyb_nvml_slots[303] = &__nvmlDeviceGetGpuInstancePossiblePlacements_v2; _cyb_nvml_names[303] = b'nvmlDeviceGetGpuInstancePossiblePlacements_v2' +_cyb_nvml_slots[304] = &__nvmlDeviceGetGpuInstanceRemainingCapacity; _cyb_nvml_names[304] = b'nvmlDeviceGetGpuInstanceRemainingCapacity' +_cyb_nvml_slots[305] = &__nvmlDeviceCreateGpuInstance; _cyb_nvml_names[305] = b'nvmlDeviceCreateGpuInstance' +_cyb_nvml_slots[306] = &__nvmlDeviceCreateGpuInstanceWithPlacement; _cyb_nvml_names[306] = b'nvmlDeviceCreateGpuInstanceWithPlacement' +_cyb_nvml_slots[307] = &__nvmlGpuInstanceDestroy; _cyb_nvml_names[307] = b'nvmlGpuInstanceDestroy' +_cyb_nvml_slots[308] = &__nvmlDeviceGetGpuInstances; _cyb_nvml_names[308] = b'nvmlDeviceGetGpuInstances' +_cyb_nvml_slots[309] = &__nvmlDeviceGetGpuInstanceById; _cyb_nvml_names[309] = b'nvmlDeviceGetGpuInstanceById' +_cyb_nvml_slots[310] = &__nvmlGpuInstanceGetInfo; _cyb_nvml_names[310] = b'nvmlGpuInstanceGetInfo' +_cyb_nvml_slots[311] = &__nvmlGpuInstanceGetComputeInstanceProfileInfoV; _cyb_nvml_names[311] = b'nvmlGpuInstanceGetComputeInstanceProfileInfoV' +_cyb_nvml_slots[312] = &__nvmlGpuInstanceGetComputeInstanceRemainingCapacity; _cyb_nvml_names[312] = b'nvmlGpuInstanceGetComputeInstanceRemainingCapacity' +_cyb_nvml_slots[313] = &__nvmlGpuInstanceGetComputeInstancePossiblePlacements; _cyb_nvml_names[313] = b'nvmlGpuInstanceGetComputeInstancePossiblePlacements' +_cyb_nvml_slots[314] = &__nvmlGpuInstanceCreateComputeInstance; _cyb_nvml_names[314] = b'nvmlGpuInstanceCreateComputeInstance' +_cyb_nvml_slots[315] = &__nvmlGpuInstanceCreateComputeInstanceWithPlacement; _cyb_nvml_names[315] = b'nvmlGpuInstanceCreateComputeInstanceWithPlacement' +_cyb_nvml_slots[316] = &__nvmlComputeInstanceDestroy; _cyb_nvml_names[316] = b'nvmlComputeInstanceDestroy' +_cyb_nvml_slots[317] = &__nvmlGpuInstanceGetComputeInstances; _cyb_nvml_names[317] = b'nvmlGpuInstanceGetComputeInstances' +_cyb_nvml_slots[318] = &__nvmlGpuInstanceGetComputeInstanceById; _cyb_nvml_names[318] = b'nvmlGpuInstanceGetComputeInstanceById' +_cyb_nvml_slots[319] = &__nvmlComputeInstanceGetInfo_v2; _cyb_nvml_names[319] = b'nvmlComputeInstanceGetInfo_v2' +_cyb_nvml_slots[320] = &__nvmlDeviceIsMigDeviceHandle; _cyb_nvml_names[320] = b'nvmlDeviceIsMigDeviceHandle' +_cyb_nvml_slots[321] = &__nvmlDeviceGetGpuInstanceId; _cyb_nvml_names[321] = b'nvmlDeviceGetGpuInstanceId' +_cyb_nvml_slots[322] = &__nvmlDeviceGetComputeInstanceId; _cyb_nvml_names[322] = b'nvmlDeviceGetComputeInstanceId' +_cyb_nvml_slots[323] = &__nvmlDeviceGetMaxMigDeviceCount; _cyb_nvml_names[323] = b'nvmlDeviceGetMaxMigDeviceCount' +_cyb_nvml_slots[324] = &__nvmlDeviceGetMigDeviceHandleByIndex; _cyb_nvml_names[324] = b'nvmlDeviceGetMigDeviceHandleByIndex' +_cyb_nvml_slots[325] = &__nvmlDeviceGetDeviceHandleFromMigDeviceHandle; _cyb_nvml_names[325] = b'nvmlDeviceGetDeviceHandleFromMigDeviceHandle' +_cyb_nvml_slots[326] = &__nvmlDeviceGetCapabilities; _cyb_nvml_names[326] = b'nvmlDeviceGetCapabilities' +_cyb_nvml_slots[327] = &__nvmlDevicePowerSmoothingActivatePresetProfile; _cyb_nvml_names[327] = b'nvmlDevicePowerSmoothingActivatePresetProfile' +_cyb_nvml_slots[328] = &__nvmlDevicePowerSmoothingUpdatePresetProfileParam; _cyb_nvml_names[328] = b'nvmlDevicePowerSmoothingUpdatePresetProfileParam' +_cyb_nvml_slots[329] = &__nvmlDevicePowerSmoothingSetState; _cyb_nvml_names[329] = b'nvmlDevicePowerSmoothingSetState' +_cyb_nvml_slots[330] = &__nvmlDeviceGetAddressingMode; _cyb_nvml_names[330] = b'nvmlDeviceGetAddressingMode' +_cyb_nvml_slots[331] = &__nvmlDeviceGetRepairStatus; _cyb_nvml_names[331] = b'nvmlDeviceGetRepairStatus' +_cyb_nvml_slots[332] = &__nvmlDeviceGetPowerMizerMode_v1; _cyb_nvml_names[332] = b'nvmlDeviceGetPowerMizerMode_v1' +_cyb_nvml_slots[333] = &__nvmlDeviceSetPowerMizerMode_v1; _cyb_nvml_names[333] = b'nvmlDeviceSetPowerMizerMode_v1' +_cyb_nvml_slots[334] = &__nvmlDeviceGetPdi; _cyb_nvml_names[334] = b'nvmlDeviceGetPdi' +_cyb_nvml_slots[335] = &__nvmlDeviceSetHostname_v1; _cyb_nvml_names[335] = b'nvmlDeviceSetHostname_v1' +_cyb_nvml_slots[336] = &__nvmlDeviceGetHostname_v1; _cyb_nvml_names[336] = b'nvmlDeviceGetHostname_v1' +_cyb_nvml_slots[337] = &__nvmlDeviceGetNvLinkInfo; _cyb_nvml_names[337] = b'nvmlDeviceGetNvLinkInfo' +_cyb_nvml_slots[338] = &__nvmlDeviceReadWritePRM_v1; _cyb_nvml_names[338] = b'nvmlDeviceReadWritePRM_v1' +_cyb_nvml_slots[339] = &__nvmlDeviceGetGpuInstanceProfileInfoByIdV; _cyb_nvml_names[339] = b'nvmlDeviceGetGpuInstanceProfileInfoByIdV' +_cyb_nvml_slots[340] = &__nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts; _cyb_nvml_names[340] = b'nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts' +_cyb_nvml_slots[341] = &__nvmlDeviceGetUnrepairableMemoryFlag_v1; _cyb_nvml_names[341] = b'nvmlDeviceGetUnrepairableMemoryFlag_v1' +_cyb_nvml_slots[342] = &__nvmlDeviceReadPRMCounters_v1; _cyb_nvml_names[342] = b'nvmlDeviceReadPRMCounters_v1' +_cyb_nvml_slots[343] = &__nvmlDeviceSetRusdSettings_v1; _cyb_nvml_names[343] = b'nvmlDeviceSetRusdSettings_v1' +_cyb_nvml_slots[344] = &__nvmlDeviceVgpuForceGspUnload; _cyb_nvml_names[344] = b'nvmlDeviceVgpuForceGspUnload' +_cyb_nvml_slots[345] = &__nvmlDeviceGetVgpuSchedulerState_v2; _cyb_nvml_names[345] = b'nvmlDeviceGetVgpuSchedulerState_v2' +_cyb_nvml_slots[346] = &__nvmlGpuInstanceGetVgpuSchedulerState_v2; _cyb_nvml_names[346] = b'nvmlGpuInstanceGetVgpuSchedulerState_v2' +_cyb_nvml_slots[347] = &__nvmlDeviceGetVgpuSchedulerLog_v2; _cyb_nvml_names[347] = b'nvmlDeviceGetVgpuSchedulerLog_v2' +_cyb_nvml_slots[348] = &__nvmlGpuInstanceGetVgpuSchedulerLog_v2; _cyb_nvml_names[348] = b'nvmlGpuInstanceGetVgpuSchedulerLog_v2' +_cyb_nvml_slots[349] = &__nvmlDeviceSetVgpuSchedulerState_v2; _cyb_nvml_names[349] = b'nvmlDeviceSetVgpuSchedulerState_v2' +_cyb_nvml_slots[350] = &__nvmlGpuInstanceSetVgpuSchedulerState_v2; _cyb_nvml_names[350] = b'nvmlGpuInstanceSetVgpuSchedulerState_v2' +_cyb_nvml_slots[351] = &__nvmlSystemGetCPER_v1; _cyb_nvml_names[351] = b'nvmlSystemGetCPER_v1' +_cyb_nvml_slots[352] = &__nvmlDeviceGetBBXTimeData_v1; _cyb_nvml_names[352] = b'nvmlDeviceGetBBXTimeData_v1' +_cyb_nvml_slots[353] = &__nvmlDeviceGetAccountingStats_v2; _cyb_nvml_names[353] = b'nvmlDeviceGetAccountingStats_v2' +_cyb_nvml_slots[354] = &__nvmlDeviceGetRemappedRows_v2; _cyb_nvml_names[354] = b'nvmlDeviceGetRemappedRows_v2' +_cyb_nvml_slots[355] = &__nvmlDeviceSetAdaptiveTgpMode_v1; _cyb_nvml_names[355] = b'nvmlDeviceSetAdaptiveTgpMode_v1' +_cyb_nvml_slots[356] = &__nvmlDeviceGetAdaptiveTgpModeInfo_v1; _cyb_nvml_names[356] = b'nvmlDeviceGetAdaptiveTgpModeInfo_v1' +_cyb_nvml_slots[357] = &__nvmlDeviceSetMemoryLimits_v1; _cyb_nvml_names[357] = b'nvmlDeviceSetMemoryLimits_v1' +_cyb_nvml_slots[358] = &__nvmlDeviceGetMemoryLimits_v1; _cyb_nvml_names[358] = b'nvmlDeviceGetMemoryLimits_v1' +_cyb_nvml_slots[359] = &__nvmlDeviceGetGpuFabricInfo_v4; _cyb_nvml_names[359] = b'nvmlDeviceGetGpuFabricInfo_v4' +_cyb_nvml_slots[360] = &__nvmlDevicePerfMetricsGetSamples_v1; _cyb_nvml_names[360] = b'nvmlDevicePerfMetricsGetSamples_v1' +_cyb_nvml_slots[361] = &__nvmlDeviceSetNvlinkBwModeAsync_v1; _cyb_nvml_names[361] = b'nvmlDeviceSetNvlinkBwModeAsync_v1' +_cyb_nvml_slots[362] = &__nvmlDeviceGetNvLinkTelemetrySamples_v1; _cyb_nvml_names[362] = b'nvmlDeviceGetNvLinkTelemetrySamples_v1' +_cyb_nvml_slots[363] = &__nvmlEventSetRegisterGpuOperationalEvents_v1; _cyb_nvml_names[363] = b'nvmlEventSetRegisterGpuOperationalEvents_v1' +_cyb_nvml_slots[364] = &__nvmlEventSetWait_v3; _cyb_nvml_names[364] = b'nvmlEventSetWait_v3' +_cyb_nvml_slots[365] = &__nvmlEventSetGetContextCount_v1; _cyb_nvml_names[365] = b'nvmlEventSetGetContextCount_v1' +_cyb_nvml_slots[366] = &__nvmlEventSetGetContextInfo_v1; _cyb_nvml_names[366] = b'nvmlEventSetGetContextInfo_v1' +_cyb_nvml_slots[367] = &__nvmlEventSetGetContextData_v1; _cyb_nvml_names[367] = b'nvmlEventSetGetContextData_v1' +_cyb_nvml_slots[368] = &__nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1; _cyb_nvml_names[368] = b'nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1' +_cyb_nvml_slots[369] = &__nvmlDeviceGetBankRemapperStatus_v1; _cyb_nvml_names[369] = b'nvmlDeviceGetBankRemapperStatus_v1' +_cyb_nvml_slots[370] = &__nvmlDeviceGetGpuUptime_v1; _cyb_nvml_names[370] = b'nvmlDeviceGetGpuUptime_v1' +_cyb_nvml_slots[371] = &__nvmlSystemGetConfComputeSettings_v2; _cyb_nvml_names[371] = b'nvmlSystemGetConfComputeSettings_v2' +_cyb_nvml_slots[372] = &__nvmlDeviceGetNvLinkInfo_v3; _cyb_nvml_names[372] = b'nvmlDeviceGetNvLinkInfo_v3' +_cyb_nvml_slots[373] = &__nvmlDeviceGetNvlinkRemapTableInfo_v1; _cyb_nvml_names[373] = b'nvmlDeviceGetNvlinkRemapTableInfo_v1' +_cyb_nvml_slots[374] = &__nvmlDeviceSetNvlinkNvleReady_v1; _cyb_nvml_names[374] = b'nvmlDeviceSetNvlinkNvleReady_v1' +_cyb_nvml_slots[375] = &__nvmlDeviceLockNvlinkRemapTable_v1; _cyb_nvml_names[375] = b'nvmlDeviceLockNvlinkRemapTable_v1' +_cyb_nvml_slots[376] = &__nvmlDeviceSetupNvlinkNvleEncryptionKey_v1; _cyb_nvml_names[376] = b'nvmlDeviceSetupNvlinkNvleEncryptionKey_v1' +_cyb_nvml_slots[377] = &__nvmlDeviceGetNvlinkNvlePrivateInfo_v1; _cyb_nvml_names[377] = b'nvmlDeviceGetNvlinkNvlePrivateInfo_v1' + cdef int _init_nvml() except -1 nogil: global _cyb___py_nvml_init cdef void* handle = NULL + cdef Py_ssize_t i with gil, _cyb_symbol_lock: if _cyb___py_nvml_init: return 0 - global __nvmlInit_v2 - __nvmlInit_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlInit_v2') - if __nvmlInit_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlInit_v2 = _cyb_dlsym(handle, 'nvmlInit_v2') - - global __nvmlInitWithFlags - __nvmlInitWithFlags = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlInitWithFlags') - if __nvmlInitWithFlags == NULL: - if handle == NULL: - handle = load_library() - __nvmlInitWithFlags = _cyb_dlsym(handle, 'nvmlInitWithFlags') - - global __nvmlShutdown - __nvmlShutdown = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlShutdown') - if __nvmlShutdown == NULL: - if handle == NULL: - handle = load_library() - __nvmlShutdown = _cyb_dlsym(handle, 'nvmlShutdown') - - global __nvmlErrorString - __nvmlErrorString = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlErrorString') - if __nvmlErrorString == NULL: - if handle == NULL: - handle = load_library() - __nvmlErrorString = _cyb_dlsym(handle, 'nvmlErrorString') - - global __nvmlSystemGetDriverVersion - __nvmlSystemGetDriverVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetDriverVersion') - if __nvmlSystemGetDriverVersion == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetDriverVersion = _cyb_dlsym(handle, 'nvmlSystemGetDriverVersion') - - global __nvmlSystemGetNVMLVersion - __nvmlSystemGetNVMLVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetNVMLVersion') - if __nvmlSystemGetNVMLVersion == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetNVMLVersion = _cyb_dlsym(handle, 'nvmlSystemGetNVMLVersion') - - global __nvmlSystemGetCudaDriverVersion - __nvmlSystemGetCudaDriverVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetCudaDriverVersion') - if __nvmlSystemGetCudaDriverVersion == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetCudaDriverVersion = _cyb_dlsym(handle, 'nvmlSystemGetCudaDriverVersion') - - global __nvmlSystemGetCudaDriverVersion_v2 - __nvmlSystemGetCudaDriverVersion_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetCudaDriverVersion_v2') - if __nvmlSystemGetCudaDriverVersion_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetCudaDriverVersion_v2 = _cyb_dlsym(handle, 'nvmlSystemGetCudaDriverVersion_v2') - - global __nvmlSystemGetProcessName - __nvmlSystemGetProcessName = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetProcessName') - if __nvmlSystemGetProcessName == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetProcessName = _cyb_dlsym(handle, 'nvmlSystemGetProcessName') - - global __nvmlSystemGetHicVersion - __nvmlSystemGetHicVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetHicVersion') - if __nvmlSystemGetHicVersion == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetHicVersion = _cyb_dlsym(handle, 'nvmlSystemGetHicVersion') - - global __nvmlSystemGetTopologyGpuSet - __nvmlSystemGetTopologyGpuSet = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetTopologyGpuSet') - if __nvmlSystemGetTopologyGpuSet == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetTopologyGpuSet = _cyb_dlsym(handle, 'nvmlSystemGetTopologyGpuSet') - - global __nvmlSystemGetDriverBranch - __nvmlSystemGetDriverBranch = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetDriverBranch') - if __nvmlSystemGetDriverBranch == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetDriverBranch = _cyb_dlsym(handle, 'nvmlSystemGetDriverBranch') - - global __nvmlUnitGetCount - __nvmlUnitGetCount = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlUnitGetCount') - if __nvmlUnitGetCount == NULL: - if handle == NULL: - handle = load_library() - __nvmlUnitGetCount = _cyb_dlsym(handle, 'nvmlUnitGetCount') - - global __nvmlUnitGetHandleByIndex - __nvmlUnitGetHandleByIndex = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlUnitGetHandleByIndex') - if __nvmlUnitGetHandleByIndex == NULL: - if handle == NULL: - handle = load_library() - __nvmlUnitGetHandleByIndex = _cyb_dlsym(handle, 'nvmlUnitGetHandleByIndex') - - global __nvmlUnitGetUnitInfo - __nvmlUnitGetUnitInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlUnitGetUnitInfo') - if __nvmlUnitGetUnitInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlUnitGetUnitInfo = _cyb_dlsym(handle, 'nvmlUnitGetUnitInfo') - - global __nvmlUnitGetLedState - __nvmlUnitGetLedState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlUnitGetLedState') - if __nvmlUnitGetLedState == NULL: - if handle == NULL: - handle = load_library() - __nvmlUnitGetLedState = _cyb_dlsym(handle, 'nvmlUnitGetLedState') - - global __nvmlUnitGetPsuInfo - __nvmlUnitGetPsuInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlUnitGetPsuInfo') - if __nvmlUnitGetPsuInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlUnitGetPsuInfo = _cyb_dlsym(handle, 'nvmlUnitGetPsuInfo') - - global __nvmlUnitGetTemperature - __nvmlUnitGetTemperature = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlUnitGetTemperature') - if __nvmlUnitGetTemperature == NULL: - if handle == NULL: - handle = load_library() - __nvmlUnitGetTemperature = _cyb_dlsym(handle, 'nvmlUnitGetTemperature') - - global __nvmlUnitGetFanSpeedInfo - __nvmlUnitGetFanSpeedInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlUnitGetFanSpeedInfo') - if __nvmlUnitGetFanSpeedInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlUnitGetFanSpeedInfo = _cyb_dlsym(handle, 'nvmlUnitGetFanSpeedInfo') - - global __nvmlUnitGetDevices - __nvmlUnitGetDevices = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlUnitGetDevices') - if __nvmlUnitGetDevices == NULL: - if handle == NULL: - handle = load_library() - __nvmlUnitGetDevices = _cyb_dlsym(handle, 'nvmlUnitGetDevices') - - global __nvmlDeviceGetCount_v2 - __nvmlDeviceGetCount_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetCount_v2') - if __nvmlDeviceGetCount_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetCount_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetCount_v2') - - global __nvmlDeviceGetAttributes_v2 - __nvmlDeviceGetAttributes_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetAttributes_v2') - if __nvmlDeviceGetAttributes_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetAttributes_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetAttributes_v2') - - global __nvmlDeviceGetHandleByIndex_v2 - __nvmlDeviceGetHandleByIndex_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetHandleByIndex_v2') - if __nvmlDeviceGetHandleByIndex_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetHandleByIndex_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetHandleByIndex_v2') - - global __nvmlDeviceGetHandleBySerial - __nvmlDeviceGetHandleBySerial = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetHandleBySerial') - if __nvmlDeviceGetHandleBySerial == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetHandleBySerial = _cyb_dlsym(handle, 'nvmlDeviceGetHandleBySerial') - - global __nvmlDeviceGetHandleByUUID - __nvmlDeviceGetHandleByUUID = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetHandleByUUID') - if __nvmlDeviceGetHandleByUUID == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetHandleByUUID = _cyb_dlsym(handle, 'nvmlDeviceGetHandleByUUID') - - global __nvmlDeviceGetHandleByUUIDV - __nvmlDeviceGetHandleByUUIDV = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetHandleByUUIDV') - if __nvmlDeviceGetHandleByUUIDV == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetHandleByUUIDV = _cyb_dlsym(handle, 'nvmlDeviceGetHandleByUUIDV') - - global __nvmlDeviceGetHandleByPciBusId_v2 - __nvmlDeviceGetHandleByPciBusId_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetHandleByPciBusId_v2') - if __nvmlDeviceGetHandleByPciBusId_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetHandleByPciBusId_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetHandleByPciBusId_v2') - - global __nvmlDeviceGetName - __nvmlDeviceGetName = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetName') - if __nvmlDeviceGetName == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetName = _cyb_dlsym(handle, 'nvmlDeviceGetName') - - global __nvmlDeviceGetBrand - __nvmlDeviceGetBrand = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetBrand') - if __nvmlDeviceGetBrand == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetBrand = _cyb_dlsym(handle, 'nvmlDeviceGetBrand') - - global __nvmlDeviceGetIndex - __nvmlDeviceGetIndex = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetIndex') - if __nvmlDeviceGetIndex == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetIndex = _cyb_dlsym(handle, 'nvmlDeviceGetIndex') - - global __nvmlDeviceGetSerial - __nvmlDeviceGetSerial = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetSerial') - if __nvmlDeviceGetSerial == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetSerial = _cyb_dlsym(handle, 'nvmlDeviceGetSerial') - - global __nvmlDeviceGetModuleId - __nvmlDeviceGetModuleId = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetModuleId') - if __nvmlDeviceGetModuleId == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetModuleId = _cyb_dlsym(handle, 'nvmlDeviceGetModuleId') - - global __nvmlDeviceGetC2cModeInfoV - __nvmlDeviceGetC2cModeInfoV = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetC2cModeInfoV') - if __nvmlDeviceGetC2cModeInfoV == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetC2cModeInfoV = _cyb_dlsym(handle, 'nvmlDeviceGetC2cModeInfoV') - - global __nvmlDeviceGetMemoryAffinity - __nvmlDeviceGetMemoryAffinity = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMemoryAffinity') - if __nvmlDeviceGetMemoryAffinity == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMemoryAffinity = _cyb_dlsym(handle, 'nvmlDeviceGetMemoryAffinity') - - global __nvmlDeviceGetCpuAffinityWithinScope - __nvmlDeviceGetCpuAffinityWithinScope = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetCpuAffinityWithinScope') - if __nvmlDeviceGetCpuAffinityWithinScope == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetCpuAffinityWithinScope = _cyb_dlsym(handle, 'nvmlDeviceGetCpuAffinityWithinScope') - - global __nvmlDeviceGetCpuAffinity - __nvmlDeviceGetCpuAffinity = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetCpuAffinity') - if __nvmlDeviceGetCpuAffinity == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetCpuAffinity = _cyb_dlsym(handle, 'nvmlDeviceGetCpuAffinity') - - global __nvmlDeviceSetCpuAffinity - __nvmlDeviceSetCpuAffinity = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetCpuAffinity') - if __nvmlDeviceSetCpuAffinity == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetCpuAffinity = _cyb_dlsym(handle, 'nvmlDeviceSetCpuAffinity') - - global __nvmlDeviceClearCpuAffinity - __nvmlDeviceClearCpuAffinity = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceClearCpuAffinity') - if __nvmlDeviceClearCpuAffinity == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceClearCpuAffinity = _cyb_dlsym(handle, 'nvmlDeviceClearCpuAffinity') - - global __nvmlDeviceGetNumaNodeId - __nvmlDeviceGetNumaNodeId = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNumaNodeId') - if __nvmlDeviceGetNumaNodeId == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNumaNodeId = _cyb_dlsym(handle, 'nvmlDeviceGetNumaNodeId') - - global __nvmlDeviceGetTopologyCommonAncestor - __nvmlDeviceGetTopologyCommonAncestor = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetTopologyCommonAncestor') - if __nvmlDeviceGetTopologyCommonAncestor == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetTopologyCommonAncestor = _cyb_dlsym(handle, 'nvmlDeviceGetTopologyCommonAncestor') - - global __nvmlDeviceGetTopologyNearestGpus - __nvmlDeviceGetTopologyNearestGpus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetTopologyNearestGpus') - if __nvmlDeviceGetTopologyNearestGpus == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetTopologyNearestGpus = _cyb_dlsym(handle, 'nvmlDeviceGetTopologyNearestGpus') - - global __nvmlDeviceGetP2PStatus - __nvmlDeviceGetP2PStatus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetP2PStatus') - if __nvmlDeviceGetP2PStatus == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetP2PStatus = _cyb_dlsym(handle, 'nvmlDeviceGetP2PStatus') - - global __nvmlDeviceGetUUID - __nvmlDeviceGetUUID = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetUUID') - if __nvmlDeviceGetUUID == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetUUID = _cyb_dlsym(handle, 'nvmlDeviceGetUUID') - - global __nvmlDeviceGetMinorNumber - __nvmlDeviceGetMinorNumber = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMinorNumber') - if __nvmlDeviceGetMinorNumber == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMinorNumber = _cyb_dlsym(handle, 'nvmlDeviceGetMinorNumber') - - global __nvmlDeviceGetBoardPartNumber - __nvmlDeviceGetBoardPartNumber = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetBoardPartNumber') - if __nvmlDeviceGetBoardPartNumber == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetBoardPartNumber = _cyb_dlsym(handle, 'nvmlDeviceGetBoardPartNumber') - - global __nvmlDeviceGetInforomVersion - __nvmlDeviceGetInforomVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetInforomVersion') - if __nvmlDeviceGetInforomVersion == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetInforomVersion = _cyb_dlsym(handle, 'nvmlDeviceGetInforomVersion') - - global __nvmlDeviceGetInforomImageVersion - __nvmlDeviceGetInforomImageVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetInforomImageVersion') - if __nvmlDeviceGetInforomImageVersion == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetInforomImageVersion = _cyb_dlsym(handle, 'nvmlDeviceGetInforomImageVersion') - - global __nvmlDeviceGetInforomConfigurationChecksum - __nvmlDeviceGetInforomConfigurationChecksum = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetInforomConfigurationChecksum') - if __nvmlDeviceGetInforomConfigurationChecksum == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetInforomConfigurationChecksum = _cyb_dlsym(handle, 'nvmlDeviceGetInforomConfigurationChecksum') - - global __nvmlDeviceValidateInforom - __nvmlDeviceValidateInforom = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceValidateInforom') - if __nvmlDeviceValidateInforom == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceValidateInforom = _cyb_dlsym(handle, 'nvmlDeviceValidateInforom') - - global __nvmlDeviceGetLastBBXFlushTime - __nvmlDeviceGetLastBBXFlushTime = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetLastBBXFlushTime') - if __nvmlDeviceGetLastBBXFlushTime == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetLastBBXFlushTime = _cyb_dlsym(handle, 'nvmlDeviceGetLastBBXFlushTime') - - global __nvmlDeviceGetDisplayMode - __nvmlDeviceGetDisplayMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetDisplayMode') - if __nvmlDeviceGetDisplayMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetDisplayMode = _cyb_dlsym(handle, 'nvmlDeviceGetDisplayMode') - - global __nvmlDeviceGetDisplayActive - __nvmlDeviceGetDisplayActive = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetDisplayActive') - if __nvmlDeviceGetDisplayActive == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetDisplayActive = _cyb_dlsym(handle, 'nvmlDeviceGetDisplayActive') - - global __nvmlDeviceGetPersistenceMode - __nvmlDeviceGetPersistenceMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPersistenceMode') - if __nvmlDeviceGetPersistenceMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPersistenceMode = _cyb_dlsym(handle, 'nvmlDeviceGetPersistenceMode') - - global __nvmlDeviceGetPciInfoExt - __nvmlDeviceGetPciInfoExt = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPciInfoExt') - if __nvmlDeviceGetPciInfoExt == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPciInfoExt = _cyb_dlsym(handle, 'nvmlDeviceGetPciInfoExt') - - global __nvmlDeviceGetPciInfo_v3 - __nvmlDeviceGetPciInfo_v3 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPciInfo_v3') - if __nvmlDeviceGetPciInfo_v3 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPciInfo_v3 = _cyb_dlsym(handle, 'nvmlDeviceGetPciInfo_v3') - - global __nvmlDeviceGetMaxPcieLinkGeneration - __nvmlDeviceGetMaxPcieLinkGeneration = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMaxPcieLinkGeneration') - if __nvmlDeviceGetMaxPcieLinkGeneration == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMaxPcieLinkGeneration = _cyb_dlsym(handle, 'nvmlDeviceGetMaxPcieLinkGeneration') - - global __nvmlDeviceGetGpuMaxPcieLinkGeneration - __nvmlDeviceGetGpuMaxPcieLinkGeneration = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGpuMaxPcieLinkGeneration') - if __nvmlDeviceGetGpuMaxPcieLinkGeneration == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGpuMaxPcieLinkGeneration = _cyb_dlsym(handle, 'nvmlDeviceGetGpuMaxPcieLinkGeneration') - - global __nvmlDeviceGetMaxPcieLinkWidth - __nvmlDeviceGetMaxPcieLinkWidth = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMaxPcieLinkWidth') - if __nvmlDeviceGetMaxPcieLinkWidth == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMaxPcieLinkWidth = _cyb_dlsym(handle, 'nvmlDeviceGetMaxPcieLinkWidth') - - global __nvmlDeviceGetCurrPcieLinkGeneration - __nvmlDeviceGetCurrPcieLinkGeneration = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetCurrPcieLinkGeneration') - if __nvmlDeviceGetCurrPcieLinkGeneration == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetCurrPcieLinkGeneration = _cyb_dlsym(handle, 'nvmlDeviceGetCurrPcieLinkGeneration') - - global __nvmlDeviceGetCurrPcieLinkWidth - __nvmlDeviceGetCurrPcieLinkWidth = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetCurrPcieLinkWidth') - if __nvmlDeviceGetCurrPcieLinkWidth == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetCurrPcieLinkWidth = _cyb_dlsym(handle, 'nvmlDeviceGetCurrPcieLinkWidth') - - global __nvmlDeviceGetPcieThroughput - __nvmlDeviceGetPcieThroughput = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPcieThroughput') - if __nvmlDeviceGetPcieThroughput == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPcieThroughput = _cyb_dlsym(handle, 'nvmlDeviceGetPcieThroughput') - - global __nvmlDeviceGetPcieReplayCounter - __nvmlDeviceGetPcieReplayCounter = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPcieReplayCounter') - if __nvmlDeviceGetPcieReplayCounter == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPcieReplayCounter = _cyb_dlsym(handle, 'nvmlDeviceGetPcieReplayCounter') - - global __nvmlDeviceGetClockInfo - __nvmlDeviceGetClockInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetClockInfo') - if __nvmlDeviceGetClockInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetClockInfo = _cyb_dlsym(handle, 'nvmlDeviceGetClockInfo') - - global __nvmlDeviceGetMaxClockInfo - __nvmlDeviceGetMaxClockInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMaxClockInfo') - if __nvmlDeviceGetMaxClockInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMaxClockInfo = _cyb_dlsym(handle, 'nvmlDeviceGetMaxClockInfo') - - global __nvmlDeviceGetGpcClkVfOffset - __nvmlDeviceGetGpcClkVfOffset = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGpcClkVfOffset') - if __nvmlDeviceGetGpcClkVfOffset == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGpcClkVfOffset = _cyb_dlsym(handle, 'nvmlDeviceGetGpcClkVfOffset') - - global __nvmlDeviceGetClock - __nvmlDeviceGetClock = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetClock') - if __nvmlDeviceGetClock == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetClock = _cyb_dlsym(handle, 'nvmlDeviceGetClock') - - global __nvmlDeviceGetMaxCustomerBoostClock - __nvmlDeviceGetMaxCustomerBoostClock = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMaxCustomerBoostClock') - if __nvmlDeviceGetMaxCustomerBoostClock == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMaxCustomerBoostClock = _cyb_dlsym(handle, 'nvmlDeviceGetMaxCustomerBoostClock') - - global __nvmlDeviceGetSupportedMemoryClocks - __nvmlDeviceGetSupportedMemoryClocks = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetSupportedMemoryClocks') - if __nvmlDeviceGetSupportedMemoryClocks == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetSupportedMemoryClocks = _cyb_dlsym(handle, 'nvmlDeviceGetSupportedMemoryClocks') - - global __nvmlDeviceGetSupportedGraphicsClocks - __nvmlDeviceGetSupportedGraphicsClocks = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetSupportedGraphicsClocks') - if __nvmlDeviceGetSupportedGraphicsClocks == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetSupportedGraphicsClocks = _cyb_dlsym(handle, 'nvmlDeviceGetSupportedGraphicsClocks') - - global __nvmlDeviceGetAutoBoostedClocksEnabled - __nvmlDeviceGetAutoBoostedClocksEnabled = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetAutoBoostedClocksEnabled') - if __nvmlDeviceGetAutoBoostedClocksEnabled == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetAutoBoostedClocksEnabled = _cyb_dlsym(handle, 'nvmlDeviceGetAutoBoostedClocksEnabled') - - global __nvmlDeviceGetFanSpeed - __nvmlDeviceGetFanSpeed = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetFanSpeed') - if __nvmlDeviceGetFanSpeed == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetFanSpeed = _cyb_dlsym(handle, 'nvmlDeviceGetFanSpeed') - - global __nvmlDeviceGetFanSpeed_v2 - __nvmlDeviceGetFanSpeed_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetFanSpeed_v2') - if __nvmlDeviceGetFanSpeed_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetFanSpeed_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetFanSpeed_v2') - - global __nvmlDeviceGetFanSpeedRPM - __nvmlDeviceGetFanSpeedRPM = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetFanSpeedRPM') - if __nvmlDeviceGetFanSpeedRPM == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetFanSpeedRPM = _cyb_dlsym(handle, 'nvmlDeviceGetFanSpeedRPM') - - global __nvmlDeviceGetTargetFanSpeed - __nvmlDeviceGetTargetFanSpeed = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetTargetFanSpeed') - if __nvmlDeviceGetTargetFanSpeed == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetTargetFanSpeed = _cyb_dlsym(handle, 'nvmlDeviceGetTargetFanSpeed') - - global __nvmlDeviceGetMinMaxFanSpeed - __nvmlDeviceGetMinMaxFanSpeed = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMinMaxFanSpeed') - if __nvmlDeviceGetMinMaxFanSpeed == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMinMaxFanSpeed = _cyb_dlsym(handle, 'nvmlDeviceGetMinMaxFanSpeed') - - global __nvmlDeviceGetFanControlPolicy_v2 - __nvmlDeviceGetFanControlPolicy_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetFanControlPolicy_v2') - if __nvmlDeviceGetFanControlPolicy_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetFanControlPolicy_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetFanControlPolicy_v2') - - global __nvmlDeviceGetNumFans - __nvmlDeviceGetNumFans = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNumFans') - if __nvmlDeviceGetNumFans == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNumFans = _cyb_dlsym(handle, 'nvmlDeviceGetNumFans') - - global __nvmlDeviceGetCoolerInfo - __nvmlDeviceGetCoolerInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetCoolerInfo') - if __nvmlDeviceGetCoolerInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetCoolerInfo = _cyb_dlsym(handle, 'nvmlDeviceGetCoolerInfo') - - global __nvmlDeviceGetTemperatureV - __nvmlDeviceGetTemperatureV = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetTemperatureV') - if __nvmlDeviceGetTemperatureV == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetTemperatureV = _cyb_dlsym(handle, 'nvmlDeviceGetTemperatureV') - - global __nvmlDeviceGetTemperatureThreshold - __nvmlDeviceGetTemperatureThreshold = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetTemperatureThreshold') - if __nvmlDeviceGetTemperatureThreshold == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetTemperatureThreshold = _cyb_dlsym(handle, 'nvmlDeviceGetTemperatureThreshold') - - global __nvmlDeviceGetMarginTemperature - __nvmlDeviceGetMarginTemperature = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMarginTemperature') - if __nvmlDeviceGetMarginTemperature == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMarginTemperature = _cyb_dlsym(handle, 'nvmlDeviceGetMarginTemperature') - - global __nvmlDeviceGetThermalSettings - __nvmlDeviceGetThermalSettings = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetThermalSettings') - if __nvmlDeviceGetThermalSettings == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetThermalSettings = _cyb_dlsym(handle, 'nvmlDeviceGetThermalSettings') - - global __nvmlDeviceGetPerformanceState - __nvmlDeviceGetPerformanceState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPerformanceState') - if __nvmlDeviceGetPerformanceState == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPerformanceState = _cyb_dlsym(handle, 'nvmlDeviceGetPerformanceState') - - global __nvmlDeviceGetCurrentClocksEventReasons - __nvmlDeviceGetCurrentClocksEventReasons = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetCurrentClocksEventReasons') - if __nvmlDeviceGetCurrentClocksEventReasons == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetCurrentClocksEventReasons = _cyb_dlsym(handle, 'nvmlDeviceGetCurrentClocksEventReasons') - - global __nvmlDeviceGetSupportedClocksEventReasons - __nvmlDeviceGetSupportedClocksEventReasons = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetSupportedClocksEventReasons') - if __nvmlDeviceGetSupportedClocksEventReasons == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetSupportedClocksEventReasons = _cyb_dlsym(handle, 'nvmlDeviceGetSupportedClocksEventReasons') - - global __nvmlDeviceGetPowerState - __nvmlDeviceGetPowerState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPowerState') - if __nvmlDeviceGetPowerState == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPowerState = _cyb_dlsym(handle, 'nvmlDeviceGetPowerState') - - global __nvmlDeviceGetDynamicPstatesInfo - __nvmlDeviceGetDynamicPstatesInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetDynamicPstatesInfo') - if __nvmlDeviceGetDynamicPstatesInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetDynamicPstatesInfo = _cyb_dlsym(handle, 'nvmlDeviceGetDynamicPstatesInfo') - - global __nvmlDeviceGetMemClkVfOffset - __nvmlDeviceGetMemClkVfOffset = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMemClkVfOffset') - if __nvmlDeviceGetMemClkVfOffset == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMemClkVfOffset = _cyb_dlsym(handle, 'nvmlDeviceGetMemClkVfOffset') - - global __nvmlDeviceGetMinMaxClockOfPState - __nvmlDeviceGetMinMaxClockOfPState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMinMaxClockOfPState') - if __nvmlDeviceGetMinMaxClockOfPState == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMinMaxClockOfPState = _cyb_dlsym(handle, 'nvmlDeviceGetMinMaxClockOfPState') - - global __nvmlDeviceGetSupportedPerformanceStates - __nvmlDeviceGetSupportedPerformanceStates = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetSupportedPerformanceStates') - if __nvmlDeviceGetSupportedPerformanceStates == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetSupportedPerformanceStates = _cyb_dlsym(handle, 'nvmlDeviceGetSupportedPerformanceStates') - - global __nvmlDeviceGetGpcClkMinMaxVfOffset - __nvmlDeviceGetGpcClkMinMaxVfOffset = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGpcClkMinMaxVfOffset') - if __nvmlDeviceGetGpcClkMinMaxVfOffset == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGpcClkMinMaxVfOffset = _cyb_dlsym(handle, 'nvmlDeviceGetGpcClkMinMaxVfOffset') - - global __nvmlDeviceGetMemClkMinMaxVfOffset - __nvmlDeviceGetMemClkMinMaxVfOffset = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMemClkMinMaxVfOffset') - if __nvmlDeviceGetMemClkMinMaxVfOffset == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMemClkMinMaxVfOffset = _cyb_dlsym(handle, 'nvmlDeviceGetMemClkMinMaxVfOffset') - - global __nvmlDeviceGetClockOffsets - __nvmlDeviceGetClockOffsets = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetClockOffsets') - if __nvmlDeviceGetClockOffsets == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetClockOffsets = _cyb_dlsym(handle, 'nvmlDeviceGetClockOffsets') - - global __nvmlDeviceSetClockOffsets - __nvmlDeviceSetClockOffsets = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetClockOffsets') - if __nvmlDeviceSetClockOffsets == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetClockOffsets = _cyb_dlsym(handle, 'nvmlDeviceSetClockOffsets') - - global __nvmlDeviceGetPerformanceModes - __nvmlDeviceGetPerformanceModes = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPerformanceModes') - if __nvmlDeviceGetPerformanceModes == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPerformanceModes = _cyb_dlsym(handle, 'nvmlDeviceGetPerformanceModes') - - global __nvmlDeviceGetCurrentClockFreqs - __nvmlDeviceGetCurrentClockFreqs = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetCurrentClockFreqs') - if __nvmlDeviceGetCurrentClockFreqs == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetCurrentClockFreqs = _cyb_dlsym(handle, 'nvmlDeviceGetCurrentClockFreqs') - - global __nvmlDeviceGetPowerManagementLimit - __nvmlDeviceGetPowerManagementLimit = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPowerManagementLimit') - if __nvmlDeviceGetPowerManagementLimit == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPowerManagementLimit = _cyb_dlsym(handle, 'nvmlDeviceGetPowerManagementLimit') - - global __nvmlDeviceGetPowerManagementLimitConstraints - __nvmlDeviceGetPowerManagementLimitConstraints = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPowerManagementLimitConstraints') - if __nvmlDeviceGetPowerManagementLimitConstraints == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPowerManagementLimitConstraints = _cyb_dlsym(handle, 'nvmlDeviceGetPowerManagementLimitConstraints') - - global __nvmlDeviceGetPowerManagementDefaultLimit - __nvmlDeviceGetPowerManagementDefaultLimit = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPowerManagementDefaultLimit') - if __nvmlDeviceGetPowerManagementDefaultLimit == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPowerManagementDefaultLimit = _cyb_dlsym(handle, 'nvmlDeviceGetPowerManagementDefaultLimit') - - global __nvmlDeviceGetPowerUsage - __nvmlDeviceGetPowerUsage = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPowerUsage') - if __nvmlDeviceGetPowerUsage == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPowerUsage = _cyb_dlsym(handle, 'nvmlDeviceGetPowerUsage') - - global __nvmlDeviceGetTotalEnergyConsumption - __nvmlDeviceGetTotalEnergyConsumption = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetTotalEnergyConsumption') - if __nvmlDeviceGetTotalEnergyConsumption == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetTotalEnergyConsumption = _cyb_dlsym(handle, 'nvmlDeviceGetTotalEnergyConsumption') - - global __nvmlDeviceGetEnforcedPowerLimit - __nvmlDeviceGetEnforcedPowerLimit = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetEnforcedPowerLimit') - if __nvmlDeviceGetEnforcedPowerLimit == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetEnforcedPowerLimit = _cyb_dlsym(handle, 'nvmlDeviceGetEnforcedPowerLimit') - - global __nvmlDeviceGetGpuOperationMode - __nvmlDeviceGetGpuOperationMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGpuOperationMode') - if __nvmlDeviceGetGpuOperationMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGpuOperationMode = _cyb_dlsym(handle, 'nvmlDeviceGetGpuOperationMode') - - global __nvmlDeviceGetMemoryInfo_v2 - __nvmlDeviceGetMemoryInfo_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMemoryInfo_v2') - if __nvmlDeviceGetMemoryInfo_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMemoryInfo_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetMemoryInfo_v2') - - global __nvmlDeviceGetComputeMode - __nvmlDeviceGetComputeMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetComputeMode') - if __nvmlDeviceGetComputeMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetComputeMode = _cyb_dlsym(handle, 'nvmlDeviceGetComputeMode') - - global __nvmlDeviceGetCudaComputeCapability - __nvmlDeviceGetCudaComputeCapability = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetCudaComputeCapability') - if __nvmlDeviceGetCudaComputeCapability == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetCudaComputeCapability = _cyb_dlsym(handle, 'nvmlDeviceGetCudaComputeCapability') - - global __nvmlDeviceGetDramEncryptionMode - __nvmlDeviceGetDramEncryptionMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetDramEncryptionMode') - if __nvmlDeviceGetDramEncryptionMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetDramEncryptionMode = _cyb_dlsym(handle, 'nvmlDeviceGetDramEncryptionMode') - - global __nvmlDeviceSetDramEncryptionMode - __nvmlDeviceSetDramEncryptionMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetDramEncryptionMode') - if __nvmlDeviceSetDramEncryptionMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetDramEncryptionMode = _cyb_dlsym(handle, 'nvmlDeviceSetDramEncryptionMode') - - global __nvmlDeviceGetEccMode - __nvmlDeviceGetEccMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetEccMode') - if __nvmlDeviceGetEccMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetEccMode = _cyb_dlsym(handle, 'nvmlDeviceGetEccMode') - - global __nvmlDeviceGetDefaultEccMode - __nvmlDeviceGetDefaultEccMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetDefaultEccMode') - if __nvmlDeviceGetDefaultEccMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetDefaultEccMode = _cyb_dlsym(handle, 'nvmlDeviceGetDefaultEccMode') - - global __nvmlDeviceGetBoardId - __nvmlDeviceGetBoardId = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetBoardId') - if __nvmlDeviceGetBoardId == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetBoardId = _cyb_dlsym(handle, 'nvmlDeviceGetBoardId') - - global __nvmlDeviceGetMultiGpuBoard - __nvmlDeviceGetMultiGpuBoard = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMultiGpuBoard') - if __nvmlDeviceGetMultiGpuBoard == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMultiGpuBoard = _cyb_dlsym(handle, 'nvmlDeviceGetMultiGpuBoard') - - global __nvmlDeviceGetTotalEccErrors - __nvmlDeviceGetTotalEccErrors = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetTotalEccErrors') - if __nvmlDeviceGetTotalEccErrors == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetTotalEccErrors = _cyb_dlsym(handle, 'nvmlDeviceGetTotalEccErrors') - - global __nvmlDeviceGetMemoryErrorCounter - __nvmlDeviceGetMemoryErrorCounter = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMemoryErrorCounter') - if __nvmlDeviceGetMemoryErrorCounter == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMemoryErrorCounter = _cyb_dlsym(handle, 'nvmlDeviceGetMemoryErrorCounter') - - global __nvmlDeviceGetUtilizationRates - __nvmlDeviceGetUtilizationRates = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetUtilizationRates') - if __nvmlDeviceGetUtilizationRates == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetUtilizationRates = _cyb_dlsym(handle, 'nvmlDeviceGetUtilizationRates') - - global __nvmlDeviceGetEncoderUtilization - __nvmlDeviceGetEncoderUtilization = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetEncoderUtilization') - if __nvmlDeviceGetEncoderUtilization == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetEncoderUtilization = _cyb_dlsym(handle, 'nvmlDeviceGetEncoderUtilization') - - global __nvmlDeviceGetEncoderCapacity - __nvmlDeviceGetEncoderCapacity = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetEncoderCapacity') - if __nvmlDeviceGetEncoderCapacity == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetEncoderCapacity = _cyb_dlsym(handle, 'nvmlDeviceGetEncoderCapacity') - - global __nvmlDeviceGetEncoderStats - __nvmlDeviceGetEncoderStats = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetEncoderStats') - if __nvmlDeviceGetEncoderStats == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetEncoderStats = _cyb_dlsym(handle, 'nvmlDeviceGetEncoderStats') - - global __nvmlDeviceGetEncoderSessions - __nvmlDeviceGetEncoderSessions = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetEncoderSessions') - if __nvmlDeviceGetEncoderSessions == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetEncoderSessions = _cyb_dlsym(handle, 'nvmlDeviceGetEncoderSessions') - - global __nvmlDeviceGetDecoderUtilization - __nvmlDeviceGetDecoderUtilization = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetDecoderUtilization') - if __nvmlDeviceGetDecoderUtilization == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetDecoderUtilization = _cyb_dlsym(handle, 'nvmlDeviceGetDecoderUtilization') - - global __nvmlDeviceGetJpgUtilization - __nvmlDeviceGetJpgUtilization = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetJpgUtilization') - if __nvmlDeviceGetJpgUtilization == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetJpgUtilization = _cyb_dlsym(handle, 'nvmlDeviceGetJpgUtilization') - - global __nvmlDeviceGetOfaUtilization - __nvmlDeviceGetOfaUtilization = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetOfaUtilization') - if __nvmlDeviceGetOfaUtilization == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetOfaUtilization = _cyb_dlsym(handle, 'nvmlDeviceGetOfaUtilization') - - global __nvmlDeviceGetFBCStats - __nvmlDeviceGetFBCStats = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetFBCStats') - if __nvmlDeviceGetFBCStats == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetFBCStats = _cyb_dlsym(handle, 'nvmlDeviceGetFBCStats') - - global __nvmlDeviceGetFBCSessions - __nvmlDeviceGetFBCSessions = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetFBCSessions') - if __nvmlDeviceGetFBCSessions == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetFBCSessions = _cyb_dlsym(handle, 'nvmlDeviceGetFBCSessions') - - global __nvmlDeviceGetDriverModel_v2 - __nvmlDeviceGetDriverModel_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetDriverModel_v2') - if __nvmlDeviceGetDriverModel_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetDriverModel_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetDriverModel_v2') - - global __nvmlDeviceGetVbiosVersion - __nvmlDeviceGetVbiosVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVbiosVersion') - if __nvmlDeviceGetVbiosVersion == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVbiosVersion = _cyb_dlsym(handle, 'nvmlDeviceGetVbiosVersion') - - global __nvmlDeviceGetBridgeChipInfo - __nvmlDeviceGetBridgeChipInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetBridgeChipInfo') - if __nvmlDeviceGetBridgeChipInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetBridgeChipInfo = _cyb_dlsym(handle, 'nvmlDeviceGetBridgeChipInfo') - - global __nvmlDeviceGetComputeRunningProcesses_v3 - __nvmlDeviceGetComputeRunningProcesses_v3 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetComputeRunningProcesses_v3') - if __nvmlDeviceGetComputeRunningProcesses_v3 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetComputeRunningProcesses_v3 = _cyb_dlsym(handle, 'nvmlDeviceGetComputeRunningProcesses_v3') - - global __nvmlDeviceGetGraphicsRunningProcesses_v3 - __nvmlDeviceGetGraphicsRunningProcesses_v3 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGraphicsRunningProcesses_v3') - if __nvmlDeviceGetGraphicsRunningProcesses_v3 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGraphicsRunningProcesses_v3 = _cyb_dlsym(handle, 'nvmlDeviceGetGraphicsRunningProcesses_v3') - - global __nvmlDeviceGetMPSComputeRunningProcesses_v3 - __nvmlDeviceGetMPSComputeRunningProcesses_v3 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMPSComputeRunningProcesses_v3') - if __nvmlDeviceGetMPSComputeRunningProcesses_v3 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMPSComputeRunningProcesses_v3 = _cyb_dlsym(handle, 'nvmlDeviceGetMPSComputeRunningProcesses_v3') - - global __nvmlDeviceGetRunningProcessDetailList - __nvmlDeviceGetRunningProcessDetailList = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetRunningProcessDetailList') - if __nvmlDeviceGetRunningProcessDetailList == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetRunningProcessDetailList = _cyb_dlsym(handle, 'nvmlDeviceGetRunningProcessDetailList') - - global __nvmlDeviceOnSameBoard - __nvmlDeviceOnSameBoard = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceOnSameBoard') - if __nvmlDeviceOnSameBoard == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceOnSameBoard = _cyb_dlsym(handle, 'nvmlDeviceOnSameBoard') - - global __nvmlDeviceGetAPIRestriction - __nvmlDeviceGetAPIRestriction = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetAPIRestriction') - if __nvmlDeviceGetAPIRestriction == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetAPIRestriction = _cyb_dlsym(handle, 'nvmlDeviceGetAPIRestriction') - - global __nvmlDeviceGetSamples - __nvmlDeviceGetSamples = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetSamples') - if __nvmlDeviceGetSamples == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetSamples = _cyb_dlsym(handle, 'nvmlDeviceGetSamples') - - global __nvmlDeviceGetBAR1MemoryInfo - __nvmlDeviceGetBAR1MemoryInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetBAR1MemoryInfo') - if __nvmlDeviceGetBAR1MemoryInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetBAR1MemoryInfo = _cyb_dlsym(handle, 'nvmlDeviceGetBAR1MemoryInfo') - - global __nvmlDeviceGetIrqNum - __nvmlDeviceGetIrqNum = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetIrqNum') - if __nvmlDeviceGetIrqNum == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetIrqNum = _cyb_dlsym(handle, 'nvmlDeviceGetIrqNum') - - global __nvmlDeviceGetNumGpuCores - __nvmlDeviceGetNumGpuCores = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNumGpuCores') - if __nvmlDeviceGetNumGpuCores == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNumGpuCores = _cyb_dlsym(handle, 'nvmlDeviceGetNumGpuCores') - - global __nvmlDeviceGetPowerSource - __nvmlDeviceGetPowerSource = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPowerSource') - if __nvmlDeviceGetPowerSource == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPowerSource = _cyb_dlsym(handle, 'nvmlDeviceGetPowerSource') - - global __nvmlDeviceGetMemoryBusWidth - __nvmlDeviceGetMemoryBusWidth = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMemoryBusWidth') - if __nvmlDeviceGetMemoryBusWidth == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMemoryBusWidth = _cyb_dlsym(handle, 'nvmlDeviceGetMemoryBusWidth') - - global __nvmlDeviceGetPcieLinkMaxSpeed - __nvmlDeviceGetPcieLinkMaxSpeed = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPcieLinkMaxSpeed') - if __nvmlDeviceGetPcieLinkMaxSpeed == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPcieLinkMaxSpeed = _cyb_dlsym(handle, 'nvmlDeviceGetPcieLinkMaxSpeed') - - global __nvmlDeviceGetPcieSpeed - __nvmlDeviceGetPcieSpeed = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPcieSpeed') - if __nvmlDeviceGetPcieSpeed == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPcieSpeed = _cyb_dlsym(handle, 'nvmlDeviceGetPcieSpeed') - - global __nvmlDeviceGetAdaptiveClockInfoStatus - __nvmlDeviceGetAdaptiveClockInfoStatus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetAdaptiveClockInfoStatus') - if __nvmlDeviceGetAdaptiveClockInfoStatus == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetAdaptiveClockInfoStatus = _cyb_dlsym(handle, 'nvmlDeviceGetAdaptiveClockInfoStatus') - - global __nvmlDeviceGetBusType - __nvmlDeviceGetBusType = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetBusType') - if __nvmlDeviceGetBusType == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetBusType = _cyb_dlsym(handle, 'nvmlDeviceGetBusType') - - global __nvmlDeviceGetGpuFabricInfoV - __nvmlDeviceGetGpuFabricInfoV = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGpuFabricInfoV') - if __nvmlDeviceGetGpuFabricInfoV == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGpuFabricInfoV = _cyb_dlsym(handle, 'nvmlDeviceGetGpuFabricInfoV') - - global __nvmlSystemGetConfComputeCapabilities - __nvmlSystemGetConfComputeCapabilities = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetConfComputeCapabilities') - if __nvmlSystemGetConfComputeCapabilities == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetConfComputeCapabilities = _cyb_dlsym(handle, 'nvmlSystemGetConfComputeCapabilities') - - global __nvmlSystemGetConfComputeState - __nvmlSystemGetConfComputeState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetConfComputeState') - if __nvmlSystemGetConfComputeState == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetConfComputeState = _cyb_dlsym(handle, 'nvmlSystemGetConfComputeState') - - global __nvmlDeviceGetConfComputeMemSizeInfo - __nvmlDeviceGetConfComputeMemSizeInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetConfComputeMemSizeInfo') - if __nvmlDeviceGetConfComputeMemSizeInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetConfComputeMemSizeInfo = _cyb_dlsym(handle, 'nvmlDeviceGetConfComputeMemSizeInfo') - - global __nvmlSystemGetConfComputeGpusReadyState - __nvmlSystemGetConfComputeGpusReadyState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetConfComputeGpusReadyState') - if __nvmlSystemGetConfComputeGpusReadyState == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetConfComputeGpusReadyState = _cyb_dlsym(handle, 'nvmlSystemGetConfComputeGpusReadyState') - - global __nvmlDeviceGetConfComputeProtectedMemoryUsage - __nvmlDeviceGetConfComputeProtectedMemoryUsage = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetConfComputeProtectedMemoryUsage') - if __nvmlDeviceGetConfComputeProtectedMemoryUsage == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetConfComputeProtectedMemoryUsage = _cyb_dlsym(handle, 'nvmlDeviceGetConfComputeProtectedMemoryUsage') - - global __nvmlDeviceGetConfComputeGpuCertificate - __nvmlDeviceGetConfComputeGpuCertificate = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetConfComputeGpuCertificate') - if __nvmlDeviceGetConfComputeGpuCertificate == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetConfComputeGpuCertificate = _cyb_dlsym(handle, 'nvmlDeviceGetConfComputeGpuCertificate') - - global __nvmlDeviceGetConfComputeGpuAttestationReport - __nvmlDeviceGetConfComputeGpuAttestationReport = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetConfComputeGpuAttestationReport') - if __nvmlDeviceGetConfComputeGpuAttestationReport == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetConfComputeGpuAttestationReport = _cyb_dlsym(handle, 'nvmlDeviceGetConfComputeGpuAttestationReport') - - global __nvmlSystemGetConfComputeKeyRotationThresholdInfo - __nvmlSystemGetConfComputeKeyRotationThresholdInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetConfComputeKeyRotationThresholdInfo') - if __nvmlSystemGetConfComputeKeyRotationThresholdInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetConfComputeKeyRotationThresholdInfo = _cyb_dlsym(handle, 'nvmlSystemGetConfComputeKeyRotationThresholdInfo') - - global __nvmlDeviceSetConfComputeUnprotectedMemSize - __nvmlDeviceSetConfComputeUnprotectedMemSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetConfComputeUnprotectedMemSize') - if __nvmlDeviceSetConfComputeUnprotectedMemSize == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetConfComputeUnprotectedMemSize = _cyb_dlsym(handle, 'nvmlDeviceSetConfComputeUnprotectedMemSize') - - global __nvmlSystemSetConfComputeGpusReadyState - __nvmlSystemSetConfComputeGpusReadyState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemSetConfComputeGpusReadyState') - if __nvmlSystemSetConfComputeGpusReadyState == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemSetConfComputeGpusReadyState = _cyb_dlsym(handle, 'nvmlSystemSetConfComputeGpusReadyState') - - global __nvmlSystemSetConfComputeKeyRotationThresholdInfo - __nvmlSystemSetConfComputeKeyRotationThresholdInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemSetConfComputeKeyRotationThresholdInfo') - if __nvmlSystemSetConfComputeKeyRotationThresholdInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemSetConfComputeKeyRotationThresholdInfo = _cyb_dlsym(handle, 'nvmlSystemSetConfComputeKeyRotationThresholdInfo') - - global __nvmlSystemGetConfComputeSettings - __nvmlSystemGetConfComputeSettings = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetConfComputeSettings') - if __nvmlSystemGetConfComputeSettings == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetConfComputeSettings = _cyb_dlsym(handle, 'nvmlSystemGetConfComputeSettings') - - global __nvmlDeviceGetGspFirmwareVersion - __nvmlDeviceGetGspFirmwareVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGspFirmwareVersion') - if __nvmlDeviceGetGspFirmwareVersion == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGspFirmwareVersion = _cyb_dlsym(handle, 'nvmlDeviceGetGspFirmwareVersion') - - global __nvmlDeviceGetGspFirmwareMode - __nvmlDeviceGetGspFirmwareMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGspFirmwareMode') - if __nvmlDeviceGetGspFirmwareMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGspFirmwareMode = _cyb_dlsym(handle, 'nvmlDeviceGetGspFirmwareMode') - - global __nvmlDeviceGetSramEccErrorStatus - __nvmlDeviceGetSramEccErrorStatus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetSramEccErrorStatus') - if __nvmlDeviceGetSramEccErrorStatus == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetSramEccErrorStatus = _cyb_dlsym(handle, 'nvmlDeviceGetSramEccErrorStatus') - - global __nvmlDeviceGetAccountingMode - __nvmlDeviceGetAccountingMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetAccountingMode') - if __nvmlDeviceGetAccountingMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetAccountingMode = _cyb_dlsym(handle, 'nvmlDeviceGetAccountingMode') - - global __nvmlDeviceGetAccountingStats - __nvmlDeviceGetAccountingStats = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetAccountingStats') - if __nvmlDeviceGetAccountingStats == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetAccountingStats = _cyb_dlsym(handle, 'nvmlDeviceGetAccountingStats') - - global __nvmlDeviceGetAccountingPids - __nvmlDeviceGetAccountingPids = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetAccountingPids') - if __nvmlDeviceGetAccountingPids == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetAccountingPids = _cyb_dlsym(handle, 'nvmlDeviceGetAccountingPids') - - global __nvmlDeviceGetAccountingBufferSize - __nvmlDeviceGetAccountingBufferSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetAccountingBufferSize') - if __nvmlDeviceGetAccountingBufferSize == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetAccountingBufferSize = _cyb_dlsym(handle, 'nvmlDeviceGetAccountingBufferSize') - - global __nvmlDeviceGetRetiredPages - __nvmlDeviceGetRetiredPages = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetRetiredPages') - if __nvmlDeviceGetRetiredPages == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetRetiredPages = _cyb_dlsym(handle, 'nvmlDeviceGetRetiredPages') - - global __nvmlDeviceGetRetiredPages_v2 - __nvmlDeviceGetRetiredPages_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetRetiredPages_v2') - if __nvmlDeviceGetRetiredPages_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetRetiredPages_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetRetiredPages_v2') - - global __nvmlDeviceGetRetiredPagesPendingStatus - __nvmlDeviceGetRetiredPagesPendingStatus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetRetiredPagesPendingStatus') - if __nvmlDeviceGetRetiredPagesPendingStatus == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetRetiredPagesPendingStatus = _cyb_dlsym(handle, 'nvmlDeviceGetRetiredPagesPendingStatus') - - global __nvmlDeviceGetRemappedRows - __nvmlDeviceGetRemappedRows = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetRemappedRows') - if __nvmlDeviceGetRemappedRows == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetRemappedRows = _cyb_dlsym(handle, 'nvmlDeviceGetRemappedRows') - - global __nvmlDeviceGetRowRemapperHistogram - __nvmlDeviceGetRowRemapperHistogram = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetRowRemapperHistogram') - if __nvmlDeviceGetRowRemapperHistogram == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetRowRemapperHistogram = _cyb_dlsym(handle, 'nvmlDeviceGetRowRemapperHistogram') - - global __nvmlDeviceGetArchitecture - __nvmlDeviceGetArchitecture = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetArchitecture') - if __nvmlDeviceGetArchitecture == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetArchitecture = _cyb_dlsym(handle, 'nvmlDeviceGetArchitecture') - - global __nvmlDeviceGetClkMonStatus - __nvmlDeviceGetClkMonStatus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetClkMonStatus') - if __nvmlDeviceGetClkMonStatus == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetClkMonStatus = _cyb_dlsym(handle, 'nvmlDeviceGetClkMonStatus') - - global __nvmlDeviceGetProcessUtilization - __nvmlDeviceGetProcessUtilization = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetProcessUtilization') - if __nvmlDeviceGetProcessUtilization == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetProcessUtilization = _cyb_dlsym(handle, 'nvmlDeviceGetProcessUtilization') - - global __nvmlDeviceGetProcessesUtilizationInfo - __nvmlDeviceGetProcessesUtilizationInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetProcessesUtilizationInfo') - if __nvmlDeviceGetProcessesUtilizationInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetProcessesUtilizationInfo = _cyb_dlsym(handle, 'nvmlDeviceGetProcessesUtilizationInfo') - - global __nvmlDeviceGetPlatformInfo - __nvmlDeviceGetPlatformInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPlatformInfo') - if __nvmlDeviceGetPlatformInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPlatformInfo = _cyb_dlsym(handle, 'nvmlDeviceGetPlatformInfo') - - global __nvmlUnitSetLedState - __nvmlUnitSetLedState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlUnitSetLedState') - if __nvmlUnitSetLedState == NULL: - if handle == NULL: - handle = load_library() - __nvmlUnitSetLedState = _cyb_dlsym(handle, 'nvmlUnitSetLedState') - - global __nvmlDeviceSetPersistenceMode - __nvmlDeviceSetPersistenceMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetPersistenceMode') - if __nvmlDeviceSetPersistenceMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetPersistenceMode = _cyb_dlsym(handle, 'nvmlDeviceSetPersistenceMode') - - global __nvmlDeviceSetComputeMode - __nvmlDeviceSetComputeMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetComputeMode') - if __nvmlDeviceSetComputeMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetComputeMode = _cyb_dlsym(handle, 'nvmlDeviceSetComputeMode') - - global __nvmlDeviceSetEccMode - __nvmlDeviceSetEccMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetEccMode') - if __nvmlDeviceSetEccMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetEccMode = _cyb_dlsym(handle, 'nvmlDeviceSetEccMode') - - global __nvmlDeviceClearEccErrorCounts - __nvmlDeviceClearEccErrorCounts = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceClearEccErrorCounts') - if __nvmlDeviceClearEccErrorCounts == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceClearEccErrorCounts = _cyb_dlsym(handle, 'nvmlDeviceClearEccErrorCounts') - - global __nvmlDeviceSetDriverModel - __nvmlDeviceSetDriverModel = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetDriverModel') - if __nvmlDeviceSetDriverModel == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetDriverModel = _cyb_dlsym(handle, 'nvmlDeviceSetDriverModel') - - global __nvmlDeviceSetGpuLockedClocks - __nvmlDeviceSetGpuLockedClocks = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetGpuLockedClocks') - if __nvmlDeviceSetGpuLockedClocks == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetGpuLockedClocks = _cyb_dlsym(handle, 'nvmlDeviceSetGpuLockedClocks') - - global __nvmlDeviceResetGpuLockedClocks - __nvmlDeviceResetGpuLockedClocks = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceResetGpuLockedClocks') - if __nvmlDeviceResetGpuLockedClocks == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceResetGpuLockedClocks = _cyb_dlsym(handle, 'nvmlDeviceResetGpuLockedClocks') - - global __nvmlDeviceSetMemoryLockedClocks - __nvmlDeviceSetMemoryLockedClocks = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetMemoryLockedClocks') - if __nvmlDeviceSetMemoryLockedClocks == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetMemoryLockedClocks = _cyb_dlsym(handle, 'nvmlDeviceSetMemoryLockedClocks') - - global __nvmlDeviceResetMemoryLockedClocks - __nvmlDeviceResetMemoryLockedClocks = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceResetMemoryLockedClocks') - if __nvmlDeviceResetMemoryLockedClocks == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceResetMemoryLockedClocks = _cyb_dlsym(handle, 'nvmlDeviceResetMemoryLockedClocks') - - global __nvmlDeviceSetAutoBoostedClocksEnabled - __nvmlDeviceSetAutoBoostedClocksEnabled = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetAutoBoostedClocksEnabled') - if __nvmlDeviceSetAutoBoostedClocksEnabled == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetAutoBoostedClocksEnabled = _cyb_dlsym(handle, 'nvmlDeviceSetAutoBoostedClocksEnabled') - - global __nvmlDeviceSetDefaultAutoBoostedClocksEnabled - __nvmlDeviceSetDefaultAutoBoostedClocksEnabled = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetDefaultAutoBoostedClocksEnabled') - if __nvmlDeviceSetDefaultAutoBoostedClocksEnabled == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetDefaultAutoBoostedClocksEnabled = _cyb_dlsym(handle, 'nvmlDeviceSetDefaultAutoBoostedClocksEnabled') - - global __nvmlDeviceSetDefaultFanSpeed_v2 - __nvmlDeviceSetDefaultFanSpeed_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetDefaultFanSpeed_v2') - if __nvmlDeviceSetDefaultFanSpeed_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetDefaultFanSpeed_v2 = _cyb_dlsym(handle, 'nvmlDeviceSetDefaultFanSpeed_v2') - - global __nvmlDeviceSetFanControlPolicy - __nvmlDeviceSetFanControlPolicy = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetFanControlPolicy') - if __nvmlDeviceSetFanControlPolicy == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetFanControlPolicy = _cyb_dlsym(handle, 'nvmlDeviceSetFanControlPolicy') - - global __nvmlDeviceSetTemperatureThreshold - __nvmlDeviceSetTemperatureThreshold = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetTemperatureThreshold') - if __nvmlDeviceSetTemperatureThreshold == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetTemperatureThreshold = _cyb_dlsym(handle, 'nvmlDeviceSetTemperatureThreshold') - - global __nvmlDeviceSetGpuOperationMode - __nvmlDeviceSetGpuOperationMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetGpuOperationMode') - if __nvmlDeviceSetGpuOperationMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetGpuOperationMode = _cyb_dlsym(handle, 'nvmlDeviceSetGpuOperationMode') - - global __nvmlDeviceSetAPIRestriction - __nvmlDeviceSetAPIRestriction = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetAPIRestriction') - if __nvmlDeviceSetAPIRestriction == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetAPIRestriction = _cyb_dlsym(handle, 'nvmlDeviceSetAPIRestriction') - - global __nvmlDeviceSetFanSpeed_v2 - __nvmlDeviceSetFanSpeed_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetFanSpeed_v2') - if __nvmlDeviceSetFanSpeed_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetFanSpeed_v2 = _cyb_dlsym(handle, 'nvmlDeviceSetFanSpeed_v2') - - global __nvmlDeviceSetAccountingMode - __nvmlDeviceSetAccountingMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetAccountingMode') - if __nvmlDeviceSetAccountingMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetAccountingMode = _cyb_dlsym(handle, 'nvmlDeviceSetAccountingMode') - - global __nvmlDeviceClearAccountingPids - __nvmlDeviceClearAccountingPids = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceClearAccountingPids') - if __nvmlDeviceClearAccountingPids == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceClearAccountingPids = _cyb_dlsym(handle, 'nvmlDeviceClearAccountingPids') - - global __nvmlDeviceSetPowerManagementLimit_v2 - __nvmlDeviceSetPowerManagementLimit_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetPowerManagementLimit_v2') - if __nvmlDeviceSetPowerManagementLimit_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetPowerManagementLimit_v2 = _cyb_dlsym(handle, 'nvmlDeviceSetPowerManagementLimit_v2') - - global __nvmlDeviceGetNvLinkState - __nvmlDeviceGetNvLinkState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNvLinkState') - if __nvmlDeviceGetNvLinkState == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNvLinkState = _cyb_dlsym(handle, 'nvmlDeviceGetNvLinkState') - - global __nvmlDeviceGetNvLinkVersion - __nvmlDeviceGetNvLinkVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNvLinkVersion') - if __nvmlDeviceGetNvLinkVersion == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNvLinkVersion = _cyb_dlsym(handle, 'nvmlDeviceGetNvLinkVersion') - - global __nvmlDeviceGetNvLinkCapability - __nvmlDeviceGetNvLinkCapability = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNvLinkCapability') - if __nvmlDeviceGetNvLinkCapability == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNvLinkCapability = _cyb_dlsym(handle, 'nvmlDeviceGetNvLinkCapability') - - global __nvmlDeviceGetNvLinkRemotePciInfo_v2 - __nvmlDeviceGetNvLinkRemotePciInfo_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNvLinkRemotePciInfo_v2') - if __nvmlDeviceGetNvLinkRemotePciInfo_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNvLinkRemotePciInfo_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetNvLinkRemotePciInfo_v2') - - global __nvmlDeviceGetNvLinkErrorCounter - __nvmlDeviceGetNvLinkErrorCounter = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNvLinkErrorCounter') - if __nvmlDeviceGetNvLinkErrorCounter == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNvLinkErrorCounter = _cyb_dlsym(handle, 'nvmlDeviceGetNvLinkErrorCounter') - - global __nvmlDeviceResetNvLinkErrorCounters - __nvmlDeviceResetNvLinkErrorCounters = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceResetNvLinkErrorCounters') - if __nvmlDeviceResetNvLinkErrorCounters == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceResetNvLinkErrorCounters = _cyb_dlsym(handle, 'nvmlDeviceResetNvLinkErrorCounters') - - global __nvmlDeviceGetNvLinkRemoteDeviceType - __nvmlDeviceGetNvLinkRemoteDeviceType = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNvLinkRemoteDeviceType') - if __nvmlDeviceGetNvLinkRemoteDeviceType == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNvLinkRemoteDeviceType = _cyb_dlsym(handle, 'nvmlDeviceGetNvLinkRemoteDeviceType') - - global __nvmlDeviceSetNvLinkDeviceLowPowerThreshold - __nvmlDeviceSetNvLinkDeviceLowPowerThreshold = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetNvLinkDeviceLowPowerThreshold') - if __nvmlDeviceSetNvLinkDeviceLowPowerThreshold == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetNvLinkDeviceLowPowerThreshold = _cyb_dlsym(handle, 'nvmlDeviceSetNvLinkDeviceLowPowerThreshold') - - global __nvmlSystemSetNvlinkBwMode - __nvmlSystemSetNvlinkBwMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemSetNvlinkBwMode') - if __nvmlSystemSetNvlinkBwMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemSetNvlinkBwMode = _cyb_dlsym(handle, 'nvmlSystemSetNvlinkBwMode') - - global __nvmlSystemGetNvlinkBwMode - __nvmlSystemGetNvlinkBwMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetNvlinkBwMode') - if __nvmlSystemGetNvlinkBwMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetNvlinkBwMode = _cyb_dlsym(handle, 'nvmlSystemGetNvlinkBwMode') - - global __nvmlDeviceGetNvlinkSupportedBwModes - __nvmlDeviceGetNvlinkSupportedBwModes = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNvlinkSupportedBwModes') - if __nvmlDeviceGetNvlinkSupportedBwModes == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNvlinkSupportedBwModes = _cyb_dlsym(handle, 'nvmlDeviceGetNvlinkSupportedBwModes') - - global __nvmlDeviceGetNvlinkBwMode - __nvmlDeviceGetNvlinkBwMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNvlinkBwMode') - if __nvmlDeviceGetNvlinkBwMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNvlinkBwMode = _cyb_dlsym(handle, 'nvmlDeviceGetNvlinkBwMode') - - global __nvmlDeviceSetNvlinkBwMode - __nvmlDeviceSetNvlinkBwMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetNvlinkBwMode') - if __nvmlDeviceSetNvlinkBwMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetNvlinkBwMode = _cyb_dlsym(handle, 'nvmlDeviceSetNvlinkBwMode') - - global __nvmlEventSetCreate - __nvmlEventSetCreate = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlEventSetCreate') - if __nvmlEventSetCreate == NULL: - if handle == NULL: - handle = load_library() - __nvmlEventSetCreate = _cyb_dlsym(handle, 'nvmlEventSetCreate') - - global __nvmlDeviceRegisterEvents - __nvmlDeviceRegisterEvents = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceRegisterEvents') - if __nvmlDeviceRegisterEvents == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceRegisterEvents = _cyb_dlsym(handle, 'nvmlDeviceRegisterEvents') - - global __nvmlDeviceGetSupportedEventTypes - __nvmlDeviceGetSupportedEventTypes = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetSupportedEventTypes') - if __nvmlDeviceGetSupportedEventTypes == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetSupportedEventTypes = _cyb_dlsym(handle, 'nvmlDeviceGetSupportedEventTypes') - - global __nvmlEventSetWait_v2 - __nvmlEventSetWait_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlEventSetWait_v2') - if __nvmlEventSetWait_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlEventSetWait_v2 = _cyb_dlsym(handle, 'nvmlEventSetWait_v2') - - global __nvmlEventSetFree - __nvmlEventSetFree = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlEventSetFree') - if __nvmlEventSetFree == NULL: - if handle == NULL: - handle = load_library() - __nvmlEventSetFree = _cyb_dlsym(handle, 'nvmlEventSetFree') - - global __nvmlSystemEventSetCreate - __nvmlSystemEventSetCreate = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemEventSetCreate') - if __nvmlSystemEventSetCreate == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemEventSetCreate = _cyb_dlsym(handle, 'nvmlSystemEventSetCreate') - - global __nvmlSystemEventSetFree - __nvmlSystemEventSetFree = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemEventSetFree') - if __nvmlSystemEventSetFree == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemEventSetFree = _cyb_dlsym(handle, 'nvmlSystemEventSetFree') - - global __nvmlSystemRegisterEvents - __nvmlSystemRegisterEvents = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemRegisterEvents') - if __nvmlSystemRegisterEvents == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemRegisterEvents = _cyb_dlsym(handle, 'nvmlSystemRegisterEvents') - - global __nvmlSystemEventSetWait - __nvmlSystemEventSetWait = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemEventSetWait') - if __nvmlSystemEventSetWait == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemEventSetWait = _cyb_dlsym(handle, 'nvmlSystemEventSetWait') - - global __nvmlDeviceModifyDrainState - __nvmlDeviceModifyDrainState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceModifyDrainState') - if __nvmlDeviceModifyDrainState == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceModifyDrainState = _cyb_dlsym(handle, 'nvmlDeviceModifyDrainState') - - global __nvmlDeviceQueryDrainState - __nvmlDeviceQueryDrainState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceQueryDrainState') - if __nvmlDeviceQueryDrainState == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceQueryDrainState = _cyb_dlsym(handle, 'nvmlDeviceQueryDrainState') - - global __nvmlDeviceRemoveGpu_v2 - __nvmlDeviceRemoveGpu_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceRemoveGpu_v2') - if __nvmlDeviceRemoveGpu_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceRemoveGpu_v2 = _cyb_dlsym(handle, 'nvmlDeviceRemoveGpu_v2') - - global __nvmlDeviceDiscoverGpus - __nvmlDeviceDiscoverGpus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceDiscoverGpus') - if __nvmlDeviceDiscoverGpus == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceDiscoverGpus = _cyb_dlsym(handle, 'nvmlDeviceDiscoverGpus') - - global __nvmlDeviceGetFieldValues - __nvmlDeviceGetFieldValues = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetFieldValues') - if __nvmlDeviceGetFieldValues == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetFieldValues = _cyb_dlsym(handle, 'nvmlDeviceGetFieldValues') - - global __nvmlDeviceClearFieldValues - __nvmlDeviceClearFieldValues = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceClearFieldValues') - if __nvmlDeviceClearFieldValues == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceClearFieldValues = _cyb_dlsym(handle, 'nvmlDeviceClearFieldValues') - - global __nvmlDeviceGetVirtualizationMode - __nvmlDeviceGetVirtualizationMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVirtualizationMode') - if __nvmlDeviceGetVirtualizationMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVirtualizationMode = _cyb_dlsym(handle, 'nvmlDeviceGetVirtualizationMode') - - global __nvmlDeviceGetHostVgpuMode - __nvmlDeviceGetHostVgpuMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetHostVgpuMode') - if __nvmlDeviceGetHostVgpuMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetHostVgpuMode = _cyb_dlsym(handle, 'nvmlDeviceGetHostVgpuMode') - - global __nvmlDeviceSetVirtualizationMode - __nvmlDeviceSetVirtualizationMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetVirtualizationMode') - if __nvmlDeviceSetVirtualizationMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetVirtualizationMode = _cyb_dlsym(handle, 'nvmlDeviceSetVirtualizationMode') - - global __nvmlDeviceGetVgpuHeterogeneousMode - __nvmlDeviceGetVgpuHeterogeneousMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuHeterogeneousMode') - if __nvmlDeviceGetVgpuHeterogeneousMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuHeterogeneousMode = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuHeterogeneousMode') - - global __nvmlDeviceSetVgpuHeterogeneousMode - __nvmlDeviceSetVgpuHeterogeneousMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetVgpuHeterogeneousMode') - if __nvmlDeviceSetVgpuHeterogeneousMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetVgpuHeterogeneousMode = _cyb_dlsym(handle, 'nvmlDeviceSetVgpuHeterogeneousMode') - - global __nvmlVgpuInstanceGetPlacementId - __nvmlVgpuInstanceGetPlacementId = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetPlacementId') - if __nvmlVgpuInstanceGetPlacementId == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetPlacementId = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetPlacementId') - - global __nvmlDeviceGetVgpuTypeSupportedPlacements - __nvmlDeviceGetVgpuTypeSupportedPlacements = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuTypeSupportedPlacements') - if __nvmlDeviceGetVgpuTypeSupportedPlacements == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuTypeSupportedPlacements = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuTypeSupportedPlacements') - - global __nvmlDeviceGetVgpuTypeCreatablePlacements - __nvmlDeviceGetVgpuTypeCreatablePlacements = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuTypeCreatablePlacements') - if __nvmlDeviceGetVgpuTypeCreatablePlacements == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuTypeCreatablePlacements = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuTypeCreatablePlacements') - - global __nvmlVgpuTypeGetGspHeapSize - __nvmlVgpuTypeGetGspHeapSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetGspHeapSize') - if __nvmlVgpuTypeGetGspHeapSize == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetGspHeapSize = _cyb_dlsym(handle, 'nvmlVgpuTypeGetGspHeapSize') - - global __nvmlVgpuTypeGetFbReservation - __nvmlVgpuTypeGetFbReservation = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetFbReservation') - if __nvmlVgpuTypeGetFbReservation == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetFbReservation = _cyb_dlsym(handle, 'nvmlVgpuTypeGetFbReservation') - - global __nvmlVgpuInstanceGetRuntimeStateSize - __nvmlVgpuInstanceGetRuntimeStateSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetRuntimeStateSize') - if __nvmlVgpuInstanceGetRuntimeStateSize == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetRuntimeStateSize = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetRuntimeStateSize') - - global __nvmlDeviceSetVgpuCapabilities - __nvmlDeviceSetVgpuCapabilities = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetVgpuCapabilities') - if __nvmlDeviceSetVgpuCapabilities == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetVgpuCapabilities = _cyb_dlsym(handle, 'nvmlDeviceSetVgpuCapabilities') - - global __nvmlDeviceGetGridLicensableFeatures_v4 - __nvmlDeviceGetGridLicensableFeatures_v4 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGridLicensableFeatures_v4') - if __nvmlDeviceGetGridLicensableFeatures_v4 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGridLicensableFeatures_v4 = _cyb_dlsym(handle, 'nvmlDeviceGetGridLicensableFeatures_v4') - - global __nvmlGetVgpuDriverCapabilities - __nvmlGetVgpuDriverCapabilities = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGetVgpuDriverCapabilities') - if __nvmlGetVgpuDriverCapabilities == NULL: - if handle == NULL: - handle = load_library() - __nvmlGetVgpuDriverCapabilities = _cyb_dlsym(handle, 'nvmlGetVgpuDriverCapabilities') - - global __nvmlDeviceGetVgpuCapabilities - __nvmlDeviceGetVgpuCapabilities = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuCapabilities') - if __nvmlDeviceGetVgpuCapabilities == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuCapabilities = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuCapabilities') - - global __nvmlDeviceGetSupportedVgpus - __nvmlDeviceGetSupportedVgpus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetSupportedVgpus') - if __nvmlDeviceGetSupportedVgpus == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetSupportedVgpus = _cyb_dlsym(handle, 'nvmlDeviceGetSupportedVgpus') - - global __nvmlDeviceGetCreatableVgpus - __nvmlDeviceGetCreatableVgpus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetCreatableVgpus') - if __nvmlDeviceGetCreatableVgpus == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetCreatableVgpus = _cyb_dlsym(handle, 'nvmlDeviceGetCreatableVgpus') - - global __nvmlVgpuTypeGetClass - __nvmlVgpuTypeGetClass = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetClass') - if __nvmlVgpuTypeGetClass == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetClass = _cyb_dlsym(handle, 'nvmlVgpuTypeGetClass') - - global __nvmlVgpuTypeGetName - __nvmlVgpuTypeGetName = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetName') - if __nvmlVgpuTypeGetName == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetName = _cyb_dlsym(handle, 'nvmlVgpuTypeGetName') - - global __nvmlVgpuTypeGetGpuInstanceProfileId - __nvmlVgpuTypeGetGpuInstanceProfileId = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetGpuInstanceProfileId') - if __nvmlVgpuTypeGetGpuInstanceProfileId == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetGpuInstanceProfileId = _cyb_dlsym(handle, 'nvmlVgpuTypeGetGpuInstanceProfileId') - - global __nvmlVgpuTypeGetDeviceID - __nvmlVgpuTypeGetDeviceID = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetDeviceID') - if __nvmlVgpuTypeGetDeviceID == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetDeviceID = _cyb_dlsym(handle, 'nvmlVgpuTypeGetDeviceID') - - global __nvmlVgpuTypeGetFramebufferSize - __nvmlVgpuTypeGetFramebufferSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetFramebufferSize') - if __nvmlVgpuTypeGetFramebufferSize == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetFramebufferSize = _cyb_dlsym(handle, 'nvmlVgpuTypeGetFramebufferSize') - - global __nvmlVgpuTypeGetNumDisplayHeads - __nvmlVgpuTypeGetNumDisplayHeads = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetNumDisplayHeads') - if __nvmlVgpuTypeGetNumDisplayHeads == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetNumDisplayHeads = _cyb_dlsym(handle, 'nvmlVgpuTypeGetNumDisplayHeads') - - global __nvmlVgpuTypeGetResolution - __nvmlVgpuTypeGetResolution = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetResolution') - if __nvmlVgpuTypeGetResolution == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetResolution = _cyb_dlsym(handle, 'nvmlVgpuTypeGetResolution') - - global __nvmlVgpuTypeGetLicense - __nvmlVgpuTypeGetLicense = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetLicense') - if __nvmlVgpuTypeGetLicense == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetLicense = _cyb_dlsym(handle, 'nvmlVgpuTypeGetLicense') - - global __nvmlVgpuTypeGetFrameRateLimit - __nvmlVgpuTypeGetFrameRateLimit = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetFrameRateLimit') - if __nvmlVgpuTypeGetFrameRateLimit == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetFrameRateLimit = _cyb_dlsym(handle, 'nvmlVgpuTypeGetFrameRateLimit') - - global __nvmlVgpuTypeGetMaxInstances - __nvmlVgpuTypeGetMaxInstances = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetMaxInstances') - if __nvmlVgpuTypeGetMaxInstances == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetMaxInstances = _cyb_dlsym(handle, 'nvmlVgpuTypeGetMaxInstances') - - global __nvmlVgpuTypeGetMaxInstancesPerVm - __nvmlVgpuTypeGetMaxInstancesPerVm = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetMaxInstancesPerVm') - if __nvmlVgpuTypeGetMaxInstancesPerVm == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetMaxInstancesPerVm = _cyb_dlsym(handle, 'nvmlVgpuTypeGetMaxInstancesPerVm') - - global __nvmlVgpuTypeGetBAR1Info - __nvmlVgpuTypeGetBAR1Info = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetBAR1Info') - if __nvmlVgpuTypeGetBAR1Info == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetBAR1Info = _cyb_dlsym(handle, 'nvmlVgpuTypeGetBAR1Info') - - global __nvmlDeviceGetActiveVgpus - __nvmlDeviceGetActiveVgpus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetActiveVgpus') - if __nvmlDeviceGetActiveVgpus == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetActiveVgpus = _cyb_dlsym(handle, 'nvmlDeviceGetActiveVgpus') - - global __nvmlVgpuInstanceGetVmID - __nvmlVgpuInstanceGetVmID = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetVmID') - if __nvmlVgpuInstanceGetVmID == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetVmID = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetVmID') - - global __nvmlVgpuInstanceGetUUID - __nvmlVgpuInstanceGetUUID = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetUUID') - if __nvmlVgpuInstanceGetUUID == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetUUID = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetUUID') - - global __nvmlVgpuInstanceGetVmDriverVersion - __nvmlVgpuInstanceGetVmDriverVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetVmDriverVersion') - if __nvmlVgpuInstanceGetVmDriverVersion == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetVmDriverVersion = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetVmDriverVersion') - - global __nvmlVgpuInstanceGetFbUsage - __nvmlVgpuInstanceGetFbUsage = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetFbUsage') - if __nvmlVgpuInstanceGetFbUsage == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetFbUsage = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetFbUsage') - - global __nvmlVgpuInstanceGetLicenseStatus - __nvmlVgpuInstanceGetLicenseStatus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetLicenseStatus') - if __nvmlVgpuInstanceGetLicenseStatus == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetLicenseStatus = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetLicenseStatus') - - global __nvmlVgpuInstanceGetType - __nvmlVgpuInstanceGetType = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetType') - if __nvmlVgpuInstanceGetType == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetType = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetType') - - global __nvmlVgpuInstanceGetFrameRateLimit - __nvmlVgpuInstanceGetFrameRateLimit = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetFrameRateLimit') - if __nvmlVgpuInstanceGetFrameRateLimit == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetFrameRateLimit = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetFrameRateLimit') - - global __nvmlVgpuInstanceGetEccMode - __nvmlVgpuInstanceGetEccMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetEccMode') - if __nvmlVgpuInstanceGetEccMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetEccMode = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetEccMode') - - global __nvmlVgpuInstanceGetEncoderCapacity - __nvmlVgpuInstanceGetEncoderCapacity = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetEncoderCapacity') - if __nvmlVgpuInstanceGetEncoderCapacity == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetEncoderCapacity = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetEncoderCapacity') - - global __nvmlVgpuInstanceSetEncoderCapacity - __nvmlVgpuInstanceSetEncoderCapacity = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceSetEncoderCapacity') - if __nvmlVgpuInstanceSetEncoderCapacity == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceSetEncoderCapacity = _cyb_dlsym(handle, 'nvmlVgpuInstanceSetEncoderCapacity') - - global __nvmlVgpuInstanceGetEncoderStats - __nvmlVgpuInstanceGetEncoderStats = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetEncoderStats') - if __nvmlVgpuInstanceGetEncoderStats == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetEncoderStats = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetEncoderStats') - - global __nvmlVgpuInstanceGetEncoderSessions - __nvmlVgpuInstanceGetEncoderSessions = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetEncoderSessions') - if __nvmlVgpuInstanceGetEncoderSessions == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetEncoderSessions = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetEncoderSessions') - - global __nvmlVgpuInstanceGetFBCStats - __nvmlVgpuInstanceGetFBCStats = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetFBCStats') - if __nvmlVgpuInstanceGetFBCStats == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetFBCStats = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetFBCStats') - - global __nvmlVgpuInstanceGetFBCSessions - __nvmlVgpuInstanceGetFBCSessions = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetFBCSessions') - if __nvmlVgpuInstanceGetFBCSessions == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetFBCSessions = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetFBCSessions') - - global __nvmlVgpuInstanceGetGpuInstanceId - __nvmlVgpuInstanceGetGpuInstanceId = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetGpuInstanceId') - if __nvmlVgpuInstanceGetGpuInstanceId == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetGpuInstanceId = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetGpuInstanceId') - - global __nvmlVgpuInstanceGetGpuPciId - __nvmlVgpuInstanceGetGpuPciId = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetGpuPciId') - if __nvmlVgpuInstanceGetGpuPciId == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetGpuPciId = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetGpuPciId') - - global __nvmlVgpuTypeGetCapabilities - __nvmlVgpuTypeGetCapabilities = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetCapabilities') - if __nvmlVgpuTypeGetCapabilities == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetCapabilities = _cyb_dlsym(handle, 'nvmlVgpuTypeGetCapabilities') - - global __nvmlVgpuInstanceGetMdevUUID - __nvmlVgpuInstanceGetMdevUUID = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetMdevUUID') - if __nvmlVgpuInstanceGetMdevUUID == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetMdevUUID = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetMdevUUID') - - global __nvmlGpuInstanceGetCreatableVgpus - __nvmlGpuInstanceGetCreatableVgpus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetCreatableVgpus') - if __nvmlGpuInstanceGetCreatableVgpus == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetCreatableVgpus = _cyb_dlsym(handle, 'nvmlGpuInstanceGetCreatableVgpus') - - global __nvmlVgpuTypeGetMaxInstancesPerGpuInstance - __nvmlVgpuTypeGetMaxInstancesPerGpuInstance = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetMaxInstancesPerGpuInstance') - if __nvmlVgpuTypeGetMaxInstancesPerGpuInstance == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetMaxInstancesPerGpuInstance = _cyb_dlsym(handle, 'nvmlVgpuTypeGetMaxInstancesPerGpuInstance') - - global __nvmlGpuInstanceGetActiveVgpus - __nvmlGpuInstanceGetActiveVgpus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetActiveVgpus') - if __nvmlGpuInstanceGetActiveVgpus == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetActiveVgpus = _cyb_dlsym(handle, 'nvmlGpuInstanceGetActiveVgpus') - - global __nvmlGpuInstanceSetVgpuSchedulerState - __nvmlGpuInstanceSetVgpuSchedulerState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceSetVgpuSchedulerState') - if __nvmlGpuInstanceSetVgpuSchedulerState == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceSetVgpuSchedulerState = _cyb_dlsym(handle, 'nvmlGpuInstanceSetVgpuSchedulerState') - - global __nvmlGpuInstanceGetVgpuSchedulerState - __nvmlGpuInstanceGetVgpuSchedulerState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetVgpuSchedulerState') - if __nvmlGpuInstanceGetVgpuSchedulerState == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetVgpuSchedulerState = _cyb_dlsym(handle, 'nvmlGpuInstanceGetVgpuSchedulerState') - - global __nvmlGpuInstanceGetVgpuSchedulerLog - __nvmlGpuInstanceGetVgpuSchedulerLog = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetVgpuSchedulerLog') - if __nvmlGpuInstanceGetVgpuSchedulerLog == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetVgpuSchedulerLog = _cyb_dlsym(handle, 'nvmlGpuInstanceGetVgpuSchedulerLog') - - global __nvmlGpuInstanceGetVgpuTypeCreatablePlacements - __nvmlGpuInstanceGetVgpuTypeCreatablePlacements = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetVgpuTypeCreatablePlacements') - if __nvmlGpuInstanceGetVgpuTypeCreatablePlacements == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetVgpuTypeCreatablePlacements = _cyb_dlsym(handle, 'nvmlGpuInstanceGetVgpuTypeCreatablePlacements') - - global __nvmlGpuInstanceGetVgpuHeterogeneousMode - __nvmlGpuInstanceGetVgpuHeterogeneousMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetVgpuHeterogeneousMode') - if __nvmlGpuInstanceGetVgpuHeterogeneousMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetVgpuHeterogeneousMode = _cyb_dlsym(handle, 'nvmlGpuInstanceGetVgpuHeterogeneousMode') - - global __nvmlGpuInstanceSetVgpuHeterogeneousMode - __nvmlGpuInstanceSetVgpuHeterogeneousMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceSetVgpuHeterogeneousMode') - if __nvmlGpuInstanceSetVgpuHeterogeneousMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceSetVgpuHeterogeneousMode = _cyb_dlsym(handle, 'nvmlGpuInstanceSetVgpuHeterogeneousMode') - - global __nvmlVgpuInstanceGetMetadata - __nvmlVgpuInstanceGetMetadata = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetMetadata') - if __nvmlVgpuInstanceGetMetadata == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetMetadata = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetMetadata') - - global __nvmlDeviceGetVgpuMetadata - __nvmlDeviceGetVgpuMetadata = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuMetadata') - if __nvmlDeviceGetVgpuMetadata == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuMetadata = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuMetadata') - - global __nvmlGetVgpuCompatibility - __nvmlGetVgpuCompatibility = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGetVgpuCompatibility') - if __nvmlGetVgpuCompatibility == NULL: - if handle == NULL: - handle = load_library() - __nvmlGetVgpuCompatibility = _cyb_dlsym(handle, 'nvmlGetVgpuCompatibility') - - global __nvmlDeviceGetPgpuMetadataString - __nvmlDeviceGetPgpuMetadataString = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPgpuMetadataString') - if __nvmlDeviceGetPgpuMetadataString == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPgpuMetadataString = _cyb_dlsym(handle, 'nvmlDeviceGetPgpuMetadataString') - - global __nvmlDeviceGetVgpuSchedulerLog - __nvmlDeviceGetVgpuSchedulerLog = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuSchedulerLog') - if __nvmlDeviceGetVgpuSchedulerLog == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuSchedulerLog = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuSchedulerLog') - - global __nvmlDeviceGetVgpuSchedulerState - __nvmlDeviceGetVgpuSchedulerState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuSchedulerState') - if __nvmlDeviceGetVgpuSchedulerState == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuSchedulerState = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuSchedulerState') - - global __nvmlDeviceGetVgpuSchedulerCapabilities - __nvmlDeviceGetVgpuSchedulerCapabilities = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuSchedulerCapabilities') - if __nvmlDeviceGetVgpuSchedulerCapabilities == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuSchedulerCapabilities = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuSchedulerCapabilities') - - global __nvmlDeviceSetVgpuSchedulerState - __nvmlDeviceSetVgpuSchedulerState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetVgpuSchedulerState') - if __nvmlDeviceSetVgpuSchedulerState == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetVgpuSchedulerState = _cyb_dlsym(handle, 'nvmlDeviceSetVgpuSchedulerState') - - global __nvmlGetVgpuVersion - __nvmlGetVgpuVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGetVgpuVersion') - if __nvmlGetVgpuVersion == NULL: - if handle == NULL: - handle = load_library() - __nvmlGetVgpuVersion = _cyb_dlsym(handle, 'nvmlGetVgpuVersion') - - global __nvmlSetVgpuVersion - __nvmlSetVgpuVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSetVgpuVersion') - if __nvmlSetVgpuVersion == NULL: - if handle == NULL: - handle = load_library() - __nvmlSetVgpuVersion = _cyb_dlsym(handle, 'nvmlSetVgpuVersion') - - global __nvmlDeviceGetVgpuUtilization - __nvmlDeviceGetVgpuUtilization = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuUtilization') - if __nvmlDeviceGetVgpuUtilization == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuUtilization = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuUtilization') - - global __nvmlDeviceGetVgpuInstancesUtilizationInfo - __nvmlDeviceGetVgpuInstancesUtilizationInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuInstancesUtilizationInfo') - if __nvmlDeviceGetVgpuInstancesUtilizationInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuInstancesUtilizationInfo = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuInstancesUtilizationInfo') - - global __nvmlDeviceGetVgpuProcessUtilization - __nvmlDeviceGetVgpuProcessUtilization = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuProcessUtilization') - if __nvmlDeviceGetVgpuProcessUtilization == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuProcessUtilization = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuProcessUtilization') - - global __nvmlDeviceGetVgpuProcessesUtilizationInfo - __nvmlDeviceGetVgpuProcessesUtilizationInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuProcessesUtilizationInfo') - if __nvmlDeviceGetVgpuProcessesUtilizationInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuProcessesUtilizationInfo = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuProcessesUtilizationInfo') - - global __nvmlVgpuInstanceGetAccountingMode - __nvmlVgpuInstanceGetAccountingMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetAccountingMode') - if __nvmlVgpuInstanceGetAccountingMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetAccountingMode = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetAccountingMode') - - global __nvmlVgpuInstanceGetAccountingPids - __nvmlVgpuInstanceGetAccountingPids = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetAccountingPids') - if __nvmlVgpuInstanceGetAccountingPids == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetAccountingPids = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetAccountingPids') - - global __nvmlVgpuInstanceGetAccountingStats - __nvmlVgpuInstanceGetAccountingStats = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetAccountingStats') - if __nvmlVgpuInstanceGetAccountingStats == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetAccountingStats = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetAccountingStats') - - global __nvmlVgpuInstanceClearAccountingPids - __nvmlVgpuInstanceClearAccountingPids = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceClearAccountingPids') - if __nvmlVgpuInstanceClearAccountingPids == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceClearAccountingPids = _cyb_dlsym(handle, 'nvmlVgpuInstanceClearAccountingPids') - - global __nvmlVgpuInstanceGetLicenseInfo_v2 - __nvmlVgpuInstanceGetLicenseInfo_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetLicenseInfo_v2') - if __nvmlVgpuInstanceGetLicenseInfo_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetLicenseInfo_v2 = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetLicenseInfo_v2') - - global __nvmlGetExcludedDeviceCount - __nvmlGetExcludedDeviceCount = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGetExcludedDeviceCount') - if __nvmlGetExcludedDeviceCount == NULL: - if handle == NULL: - handle = load_library() - __nvmlGetExcludedDeviceCount = _cyb_dlsym(handle, 'nvmlGetExcludedDeviceCount') - - global __nvmlGetExcludedDeviceInfoByIndex - __nvmlGetExcludedDeviceInfoByIndex = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGetExcludedDeviceInfoByIndex') - if __nvmlGetExcludedDeviceInfoByIndex == NULL: - if handle == NULL: - handle = load_library() - __nvmlGetExcludedDeviceInfoByIndex = _cyb_dlsym(handle, 'nvmlGetExcludedDeviceInfoByIndex') - - global __nvmlDeviceSetMigMode - __nvmlDeviceSetMigMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetMigMode') - if __nvmlDeviceSetMigMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetMigMode = _cyb_dlsym(handle, 'nvmlDeviceSetMigMode') - - global __nvmlDeviceGetMigMode - __nvmlDeviceGetMigMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMigMode') - if __nvmlDeviceGetMigMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMigMode = _cyb_dlsym(handle, 'nvmlDeviceGetMigMode') - - global __nvmlDeviceGetGpuInstanceProfileInfoV - __nvmlDeviceGetGpuInstanceProfileInfoV = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGpuInstanceProfileInfoV') - if __nvmlDeviceGetGpuInstanceProfileInfoV == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGpuInstanceProfileInfoV = _cyb_dlsym(handle, 'nvmlDeviceGetGpuInstanceProfileInfoV') - - global __nvmlDeviceGetGpuInstancePossiblePlacements_v2 - __nvmlDeviceGetGpuInstancePossiblePlacements_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGpuInstancePossiblePlacements_v2') - if __nvmlDeviceGetGpuInstancePossiblePlacements_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGpuInstancePossiblePlacements_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetGpuInstancePossiblePlacements_v2') - - global __nvmlDeviceGetGpuInstanceRemainingCapacity - __nvmlDeviceGetGpuInstanceRemainingCapacity = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGpuInstanceRemainingCapacity') - if __nvmlDeviceGetGpuInstanceRemainingCapacity == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGpuInstanceRemainingCapacity = _cyb_dlsym(handle, 'nvmlDeviceGetGpuInstanceRemainingCapacity') - - global __nvmlDeviceCreateGpuInstance - __nvmlDeviceCreateGpuInstance = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceCreateGpuInstance') - if __nvmlDeviceCreateGpuInstance == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceCreateGpuInstance = _cyb_dlsym(handle, 'nvmlDeviceCreateGpuInstance') - - global __nvmlDeviceCreateGpuInstanceWithPlacement - __nvmlDeviceCreateGpuInstanceWithPlacement = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceCreateGpuInstanceWithPlacement') - if __nvmlDeviceCreateGpuInstanceWithPlacement == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceCreateGpuInstanceWithPlacement = _cyb_dlsym(handle, 'nvmlDeviceCreateGpuInstanceWithPlacement') - - global __nvmlGpuInstanceDestroy - __nvmlGpuInstanceDestroy = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceDestroy') - if __nvmlGpuInstanceDestroy == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceDestroy = _cyb_dlsym(handle, 'nvmlGpuInstanceDestroy') - - global __nvmlDeviceGetGpuInstances - __nvmlDeviceGetGpuInstances = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGpuInstances') - if __nvmlDeviceGetGpuInstances == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGpuInstances = _cyb_dlsym(handle, 'nvmlDeviceGetGpuInstances') - - global __nvmlDeviceGetGpuInstanceById - __nvmlDeviceGetGpuInstanceById = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGpuInstanceById') - if __nvmlDeviceGetGpuInstanceById == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGpuInstanceById = _cyb_dlsym(handle, 'nvmlDeviceGetGpuInstanceById') - - global __nvmlGpuInstanceGetInfo - __nvmlGpuInstanceGetInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetInfo') - if __nvmlGpuInstanceGetInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetInfo = _cyb_dlsym(handle, 'nvmlGpuInstanceGetInfo') - - global __nvmlGpuInstanceGetComputeInstanceProfileInfoV - __nvmlGpuInstanceGetComputeInstanceProfileInfoV = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetComputeInstanceProfileInfoV') - if __nvmlGpuInstanceGetComputeInstanceProfileInfoV == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetComputeInstanceProfileInfoV = _cyb_dlsym(handle, 'nvmlGpuInstanceGetComputeInstanceProfileInfoV') - - global __nvmlGpuInstanceGetComputeInstanceRemainingCapacity - __nvmlGpuInstanceGetComputeInstanceRemainingCapacity = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetComputeInstanceRemainingCapacity') - if __nvmlGpuInstanceGetComputeInstanceRemainingCapacity == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetComputeInstanceRemainingCapacity = _cyb_dlsym(handle, 'nvmlGpuInstanceGetComputeInstanceRemainingCapacity') - - global __nvmlGpuInstanceGetComputeInstancePossiblePlacements - __nvmlGpuInstanceGetComputeInstancePossiblePlacements = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetComputeInstancePossiblePlacements') - if __nvmlGpuInstanceGetComputeInstancePossiblePlacements == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetComputeInstancePossiblePlacements = _cyb_dlsym(handle, 'nvmlGpuInstanceGetComputeInstancePossiblePlacements') - - global __nvmlGpuInstanceCreateComputeInstance - __nvmlGpuInstanceCreateComputeInstance = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceCreateComputeInstance') - if __nvmlGpuInstanceCreateComputeInstance == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceCreateComputeInstance = _cyb_dlsym(handle, 'nvmlGpuInstanceCreateComputeInstance') - - global __nvmlGpuInstanceCreateComputeInstanceWithPlacement - __nvmlGpuInstanceCreateComputeInstanceWithPlacement = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceCreateComputeInstanceWithPlacement') - if __nvmlGpuInstanceCreateComputeInstanceWithPlacement == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceCreateComputeInstanceWithPlacement = _cyb_dlsym(handle, 'nvmlGpuInstanceCreateComputeInstanceWithPlacement') - - global __nvmlComputeInstanceDestroy - __nvmlComputeInstanceDestroy = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlComputeInstanceDestroy') - if __nvmlComputeInstanceDestroy == NULL: - if handle == NULL: - handle = load_library() - __nvmlComputeInstanceDestroy = _cyb_dlsym(handle, 'nvmlComputeInstanceDestroy') - - global __nvmlGpuInstanceGetComputeInstances - __nvmlGpuInstanceGetComputeInstances = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetComputeInstances') - if __nvmlGpuInstanceGetComputeInstances == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetComputeInstances = _cyb_dlsym(handle, 'nvmlGpuInstanceGetComputeInstances') - - global __nvmlGpuInstanceGetComputeInstanceById - __nvmlGpuInstanceGetComputeInstanceById = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetComputeInstanceById') - if __nvmlGpuInstanceGetComputeInstanceById == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetComputeInstanceById = _cyb_dlsym(handle, 'nvmlGpuInstanceGetComputeInstanceById') - - global __nvmlComputeInstanceGetInfo_v2 - __nvmlComputeInstanceGetInfo_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlComputeInstanceGetInfo_v2') - if __nvmlComputeInstanceGetInfo_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlComputeInstanceGetInfo_v2 = _cyb_dlsym(handle, 'nvmlComputeInstanceGetInfo_v2') - - global __nvmlDeviceIsMigDeviceHandle - __nvmlDeviceIsMigDeviceHandle = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceIsMigDeviceHandle') - if __nvmlDeviceIsMigDeviceHandle == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceIsMigDeviceHandle = _cyb_dlsym(handle, 'nvmlDeviceIsMigDeviceHandle') - - global __nvmlDeviceGetGpuInstanceId - __nvmlDeviceGetGpuInstanceId = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGpuInstanceId') - if __nvmlDeviceGetGpuInstanceId == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGpuInstanceId = _cyb_dlsym(handle, 'nvmlDeviceGetGpuInstanceId') - - global __nvmlDeviceGetComputeInstanceId - __nvmlDeviceGetComputeInstanceId = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetComputeInstanceId') - if __nvmlDeviceGetComputeInstanceId == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetComputeInstanceId = _cyb_dlsym(handle, 'nvmlDeviceGetComputeInstanceId') - - global __nvmlDeviceGetMaxMigDeviceCount - __nvmlDeviceGetMaxMigDeviceCount = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMaxMigDeviceCount') - if __nvmlDeviceGetMaxMigDeviceCount == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMaxMigDeviceCount = _cyb_dlsym(handle, 'nvmlDeviceGetMaxMigDeviceCount') - - global __nvmlDeviceGetMigDeviceHandleByIndex - __nvmlDeviceGetMigDeviceHandleByIndex = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMigDeviceHandleByIndex') - if __nvmlDeviceGetMigDeviceHandleByIndex == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMigDeviceHandleByIndex = _cyb_dlsym(handle, 'nvmlDeviceGetMigDeviceHandleByIndex') - - global __nvmlDeviceGetDeviceHandleFromMigDeviceHandle - __nvmlDeviceGetDeviceHandleFromMigDeviceHandle = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetDeviceHandleFromMigDeviceHandle') - if __nvmlDeviceGetDeviceHandleFromMigDeviceHandle == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetDeviceHandleFromMigDeviceHandle = _cyb_dlsym(handle, 'nvmlDeviceGetDeviceHandleFromMigDeviceHandle') - - global __nvmlDeviceGetCapabilities - __nvmlDeviceGetCapabilities = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetCapabilities') - if __nvmlDeviceGetCapabilities == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetCapabilities = _cyb_dlsym(handle, 'nvmlDeviceGetCapabilities') - - global __nvmlDevicePowerSmoothingActivatePresetProfile - __nvmlDevicePowerSmoothingActivatePresetProfile = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDevicePowerSmoothingActivatePresetProfile') - if __nvmlDevicePowerSmoothingActivatePresetProfile == NULL: - if handle == NULL: - handle = load_library() - __nvmlDevicePowerSmoothingActivatePresetProfile = _cyb_dlsym(handle, 'nvmlDevicePowerSmoothingActivatePresetProfile') - - global __nvmlDevicePowerSmoothingUpdatePresetProfileParam - __nvmlDevicePowerSmoothingUpdatePresetProfileParam = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDevicePowerSmoothingUpdatePresetProfileParam') - if __nvmlDevicePowerSmoothingUpdatePresetProfileParam == NULL: - if handle == NULL: - handle = load_library() - __nvmlDevicePowerSmoothingUpdatePresetProfileParam = _cyb_dlsym(handle, 'nvmlDevicePowerSmoothingUpdatePresetProfileParam') - - global __nvmlDevicePowerSmoothingSetState - __nvmlDevicePowerSmoothingSetState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDevicePowerSmoothingSetState') - if __nvmlDevicePowerSmoothingSetState == NULL: - if handle == NULL: - handle = load_library() - __nvmlDevicePowerSmoothingSetState = _cyb_dlsym(handle, 'nvmlDevicePowerSmoothingSetState') - - global __nvmlDeviceGetAddressingMode - __nvmlDeviceGetAddressingMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetAddressingMode') - if __nvmlDeviceGetAddressingMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetAddressingMode = _cyb_dlsym(handle, 'nvmlDeviceGetAddressingMode') - - global __nvmlDeviceGetRepairStatus - __nvmlDeviceGetRepairStatus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetRepairStatus') - if __nvmlDeviceGetRepairStatus == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetRepairStatus = _cyb_dlsym(handle, 'nvmlDeviceGetRepairStatus') - - global __nvmlDeviceGetPowerMizerMode_v1 - __nvmlDeviceGetPowerMizerMode_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPowerMizerMode_v1') - if __nvmlDeviceGetPowerMizerMode_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPowerMizerMode_v1 = _cyb_dlsym(handle, 'nvmlDeviceGetPowerMizerMode_v1') - - global __nvmlDeviceSetPowerMizerMode_v1 - __nvmlDeviceSetPowerMizerMode_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetPowerMizerMode_v1') - if __nvmlDeviceSetPowerMizerMode_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetPowerMizerMode_v1 = _cyb_dlsym(handle, 'nvmlDeviceSetPowerMizerMode_v1') - - global __nvmlDeviceGetPdi - __nvmlDeviceGetPdi = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPdi') - if __nvmlDeviceGetPdi == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPdi = _cyb_dlsym(handle, 'nvmlDeviceGetPdi') - - global __nvmlDeviceSetHostname_v1 - __nvmlDeviceSetHostname_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetHostname_v1') - if __nvmlDeviceSetHostname_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetHostname_v1 = _cyb_dlsym(handle, 'nvmlDeviceSetHostname_v1') - - global __nvmlDeviceGetHostname_v1 - __nvmlDeviceGetHostname_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetHostname_v1') - if __nvmlDeviceGetHostname_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetHostname_v1 = _cyb_dlsym(handle, 'nvmlDeviceGetHostname_v1') - - global __nvmlDeviceGetNvLinkInfo - __nvmlDeviceGetNvLinkInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNvLinkInfo') - if __nvmlDeviceGetNvLinkInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNvLinkInfo = _cyb_dlsym(handle, 'nvmlDeviceGetNvLinkInfo') - - global __nvmlDeviceReadWritePRM_v1 - __nvmlDeviceReadWritePRM_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceReadWritePRM_v1') - if __nvmlDeviceReadWritePRM_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceReadWritePRM_v1 = _cyb_dlsym(handle, 'nvmlDeviceReadWritePRM_v1') - - global __nvmlDeviceGetGpuInstanceProfileInfoByIdV - __nvmlDeviceGetGpuInstanceProfileInfoByIdV = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGpuInstanceProfileInfoByIdV') - if __nvmlDeviceGetGpuInstanceProfileInfoByIdV == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGpuInstanceProfileInfoByIdV = _cyb_dlsym(handle, 'nvmlDeviceGetGpuInstanceProfileInfoByIdV') - - global __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts - __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts') - if __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts = _cyb_dlsym(handle, 'nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts') - - global __nvmlDeviceGetUnrepairableMemoryFlag_v1 - __nvmlDeviceGetUnrepairableMemoryFlag_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetUnrepairableMemoryFlag_v1') - if __nvmlDeviceGetUnrepairableMemoryFlag_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetUnrepairableMemoryFlag_v1 = _cyb_dlsym(handle, 'nvmlDeviceGetUnrepairableMemoryFlag_v1') - - global __nvmlDeviceReadPRMCounters_v1 - __nvmlDeviceReadPRMCounters_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceReadPRMCounters_v1') - if __nvmlDeviceReadPRMCounters_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceReadPRMCounters_v1 = _cyb_dlsym(handle, 'nvmlDeviceReadPRMCounters_v1') - - global __nvmlDeviceSetRusdSettings_v1 - __nvmlDeviceSetRusdSettings_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetRusdSettings_v1') - if __nvmlDeviceSetRusdSettings_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetRusdSettings_v1 = _cyb_dlsym(handle, 'nvmlDeviceSetRusdSettings_v1') - - global __nvmlDeviceVgpuForceGspUnload - __nvmlDeviceVgpuForceGspUnload = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceVgpuForceGspUnload') - if __nvmlDeviceVgpuForceGspUnload == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceVgpuForceGspUnload = _cyb_dlsym(handle, 'nvmlDeviceVgpuForceGspUnload') - - global __nvmlDeviceGetVgpuSchedulerState_v2 - __nvmlDeviceGetVgpuSchedulerState_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuSchedulerState_v2') - if __nvmlDeviceGetVgpuSchedulerState_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuSchedulerState_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuSchedulerState_v2') - - global __nvmlGpuInstanceGetVgpuSchedulerState_v2 - __nvmlGpuInstanceGetVgpuSchedulerState_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetVgpuSchedulerState_v2') - if __nvmlGpuInstanceGetVgpuSchedulerState_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetVgpuSchedulerState_v2 = _cyb_dlsym(handle, 'nvmlGpuInstanceGetVgpuSchedulerState_v2') - - global __nvmlDeviceGetVgpuSchedulerLog_v2 - __nvmlDeviceGetVgpuSchedulerLog_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuSchedulerLog_v2') - if __nvmlDeviceGetVgpuSchedulerLog_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuSchedulerLog_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuSchedulerLog_v2') - - global __nvmlGpuInstanceGetVgpuSchedulerLog_v2 - __nvmlGpuInstanceGetVgpuSchedulerLog_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetVgpuSchedulerLog_v2') - if __nvmlGpuInstanceGetVgpuSchedulerLog_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetVgpuSchedulerLog_v2 = _cyb_dlsym(handle, 'nvmlGpuInstanceGetVgpuSchedulerLog_v2') - - global __nvmlDeviceSetVgpuSchedulerState_v2 - __nvmlDeviceSetVgpuSchedulerState_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetVgpuSchedulerState_v2') - if __nvmlDeviceSetVgpuSchedulerState_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetVgpuSchedulerState_v2 = _cyb_dlsym(handle, 'nvmlDeviceSetVgpuSchedulerState_v2') - - global __nvmlGpuInstanceSetVgpuSchedulerState_v2 - __nvmlGpuInstanceSetVgpuSchedulerState_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceSetVgpuSchedulerState_v2') - if __nvmlGpuInstanceSetVgpuSchedulerState_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceSetVgpuSchedulerState_v2 = _cyb_dlsym(handle, 'nvmlGpuInstanceSetVgpuSchedulerState_v2') - - global __nvmlSystemGetCPER_v1 - __nvmlSystemGetCPER_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetCPER_v1') - if __nvmlSystemGetCPER_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetCPER_v1 = _cyb_dlsym(handle, 'nvmlSystemGetCPER_v1') - - global __nvmlDeviceGetBBXTimeData_v1 - __nvmlDeviceGetBBXTimeData_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetBBXTimeData_v1') - if __nvmlDeviceGetBBXTimeData_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetBBXTimeData_v1 = _cyb_dlsym(handle, 'nvmlDeviceGetBBXTimeData_v1') - - global __nvmlDeviceGetAccountingStats_v2 - __nvmlDeviceGetAccountingStats_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetAccountingStats_v2') - if __nvmlDeviceGetAccountingStats_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetAccountingStats_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetAccountingStats_v2') - - global __nvmlDeviceGetRemappedRows_v2 - __nvmlDeviceGetRemappedRows_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetRemappedRows_v2') - if __nvmlDeviceGetRemappedRows_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetRemappedRows_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetRemappedRows_v2') - - global __nvmlDeviceSetAdaptiveTgpMode_v1 - __nvmlDeviceSetAdaptiveTgpMode_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetAdaptiveTgpMode_v1') - if __nvmlDeviceSetAdaptiveTgpMode_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetAdaptiveTgpMode_v1 = _cyb_dlsym(handle, 'nvmlDeviceSetAdaptiveTgpMode_v1') - - global __nvmlDeviceGetAdaptiveTgpModeInfo_v1 - __nvmlDeviceGetAdaptiveTgpModeInfo_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetAdaptiveTgpModeInfo_v1') - if __nvmlDeviceGetAdaptiveTgpModeInfo_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetAdaptiveTgpModeInfo_v1 = _cyb_dlsym(handle, 'nvmlDeviceGetAdaptiveTgpModeInfo_v1') - - global __nvmlDeviceSetMemoryLimits_v1 - __nvmlDeviceSetMemoryLimits_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetMemoryLimits_v1') - if __nvmlDeviceSetMemoryLimits_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetMemoryLimits_v1 = _cyb_dlsym(handle, 'nvmlDeviceSetMemoryLimits_v1') - - global __nvmlDeviceGetMemoryLimits_v1 - __nvmlDeviceGetMemoryLimits_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMemoryLimits_v1') - if __nvmlDeviceGetMemoryLimits_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMemoryLimits_v1 = _cyb_dlsym(handle, 'nvmlDeviceGetMemoryLimits_v1') - - global __nvmlDeviceGetGpuFabricInfo_v4 - __nvmlDeviceGetGpuFabricInfo_v4 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGpuFabricInfo_v4') - if __nvmlDeviceGetGpuFabricInfo_v4 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGpuFabricInfo_v4 = _cyb_dlsym(handle, 'nvmlDeviceGetGpuFabricInfo_v4') - - global __nvmlDevicePerfMetricsGetSamples_v1 - __nvmlDevicePerfMetricsGetSamples_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDevicePerfMetricsGetSamples_v1') - if __nvmlDevicePerfMetricsGetSamples_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDevicePerfMetricsGetSamples_v1 = _cyb_dlsym(handle, 'nvmlDevicePerfMetricsGetSamples_v1') - - global __nvmlDeviceSetNvlinkBwModeAsync_v1 - __nvmlDeviceSetNvlinkBwModeAsync_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetNvlinkBwModeAsync_v1') - if __nvmlDeviceSetNvlinkBwModeAsync_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetNvlinkBwModeAsync_v1 = _cyb_dlsym(handle, 'nvmlDeviceSetNvlinkBwModeAsync_v1') - - global __nvmlDeviceGetNvLinkTelemetrySamples_v1 - __nvmlDeviceGetNvLinkTelemetrySamples_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNvLinkTelemetrySamples_v1') - if __nvmlDeviceGetNvLinkTelemetrySamples_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNvLinkTelemetrySamples_v1 = _cyb_dlsym(handle, 'nvmlDeviceGetNvLinkTelemetrySamples_v1') - - global __nvmlEventSetRegisterGpuOperationalEvents_v1 - __nvmlEventSetRegisterGpuOperationalEvents_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlEventSetRegisterGpuOperationalEvents_v1') - if __nvmlEventSetRegisterGpuOperationalEvents_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlEventSetRegisterGpuOperationalEvents_v1 = _cyb_dlsym(handle, 'nvmlEventSetRegisterGpuOperationalEvents_v1') - - global __nvmlEventSetWait_v3 - __nvmlEventSetWait_v3 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlEventSetWait_v3') - if __nvmlEventSetWait_v3 == NULL: - if handle == NULL: - handle = load_library() - __nvmlEventSetWait_v3 = _cyb_dlsym(handle, 'nvmlEventSetWait_v3') - - global __nvmlEventSetGetContextCount_v1 - __nvmlEventSetGetContextCount_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlEventSetGetContextCount_v1') - if __nvmlEventSetGetContextCount_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlEventSetGetContextCount_v1 = _cyb_dlsym(handle, 'nvmlEventSetGetContextCount_v1') - - global __nvmlEventSetGetContextInfo_v1 - __nvmlEventSetGetContextInfo_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlEventSetGetContextInfo_v1') - if __nvmlEventSetGetContextInfo_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlEventSetGetContextInfo_v1 = _cyb_dlsym(handle, 'nvmlEventSetGetContextInfo_v1') - - global __nvmlEventSetGetContextData_v1 - __nvmlEventSetGetContextData_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlEventSetGetContextData_v1') - if __nvmlEventSetGetContextData_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlEventSetGetContextData_v1 = _cyb_dlsym(handle, 'nvmlEventSetGetContextData_v1') - - global __nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1 - __nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1') - if __nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1 = _cyb_dlsym(handle, 'nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1') - - global __nvmlDeviceGetBankRemapperStatus_v1 - __nvmlDeviceGetBankRemapperStatus_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetBankRemapperStatus_v1') - if __nvmlDeviceGetBankRemapperStatus_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetBankRemapperStatus_v1 = _cyb_dlsym(handle, 'nvmlDeviceGetBankRemapperStatus_v1') - - global __nvmlDeviceGetGpuUptime_v1 - __nvmlDeviceGetGpuUptime_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGpuUptime_v1') - if __nvmlDeviceGetGpuUptime_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGpuUptime_v1 = _cyb_dlsym(handle, 'nvmlDeviceGetGpuUptime_v1') - - global __nvmlSystemGetConfComputeSettings_v2 - __nvmlSystemGetConfComputeSettings_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetConfComputeSettings_v2') - if __nvmlSystemGetConfComputeSettings_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetConfComputeSettings_v2 = _cyb_dlsym(handle, 'nvmlSystemGetConfComputeSettings_v2') - - global __nvmlDeviceGetNvLinkInfo_v3 - __nvmlDeviceGetNvLinkInfo_v3 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNvLinkInfo_v3') - if __nvmlDeviceGetNvLinkInfo_v3 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNvLinkInfo_v3 = _cyb_dlsym(handle, 'nvmlDeviceGetNvLinkInfo_v3') - - global __nvmlDeviceGetNvlinkRemapTableInfo_v1 - __nvmlDeviceGetNvlinkRemapTableInfo_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNvlinkRemapTableInfo_v1') - if __nvmlDeviceGetNvlinkRemapTableInfo_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNvlinkRemapTableInfo_v1 = _cyb_dlsym(handle, 'nvmlDeviceGetNvlinkRemapTableInfo_v1') - - global __nvmlDeviceSetNvlinkNvleReady_v1 - __nvmlDeviceSetNvlinkNvleReady_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetNvlinkNvleReady_v1') - if __nvmlDeviceSetNvlinkNvleReady_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetNvlinkNvleReady_v1 = _cyb_dlsym(handle, 'nvmlDeviceSetNvlinkNvleReady_v1') - - global __nvmlDeviceLockNvlinkRemapTable_v1 - __nvmlDeviceLockNvlinkRemapTable_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceLockNvlinkRemapTable_v1') - if __nvmlDeviceLockNvlinkRemapTable_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceLockNvlinkRemapTable_v1 = _cyb_dlsym(handle, 'nvmlDeviceLockNvlinkRemapTable_v1') - - global __nvmlDeviceSetupNvlinkNvleEncryptionKey_v1 - __nvmlDeviceSetupNvlinkNvleEncryptionKey_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetupNvlinkNvleEncryptionKey_v1') - if __nvmlDeviceSetupNvlinkNvleEncryptionKey_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetupNvlinkNvleEncryptionKey_v1 = _cyb_dlsym(handle, 'nvmlDeviceSetupNvlinkNvleEncryptionKey_v1') - - global __nvmlDeviceGetNvlinkNvlePrivateInfo_v1 - __nvmlDeviceGetNvlinkNvlePrivateInfo_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNvlinkNvlePrivateInfo_v1') - if __nvmlDeviceGetNvlinkNvlePrivateInfo_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNvlinkNvlePrivateInfo_v1 = _cyb_dlsym(handle, 'nvmlDeviceGetNvlinkNvlePrivateInfo_v1') + for i in range(_cyb_nvml_n_functions): + _cyb_nvml_slots[i][0] = _cyb_dlsym(_cyb_RTLD_DEFAULT, _cyb_nvml_names[i]) + if _cyb_nvml_slots[i][0] == NULL: + if handle == NULL: + handle = load_library() + _cyb_nvml_slots[i][0] = _cyb_dlsym(handle, _cyb_nvml_names[i]) _cyb_atomic_int_store(&_cyb___py_nvml_init, 1) return 0 @@ -3112,1139 +856,9 @@ cpdef dict _inspect_function_pointers(): _check_or_init_nvml() cdef dict data = {} - global __nvmlInit_v2 - data["__nvmlInit_v2"] = __nvmlInit_v2 - - global __nvmlInitWithFlags - data["__nvmlInitWithFlags"] = __nvmlInitWithFlags - - global __nvmlShutdown - data["__nvmlShutdown"] = __nvmlShutdown - - global __nvmlErrorString - data["__nvmlErrorString"] = __nvmlErrorString - - global __nvmlSystemGetDriverVersion - data["__nvmlSystemGetDriverVersion"] = __nvmlSystemGetDriverVersion - - global __nvmlSystemGetNVMLVersion - data["__nvmlSystemGetNVMLVersion"] = __nvmlSystemGetNVMLVersion - - global __nvmlSystemGetCudaDriverVersion - data["__nvmlSystemGetCudaDriverVersion"] = __nvmlSystemGetCudaDriverVersion - - global __nvmlSystemGetCudaDriverVersion_v2 - data["__nvmlSystemGetCudaDriverVersion_v2"] = __nvmlSystemGetCudaDriverVersion_v2 - - global __nvmlSystemGetProcessName - data["__nvmlSystemGetProcessName"] = __nvmlSystemGetProcessName - - global __nvmlSystemGetHicVersion - data["__nvmlSystemGetHicVersion"] = __nvmlSystemGetHicVersion - - global __nvmlSystemGetTopologyGpuSet - data["__nvmlSystemGetTopologyGpuSet"] = __nvmlSystemGetTopologyGpuSet - - global __nvmlSystemGetDriverBranch - data["__nvmlSystemGetDriverBranch"] = __nvmlSystemGetDriverBranch - - global __nvmlUnitGetCount - data["__nvmlUnitGetCount"] = __nvmlUnitGetCount - - global __nvmlUnitGetHandleByIndex - data["__nvmlUnitGetHandleByIndex"] = __nvmlUnitGetHandleByIndex - - global __nvmlUnitGetUnitInfo - data["__nvmlUnitGetUnitInfo"] = __nvmlUnitGetUnitInfo - - global __nvmlUnitGetLedState - data["__nvmlUnitGetLedState"] = __nvmlUnitGetLedState - - global __nvmlUnitGetPsuInfo - data["__nvmlUnitGetPsuInfo"] = __nvmlUnitGetPsuInfo - - global __nvmlUnitGetTemperature - data["__nvmlUnitGetTemperature"] = __nvmlUnitGetTemperature - - global __nvmlUnitGetFanSpeedInfo - data["__nvmlUnitGetFanSpeedInfo"] = __nvmlUnitGetFanSpeedInfo - - global __nvmlUnitGetDevices - data["__nvmlUnitGetDevices"] = __nvmlUnitGetDevices - - global __nvmlDeviceGetCount_v2 - data["__nvmlDeviceGetCount_v2"] = __nvmlDeviceGetCount_v2 - - global __nvmlDeviceGetAttributes_v2 - data["__nvmlDeviceGetAttributes_v2"] = __nvmlDeviceGetAttributes_v2 - - global __nvmlDeviceGetHandleByIndex_v2 - data["__nvmlDeviceGetHandleByIndex_v2"] = __nvmlDeviceGetHandleByIndex_v2 - - global __nvmlDeviceGetHandleBySerial - data["__nvmlDeviceGetHandleBySerial"] = __nvmlDeviceGetHandleBySerial - - global __nvmlDeviceGetHandleByUUID - data["__nvmlDeviceGetHandleByUUID"] = __nvmlDeviceGetHandleByUUID - - global __nvmlDeviceGetHandleByUUIDV - data["__nvmlDeviceGetHandleByUUIDV"] = __nvmlDeviceGetHandleByUUIDV - - global __nvmlDeviceGetHandleByPciBusId_v2 - data["__nvmlDeviceGetHandleByPciBusId_v2"] = __nvmlDeviceGetHandleByPciBusId_v2 - - global __nvmlDeviceGetName - data["__nvmlDeviceGetName"] = __nvmlDeviceGetName - - global __nvmlDeviceGetBrand - data["__nvmlDeviceGetBrand"] = __nvmlDeviceGetBrand - - global __nvmlDeviceGetIndex - data["__nvmlDeviceGetIndex"] = __nvmlDeviceGetIndex - - global __nvmlDeviceGetSerial - data["__nvmlDeviceGetSerial"] = __nvmlDeviceGetSerial - - global __nvmlDeviceGetModuleId - data["__nvmlDeviceGetModuleId"] = __nvmlDeviceGetModuleId - - global __nvmlDeviceGetC2cModeInfoV - data["__nvmlDeviceGetC2cModeInfoV"] = __nvmlDeviceGetC2cModeInfoV - - global __nvmlDeviceGetMemoryAffinity - data["__nvmlDeviceGetMemoryAffinity"] = __nvmlDeviceGetMemoryAffinity - - global __nvmlDeviceGetCpuAffinityWithinScope - data["__nvmlDeviceGetCpuAffinityWithinScope"] = __nvmlDeviceGetCpuAffinityWithinScope - - global __nvmlDeviceGetCpuAffinity - data["__nvmlDeviceGetCpuAffinity"] = __nvmlDeviceGetCpuAffinity - - global __nvmlDeviceSetCpuAffinity - data["__nvmlDeviceSetCpuAffinity"] = __nvmlDeviceSetCpuAffinity - - global __nvmlDeviceClearCpuAffinity - data["__nvmlDeviceClearCpuAffinity"] = __nvmlDeviceClearCpuAffinity - - global __nvmlDeviceGetNumaNodeId - data["__nvmlDeviceGetNumaNodeId"] = __nvmlDeviceGetNumaNodeId - - global __nvmlDeviceGetTopologyCommonAncestor - data["__nvmlDeviceGetTopologyCommonAncestor"] = __nvmlDeviceGetTopologyCommonAncestor - - global __nvmlDeviceGetTopologyNearestGpus - data["__nvmlDeviceGetTopologyNearestGpus"] = __nvmlDeviceGetTopologyNearestGpus - - global __nvmlDeviceGetP2PStatus - data["__nvmlDeviceGetP2PStatus"] = __nvmlDeviceGetP2PStatus - - global __nvmlDeviceGetUUID - data["__nvmlDeviceGetUUID"] = __nvmlDeviceGetUUID - - global __nvmlDeviceGetMinorNumber - data["__nvmlDeviceGetMinorNumber"] = __nvmlDeviceGetMinorNumber - - global __nvmlDeviceGetBoardPartNumber - data["__nvmlDeviceGetBoardPartNumber"] = __nvmlDeviceGetBoardPartNumber - - global __nvmlDeviceGetInforomVersion - data["__nvmlDeviceGetInforomVersion"] = __nvmlDeviceGetInforomVersion - - global __nvmlDeviceGetInforomImageVersion - data["__nvmlDeviceGetInforomImageVersion"] = __nvmlDeviceGetInforomImageVersion - - global __nvmlDeviceGetInforomConfigurationChecksum - data["__nvmlDeviceGetInforomConfigurationChecksum"] = __nvmlDeviceGetInforomConfigurationChecksum - - global __nvmlDeviceValidateInforom - data["__nvmlDeviceValidateInforom"] = __nvmlDeviceValidateInforom - - global __nvmlDeviceGetLastBBXFlushTime - data["__nvmlDeviceGetLastBBXFlushTime"] = __nvmlDeviceGetLastBBXFlushTime - - global __nvmlDeviceGetDisplayMode - data["__nvmlDeviceGetDisplayMode"] = __nvmlDeviceGetDisplayMode - - global __nvmlDeviceGetDisplayActive - data["__nvmlDeviceGetDisplayActive"] = __nvmlDeviceGetDisplayActive - - global __nvmlDeviceGetPersistenceMode - data["__nvmlDeviceGetPersistenceMode"] = __nvmlDeviceGetPersistenceMode - - global __nvmlDeviceGetPciInfoExt - data["__nvmlDeviceGetPciInfoExt"] = __nvmlDeviceGetPciInfoExt - - global __nvmlDeviceGetPciInfo_v3 - data["__nvmlDeviceGetPciInfo_v3"] = __nvmlDeviceGetPciInfo_v3 - - global __nvmlDeviceGetMaxPcieLinkGeneration - data["__nvmlDeviceGetMaxPcieLinkGeneration"] = __nvmlDeviceGetMaxPcieLinkGeneration - - global __nvmlDeviceGetGpuMaxPcieLinkGeneration - data["__nvmlDeviceGetGpuMaxPcieLinkGeneration"] = __nvmlDeviceGetGpuMaxPcieLinkGeneration - - global __nvmlDeviceGetMaxPcieLinkWidth - data["__nvmlDeviceGetMaxPcieLinkWidth"] = __nvmlDeviceGetMaxPcieLinkWidth - - global __nvmlDeviceGetCurrPcieLinkGeneration - data["__nvmlDeviceGetCurrPcieLinkGeneration"] = __nvmlDeviceGetCurrPcieLinkGeneration - - global __nvmlDeviceGetCurrPcieLinkWidth - data["__nvmlDeviceGetCurrPcieLinkWidth"] = __nvmlDeviceGetCurrPcieLinkWidth - - global __nvmlDeviceGetPcieThroughput - data["__nvmlDeviceGetPcieThroughput"] = __nvmlDeviceGetPcieThroughput - - global __nvmlDeviceGetPcieReplayCounter - data["__nvmlDeviceGetPcieReplayCounter"] = __nvmlDeviceGetPcieReplayCounter - - global __nvmlDeviceGetClockInfo - data["__nvmlDeviceGetClockInfo"] = __nvmlDeviceGetClockInfo - - global __nvmlDeviceGetMaxClockInfo - data["__nvmlDeviceGetMaxClockInfo"] = __nvmlDeviceGetMaxClockInfo - - global __nvmlDeviceGetGpcClkVfOffset - data["__nvmlDeviceGetGpcClkVfOffset"] = __nvmlDeviceGetGpcClkVfOffset - - global __nvmlDeviceGetClock - data["__nvmlDeviceGetClock"] = __nvmlDeviceGetClock - - global __nvmlDeviceGetMaxCustomerBoostClock - data["__nvmlDeviceGetMaxCustomerBoostClock"] = __nvmlDeviceGetMaxCustomerBoostClock - - global __nvmlDeviceGetSupportedMemoryClocks - data["__nvmlDeviceGetSupportedMemoryClocks"] = __nvmlDeviceGetSupportedMemoryClocks - - global __nvmlDeviceGetSupportedGraphicsClocks - data["__nvmlDeviceGetSupportedGraphicsClocks"] = __nvmlDeviceGetSupportedGraphicsClocks - - global __nvmlDeviceGetAutoBoostedClocksEnabled - data["__nvmlDeviceGetAutoBoostedClocksEnabled"] = __nvmlDeviceGetAutoBoostedClocksEnabled - - global __nvmlDeviceGetFanSpeed - data["__nvmlDeviceGetFanSpeed"] = __nvmlDeviceGetFanSpeed - - global __nvmlDeviceGetFanSpeed_v2 - data["__nvmlDeviceGetFanSpeed_v2"] = __nvmlDeviceGetFanSpeed_v2 - - global __nvmlDeviceGetFanSpeedRPM - data["__nvmlDeviceGetFanSpeedRPM"] = __nvmlDeviceGetFanSpeedRPM - - global __nvmlDeviceGetTargetFanSpeed - data["__nvmlDeviceGetTargetFanSpeed"] = __nvmlDeviceGetTargetFanSpeed - - global __nvmlDeviceGetMinMaxFanSpeed - data["__nvmlDeviceGetMinMaxFanSpeed"] = __nvmlDeviceGetMinMaxFanSpeed - - global __nvmlDeviceGetFanControlPolicy_v2 - data["__nvmlDeviceGetFanControlPolicy_v2"] = __nvmlDeviceGetFanControlPolicy_v2 - - global __nvmlDeviceGetNumFans - data["__nvmlDeviceGetNumFans"] = __nvmlDeviceGetNumFans - - global __nvmlDeviceGetCoolerInfo - data["__nvmlDeviceGetCoolerInfo"] = __nvmlDeviceGetCoolerInfo - - global __nvmlDeviceGetTemperatureV - data["__nvmlDeviceGetTemperatureV"] = __nvmlDeviceGetTemperatureV - - global __nvmlDeviceGetTemperatureThreshold - data["__nvmlDeviceGetTemperatureThreshold"] = __nvmlDeviceGetTemperatureThreshold - - global __nvmlDeviceGetMarginTemperature - data["__nvmlDeviceGetMarginTemperature"] = __nvmlDeviceGetMarginTemperature - - global __nvmlDeviceGetThermalSettings - data["__nvmlDeviceGetThermalSettings"] = __nvmlDeviceGetThermalSettings - - global __nvmlDeviceGetPerformanceState - data["__nvmlDeviceGetPerformanceState"] = __nvmlDeviceGetPerformanceState - - global __nvmlDeviceGetCurrentClocksEventReasons - data["__nvmlDeviceGetCurrentClocksEventReasons"] = __nvmlDeviceGetCurrentClocksEventReasons - - global __nvmlDeviceGetSupportedClocksEventReasons - data["__nvmlDeviceGetSupportedClocksEventReasons"] = __nvmlDeviceGetSupportedClocksEventReasons - - global __nvmlDeviceGetPowerState - data["__nvmlDeviceGetPowerState"] = __nvmlDeviceGetPowerState - - global __nvmlDeviceGetDynamicPstatesInfo - data["__nvmlDeviceGetDynamicPstatesInfo"] = __nvmlDeviceGetDynamicPstatesInfo - - global __nvmlDeviceGetMemClkVfOffset - data["__nvmlDeviceGetMemClkVfOffset"] = __nvmlDeviceGetMemClkVfOffset - - global __nvmlDeviceGetMinMaxClockOfPState - data["__nvmlDeviceGetMinMaxClockOfPState"] = __nvmlDeviceGetMinMaxClockOfPState - - global __nvmlDeviceGetSupportedPerformanceStates - data["__nvmlDeviceGetSupportedPerformanceStates"] = __nvmlDeviceGetSupportedPerformanceStates - - global __nvmlDeviceGetGpcClkMinMaxVfOffset - data["__nvmlDeviceGetGpcClkMinMaxVfOffset"] = __nvmlDeviceGetGpcClkMinMaxVfOffset - - global __nvmlDeviceGetMemClkMinMaxVfOffset - data["__nvmlDeviceGetMemClkMinMaxVfOffset"] = __nvmlDeviceGetMemClkMinMaxVfOffset - - global __nvmlDeviceGetClockOffsets - data["__nvmlDeviceGetClockOffsets"] = __nvmlDeviceGetClockOffsets - - global __nvmlDeviceSetClockOffsets - data["__nvmlDeviceSetClockOffsets"] = __nvmlDeviceSetClockOffsets - - global __nvmlDeviceGetPerformanceModes - data["__nvmlDeviceGetPerformanceModes"] = __nvmlDeviceGetPerformanceModes - - global __nvmlDeviceGetCurrentClockFreqs - data["__nvmlDeviceGetCurrentClockFreqs"] = __nvmlDeviceGetCurrentClockFreqs - - global __nvmlDeviceGetPowerManagementLimit - data["__nvmlDeviceGetPowerManagementLimit"] = __nvmlDeviceGetPowerManagementLimit - - global __nvmlDeviceGetPowerManagementLimitConstraints - data["__nvmlDeviceGetPowerManagementLimitConstraints"] = __nvmlDeviceGetPowerManagementLimitConstraints - - global __nvmlDeviceGetPowerManagementDefaultLimit - data["__nvmlDeviceGetPowerManagementDefaultLimit"] = __nvmlDeviceGetPowerManagementDefaultLimit - - global __nvmlDeviceGetPowerUsage - data["__nvmlDeviceGetPowerUsage"] = __nvmlDeviceGetPowerUsage - - global __nvmlDeviceGetTotalEnergyConsumption - data["__nvmlDeviceGetTotalEnergyConsumption"] = __nvmlDeviceGetTotalEnergyConsumption - - global __nvmlDeviceGetEnforcedPowerLimit - data["__nvmlDeviceGetEnforcedPowerLimit"] = __nvmlDeviceGetEnforcedPowerLimit - - global __nvmlDeviceGetGpuOperationMode - data["__nvmlDeviceGetGpuOperationMode"] = __nvmlDeviceGetGpuOperationMode - - global __nvmlDeviceGetMemoryInfo_v2 - data["__nvmlDeviceGetMemoryInfo_v2"] = __nvmlDeviceGetMemoryInfo_v2 - - global __nvmlDeviceGetComputeMode - data["__nvmlDeviceGetComputeMode"] = __nvmlDeviceGetComputeMode - - global __nvmlDeviceGetCudaComputeCapability - data["__nvmlDeviceGetCudaComputeCapability"] = __nvmlDeviceGetCudaComputeCapability - - global __nvmlDeviceGetDramEncryptionMode - data["__nvmlDeviceGetDramEncryptionMode"] = __nvmlDeviceGetDramEncryptionMode - - global __nvmlDeviceSetDramEncryptionMode - data["__nvmlDeviceSetDramEncryptionMode"] = __nvmlDeviceSetDramEncryptionMode - - global __nvmlDeviceGetEccMode - data["__nvmlDeviceGetEccMode"] = __nvmlDeviceGetEccMode - - global __nvmlDeviceGetDefaultEccMode - data["__nvmlDeviceGetDefaultEccMode"] = __nvmlDeviceGetDefaultEccMode - - global __nvmlDeviceGetBoardId - data["__nvmlDeviceGetBoardId"] = __nvmlDeviceGetBoardId - - global __nvmlDeviceGetMultiGpuBoard - data["__nvmlDeviceGetMultiGpuBoard"] = __nvmlDeviceGetMultiGpuBoard - - global __nvmlDeviceGetTotalEccErrors - data["__nvmlDeviceGetTotalEccErrors"] = __nvmlDeviceGetTotalEccErrors - - global __nvmlDeviceGetMemoryErrorCounter - data["__nvmlDeviceGetMemoryErrorCounter"] = __nvmlDeviceGetMemoryErrorCounter - - global __nvmlDeviceGetUtilizationRates - data["__nvmlDeviceGetUtilizationRates"] = __nvmlDeviceGetUtilizationRates - - global __nvmlDeviceGetEncoderUtilization - data["__nvmlDeviceGetEncoderUtilization"] = __nvmlDeviceGetEncoderUtilization - - global __nvmlDeviceGetEncoderCapacity - data["__nvmlDeviceGetEncoderCapacity"] = __nvmlDeviceGetEncoderCapacity - - global __nvmlDeviceGetEncoderStats - data["__nvmlDeviceGetEncoderStats"] = __nvmlDeviceGetEncoderStats - - global __nvmlDeviceGetEncoderSessions - data["__nvmlDeviceGetEncoderSessions"] = __nvmlDeviceGetEncoderSessions - - global __nvmlDeviceGetDecoderUtilization - data["__nvmlDeviceGetDecoderUtilization"] = __nvmlDeviceGetDecoderUtilization - - global __nvmlDeviceGetJpgUtilization - data["__nvmlDeviceGetJpgUtilization"] = __nvmlDeviceGetJpgUtilization - - global __nvmlDeviceGetOfaUtilization - data["__nvmlDeviceGetOfaUtilization"] = __nvmlDeviceGetOfaUtilization - - global __nvmlDeviceGetFBCStats - data["__nvmlDeviceGetFBCStats"] = __nvmlDeviceGetFBCStats - - global __nvmlDeviceGetFBCSessions - data["__nvmlDeviceGetFBCSessions"] = __nvmlDeviceGetFBCSessions - - global __nvmlDeviceGetDriverModel_v2 - data["__nvmlDeviceGetDriverModel_v2"] = __nvmlDeviceGetDriverModel_v2 - - global __nvmlDeviceGetVbiosVersion - data["__nvmlDeviceGetVbiosVersion"] = __nvmlDeviceGetVbiosVersion - - global __nvmlDeviceGetBridgeChipInfo - data["__nvmlDeviceGetBridgeChipInfo"] = __nvmlDeviceGetBridgeChipInfo - - global __nvmlDeviceGetComputeRunningProcesses_v3 - data["__nvmlDeviceGetComputeRunningProcesses_v3"] = __nvmlDeviceGetComputeRunningProcesses_v3 - - global __nvmlDeviceGetGraphicsRunningProcesses_v3 - data["__nvmlDeviceGetGraphicsRunningProcesses_v3"] = __nvmlDeviceGetGraphicsRunningProcesses_v3 - - global __nvmlDeviceGetMPSComputeRunningProcesses_v3 - data["__nvmlDeviceGetMPSComputeRunningProcesses_v3"] = __nvmlDeviceGetMPSComputeRunningProcesses_v3 - - global __nvmlDeviceGetRunningProcessDetailList - data["__nvmlDeviceGetRunningProcessDetailList"] = __nvmlDeviceGetRunningProcessDetailList - - global __nvmlDeviceOnSameBoard - data["__nvmlDeviceOnSameBoard"] = __nvmlDeviceOnSameBoard - - global __nvmlDeviceGetAPIRestriction - data["__nvmlDeviceGetAPIRestriction"] = __nvmlDeviceGetAPIRestriction - - global __nvmlDeviceGetSamples - data["__nvmlDeviceGetSamples"] = __nvmlDeviceGetSamples - - global __nvmlDeviceGetBAR1MemoryInfo - data["__nvmlDeviceGetBAR1MemoryInfo"] = __nvmlDeviceGetBAR1MemoryInfo - - global __nvmlDeviceGetIrqNum - data["__nvmlDeviceGetIrqNum"] = __nvmlDeviceGetIrqNum - - global __nvmlDeviceGetNumGpuCores - data["__nvmlDeviceGetNumGpuCores"] = __nvmlDeviceGetNumGpuCores - - global __nvmlDeviceGetPowerSource - data["__nvmlDeviceGetPowerSource"] = __nvmlDeviceGetPowerSource - - global __nvmlDeviceGetMemoryBusWidth - data["__nvmlDeviceGetMemoryBusWidth"] = __nvmlDeviceGetMemoryBusWidth - - global __nvmlDeviceGetPcieLinkMaxSpeed - data["__nvmlDeviceGetPcieLinkMaxSpeed"] = __nvmlDeviceGetPcieLinkMaxSpeed - - global __nvmlDeviceGetPcieSpeed - data["__nvmlDeviceGetPcieSpeed"] = __nvmlDeviceGetPcieSpeed - - global __nvmlDeviceGetAdaptiveClockInfoStatus - data["__nvmlDeviceGetAdaptiveClockInfoStatus"] = __nvmlDeviceGetAdaptiveClockInfoStatus - - global __nvmlDeviceGetBusType - data["__nvmlDeviceGetBusType"] = __nvmlDeviceGetBusType - - global __nvmlDeviceGetGpuFabricInfoV - data["__nvmlDeviceGetGpuFabricInfoV"] = __nvmlDeviceGetGpuFabricInfoV - - global __nvmlSystemGetConfComputeCapabilities - data["__nvmlSystemGetConfComputeCapabilities"] = __nvmlSystemGetConfComputeCapabilities - - global __nvmlSystemGetConfComputeState - data["__nvmlSystemGetConfComputeState"] = __nvmlSystemGetConfComputeState - - global __nvmlDeviceGetConfComputeMemSizeInfo - data["__nvmlDeviceGetConfComputeMemSizeInfo"] = __nvmlDeviceGetConfComputeMemSizeInfo - - global __nvmlSystemGetConfComputeGpusReadyState - data["__nvmlSystemGetConfComputeGpusReadyState"] = __nvmlSystemGetConfComputeGpusReadyState - - global __nvmlDeviceGetConfComputeProtectedMemoryUsage - data["__nvmlDeviceGetConfComputeProtectedMemoryUsage"] = __nvmlDeviceGetConfComputeProtectedMemoryUsage - - global __nvmlDeviceGetConfComputeGpuCertificate - data["__nvmlDeviceGetConfComputeGpuCertificate"] = __nvmlDeviceGetConfComputeGpuCertificate - - global __nvmlDeviceGetConfComputeGpuAttestationReport - data["__nvmlDeviceGetConfComputeGpuAttestationReport"] = __nvmlDeviceGetConfComputeGpuAttestationReport - - global __nvmlSystemGetConfComputeKeyRotationThresholdInfo - data["__nvmlSystemGetConfComputeKeyRotationThresholdInfo"] = __nvmlSystemGetConfComputeKeyRotationThresholdInfo - - global __nvmlDeviceSetConfComputeUnprotectedMemSize - data["__nvmlDeviceSetConfComputeUnprotectedMemSize"] = __nvmlDeviceSetConfComputeUnprotectedMemSize - - global __nvmlSystemSetConfComputeGpusReadyState - data["__nvmlSystemSetConfComputeGpusReadyState"] = __nvmlSystemSetConfComputeGpusReadyState - - global __nvmlSystemSetConfComputeKeyRotationThresholdInfo - data["__nvmlSystemSetConfComputeKeyRotationThresholdInfo"] = __nvmlSystemSetConfComputeKeyRotationThresholdInfo - - global __nvmlSystemGetConfComputeSettings - data["__nvmlSystemGetConfComputeSettings"] = __nvmlSystemGetConfComputeSettings - - global __nvmlDeviceGetGspFirmwareVersion - data["__nvmlDeviceGetGspFirmwareVersion"] = __nvmlDeviceGetGspFirmwareVersion - - global __nvmlDeviceGetGspFirmwareMode - data["__nvmlDeviceGetGspFirmwareMode"] = __nvmlDeviceGetGspFirmwareMode - - global __nvmlDeviceGetSramEccErrorStatus - data["__nvmlDeviceGetSramEccErrorStatus"] = __nvmlDeviceGetSramEccErrorStatus - - global __nvmlDeviceGetAccountingMode - data["__nvmlDeviceGetAccountingMode"] = __nvmlDeviceGetAccountingMode - - global __nvmlDeviceGetAccountingStats - data["__nvmlDeviceGetAccountingStats"] = __nvmlDeviceGetAccountingStats - - global __nvmlDeviceGetAccountingPids - data["__nvmlDeviceGetAccountingPids"] = __nvmlDeviceGetAccountingPids - - global __nvmlDeviceGetAccountingBufferSize - data["__nvmlDeviceGetAccountingBufferSize"] = __nvmlDeviceGetAccountingBufferSize - - global __nvmlDeviceGetRetiredPages - data["__nvmlDeviceGetRetiredPages"] = __nvmlDeviceGetRetiredPages - - global __nvmlDeviceGetRetiredPages_v2 - data["__nvmlDeviceGetRetiredPages_v2"] = __nvmlDeviceGetRetiredPages_v2 - - global __nvmlDeviceGetRetiredPagesPendingStatus - data["__nvmlDeviceGetRetiredPagesPendingStatus"] = __nvmlDeviceGetRetiredPagesPendingStatus - - global __nvmlDeviceGetRemappedRows - data["__nvmlDeviceGetRemappedRows"] = __nvmlDeviceGetRemappedRows - - global __nvmlDeviceGetRowRemapperHistogram - data["__nvmlDeviceGetRowRemapperHistogram"] = __nvmlDeviceGetRowRemapperHistogram - - global __nvmlDeviceGetArchitecture - data["__nvmlDeviceGetArchitecture"] = __nvmlDeviceGetArchitecture - - global __nvmlDeviceGetClkMonStatus - data["__nvmlDeviceGetClkMonStatus"] = __nvmlDeviceGetClkMonStatus - - global __nvmlDeviceGetProcessUtilization - data["__nvmlDeviceGetProcessUtilization"] = __nvmlDeviceGetProcessUtilization - - global __nvmlDeviceGetProcessesUtilizationInfo - data["__nvmlDeviceGetProcessesUtilizationInfo"] = __nvmlDeviceGetProcessesUtilizationInfo - - global __nvmlDeviceGetPlatformInfo - data["__nvmlDeviceGetPlatformInfo"] = __nvmlDeviceGetPlatformInfo - - global __nvmlUnitSetLedState - data["__nvmlUnitSetLedState"] = __nvmlUnitSetLedState - - global __nvmlDeviceSetPersistenceMode - data["__nvmlDeviceSetPersistenceMode"] = __nvmlDeviceSetPersistenceMode - - global __nvmlDeviceSetComputeMode - data["__nvmlDeviceSetComputeMode"] = __nvmlDeviceSetComputeMode - - global __nvmlDeviceSetEccMode - data["__nvmlDeviceSetEccMode"] = __nvmlDeviceSetEccMode - - global __nvmlDeviceClearEccErrorCounts - data["__nvmlDeviceClearEccErrorCounts"] = __nvmlDeviceClearEccErrorCounts - - global __nvmlDeviceSetDriverModel - data["__nvmlDeviceSetDriverModel"] = __nvmlDeviceSetDriverModel - - global __nvmlDeviceSetGpuLockedClocks - data["__nvmlDeviceSetGpuLockedClocks"] = __nvmlDeviceSetGpuLockedClocks - - global __nvmlDeviceResetGpuLockedClocks - data["__nvmlDeviceResetGpuLockedClocks"] = __nvmlDeviceResetGpuLockedClocks - - global __nvmlDeviceSetMemoryLockedClocks - data["__nvmlDeviceSetMemoryLockedClocks"] = __nvmlDeviceSetMemoryLockedClocks - - global __nvmlDeviceResetMemoryLockedClocks - data["__nvmlDeviceResetMemoryLockedClocks"] = __nvmlDeviceResetMemoryLockedClocks - - global __nvmlDeviceSetAutoBoostedClocksEnabled - data["__nvmlDeviceSetAutoBoostedClocksEnabled"] = __nvmlDeviceSetAutoBoostedClocksEnabled - - global __nvmlDeviceSetDefaultAutoBoostedClocksEnabled - data["__nvmlDeviceSetDefaultAutoBoostedClocksEnabled"] = __nvmlDeviceSetDefaultAutoBoostedClocksEnabled - - global __nvmlDeviceSetDefaultFanSpeed_v2 - data["__nvmlDeviceSetDefaultFanSpeed_v2"] = __nvmlDeviceSetDefaultFanSpeed_v2 - - global __nvmlDeviceSetFanControlPolicy - data["__nvmlDeviceSetFanControlPolicy"] = __nvmlDeviceSetFanControlPolicy - - global __nvmlDeviceSetTemperatureThreshold - data["__nvmlDeviceSetTemperatureThreshold"] = __nvmlDeviceSetTemperatureThreshold - - global __nvmlDeviceSetGpuOperationMode - data["__nvmlDeviceSetGpuOperationMode"] = __nvmlDeviceSetGpuOperationMode - - global __nvmlDeviceSetAPIRestriction - data["__nvmlDeviceSetAPIRestriction"] = __nvmlDeviceSetAPIRestriction - - global __nvmlDeviceSetFanSpeed_v2 - data["__nvmlDeviceSetFanSpeed_v2"] = __nvmlDeviceSetFanSpeed_v2 - - global __nvmlDeviceSetAccountingMode - data["__nvmlDeviceSetAccountingMode"] = __nvmlDeviceSetAccountingMode - - global __nvmlDeviceClearAccountingPids - data["__nvmlDeviceClearAccountingPids"] = __nvmlDeviceClearAccountingPids - - global __nvmlDeviceSetPowerManagementLimit_v2 - data["__nvmlDeviceSetPowerManagementLimit_v2"] = __nvmlDeviceSetPowerManagementLimit_v2 - - global __nvmlDeviceGetNvLinkState - data["__nvmlDeviceGetNvLinkState"] = __nvmlDeviceGetNvLinkState - - global __nvmlDeviceGetNvLinkVersion - data["__nvmlDeviceGetNvLinkVersion"] = __nvmlDeviceGetNvLinkVersion - - global __nvmlDeviceGetNvLinkCapability - data["__nvmlDeviceGetNvLinkCapability"] = __nvmlDeviceGetNvLinkCapability - - global __nvmlDeviceGetNvLinkRemotePciInfo_v2 - data["__nvmlDeviceGetNvLinkRemotePciInfo_v2"] = __nvmlDeviceGetNvLinkRemotePciInfo_v2 - - global __nvmlDeviceGetNvLinkErrorCounter - data["__nvmlDeviceGetNvLinkErrorCounter"] = __nvmlDeviceGetNvLinkErrorCounter - - global __nvmlDeviceResetNvLinkErrorCounters - data["__nvmlDeviceResetNvLinkErrorCounters"] = __nvmlDeviceResetNvLinkErrorCounters - - global __nvmlDeviceGetNvLinkRemoteDeviceType - data["__nvmlDeviceGetNvLinkRemoteDeviceType"] = __nvmlDeviceGetNvLinkRemoteDeviceType - - global __nvmlDeviceSetNvLinkDeviceLowPowerThreshold - data["__nvmlDeviceSetNvLinkDeviceLowPowerThreshold"] = __nvmlDeviceSetNvLinkDeviceLowPowerThreshold - - global __nvmlSystemSetNvlinkBwMode - data["__nvmlSystemSetNvlinkBwMode"] = __nvmlSystemSetNvlinkBwMode - - global __nvmlSystemGetNvlinkBwMode - data["__nvmlSystemGetNvlinkBwMode"] = __nvmlSystemGetNvlinkBwMode - - global __nvmlDeviceGetNvlinkSupportedBwModes - data["__nvmlDeviceGetNvlinkSupportedBwModes"] = __nvmlDeviceGetNvlinkSupportedBwModes - - global __nvmlDeviceGetNvlinkBwMode - data["__nvmlDeviceGetNvlinkBwMode"] = __nvmlDeviceGetNvlinkBwMode - - global __nvmlDeviceSetNvlinkBwMode - data["__nvmlDeviceSetNvlinkBwMode"] = __nvmlDeviceSetNvlinkBwMode - - global __nvmlEventSetCreate - data["__nvmlEventSetCreate"] = __nvmlEventSetCreate - - global __nvmlDeviceRegisterEvents - data["__nvmlDeviceRegisterEvents"] = __nvmlDeviceRegisterEvents - - global __nvmlDeviceGetSupportedEventTypes - data["__nvmlDeviceGetSupportedEventTypes"] = __nvmlDeviceGetSupportedEventTypes - - global __nvmlEventSetWait_v2 - data["__nvmlEventSetWait_v2"] = __nvmlEventSetWait_v2 - - global __nvmlEventSetFree - data["__nvmlEventSetFree"] = __nvmlEventSetFree - - global __nvmlSystemEventSetCreate - data["__nvmlSystemEventSetCreate"] = __nvmlSystemEventSetCreate - - global __nvmlSystemEventSetFree - data["__nvmlSystemEventSetFree"] = __nvmlSystemEventSetFree - - global __nvmlSystemRegisterEvents - data["__nvmlSystemRegisterEvents"] = __nvmlSystemRegisterEvents - - global __nvmlSystemEventSetWait - data["__nvmlSystemEventSetWait"] = __nvmlSystemEventSetWait - - global __nvmlDeviceModifyDrainState - data["__nvmlDeviceModifyDrainState"] = __nvmlDeviceModifyDrainState - - global __nvmlDeviceQueryDrainState - data["__nvmlDeviceQueryDrainState"] = __nvmlDeviceQueryDrainState - - global __nvmlDeviceRemoveGpu_v2 - data["__nvmlDeviceRemoveGpu_v2"] = __nvmlDeviceRemoveGpu_v2 - - global __nvmlDeviceDiscoverGpus - data["__nvmlDeviceDiscoverGpus"] = __nvmlDeviceDiscoverGpus - - global __nvmlDeviceGetFieldValues - data["__nvmlDeviceGetFieldValues"] = __nvmlDeviceGetFieldValues - - global __nvmlDeviceClearFieldValues - data["__nvmlDeviceClearFieldValues"] = __nvmlDeviceClearFieldValues - - global __nvmlDeviceGetVirtualizationMode - data["__nvmlDeviceGetVirtualizationMode"] = __nvmlDeviceGetVirtualizationMode - - global __nvmlDeviceGetHostVgpuMode - data["__nvmlDeviceGetHostVgpuMode"] = __nvmlDeviceGetHostVgpuMode - - global __nvmlDeviceSetVirtualizationMode - data["__nvmlDeviceSetVirtualizationMode"] = __nvmlDeviceSetVirtualizationMode - - global __nvmlDeviceGetVgpuHeterogeneousMode - data["__nvmlDeviceGetVgpuHeterogeneousMode"] = __nvmlDeviceGetVgpuHeterogeneousMode - - global __nvmlDeviceSetVgpuHeterogeneousMode - data["__nvmlDeviceSetVgpuHeterogeneousMode"] = __nvmlDeviceSetVgpuHeterogeneousMode - - global __nvmlVgpuInstanceGetPlacementId - data["__nvmlVgpuInstanceGetPlacementId"] = __nvmlVgpuInstanceGetPlacementId - - global __nvmlDeviceGetVgpuTypeSupportedPlacements - data["__nvmlDeviceGetVgpuTypeSupportedPlacements"] = __nvmlDeviceGetVgpuTypeSupportedPlacements - - global __nvmlDeviceGetVgpuTypeCreatablePlacements - data["__nvmlDeviceGetVgpuTypeCreatablePlacements"] = __nvmlDeviceGetVgpuTypeCreatablePlacements - - global __nvmlVgpuTypeGetGspHeapSize - data["__nvmlVgpuTypeGetGspHeapSize"] = __nvmlVgpuTypeGetGspHeapSize - - global __nvmlVgpuTypeGetFbReservation - data["__nvmlVgpuTypeGetFbReservation"] = __nvmlVgpuTypeGetFbReservation - - global __nvmlVgpuInstanceGetRuntimeStateSize - data["__nvmlVgpuInstanceGetRuntimeStateSize"] = __nvmlVgpuInstanceGetRuntimeStateSize - - global __nvmlDeviceSetVgpuCapabilities - data["__nvmlDeviceSetVgpuCapabilities"] = __nvmlDeviceSetVgpuCapabilities - - global __nvmlDeviceGetGridLicensableFeatures_v4 - data["__nvmlDeviceGetGridLicensableFeatures_v4"] = __nvmlDeviceGetGridLicensableFeatures_v4 - - global __nvmlGetVgpuDriverCapabilities - data["__nvmlGetVgpuDriverCapabilities"] = __nvmlGetVgpuDriverCapabilities - - global __nvmlDeviceGetVgpuCapabilities - data["__nvmlDeviceGetVgpuCapabilities"] = __nvmlDeviceGetVgpuCapabilities - - global __nvmlDeviceGetSupportedVgpus - data["__nvmlDeviceGetSupportedVgpus"] = __nvmlDeviceGetSupportedVgpus - - global __nvmlDeviceGetCreatableVgpus - data["__nvmlDeviceGetCreatableVgpus"] = __nvmlDeviceGetCreatableVgpus - - global __nvmlVgpuTypeGetClass - data["__nvmlVgpuTypeGetClass"] = __nvmlVgpuTypeGetClass - - global __nvmlVgpuTypeGetName - data["__nvmlVgpuTypeGetName"] = __nvmlVgpuTypeGetName - - global __nvmlVgpuTypeGetGpuInstanceProfileId - data["__nvmlVgpuTypeGetGpuInstanceProfileId"] = __nvmlVgpuTypeGetGpuInstanceProfileId - - global __nvmlVgpuTypeGetDeviceID - data["__nvmlVgpuTypeGetDeviceID"] = __nvmlVgpuTypeGetDeviceID - - global __nvmlVgpuTypeGetFramebufferSize - data["__nvmlVgpuTypeGetFramebufferSize"] = __nvmlVgpuTypeGetFramebufferSize - - global __nvmlVgpuTypeGetNumDisplayHeads - data["__nvmlVgpuTypeGetNumDisplayHeads"] = __nvmlVgpuTypeGetNumDisplayHeads - - global __nvmlVgpuTypeGetResolution - data["__nvmlVgpuTypeGetResolution"] = __nvmlVgpuTypeGetResolution - - global __nvmlVgpuTypeGetLicense - data["__nvmlVgpuTypeGetLicense"] = __nvmlVgpuTypeGetLicense - - global __nvmlVgpuTypeGetFrameRateLimit - data["__nvmlVgpuTypeGetFrameRateLimit"] = __nvmlVgpuTypeGetFrameRateLimit - - global __nvmlVgpuTypeGetMaxInstances - data["__nvmlVgpuTypeGetMaxInstances"] = __nvmlVgpuTypeGetMaxInstances - - global __nvmlVgpuTypeGetMaxInstancesPerVm - data["__nvmlVgpuTypeGetMaxInstancesPerVm"] = __nvmlVgpuTypeGetMaxInstancesPerVm - - global __nvmlVgpuTypeGetBAR1Info - data["__nvmlVgpuTypeGetBAR1Info"] = __nvmlVgpuTypeGetBAR1Info - - global __nvmlDeviceGetActiveVgpus - data["__nvmlDeviceGetActiveVgpus"] = __nvmlDeviceGetActiveVgpus - - global __nvmlVgpuInstanceGetVmID - data["__nvmlVgpuInstanceGetVmID"] = __nvmlVgpuInstanceGetVmID - - global __nvmlVgpuInstanceGetUUID - data["__nvmlVgpuInstanceGetUUID"] = __nvmlVgpuInstanceGetUUID - - global __nvmlVgpuInstanceGetVmDriverVersion - data["__nvmlVgpuInstanceGetVmDriverVersion"] = __nvmlVgpuInstanceGetVmDriverVersion - - global __nvmlVgpuInstanceGetFbUsage - data["__nvmlVgpuInstanceGetFbUsage"] = __nvmlVgpuInstanceGetFbUsage - - global __nvmlVgpuInstanceGetLicenseStatus - data["__nvmlVgpuInstanceGetLicenseStatus"] = __nvmlVgpuInstanceGetLicenseStatus - - global __nvmlVgpuInstanceGetType - data["__nvmlVgpuInstanceGetType"] = __nvmlVgpuInstanceGetType - - global __nvmlVgpuInstanceGetFrameRateLimit - data["__nvmlVgpuInstanceGetFrameRateLimit"] = __nvmlVgpuInstanceGetFrameRateLimit - - global __nvmlVgpuInstanceGetEccMode - data["__nvmlVgpuInstanceGetEccMode"] = __nvmlVgpuInstanceGetEccMode - - global __nvmlVgpuInstanceGetEncoderCapacity - data["__nvmlVgpuInstanceGetEncoderCapacity"] = __nvmlVgpuInstanceGetEncoderCapacity - - global __nvmlVgpuInstanceSetEncoderCapacity - data["__nvmlVgpuInstanceSetEncoderCapacity"] = __nvmlVgpuInstanceSetEncoderCapacity - - global __nvmlVgpuInstanceGetEncoderStats - data["__nvmlVgpuInstanceGetEncoderStats"] = __nvmlVgpuInstanceGetEncoderStats - - global __nvmlVgpuInstanceGetEncoderSessions - data["__nvmlVgpuInstanceGetEncoderSessions"] = __nvmlVgpuInstanceGetEncoderSessions - - global __nvmlVgpuInstanceGetFBCStats - data["__nvmlVgpuInstanceGetFBCStats"] = __nvmlVgpuInstanceGetFBCStats - - global __nvmlVgpuInstanceGetFBCSessions - data["__nvmlVgpuInstanceGetFBCSessions"] = __nvmlVgpuInstanceGetFBCSessions - - global __nvmlVgpuInstanceGetGpuInstanceId - data["__nvmlVgpuInstanceGetGpuInstanceId"] = __nvmlVgpuInstanceGetGpuInstanceId - - global __nvmlVgpuInstanceGetGpuPciId - data["__nvmlVgpuInstanceGetGpuPciId"] = __nvmlVgpuInstanceGetGpuPciId - - global __nvmlVgpuTypeGetCapabilities - data["__nvmlVgpuTypeGetCapabilities"] = __nvmlVgpuTypeGetCapabilities - - global __nvmlVgpuInstanceGetMdevUUID - data["__nvmlVgpuInstanceGetMdevUUID"] = __nvmlVgpuInstanceGetMdevUUID - - global __nvmlGpuInstanceGetCreatableVgpus - data["__nvmlGpuInstanceGetCreatableVgpus"] = __nvmlGpuInstanceGetCreatableVgpus - - global __nvmlVgpuTypeGetMaxInstancesPerGpuInstance - data["__nvmlVgpuTypeGetMaxInstancesPerGpuInstance"] = __nvmlVgpuTypeGetMaxInstancesPerGpuInstance - - global __nvmlGpuInstanceGetActiveVgpus - data["__nvmlGpuInstanceGetActiveVgpus"] = __nvmlGpuInstanceGetActiveVgpus - - global __nvmlGpuInstanceSetVgpuSchedulerState - data["__nvmlGpuInstanceSetVgpuSchedulerState"] = __nvmlGpuInstanceSetVgpuSchedulerState - - global __nvmlGpuInstanceGetVgpuSchedulerState - data["__nvmlGpuInstanceGetVgpuSchedulerState"] = __nvmlGpuInstanceGetVgpuSchedulerState - - global __nvmlGpuInstanceGetVgpuSchedulerLog - data["__nvmlGpuInstanceGetVgpuSchedulerLog"] = __nvmlGpuInstanceGetVgpuSchedulerLog - - global __nvmlGpuInstanceGetVgpuTypeCreatablePlacements - data["__nvmlGpuInstanceGetVgpuTypeCreatablePlacements"] = __nvmlGpuInstanceGetVgpuTypeCreatablePlacements - - global __nvmlGpuInstanceGetVgpuHeterogeneousMode - data["__nvmlGpuInstanceGetVgpuHeterogeneousMode"] = __nvmlGpuInstanceGetVgpuHeterogeneousMode - - global __nvmlGpuInstanceSetVgpuHeterogeneousMode - data["__nvmlGpuInstanceSetVgpuHeterogeneousMode"] = __nvmlGpuInstanceSetVgpuHeterogeneousMode - - global __nvmlVgpuInstanceGetMetadata - data["__nvmlVgpuInstanceGetMetadata"] = __nvmlVgpuInstanceGetMetadata - - global __nvmlDeviceGetVgpuMetadata - data["__nvmlDeviceGetVgpuMetadata"] = __nvmlDeviceGetVgpuMetadata - - global __nvmlGetVgpuCompatibility - data["__nvmlGetVgpuCompatibility"] = __nvmlGetVgpuCompatibility - - global __nvmlDeviceGetPgpuMetadataString - data["__nvmlDeviceGetPgpuMetadataString"] = __nvmlDeviceGetPgpuMetadataString - - global __nvmlDeviceGetVgpuSchedulerLog - data["__nvmlDeviceGetVgpuSchedulerLog"] = __nvmlDeviceGetVgpuSchedulerLog - - global __nvmlDeviceGetVgpuSchedulerState - data["__nvmlDeviceGetVgpuSchedulerState"] = __nvmlDeviceGetVgpuSchedulerState - - global __nvmlDeviceGetVgpuSchedulerCapabilities - data["__nvmlDeviceGetVgpuSchedulerCapabilities"] = __nvmlDeviceGetVgpuSchedulerCapabilities - - global __nvmlDeviceSetVgpuSchedulerState - data["__nvmlDeviceSetVgpuSchedulerState"] = __nvmlDeviceSetVgpuSchedulerState - - global __nvmlGetVgpuVersion - data["__nvmlGetVgpuVersion"] = __nvmlGetVgpuVersion - - global __nvmlSetVgpuVersion - data["__nvmlSetVgpuVersion"] = __nvmlSetVgpuVersion - - global __nvmlDeviceGetVgpuUtilization - data["__nvmlDeviceGetVgpuUtilization"] = __nvmlDeviceGetVgpuUtilization - - global __nvmlDeviceGetVgpuInstancesUtilizationInfo - data["__nvmlDeviceGetVgpuInstancesUtilizationInfo"] = __nvmlDeviceGetVgpuInstancesUtilizationInfo - - global __nvmlDeviceGetVgpuProcessUtilization - data["__nvmlDeviceGetVgpuProcessUtilization"] = __nvmlDeviceGetVgpuProcessUtilization - - global __nvmlDeviceGetVgpuProcessesUtilizationInfo - data["__nvmlDeviceGetVgpuProcessesUtilizationInfo"] = __nvmlDeviceGetVgpuProcessesUtilizationInfo - - global __nvmlVgpuInstanceGetAccountingMode - data["__nvmlVgpuInstanceGetAccountingMode"] = __nvmlVgpuInstanceGetAccountingMode - - global __nvmlVgpuInstanceGetAccountingPids - data["__nvmlVgpuInstanceGetAccountingPids"] = __nvmlVgpuInstanceGetAccountingPids - - global __nvmlVgpuInstanceGetAccountingStats - data["__nvmlVgpuInstanceGetAccountingStats"] = __nvmlVgpuInstanceGetAccountingStats - - global __nvmlVgpuInstanceClearAccountingPids - data["__nvmlVgpuInstanceClearAccountingPids"] = __nvmlVgpuInstanceClearAccountingPids - - global __nvmlVgpuInstanceGetLicenseInfo_v2 - data["__nvmlVgpuInstanceGetLicenseInfo_v2"] = __nvmlVgpuInstanceGetLicenseInfo_v2 - - global __nvmlGetExcludedDeviceCount - data["__nvmlGetExcludedDeviceCount"] = __nvmlGetExcludedDeviceCount - - global __nvmlGetExcludedDeviceInfoByIndex - data["__nvmlGetExcludedDeviceInfoByIndex"] = __nvmlGetExcludedDeviceInfoByIndex - - global __nvmlDeviceSetMigMode - data["__nvmlDeviceSetMigMode"] = __nvmlDeviceSetMigMode - - global __nvmlDeviceGetMigMode - data["__nvmlDeviceGetMigMode"] = __nvmlDeviceGetMigMode - - global __nvmlDeviceGetGpuInstanceProfileInfoV - data["__nvmlDeviceGetGpuInstanceProfileInfoV"] = __nvmlDeviceGetGpuInstanceProfileInfoV - - global __nvmlDeviceGetGpuInstancePossiblePlacements_v2 - data["__nvmlDeviceGetGpuInstancePossiblePlacements_v2"] = __nvmlDeviceGetGpuInstancePossiblePlacements_v2 - - global __nvmlDeviceGetGpuInstanceRemainingCapacity - data["__nvmlDeviceGetGpuInstanceRemainingCapacity"] = __nvmlDeviceGetGpuInstanceRemainingCapacity - - global __nvmlDeviceCreateGpuInstance - data["__nvmlDeviceCreateGpuInstance"] = __nvmlDeviceCreateGpuInstance - - global __nvmlDeviceCreateGpuInstanceWithPlacement - data["__nvmlDeviceCreateGpuInstanceWithPlacement"] = __nvmlDeviceCreateGpuInstanceWithPlacement - - global __nvmlGpuInstanceDestroy - data["__nvmlGpuInstanceDestroy"] = __nvmlGpuInstanceDestroy - - global __nvmlDeviceGetGpuInstances - data["__nvmlDeviceGetGpuInstances"] = __nvmlDeviceGetGpuInstances - - global __nvmlDeviceGetGpuInstanceById - data["__nvmlDeviceGetGpuInstanceById"] = __nvmlDeviceGetGpuInstanceById - - global __nvmlGpuInstanceGetInfo - data["__nvmlGpuInstanceGetInfo"] = __nvmlGpuInstanceGetInfo - - global __nvmlGpuInstanceGetComputeInstanceProfileInfoV - data["__nvmlGpuInstanceGetComputeInstanceProfileInfoV"] = __nvmlGpuInstanceGetComputeInstanceProfileInfoV - - global __nvmlGpuInstanceGetComputeInstanceRemainingCapacity - data["__nvmlGpuInstanceGetComputeInstanceRemainingCapacity"] = __nvmlGpuInstanceGetComputeInstanceRemainingCapacity - - global __nvmlGpuInstanceGetComputeInstancePossiblePlacements - data["__nvmlGpuInstanceGetComputeInstancePossiblePlacements"] = __nvmlGpuInstanceGetComputeInstancePossiblePlacements - - global __nvmlGpuInstanceCreateComputeInstance - data["__nvmlGpuInstanceCreateComputeInstance"] = __nvmlGpuInstanceCreateComputeInstance - - global __nvmlGpuInstanceCreateComputeInstanceWithPlacement - data["__nvmlGpuInstanceCreateComputeInstanceWithPlacement"] = __nvmlGpuInstanceCreateComputeInstanceWithPlacement - - global __nvmlComputeInstanceDestroy - data["__nvmlComputeInstanceDestroy"] = __nvmlComputeInstanceDestroy - - global __nvmlGpuInstanceGetComputeInstances - data["__nvmlGpuInstanceGetComputeInstances"] = __nvmlGpuInstanceGetComputeInstances - - global __nvmlGpuInstanceGetComputeInstanceById - data["__nvmlGpuInstanceGetComputeInstanceById"] = __nvmlGpuInstanceGetComputeInstanceById - - global __nvmlComputeInstanceGetInfo_v2 - data["__nvmlComputeInstanceGetInfo_v2"] = __nvmlComputeInstanceGetInfo_v2 - - global __nvmlDeviceIsMigDeviceHandle - data["__nvmlDeviceIsMigDeviceHandle"] = __nvmlDeviceIsMigDeviceHandle - - global __nvmlDeviceGetGpuInstanceId - data["__nvmlDeviceGetGpuInstanceId"] = __nvmlDeviceGetGpuInstanceId - - global __nvmlDeviceGetComputeInstanceId - data["__nvmlDeviceGetComputeInstanceId"] = __nvmlDeviceGetComputeInstanceId - - global __nvmlDeviceGetMaxMigDeviceCount - data["__nvmlDeviceGetMaxMigDeviceCount"] = __nvmlDeviceGetMaxMigDeviceCount - - global __nvmlDeviceGetMigDeviceHandleByIndex - data["__nvmlDeviceGetMigDeviceHandleByIndex"] = __nvmlDeviceGetMigDeviceHandleByIndex - - global __nvmlDeviceGetDeviceHandleFromMigDeviceHandle - data["__nvmlDeviceGetDeviceHandleFromMigDeviceHandle"] = __nvmlDeviceGetDeviceHandleFromMigDeviceHandle - - global __nvmlDeviceGetCapabilities - data["__nvmlDeviceGetCapabilities"] = __nvmlDeviceGetCapabilities - - global __nvmlDevicePowerSmoothingActivatePresetProfile - data["__nvmlDevicePowerSmoothingActivatePresetProfile"] = __nvmlDevicePowerSmoothingActivatePresetProfile - - global __nvmlDevicePowerSmoothingUpdatePresetProfileParam - data["__nvmlDevicePowerSmoothingUpdatePresetProfileParam"] = __nvmlDevicePowerSmoothingUpdatePresetProfileParam - - global __nvmlDevicePowerSmoothingSetState - data["__nvmlDevicePowerSmoothingSetState"] = __nvmlDevicePowerSmoothingSetState - - global __nvmlDeviceGetAddressingMode - data["__nvmlDeviceGetAddressingMode"] = __nvmlDeviceGetAddressingMode - - global __nvmlDeviceGetRepairStatus - data["__nvmlDeviceGetRepairStatus"] = __nvmlDeviceGetRepairStatus - - global __nvmlDeviceGetPowerMizerMode_v1 - data["__nvmlDeviceGetPowerMizerMode_v1"] = __nvmlDeviceGetPowerMizerMode_v1 - - global __nvmlDeviceSetPowerMizerMode_v1 - data["__nvmlDeviceSetPowerMizerMode_v1"] = __nvmlDeviceSetPowerMizerMode_v1 - - global __nvmlDeviceGetPdi - data["__nvmlDeviceGetPdi"] = __nvmlDeviceGetPdi - - global __nvmlDeviceSetHostname_v1 - data["__nvmlDeviceSetHostname_v1"] = __nvmlDeviceSetHostname_v1 - - global __nvmlDeviceGetHostname_v1 - data["__nvmlDeviceGetHostname_v1"] = __nvmlDeviceGetHostname_v1 - - global __nvmlDeviceGetNvLinkInfo - data["__nvmlDeviceGetNvLinkInfo"] = __nvmlDeviceGetNvLinkInfo - - global __nvmlDeviceReadWritePRM_v1 - data["__nvmlDeviceReadWritePRM_v1"] = __nvmlDeviceReadWritePRM_v1 - - global __nvmlDeviceGetGpuInstanceProfileInfoByIdV - data["__nvmlDeviceGetGpuInstanceProfileInfoByIdV"] = __nvmlDeviceGetGpuInstanceProfileInfoByIdV - - global __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts - data["__nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts"] = __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts - - global __nvmlDeviceGetUnrepairableMemoryFlag_v1 - data["__nvmlDeviceGetUnrepairableMemoryFlag_v1"] = __nvmlDeviceGetUnrepairableMemoryFlag_v1 - - global __nvmlDeviceReadPRMCounters_v1 - data["__nvmlDeviceReadPRMCounters_v1"] = __nvmlDeviceReadPRMCounters_v1 - - global __nvmlDeviceSetRusdSettings_v1 - data["__nvmlDeviceSetRusdSettings_v1"] = __nvmlDeviceSetRusdSettings_v1 - - global __nvmlDeviceVgpuForceGspUnload - data["__nvmlDeviceVgpuForceGspUnload"] = __nvmlDeviceVgpuForceGspUnload - - global __nvmlDeviceGetVgpuSchedulerState_v2 - data["__nvmlDeviceGetVgpuSchedulerState_v2"] = __nvmlDeviceGetVgpuSchedulerState_v2 - - global __nvmlGpuInstanceGetVgpuSchedulerState_v2 - data["__nvmlGpuInstanceGetVgpuSchedulerState_v2"] = __nvmlGpuInstanceGetVgpuSchedulerState_v2 - - global __nvmlDeviceGetVgpuSchedulerLog_v2 - data["__nvmlDeviceGetVgpuSchedulerLog_v2"] = __nvmlDeviceGetVgpuSchedulerLog_v2 - - global __nvmlGpuInstanceGetVgpuSchedulerLog_v2 - data["__nvmlGpuInstanceGetVgpuSchedulerLog_v2"] = __nvmlGpuInstanceGetVgpuSchedulerLog_v2 - - global __nvmlDeviceSetVgpuSchedulerState_v2 - data["__nvmlDeviceSetVgpuSchedulerState_v2"] = __nvmlDeviceSetVgpuSchedulerState_v2 - - global __nvmlGpuInstanceSetVgpuSchedulerState_v2 - data["__nvmlGpuInstanceSetVgpuSchedulerState_v2"] = __nvmlGpuInstanceSetVgpuSchedulerState_v2 - - global __nvmlSystemGetCPER_v1 - data["__nvmlSystemGetCPER_v1"] = __nvmlSystemGetCPER_v1 - - global __nvmlDeviceGetBBXTimeData_v1 - data["__nvmlDeviceGetBBXTimeData_v1"] = __nvmlDeviceGetBBXTimeData_v1 - - global __nvmlDeviceGetAccountingStats_v2 - data["__nvmlDeviceGetAccountingStats_v2"] = __nvmlDeviceGetAccountingStats_v2 - - global __nvmlDeviceGetRemappedRows_v2 - data["__nvmlDeviceGetRemappedRows_v2"] = __nvmlDeviceGetRemappedRows_v2 - - global __nvmlDeviceSetAdaptiveTgpMode_v1 - data["__nvmlDeviceSetAdaptiveTgpMode_v1"] = __nvmlDeviceSetAdaptiveTgpMode_v1 - - global __nvmlDeviceGetAdaptiveTgpModeInfo_v1 - data["__nvmlDeviceGetAdaptiveTgpModeInfo_v1"] = __nvmlDeviceGetAdaptiveTgpModeInfo_v1 - - global __nvmlDeviceSetMemoryLimits_v1 - data["__nvmlDeviceSetMemoryLimits_v1"] = __nvmlDeviceSetMemoryLimits_v1 - - global __nvmlDeviceGetMemoryLimits_v1 - data["__nvmlDeviceGetMemoryLimits_v1"] = __nvmlDeviceGetMemoryLimits_v1 - - global __nvmlDeviceGetGpuFabricInfo_v4 - data["__nvmlDeviceGetGpuFabricInfo_v4"] = __nvmlDeviceGetGpuFabricInfo_v4 - - global __nvmlDevicePerfMetricsGetSamples_v1 - data["__nvmlDevicePerfMetricsGetSamples_v1"] = __nvmlDevicePerfMetricsGetSamples_v1 - - global __nvmlDeviceSetNvlinkBwModeAsync_v1 - data["__nvmlDeviceSetNvlinkBwModeAsync_v1"] = __nvmlDeviceSetNvlinkBwModeAsync_v1 - - global __nvmlDeviceGetNvLinkTelemetrySamples_v1 - data["__nvmlDeviceGetNvLinkTelemetrySamples_v1"] = __nvmlDeviceGetNvLinkTelemetrySamples_v1 - - global __nvmlEventSetRegisterGpuOperationalEvents_v1 - data["__nvmlEventSetRegisterGpuOperationalEvents_v1"] = __nvmlEventSetRegisterGpuOperationalEvents_v1 - - global __nvmlEventSetWait_v3 - data["__nvmlEventSetWait_v3"] = __nvmlEventSetWait_v3 - - global __nvmlEventSetGetContextCount_v1 - data["__nvmlEventSetGetContextCount_v1"] = __nvmlEventSetGetContextCount_v1 - - global __nvmlEventSetGetContextInfo_v1 - data["__nvmlEventSetGetContextInfo_v1"] = __nvmlEventSetGetContextInfo_v1 - - global __nvmlEventSetGetContextData_v1 - data["__nvmlEventSetGetContextData_v1"] = __nvmlEventSetGetContextData_v1 - - global __nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1 - data["__nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1"] = __nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1 - - global __nvmlDeviceGetBankRemapperStatus_v1 - data["__nvmlDeviceGetBankRemapperStatus_v1"] = __nvmlDeviceGetBankRemapperStatus_v1 - - global __nvmlDeviceGetGpuUptime_v1 - data["__nvmlDeviceGetGpuUptime_v1"] = __nvmlDeviceGetGpuUptime_v1 - - global __nvmlSystemGetConfComputeSettings_v2 - data["__nvmlSystemGetConfComputeSettings_v2"] = __nvmlSystemGetConfComputeSettings_v2 - - global __nvmlDeviceGetNvLinkInfo_v3 - data["__nvmlDeviceGetNvLinkInfo_v3"] = __nvmlDeviceGetNvLinkInfo_v3 - - global __nvmlDeviceGetNvlinkRemapTableInfo_v1 - data["__nvmlDeviceGetNvlinkRemapTableInfo_v1"] = __nvmlDeviceGetNvlinkRemapTableInfo_v1 - - global __nvmlDeviceSetNvlinkNvleReady_v1 - data["__nvmlDeviceSetNvlinkNvleReady_v1"] = __nvmlDeviceSetNvlinkNvleReady_v1 - - global __nvmlDeviceLockNvlinkRemapTable_v1 - data["__nvmlDeviceLockNvlinkRemapTable_v1"] = __nvmlDeviceLockNvlinkRemapTable_v1 - - global __nvmlDeviceSetupNvlinkNvleEncryptionKey_v1 - data["__nvmlDeviceSetupNvlinkNvleEncryptionKey_v1"] = __nvmlDeviceSetupNvlinkNvleEncryptionKey_v1 - - global __nvmlDeviceGetNvlinkNvlePrivateInfo_v1 - data["__nvmlDeviceGetNvlinkNvlePrivateInfo_v1"] = __nvmlDeviceGetNvlinkNvlePrivateInfo_v1 + cdef Py_ssize_t i + for i in range(_cyb_nvml_n_functions): + data['__' + _cyb_nvml_names[i].decode()] = _cyb_nvml_slots[i][0] _cyb_func_ptrs = data return data diff --git a/cuda_bindings_13/cuda/bindings/_internal/nvml_windows.pyx b/cuda_bindings_13/cuda/bindings/_internal/nvml_windows.pyx index 389d3a3a9ca9..bcb68c2f1e54 100644 --- a/cuda_bindings_13/cuda/bindings/_internal/nvml_windows.pyx +++ b/cuda_bindings_13/cuda/bindings/_internal/nvml_windows.pyx @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated across versions from 12.9.1 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=2b270f2621f10756d04c5c670375910813add646fcbf78eb79baa6f2e2836f8c +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=5afbd4bac3bbe9aa0425a1ec4550bb3581ebb148d47a9de0668ea72649f4b395 # <<<< PREAMBLE CONTENT >>>> @@ -443,2299 +443,421 @@ cdef void* __nvmlDeviceLockNvlinkRemapTable_v1 = NULL cdef void* __nvmlDeviceSetupNvlinkNvleEncryptionKey_v1 = NULL cdef void* __nvmlDeviceGetNvlinkNvlePrivateInfo_v1 = NULL +cdef enum: _cyb_nvml_n_functions = 378 +cdef void** _cyb_nvml_slots[_cyb_nvml_n_functions] +cdef const char* _cyb_nvml_names[_cyb_nvml_n_functions] +_cyb_nvml_slots[0] = &__nvmlInit_v2; _cyb_nvml_names[0] = b'nvmlInit_v2' +_cyb_nvml_slots[1] = &__nvmlInitWithFlags; _cyb_nvml_names[1] = b'nvmlInitWithFlags' +_cyb_nvml_slots[2] = &__nvmlShutdown; _cyb_nvml_names[2] = b'nvmlShutdown' +_cyb_nvml_slots[3] = &__nvmlErrorString; _cyb_nvml_names[3] = b'nvmlErrorString' +_cyb_nvml_slots[4] = &__nvmlSystemGetDriverVersion; _cyb_nvml_names[4] = b'nvmlSystemGetDriverVersion' +_cyb_nvml_slots[5] = &__nvmlSystemGetNVMLVersion; _cyb_nvml_names[5] = b'nvmlSystemGetNVMLVersion' +_cyb_nvml_slots[6] = &__nvmlSystemGetCudaDriverVersion; _cyb_nvml_names[6] = b'nvmlSystemGetCudaDriverVersion' +_cyb_nvml_slots[7] = &__nvmlSystemGetCudaDriverVersion_v2; _cyb_nvml_names[7] = b'nvmlSystemGetCudaDriverVersion_v2' +_cyb_nvml_slots[8] = &__nvmlSystemGetProcessName; _cyb_nvml_names[8] = b'nvmlSystemGetProcessName' +_cyb_nvml_slots[9] = &__nvmlSystemGetHicVersion; _cyb_nvml_names[9] = b'nvmlSystemGetHicVersion' +_cyb_nvml_slots[10] = &__nvmlSystemGetTopologyGpuSet; _cyb_nvml_names[10] = b'nvmlSystemGetTopologyGpuSet' +_cyb_nvml_slots[11] = &__nvmlSystemGetDriverBranch; _cyb_nvml_names[11] = b'nvmlSystemGetDriverBranch' +_cyb_nvml_slots[12] = &__nvmlUnitGetCount; _cyb_nvml_names[12] = b'nvmlUnitGetCount' +_cyb_nvml_slots[13] = &__nvmlUnitGetHandleByIndex; _cyb_nvml_names[13] = b'nvmlUnitGetHandleByIndex' +_cyb_nvml_slots[14] = &__nvmlUnitGetUnitInfo; _cyb_nvml_names[14] = b'nvmlUnitGetUnitInfo' +_cyb_nvml_slots[15] = &__nvmlUnitGetLedState; _cyb_nvml_names[15] = b'nvmlUnitGetLedState' +_cyb_nvml_slots[16] = &__nvmlUnitGetPsuInfo; _cyb_nvml_names[16] = b'nvmlUnitGetPsuInfo' +_cyb_nvml_slots[17] = &__nvmlUnitGetTemperature; _cyb_nvml_names[17] = b'nvmlUnitGetTemperature' +_cyb_nvml_slots[18] = &__nvmlUnitGetFanSpeedInfo; _cyb_nvml_names[18] = b'nvmlUnitGetFanSpeedInfo' +_cyb_nvml_slots[19] = &__nvmlUnitGetDevices; _cyb_nvml_names[19] = b'nvmlUnitGetDevices' +_cyb_nvml_slots[20] = &__nvmlDeviceGetCount_v2; _cyb_nvml_names[20] = b'nvmlDeviceGetCount_v2' +_cyb_nvml_slots[21] = &__nvmlDeviceGetAttributes_v2; _cyb_nvml_names[21] = b'nvmlDeviceGetAttributes_v2' +_cyb_nvml_slots[22] = &__nvmlDeviceGetHandleByIndex_v2; _cyb_nvml_names[22] = b'nvmlDeviceGetHandleByIndex_v2' +_cyb_nvml_slots[23] = &__nvmlDeviceGetHandleBySerial; _cyb_nvml_names[23] = b'nvmlDeviceGetHandleBySerial' +_cyb_nvml_slots[24] = &__nvmlDeviceGetHandleByUUID; _cyb_nvml_names[24] = b'nvmlDeviceGetHandleByUUID' +_cyb_nvml_slots[25] = &__nvmlDeviceGetHandleByUUIDV; _cyb_nvml_names[25] = b'nvmlDeviceGetHandleByUUIDV' +_cyb_nvml_slots[26] = &__nvmlDeviceGetHandleByPciBusId_v2; _cyb_nvml_names[26] = b'nvmlDeviceGetHandleByPciBusId_v2' +_cyb_nvml_slots[27] = &__nvmlDeviceGetName; _cyb_nvml_names[27] = b'nvmlDeviceGetName' +_cyb_nvml_slots[28] = &__nvmlDeviceGetBrand; _cyb_nvml_names[28] = b'nvmlDeviceGetBrand' +_cyb_nvml_slots[29] = &__nvmlDeviceGetIndex; _cyb_nvml_names[29] = b'nvmlDeviceGetIndex' +_cyb_nvml_slots[30] = &__nvmlDeviceGetSerial; _cyb_nvml_names[30] = b'nvmlDeviceGetSerial' +_cyb_nvml_slots[31] = &__nvmlDeviceGetModuleId; _cyb_nvml_names[31] = b'nvmlDeviceGetModuleId' +_cyb_nvml_slots[32] = &__nvmlDeviceGetC2cModeInfoV; _cyb_nvml_names[32] = b'nvmlDeviceGetC2cModeInfoV' +_cyb_nvml_slots[33] = &__nvmlDeviceGetMemoryAffinity; _cyb_nvml_names[33] = b'nvmlDeviceGetMemoryAffinity' +_cyb_nvml_slots[34] = &__nvmlDeviceGetCpuAffinityWithinScope; _cyb_nvml_names[34] = b'nvmlDeviceGetCpuAffinityWithinScope' +_cyb_nvml_slots[35] = &__nvmlDeviceGetCpuAffinity; _cyb_nvml_names[35] = b'nvmlDeviceGetCpuAffinity' +_cyb_nvml_slots[36] = &__nvmlDeviceSetCpuAffinity; _cyb_nvml_names[36] = b'nvmlDeviceSetCpuAffinity' +_cyb_nvml_slots[37] = &__nvmlDeviceClearCpuAffinity; _cyb_nvml_names[37] = b'nvmlDeviceClearCpuAffinity' +_cyb_nvml_slots[38] = &__nvmlDeviceGetNumaNodeId; _cyb_nvml_names[38] = b'nvmlDeviceGetNumaNodeId' +_cyb_nvml_slots[39] = &__nvmlDeviceGetTopologyCommonAncestor; _cyb_nvml_names[39] = b'nvmlDeviceGetTopologyCommonAncestor' +_cyb_nvml_slots[40] = &__nvmlDeviceGetTopologyNearestGpus; _cyb_nvml_names[40] = b'nvmlDeviceGetTopologyNearestGpus' +_cyb_nvml_slots[41] = &__nvmlDeviceGetP2PStatus; _cyb_nvml_names[41] = b'nvmlDeviceGetP2PStatus' +_cyb_nvml_slots[42] = &__nvmlDeviceGetUUID; _cyb_nvml_names[42] = b'nvmlDeviceGetUUID' +_cyb_nvml_slots[43] = &__nvmlDeviceGetMinorNumber; _cyb_nvml_names[43] = b'nvmlDeviceGetMinorNumber' +_cyb_nvml_slots[44] = &__nvmlDeviceGetBoardPartNumber; _cyb_nvml_names[44] = b'nvmlDeviceGetBoardPartNumber' +_cyb_nvml_slots[45] = &__nvmlDeviceGetInforomVersion; _cyb_nvml_names[45] = b'nvmlDeviceGetInforomVersion' +_cyb_nvml_slots[46] = &__nvmlDeviceGetInforomImageVersion; _cyb_nvml_names[46] = b'nvmlDeviceGetInforomImageVersion' +_cyb_nvml_slots[47] = &__nvmlDeviceGetInforomConfigurationChecksum; _cyb_nvml_names[47] = b'nvmlDeviceGetInforomConfigurationChecksum' +_cyb_nvml_slots[48] = &__nvmlDeviceValidateInforom; _cyb_nvml_names[48] = b'nvmlDeviceValidateInforom' +_cyb_nvml_slots[49] = &__nvmlDeviceGetLastBBXFlushTime; _cyb_nvml_names[49] = b'nvmlDeviceGetLastBBXFlushTime' +_cyb_nvml_slots[50] = &__nvmlDeviceGetDisplayMode; _cyb_nvml_names[50] = b'nvmlDeviceGetDisplayMode' +_cyb_nvml_slots[51] = &__nvmlDeviceGetDisplayActive; _cyb_nvml_names[51] = b'nvmlDeviceGetDisplayActive' +_cyb_nvml_slots[52] = &__nvmlDeviceGetPersistenceMode; _cyb_nvml_names[52] = b'nvmlDeviceGetPersistenceMode' +_cyb_nvml_slots[53] = &__nvmlDeviceGetPciInfoExt; _cyb_nvml_names[53] = b'nvmlDeviceGetPciInfoExt' +_cyb_nvml_slots[54] = &__nvmlDeviceGetPciInfo_v3; _cyb_nvml_names[54] = b'nvmlDeviceGetPciInfo_v3' +_cyb_nvml_slots[55] = &__nvmlDeviceGetMaxPcieLinkGeneration; _cyb_nvml_names[55] = b'nvmlDeviceGetMaxPcieLinkGeneration' +_cyb_nvml_slots[56] = &__nvmlDeviceGetGpuMaxPcieLinkGeneration; _cyb_nvml_names[56] = b'nvmlDeviceGetGpuMaxPcieLinkGeneration' +_cyb_nvml_slots[57] = &__nvmlDeviceGetMaxPcieLinkWidth; _cyb_nvml_names[57] = b'nvmlDeviceGetMaxPcieLinkWidth' +_cyb_nvml_slots[58] = &__nvmlDeviceGetCurrPcieLinkGeneration; _cyb_nvml_names[58] = b'nvmlDeviceGetCurrPcieLinkGeneration' +_cyb_nvml_slots[59] = &__nvmlDeviceGetCurrPcieLinkWidth; _cyb_nvml_names[59] = b'nvmlDeviceGetCurrPcieLinkWidth' +_cyb_nvml_slots[60] = &__nvmlDeviceGetPcieThroughput; _cyb_nvml_names[60] = b'nvmlDeviceGetPcieThroughput' +_cyb_nvml_slots[61] = &__nvmlDeviceGetPcieReplayCounter; _cyb_nvml_names[61] = b'nvmlDeviceGetPcieReplayCounter' +_cyb_nvml_slots[62] = &__nvmlDeviceGetClockInfo; _cyb_nvml_names[62] = b'nvmlDeviceGetClockInfo' +_cyb_nvml_slots[63] = &__nvmlDeviceGetMaxClockInfo; _cyb_nvml_names[63] = b'nvmlDeviceGetMaxClockInfo' +_cyb_nvml_slots[64] = &__nvmlDeviceGetGpcClkVfOffset; _cyb_nvml_names[64] = b'nvmlDeviceGetGpcClkVfOffset' +_cyb_nvml_slots[65] = &__nvmlDeviceGetClock; _cyb_nvml_names[65] = b'nvmlDeviceGetClock' +_cyb_nvml_slots[66] = &__nvmlDeviceGetMaxCustomerBoostClock; _cyb_nvml_names[66] = b'nvmlDeviceGetMaxCustomerBoostClock' +_cyb_nvml_slots[67] = &__nvmlDeviceGetSupportedMemoryClocks; _cyb_nvml_names[67] = b'nvmlDeviceGetSupportedMemoryClocks' +_cyb_nvml_slots[68] = &__nvmlDeviceGetSupportedGraphicsClocks; _cyb_nvml_names[68] = b'nvmlDeviceGetSupportedGraphicsClocks' +_cyb_nvml_slots[69] = &__nvmlDeviceGetAutoBoostedClocksEnabled; _cyb_nvml_names[69] = b'nvmlDeviceGetAutoBoostedClocksEnabled' +_cyb_nvml_slots[70] = &__nvmlDeviceGetFanSpeed; _cyb_nvml_names[70] = b'nvmlDeviceGetFanSpeed' +_cyb_nvml_slots[71] = &__nvmlDeviceGetFanSpeed_v2; _cyb_nvml_names[71] = b'nvmlDeviceGetFanSpeed_v2' +_cyb_nvml_slots[72] = &__nvmlDeviceGetFanSpeedRPM; _cyb_nvml_names[72] = b'nvmlDeviceGetFanSpeedRPM' +_cyb_nvml_slots[73] = &__nvmlDeviceGetTargetFanSpeed; _cyb_nvml_names[73] = b'nvmlDeviceGetTargetFanSpeed' +_cyb_nvml_slots[74] = &__nvmlDeviceGetMinMaxFanSpeed; _cyb_nvml_names[74] = b'nvmlDeviceGetMinMaxFanSpeed' +_cyb_nvml_slots[75] = &__nvmlDeviceGetFanControlPolicy_v2; _cyb_nvml_names[75] = b'nvmlDeviceGetFanControlPolicy_v2' +_cyb_nvml_slots[76] = &__nvmlDeviceGetNumFans; _cyb_nvml_names[76] = b'nvmlDeviceGetNumFans' +_cyb_nvml_slots[77] = &__nvmlDeviceGetCoolerInfo; _cyb_nvml_names[77] = b'nvmlDeviceGetCoolerInfo' +_cyb_nvml_slots[78] = &__nvmlDeviceGetTemperatureV; _cyb_nvml_names[78] = b'nvmlDeviceGetTemperatureV' +_cyb_nvml_slots[79] = &__nvmlDeviceGetTemperatureThreshold; _cyb_nvml_names[79] = b'nvmlDeviceGetTemperatureThreshold' +_cyb_nvml_slots[80] = &__nvmlDeviceGetMarginTemperature; _cyb_nvml_names[80] = b'nvmlDeviceGetMarginTemperature' +_cyb_nvml_slots[81] = &__nvmlDeviceGetThermalSettings; _cyb_nvml_names[81] = b'nvmlDeviceGetThermalSettings' +_cyb_nvml_slots[82] = &__nvmlDeviceGetPerformanceState; _cyb_nvml_names[82] = b'nvmlDeviceGetPerformanceState' +_cyb_nvml_slots[83] = &__nvmlDeviceGetCurrentClocksEventReasons; _cyb_nvml_names[83] = b'nvmlDeviceGetCurrentClocksEventReasons' +_cyb_nvml_slots[84] = &__nvmlDeviceGetSupportedClocksEventReasons; _cyb_nvml_names[84] = b'nvmlDeviceGetSupportedClocksEventReasons' +_cyb_nvml_slots[85] = &__nvmlDeviceGetPowerState; _cyb_nvml_names[85] = b'nvmlDeviceGetPowerState' +_cyb_nvml_slots[86] = &__nvmlDeviceGetDynamicPstatesInfo; _cyb_nvml_names[86] = b'nvmlDeviceGetDynamicPstatesInfo' +_cyb_nvml_slots[87] = &__nvmlDeviceGetMemClkVfOffset; _cyb_nvml_names[87] = b'nvmlDeviceGetMemClkVfOffset' +_cyb_nvml_slots[88] = &__nvmlDeviceGetMinMaxClockOfPState; _cyb_nvml_names[88] = b'nvmlDeviceGetMinMaxClockOfPState' +_cyb_nvml_slots[89] = &__nvmlDeviceGetSupportedPerformanceStates; _cyb_nvml_names[89] = b'nvmlDeviceGetSupportedPerformanceStates' +_cyb_nvml_slots[90] = &__nvmlDeviceGetGpcClkMinMaxVfOffset; _cyb_nvml_names[90] = b'nvmlDeviceGetGpcClkMinMaxVfOffset' +_cyb_nvml_slots[91] = &__nvmlDeviceGetMemClkMinMaxVfOffset; _cyb_nvml_names[91] = b'nvmlDeviceGetMemClkMinMaxVfOffset' +_cyb_nvml_slots[92] = &__nvmlDeviceGetClockOffsets; _cyb_nvml_names[92] = b'nvmlDeviceGetClockOffsets' +_cyb_nvml_slots[93] = &__nvmlDeviceSetClockOffsets; _cyb_nvml_names[93] = b'nvmlDeviceSetClockOffsets' +_cyb_nvml_slots[94] = &__nvmlDeviceGetPerformanceModes; _cyb_nvml_names[94] = b'nvmlDeviceGetPerformanceModes' +_cyb_nvml_slots[95] = &__nvmlDeviceGetCurrentClockFreqs; _cyb_nvml_names[95] = b'nvmlDeviceGetCurrentClockFreqs' +_cyb_nvml_slots[96] = &__nvmlDeviceGetPowerManagementLimit; _cyb_nvml_names[96] = b'nvmlDeviceGetPowerManagementLimit' +_cyb_nvml_slots[97] = &__nvmlDeviceGetPowerManagementLimitConstraints; _cyb_nvml_names[97] = b'nvmlDeviceGetPowerManagementLimitConstraints' +_cyb_nvml_slots[98] = &__nvmlDeviceGetPowerManagementDefaultLimit; _cyb_nvml_names[98] = b'nvmlDeviceGetPowerManagementDefaultLimit' +_cyb_nvml_slots[99] = &__nvmlDeviceGetPowerUsage; _cyb_nvml_names[99] = b'nvmlDeviceGetPowerUsage' +_cyb_nvml_slots[100] = &__nvmlDeviceGetTotalEnergyConsumption; _cyb_nvml_names[100] = b'nvmlDeviceGetTotalEnergyConsumption' +_cyb_nvml_slots[101] = &__nvmlDeviceGetEnforcedPowerLimit; _cyb_nvml_names[101] = b'nvmlDeviceGetEnforcedPowerLimit' +_cyb_nvml_slots[102] = &__nvmlDeviceGetGpuOperationMode; _cyb_nvml_names[102] = b'nvmlDeviceGetGpuOperationMode' +_cyb_nvml_slots[103] = &__nvmlDeviceGetMemoryInfo_v2; _cyb_nvml_names[103] = b'nvmlDeviceGetMemoryInfo_v2' +_cyb_nvml_slots[104] = &__nvmlDeviceGetComputeMode; _cyb_nvml_names[104] = b'nvmlDeviceGetComputeMode' +_cyb_nvml_slots[105] = &__nvmlDeviceGetCudaComputeCapability; _cyb_nvml_names[105] = b'nvmlDeviceGetCudaComputeCapability' +_cyb_nvml_slots[106] = &__nvmlDeviceGetDramEncryptionMode; _cyb_nvml_names[106] = b'nvmlDeviceGetDramEncryptionMode' +_cyb_nvml_slots[107] = &__nvmlDeviceSetDramEncryptionMode; _cyb_nvml_names[107] = b'nvmlDeviceSetDramEncryptionMode' +_cyb_nvml_slots[108] = &__nvmlDeviceGetEccMode; _cyb_nvml_names[108] = b'nvmlDeviceGetEccMode' +_cyb_nvml_slots[109] = &__nvmlDeviceGetDefaultEccMode; _cyb_nvml_names[109] = b'nvmlDeviceGetDefaultEccMode' +_cyb_nvml_slots[110] = &__nvmlDeviceGetBoardId; _cyb_nvml_names[110] = b'nvmlDeviceGetBoardId' +_cyb_nvml_slots[111] = &__nvmlDeviceGetMultiGpuBoard; _cyb_nvml_names[111] = b'nvmlDeviceGetMultiGpuBoard' +_cyb_nvml_slots[112] = &__nvmlDeviceGetTotalEccErrors; _cyb_nvml_names[112] = b'nvmlDeviceGetTotalEccErrors' +_cyb_nvml_slots[113] = &__nvmlDeviceGetMemoryErrorCounter; _cyb_nvml_names[113] = b'nvmlDeviceGetMemoryErrorCounter' +_cyb_nvml_slots[114] = &__nvmlDeviceGetUtilizationRates; _cyb_nvml_names[114] = b'nvmlDeviceGetUtilizationRates' +_cyb_nvml_slots[115] = &__nvmlDeviceGetEncoderUtilization; _cyb_nvml_names[115] = b'nvmlDeviceGetEncoderUtilization' +_cyb_nvml_slots[116] = &__nvmlDeviceGetEncoderCapacity; _cyb_nvml_names[116] = b'nvmlDeviceGetEncoderCapacity' +_cyb_nvml_slots[117] = &__nvmlDeviceGetEncoderStats; _cyb_nvml_names[117] = b'nvmlDeviceGetEncoderStats' +_cyb_nvml_slots[118] = &__nvmlDeviceGetEncoderSessions; _cyb_nvml_names[118] = b'nvmlDeviceGetEncoderSessions' +_cyb_nvml_slots[119] = &__nvmlDeviceGetDecoderUtilization; _cyb_nvml_names[119] = b'nvmlDeviceGetDecoderUtilization' +_cyb_nvml_slots[120] = &__nvmlDeviceGetJpgUtilization; _cyb_nvml_names[120] = b'nvmlDeviceGetJpgUtilization' +_cyb_nvml_slots[121] = &__nvmlDeviceGetOfaUtilization; _cyb_nvml_names[121] = b'nvmlDeviceGetOfaUtilization' +_cyb_nvml_slots[122] = &__nvmlDeviceGetFBCStats; _cyb_nvml_names[122] = b'nvmlDeviceGetFBCStats' +_cyb_nvml_slots[123] = &__nvmlDeviceGetFBCSessions; _cyb_nvml_names[123] = b'nvmlDeviceGetFBCSessions' +_cyb_nvml_slots[124] = &__nvmlDeviceGetDriverModel_v2; _cyb_nvml_names[124] = b'nvmlDeviceGetDriverModel_v2' +_cyb_nvml_slots[125] = &__nvmlDeviceGetVbiosVersion; _cyb_nvml_names[125] = b'nvmlDeviceGetVbiosVersion' +_cyb_nvml_slots[126] = &__nvmlDeviceGetBridgeChipInfo; _cyb_nvml_names[126] = b'nvmlDeviceGetBridgeChipInfo' +_cyb_nvml_slots[127] = &__nvmlDeviceGetComputeRunningProcesses_v3; _cyb_nvml_names[127] = b'nvmlDeviceGetComputeRunningProcesses_v3' +_cyb_nvml_slots[128] = &__nvmlDeviceGetGraphicsRunningProcesses_v3; _cyb_nvml_names[128] = b'nvmlDeviceGetGraphicsRunningProcesses_v3' +_cyb_nvml_slots[129] = &__nvmlDeviceGetMPSComputeRunningProcesses_v3; _cyb_nvml_names[129] = b'nvmlDeviceGetMPSComputeRunningProcesses_v3' +_cyb_nvml_slots[130] = &__nvmlDeviceGetRunningProcessDetailList; _cyb_nvml_names[130] = b'nvmlDeviceGetRunningProcessDetailList' +_cyb_nvml_slots[131] = &__nvmlDeviceOnSameBoard; _cyb_nvml_names[131] = b'nvmlDeviceOnSameBoard' +_cyb_nvml_slots[132] = &__nvmlDeviceGetAPIRestriction; _cyb_nvml_names[132] = b'nvmlDeviceGetAPIRestriction' +_cyb_nvml_slots[133] = &__nvmlDeviceGetSamples; _cyb_nvml_names[133] = b'nvmlDeviceGetSamples' +_cyb_nvml_slots[134] = &__nvmlDeviceGetBAR1MemoryInfo; _cyb_nvml_names[134] = b'nvmlDeviceGetBAR1MemoryInfo' +_cyb_nvml_slots[135] = &__nvmlDeviceGetIrqNum; _cyb_nvml_names[135] = b'nvmlDeviceGetIrqNum' +_cyb_nvml_slots[136] = &__nvmlDeviceGetNumGpuCores; _cyb_nvml_names[136] = b'nvmlDeviceGetNumGpuCores' +_cyb_nvml_slots[137] = &__nvmlDeviceGetPowerSource; _cyb_nvml_names[137] = b'nvmlDeviceGetPowerSource' +_cyb_nvml_slots[138] = &__nvmlDeviceGetMemoryBusWidth; _cyb_nvml_names[138] = b'nvmlDeviceGetMemoryBusWidth' +_cyb_nvml_slots[139] = &__nvmlDeviceGetPcieLinkMaxSpeed; _cyb_nvml_names[139] = b'nvmlDeviceGetPcieLinkMaxSpeed' +_cyb_nvml_slots[140] = &__nvmlDeviceGetPcieSpeed; _cyb_nvml_names[140] = b'nvmlDeviceGetPcieSpeed' +_cyb_nvml_slots[141] = &__nvmlDeviceGetAdaptiveClockInfoStatus; _cyb_nvml_names[141] = b'nvmlDeviceGetAdaptiveClockInfoStatus' +_cyb_nvml_slots[142] = &__nvmlDeviceGetBusType; _cyb_nvml_names[142] = b'nvmlDeviceGetBusType' +_cyb_nvml_slots[143] = &__nvmlDeviceGetGpuFabricInfoV; _cyb_nvml_names[143] = b'nvmlDeviceGetGpuFabricInfoV' +_cyb_nvml_slots[144] = &__nvmlSystemGetConfComputeCapabilities; _cyb_nvml_names[144] = b'nvmlSystemGetConfComputeCapabilities' +_cyb_nvml_slots[145] = &__nvmlSystemGetConfComputeState; _cyb_nvml_names[145] = b'nvmlSystemGetConfComputeState' +_cyb_nvml_slots[146] = &__nvmlDeviceGetConfComputeMemSizeInfo; _cyb_nvml_names[146] = b'nvmlDeviceGetConfComputeMemSizeInfo' +_cyb_nvml_slots[147] = &__nvmlSystemGetConfComputeGpusReadyState; _cyb_nvml_names[147] = b'nvmlSystemGetConfComputeGpusReadyState' +_cyb_nvml_slots[148] = &__nvmlDeviceGetConfComputeProtectedMemoryUsage; _cyb_nvml_names[148] = b'nvmlDeviceGetConfComputeProtectedMemoryUsage' +_cyb_nvml_slots[149] = &__nvmlDeviceGetConfComputeGpuCertificate; _cyb_nvml_names[149] = b'nvmlDeviceGetConfComputeGpuCertificate' +_cyb_nvml_slots[150] = &__nvmlDeviceGetConfComputeGpuAttestationReport; _cyb_nvml_names[150] = b'nvmlDeviceGetConfComputeGpuAttestationReport' +_cyb_nvml_slots[151] = &__nvmlSystemGetConfComputeKeyRotationThresholdInfo; _cyb_nvml_names[151] = b'nvmlSystemGetConfComputeKeyRotationThresholdInfo' +_cyb_nvml_slots[152] = &__nvmlDeviceSetConfComputeUnprotectedMemSize; _cyb_nvml_names[152] = b'nvmlDeviceSetConfComputeUnprotectedMemSize' +_cyb_nvml_slots[153] = &__nvmlSystemSetConfComputeGpusReadyState; _cyb_nvml_names[153] = b'nvmlSystemSetConfComputeGpusReadyState' +_cyb_nvml_slots[154] = &__nvmlSystemSetConfComputeKeyRotationThresholdInfo; _cyb_nvml_names[154] = b'nvmlSystemSetConfComputeKeyRotationThresholdInfo' +_cyb_nvml_slots[155] = &__nvmlSystemGetConfComputeSettings; _cyb_nvml_names[155] = b'nvmlSystemGetConfComputeSettings' +_cyb_nvml_slots[156] = &__nvmlDeviceGetGspFirmwareVersion; _cyb_nvml_names[156] = b'nvmlDeviceGetGspFirmwareVersion' +_cyb_nvml_slots[157] = &__nvmlDeviceGetGspFirmwareMode; _cyb_nvml_names[157] = b'nvmlDeviceGetGspFirmwareMode' +_cyb_nvml_slots[158] = &__nvmlDeviceGetSramEccErrorStatus; _cyb_nvml_names[158] = b'nvmlDeviceGetSramEccErrorStatus' +_cyb_nvml_slots[159] = &__nvmlDeviceGetAccountingMode; _cyb_nvml_names[159] = b'nvmlDeviceGetAccountingMode' +_cyb_nvml_slots[160] = &__nvmlDeviceGetAccountingStats; _cyb_nvml_names[160] = b'nvmlDeviceGetAccountingStats' +_cyb_nvml_slots[161] = &__nvmlDeviceGetAccountingPids; _cyb_nvml_names[161] = b'nvmlDeviceGetAccountingPids' +_cyb_nvml_slots[162] = &__nvmlDeviceGetAccountingBufferSize; _cyb_nvml_names[162] = b'nvmlDeviceGetAccountingBufferSize' +_cyb_nvml_slots[163] = &__nvmlDeviceGetRetiredPages; _cyb_nvml_names[163] = b'nvmlDeviceGetRetiredPages' +_cyb_nvml_slots[164] = &__nvmlDeviceGetRetiredPages_v2; _cyb_nvml_names[164] = b'nvmlDeviceGetRetiredPages_v2' +_cyb_nvml_slots[165] = &__nvmlDeviceGetRetiredPagesPendingStatus; _cyb_nvml_names[165] = b'nvmlDeviceGetRetiredPagesPendingStatus' +_cyb_nvml_slots[166] = &__nvmlDeviceGetRemappedRows; _cyb_nvml_names[166] = b'nvmlDeviceGetRemappedRows' +_cyb_nvml_slots[167] = &__nvmlDeviceGetRowRemapperHistogram; _cyb_nvml_names[167] = b'nvmlDeviceGetRowRemapperHistogram' +_cyb_nvml_slots[168] = &__nvmlDeviceGetArchitecture; _cyb_nvml_names[168] = b'nvmlDeviceGetArchitecture' +_cyb_nvml_slots[169] = &__nvmlDeviceGetClkMonStatus; _cyb_nvml_names[169] = b'nvmlDeviceGetClkMonStatus' +_cyb_nvml_slots[170] = &__nvmlDeviceGetProcessUtilization; _cyb_nvml_names[170] = b'nvmlDeviceGetProcessUtilization' +_cyb_nvml_slots[171] = &__nvmlDeviceGetProcessesUtilizationInfo; _cyb_nvml_names[171] = b'nvmlDeviceGetProcessesUtilizationInfo' +_cyb_nvml_slots[172] = &__nvmlDeviceGetPlatformInfo; _cyb_nvml_names[172] = b'nvmlDeviceGetPlatformInfo' +_cyb_nvml_slots[173] = &__nvmlUnitSetLedState; _cyb_nvml_names[173] = b'nvmlUnitSetLedState' +_cyb_nvml_slots[174] = &__nvmlDeviceSetPersistenceMode; _cyb_nvml_names[174] = b'nvmlDeviceSetPersistenceMode' +_cyb_nvml_slots[175] = &__nvmlDeviceSetComputeMode; _cyb_nvml_names[175] = b'nvmlDeviceSetComputeMode' +_cyb_nvml_slots[176] = &__nvmlDeviceSetEccMode; _cyb_nvml_names[176] = b'nvmlDeviceSetEccMode' +_cyb_nvml_slots[177] = &__nvmlDeviceClearEccErrorCounts; _cyb_nvml_names[177] = b'nvmlDeviceClearEccErrorCounts' +_cyb_nvml_slots[178] = &__nvmlDeviceSetDriverModel; _cyb_nvml_names[178] = b'nvmlDeviceSetDriverModel' +_cyb_nvml_slots[179] = &__nvmlDeviceSetGpuLockedClocks; _cyb_nvml_names[179] = b'nvmlDeviceSetGpuLockedClocks' +_cyb_nvml_slots[180] = &__nvmlDeviceResetGpuLockedClocks; _cyb_nvml_names[180] = b'nvmlDeviceResetGpuLockedClocks' +_cyb_nvml_slots[181] = &__nvmlDeviceSetMemoryLockedClocks; _cyb_nvml_names[181] = b'nvmlDeviceSetMemoryLockedClocks' +_cyb_nvml_slots[182] = &__nvmlDeviceResetMemoryLockedClocks; _cyb_nvml_names[182] = b'nvmlDeviceResetMemoryLockedClocks' +_cyb_nvml_slots[183] = &__nvmlDeviceSetAutoBoostedClocksEnabled; _cyb_nvml_names[183] = b'nvmlDeviceSetAutoBoostedClocksEnabled' +_cyb_nvml_slots[184] = &__nvmlDeviceSetDefaultAutoBoostedClocksEnabled; _cyb_nvml_names[184] = b'nvmlDeviceSetDefaultAutoBoostedClocksEnabled' +_cyb_nvml_slots[185] = &__nvmlDeviceSetDefaultFanSpeed_v2; _cyb_nvml_names[185] = b'nvmlDeviceSetDefaultFanSpeed_v2' +_cyb_nvml_slots[186] = &__nvmlDeviceSetFanControlPolicy; _cyb_nvml_names[186] = b'nvmlDeviceSetFanControlPolicy' +_cyb_nvml_slots[187] = &__nvmlDeviceSetTemperatureThreshold; _cyb_nvml_names[187] = b'nvmlDeviceSetTemperatureThreshold' +_cyb_nvml_slots[188] = &__nvmlDeviceSetGpuOperationMode; _cyb_nvml_names[188] = b'nvmlDeviceSetGpuOperationMode' +_cyb_nvml_slots[189] = &__nvmlDeviceSetAPIRestriction; _cyb_nvml_names[189] = b'nvmlDeviceSetAPIRestriction' +_cyb_nvml_slots[190] = &__nvmlDeviceSetFanSpeed_v2; _cyb_nvml_names[190] = b'nvmlDeviceSetFanSpeed_v2' +_cyb_nvml_slots[191] = &__nvmlDeviceSetAccountingMode; _cyb_nvml_names[191] = b'nvmlDeviceSetAccountingMode' +_cyb_nvml_slots[192] = &__nvmlDeviceClearAccountingPids; _cyb_nvml_names[192] = b'nvmlDeviceClearAccountingPids' +_cyb_nvml_slots[193] = &__nvmlDeviceSetPowerManagementLimit_v2; _cyb_nvml_names[193] = b'nvmlDeviceSetPowerManagementLimit_v2' +_cyb_nvml_slots[194] = &__nvmlDeviceGetNvLinkState; _cyb_nvml_names[194] = b'nvmlDeviceGetNvLinkState' +_cyb_nvml_slots[195] = &__nvmlDeviceGetNvLinkVersion; _cyb_nvml_names[195] = b'nvmlDeviceGetNvLinkVersion' +_cyb_nvml_slots[196] = &__nvmlDeviceGetNvLinkCapability; _cyb_nvml_names[196] = b'nvmlDeviceGetNvLinkCapability' +_cyb_nvml_slots[197] = &__nvmlDeviceGetNvLinkRemotePciInfo_v2; _cyb_nvml_names[197] = b'nvmlDeviceGetNvLinkRemotePciInfo_v2' +_cyb_nvml_slots[198] = &__nvmlDeviceGetNvLinkErrorCounter; _cyb_nvml_names[198] = b'nvmlDeviceGetNvLinkErrorCounter' +_cyb_nvml_slots[199] = &__nvmlDeviceResetNvLinkErrorCounters; _cyb_nvml_names[199] = b'nvmlDeviceResetNvLinkErrorCounters' +_cyb_nvml_slots[200] = &__nvmlDeviceGetNvLinkRemoteDeviceType; _cyb_nvml_names[200] = b'nvmlDeviceGetNvLinkRemoteDeviceType' +_cyb_nvml_slots[201] = &__nvmlDeviceSetNvLinkDeviceLowPowerThreshold; _cyb_nvml_names[201] = b'nvmlDeviceSetNvLinkDeviceLowPowerThreshold' +_cyb_nvml_slots[202] = &__nvmlSystemSetNvlinkBwMode; _cyb_nvml_names[202] = b'nvmlSystemSetNvlinkBwMode' +_cyb_nvml_slots[203] = &__nvmlSystemGetNvlinkBwMode; _cyb_nvml_names[203] = b'nvmlSystemGetNvlinkBwMode' +_cyb_nvml_slots[204] = &__nvmlDeviceGetNvlinkSupportedBwModes; _cyb_nvml_names[204] = b'nvmlDeviceGetNvlinkSupportedBwModes' +_cyb_nvml_slots[205] = &__nvmlDeviceGetNvlinkBwMode; _cyb_nvml_names[205] = b'nvmlDeviceGetNvlinkBwMode' +_cyb_nvml_slots[206] = &__nvmlDeviceSetNvlinkBwMode; _cyb_nvml_names[206] = b'nvmlDeviceSetNvlinkBwMode' +_cyb_nvml_slots[207] = &__nvmlEventSetCreate; _cyb_nvml_names[207] = b'nvmlEventSetCreate' +_cyb_nvml_slots[208] = &__nvmlDeviceRegisterEvents; _cyb_nvml_names[208] = b'nvmlDeviceRegisterEvents' +_cyb_nvml_slots[209] = &__nvmlDeviceGetSupportedEventTypes; _cyb_nvml_names[209] = b'nvmlDeviceGetSupportedEventTypes' +_cyb_nvml_slots[210] = &__nvmlEventSetWait_v2; _cyb_nvml_names[210] = b'nvmlEventSetWait_v2' +_cyb_nvml_slots[211] = &__nvmlEventSetFree; _cyb_nvml_names[211] = b'nvmlEventSetFree' +_cyb_nvml_slots[212] = &__nvmlSystemEventSetCreate; _cyb_nvml_names[212] = b'nvmlSystemEventSetCreate' +_cyb_nvml_slots[213] = &__nvmlSystemEventSetFree; _cyb_nvml_names[213] = b'nvmlSystemEventSetFree' +_cyb_nvml_slots[214] = &__nvmlSystemRegisterEvents; _cyb_nvml_names[214] = b'nvmlSystemRegisterEvents' +_cyb_nvml_slots[215] = &__nvmlSystemEventSetWait; _cyb_nvml_names[215] = b'nvmlSystemEventSetWait' +_cyb_nvml_slots[216] = &__nvmlDeviceModifyDrainState; _cyb_nvml_names[216] = b'nvmlDeviceModifyDrainState' +_cyb_nvml_slots[217] = &__nvmlDeviceQueryDrainState; _cyb_nvml_names[217] = b'nvmlDeviceQueryDrainState' +_cyb_nvml_slots[218] = &__nvmlDeviceRemoveGpu_v2; _cyb_nvml_names[218] = b'nvmlDeviceRemoveGpu_v2' +_cyb_nvml_slots[219] = &__nvmlDeviceDiscoverGpus; _cyb_nvml_names[219] = b'nvmlDeviceDiscoverGpus' +_cyb_nvml_slots[220] = &__nvmlDeviceGetFieldValues; _cyb_nvml_names[220] = b'nvmlDeviceGetFieldValues' +_cyb_nvml_slots[221] = &__nvmlDeviceClearFieldValues; _cyb_nvml_names[221] = b'nvmlDeviceClearFieldValues' +_cyb_nvml_slots[222] = &__nvmlDeviceGetVirtualizationMode; _cyb_nvml_names[222] = b'nvmlDeviceGetVirtualizationMode' +_cyb_nvml_slots[223] = &__nvmlDeviceGetHostVgpuMode; _cyb_nvml_names[223] = b'nvmlDeviceGetHostVgpuMode' +_cyb_nvml_slots[224] = &__nvmlDeviceSetVirtualizationMode; _cyb_nvml_names[224] = b'nvmlDeviceSetVirtualizationMode' +_cyb_nvml_slots[225] = &__nvmlDeviceGetVgpuHeterogeneousMode; _cyb_nvml_names[225] = b'nvmlDeviceGetVgpuHeterogeneousMode' +_cyb_nvml_slots[226] = &__nvmlDeviceSetVgpuHeterogeneousMode; _cyb_nvml_names[226] = b'nvmlDeviceSetVgpuHeterogeneousMode' +_cyb_nvml_slots[227] = &__nvmlVgpuInstanceGetPlacementId; _cyb_nvml_names[227] = b'nvmlVgpuInstanceGetPlacementId' +_cyb_nvml_slots[228] = &__nvmlDeviceGetVgpuTypeSupportedPlacements; _cyb_nvml_names[228] = b'nvmlDeviceGetVgpuTypeSupportedPlacements' +_cyb_nvml_slots[229] = &__nvmlDeviceGetVgpuTypeCreatablePlacements; _cyb_nvml_names[229] = b'nvmlDeviceGetVgpuTypeCreatablePlacements' +_cyb_nvml_slots[230] = &__nvmlVgpuTypeGetGspHeapSize; _cyb_nvml_names[230] = b'nvmlVgpuTypeGetGspHeapSize' +_cyb_nvml_slots[231] = &__nvmlVgpuTypeGetFbReservation; _cyb_nvml_names[231] = b'nvmlVgpuTypeGetFbReservation' +_cyb_nvml_slots[232] = &__nvmlVgpuInstanceGetRuntimeStateSize; _cyb_nvml_names[232] = b'nvmlVgpuInstanceGetRuntimeStateSize' +_cyb_nvml_slots[233] = &__nvmlDeviceSetVgpuCapabilities; _cyb_nvml_names[233] = b'nvmlDeviceSetVgpuCapabilities' +_cyb_nvml_slots[234] = &__nvmlDeviceGetGridLicensableFeatures_v4; _cyb_nvml_names[234] = b'nvmlDeviceGetGridLicensableFeatures_v4' +_cyb_nvml_slots[235] = &__nvmlGetVgpuDriverCapabilities; _cyb_nvml_names[235] = b'nvmlGetVgpuDriverCapabilities' +_cyb_nvml_slots[236] = &__nvmlDeviceGetVgpuCapabilities; _cyb_nvml_names[236] = b'nvmlDeviceGetVgpuCapabilities' +_cyb_nvml_slots[237] = &__nvmlDeviceGetSupportedVgpus; _cyb_nvml_names[237] = b'nvmlDeviceGetSupportedVgpus' +_cyb_nvml_slots[238] = &__nvmlDeviceGetCreatableVgpus; _cyb_nvml_names[238] = b'nvmlDeviceGetCreatableVgpus' +_cyb_nvml_slots[239] = &__nvmlVgpuTypeGetClass; _cyb_nvml_names[239] = b'nvmlVgpuTypeGetClass' +_cyb_nvml_slots[240] = &__nvmlVgpuTypeGetName; _cyb_nvml_names[240] = b'nvmlVgpuTypeGetName' +_cyb_nvml_slots[241] = &__nvmlVgpuTypeGetGpuInstanceProfileId; _cyb_nvml_names[241] = b'nvmlVgpuTypeGetGpuInstanceProfileId' +_cyb_nvml_slots[242] = &__nvmlVgpuTypeGetDeviceID; _cyb_nvml_names[242] = b'nvmlVgpuTypeGetDeviceID' +_cyb_nvml_slots[243] = &__nvmlVgpuTypeGetFramebufferSize; _cyb_nvml_names[243] = b'nvmlVgpuTypeGetFramebufferSize' +_cyb_nvml_slots[244] = &__nvmlVgpuTypeGetNumDisplayHeads; _cyb_nvml_names[244] = b'nvmlVgpuTypeGetNumDisplayHeads' +_cyb_nvml_slots[245] = &__nvmlVgpuTypeGetResolution; _cyb_nvml_names[245] = b'nvmlVgpuTypeGetResolution' +_cyb_nvml_slots[246] = &__nvmlVgpuTypeGetLicense; _cyb_nvml_names[246] = b'nvmlVgpuTypeGetLicense' +_cyb_nvml_slots[247] = &__nvmlVgpuTypeGetFrameRateLimit; _cyb_nvml_names[247] = b'nvmlVgpuTypeGetFrameRateLimit' +_cyb_nvml_slots[248] = &__nvmlVgpuTypeGetMaxInstances; _cyb_nvml_names[248] = b'nvmlVgpuTypeGetMaxInstances' +_cyb_nvml_slots[249] = &__nvmlVgpuTypeGetMaxInstancesPerVm; _cyb_nvml_names[249] = b'nvmlVgpuTypeGetMaxInstancesPerVm' +_cyb_nvml_slots[250] = &__nvmlVgpuTypeGetBAR1Info; _cyb_nvml_names[250] = b'nvmlVgpuTypeGetBAR1Info' +_cyb_nvml_slots[251] = &__nvmlDeviceGetActiveVgpus; _cyb_nvml_names[251] = b'nvmlDeviceGetActiveVgpus' +_cyb_nvml_slots[252] = &__nvmlVgpuInstanceGetVmID; _cyb_nvml_names[252] = b'nvmlVgpuInstanceGetVmID' +_cyb_nvml_slots[253] = &__nvmlVgpuInstanceGetUUID; _cyb_nvml_names[253] = b'nvmlVgpuInstanceGetUUID' +_cyb_nvml_slots[254] = &__nvmlVgpuInstanceGetVmDriverVersion; _cyb_nvml_names[254] = b'nvmlVgpuInstanceGetVmDriverVersion' +_cyb_nvml_slots[255] = &__nvmlVgpuInstanceGetFbUsage; _cyb_nvml_names[255] = b'nvmlVgpuInstanceGetFbUsage' +_cyb_nvml_slots[256] = &__nvmlVgpuInstanceGetLicenseStatus; _cyb_nvml_names[256] = b'nvmlVgpuInstanceGetLicenseStatus' +_cyb_nvml_slots[257] = &__nvmlVgpuInstanceGetType; _cyb_nvml_names[257] = b'nvmlVgpuInstanceGetType' +_cyb_nvml_slots[258] = &__nvmlVgpuInstanceGetFrameRateLimit; _cyb_nvml_names[258] = b'nvmlVgpuInstanceGetFrameRateLimit' +_cyb_nvml_slots[259] = &__nvmlVgpuInstanceGetEccMode; _cyb_nvml_names[259] = b'nvmlVgpuInstanceGetEccMode' +_cyb_nvml_slots[260] = &__nvmlVgpuInstanceGetEncoderCapacity; _cyb_nvml_names[260] = b'nvmlVgpuInstanceGetEncoderCapacity' +_cyb_nvml_slots[261] = &__nvmlVgpuInstanceSetEncoderCapacity; _cyb_nvml_names[261] = b'nvmlVgpuInstanceSetEncoderCapacity' +_cyb_nvml_slots[262] = &__nvmlVgpuInstanceGetEncoderStats; _cyb_nvml_names[262] = b'nvmlVgpuInstanceGetEncoderStats' +_cyb_nvml_slots[263] = &__nvmlVgpuInstanceGetEncoderSessions; _cyb_nvml_names[263] = b'nvmlVgpuInstanceGetEncoderSessions' +_cyb_nvml_slots[264] = &__nvmlVgpuInstanceGetFBCStats; _cyb_nvml_names[264] = b'nvmlVgpuInstanceGetFBCStats' +_cyb_nvml_slots[265] = &__nvmlVgpuInstanceGetFBCSessions; _cyb_nvml_names[265] = b'nvmlVgpuInstanceGetFBCSessions' +_cyb_nvml_slots[266] = &__nvmlVgpuInstanceGetGpuInstanceId; _cyb_nvml_names[266] = b'nvmlVgpuInstanceGetGpuInstanceId' +_cyb_nvml_slots[267] = &__nvmlVgpuInstanceGetGpuPciId; _cyb_nvml_names[267] = b'nvmlVgpuInstanceGetGpuPciId' +_cyb_nvml_slots[268] = &__nvmlVgpuTypeGetCapabilities; _cyb_nvml_names[268] = b'nvmlVgpuTypeGetCapabilities' +_cyb_nvml_slots[269] = &__nvmlVgpuInstanceGetMdevUUID; _cyb_nvml_names[269] = b'nvmlVgpuInstanceGetMdevUUID' +_cyb_nvml_slots[270] = &__nvmlGpuInstanceGetCreatableVgpus; _cyb_nvml_names[270] = b'nvmlGpuInstanceGetCreatableVgpus' +_cyb_nvml_slots[271] = &__nvmlVgpuTypeGetMaxInstancesPerGpuInstance; _cyb_nvml_names[271] = b'nvmlVgpuTypeGetMaxInstancesPerGpuInstance' +_cyb_nvml_slots[272] = &__nvmlGpuInstanceGetActiveVgpus; _cyb_nvml_names[272] = b'nvmlGpuInstanceGetActiveVgpus' +_cyb_nvml_slots[273] = &__nvmlGpuInstanceSetVgpuSchedulerState; _cyb_nvml_names[273] = b'nvmlGpuInstanceSetVgpuSchedulerState' +_cyb_nvml_slots[274] = &__nvmlGpuInstanceGetVgpuSchedulerState; _cyb_nvml_names[274] = b'nvmlGpuInstanceGetVgpuSchedulerState' +_cyb_nvml_slots[275] = &__nvmlGpuInstanceGetVgpuSchedulerLog; _cyb_nvml_names[275] = b'nvmlGpuInstanceGetVgpuSchedulerLog' +_cyb_nvml_slots[276] = &__nvmlGpuInstanceGetVgpuTypeCreatablePlacements; _cyb_nvml_names[276] = b'nvmlGpuInstanceGetVgpuTypeCreatablePlacements' +_cyb_nvml_slots[277] = &__nvmlGpuInstanceGetVgpuHeterogeneousMode; _cyb_nvml_names[277] = b'nvmlGpuInstanceGetVgpuHeterogeneousMode' +_cyb_nvml_slots[278] = &__nvmlGpuInstanceSetVgpuHeterogeneousMode; _cyb_nvml_names[278] = b'nvmlGpuInstanceSetVgpuHeterogeneousMode' +_cyb_nvml_slots[279] = &__nvmlVgpuInstanceGetMetadata; _cyb_nvml_names[279] = b'nvmlVgpuInstanceGetMetadata' +_cyb_nvml_slots[280] = &__nvmlDeviceGetVgpuMetadata; _cyb_nvml_names[280] = b'nvmlDeviceGetVgpuMetadata' +_cyb_nvml_slots[281] = &__nvmlGetVgpuCompatibility; _cyb_nvml_names[281] = b'nvmlGetVgpuCompatibility' +_cyb_nvml_slots[282] = &__nvmlDeviceGetPgpuMetadataString; _cyb_nvml_names[282] = b'nvmlDeviceGetPgpuMetadataString' +_cyb_nvml_slots[283] = &__nvmlDeviceGetVgpuSchedulerLog; _cyb_nvml_names[283] = b'nvmlDeviceGetVgpuSchedulerLog' +_cyb_nvml_slots[284] = &__nvmlDeviceGetVgpuSchedulerState; _cyb_nvml_names[284] = b'nvmlDeviceGetVgpuSchedulerState' +_cyb_nvml_slots[285] = &__nvmlDeviceGetVgpuSchedulerCapabilities; _cyb_nvml_names[285] = b'nvmlDeviceGetVgpuSchedulerCapabilities' +_cyb_nvml_slots[286] = &__nvmlDeviceSetVgpuSchedulerState; _cyb_nvml_names[286] = b'nvmlDeviceSetVgpuSchedulerState' +_cyb_nvml_slots[287] = &__nvmlGetVgpuVersion; _cyb_nvml_names[287] = b'nvmlGetVgpuVersion' +_cyb_nvml_slots[288] = &__nvmlSetVgpuVersion; _cyb_nvml_names[288] = b'nvmlSetVgpuVersion' +_cyb_nvml_slots[289] = &__nvmlDeviceGetVgpuUtilization; _cyb_nvml_names[289] = b'nvmlDeviceGetVgpuUtilization' +_cyb_nvml_slots[290] = &__nvmlDeviceGetVgpuInstancesUtilizationInfo; _cyb_nvml_names[290] = b'nvmlDeviceGetVgpuInstancesUtilizationInfo' +_cyb_nvml_slots[291] = &__nvmlDeviceGetVgpuProcessUtilization; _cyb_nvml_names[291] = b'nvmlDeviceGetVgpuProcessUtilization' +_cyb_nvml_slots[292] = &__nvmlDeviceGetVgpuProcessesUtilizationInfo; _cyb_nvml_names[292] = b'nvmlDeviceGetVgpuProcessesUtilizationInfo' +_cyb_nvml_slots[293] = &__nvmlVgpuInstanceGetAccountingMode; _cyb_nvml_names[293] = b'nvmlVgpuInstanceGetAccountingMode' +_cyb_nvml_slots[294] = &__nvmlVgpuInstanceGetAccountingPids; _cyb_nvml_names[294] = b'nvmlVgpuInstanceGetAccountingPids' +_cyb_nvml_slots[295] = &__nvmlVgpuInstanceGetAccountingStats; _cyb_nvml_names[295] = b'nvmlVgpuInstanceGetAccountingStats' +_cyb_nvml_slots[296] = &__nvmlVgpuInstanceClearAccountingPids; _cyb_nvml_names[296] = b'nvmlVgpuInstanceClearAccountingPids' +_cyb_nvml_slots[297] = &__nvmlVgpuInstanceGetLicenseInfo_v2; _cyb_nvml_names[297] = b'nvmlVgpuInstanceGetLicenseInfo_v2' +_cyb_nvml_slots[298] = &__nvmlGetExcludedDeviceCount; _cyb_nvml_names[298] = b'nvmlGetExcludedDeviceCount' +_cyb_nvml_slots[299] = &__nvmlGetExcludedDeviceInfoByIndex; _cyb_nvml_names[299] = b'nvmlGetExcludedDeviceInfoByIndex' +_cyb_nvml_slots[300] = &__nvmlDeviceSetMigMode; _cyb_nvml_names[300] = b'nvmlDeviceSetMigMode' +_cyb_nvml_slots[301] = &__nvmlDeviceGetMigMode; _cyb_nvml_names[301] = b'nvmlDeviceGetMigMode' +_cyb_nvml_slots[302] = &__nvmlDeviceGetGpuInstanceProfileInfoV; _cyb_nvml_names[302] = b'nvmlDeviceGetGpuInstanceProfileInfoV' +_cyb_nvml_slots[303] = &__nvmlDeviceGetGpuInstancePossiblePlacements_v2; _cyb_nvml_names[303] = b'nvmlDeviceGetGpuInstancePossiblePlacements_v2' +_cyb_nvml_slots[304] = &__nvmlDeviceGetGpuInstanceRemainingCapacity; _cyb_nvml_names[304] = b'nvmlDeviceGetGpuInstanceRemainingCapacity' +_cyb_nvml_slots[305] = &__nvmlDeviceCreateGpuInstance; _cyb_nvml_names[305] = b'nvmlDeviceCreateGpuInstance' +_cyb_nvml_slots[306] = &__nvmlDeviceCreateGpuInstanceWithPlacement; _cyb_nvml_names[306] = b'nvmlDeviceCreateGpuInstanceWithPlacement' +_cyb_nvml_slots[307] = &__nvmlGpuInstanceDestroy; _cyb_nvml_names[307] = b'nvmlGpuInstanceDestroy' +_cyb_nvml_slots[308] = &__nvmlDeviceGetGpuInstances; _cyb_nvml_names[308] = b'nvmlDeviceGetGpuInstances' +_cyb_nvml_slots[309] = &__nvmlDeviceGetGpuInstanceById; _cyb_nvml_names[309] = b'nvmlDeviceGetGpuInstanceById' +_cyb_nvml_slots[310] = &__nvmlGpuInstanceGetInfo; _cyb_nvml_names[310] = b'nvmlGpuInstanceGetInfo' +_cyb_nvml_slots[311] = &__nvmlGpuInstanceGetComputeInstanceProfileInfoV; _cyb_nvml_names[311] = b'nvmlGpuInstanceGetComputeInstanceProfileInfoV' +_cyb_nvml_slots[312] = &__nvmlGpuInstanceGetComputeInstanceRemainingCapacity; _cyb_nvml_names[312] = b'nvmlGpuInstanceGetComputeInstanceRemainingCapacity' +_cyb_nvml_slots[313] = &__nvmlGpuInstanceGetComputeInstancePossiblePlacements; _cyb_nvml_names[313] = b'nvmlGpuInstanceGetComputeInstancePossiblePlacements' +_cyb_nvml_slots[314] = &__nvmlGpuInstanceCreateComputeInstance; _cyb_nvml_names[314] = b'nvmlGpuInstanceCreateComputeInstance' +_cyb_nvml_slots[315] = &__nvmlGpuInstanceCreateComputeInstanceWithPlacement; _cyb_nvml_names[315] = b'nvmlGpuInstanceCreateComputeInstanceWithPlacement' +_cyb_nvml_slots[316] = &__nvmlComputeInstanceDestroy; _cyb_nvml_names[316] = b'nvmlComputeInstanceDestroy' +_cyb_nvml_slots[317] = &__nvmlGpuInstanceGetComputeInstances; _cyb_nvml_names[317] = b'nvmlGpuInstanceGetComputeInstances' +_cyb_nvml_slots[318] = &__nvmlGpuInstanceGetComputeInstanceById; _cyb_nvml_names[318] = b'nvmlGpuInstanceGetComputeInstanceById' +_cyb_nvml_slots[319] = &__nvmlComputeInstanceGetInfo_v2; _cyb_nvml_names[319] = b'nvmlComputeInstanceGetInfo_v2' +_cyb_nvml_slots[320] = &__nvmlDeviceIsMigDeviceHandle; _cyb_nvml_names[320] = b'nvmlDeviceIsMigDeviceHandle' +_cyb_nvml_slots[321] = &__nvmlDeviceGetGpuInstanceId; _cyb_nvml_names[321] = b'nvmlDeviceGetGpuInstanceId' +_cyb_nvml_slots[322] = &__nvmlDeviceGetComputeInstanceId; _cyb_nvml_names[322] = b'nvmlDeviceGetComputeInstanceId' +_cyb_nvml_slots[323] = &__nvmlDeviceGetMaxMigDeviceCount; _cyb_nvml_names[323] = b'nvmlDeviceGetMaxMigDeviceCount' +_cyb_nvml_slots[324] = &__nvmlDeviceGetMigDeviceHandleByIndex; _cyb_nvml_names[324] = b'nvmlDeviceGetMigDeviceHandleByIndex' +_cyb_nvml_slots[325] = &__nvmlDeviceGetDeviceHandleFromMigDeviceHandle; _cyb_nvml_names[325] = b'nvmlDeviceGetDeviceHandleFromMigDeviceHandle' +_cyb_nvml_slots[326] = &__nvmlDeviceGetCapabilities; _cyb_nvml_names[326] = b'nvmlDeviceGetCapabilities' +_cyb_nvml_slots[327] = &__nvmlDevicePowerSmoothingActivatePresetProfile; _cyb_nvml_names[327] = b'nvmlDevicePowerSmoothingActivatePresetProfile' +_cyb_nvml_slots[328] = &__nvmlDevicePowerSmoothingUpdatePresetProfileParam; _cyb_nvml_names[328] = b'nvmlDevicePowerSmoothingUpdatePresetProfileParam' +_cyb_nvml_slots[329] = &__nvmlDevicePowerSmoothingSetState; _cyb_nvml_names[329] = b'nvmlDevicePowerSmoothingSetState' +_cyb_nvml_slots[330] = &__nvmlDeviceGetAddressingMode; _cyb_nvml_names[330] = b'nvmlDeviceGetAddressingMode' +_cyb_nvml_slots[331] = &__nvmlDeviceGetRepairStatus; _cyb_nvml_names[331] = b'nvmlDeviceGetRepairStatus' +_cyb_nvml_slots[332] = &__nvmlDeviceGetPowerMizerMode_v1; _cyb_nvml_names[332] = b'nvmlDeviceGetPowerMizerMode_v1' +_cyb_nvml_slots[333] = &__nvmlDeviceSetPowerMizerMode_v1; _cyb_nvml_names[333] = b'nvmlDeviceSetPowerMizerMode_v1' +_cyb_nvml_slots[334] = &__nvmlDeviceGetPdi; _cyb_nvml_names[334] = b'nvmlDeviceGetPdi' +_cyb_nvml_slots[335] = &__nvmlDeviceSetHostname_v1; _cyb_nvml_names[335] = b'nvmlDeviceSetHostname_v1' +_cyb_nvml_slots[336] = &__nvmlDeviceGetHostname_v1; _cyb_nvml_names[336] = b'nvmlDeviceGetHostname_v1' +_cyb_nvml_slots[337] = &__nvmlDeviceGetNvLinkInfo; _cyb_nvml_names[337] = b'nvmlDeviceGetNvLinkInfo' +_cyb_nvml_slots[338] = &__nvmlDeviceReadWritePRM_v1; _cyb_nvml_names[338] = b'nvmlDeviceReadWritePRM_v1' +_cyb_nvml_slots[339] = &__nvmlDeviceGetGpuInstanceProfileInfoByIdV; _cyb_nvml_names[339] = b'nvmlDeviceGetGpuInstanceProfileInfoByIdV' +_cyb_nvml_slots[340] = &__nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts; _cyb_nvml_names[340] = b'nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts' +_cyb_nvml_slots[341] = &__nvmlDeviceGetUnrepairableMemoryFlag_v1; _cyb_nvml_names[341] = b'nvmlDeviceGetUnrepairableMemoryFlag_v1' +_cyb_nvml_slots[342] = &__nvmlDeviceReadPRMCounters_v1; _cyb_nvml_names[342] = b'nvmlDeviceReadPRMCounters_v1' +_cyb_nvml_slots[343] = &__nvmlDeviceSetRusdSettings_v1; _cyb_nvml_names[343] = b'nvmlDeviceSetRusdSettings_v1' +_cyb_nvml_slots[344] = &__nvmlDeviceVgpuForceGspUnload; _cyb_nvml_names[344] = b'nvmlDeviceVgpuForceGspUnload' +_cyb_nvml_slots[345] = &__nvmlDeviceGetVgpuSchedulerState_v2; _cyb_nvml_names[345] = b'nvmlDeviceGetVgpuSchedulerState_v2' +_cyb_nvml_slots[346] = &__nvmlGpuInstanceGetVgpuSchedulerState_v2; _cyb_nvml_names[346] = b'nvmlGpuInstanceGetVgpuSchedulerState_v2' +_cyb_nvml_slots[347] = &__nvmlDeviceGetVgpuSchedulerLog_v2; _cyb_nvml_names[347] = b'nvmlDeviceGetVgpuSchedulerLog_v2' +_cyb_nvml_slots[348] = &__nvmlGpuInstanceGetVgpuSchedulerLog_v2; _cyb_nvml_names[348] = b'nvmlGpuInstanceGetVgpuSchedulerLog_v2' +_cyb_nvml_slots[349] = &__nvmlDeviceSetVgpuSchedulerState_v2; _cyb_nvml_names[349] = b'nvmlDeviceSetVgpuSchedulerState_v2' +_cyb_nvml_slots[350] = &__nvmlGpuInstanceSetVgpuSchedulerState_v2; _cyb_nvml_names[350] = b'nvmlGpuInstanceSetVgpuSchedulerState_v2' +_cyb_nvml_slots[351] = &__nvmlSystemGetCPER_v1; _cyb_nvml_names[351] = b'nvmlSystemGetCPER_v1' +_cyb_nvml_slots[352] = &__nvmlDeviceGetBBXTimeData_v1; _cyb_nvml_names[352] = b'nvmlDeviceGetBBXTimeData_v1' +_cyb_nvml_slots[353] = &__nvmlDeviceGetAccountingStats_v2; _cyb_nvml_names[353] = b'nvmlDeviceGetAccountingStats_v2' +_cyb_nvml_slots[354] = &__nvmlDeviceGetRemappedRows_v2; _cyb_nvml_names[354] = b'nvmlDeviceGetRemappedRows_v2' +_cyb_nvml_slots[355] = &__nvmlDeviceSetAdaptiveTgpMode_v1; _cyb_nvml_names[355] = b'nvmlDeviceSetAdaptiveTgpMode_v1' +_cyb_nvml_slots[356] = &__nvmlDeviceGetAdaptiveTgpModeInfo_v1; _cyb_nvml_names[356] = b'nvmlDeviceGetAdaptiveTgpModeInfo_v1' +_cyb_nvml_slots[357] = &__nvmlDeviceSetMemoryLimits_v1; _cyb_nvml_names[357] = b'nvmlDeviceSetMemoryLimits_v1' +_cyb_nvml_slots[358] = &__nvmlDeviceGetMemoryLimits_v1; _cyb_nvml_names[358] = b'nvmlDeviceGetMemoryLimits_v1' +_cyb_nvml_slots[359] = &__nvmlDeviceGetGpuFabricInfo_v4; _cyb_nvml_names[359] = b'nvmlDeviceGetGpuFabricInfo_v4' +_cyb_nvml_slots[360] = &__nvmlDevicePerfMetricsGetSamples_v1; _cyb_nvml_names[360] = b'nvmlDevicePerfMetricsGetSamples_v1' +_cyb_nvml_slots[361] = &__nvmlDeviceSetNvlinkBwModeAsync_v1; _cyb_nvml_names[361] = b'nvmlDeviceSetNvlinkBwModeAsync_v1' +_cyb_nvml_slots[362] = &__nvmlDeviceGetNvLinkTelemetrySamples_v1; _cyb_nvml_names[362] = b'nvmlDeviceGetNvLinkTelemetrySamples_v1' +_cyb_nvml_slots[363] = &__nvmlEventSetRegisterGpuOperationalEvents_v1; _cyb_nvml_names[363] = b'nvmlEventSetRegisterGpuOperationalEvents_v1' +_cyb_nvml_slots[364] = &__nvmlEventSetWait_v3; _cyb_nvml_names[364] = b'nvmlEventSetWait_v3' +_cyb_nvml_slots[365] = &__nvmlEventSetGetContextCount_v1; _cyb_nvml_names[365] = b'nvmlEventSetGetContextCount_v1' +_cyb_nvml_slots[366] = &__nvmlEventSetGetContextInfo_v1; _cyb_nvml_names[366] = b'nvmlEventSetGetContextInfo_v1' +_cyb_nvml_slots[367] = &__nvmlEventSetGetContextData_v1; _cyb_nvml_names[367] = b'nvmlEventSetGetContextData_v1' +_cyb_nvml_slots[368] = &__nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1; _cyb_nvml_names[368] = b'nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1' +_cyb_nvml_slots[369] = &__nvmlDeviceGetBankRemapperStatus_v1; _cyb_nvml_names[369] = b'nvmlDeviceGetBankRemapperStatus_v1' +_cyb_nvml_slots[370] = &__nvmlDeviceGetGpuUptime_v1; _cyb_nvml_names[370] = b'nvmlDeviceGetGpuUptime_v1' +_cyb_nvml_slots[371] = &__nvmlSystemGetConfComputeSettings_v2; _cyb_nvml_names[371] = b'nvmlSystemGetConfComputeSettings_v2' +_cyb_nvml_slots[372] = &__nvmlDeviceGetNvLinkInfo_v3; _cyb_nvml_names[372] = b'nvmlDeviceGetNvLinkInfo_v3' +_cyb_nvml_slots[373] = &__nvmlDeviceGetNvlinkRemapTableInfo_v1; _cyb_nvml_names[373] = b'nvmlDeviceGetNvlinkRemapTableInfo_v1' +_cyb_nvml_slots[374] = &__nvmlDeviceSetNvlinkNvleReady_v1; _cyb_nvml_names[374] = b'nvmlDeviceSetNvlinkNvleReady_v1' +_cyb_nvml_slots[375] = &__nvmlDeviceLockNvlinkRemapTable_v1; _cyb_nvml_names[375] = b'nvmlDeviceLockNvlinkRemapTable_v1' +_cyb_nvml_slots[376] = &__nvmlDeviceSetupNvlinkNvleEncryptionKey_v1; _cyb_nvml_names[376] = b'nvmlDeviceSetupNvlinkNvleEncryptionKey_v1' +_cyb_nvml_slots[377] = &__nvmlDeviceGetNvlinkNvlePrivateInfo_v1; _cyb_nvml_names[377] = b'nvmlDeviceGetNvlinkNvlePrivateInfo_v1' + cdef int _init_nvml() except -1 nogil: global _cyb___py_nvml_init cdef int err cdef uintptr_t handle + cdef Py_ssize_t i with gil, _cyb_symbol_lock: if _cyb___py_nvml_init: return 0 handle = load_library() - global __nvmlInit_v2 - __nvmlInit_v2 = _cyb_GetProcAddress(handle, 'nvmlInit_v2') - - global __nvmlInitWithFlags - __nvmlInitWithFlags = _cyb_GetProcAddress(handle, 'nvmlInitWithFlags') - - global __nvmlShutdown - __nvmlShutdown = _cyb_GetProcAddress(handle, 'nvmlShutdown') - - global __nvmlErrorString - __nvmlErrorString = _cyb_GetProcAddress(handle, 'nvmlErrorString') - - global __nvmlSystemGetDriverVersion - __nvmlSystemGetDriverVersion = _cyb_GetProcAddress(handle, 'nvmlSystemGetDriverVersion') - - global __nvmlSystemGetNVMLVersion - __nvmlSystemGetNVMLVersion = _cyb_GetProcAddress(handle, 'nvmlSystemGetNVMLVersion') - - global __nvmlSystemGetCudaDriverVersion - __nvmlSystemGetCudaDriverVersion = _cyb_GetProcAddress(handle, 'nvmlSystemGetCudaDriverVersion') - - global __nvmlSystemGetCudaDriverVersion_v2 - __nvmlSystemGetCudaDriverVersion_v2 = _cyb_GetProcAddress(handle, 'nvmlSystemGetCudaDriverVersion_v2') - - global __nvmlSystemGetProcessName - __nvmlSystemGetProcessName = _cyb_GetProcAddress(handle, 'nvmlSystemGetProcessName') - - global __nvmlSystemGetHicVersion - __nvmlSystemGetHicVersion = _cyb_GetProcAddress(handle, 'nvmlSystemGetHicVersion') - - global __nvmlSystemGetTopologyGpuSet - __nvmlSystemGetTopologyGpuSet = _cyb_GetProcAddress(handle, 'nvmlSystemGetTopologyGpuSet') - - global __nvmlSystemGetDriverBranch - __nvmlSystemGetDriverBranch = _cyb_GetProcAddress(handle, 'nvmlSystemGetDriverBranch') - - global __nvmlUnitGetCount - __nvmlUnitGetCount = _cyb_GetProcAddress(handle, 'nvmlUnitGetCount') - - global __nvmlUnitGetHandleByIndex - __nvmlUnitGetHandleByIndex = _cyb_GetProcAddress(handle, 'nvmlUnitGetHandleByIndex') - - global __nvmlUnitGetUnitInfo - __nvmlUnitGetUnitInfo = _cyb_GetProcAddress(handle, 'nvmlUnitGetUnitInfo') - - global __nvmlUnitGetLedState - __nvmlUnitGetLedState = _cyb_GetProcAddress(handle, 'nvmlUnitGetLedState') - - global __nvmlUnitGetPsuInfo - __nvmlUnitGetPsuInfo = _cyb_GetProcAddress(handle, 'nvmlUnitGetPsuInfo') - - global __nvmlUnitGetTemperature - __nvmlUnitGetTemperature = _cyb_GetProcAddress(handle, 'nvmlUnitGetTemperature') - - global __nvmlUnitGetFanSpeedInfo - __nvmlUnitGetFanSpeedInfo = _cyb_GetProcAddress(handle, 'nvmlUnitGetFanSpeedInfo') - - global __nvmlUnitGetDevices - __nvmlUnitGetDevices = _cyb_GetProcAddress(handle, 'nvmlUnitGetDevices') - - global __nvmlDeviceGetCount_v2 - __nvmlDeviceGetCount_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetCount_v2') - - global __nvmlDeviceGetAttributes_v2 - __nvmlDeviceGetAttributes_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetAttributes_v2') - - global __nvmlDeviceGetHandleByIndex_v2 - __nvmlDeviceGetHandleByIndex_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetHandleByIndex_v2') - - global __nvmlDeviceGetHandleBySerial - __nvmlDeviceGetHandleBySerial = _cyb_GetProcAddress(handle, 'nvmlDeviceGetHandleBySerial') - - global __nvmlDeviceGetHandleByUUID - __nvmlDeviceGetHandleByUUID = _cyb_GetProcAddress(handle, 'nvmlDeviceGetHandleByUUID') - - global __nvmlDeviceGetHandleByUUIDV - __nvmlDeviceGetHandleByUUIDV = _cyb_GetProcAddress(handle, 'nvmlDeviceGetHandleByUUIDV') - - global __nvmlDeviceGetHandleByPciBusId_v2 - __nvmlDeviceGetHandleByPciBusId_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetHandleByPciBusId_v2') - - global __nvmlDeviceGetName - __nvmlDeviceGetName = _cyb_GetProcAddress(handle, 'nvmlDeviceGetName') - - global __nvmlDeviceGetBrand - __nvmlDeviceGetBrand = _cyb_GetProcAddress(handle, 'nvmlDeviceGetBrand') - - global __nvmlDeviceGetIndex - __nvmlDeviceGetIndex = _cyb_GetProcAddress(handle, 'nvmlDeviceGetIndex') - - global __nvmlDeviceGetSerial - __nvmlDeviceGetSerial = _cyb_GetProcAddress(handle, 'nvmlDeviceGetSerial') - - global __nvmlDeviceGetModuleId - __nvmlDeviceGetModuleId = _cyb_GetProcAddress(handle, 'nvmlDeviceGetModuleId') - - global __nvmlDeviceGetC2cModeInfoV - __nvmlDeviceGetC2cModeInfoV = _cyb_GetProcAddress(handle, 'nvmlDeviceGetC2cModeInfoV') - - global __nvmlDeviceGetMemoryAffinity - __nvmlDeviceGetMemoryAffinity = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMemoryAffinity') - - global __nvmlDeviceGetCpuAffinityWithinScope - __nvmlDeviceGetCpuAffinityWithinScope = _cyb_GetProcAddress(handle, 'nvmlDeviceGetCpuAffinityWithinScope') - - global __nvmlDeviceGetCpuAffinity - __nvmlDeviceGetCpuAffinity = _cyb_GetProcAddress(handle, 'nvmlDeviceGetCpuAffinity') - - global __nvmlDeviceSetCpuAffinity - __nvmlDeviceSetCpuAffinity = _cyb_GetProcAddress(handle, 'nvmlDeviceSetCpuAffinity') - - global __nvmlDeviceClearCpuAffinity - __nvmlDeviceClearCpuAffinity = _cyb_GetProcAddress(handle, 'nvmlDeviceClearCpuAffinity') - - global __nvmlDeviceGetNumaNodeId - __nvmlDeviceGetNumaNodeId = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNumaNodeId') - - global __nvmlDeviceGetTopologyCommonAncestor - __nvmlDeviceGetTopologyCommonAncestor = _cyb_GetProcAddress(handle, 'nvmlDeviceGetTopologyCommonAncestor') - - global __nvmlDeviceGetTopologyNearestGpus - __nvmlDeviceGetTopologyNearestGpus = _cyb_GetProcAddress(handle, 'nvmlDeviceGetTopologyNearestGpus') - - global __nvmlDeviceGetP2PStatus - __nvmlDeviceGetP2PStatus = _cyb_GetProcAddress(handle, 'nvmlDeviceGetP2PStatus') - - global __nvmlDeviceGetUUID - __nvmlDeviceGetUUID = _cyb_GetProcAddress(handle, 'nvmlDeviceGetUUID') - - global __nvmlDeviceGetMinorNumber - __nvmlDeviceGetMinorNumber = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMinorNumber') - - global __nvmlDeviceGetBoardPartNumber - __nvmlDeviceGetBoardPartNumber = _cyb_GetProcAddress(handle, 'nvmlDeviceGetBoardPartNumber') - - global __nvmlDeviceGetInforomVersion - __nvmlDeviceGetInforomVersion = _cyb_GetProcAddress(handle, 'nvmlDeviceGetInforomVersion') - - global __nvmlDeviceGetInforomImageVersion - __nvmlDeviceGetInforomImageVersion = _cyb_GetProcAddress(handle, 'nvmlDeviceGetInforomImageVersion') - - global __nvmlDeviceGetInforomConfigurationChecksum - __nvmlDeviceGetInforomConfigurationChecksum = _cyb_GetProcAddress(handle, 'nvmlDeviceGetInforomConfigurationChecksum') - - global __nvmlDeviceValidateInforom - __nvmlDeviceValidateInforom = _cyb_GetProcAddress(handle, 'nvmlDeviceValidateInforom') - - global __nvmlDeviceGetLastBBXFlushTime - __nvmlDeviceGetLastBBXFlushTime = _cyb_GetProcAddress(handle, 'nvmlDeviceGetLastBBXFlushTime') - - global __nvmlDeviceGetDisplayMode - __nvmlDeviceGetDisplayMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetDisplayMode') - - global __nvmlDeviceGetDisplayActive - __nvmlDeviceGetDisplayActive = _cyb_GetProcAddress(handle, 'nvmlDeviceGetDisplayActive') - - global __nvmlDeviceGetPersistenceMode - __nvmlDeviceGetPersistenceMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPersistenceMode') - - global __nvmlDeviceGetPciInfoExt - __nvmlDeviceGetPciInfoExt = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPciInfoExt') - - global __nvmlDeviceGetPciInfo_v3 - __nvmlDeviceGetPciInfo_v3 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPciInfo_v3') - - global __nvmlDeviceGetMaxPcieLinkGeneration - __nvmlDeviceGetMaxPcieLinkGeneration = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMaxPcieLinkGeneration') - - global __nvmlDeviceGetGpuMaxPcieLinkGeneration - __nvmlDeviceGetGpuMaxPcieLinkGeneration = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGpuMaxPcieLinkGeneration') - - global __nvmlDeviceGetMaxPcieLinkWidth - __nvmlDeviceGetMaxPcieLinkWidth = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMaxPcieLinkWidth') - - global __nvmlDeviceGetCurrPcieLinkGeneration - __nvmlDeviceGetCurrPcieLinkGeneration = _cyb_GetProcAddress(handle, 'nvmlDeviceGetCurrPcieLinkGeneration') - - global __nvmlDeviceGetCurrPcieLinkWidth - __nvmlDeviceGetCurrPcieLinkWidth = _cyb_GetProcAddress(handle, 'nvmlDeviceGetCurrPcieLinkWidth') - - global __nvmlDeviceGetPcieThroughput - __nvmlDeviceGetPcieThroughput = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPcieThroughput') - - global __nvmlDeviceGetPcieReplayCounter - __nvmlDeviceGetPcieReplayCounter = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPcieReplayCounter') - - global __nvmlDeviceGetClockInfo - __nvmlDeviceGetClockInfo = _cyb_GetProcAddress(handle, 'nvmlDeviceGetClockInfo') - - global __nvmlDeviceGetMaxClockInfo - __nvmlDeviceGetMaxClockInfo = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMaxClockInfo') - - global __nvmlDeviceGetGpcClkVfOffset - __nvmlDeviceGetGpcClkVfOffset = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGpcClkVfOffset') - - global __nvmlDeviceGetClock - __nvmlDeviceGetClock = _cyb_GetProcAddress(handle, 'nvmlDeviceGetClock') - - global __nvmlDeviceGetMaxCustomerBoostClock - __nvmlDeviceGetMaxCustomerBoostClock = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMaxCustomerBoostClock') - - global __nvmlDeviceGetSupportedMemoryClocks - __nvmlDeviceGetSupportedMemoryClocks = _cyb_GetProcAddress(handle, 'nvmlDeviceGetSupportedMemoryClocks') - - global __nvmlDeviceGetSupportedGraphicsClocks - __nvmlDeviceGetSupportedGraphicsClocks = _cyb_GetProcAddress(handle, 'nvmlDeviceGetSupportedGraphicsClocks') - - global __nvmlDeviceGetAutoBoostedClocksEnabled - __nvmlDeviceGetAutoBoostedClocksEnabled = _cyb_GetProcAddress(handle, 'nvmlDeviceGetAutoBoostedClocksEnabled') - - global __nvmlDeviceGetFanSpeed - __nvmlDeviceGetFanSpeed = _cyb_GetProcAddress(handle, 'nvmlDeviceGetFanSpeed') - - global __nvmlDeviceGetFanSpeed_v2 - __nvmlDeviceGetFanSpeed_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetFanSpeed_v2') - - global __nvmlDeviceGetFanSpeedRPM - __nvmlDeviceGetFanSpeedRPM = _cyb_GetProcAddress(handle, 'nvmlDeviceGetFanSpeedRPM') - - global __nvmlDeviceGetTargetFanSpeed - __nvmlDeviceGetTargetFanSpeed = _cyb_GetProcAddress(handle, 'nvmlDeviceGetTargetFanSpeed') - - global __nvmlDeviceGetMinMaxFanSpeed - __nvmlDeviceGetMinMaxFanSpeed = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMinMaxFanSpeed') - - global __nvmlDeviceGetFanControlPolicy_v2 - __nvmlDeviceGetFanControlPolicy_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetFanControlPolicy_v2') - - global __nvmlDeviceGetNumFans - __nvmlDeviceGetNumFans = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNumFans') - - global __nvmlDeviceGetCoolerInfo - __nvmlDeviceGetCoolerInfo = _cyb_GetProcAddress(handle, 'nvmlDeviceGetCoolerInfo') - - global __nvmlDeviceGetTemperatureV - __nvmlDeviceGetTemperatureV = _cyb_GetProcAddress(handle, 'nvmlDeviceGetTemperatureV') - - global __nvmlDeviceGetTemperatureThreshold - __nvmlDeviceGetTemperatureThreshold = _cyb_GetProcAddress(handle, 'nvmlDeviceGetTemperatureThreshold') - - global __nvmlDeviceGetMarginTemperature - __nvmlDeviceGetMarginTemperature = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMarginTemperature') - - global __nvmlDeviceGetThermalSettings - __nvmlDeviceGetThermalSettings = _cyb_GetProcAddress(handle, 'nvmlDeviceGetThermalSettings') - - global __nvmlDeviceGetPerformanceState - __nvmlDeviceGetPerformanceState = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPerformanceState') - - global __nvmlDeviceGetCurrentClocksEventReasons - __nvmlDeviceGetCurrentClocksEventReasons = _cyb_GetProcAddress(handle, 'nvmlDeviceGetCurrentClocksEventReasons') - - global __nvmlDeviceGetSupportedClocksEventReasons - __nvmlDeviceGetSupportedClocksEventReasons = _cyb_GetProcAddress(handle, 'nvmlDeviceGetSupportedClocksEventReasons') - - global __nvmlDeviceGetPowerState - __nvmlDeviceGetPowerState = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPowerState') - - global __nvmlDeviceGetDynamicPstatesInfo - __nvmlDeviceGetDynamicPstatesInfo = _cyb_GetProcAddress(handle, 'nvmlDeviceGetDynamicPstatesInfo') - - global __nvmlDeviceGetMemClkVfOffset - __nvmlDeviceGetMemClkVfOffset = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMemClkVfOffset') - - global __nvmlDeviceGetMinMaxClockOfPState - __nvmlDeviceGetMinMaxClockOfPState = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMinMaxClockOfPState') - - global __nvmlDeviceGetSupportedPerformanceStates - __nvmlDeviceGetSupportedPerformanceStates = _cyb_GetProcAddress(handle, 'nvmlDeviceGetSupportedPerformanceStates') - - global __nvmlDeviceGetGpcClkMinMaxVfOffset - __nvmlDeviceGetGpcClkMinMaxVfOffset = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGpcClkMinMaxVfOffset') - - global __nvmlDeviceGetMemClkMinMaxVfOffset - __nvmlDeviceGetMemClkMinMaxVfOffset = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMemClkMinMaxVfOffset') - - global __nvmlDeviceGetClockOffsets - __nvmlDeviceGetClockOffsets = _cyb_GetProcAddress(handle, 'nvmlDeviceGetClockOffsets') - - global __nvmlDeviceSetClockOffsets - __nvmlDeviceSetClockOffsets = _cyb_GetProcAddress(handle, 'nvmlDeviceSetClockOffsets') - - global __nvmlDeviceGetPerformanceModes - __nvmlDeviceGetPerformanceModes = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPerformanceModes') - - global __nvmlDeviceGetCurrentClockFreqs - __nvmlDeviceGetCurrentClockFreqs = _cyb_GetProcAddress(handle, 'nvmlDeviceGetCurrentClockFreqs') - - global __nvmlDeviceGetPowerManagementLimit - __nvmlDeviceGetPowerManagementLimit = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPowerManagementLimit') - - global __nvmlDeviceGetPowerManagementLimitConstraints - __nvmlDeviceGetPowerManagementLimitConstraints = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPowerManagementLimitConstraints') - - global __nvmlDeviceGetPowerManagementDefaultLimit - __nvmlDeviceGetPowerManagementDefaultLimit = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPowerManagementDefaultLimit') - - global __nvmlDeviceGetPowerUsage - __nvmlDeviceGetPowerUsage = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPowerUsage') - - global __nvmlDeviceGetTotalEnergyConsumption - __nvmlDeviceGetTotalEnergyConsumption = _cyb_GetProcAddress(handle, 'nvmlDeviceGetTotalEnergyConsumption') - - global __nvmlDeviceGetEnforcedPowerLimit - __nvmlDeviceGetEnforcedPowerLimit = _cyb_GetProcAddress(handle, 'nvmlDeviceGetEnforcedPowerLimit') - - global __nvmlDeviceGetGpuOperationMode - __nvmlDeviceGetGpuOperationMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGpuOperationMode') - - global __nvmlDeviceGetMemoryInfo_v2 - __nvmlDeviceGetMemoryInfo_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMemoryInfo_v2') - - global __nvmlDeviceGetComputeMode - __nvmlDeviceGetComputeMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetComputeMode') - - global __nvmlDeviceGetCudaComputeCapability - __nvmlDeviceGetCudaComputeCapability = _cyb_GetProcAddress(handle, 'nvmlDeviceGetCudaComputeCapability') - - global __nvmlDeviceGetDramEncryptionMode - __nvmlDeviceGetDramEncryptionMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetDramEncryptionMode') - - global __nvmlDeviceSetDramEncryptionMode - __nvmlDeviceSetDramEncryptionMode = _cyb_GetProcAddress(handle, 'nvmlDeviceSetDramEncryptionMode') - - global __nvmlDeviceGetEccMode - __nvmlDeviceGetEccMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetEccMode') - - global __nvmlDeviceGetDefaultEccMode - __nvmlDeviceGetDefaultEccMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetDefaultEccMode') - - global __nvmlDeviceGetBoardId - __nvmlDeviceGetBoardId = _cyb_GetProcAddress(handle, 'nvmlDeviceGetBoardId') - - global __nvmlDeviceGetMultiGpuBoard - __nvmlDeviceGetMultiGpuBoard = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMultiGpuBoard') - - global __nvmlDeviceGetTotalEccErrors - __nvmlDeviceGetTotalEccErrors = _cyb_GetProcAddress(handle, 'nvmlDeviceGetTotalEccErrors') - - global __nvmlDeviceGetMemoryErrorCounter - __nvmlDeviceGetMemoryErrorCounter = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMemoryErrorCounter') - - global __nvmlDeviceGetUtilizationRates - __nvmlDeviceGetUtilizationRates = _cyb_GetProcAddress(handle, 'nvmlDeviceGetUtilizationRates') - - global __nvmlDeviceGetEncoderUtilization - __nvmlDeviceGetEncoderUtilization = _cyb_GetProcAddress(handle, 'nvmlDeviceGetEncoderUtilization') - - global __nvmlDeviceGetEncoderCapacity - __nvmlDeviceGetEncoderCapacity = _cyb_GetProcAddress(handle, 'nvmlDeviceGetEncoderCapacity') - - global __nvmlDeviceGetEncoderStats - __nvmlDeviceGetEncoderStats = _cyb_GetProcAddress(handle, 'nvmlDeviceGetEncoderStats') - - global __nvmlDeviceGetEncoderSessions - __nvmlDeviceGetEncoderSessions = _cyb_GetProcAddress(handle, 'nvmlDeviceGetEncoderSessions') - - global __nvmlDeviceGetDecoderUtilization - __nvmlDeviceGetDecoderUtilization = _cyb_GetProcAddress(handle, 'nvmlDeviceGetDecoderUtilization') - - global __nvmlDeviceGetJpgUtilization - __nvmlDeviceGetJpgUtilization = _cyb_GetProcAddress(handle, 'nvmlDeviceGetJpgUtilization') - - global __nvmlDeviceGetOfaUtilization - __nvmlDeviceGetOfaUtilization = _cyb_GetProcAddress(handle, 'nvmlDeviceGetOfaUtilization') - - global __nvmlDeviceGetFBCStats - __nvmlDeviceGetFBCStats = _cyb_GetProcAddress(handle, 'nvmlDeviceGetFBCStats') - - global __nvmlDeviceGetFBCSessions - __nvmlDeviceGetFBCSessions = _cyb_GetProcAddress(handle, 'nvmlDeviceGetFBCSessions') - - global __nvmlDeviceGetDriverModel_v2 - __nvmlDeviceGetDriverModel_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetDriverModel_v2') - - global __nvmlDeviceGetVbiosVersion - __nvmlDeviceGetVbiosVersion = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVbiosVersion') - - global __nvmlDeviceGetBridgeChipInfo - __nvmlDeviceGetBridgeChipInfo = _cyb_GetProcAddress(handle, 'nvmlDeviceGetBridgeChipInfo') - - global __nvmlDeviceGetComputeRunningProcesses_v3 - __nvmlDeviceGetComputeRunningProcesses_v3 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetComputeRunningProcesses_v3') + for i in range(_cyb_nvml_n_functions): + _cyb_nvml_slots[i][0] = _cyb_GetProcAddress(handle, _cyb_nvml_names[i]) - global __nvmlDeviceGetGraphicsRunningProcesses_v3 - __nvmlDeviceGetGraphicsRunningProcesses_v3 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGraphicsRunningProcesses_v3') - - global __nvmlDeviceGetMPSComputeRunningProcesses_v3 - __nvmlDeviceGetMPSComputeRunningProcesses_v3 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMPSComputeRunningProcesses_v3') - - global __nvmlDeviceGetRunningProcessDetailList - __nvmlDeviceGetRunningProcessDetailList = _cyb_GetProcAddress(handle, 'nvmlDeviceGetRunningProcessDetailList') - - global __nvmlDeviceOnSameBoard - __nvmlDeviceOnSameBoard = _cyb_GetProcAddress(handle, 'nvmlDeviceOnSameBoard') - - global __nvmlDeviceGetAPIRestriction - __nvmlDeviceGetAPIRestriction = _cyb_GetProcAddress(handle, 'nvmlDeviceGetAPIRestriction') - - global __nvmlDeviceGetSamples - __nvmlDeviceGetSamples = _cyb_GetProcAddress(handle, 'nvmlDeviceGetSamples') - - global __nvmlDeviceGetBAR1MemoryInfo - __nvmlDeviceGetBAR1MemoryInfo = _cyb_GetProcAddress(handle, 'nvmlDeviceGetBAR1MemoryInfo') - - global __nvmlDeviceGetIrqNum - __nvmlDeviceGetIrqNum = _cyb_GetProcAddress(handle, 'nvmlDeviceGetIrqNum') - - global __nvmlDeviceGetNumGpuCores - __nvmlDeviceGetNumGpuCores = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNumGpuCores') - - global __nvmlDeviceGetPowerSource - __nvmlDeviceGetPowerSource = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPowerSource') - - global __nvmlDeviceGetMemoryBusWidth - __nvmlDeviceGetMemoryBusWidth = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMemoryBusWidth') - - global __nvmlDeviceGetPcieLinkMaxSpeed - __nvmlDeviceGetPcieLinkMaxSpeed = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPcieLinkMaxSpeed') - - global __nvmlDeviceGetPcieSpeed - __nvmlDeviceGetPcieSpeed = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPcieSpeed') - - global __nvmlDeviceGetAdaptiveClockInfoStatus - __nvmlDeviceGetAdaptiveClockInfoStatus = _cyb_GetProcAddress(handle, 'nvmlDeviceGetAdaptiveClockInfoStatus') - - global __nvmlDeviceGetBusType - __nvmlDeviceGetBusType = _cyb_GetProcAddress(handle, 'nvmlDeviceGetBusType') - - global __nvmlDeviceGetGpuFabricInfoV - __nvmlDeviceGetGpuFabricInfoV = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGpuFabricInfoV') - - global __nvmlSystemGetConfComputeCapabilities - __nvmlSystemGetConfComputeCapabilities = _cyb_GetProcAddress(handle, 'nvmlSystemGetConfComputeCapabilities') - - global __nvmlSystemGetConfComputeState - __nvmlSystemGetConfComputeState = _cyb_GetProcAddress(handle, 'nvmlSystemGetConfComputeState') - - global __nvmlDeviceGetConfComputeMemSizeInfo - __nvmlDeviceGetConfComputeMemSizeInfo = _cyb_GetProcAddress(handle, 'nvmlDeviceGetConfComputeMemSizeInfo') - - global __nvmlSystemGetConfComputeGpusReadyState - __nvmlSystemGetConfComputeGpusReadyState = _cyb_GetProcAddress(handle, 'nvmlSystemGetConfComputeGpusReadyState') - - global __nvmlDeviceGetConfComputeProtectedMemoryUsage - __nvmlDeviceGetConfComputeProtectedMemoryUsage = _cyb_GetProcAddress(handle, 'nvmlDeviceGetConfComputeProtectedMemoryUsage') - - global __nvmlDeviceGetConfComputeGpuCertificate - __nvmlDeviceGetConfComputeGpuCertificate = _cyb_GetProcAddress(handle, 'nvmlDeviceGetConfComputeGpuCertificate') - - global __nvmlDeviceGetConfComputeGpuAttestationReport - __nvmlDeviceGetConfComputeGpuAttestationReport = _cyb_GetProcAddress(handle, 'nvmlDeviceGetConfComputeGpuAttestationReport') - - global __nvmlSystemGetConfComputeKeyRotationThresholdInfo - __nvmlSystemGetConfComputeKeyRotationThresholdInfo = _cyb_GetProcAddress(handle, 'nvmlSystemGetConfComputeKeyRotationThresholdInfo') - - global __nvmlDeviceSetConfComputeUnprotectedMemSize - __nvmlDeviceSetConfComputeUnprotectedMemSize = _cyb_GetProcAddress(handle, 'nvmlDeviceSetConfComputeUnprotectedMemSize') - - global __nvmlSystemSetConfComputeGpusReadyState - __nvmlSystemSetConfComputeGpusReadyState = _cyb_GetProcAddress(handle, 'nvmlSystemSetConfComputeGpusReadyState') - - global __nvmlSystemSetConfComputeKeyRotationThresholdInfo - __nvmlSystemSetConfComputeKeyRotationThresholdInfo = _cyb_GetProcAddress(handle, 'nvmlSystemSetConfComputeKeyRotationThresholdInfo') - - global __nvmlSystemGetConfComputeSettings - __nvmlSystemGetConfComputeSettings = _cyb_GetProcAddress(handle, 'nvmlSystemGetConfComputeSettings') - - global __nvmlDeviceGetGspFirmwareVersion - __nvmlDeviceGetGspFirmwareVersion = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGspFirmwareVersion') - - global __nvmlDeviceGetGspFirmwareMode - __nvmlDeviceGetGspFirmwareMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGspFirmwareMode') - - global __nvmlDeviceGetSramEccErrorStatus - __nvmlDeviceGetSramEccErrorStatus = _cyb_GetProcAddress(handle, 'nvmlDeviceGetSramEccErrorStatus') - - global __nvmlDeviceGetAccountingMode - __nvmlDeviceGetAccountingMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetAccountingMode') - - global __nvmlDeviceGetAccountingStats - __nvmlDeviceGetAccountingStats = _cyb_GetProcAddress(handle, 'nvmlDeviceGetAccountingStats') - - global __nvmlDeviceGetAccountingPids - __nvmlDeviceGetAccountingPids = _cyb_GetProcAddress(handle, 'nvmlDeviceGetAccountingPids') - - global __nvmlDeviceGetAccountingBufferSize - __nvmlDeviceGetAccountingBufferSize = _cyb_GetProcAddress(handle, 'nvmlDeviceGetAccountingBufferSize') - - global __nvmlDeviceGetRetiredPages - __nvmlDeviceGetRetiredPages = _cyb_GetProcAddress(handle, 'nvmlDeviceGetRetiredPages') - - global __nvmlDeviceGetRetiredPages_v2 - __nvmlDeviceGetRetiredPages_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetRetiredPages_v2') - - global __nvmlDeviceGetRetiredPagesPendingStatus - __nvmlDeviceGetRetiredPagesPendingStatus = _cyb_GetProcAddress(handle, 'nvmlDeviceGetRetiredPagesPendingStatus') - - global __nvmlDeviceGetRemappedRows - __nvmlDeviceGetRemappedRows = _cyb_GetProcAddress(handle, 'nvmlDeviceGetRemappedRows') - - global __nvmlDeviceGetRowRemapperHistogram - __nvmlDeviceGetRowRemapperHistogram = _cyb_GetProcAddress(handle, 'nvmlDeviceGetRowRemapperHistogram') - - global __nvmlDeviceGetArchitecture - __nvmlDeviceGetArchitecture = _cyb_GetProcAddress(handle, 'nvmlDeviceGetArchitecture') - - global __nvmlDeviceGetClkMonStatus - __nvmlDeviceGetClkMonStatus = _cyb_GetProcAddress(handle, 'nvmlDeviceGetClkMonStatus') - - global __nvmlDeviceGetProcessUtilization - __nvmlDeviceGetProcessUtilization = _cyb_GetProcAddress(handle, 'nvmlDeviceGetProcessUtilization') - - global __nvmlDeviceGetProcessesUtilizationInfo - __nvmlDeviceGetProcessesUtilizationInfo = _cyb_GetProcAddress(handle, 'nvmlDeviceGetProcessesUtilizationInfo') - - global __nvmlDeviceGetPlatformInfo - __nvmlDeviceGetPlatformInfo = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPlatformInfo') - - global __nvmlUnitSetLedState - __nvmlUnitSetLedState = _cyb_GetProcAddress(handle, 'nvmlUnitSetLedState') - - global __nvmlDeviceSetPersistenceMode - __nvmlDeviceSetPersistenceMode = _cyb_GetProcAddress(handle, 'nvmlDeviceSetPersistenceMode') - - global __nvmlDeviceSetComputeMode - __nvmlDeviceSetComputeMode = _cyb_GetProcAddress(handle, 'nvmlDeviceSetComputeMode') - - global __nvmlDeviceSetEccMode - __nvmlDeviceSetEccMode = _cyb_GetProcAddress(handle, 'nvmlDeviceSetEccMode') - - global __nvmlDeviceClearEccErrorCounts - __nvmlDeviceClearEccErrorCounts = _cyb_GetProcAddress(handle, 'nvmlDeviceClearEccErrorCounts') - - global __nvmlDeviceSetDriverModel - __nvmlDeviceSetDriverModel = _cyb_GetProcAddress(handle, 'nvmlDeviceSetDriverModel') - - global __nvmlDeviceSetGpuLockedClocks - __nvmlDeviceSetGpuLockedClocks = _cyb_GetProcAddress(handle, 'nvmlDeviceSetGpuLockedClocks') - - global __nvmlDeviceResetGpuLockedClocks - __nvmlDeviceResetGpuLockedClocks = _cyb_GetProcAddress(handle, 'nvmlDeviceResetGpuLockedClocks') - - global __nvmlDeviceSetMemoryLockedClocks - __nvmlDeviceSetMemoryLockedClocks = _cyb_GetProcAddress(handle, 'nvmlDeviceSetMemoryLockedClocks') - - global __nvmlDeviceResetMemoryLockedClocks - __nvmlDeviceResetMemoryLockedClocks = _cyb_GetProcAddress(handle, 'nvmlDeviceResetMemoryLockedClocks') - - global __nvmlDeviceSetAutoBoostedClocksEnabled - __nvmlDeviceSetAutoBoostedClocksEnabled = _cyb_GetProcAddress(handle, 'nvmlDeviceSetAutoBoostedClocksEnabled') - - global __nvmlDeviceSetDefaultAutoBoostedClocksEnabled - __nvmlDeviceSetDefaultAutoBoostedClocksEnabled = _cyb_GetProcAddress(handle, 'nvmlDeviceSetDefaultAutoBoostedClocksEnabled') - - global __nvmlDeviceSetDefaultFanSpeed_v2 - __nvmlDeviceSetDefaultFanSpeed_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceSetDefaultFanSpeed_v2') - - global __nvmlDeviceSetFanControlPolicy - __nvmlDeviceSetFanControlPolicy = _cyb_GetProcAddress(handle, 'nvmlDeviceSetFanControlPolicy') - - global __nvmlDeviceSetTemperatureThreshold - __nvmlDeviceSetTemperatureThreshold = _cyb_GetProcAddress(handle, 'nvmlDeviceSetTemperatureThreshold') - - global __nvmlDeviceSetGpuOperationMode - __nvmlDeviceSetGpuOperationMode = _cyb_GetProcAddress(handle, 'nvmlDeviceSetGpuOperationMode') - - global __nvmlDeviceSetAPIRestriction - __nvmlDeviceSetAPIRestriction = _cyb_GetProcAddress(handle, 'nvmlDeviceSetAPIRestriction') - - global __nvmlDeviceSetFanSpeed_v2 - __nvmlDeviceSetFanSpeed_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceSetFanSpeed_v2') - - global __nvmlDeviceSetAccountingMode - __nvmlDeviceSetAccountingMode = _cyb_GetProcAddress(handle, 'nvmlDeviceSetAccountingMode') - - global __nvmlDeviceClearAccountingPids - __nvmlDeviceClearAccountingPids = _cyb_GetProcAddress(handle, 'nvmlDeviceClearAccountingPids') - - global __nvmlDeviceSetPowerManagementLimit_v2 - __nvmlDeviceSetPowerManagementLimit_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceSetPowerManagementLimit_v2') - - global __nvmlDeviceGetNvLinkState - __nvmlDeviceGetNvLinkState = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNvLinkState') - - global __nvmlDeviceGetNvLinkVersion - __nvmlDeviceGetNvLinkVersion = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNvLinkVersion') - - global __nvmlDeviceGetNvLinkCapability - __nvmlDeviceGetNvLinkCapability = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNvLinkCapability') - - global __nvmlDeviceGetNvLinkRemotePciInfo_v2 - __nvmlDeviceGetNvLinkRemotePciInfo_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNvLinkRemotePciInfo_v2') - - global __nvmlDeviceGetNvLinkErrorCounter - __nvmlDeviceGetNvLinkErrorCounter = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNvLinkErrorCounter') - - global __nvmlDeviceResetNvLinkErrorCounters - __nvmlDeviceResetNvLinkErrorCounters = _cyb_GetProcAddress(handle, 'nvmlDeviceResetNvLinkErrorCounters') - - global __nvmlDeviceGetNvLinkRemoteDeviceType - __nvmlDeviceGetNvLinkRemoteDeviceType = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNvLinkRemoteDeviceType') - - global __nvmlDeviceSetNvLinkDeviceLowPowerThreshold - __nvmlDeviceSetNvLinkDeviceLowPowerThreshold = _cyb_GetProcAddress(handle, 'nvmlDeviceSetNvLinkDeviceLowPowerThreshold') - - global __nvmlSystemSetNvlinkBwMode - __nvmlSystemSetNvlinkBwMode = _cyb_GetProcAddress(handle, 'nvmlSystemSetNvlinkBwMode') - - global __nvmlSystemGetNvlinkBwMode - __nvmlSystemGetNvlinkBwMode = _cyb_GetProcAddress(handle, 'nvmlSystemGetNvlinkBwMode') - - global __nvmlDeviceGetNvlinkSupportedBwModes - __nvmlDeviceGetNvlinkSupportedBwModes = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNvlinkSupportedBwModes') - - global __nvmlDeviceGetNvlinkBwMode - __nvmlDeviceGetNvlinkBwMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNvlinkBwMode') - - global __nvmlDeviceSetNvlinkBwMode - __nvmlDeviceSetNvlinkBwMode = _cyb_GetProcAddress(handle, 'nvmlDeviceSetNvlinkBwMode') - - global __nvmlEventSetCreate - __nvmlEventSetCreate = _cyb_GetProcAddress(handle, 'nvmlEventSetCreate') - - global __nvmlDeviceRegisterEvents - __nvmlDeviceRegisterEvents = _cyb_GetProcAddress(handle, 'nvmlDeviceRegisterEvents') - - global __nvmlDeviceGetSupportedEventTypes - __nvmlDeviceGetSupportedEventTypes = _cyb_GetProcAddress(handle, 'nvmlDeviceGetSupportedEventTypes') - - global __nvmlEventSetWait_v2 - __nvmlEventSetWait_v2 = _cyb_GetProcAddress(handle, 'nvmlEventSetWait_v2') - - global __nvmlEventSetFree - __nvmlEventSetFree = _cyb_GetProcAddress(handle, 'nvmlEventSetFree') - - global __nvmlSystemEventSetCreate - __nvmlSystemEventSetCreate = _cyb_GetProcAddress(handle, 'nvmlSystemEventSetCreate') - - global __nvmlSystemEventSetFree - __nvmlSystemEventSetFree = _cyb_GetProcAddress(handle, 'nvmlSystemEventSetFree') - - global __nvmlSystemRegisterEvents - __nvmlSystemRegisterEvents = _cyb_GetProcAddress(handle, 'nvmlSystemRegisterEvents') - - global __nvmlSystemEventSetWait - __nvmlSystemEventSetWait = _cyb_GetProcAddress(handle, 'nvmlSystemEventSetWait') - - global __nvmlDeviceModifyDrainState - __nvmlDeviceModifyDrainState = _cyb_GetProcAddress(handle, 'nvmlDeviceModifyDrainState') - - global __nvmlDeviceQueryDrainState - __nvmlDeviceQueryDrainState = _cyb_GetProcAddress(handle, 'nvmlDeviceQueryDrainState') - - global __nvmlDeviceRemoveGpu_v2 - __nvmlDeviceRemoveGpu_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceRemoveGpu_v2') - - global __nvmlDeviceDiscoverGpus - __nvmlDeviceDiscoverGpus = _cyb_GetProcAddress(handle, 'nvmlDeviceDiscoverGpus') - - global __nvmlDeviceGetFieldValues - __nvmlDeviceGetFieldValues = _cyb_GetProcAddress(handle, 'nvmlDeviceGetFieldValues') - - global __nvmlDeviceClearFieldValues - __nvmlDeviceClearFieldValues = _cyb_GetProcAddress(handle, 'nvmlDeviceClearFieldValues') - - global __nvmlDeviceGetVirtualizationMode - __nvmlDeviceGetVirtualizationMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVirtualizationMode') - - global __nvmlDeviceGetHostVgpuMode - __nvmlDeviceGetHostVgpuMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetHostVgpuMode') - - global __nvmlDeviceSetVirtualizationMode - __nvmlDeviceSetVirtualizationMode = _cyb_GetProcAddress(handle, 'nvmlDeviceSetVirtualizationMode') - - global __nvmlDeviceGetVgpuHeterogeneousMode - __nvmlDeviceGetVgpuHeterogeneousMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuHeterogeneousMode') - - global __nvmlDeviceSetVgpuHeterogeneousMode - __nvmlDeviceSetVgpuHeterogeneousMode = _cyb_GetProcAddress(handle, 'nvmlDeviceSetVgpuHeterogeneousMode') - - global __nvmlVgpuInstanceGetPlacementId - __nvmlVgpuInstanceGetPlacementId = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetPlacementId') - - global __nvmlDeviceGetVgpuTypeSupportedPlacements - __nvmlDeviceGetVgpuTypeSupportedPlacements = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuTypeSupportedPlacements') - - global __nvmlDeviceGetVgpuTypeCreatablePlacements - __nvmlDeviceGetVgpuTypeCreatablePlacements = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuTypeCreatablePlacements') - - global __nvmlVgpuTypeGetGspHeapSize - __nvmlVgpuTypeGetGspHeapSize = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetGspHeapSize') - - global __nvmlVgpuTypeGetFbReservation - __nvmlVgpuTypeGetFbReservation = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetFbReservation') - - global __nvmlVgpuInstanceGetRuntimeStateSize - __nvmlVgpuInstanceGetRuntimeStateSize = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetRuntimeStateSize') - - global __nvmlDeviceSetVgpuCapabilities - __nvmlDeviceSetVgpuCapabilities = _cyb_GetProcAddress(handle, 'nvmlDeviceSetVgpuCapabilities') - - global __nvmlDeviceGetGridLicensableFeatures_v4 - __nvmlDeviceGetGridLicensableFeatures_v4 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGridLicensableFeatures_v4') - - global __nvmlGetVgpuDriverCapabilities - __nvmlGetVgpuDriverCapabilities = _cyb_GetProcAddress(handle, 'nvmlGetVgpuDriverCapabilities') - - global __nvmlDeviceGetVgpuCapabilities - __nvmlDeviceGetVgpuCapabilities = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuCapabilities') - - global __nvmlDeviceGetSupportedVgpus - __nvmlDeviceGetSupportedVgpus = _cyb_GetProcAddress(handle, 'nvmlDeviceGetSupportedVgpus') - - global __nvmlDeviceGetCreatableVgpus - __nvmlDeviceGetCreatableVgpus = _cyb_GetProcAddress(handle, 'nvmlDeviceGetCreatableVgpus') - - global __nvmlVgpuTypeGetClass - __nvmlVgpuTypeGetClass = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetClass') - - global __nvmlVgpuTypeGetName - __nvmlVgpuTypeGetName = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetName') - - global __nvmlVgpuTypeGetGpuInstanceProfileId - __nvmlVgpuTypeGetGpuInstanceProfileId = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetGpuInstanceProfileId') - - global __nvmlVgpuTypeGetDeviceID - __nvmlVgpuTypeGetDeviceID = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetDeviceID') - - global __nvmlVgpuTypeGetFramebufferSize - __nvmlVgpuTypeGetFramebufferSize = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetFramebufferSize') - - global __nvmlVgpuTypeGetNumDisplayHeads - __nvmlVgpuTypeGetNumDisplayHeads = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetNumDisplayHeads') - - global __nvmlVgpuTypeGetResolution - __nvmlVgpuTypeGetResolution = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetResolution') - - global __nvmlVgpuTypeGetLicense - __nvmlVgpuTypeGetLicense = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetLicense') + _cyb_atomic_int_store(&_cyb___py_nvml_init, 1) + return 0 - global __nvmlVgpuTypeGetFrameRateLimit - __nvmlVgpuTypeGetFrameRateLimit = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetFrameRateLimit') +cdef inline int _check_or_init_nvml() except -1 nogil: + if _cyb_atomic_int_load(&_cyb___py_nvml_init): + return 0 - global __nvmlVgpuTypeGetMaxInstances - __nvmlVgpuTypeGetMaxInstances = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetMaxInstances') + return _init_nvml() - global __nvmlVgpuTypeGetMaxInstancesPerVm - __nvmlVgpuTypeGetMaxInstancesPerVm = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetMaxInstancesPerVm') - global __nvmlVgpuTypeGetBAR1Info - __nvmlVgpuTypeGetBAR1Info = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetBAR1Info') - - global __nvmlDeviceGetActiveVgpus - __nvmlDeviceGetActiveVgpus = _cyb_GetProcAddress(handle, 'nvmlDeviceGetActiveVgpus') - - global __nvmlVgpuInstanceGetVmID - __nvmlVgpuInstanceGetVmID = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetVmID') - - global __nvmlVgpuInstanceGetUUID - __nvmlVgpuInstanceGetUUID = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetUUID') - - global __nvmlVgpuInstanceGetVmDriverVersion - __nvmlVgpuInstanceGetVmDriverVersion = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetVmDriverVersion') - - global __nvmlVgpuInstanceGetFbUsage - __nvmlVgpuInstanceGetFbUsage = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetFbUsage') - - global __nvmlVgpuInstanceGetLicenseStatus - __nvmlVgpuInstanceGetLicenseStatus = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetLicenseStatus') - - global __nvmlVgpuInstanceGetType - __nvmlVgpuInstanceGetType = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetType') - - global __nvmlVgpuInstanceGetFrameRateLimit - __nvmlVgpuInstanceGetFrameRateLimit = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetFrameRateLimit') - - global __nvmlVgpuInstanceGetEccMode - __nvmlVgpuInstanceGetEccMode = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetEccMode') - - global __nvmlVgpuInstanceGetEncoderCapacity - __nvmlVgpuInstanceGetEncoderCapacity = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetEncoderCapacity') - - global __nvmlVgpuInstanceSetEncoderCapacity - __nvmlVgpuInstanceSetEncoderCapacity = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceSetEncoderCapacity') - - global __nvmlVgpuInstanceGetEncoderStats - __nvmlVgpuInstanceGetEncoderStats = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetEncoderStats') - - global __nvmlVgpuInstanceGetEncoderSessions - __nvmlVgpuInstanceGetEncoderSessions = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetEncoderSessions') - - global __nvmlVgpuInstanceGetFBCStats - __nvmlVgpuInstanceGetFBCStats = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetFBCStats') - - global __nvmlVgpuInstanceGetFBCSessions - __nvmlVgpuInstanceGetFBCSessions = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetFBCSessions') - - global __nvmlVgpuInstanceGetGpuInstanceId - __nvmlVgpuInstanceGetGpuInstanceId = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetGpuInstanceId') - - global __nvmlVgpuInstanceGetGpuPciId - __nvmlVgpuInstanceGetGpuPciId = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetGpuPciId') - - global __nvmlVgpuTypeGetCapabilities - __nvmlVgpuTypeGetCapabilities = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetCapabilities') - - global __nvmlVgpuInstanceGetMdevUUID - __nvmlVgpuInstanceGetMdevUUID = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetMdevUUID') - - global __nvmlGpuInstanceGetCreatableVgpus - __nvmlGpuInstanceGetCreatableVgpus = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetCreatableVgpus') - - global __nvmlVgpuTypeGetMaxInstancesPerGpuInstance - __nvmlVgpuTypeGetMaxInstancesPerGpuInstance = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetMaxInstancesPerGpuInstance') - - global __nvmlGpuInstanceGetActiveVgpus - __nvmlGpuInstanceGetActiveVgpus = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetActiveVgpus') - - global __nvmlGpuInstanceSetVgpuSchedulerState - __nvmlGpuInstanceSetVgpuSchedulerState = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceSetVgpuSchedulerState') - - global __nvmlGpuInstanceGetVgpuSchedulerState - __nvmlGpuInstanceGetVgpuSchedulerState = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetVgpuSchedulerState') - - global __nvmlGpuInstanceGetVgpuSchedulerLog - __nvmlGpuInstanceGetVgpuSchedulerLog = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetVgpuSchedulerLog') - - global __nvmlGpuInstanceGetVgpuTypeCreatablePlacements - __nvmlGpuInstanceGetVgpuTypeCreatablePlacements = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetVgpuTypeCreatablePlacements') - - global __nvmlGpuInstanceGetVgpuHeterogeneousMode - __nvmlGpuInstanceGetVgpuHeterogeneousMode = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetVgpuHeterogeneousMode') - - global __nvmlGpuInstanceSetVgpuHeterogeneousMode - __nvmlGpuInstanceSetVgpuHeterogeneousMode = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceSetVgpuHeterogeneousMode') - - global __nvmlVgpuInstanceGetMetadata - __nvmlVgpuInstanceGetMetadata = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetMetadata') - - global __nvmlDeviceGetVgpuMetadata - __nvmlDeviceGetVgpuMetadata = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuMetadata') - - global __nvmlGetVgpuCompatibility - __nvmlGetVgpuCompatibility = _cyb_GetProcAddress(handle, 'nvmlGetVgpuCompatibility') - - global __nvmlDeviceGetPgpuMetadataString - __nvmlDeviceGetPgpuMetadataString = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPgpuMetadataString') - - global __nvmlDeviceGetVgpuSchedulerLog - __nvmlDeviceGetVgpuSchedulerLog = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuSchedulerLog') - - global __nvmlDeviceGetVgpuSchedulerState - __nvmlDeviceGetVgpuSchedulerState = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuSchedulerState') - - global __nvmlDeviceGetVgpuSchedulerCapabilities - __nvmlDeviceGetVgpuSchedulerCapabilities = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuSchedulerCapabilities') - - global __nvmlDeviceSetVgpuSchedulerState - __nvmlDeviceSetVgpuSchedulerState = _cyb_GetProcAddress(handle, 'nvmlDeviceSetVgpuSchedulerState') - - global __nvmlGetVgpuVersion - __nvmlGetVgpuVersion = _cyb_GetProcAddress(handle, 'nvmlGetVgpuVersion') - - global __nvmlSetVgpuVersion - __nvmlSetVgpuVersion = _cyb_GetProcAddress(handle, 'nvmlSetVgpuVersion') - - global __nvmlDeviceGetVgpuUtilization - __nvmlDeviceGetVgpuUtilization = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuUtilization') - - global __nvmlDeviceGetVgpuInstancesUtilizationInfo - __nvmlDeviceGetVgpuInstancesUtilizationInfo = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuInstancesUtilizationInfo') - - global __nvmlDeviceGetVgpuProcessUtilization - __nvmlDeviceGetVgpuProcessUtilization = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuProcessUtilization') - - global __nvmlDeviceGetVgpuProcessesUtilizationInfo - __nvmlDeviceGetVgpuProcessesUtilizationInfo = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuProcessesUtilizationInfo') - - global __nvmlVgpuInstanceGetAccountingMode - __nvmlVgpuInstanceGetAccountingMode = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetAccountingMode') - - global __nvmlVgpuInstanceGetAccountingPids - __nvmlVgpuInstanceGetAccountingPids = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetAccountingPids') - - global __nvmlVgpuInstanceGetAccountingStats - __nvmlVgpuInstanceGetAccountingStats = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetAccountingStats') - - global __nvmlVgpuInstanceClearAccountingPids - __nvmlVgpuInstanceClearAccountingPids = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceClearAccountingPids') - - global __nvmlVgpuInstanceGetLicenseInfo_v2 - __nvmlVgpuInstanceGetLicenseInfo_v2 = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetLicenseInfo_v2') - - global __nvmlGetExcludedDeviceCount - __nvmlGetExcludedDeviceCount = _cyb_GetProcAddress(handle, 'nvmlGetExcludedDeviceCount') - - global __nvmlGetExcludedDeviceInfoByIndex - __nvmlGetExcludedDeviceInfoByIndex = _cyb_GetProcAddress(handle, 'nvmlGetExcludedDeviceInfoByIndex') - - global __nvmlDeviceSetMigMode - __nvmlDeviceSetMigMode = _cyb_GetProcAddress(handle, 'nvmlDeviceSetMigMode') - - global __nvmlDeviceGetMigMode - __nvmlDeviceGetMigMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMigMode') - - global __nvmlDeviceGetGpuInstanceProfileInfoV - __nvmlDeviceGetGpuInstanceProfileInfoV = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGpuInstanceProfileInfoV') - - global __nvmlDeviceGetGpuInstancePossiblePlacements_v2 - __nvmlDeviceGetGpuInstancePossiblePlacements_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGpuInstancePossiblePlacements_v2') - - global __nvmlDeviceGetGpuInstanceRemainingCapacity - __nvmlDeviceGetGpuInstanceRemainingCapacity = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGpuInstanceRemainingCapacity') - - global __nvmlDeviceCreateGpuInstance - __nvmlDeviceCreateGpuInstance = _cyb_GetProcAddress(handle, 'nvmlDeviceCreateGpuInstance') - - global __nvmlDeviceCreateGpuInstanceWithPlacement - __nvmlDeviceCreateGpuInstanceWithPlacement = _cyb_GetProcAddress(handle, 'nvmlDeviceCreateGpuInstanceWithPlacement') - - global __nvmlGpuInstanceDestroy - __nvmlGpuInstanceDestroy = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceDestroy') - - global __nvmlDeviceGetGpuInstances - __nvmlDeviceGetGpuInstances = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGpuInstances') - - global __nvmlDeviceGetGpuInstanceById - __nvmlDeviceGetGpuInstanceById = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGpuInstanceById') - - global __nvmlGpuInstanceGetInfo - __nvmlGpuInstanceGetInfo = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetInfo') - - global __nvmlGpuInstanceGetComputeInstanceProfileInfoV - __nvmlGpuInstanceGetComputeInstanceProfileInfoV = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetComputeInstanceProfileInfoV') - - global __nvmlGpuInstanceGetComputeInstanceRemainingCapacity - __nvmlGpuInstanceGetComputeInstanceRemainingCapacity = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetComputeInstanceRemainingCapacity') - - global __nvmlGpuInstanceGetComputeInstancePossiblePlacements - __nvmlGpuInstanceGetComputeInstancePossiblePlacements = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetComputeInstancePossiblePlacements') - - global __nvmlGpuInstanceCreateComputeInstance - __nvmlGpuInstanceCreateComputeInstance = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceCreateComputeInstance') - - global __nvmlGpuInstanceCreateComputeInstanceWithPlacement - __nvmlGpuInstanceCreateComputeInstanceWithPlacement = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceCreateComputeInstanceWithPlacement') - - global __nvmlComputeInstanceDestroy - __nvmlComputeInstanceDestroy = _cyb_GetProcAddress(handle, 'nvmlComputeInstanceDestroy') - - global __nvmlGpuInstanceGetComputeInstances - __nvmlGpuInstanceGetComputeInstances = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetComputeInstances') - - global __nvmlGpuInstanceGetComputeInstanceById - __nvmlGpuInstanceGetComputeInstanceById = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetComputeInstanceById') - - global __nvmlComputeInstanceGetInfo_v2 - __nvmlComputeInstanceGetInfo_v2 = _cyb_GetProcAddress(handle, 'nvmlComputeInstanceGetInfo_v2') - - global __nvmlDeviceIsMigDeviceHandle - __nvmlDeviceIsMigDeviceHandle = _cyb_GetProcAddress(handle, 'nvmlDeviceIsMigDeviceHandle') - - global __nvmlDeviceGetGpuInstanceId - __nvmlDeviceGetGpuInstanceId = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGpuInstanceId') - - global __nvmlDeviceGetComputeInstanceId - __nvmlDeviceGetComputeInstanceId = _cyb_GetProcAddress(handle, 'nvmlDeviceGetComputeInstanceId') - - global __nvmlDeviceGetMaxMigDeviceCount - __nvmlDeviceGetMaxMigDeviceCount = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMaxMigDeviceCount') - - global __nvmlDeviceGetMigDeviceHandleByIndex - __nvmlDeviceGetMigDeviceHandleByIndex = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMigDeviceHandleByIndex') - - global __nvmlDeviceGetDeviceHandleFromMigDeviceHandle - __nvmlDeviceGetDeviceHandleFromMigDeviceHandle = _cyb_GetProcAddress(handle, 'nvmlDeviceGetDeviceHandleFromMigDeviceHandle') - - global __nvmlDeviceGetCapabilities - __nvmlDeviceGetCapabilities = _cyb_GetProcAddress(handle, 'nvmlDeviceGetCapabilities') - - global __nvmlDevicePowerSmoothingActivatePresetProfile - __nvmlDevicePowerSmoothingActivatePresetProfile = _cyb_GetProcAddress(handle, 'nvmlDevicePowerSmoothingActivatePresetProfile') - - global __nvmlDevicePowerSmoothingUpdatePresetProfileParam - __nvmlDevicePowerSmoothingUpdatePresetProfileParam = _cyb_GetProcAddress(handle, 'nvmlDevicePowerSmoothingUpdatePresetProfileParam') - - global __nvmlDevicePowerSmoothingSetState - __nvmlDevicePowerSmoothingSetState = _cyb_GetProcAddress(handle, 'nvmlDevicePowerSmoothingSetState') - - global __nvmlDeviceGetAddressingMode - __nvmlDeviceGetAddressingMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetAddressingMode') - - global __nvmlDeviceGetRepairStatus - __nvmlDeviceGetRepairStatus = _cyb_GetProcAddress(handle, 'nvmlDeviceGetRepairStatus') - - global __nvmlDeviceGetPowerMizerMode_v1 - __nvmlDeviceGetPowerMizerMode_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPowerMizerMode_v1') - - global __nvmlDeviceSetPowerMizerMode_v1 - __nvmlDeviceSetPowerMizerMode_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceSetPowerMizerMode_v1') - - global __nvmlDeviceGetPdi - __nvmlDeviceGetPdi = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPdi') - - global __nvmlDeviceSetHostname_v1 - __nvmlDeviceSetHostname_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceSetHostname_v1') - - global __nvmlDeviceGetHostname_v1 - __nvmlDeviceGetHostname_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetHostname_v1') - - global __nvmlDeviceGetNvLinkInfo - __nvmlDeviceGetNvLinkInfo = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNvLinkInfo') - - global __nvmlDeviceReadWritePRM_v1 - __nvmlDeviceReadWritePRM_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceReadWritePRM_v1') - - global __nvmlDeviceGetGpuInstanceProfileInfoByIdV - __nvmlDeviceGetGpuInstanceProfileInfoByIdV = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGpuInstanceProfileInfoByIdV') - - global __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts - __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts = _cyb_GetProcAddress(handle, 'nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts') - - global __nvmlDeviceGetUnrepairableMemoryFlag_v1 - __nvmlDeviceGetUnrepairableMemoryFlag_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetUnrepairableMemoryFlag_v1') - - global __nvmlDeviceReadPRMCounters_v1 - __nvmlDeviceReadPRMCounters_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceReadPRMCounters_v1') - - global __nvmlDeviceSetRusdSettings_v1 - __nvmlDeviceSetRusdSettings_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceSetRusdSettings_v1') - - global __nvmlDeviceVgpuForceGspUnload - __nvmlDeviceVgpuForceGspUnload = _cyb_GetProcAddress(handle, 'nvmlDeviceVgpuForceGspUnload') - - global __nvmlDeviceGetVgpuSchedulerState_v2 - __nvmlDeviceGetVgpuSchedulerState_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuSchedulerState_v2') - - global __nvmlGpuInstanceGetVgpuSchedulerState_v2 - __nvmlGpuInstanceGetVgpuSchedulerState_v2 = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetVgpuSchedulerState_v2') - - global __nvmlDeviceGetVgpuSchedulerLog_v2 - __nvmlDeviceGetVgpuSchedulerLog_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuSchedulerLog_v2') - - global __nvmlGpuInstanceGetVgpuSchedulerLog_v2 - __nvmlGpuInstanceGetVgpuSchedulerLog_v2 = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetVgpuSchedulerLog_v2') - - global __nvmlDeviceSetVgpuSchedulerState_v2 - __nvmlDeviceSetVgpuSchedulerState_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceSetVgpuSchedulerState_v2') - - global __nvmlGpuInstanceSetVgpuSchedulerState_v2 - __nvmlGpuInstanceSetVgpuSchedulerState_v2 = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceSetVgpuSchedulerState_v2') - - global __nvmlSystemGetCPER_v1 - __nvmlSystemGetCPER_v1 = _cyb_GetProcAddress(handle, 'nvmlSystemGetCPER_v1') - - global __nvmlDeviceGetBBXTimeData_v1 - __nvmlDeviceGetBBXTimeData_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetBBXTimeData_v1') - - global __nvmlDeviceGetAccountingStats_v2 - __nvmlDeviceGetAccountingStats_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetAccountingStats_v2') - - global __nvmlDeviceGetRemappedRows_v2 - __nvmlDeviceGetRemappedRows_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetRemappedRows_v2') - - global __nvmlDeviceSetAdaptiveTgpMode_v1 - __nvmlDeviceSetAdaptiveTgpMode_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceSetAdaptiveTgpMode_v1') - - global __nvmlDeviceGetAdaptiveTgpModeInfo_v1 - __nvmlDeviceGetAdaptiveTgpModeInfo_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetAdaptiveTgpModeInfo_v1') - - global __nvmlDeviceSetMemoryLimits_v1 - __nvmlDeviceSetMemoryLimits_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceSetMemoryLimits_v1') - - global __nvmlDeviceGetMemoryLimits_v1 - __nvmlDeviceGetMemoryLimits_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMemoryLimits_v1') - - global __nvmlDeviceGetGpuFabricInfo_v4 - __nvmlDeviceGetGpuFabricInfo_v4 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGpuFabricInfo_v4') - - global __nvmlDevicePerfMetricsGetSamples_v1 - __nvmlDevicePerfMetricsGetSamples_v1 = _cyb_GetProcAddress(handle, 'nvmlDevicePerfMetricsGetSamples_v1') - - global __nvmlDeviceSetNvlinkBwModeAsync_v1 - __nvmlDeviceSetNvlinkBwModeAsync_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceSetNvlinkBwModeAsync_v1') - - global __nvmlDeviceGetNvLinkTelemetrySamples_v1 - __nvmlDeviceGetNvLinkTelemetrySamples_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNvLinkTelemetrySamples_v1') - - global __nvmlEventSetRegisterGpuOperationalEvents_v1 - __nvmlEventSetRegisterGpuOperationalEvents_v1 = _cyb_GetProcAddress(handle, 'nvmlEventSetRegisterGpuOperationalEvents_v1') - - global __nvmlEventSetWait_v3 - __nvmlEventSetWait_v3 = _cyb_GetProcAddress(handle, 'nvmlEventSetWait_v3') - - global __nvmlEventSetGetContextCount_v1 - __nvmlEventSetGetContextCount_v1 = _cyb_GetProcAddress(handle, 'nvmlEventSetGetContextCount_v1') - - global __nvmlEventSetGetContextInfo_v1 - __nvmlEventSetGetContextInfo_v1 = _cyb_GetProcAddress(handle, 'nvmlEventSetGetContextInfo_v1') - - global __nvmlEventSetGetContextData_v1 - __nvmlEventSetGetContextData_v1 = _cyb_GetProcAddress(handle, 'nvmlEventSetGetContextData_v1') - - global __nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1 - __nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1 = _cyb_GetProcAddress(handle, 'nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1') - - global __nvmlDeviceGetBankRemapperStatus_v1 - __nvmlDeviceGetBankRemapperStatus_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetBankRemapperStatus_v1') - - global __nvmlDeviceGetGpuUptime_v1 - __nvmlDeviceGetGpuUptime_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGpuUptime_v1') - - global __nvmlSystemGetConfComputeSettings_v2 - __nvmlSystemGetConfComputeSettings_v2 = _cyb_GetProcAddress(handle, 'nvmlSystemGetConfComputeSettings_v2') - - global __nvmlDeviceGetNvLinkInfo_v3 - __nvmlDeviceGetNvLinkInfo_v3 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNvLinkInfo_v3') - - global __nvmlDeviceGetNvlinkRemapTableInfo_v1 - __nvmlDeviceGetNvlinkRemapTableInfo_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNvlinkRemapTableInfo_v1') - - global __nvmlDeviceSetNvlinkNvleReady_v1 - __nvmlDeviceSetNvlinkNvleReady_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceSetNvlinkNvleReady_v1') - - global __nvmlDeviceLockNvlinkRemapTable_v1 - __nvmlDeviceLockNvlinkRemapTable_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceLockNvlinkRemapTable_v1') - - global __nvmlDeviceSetupNvlinkNvleEncryptionKey_v1 - __nvmlDeviceSetupNvlinkNvleEncryptionKey_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceSetupNvlinkNvleEncryptionKey_v1') - - global __nvmlDeviceGetNvlinkNvlePrivateInfo_v1 - __nvmlDeviceGetNvlinkNvlePrivateInfo_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNvlinkNvlePrivateInfo_v1') - - _cyb_atomic_int_store(&_cyb___py_nvml_init, 1) - return 0 - -cdef inline int _check_or_init_nvml() except -1 nogil: - if _cyb_atomic_int_load(&_cyb___py_nvml_init): - return 0 - - return _init_nvml() - - -cpdef dict _inspect_function_pointers(): - global _cyb_func_ptrs - if _cyb_func_ptrs is not None: - return _cyb_func_ptrs +cpdef dict _inspect_function_pointers(): + global _cyb_func_ptrs + if _cyb_func_ptrs is not None: + return _cyb_func_ptrs _check_or_init_nvml() cdef dict data = {} - global __nvmlInit_v2 - data["__nvmlInit_v2"] = __nvmlInit_v2 - - global __nvmlInitWithFlags - data["__nvmlInitWithFlags"] = __nvmlInitWithFlags - - global __nvmlShutdown - data["__nvmlShutdown"] = __nvmlShutdown - - global __nvmlErrorString - data["__nvmlErrorString"] = __nvmlErrorString - - global __nvmlSystemGetDriverVersion - data["__nvmlSystemGetDriverVersion"] = __nvmlSystemGetDriverVersion - - global __nvmlSystemGetNVMLVersion - data["__nvmlSystemGetNVMLVersion"] = __nvmlSystemGetNVMLVersion - - global __nvmlSystemGetCudaDriverVersion - data["__nvmlSystemGetCudaDriverVersion"] = __nvmlSystemGetCudaDriverVersion - - global __nvmlSystemGetCudaDriverVersion_v2 - data["__nvmlSystemGetCudaDriverVersion_v2"] = __nvmlSystemGetCudaDriverVersion_v2 - - global __nvmlSystemGetProcessName - data["__nvmlSystemGetProcessName"] = __nvmlSystemGetProcessName - - global __nvmlSystemGetHicVersion - data["__nvmlSystemGetHicVersion"] = __nvmlSystemGetHicVersion - - global __nvmlSystemGetTopologyGpuSet - data["__nvmlSystemGetTopologyGpuSet"] = __nvmlSystemGetTopologyGpuSet - - global __nvmlSystemGetDriverBranch - data["__nvmlSystemGetDriverBranch"] = __nvmlSystemGetDriverBranch - - global __nvmlUnitGetCount - data["__nvmlUnitGetCount"] = __nvmlUnitGetCount - - global __nvmlUnitGetHandleByIndex - data["__nvmlUnitGetHandleByIndex"] = __nvmlUnitGetHandleByIndex - - global __nvmlUnitGetUnitInfo - data["__nvmlUnitGetUnitInfo"] = __nvmlUnitGetUnitInfo - - global __nvmlUnitGetLedState - data["__nvmlUnitGetLedState"] = __nvmlUnitGetLedState - - global __nvmlUnitGetPsuInfo - data["__nvmlUnitGetPsuInfo"] = __nvmlUnitGetPsuInfo - - global __nvmlUnitGetTemperature - data["__nvmlUnitGetTemperature"] = __nvmlUnitGetTemperature - - global __nvmlUnitGetFanSpeedInfo - data["__nvmlUnitGetFanSpeedInfo"] = __nvmlUnitGetFanSpeedInfo - - global __nvmlUnitGetDevices - data["__nvmlUnitGetDevices"] = __nvmlUnitGetDevices - - global __nvmlDeviceGetCount_v2 - data["__nvmlDeviceGetCount_v2"] = __nvmlDeviceGetCount_v2 - - global __nvmlDeviceGetAttributes_v2 - data["__nvmlDeviceGetAttributes_v2"] = __nvmlDeviceGetAttributes_v2 - - global __nvmlDeviceGetHandleByIndex_v2 - data["__nvmlDeviceGetHandleByIndex_v2"] = __nvmlDeviceGetHandleByIndex_v2 - - global __nvmlDeviceGetHandleBySerial - data["__nvmlDeviceGetHandleBySerial"] = __nvmlDeviceGetHandleBySerial - - global __nvmlDeviceGetHandleByUUID - data["__nvmlDeviceGetHandleByUUID"] = __nvmlDeviceGetHandleByUUID - - global __nvmlDeviceGetHandleByUUIDV - data["__nvmlDeviceGetHandleByUUIDV"] = __nvmlDeviceGetHandleByUUIDV - - global __nvmlDeviceGetHandleByPciBusId_v2 - data["__nvmlDeviceGetHandleByPciBusId_v2"] = __nvmlDeviceGetHandleByPciBusId_v2 - - global __nvmlDeviceGetName - data["__nvmlDeviceGetName"] = __nvmlDeviceGetName - - global __nvmlDeviceGetBrand - data["__nvmlDeviceGetBrand"] = __nvmlDeviceGetBrand - - global __nvmlDeviceGetIndex - data["__nvmlDeviceGetIndex"] = __nvmlDeviceGetIndex - - global __nvmlDeviceGetSerial - data["__nvmlDeviceGetSerial"] = __nvmlDeviceGetSerial - - global __nvmlDeviceGetModuleId - data["__nvmlDeviceGetModuleId"] = __nvmlDeviceGetModuleId - - global __nvmlDeviceGetC2cModeInfoV - data["__nvmlDeviceGetC2cModeInfoV"] = __nvmlDeviceGetC2cModeInfoV - - global __nvmlDeviceGetMemoryAffinity - data["__nvmlDeviceGetMemoryAffinity"] = __nvmlDeviceGetMemoryAffinity - - global __nvmlDeviceGetCpuAffinityWithinScope - data["__nvmlDeviceGetCpuAffinityWithinScope"] = __nvmlDeviceGetCpuAffinityWithinScope - - global __nvmlDeviceGetCpuAffinity - data["__nvmlDeviceGetCpuAffinity"] = __nvmlDeviceGetCpuAffinity - - global __nvmlDeviceSetCpuAffinity - data["__nvmlDeviceSetCpuAffinity"] = __nvmlDeviceSetCpuAffinity - - global __nvmlDeviceClearCpuAffinity - data["__nvmlDeviceClearCpuAffinity"] = __nvmlDeviceClearCpuAffinity - - global __nvmlDeviceGetNumaNodeId - data["__nvmlDeviceGetNumaNodeId"] = __nvmlDeviceGetNumaNodeId - - global __nvmlDeviceGetTopologyCommonAncestor - data["__nvmlDeviceGetTopologyCommonAncestor"] = __nvmlDeviceGetTopologyCommonAncestor - - global __nvmlDeviceGetTopologyNearestGpus - data["__nvmlDeviceGetTopologyNearestGpus"] = __nvmlDeviceGetTopologyNearestGpus - - global __nvmlDeviceGetP2PStatus - data["__nvmlDeviceGetP2PStatus"] = __nvmlDeviceGetP2PStatus - - global __nvmlDeviceGetUUID - data["__nvmlDeviceGetUUID"] = __nvmlDeviceGetUUID - - global __nvmlDeviceGetMinorNumber - data["__nvmlDeviceGetMinorNumber"] = __nvmlDeviceGetMinorNumber - - global __nvmlDeviceGetBoardPartNumber - data["__nvmlDeviceGetBoardPartNumber"] = __nvmlDeviceGetBoardPartNumber - - global __nvmlDeviceGetInforomVersion - data["__nvmlDeviceGetInforomVersion"] = __nvmlDeviceGetInforomVersion - - global __nvmlDeviceGetInforomImageVersion - data["__nvmlDeviceGetInforomImageVersion"] = __nvmlDeviceGetInforomImageVersion - - global __nvmlDeviceGetInforomConfigurationChecksum - data["__nvmlDeviceGetInforomConfigurationChecksum"] = __nvmlDeviceGetInforomConfigurationChecksum - - global __nvmlDeviceValidateInforom - data["__nvmlDeviceValidateInforom"] = __nvmlDeviceValidateInforom - - global __nvmlDeviceGetLastBBXFlushTime - data["__nvmlDeviceGetLastBBXFlushTime"] = __nvmlDeviceGetLastBBXFlushTime - - global __nvmlDeviceGetDisplayMode - data["__nvmlDeviceGetDisplayMode"] = __nvmlDeviceGetDisplayMode - - global __nvmlDeviceGetDisplayActive - data["__nvmlDeviceGetDisplayActive"] = __nvmlDeviceGetDisplayActive - - global __nvmlDeviceGetPersistenceMode - data["__nvmlDeviceGetPersistenceMode"] = __nvmlDeviceGetPersistenceMode - - global __nvmlDeviceGetPciInfoExt - data["__nvmlDeviceGetPciInfoExt"] = __nvmlDeviceGetPciInfoExt - - global __nvmlDeviceGetPciInfo_v3 - data["__nvmlDeviceGetPciInfo_v3"] = __nvmlDeviceGetPciInfo_v3 - - global __nvmlDeviceGetMaxPcieLinkGeneration - data["__nvmlDeviceGetMaxPcieLinkGeneration"] = __nvmlDeviceGetMaxPcieLinkGeneration - - global __nvmlDeviceGetGpuMaxPcieLinkGeneration - data["__nvmlDeviceGetGpuMaxPcieLinkGeneration"] = __nvmlDeviceGetGpuMaxPcieLinkGeneration - - global __nvmlDeviceGetMaxPcieLinkWidth - data["__nvmlDeviceGetMaxPcieLinkWidth"] = __nvmlDeviceGetMaxPcieLinkWidth - - global __nvmlDeviceGetCurrPcieLinkGeneration - data["__nvmlDeviceGetCurrPcieLinkGeneration"] = __nvmlDeviceGetCurrPcieLinkGeneration - - global __nvmlDeviceGetCurrPcieLinkWidth - data["__nvmlDeviceGetCurrPcieLinkWidth"] = __nvmlDeviceGetCurrPcieLinkWidth - - global __nvmlDeviceGetPcieThroughput - data["__nvmlDeviceGetPcieThroughput"] = __nvmlDeviceGetPcieThroughput - - global __nvmlDeviceGetPcieReplayCounter - data["__nvmlDeviceGetPcieReplayCounter"] = __nvmlDeviceGetPcieReplayCounter - - global __nvmlDeviceGetClockInfo - data["__nvmlDeviceGetClockInfo"] = __nvmlDeviceGetClockInfo - - global __nvmlDeviceGetMaxClockInfo - data["__nvmlDeviceGetMaxClockInfo"] = __nvmlDeviceGetMaxClockInfo - - global __nvmlDeviceGetGpcClkVfOffset - data["__nvmlDeviceGetGpcClkVfOffset"] = __nvmlDeviceGetGpcClkVfOffset - - global __nvmlDeviceGetClock - data["__nvmlDeviceGetClock"] = __nvmlDeviceGetClock - - global __nvmlDeviceGetMaxCustomerBoostClock - data["__nvmlDeviceGetMaxCustomerBoostClock"] = __nvmlDeviceGetMaxCustomerBoostClock - - global __nvmlDeviceGetSupportedMemoryClocks - data["__nvmlDeviceGetSupportedMemoryClocks"] = __nvmlDeviceGetSupportedMemoryClocks - - global __nvmlDeviceGetSupportedGraphicsClocks - data["__nvmlDeviceGetSupportedGraphicsClocks"] = __nvmlDeviceGetSupportedGraphicsClocks - - global __nvmlDeviceGetAutoBoostedClocksEnabled - data["__nvmlDeviceGetAutoBoostedClocksEnabled"] = __nvmlDeviceGetAutoBoostedClocksEnabled - - global __nvmlDeviceGetFanSpeed - data["__nvmlDeviceGetFanSpeed"] = __nvmlDeviceGetFanSpeed - - global __nvmlDeviceGetFanSpeed_v2 - data["__nvmlDeviceGetFanSpeed_v2"] = __nvmlDeviceGetFanSpeed_v2 - - global __nvmlDeviceGetFanSpeedRPM - data["__nvmlDeviceGetFanSpeedRPM"] = __nvmlDeviceGetFanSpeedRPM - - global __nvmlDeviceGetTargetFanSpeed - data["__nvmlDeviceGetTargetFanSpeed"] = __nvmlDeviceGetTargetFanSpeed - - global __nvmlDeviceGetMinMaxFanSpeed - data["__nvmlDeviceGetMinMaxFanSpeed"] = __nvmlDeviceGetMinMaxFanSpeed - - global __nvmlDeviceGetFanControlPolicy_v2 - data["__nvmlDeviceGetFanControlPolicy_v2"] = __nvmlDeviceGetFanControlPolicy_v2 - - global __nvmlDeviceGetNumFans - data["__nvmlDeviceGetNumFans"] = __nvmlDeviceGetNumFans - - global __nvmlDeviceGetCoolerInfo - data["__nvmlDeviceGetCoolerInfo"] = __nvmlDeviceGetCoolerInfo - - global __nvmlDeviceGetTemperatureV - data["__nvmlDeviceGetTemperatureV"] = __nvmlDeviceGetTemperatureV - - global __nvmlDeviceGetTemperatureThreshold - data["__nvmlDeviceGetTemperatureThreshold"] = __nvmlDeviceGetTemperatureThreshold - - global __nvmlDeviceGetMarginTemperature - data["__nvmlDeviceGetMarginTemperature"] = __nvmlDeviceGetMarginTemperature - - global __nvmlDeviceGetThermalSettings - data["__nvmlDeviceGetThermalSettings"] = __nvmlDeviceGetThermalSettings - - global __nvmlDeviceGetPerformanceState - data["__nvmlDeviceGetPerformanceState"] = __nvmlDeviceGetPerformanceState - - global __nvmlDeviceGetCurrentClocksEventReasons - data["__nvmlDeviceGetCurrentClocksEventReasons"] = __nvmlDeviceGetCurrentClocksEventReasons - - global __nvmlDeviceGetSupportedClocksEventReasons - data["__nvmlDeviceGetSupportedClocksEventReasons"] = __nvmlDeviceGetSupportedClocksEventReasons - - global __nvmlDeviceGetPowerState - data["__nvmlDeviceGetPowerState"] = __nvmlDeviceGetPowerState - - global __nvmlDeviceGetDynamicPstatesInfo - data["__nvmlDeviceGetDynamicPstatesInfo"] = __nvmlDeviceGetDynamicPstatesInfo - - global __nvmlDeviceGetMemClkVfOffset - data["__nvmlDeviceGetMemClkVfOffset"] = __nvmlDeviceGetMemClkVfOffset - - global __nvmlDeviceGetMinMaxClockOfPState - data["__nvmlDeviceGetMinMaxClockOfPState"] = __nvmlDeviceGetMinMaxClockOfPState - - global __nvmlDeviceGetSupportedPerformanceStates - data["__nvmlDeviceGetSupportedPerformanceStates"] = __nvmlDeviceGetSupportedPerformanceStates - - global __nvmlDeviceGetGpcClkMinMaxVfOffset - data["__nvmlDeviceGetGpcClkMinMaxVfOffset"] = __nvmlDeviceGetGpcClkMinMaxVfOffset - - global __nvmlDeviceGetMemClkMinMaxVfOffset - data["__nvmlDeviceGetMemClkMinMaxVfOffset"] = __nvmlDeviceGetMemClkMinMaxVfOffset - - global __nvmlDeviceGetClockOffsets - data["__nvmlDeviceGetClockOffsets"] = __nvmlDeviceGetClockOffsets - - global __nvmlDeviceSetClockOffsets - data["__nvmlDeviceSetClockOffsets"] = __nvmlDeviceSetClockOffsets - - global __nvmlDeviceGetPerformanceModes - data["__nvmlDeviceGetPerformanceModes"] = __nvmlDeviceGetPerformanceModes - - global __nvmlDeviceGetCurrentClockFreqs - data["__nvmlDeviceGetCurrentClockFreqs"] = __nvmlDeviceGetCurrentClockFreqs - - global __nvmlDeviceGetPowerManagementLimit - data["__nvmlDeviceGetPowerManagementLimit"] = __nvmlDeviceGetPowerManagementLimit - - global __nvmlDeviceGetPowerManagementLimitConstraints - data["__nvmlDeviceGetPowerManagementLimitConstraints"] = __nvmlDeviceGetPowerManagementLimitConstraints - - global __nvmlDeviceGetPowerManagementDefaultLimit - data["__nvmlDeviceGetPowerManagementDefaultLimit"] = __nvmlDeviceGetPowerManagementDefaultLimit - - global __nvmlDeviceGetPowerUsage - data["__nvmlDeviceGetPowerUsage"] = __nvmlDeviceGetPowerUsage - - global __nvmlDeviceGetTotalEnergyConsumption - data["__nvmlDeviceGetTotalEnergyConsumption"] = __nvmlDeviceGetTotalEnergyConsumption - - global __nvmlDeviceGetEnforcedPowerLimit - data["__nvmlDeviceGetEnforcedPowerLimit"] = __nvmlDeviceGetEnforcedPowerLimit - - global __nvmlDeviceGetGpuOperationMode - data["__nvmlDeviceGetGpuOperationMode"] = __nvmlDeviceGetGpuOperationMode - - global __nvmlDeviceGetMemoryInfo_v2 - data["__nvmlDeviceGetMemoryInfo_v2"] = __nvmlDeviceGetMemoryInfo_v2 - - global __nvmlDeviceGetComputeMode - data["__nvmlDeviceGetComputeMode"] = __nvmlDeviceGetComputeMode - - global __nvmlDeviceGetCudaComputeCapability - data["__nvmlDeviceGetCudaComputeCapability"] = __nvmlDeviceGetCudaComputeCapability - - global __nvmlDeviceGetDramEncryptionMode - data["__nvmlDeviceGetDramEncryptionMode"] = __nvmlDeviceGetDramEncryptionMode - - global __nvmlDeviceSetDramEncryptionMode - data["__nvmlDeviceSetDramEncryptionMode"] = __nvmlDeviceSetDramEncryptionMode - - global __nvmlDeviceGetEccMode - data["__nvmlDeviceGetEccMode"] = __nvmlDeviceGetEccMode - - global __nvmlDeviceGetDefaultEccMode - data["__nvmlDeviceGetDefaultEccMode"] = __nvmlDeviceGetDefaultEccMode - - global __nvmlDeviceGetBoardId - data["__nvmlDeviceGetBoardId"] = __nvmlDeviceGetBoardId - - global __nvmlDeviceGetMultiGpuBoard - data["__nvmlDeviceGetMultiGpuBoard"] = __nvmlDeviceGetMultiGpuBoard - - global __nvmlDeviceGetTotalEccErrors - data["__nvmlDeviceGetTotalEccErrors"] = __nvmlDeviceGetTotalEccErrors - - global __nvmlDeviceGetMemoryErrorCounter - data["__nvmlDeviceGetMemoryErrorCounter"] = __nvmlDeviceGetMemoryErrorCounter - - global __nvmlDeviceGetUtilizationRates - data["__nvmlDeviceGetUtilizationRates"] = __nvmlDeviceGetUtilizationRates - - global __nvmlDeviceGetEncoderUtilization - data["__nvmlDeviceGetEncoderUtilization"] = __nvmlDeviceGetEncoderUtilization - - global __nvmlDeviceGetEncoderCapacity - data["__nvmlDeviceGetEncoderCapacity"] = __nvmlDeviceGetEncoderCapacity - - global __nvmlDeviceGetEncoderStats - data["__nvmlDeviceGetEncoderStats"] = __nvmlDeviceGetEncoderStats - - global __nvmlDeviceGetEncoderSessions - data["__nvmlDeviceGetEncoderSessions"] = __nvmlDeviceGetEncoderSessions - - global __nvmlDeviceGetDecoderUtilization - data["__nvmlDeviceGetDecoderUtilization"] = __nvmlDeviceGetDecoderUtilization - - global __nvmlDeviceGetJpgUtilization - data["__nvmlDeviceGetJpgUtilization"] = __nvmlDeviceGetJpgUtilization - - global __nvmlDeviceGetOfaUtilization - data["__nvmlDeviceGetOfaUtilization"] = __nvmlDeviceGetOfaUtilization - - global __nvmlDeviceGetFBCStats - data["__nvmlDeviceGetFBCStats"] = __nvmlDeviceGetFBCStats - - global __nvmlDeviceGetFBCSessions - data["__nvmlDeviceGetFBCSessions"] = __nvmlDeviceGetFBCSessions - - global __nvmlDeviceGetDriverModel_v2 - data["__nvmlDeviceGetDriverModel_v2"] = __nvmlDeviceGetDriverModel_v2 - - global __nvmlDeviceGetVbiosVersion - data["__nvmlDeviceGetVbiosVersion"] = __nvmlDeviceGetVbiosVersion - - global __nvmlDeviceGetBridgeChipInfo - data["__nvmlDeviceGetBridgeChipInfo"] = __nvmlDeviceGetBridgeChipInfo - - global __nvmlDeviceGetComputeRunningProcesses_v3 - data["__nvmlDeviceGetComputeRunningProcesses_v3"] = __nvmlDeviceGetComputeRunningProcesses_v3 - - global __nvmlDeviceGetGraphicsRunningProcesses_v3 - data["__nvmlDeviceGetGraphicsRunningProcesses_v3"] = __nvmlDeviceGetGraphicsRunningProcesses_v3 - - global __nvmlDeviceGetMPSComputeRunningProcesses_v3 - data["__nvmlDeviceGetMPSComputeRunningProcesses_v3"] = __nvmlDeviceGetMPSComputeRunningProcesses_v3 - - global __nvmlDeviceGetRunningProcessDetailList - data["__nvmlDeviceGetRunningProcessDetailList"] = __nvmlDeviceGetRunningProcessDetailList - - global __nvmlDeviceOnSameBoard - data["__nvmlDeviceOnSameBoard"] = __nvmlDeviceOnSameBoard - - global __nvmlDeviceGetAPIRestriction - data["__nvmlDeviceGetAPIRestriction"] = __nvmlDeviceGetAPIRestriction - - global __nvmlDeviceGetSamples - data["__nvmlDeviceGetSamples"] = __nvmlDeviceGetSamples - - global __nvmlDeviceGetBAR1MemoryInfo - data["__nvmlDeviceGetBAR1MemoryInfo"] = __nvmlDeviceGetBAR1MemoryInfo - - global __nvmlDeviceGetIrqNum - data["__nvmlDeviceGetIrqNum"] = __nvmlDeviceGetIrqNum - - global __nvmlDeviceGetNumGpuCores - data["__nvmlDeviceGetNumGpuCores"] = __nvmlDeviceGetNumGpuCores - - global __nvmlDeviceGetPowerSource - data["__nvmlDeviceGetPowerSource"] = __nvmlDeviceGetPowerSource - - global __nvmlDeviceGetMemoryBusWidth - data["__nvmlDeviceGetMemoryBusWidth"] = __nvmlDeviceGetMemoryBusWidth - - global __nvmlDeviceGetPcieLinkMaxSpeed - data["__nvmlDeviceGetPcieLinkMaxSpeed"] = __nvmlDeviceGetPcieLinkMaxSpeed - - global __nvmlDeviceGetPcieSpeed - data["__nvmlDeviceGetPcieSpeed"] = __nvmlDeviceGetPcieSpeed - - global __nvmlDeviceGetAdaptiveClockInfoStatus - data["__nvmlDeviceGetAdaptiveClockInfoStatus"] = __nvmlDeviceGetAdaptiveClockInfoStatus - - global __nvmlDeviceGetBusType - data["__nvmlDeviceGetBusType"] = __nvmlDeviceGetBusType - - global __nvmlDeviceGetGpuFabricInfoV - data["__nvmlDeviceGetGpuFabricInfoV"] = __nvmlDeviceGetGpuFabricInfoV - - global __nvmlSystemGetConfComputeCapabilities - data["__nvmlSystemGetConfComputeCapabilities"] = __nvmlSystemGetConfComputeCapabilities - - global __nvmlSystemGetConfComputeState - data["__nvmlSystemGetConfComputeState"] = __nvmlSystemGetConfComputeState - - global __nvmlDeviceGetConfComputeMemSizeInfo - data["__nvmlDeviceGetConfComputeMemSizeInfo"] = __nvmlDeviceGetConfComputeMemSizeInfo - - global __nvmlSystemGetConfComputeGpusReadyState - data["__nvmlSystemGetConfComputeGpusReadyState"] = __nvmlSystemGetConfComputeGpusReadyState - - global __nvmlDeviceGetConfComputeProtectedMemoryUsage - data["__nvmlDeviceGetConfComputeProtectedMemoryUsage"] = __nvmlDeviceGetConfComputeProtectedMemoryUsage - - global __nvmlDeviceGetConfComputeGpuCertificate - data["__nvmlDeviceGetConfComputeGpuCertificate"] = __nvmlDeviceGetConfComputeGpuCertificate - - global __nvmlDeviceGetConfComputeGpuAttestationReport - data["__nvmlDeviceGetConfComputeGpuAttestationReport"] = __nvmlDeviceGetConfComputeGpuAttestationReport - - global __nvmlSystemGetConfComputeKeyRotationThresholdInfo - data["__nvmlSystemGetConfComputeKeyRotationThresholdInfo"] = __nvmlSystemGetConfComputeKeyRotationThresholdInfo - - global __nvmlDeviceSetConfComputeUnprotectedMemSize - data["__nvmlDeviceSetConfComputeUnprotectedMemSize"] = __nvmlDeviceSetConfComputeUnprotectedMemSize - - global __nvmlSystemSetConfComputeGpusReadyState - data["__nvmlSystemSetConfComputeGpusReadyState"] = __nvmlSystemSetConfComputeGpusReadyState - - global __nvmlSystemSetConfComputeKeyRotationThresholdInfo - data["__nvmlSystemSetConfComputeKeyRotationThresholdInfo"] = __nvmlSystemSetConfComputeKeyRotationThresholdInfo - - global __nvmlSystemGetConfComputeSettings - data["__nvmlSystemGetConfComputeSettings"] = __nvmlSystemGetConfComputeSettings - - global __nvmlDeviceGetGspFirmwareVersion - data["__nvmlDeviceGetGspFirmwareVersion"] = __nvmlDeviceGetGspFirmwareVersion - - global __nvmlDeviceGetGspFirmwareMode - data["__nvmlDeviceGetGspFirmwareMode"] = __nvmlDeviceGetGspFirmwareMode - - global __nvmlDeviceGetSramEccErrorStatus - data["__nvmlDeviceGetSramEccErrorStatus"] = __nvmlDeviceGetSramEccErrorStatus - - global __nvmlDeviceGetAccountingMode - data["__nvmlDeviceGetAccountingMode"] = __nvmlDeviceGetAccountingMode - - global __nvmlDeviceGetAccountingStats - data["__nvmlDeviceGetAccountingStats"] = __nvmlDeviceGetAccountingStats - - global __nvmlDeviceGetAccountingPids - data["__nvmlDeviceGetAccountingPids"] = __nvmlDeviceGetAccountingPids - - global __nvmlDeviceGetAccountingBufferSize - data["__nvmlDeviceGetAccountingBufferSize"] = __nvmlDeviceGetAccountingBufferSize - - global __nvmlDeviceGetRetiredPages - data["__nvmlDeviceGetRetiredPages"] = __nvmlDeviceGetRetiredPages - - global __nvmlDeviceGetRetiredPages_v2 - data["__nvmlDeviceGetRetiredPages_v2"] = __nvmlDeviceGetRetiredPages_v2 - - global __nvmlDeviceGetRetiredPagesPendingStatus - data["__nvmlDeviceGetRetiredPagesPendingStatus"] = __nvmlDeviceGetRetiredPagesPendingStatus - - global __nvmlDeviceGetRemappedRows - data["__nvmlDeviceGetRemappedRows"] = __nvmlDeviceGetRemappedRows - - global __nvmlDeviceGetRowRemapperHistogram - data["__nvmlDeviceGetRowRemapperHistogram"] = __nvmlDeviceGetRowRemapperHistogram - - global __nvmlDeviceGetArchitecture - data["__nvmlDeviceGetArchitecture"] = __nvmlDeviceGetArchitecture - - global __nvmlDeviceGetClkMonStatus - data["__nvmlDeviceGetClkMonStatus"] = __nvmlDeviceGetClkMonStatus - - global __nvmlDeviceGetProcessUtilization - data["__nvmlDeviceGetProcessUtilization"] = __nvmlDeviceGetProcessUtilization - - global __nvmlDeviceGetProcessesUtilizationInfo - data["__nvmlDeviceGetProcessesUtilizationInfo"] = __nvmlDeviceGetProcessesUtilizationInfo - - global __nvmlDeviceGetPlatformInfo - data["__nvmlDeviceGetPlatformInfo"] = __nvmlDeviceGetPlatformInfo - - global __nvmlUnitSetLedState - data["__nvmlUnitSetLedState"] = __nvmlUnitSetLedState - - global __nvmlDeviceSetPersistenceMode - data["__nvmlDeviceSetPersistenceMode"] = __nvmlDeviceSetPersistenceMode - - global __nvmlDeviceSetComputeMode - data["__nvmlDeviceSetComputeMode"] = __nvmlDeviceSetComputeMode - - global __nvmlDeviceSetEccMode - data["__nvmlDeviceSetEccMode"] = __nvmlDeviceSetEccMode - - global __nvmlDeviceClearEccErrorCounts - data["__nvmlDeviceClearEccErrorCounts"] = __nvmlDeviceClearEccErrorCounts - - global __nvmlDeviceSetDriverModel - data["__nvmlDeviceSetDriverModel"] = __nvmlDeviceSetDriverModel - - global __nvmlDeviceSetGpuLockedClocks - data["__nvmlDeviceSetGpuLockedClocks"] = __nvmlDeviceSetGpuLockedClocks - - global __nvmlDeviceResetGpuLockedClocks - data["__nvmlDeviceResetGpuLockedClocks"] = __nvmlDeviceResetGpuLockedClocks - - global __nvmlDeviceSetMemoryLockedClocks - data["__nvmlDeviceSetMemoryLockedClocks"] = __nvmlDeviceSetMemoryLockedClocks - - global __nvmlDeviceResetMemoryLockedClocks - data["__nvmlDeviceResetMemoryLockedClocks"] = __nvmlDeviceResetMemoryLockedClocks - - global __nvmlDeviceSetAutoBoostedClocksEnabled - data["__nvmlDeviceSetAutoBoostedClocksEnabled"] = __nvmlDeviceSetAutoBoostedClocksEnabled - - global __nvmlDeviceSetDefaultAutoBoostedClocksEnabled - data["__nvmlDeviceSetDefaultAutoBoostedClocksEnabled"] = __nvmlDeviceSetDefaultAutoBoostedClocksEnabled - - global __nvmlDeviceSetDefaultFanSpeed_v2 - data["__nvmlDeviceSetDefaultFanSpeed_v2"] = __nvmlDeviceSetDefaultFanSpeed_v2 - - global __nvmlDeviceSetFanControlPolicy - data["__nvmlDeviceSetFanControlPolicy"] = __nvmlDeviceSetFanControlPolicy - - global __nvmlDeviceSetTemperatureThreshold - data["__nvmlDeviceSetTemperatureThreshold"] = __nvmlDeviceSetTemperatureThreshold - - global __nvmlDeviceSetGpuOperationMode - data["__nvmlDeviceSetGpuOperationMode"] = __nvmlDeviceSetGpuOperationMode - - global __nvmlDeviceSetAPIRestriction - data["__nvmlDeviceSetAPIRestriction"] = __nvmlDeviceSetAPIRestriction - - global __nvmlDeviceSetFanSpeed_v2 - data["__nvmlDeviceSetFanSpeed_v2"] = __nvmlDeviceSetFanSpeed_v2 - - global __nvmlDeviceSetAccountingMode - data["__nvmlDeviceSetAccountingMode"] = __nvmlDeviceSetAccountingMode - - global __nvmlDeviceClearAccountingPids - data["__nvmlDeviceClearAccountingPids"] = __nvmlDeviceClearAccountingPids - - global __nvmlDeviceSetPowerManagementLimit_v2 - data["__nvmlDeviceSetPowerManagementLimit_v2"] = __nvmlDeviceSetPowerManagementLimit_v2 - - global __nvmlDeviceGetNvLinkState - data["__nvmlDeviceGetNvLinkState"] = __nvmlDeviceGetNvLinkState - - global __nvmlDeviceGetNvLinkVersion - data["__nvmlDeviceGetNvLinkVersion"] = __nvmlDeviceGetNvLinkVersion - - global __nvmlDeviceGetNvLinkCapability - data["__nvmlDeviceGetNvLinkCapability"] = __nvmlDeviceGetNvLinkCapability - - global __nvmlDeviceGetNvLinkRemotePciInfo_v2 - data["__nvmlDeviceGetNvLinkRemotePciInfo_v2"] = __nvmlDeviceGetNvLinkRemotePciInfo_v2 - - global __nvmlDeviceGetNvLinkErrorCounter - data["__nvmlDeviceGetNvLinkErrorCounter"] = __nvmlDeviceGetNvLinkErrorCounter - - global __nvmlDeviceResetNvLinkErrorCounters - data["__nvmlDeviceResetNvLinkErrorCounters"] = __nvmlDeviceResetNvLinkErrorCounters - - global __nvmlDeviceGetNvLinkRemoteDeviceType - data["__nvmlDeviceGetNvLinkRemoteDeviceType"] = __nvmlDeviceGetNvLinkRemoteDeviceType - - global __nvmlDeviceSetNvLinkDeviceLowPowerThreshold - data["__nvmlDeviceSetNvLinkDeviceLowPowerThreshold"] = __nvmlDeviceSetNvLinkDeviceLowPowerThreshold - - global __nvmlSystemSetNvlinkBwMode - data["__nvmlSystemSetNvlinkBwMode"] = __nvmlSystemSetNvlinkBwMode - - global __nvmlSystemGetNvlinkBwMode - data["__nvmlSystemGetNvlinkBwMode"] = __nvmlSystemGetNvlinkBwMode - - global __nvmlDeviceGetNvlinkSupportedBwModes - data["__nvmlDeviceGetNvlinkSupportedBwModes"] = __nvmlDeviceGetNvlinkSupportedBwModes - - global __nvmlDeviceGetNvlinkBwMode - data["__nvmlDeviceGetNvlinkBwMode"] = __nvmlDeviceGetNvlinkBwMode - - global __nvmlDeviceSetNvlinkBwMode - data["__nvmlDeviceSetNvlinkBwMode"] = __nvmlDeviceSetNvlinkBwMode - - global __nvmlEventSetCreate - data["__nvmlEventSetCreate"] = __nvmlEventSetCreate - - global __nvmlDeviceRegisterEvents - data["__nvmlDeviceRegisterEvents"] = __nvmlDeviceRegisterEvents - - global __nvmlDeviceGetSupportedEventTypes - data["__nvmlDeviceGetSupportedEventTypes"] = __nvmlDeviceGetSupportedEventTypes - - global __nvmlEventSetWait_v2 - data["__nvmlEventSetWait_v2"] = __nvmlEventSetWait_v2 - - global __nvmlEventSetFree - data["__nvmlEventSetFree"] = __nvmlEventSetFree - - global __nvmlSystemEventSetCreate - data["__nvmlSystemEventSetCreate"] = __nvmlSystemEventSetCreate - - global __nvmlSystemEventSetFree - data["__nvmlSystemEventSetFree"] = __nvmlSystemEventSetFree - - global __nvmlSystemRegisterEvents - data["__nvmlSystemRegisterEvents"] = __nvmlSystemRegisterEvents - - global __nvmlSystemEventSetWait - data["__nvmlSystemEventSetWait"] = __nvmlSystemEventSetWait - - global __nvmlDeviceModifyDrainState - data["__nvmlDeviceModifyDrainState"] = __nvmlDeviceModifyDrainState - - global __nvmlDeviceQueryDrainState - data["__nvmlDeviceQueryDrainState"] = __nvmlDeviceQueryDrainState - - global __nvmlDeviceRemoveGpu_v2 - data["__nvmlDeviceRemoveGpu_v2"] = __nvmlDeviceRemoveGpu_v2 - - global __nvmlDeviceDiscoverGpus - data["__nvmlDeviceDiscoverGpus"] = __nvmlDeviceDiscoverGpus - - global __nvmlDeviceGetFieldValues - data["__nvmlDeviceGetFieldValues"] = __nvmlDeviceGetFieldValues - - global __nvmlDeviceClearFieldValues - data["__nvmlDeviceClearFieldValues"] = __nvmlDeviceClearFieldValues - - global __nvmlDeviceGetVirtualizationMode - data["__nvmlDeviceGetVirtualizationMode"] = __nvmlDeviceGetVirtualizationMode - - global __nvmlDeviceGetHostVgpuMode - data["__nvmlDeviceGetHostVgpuMode"] = __nvmlDeviceGetHostVgpuMode - - global __nvmlDeviceSetVirtualizationMode - data["__nvmlDeviceSetVirtualizationMode"] = __nvmlDeviceSetVirtualizationMode - - global __nvmlDeviceGetVgpuHeterogeneousMode - data["__nvmlDeviceGetVgpuHeterogeneousMode"] = __nvmlDeviceGetVgpuHeterogeneousMode - - global __nvmlDeviceSetVgpuHeterogeneousMode - data["__nvmlDeviceSetVgpuHeterogeneousMode"] = __nvmlDeviceSetVgpuHeterogeneousMode - - global __nvmlVgpuInstanceGetPlacementId - data["__nvmlVgpuInstanceGetPlacementId"] = __nvmlVgpuInstanceGetPlacementId - - global __nvmlDeviceGetVgpuTypeSupportedPlacements - data["__nvmlDeviceGetVgpuTypeSupportedPlacements"] = __nvmlDeviceGetVgpuTypeSupportedPlacements - - global __nvmlDeviceGetVgpuTypeCreatablePlacements - data["__nvmlDeviceGetVgpuTypeCreatablePlacements"] = __nvmlDeviceGetVgpuTypeCreatablePlacements - - global __nvmlVgpuTypeGetGspHeapSize - data["__nvmlVgpuTypeGetGspHeapSize"] = __nvmlVgpuTypeGetGspHeapSize - - global __nvmlVgpuTypeGetFbReservation - data["__nvmlVgpuTypeGetFbReservation"] = __nvmlVgpuTypeGetFbReservation - - global __nvmlVgpuInstanceGetRuntimeStateSize - data["__nvmlVgpuInstanceGetRuntimeStateSize"] = __nvmlVgpuInstanceGetRuntimeStateSize - - global __nvmlDeviceSetVgpuCapabilities - data["__nvmlDeviceSetVgpuCapabilities"] = __nvmlDeviceSetVgpuCapabilities - - global __nvmlDeviceGetGridLicensableFeatures_v4 - data["__nvmlDeviceGetGridLicensableFeatures_v4"] = __nvmlDeviceGetGridLicensableFeatures_v4 - - global __nvmlGetVgpuDriverCapabilities - data["__nvmlGetVgpuDriverCapabilities"] = __nvmlGetVgpuDriverCapabilities - - global __nvmlDeviceGetVgpuCapabilities - data["__nvmlDeviceGetVgpuCapabilities"] = __nvmlDeviceGetVgpuCapabilities - - global __nvmlDeviceGetSupportedVgpus - data["__nvmlDeviceGetSupportedVgpus"] = __nvmlDeviceGetSupportedVgpus - - global __nvmlDeviceGetCreatableVgpus - data["__nvmlDeviceGetCreatableVgpus"] = __nvmlDeviceGetCreatableVgpus - - global __nvmlVgpuTypeGetClass - data["__nvmlVgpuTypeGetClass"] = __nvmlVgpuTypeGetClass - - global __nvmlVgpuTypeGetName - data["__nvmlVgpuTypeGetName"] = __nvmlVgpuTypeGetName - - global __nvmlVgpuTypeGetGpuInstanceProfileId - data["__nvmlVgpuTypeGetGpuInstanceProfileId"] = __nvmlVgpuTypeGetGpuInstanceProfileId - - global __nvmlVgpuTypeGetDeviceID - data["__nvmlVgpuTypeGetDeviceID"] = __nvmlVgpuTypeGetDeviceID - - global __nvmlVgpuTypeGetFramebufferSize - data["__nvmlVgpuTypeGetFramebufferSize"] = __nvmlVgpuTypeGetFramebufferSize - - global __nvmlVgpuTypeGetNumDisplayHeads - data["__nvmlVgpuTypeGetNumDisplayHeads"] = __nvmlVgpuTypeGetNumDisplayHeads - - global __nvmlVgpuTypeGetResolution - data["__nvmlVgpuTypeGetResolution"] = __nvmlVgpuTypeGetResolution - - global __nvmlVgpuTypeGetLicense - data["__nvmlVgpuTypeGetLicense"] = __nvmlVgpuTypeGetLicense - - global __nvmlVgpuTypeGetFrameRateLimit - data["__nvmlVgpuTypeGetFrameRateLimit"] = __nvmlVgpuTypeGetFrameRateLimit - - global __nvmlVgpuTypeGetMaxInstances - data["__nvmlVgpuTypeGetMaxInstances"] = __nvmlVgpuTypeGetMaxInstances - - global __nvmlVgpuTypeGetMaxInstancesPerVm - data["__nvmlVgpuTypeGetMaxInstancesPerVm"] = __nvmlVgpuTypeGetMaxInstancesPerVm - - global __nvmlVgpuTypeGetBAR1Info - data["__nvmlVgpuTypeGetBAR1Info"] = __nvmlVgpuTypeGetBAR1Info - - global __nvmlDeviceGetActiveVgpus - data["__nvmlDeviceGetActiveVgpus"] = __nvmlDeviceGetActiveVgpus - - global __nvmlVgpuInstanceGetVmID - data["__nvmlVgpuInstanceGetVmID"] = __nvmlVgpuInstanceGetVmID - - global __nvmlVgpuInstanceGetUUID - data["__nvmlVgpuInstanceGetUUID"] = __nvmlVgpuInstanceGetUUID - - global __nvmlVgpuInstanceGetVmDriverVersion - data["__nvmlVgpuInstanceGetVmDriverVersion"] = __nvmlVgpuInstanceGetVmDriverVersion - - global __nvmlVgpuInstanceGetFbUsage - data["__nvmlVgpuInstanceGetFbUsage"] = __nvmlVgpuInstanceGetFbUsage - - global __nvmlVgpuInstanceGetLicenseStatus - data["__nvmlVgpuInstanceGetLicenseStatus"] = __nvmlVgpuInstanceGetLicenseStatus - - global __nvmlVgpuInstanceGetType - data["__nvmlVgpuInstanceGetType"] = __nvmlVgpuInstanceGetType - - global __nvmlVgpuInstanceGetFrameRateLimit - data["__nvmlVgpuInstanceGetFrameRateLimit"] = __nvmlVgpuInstanceGetFrameRateLimit - - global __nvmlVgpuInstanceGetEccMode - data["__nvmlVgpuInstanceGetEccMode"] = __nvmlVgpuInstanceGetEccMode - - global __nvmlVgpuInstanceGetEncoderCapacity - data["__nvmlVgpuInstanceGetEncoderCapacity"] = __nvmlVgpuInstanceGetEncoderCapacity - - global __nvmlVgpuInstanceSetEncoderCapacity - data["__nvmlVgpuInstanceSetEncoderCapacity"] = __nvmlVgpuInstanceSetEncoderCapacity - - global __nvmlVgpuInstanceGetEncoderStats - data["__nvmlVgpuInstanceGetEncoderStats"] = __nvmlVgpuInstanceGetEncoderStats - - global __nvmlVgpuInstanceGetEncoderSessions - data["__nvmlVgpuInstanceGetEncoderSessions"] = __nvmlVgpuInstanceGetEncoderSessions - - global __nvmlVgpuInstanceGetFBCStats - data["__nvmlVgpuInstanceGetFBCStats"] = __nvmlVgpuInstanceGetFBCStats - - global __nvmlVgpuInstanceGetFBCSessions - data["__nvmlVgpuInstanceGetFBCSessions"] = __nvmlVgpuInstanceGetFBCSessions - - global __nvmlVgpuInstanceGetGpuInstanceId - data["__nvmlVgpuInstanceGetGpuInstanceId"] = __nvmlVgpuInstanceGetGpuInstanceId - - global __nvmlVgpuInstanceGetGpuPciId - data["__nvmlVgpuInstanceGetGpuPciId"] = __nvmlVgpuInstanceGetGpuPciId - - global __nvmlVgpuTypeGetCapabilities - data["__nvmlVgpuTypeGetCapabilities"] = __nvmlVgpuTypeGetCapabilities - - global __nvmlVgpuInstanceGetMdevUUID - data["__nvmlVgpuInstanceGetMdevUUID"] = __nvmlVgpuInstanceGetMdevUUID - - global __nvmlGpuInstanceGetCreatableVgpus - data["__nvmlGpuInstanceGetCreatableVgpus"] = __nvmlGpuInstanceGetCreatableVgpus - - global __nvmlVgpuTypeGetMaxInstancesPerGpuInstance - data["__nvmlVgpuTypeGetMaxInstancesPerGpuInstance"] = __nvmlVgpuTypeGetMaxInstancesPerGpuInstance - - global __nvmlGpuInstanceGetActiveVgpus - data["__nvmlGpuInstanceGetActiveVgpus"] = __nvmlGpuInstanceGetActiveVgpus - - global __nvmlGpuInstanceSetVgpuSchedulerState - data["__nvmlGpuInstanceSetVgpuSchedulerState"] = __nvmlGpuInstanceSetVgpuSchedulerState - - global __nvmlGpuInstanceGetVgpuSchedulerState - data["__nvmlGpuInstanceGetVgpuSchedulerState"] = __nvmlGpuInstanceGetVgpuSchedulerState - - global __nvmlGpuInstanceGetVgpuSchedulerLog - data["__nvmlGpuInstanceGetVgpuSchedulerLog"] = __nvmlGpuInstanceGetVgpuSchedulerLog - - global __nvmlGpuInstanceGetVgpuTypeCreatablePlacements - data["__nvmlGpuInstanceGetVgpuTypeCreatablePlacements"] = __nvmlGpuInstanceGetVgpuTypeCreatablePlacements - - global __nvmlGpuInstanceGetVgpuHeterogeneousMode - data["__nvmlGpuInstanceGetVgpuHeterogeneousMode"] = __nvmlGpuInstanceGetVgpuHeterogeneousMode - - global __nvmlGpuInstanceSetVgpuHeterogeneousMode - data["__nvmlGpuInstanceSetVgpuHeterogeneousMode"] = __nvmlGpuInstanceSetVgpuHeterogeneousMode - - global __nvmlVgpuInstanceGetMetadata - data["__nvmlVgpuInstanceGetMetadata"] = __nvmlVgpuInstanceGetMetadata - - global __nvmlDeviceGetVgpuMetadata - data["__nvmlDeviceGetVgpuMetadata"] = __nvmlDeviceGetVgpuMetadata - - global __nvmlGetVgpuCompatibility - data["__nvmlGetVgpuCompatibility"] = __nvmlGetVgpuCompatibility - - global __nvmlDeviceGetPgpuMetadataString - data["__nvmlDeviceGetPgpuMetadataString"] = __nvmlDeviceGetPgpuMetadataString - - global __nvmlDeviceGetVgpuSchedulerLog - data["__nvmlDeviceGetVgpuSchedulerLog"] = __nvmlDeviceGetVgpuSchedulerLog - - global __nvmlDeviceGetVgpuSchedulerState - data["__nvmlDeviceGetVgpuSchedulerState"] = __nvmlDeviceGetVgpuSchedulerState - - global __nvmlDeviceGetVgpuSchedulerCapabilities - data["__nvmlDeviceGetVgpuSchedulerCapabilities"] = __nvmlDeviceGetVgpuSchedulerCapabilities - - global __nvmlDeviceSetVgpuSchedulerState - data["__nvmlDeviceSetVgpuSchedulerState"] = __nvmlDeviceSetVgpuSchedulerState - - global __nvmlGetVgpuVersion - data["__nvmlGetVgpuVersion"] = __nvmlGetVgpuVersion - - global __nvmlSetVgpuVersion - data["__nvmlSetVgpuVersion"] = __nvmlSetVgpuVersion - - global __nvmlDeviceGetVgpuUtilization - data["__nvmlDeviceGetVgpuUtilization"] = __nvmlDeviceGetVgpuUtilization - - global __nvmlDeviceGetVgpuInstancesUtilizationInfo - data["__nvmlDeviceGetVgpuInstancesUtilizationInfo"] = __nvmlDeviceGetVgpuInstancesUtilizationInfo - - global __nvmlDeviceGetVgpuProcessUtilization - data["__nvmlDeviceGetVgpuProcessUtilization"] = __nvmlDeviceGetVgpuProcessUtilization - - global __nvmlDeviceGetVgpuProcessesUtilizationInfo - data["__nvmlDeviceGetVgpuProcessesUtilizationInfo"] = __nvmlDeviceGetVgpuProcessesUtilizationInfo - - global __nvmlVgpuInstanceGetAccountingMode - data["__nvmlVgpuInstanceGetAccountingMode"] = __nvmlVgpuInstanceGetAccountingMode - - global __nvmlVgpuInstanceGetAccountingPids - data["__nvmlVgpuInstanceGetAccountingPids"] = __nvmlVgpuInstanceGetAccountingPids - - global __nvmlVgpuInstanceGetAccountingStats - data["__nvmlVgpuInstanceGetAccountingStats"] = __nvmlVgpuInstanceGetAccountingStats - - global __nvmlVgpuInstanceClearAccountingPids - data["__nvmlVgpuInstanceClearAccountingPids"] = __nvmlVgpuInstanceClearAccountingPids - - global __nvmlVgpuInstanceGetLicenseInfo_v2 - data["__nvmlVgpuInstanceGetLicenseInfo_v2"] = __nvmlVgpuInstanceGetLicenseInfo_v2 - - global __nvmlGetExcludedDeviceCount - data["__nvmlGetExcludedDeviceCount"] = __nvmlGetExcludedDeviceCount - - global __nvmlGetExcludedDeviceInfoByIndex - data["__nvmlGetExcludedDeviceInfoByIndex"] = __nvmlGetExcludedDeviceInfoByIndex - - global __nvmlDeviceSetMigMode - data["__nvmlDeviceSetMigMode"] = __nvmlDeviceSetMigMode - - global __nvmlDeviceGetMigMode - data["__nvmlDeviceGetMigMode"] = __nvmlDeviceGetMigMode - - global __nvmlDeviceGetGpuInstanceProfileInfoV - data["__nvmlDeviceGetGpuInstanceProfileInfoV"] = __nvmlDeviceGetGpuInstanceProfileInfoV - - global __nvmlDeviceGetGpuInstancePossiblePlacements_v2 - data["__nvmlDeviceGetGpuInstancePossiblePlacements_v2"] = __nvmlDeviceGetGpuInstancePossiblePlacements_v2 - - global __nvmlDeviceGetGpuInstanceRemainingCapacity - data["__nvmlDeviceGetGpuInstanceRemainingCapacity"] = __nvmlDeviceGetGpuInstanceRemainingCapacity - - global __nvmlDeviceCreateGpuInstance - data["__nvmlDeviceCreateGpuInstance"] = __nvmlDeviceCreateGpuInstance - - global __nvmlDeviceCreateGpuInstanceWithPlacement - data["__nvmlDeviceCreateGpuInstanceWithPlacement"] = __nvmlDeviceCreateGpuInstanceWithPlacement - - global __nvmlGpuInstanceDestroy - data["__nvmlGpuInstanceDestroy"] = __nvmlGpuInstanceDestroy - - global __nvmlDeviceGetGpuInstances - data["__nvmlDeviceGetGpuInstances"] = __nvmlDeviceGetGpuInstances - - global __nvmlDeviceGetGpuInstanceById - data["__nvmlDeviceGetGpuInstanceById"] = __nvmlDeviceGetGpuInstanceById - - global __nvmlGpuInstanceGetInfo - data["__nvmlGpuInstanceGetInfo"] = __nvmlGpuInstanceGetInfo - - global __nvmlGpuInstanceGetComputeInstanceProfileInfoV - data["__nvmlGpuInstanceGetComputeInstanceProfileInfoV"] = __nvmlGpuInstanceGetComputeInstanceProfileInfoV - - global __nvmlGpuInstanceGetComputeInstanceRemainingCapacity - data["__nvmlGpuInstanceGetComputeInstanceRemainingCapacity"] = __nvmlGpuInstanceGetComputeInstanceRemainingCapacity - - global __nvmlGpuInstanceGetComputeInstancePossiblePlacements - data["__nvmlGpuInstanceGetComputeInstancePossiblePlacements"] = __nvmlGpuInstanceGetComputeInstancePossiblePlacements - - global __nvmlGpuInstanceCreateComputeInstance - data["__nvmlGpuInstanceCreateComputeInstance"] = __nvmlGpuInstanceCreateComputeInstance - - global __nvmlGpuInstanceCreateComputeInstanceWithPlacement - data["__nvmlGpuInstanceCreateComputeInstanceWithPlacement"] = __nvmlGpuInstanceCreateComputeInstanceWithPlacement - - global __nvmlComputeInstanceDestroy - data["__nvmlComputeInstanceDestroy"] = __nvmlComputeInstanceDestroy - - global __nvmlGpuInstanceGetComputeInstances - data["__nvmlGpuInstanceGetComputeInstances"] = __nvmlGpuInstanceGetComputeInstances - - global __nvmlGpuInstanceGetComputeInstanceById - data["__nvmlGpuInstanceGetComputeInstanceById"] = __nvmlGpuInstanceGetComputeInstanceById - - global __nvmlComputeInstanceGetInfo_v2 - data["__nvmlComputeInstanceGetInfo_v2"] = __nvmlComputeInstanceGetInfo_v2 - - global __nvmlDeviceIsMigDeviceHandle - data["__nvmlDeviceIsMigDeviceHandle"] = __nvmlDeviceIsMigDeviceHandle - - global __nvmlDeviceGetGpuInstanceId - data["__nvmlDeviceGetGpuInstanceId"] = __nvmlDeviceGetGpuInstanceId - - global __nvmlDeviceGetComputeInstanceId - data["__nvmlDeviceGetComputeInstanceId"] = __nvmlDeviceGetComputeInstanceId - - global __nvmlDeviceGetMaxMigDeviceCount - data["__nvmlDeviceGetMaxMigDeviceCount"] = __nvmlDeviceGetMaxMigDeviceCount - - global __nvmlDeviceGetMigDeviceHandleByIndex - data["__nvmlDeviceGetMigDeviceHandleByIndex"] = __nvmlDeviceGetMigDeviceHandleByIndex - - global __nvmlDeviceGetDeviceHandleFromMigDeviceHandle - data["__nvmlDeviceGetDeviceHandleFromMigDeviceHandle"] = __nvmlDeviceGetDeviceHandleFromMigDeviceHandle - - global __nvmlDeviceGetCapabilities - data["__nvmlDeviceGetCapabilities"] = __nvmlDeviceGetCapabilities - - global __nvmlDevicePowerSmoothingActivatePresetProfile - data["__nvmlDevicePowerSmoothingActivatePresetProfile"] = __nvmlDevicePowerSmoothingActivatePresetProfile - - global __nvmlDevicePowerSmoothingUpdatePresetProfileParam - data["__nvmlDevicePowerSmoothingUpdatePresetProfileParam"] = __nvmlDevicePowerSmoothingUpdatePresetProfileParam - - global __nvmlDevicePowerSmoothingSetState - data["__nvmlDevicePowerSmoothingSetState"] = __nvmlDevicePowerSmoothingSetState - - global __nvmlDeviceGetAddressingMode - data["__nvmlDeviceGetAddressingMode"] = __nvmlDeviceGetAddressingMode - - global __nvmlDeviceGetRepairStatus - data["__nvmlDeviceGetRepairStatus"] = __nvmlDeviceGetRepairStatus - - global __nvmlDeviceGetPowerMizerMode_v1 - data["__nvmlDeviceGetPowerMizerMode_v1"] = __nvmlDeviceGetPowerMizerMode_v1 - - global __nvmlDeviceSetPowerMizerMode_v1 - data["__nvmlDeviceSetPowerMizerMode_v1"] = __nvmlDeviceSetPowerMizerMode_v1 - - global __nvmlDeviceGetPdi - data["__nvmlDeviceGetPdi"] = __nvmlDeviceGetPdi - - global __nvmlDeviceSetHostname_v1 - data["__nvmlDeviceSetHostname_v1"] = __nvmlDeviceSetHostname_v1 - - global __nvmlDeviceGetHostname_v1 - data["__nvmlDeviceGetHostname_v1"] = __nvmlDeviceGetHostname_v1 - - global __nvmlDeviceGetNvLinkInfo - data["__nvmlDeviceGetNvLinkInfo"] = __nvmlDeviceGetNvLinkInfo - - global __nvmlDeviceReadWritePRM_v1 - data["__nvmlDeviceReadWritePRM_v1"] = __nvmlDeviceReadWritePRM_v1 - - global __nvmlDeviceGetGpuInstanceProfileInfoByIdV - data["__nvmlDeviceGetGpuInstanceProfileInfoByIdV"] = __nvmlDeviceGetGpuInstanceProfileInfoByIdV - - global __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts - data["__nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts"] = __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts - - global __nvmlDeviceGetUnrepairableMemoryFlag_v1 - data["__nvmlDeviceGetUnrepairableMemoryFlag_v1"] = __nvmlDeviceGetUnrepairableMemoryFlag_v1 - - global __nvmlDeviceReadPRMCounters_v1 - data["__nvmlDeviceReadPRMCounters_v1"] = __nvmlDeviceReadPRMCounters_v1 - - global __nvmlDeviceSetRusdSettings_v1 - data["__nvmlDeviceSetRusdSettings_v1"] = __nvmlDeviceSetRusdSettings_v1 - - global __nvmlDeviceVgpuForceGspUnload - data["__nvmlDeviceVgpuForceGspUnload"] = __nvmlDeviceVgpuForceGspUnload - - global __nvmlDeviceGetVgpuSchedulerState_v2 - data["__nvmlDeviceGetVgpuSchedulerState_v2"] = __nvmlDeviceGetVgpuSchedulerState_v2 - - global __nvmlGpuInstanceGetVgpuSchedulerState_v2 - data["__nvmlGpuInstanceGetVgpuSchedulerState_v2"] = __nvmlGpuInstanceGetVgpuSchedulerState_v2 - - global __nvmlDeviceGetVgpuSchedulerLog_v2 - data["__nvmlDeviceGetVgpuSchedulerLog_v2"] = __nvmlDeviceGetVgpuSchedulerLog_v2 - - global __nvmlGpuInstanceGetVgpuSchedulerLog_v2 - data["__nvmlGpuInstanceGetVgpuSchedulerLog_v2"] = __nvmlGpuInstanceGetVgpuSchedulerLog_v2 - - global __nvmlDeviceSetVgpuSchedulerState_v2 - data["__nvmlDeviceSetVgpuSchedulerState_v2"] = __nvmlDeviceSetVgpuSchedulerState_v2 - - global __nvmlGpuInstanceSetVgpuSchedulerState_v2 - data["__nvmlGpuInstanceSetVgpuSchedulerState_v2"] = __nvmlGpuInstanceSetVgpuSchedulerState_v2 - - global __nvmlSystemGetCPER_v1 - data["__nvmlSystemGetCPER_v1"] = __nvmlSystemGetCPER_v1 - - global __nvmlDeviceGetBBXTimeData_v1 - data["__nvmlDeviceGetBBXTimeData_v1"] = __nvmlDeviceGetBBXTimeData_v1 - - global __nvmlDeviceGetAccountingStats_v2 - data["__nvmlDeviceGetAccountingStats_v2"] = __nvmlDeviceGetAccountingStats_v2 - - global __nvmlDeviceGetRemappedRows_v2 - data["__nvmlDeviceGetRemappedRows_v2"] = __nvmlDeviceGetRemappedRows_v2 - - global __nvmlDeviceSetAdaptiveTgpMode_v1 - data["__nvmlDeviceSetAdaptiveTgpMode_v1"] = __nvmlDeviceSetAdaptiveTgpMode_v1 - - global __nvmlDeviceGetAdaptiveTgpModeInfo_v1 - data["__nvmlDeviceGetAdaptiveTgpModeInfo_v1"] = __nvmlDeviceGetAdaptiveTgpModeInfo_v1 - - global __nvmlDeviceSetMemoryLimits_v1 - data["__nvmlDeviceSetMemoryLimits_v1"] = __nvmlDeviceSetMemoryLimits_v1 - - global __nvmlDeviceGetMemoryLimits_v1 - data["__nvmlDeviceGetMemoryLimits_v1"] = __nvmlDeviceGetMemoryLimits_v1 - - global __nvmlDeviceGetGpuFabricInfo_v4 - data["__nvmlDeviceGetGpuFabricInfo_v4"] = __nvmlDeviceGetGpuFabricInfo_v4 - - global __nvmlDevicePerfMetricsGetSamples_v1 - data["__nvmlDevicePerfMetricsGetSamples_v1"] = __nvmlDevicePerfMetricsGetSamples_v1 - - global __nvmlDeviceSetNvlinkBwModeAsync_v1 - data["__nvmlDeviceSetNvlinkBwModeAsync_v1"] = __nvmlDeviceSetNvlinkBwModeAsync_v1 - - global __nvmlDeviceGetNvLinkTelemetrySamples_v1 - data["__nvmlDeviceGetNvLinkTelemetrySamples_v1"] = __nvmlDeviceGetNvLinkTelemetrySamples_v1 - - global __nvmlEventSetRegisterGpuOperationalEvents_v1 - data["__nvmlEventSetRegisterGpuOperationalEvents_v1"] = __nvmlEventSetRegisterGpuOperationalEvents_v1 - - global __nvmlEventSetWait_v3 - data["__nvmlEventSetWait_v3"] = __nvmlEventSetWait_v3 - - global __nvmlEventSetGetContextCount_v1 - data["__nvmlEventSetGetContextCount_v1"] = __nvmlEventSetGetContextCount_v1 - - global __nvmlEventSetGetContextInfo_v1 - data["__nvmlEventSetGetContextInfo_v1"] = __nvmlEventSetGetContextInfo_v1 - - global __nvmlEventSetGetContextData_v1 - data["__nvmlEventSetGetContextData_v1"] = __nvmlEventSetGetContextData_v1 - - global __nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1 - data["__nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1"] = __nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1 - - global __nvmlDeviceGetBankRemapperStatus_v1 - data["__nvmlDeviceGetBankRemapperStatus_v1"] = __nvmlDeviceGetBankRemapperStatus_v1 - - global __nvmlDeviceGetGpuUptime_v1 - data["__nvmlDeviceGetGpuUptime_v1"] = __nvmlDeviceGetGpuUptime_v1 - - global __nvmlSystemGetConfComputeSettings_v2 - data["__nvmlSystemGetConfComputeSettings_v2"] = __nvmlSystemGetConfComputeSettings_v2 - - global __nvmlDeviceGetNvLinkInfo_v3 - data["__nvmlDeviceGetNvLinkInfo_v3"] = __nvmlDeviceGetNvLinkInfo_v3 - - global __nvmlDeviceGetNvlinkRemapTableInfo_v1 - data["__nvmlDeviceGetNvlinkRemapTableInfo_v1"] = __nvmlDeviceGetNvlinkRemapTableInfo_v1 - - global __nvmlDeviceSetNvlinkNvleReady_v1 - data["__nvmlDeviceSetNvlinkNvleReady_v1"] = __nvmlDeviceSetNvlinkNvleReady_v1 - - global __nvmlDeviceLockNvlinkRemapTable_v1 - data["__nvmlDeviceLockNvlinkRemapTable_v1"] = __nvmlDeviceLockNvlinkRemapTable_v1 - - global __nvmlDeviceSetupNvlinkNvleEncryptionKey_v1 - data["__nvmlDeviceSetupNvlinkNvleEncryptionKey_v1"] = __nvmlDeviceSetupNvlinkNvleEncryptionKey_v1 - - global __nvmlDeviceGetNvlinkNvlePrivateInfo_v1 - data["__nvmlDeviceGetNvlinkNvlePrivateInfo_v1"] = __nvmlDeviceGetNvlinkNvlePrivateInfo_v1 + cdef Py_ssize_t i + for i in range(_cyb_nvml_n_functions): + data['__' + _cyb_nvml_names[i].decode()] = _cyb_nvml_slots[i][0] _cyb_func_ptrs = data return data diff --git a/cuda_bindings_13/cuda/bindings/_internal/nvrtc_linux.pyx b/cuda_bindings_13/cuda/bindings/_internal/nvrtc_linux.pyx index 766051687712..efe06ceb6598 100644 --- a/cuda_bindings_13/cuda/bindings/_internal/nvrtc_linux.pyx +++ b/cuda_bindings_13/cuda/bindings/_internal/nvrtc_linux.pyx @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated across versions from 12.9.0 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=318c2b5fd6ff909194abe534295e524e1b60903033cbdbcb35e8ca360b0343e1 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=44675866425d452ca690c20dcb4bb6f4600cc48e5d17b9fe70fccdbdb3cd0fed # <<<< PREAMBLE CONTENT >>>> @@ -94,214 +94,52 @@ cdef void* __nvrtcInstallBundledHeaders = NULL cdef void* __nvrtcGetBundledHeadersInfo = NULL cdef void* __nvrtcRemoveBundledHeaders = NULL +cdef enum: _cyb_nvrtc_n_functions = 29 +cdef void** _cyb_nvrtc_slots[_cyb_nvrtc_n_functions] +cdef const char* _cyb_nvrtc_names[_cyb_nvrtc_n_functions] +_cyb_nvrtc_slots[0] = &__nvrtcGetErrorString; _cyb_nvrtc_names[0] = b'nvrtcGetErrorString' +_cyb_nvrtc_slots[1] = &__nvrtcVersion; _cyb_nvrtc_names[1] = b'nvrtcVersion' +_cyb_nvrtc_slots[2] = &__nvrtcGetNumSupportedArchs; _cyb_nvrtc_names[2] = b'nvrtcGetNumSupportedArchs' +_cyb_nvrtc_slots[3] = &__nvrtcGetSupportedArchs; _cyb_nvrtc_names[3] = b'nvrtcGetSupportedArchs' +_cyb_nvrtc_slots[4] = &__nvrtcCreateProgram; _cyb_nvrtc_names[4] = b'nvrtcCreateProgram' +_cyb_nvrtc_slots[5] = &__nvrtcDestroyProgram; _cyb_nvrtc_names[5] = b'nvrtcDestroyProgram' +_cyb_nvrtc_slots[6] = &__nvrtcCompileProgram; _cyb_nvrtc_names[6] = b'nvrtcCompileProgram' +_cyb_nvrtc_slots[7] = &__nvrtcGetPTXSize; _cyb_nvrtc_names[7] = b'nvrtcGetPTXSize' +_cyb_nvrtc_slots[8] = &__nvrtcGetPTX; _cyb_nvrtc_names[8] = b'nvrtcGetPTX' +_cyb_nvrtc_slots[9] = &__nvrtcGetCUBINSize; _cyb_nvrtc_names[9] = b'nvrtcGetCUBINSize' +_cyb_nvrtc_slots[10] = &__nvrtcGetCUBIN; _cyb_nvrtc_names[10] = b'nvrtcGetCUBIN' +_cyb_nvrtc_slots[11] = &__nvrtcGetLTOIRSize; _cyb_nvrtc_names[11] = b'nvrtcGetLTOIRSize' +_cyb_nvrtc_slots[12] = &__nvrtcGetLTOIR; _cyb_nvrtc_names[12] = b'nvrtcGetLTOIR' +_cyb_nvrtc_slots[13] = &__nvrtcGetOptiXIRSize; _cyb_nvrtc_names[13] = b'nvrtcGetOptiXIRSize' +_cyb_nvrtc_slots[14] = &__nvrtcGetOptiXIR; _cyb_nvrtc_names[14] = b'nvrtcGetOptiXIR' +_cyb_nvrtc_slots[15] = &__nvrtcGetProgramLogSize; _cyb_nvrtc_names[15] = b'nvrtcGetProgramLogSize' +_cyb_nvrtc_slots[16] = &__nvrtcGetProgramLog; _cyb_nvrtc_names[16] = b'nvrtcGetProgramLog' +_cyb_nvrtc_slots[17] = &__nvrtcAddNameExpression; _cyb_nvrtc_names[17] = b'nvrtcAddNameExpression' +_cyb_nvrtc_slots[18] = &__nvrtcGetLoweredName; _cyb_nvrtc_names[18] = b'nvrtcGetLoweredName' +_cyb_nvrtc_slots[19] = &__nvrtcGetPCHHeapSize; _cyb_nvrtc_names[19] = b'nvrtcGetPCHHeapSize' +_cyb_nvrtc_slots[20] = &__nvrtcSetPCHHeapSize; _cyb_nvrtc_names[20] = b'nvrtcSetPCHHeapSize' +_cyb_nvrtc_slots[21] = &__nvrtcGetPCHCreateStatus; _cyb_nvrtc_names[21] = b'nvrtcGetPCHCreateStatus' +_cyb_nvrtc_slots[22] = &__nvrtcGetPCHHeapSizeRequired; _cyb_nvrtc_names[22] = b'nvrtcGetPCHHeapSizeRequired' +_cyb_nvrtc_slots[23] = &__nvrtcSetFlowCallback; _cyb_nvrtc_names[23] = b'nvrtcSetFlowCallback' +_cyb_nvrtc_slots[24] = &__nvrtcGetTileIRSize; _cyb_nvrtc_names[24] = b'nvrtcGetTileIRSize' +_cyb_nvrtc_slots[25] = &__nvrtcGetTileIR; _cyb_nvrtc_names[25] = b'nvrtcGetTileIR' +_cyb_nvrtc_slots[26] = &__nvrtcInstallBundledHeaders; _cyb_nvrtc_names[26] = b'nvrtcInstallBundledHeaders' +_cyb_nvrtc_slots[27] = &__nvrtcGetBundledHeadersInfo; _cyb_nvrtc_names[27] = b'nvrtcGetBundledHeadersInfo' +_cyb_nvrtc_slots[28] = &__nvrtcRemoveBundledHeaders; _cyb_nvrtc_names[28] = b'nvrtcRemoveBundledHeaders' + cdef int _init_nvrtc() except -1 nogil: global _cyb___py_nvrtc_init cdef void* handle = NULL + cdef Py_ssize_t i with gil, _cyb_symbol_lock: if _cyb___py_nvrtc_init: return 0 - global __nvrtcGetErrorString - __nvrtcGetErrorString = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetErrorString') - if __nvrtcGetErrorString == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetErrorString = _cyb_dlsym(handle, 'nvrtcGetErrorString') - - global __nvrtcVersion - __nvrtcVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcVersion') - if __nvrtcVersion == NULL: - if handle == NULL: - handle = load_library() - __nvrtcVersion = _cyb_dlsym(handle, 'nvrtcVersion') - - global __nvrtcGetNumSupportedArchs - __nvrtcGetNumSupportedArchs = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetNumSupportedArchs') - if __nvrtcGetNumSupportedArchs == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetNumSupportedArchs = _cyb_dlsym(handle, 'nvrtcGetNumSupportedArchs') - - global __nvrtcGetSupportedArchs - __nvrtcGetSupportedArchs = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetSupportedArchs') - if __nvrtcGetSupportedArchs == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetSupportedArchs = _cyb_dlsym(handle, 'nvrtcGetSupportedArchs') - - global __nvrtcCreateProgram - __nvrtcCreateProgram = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcCreateProgram') - if __nvrtcCreateProgram == NULL: - if handle == NULL: - handle = load_library() - __nvrtcCreateProgram = _cyb_dlsym(handle, 'nvrtcCreateProgram') - - global __nvrtcDestroyProgram - __nvrtcDestroyProgram = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcDestroyProgram') - if __nvrtcDestroyProgram == NULL: - if handle == NULL: - handle = load_library() - __nvrtcDestroyProgram = _cyb_dlsym(handle, 'nvrtcDestroyProgram') - - global __nvrtcCompileProgram - __nvrtcCompileProgram = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcCompileProgram') - if __nvrtcCompileProgram == NULL: - if handle == NULL: - handle = load_library() - __nvrtcCompileProgram = _cyb_dlsym(handle, 'nvrtcCompileProgram') - - global __nvrtcGetPTXSize - __nvrtcGetPTXSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetPTXSize') - if __nvrtcGetPTXSize == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetPTXSize = _cyb_dlsym(handle, 'nvrtcGetPTXSize') - - global __nvrtcGetPTX - __nvrtcGetPTX = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetPTX') - if __nvrtcGetPTX == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetPTX = _cyb_dlsym(handle, 'nvrtcGetPTX') - - global __nvrtcGetCUBINSize - __nvrtcGetCUBINSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetCUBINSize') - if __nvrtcGetCUBINSize == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetCUBINSize = _cyb_dlsym(handle, 'nvrtcGetCUBINSize') - - global __nvrtcGetCUBIN - __nvrtcGetCUBIN = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetCUBIN') - if __nvrtcGetCUBIN == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetCUBIN = _cyb_dlsym(handle, 'nvrtcGetCUBIN') - - global __nvrtcGetLTOIRSize - __nvrtcGetLTOIRSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetLTOIRSize') - if __nvrtcGetLTOIRSize == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetLTOIRSize = _cyb_dlsym(handle, 'nvrtcGetLTOIRSize') - - global __nvrtcGetLTOIR - __nvrtcGetLTOIR = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetLTOIR') - if __nvrtcGetLTOIR == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetLTOIR = _cyb_dlsym(handle, 'nvrtcGetLTOIR') - - global __nvrtcGetOptiXIRSize - __nvrtcGetOptiXIRSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetOptiXIRSize') - if __nvrtcGetOptiXIRSize == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetOptiXIRSize = _cyb_dlsym(handle, 'nvrtcGetOptiXIRSize') - - global __nvrtcGetOptiXIR - __nvrtcGetOptiXIR = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetOptiXIR') - if __nvrtcGetOptiXIR == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetOptiXIR = _cyb_dlsym(handle, 'nvrtcGetOptiXIR') - - global __nvrtcGetProgramLogSize - __nvrtcGetProgramLogSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetProgramLogSize') - if __nvrtcGetProgramLogSize == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetProgramLogSize = _cyb_dlsym(handle, 'nvrtcGetProgramLogSize') - - global __nvrtcGetProgramLog - __nvrtcGetProgramLog = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetProgramLog') - if __nvrtcGetProgramLog == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetProgramLog = _cyb_dlsym(handle, 'nvrtcGetProgramLog') - - global __nvrtcAddNameExpression - __nvrtcAddNameExpression = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcAddNameExpression') - if __nvrtcAddNameExpression == NULL: - if handle == NULL: - handle = load_library() - __nvrtcAddNameExpression = _cyb_dlsym(handle, 'nvrtcAddNameExpression') - - global __nvrtcGetLoweredName - __nvrtcGetLoweredName = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetLoweredName') - if __nvrtcGetLoweredName == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetLoweredName = _cyb_dlsym(handle, 'nvrtcGetLoweredName') - - global __nvrtcGetPCHHeapSize - __nvrtcGetPCHHeapSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetPCHHeapSize') - if __nvrtcGetPCHHeapSize == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetPCHHeapSize = _cyb_dlsym(handle, 'nvrtcGetPCHHeapSize') - - global __nvrtcSetPCHHeapSize - __nvrtcSetPCHHeapSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcSetPCHHeapSize') - if __nvrtcSetPCHHeapSize == NULL: - if handle == NULL: - handle = load_library() - __nvrtcSetPCHHeapSize = _cyb_dlsym(handle, 'nvrtcSetPCHHeapSize') - - global __nvrtcGetPCHCreateStatus - __nvrtcGetPCHCreateStatus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetPCHCreateStatus') - if __nvrtcGetPCHCreateStatus == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetPCHCreateStatus = _cyb_dlsym(handle, 'nvrtcGetPCHCreateStatus') - - global __nvrtcGetPCHHeapSizeRequired - __nvrtcGetPCHHeapSizeRequired = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetPCHHeapSizeRequired') - if __nvrtcGetPCHHeapSizeRequired == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetPCHHeapSizeRequired = _cyb_dlsym(handle, 'nvrtcGetPCHHeapSizeRequired') - - global __nvrtcSetFlowCallback - __nvrtcSetFlowCallback = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcSetFlowCallback') - if __nvrtcSetFlowCallback == NULL: - if handle == NULL: - handle = load_library() - __nvrtcSetFlowCallback = _cyb_dlsym(handle, 'nvrtcSetFlowCallback') - - global __nvrtcGetTileIRSize - __nvrtcGetTileIRSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetTileIRSize') - if __nvrtcGetTileIRSize == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetTileIRSize = _cyb_dlsym(handle, 'nvrtcGetTileIRSize') - - global __nvrtcGetTileIR - __nvrtcGetTileIR = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetTileIR') - if __nvrtcGetTileIR == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetTileIR = _cyb_dlsym(handle, 'nvrtcGetTileIR') - - global __nvrtcInstallBundledHeaders - __nvrtcInstallBundledHeaders = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcInstallBundledHeaders') - if __nvrtcInstallBundledHeaders == NULL: - if handle == NULL: - handle = load_library() - __nvrtcInstallBundledHeaders = _cyb_dlsym(handle, 'nvrtcInstallBundledHeaders') - - global __nvrtcGetBundledHeadersInfo - __nvrtcGetBundledHeadersInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetBundledHeadersInfo') - if __nvrtcGetBundledHeadersInfo == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetBundledHeadersInfo = _cyb_dlsym(handle, 'nvrtcGetBundledHeadersInfo') - - global __nvrtcRemoveBundledHeaders - __nvrtcRemoveBundledHeaders = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcRemoveBundledHeaders') - if __nvrtcRemoveBundledHeaders == NULL: - if handle == NULL: - handle = load_library() - __nvrtcRemoveBundledHeaders = _cyb_dlsym(handle, 'nvrtcRemoveBundledHeaders') + for i in range(_cyb_nvrtc_n_functions): + _cyb_nvrtc_slots[i][0] = _cyb_dlsym(_cyb_RTLD_DEFAULT, _cyb_nvrtc_names[i]) + if _cyb_nvrtc_slots[i][0] == NULL: + if handle == NULL: + handle = load_library() + _cyb_nvrtc_slots[i][0] = _cyb_dlsym(handle, _cyb_nvrtc_names[i]) _cyb_atomic_int_store(&_cyb___py_nvrtc_init, 1) return 0 @@ -320,92 +158,9 @@ cpdef dict _inspect_function_pointers(): _check_or_init_nvrtc() cdef dict data = {} - global __nvrtcGetErrorString - data["__nvrtcGetErrorString"] = __nvrtcGetErrorString - - global __nvrtcVersion - data["__nvrtcVersion"] = __nvrtcVersion - - global __nvrtcGetNumSupportedArchs - data["__nvrtcGetNumSupportedArchs"] = __nvrtcGetNumSupportedArchs - - global __nvrtcGetSupportedArchs - data["__nvrtcGetSupportedArchs"] = __nvrtcGetSupportedArchs - - global __nvrtcCreateProgram - data["__nvrtcCreateProgram"] = __nvrtcCreateProgram - - global __nvrtcDestroyProgram - data["__nvrtcDestroyProgram"] = __nvrtcDestroyProgram - - global __nvrtcCompileProgram - data["__nvrtcCompileProgram"] = __nvrtcCompileProgram - - global __nvrtcGetPTXSize - data["__nvrtcGetPTXSize"] = __nvrtcGetPTXSize - - global __nvrtcGetPTX - data["__nvrtcGetPTX"] = __nvrtcGetPTX - - global __nvrtcGetCUBINSize - data["__nvrtcGetCUBINSize"] = __nvrtcGetCUBINSize - - global __nvrtcGetCUBIN - data["__nvrtcGetCUBIN"] = __nvrtcGetCUBIN - - global __nvrtcGetLTOIRSize - data["__nvrtcGetLTOIRSize"] = __nvrtcGetLTOIRSize - - global __nvrtcGetLTOIR - data["__nvrtcGetLTOIR"] = __nvrtcGetLTOIR - - global __nvrtcGetOptiXIRSize - data["__nvrtcGetOptiXIRSize"] = __nvrtcGetOptiXIRSize - - global __nvrtcGetOptiXIR - data["__nvrtcGetOptiXIR"] = __nvrtcGetOptiXIR - - global __nvrtcGetProgramLogSize - data["__nvrtcGetProgramLogSize"] = __nvrtcGetProgramLogSize - - global __nvrtcGetProgramLog - data["__nvrtcGetProgramLog"] = __nvrtcGetProgramLog - - global __nvrtcAddNameExpression - data["__nvrtcAddNameExpression"] = __nvrtcAddNameExpression - - global __nvrtcGetLoweredName - data["__nvrtcGetLoweredName"] = __nvrtcGetLoweredName - - global __nvrtcGetPCHHeapSize - data["__nvrtcGetPCHHeapSize"] = __nvrtcGetPCHHeapSize - - global __nvrtcSetPCHHeapSize - data["__nvrtcSetPCHHeapSize"] = __nvrtcSetPCHHeapSize - - global __nvrtcGetPCHCreateStatus - data["__nvrtcGetPCHCreateStatus"] = __nvrtcGetPCHCreateStatus - - global __nvrtcGetPCHHeapSizeRequired - data["__nvrtcGetPCHHeapSizeRequired"] = __nvrtcGetPCHHeapSizeRequired - - global __nvrtcSetFlowCallback - data["__nvrtcSetFlowCallback"] = __nvrtcSetFlowCallback - - global __nvrtcGetTileIRSize - data["__nvrtcGetTileIRSize"] = __nvrtcGetTileIRSize - - global __nvrtcGetTileIR - data["__nvrtcGetTileIR"] = __nvrtcGetTileIR - - global __nvrtcInstallBundledHeaders - data["__nvrtcInstallBundledHeaders"] = __nvrtcInstallBundledHeaders - - global __nvrtcGetBundledHeadersInfo - data["__nvrtcGetBundledHeadersInfo"] = __nvrtcGetBundledHeadersInfo - - global __nvrtcRemoveBundledHeaders - data["__nvrtcRemoveBundledHeaders"] = __nvrtcRemoveBundledHeaders + cdef Py_ssize_t i + for i in range(_cyb_nvrtc_n_functions): + data['__' + _cyb_nvrtc_names[i].decode()] = _cyb_nvrtc_slots[i][0] _cyb_func_ptrs = data return data diff --git a/cuda_bindings_13/cuda/bindings/_internal/nvrtc_windows.pyx b/cuda_bindings_13/cuda/bindings/_internal/nvrtc_windows.pyx index 5abb32849a8f..11606e11a08d 100644 --- a/cuda_bindings_13/cuda/bindings/_internal/nvrtc_windows.pyx +++ b/cuda_bindings_13/cuda/bindings/_internal/nvrtc_windows.pyx @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated across versions from 12.9.0 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=d78b8abcbbad91273124709973e2dd589b377212faafd7156cf108d28e4954fe +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=06e1a3ad8b1db096ef582165efc6dfba7956e36ecc222910b5f4adae9ed0d8e4 # <<<< PREAMBLE CONTENT >>>> @@ -94,101 +94,51 @@ cdef void* __nvrtcInstallBundledHeaders = NULL cdef void* __nvrtcGetBundledHeadersInfo = NULL cdef void* __nvrtcRemoveBundledHeaders = NULL +cdef enum: _cyb_nvrtc_n_functions = 29 +cdef void** _cyb_nvrtc_slots[_cyb_nvrtc_n_functions] +cdef const char* _cyb_nvrtc_names[_cyb_nvrtc_n_functions] +_cyb_nvrtc_slots[0] = &__nvrtcGetErrorString; _cyb_nvrtc_names[0] = b'nvrtcGetErrorString' +_cyb_nvrtc_slots[1] = &__nvrtcVersion; _cyb_nvrtc_names[1] = b'nvrtcVersion' +_cyb_nvrtc_slots[2] = &__nvrtcGetNumSupportedArchs; _cyb_nvrtc_names[2] = b'nvrtcGetNumSupportedArchs' +_cyb_nvrtc_slots[3] = &__nvrtcGetSupportedArchs; _cyb_nvrtc_names[3] = b'nvrtcGetSupportedArchs' +_cyb_nvrtc_slots[4] = &__nvrtcCreateProgram; _cyb_nvrtc_names[4] = b'nvrtcCreateProgram' +_cyb_nvrtc_slots[5] = &__nvrtcDestroyProgram; _cyb_nvrtc_names[5] = b'nvrtcDestroyProgram' +_cyb_nvrtc_slots[6] = &__nvrtcCompileProgram; _cyb_nvrtc_names[6] = b'nvrtcCompileProgram' +_cyb_nvrtc_slots[7] = &__nvrtcGetPTXSize; _cyb_nvrtc_names[7] = b'nvrtcGetPTXSize' +_cyb_nvrtc_slots[8] = &__nvrtcGetPTX; _cyb_nvrtc_names[8] = b'nvrtcGetPTX' +_cyb_nvrtc_slots[9] = &__nvrtcGetCUBINSize; _cyb_nvrtc_names[9] = b'nvrtcGetCUBINSize' +_cyb_nvrtc_slots[10] = &__nvrtcGetCUBIN; _cyb_nvrtc_names[10] = b'nvrtcGetCUBIN' +_cyb_nvrtc_slots[11] = &__nvrtcGetLTOIRSize; _cyb_nvrtc_names[11] = b'nvrtcGetLTOIRSize' +_cyb_nvrtc_slots[12] = &__nvrtcGetLTOIR; _cyb_nvrtc_names[12] = b'nvrtcGetLTOIR' +_cyb_nvrtc_slots[13] = &__nvrtcGetOptiXIRSize; _cyb_nvrtc_names[13] = b'nvrtcGetOptiXIRSize' +_cyb_nvrtc_slots[14] = &__nvrtcGetOptiXIR; _cyb_nvrtc_names[14] = b'nvrtcGetOptiXIR' +_cyb_nvrtc_slots[15] = &__nvrtcGetProgramLogSize; _cyb_nvrtc_names[15] = b'nvrtcGetProgramLogSize' +_cyb_nvrtc_slots[16] = &__nvrtcGetProgramLog; _cyb_nvrtc_names[16] = b'nvrtcGetProgramLog' +_cyb_nvrtc_slots[17] = &__nvrtcAddNameExpression; _cyb_nvrtc_names[17] = b'nvrtcAddNameExpression' +_cyb_nvrtc_slots[18] = &__nvrtcGetLoweredName; _cyb_nvrtc_names[18] = b'nvrtcGetLoweredName' +_cyb_nvrtc_slots[19] = &__nvrtcGetPCHHeapSize; _cyb_nvrtc_names[19] = b'nvrtcGetPCHHeapSize' +_cyb_nvrtc_slots[20] = &__nvrtcSetPCHHeapSize; _cyb_nvrtc_names[20] = b'nvrtcSetPCHHeapSize' +_cyb_nvrtc_slots[21] = &__nvrtcGetPCHCreateStatus; _cyb_nvrtc_names[21] = b'nvrtcGetPCHCreateStatus' +_cyb_nvrtc_slots[22] = &__nvrtcGetPCHHeapSizeRequired; _cyb_nvrtc_names[22] = b'nvrtcGetPCHHeapSizeRequired' +_cyb_nvrtc_slots[23] = &__nvrtcSetFlowCallback; _cyb_nvrtc_names[23] = b'nvrtcSetFlowCallback' +_cyb_nvrtc_slots[24] = &__nvrtcGetTileIRSize; _cyb_nvrtc_names[24] = b'nvrtcGetTileIRSize' +_cyb_nvrtc_slots[25] = &__nvrtcGetTileIR; _cyb_nvrtc_names[25] = b'nvrtcGetTileIR' +_cyb_nvrtc_slots[26] = &__nvrtcInstallBundledHeaders; _cyb_nvrtc_names[26] = b'nvrtcInstallBundledHeaders' +_cyb_nvrtc_slots[27] = &__nvrtcGetBundledHeadersInfo; _cyb_nvrtc_names[27] = b'nvrtcGetBundledHeadersInfo' +_cyb_nvrtc_slots[28] = &__nvrtcRemoveBundledHeaders; _cyb_nvrtc_names[28] = b'nvrtcRemoveBundledHeaders' + cdef int _init_nvrtc() except -1 nogil: global _cyb___py_nvrtc_init cdef int err cdef uintptr_t handle + cdef Py_ssize_t i with gil, _cyb_symbol_lock: if _cyb___py_nvrtc_init: return 0 handle = load_library() - global __nvrtcGetErrorString - __nvrtcGetErrorString = _cyb_GetProcAddress(handle, 'nvrtcGetErrorString') - - global __nvrtcVersion - __nvrtcVersion = _cyb_GetProcAddress(handle, 'nvrtcVersion') - - global __nvrtcGetNumSupportedArchs - __nvrtcGetNumSupportedArchs = _cyb_GetProcAddress(handle, 'nvrtcGetNumSupportedArchs') - - global __nvrtcGetSupportedArchs - __nvrtcGetSupportedArchs = _cyb_GetProcAddress(handle, 'nvrtcGetSupportedArchs') - - global __nvrtcCreateProgram - __nvrtcCreateProgram = _cyb_GetProcAddress(handle, 'nvrtcCreateProgram') - - global __nvrtcDestroyProgram - __nvrtcDestroyProgram = _cyb_GetProcAddress(handle, 'nvrtcDestroyProgram') - - global __nvrtcCompileProgram - __nvrtcCompileProgram = _cyb_GetProcAddress(handle, 'nvrtcCompileProgram') - - global __nvrtcGetPTXSize - __nvrtcGetPTXSize = _cyb_GetProcAddress(handle, 'nvrtcGetPTXSize') - - global __nvrtcGetPTX - __nvrtcGetPTX = _cyb_GetProcAddress(handle, 'nvrtcGetPTX') - - global __nvrtcGetCUBINSize - __nvrtcGetCUBINSize = _cyb_GetProcAddress(handle, 'nvrtcGetCUBINSize') - - global __nvrtcGetCUBIN - __nvrtcGetCUBIN = _cyb_GetProcAddress(handle, 'nvrtcGetCUBIN') - - global __nvrtcGetLTOIRSize - __nvrtcGetLTOIRSize = _cyb_GetProcAddress(handle, 'nvrtcGetLTOIRSize') - - global __nvrtcGetLTOIR - __nvrtcGetLTOIR = _cyb_GetProcAddress(handle, 'nvrtcGetLTOIR') - - global __nvrtcGetOptiXIRSize - __nvrtcGetOptiXIRSize = _cyb_GetProcAddress(handle, 'nvrtcGetOptiXIRSize') - - global __nvrtcGetOptiXIR - __nvrtcGetOptiXIR = _cyb_GetProcAddress(handle, 'nvrtcGetOptiXIR') - - global __nvrtcGetProgramLogSize - __nvrtcGetProgramLogSize = _cyb_GetProcAddress(handle, 'nvrtcGetProgramLogSize') - - global __nvrtcGetProgramLog - __nvrtcGetProgramLog = _cyb_GetProcAddress(handle, 'nvrtcGetProgramLog') - - global __nvrtcAddNameExpression - __nvrtcAddNameExpression = _cyb_GetProcAddress(handle, 'nvrtcAddNameExpression') - - global __nvrtcGetLoweredName - __nvrtcGetLoweredName = _cyb_GetProcAddress(handle, 'nvrtcGetLoweredName') - - global __nvrtcGetPCHHeapSize - __nvrtcGetPCHHeapSize = _cyb_GetProcAddress(handle, 'nvrtcGetPCHHeapSize') - - global __nvrtcSetPCHHeapSize - __nvrtcSetPCHHeapSize = _cyb_GetProcAddress(handle, 'nvrtcSetPCHHeapSize') - - global __nvrtcGetPCHCreateStatus - __nvrtcGetPCHCreateStatus = _cyb_GetProcAddress(handle, 'nvrtcGetPCHCreateStatus') - - global __nvrtcGetPCHHeapSizeRequired - __nvrtcGetPCHHeapSizeRequired = _cyb_GetProcAddress(handle, 'nvrtcGetPCHHeapSizeRequired') - - global __nvrtcSetFlowCallback - __nvrtcSetFlowCallback = _cyb_GetProcAddress(handle, 'nvrtcSetFlowCallback') - - global __nvrtcGetTileIRSize - __nvrtcGetTileIRSize = _cyb_GetProcAddress(handle, 'nvrtcGetTileIRSize') - - global __nvrtcGetTileIR - __nvrtcGetTileIR = _cyb_GetProcAddress(handle, 'nvrtcGetTileIR') - - global __nvrtcInstallBundledHeaders - __nvrtcInstallBundledHeaders = _cyb_GetProcAddress(handle, 'nvrtcInstallBundledHeaders') - - global __nvrtcGetBundledHeadersInfo - __nvrtcGetBundledHeadersInfo = _cyb_GetProcAddress(handle, 'nvrtcGetBundledHeadersInfo') - - global __nvrtcRemoveBundledHeaders - __nvrtcRemoveBundledHeaders = _cyb_GetProcAddress(handle, 'nvrtcRemoveBundledHeaders') + for i in range(_cyb_nvrtc_n_functions): + _cyb_nvrtc_slots[i][0] = _cyb_GetProcAddress(handle, _cyb_nvrtc_names[i]) _cyb_atomic_int_store(&_cyb___py_nvrtc_init, 1) return 0 @@ -207,92 +157,9 @@ cpdef dict _inspect_function_pointers(): _check_or_init_nvrtc() cdef dict data = {} - global __nvrtcGetErrorString - data["__nvrtcGetErrorString"] = __nvrtcGetErrorString - - global __nvrtcVersion - data["__nvrtcVersion"] = __nvrtcVersion - - global __nvrtcGetNumSupportedArchs - data["__nvrtcGetNumSupportedArchs"] = __nvrtcGetNumSupportedArchs - - global __nvrtcGetSupportedArchs - data["__nvrtcGetSupportedArchs"] = __nvrtcGetSupportedArchs - - global __nvrtcCreateProgram - data["__nvrtcCreateProgram"] = __nvrtcCreateProgram - - global __nvrtcDestroyProgram - data["__nvrtcDestroyProgram"] = __nvrtcDestroyProgram - - global __nvrtcCompileProgram - data["__nvrtcCompileProgram"] = __nvrtcCompileProgram - - global __nvrtcGetPTXSize - data["__nvrtcGetPTXSize"] = __nvrtcGetPTXSize - - global __nvrtcGetPTX - data["__nvrtcGetPTX"] = __nvrtcGetPTX - - global __nvrtcGetCUBINSize - data["__nvrtcGetCUBINSize"] = __nvrtcGetCUBINSize - - global __nvrtcGetCUBIN - data["__nvrtcGetCUBIN"] = __nvrtcGetCUBIN - - global __nvrtcGetLTOIRSize - data["__nvrtcGetLTOIRSize"] = __nvrtcGetLTOIRSize - - global __nvrtcGetLTOIR - data["__nvrtcGetLTOIR"] = __nvrtcGetLTOIR - - global __nvrtcGetOptiXIRSize - data["__nvrtcGetOptiXIRSize"] = __nvrtcGetOptiXIRSize - - global __nvrtcGetOptiXIR - data["__nvrtcGetOptiXIR"] = __nvrtcGetOptiXIR - - global __nvrtcGetProgramLogSize - data["__nvrtcGetProgramLogSize"] = __nvrtcGetProgramLogSize - - global __nvrtcGetProgramLog - data["__nvrtcGetProgramLog"] = __nvrtcGetProgramLog - - global __nvrtcAddNameExpression - data["__nvrtcAddNameExpression"] = __nvrtcAddNameExpression - - global __nvrtcGetLoweredName - data["__nvrtcGetLoweredName"] = __nvrtcGetLoweredName - - global __nvrtcGetPCHHeapSize - data["__nvrtcGetPCHHeapSize"] = __nvrtcGetPCHHeapSize - - global __nvrtcSetPCHHeapSize - data["__nvrtcSetPCHHeapSize"] = __nvrtcSetPCHHeapSize - - global __nvrtcGetPCHCreateStatus - data["__nvrtcGetPCHCreateStatus"] = __nvrtcGetPCHCreateStatus - - global __nvrtcGetPCHHeapSizeRequired - data["__nvrtcGetPCHHeapSizeRequired"] = __nvrtcGetPCHHeapSizeRequired - - global __nvrtcSetFlowCallback - data["__nvrtcSetFlowCallback"] = __nvrtcSetFlowCallback - - global __nvrtcGetTileIRSize - data["__nvrtcGetTileIRSize"] = __nvrtcGetTileIRSize - - global __nvrtcGetTileIR - data["__nvrtcGetTileIR"] = __nvrtcGetTileIR - - global __nvrtcInstallBundledHeaders - data["__nvrtcInstallBundledHeaders"] = __nvrtcInstallBundledHeaders - - global __nvrtcGetBundledHeadersInfo - data["__nvrtcGetBundledHeadersInfo"] = __nvrtcGetBundledHeadersInfo - - global __nvrtcRemoveBundledHeaders - data["__nvrtcRemoveBundledHeaders"] = __nvrtcRemoveBundledHeaders + cdef Py_ssize_t i + for i in range(_cyb_nvrtc_n_functions): + data['__' + _cyb_nvrtc_names[i].decode()] = _cyb_nvrtc_slots[i][0] _cyb_func_ptrs = data return data diff --git a/cuda_bindings_13/cuda/bindings/_internal/nvvm_linux.pyx b/cuda_bindings_13/cuda/bindings/_internal/nvvm_linux.pyx index 0e410e0618dd..64109ec65734 100644 --- a/cuda_bindings_13/cuda/bindings/_internal/nvvm_linux.pyx +++ b/cuda_bindings_13/cuda/bindings/_internal/nvvm_linux.pyx @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated across versions from 12.0.1 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=d86e2c7810bfe53da4ba1ed601a58ebe94757d3c2679f08e1fa7459fee1e0f03 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=968ebda3f299a209f6240c152411869cef689b565fb8b504f7779caacef58b2f # <<<< PREAMBLE CONTENT >>>> @@ -79,109 +79,37 @@ cdef void* __nvvmGetProgramLogSize = NULL cdef void* __nvvmGetProgramLog = NULL cdef void* __nvvmLLVMVersion = NULL +cdef enum: _cyb_nvvm_n_functions = 14 +cdef void** _cyb_nvvm_slots[_cyb_nvvm_n_functions] +cdef const char* _cyb_nvvm_names[_cyb_nvvm_n_functions] +_cyb_nvvm_slots[0] = &__nvvmGetErrorString; _cyb_nvvm_names[0] = b'nvvmGetErrorString' +_cyb_nvvm_slots[1] = &__nvvmVersion; _cyb_nvvm_names[1] = b'nvvmVersion' +_cyb_nvvm_slots[2] = &__nvvmIRVersion; _cyb_nvvm_names[2] = b'nvvmIRVersion' +_cyb_nvvm_slots[3] = &__nvvmCreateProgram; _cyb_nvvm_names[3] = b'nvvmCreateProgram' +_cyb_nvvm_slots[4] = &__nvvmDestroyProgram; _cyb_nvvm_names[4] = b'nvvmDestroyProgram' +_cyb_nvvm_slots[5] = &__nvvmAddModuleToProgram; _cyb_nvvm_names[5] = b'nvvmAddModuleToProgram' +_cyb_nvvm_slots[6] = &__nvvmLazyAddModuleToProgram; _cyb_nvvm_names[6] = b'nvvmLazyAddModuleToProgram' +_cyb_nvvm_slots[7] = &__nvvmCompileProgram; _cyb_nvvm_names[7] = b'nvvmCompileProgram' +_cyb_nvvm_slots[8] = &__nvvmVerifyProgram; _cyb_nvvm_names[8] = b'nvvmVerifyProgram' +_cyb_nvvm_slots[9] = &__nvvmGetCompiledResultSize; _cyb_nvvm_names[9] = b'nvvmGetCompiledResultSize' +_cyb_nvvm_slots[10] = &__nvvmGetCompiledResult; _cyb_nvvm_names[10] = b'nvvmGetCompiledResult' +_cyb_nvvm_slots[11] = &__nvvmGetProgramLogSize; _cyb_nvvm_names[11] = b'nvvmGetProgramLogSize' +_cyb_nvvm_slots[12] = &__nvvmGetProgramLog; _cyb_nvvm_names[12] = b'nvvmGetProgramLog' +_cyb_nvvm_slots[13] = &__nvvmLLVMVersion; _cyb_nvvm_names[13] = b'nvvmLLVMVersion' + cdef int _init_nvvm() except -1 nogil: global _cyb___py_nvvm_init cdef void* handle = NULL + cdef Py_ssize_t i with gil, _cyb_symbol_lock: if _cyb___py_nvvm_init: return 0 - global __nvvmGetErrorString - __nvvmGetErrorString = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmGetErrorString') - if __nvvmGetErrorString == NULL: - if handle == NULL: - handle = load_library() - __nvvmGetErrorString = _cyb_dlsym(handle, 'nvvmGetErrorString') - - global __nvvmVersion - __nvvmVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmVersion') - if __nvvmVersion == NULL: - if handle == NULL: - handle = load_library() - __nvvmVersion = _cyb_dlsym(handle, 'nvvmVersion') - - global __nvvmIRVersion - __nvvmIRVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmIRVersion') - if __nvvmIRVersion == NULL: - if handle == NULL: - handle = load_library() - __nvvmIRVersion = _cyb_dlsym(handle, 'nvvmIRVersion') - - global __nvvmCreateProgram - __nvvmCreateProgram = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmCreateProgram') - if __nvvmCreateProgram == NULL: - if handle == NULL: - handle = load_library() - __nvvmCreateProgram = _cyb_dlsym(handle, 'nvvmCreateProgram') - - global __nvvmDestroyProgram - __nvvmDestroyProgram = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmDestroyProgram') - if __nvvmDestroyProgram == NULL: - if handle == NULL: - handle = load_library() - __nvvmDestroyProgram = _cyb_dlsym(handle, 'nvvmDestroyProgram') - - global __nvvmAddModuleToProgram - __nvvmAddModuleToProgram = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmAddModuleToProgram') - if __nvvmAddModuleToProgram == NULL: - if handle == NULL: - handle = load_library() - __nvvmAddModuleToProgram = _cyb_dlsym(handle, 'nvvmAddModuleToProgram') - - global __nvvmLazyAddModuleToProgram - __nvvmLazyAddModuleToProgram = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmLazyAddModuleToProgram') - if __nvvmLazyAddModuleToProgram == NULL: - if handle == NULL: - handle = load_library() - __nvvmLazyAddModuleToProgram = _cyb_dlsym(handle, 'nvvmLazyAddModuleToProgram') - - global __nvvmCompileProgram - __nvvmCompileProgram = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmCompileProgram') - if __nvvmCompileProgram == NULL: - if handle == NULL: - handle = load_library() - __nvvmCompileProgram = _cyb_dlsym(handle, 'nvvmCompileProgram') - - global __nvvmVerifyProgram - __nvvmVerifyProgram = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmVerifyProgram') - if __nvvmVerifyProgram == NULL: - if handle == NULL: - handle = load_library() - __nvvmVerifyProgram = _cyb_dlsym(handle, 'nvvmVerifyProgram') - - global __nvvmGetCompiledResultSize - __nvvmGetCompiledResultSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmGetCompiledResultSize') - if __nvvmGetCompiledResultSize == NULL: - if handle == NULL: - handle = load_library() - __nvvmGetCompiledResultSize = _cyb_dlsym(handle, 'nvvmGetCompiledResultSize') - - global __nvvmGetCompiledResult - __nvvmGetCompiledResult = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmGetCompiledResult') - if __nvvmGetCompiledResult == NULL: - if handle == NULL: - handle = load_library() - __nvvmGetCompiledResult = _cyb_dlsym(handle, 'nvvmGetCompiledResult') - - global __nvvmGetProgramLogSize - __nvvmGetProgramLogSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmGetProgramLogSize') - if __nvvmGetProgramLogSize == NULL: - if handle == NULL: - handle = load_library() - __nvvmGetProgramLogSize = _cyb_dlsym(handle, 'nvvmGetProgramLogSize') - - global __nvvmGetProgramLog - __nvvmGetProgramLog = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmGetProgramLog') - if __nvvmGetProgramLog == NULL: - if handle == NULL: - handle = load_library() - __nvvmGetProgramLog = _cyb_dlsym(handle, 'nvvmGetProgramLog') - - global __nvvmLLVMVersion - __nvvmLLVMVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmLLVMVersion') - if __nvvmLLVMVersion == NULL: - if handle == NULL: - handle = load_library() - __nvvmLLVMVersion = _cyb_dlsym(handle, 'nvvmLLVMVersion') + for i in range(_cyb_nvvm_n_functions): + _cyb_nvvm_slots[i][0] = _cyb_dlsym(_cyb_RTLD_DEFAULT, _cyb_nvvm_names[i]) + if _cyb_nvvm_slots[i][0] == NULL: + if handle == NULL: + handle = load_library() + _cyb_nvvm_slots[i][0] = _cyb_dlsym(handle, _cyb_nvvm_names[i]) _cyb_atomic_int_store(&_cyb___py_nvvm_init, 1) return 0 @@ -200,47 +128,9 @@ cpdef dict _inspect_function_pointers(): _check_or_init_nvvm() cdef dict data = {} - global __nvvmGetErrorString - data["__nvvmGetErrorString"] = __nvvmGetErrorString - - global __nvvmVersion - data["__nvvmVersion"] = __nvvmVersion - - global __nvvmIRVersion - data["__nvvmIRVersion"] = __nvvmIRVersion - - global __nvvmCreateProgram - data["__nvvmCreateProgram"] = __nvvmCreateProgram - - global __nvvmDestroyProgram - data["__nvvmDestroyProgram"] = __nvvmDestroyProgram - - global __nvvmAddModuleToProgram - data["__nvvmAddModuleToProgram"] = __nvvmAddModuleToProgram - - global __nvvmLazyAddModuleToProgram - data["__nvvmLazyAddModuleToProgram"] = __nvvmLazyAddModuleToProgram - - global __nvvmCompileProgram - data["__nvvmCompileProgram"] = __nvvmCompileProgram - - global __nvvmVerifyProgram - data["__nvvmVerifyProgram"] = __nvvmVerifyProgram - - global __nvvmGetCompiledResultSize - data["__nvvmGetCompiledResultSize"] = __nvvmGetCompiledResultSize - - global __nvvmGetCompiledResult - data["__nvvmGetCompiledResult"] = __nvvmGetCompiledResult - - global __nvvmGetProgramLogSize - data["__nvvmGetProgramLogSize"] = __nvvmGetProgramLogSize - - global __nvvmGetProgramLog - data["__nvvmGetProgramLog"] = __nvvmGetProgramLog - - global __nvvmLLVMVersion - data["__nvvmLLVMVersion"] = __nvvmLLVMVersion + cdef Py_ssize_t i + for i in range(_cyb_nvvm_n_functions): + data['__' + _cyb_nvvm_names[i].decode()] = _cyb_nvvm_slots[i][0] _cyb_func_ptrs = data return data diff --git a/cuda_bindings_13/cuda/bindings/_internal/nvvm_windows.pyx b/cuda_bindings_13/cuda/bindings/_internal/nvvm_windows.pyx index e5526b838fff..a03b9a9b7519 100644 --- a/cuda_bindings_13/cuda/bindings/_internal/nvvm_windows.pyx +++ b/cuda_bindings_13/cuda/bindings/_internal/nvvm_windows.pyx @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated across versions from 12.0.1 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=eab1afb464a99c5b00ad46cfc4cf50bd21f23fafe40d32be0191cc8cb6b1f90b +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=6295f4cb60761857a1b8b261f8923391d85382748a7868ecbe10db6c52f78cdb # <<<< PREAMBLE CONTENT >>>> @@ -79,56 +79,36 @@ cdef void* __nvvmGetProgramLogSize = NULL cdef void* __nvvmGetProgramLog = NULL cdef void* __nvvmLLVMVersion = NULL +cdef enum: _cyb_nvvm_n_functions = 14 +cdef void** _cyb_nvvm_slots[_cyb_nvvm_n_functions] +cdef const char* _cyb_nvvm_names[_cyb_nvvm_n_functions] +_cyb_nvvm_slots[0] = &__nvvmGetErrorString; _cyb_nvvm_names[0] = b'nvvmGetErrorString' +_cyb_nvvm_slots[1] = &__nvvmVersion; _cyb_nvvm_names[1] = b'nvvmVersion' +_cyb_nvvm_slots[2] = &__nvvmIRVersion; _cyb_nvvm_names[2] = b'nvvmIRVersion' +_cyb_nvvm_slots[3] = &__nvvmCreateProgram; _cyb_nvvm_names[3] = b'nvvmCreateProgram' +_cyb_nvvm_slots[4] = &__nvvmDestroyProgram; _cyb_nvvm_names[4] = b'nvvmDestroyProgram' +_cyb_nvvm_slots[5] = &__nvvmAddModuleToProgram; _cyb_nvvm_names[5] = b'nvvmAddModuleToProgram' +_cyb_nvvm_slots[6] = &__nvvmLazyAddModuleToProgram; _cyb_nvvm_names[6] = b'nvvmLazyAddModuleToProgram' +_cyb_nvvm_slots[7] = &__nvvmCompileProgram; _cyb_nvvm_names[7] = b'nvvmCompileProgram' +_cyb_nvvm_slots[8] = &__nvvmVerifyProgram; _cyb_nvvm_names[8] = b'nvvmVerifyProgram' +_cyb_nvvm_slots[9] = &__nvvmGetCompiledResultSize; _cyb_nvvm_names[9] = b'nvvmGetCompiledResultSize' +_cyb_nvvm_slots[10] = &__nvvmGetCompiledResult; _cyb_nvvm_names[10] = b'nvvmGetCompiledResult' +_cyb_nvvm_slots[11] = &__nvvmGetProgramLogSize; _cyb_nvvm_names[11] = b'nvvmGetProgramLogSize' +_cyb_nvvm_slots[12] = &__nvvmGetProgramLog; _cyb_nvvm_names[12] = b'nvvmGetProgramLog' +_cyb_nvvm_slots[13] = &__nvvmLLVMVersion; _cyb_nvvm_names[13] = b'nvvmLLVMVersion' + cdef int _init_nvvm() except -1 nogil: global _cyb___py_nvvm_init cdef int err cdef uintptr_t handle + cdef Py_ssize_t i with gil, _cyb_symbol_lock: if _cyb___py_nvvm_init: return 0 handle = load_library() - global __nvvmGetErrorString - __nvvmGetErrorString = _cyb_GetProcAddress(handle, 'nvvmGetErrorString') - - global __nvvmVersion - __nvvmVersion = _cyb_GetProcAddress(handle, 'nvvmVersion') - - global __nvvmIRVersion - __nvvmIRVersion = _cyb_GetProcAddress(handle, 'nvvmIRVersion') - - global __nvvmCreateProgram - __nvvmCreateProgram = _cyb_GetProcAddress(handle, 'nvvmCreateProgram') - - global __nvvmDestroyProgram - __nvvmDestroyProgram = _cyb_GetProcAddress(handle, 'nvvmDestroyProgram') - - global __nvvmAddModuleToProgram - __nvvmAddModuleToProgram = _cyb_GetProcAddress(handle, 'nvvmAddModuleToProgram') - - global __nvvmLazyAddModuleToProgram - __nvvmLazyAddModuleToProgram = _cyb_GetProcAddress(handle, 'nvvmLazyAddModuleToProgram') - - global __nvvmCompileProgram - __nvvmCompileProgram = _cyb_GetProcAddress(handle, 'nvvmCompileProgram') - - global __nvvmVerifyProgram - __nvvmVerifyProgram = _cyb_GetProcAddress(handle, 'nvvmVerifyProgram') - - global __nvvmGetCompiledResultSize - __nvvmGetCompiledResultSize = _cyb_GetProcAddress(handle, 'nvvmGetCompiledResultSize') - - global __nvvmGetCompiledResult - __nvvmGetCompiledResult = _cyb_GetProcAddress(handle, 'nvvmGetCompiledResult') - - global __nvvmGetProgramLogSize - __nvvmGetProgramLogSize = _cyb_GetProcAddress(handle, 'nvvmGetProgramLogSize') - - global __nvvmGetProgramLog - __nvvmGetProgramLog = _cyb_GetProcAddress(handle, 'nvvmGetProgramLog') - - global __nvvmLLVMVersion - __nvvmLLVMVersion = _cyb_GetProcAddress(handle, 'nvvmLLVMVersion') + for i in range(_cyb_nvvm_n_functions): + _cyb_nvvm_slots[i][0] = _cyb_GetProcAddress(handle, _cyb_nvvm_names[i]) _cyb_atomic_int_store(&_cyb___py_nvvm_init, 1) return 0 @@ -147,47 +127,9 @@ cpdef dict _inspect_function_pointers(): _check_or_init_nvvm() cdef dict data = {} - global __nvvmGetErrorString - data["__nvvmGetErrorString"] = __nvvmGetErrorString - - global __nvvmVersion - data["__nvvmVersion"] = __nvvmVersion - - global __nvvmIRVersion - data["__nvvmIRVersion"] = __nvvmIRVersion - - global __nvvmCreateProgram - data["__nvvmCreateProgram"] = __nvvmCreateProgram - - global __nvvmDestroyProgram - data["__nvvmDestroyProgram"] = __nvvmDestroyProgram - - global __nvvmAddModuleToProgram - data["__nvvmAddModuleToProgram"] = __nvvmAddModuleToProgram - - global __nvvmLazyAddModuleToProgram - data["__nvvmLazyAddModuleToProgram"] = __nvvmLazyAddModuleToProgram - - global __nvvmCompileProgram - data["__nvvmCompileProgram"] = __nvvmCompileProgram - - global __nvvmVerifyProgram - data["__nvvmVerifyProgram"] = __nvvmVerifyProgram - - global __nvvmGetCompiledResultSize - data["__nvvmGetCompiledResultSize"] = __nvvmGetCompiledResultSize - - global __nvvmGetCompiledResult - data["__nvvmGetCompiledResult"] = __nvvmGetCompiledResult - - global __nvvmGetProgramLogSize - data["__nvvmGetProgramLogSize"] = __nvvmGetProgramLogSize - - global __nvvmGetProgramLog - data["__nvvmGetProgramLog"] = __nvvmGetProgramLog - - global __nvvmLLVMVersion - data["__nvvmLLVMVersion"] = __nvvmLLVMVersion + cdef Py_ssize_t i + for i in range(_cyb_nvvm_n_functions): + data['__' + _cyb_nvvm_names[i].decode()] = _cyb_nvvm_slots[i][0] _cyb_func_ptrs = data return data diff --git a/cuda_bindings_13/cuda/bindings/cudla.pyx b/cuda_bindings_13/cuda/bindings/cudla.pyx index fb2216099064..9501e6b20e24 100644 --- a/cuda_bindings_13/cuda/bindings/cudla.pyx +++ b/cuda_bindings_13/cuda/bindings/cudla.pyx @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # This code was automatically generated across versions from 1.5.0 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=711776bbf00006ba25e23a41a5d49a9af388c719f3765786c55f19dbb8e4286b +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=4fb80303cf58308e310478def045302e182c8c4a8b169efd0b22cd322629190e # <<<< PREAMBLE CONTENT >>>> @@ -15,6 +15,7 @@ from cpython.buffer cimport ( PyObject_GetBuffer as _cyb_PyObject_GetBuffer, Py_buffer as _cyb_Py_buffer, ) +cimport cython as _cyb_cython from cython cimport view as _cyb_view from libc.stdint cimport ( intptr_t, @@ -28,7 +29,7 @@ from libc.string cimport ( memmove as _cyb_memmove, ) -from enum import IntEnum as _cyb_IntEnum +from cuda.bindings._internal._fast_enum import FastEnum as _cyb_FastEnum import numpy as _numpy @@ -1319,8 +1320,9 @@ cdef class SignalEvents: cdef _cyb_view.array arr = _cyb_view.array(shape=(_n,), itemsize=sizeof(intptr_t), format="q", mode="c") cdef intptr_t[:] mv = arr cdef Py_ssize_t i - for i in range(_n): - mv[i] = val[i] + with _cyb_cython.boundscheck(False), _cyb_cython.wraparound(False): + for i in range(_n): + mv[i] = val[i] self._ptr[0].devPtrs = (arr.data) self._refs["dev_ptrs"] = arr @@ -1499,8 +1501,9 @@ cdef class Task: cdef _cyb_view.array arr = _cyb_view.array(shape=(_n,), itemsize=sizeof(intptr_t), format="q", mode="c") cdef intptr_t[:] mv = arr cdef Py_ssize_t i - for i in range(_n): - mv[i] = val[i] + with _cyb_cython.boundscheck(False), _cyb_cython.wraparound(False): + for i in range(_n): + mv[i] = val[i] self._ptr[0].outputTensor = (arr.data) self._refs["output_tensor"] = arr @@ -1524,8 +1527,9 @@ cdef class Task: cdef _cyb_view.array arr = _cyb_view.array(shape=(_n,), itemsize=sizeof(intptr_t), format="q", mode="c") cdef intptr_t[:] mv = arr cdef Py_ssize_t i - for i in range(_n): - mv[i] = val[i] + with _cyb_cython.boundscheck(False), _cyb_cython.wraparound(False): + for i in range(_n): + mv[i] = val[i] self._ptr[0].inputTensor = (arr.data) self._refs["input_tensor"] = arr @@ -1593,7 +1597,7 @@ cdef class Task: # Enum ############################################################################### -class Status(_cyb_IntEnum): +class Status(_cyb_FastEnum): """ See `cudlaStatus`. """ @@ -1646,14 +1650,14 @@ class Status(_cyb_IntEnum): ERROR_UNKNOWN = cudlaErrorUnknown ErrorUnknown = ERROR_UNKNOWN # backward-compat alias -class Mode(_cyb_IntEnum): +class Mode(_cyb_FastEnum): """ See `cudlaMode`. """ CUDA_DLA = CUDLA_CUDA_DLA STANDALONE = CUDLA_STANDALONE -class ModuleAttributeType(_cyb_IntEnum): +class ModuleAttributeType(_cyb_FastEnum): """ See `cudlaModuleAttributeType`. """ @@ -1664,7 +1668,7 @@ class ModuleAttributeType(_cyb_IntEnum): NUM_OUTPUT_TASK_STATISTICS = CUDLA_NUM_OUTPUT_TASK_STATISTICS OUTPUT_TASK_STATISTICS_DESCRIPTORS = CUDLA_OUTPUT_TASK_STATISTICS_DESCRIPTORS -class FenceType(_cyb_IntEnum): +class FenceType(_cyb_FastEnum): """ See `cudlaFenceType`. """ @@ -1673,7 +1677,7 @@ class FenceType(_cyb_IntEnum): FENCE_SOF = CUDLA_NVSCISYNC_FENCE_SOF NVSCISYNC_FENCE_SOF = FENCE_SOF # backward-compat alias -class ModuleLoadFlags(_cyb_IntEnum): +class ModuleLoadFlags(_cyb_FastEnum): """ See `cudlaModuleLoadFlags`. """ @@ -1682,7 +1686,7 @@ class ModuleLoadFlags(_cyb_IntEnum): ENABLE_FAULT_DIAGNOSTICS = CUDLA_MODULE_ENABLE_FAULT_DIAGNOSTICS MODULE_ENABLE_FAULT_DIAGNOSTICS = ENABLE_FAULT_DIAGNOSTICS # backward-compat alias -class SubmissionFlags(_cyb_IntEnum): +class SubmissionFlags(_cyb_FastEnum): """ See `cudlaSubmissionFlags`. """ @@ -1693,7 +1697,7 @@ class SubmissionFlags(_cyb_IntEnum): DIAGNOSTICS_TASK = CUDLA_SUBMIT_DIAGNOSTICS_TASK SUBMIT_DIAGNOSTICS_TASK = DIAGNOSTICS_TASK # backward-compat alias -class AccessPermissionFlags(_cyb_IntEnum): +class AccessPermissionFlags(_cyb_FastEnum): """ See `cudlaAccessPermissionFlags`. """ @@ -1701,14 +1705,14 @@ class AccessPermissionFlags(_cyb_IntEnum): READ_ONLY_PERM = CUDLA_READ_ONLY_PERM TASK_STATISTICS = CUDLA_TASK_STATISTICS -class DevAttributeType(_cyb_IntEnum): +class DevAttributeType(_cyb_FastEnum): """ See `cudlaDevAttributeType`. """ UNIFIED_ADDRESSING = CUDLA_UNIFIED_ADDRESSING DEVICE_VERSION = CUDLA_DEVICE_VERSION -class ScratchMemoryConfig(_cyb_IntEnum): +class ScratchMemoryConfig(_cyb_FastEnum): """ See `cudlaScratchMemoryConfig`. """ @@ -1888,4 +1892,4 @@ cpdef module_get_attributes(intptr_t h_module, int attr_type): free(desc_buf) else: raise ValueError(f"Unknown attribute type: {attr_type}") -del _cyb_IntEnum +del _cyb_FastEnum From 5d7fbb69d9952353538f40fd6aee4edccee62126 Mon Sep 17 00:00:00 2001 From: Andy Jost Date: Tue, 10 Nov 2026 11:51:50 -0800 Subject: [PATCH 25/85] [doc-only] docs(cuda.core): finalize 1.3.0 release notes, docs switcher, and metapackage pin (#3424) * docs(cuda.core): finalize 1.3.0 release notes, docs switcher, and metapackage pin Expand the 1.3.0 highlights, add entries for user-facing PRs that had none, drop stale Python 3.10 remarks, and add a Known issues section (#2795, #2765). Add 1.3.0 to nv-versions.json and bump the cuda-python metapackage pin to cuda-core~=1.3.0. Co-Authored-By: Claude Opus 5.5 * docs(cuda.core): note the CCCL submodule requirement for source builds Co-Authored-By: Claude Opus 5.5 * docs(cuda.core): trim 1.3.0 breaking changes; apply review fixes Keep only the cuda-bindings floor under Breaking Changes and drop the source-build and internal entries. Apply review findings: nvJitLink 13.6 limit for the LTO cache, priority=0 meaning, the narrower scope of known issue #2765, cite #3289, and drop an entry for a bug that never shipped. Restore the 1.2.1 notes entries that main lacked. Co-Authored-By: Claude Opus 5.5 * docs(cuda.core): quote the extras in the 1.3.0 install commands Co-Authored-By: Claude Opus 5.5 * docs(cuda.core): fold the floor into 1.3.0 highlights; reword the PyTorch entry Merge the Breaking Changes section into Highlights. Name the StridedMemoryView methods instead of the internal tensor bridge, and move the entry to Fixes and enhancements. Co-Authored-By: Claude Opus 5.5 --------- Co-authored-by: Claude Opus 5.5 --- cuda_core/docs/nv-versions.json | 4 + cuda_core/docs/source/release/1.2.1-notes.rst | 21 ++++ cuda_core/docs/source/release/1.3.0-notes.rst | 111 ++++++++++++------ cuda_python/setup.py | 2 +- 4 files changed, 101 insertions(+), 37 deletions(-) diff --git a/cuda_core/docs/nv-versions.json b/cuda_core/docs/nv-versions.json index 01c03934beda..33499e3d6ebb 100644 --- a/cuda_core/docs/nv-versions.json +++ b/cuda_core/docs/nv-versions.json @@ -3,6 +3,10 @@ "version": "latest", "url": "https://nvidia.github.io/cuda-python/cuda-core/latest/" }, + { + "version": "1.3.0", + "url": "https://nvidia.github.io/cuda-python/cuda-core/1.3.0/" + }, { "version": "1.2.2", "url": "https://nvidia.github.io/cuda-python/cuda-core/1.2.2/" diff --git a/cuda_core/docs/source/release/1.2.1-notes.rst b/cuda_core/docs/source/release/1.2.1-notes.rst index bd34d0f50c0a..3298c4523764 100644 --- a/cuda_core/docs/source/release/1.2.1-notes.rst +++ b/cuda_core/docs/source/release/1.2.1-notes.rst @@ -6,9 +6,30 @@ ``cuda.core`` 1.2.1 Release Notes ================================= +New features +------------ + +- Added Windows on ARM (``win_arm64``) wheels. They are provided for CUDA 13 + only and for Python 3.11 and newer, and require ``cuda.bindings`` 13.4.1 or + newer, the first release with Windows on ARM wheels of its own. CPython has + no Windows ARM64 build for Python 3.10. All wheels in this release are built + against the CUDA 13.4 toolkit, where 1.2.0 used 13.3; the supported CUDA and + driver versions are unchanged. + Fixes and enhancements ---------------------- +- :attr:`system.Device.current_clock_event_reasons` and + :attr:`system.Device.supported_clock_event_reasons` now recognize the + ``BOARD_LIMIT`` and ``RELIABILITY`` clock-event reasons that CUDA 13.4 + introduced, and ``system.typing.ClocksEventReasons`` gained the matching + members. Previously, a device that reported either reason made these + properties raise ``ValueError`` for an unknown reason bit. + +- :attr:`system.Device.brand` now reports ``"NVIDIA DLA"``, + ``"NVIDIA vGameDev"`` and ``"NVIDIA NPU"`` for the brand types that CUDA 13.4 + introduced, instead of ``"Unknown"``. + - :meth:`Buffer.from_handle` no longer requires a current CUDA context when the memory resource reports ``is_device_accessible`` as ``False``. Host-only memory records no deallocation stream, so creating and closing such buffers diff --git a/cuda_core/docs/source/release/1.3.0-notes.rst b/cuda_core/docs/source/release/1.3.0-notes.rst index 831666f29868..5ed06b3e373f 100644 --- a/cuda_core/docs/source/release/1.3.0-notes.rst +++ b/cuda_core/docs/source/release/1.3.0-notes.rst @@ -9,38 +9,22 @@ Highlights ---------- +- ``cuda.core`` now requires ``cuda-bindings`` 12.9.8 or newer for CUDA 12, and 13.5.0 or newer + for CUDA 13. With an older ``cuda-bindings``, ``import cuda.core`` fails with a message that + names the required version. ``pip install 'cuda-core[cu12]'`` or ``pip install 'cuda-core[cu13]'`` + installs a compatible version. See the :ref:`support policy `. + (`#2783 `__) + - Support for Python 3.10 is dropped (end of life). -Breaking Changes ----------------- - -- ``cuda.core`` now requires a minimum ``cuda-bindings`` version per CUDA major, at build and run - time: 12.9.8 for CUDA 12 and 13.5.0 for CUDA 13. See the - :ref:`support policy `. ``import cuda.core`` with an older - ``cuda-bindings`` fails with a message that names the required version and how to install it. - ``pip install cuda-core[cu12]`` or ``pip install cuda-core[cu13]`` installs a compatible - version. Supported CUDA drivers and CUDA Toolkit libraries are unchanged. Previously - ``cuda.core`` accepted any ``cuda-bindings`` of the right major, and an older one produced import - errors for missing C functions, silently disabled features, or crashes. - (https://github.com/NVIDIA/cuda-python/issues/2783) - -- A source build of ``cuda.core`` must use a ``cuda.h`` of the same major.minor as its - ``cuda-bindings``. If they differ, the build fails early. - (https://github.com/NVIDIA/cuda-python/issues/2783) - -- With the ``cuda-bindings`` floor in place, whether a feature is available now depends only on - the CUDA driver and the ``cuda.core`` build's CUDA major. The checks that also inspected the - ``cuda-bindings`` version are gone, and so are their error messages. Error messages that name a - minimum now name a driver version. ``cuda.core.system`` always uses NVML through - ``cuda-bindings``, so ``cuda.core.system.CUDA_BINDINGS_NVML_IS_COMPATIBLE`` is always ``True``. - :mod:`cuda.core.checkpoint` requires the CUDA 13 build of ``cuda.core`` and now says so. That - requirement was already in effect, because the CUDA 12 ``cuda-bindings`` lack a type it uses. - (https://github.com/NVIDIA/cuda-python/issues/2783) - -- The C++ layer calls the driver through the entry points ``cuda-bindings`` resolves rather than - through its Cython wrappers. As a result, a driver function that the installed driver lacks can - no longer surface as ``SystemError`` from a C++ call. - (https://github.com/NVIDIA/cuda-python/issues/2783) +- :class:`VirtualMemoryResource` buffers can be shared with other processes through POSIX file + descriptors or fabric handles. + +- :func:`host_launch` enqueues a Python callable or a compiled host function on a stream in + stream order. + +- A new :doc:`error handling <../error_handling>` policy: :class:`CUDAWarning` reports CUDA + errors that cannot be raised, and :class:`CUDAOutOfMemoryError` is a :class:`MemoryError`. New features ------------ @@ -72,8 +56,23 @@ New features linker. :meth:`Linker.link` also accepts ``"ltoir"`` on nvJitLink 13.3 or newer so incremental LTO chains can retain IR until their final link. Direct PTX and CUBIN inputs are rejected for this target because they carry no LTOIR - and nvJitLink would otherwise silently omit them. - (`#2369 `__) + and nvJitLink would otherwise silently omit them. On nvJitLink versions + older than 13.6, incremental links with link-time optimization disable the + nvJitLink intermediate cache, which crashed after repeated links on Windows. + (`#2369 `__, + `#3038 `__) + +- Added the ``priority`` option to :class:`LaunchConfig`, which sets the + execution priority of a kernel launch. Lower numbers are higher priorities. + The valid range is the device's stream priority range, as for + :attr:`StreamOptions.priority`. A nonzero value outside it raises + ``ValueError``. The default, ``0``, leaves the stream's priority in effect. + (`#2631 `__) + +- Added the ``cluster_scheduling_policy_preference`` option to + :class:`LaunchConfig`: ``"DEFAULT"``, ``"SPREAD"``, or + ``"LOAD_BALANCING"``. It requires compute capability 9.0 or newer. + (`#2629 `__) - Added the read-only :attr:`ManagedBuffer.last_prefetch_location` property, which reports the destination requested by the most recent explicit @@ -160,6 +159,12 @@ New features Fixes and enhancements ---------------------- +- :meth:`utils.StridedMemoryView.from_dlpack` and + :meth:`utils.StridedMemoryView.from_array_interface` use the stable C API of + PyTorch 2.14 and newer for PyTorch tensors, and no longer cap the supported + PyTorch version. PyTorch 2.3 to 2.13 keep the previous path. + (`#3033 `__) + - Kernels can read and write :class:`PinnedMemoryResource` buffers. The driver makes a host memory pool accessible only from the host by default, so a kernel that touched such a buffer failed with ``CUDA_ERROR_ILLEGAL_ADDRESS``. @@ -296,8 +301,8 @@ Fixes and enhancements - When a :class:`Device` method has to run in the device's context and the caller's context cannot be restored afterwards, the created resource is - destroyed and the raised ``CUDAError`` now carries a note (Python 3.11+; - appended to the message on 3.10) stating that the caller's context could not + destroyed and the raised ``CUDAError`` now carries a note + stating that the caller's context could not be restored and which context is current. Previously the error named only the driver status of the failed ``cuCtxSetCurrent`` call. If the call itself failed as well, its error is raised and the restoration failure is the note. @@ -315,8 +320,7 @@ Fixes and enhancements context is current, returning ``None``. - A failed rollback of a partially embedded child graph node is now attached - as a note to the exception that triggered the rollback (reported as - :class:`CUDAWarning` on Python 3.10), and a failed ``cuStreamEndCapture`` + as a note to the exception that triggered the rollback, and a failed ``cuStreamEndCapture`` made when a still-building :class:`~graph.GraphBuilder` is garbage collected is now reported as :class:`CUDAWarning`; both were silent. @@ -447,6 +451,30 @@ Fixes and enhancements cuda.core error, please report". (`#3202 `__) +- A process that made a device current with :meth:`Device.set_current` no + longer crashes at interpreter shutdown. The primary context was released + from a thread-local destructor after Python had finalized. + (`#2743 `__) + +- :meth:`Buffer.from_ipc_descriptor` no longer deadlocks when two threads + import IPC buffers at the same time. + (`#2840 `__) + +- :class:`Linker` passes boolean nvJitLink options as ``1`` or ``0``. + Newer nvJitLink versions reject the ``true`` and ``false`` values that it + passed before. + (`#3254 `__) + +- :class:`Program` with ``code_type="nvvm"`` now raises :class:`CUDAError` + for twelve :class:`ProgramOptions` fields that libNVVM cannot use, such as + ``pch`` and ``no_cache``. Before, they were silently ignored. + (`#2954 `__, + `#3289 `__) + +- A new graph no longer adopts the metadata of a destroyed graph when the + driver reuses its handle address. Cleanup of the old graph could + invalidate the new one. + Deprecations ------------ @@ -456,3 +484,14 @@ Deprecations - ``TimeoutError`` is now ``NvmlTimeoutError``. - ``MemoryError`` is now ``NvmlMemoryError``. + +Known issues +------------ + +- :class:`PinnedMemoryResource` rejects ``HOST_NUMA`` pools on CUDA 12.6 to + 12.8 drivers, although the driver supports them. This is a regression in 1.2.0. + (`#2795 `__) + +- :meth:`SMResource.split` with ``dry_run=True`` raises when a group requests a nonzero SM + count, with a CUDA 13 build on a driver of 13.1 or newer. + (`#2765 `__) diff --git a/cuda_python/setup.py b/cuda_python/setup.py index 2223375aa8a5..df33673289eb 100644 --- a/cuda_python/setup.py +++ b/cuda_python/setup.py @@ -32,7 +32,7 @@ f"cuda-bindings{matcher}{version}", # Bump this with every cuda-core release and release cuda-python right # after it; see .github/RELEASE-core.md and cuda_python/AGENTS.md. - "cuda-core~=1.2.0", + "cuda-core~=1.3.0", "cuda-pathfinder~=1.1", ], extras_require={ From 8fa2bf71c4c0545e0a38300307587d663b77c2be Mon Sep 17 00:00:00 2001 From: Andy Jost Date: Tue, 10 Nov 2026 12:32:18 -0800 Subject: [PATCH 26/85] [doc-only] docs(cuda.core): define the cuda-bindings floor as the lowest compatible release (#3425) * docs(cuda.core): define the cuda-bindings floor as the lowest compatible release The written policy said that the floor is the newest cuda-bindings release of each major at the time of a cuda.core release. The intended policy is the opposite: the floor is the oldest release that was generated from the cuda.h major.minor the wheels are built against and that provides every API and fix cuda.core needs. State that rule, the three events that move a floor, and the release checks that replace "bump to newest". No pin, check, or test changes. Co-Authored-By: Claude Fable 5.2 * docs: make the floor release checks actionable Name the CI run and the log line for the floor check, and say that standard CI does not install the CUDA 12 floor. Require a new floor to be released on PyPI first. Drop a dangling "also". Co-Authored-By: Claude Opus 5.5 --------- Co-authored-by: Claude Fable 5.2 --- .github/RELEASE-core.md | 21 +++++++++-- cuda_core/AGENTS.md | 36 +++++++++++++++---- cuda_core/cuda/core/_bindings_floor.py | 11 +++--- cuda_core/cuda/core/_device_resources.pyx | 2 +- .../cuda/core/_memory/_copy_attributes.pxd | 2 +- cuda_core/docs/source/support.rst | 17 +++++---- 6 files changed, 66 insertions(+), 23 deletions(-) diff --git a/.github/RELEASE-core.md b/.github/RELEASE-core.md index 790c79c3e92d..45c49461416e 100644 --- a/.github/RELEASE-core.md +++ b/.github/RELEASE-core.md @@ -85,9 +85,24 @@ platforms as appropriate for each release. ## Check (or update if needed) the dependency requirements Review `cuda_core/pyproject.toml` and verify that all dependency -requirements are current. The `cu12`/`cu13` extras declare the -`cuda-bindings` floors; see "Bumping the cuda-bindings floor" in -`cuda_core/AGENTS.md`. +requirements are current. + +The `cu12`/`cu13` extras declare the `cuda-bindings` floors. A release +does not raise a floor to the newest `cuda-bindings`; see "Bumping the +cuda-bindings floor" in `cuda_core/AGENTS.md`. Check the floors instead: + +- The minor of each floor equals the minor of the toolkit pin of its + major in `ci/versions.yml` (`build` for the current major, `prev_build` + for the prior major). If a floor's minor is lower, the toolkit-bump + window is open: move the floor before the release. +- In the latest CI run on `main`, the CUDA 13 rows whose CUDA minor + differs from the `build` pin (for example "CUDA 13.0.2") installed the + literal floor. Their logs show `Installing bindings (source: floor)` and + `cuda-bindings==`, and no "predates ... headers" line. Standard + CI does not install the CUDA 12 floor: its rows use the 12.9.x backport + build. +- The release notes list every floor move since the last release under + "Breaking Changes". Update the `cuda-core` pin in `cuda_python/setup.py` to the new minor series (`cuda-core~=X.Y.0`), and plan a `cuda-python` release right after diff --git a/cuda_core/AGENTS.md b/cuda_core/AGENTS.md index 21e2f6565d57..20295a21dd2a 100644 --- a/cuda_core/AGENTS.md +++ b/cuda_core/AGENTS.md @@ -51,11 +51,28 @@ This file describes `cuda_core`, the high-level Pythonic CUDA subpackage in the ### Bumping the cuda-bindings floor -By policy, the floor of each major is the newest `cuda-bindings` release of -that major at the time of a `cuda.core` release. The bump is therefore a -release step. A `cuda-bindings` minor release does not trigger it. The first -change that uses a `cuda-bindings` API newer than the old floor also requires -a bump. To bump: +By policy, the floor of each major is the oldest `cuda-bindings` release that +meets two conditions. It was generated from the `cuda.h` major.minor that the +`cuda.core` wheels are built against, the toolkit pin of that major in +`ci/versions.yml`. It provides every `cuda-bindings` API that `cuda.core` uses +and every fix that `cuda.core` relies on. The floor's minor therefore equals +the build toolkit's minor, and the floor's patch is the lowest one that +qualifies. + +Three events move a floor: + +- A change uses a `cuda-bindings` API newer than the floor. Bump the floor in + the same pull request. The new floor must already be released on PyPI; + release `cuda-bindings` first. +- A change relies on a bug fix in a newer `cuda-bindings`. Bump the floor in + the same pull request, under the same condition. +- The build toolkit moves to a new minor. Move the floor to the lowest + suitable release of that minor, as described under "CUDA Toolkit minor + bumps". + +Nothing else moves a floor. A new `cuda-bindings` release does not, and a +`cuda.core` release does not. Do not raise a floor to the newest release. To +bump: 1. Edit the `cuda-bindings` pin in the `cu12` or `cu13` extra in `pyproject.toml`. That is the only version to type. @@ -74,7 +91,7 @@ a bump. To bump: 5. Pin `cuda-bindings` to match in the conda-forge `cuda-core` feedstock. The feedstock lives outside this repository. -A `cuda-core` release also bumps the `cuda-core~=X.Y.0` pin in +A `cuda-core` release bumps the `cuda-core~=X.Y.0` pin in `cuda_python/setup.py`, followed by a `cuda-python` release (see `.github/RELEASE-core.md`). @@ -98,7 +115,12 @@ the literal floor, until the floor is bumped. The order is: 1. Bump the toolkit. 2. Release `cuda-bindings` for the new minor. -3. Bump the floor here. +3. Move the floor here to the lowest suitable release of the new minor. That + is normally its first release. + +A `cuda.core` release must not ship while the window is open. In the window, +the `cu` extra can resolve to a `cuda-bindings` that fails the header +check at import, and CI does not test the literal floor. ## Testing expectations diff --git a/cuda_core/cuda/core/_bindings_floor.py b/cuda_core/cuda/core/_bindings_floor.py index bc915916880b..9fd71f6b0af5 100644 --- a/cuda_core/cuda/core/_bindings_floor.py +++ b/cuda_core/cuda/core/_bindings_floor.py @@ -6,10 +6,13 @@ cuda.core supports two CUDA major series at a time. For each series, it requires a minimum cuda-bindings version, the *floor*, at build time and at -run time. The floor is the newest cuda-bindings release of that series at the -time of the cuda.core release. Normally that is the release that the cuda.core -wheels are built against. See https://github.com/NVIDIA/cuda-python/issues/2783 -and the support policy in the documentation. +run time. The floor is the oldest cuda-bindings release of that series that +meets two conditions. It was generated from the ``cuda.h`` major.minor that the +cuda.core wheels are built against. It provides every cuda-bindings API and fix +that cuda.core needs. A new cuda-bindings release does not move the floor, and +a cuda.core release does not. See +https://github.com/NVIDIA/cuda-python/issues/2783 and the support policy in the +documentation. Exactly one place declares the floors: the ``cu12`` and ``cu13`` extras in ``pyproject.toml``. Each extra pins ``cuda-bindings>=,<``. diff --git a/cuda_core/cuda/core/_device_resources.pyx b/cuda_core/cuda/core/_device_resources.pyx index e4d5809b1936..bc8185bdb969 100644 --- a/cuda_core/cuda/core/_device_resources.pyx +++ b/cuda_core/cuda/core/_device_resources.pyx @@ -214,7 +214,7 @@ cdef int _structured_split_checked = 0 cdef inline bint _can_use_structured_sm_split(): """Whether the driver provides cuDevSmResourceSplit, a 13.1 driver API. Cached. - Every cuda-bindings at or above the 13.4 floor exports it. Only the driver can lack it.""" + Every cuda-bindings at or above the CUDA 13 floor exports it. Only the driver can lack it.""" global _structured_split_checked if _structured_split_checked != 0: return _structured_split_checked == 1 diff --git a/cuda_core/cuda/core/_memory/_copy_attributes.pxd b/cuda_core/cuda/core/_memory/_copy_attributes.pxd index aab29cdf8010..5fa2d3714c63 100644 --- a/cuda_core/cuda/core/_memory/_copy_attributes.pxd +++ b/cuda_core/cuda/core/_memory/_copy_attributes.pxd @@ -13,7 +13,7 @@ from cuda.core._utils.version cimport cy_driver_version # no-cython-lint IF CUDA_CORE_BUILD_MAJOR >= 13: cdef inline bint _with_attributes_available(): # cuMemcpyWithAttributesAsync is a 13.2 driver API. Every cuda-bindings at - # or above the 13.4 floor exports it, so only the driver can lack it. + # or above the CUDA 13 floor exports it, so only the driver can lack it. return cy_driver_version() >= (13, 2, 0) ELSE: cdef inline bint _with_attributes_available(): diff --git a/cuda_core/docs/source/support.rst b/cuda_core/docs/source/support.rst index 66876f1559d7..4a83d73f7666 100644 --- a/cuda_core/docs/source/support.rst +++ b/cuda_core/docs/source/support.rst @@ -70,10 +70,12 @@ CUDA library or CUDA driver versions. Refer to the individual module documentati ************************************** For each supported CUDA major version, each ``cuda-core`` release declares a minimum -``cuda-bindings`` version, its *floor*. The floor is the newest ``cuda-bindings`` release of that -major at the time of the ``cuda-core`` release. The published wheels are built against it. The -``cu12`` and ``cu13`` extras of ``cuda-core`` in ``pyproject.toml`` declare the floors of the -current release. The build, the import-time check, this page, and CI all read them from there. +``cuda-bindings`` version, its *floor*. The floor is the oldest ``cuda-bindings`` release that +meets two conditions. It was generated from the ``cuda.h`` major.minor that the published +``cuda-core`` wheels are built against. It provides every ``cuda-bindings`` API and fix that +``cuda-core`` needs. The ``cu12`` and ``cu13`` extras of ``cuda-core`` in ``pyproject.toml`` +declare the floors of the current release. The build, the import-time check, this page, and CI +all read them from there. .. list-table:: ``cuda-bindings`` floors :header-rows: 1 @@ -102,9 +104,10 @@ current release. The build, the import-time check, this page, and CI all read th features. In that case ``cuda-core`` never crashes or returns a wrong result; depending on the feature, it may raise an error or emulate the feature. -A floor moves with each ``cuda-core`` release, to the newest ``cuda-bindings`` of each major at -that time. It also moves in any release whose changes need a newer ``cuda-bindings`` API. The -:doc:`release notes ` list every move under "Breaking Changes". +A floor moves only for one of two reasons. A ``cuda-core`` release needs a newer +``cuda-bindings`` API or fix, or its wheels are built against a newer CUDA minor version. A new +``cuda-bindings`` release alone does not move a floor, and a ``cuda-core`` release alone does +not. The :doc:`release notes ` list every move under "Breaking Changes". Python Version Support ---------------------- From 8b66bdc3cf76cfc3e61503dbcbbb1d3f557164f8 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Tue, 10 Nov 2026 17:48:29 -0500 Subject: [PATCH 27/85] Copy #3429 from the 12.9.x branch to cuda_bindings_12 (#3437) * Copy #3429 from the 12.9.x branch to cuda_bindings_12 * Address CodeRabbit comments --- .gitignore | 12 +- cuda_bindings_12/AGENTS.md | 6 +- cuda_bindings_12/build_hooks.py | 271 +- .../cuda/bindings/_bindings/__init__.py | 0 .../bindings/_bindings/cyruntime_ptds.pyx.in | 1765 --- .../cuda/bindings/_internal/_fast_enum.py | 5 +- .../cuda/bindings/_internal/cufile_linux.pyx | 363 +- .../cuda/bindings/_internal/driver.pxd | 4 +- .../cuda/bindings/_internal/driver_linux.pyx | 1948 +-- .../bindings/_internal/driver_windows.pyx | 1948 +-- .../cuda/bindings/_internal/nvfatbin.pxd | 4 +- .../bindings/_internal/nvfatbin_linux.pyx | 152 +- .../bindings/_internal/nvfatbin_windows.pyx | 106 +- .../cuda/bindings/_internal/nvjitlink.pxd | 4 +- .../bindings/_internal/nvjitlink_linux.pyx | 202 +- .../bindings/_internal/nvjitlink_windows.pyx | 136 +- .../cuda/bindings/_internal/nvml.pxd | 12 +- .../cuda/bindings/_internal/nvml_linux.pyx | 4614 +------ .../cuda/bindings/_internal/nvml_windows.pyx | 3134 +---- .../cuda/bindings/_internal/nvrtc_linux.pyx | 282 +- .../cuda/bindings/_internal/nvrtc_windows.pyx | 188 +- .../cuda/bindings/_internal/nvvm.pxd | 4 +- .../cuda/bindings/_internal/nvvm_linux.pyx | 174 +- .../cuda/bindings/_internal/nvvm_windows.pyx | 120 +- .../runtime.pxd} | 1196 +- .../cuda/bindings/_internal/runtime_linux.pyx | 2999 ++++ .../runtime_ptds.pxd} | 1198 +- .../bindings/_internal/runtime_ptds_linux.pyx | 2060 +++ .../_internal/runtime_ptds_windows.pyx | 2060 +++ .../runtime_windows.pyx} | 2168 +-- .../bindings/_lib/cyruntime/cyruntime.pxd | 43 +- .../bindings/_lib/cyruntime/cyruntime.pxi | 550 +- cuda_bindings_12/cuda/bindings/cufile.pyx | 312 +- cuda_bindings_12/cuda/bindings/cycufile.pxd | 43 +- cuda_bindings_12/cuda/bindings/cydriver.pxd | 313 +- cuda_bindings_12/cuda/bindings/cydriver.pyx | 6 +- cuda_bindings_12/cuda/bindings/cynvfatbin.pxd | 4 +- cuda_bindings_12/cuda/bindings/cynvfatbin.pyx | 4 +- .../cuda/bindings/cynvjitlink.pxd | 4 +- .../cuda/bindings/cynvjitlink.pyx | 4 +- cuda_bindings_12/cuda/bindings/cynvml.pxd | 54 +- cuda_bindings_12/cuda/bindings/cynvml.pyx | 36 +- cuda_bindings_12/cuda/bindings/cynvvm.pxd | 4 +- cuda_bindings_12/cuda/bindings/cynvvm.pyx | 4 +- cuda_bindings_12/cuda/bindings/cyruntime.pxd | 2492 ++++ .../cuda/bindings/cyruntime.pxd.in | 1952 --- .../{cyruntime.pyx.in => cyruntime.pyx} | 1353 +- .../cuda/bindings/cyruntime_functions.pxi.in | 1489 -- .../cuda/bindings/cyruntime_types.pxi.in | 1560 --- cuda_bindings_12/cuda/bindings/driver.pxd | 128 +- cuda_bindings_12/cuda/bindings/driver.pyx | 726 +- cuda_bindings_12/cuda/bindings/nvfatbin.pxd | 4 +- cuda_bindings_12/cuda/bindings/nvfatbin.pyx | 17 +- cuda_bindings_12/cuda/bindings/nvjitlink.pxd | 4 +- cuda_bindings_12/cuda/bindings/nvjitlink.pyx | 17 +- cuda_bindings_12/cuda/bindings/nvml.pxd | 12 +- cuda_bindings_12/cuda/bindings/nvml.pyx | 4680 +++++-- cuda_bindings_12/cuda/bindings/nvvm.pxd | 4 +- cuda_bindings_12/cuda/bindings/nvvm.pyx | 26 +- .../bindings/{runtime.pxd.in => runtime.pxd} | 3052 ++-- .../bindings/{runtime.pyx.in => runtime.pyx} | 11534 +++++++--------- .../docs/source/environment_variables.md | 2 - cuda_bindings_12/pixi.toml | 1 - cuda_bindings_12/pyproject.toml | 2 - cuda_bindings_12/tests/test_build_hooks.py | 20 +- 65 files changed, 24728 insertions(+), 32863 deletions(-) delete mode 100644 cuda_bindings_12/cuda/bindings/_bindings/__init__.py delete mode 100644 cuda_bindings_12/cuda/bindings/_bindings/cyruntime_ptds.pyx.in rename cuda_bindings_12/cuda/bindings/{_bindings/cyruntime.pxd.in => _internal/runtime.pxd} (69%) create mode 100644 cuda_bindings_12/cuda/bindings/_internal/runtime_linux.pyx rename cuda_bindings_12/cuda/bindings/{_bindings/cyruntime_ptds.pxd.in => _internal/runtime_ptds.pxd} (69%) create mode 100644 cuda_bindings_12/cuda/bindings/_internal/runtime_ptds_linux.pyx create mode 100644 cuda_bindings_12/cuda/bindings/_internal/runtime_ptds_windows.pyx rename cuda_bindings_12/cuda/bindings/{_bindings/cyruntime.pyx.in => _internal/runtime_windows.pyx} (50%) create mode 100644 cuda_bindings_12/cuda/bindings/cyruntime.pxd delete mode 100644 cuda_bindings_12/cuda/bindings/cyruntime.pxd.in rename cuda_bindings_12/cuda/bindings/{cyruntime.pyx.in => cyruntime.pyx} (52%) delete mode 100644 cuda_bindings_12/cuda/bindings/cyruntime_functions.pxi.in delete mode 100644 cuda_bindings_12/cuda/bindings/cyruntime_types.pxi.in rename cuda_bindings_12/cuda/bindings/{runtime.pxd.in => runtime.pxd} (61%) rename cuda_bindings_12/cuda/bindings/{runtime.pyx.in => runtime.pyx} (85%) diff --git a/.gitignore b/.gitignore index 707ee5227dca..7b8d5209da8e 100644 --- a/.gitignore +++ b/.gitignore @@ -41,10 +41,6 @@ cuda_bindings_13/cuda/bindings/_internal/runtime_ptds.pyx cuda_bindings_13/cuda/bindings/utils/_get_handle.pyx # CUDA 12 bindings source generation -cuda_bindings_12/cuda/bindings/_bindings/cyruntime.pxd -cuda_bindings_12/cuda/bindings/_bindings/cyruntime.pyx -cuda_bindings_12/cuda/bindings/_bindings/cyruntime_ptds.pxd -cuda_bindings_12/cuda/bindings/_bindings/cyruntime_ptds.pyx cuda_bindings_12/cuda/bindings/_internal/cufile.pyx cuda_bindings_12/cuda/bindings/_internal/driver.pyx cuda_bindings_12/cuda/bindings/_internal/nvfatbin.pyx @@ -52,12 +48,8 @@ cuda_bindings_12/cuda/bindings/_internal/nvjitlink.pyx cuda_bindings_12/cuda/bindings/_internal/nvml.pyx cuda_bindings_12/cuda/bindings/_internal/nvrtc.pyx cuda_bindings_12/cuda/bindings/_internal/nvvm.pyx -cuda_bindings_12/cuda/bindings/cyruntime.pxd -cuda_bindings_12/cuda/bindings/cyruntime.pyx -cuda_bindings_12/cuda/bindings/cyruntime_functions.pxi -cuda_bindings_12/cuda/bindings/cyruntime_types.pxi -cuda_bindings_12/cuda/bindings/runtime.pxd -cuda_bindings_12/cuda/bindings/runtime.pyx +cuda_bindings_12/cuda/bindings/_internal/runtime.pyx +cuda_bindings_12/cuda/bindings/_internal/runtime_ptds.pyx # Version files from setuptools_scm _version.py diff --git a/cuda_bindings_12/AGENTS.md b/cuda_bindings_12/AGENTS.md index c3a5af6e2385..e3f50d0e0a98 100644 --- a/cuda_bindings_12/AGENTS.md +++ b/cuda_bindings_12/AGENTS.md @@ -15,9 +15,9 @@ intentional API, layout, and build differences. - Handwritten utilities, build helpers, tests, and documentation can be edited directly. Inspect headers and provenance; a filename extension alone does not identify generated code. -- Source builds parse CUDA headers and expand `.in` templates before Cython. - Regenerate these outputs from their templates and headers. Preserve the - CUDA 12 parser, legacy APIs, and namespace redirector. +- Source builds do not parse CUDA headers or expand templates; all binding + sources, including `runtime`, are pre-generated. Preserve the CUDA 12 + legacy APIs and namespace redirector. ## Build and test guidance diff --git a/cuda_bindings_12/build_hooks.py b/cuda_bindings_12/build_hooks.py index 75a057b89071..94396a169491 100644 --- a/cuda_bindings_12/build_hooks.py +++ b/cuda_bindings_12/build_hooks.py @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # This module implements basic PEP 517 backend support to defer CUDA-dependent -# logic (header parsing, code generation, cythonization) to build time. See: +# logic (cythonization) to build time. See: # - https://peps.python.org/pep-0517/ # - https://setuptools.pypa.io/en/latest/build_meta.html#dynamic-build-dependencies-and-other-build-meta-tweaks # - https://github.com/NVIDIA/cuda-python/issues/1635 @@ -203,209 +203,6 @@ def record_build_toolchain() -> None: record_build_key(_BUILD_TOOLCHAIN_STAMP, name) -# ----------------------------------------------------------------------- -# Header parsing helpers (called only from _build_cuda_bindings) - -_REQUIRED_HEADERS = { - "runtime": [ - "driver_types.h", - "vector_types.h", - "cuda_runtime.h", - "surface_types.h", - "texture_types.h", - "library_types.h", - "cuda_runtime_api.h", - "device_types.h", - "driver_functions.h", - "cuda_profiler_api.h", - ], - # nvrtc: headers no longer parsed at build time (pre-generated by cybind). - # During compilation, Cython will reference C headers that are not - # explicitly parsed above. These are the known dependencies: - # - # - crt/host_defines.h - # - builtin_types.h - # - cuda_device_runtime_api.h -} - - -class _Struct: - def __init__(self, name, members): - self._name = name - self._member_names = [] - self._member_types = [] - self._member_declarators = [] - for var_name, var_type, _ in members: - base_type = var_type[0] - base_type = base_type.removeprefix("struct ") - base_type = base_type.removeprefix("union ") - - self._member_names += [var_name] - self._member_types += [base_type] - self._member_declarators += [tuple(var_type[1:])] - - def member_type(self, member_name): - try: - return self._member_types[self._member_names.index(member_name)] - except ValueError: - return None - - def member_array_length(self, member_name): - try: - declarators = self._member_declarators[self._member_names.index(member_name)] - except ValueError: - return None - - for declarator in declarators: - if isinstance(declarator, list) and len(declarator) == 1: - return declarator[0] - return None - - def discoverMembers(self, memberDict, prefix, seen=None): - if seen is None: - seen = set() - elif self._name in seen: - return [] - - discovered = [] - next_seen = set(seen) - next_seen.add(self._name) - - for memberName, memberType in zip(self._member_names, self._member_types): - if memberName: - discovered.append(".".join([prefix, memberName])) - - t = memberType.replace("const ", "").replace("volatile ", "").strip().rstrip(" *") - if t in memberDict and t != self._name: - discovered += memberDict[t].discoverMembers( - memberDict, discovered[-1] if memberName else prefix, next_seen - ) - - return discovered - - def __repr__(self): - return f"{self._name}: {self._member_names} with types {self._member_types}" - - -def _fetch_header_paths(required_headers, include_path_list): - header_dict = {} - missing_headers = [] - for library, header_list in required_headers.items(): - header_paths = [] - for header in header_list: - path_candidate = [os.path.join(path, header) for path in include_path_list] - for path in path_candidate: - if os.path.exists(path): - header_paths += [path] - break - else: - missing_headers += [header] - - header_dict[library] = header_paths - - if missing_headers: - error_message = "Couldn't find required headers: " - error_message += ", ".join(missing_headers) - cuda_paths = _get_cuda_paths() - raise RuntimeError(f'{error_message}\nIs CUDA_HOME setup correctly? (CUDA_HOME="{cuda_paths}")') - - return header_dict - - -def _parse_headers(header_dict, include_path_list, parser_caching): - from pyclibrary import CParser - - found_types = [] - found_functions = [] - found_values = [] - found_struct = [] - struct_list = {} - - replace = { - " __device_builtin__ ": " ", - "CUDARTAPI ": " ", - "typedef __device_builtin__ enum cudaError cudaError_t;": "typedef cudaError cudaError_t;", - "typedef __device_builtin__ enum cudaOutputMode cudaOutputMode_t;": "typedef cudaOutputMode cudaOutputMode_t;", - "typedef enum cudaError cudaError_t;": "typedef cudaError cudaError_t;", - "typedef enum cudaOutputMode cudaOutputMode_t;": "typedef cudaOutputMode cudaOutputMode_t;", - "typedef enum cudaDataType_t cudaDataType_t;": "", - "typedef enum libraryPropertyType_t libraryPropertyType_t;": "", - " enum ": " ", - ", enum ": ", ", - "\\(enum ": "(", - # Since we only support 64 bit architectures, we can inline the sizeof(T*) to 8 and then compute the - # result in Python. The arithmetic expression is preserved to help with clarity and understanding - r"char reserved\[52 - sizeof\(CUcheckpointGpuPair \*\)\];": rf"char reserved[{52 - 8}];", - r"char reserved\[64 - sizeof\(CUcheckpointGpuPair \*\) - sizeof\(unsigned int\)\];": ( - rf"char reserved[{64 - 8 - 4}];" - ), - } - - print(f'Parsing headers in "{include_path_list}" (Caching = {parser_caching})', flush=True) - for library, header_paths in header_dict.items(): - print(f"Parsing {library} headers", flush=True) - parser = CParser( - header_paths, cache="./cache_{}".format(library.split(".")[0]) if parser_caching else None, replace=replace - ) - - if library == "driver": - CUDA_VERSION = parser.defs["macros"].get("CUDA_VERSION", "Unknown") - print(f"Found CUDA_VERSION: {CUDA_VERSION}", flush=True) - - found_types += {*parser.defs["types"]} - found_types += {*parser.defs["structs"]} - found_types += {*parser.defs["unions"]} - found_types += {*parser.defs["enums"]} - found_functions += {*parser.defs["functions"]} - found_values += {*parser.defs["values"]} - - for key, value in parser.defs["structs"].items(): - struct_list[key] = _Struct(key, value["members"]) - for key, value in parser.defs["unions"].items(): - struct_list[key] = _Struct(key, value["members"]) - - for key, value in struct_list.items(): - if key.startswith("anon_union") or key.startswith("anon_struct"): - continue - - found_struct += [key] - discovered = value.discoverMembers(struct_list, key) - if discovered: - found_struct += discovered - - # TODO(#1312): make this work properly - found_types.append("CUstreamAtomicReductionDataType_enum") - - return found_types, found_functions, found_values, found_struct, struct_list - - -# ----------------------------------------------------------------------- -# Code generation helpers - - -def _fetch_input_files(path): - return [os.path.join(path, f) for f in os.listdir(path) if f.endswith(".in")] - - -def _generate_output(infile, template_vars): - from Cython import Tempita - - assert infile.endswith(".in") - outfile = infile[:-3] - - with open(infile, encoding="utf-8") as f: - pxdcontent = Tempita.Template(f.read()).substitute(template_vars) - - if os.path.exists(outfile): - with open(outfile, encoding="utf-8") as f: - if f.read() == pxdcontent: - print(f"Skipping {infile} (No change)", flush=True) - return - with open(outfile, "w", encoding="utf-8") as f: - print(f"Generating {infile}", flush=True) - f.write(pxdcontent) - - # ----------------------------------------------------------------------- # Extension preparation helpers @@ -459,9 +256,8 @@ def _prep_extensions(sources, libraries, include_dirs, library_dirs, extra_compi def _build_cuda_bindings(debug=False): """Build all cuda-bindings extensions. - All CUDA-dependent logic (header parsing, code generation, cythonization) - is deferred to this function so that metadata queries do not require a - CUDA toolkit installation. + All CUDA-dependent logic (cythonization) is deferred to this function so + that metadata queries do not require a CUDA toolkit installation. """ import Cython from Cython.Build import cythonize @@ -485,7 +281,6 @@ def _build_cuda_bindings(debug=False): else: nthreads = int(os.environ.get("CUDA_PYTHON_PARALLEL_LEVEL", "0") or "0") - parser_caching = bool(os.environ.get("CUDA_PYTHON_PARSER_CACHING", False)) compile_for_coverage = bool(int(os.environ.get("CUDA_PYTHON_COVERAGE", "0"))) toolchain, _cc, _cxx, extra_compile_args, extra_link_args = _resolve_toolchain( @@ -496,51 +291,8 @@ def _build_cuda_bindings(debug=False): if debug and sys.platform != "win32": extra_cythonize_kwargs["gdb_debug"] = True - # Parse CUDA headers - include_path_list = [os.path.join(path, "include") for path in cuda_paths] - header_dict = _fetch_header_paths(_REQUIRED_HEADERS, include_path_list) - found_types, found_functions, found_values, found_struct, struct_list = _parse_headers( - header_dict, include_path_list, parser_caching - ) - struct_field_types = {} - struct_field_array_lengths = {} - for struct_name, struct in struct_list.items(): - for member_name in struct._member_names: - key = f"{struct_name}.{member_name}" - struct_field_types[key] = struct.member_type(member_name) - struct_field_array_lengths[key] = struct.member_array_length(member_name) - - # Generate code from .in templates - path_list = [ - os.path.join("cuda"), - os.path.join("cuda", "bindings"), - os.path.join("cuda", "bindings", "_bindings"), - os.path.join("cuda", "bindings", "_internal"), - os.path.join("cuda", "bindings", "_lib"), - os.path.join("cuda", "bindings", "utils"), - ] - input_files = [] - for path in path_list: - input_files += _fetch_input_files(path) - - import platform - - template_vars = { - "found_types": found_types, - "found_functions": found_functions, - "found_values": found_values, - "found_struct": found_struct, - "struct_list": struct_list, - "struct_field_types": struct_field_types, - "struct_field_array_lengths": struct_field_array_lengths, - "os": os, - "sys": sys, - "platform": platform, - } - for file in input_files: - _generate_output(file, template_vars) - # Prepare compile/link arguments + include_path_list = [os.path.join(path, "include") for path in cuda_paths] include_dirs = [ os.path.dirname(sysconfig.get_path("include")), ] + include_path_list @@ -560,14 +312,19 @@ def _cleanup_dst_files(): # Build extension list extensions = [] - static_runtime_libraries = ["cudart_static", "rt"] if sys.platform == "linux" else ["cudart_static"] cuda_bindings_files = glob.glob("cuda/bindings/*.pyx") if sys.platform == "win32": cuda_bindings_files = [f for f in cuda_bindings_files if "cufile" not in f] + + def get_static_libraries(f): + if os.path.basename(f) in ("runtime.pyx", "runtime_ptds.pyx"): + if sys.platform == "linux": + return ["cudart_static", "rt"] + else: + return ["cudart_static"] + return None + sources_list = [ - # private - (["cuda/bindings/_bindings/cyruntime.pyx"], static_runtime_libraries), - (["cuda/bindings/_bindings/cyruntime_ptds.pyx"], static_runtime_libraries), # utils (["cuda/bindings/utils/*.pyx"], None), # public @@ -576,7 +333,7 @@ def _cleanup_dst_files(): (["cuda/*.pyx"], None), # internal files used by generated bindings (["cuda/bindings/_internal/utils.pyx"], None), - *(([f], None) for f in dst_files if f.endswith(".pyx")), + *(([f], get_static_libraries(f)) for f in dst_files if f.endswith(".pyx")), ] for sources, libraries in sources_list: diff --git a/cuda_bindings_12/cuda/bindings/_bindings/__init__.py b/cuda_bindings_12/cuda/bindings/_bindings/__init__.py deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/cuda_bindings_12/cuda/bindings/_bindings/cyruntime_ptds.pyx.in b/cuda_bindings_12/cuda/bindings/_bindings/cyruntime_ptds.pyx.in deleted file mode 100644 index df2a7422a95e..000000000000 --- a/cuda_bindings_12/cuda/bindings/_bindings/cyruntime_ptds.pyx.in +++ /dev/null @@ -1,1765 +0,0 @@ -# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -# SPDX-License-Identifier: Apache-2.0 - -# This code was automatically generated with version 12.9.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=9ef99cae70f08efa9f2a007ad5234e8632e797d6fd4109ca8e61034c69bd9658 -cdef extern from "": - """ - #define CUDA_API_PER_THREAD_DEFAULT_STREAM - """ - -include "../cyruntime_functions.pxi" - -cimport cython - -{{if 'cudaDeviceReset' in found_functions}} - -cdef cudaError_t _cudaDeviceReset() except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceReset() -{{endif}} - -{{if 'cudaDeviceSynchronize' in found_functions}} - -cdef cudaError_t _cudaDeviceSynchronize() except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceSynchronize() -{{endif}} - -{{if 'cudaDeviceSetLimit' in found_functions}} - -cdef cudaError_t _cudaDeviceSetLimit(cudaLimit limit, size_t value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceSetLimit(limit, value) -{{endif}} - -{{if 'cudaDeviceGetLimit' in found_functions}} - -cdef cudaError_t _cudaDeviceGetLimit(size_t* pValue, cudaLimit limit) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetLimit(pValue, limit) -{{endif}} - -{{if 'cudaDeviceGetTexture1DLinearMaxWidth' in found_functions}} - -cdef cudaError_t _cudaDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetTexture1DLinearMaxWidth(maxWidthInElements, fmtDesc, device) -{{endif}} - -{{if 'cudaDeviceGetCacheConfig' in found_functions}} - -cdef cudaError_t _cudaDeviceGetCacheConfig(cudaFuncCache* pCacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetCacheConfig(pCacheConfig) -{{endif}} - -{{if 'cudaDeviceGetStreamPriorityRange' in found_functions}} - -cdef cudaError_t _cudaDeviceGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetStreamPriorityRange(leastPriority, greatestPriority) -{{endif}} - -{{if 'cudaDeviceSetCacheConfig' in found_functions}} - -cdef cudaError_t _cudaDeviceSetCacheConfig(cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceSetCacheConfig(cacheConfig) -{{endif}} - -{{if 'cudaDeviceGetByPCIBusId' in found_functions}} - -cdef cudaError_t _cudaDeviceGetByPCIBusId(int* device, const char* pciBusId) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetByPCIBusId(device, pciBusId) -{{endif}} - -{{if 'cudaDeviceGetPCIBusId' in found_functions}} - -cdef cudaError_t _cudaDeviceGetPCIBusId(char* pciBusId, int length, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetPCIBusId(pciBusId, length, device) -{{endif}} - -{{if 'cudaIpcGetEventHandle' in found_functions}} - -cdef cudaError_t _cudaIpcGetEventHandle(cudaIpcEventHandle_t* handle, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaIpcGetEventHandle(handle, event) -{{endif}} - -{{if 'cudaIpcOpenEventHandle' in found_functions}} - -cdef cudaError_t _cudaIpcOpenEventHandle(cudaEvent_t* event, cudaIpcEventHandle_t handle) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaIpcOpenEventHandle(event, handle) -{{endif}} - -{{if 'cudaIpcGetMemHandle' in found_functions}} - -cdef cudaError_t _cudaIpcGetMemHandle(cudaIpcMemHandle_t* handle, void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaIpcGetMemHandle(handle, devPtr) -{{endif}} - -{{if 'cudaIpcOpenMemHandle' in found_functions}} - -cdef cudaError_t _cudaIpcOpenMemHandle(void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaIpcOpenMemHandle(devPtr, handle, flags) -{{endif}} - -{{if 'cudaIpcCloseMemHandle' in found_functions}} - -cdef cudaError_t _cudaIpcCloseMemHandle(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaIpcCloseMemHandle(devPtr) -{{endif}} - -{{if 'cudaDeviceFlushGPUDirectRDMAWrites' in found_functions}} - -cdef cudaError_t _cudaDeviceFlushGPUDirectRDMAWrites(cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceFlushGPUDirectRDMAWrites(target, scope) -{{endif}} - -{{if 'cudaDeviceRegisterAsyncNotification' in found_functions}} - -cdef cudaError_t _cudaDeviceRegisterAsyncNotification(int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceRegisterAsyncNotification(device, callbackFunc, userData, callback) -{{endif}} - -{{if 'cudaDeviceUnregisterAsyncNotification' in found_functions}} - -cdef cudaError_t _cudaDeviceUnregisterAsyncNotification(int device, cudaAsyncCallbackHandle_t callback) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceUnregisterAsyncNotification(device, callback) -{{endif}} - -{{if 'cudaDeviceGetSharedMemConfig' in found_functions}} - -cdef cudaError_t _cudaDeviceGetSharedMemConfig(cudaSharedMemConfig* pConfig) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetSharedMemConfig(pConfig) -{{endif}} - -{{if 'cudaDeviceSetSharedMemConfig' in found_functions}} - -cdef cudaError_t _cudaDeviceSetSharedMemConfig(cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceSetSharedMemConfig(config) -{{endif}} - -{{if 'cudaGetLastError' in found_functions}} - -cdef cudaError_t _cudaGetLastError() except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetLastError() -{{endif}} - -{{if 'cudaPeekAtLastError' in found_functions}} - -cdef cudaError_t _cudaPeekAtLastError() except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaPeekAtLastError() -{{endif}} - -{{if 'cudaGetErrorName' in found_functions}} - -cdef const char* _cudaGetErrorName(cudaError_t error) except ?NULL nogil: - return cudaGetErrorName(error) -{{endif}} - -{{if 'cudaGetErrorString' in found_functions}} - -cdef const char* _cudaGetErrorString(cudaError_t error) except ?NULL nogil: - return cudaGetErrorString(error) -{{endif}} - -{{if 'cudaGetDeviceCount' in found_functions}} - -cdef cudaError_t _cudaGetDeviceCount(int* count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetDeviceCount(count) -{{endif}} - -{{if 'cudaGetDeviceProperties_v2' in found_functions}} - -cdef cudaError_t _cudaGetDeviceProperties_v2(cudaDeviceProp* prop, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetDeviceProperties_v2(prop, device) -{{endif}} - -{{if 'cudaDeviceGetAttribute' in found_functions}} - -cdef cudaError_t _cudaDeviceGetAttribute(int* value, cudaDeviceAttr attr, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetAttribute(value, attr, device) -{{endif}} - -{{if 'cudaDeviceGetDefaultMemPool' in found_functions}} - -cdef cudaError_t _cudaDeviceGetDefaultMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetDefaultMemPool(memPool, device) -{{endif}} - -{{if 'cudaDeviceSetMemPool' in found_functions}} - -cdef cudaError_t _cudaDeviceSetMemPool(int device, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceSetMemPool(device, memPool) -{{endif}} - -{{if 'cudaDeviceGetMemPool' in found_functions}} - -cdef cudaError_t _cudaDeviceGetMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetMemPool(memPool, device) -{{endif}} - -{{if 'cudaDeviceGetNvSciSyncAttributes' in found_functions}} - -cdef cudaError_t _cudaDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, int device, int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, device, flags) -{{endif}} - -{{if 'cudaDeviceGetP2PAttribute' in found_functions}} - -cdef cudaError_t _cudaDeviceGetP2PAttribute(int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetP2PAttribute(value, attr, srcDevice, dstDevice) -{{endif}} - -{{if 'cudaChooseDevice' in found_functions}} - -cdef cudaError_t _cudaChooseDevice(int* device, const cudaDeviceProp* prop) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaChooseDevice(device, prop) -{{endif}} - -{{if 'cudaInitDevice' in found_functions}} - -cdef cudaError_t _cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaInitDevice(device, deviceFlags, flags) -{{endif}} - -{{if 'cudaSetDevice' in found_functions}} - -cdef cudaError_t _cudaSetDevice(int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaSetDevice(device) -{{endif}} - -{{if 'cudaGetDevice' in found_functions}} - -cdef cudaError_t _cudaGetDevice(int* device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetDevice(device) -{{endif}} - -{{if 'cudaSetDeviceFlags' in found_functions}} - -cdef cudaError_t _cudaSetDeviceFlags(unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaSetDeviceFlags(flags) -{{endif}} - -{{if 'cudaGetDeviceFlags' in found_functions}} - -cdef cudaError_t _cudaGetDeviceFlags(unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetDeviceFlags(flags) -{{endif}} - -{{if 'cudaStreamCreate' in found_functions}} - -cdef cudaError_t _cudaStreamCreate(cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamCreate(pStream) -{{endif}} - -{{if 'cudaStreamCreateWithFlags' in found_functions}} - -cdef cudaError_t _cudaStreamCreateWithFlags(cudaStream_t* pStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamCreateWithFlags(pStream, flags) -{{endif}} - -{{if 'cudaStreamCreateWithPriority' in found_functions}} - -cdef cudaError_t _cudaStreamCreateWithPriority(cudaStream_t* pStream, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamCreateWithPriority(pStream, flags, priority) -{{endif}} - -{{if 'cudaStreamGetPriority' in found_functions}} - -cdef cudaError_t _cudaStreamGetPriority(cudaStream_t hStream, int* priority) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamGetPriority(hStream, priority) -{{endif}} - -{{if 'cudaStreamGetFlags' in found_functions}} - -cdef cudaError_t _cudaStreamGetFlags(cudaStream_t hStream, unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamGetFlags(hStream, flags) -{{endif}} - -{{if 'cudaStreamGetId' in found_functions}} - -cdef cudaError_t _cudaStreamGetId(cudaStream_t hStream, unsigned long long* streamId) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamGetId(hStream, streamId) -{{endif}} - -{{if 'cudaStreamGetDevice' in found_functions}} - -cdef cudaError_t _cudaStreamGetDevice(cudaStream_t hStream, int* device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamGetDevice(hStream, device) -{{endif}} - -{{if 'cudaCtxResetPersistingL2Cache' in found_functions}} - -cdef cudaError_t _cudaCtxResetPersistingL2Cache() except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaCtxResetPersistingL2Cache() -{{endif}} - -{{if 'cudaStreamCopyAttributes' in found_functions}} - -cdef cudaError_t _cudaStreamCopyAttributes(cudaStream_t dst, cudaStream_t src) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamCopyAttributes(dst, src) -{{endif}} - -{{if 'cudaStreamGetAttribute' in found_functions}} - -cdef cudaError_t _cudaStreamGetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, cudaStreamAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamGetAttribute(hStream, attr, value_out) -{{endif}} - -{{if 'cudaStreamSetAttribute' in found_functions}} - -cdef cudaError_t _cudaStreamSetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, const cudaStreamAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamSetAttribute(hStream, attr, value) -{{endif}} - -{{if 'cudaStreamDestroy' in found_functions}} - -cdef cudaError_t _cudaStreamDestroy(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamDestroy(stream) -{{endif}} - -{{if 'cudaStreamWaitEvent' in found_functions}} - -cdef cudaError_t _cudaStreamWaitEvent(cudaStream_t stream, cudaEvent_t event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamWaitEvent(stream, event, flags) -{{endif}} - -{{if 'cudaStreamAddCallback' in found_functions}} - -cdef cudaError_t _cudaStreamAddCallback(cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamAddCallback(stream, callback, userData, flags) -{{endif}} - -{{if 'cudaStreamSynchronize' in found_functions}} - -cdef cudaError_t _cudaStreamSynchronize(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamSynchronize(stream) -{{endif}} - -{{if 'cudaStreamQuery' in found_functions}} - -cdef cudaError_t _cudaStreamQuery(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamQuery(stream) -{{endif}} - -{{if 'cudaStreamAttachMemAsync' in found_functions}} - -cdef cudaError_t _cudaStreamAttachMemAsync(cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamAttachMemAsync(stream, devPtr, length, flags) -{{endif}} - -{{if 'cudaStreamBeginCapture' in found_functions}} - -cdef cudaError_t _cudaStreamBeginCapture(cudaStream_t stream, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamBeginCapture(stream, mode) -{{endif}} - -{{if 'cudaStreamBeginCaptureToGraph' in found_functions}} - -cdef cudaError_t _cudaStreamBeginCaptureToGraph(cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamBeginCaptureToGraph(stream, graph, dependencies, dependencyData, numDependencies, mode) -{{endif}} - -{{if 'cudaThreadExchangeStreamCaptureMode' in found_functions}} - -cdef cudaError_t _cudaThreadExchangeStreamCaptureMode(cudaStreamCaptureMode* mode) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaThreadExchangeStreamCaptureMode(mode) -{{endif}} - -{{if 'cudaStreamEndCapture' in found_functions}} - -cdef cudaError_t _cudaStreamEndCapture(cudaStream_t stream, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamEndCapture(stream, pGraph) -{{endif}} - -{{if 'cudaStreamIsCapturing' in found_functions}} - -cdef cudaError_t _cudaStreamIsCapturing(cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamIsCapturing(stream, pCaptureStatus) -{{endif}} - -{{if 'cudaStreamGetCaptureInfo_v2' in found_functions}} - -cdef cudaError_t _cudaStreamGetCaptureInfo_v2(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamGetCaptureInfo_v2_ptsz(stream, captureStatus_out, id_out, graph_out, dependencies_out, numDependencies_out) -{{endif}} - -{{if 'cudaStreamGetCaptureInfo_v3' in found_functions}} - -cdef cudaError_t _cudaStreamGetCaptureInfo_v3(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamGetCaptureInfo_v3(stream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) -{{endif}} - -{{if 'cudaStreamUpdateCaptureDependencies' in found_functions}} - -cdef cudaError_t _cudaStreamUpdateCaptureDependencies(cudaStream_t stream, cudaGraphNode_t* dependencies, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamUpdateCaptureDependencies(stream, dependencies, numDependencies, flags) -{{endif}} - -{{if 'cudaStreamUpdateCaptureDependencies_v2' in found_functions}} - -cdef cudaError_t _cudaStreamUpdateCaptureDependencies_v2(cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamUpdateCaptureDependencies_v2(stream, dependencies, dependencyData, numDependencies, flags) -{{endif}} - -{{if 'cudaEventCreate' in found_functions}} - -cdef cudaError_t _cudaEventCreate(cudaEvent_t* event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaEventCreate(event) -{{endif}} - -{{if 'cudaEventCreateWithFlags' in found_functions}} - -cdef cudaError_t _cudaEventCreateWithFlags(cudaEvent_t* event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaEventCreateWithFlags(event, flags) -{{endif}} - -{{if 'cudaEventRecord' in found_functions}} - -cdef cudaError_t _cudaEventRecord(cudaEvent_t event, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaEventRecord(event, stream) -{{endif}} - -{{if 'cudaEventRecordWithFlags' in found_functions}} - -cdef cudaError_t _cudaEventRecordWithFlags(cudaEvent_t event, cudaStream_t stream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaEventRecordWithFlags(event, stream, flags) -{{endif}} - -{{if 'cudaEventQuery' in found_functions}} - -cdef cudaError_t _cudaEventQuery(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaEventQuery(event) -{{endif}} - -{{if 'cudaEventSynchronize' in found_functions}} - -cdef cudaError_t _cudaEventSynchronize(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaEventSynchronize(event) -{{endif}} - -{{if 'cudaEventDestroy' in found_functions}} - -cdef cudaError_t _cudaEventDestroy(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaEventDestroy(event) -{{endif}} - -{{if 'cudaEventElapsedTime' in found_functions}} - -cdef cudaError_t _cudaEventElapsedTime(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaEventElapsedTime(ms, start, end) -{{endif}} - -{{if 'cudaEventElapsedTime_v2' in found_functions}} - -cdef cudaError_t _cudaEventElapsedTime_v2(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaEventElapsedTime_v2(ms, start, end) -{{endif}} - -{{if 'cudaImportExternalMemory' in found_functions}} - -cdef cudaError_t _cudaImportExternalMemory(cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaImportExternalMemory(extMem_out, memHandleDesc) -{{endif}} - -{{if 'cudaExternalMemoryGetMappedBuffer' in found_functions}} - -cdef cudaError_t _cudaExternalMemoryGetMappedBuffer(void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaExternalMemoryGetMappedBuffer(devPtr, extMem, bufferDesc) -{{endif}} - -{{if 'cudaExternalMemoryGetMappedMipmappedArray' in found_functions}} - -cdef cudaError_t _cudaExternalMemoryGetMappedMipmappedArray(cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaExternalMemoryGetMappedMipmappedArray(mipmap, extMem, mipmapDesc) -{{endif}} - -{{if 'cudaDestroyExternalMemory' in found_functions}} - -cdef cudaError_t _cudaDestroyExternalMemory(cudaExternalMemory_t extMem) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDestroyExternalMemory(extMem) -{{endif}} - -{{if 'cudaImportExternalSemaphore' in found_functions}} - -cdef cudaError_t _cudaImportExternalSemaphore(cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaImportExternalSemaphore(extSem_out, semHandleDesc) -{{endif}} - -{{if 'cudaSignalExternalSemaphoresAsync_v2' in found_functions}} - -cdef cudaError_t _cudaSignalExternalSemaphoresAsync_v2(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaSignalExternalSemaphoresAsync_v2_ptsz(extSemArray, paramsArray, numExtSems, stream) -{{endif}} - -{{if 'cudaWaitExternalSemaphoresAsync_v2' in found_functions}} - -cdef cudaError_t _cudaWaitExternalSemaphoresAsync_v2(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaWaitExternalSemaphoresAsync_v2_ptsz(extSemArray, paramsArray, numExtSems, stream) -{{endif}} - -{{if 'cudaDestroyExternalSemaphore' in found_functions}} - -cdef cudaError_t _cudaDestroyExternalSemaphore(cudaExternalSemaphore_t extSem) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDestroyExternalSemaphore(extSem) -{{endif}} - -{{if 'cudaFuncSetCacheConfig' in found_functions}} - -cdef cudaError_t _cudaFuncSetCacheConfig(const void* func, cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaFuncSetCacheConfig(func, cacheConfig) -{{endif}} - -{{if 'cudaFuncGetAttributes' in found_functions}} - -cdef cudaError_t _cudaFuncGetAttributes(cudaFuncAttributes* attr, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaFuncGetAttributes(attr, func) -{{endif}} - -{{if 'cudaFuncSetAttribute' in found_functions}} - -cdef cudaError_t _cudaFuncSetAttribute(const void* func, cudaFuncAttribute attr, int value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaFuncSetAttribute(func, attr, value) -{{endif}} - -{{if 'cudaLaunchHostFunc' in found_functions}} - -cdef cudaError_t _cudaLaunchHostFunc(cudaStream_t stream, cudaHostFn_t fn, void* userData) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaLaunchHostFunc(stream, fn, userData) -{{endif}} - -{{if 'cudaFuncSetSharedMemConfig' in found_functions}} - -cdef cudaError_t _cudaFuncSetSharedMemConfig(const void* func, cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaFuncSetSharedMemConfig(func, config) -{{endif}} - -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}} - -cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaOccupancyMaxActiveBlocksPerMultiprocessor(numBlocks, func, blockSize, dynamicSMemSize) -{{endif}} - -{{if 'cudaOccupancyAvailableDynamicSMemPerBlock' in found_functions}} - -cdef cudaError_t _cudaOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaOccupancyAvailableDynamicSMemPerBlock(dynamicSmemSize, func, numBlocks, blockSize) -{{endif}} - -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}} - -cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(numBlocks, func, blockSize, dynamicSMemSize, flags) -{{endif}} - -{{if 'cudaMallocManaged' in found_functions}} - -cdef cudaError_t _cudaMallocManaged(void** devPtr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMallocManaged(devPtr, size, flags) -{{endif}} - -{{if 'cudaMalloc' in found_functions}} - -cdef cudaError_t _cudaMalloc(void** devPtr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMalloc(devPtr, size) -{{endif}} - -{{if 'cudaMallocHost' in found_functions}} - -cdef cudaError_t _cudaMallocHost(void** ptr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMallocHost(ptr, size) -{{endif}} - -{{if 'cudaMallocPitch' in found_functions}} - -cdef cudaError_t _cudaMallocPitch(void** devPtr, size_t* pitch, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMallocPitch(devPtr, pitch, width, height) -{{endif}} - -{{if 'cudaMallocArray' in found_functions}} - -cdef cudaError_t _cudaMallocArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMallocArray(array, desc, width, height, flags) -{{endif}} - -{{if 'cudaFree' in found_functions}} - -cdef cudaError_t _cudaFree(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaFree(devPtr) -{{endif}} - -{{if 'cudaFreeHost' in found_functions}} - -cdef cudaError_t _cudaFreeHost(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaFreeHost(ptr) -{{endif}} - -{{if 'cudaFreeArray' in found_functions}} - -cdef cudaError_t _cudaFreeArray(cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaFreeArray(array) -{{endif}} - -{{if 'cudaFreeMipmappedArray' in found_functions}} - -cdef cudaError_t _cudaFreeMipmappedArray(cudaMipmappedArray_t mipmappedArray) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaFreeMipmappedArray(mipmappedArray) -{{endif}} - -{{if 'cudaHostAlloc' in found_functions}} - -cdef cudaError_t _cudaHostAlloc(void** pHost, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaHostAlloc(pHost, size, flags) -{{endif}} - -{{if 'cudaHostRegister' in found_functions}} - -cdef cudaError_t _cudaHostRegister(void* ptr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaHostRegister(ptr, size, flags) -{{endif}} - -{{if 'cudaHostUnregister' in found_functions}} - -cdef cudaError_t _cudaHostUnregister(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaHostUnregister(ptr) -{{endif}} - -{{if 'cudaHostGetDevicePointer' in found_functions}} - -cdef cudaError_t _cudaHostGetDevicePointer(void** pDevice, void* pHost, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaHostGetDevicePointer(pDevice, pHost, flags) -{{endif}} - -{{if 'cudaHostGetFlags' in found_functions}} - -cdef cudaError_t _cudaHostGetFlags(unsigned int* pFlags, void* pHost) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaHostGetFlags(pFlags, pHost) -{{endif}} - -{{if 'cudaMalloc3D' in found_functions}} - -cdef cudaError_t _cudaMalloc3D(cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMalloc3D(pitchedDevPtr, extent) -{{endif}} - -{{if 'cudaMalloc3DArray' in found_functions}} - -cdef cudaError_t _cudaMalloc3DArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMalloc3DArray(array, desc, extent, flags) -{{endif}} - -{{if 'cudaMallocMipmappedArray' in found_functions}} - -cdef cudaError_t _cudaMallocMipmappedArray(cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMallocMipmappedArray(mipmappedArray, desc, extent, numLevels, flags) -{{endif}} - -{{if 'cudaGetMipmappedArrayLevel' in found_functions}} - -cdef cudaError_t _cudaGetMipmappedArrayLevel(cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetMipmappedArrayLevel(levelArray, mipmappedArray, level) -{{endif}} - -{{if 'cudaMemcpy3D' in found_functions}} - -cdef cudaError_t _cudaMemcpy3D(const cudaMemcpy3DParms* p) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpy3D(p) -{{endif}} - -{{if 'cudaMemcpy3DPeer' in found_functions}} - -cdef cudaError_t _cudaMemcpy3DPeer(const cudaMemcpy3DPeerParms* p) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpy3DPeer(p) -{{endif}} - -{{if 'cudaMemcpy3DAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpy3DAsync(const cudaMemcpy3DParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpy3DAsync(p, stream) -{{endif}} - -{{if 'cudaMemcpy3DPeerAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpy3DPeerAsync(const cudaMemcpy3DPeerParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpy3DPeerAsync(p, stream) -{{endif}} - -{{if 'cudaMemGetInfo' in found_functions}} - -cdef cudaError_t _cudaMemGetInfo(size_t* free, size_t* total) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemGetInfo(free, total) -{{endif}} - -{{if 'cudaArrayGetInfo' in found_functions}} - -cdef cudaError_t _cudaArrayGetInfo(cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaArrayGetInfo(desc, extent, flags, array) -{{endif}} - -{{if 'cudaArrayGetPlane' in found_functions}} - -cdef cudaError_t _cudaArrayGetPlane(cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaArrayGetPlane(pPlaneArray, hArray, planeIdx) -{{endif}} - -{{if 'cudaArrayGetMemoryRequirements' in found_functions}} - -cdef cudaError_t _cudaArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaArrayGetMemoryRequirements(memoryRequirements, array, device) -{{endif}} - -{{if 'cudaMipmappedArrayGetMemoryRequirements' in found_functions}} - -cdef cudaError_t _cudaMipmappedArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMipmappedArrayGetMemoryRequirements(memoryRequirements, mipmap, device) -{{endif}} - -{{if 'cudaArrayGetSparseProperties' in found_functions}} - -cdef cudaError_t _cudaArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaArrayGetSparseProperties(sparseProperties, array) -{{endif}} - -{{if 'cudaMipmappedArrayGetSparseProperties' in found_functions}} - -cdef cudaError_t _cudaMipmappedArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMipmappedArrayGetSparseProperties(sparseProperties, mipmap) -{{endif}} - -{{if 'cudaMemcpy' in found_functions}} - -cdef cudaError_t _cudaMemcpy(void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpy(dst, src, count, kind) -{{endif}} - -{{if 'cudaMemcpyPeer' in found_functions}} - -cdef cudaError_t _cudaMemcpyPeer(void* dst, int dstDevice, const void* src, int srcDevice, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpyPeer(dst, dstDevice, src, srcDevice, count) -{{endif}} - -{{if 'cudaMemcpy2D' in found_functions}} - -cdef cudaError_t _cudaMemcpy2D(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpy2D(dst, dpitch, src, spitch, width, height, kind) -{{endif}} - -{{if 'cudaMemcpy2DToArray' in found_functions}} - -cdef cudaError_t _cudaMemcpy2DToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpy2DToArray(dst, wOffset, hOffset, src, spitch, width, height, kind) -{{endif}} - -{{if 'cudaMemcpy2DFromArray' in found_functions}} - -cdef cudaError_t _cudaMemcpy2DFromArray(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpy2DFromArray(dst, dpitch, src, wOffset, hOffset, width, height, kind) -{{endif}} - -{{if 'cudaMemcpy2DArrayToArray' in found_functions}} - -cdef cudaError_t _cudaMemcpy2DArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpy2DArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, width, height, kind) -{{endif}} - -{{if 'cudaMemcpyAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpyAsync(void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpyAsync(dst, src, count, kind, stream) -{{endif}} - -{{if 'cudaMemcpyPeerAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpyPeerAsync(void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpyPeerAsync(dst, dstDevice, src, srcDevice, count, stream) -{{endif}} - -{{if 'cudaMemcpyBatchAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpyBatchAsync(void** dsts, void** srcs, size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, size_t* failIdx, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpyBatchAsync(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, failIdx, stream) -{{endif}} - -{{if 'cudaMemcpy3DBatchAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpy3DBatchAsync(size_t numOps, cudaMemcpy3DBatchOp* opList, size_t* failIdx, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpy3DBatchAsync(numOps, opList, failIdx, flags, stream) -{{endif}} - -{{if 'cudaMemcpy2DAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpy2DAsync(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpy2DAsync(dst, dpitch, src, spitch, width, height, kind, stream) -{{endif}} - -{{if 'cudaMemcpy2DToArrayAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpy2DToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpy2DToArrayAsync(dst, wOffset, hOffset, src, spitch, width, height, kind, stream) -{{endif}} - -{{if 'cudaMemcpy2DFromArrayAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpy2DFromArrayAsync(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpy2DFromArrayAsync(dst, dpitch, src, wOffset, hOffset, width, height, kind, stream) -{{endif}} - -{{if 'cudaMemset' in found_functions}} - -cdef cudaError_t _cudaMemset(void* devPtr, int value, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemset(devPtr, value, count) -{{endif}} - -{{if 'cudaMemset2D' in found_functions}} - -cdef cudaError_t _cudaMemset2D(void* devPtr, size_t pitch, int value, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemset2D(devPtr, pitch, value, width, height) -{{endif}} - -{{if 'cudaMemset3D' in found_functions}} - -cdef cudaError_t _cudaMemset3D(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemset3D(pitchedDevPtr, value, extent) -{{endif}} - -{{if 'cudaMemsetAsync' in found_functions}} - -cdef cudaError_t _cudaMemsetAsync(void* devPtr, int value, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemsetAsync(devPtr, value, count, stream) -{{endif}} - -{{if 'cudaMemset2DAsync' in found_functions}} - -cdef cudaError_t _cudaMemset2DAsync(void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemset2DAsync(devPtr, pitch, value, width, height, stream) -{{endif}} - -{{if 'cudaMemset3DAsync' in found_functions}} - -cdef cudaError_t _cudaMemset3DAsync(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemset3DAsync(pitchedDevPtr, value, extent, stream) -{{endif}} - -{{if 'cudaMemPrefetchAsync' in found_functions}} - -cdef cudaError_t _cudaMemPrefetchAsync(const void* devPtr, size_t count, int dstDevice, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemPrefetchAsync(devPtr, count, dstDevice, stream) -{{endif}} - -{{if 'cudaMemPrefetchAsync_v2' in found_functions}} - -cdef cudaError_t _cudaMemPrefetchAsync_v2(const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemPrefetchAsync_v2(devPtr, count, location, flags, stream) -{{endif}} - -{{if 'cudaMemAdvise' in found_functions}} - -cdef cudaError_t _cudaMemAdvise(const void* devPtr, size_t count, cudaMemoryAdvise advice, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemAdvise(devPtr, count, advice, device) -{{endif}} - -{{if 'cudaMemAdvise_v2' in found_functions}} - -cdef cudaError_t _cudaMemAdvise_v2(const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemAdvise_v2(devPtr, count, advice, location) -{{endif}} - -{{if 'cudaMemRangeGetAttribute' in found_functions}} - -cdef cudaError_t _cudaMemRangeGetAttribute(void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemRangeGetAttribute(data, dataSize, attribute, devPtr, count) -{{endif}} - -{{if 'cudaMemRangeGetAttributes' in found_functions}} - -cdef cudaError_t _cudaMemRangeGetAttributes(void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemRangeGetAttributes(data, dataSizes, attributes, numAttributes, devPtr, count) -{{endif}} - -{{if 'cudaMemcpyToArray' in found_functions}} - -cdef cudaError_t _cudaMemcpyToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpyToArray(dst, wOffset, hOffset, src, count, kind) -{{endif}} - -{{if 'cudaMemcpyFromArray' in found_functions}} - -cdef cudaError_t _cudaMemcpyFromArray(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpyFromArray(dst, src, wOffset, hOffset, count, kind) -{{endif}} - -{{if 'cudaMemcpyArrayToArray' in found_functions}} - -cdef cudaError_t _cudaMemcpyArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpyArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, count, kind) -{{endif}} - -{{if 'cudaMemcpyToArrayAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpyToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpyToArrayAsync(dst, wOffset, hOffset, src, count, kind, stream) -{{endif}} - -{{if 'cudaMemcpyFromArrayAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpyFromArrayAsync(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpyFromArrayAsync(dst, src, wOffset, hOffset, count, kind, stream) -{{endif}} - -{{if 'cudaMallocAsync' in found_functions}} - -cdef cudaError_t _cudaMallocAsync(void** devPtr, size_t size, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMallocAsync(devPtr, size, hStream) -{{endif}} - -{{if 'cudaFreeAsync' in found_functions}} - -cdef cudaError_t _cudaFreeAsync(void* devPtr, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaFreeAsync(devPtr, hStream) -{{endif}} - -{{if 'cudaMemPoolTrimTo' in found_functions}} - -cdef cudaError_t _cudaMemPoolTrimTo(cudaMemPool_t memPool, size_t minBytesToKeep) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemPoolTrimTo(memPool, minBytesToKeep) -{{endif}} - -{{if 'cudaMemPoolSetAttribute' in found_functions}} - -cdef cudaError_t _cudaMemPoolSetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemPoolSetAttribute(memPool, attr, value) -{{endif}} - -{{if 'cudaMemPoolGetAttribute' in found_functions}} - -cdef cudaError_t _cudaMemPoolGetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemPoolGetAttribute(memPool, attr, value) -{{endif}} - -{{if 'cudaMemPoolSetAccess' in found_functions}} - -cdef cudaError_t _cudaMemPoolSetAccess(cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemPoolSetAccess(memPool, descList, count) -{{endif}} - -{{if 'cudaMemPoolGetAccess' in found_functions}} - -cdef cudaError_t _cudaMemPoolGetAccess(cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemPoolGetAccess(flags, memPool, location) -{{endif}} - -{{if 'cudaMemPoolCreate' in found_functions}} - -cdef cudaError_t _cudaMemPoolCreate(cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemPoolCreate(memPool, poolProps) -{{endif}} - -{{if 'cudaMemPoolDestroy' in found_functions}} - -cdef cudaError_t _cudaMemPoolDestroy(cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemPoolDestroy(memPool) -{{endif}} - -{{if 'cudaMallocFromPoolAsync' in found_functions}} - -cdef cudaError_t _cudaMallocFromPoolAsync(void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMallocFromPoolAsync(ptr, size, memPool, stream) -{{endif}} - -{{if 'cudaMemPoolExportToShareableHandle' in found_functions}} - -cdef cudaError_t _cudaMemPoolExportToShareableHandle(void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemPoolExportToShareableHandle(shareableHandle, memPool, handleType, flags) -{{endif}} - -{{if 'cudaMemPoolImportFromShareableHandle' in found_functions}} - -cdef cudaError_t _cudaMemPoolImportFromShareableHandle(cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemPoolImportFromShareableHandle(memPool, shareableHandle, handleType, flags) -{{endif}} - -{{if 'cudaMemPoolExportPointer' in found_functions}} - -cdef cudaError_t _cudaMemPoolExportPointer(cudaMemPoolPtrExportData* exportData, void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemPoolExportPointer(exportData, ptr) -{{endif}} - -{{if 'cudaMemPoolImportPointer' in found_functions}} - -cdef cudaError_t _cudaMemPoolImportPointer(void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemPoolImportPointer(ptr, memPool, exportData) -{{endif}} - -{{if 'cudaPointerGetAttributes' in found_functions}} - -cdef cudaError_t _cudaPointerGetAttributes(cudaPointerAttributes* attributes, const void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaPointerGetAttributes(attributes, ptr) -{{endif}} - -{{if 'cudaDeviceCanAccessPeer' in found_functions}} - -cdef cudaError_t _cudaDeviceCanAccessPeer(int* canAccessPeer, int device, int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceCanAccessPeer(canAccessPeer, device, peerDevice) -{{endif}} - -{{if 'cudaDeviceEnablePeerAccess' in found_functions}} - -cdef cudaError_t _cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceEnablePeerAccess(peerDevice, flags) -{{endif}} - -{{if 'cudaDeviceDisablePeerAccess' in found_functions}} - -cdef cudaError_t _cudaDeviceDisablePeerAccess(int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceDisablePeerAccess(peerDevice) -{{endif}} - -{{if 'cudaGraphicsUnregisterResource' in found_functions}} - -cdef cudaError_t _cudaGraphicsUnregisterResource(cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphicsUnregisterResource(resource) -{{endif}} - -{{if 'cudaGraphicsResourceSetMapFlags' in found_functions}} - -cdef cudaError_t _cudaGraphicsResourceSetMapFlags(cudaGraphicsResource_t resource, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphicsResourceSetMapFlags(resource, flags) -{{endif}} - -{{if 'cudaGraphicsMapResources' in found_functions}} - -cdef cudaError_t _cudaGraphicsMapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphicsMapResources(count, resources, stream) -{{endif}} - -{{if 'cudaGraphicsUnmapResources' in found_functions}} - -cdef cudaError_t _cudaGraphicsUnmapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphicsUnmapResources(count, resources, stream) -{{endif}} - -{{if 'cudaGraphicsResourceGetMappedPointer' in found_functions}} - -cdef cudaError_t _cudaGraphicsResourceGetMappedPointer(void** devPtr, size_t* size, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphicsResourceGetMappedPointer(devPtr, size, resource) -{{endif}} - -{{if 'cudaGraphicsSubResourceGetMappedArray' in found_functions}} - -cdef cudaError_t _cudaGraphicsSubResourceGetMappedArray(cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphicsSubResourceGetMappedArray(array, resource, arrayIndex, mipLevel) -{{endif}} - -{{if 'cudaGraphicsResourceGetMappedMipmappedArray' in found_functions}} - -cdef cudaError_t _cudaGraphicsResourceGetMappedMipmappedArray(cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphicsResourceGetMappedMipmappedArray(mipmappedArray, resource) -{{endif}} - -{{if 'cudaGetChannelDesc' in found_functions}} - -cdef cudaError_t _cudaGetChannelDesc(cudaChannelFormatDesc* desc, cudaArray_const_t array) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetChannelDesc(desc, array) -{{endif}} - -{{if 'cudaCreateChannelDesc' in found_functions}} -@cython.show_performance_hints(False) -cdef cudaChannelFormatDesc _cudaCreateChannelDesc(int x, int y, int z, int w, cudaChannelFormatKind f) except* nogil: - return cudaCreateChannelDesc(x, y, z, w, f) -{{endif}} - -{{if 'cudaCreateTextureObject' in found_functions}} - -cdef cudaError_t _cudaCreateTextureObject(cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaCreateTextureObject(pTexObject, pResDesc, pTexDesc, pResViewDesc) -{{endif}} - -{{if 'cudaDestroyTextureObject' in found_functions}} - -cdef cudaError_t _cudaDestroyTextureObject(cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDestroyTextureObject(texObject) -{{endif}} - -{{if 'cudaGetTextureObjectResourceDesc' in found_functions}} - -cdef cudaError_t _cudaGetTextureObjectResourceDesc(cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetTextureObjectResourceDesc(pResDesc, texObject) -{{endif}} - -{{if 'cudaGetTextureObjectTextureDesc' in found_functions}} - -cdef cudaError_t _cudaGetTextureObjectTextureDesc(cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetTextureObjectTextureDesc(pTexDesc, texObject) -{{endif}} - -{{if 'cudaGetTextureObjectResourceViewDesc' in found_functions}} - -cdef cudaError_t _cudaGetTextureObjectResourceViewDesc(cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetTextureObjectResourceViewDesc(pResViewDesc, texObject) -{{endif}} - -{{if 'cudaCreateSurfaceObject' in found_functions}} - -cdef cudaError_t _cudaCreateSurfaceObject(cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaCreateSurfaceObject(pSurfObject, pResDesc) -{{endif}} - -{{if 'cudaDestroySurfaceObject' in found_functions}} - -cdef cudaError_t _cudaDestroySurfaceObject(cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDestroySurfaceObject(surfObject) -{{endif}} - -{{if 'cudaGetSurfaceObjectResourceDesc' in found_functions}} - -cdef cudaError_t _cudaGetSurfaceObjectResourceDesc(cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetSurfaceObjectResourceDesc(pResDesc, surfObject) -{{endif}} - -{{if 'cudaDriverGetVersion' in found_functions}} - -cdef cudaError_t _cudaDriverGetVersion(int* driverVersion) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDriverGetVersion(driverVersion) -{{endif}} - -{{if 'cudaRuntimeGetVersion' in found_functions}} - -cdef cudaError_t _cudaRuntimeGetVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaRuntimeGetVersion(runtimeVersion) -{{endif}} - -{{if 'cudaGraphCreate' in found_functions}} - -cdef cudaError_t _cudaGraphCreate(cudaGraph_t* pGraph, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphCreate(pGraph, flags) -{{endif}} - -{{if 'cudaGraphAddKernelNode' in found_functions}} - -cdef cudaError_t _cudaGraphAddKernelNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddKernelNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) -{{endif}} - -{{if 'cudaGraphKernelNodeGetParams' in found_functions}} - -cdef cudaError_t _cudaGraphKernelNodeGetParams(cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphKernelNodeGetParams(node, pNodeParams) -{{endif}} - -{{if 'cudaGraphKernelNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphKernelNodeSetParams(cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphKernelNodeSetParams(node, pNodeParams) -{{endif}} - -{{if 'cudaGraphKernelNodeCopyAttributes' in found_functions}} - -cdef cudaError_t _cudaGraphKernelNodeCopyAttributes(cudaGraphNode_t hSrc, cudaGraphNode_t hDst) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphKernelNodeCopyAttributes(hSrc, hDst) -{{endif}} - -{{if 'cudaGraphKernelNodeGetAttribute' in found_functions}} - -cdef cudaError_t _cudaGraphKernelNodeGetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, cudaKernelNodeAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphKernelNodeGetAttribute(hNode, attr, value_out) -{{endif}} - -{{if 'cudaGraphKernelNodeSetAttribute' in found_functions}} - -cdef cudaError_t _cudaGraphKernelNodeSetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, const cudaKernelNodeAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphKernelNodeSetAttribute(hNode, attr, value) -{{endif}} - -{{if 'cudaGraphAddMemcpyNode' in found_functions}} - -cdef cudaError_t _cudaGraphAddMemcpyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddMemcpyNode(pGraphNode, graph, pDependencies, numDependencies, pCopyParams) -{{endif}} - -{{if 'cudaGraphAddMemcpyNode1D' in found_functions}} - -cdef cudaError_t _cudaGraphAddMemcpyNode1D(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddMemcpyNode1D(pGraphNode, graph, pDependencies, numDependencies, dst, src, count, kind) -{{endif}} - -{{if 'cudaGraphMemcpyNodeGetParams' in found_functions}} - -cdef cudaError_t _cudaGraphMemcpyNodeGetParams(cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphMemcpyNodeGetParams(node, pNodeParams) -{{endif}} - -{{if 'cudaGraphMemcpyNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphMemcpyNodeSetParams(cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphMemcpyNodeSetParams(node, pNodeParams) -{{endif}} - -{{if 'cudaGraphMemcpyNodeSetParams1D' in found_functions}} - -cdef cudaError_t _cudaGraphMemcpyNodeSetParams1D(cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphMemcpyNodeSetParams1D(node, dst, src, count, kind) -{{endif}} - -{{if 'cudaGraphAddMemsetNode' in found_functions}} - -cdef cudaError_t _cudaGraphAddMemsetNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddMemsetNode(pGraphNode, graph, pDependencies, numDependencies, pMemsetParams) -{{endif}} - -{{if 'cudaGraphMemsetNodeGetParams' in found_functions}} - -cdef cudaError_t _cudaGraphMemsetNodeGetParams(cudaGraphNode_t node, cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphMemsetNodeGetParams(node, pNodeParams) -{{endif}} - -{{if 'cudaGraphMemsetNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphMemsetNodeSetParams(cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphMemsetNodeSetParams(node, pNodeParams) -{{endif}} - -{{if 'cudaGraphAddHostNode' in found_functions}} - -cdef cudaError_t _cudaGraphAddHostNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddHostNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) -{{endif}} - -{{if 'cudaGraphHostNodeGetParams' in found_functions}} - -cdef cudaError_t _cudaGraphHostNodeGetParams(cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphHostNodeGetParams(node, pNodeParams) -{{endif}} - -{{if 'cudaGraphHostNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphHostNodeSetParams(cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphHostNodeSetParams(node, pNodeParams) -{{endif}} - -{{if 'cudaGraphAddChildGraphNode' in found_functions}} - -cdef cudaError_t _cudaGraphAddChildGraphNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddChildGraphNode(pGraphNode, graph, pDependencies, numDependencies, childGraph) -{{endif}} - -{{if 'cudaGraphChildGraphNodeGetGraph' in found_functions}} - -cdef cudaError_t _cudaGraphChildGraphNodeGetGraph(cudaGraphNode_t node, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphChildGraphNodeGetGraph(node, pGraph) -{{endif}} - -{{if 'cudaGraphAddEmptyNode' in found_functions}} - -cdef cudaError_t _cudaGraphAddEmptyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddEmptyNode(pGraphNode, graph, pDependencies, numDependencies) -{{endif}} - -{{if 'cudaGraphAddEventRecordNode' in found_functions}} - -cdef cudaError_t _cudaGraphAddEventRecordNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddEventRecordNode(pGraphNode, graph, pDependencies, numDependencies, event) -{{endif}} - -{{if 'cudaGraphEventRecordNodeGetEvent' in found_functions}} - -cdef cudaError_t _cudaGraphEventRecordNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphEventRecordNodeGetEvent(node, event_out) -{{endif}} - -{{if 'cudaGraphEventRecordNodeSetEvent' in found_functions}} - -cdef cudaError_t _cudaGraphEventRecordNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphEventRecordNodeSetEvent(node, event) -{{endif}} - -{{if 'cudaGraphAddEventWaitNode' in found_functions}} - -cdef cudaError_t _cudaGraphAddEventWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddEventWaitNode(pGraphNode, graph, pDependencies, numDependencies, event) -{{endif}} - -{{if 'cudaGraphEventWaitNodeGetEvent' in found_functions}} - -cdef cudaError_t _cudaGraphEventWaitNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphEventWaitNodeGetEvent(node, event_out) -{{endif}} - -{{if 'cudaGraphEventWaitNodeSetEvent' in found_functions}} - -cdef cudaError_t _cudaGraphEventWaitNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphEventWaitNodeSetEvent(node, event) -{{endif}} - -{{if 'cudaGraphAddExternalSemaphoresSignalNode' in found_functions}} - -cdef cudaError_t _cudaGraphAddExternalSemaphoresSignalNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddExternalSemaphoresSignalNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{endif}} - -{{if 'cudaGraphExternalSemaphoresSignalNodeGetParams' in found_functions}} - -cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExternalSemaphoresSignalNodeGetParams(hNode, params_out) -{{endif}} - -{{if 'cudaGraphExternalSemaphoresSignalNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams) -{{endif}} - -{{if 'cudaGraphAddExternalSemaphoresWaitNode' in found_functions}} - -cdef cudaError_t _cudaGraphAddExternalSemaphoresWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddExternalSemaphoresWaitNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{endif}} - -{{if 'cudaGraphExternalSemaphoresWaitNodeGetParams' in found_functions}} - -cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExternalSemaphoresWaitNodeGetParams(hNode, params_out) -{{endif}} - -{{if 'cudaGraphExternalSemaphoresWaitNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams) -{{endif}} - -{{if 'cudaGraphAddMemAllocNode' in found_functions}} - -cdef cudaError_t _cudaGraphAddMemAllocNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddMemAllocNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{endif}} - -{{if 'cudaGraphMemAllocNodeGetParams' in found_functions}} - -cdef cudaError_t _cudaGraphMemAllocNodeGetParams(cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphMemAllocNodeGetParams(node, params_out) -{{endif}} - -{{if 'cudaGraphAddMemFreeNode' in found_functions}} - -cdef cudaError_t _cudaGraphAddMemFreeNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddMemFreeNode(pGraphNode, graph, pDependencies, numDependencies, dptr) -{{endif}} - -{{if 'cudaGraphMemFreeNodeGetParams' in found_functions}} - -cdef cudaError_t _cudaGraphMemFreeNodeGetParams(cudaGraphNode_t node, void* dptr_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphMemFreeNodeGetParams(node, dptr_out) -{{endif}} - -{{if 'cudaDeviceGraphMemTrim' in found_functions}} - -cdef cudaError_t _cudaDeviceGraphMemTrim(int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGraphMemTrim(device) -{{endif}} - -{{if 'cudaDeviceGetGraphMemAttribute' in found_functions}} - -cdef cudaError_t _cudaDeviceGetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetGraphMemAttribute(device, attr, value) -{{endif}} - -{{if 'cudaDeviceSetGraphMemAttribute' in found_functions}} - -cdef cudaError_t _cudaDeviceSetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceSetGraphMemAttribute(device, attr, value) -{{endif}} - -{{if 'cudaGraphClone' in found_functions}} - -cdef cudaError_t _cudaGraphClone(cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphClone(pGraphClone, originalGraph) -{{endif}} - -{{if 'cudaGraphNodeFindInClone' in found_functions}} - -cdef cudaError_t _cudaGraphNodeFindInClone(cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphNodeFindInClone(pNode, originalNode, clonedGraph) -{{endif}} - -{{if 'cudaGraphNodeGetType' in found_functions}} - -cdef cudaError_t _cudaGraphNodeGetType(cudaGraphNode_t node, cudaGraphNodeType* pType) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphNodeGetType(node, pType) -{{endif}} - -{{if 'cudaGraphGetNodes' in found_functions}} - -cdef cudaError_t _cudaGraphGetNodes(cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphGetNodes(graph, nodes, numNodes) -{{endif}} - -{{if 'cudaGraphGetRootNodes' in found_functions}} - -cdef cudaError_t _cudaGraphGetRootNodes(cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphGetRootNodes(graph, pRootNodes, pNumRootNodes) -{{endif}} - -{{if 'cudaGraphGetEdges' in found_functions}} - -cdef cudaError_t _cudaGraphGetEdges(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphGetEdges(graph, from_, to, numEdges) -{{endif}} - -{{if 'cudaGraphGetEdges_v2' in found_functions}} - -cdef cudaError_t _cudaGraphGetEdges_v2(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphGetEdges_v2(graph, from_, to, edgeData, numEdges) -{{endif}} - -{{if 'cudaGraphNodeGetDependencies' in found_functions}} - -cdef cudaError_t _cudaGraphNodeGetDependencies(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphNodeGetDependencies(node, pDependencies, pNumDependencies) -{{endif}} - -{{if 'cudaGraphNodeGetDependencies_v2' in found_functions}} - -cdef cudaError_t _cudaGraphNodeGetDependencies_v2(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphNodeGetDependencies_v2(node, pDependencies, edgeData, pNumDependencies) -{{endif}} - -{{if 'cudaGraphNodeGetDependentNodes' in found_functions}} - -cdef cudaError_t _cudaGraphNodeGetDependentNodes(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphNodeGetDependentNodes(node, pDependentNodes, pNumDependentNodes) -{{endif}} - -{{if 'cudaGraphNodeGetDependentNodes_v2' in found_functions}} - -cdef cudaError_t _cudaGraphNodeGetDependentNodes_v2(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphNodeGetDependentNodes_v2(node, pDependentNodes, edgeData, pNumDependentNodes) -{{endif}} - -{{if 'cudaGraphAddDependencies' in found_functions}} - -cdef cudaError_t _cudaGraphAddDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddDependencies(graph, from_, to, numDependencies) -{{endif}} - -{{if 'cudaGraphAddDependencies_v2' in found_functions}} - -cdef cudaError_t _cudaGraphAddDependencies_v2(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddDependencies_v2(graph, from_, to, edgeData, numDependencies) -{{endif}} - -{{if 'cudaGraphRemoveDependencies' in found_functions}} - -cdef cudaError_t _cudaGraphRemoveDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphRemoveDependencies(graph, from_, to, numDependencies) -{{endif}} - -{{if 'cudaGraphRemoveDependencies_v2' in found_functions}} - -cdef cudaError_t _cudaGraphRemoveDependencies_v2(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphRemoveDependencies_v2(graph, from_, to, edgeData, numDependencies) -{{endif}} - -{{if 'cudaGraphDestroyNode' in found_functions}} - -cdef cudaError_t _cudaGraphDestroyNode(cudaGraphNode_t node) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphDestroyNode(node) -{{endif}} - -{{if 'cudaGraphInstantiate' in found_functions}} - -cdef cudaError_t _cudaGraphInstantiate(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphInstantiate(pGraphExec, graph, flags) -{{endif}} - -{{if 'cudaGraphInstantiateWithFlags' in found_functions}} - -cdef cudaError_t _cudaGraphInstantiateWithFlags(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphInstantiateWithFlags(pGraphExec, graph, flags) -{{endif}} - -{{if 'cudaGraphInstantiateWithParams' in found_functions}} - -cdef cudaError_t _cudaGraphInstantiateWithParams(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphInstantiateWithParams(pGraphExec, graph, instantiateParams) -{{endif}} - -{{if 'cudaGraphExecGetFlags' in found_functions}} - -cdef cudaError_t _cudaGraphExecGetFlags(cudaGraphExec_t graphExec, unsigned long long* flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecGetFlags(graphExec, flags) -{{endif}} - -{{if 'cudaGraphExecKernelNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphExecKernelNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams) -{{endif}} - -{{if 'cudaGraphExecMemcpyNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams) -{{endif}} - -{{if 'cudaGraphExecMemcpyNodeSetParams1D' in found_functions}} - -cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams1D(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, count, kind) -{{endif}} - -{{if 'cudaGraphExecMemsetNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphExecMemsetNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams) -{{endif}} - -{{if 'cudaGraphExecHostNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphExecHostNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams) -{{endif}} - -{{if 'cudaGraphExecChildGraphNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphExecChildGraphNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph) -{{endif}} - -{{if 'cudaGraphExecEventRecordNodeSetEvent' in found_functions}} - -cdef cudaError_t _cudaGraphExecEventRecordNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event) -{{endif}} - -{{if 'cudaGraphExecEventWaitNodeSetEvent' in found_functions}} - -cdef cudaError_t _cudaGraphExecEventWaitNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event) -{{endif}} - -{{if 'cudaGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphExecExternalSemaphoresSignalNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams) -{{endif}} - -{{if 'cudaGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphExecExternalSemaphoresWaitNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams) -{{endif}} - -{{if 'cudaGraphNodeSetEnabled' in found_functions}} - -cdef cudaError_t _cudaGraphNodeSetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphNodeSetEnabled(hGraphExec, hNode, isEnabled) -{{endif}} - -{{if 'cudaGraphNodeGetEnabled' in found_functions}} - -cdef cudaError_t _cudaGraphNodeGetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphNodeGetEnabled(hGraphExec, hNode, isEnabled) -{{endif}} - -{{if 'cudaGraphExecUpdate' in found_functions}} - -cdef cudaError_t _cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecUpdate(hGraphExec, hGraph, resultInfo) -{{endif}} - -{{if 'cudaGraphUpload' in found_functions}} - -cdef cudaError_t _cudaGraphUpload(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphUpload(graphExec, stream) -{{endif}} - -{{if 'cudaGraphLaunch' in found_functions}} - -cdef cudaError_t _cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphLaunch(graphExec, stream) -{{endif}} - -{{if 'cudaGraphExecDestroy' in found_functions}} - -cdef cudaError_t _cudaGraphExecDestroy(cudaGraphExec_t graphExec) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecDestroy(graphExec) -{{endif}} - -{{if 'cudaGraphDestroy' in found_functions}} - -cdef cudaError_t _cudaGraphDestroy(cudaGraph_t graph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphDestroy(graph) -{{endif}} - -{{if 'cudaGraphDebugDotPrint' in found_functions}} - -cdef cudaError_t _cudaGraphDebugDotPrint(cudaGraph_t graph, const char* path, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphDebugDotPrint(graph, path, flags) -{{endif}} - -{{if 'cudaUserObjectCreate' in found_functions}} - -cdef cudaError_t _cudaUserObjectCreate(cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaUserObjectCreate(object_out, ptr, destroy, initialRefcount, flags) -{{endif}} - -{{if 'cudaUserObjectRetain' in found_functions}} - -cdef cudaError_t _cudaUserObjectRetain(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaUserObjectRetain(object, count) -{{endif}} - -{{if 'cudaUserObjectRelease' in found_functions}} - -cdef cudaError_t _cudaUserObjectRelease(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaUserObjectRelease(object, count) -{{endif}} - -{{if 'cudaGraphRetainUserObject' in found_functions}} - -cdef cudaError_t _cudaGraphRetainUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphRetainUserObject(graph, object, count, flags) -{{endif}} - -{{if 'cudaGraphReleaseUserObject' in found_functions}} - -cdef cudaError_t _cudaGraphReleaseUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphReleaseUserObject(graph, object, count) -{{endif}} - -{{if 'cudaGraphAddNode' in found_functions}} - -cdef cudaError_t _cudaGraphAddNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{endif}} - -{{if 'cudaGraphAddNode_v2' in found_functions}} - -cdef cudaError_t _cudaGraphAddNode_v2(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddNode_v2(pGraphNode, graph, pDependencies, dependencyData, numDependencies, nodeParams) -{{endif}} - -{{if 'cudaGraphNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphNodeSetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphNodeSetParams(node, nodeParams) -{{endif}} - -{{if 'cudaGraphExecNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphExecNodeSetParams(cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecNodeSetParams(graphExec, node, nodeParams) -{{endif}} - -{{if 'cudaGraphConditionalHandleCreate' in found_functions}} - -cdef cudaError_t _cudaGraphConditionalHandleCreate(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphConditionalHandleCreate(pHandle_out, graph, defaultLaunchValue, flags) -{{endif}} - -{{if 'cudaGetDriverEntryPoint' in found_functions}} - -cdef cudaError_t _cudaGetDriverEntryPoint(const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetDriverEntryPoint(symbol, funcPtr, flags, driverStatus) -{{endif}} - -{{if 'cudaGetDriverEntryPointByVersion' in found_functions}} - -cdef cudaError_t _cudaGetDriverEntryPointByVersion(const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetDriverEntryPointByVersion(symbol, funcPtr, cudaVersion, flags, driverStatus) -{{endif}} - -{{if 'cudaLibraryLoadData' in found_functions}} - -cdef cudaError_t _cudaLibraryLoadData(cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaLibraryLoadData(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) -{{endif}} - -{{if 'cudaLibraryLoadFromFile' in found_functions}} - -cdef cudaError_t _cudaLibraryLoadFromFile(cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaLibraryLoadFromFile(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) -{{endif}} - -{{if 'cudaLibraryUnload' in found_functions}} - -cdef cudaError_t _cudaLibraryUnload(cudaLibrary_t library) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaLibraryUnload(library) -{{endif}} - -{{if 'cudaLibraryGetKernel' in found_functions}} - -cdef cudaError_t _cudaLibraryGetKernel(cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaLibraryGetKernel(pKernel, library, name) -{{endif}} - -{{if 'cudaLibraryGetGlobal' in found_functions}} - -cdef cudaError_t _cudaLibraryGetGlobal(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaLibraryGetGlobal(dptr, numbytes, library, name) -{{endif}} - -{{if 'cudaLibraryGetManaged' in found_functions}} - -cdef cudaError_t _cudaLibraryGetManaged(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaLibraryGetManaged(dptr, numbytes, library, name) -{{endif}} - -{{if 'cudaLibraryGetUnifiedFunction' in found_functions}} - -cdef cudaError_t _cudaLibraryGetUnifiedFunction(void** fptr, cudaLibrary_t library, const char* symbol) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaLibraryGetUnifiedFunction(fptr, library, symbol) -{{endif}} - -{{if 'cudaLibraryGetKernelCount' in found_functions}} - -cdef cudaError_t _cudaLibraryGetKernelCount(unsigned int* count, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaLibraryGetKernelCount(count, lib) -{{endif}} - -{{if 'cudaLibraryEnumerateKernels' in found_functions}} - -cdef cudaError_t _cudaLibraryEnumerateKernels(cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaLibraryEnumerateKernels(kernels, numKernels, lib) -{{endif}} - -{{if 'cudaKernelSetAttributeForDevice' in found_functions}} - -cdef cudaError_t _cudaKernelSetAttributeForDevice(cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaKernelSetAttributeForDevice(kernel, attr, value, device) -{{endif}} - -{{if 'cudaGetExportTable' in found_functions}} - -cdef cudaError_t _cudaGetExportTable(const void** ppExportTable, const cudaUUID_t* pExportTableId) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetExportTable(ppExportTable, pExportTableId) -{{endif}} - -{{if 'cudaGetKernel' in found_functions}} - -cdef cudaError_t _cudaGetKernel(cudaKernel_t* kernelPtr, const void* entryFuncAddr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetKernel(kernelPtr, entryFuncAddr) -{{endif}} - -{{if 'make_cudaPitchedPtr' in found_functions}} -@cython.show_performance_hints(False) -cdef cudaPitchedPtr _make_cudaPitchedPtr(void* d, size_t p, size_t xsz, size_t ysz) except* nogil: - return make_cudaPitchedPtr(d, p, xsz, ysz) -{{endif}} - -{{if 'make_cudaPos' in found_functions}} -@cython.show_performance_hints(False) -cdef cudaPos _make_cudaPos(size_t x, size_t y, size_t z) except* nogil: - return make_cudaPos(x, y, z) -{{endif}} - -{{if 'make_cudaExtent' in found_functions}} -@cython.show_performance_hints(False) -cdef cudaExtent _make_cudaExtent(size_t w, size_t h, size_t d) except* nogil: - return make_cudaExtent(w, h, d) -{{endif}} - -{{if 'cudaProfilerStart' in found_functions}} - -cdef cudaError_t _cudaProfilerStart() except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaProfilerStart() -{{endif}} - -{{if 'cudaProfilerStop' in found_functions}} - -cdef cudaError_t _cudaProfilerStop() except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaProfilerStop() -{{endif}} diff --git a/cuda_bindings_12/cuda/bindings/_internal/_fast_enum.py b/cuda_bindings_12/cuda/bindings/_internal/_fast_enum.py index 18ad0239def5..f5ced71c2884 100644 --- a/cuda_bindings_12/cuda/bindings/_internal/_fast_enum.py +++ b/cuda_bindings_12/cuda/bindings/_internal/_fast_enum.py @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=35d522fae601127f3ffc9d0de45d9adf2572934ee3308f5d99567aa8efd5ae77 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=b35c6de7463e36646e40b3ab553e165d4e756a14303a8f1fcddcd71325dafd40 """ This is a replacement for the stdlib enum.IntEnum. @@ -13,7 +13,8 @@ `cuda_bindings/tests/test_basics.py` for details. """ -from typing import Any, Iterator +from collections.abc import Iterator +from typing import Any class FastEnumMetaclass(type): diff --git a/cuda_bindings_12/cuda/bindings/_internal/cufile_linux.pyx b/cuda_bindings_12/cuda/bindings/_internal/cufile_linux.pyx index cd388b4a76aa..0db971bae4c2 100644 --- a/cuda_bindings_12/cuda/bindings/_internal/cufile_linux.pyx +++ b/cuda_bindings_12/cuda/bindings/_internal/cufile_linux.pyx @@ -3,11 +3,15 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated with version 12.9.1. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=6baa85b885ea8a9f8fc01db7ce4c55af185d9080c0856563f15cc15d115db48f +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=35f027c37095d4df851e8339878e4d5b770eeda1e3a205649014a155c6d3d3c6 # <<<< PREAMBLE CONTENT >>>> +cimport cython as _cyb_cython +from libc.stdint cimport intptr_t +from libcpp cimport bool as _cyb_bool + cdef extern from * nogil: """ #if defined(_MSC_VER) && !defined(__clang__) @@ -44,10 +48,6 @@ cdef extern from "": void* _cyb_dlsym "dlsym"(void*, const char*) nogil const void * _cyb_RTLD_DEFAULT "RTLD_DEFAULT" -cimport cython as _cyb_cython -from libc.stdint cimport intptr_t -from libcpp cimport bool as _cyb_bool - import threading as _cyb_threading cdef int _cyb___py_cufile_init = 0 @@ -99,228 +99,54 @@ cdef void* __cuFileSetParameterSizeT = NULL cdef void* __cuFileSetParameterBool = NULL cdef void* __cuFileSetParameterString = NULL +cdef enum: _cyb_cufile_n_functions = 31 +cdef void** _cyb_cufile_slots[_cyb_cufile_n_functions] +cdef const char* _cyb_cufile_names[_cyb_cufile_n_functions] +_cyb_cufile_slots[0] = &__cuFileHandleRegister; _cyb_cufile_names[0] = b'cuFileHandleRegister' +_cyb_cufile_slots[1] = &__cuFileHandleDeregister; _cyb_cufile_names[1] = b'cuFileHandleDeregister' +_cyb_cufile_slots[2] = &__cuFileBufRegister; _cyb_cufile_names[2] = b'cuFileBufRegister' +_cyb_cufile_slots[3] = &__cuFileBufDeregister; _cyb_cufile_names[3] = b'cuFileBufDeregister' +_cyb_cufile_slots[4] = &__cuFileRead; _cyb_cufile_names[4] = b'cuFileRead' +_cyb_cufile_slots[5] = &__cuFileWrite; _cyb_cufile_names[5] = b'cuFileWrite' +_cyb_cufile_slots[6] = &__cuFileDriverOpen; _cyb_cufile_names[6] = b'cuFileDriverOpen' +_cyb_cufile_slots[7] = &__cuFileDriverClose; _cyb_cufile_names[7] = b'cuFileDriverClose' +_cyb_cufile_slots[8] = &__cuFileDriverClose_v2; _cyb_cufile_names[8] = b'cuFileDriverClose_v2' +_cyb_cufile_slots[9] = &__cuFileUseCount; _cyb_cufile_names[9] = b'cuFileUseCount' +_cyb_cufile_slots[10] = &__cuFileDriverGetProperties; _cyb_cufile_names[10] = b'cuFileDriverGetProperties' +_cyb_cufile_slots[11] = &__cuFileDriverSetPollMode; _cyb_cufile_names[11] = b'cuFileDriverSetPollMode' +_cyb_cufile_slots[12] = &__cuFileDriverSetMaxDirectIOSize; _cyb_cufile_names[12] = b'cuFileDriverSetMaxDirectIOSize' +_cyb_cufile_slots[13] = &__cuFileDriverSetMaxCacheSize; _cyb_cufile_names[13] = b'cuFileDriverSetMaxCacheSize' +_cyb_cufile_slots[14] = &__cuFileDriverSetMaxPinnedMemSize; _cyb_cufile_names[14] = b'cuFileDriverSetMaxPinnedMemSize' +_cyb_cufile_slots[15] = &__cuFileBatchIOSetUp; _cyb_cufile_names[15] = b'cuFileBatchIOSetUp' +_cyb_cufile_slots[16] = &__cuFileBatchIOSubmit; _cyb_cufile_names[16] = b'cuFileBatchIOSubmit' +_cyb_cufile_slots[17] = &__cuFileBatchIOGetStatus; _cyb_cufile_names[17] = b'cuFileBatchIOGetStatus' +_cyb_cufile_slots[18] = &__cuFileBatchIOCancel; _cyb_cufile_names[18] = b'cuFileBatchIOCancel' +_cyb_cufile_slots[19] = &__cuFileBatchIODestroy; _cyb_cufile_names[19] = b'cuFileBatchIODestroy' +_cyb_cufile_slots[20] = &__cuFileReadAsync; _cyb_cufile_names[20] = b'cuFileReadAsync' +_cyb_cufile_slots[21] = &__cuFileWriteAsync; _cyb_cufile_names[21] = b'cuFileWriteAsync' +_cyb_cufile_slots[22] = &__cuFileStreamRegister; _cyb_cufile_names[22] = b'cuFileStreamRegister' +_cyb_cufile_slots[23] = &__cuFileStreamDeregister; _cyb_cufile_names[23] = b'cuFileStreamDeregister' +_cyb_cufile_slots[24] = &__cuFileGetVersion; _cyb_cufile_names[24] = b'cuFileGetVersion' +_cyb_cufile_slots[25] = &__cuFileGetParameterSizeT; _cyb_cufile_names[25] = b'cuFileGetParameterSizeT' +_cyb_cufile_slots[26] = &__cuFileGetParameterBool; _cyb_cufile_names[26] = b'cuFileGetParameterBool' +_cyb_cufile_slots[27] = &__cuFileGetParameterString; _cyb_cufile_names[27] = b'cuFileGetParameterString' +_cyb_cufile_slots[28] = &__cuFileSetParameterSizeT; _cyb_cufile_names[28] = b'cuFileSetParameterSizeT' +_cyb_cufile_slots[29] = &__cuFileSetParameterBool; _cyb_cufile_names[29] = b'cuFileSetParameterBool' +_cyb_cufile_slots[30] = &__cuFileSetParameterString; _cyb_cufile_names[30] = b'cuFileSetParameterString' + cdef int _init_cufile() except -1 nogil: global _cyb___py_cufile_init cdef void* handle = NULL + cdef Py_ssize_t i with gil, _cyb_symbol_lock: if _cyb___py_cufile_init: return 0 - global __cuFileHandleRegister - __cuFileHandleRegister = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileHandleRegister') - if __cuFileHandleRegister == NULL: - if handle == NULL: - handle = load_library() - __cuFileHandleRegister = _cyb_dlsym(handle, 'cuFileHandleRegister') - - global __cuFileHandleDeregister - __cuFileHandleDeregister = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileHandleDeregister') - if __cuFileHandleDeregister == NULL: - if handle == NULL: - handle = load_library() - __cuFileHandleDeregister = _cyb_dlsym(handle, 'cuFileHandleDeregister') - - global __cuFileBufRegister - __cuFileBufRegister = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileBufRegister') - if __cuFileBufRegister == NULL: - if handle == NULL: - handle = load_library() - __cuFileBufRegister = _cyb_dlsym(handle, 'cuFileBufRegister') - - global __cuFileBufDeregister - __cuFileBufDeregister = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileBufDeregister') - if __cuFileBufDeregister == NULL: - if handle == NULL: - handle = load_library() - __cuFileBufDeregister = _cyb_dlsym(handle, 'cuFileBufDeregister') - - global __cuFileRead - __cuFileRead = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileRead') - if __cuFileRead == NULL: - if handle == NULL: - handle = load_library() - __cuFileRead = _cyb_dlsym(handle, 'cuFileRead') - - global __cuFileWrite - __cuFileWrite = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileWrite') - if __cuFileWrite == NULL: - if handle == NULL: - handle = load_library() - __cuFileWrite = _cyb_dlsym(handle, 'cuFileWrite') - - global __cuFileDriverOpen - __cuFileDriverOpen = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileDriverOpen') - if __cuFileDriverOpen == NULL: - if handle == NULL: - handle = load_library() - __cuFileDriverOpen = _cyb_dlsym(handle, 'cuFileDriverOpen') - - global __cuFileDriverClose - __cuFileDriverClose = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileDriverClose') - if __cuFileDriverClose == NULL: - if handle == NULL: - handle = load_library() - __cuFileDriverClose = _cyb_dlsym(handle, 'cuFileDriverClose') - - global __cuFileDriverClose_v2 - __cuFileDriverClose_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileDriverClose_v2') - if __cuFileDriverClose_v2 == NULL: - if handle == NULL: - handle = load_library() - __cuFileDriverClose_v2 = _cyb_dlsym(handle, 'cuFileDriverClose_v2') - - global __cuFileUseCount - __cuFileUseCount = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileUseCount') - if __cuFileUseCount == NULL: - if handle == NULL: - handle = load_library() - __cuFileUseCount = _cyb_dlsym(handle, 'cuFileUseCount') - - global __cuFileDriverGetProperties - __cuFileDriverGetProperties = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileDriverGetProperties') - if __cuFileDriverGetProperties == NULL: - if handle == NULL: - handle = load_library() - __cuFileDriverGetProperties = _cyb_dlsym(handle, 'cuFileDriverGetProperties') - - global __cuFileDriverSetPollMode - __cuFileDriverSetPollMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileDriverSetPollMode') - if __cuFileDriverSetPollMode == NULL: - if handle == NULL: - handle = load_library() - __cuFileDriverSetPollMode = _cyb_dlsym(handle, 'cuFileDriverSetPollMode') - - global __cuFileDriverSetMaxDirectIOSize - __cuFileDriverSetMaxDirectIOSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileDriverSetMaxDirectIOSize') - if __cuFileDriverSetMaxDirectIOSize == NULL: - if handle == NULL: - handle = load_library() - __cuFileDriverSetMaxDirectIOSize = _cyb_dlsym(handle, 'cuFileDriverSetMaxDirectIOSize') - - global __cuFileDriverSetMaxCacheSize - __cuFileDriverSetMaxCacheSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileDriverSetMaxCacheSize') - if __cuFileDriverSetMaxCacheSize == NULL: - if handle == NULL: - handle = load_library() - __cuFileDriverSetMaxCacheSize = _cyb_dlsym(handle, 'cuFileDriverSetMaxCacheSize') - - global __cuFileDriverSetMaxPinnedMemSize - __cuFileDriverSetMaxPinnedMemSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileDriverSetMaxPinnedMemSize') - if __cuFileDriverSetMaxPinnedMemSize == NULL: - if handle == NULL: - handle = load_library() - __cuFileDriverSetMaxPinnedMemSize = _cyb_dlsym(handle, 'cuFileDriverSetMaxPinnedMemSize') - - global __cuFileBatchIOSetUp - __cuFileBatchIOSetUp = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileBatchIOSetUp') - if __cuFileBatchIOSetUp == NULL: - if handle == NULL: - handle = load_library() - __cuFileBatchIOSetUp = _cyb_dlsym(handle, 'cuFileBatchIOSetUp') - - global __cuFileBatchIOSubmit - __cuFileBatchIOSubmit = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileBatchIOSubmit') - if __cuFileBatchIOSubmit == NULL: - if handle == NULL: - handle = load_library() - __cuFileBatchIOSubmit = _cyb_dlsym(handle, 'cuFileBatchIOSubmit') - - global __cuFileBatchIOGetStatus - __cuFileBatchIOGetStatus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileBatchIOGetStatus') - if __cuFileBatchIOGetStatus == NULL: - if handle == NULL: - handle = load_library() - __cuFileBatchIOGetStatus = _cyb_dlsym(handle, 'cuFileBatchIOGetStatus') - - global __cuFileBatchIOCancel - __cuFileBatchIOCancel = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileBatchIOCancel') - if __cuFileBatchIOCancel == NULL: - if handle == NULL: - handle = load_library() - __cuFileBatchIOCancel = _cyb_dlsym(handle, 'cuFileBatchIOCancel') - - global __cuFileBatchIODestroy - __cuFileBatchIODestroy = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileBatchIODestroy') - if __cuFileBatchIODestroy == NULL: - if handle == NULL: - handle = load_library() - __cuFileBatchIODestroy = _cyb_dlsym(handle, 'cuFileBatchIODestroy') - - global __cuFileReadAsync - __cuFileReadAsync = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileReadAsync') - if __cuFileReadAsync == NULL: - if handle == NULL: - handle = load_library() - __cuFileReadAsync = _cyb_dlsym(handle, 'cuFileReadAsync') - - global __cuFileWriteAsync - __cuFileWriteAsync = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileWriteAsync') - if __cuFileWriteAsync == NULL: - if handle == NULL: - handle = load_library() - __cuFileWriteAsync = _cyb_dlsym(handle, 'cuFileWriteAsync') - - global __cuFileStreamRegister - __cuFileStreamRegister = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileStreamRegister') - if __cuFileStreamRegister == NULL: - if handle == NULL: - handle = load_library() - __cuFileStreamRegister = _cyb_dlsym(handle, 'cuFileStreamRegister') - - global __cuFileStreamDeregister - __cuFileStreamDeregister = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileStreamDeregister') - if __cuFileStreamDeregister == NULL: - if handle == NULL: - handle = load_library() - __cuFileStreamDeregister = _cyb_dlsym(handle, 'cuFileStreamDeregister') - - global __cuFileGetVersion - __cuFileGetVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileGetVersion') - if __cuFileGetVersion == NULL: - if handle == NULL: - handle = load_library() - __cuFileGetVersion = _cyb_dlsym(handle, 'cuFileGetVersion') - - global __cuFileGetParameterSizeT - __cuFileGetParameterSizeT = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileGetParameterSizeT') - if __cuFileGetParameterSizeT == NULL: - if handle == NULL: - handle = load_library() - __cuFileGetParameterSizeT = _cyb_dlsym(handle, 'cuFileGetParameterSizeT') - - global __cuFileGetParameterBool - __cuFileGetParameterBool = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileGetParameterBool') - if __cuFileGetParameterBool == NULL: - if handle == NULL: - handle = load_library() - __cuFileGetParameterBool = _cyb_dlsym(handle, 'cuFileGetParameterBool') - - global __cuFileGetParameterString - __cuFileGetParameterString = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileGetParameterString') - if __cuFileGetParameterString == NULL: - if handle == NULL: - handle = load_library() - __cuFileGetParameterString = _cyb_dlsym(handle, 'cuFileGetParameterString') - - global __cuFileSetParameterSizeT - __cuFileSetParameterSizeT = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileSetParameterSizeT') - if __cuFileSetParameterSizeT == NULL: - if handle == NULL: - handle = load_library() - __cuFileSetParameterSizeT = _cyb_dlsym(handle, 'cuFileSetParameterSizeT') - - global __cuFileSetParameterBool - __cuFileSetParameterBool = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileSetParameterBool') - if __cuFileSetParameterBool == NULL: - if handle == NULL: - handle = load_library() - __cuFileSetParameterBool = _cyb_dlsym(handle, 'cuFileSetParameterBool') - - global __cuFileSetParameterString - __cuFileSetParameterString = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'cuFileSetParameterString') - if __cuFileSetParameterString == NULL: - if handle == NULL: - handle = load_library() - __cuFileSetParameterString = _cyb_dlsym(handle, 'cuFileSetParameterString') + for i in range(_cyb_cufile_n_functions): + _cyb_cufile_slots[i][0] = _cyb_dlsym(_cyb_RTLD_DEFAULT, _cyb_cufile_names[i]) + if _cyb_cufile_slots[i][0] == NULL: + if handle == NULL: + handle = load_library() + _cyb_cufile_slots[i][0] = _cyb_dlsym(handle, _cyb_cufile_names[i]) _cyb_atomic_int_store(&_cyb___py_cufile_init, 1) return 0 @@ -339,98 +165,9 @@ cpdef dict _inspect_function_pointers(): _check_or_init_cufile() cdef dict data = {} - global __cuFileHandleRegister - data["__cuFileHandleRegister"] = __cuFileHandleRegister - - global __cuFileHandleDeregister - data["__cuFileHandleDeregister"] = __cuFileHandleDeregister - - global __cuFileBufRegister - data["__cuFileBufRegister"] = __cuFileBufRegister - - global __cuFileBufDeregister - data["__cuFileBufDeregister"] = __cuFileBufDeregister - - global __cuFileRead - data["__cuFileRead"] = __cuFileRead - - global __cuFileWrite - data["__cuFileWrite"] = __cuFileWrite - - global __cuFileDriverOpen - data["__cuFileDriverOpen"] = __cuFileDriverOpen - - global __cuFileDriverClose - data["__cuFileDriverClose"] = __cuFileDriverClose - - global __cuFileDriverClose_v2 - data["__cuFileDriverClose_v2"] = __cuFileDriverClose_v2 - - global __cuFileUseCount - data["__cuFileUseCount"] = __cuFileUseCount - - global __cuFileDriverGetProperties - data["__cuFileDriverGetProperties"] = __cuFileDriverGetProperties - - global __cuFileDriverSetPollMode - data["__cuFileDriverSetPollMode"] = __cuFileDriverSetPollMode - - global __cuFileDriverSetMaxDirectIOSize - data["__cuFileDriverSetMaxDirectIOSize"] = __cuFileDriverSetMaxDirectIOSize - - global __cuFileDriverSetMaxCacheSize - data["__cuFileDriverSetMaxCacheSize"] = __cuFileDriverSetMaxCacheSize - - global __cuFileDriverSetMaxPinnedMemSize - data["__cuFileDriverSetMaxPinnedMemSize"] = __cuFileDriverSetMaxPinnedMemSize - - global __cuFileBatchIOSetUp - data["__cuFileBatchIOSetUp"] = __cuFileBatchIOSetUp - - global __cuFileBatchIOSubmit - data["__cuFileBatchIOSubmit"] = __cuFileBatchIOSubmit - - global __cuFileBatchIOGetStatus - data["__cuFileBatchIOGetStatus"] = __cuFileBatchIOGetStatus - - global __cuFileBatchIOCancel - data["__cuFileBatchIOCancel"] = __cuFileBatchIOCancel - - global __cuFileBatchIODestroy - data["__cuFileBatchIODestroy"] = __cuFileBatchIODestroy - - global __cuFileReadAsync - data["__cuFileReadAsync"] = __cuFileReadAsync - - global __cuFileWriteAsync - data["__cuFileWriteAsync"] = __cuFileWriteAsync - - global __cuFileStreamRegister - data["__cuFileStreamRegister"] = __cuFileStreamRegister - - global __cuFileStreamDeregister - data["__cuFileStreamDeregister"] = __cuFileStreamDeregister - - global __cuFileGetVersion - data["__cuFileGetVersion"] = __cuFileGetVersion - - global __cuFileGetParameterSizeT - data["__cuFileGetParameterSizeT"] = __cuFileGetParameterSizeT - - global __cuFileGetParameterBool - data["__cuFileGetParameterBool"] = __cuFileGetParameterBool - - global __cuFileGetParameterString - data["__cuFileGetParameterString"] = __cuFileGetParameterString - - global __cuFileSetParameterSizeT - data["__cuFileSetParameterSizeT"] = __cuFileSetParameterSizeT - - global __cuFileSetParameterBool - data["__cuFileSetParameterBool"] = __cuFileSetParameterBool - - global __cuFileSetParameterString - data["__cuFileSetParameterString"] = __cuFileSetParameterString + cdef Py_ssize_t i + for i in range(_cyb_cufile_n_functions): + data['__' + _cyb_cufile_names[i].decode()] = _cyb_cufile_slots[i][0] _cyb_func_ptrs = data return data diff --git a/cuda_bindings_12/cuda/bindings/_internal/driver.pxd b/cuda_bindings_12/cuda/bindings/_internal/driver.pxd index 6efac7bc5515..9130878e1c69 100644 --- a/cuda_bindings_12/cuda/bindings/_internal/driver.pxd +++ b/cuda_bindings_12/cuda/bindings/_internal/driver.pxd @@ -4,7 +4,7 @@ # # This code was automatically generated with version 12.9.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=395f93ae98b3b074267a9275aa19aff34b001e2b982b686301aace8270e40ea1 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=fa645ffe06fa0f1c1ad1736199e42e0bbb46b69528fcecbb11ec4eace27c91b5 from ..cydriver cimport * @@ -447,7 +447,7 @@ cdef CUresult _cuCtxFromGreenCtx(CUcontext* pContext, CUgreenCtx hCtx) except ?C cdef CUresult _cuDeviceGetDevResource(CUdevice device, CUdevResource* resource, CUdevResourceType type) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult _cuCtxGetDevResource(CUcontext hCtx, CUdevResource* resource, CUdevResourceType type) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult _cuGreenCtxGetDevResource(CUgreenCtx hCtx, CUdevResource* resource, CUdevResourceType type) except ?CUDA_ERROR_NOT_FOUND nogil -cdef CUresult _cuDevSmResourceSplitByCount(CUdevResource* result, unsigned int* nbGroups, const CUdevResource* input, CUdevResource* remaining, unsigned int useFlags, unsigned int minCount) except ?CUDA_ERROR_NOT_FOUND nogil +cdef CUresult _cuDevSmResourceSplitByCount(CUdevResource* result, unsigned int* nbGroups, const CUdevResource* input, CUdevResource* remainder, unsigned int useFlags, unsigned int minCount) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult _cuDevResourceGenerateDesc(CUdevResourceDesc* phDesc, CUdevResource* resources, unsigned int nbResources) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult _cuGreenCtxRecordEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult _cuGreenCtxWaitEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil diff --git a/cuda_bindings_12/cuda/bindings/_internal/driver_linux.pyx b/cuda_bindings_12/cuda/bindings/_internal/driver_linux.pyx index f2234b4d3b6e..03499e872d53 100644 --- a/cuda_bindings_12/cuda/bindings/_internal/driver_linux.pyx +++ b/cuda_bindings_12/cuda/bindings/_internal/driver_linux.pyx @@ -3,11 +3,13 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated with version 12.9.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=d382464130e581b718a589e652053c30057e65ddc824b2c79a903341858f1e88 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=7096b2098271f5284f29b1c956520ceb23551fc914820493dfbdce9e60a0ca69 # <<<< PREAMBLE CONTENT >>>> +from libc.stdint cimport intptr_t + cdef extern from * nogil: """ #if defined(_MSC_VER) && !defined(__clang__) @@ -43,8 +45,6 @@ cdef extern from * nogil: cdef extern from "": void* _cyb_dlsym "dlsym"(void*, const char*) nogil -from libc.stdint cimport intptr_t - from os import getenv as _cyb_getenv import threading as _cyb_threading @@ -551,6 +551,493 @@ cdef void* __cuVDPAUCtxCreate_v2 = NULL cdef void* __cuGraphicsVDPAURegisterVideoSurface = NULL cdef void* __cuGraphicsVDPAURegisterOutputSurface = NULL +cdef enum: _cyb_driver_n_functions = 483 +cdef void** _cyb_driver_slots[_cyb_driver_n_functions] +cdef const char* _cyb_driver_names[_cyb_driver_n_functions] +_cyb_driver_slots[0] = &__cuGetErrorString; _cyb_driver_names[0] = b'cuGetErrorString' +_cyb_driver_slots[1] = &__cuGetErrorName; _cyb_driver_names[1] = b'cuGetErrorName' +_cyb_driver_slots[2] = &__cuInit; _cyb_driver_names[2] = b'cuInit' +_cyb_driver_slots[3] = &__cuDriverGetVersion; _cyb_driver_names[3] = b'cuDriverGetVersion' +_cyb_driver_slots[4] = &__cuDeviceGet; _cyb_driver_names[4] = b'cuDeviceGet' +_cyb_driver_slots[5] = &__cuDeviceGetCount; _cyb_driver_names[5] = b'cuDeviceGetCount' +_cyb_driver_slots[6] = &__cuDeviceGetName; _cyb_driver_names[6] = b'cuDeviceGetName' +_cyb_driver_slots[7] = &__cuDeviceGetUuid; _cyb_driver_names[7] = b'cuDeviceGetUuid' +_cyb_driver_slots[8] = &__cuDeviceGetUuid_v2; _cyb_driver_names[8] = b'cuDeviceGetUuid_v2' +_cyb_driver_slots[9] = &__cuDeviceGetLuid; _cyb_driver_names[9] = b'cuDeviceGetLuid' +_cyb_driver_slots[10] = &__cuDeviceTotalMem_v2; _cyb_driver_names[10] = b'cuDeviceTotalMem_v2' +_cyb_driver_slots[11] = &__cuDeviceGetTexture1DLinearMaxWidth; _cyb_driver_names[11] = b'cuDeviceGetTexture1DLinearMaxWidth' +_cyb_driver_slots[12] = &__cuDeviceGetAttribute; _cyb_driver_names[12] = b'cuDeviceGetAttribute' +_cyb_driver_slots[13] = &__cuDeviceGetNvSciSyncAttributes; _cyb_driver_names[13] = b'cuDeviceGetNvSciSyncAttributes' +_cyb_driver_slots[14] = &__cuDeviceSetMemPool; _cyb_driver_names[14] = b'cuDeviceSetMemPool' +_cyb_driver_slots[15] = &__cuDeviceGetMemPool; _cyb_driver_names[15] = b'cuDeviceGetMemPool' +_cyb_driver_slots[16] = &__cuDeviceGetDefaultMemPool; _cyb_driver_names[16] = b'cuDeviceGetDefaultMemPool' +_cyb_driver_slots[17] = &__cuDeviceGetExecAffinitySupport; _cyb_driver_names[17] = b'cuDeviceGetExecAffinitySupport' +_cyb_driver_slots[18] = &__cuFlushGPUDirectRDMAWrites; _cyb_driver_names[18] = b'cuFlushGPUDirectRDMAWrites' +_cyb_driver_slots[19] = &__cuDeviceGetProperties; _cyb_driver_names[19] = b'cuDeviceGetProperties' +_cyb_driver_slots[20] = &__cuDeviceComputeCapability; _cyb_driver_names[20] = b'cuDeviceComputeCapability' +_cyb_driver_slots[21] = &__cuDevicePrimaryCtxRetain; _cyb_driver_names[21] = b'cuDevicePrimaryCtxRetain' +_cyb_driver_slots[22] = &__cuDevicePrimaryCtxRelease_v2; _cyb_driver_names[22] = b'cuDevicePrimaryCtxRelease_v2' +_cyb_driver_slots[23] = &__cuDevicePrimaryCtxSetFlags_v2; _cyb_driver_names[23] = b'cuDevicePrimaryCtxSetFlags_v2' +_cyb_driver_slots[24] = &__cuDevicePrimaryCtxGetState; _cyb_driver_names[24] = b'cuDevicePrimaryCtxGetState' +_cyb_driver_slots[25] = &__cuDevicePrimaryCtxReset_v2; _cyb_driver_names[25] = b'cuDevicePrimaryCtxReset_v2' +_cyb_driver_slots[26] = &__cuCtxCreate_v2; _cyb_driver_names[26] = b'cuCtxCreate_v2' +_cyb_driver_slots[27] = &__cuCtxCreate_v3; _cyb_driver_names[27] = b'cuCtxCreate_v3' +_cyb_driver_slots[28] = &__cuCtxCreate_v4; _cyb_driver_names[28] = b'cuCtxCreate_v4' +_cyb_driver_slots[29] = &__cuCtxDestroy_v2; _cyb_driver_names[29] = b'cuCtxDestroy_v2' +_cyb_driver_slots[30] = &__cuCtxPushCurrent_v2; _cyb_driver_names[30] = b'cuCtxPushCurrent_v2' +_cyb_driver_slots[31] = &__cuCtxPopCurrent_v2; _cyb_driver_names[31] = b'cuCtxPopCurrent_v2' +_cyb_driver_slots[32] = &__cuCtxSetCurrent; _cyb_driver_names[32] = b'cuCtxSetCurrent' +_cyb_driver_slots[33] = &__cuCtxGetCurrent; _cyb_driver_names[33] = b'cuCtxGetCurrent' +_cyb_driver_slots[34] = &__cuCtxGetDevice; _cyb_driver_names[34] = b'cuCtxGetDevice' +_cyb_driver_slots[35] = &__cuCtxGetFlags; _cyb_driver_names[35] = b'cuCtxGetFlags' +_cyb_driver_slots[36] = &__cuCtxSetFlags; _cyb_driver_names[36] = b'cuCtxSetFlags' +_cyb_driver_slots[37] = &__cuCtxGetId; _cyb_driver_names[37] = b'cuCtxGetId' +_cyb_driver_slots[38] = &__cuCtxSynchronize; _cyb_driver_names[38] = b'cuCtxSynchronize' +_cyb_driver_slots[39] = &__cuCtxSetLimit; _cyb_driver_names[39] = b'cuCtxSetLimit' +_cyb_driver_slots[40] = &__cuCtxGetLimit; _cyb_driver_names[40] = b'cuCtxGetLimit' +_cyb_driver_slots[41] = &__cuCtxGetCacheConfig; _cyb_driver_names[41] = b'cuCtxGetCacheConfig' +_cyb_driver_slots[42] = &__cuCtxSetCacheConfig; _cyb_driver_names[42] = b'cuCtxSetCacheConfig' +_cyb_driver_slots[43] = &__cuCtxGetApiVersion; _cyb_driver_names[43] = b'cuCtxGetApiVersion' +_cyb_driver_slots[44] = &__cuCtxGetStreamPriorityRange; _cyb_driver_names[44] = b'cuCtxGetStreamPriorityRange' +_cyb_driver_slots[45] = &__cuCtxResetPersistingL2Cache; _cyb_driver_names[45] = b'cuCtxResetPersistingL2Cache' +_cyb_driver_slots[46] = &__cuCtxGetExecAffinity; _cyb_driver_names[46] = b'cuCtxGetExecAffinity' +_cyb_driver_slots[47] = &__cuCtxRecordEvent; _cyb_driver_names[47] = b'cuCtxRecordEvent' +_cyb_driver_slots[48] = &__cuCtxWaitEvent; _cyb_driver_names[48] = b'cuCtxWaitEvent' +_cyb_driver_slots[49] = &__cuCtxAttach; _cyb_driver_names[49] = b'cuCtxAttach' +_cyb_driver_slots[50] = &__cuCtxDetach; _cyb_driver_names[50] = b'cuCtxDetach' +_cyb_driver_slots[51] = &__cuCtxGetSharedMemConfig; _cyb_driver_names[51] = b'cuCtxGetSharedMemConfig' +_cyb_driver_slots[52] = &__cuCtxSetSharedMemConfig; _cyb_driver_names[52] = b'cuCtxSetSharedMemConfig' +_cyb_driver_slots[53] = &__cuModuleLoad; _cyb_driver_names[53] = b'cuModuleLoad' +_cyb_driver_slots[54] = &__cuModuleLoadData; _cyb_driver_names[54] = b'cuModuleLoadData' +_cyb_driver_slots[55] = &__cuModuleLoadDataEx; _cyb_driver_names[55] = b'cuModuleLoadDataEx' +_cyb_driver_slots[56] = &__cuModuleLoadFatBinary; _cyb_driver_names[56] = b'cuModuleLoadFatBinary' +_cyb_driver_slots[57] = &__cuModuleUnload; _cyb_driver_names[57] = b'cuModuleUnload' +_cyb_driver_slots[58] = &__cuModuleGetLoadingMode; _cyb_driver_names[58] = b'cuModuleGetLoadingMode' +_cyb_driver_slots[59] = &__cuModuleGetFunction; _cyb_driver_names[59] = b'cuModuleGetFunction' +_cyb_driver_slots[60] = &__cuModuleGetFunctionCount; _cyb_driver_names[60] = b'cuModuleGetFunctionCount' +_cyb_driver_slots[61] = &__cuModuleEnumerateFunctions; _cyb_driver_names[61] = b'cuModuleEnumerateFunctions' +_cyb_driver_slots[62] = &__cuModuleGetGlobal_v2; _cyb_driver_names[62] = b'cuModuleGetGlobal_v2' +_cyb_driver_slots[63] = &__cuLinkCreate_v2; _cyb_driver_names[63] = b'cuLinkCreate_v2' +_cyb_driver_slots[64] = &__cuLinkAddData_v2; _cyb_driver_names[64] = b'cuLinkAddData_v2' +_cyb_driver_slots[65] = &__cuLinkAddFile_v2; _cyb_driver_names[65] = b'cuLinkAddFile_v2' +_cyb_driver_slots[66] = &__cuLinkComplete; _cyb_driver_names[66] = b'cuLinkComplete' +_cyb_driver_slots[67] = &__cuLinkDestroy; _cyb_driver_names[67] = b'cuLinkDestroy' +_cyb_driver_slots[68] = &__cuModuleGetTexRef; _cyb_driver_names[68] = b'cuModuleGetTexRef' +_cyb_driver_slots[69] = &__cuModuleGetSurfRef; _cyb_driver_names[69] = b'cuModuleGetSurfRef' +_cyb_driver_slots[70] = &__cuLibraryLoadData; _cyb_driver_names[70] = b'cuLibraryLoadData' +_cyb_driver_slots[71] = &__cuLibraryLoadFromFile; _cyb_driver_names[71] = b'cuLibraryLoadFromFile' +_cyb_driver_slots[72] = &__cuLibraryUnload; _cyb_driver_names[72] = b'cuLibraryUnload' +_cyb_driver_slots[73] = &__cuLibraryGetKernel; _cyb_driver_names[73] = b'cuLibraryGetKernel' +_cyb_driver_slots[74] = &__cuLibraryGetKernelCount; _cyb_driver_names[74] = b'cuLibraryGetKernelCount' +_cyb_driver_slots[75] = &__cuLibraryEnumerateKernels; _cyb_driver_names[75] = b'cuLibraryEnumerateKernels' +_cyb_driver_slots[76] = &__cuLibraryGetModule; _cyb_driver_names[76] = b'cuLibraryGetModule' +_cyb_driver_slots[77] = &__cuKernelGetFunction; _cyb_driver_names[77] = b'cuKernelGetFunction' +_cyb_driver_slots[78] = &__cuKernelGetLibrary; _cyb_driver_names[78] = b'cuKernelGetLibrary' +_cyb_driver_slots[79] = &__cuLibraryGetGlobal; _cyb_driver_names[79] = b'cuLibraryGetGlobal' +_cyb_driver_slots[80] = &__cuLibraryGetManaged; _cyb_driver_names[80] = b'cuLibraryGetManaged' +_cyb_driver_slots[81] = &__cuLibraryGetUnifiedFunction; _cyb_driver_names[81] = b'cuLibraryGetUnifiedFunction' +_cyb_driver_slots[82] = &__cuKernelGetAttribute; _cyb_driver_names[82] = b'cuKernelGetAttribute' +_cyb_driver_slots[83] = &__cuKernelSetAttribute; _cyb_driver_names[83] = b'cuKernelSetAttribute' +_cyb_driver_slots[84] = &__cuKernelSetCacheConfig; _cyb_driver_names[84] = b'cuKernelSetCacheConfig' +_cyb_driver_slots[85] = &__cuKernelGetName; _cyb_driver_names[85] = b'cuKernelGetName' +_cyb_driver_slots[86] = &__cuKernelGetParamInfo; _cyb_driver_names[86] = b'cuKernelGetParamInfo' +_cyb_driver_slots[87] = &__cuMemGetInfo_v2; _cyb_driver_names[87] = b'cuMemGetInfo_v2' +_cyb_driver_slots[88] = &__cuMemAlloc_v2; _cyb_driver_names[88] = b'cuMemAlloc_v2' +_cyb_driver_slots[89] = &__cuMemAllocPitch_v2; _cyb_driver_names[89] = b'cuMemAllocPitch_v2' +_cyb_driver_slots[90] = &__cuMemFree_v2; _cyb_driver_names[90] = b'cuMemFree_v2' +_cyb_driver_slots[91] = &__cuMemGetAddressRange_v2; _cyb_driver_names[91] = b'cuMemGetAddressRange_v2' +_cyb_driver_slots[92] = &__cuMemAllocHost_v2; _cyb_driver_names[92] = b'cuMemAllocHost_v2' +_cyb_driver_slots[93] = &__cuMemFreeHost; _cyb_driver_names[93] = b'cuMemFreeHost' +_cyb_driver_slots[94] = &__cuMemHostAlloc; _cyb_driver_names[94] = b'cuMemHostAlloc' +_cyb_driver_slots[95] = &__cuMemHostGetDevicePointer_v2; _cyb_driver_names[95] = b'cuMemHostGetDevicePointer_v2' +_cyb_driver_slots[96] = &__cuMemHostGetFlags; _cyb_driver_names[96] = b'cuMemHostGetFlags' +_cyb_driver_slots[97] = &__cuMemAllocManaged; _cyb_driver_names[97] = b'cuMemAllocManaged' +_cyb_driver_slots[98] = &__cuDeviceRegisterAsyncNotification; _cyb_driver_names[98] = b'cuDeviceRegisterAsyncNotification' +_cyb_driver_slots[99] = &__cuDeviceUnregisterAsyncNotification; _cyb_driver_names[99] = b'cuDeviceUnregisterAsyncNotification' +_cyb_driver_slots[100] = &__cuDeviceGetByPCIBusId; _cyb_driver_names[100] = b'cuDeviceGetByPCIBusId' +_cyb_driver_slots[101] = &__cuDeviceGetPCIBusId; _cyb_driver_names[101] = b'cuDeviceGetPCIBusId' +_cyb_driver_slots[102] = &__cuIpcGetEventHandle; _cyb_driver_names[102] = b'cuIpcGetEventHandle' +_cyb_driver_slots[103] = &__cuIpcOpenEventHandle; _cyb_driver_names[103] = b'cuIpcOpenEventHandle' +_cyb_driver_slots[104] = &__cuIpcGetMemHandle; _cyb_driver_names[104] = b'cuIpcGetMemHandle' +_cyb_driver_slots[105] = &__cuIpcOpenMemHandle_v2; _cyb_driver_names[105] = b'cuIpcOpenMemHandle_v2' +_cyb_driver_slots[106] = &__cuIpcCloseMemHandle; _cyb_driver_names[106] = b'cuIpcCloseMemHandle' +_cyb_driver_slots[107] = &__cuMemHostRegister_v2; _cyb_driver_names[107] = b'cuMemHostRegister_v2' +_cyb_driver_slots[108] = &__cuMemHostUnregister; _cyb_driver_names[108] = b'cuMemHostUnregister' +_cyb_driver_slots[109] = &__cuMemcpy; _cyb_driver_names[109] = b'cuMemcpy' +_cyb_driver_slots[110] = &__cuMemcpyPeer; _cyb_driver_names[110] = b'cuMemcpyPeer' +_cyb_driver_slots[111] = &__cuMemcpyHtoD_v2; _cyb_driver_names[111] = b'cuMemcpyHtoD_v2' +_cyb_driver_slots[112] = &__cuMemcpyDtoH_v2; _cyb_driver_names[112] = b'cuMemcpyDtoH_v2' +_cyb_driver_slots[113] = &__cuMemcpyDtoD_v2; _cyb_driver_names[113] = b'cuMemcpyDtoD_v2' +_cyb_driver_slots[114] = &__cuMemcpyDtoA_v2; _cyb_driver_names[114] = b'cuMemcpyDtoA_v2' +_cyb_driver_slots[115] = &__cuMemcpyAtoD_v2; _cyb_driver_names[115] = b'cuMemcpyAtoD_v2' +_cyb_driver_slots[116] = &__cuMemcpyHtoA_v2; _cyb_driver_names[116] = b'cuMemcpyHtoA_v2' +_cyb_driver_slots[117] = &__cuMemcpyAtoH_v2; _cyb_driver_names[117] = b'cuMemcpyAtoH_v2' +_cyb_driver_slots[118] = &__cuMemcpyAtoA_v2; _cyb_driver_names[118] = b'cuMemcpyAtoA_v2' +_cyb_driver_slots[119] = &__cuMemcpy2D_v2; _cyb_driver_names[119] = b'cuMemcpy2D_v2' +_cyb_driver_slots[120] = &__cuMemcpy2DUnaligned_v2; _cyb_driver_names[120] = b'cuMemcpy2DUnaligned_v2' +_cyb_driver_slots[121] = &__cuMemcpy3D_v2; _cyb_driver_names[121] = b'cuMemcpy3D_v2' +_cyb_driver_slots[122] = &__cuMemcpy3DPeer; _cyb_driver_names[122] = b'cuMemcpy3DPeer' +_cyb_driver_slots[123] = &__cuMemcpyAsync; _cyb_driver_names[123] = b'cuMemcpyAsync' +_cyb_driver_slots[124] = &__cuMemcpyPeerAsync; _cyb_driver_names[124] = b'cuMemcpyPeerAsync' +_cyb_driver_slots[125] = &__cuMemcpyHtoDAsync_v2; _cyb_driver_names[125] = b'cuMemcpyHtoDAsync_v2' +_cyb_driver_slots[126] = &__cuMemcpyDtoHAsync_v2; _cyb_driver_names[126] = b'cuMemcpyDtoHAsync_v2' +_cyb_driver_slots[127] = &__cuMemcpyDtoDAsync_v2; _cyb_driver_names[127] = b'cuMemcpyDtoDAsync_v2' +_cyb_driver_slots[128] = &__cuMemcpyHtoAAsync_v2; _cyb_driver_names[128] = b'cuMemcpyHtoAAsync_v2' +_cyb_driver_slots[129] = &__cuMemcpyAtoHAsync_v2; _cyb_driver_names[129] = b'cuMemcpyAtoHAsync_v2' +_cyb_driver_slots[130] = &__cuMemcpy2DAsync_v2; _cyb_driver_names[130] = b'cuMemcpy2DAsync_v2' +_cyb_driver_slots[131] = &__cuMemcpy3DAsync_v2; _cyb_driver_names[131] = b'cuMemcpy3DAsync_v2' +_cyb_driver_slots[132] = &__cuMemcpy3DPeerAsync; _cyb_driver_names[132] = b'cuMemcpy3DPeerAsync' +_cyb_driver_slots[133] = &__cuMemcpyBatchAsync; _cyb_driver_names[133] = b'cuMemcpyBatchAsync' +_cyb_driver_slots[134] = &__cuMemcpy3DBatchAsync; _cyb_driver_names[134] = b'cuMemcpy3DBatchAsync' +_cyb_driver_slots[135] = &__cuMemsetD8_v2; _cyb_driver_names[135] = b'cuMemsetD8_v2' +_cyb_driver_slots[136] = &__cuMemsetD16_v2; _cyb_driver_names[136] = b'cuMemsetD16_v2' +_cyb_driver_slots[137] = &__cuMemsetD32_v2; _cyb_driver_names[137] = b'cuMemsetD32_v2' +_cyb_driver_slots[138] = &__cuMemsetD2D8_v2; _cyb_driver_names[138] = b'cuMemsetD2D8_v2' +_cyb_driver_slots[139] = &__cuMemsetD2D16_v2; _cyb_driver_names[139] = b'cuMemsetD2D16_v2' +_cyb_driver_slots[140] = &__cuMemsetD2D32_v2; _cyb_driver_names[140] = b'cuMemsetD2D32_v2' +_cyb_driver_slots[141] = &__cuMemsetD8Async; _cyb_driver_names[141] = b'cuMemsetD8Async' +_cyb_driver_slots[142] = &__cuMemsetD16Async; _cyb_driver_names[142] = b'cuMemsetD16Async' +_cyb_driver_slots[143] = &__cuMemsetD32Async; _cyb_driver_names[143] = b'cuMemsetD32Async' +_cyb_driver_slots[144] = &__cuMemsetD2D8Async; _cyb_driver_names[144] = b'cuMemsetD2D8Async' +_cyb_driver_slots[145] = &__cuMemsetD2D16Async; _cyb_driver_names[145] = b'cuMemsetD2D16Async' +_cyb_driver_slots[146] = &__cuMemsetD2D32Async; _cyb_driver_names[146] = b'cuMemsetD2D32Async' +_cyb_driver_slots[147] = &__cuArrayCreate_v2; _cyb_driver_names[147] = b'cuArrayCreate_v2' +_cyb_driver_slots[148] = &__cuArrayGetDescriptor_v2; _cyb_driver_names[148] = b'cuArrayGetDescriptor_v2' +_cyb_driver_slots[149] = &__cuArrayGetSparseProperties; _cyb_driver_names[149] = b'cuArrayGetSparseProperties' +_cyb_driver_slots[150] = &__cuMipmappedArrayGetSparseProperties; _cyb_driver_names[150] = b'cuMipmappedArrayGetSparseProperties' +_cyb_driver_slots[151] = &__cuArrayGetMemoryRequirements; _cyb_driver_names[151] = b'cuArrayGetMemoryRequirements' +_cyb_driver_slots[152] = &__cuMipmappedArrayGetMemoryRequirements; _cyb_driver_names[152] = b'cuMipmappedArrayGetMemoryRequirements' +_cyb_driver_slots[153] = &__cuArrayGetPlane; _cyb_driver_names[153] = b'cuArrayGetPlane' +_cyb_driver_slots[154] = &__cuArrayDestroy; _cyb_driver_names[154] = b'cuArrayDestroy' +_cyb_driver_slots[155] = &__cuArray3DCreate_v2; _cyb_driver_names[155] = b'cuArray3DCreate_v2' +_cyb_driver_slots[156] = &__cuArray3DGetDescriptor_v2; _cyb_driver_names[156] = b'cuArray3DGetDescriptor_v2' +_cyb_driver_slots[157] = &__cuMipmappedArrayCreate; _cyb_driver_names[157] = b'cuMipmappedArrayCreate' +_cyb_driver_slots[158] = &__cuMipmappedArrayGetLevel; _cyb_driver_names[158] = b'cuMipmappedArrayGetLevel' +_cyb_driver_slots[159] = &__cuMipmappedArrayDestroy; _cyb_driver_names[159] = b'cuMipmappedArrayDestroy' +_cyb_driver_slots[160] = &__cuMemGetHandleForAddressRange; _cyb_driver_names[160] = b'cuMemGetHandleForAddressRange' +_cyb_driver_slots[161] = &__cuMemBatchDecompressAsync; _cyb_driver_names[161] = b'cuMemBatchDecompressAsync' +_cyb_driver_slots[162] = &__cuMemAddressReserve; _cyb_driver_names[162] = b'cuMemAddressReserve' +_cyb_driver_slots[163] = &__cuMemAddressFree; _cyb_driver_names[163] = b'cuMemAddressFree' +_cyb_driver_slots[164] = &__cuMemCreate; _cyb_driver_names[164] = b'cuMemCreate' +_cyb_driver_slots[165] = &__cuMemRelease; _cyb_driver_names[165] = b'cuMemRelease' +_cyb_driver_slots[166] = &__cuMemMap; _cyb_driver_names[166] = b'cuMemMap' +_cyb_driver_slots[167] = &__cuMemMapArrayAsync; _cyb_driver_names[167] = b'cuMemMapArrayAsync' +_cyb_driver_slots[168] = &__cuMemUnmap; _cyb_driver_names[168] = b'cuMemUnmap' +_cyb_driver_slots[169] = &__cuMemSetAccess; _cyb_driver_names[169] = b'cuMemSetAccess' +_cyb_driver_slots[170] = &__cuMemGetAccess; _cyb_driver_names[170] = b'cuMemGetAccess' +_cyb_driver_slots[171] = &__cuMemExportToShareableHandle; _cyb_driver_names[171] = b'cuMemExportToShareableHandle' +_cyb_driver_slots[172] = &__cuMemImportFromShareableHandle; _cyb_driver_names[172] = b'cuMemImportFromShareableHandle' +_cyb_driver_slots[173] = &__cuMemGetAllocationGranularity; _cyb_driver_names[173] = b'cuMemGetAllocationGranularity' +_cyb_driver_slots[174] = &__cuMemGetAllocationPropertiesFromHandle; _cyb_driver_names[174] = b'cuMemGetAllocationPropertiesFromHandle' +_cyb_driver_slots[175] = &__cuMemRetainAllocationHandle; _cyb_driver_names[175] = b'cuMemRetainAllocationHandle' +_cyb_driver_slots[176] = &__cuMemFreeAsync; _cyb_driver_names[176] = b'cuMemFreeAsync' +_cyb_driver_slots[177] = &__cuMemAllocAsync; _cyb_driver_names[177] = b'cuMemAllocAsync' +_cyb_driver_slots[178] = &__cuMemPoolTrimTo; _cyb_driver_names[178] = b'cuMemPoolTrimTo' +_cyb_driver_slots[179] = &__cuMemPoolSetAttribute; _cyb_driver_names[179] = b'cuMemPoolSetAttribute' +_cyb_driver_slots[180] = &__cuMemPoolGetAttribute; _cyb_driver_names[180] = b'cuMemPoolGetAttribute' +_cyb_driver_slots[181] = &__cuMemPoolSetAccess; _cyb_driver_names[181] = b'cuMemPoolSetAccess' +_cyb_driver_slots[182] = &__cuMemPoolGetAccess; _cyb_driver_names[182] = b'cuMemPoolGetAccess' +_cyb_driver_slots[183] = &__cuMemPoolCreate; _cyb_driver_names[183] = b'cuMemPoolCreate' +_cyb_driver_slots[184] = &__cuMemPoolDestroy; _cyb_driver_names[184] = b'cuMemPoolDestroy' +_cyb_driver_slots[185] = &__cuMemAllocFromPoolAsync; _cyb_driver_names[185] = b'cuMemAllocFromPoolAsync' +_cyb_driver_slots[186] = &__cuMemPoolExportToShareableHandle; _cyb_driver_names[186] = b'cuMemPoolExportToShareableHandle' +_cyb_driver_slots[187] = &__cuMemPoolImportFromShareableHandle; _cyb_driver_names[187] = b'cuMemPoolImportFromShareableHandle' +_cyb_driver_slots[188] = &__cuMemPoolExportPointer; _cyb_driver_names[188] = b'cuMemPoolExportPointer' +_cyb_driver_slots[189] = &__cuMemPoolImportPointer; _cyb_driver_names[189] = b'cuMemPoolImportPointer' +_cyb_driver_slots[190] = &__cuMulticastCreate; _cyb_driver_names[190] = b'cuMulticastCreate' +_cyb_driver_slots[191] = &__cuMulticastAddDevice; _cyb_driver_names[191] = b'cuMulticastAddDevice' +_cyb_driver_slots[192] = &__cuMulticastBindMem; _cyb_driver_names[192] = b'cuMulticastBindMem' +_cyb_driver_slots[193] = &__cuMulticastBindAddr; _cyb_driver_names[193] = b'cuMulticastBindAddr' +_cyb_driver_slots[194] = &__cuMulticastUnbind; _cyb_driver_names[194] = b'cuMulticastUnbind' +_cyb_driver_slots[195] = &__cuMulticastGetGranularity; _cyb_driver_names[195] = b'cuMulticastGetGranularity' +_cyb_driver_slots[196] = &__cuPointerGetAttribute; _cyb_driver_names[196] = b'cuPointerGetAttribute' +_cyb_driver_slots[197] = &__cuMemPrefetchAsync; _cyb_driver_names[197] = b'cuMemPrefetchAsync' +_cyb_driver_slots[198] = &__cuMemPrefetchAsync_v2; _cyb_driver_names[198] = b'cuMemPrefetchAsync_v2' +_cyb_driver_slots[199] = &__cuMemAdvise; _cyb_driver_names[199] = b'cuMemAdvise' +_cyb_driver_slots[200] = &__cuMemAdvise_v2; _cyb_driver_names[200] = b'cuMemAdvise_v2' +_cyb_driver_slots[201] = &__cuMemRangeGetAttribute; _cyb_driver_names[201] = b'cuMemRangeGetAttribute' +_cyb_driver_slots[202] = &__cuMemRangeGetAttributes; _cyb_driver_names[202] = b'cuMemRangeGetAttributes' +_cyb_driver_slots[203] = &__cuPointerSetAttribute; _cyb_driver_names[203] = b'cuPointerSetAttribute' +_cyb_driver_slots[204] = &__cuPointerGetAttributes; _cyb_driver_names[204] = b'cuPointerGetAttributes' +_cyb_driver_slots[205] = &__cuStreamCreate; _cyb_driver_names[205] = b'cuStreamCreate' +_cyb_driver_slots[206] = &__cuStreamCreateWithPriority; _cyb_driver_names[206] = b'cuStreamCreateWithPriority' +_cyb_driver_slots[207] = &__cuStreamGetPriority; _cyb_driver_names[207] = b'cuStreamGetPriority' +_cyb_driver_slots[208] = &__cuStreamGetDevice; _cyb_driver_names[208] = b'cuStreamGetDevice' +_cyb_driver_slots[209] = &__cuStreamGetFlags; _cyb_driver_names[209] = b'cuStreamGetFlags' +_cyb_driver_slots[210] = &__cuStreamGetId; _cyb_driver_names[210] = b'cuStreamGetId' +_cyb_driver_slots[211] = &__cuStreamGetCtx; _cyb_driver_names[211] = b'cuStreamGetCtx' +_cyb_driver_slots[212] = &__cuStreamGetCtx_v2; _cyb_driver_names[212] = b'cuStreamGetCtx_v2' +_cyb_driver_slots[213] = &__cuStreamWaitEvent; _cyb_driver_names[213] = b'cuStreamWaitEvent' +_cyb_driver_slots[214] = &__cuStreamAddCallback; _cyb_driver_names[214] = b'cuStreamAddCallback' +_cyb_driver_slots[215] = &__cuStreamBeginCapture_v2; _cyb_driver_names[215] = b'cuStreamBeginCapture_v2' +_cyb_driver_slots[216] = &__cuStreamBeginCaptureToGraph; _cyb_driver_names[216] = b'cuStreamBeginCaptureToGraph' +_cyb_driver_slots[217] = &__cuThreadExchangeStreamCaptureMode; _cyb_driver_names[217] = b'cuThreadExchangeStreamCaptureMode' +_cyb_driver_slots[218] = &__cuStreamEndCapture; _cyb_driver_names[218] = b'cuStreamEndCapture' +_cyb_driver_slots[219] = &__cuStreamIsCapturing; _cyb_driver_names[219] = b'cuStreamIsCapturing' +_cyb_driver_slots[220] = &__cuStreamGetCaptureInfo_v2; _cyb_driver_names[220] = b'cuStreamGetCaptureInfo_v2' +_cyb_driver_slots[221] = &__cuStreamGetCaptureInfo_v3; _cyb_driver_names[221] = b'cuStreamGetCaptureInfo_v3' +_cyb_driver_slots[222] = &__cuStreamUpdateCaptureDependencies; _cyb_driver_names[222] = b'cuStreamUpdateCaptureDependencies' +_cyb_driver_slots[223] = &__cuStreamUpdateCaptureDependencies_v2; _cyb_driver_names[223] = b'cuStreamUpdateCaptureDependencies_v2' +_cyb_driver_slots[224] = &__cuStreamAttachMemAsync; _cyb_driver_names[224] = b'cuStreamAttachMemAsync' +_cyb_driver_slots[225] = &__cuStreamQuery; _cyb_driver_names[225] = b'cuStreamQuery' +_cyb_driver_slots[226] = &__cuStreamSynchronize; _cyb_driver_names[226] = b'cuStreamSynchronize' +_cyb_driver_slots[227] = &__cuStreamDestroy_v2; _cyb_driver_names[227] = b'cuStreamDestroy_v2' +_cyb_driver_slots[228] = &__cuStreamCopyAttributes; _cyb_driver_names[228] = b'cuStreamCopyAttributes' +_cyb_driver_slots[229] = &__cuStreamGetAttribute; _cyb_driver_names[229] = b'cuStreamGetAttribute' +_cyb_driver_slots[230] = &__cuStreamSetAttribute; _cyb_driver_names[230] = b'cuStreamSetAttribute' +_cyb_driver_slots[231] = &__cuEventCreate; _cyb_driver_names[231] = b'cuEventCreate' +_cyb_driver_slots[232] = &__cuEventRecord; _cyb_driver_names[232] = b'cuEventRecord' +_cyb_driver_slots[233] = &__cuEventRecordWithFlags; _cyb_driver_names[233] = b'cuEventRecordWithFlags' +_cyb_driver_slots[234] = &__cuEventQuery; _cyb_driver_names[234] = b'cuEventQuery' +_cyb_driver_slots[235] = &__cuEventSynchronize; _cyb_driver_names[235] = b'cuEventSynchronize' +_cyb_driver_slots[236] = &__cuEventDestroy_v2; _cyb_driver_names[236] = b'cuEventDestroy_v2' +_cyb_driver_slots[237] = &__cuEventElapsedTime; _cyb_driver_names[237] = b'cuEventElapsedTime' +_cyb_driver_slots[238] = &__cuEventElapsedTime_v2; _cyb_driver_names[238] = b'cuEventElapsedTime_v2' +_cyb_driver_slots[239] = &__cuImportExternalMemory; _cyb_driver_names[239] = b'cuImportExternalMemory' +_cyb_driver_slots[240] = &__cuExternalMemoryGetMappedBuffer; _cyb_driver_names[240] = b'cuExternalMemoryGetMappedBuffer' +_cyb_driver_slots[241] = &__cuExternalMemoryGetMappedMipmappedArray; _cyb_driver_names[241] = b'cuExternalMemoryGetMappedMipmappedArray' +_cyb_driver_slots[242] = &__cuDestroyExternalMemory; _cyb_driver_names[242] = b'cuDestroyExternalMemory' +_cyb_driver_slots[243] = &__cuImportExternalSemaphore; _cyb_driver_names[243] = b'cuImportExternalSemaphore' +_cyb_driver_slots[244] = &__cuSignalExternalSemaphoresAsync; _cyb_driver_names[244] = b'cuSignalExternalSemaphoresAsync' +_cyb_driver_slots[245] = &__cuWaitExternalSemaphoresAsync; _cyb_driver_names[245] = b'cuWaitExternalSemaphoresAsync' +_cyb_driver_slots[246] = &__cuDestroyExternalSemaphore; _cyb_driver_names[246] = b'cuDestroyExternalSemaphore' +_cyb_driver_slots[247] = &__cuStreamWaitValue32_v2; _cyb_driver_names[247] = b'cuStreamWaitValue32_v2' +_cyb_driver_slots[248] = &__cuStreamWaitValue64_v2; _cyb_driver_names[248] = b'cuStreamWaitValue64_v2' +_cyb_driver_slots[249] = &__cuStreamWriteValue32_v2; _cyb_driver_names[249] = b'cuStreamWriteValue32_v2' +_cyb_driver_slots[250] = &__cuStreamWriteValue64_v2; _cyb_driver_names[250] = b'cuStreamWriteValue64_v2' +_cyb_driver_slots[251] = &__cuStreamBatchMemOp_v2; _cyb_driver_names[251] = b'cuStreamBatchMemOp_v2' +_cyb_driver_slots[252] = &__cuFuncGetAttribute; _cyb_driver_names[252] = b'cuFuncGetAttribute' +_cyb_driver_slots[253] = &__cuFuncSetAttribute; _cyb_driver_names[253] = b'cuFuncSetAttribute' +_cyb_driver_slots[254] = &__cuFuncSetCacheConfig; _cyb_driver_names[254] = b'cuFuncSetCacheConfig' +_cyb_driver_slots[255] = &__cuFuncGetModule; _cyb_driver_names[255] = b'cuFuncGetModule' +_cyb_driver_slots[256] = &__cuFuncGetName; _cyb_driver_names[256] = b'cuFuncGetName' +_cyb_driver_slots[257] = &__cuFuncGetParamInfo; _cyb_driver_names[257] = b'cuFuncGetParamInfo' +_cyb_driver_slots[258] = &__cuFuncIsLoaded; _cyb_driver_names[258] = b'cuFuncIsLoaded' +_cyb_driver_slots[259] = &__cuFuncLoad; _cyb_driver_names[259] = b'cuFuncLoad' +_cyb_driver_slots[260] = &__cuLaunchKernel; _cyb_driver_names[260] = b'cuLaunchKernel' +_cyb_driver_slots[261] = &__cuLaunchKernelEx; _cyb_driver_names[261] = b'cuLaunchKernelEx' +_cyb_driver_slots[262] = &__cuLaunchCooperativeKernel; _cyb_driver_names[262] = b'cuLaunchCooperativeKernel' +_cyb_driver_slots[263] = &__cuLaunchCooperativeKernelMultiDevice; _cyb_driver_names[263] = b'cuLaunchCooperativeKernelMultiDevice' +_cyb_driver_slots[264] = &__cuLaunchHostFunc; _cyb_driver_names[264] = b'cuLaunchHostFunc' +_cyb_driver_slots[265] = &__cuFuncSetBlockShape; _cyb_driver_names[265] = b'cuFuncSetBlockShape' +_cyb_driver_slots[266] = &__cuFuncSetSharedSize; _cyb_driver_names[266] = b'cuFuncSetSharedSize' +_cyb_driver_slots[267] = &__cuParamSetSize; _cyb_driver_names[267] = b'cuParamSetSize' +_cyb_driver_slots[268] = &__cuParamSeti; _cyb_driver_names[268] = b'cuParamSeti' +_cyb_driver_slots[269] = &__cuParamSetf; _cyb_driver_names[269] = b'cuParamSetf' +_cyb_driver_slots[270] = &__cuParamSetv; _cyb_driver_names[270] = b'cuParamSetv' +_cyb_driver_slots[271] = &__cuLaunch; _cyb_driver_names[271] = b'cuLaunch' +_cyb_driver_slots[272] = &__cuLaunchGrid; _cyb_driver_names[272] = b'cuLaunchGrid' +_cyb_driver_slots[273] = &__cuLaunchGridAsync; _cyb_driver_names[273] = b'cuLaunchGridAsync' +_cyb_driver_slots[274] = &__cuParamSetTexRef; _cyb_driver_names[274] = b'cuParamSetTexRef' +_cyb_driver_slots[275] = &__cuFuncSetSharedMemConfig; _cyb_driver_names[275] = b'cuFuncSetSharedMemConfig' +_cyb_driver_slots[276] = &__cuGraphCreate; _cyb_driver_names[276] = b'cuGraphCreate' +_cyb_driver_slots[277] = &__cuGraphAddKernelNode_v2; _cyb_driver_names[277] = b'cuGraphAddKernelNode_v2' +_cyb_driver_slots[278] = &__cuGraphKernelNodeGetParams_v2; _cyb_driver_names[278] = b'cuGraphKernelNodeGetParams_v2' +_cyb_driver_slots[279] = &__cuGraphKernelNodeSetParams_v2; _cyb_driver_names[279] = b'cuGraphKernelNodeSetParams_v2' +_cyb_driver_slots[280] = &__cuGraphAddMemcpyNode; _cyb_driver_names[280] = b'cuGraphAddMemcpyNode' +_cyb_driver_slots[281] = &__cuGraphMemcpyNodeGetParams; _cyb_driver_names[281] = b'cuGraphMemcpyNodeGetParams' +_cyb_driver_slots[282] = &__cuGraphMemcpyNodeSetParams; _cyb_driver_names[282] = b'cuGraphMemcpyNodeSetParams' +_cyb_driver_slots[283] = &__cuGraphAddMemsetNode; _cyb_driver_names[283] = b'cuGraphAddMemsetNode' +_cyb_driver_slots[284] = &__cuGraphMemsetNodeGetParams; _cyb_driver_names[284] = b'cuGraphMemsetNodeGetParams' +_cyb_driver_slots[285] = &__cuGraphMemsetNodeSetParams; _cyb_driver_names[285] = b'cuGraphMemsetNodeSetParams' +_cyb_driver_slots[286] = &__cuGraphAddHostNode; _cyb_driver_names[286] = b'cuGraphAddHostNode' +_cyb_driver_slots[287] = &__cuGraphHostNodeGetParams; _cyb_driver_names[287] = b'cuGraphHostNodeGetParams' +_cyb_driver_slots[288] = &__cuGraphHostNodeSetParams; _cyb_driver_names[288] = b'cuGraphHostNodeSetParams' +_cyb_driver_slots[289] = &__cuGraphAddChildGraphNode; _cyb_driver_names[289] = b'cuGraphAddChildGraphNode' +_cyb_driver_slots[290] = &__cuGraphChildGraphNodeGetGraph; _cyb_driver_names[290] = b'cuGraphChildGraphNodeGetGraph' +_cyb_driver_slots[291] = &__cuGraphAddEmptyNode; _cyb_driver_names[291] = b'cuGraphAddEmptyNode' +_cyb_driver_slots[292] = &__cuGraphAddEventRecordNode; _cyb_driver_names[292] = b'cuGraphAddEventRecordNode' +_cyb_driver_slots[293] = &__cuGraphEventRecordNodeGetEvent; _cyb_driver_names[293] = b'cuGraphEventRecordNodeGetEvent' +_cyb_driver_slots[294] = &__cuGraphEventRecordNodeSetEvent; _cyb_driver_names[294] = b'cuGraphEventRecordNodeSetEvent' +_cyb_driver_slots[295] = &__cuGraphAddEventWaitNode; _cyb_driver_names[295] = b'cuGraphAddEventWaitNode' +_cyb_driver_slots[296] = &__cuGraphEventWaitNodeGetEvent; _cyb_driver_names[296] = b'cuGraphEventWaitNodeGetEvent' +_cyb_driver_slots[297] = &__cuGraphEventWaitNodeSetEvent; _cyb_driver_names[297] = b'cuGraphEventWaitNodeSetEvent' +_cyb_driver_slots[298] = &__cuGraphAddExternalSemaphoresSignalNode; _cyb_driver_names[298] = b'cuGraphAddExternalSemaphoresSignalNode' +_cyb_driver_slots[299] = &__cuGraphExternalSemaphoresSignalNodeGetParams; _cyb_driver_names[299] = b'cuGraphExternalSemaphoresSignalNodeGetParams' +_cyb_driver_slots[300] = &__cuGraphExternalSemaphoresSignalNodeSetParams; _cyb_driver_names[300] = b'cuGraphExternalSemaphoresSignalNodeSetParams' +_cyb_driver_slots[301] = &__cuGraphAddExternalSemaphoresWaitNode; _cyb_driver_names[301] = b'cuGraphAddExternalSemaphoresWaitNode' +_cyb_driver_slots[302] = &__cuGraphExternalSemaphoresWaitNodeGetParams; _cyb_driver_names[302] = b'cuGraphExternalSemaphoresWaitNodeGetParams' +_cyb_driver_slots[303] = &__cuGraphExternalSemaphoresWaitNodeSetParams; _cyb_driver_names[303] = b'cuGraphExternalSemaphoresWaitNodeSetParams' +_cyb_driver_slots[304] = &__cuGraphAddBatchMemOpNode; _cyb_driver_names[304] = b'cuGraphAddBatchMemOpNode' +_cyb_driver_slots[305] = &__cuGraphBatchMemOpNodeGetParams; _cyb_driver_names[305] = b'cuGraphBatchMemOpNodeGetParams' +_cyb_driver_slots[306] = &__cuGraphBatchMemOpNodeSetParams; _cyb_driver_names[306] = b'cuGraphBatchMemOpNodeSetParams' +_cyb_driver_slots[307] = &__cuGraphExecBatchMemOpNodeSetParams; _cyb_driver_names[307] = b'cuGraphExecBatchMemOpNodeSetParams' +_cyb_driver_slots[308] = &__cuGraphAddMemAllocNode; _cyb_driver_names[308] = b'cuGraphAddMemAllocNode' +_cyb_driver_slots[309] = &__cuGraphMemAllocNodeGetParams; _cyb_driver_names[309] = b'cuGraphMemAllocNodeGetParams' +_cyb_driver_slots[310] = &__cuGraphAddMemFreeNode; _cyb_driver_names[310] = b'cuGraphAddMemFreeNode' +_cyb_driver_slots[311] = &__cuGraphMemFreeNodeGetParams; _cyb_driver_names[311] = b'cuGraphMemFreeNodeGetParams' +_cyb_driver_slots[312] = &__cuDeviceGraphMemTrim; _cyb_driver_names[312] = b'cuDeviceGraphMemTrim' +_cyb_driver_slots[313] = &__cuDeviceGetGraphMemAttribute; _cyb_driver_names[313] = b'cuDeviceGetGraphMemAttribute' +_cyb_driver_slots[314] = &__cuDeviceSetGraphMemAttribute; _cyb_driver_names[314] = b'cuDeviceSetGraphMemAttribute' +_cyb_driver_slots[315] = &__cuGraphClone; _cyb_driver_names[315] = b'cuGraphClone' +_cyb_driver_slots[316] = &__cuGraphNodeFindInClone; _cyb_driver_names[316] = b'cuGraphNodeFindInClone' +_cyb_driver_slots[317] = &__cuGraphNodeGetType; _cyb_driver_names[317] = b'cuGraphNodeGetType' +_cyb_driver_slots[318] = &__cuGraphGetNodes; _cyb_driver_names[318] = b'cuGraphGetNodes' +_cyb_driver_slots[319] = &__cuGraphGetRootNodes; _cyb_driver_names[319] = b'cuGraphGetRootNodes' +_cyb_driver_slots[320] = &__cuGraphGetEdges; _cyb_driver_names[320] = b'cuGraphGetEdges' +_cyb_driver_slots[321] = &__cuGraphGetEdges_v2; _cyb_driver_names[321] = b'cuGraphGetEdges_v2' +_cyb_driver_slots[322] = &__cuGraphNodeGetDependencies; _cyb_driver_names[322] = b'cuGraphNodeGetDependencies' +_cyb_driver_slots[323] = &__cuGraphNodeGetDependencies_v2; _cyb_driver_names[323] = b'cuGraphNodeGetDependencies_v2' +_cyb_driver_slots[324] = &__cuGraphNodeGetDependentNodes; _cyb_driver_names[324] = b'cuGraphNodeGetDependentNodes' +_cyb_driver_slots[325] = &__cuGraphNodeGetDependentNodes_v2; _cyb_driver_names[325] = b'cuGraphNodeGetDependentNodes_v2' +_cyb_driver_slots[326] = &__cuGraphAddDependencies; _cyb_driver_names[326] = b'cuGraphAddDependencies' +_cyb_driver_slots[327] = &__cuGraphAddDependencies_v2; _cyb_driver_names[327] = b'cuGraphAddDependencies_v2' +_cyb_driver_slots[328] = &__cuGraphRemoveDependencies; _cyb_driver_names[328] = b'cuGraphRemoveDependencies' +_cyb_driver_slots[329] = &__cuGraphRemoveDependencies_v2; _cyb_driver_names[329] = b'cuGraphRemoveDependencies_v2' +_cyb_driver_slots[330] = &__cuGraphDestroyNode; _cyb_driver_names[330] = b'cuGraphDestroyNode' +_cyb_driver_slots[331] = &__cuGraphInstantiateWithFlags; _cyb_driver_names[331] = b'cuGraphInstantiateWithFlags' +_cyb_driver_slots[332] = &__cuGraphInstantiateWithParams; _cyb_driver_names[332] = b'cuGraphInstantiateWithParams' +_cyb_driver_slots[333] = &__cuGraphExecGetFlags; _cyb_driver_names[333] = b'cuGraphExecGetFlags' +_cyb_driver_slots[334] = &__cuGraphExecKernelNodeSetParams_v2; _cyb_driver_names[334] = b'cuGraphExecKernelNodeSetParams_v2' +_cyb_driver_slots[335] = &__cuGraphExecMemcpyNodeSetParams; _cyb_driver_names[335] = b'cuGraphExecMemcpyNodeSetParams' +_cyb_driver_slots[336] = &__cuGraphExecMemsetNodeSetParams; _cyb_driver_names[336] = b'cuGraphExecMemsetNodeSetParams' +_cyb_driver_slots[337] = &__cuGraphExecHostNodeSetParams; _cyb_driver_names[337] = b'cuGraphExecHostNodeSetParams' +_cyb_driver_slots[338] = &__cuGraphExecChildGraphNodeSetParams; _cyb_driver_names[338] = b'cuGraphExecChildGraphNodeSetParams' +_cyb_driver_slots[339] = &__cuGraphExecEventRecordNodeSetEvent; _cyb_driver_names[339] = b'cuGraphExecEventRecordNodeSetEvent' +_cyb_driver_slots[340] = &__cuGraphExecEventWaitNodeSetEvent; _cyb_driver_names[340] = b'cuGraphExecEventWaitNodeSetEvent' +_cyb_driver_slots[341] = &__cuGraphExecExternalSemaphoresSignalNodeSetParams; _cyb_driver_names[341] = b'cuGraphExecExternalSemaphoresSignalNodeSetParams' +_cyb_driver_slots[342] = &__cuGraphExecExternalSemaphoresWaitNodeSetParams; _cyb_driver_names[342] = b'cuGraphExecExternalSemaphoresWaitNodeSetParams' +_cyb_driver_slots[343] = &__cuGraphNodeSetEnabled; _cyb_driver_names[343] = b'cuGraphNodeSetEnabled' +_cyb_driver_slots[344] = &__cuGraphNodeGetEnabled; _cyb_driver_names[344] = b'cuGraphNodeGetEnabled' +_cyb_driver_slots[345] = &__cuGraphUpload; _cyb_driver_names[345] = b'cuGraphUpload' +_cyb_driver_slots[346] = &__cuGraphLaunch; _cyb_driver_names[346] = b'cuGraphLaunch' +_cyb_driver_slots[347] = &__cuGraphExecDestroy; _cyb_driver_names[347] = b'cuGraphExecDestroy' +_cyb_driver_slots[348] = &__cuGraphDestroy; _cyb_driver_names[348] = b'cuGraphDestroy' +_cyb_driver_slots[349] = &__cuGraphExecUpdate_v2; _cyb_driver_names[349] = b'cuGraphExecUpdate_v2' +_cyb_driver_slots[350] = &__cuGraphKernelNodeCopyAttributes; _cyb_driver_names[350] = b'cuGraphKernelNodeCopyAttributes' +_cyb_driver_slots[351] = &__cuGraphKernelNodeGetAttribute; _cyb_driver_names[351] = b'cuGraphKernelNodeGetAttribute' +_cyb_driver_slots[352] = &__cuGraphKernelNodeSetAttribute; _cyb_driver_names[352] = b'cuGraphKernelNodeSetAttribute' +_cyb_driver_slots[353] = &__cuGraphDebugDotPrint; _cyb_driver_names[353] = b'cuGraphDebugDotPrint' +_cyb_driver_slots[354] = &__cuUserObjectCreate; _cyb_driver_names[354] = b'cuUserObjectCreate' +_cyb_driver_slots[355] = &__cuUserObjectRetain; _cyb_driver_names[355] = b'cuUserObjectRetain' +_cyb_driver_slots[356] = &__cuUserObjectRelease; _cyb_driver_names[356] = b'cuUserObjectRelease' +_cyb_driver_slots[357] = &__cuGraphRetainUserObject; _cyb_driver_names[357] = b'cuGraphRetainUserObject' +_cyb_driver_slots[358] = &__cuGraphReleaseUserObject; _cyb_driver_names[358] = b'cuGraphReleaseUserObject' +_cyb_driver_slots[359] = &__cuGraphAddNode; _cyb_driver_names[359] = b'cuGraphAddNode' +_cyb_driver_slots[360] = &__cuGraphAddNode_v2; _cyb_driver_names[360] = b'cuGraphAddNode_v2' +_cyb_driver_slots[361] = &__cuGraphNodeSetParams; _cyb_driver_names[361] = b'cuGraphNodeSetParams' +_cyb_driver_slots[362] = &__cuGraphExecNodeSetParams; _cyb_driver_names[362] = b'cuGraphExecNodeSetParams' +_cyb_driver_slots[363] = &__cuGraphConditionalHandleCreate; _cyb_driver_names[363] = b'cuGraphConditionalHandleCreate' +_cyb_driver_slots[364] = &__cuOccupancyMaxActiveBlocksPerMultiprocessor; _cyb_driver_names[364] = b'cuOccupancyMaxActiveBlocksPerMultiprocessor' +_cyb_driver_slots[365] = &__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags; _cyb_driver_names[365] = b'cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' +_cyb_driver_slots[366] = &__cuOccupancyMaxPotentialBlockSize; _cyb_driver_names[366] = b'cuOccupancyMaxPotentialBlockSize' +_cyb_driver_slots[367] = &__cuOccupancyMaxPotentialBlockSizeWithFlags; _cyb_driver_names[367] = b'cuOccupancyMaxPotentialBlockSizeWithFlags' +_cyb_driver_slots[368] = &__cuOccupancyAvailableDynamicSMemPerBlock; _cyb_driver_names[368] = b'cuOccupancyAvailableDynamicSMemPerBlock' +_cyb_driver_slots[369] = &__cuOccupancyMaxPotentialClusterSize; _cyb_driver_names[369] = b'cuOccupancyMaxPotentialClusterSize' +_cyb_driver_slots[370] = &__cuOccupancyMaxActiveClusters; _cyb_driver_names[370] = b'cuOccupancyMaxActiveClusters' +_cyb_driver_slots[371] = &__cuTexRefSetArray; _cyb_driver_names[371] = b'cuTexRefSetArray' +_cyb_driver_slots[372] = &__cuTexRefSetMipmappedArray; _cyb_driver_names[372] = b'cuTexRefSetMipmappedArray' +_cyb_driver_slots[373] = &__cuTexRefSetAddress_v2; _cyb_driver_names[373] = b'cuTexRefSetAddress_v2' +_cyb_driver_slots[374] = &__cuTexRefSetAddress2D_v3; _cyb_driver_names[374] = b'cuTexRefSetAddress2D_v3' +_cyb_driver_slots[375] = &__cuTexRefSetFormat; _cyb_driver_names[375] = b'cuTexRefSetFormat' +_cyb_driver_slots[376] = &__cuTexRefSetAddressMode; _cyb_driver_names[376] = b'cuTexRefSetAddressMode' +_cyb_driver_slots[377] = &__cuTexRefSetFilterMode; _cyb_driver_names[377] = b'cuTexRefSetFilterMode' +_cyb_driver_slots[378] = &__cuTexRefSetMipmapFilterMode; _cyb_driver_names[378] = b'cuTexRefSetMipmapFilterMode' +_cyb_driver_slots[379] = &__cuTexRefSetMipmapLevelBias; _cyb_driver_names[379] = b'cuTexRefSetMipmapLevelBias' +_cyb_driver_slots[380] = &__cuTexRefSetMipmapLevelClamp; _cyb_driver_names[380] = b'cuTexRefSetMipmapLevelClamp' +_cyb_driver_slots[381] = &__cuTexRefSetMaxAnisotropy; _cyb_driver_names[381] = b'cuTexRefSetMaxAnisotropy' +_cyb_driver_slots[382] = &__cuTexRefSetBorderColor; _cyb_driver_names[382] = b'cuTexRefSetBorderColor' +_cyb_driver_slots[383] = &__cuTexRefSetFlags; _cyb_driver_names[383] = b'cuTexRefSetFlags' +_cyb_driver_slots[384] = &__cuTexRefGetAddress_v2; _cyb_driver_names[384] = b'cuTexRefGetAddress_v2' +_cyb_driver_slots[385] = &__cuTexRefGetArray; _cyb_driver_names[385] = b'cuTexRefGetArray' +_cyb_driver_slots[386] = &__cuTexRefGetMipmappedArray; _cyb_driver_names[386] = b'cuTexRefGetMipmappedArray' +_cyb_driver_slots[387] = &__cuTexRefGetAddressMode; _cyb_driver_names[387] = b'cuTexRefGetAddressMode' +_cyb_driver_slots[388] = &__cuTexRefGetFilterMode; _cyb_driver_names[388] = b'cuTexRefGetFilterMode' +_cyb_driver_slots[389] = &__cuTexRefGetFormat; _cyb_driver_names[389] = b'cuTexRefGetFormat' +_cyb_driver_slots[390] = &__cuTexRefGetMipmapFilterMode; _cyb_driver_names[390] = b'cuTexRefGetMipmapFilterMode' +_cyb_driver_slots[391] = &__cuTexRefGetMipmapLevelBias; _cyb_driver_names[391] = b'cuTexRefGetMipmapLevelBias' +_cyb_driver_slots[392] = &__cuTexRefGetMipmapLevelClamp; _cyb_driver_names[392] = b'cuTexRefGetMipmapLevelClamp' +_cyb_driver_slots[393] = &__cuTexRefGetMaxAnisotropy; _cyb_driver_names[393] = b'cuTexRefGetMaxAnisotropy' +_cyb_driver_slots[394] = &__cuTexRefGetBorderColor; _cyb_driver_names[394] = b'cuTexRefGetBorderColor' +_cyb_driver_slots[395] = &__cuTexRefGetFlags; _cyb_driver_names[395] = b'cuTexRefGetFlags' +_cyb_driver_slots[396] = &__cuTexRefCreate; _cyb_driver_names[396] = b'cuTexRefCreate' +_cyb_driver_slots[397] = &__cuTexRefDestroy; _cyb_driver_names[397] = b'cuTexRefDestroy' +_cyb_driver_slots[398] = &__cuSurfRefSetArray; _cyb_driver_names[398] = b'cuSurfRefSetArray' +_cyb_driver_slots[399] = &__cuSurfRefGetArray; _cyb_driver_names[399] = b'cuSurfRefGetArray' +_cyb_driver_slots[400] = &__cuTexObjectCreate; _cyb_driver_names[400] = b'cuTexObjectCreate' +_cyb_driver_slots[401] = &__cuTexObjectDestroy; _cyb_driver_names[401] = b'cuTexObjectDestroy' +_cyb_driver_slots[402] = &__cuTexObjectGetResourceDesc; _cyb_driver_names[402] = b'cuTexObjectGetResourceDesc' +_cyb_driver_slots[403] = &__cuTexObjectGetTextureDesc; _cyb_driver_names[403] = b'cuTexObjectGetTextureDesc' +_cyb_driver_slots[404] = &__cuTexObjectGetResourceViewDesc; _cyb_driver_names[404] = b'cuTexObjectGetResourceViewDesc' +_cyb_driver_slots[405] = &__cuSurfObjectCreate; _cyb_driver_names[405] = b'cuSurfObjectCreate' +_cyb_driver_slots[406] = &__cuSurfObjectDestroy; _cyb_driver_names[406] = b'cuSurfObjectDestroy' +_cyb_driver_slots[407] = &__cuSurfObjectGetResourceDesc; _cyb_driver_names[407] = b'cuSurfObjectGetResourceDesc' +_cyb_driver_slots[408] = &__cuTensorMapEncodeTiled; _cyb_driver_names[408] = b'cuTensorMapEncodeTiled' +_cyb_driver_slots[409] = &__cuTensorMapEncodeIm2col; _cyb_driver_names[409] = b'cuTensorMapEncodeIm2col' +_cyb_driver_slots[410] = &__cuTensorMapEncodeIm2colWide; _cyb_driver_names[410] = b'cuTensorMapEncodeIm2colWide' +_cyb_driver_slots[411] = &__cuTensorMapReplaceAddress; _cyb_driver_names[411] = b'cuTensorMapReplaceAddress' +_cyb_driver_slots[412] = &__cuDeviceCanAccessPeer; _cyb_driver_names[412] = b'cuDeviceCanAccessPeer' +_cyb_driver_slots[413] = &__cuCtxEnablePeerAccess; _cyb_driver_names[413] = b'cuCtxEnablePeerAccess' +_cyb_driver_slots[414] = &__cuCtxDisablePeerAccess; _cyb_driver_names[414] = b'cuCtxDisablePeerAccess' +_cyb_driver_slots[415] = &__cuDeviceGetP2PAttribute; _cyb_driver_names[415] = b'cuDeviceGetP2PAttribute' +_cyb_driver_slots[416] = &__cuGraphicsUnregisterResource; _cyb_driver_names[416] = b'cuGraphicsUnregisterResource' +_cyb_driver_slots[417] = &__cuGraphicsSubResourceGetMappedArray; _cyb_driver_names[417] = b'cuGraphicsSubResourceGetMappedArray' +_cyb_driver_slots[418] = &__cuGraphicsResourceGetMappedMipmappedArray; _cyb_driver_names[418] = b'cuGraphicsResourceGetMappedMipmappedArray' +_cyb_driver_slots[419] = &__cuGraphicsResourceGetMappedPointer_v2; _cyb_driver_names[419] = b'cuGraphicsResourceGetMappedPointer_v2' +_cyb_driver_slots[420] = &__cuGraphicsResourceSetMapFlags_v2; _cyb_driver_names[420] = b'cuGraphicsResourceSetMapFlags_v2' +_cyb_driver_slots[421] = &__cuGraphicsMapResources; _cyb_driver_names[421] = b'cuGraphicsMapResources' +_cyb_driver_slots[422] = &__cuGraphicsUnmapResources; _cyb_driver_names[422] = b'cuGraphicsUnmapResources' +_cyb_driver_slots[423] = &__cuGetProcAddress_v2; _cyb_driver_names[423] = b'cuGetProcAddress_v2' +_cyb_driver_slots[424] = &__cuCoredumpGetAttribute; _cyb_driver_names[424] = b'cuCoredumpGetAttribute' +_cyb_driver_slots[425] = &__cuCoredumpGetAttributeGlobal; _cyb_driver_names[425] = b'cuCoredumpGetAttributeGlobal' +_cyb_driver_slots[426] = &__cuCoredumpSetAttribute; _cyb_driver_names[426] = b'cuCoredumpSetAttribute' +_cyb_driver_slots[427] = &__cuCoredumpSetAttributeGlobal; _cyb_driver_names[427] = b'cuCoredumpSetAttributeGlobal' +_cyb_driver_slots[428] = &__cuGetExportTable; _cyb_driver_names[428] = b'cuGetExportTable' +_cyb_driver_slots[429] = &__cuGreenCtxCreate; _cyb_driver_names[429] = b'cuGreenCtxCreate' +_cyb_driver_slots[430] = &__cuGreenCtxDestroy; _cyb_driver_names[430] = b'cuGreenCtxDestroy' +_cyb_driver_slots[431] = &__cuCtxFromGreenCtx; _cyb_driver_names[431] = b'cuCtxFromGreenCtx' +_cyb_driver_slots[432] = &__cuDeviceGetDevResource; _cyb_driver_names[432] = b'cuDeviceGetDevResource' +_cyb_driver_slots[433] = &__cuCtxGetDevResource; _cyb_driver_names[433] = b'cuCtxGetDevResource' +_cyb_driver_slots[434] = &__cuGreenCtxGetDevResource; _cyb_driver_names[434] = b'cuGreenCtxGetDevResource' +_cyb_driver_slots[435] = &__cuDevSmResourceSplitByCount; _cyb_driver_names[435] = b'cuDevSmResourceSplitByCount' +_cyb_driver_slots[436] = &__cuDevResourceGenerateDesc; _cyb_driver_names[436] = b'cuDevResourceGenerateDesc' +_cyb_driver_slots[437] = &__cuGreenCtxRecordEvent; _cyb_driver_names[437] = b'cuGreenCtxRecordEvent' +_cyb_driver_slots[438] = &__cuGreenCtxWaitEvent; _cyb_driver_names[438] = b'cuGreenCtxWaitEvent' +_cyb_driver_slots[439] = &__cuStreamGetGreenCtx; _cyb_driver_names[439] = b'cuStreamGetGreenCtx' +_cyb_driver_slots[440] = &__cuGreenCtxStreamCreate; _cyb_driver_names[440] = b'cuGreenCtxStreamCreate' +_cyb_driver_slots[441] = &__cuLogsRegisterCallback; _cyb_driver_names[441] = b'cuLogsRegisterCallback' +_cyb_driver_slots[442] = &__cuLogsUnregisterCallback; _cyb_driver_names[442] = b'cuLogsUnregisterCallback' +_cyb_driver_slots[443] = &__cuLogsCurrent; _cyb_driver_names[443] = b'cuLogsCurrent' +_cyb_driver_slots[444] = &__cuLogsDumpToFile; _cyb_driver_names[444] = b'cuLogsDumpToFile' +_cyb_driver_slots[445] = &__cuLogsDumpToMemory; _cyb_driver_names[445] = b'cuLogsDumpToMemory' +_cyb_driver_slots[446] = &__cuCheckpointProcessGetRestoreThreadId; _cyb_driver_names[446] = b'cuCheckpointProcessGetRestoreThreadId' +_cyb_driver_slots[447] = &__cuCheckpointProcessGetState; _cyb_driver_names[447] = b'cuCheckpointProcessGetState' +_cyb_driver_slots[448] = &__cuCheckpointProcessLock; _cyb_driver_names[448] = b'cuCheckpointProcessLock' +_cyb_driver_slots[449] = &__cuCheckpointProcessCheckpoint; _cyb_driver_names[449] = b'cuCheckpointProcessCheckpoint' +_cyb_driver_slots[450] = &__cuCheckpointProcessRestore; _cyb_driver_names[450] = b'cuCheckpointProcessRestore' +_cyb_driver_slots[451] = &__cuCheckpointProcessUnlock; _cyb_driver_names[451] = b'cuCheckpointProcessUnlock' +_cyb_driver_slots[452] = &__cuGraphicsEGLRegisterImage; _cyb_driver_names[452] = b'cuGraphicsEGLRegisterImage' +_cyb_driver_slots[453] = &__cuEGLStreamConsumerConnect; _cyb_driver_names[453] = b'cuEGLStreamConsumerConnect' +_cyb_driver_slots[454] = &__cuEGLStreamConsumerConnectWithFlags; _cyb_driver_names[454] = b'cuEGLStreamConsumerConnectWithFlags' +_cyb_driver_slots[455] = &__cuEGLStreamConsumerDisconnect; _cyb_driver_names[455] = b'cuEGLStreamConsumerDisconnect' +_cyb_driver_slots[456] = &__cuEGLStreamConsumerAcquireFrame; _cyb_driver_names[456] = b'cuEGLStreamConsumerAcquireFrame' +_cyb_driver_slots[457] = &__cuEGLStreamConsumerReleaseFrame; _cyb_driver_names[457] = b'cuEGLStreamConsumerReleaseFrame' +_cyb_driver_slots[458] = &__cuEGLStreamProducerConnect; _cyb_driver_names[458] = b'cuEGLStreamProducerConnect' +_cyb_driver_slots[459] = &__cuEGLStreamProducerDisconnect; _cyb_driver_names[459] = b'cuEGLStreamProducerDisconnect' +_cyb_driver_slots[460] = &__cuEGLStreamProducerPresentFrame; _cyb_driver_names[460] = b'cuEGLStreamProducerPresentFrame' +_cyb_driver_slots[461] = &__cuEGLStreamProducerReturnFrame; _cyb_driver_names[461] = b'cuEGLStreamProducerReturnFrame' +_cyb_driver_slots[462] = &__cuGraphicsResourceGetMappedEglFrame; _cyb_driver_names[462] = b'cuGraphicsResourceGetMappedEglFrame' +_cyb_driver_slots[463] = &__cuEventCreateFromEGLSync; _cyb_driver_names[463] = b'cuEventCreateFromEGLSync' +_cyb_driver_slots[464] = &__cuGraphicsGLRegisterBuffer; _cyb_driver_names[464] = b'cuGraphicsGLRegisterBuffer' +_cyb_driver_slots[465] = &__cuGraphicsGLRegisterImage; _cyb_driver_names[465] = b'cuGraphicsGLRegisterImage' +_cyb_driver_slots[466] = &__cuGLGetDevices_v2; _cyb_driver_names[466] = b'cuGLGetDevices_v2' +_cyb_driver_slots[467] = &__cuGLCtxCreate_v2; _cyb_driver_names[467] = b'cuGLCtxCreate_v2' +_cyb_driver_slots[468] = &__cuGLInit; _cyb_driver_names[468] = b'cuGLInit' +_cyb_driver_slots[469] = &__cuGLRegisterBufferObject; _cyb_driver_names[469] = b'cuGLRegisterBufferObject' +_cyb_driver_slots[470] = &__cuGLMapBufferObject_v2; _cyb_driver_names[470] = b'cuGLMapBufferObject_v2' +_cyb_driver_slots[471] = &__cuGLUnmapBufferObject; _cyb_driver_names[471] = b'cuGLUnmapBufferObject' +_cyb_driver_slots[472] = &__cuGLUnregisterBufferObject; _cyb_driver_names[472] = b'cuGLUnregisterBufferObject' +_cyb_driver_slots[473] = &__cuGLSetBufferObjectMapFlags; _cyb_driver_names[473] = b'cuGLSetBufferObjectMapFlags' +_cyb_driver_slots[474] = &__cuGLMapBufferObjectAsync_v2; _cyb_driver_names[474] = b'cuGLMapBufferObjectAsync_v2' +_cyb_driver_slots[475] = &__cuGLUnmapBufferObjectAsync; _cyb_driver_names[475] = b'cuGLUnmapBufferObjectAsync' +_cyb_driver_slots[476] = &__cuProfilerInitialize; _cyb_driver_names[476] = b'cuProfilerInitialize' +_cyb_driver_slots[477] = &__cuProfilerStart; _cyb_driver_names[477] = b'cuProfilerStart' +_cyb_driver_slots[478] = &__cuProfilerStop; _cyb_driver_names[478] = b'cuProfilerStop' +_cyb_driver_slots[479] = &__cuVDPAUGetDevice; _cyb_driver_names[479] = b'cuVDPAUGetDevice' +_cyb_driver_slots[480] = &__cuVDPAUCtxCreate_v2; _cyb_driver_names[480] = b'cuVDPAUCtxCreate_v2' +_cyb_driver_slots[481] = &__cuGraphicsVDPAURegisterVideoSurface; _cyb_driver_names[481] = b'cuGraphicsVDPAURegisterVideoSurface' +_cyb_driver_slots[482] = &__cuGraphicsVDPAURegisterOutputSurface; _cyb_driver_names[482] = b'cuGraphicsVDPAURegisterOutputSurface' + cdef int _init_driver() except -1 nogil: global _cyb___py_driver_init cdef void* handle = NULL @@ -2036,1454 +2523,9 @@ cpdef dict _inspect_function_pointers(): _check_or_init_driver() cdef dict data = {} - global __cuGetErrorString - data["__cuGetErrorString"] = __cuGetErrorString - - global __cuGetErrorName - data["__cuGetErrorName"] = __cuGetErrorName - - global __cuInit - data["__cuInit"] = __cuInit - - global __cuDriverGetVersion - data["__cuDriverGetVersion"] = __cuDriverGetVersion - - global __cuDeviceGet - data["__cuDeviceGet"] = __cuDeviceGet - - global __cuDeviceGetCount - data["__cuDeviceGetCount"] = __cuDeviceGetCount - - global __cuDeviceGetName - data["__cuDeviceGetName"] = __cuDeviceGetName - - global __cuDeviceGetUuid - data["__cuDeviceGetUuid"] = __cuDeviceGetUuid - - global __cuDeviceGetUuid_v2 - data["__cuDeviceGetUuid_v2"] = __cuDeviceGetUuid_v2 - - global __cuDeviceGetLuid - data["__cuDeviceGetLuid"] = __cuDeviceGetLuid - - global __cuDeviceTotalMem_v2 - data["__cuDeviceTotalMem_v2"] = __cuDeviceTotalMem_v2 - - global __cuDeviceGetTexture1DLinearMaxWidth - data["__cuDeviceGetTexture1DLinearMaxWidth"] = __cuDeviceGetTexture1DLinearMaxWidth - - global __cuDeviceGetAttribute - data["__cuDeviceGetAttribute"] = __cuDeviceGetAttribute - - global __cuDeviceGetNvSciSyncAttributes - data["__cuDeviceGetNvSciSyncAttributes"] = __cuDeviceGetNvSciSyncAttributes - - global __cuDeviceSetMemPool - data["__cuDeviceSetMemPool"] = __cuDeviceSetMemPool - - global __cuDeviceGetMemPool - data["__cuDeviceGetMemPool"] = __cuDeviceGetMemPool - - global __cuDeviceGetDefaultMemPool - data["__cuDeviceGetDefaultMemPool"] = __cuDeviceGetDefaultMemPool - - global __cuDeviceGetExecAffinitySupport - data["__cuDeviceGetExecAffinitySupport"] = __cuDeviceGetExecAffinitySupport - - global __cuFlushGPUDirectRDMAWrites - data["__cuFlushGPUDirectRDMAWrites"] = __cuFlushGPUDirectRDMAWrites - - global __cuDeviceGetProperties - data["__cuDeviceGetProperties"] = __cuDeviceGetProperties - - global __cuDeviceComputeCapability - data["__cuDeviceComputeCapability"] = __cuDeviceComputeCapability - - global __cuDevicePrimaryCtxRetain - data["__cuDevicePrimaryCtxRetain"] = __cuDevicePrimaryCtxRetain - - global __cuDevicePrimaryCtxRelease_v2 - data["__cuDevicePrimaryCtxRelease_v2"] = __cuDevicePrimaryCtxRelease_v2 - - global __cuDevicePrimaryCtxSetFlags_v2 - data["__cuDevicePrimaryCtxSetFlags_v2"] = __cuDevicePrimaryCtxSetFlags_v2 - - global __cuDevicePrimaryCtxGetState - data["__cuDevicePrimaryCtxGetState"] = __cuDevicePrimaryCtxGetState - - global __cuDevicePrimaryCtxReset_v2 - data["__cuDevicePrimaryCtxReset_v2"] = __cuDevicePrimaryCtxReset_v2 - - global __cuCtxCreate_v2 - data["__cuCtxCreate_v2"] = __cuCtxCreate_v2 - - global __cuCtxCreate_v3 - data["__cuCtxCreate_v3"] = __cuCtxCreate_v3 - - global __cuCtxCreate_v4 - data["__cuCtxCreate_v4"] = __cuCtxCreate_v4 - - global __cuCtxDestroy_v2 - data["__cuCtxDestroy_v2"] = __cuCtxDestroy_v2 - - global __cuCtxPushCurrent_v2 - data["__cuCtxPushCurrent_v2"] = __cuCtxPushCurrent_v2 - - global __cuCtxPopCurrent_v2 - data["__cuCtxPopCurrent_v2"] = __cuCtxPopCurrent_v2 - - global __cuCtxSetCurrent - data["__cuCtxSetCurrent"] = __cuCtxSetCurrent - - global __cuCtxGetCurrent - data["__cuCtxGetCurrent"] = __cuCtxGetCurrent - - global __cuCtxGetDevice - data["__cuCtxGetDevice"] = __cuCtxGetDevice - - global __cuCtxGetFlags - data["__cuCtxGetFlags"] = __cuCtxGetFlags - - global __cuCtxSetFlags - data["__cuCtxSetFlags"] = __cuCtxSetFlags - - global __cuCtxGetId - data["__cuCtxGetId"] = __cuCtxGetId - - global __cuCtxSynchronize - data["__cuCtxSynchronize"] = __cuCtxSynchronize - - global __cuCtxSetLimit - data["__cuCtxSetLimit"] = __cuCtxSetLimit - - global __cuCtxGetLimit - data["__cuCtxGetLimit"] = __cuCtxGetLimit - - global __cuCtxGetCacheConfig - data["__cuCtxGetCacheConfig"] = __cuCtxGetCacheConfig - - global __cuCtxSetCacheConfig - data["__cuCtxSetCacheConfig"] = __cuCtxSetCacheConfig - - global __cuCtxGetApiVersion - data["__cuCtxGetApiVersion"] = __cuCtxGetApiVersion - - global __cuCtxGetStreamPriorityRange - data["__cuCtxGetStreamPriorityRange"] = __cuCtxGetStreamPriorityRange - - global __cuCtxResetPersistingL2Cache - data["__cuCtxResetPersistingL2Cache"] = __cuCtxResetPersistingL2Cache - - global __cuCtxGetExecAffinity - data["__cuCtxGetExecAffinity"] = __cuCtxGetExecAffinity - - global __cuCtxRecordEvent - data["__cuCtxRecordEvent"] = __cuCtxRecordEvent - - global __cuCtxWaitEvent - data["__cuCtxWaitEvent"] = __cuCtxWaitEvent - - global __cuCtxAttach - data["__cuCtxAttach"] = __cuCtxAttach - - global __cuCtxDetach - data["__cuCtxDetach"] = __cuCtxDetach - - global __cuCtxGetSharedMemConfig - data["__cuCtxGetSharedMemConfig"] = __cuCtxGetSharedMemConfig - - global __cuCtxSetSharedMemConfig - data["__cuCtxSetSharedMemConfig"] = __cuCtxSetSharedMemConfig - - global __cuModuleLoad - data["__cuModuleLoad"] = __cuModuleLoad - - global __cuModuleLoadData - data["__cuModuleLoadData"] = __cuModuleLoadData - - global __cuModuleLoadDataEx - data["__cuModuleLoadDataEx"] = __cuModuleLoadDataEx - - global __cuModuleLoadFatBinary - data["__cuModuleLoadFatBinary"] = __cuModuleLoadFatBinary - - global __cuModuleUnload - data["__cuModuleUnload"] = __cuModuleUnload - - global __cuModuleGetLoadingMode - data["__cuModuleGetLoadingMode"] = __cuModuleGetLoadingMode - - global __cuModuleGetFunction - data["__cuModuleGetFunction"] = __cuModuleGetFunction - - global __cuModuleGetFunctionCount - data["__cuModuleGetFunctionCount"] = __cuModuleGetFunctionCount - - global __cuModuleEnumerateFunctions - data["__cuModuleEnumerateFunctions"] = __cuModuleEnumerateFunctions - - global __cuModuleGetGlobal_v2 - data["__cuModuleGetGlobal_v2"] = __cuModuleGetGlobal_v2 - - global __cuLinkCreate_v2 - data["__cuLinkCreate_v2"] = __cuLinkCreate_v2 - - global __cuLinkAddData_v2 - data["__cuLinkAddData_v2"] = __cuLinkAddData_v2 - - global __cuLinkAddFile_v2 - data["__cuLinkAddFile_v2"] = __cuLinkAddFile_v2 - - global __cuLinkComplete - data["__cuLinkComplete"] = __cuLinkComplete - - global __cuLinkDestroy - data["__cuLinkDestroy"] = __cuLinkDestroy - - global __cuModuleGetTexRef - data["__cuModuleGetTexRef"] = __cuModuleGetTexRef - - global __cuModuleGetSurfRef - data["__cuModuleGetSurfRef"] = __cuModuleGetSurfRef - - global __cuLibraryLoadData - data["__cuLibraryLoadData"] = __cuLibraryLoadData - - global __cuLibraryLoadFromFile - data["__cuLibraryLoadFromFile"] = __cuLibraryLoadFromFile - - global __cuLibraryUnload - data["__cuLibraryUnload"] = __cuLibraryUnload - - global __cuLibraryGetKernel - data["__cuLibraryGetKernel"] = __cuLibraryGetKernel - - global __cuLibraryGetKernelCount - data["__cuLibraryGetKernelCount"] = __cuLibraryGetKernelCount - - global __cuLibraryEnumerateKernels - data["__cuLibraryEnumerateKernels"] = __cuLibraryEnumerateKernels - - global __cuLibraryGetModule - data["__cuLibraryGetModule"] = __cuLibraryGetModule - - global __cuKernelGetFunction - data["__cuKernelGetFunction"] = __cuKernelGetFunction - - global __cuKernelGetLibrary - data["__cuKernelGetLibrary"] = __cuKernelGetLibrary - - global __cuLibraryGetGlobal - data["__cuLibraryGetGlobal"] = __cuLibraryGetGlobal - - global __cuLibraryGetManaged - data["__cuLibraryGetManaged"] = __cuLibraryGetManaged - - global __cuLibraryGetUnifiedFunction - data["__cuLibraryGetUnifiedFunction"] = __cuLibraryGetUnifiedFunction - - global __cuKernelGetAttribute - data["__cuKernelGetAttribute"] = __cuKernelGetAttribute - - global __cuKernelSetAttribute - data["__cuKernelSetAttribute"] = __cuKernelSetAttribute - - global __cuKernelSetCacheConfig - data["__cuKernelSetCacheConfig"] = __cuKernelSetCacheConfig - - global __cuKernelGetName - data["__cuKernelGetName"] = __cuKernelGetName - - global __cuKernelGetParamInfo - data["__cuKernelGetParamInfo"] = __cuKernelGetParamInfo - - global __cuMemGetInfo_v2 - data["__cuMemGetInfo_v2"] = __cuMemGetInfo_v2 - - global __cuMemAlloc_v2 - data["__cuMemAlloc_v2"] = __cuMemAlloc_v2 - - global __cuMemAllocPitch_v2 - data["__cuMemAllocPitch_v2"] = __cuMemAllocPitch_v2 - - global __cuMemFree_v2 - data["__cuMemFree_v2"] = __cuMemFree_v2 - - global __cuMemGetAddressRange_v2 - data["__cuMemGetAddressRange_v2"] = __cuMemGetAddressRange_v2 - - global __cuMemAllocHost_v2 - data["__cuMemAllocHost_v2"] = __cuMemAllocHost_v2 - - global __cuMemFreeHost - data["__cuMemFreeHost"] = __cuMemFreeHost - - global __cuMemHostAlloc - data["__cuMemHostAlloc"] = __cuMemHostAlloc - - global __cuMemHostGetDevicePointer_v2 - data["__cuMemHostGetDevicePointer_v2"] = __cuMemHostGetDevicePointer_v2 - - global __cuMemHostGetFlags - data["__cuMemHostGetFlags"] = __cuMemHostGetFlags - - global __cuMemAllocManaged - data["__cuMemAllocManaged"] = __cuMemAllocManaged - - global __cuDeviceRegisterAsyncNotification - data["__cuDeviceRegisterAsyncNotification"] = __cuDeviceRegisterAsyncNotification - - global __cuDeviceUnregisterAsyncNotification - data["__cuDeviceUnregisterAsyncNotification"] = __cuDeviceUnregisterAsyncNotification - - global __cuDeviceGetByPCIBusId - data["__cuDeviceGetByPCIBusId"] = __cuDeviceGetByPCIBusId - - global __cuDeviceGetPCIBusId - data["__cuDeviceGetPCIBusId"] = __cuDeviceGetPCIBusId - - global __cuIpcGetEventHandle - data["__cuIpcGetEventHandle"] = __cuIpcGetEventHandle - - global __cuIpcOpenEventHandle - data["__cuIpcOpenEventHandle"] = __cuIpcOpenEventHandle - - global __cuIpcGetMemHandle - data["__cuIpcGetMemHandle"] = __cuIpcGetMemHandle - - global __cuIpcOpenMemHandle_v2 - data["__cuIpcOpenMemHandle_v2"] = __cuIpcOpenMemHandle_v2 - - global __cuIpcCloseMemHandle - data["__cuIpcCloseMemHandle"] = __cuIpcCloseMemHandle - - global __cuMemHostRegister_v2 - data["__cuMemHostRegister_v2"] = __cuMemHostRegister_v2 - - global __cuMemHostUnregister - data["__cuMemHostUnregister"] = __cuMemHostUnregister - - global __cuMemcpy - data["__cuMemcpy"] = __cuMemcpy - - global __cuMemcpyPeer - data["__cuMemcpyPeer"] = __cuMemcpyPeer - - global __cuMemcpyHtoD_v2 - data["__cuMemcpyHtoD_v2"] = __cuMemcpyHtoD_v2 - - global __cuMemcpyDtoH_v2 - data["__cuMemcpyDtoH_v2"] = __cuMemcpyDtoH_v2 - - global __cuMemcpyDtoD_v2 - data["__cuMemcpyDtoD_v2"] = __cuMemcpyDtoD_v2 - - global __cuMemcpyDtoA_v2 - data["__cuMemcpyDtoA_v2"] = __cuMemcpyDtoA_v2 - - global __cuMemcpyAtoD_v2 - data["__cuMemcpyAtoD_v2"] = __cuMemcpyAtoD_v2 - - global __cuMemcpyHtoA_v2 - data["__cuMemcpyHtoA_v2"] = __cuMemcpyHtoA_v2 - - global __cuMemcpyAtoH_v2 - data["__cuMemcpyAtoH_v2"] = __cuMemcpyAtoH_v2 - - global __cuMemcpyAtoA_v2 - data["__cuMemcpyAtoA_v2"] = __cuMemcpyAtoA_v2 - - global __cuMemcpy2D_v2 - data["__cuMemcpy2D_v2"] = __cuMemcpy2D_v2 - - global __cuMemcpy2DUnaligned_v2 - data["__cuMemcpy2DUnaligned_v2"] = __cuMemcpy2DUnaligned_v2 - - global __cuMemcpy3D_v2 - data["__cuMemcpy3D_v2"] = __cuMemcpy3D_v2 - - global __cuMemcpy3DPeer - data["__cuMemcpy3DPeer"] = __cuMemcpy3DPeer - - global __cuMemcpyAsync - data["__cuMemcpyAsync"] = __cuMemcpyAsync - - global __cuMemcpyPeerAsync - data["__cuMemcpyPeerAsync"] = __cuMemcpyPeerAsync - - global __cuMemcpyHtoDAsync_v2 - data["__cuMemcpyHtoDAsync_v2"] = __cuMemcpyHtoDAsync_v2 - - global __cuMemcpyDtoHAsync_v2 - data["__cuMemcpyDtoHAsync_v2"] = __cuMemcpyDtoHAsync_v2 - - global __cuMemcpyDtoDAsync_v2 - data["__cuMemcpyDtoDAsync_v2"] = __cuMemcpyDtoDAsync_v2 - - global __cuMemcpyHtoAAsync_v2 - data["__cuMemcpyHtoAAsync_v2"] = __cuMemcpyHtoAAsync_v2 - - global __cuMemcpyAtoHAsync_v2 - data["__cuMemcpyAtoHAsync_v2"] = __cuMemcpyAtoHAsync_v2 - - global __cuMemcpy2DAsync_v2 - data["__cuMemcpy2DAsync_v2"] = __cuMemcpy2DAsync_v2 - - global __cuMemcpy3DAsync_v2 - data["__cuMemcpy3DAsync_v2"] = __cuMemcpy3DAsync_v2 - - global __cuMemcpy3DPeerAsync - data["__cuMemcpy3DPeerAsync"] = __cuMemcpy3DPeerAsync - - global __cuMemcpyBatchAsync - data["__cuMemcpyBatchAsync"] = __cuMemcpyBatchAsync - - global __cuMemcpy3DBatchAsync - data["__cuMemcpy3DBatchAsync"] = __cuMemcpy3DBatchAsync - - global __cuMemsetD8_v2 - data["__cuMemsetD8_v2"] = __cuMemsetD8_v2 - - global __cuMemsetD16_v2 - data["__cuMemsetD16_v2"] = __cuMemsetD16_v2 - - global __cuMemsetD32_v2 - data["__cuMemsetD32_v2"] = __cuMemsetD32_v2 - - global __cuMemsetD2D8_v2 - data["__cuMemsetD2D8_v2"] = __cuMemsetD2D8_v2 - - global __cuMemsetD2D16_v2 - data["__cuMemsetD2D16_v2"] = __cuMemsetD2D16_v2 - - global __cuMemsetD2D32_v2 - data["__cuMemsetD2D32_v2"] = __cuMemsetD2D32_v2 - - global __cuMemsetD8Async - data["__cuMemsetD8Async"] = __cuMemsetD8Async - - global __cuMemsetD16Async - data["__cuMemsetD16Async"] = __cuMemsetD16Async - - global __cuMemsetD32Async - data["__cuMemsetD32Async"] = __cuMemsetD32Async - - global __cuMemsetD2D8Async - data["__cuMemsetD2D8Async"] = __cuMemsetD2D8Async - - global __cuMemsetD2D16Async - data["__cuMemsetD2D16Async"] = __cuMemsetD2D16Async - - global __cuMemsetD2D32Async - data["__cuMemsetD2D32Async"] = __cuMemsetD2D32Async - - global __cuArrayCreate_v2 - data["__cuArrayCreate_v2"] = __cuArrayCreate_v2 - - global __cuArrayGetDescriptor_v2 - data["__cuArrayGetDescriptor_v2"] = __cuArrayGetDescriptor_v2 - - global __cuArrayGetSparseProperties - data["__cuArrayGetSparseProperties"] = __cuArrayGetSparseProperties - - global __cuMipmappedArrayGetSparseProperties - data["__cuMipmappedArrayGetSparseProperties"] = __cuMipmappedArrayGetSparseProperties - - global __cuArrayGetMemoryRequirements - data["__cuArrayGetMemoryRequirements"] = __cuArrayGetMemoryRequirements - - global __cuMipmappedArrayGetMemoryRequirements - data["__cuMipmappedArrayGetMemoryRequirements"] = __cuMipmappedArrayGetMemoryRequirements - - global __cuArrayGetPlane - data["__cuArrayGetPlane"] = __cuArrayGetPlane - - global __cuArrayDestroy - data["__cuArrayDestroy"] = __cuArrayDestroy - - global __cuArray3DCreate_v2 - data["__cuArray3DCreate_v2"] = __cuArray3DCreate_v2 - - global __cuArray3DGetDescriptor_v2 - data["__cuArray3DGetDescriptor_v2"] = __cuArray3DGetDescriptor_v2 - - global __cuMipmappedArrayCreate - data["__cuMipmappedArrayCreate"] = __cuMipmappedArrayCreate - - global __cuMipmappedArrayGetLevel - data["__cuMipmappedArrayGetLevel"] = __cuMipmappedArrayGetLevel - - global __cuMipmappedArrayDestroy - data["__cuMipmappedArrayDestroy"] = __cuMipmappedArrayDestroy - - global __cuMemGetHandleForAddressRange - data["__cuMemGetHandleForAddressRange"] = __cuMemGetHandleForAddressRange - - global __cuMemBatchDecompressAsync - data["__cuMemBatchDecompressAsync"] = __cuMemBatchDecompressAsync - - global __cuMemAddressReserve - data["__cuMemAddressReserve"] = __cuMemAddressReserve - - global __cuMemAddressFree - data["__cuMemAddressFree"] = __cuMemAddressFree - - global __cuMemCreate - data["__cuMemCreate"] = __cuMemCreate - - global __cuMemRelease - data["__cuMemRelease"] = __cuMemRelease - - global __cuMemMap - data["__cuMemMap"] = __cuMemMap - - global __cuMemMapArrayAsync - data["__cuMemMapArrayAsync"] = __cuMemMapArrayAsync - - global __cuMemUnmap - data["__cuMemUnmap"] = __cuMemUnmap - - global __cuMemSetAccess - data["__cuMemSetAccess"] = __cuMemSetAccess - - global __cuMemGetAccess - data["__cuMemGetAccess"] = __cuMemGetAccess - - global __cuMemExportToShareableHandle - data["__cuMemExportToShareableHandle"] = __cuMemExportToShareableHandle - - global __cuMemImportFromShareableHandle - data["__cuMemImportFromShareableHandle"] = __cuMemImportFromShareableHandle - - global __cuMemGetAllocationGranularity - data["__cuMemGetAllocationGranularity"] = __cuMemGetAllocationGranularity - - global __cuMemGetAllocationPropertiesFromHandle - data["__cuMemGetAllocationPropertiesFromHandle"] = __cuMemGetAllocationPropertiesFromHandle - - global __cuMemRetainAllocationHandle - data["__cuMemRetainAllocationHandle"] = __cuMemRetainAllocationHandle - - global __cuMemFreeAsync - data["__cuMemFreeAsync"] = __cuMemFreeAsync - - global __cuMemAllocAsync - data["__cuMemAllocAsync"] = __cuMemAllocAsync - - global __cuMemPoolTrimTo - data["__cuMemPoolTrimTo"] = __cuMemPoolTrimTo - - global __cuMemPoolSetAttribute - data["__cuMemPoolSetAttribute"] = __cuMemPoolSetAttribute - - global __cuMemPoolGetAttribute - data["__cuMemPoolGetAttribute"] = __cuMemPoolGetAttribute - - global __cuMemPoolSetAccess - data["__cuMemPoolSetAccess"] = __cuMemPoolSetAccess - - global __cuMemPoolGetAccess - data["__cuMemPoolGetAccess"] = __cuMemPoolGetAccess - - global __cuMemPoolCreate - data["__cuMemPoolCreate"] = __cuMemPoolCreate - - global __cuMemPoolDestroy - data["__cuMemPoolDestroy"] = __cuMemPoolDestroy - - global __cuMemAllocFromPoolAsync - data["__cuMemAllocFromPoolAsync"] = __cuMemAllocFromPoolAsync - - global __cuMemPoolExportToShareableHandle - data["__cuMemPoolExportToShareableHandle"] = __cuMemPoolExportToShareableHandle - - global __cuMemPoolImportFromShareableHandle - data["__cuMemPoolImportFromShareableHandle"] = __cuMemPoolImportFromShareableHandle - - global __cuMemPoolExportPointer - data["__cuMemPoolExportPointer"] = __cuMemPoolExportPointer - - global __cuMemPoolImportPointer - data["__cuMemPoolImportPointer"] = __cuMemPoolImportPointer - - global __cuMulticastCreate - data["__cuMulticastCreate"] = __cuMulticastCreate - - global __cuMulticastAddDevice - data["__cuMulticastAddDevice"] = __cuMulticastAddDevice - - global __cuMulticastBindMem - data["__cuMulticastBindMem"] = __cuMulticastBindMem - - global __cuMulticastBindAddr - data["__cuMulticastBindAddr"] = __cuMulticastBindAddr - - global __cuMulticastUnbind - data["__cuMulticastUnbind"] = __cuMulticastUnbind - - global __cuMulticastGetGranularity - data["__cuMulticastGetGranularity"] = __cuMulticastGetGranularity - - global __cuPointerGetAttribute - data["__cuPointerGetAttribute"] = __cuPointerGetAttribute - - global __cuMemPrefetchAsync - data["__cuMemPrefetchAsync"] = __cuMemPrefetchAsync - - global __cuMemPrefetchAsync_v2 - data["__cuMemPrefetchAsync_v2"] = __cuMemPrefetchAsync_v2 - - global __cuMemAdvise - data["__cuMemAdvise"] = __cuMemAdvise - - global __cuMemAdvise_v2 - data["__cuMemAdvise_v2"] = __cuMemAdvise_v2 - - global __cuMemRangeGetAttribute - data["__cuMemRangeGetAttribute"] = __cuMemRangeGetAttribute - - global __cuMemRangeGetAttributes - data["__cuMemRangeGetAttributes"] = __cuMemRangeGetAttributes - - global __cuPointerSetAttribute - data["__cuPointerSetAttribute"] = __cuPointerSetAttribute - - global __cuPointerGetAttributes - data["__cuPointerGetAttributes"] = __cuPointerGetAttributes - - global __cuStreamCreate - data["__cuStreamCreate"] = __cuStreamCreate - - global __cuStreamCreateWithPriority - data["__cuStreamCreateWithPriority"] = __cuStreamCreateWithPriority - - global __cuStreamGetPriority - data["__cuStreamGetPriority"] = __cuStreamGetPriority - - global __cuStreamGetDevice - data["__cuStreamGetDevice"] = __cuStreamGetDevice - - global __cuStreamGetFlags - data["__cuStreamGetFlags"] = __cuStreamGetFlags - - global __cuStreamGetId - data["__cuStreamGetId"] = __cuStreamGetId - - global __cuStreamGetCtx - data["__cuStreamGetCtx"] = __cuStreamGetCtx - - global __cuStreamGetCtx_v2 - data["__cuStreamGetCtx_v2"] = __cuStreamGetCtx_v2 - - global __cuStreamWaitEvent - data["__cuStreamWaitEvent"] = __cuStreamWaitEvent - - global __cuStreamAddCallback - data["__cuStreamAddCallback"] = __cuStreamAddCallback - - global __cuStreamBeginCapture_v2 - data["__cuStreamBeginCapture_v2"] = __cuStreamBeginCapture_v2 - - global __cuStreamBeginCaptureToGraph - data["__cuStreamBeginCaptureToGraph"] = __cuStreamBeginCaptureToGraph - - global __cuThreadExchangeStreamCaptureMode - data["__cuThreadExchangeStreamCaptureMode"] = __cuThreadExchangeStreamCaptureMode - - global __cuStreamEndCapture - data["__cuStreamEndCapture"] = __cuStreamEndCapture - - global __cuStreamIsCapturing - data["__cuStreamIsCapturing"] = __cuStreamIsCapturing - - global __cuStreamGetCaptureInfo_v2 - data["__cuStreamGetCaptureInfo_v2"] = __cuStreamGetCaptureInfo_v2 - - global __cuStreamGetCaptureInfo_v3 - data["__cuStreamGetCaptureInfo_v3"] = __cuStreamGetCaptureInfo_v3 - - global __cuStreamUpdateCaptureDependencies - data["__cuStreamUpdateCaptureDependencies"] = __cuStreamUpdateCaptureDependencies - - global __cuStreamUpdateCaptureDependencies_v2 - data["__cuStreamUpdateCaptureDependencies_v2"] = __cuStreamUpdateCaptureDependencies_v2 - - global __cuStreamAttachMemAsync - data["__cuStreamAttachMemAsync"] = __cuStreamAttachMemAsync - - global __cuStreamQuery - data["__cuStreamQuery"] = __cuStreamQuery - - global __cuStreamSynchronize - data["__cuStreamSynchronize"] = __cuStreamSynchronize - - global __cuStreamDestroy_v2 - data["__cuStreamDestroy_v2"] = __cuStreamDestroy_v2 - - global __cuStreamCopyAttributes - data["__cuStreamCopyAttributes"] = __cuStreamCopyAttributes - - global __cuStreamGetAttribute - data["__cuStreamGetAttribute"] = __cuStreamGetAttribute - - global __cuStreamSetAttribute - data["__cuStreamSetAttribute"] = __cuStreamSetAttribute - - global __cuEventCreate - data["__cuEventCreate"] = __cuEventCreate - - global __cuEventRecord - data["__cuEventRecord"] = __cuEventRecord - - global __cuEventRecordWithFlags - data["__cuEventRecordWithFlags"] = __cuEventRecordWithFlags - - global __cuEventQuery - data["__cuEventQuery"] = __cuEventQuery - - global __cuEventSynchronize - data["__cuEventSynchronize"] = __cuEventSynchronize - - global __cuEventDestroy_v2 - data["__cuEventDestroy_v2"] = __cuEventDestroy_v2 - - global __cuEventElapsedTime - data["__cuEventElapsedTime"] = __cuEventElapsedTime - - global __cuEventElapsedTime_v2 - data["__cuEventElapsedTime_v2"] = __cuEventElapsedTime_v2 - - global __cuImportExternalMemory - data["__cuImportExternalMemory"] = __cuImportExternalMemory - - global __cuExternalMemoryGetMappedBuffer - data["__cuExternalMemoryGetMappedBuffer"] = __cuExternalMemoryGetMappedBuffer - - global __cuExternalMemoryGetMappedMipmappedArray - data["__cuExternalMemoryGetMappedMipmappedArray"] = __cuExternalMemoryGetMappedMipmappedArray - - global __cuDestroyExternalMemory - data["__cuDestroyExternalMemory"] = __cuDestroyExternalMemory - - global __cuImportExternalSemaphore - data["__cuImportExternalSemaphore"] = __cuImportExternalSemaphore - - global __cuSignalExternalSemaphoresAsync - data["__cuSignalExternalSemaphoresAsync"] = __cuSignalExternalSemaphoresAsync - - global __cuWaitExternalSemaphoresAsync - data["__cuWaitExternalSemaphoresAsync"] = __cuWaitExternalSemaphoresAsync - - global __cuDestroyExternalSemaphore - data["__cuDestroyExternalSemaphore"] = __cuDestroyExternalSemaphore - - global __cuStreamWaitValue32_v2 - data["__cuStreamWaitValue32_v2"] = __cuStreamWaitValue32_v2 - - global __cuStreamWaitValue64_v2 - data["__cuStreamWaitValue64_v2"] = __cuStreamWaitValue64_v2 - - global __cuStreamWriteValue32_v2 - data["__cuStreamWriteValue32_v2"] = __cuStreamWriteValue32_v2 - - global __cuStreamWriteValue64_v2 - data["__cuStreamWriteValue64_v2"] = __cuStreamWriteValue64_v2 - - global __cuStreamBatchMemOp_v2 - data["__cuStreamBatchMemOp_v2"] = __cuStreamBatchMemOp_v2 - - global __cuFuncGetAttribute - data["__cuFuncGetAttribute"] = __cuFuncGetAttribute - - global __cuFuncSetAttribute - data["__cuFuncSetAttribute"] = __cuFuncSetAttribute - - global __cuFuncSetCacheConfig - data["__cuFuncSetCacheConfig"] = __cuFuncSetCacheConfig - - global __cuFuncGetModule - data["__cuFuncGetModule"] = __cuFuncGetModule - - global __cuFuncGetName - data["__cuFuncGetName"] = __cuFuncGetName - - global __cuFuncGetParamInfo - data["__cuFuncGetParamInfo"] = __cuFuncGetParamInfo - - global __cuFuncIsLoaded - data["__cuFuncIsLoaded"] = __cuFuncIsLoaded - - global __cuFuncLoad - data["__cuFuncLoad"] = __cuFuncLoad - - global __cuLaunchKernel - data["__cuLaunchKernel"] = __cuLaunchKernel - - global __cuLaunchKernelEx - data["__cuLaunchKernelEx"] = __cuLaunchKernelEx - - global __cuLaunchCooperativeKernel - data["__cuLaunchCooperativeKernel"] = __cuLaunchCooperativeKernel - - global __cuLaunchCooperativeKernelMultiDevice - data["__cuLaunchCooperativeKernelMultiDevice"] = __cuLaunchCooperativeKernelMultiDevice - - global __cuLaunchHostFunc - data["__cuLaunchHostFunc"] = __cuLaunchHostFunc - - global __cuFuncSetBlockShape - data["__cuFuncSetBlockShape"] = __cuFuncSetBlockShape - - global __cuFuncSetSharedSize - data["__cuFuncSetSharedSize"] = __cuFuncSetSharedSize - - global __cuParamSetSize - data["__cuParamSetSize"] = __cuParamSetSize - - global __cuParamSeti - data["__cuParamSeti"] = __cuParamSeti - - global __cuParamSetf - data["__cuParamSetf"] = __cuParamSetf - - global __cuParamSetv - data["__cuParamSetv"] = __cuParamSetv - - global __cuLaunch - data["__cuLaunch"] = __cuLaunch - - global __cuLaunchGrid - data["__cuLaunchGrid"] = __cuLaunchGrid - - global __cuLaunchGridAsync - data["__cuLaunchGridAsync"] = __cuLaunchGridAsync - - global __cuParamSetTexRef - data["__cuParamSetTexRef"] = __cuParamSetTexRef - - global __cuFuncSetSharedMemConfig - data["__cuFuncSetSharedMemConfig"] = __cuFuncSetSharedMemConfig - - global __cuGraphCreate - data["__cuGraphCreate"] = __cuGraphCreate - - global __cuGraphAddKernelNode_v2 - data["__cuGraphAddKernelNode_v2"] = __cuGraphAddKernelNode_v2 - - global __cuGraphKernelNodeGetParams_v2 - data["__cuGraphKernelNodeGetParams_v2"] = __cuGraphKernelNodeGetParams_v2 - - global __cuGraphKernelNodeSetParams_v2 - data["__cuGraphKernelNodeSetParams_v2"] = __cuGraphKernelNodeSetParams_v2 - - global __cuGraphAddMemcpyNode - data["__cuGraphAddMemcpyNode"] = __cuGraphAddMemcpyNode - - global __cuGraphMemcpyNodeGetParams - data["__cuGraphMemcpyNodeGetParams"] = __cuGraphMemcpyNodeGetParams - - global __cuGraphMemcpyNodeSetParams - data["__cuGraphMemcpyNodeSetParams"] = __cuGraphMemcpyNodeSetParams - - global __cuGraphAddMemsetNode - data["__cuGraphAddMemsetNode"] = __cuGraphAddMemsetNode - - global __cuGraphMemsetNodeGetParams - data["__cuGraphMemsetNodeGetParams"] = __cuGraphMemsetNodeGetParams - - global __cuGraphMemsetNodeSetParams - data["__cuGraphMemsetNodeSetParams"] = __cuGraphMemsetNodeSetParams - - global __cuGraphAddHostNode - data["__cuGraphAddHostNode"] = __cuGraphAddHostNode - - global __cuGraphHostNodeGetParams - data["__cuGraphHostNodeGetParams"] = __cuGraphHostNodeGetParams - - global __cuGraphHostNodeSetParams - data["__cuGraphHostNodeSetParams"] = __cuGraphHostNodeSetParams - - global __cuGraphAddChildGraphNode - data["__cuGraphAddChildGraphNode"] = __cuGraphAddChildGraphNode - - global __cuGraphChildGraphNodeGetGraph - data["__cuGraphChildGraphNodeGetGraph"] = __cuGraphChildGraphNodeGetGraph - - global __cuGraphAddEmptyNode - data["__cuGraphAddEmptyNode"] = __cuGraphAddEmptyNode - - global __cuGraphAddEventRecordNode - data["__cuGraphAddEventRecordNode"] = __cuGraphAddEventRecordNode - - global __cuGraphEventRecordNodeGetEvent - data["__cuGraphEventRecordNodeGetEvent"] = __cuGraphEventRecordNodeGetEvent - - global __cuGraphEventRecordNodeSetEvent - data["__cuGraphEventRecordNodeSetEvent"] = __cuGraphEventRecordNodeSetEvent - - global __cuGraphAddEventWaitNode - data["__cuGraphAddEventWaitNode"] = __cuGraphAddEventWaitNode - - global __cuGraphEventWaitNodeGetEvent - data["__cuGraphEventWaitNodeGetEvent"] = __cuGraphEventWaitNodeGetEvent - - global __cuGraphEventWaitNodeSetEvent - data["__cuGraphEventWaitNodeSetEvent"] = __cuGraphEventWaitNodeSetEvent - - global __cuGraphAddExternalSemaphoresSignalNode - data["__cuGraphAddExternalSemaphoresSignalNode"] = __cuGraphAddExternalSemaphoresSignalNode - - global __cuGraphExternalSemaphoresSignalNodeGetParams - data["__cuGraphExternalSemaphoresSignalNodeGetParams"] = __cuGraphExternalSemaphoresSignalNodeGetParams - - global __cuGraphExternalSemaphoresSignalNodeSetParams - data["__cuGraphExternalSemaphoresSignalNodeSetParams"] = __cuGraphExternalSemaphoresSignalNodeSetParams - - global __cuGraphAddExternalSemaphoresWaitNode - data["__cuGraphAddExternalSemaphoresWaitNode"] = __cuGraphAddExternalSemaphoresWaitNode - - global __cuGraphExternalSemaphoresWaitNodeGetParams - data["__cuGraphExternalSemaphoresWaitNodeGetParams"] = __cuGraphExternalSemaphoresWaitNodeGetParams - - global __cuGraphExternalSemaphoresWaitNodeSetParams - data["__cuGraphExternalSemaphoresWaitNodeSetParams"] = __cuGraphExternalSemaphoresWaitNodeSetParams - - global __cuGraphAddBatchMemOpNode - data["__cuGraphAddBatchMemOpNode"] = __cuGraphAddBatchMemOpNode - - global __cuGraphBatchMemOpNodeGetParams - data["__cuGraphBatchMemOpNodeGetParams"] = __cuGraphBatchMemOpNodeGetParams - - global __cuGraphBatchMemOpNodeSetParams - data["__cuGraphBatchMemOpNodeSetParams"] = __cuGraphBatchMemOpNodeSetParams - - global __cuGraphExecBatchMemOpNodeSetParams - data["__cuGraphExecBatchMemOpNodeSetParams"] = __cuGraphExecBatchMemOpNodeSetParams - - global __cuGraphAddMemAllocNode - data["__cuGraphAddMemAllocNode"] = __cuGraphAddMemAllocNode - - global __cuGraphMemAllocNodeGetParams - data["__cuGraphMemAllocNodeGetParams"] = __cuGraphMemAllocNodeGetParams - - global __cuGraphAddMemFreeNode - data["__cuGraphAddMemFreeNode"] = __cuGraphAddMemFreeNode - - global __cuGraphMemFreeNodeGetParams - data["__cuGraphMemFreeNodeGetParams"] = __cuGraphMemFreeNodeGetParams - - global __cuDeviceGraphMemTrim - data["__cuDeviceGraphMemTrim"] = __cuDeviceGraphMemTrim - - global __cuDeviceGetGraphMemAttribute - data["__cuDeviceGetGraphMemAttribute"] = __cuDeviceGetGraphMemAttribute - - global __cuDeviceSetGraphMemAttribute - data["__cuDeviceSetGraphMemAttribute"] = __cuDeviceSetGraphMemAttribute - - global __cuGraphClone - data["__cuGraphClone"] = __cuGraphClone - - global __cuGraphNodeFindInClone - data["__cuGraphNodeFindInClone"] = __cuGraphNodeFindInClone - - global __cuGraphNodeGetType - data["__cuGraphNodeGetType"] = __cuGraphNodeGetType - - global __cuGraphGetNodes - data["__cuGraphGetNodes"] = __cuGraphGetNodes - - global __cuGraphGetRootNodes - data["__cuGraphGetRootNodes"] = __cuGraphGetRootNodes - - global __cuGraphGetEdges - data["__cuGraphGetEdges"] = __cuGraphGetEdges - - global __cuGraphGetEdges_v2 - data["__cuGraphGetEdges_v2"] = __cuGraphGetEdges_v2 - - global __cuGraphNodeGetDependencies - data["__cuGraphNodeGetDependencies"] = __cuGraphNodeGetDependencies - - global __cuGraphNodeGetDependencies_v2 - data["__cuGraphNodeGetDependencies_v2"] = __cuGraphNodeGetDependencies_v2 - - global __cuGraphNodeGetDependentNodes - data["__cuGraphNodeGetDependentNodes"] = __cuGraphNodeGetDependentNodes - - global __cuGraphNodeGetDependentNodes_v2 - data["__cuGraphNodeGetDependentNodes_v2"] = __cuGraphNodeGetDependentNodes_v2 - - global __cuGraphAddDependencies - data["__cuGraphAddDependencies"] = __cuGraphAddDependencies - - global __cuGraphAddDependencies_v2 - data["__cuGraphAddDependencies_v2"] = __cuGraphAddDependencies_v2 - - global __cuGraphRemoveDependencies - data["__cuGraphRemoveDependencies"] = __cuGraphRemoveDependencies - - global __cuGraphRemoveDependencies_v2 - data["__cuGraphRemoveDependencies_v2"] = __cuGraphRemoveDependencies_v2 - - global __cuGraphDestroyNode - data["__cuGraphDestroyNode"] = __cuGraphDestroyNode - - global __cuGraphInstantiateWithFlags - data["__cuGraphInstantiateWithFlags"] = __cuGraphInstantiateWithFlags - - global __cuGraphInstantiateWithParams - data["__cuGraphInstantiateWithParams"] = __cuGraphInstantiateWithParams - - global __cuGraphExecGetFlags - data["__cuGraphExecGetFlags"] = __cuGraphExecGetFlags - - global __cuGraphExecKernelNodeSetParams_v2 - data["__cuGraphExecKernelNodeSetParams_v2"] = __cuGraphExecKernelNodeSetParams_v2 - - global __cuGraphExecMemcpyNodeSetParams - data["__cuGraphExecMemcpyNodeSetParams"] = __cuGraphExecMemcpyNodeSetParams - - global __cuGraphExecMemsetNodeSetParams - data["__cuGraphExecMemsetNodeSetParams"] = __cuGraphExecMemsetNodeSetParams - - global __cuGraphExecHostNodeSetParams - data["__cuGraphExecHostNodeSetParams"] = __cuGraphExecHostNodeSetParams - - global __cuGraphExecChildGraphNodeSetParams - data["__cuGraphExecChildGraphNodeSetParams"] = __cuGraphExecChildGraphNodeSetParams - - global __cuGraphExecEventRecordNodeSetEvent - data["__cuGraphExecEventRecordNodeSetEvent"] = __cuGraphExecEventRecordNodeSetEvent - - global __cuGraphExecEventWaitNodeSetEvent - data["__cuGraphExecEventWaitNodeSetEvent"] = __cuGraphExecEventWaitNodeSetEvent - - global __cuGraphExecExternalSemaphoresSignalNodeSetParams - data["__cuGraphExecExternalSemaphoresSignalNodeSetParams"] = __cuGraphExecExternalSemaphoresSignalNodeSetParams - - global __cuGraphExecExternalSemaphoresWaitNodeSetParams - data["__cuGraphExecExternalSemaphoresWaitNodeSetParams"] = __cuGraphExecExternalSemaphoresWaitNodeSetParams - - global __cuGraphNodeSetEnabled - data["__cuGraphNodeSetEnabled"] = __cuGraphNodeSetEnabled - - global __cuGraphNodeGetEnabled - data["__cuGraphNodeGetEnabled"] = __cuGraphNodeGetEnabled - - global __cuGraphUpload - data["__cuGraphUpload"] = __cuGraphUpload - - global __cuGraphLaunch - data["__cuGraphLaunch"] = __cuGraphLaunch - - global __cuGraphExecDestroy - data["__cuGraphExecDestroy"] = __cuGraphExecDestroy - - global __cuGraphDestroy - data["__cuGraphDestroy"] = __cuGraphDestroy - - global __cuGraphExecUpdate_v2 - data["__cuGraphExecUpdate_v2"] = __cuGraphExecUpdate_v2 - - global __cuGraphKernelNodeCopyAttributes - data["__cuGraphKernelNodeCopyAttributes"] = __cuGraphKernelNodeCopyAttributes - - global __cuGraphKernelNodeGetAttribute - data["__cuGraphKernelNodeGetAttribute"] = __cuGraphKernelNodeGetAttribute - - global __cuGraphKernelNodeSetAttribute - data["__cuGraphKernelNodeSetAttribute"] = __cuGraphKernelNodeSetAttribute - - global __cuGraphDebugDotPrint - data["__cuGraphDebugDotPrint"] = __cuGraphDebugDotPrint - - global __cuUserObjectCreate - data["__cuUserObjectCreate"] = __cuUserObjectCreate - - global __cuUserObjectRetain - data["__cuUserObjectRetain"] = __cuUserObjectRetain - - global __cuUserObjectRelease - data["__cuUserObjectRelease"] = __cuUserObjectRelease - - global __cuGraphRetainUserObject - data["__cuGraphRetainUserObject"] = __cuGraphRetainUserObject - - global __cuGraphReleaseUserObject - data["__cuGraphReleaseUserObject"] = __cuGraphReleaseUserObject - - global __cuGraphAddNode - data["__cuGraphAddNode"] = __cuGraphAddNode - - global __cuGraphAddNode_v2 - data["__cuGraphAddNode_v2"] = __cuGraphAddNode_v2 - - global __cuGraphNodeSetParams - data["__cuGraphNodeSetParams"] = __cuGraphNodeSetParams - - global __cuGraphExecNodeSetParams - data["__cuGraphExecNodeSetParams"] = __cuGraphExecNodeSetParams - - global __cuGraphConditionalHandleCreate - data["__cuGraphConditionalHandleCreate"] = __cuGraphConditionalHandleCreate - - global __cuOccupancyMaxActiveBlocksPerMultiprocessor - data["__cuOccupancyMaxActiveBlocksPerMultiprocessor"] = __cuOccupancyMaxActiveBlocksPerMultiprocessor - - global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags - data["__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags"] = __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags - - global __cuOccupancyMaxPotentialBlockSize - data["__cuOccupancyMaxPotentialBlockSize"] = __cuOccupancyMaxPotentialBlockSize - - global __cuOccupancyMaxPotentialBlockSizeWithFlags - data["__cuOccupancyMaxPotentialBlockSizeWithFlags"] = __cuOccupancyMaxPotentialBlockSizeWithFlags - - global __cuOccupancyAvailableDynamicSMemPerBlock - data["__cuOccupancyAvailableDynamicSMemPerBlock"] = __cuOccupancyAvailableDynamicSMemPerBlock - - global __cuOccupancyMaxPotentialClusterSize - data["__cuOccupancyMaxPotentialClusterSize"] = __cuOccupancyMaxPotentialClusterSize - - global __cuOccupancyMaxActiveClusters - data["__cuOccupancyMaxActiveClusters"] = __cuOccupancyMaxActiveClusters - - global __cuTexRefSetArray - data["__cuTexRefSetArray"] = __cuTexRefSetArray - - global __cuTexRefSetMipmappedArray - data["__cuTexRefSetMipmappedArray"] = __cuTexRefSetMipmappedArray - - global __cuTexRefSetAddress_v2 - data["__cuTexRefSetAddress_v2"] = __cuTexRefSetAddress_v2 - - global __cuTexRefSetAddress2D_v3 - data["__cuTexRefSetAddress2D_v3"] = __cuTexRefSetAddress2D_v3 - - global __cuTexRefSetFormat - data["__cuTexRefSetFormat"] = __cuTexRefSetFormat - - global __cuTexRefSetAddressMode - data["__cuTexRefSetAddressMode"] = __cuTexRefSetAddressMode - - global __cuTexRefSetFilterMode - data["__cuTexRefSetFilterMode"] = __cuTexRefSetFilterMode - - global __cuTexRefSetMipmapFilterMode - data["__cuTexRefSetMipmapFilterMode"] = __cuTexRefSetMipmapFilterMode - - global __cuTexRefSetMipmapLevelBias - data["__cuTexRefSetMipmapLevelBias"] = __cuTexRefSetMipmapLevelBias - - global __cuTexRefSetMipmapLevelClamp - data["__cuTexRefSetMipmapLevelClamp"] = __cuTexRefSetMipmapLevelClamp - - global __cuTexRefSetMaxAnisotropy - data["__cuTexRefSetMaxAnisotropy"] = __cuTexRefSetMaxAnisotropy - - global __cuTexRefSetBorderColor - data["__cuTexRefSetBorderColor"] = __cuTexRefSetBorderColor - - global __cuTexRefSetFlags - data["__cuTexRefSetFlags"] = __cuTexRefSetFlags - - global __cuTexRefGetAddress_v2 - data["__cuTexRefGetAddress_v2"] = __cuTexRefGetAddress_v2 - - global __cuTexRefGetArray - data["__cuTexRefGetArray"] = __cuTexRefGetArray - - global __cuTexRefGetMipmappedArray - data["__cuTexRefGetMipmappedArray"] = __cuTexRefGetMipmappedArray - - global __cuTexRefGetAddressMode - data["__cuTexRefGetAddressMode"] = __cuTexRefGetAddressMode - - global __cuTexRefGetFilterMode - data["__cuTexRefGetFilterMode"] = __cuTexRefGetFilterMode - - global __cuTexRefGetFormat - data["__cuTexRefGetFormat"] = __cuTexRefGetFormat - - global __cuTexRefGetMipmapFilterMode - data["__cuTexRefGetMipmapFilterMode"] = __cuTexRefGetMipmapFilterMode - - global __cuTexRefGetMipmapLevelBias - data["__cuTexRefGetMipmapLevelBias"] = __cuTexRefGetMipmapLevelBias - - global __cuTexRefGetMipmapLevelClamp - data["__cuTexRefGetMipmapLevelClamp"] = __cuTexRefGetMipmapLevelClamp - - global __cuTexRefGetMaxAnisotropy - data["__cuTexRefGetMaxAnisotropy"] = __cuTexRefGetMaxAnisotropy - - global __cuTexRefGetBorderColor - data["__cuTexRefGetBorderColor"] = __cuTexRefGetBorderColor - - global __cuTexRefGetFlags - data["__cuTexRefGetFlags"] = __cuTexRefGetFlags - - global __cuTexRefCreate - data["__cuTexRefCreate"] = __cuTexRefCreate - - global __cuTexRefDestroy - data["__cuTexRefDestroy"] = __cuTexRefDestroy - - global __cuSurfRefSetArray - data["__cuSurfRefSetArray"] = __cuSurfRefSetArray - - global __cuSurfRefGetArray - data["__cuSurfRefGetArray"] = __cuSurfRefGetArray - - global __cuTexObjectCreate - data["__cuTexObjectCreate"] = __cuTexObjectCreate - - global __cuTexObjectDestroy - data["__cuTexObjectDestroy"] = __cuTexObjectDestroy - - global __cuTexObjectGetResourceDesc - data["__cuTexObjectGetResourceDesc"] = __cuTexObjectGetResourceDesc - - global __cuTexObjectGetTextureDesc - data["__cuTexObjectGetTextureDesc"] = __cuTexObjectGetTextureDesc - - global __cuTexObjectGetResourceViewDesc - data["__cuTexObjectGetResourceViewDesc"] = __cuTexObjectGetResourceViewDesc - - global __cuSurfObjectCreate - data["__cuSurfObjectCreate"] = __cuSurfObjectCreate - - global __cuSurfObjectDestroy - data["__cuSurfObjectDestroy"] = __cuSurfObjectDestroy - - global __cuSurfObjectGetResourceDesc - data["__cuSurfObjectGetResourceDesc"] = __cuSurfObjectGetResourceDesc - - global __cuTensorMapEncodeTiled - data["__cuTensorMapEncodeTiled"] = __cuTensorMapEncodeTiled - - global __cuTensorMapEncodeIm2col - data["__cuTensorMapEncodeIm2col"] = __cuTensorMapEncodeIm2col - - global __cuTensorMapEncodeIm2colWide - data["__cuTensorMapEncodeIm2colWide"] = __cuTensorMapEncodeIm2colWide - - global __cuTensorMapReplaceAddress - data["__cuTensorMapReplaceAddress"] = __cuTensorMapReplaceAddress - - global __cuDeviceCanAccessPeer - data["__cuDeviceCanAccessPeer"] = __cuDeviceCanAccessPeer - - global __cuCtxEnablePeerAccess - data["__cuCtxEnablePeerAccess"] = __cuCtxEnablePeerAccess - - global __cuCtxDisablePeerAccess - data["__cuCtxDisablePeerAccess"] = __cuCtxDisablePeerAccess - - global __cuDeviceGetP2PAttribute - data["__cuDeviceGetP2PAttribute"] = __cuDeviceGetP2PAttribute - - global __cuGraphicsUnregisterResource - data["__cuGraphicsUnregisterResource"] = __cuGraphicsUnregisterResource - - global __cuGraphicsSubResourceGetMappedArray - data["__cuGraphicsSubResourceGetMappedArray"] = __cuGraphicsSubResourceGetMappedArray - - global __cuGraphicsResourceGetMappedMipmappedArray - data["__cuGraphicsResourceGetMappedMipmappedArray"] = __cuGraphicsResourceGetMappedMipmappedArray - - global __cuGraphicsResourceGetMappedPointer_v2 - data["__cuGraphicsResourceGetMappedPointer_v2"] = __cuGraphicsResourceGetMappedPointer_v2 - - global __cuGraphicsResourceSetMapFlags_v2 - data["__cuGraphicsResourceSetMapFlags_v2"] = __cuGraphicsResourceSetMapFlags_v2 - - global __cuGraphicsMapResources - data["__cuGraphicsMapResources"] = __cuGraphicsMapResources - - global __cuGraphicsUnmapResources - data["__cuGraphicsUnmapResources"] = __cuGraphicsUnmapResources - - global __cuGetProcAddress_v2 - data["__cuGetProcAddress_v2"] = __cuGetProcAddress_v2 - - global __cuCoredumpGetAttribute - data["__cuCoredumpGetAttribute"] = __cuCoredumpGetAttribute - - global __cuCoredumpGetAttributeGlobal - data["__cuCoredumpGetAttributeGlobal"] = __cuCoredumpGetAttributeGlobal - - global __cuCoredumpSetAttribute - data["__cuCoredumpSetAttribute"] = __cuCoredumpSetAttribute - - global __cuCoredumpSetAttributeGlobal - data["__cuCoredumpSetAttributeGlobal"] = __cuCoredumpSetAttributeGlobal - - global __cuGetExportTable - data["__cuGetExportTable"] = __cuGetExportTable - - global __cuGreenCtxCreate - data["__cuGreenCtxCreate"] = __cuGreenCtxCreate - - global __cuGreenCtxDestroy - data["__cuGreenCtxDestroy"] = __cuGreenCtxDestroy - - global __cuCtxFromGreenCtx - data["__cuCtxFromGreenCtx"] = __cuCtxFromGreenCtx - - global __cuDeviceGetDevResource - data["__cuDeviceGetDevResource"] = __cuDeviceGetDevResource - - global __cuCtxGetDevResource - data["__cuCtxGetDevResource"] = __cuCtxGetDevResource - - global __cuGreenCtxGetDevResource - data["__cuGreenCtxGetDevResource"] = __cuGreenCtxGetDevResource - - global __cuDevSmResourceSplitByCount - data["__cuDevSmResourceSplitByCount"] = __cuDevSmResourceSplitByCount - - global __cuDevResourceGenerateDesc - data["__cuDevResourceGenerateDesc"] = __cuDevResourceGenerateDesc - - global __cuGreenCtxRecordEvent - data["__cuGreenCtxRecordEvent"] = __cuGreenCtxRecordEvent - - global __cuGreenCtxWaitEvent - data["__cuGreenCtxWaitEvent"] = __cuGreenCtxWaitEvent - - global __cuStreamGetGreenCtx - data["__cuStreamGetGreenCtx"] = __cuStreamGetGreenCtx - - global __cuGreenCtxStreamCreate - data["__cuGreenCtxStreamCreate"] = __cuGreenCtxStreamCreate - - global __cuLogsRegisterCallback - data["__cuLogsRegisterCallback"] = __cuLogsRegisterCallback - - global __cuLogsUnregisterCallback - data["__cuLogsUnregisterCallback"] = __cuLogsUnregisterCallback - - global __cuLogsCurrent - data["__cuLogsCurrent"] = __cuLogsCurrent - - global __cuLogsDumpToFile - data["__cuLogsDumpToFile"] = __cuLogsDumpToFile - - global __cuLogsDumpToMemory - data["__cuLogsDumpToMemory"] = __cuLogsDumpToMemory - - global __cuCheckpointProcessGetRestoreThreadId - data["__cuCheckpointProcessGetRestoreThreadId"] = __cuCheckpointProcessGetRestoreThreadId - - global __cuCheckpointProcessGetState - data["__cuCheckpointProcessGetState"] = __cuCheckpointProcessGetState - - global __cuCheckpointProcessLock - data["__cuCheckpointProcessLock"] = __cuCheckpointProcessLock - - global __cuCheckpointProcessCheckpoint - data["__cuCheckpointProcessCheckpoint"] = __cuCheckpointProcessCheckpoint - - global __cuCheckpointProcessRestore - data["__cuCheckpointProcessRestore"] = __cuCheckpointProcessRestore - - global __cuCheckpointProcessUnlock - data["__cuCheckpointProcessUnlock"] = __cuCheckpointProcessUnlock - - global __cuGraphicsEGLRegisterImage - data["__cuGraphicsEGLRegisterImage"] = __cuGraphicsEGLRegisterImage - - global __cuEGLStreamConsumerConnect - data["__cuEGLStreamConsumerConnect"] = __cuEGLStreamConsumerConnect - - global __cuEGLStreamConsumerConnectWithFlags - data["__cuEGLStreamConsumerConnectWithFlags"] = __cuEGLStreamConsumerConnectWithFlags - - global __cuEGLStreamConsumerDisconnect - data["__cuEGLStreamConsumerDisconnect"] = __cuEGLStreamConsumerDisconnect - - global __cuEGLStreamConsumerAcquireFrame - data["__cuEGLStreamConsumerAcquireFrame"] = __cuEGLStreamConsumerAcquireFrame - - global __cuEGLStreamConsumerReleaseFrame - data["__cuEGLStreamConsumerReleaseFrame"] = __cuEGLStreamConsumerReleaseFrame - - global __cuEGLStreamProducerConnect - data["__cuEGLStreamProducerConnect"] = __cuEGLStreamProducerConnect - - global __cuEGLStreamProducerDisconnect - data["__cuEGLStreamProducerDisconnect"] = __cuEGLStreamProducerDisconnect - - global __cuEGLStreamProducerPresentFrame - data["__cuEGLStreamProducerPresentFrame"] = __cuEGLStreamProducerPresentFrame - - global __cuEGLStreamProducerReturnFrame - data["__cuEGLStreamProducerReturnFrame"] = __cuEGLStreamProducerReturnFrame - - global __cuGraphicsResourceGetMappedEglFrame - data["__cuGraphicsResourceGetMappedEglFrame"] = __cuGraphicsResourceGetMappedEglFrame - - global __cuEventCreateFromEGLSync - data["__cuEventCreateFromEGLSync"] = __cuEventCreateFromEGLSync - - global __cuGraphicsGLRegisterBuffer - data["__cuGraphicsGLRegisterBuffer"] = __cuGraphicsGLRegisterBuffer - - global __cuGraphicsGLRegisterImage - data["__cuGraphicsGLRegisterImage"] = __cuGraphicsGLRegisterImage - - global __cuGLGetDevices_v2 - data["__cuGLGetDevices_v2"] = __cuGLGetDevices_v2 - - global __cuGLCtxCreate_v2 - data["__cuGLCtxCreate_v2"] = __cuGLCtxCreate_v2 - - global __cuGLInit - data["__cuGLInit"] = __cuGLInit - - global __cuGLRegisterBufferObject - data["__cuGLRegisterBufferObject"] = __cuGLRegisterBufferObject - - global __cuGLMapBufferObject_v2 - data["__cuGLMapBufferObject_v2"] = __cuGLMapBufferObject_v2 - - global __cuGLUnmapBufferObject - data["__cuGLUnmapBufferObject"] = __cuGLUnmapBufferObject - - global __cuGLUnregisterBufferObject - data["__cuGLUnregisterBufferObject"] = __cuGLUnregisterBufferObject - - global __cuGLSetBufferObjectMapFlags - data["__cuGLSetBufferObjectMapFlags"] = __cuGLSetBufferObjectMapFlags - - global __cuGLMapBufferObjectAsync_v2 - data["__cuGLMapBufferObjectAsync_v2"] = __cuGLMapBufferObjectAsync_v2 - - global __cuGLUnmapBufferObjectAsync - data["__cuGLUnmapBufferObjectAsync"] = __cuGLUnmapBufferObjectAsync - - global __cuProfilerInitialize - data["__cuProfilerInitialize"] = __cuProfilerInitialize - - global __cuProfilerStart - data["__cuProfilerStart"] = __cuProfilerStart - - global __cuProfilerStop - data["__cuProfilerStop"] = __cuProfilerStop - - global __cuVDPAUGetDevice - data["__cuVDPAUGetDevice"] = __cuVDPAUGetDevice - - global __cuVDPAUCtxCreate_v2 - data["__cuVDPAUCtxCreate_v2"] = __cuVDPAUCtxCreate_v2 - - global __cuGraphicsVDPAURegisterVideoSurface - data["__cuGraphicsVDPAURegisterVideoSurface"] = __cuGraphicsVDPAURegisterVideoSurface - - global __cuGraphicsVDPAURegisterOutputSurface - data["__cuGraphicsVDPAURegisterOutputSurface"] = __cuGraphicsVDPAURegisterOutputSurface + cdef Py_ssize_t i + for i in range(_cyb_driver_n_functions): + data['__' + _cyb_driver_names[i].decode()] = _cyb_driver_slots[i][0] _cyb_func_ptrs = data return data @@ -7856,14 +6898,14 @@ cdef CUresult _cuGreenCtxGetDevResource(CUgreenCtx hCtx, CUdevResource* resource hCtx, resource, type) -cdef CUresult _cuDevSmResourceSplitByCount(CUdevResource* result, unsigned int* nbGroups, const CUdevResource* input, CUdevResource* remaining, unsigned int useFlags, unsigned int minCount) except ?CUDA_ERROR_NOT_FOUND nogil: +cdef CUresult _cuDevSmResourceSplitByCount(CUdevResource* result, unsigned int* nbGroups, const CUdevResource* input, CUdevResource* remainder, unsigned int useFlags, unsigned int minCount) except ?CUDA_ERROR_NOT_FOUND nogil: global __cuDevSmResourceSplitByCount _check_or_init_driver() if __cuDevSmResourceSplitByCount == NULL: with gil: raise FunctionNotFoundError("function cuDevSmResourceSplitByCount is not found") return (__cuDevSmResourceSplitByCount)( - result, nbGroups, input, remaining, useFlags, minCount) + result, nbGroups, input, remainder, useFlags, minCount) cdef CUresult _cuDevResourceGenerateDesc(CUdevResourceDesc* phDesc, CUdevResource* resources, unsigned int nbResources) except ?CUDA_ERROR_NOT_FOUND nogil: diff --git a/cuda_bindings_12/cuda/bindings/_internal/driver_windows.pyx b/cuda_bindings_12/cuda/bindings/_internal/driver_windows.pyx index fe3b6976886b..9c8c039a3d5f 100644 --- a/cuda_bindings_12/cuda/bindings/_internal/driver_windows.pyx +++ b/cuda_bindings_12/cuda/bindings/_internal/driver_windows.pyx @@ -3,11 +3,13 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated with version 12.9.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=895c345db6512915d2c6c9f27757175413ce053e7356b6eeb890478159cdc918 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=4eca1c9c4d2cfe17896355f3d9fe42199825301825b5c8a5d85459aec2a24400 # <<<< PREAMBLE CONTENT >>>> +from libc.stdint cimport intptr_t + cdef extern from * nogil: """ #if defined(_MSC_VER) && !defined(__clang__) @@ -44,8 +46,6 @@ cdef extern from "": ctypedef void* HMODULE void* _cyb_GetProcAddress "GetProcAddress"(HMODULE, const char*) nogil -from libc.stdint cimport intptr_t - from os import getenv as _cyb_getenv import threading as _cyb_threading @@ -552,6 +552,493 @@ cdef void* __cuVDPAUCtxCreate_v2 = NULL cdef void* __cuGraphicsVDPAURegisterVideoSurface = NULL cdef void* __cuGraphicsVDPAURegisterOutputSurface = NULL +cdef enum: _cyb_driver_n_functions = 483 +cdef void** _cyb_driver_slots[_cyb_driver_n_functions] +cdef const char* _cyb_driver_names[_cyb_driver_n_functions] +_cyb_driver_slots[0] = &__cuGetErrorString; _cyb_driver_names[0] = b'cuGetErrorString' +_cyb_driver_slots[1] = &__cuGetErrorName; _cyb_driver_names[1] = b'cuGetErrorName' +_cyb_driver_slots[2] = &__cuInit; _cyb_driver_names[2] = b'cuInit' +_cyb_driver_slots[3] = &__cuDriverGetVersion; _cyb_driver_names[3] = b'cuDriverGetVersion' +_cyb_driver_slots[4] = &__cuDeviceGet; _cyb_driver_names[4] = b'cuDeviceGet' +_cyb_driver_slots[5] = &__cuDeviceGetCount; _cyb_driver_names[5] = b'cuDeviceGetCount' +_cyb_driver_slots[6] = &__cuDeviceGetName; _cyb_driver_names[6] = b'cuDeviceGetName' +_cyb_driver_slots[7] = &__cuDeviceGetUuid; _cyb_driver_names[7] = b'cuDeviceGetUuid' +_cyb_driver_slots[8] = &__cuDeviceGetUuid_v2; _cyb_driver_names[8] = b'cuDeviceGetUuid_v2' +_cyb_driver_slots[9] = &__cuDeviceGetLuid; _cyb_driver_names[9] = b'cuDeviceGetLuid' +_cyb_driver_slots[10] = &__cuDeviceTotalMem_v2; _cyb_driver_names[10] = b'cuDeviceTotalMem_v2' +_cyb_driver_slots[11] = &__cuDeviceGetTexture1DLinearMaxWidth; _cyb_driver_names[11] = b'cuDeviceGetTexture1DLinearMaxWidth' +_cyb_driver_slots[12] = &__cuDeviceGetAttribute; _cyb_driver_names[12] = b'cuDeviceGetAttribute' +_cyb_driver_slots[13] = &__cuDeviceGetNvSciSyncAttributes; _cyb_driver_names[13] = b'cuDeviceGetNvSciSyncAttributes' +_cyb_driver_slots[14] = &__cuDeviceSetMemPool; _cyb_driver_names[14] = b'cuDeviceSetMemPool' +_cyb_driver_slots[15] = &__cuDeviceGetMemPool; _cyb_driver_names[15] = b'cuDeviceGetMemPool' +_cyb_driver_slots[16] = &__cuDeviceGetDefaultMemPool; _cyb_driver_names[16] = b'cuDeviceGetDefaultMemPool' +_cyb_driver_slots[17] = &__cuDeviceGetExecAffinitySupport; _cyb_driver_names[17] = b'cuDeviceGetExecAffinitySupport' +_cyb_driver_slots[18] = &__cuFlushGPUDirectRDMAWrites; _cyb_driver_names[18] = b'cuFlushGPUDirectRDMAWrites' +_cyb_driver_slots[19] = &__cuDeviceGetProperties; _cyb_driver_names[19] = b'cuDeviceGetProperties' +_cyb_driver_slots[20] = &__cuDeviceComputeCapability; _cyb_driver_names[20] = b'cuDeviceComputeCapability' +_cyb_driver_slots[21] = &__cuDevicePrimaryCtxRetain; _cyb_driver_names[21] = b'cuDevicePrimaryCtxRetain' +_cyb_driver_slots[22] = &__cuDevicePrimaryCtxRelease_v2; _cyb_driver_names[22] = b'cuDevicePrimaryCtxRelease_v2' +_cyb_driver_slots[23] = &__cuDevicePrimaryCtxSetFlags_v2; _cyb_driver_names[23] = b'cuDevicePrimaryCtxSetFlags_v2' +_cyb_driver_slots[24] = &__cuDevicePrimaryCtxGetState; _cyb_driver_names[24] = b'cuDevicePrimaryCtxGetState' +_cyb_driver_slots[25] = &__cuDevicePrimaryCtxReset_v2; _cyb_driver_names[25] = b'cuDevicePrimaryCtxReset_v2' +_cyb_driver_slots[26] = &__cuCtxCreate_v2; _cyb_driver_names[26] = b'cuCtxCreate_v2' +_cyb_driver_slots[27] = &__cuCtxCreate_v3; _cyb_driver_names[27] = b'cuCtxCreate_v3' +_cyb_driver_slots[28] = &__cuCtxCreate_v4; _cyb_driver_names[28] = b'cuCtxCreate_v4' +_cyb_driver_slots[29] = &__cuCtxDestroy_v2; _cyb_driver_names[29] = b'cuCtxDestroy_v2' +_cyb_driver_slots[30] = &__cuCtxPushCurrent_v2; _cyb_driver_names[30] = b'cuCtxPushCurrent_v2' +_cyb_driver_slots[31] = &__cuCtxPopCurrent_v2; _cyb_driver_names[31] = b'cuCtxPopCurrent_v2' +_cyb_driver_slots[32] = &__cuCtxSetCurrent; _cyb_driver_names[32] = b'cuCtxSetCurrent' +_cyb_driver_slots[33] = &__cuCtxGetCurrent; _cyb_driver_names[33] = b'cuCtxGetCurrent' +_cyb_driver_slots[34] = &__cuCtxGetDevice; _cyb_driver_names[34] = b'cuCtxGetDevice' +_cyb_driver_slots[35] = &__cuCtxGetFlags; _cyb_driver_names[35] = b'cuCtxGetFlags' +_cyb_driver_slots[36] = &__cuCtxSetFlags; _cyb_driver_names[36] = b'cuCtxSetFlags' +_cyb_driver_slots[37] = &__cuCtxGetId; _cyb_driver_names[37] = b'cuCtxGetId' +_cyb_driver_slots[38] = &__cuCtxSynchronize; _cyb_driver_names[38] = b'cuCtxSynchronize' +_cyb_driver_slots[39] = &__cuCtxSetLimit; _cyb_driver_names[39] = b'cuCtxSetLimit' +_cyb_driver_slots[40] = &__cuCtxGetLimit; _cyb_driver_names[40] = b'cuCtxGetLimit' +_cyb_driver_slots[41] = &__cuCtxGetCacheConfig; _cyb_driver_names[41] = b'cuCtxGetCacheConfig' +_cyb_driver_slots[42] = &__cuCtxSetCacheConfig; _cyb_driver_names[42] = b'cuCtxSetCacheConfig' +_cyb_driver_slots[43] = &__cuCtxGetApiVersion; _cyb_driver_names[43] = b'cuCtxGetApiVersion' +_cyb_driver_slots[44] = &__cuCtxGetStreamPriorityRange; _cyb_driver_names[44] = b'cuCtxGetStreamPriorityRange' +_cyb_driver_slots[45] = &__cuCtxResetPersistingL2Cache; _cyb_driver_names[45] = b'cuCtxResetPersistingL2Cache' +_cyb_driver_slots[46] = &__cuCtxGetExecAffinity; _cyb_driver_names[46] = b'cuCtxGetExecAffinity' +_cyb_driver_slots[47] = &__cuCtxRecordEvent; _cyb_driver_names[47] = b'cuCtxRecordEvent' +_cyb_driver_slots[48] = &__cuCtxWaitEvent; _cyb_driver_names[48] = b'cuCtxWaitEvent' +_cyb_driver_slots[49] = &__cuCtxAttach; _cyb_driver_names[49] = b'cuCtxAttach' +_cyb_driver_slots[50] = &__cuCtxDetach; _cyb_driver_names[50] = b'cuCtxDetach' +_cyb_driver_slots[51] = &__cuCtxGetSharedMemConfig; _cyb_driver_names[51] = b'cuCtxGetSharedMemConfig' +_cyb_driver_slots[52] = &__cuCtxSetSharedMemConfig; _cyb_driver_names[52] = b'cuCtxSetSharedMemConfig' +_cyb_driver_slots[53] = &__cuModuleLoad; _cyb_driver_names[53] = b'cuModuleLoad' +_cyb_driver_slots[54] = &__cuModuleLoadData; _cyb_driver_names[54] = b'cuModuleLoadData' +_cyb_driver_slots[55] = &__cuModuleLoadDataEx; _cyb_driver_names[55] = b'cuModuleLoadDataEx' +_cyb_driver_slots[56] = &__cuModuleLoadFatBinary; _cyb_driver_names[56] = b'cuModuleLoadFatBinary' +_cyb_driver_slots[57] = &__cuModuleUnload; _cyb_driver_names[57] = b'cuModuleUnload' +_cyb_driver_slots[58] = &__cuModuleGetLoadingMode; _cyb_driver_names[58] = b'cuModuleGetLoadingMode' +_cyb_driver_slots[59] = &__cuModuleGetFunction; _cyb_driver_names[59] = b'cuModuleGetFunction' +_cyb_driver_slots[60] = &__cuModuleGetFunctionCount; _cyb_driver_names[60] = b'cuModuleGetFunctionCount' +_cyb_driver_slots[61] = &__cuModuleEnumerateFunctions; _cyb_driver_names[61] = b'cuModuleEnumerateFunctions' +_cyb_driver_slots[62] = &__cuModuleGetGlobal_v2; _cyb_driver_names[62] = b'cuModuleGetGlobal_v2' +_cyb_driver_slots[63] = &__cuLinkCreate_v2; _cyb_driver_names[63] = b'cuLinkCreate_v2' +_cyb_driver_slots[64] = &__cuLinkAddData_v2; _cyb_driver_names[64] = b'cuLinkAddData_v2' +_cyb_driver_slots[65] = &__cuLinkAddFile_v2; _cyb_driver_names[65] = b'cuLinkAddFile_v2' +_cyb_driver_slots[66] = &__cuLinkComplete; _cyb_driver_names[66] = b'cuLinkComplete' +_cyb_driver_slots[67] = &__cuLinkDestroy; _cyb_driver_names[67] = b'cuLinkDestroy' +_cyb_driver_slots[68] = &__cuModuleGetTexRef; _cyb_driver_names[68] = b'cuModuleGetTexRef' +_cyb_driver_slots[69] = &__cuModuleGetSurfRef; _cyb_driver_names[69] = b'cuModuleGetSurfRef' +_cyb_driver_slots[70] = &__cuLibraryLoadData; _cyb_driver_names[70] = b'cuLibraryLoadData' +_cyb_driver_slots[71] = &__cuLibraryLoadFromFile; _cyb_driver_names[71] = b'cuLibraryLoadFromFile' +_cyb_driver_slots[72] = &__cuLibraryUnload; _cyb_driver_names[72] = b'cuLibraryUnload' +_cyb_driver_slots[73] = &__cuLibraryGetKernel; _cyb_driver_names[73] = b'cuLibraryGetKernel' +_cyb_driver_slots[74] = &__cuLibraryGetKernelCount; _cyb_driver_names[74] = b'cuLibraryGetKernelCount' +_cyb_driver_slots[75] = &__cuLibraryEnumerateKernels; _cyb_driver_names[75] = b'cuLibraryEnumerateKernels' +_cyb_driver_slots[76] = &__cuLibraryGetModule; _cyb_driver_names[76] = b'cuLibraryGetModule' +_cyb_driver_slots[77] = &__cuKernelGetFunction; _cyb_driver_names[77] = b'cuKernelGetFunction' +_cyb_driver_slots[78] = &__cuKernelGetLibrary; _cyb_driver_names[78] = b'cuKernelGetLibrary' +_cyb_driver_slots[79] = &__cuLibraryGetGlobal; _cyb_driver_names[79] = b'cuLibraryGetGlobal' +_cyb_driver_slots[80] = &__cuLibraryGetManaged; _cyb_driver_names[80] = b'cuLibraryGetManaged' +_cyb_driver_slots[81] = &__cuLibraryGetUnifiedFunction; _cyb_driver_names[81] = b'cuLibraryGetUnifiedFunction' +_cyb_driver_slots[82] = &__cuKernelGetAttribute; _cyb_driver_names[82] = b'cuKernelGetAttribute' +_cyb_driver_slots[83] = &__cuKernelSetAttribute; _cyb_driver_names[83] = b'cuKernelSetAttribute' +_cyb_driver_slots[84] = &__cuKernelSetCacheConfig; _cyb_driver_names[84] = b'cuKernelSetCacheConfig' +_cyb_driver_slots[85] = &__cuKernelGetName; _cyb_driver_names[85] = b'cuKernelGetName' +_cyb_driver_slots[86] = &__cuKernelGetParamInfo; _cyb_driver_names[86] = b'cuKernelGetParamInfo' +_cyb_driver_slots[87] = &__cuMemGetInfo_v2; _cyb_driver_names[87] = b'cuMemGetInfo_v2' +_cyb_driver_slots[88] = &__cuMemAlloc_v2; _cyb_driver_names[88] = b'cuMemAlloc_v2' +_cyb_driver_slots[89] = &__cuMemAllocPitch_v2; _cyb_driver_names[89] = b'cuMemAllocPitch_v2' +_cyb_driver_slots[90] = &__cuMemFree_v2; _cyb_driver_names[90] = b'cuMemFree_v2' +_cyb_driver_slots[91] = &__cuMemGetAddressRange_v2; _cyb_driver_names[91] = b'cuMemGetAddressRange_v2' +_cyb_driver_slots[92] = &__cuMemAllocHost_v2; _cyb_driver_names[92] = b'cuMemAllocHost_v2' +_cyb_driver_slots[93] = &__cuMemFreeHost; _cyb_driver_names[93] = b'cuMemFreeHost' +_cyb_driver_slots[94] = &__cuMemHostAlloc; _cyb_driver_names[94] = b'cuMemHostAlloc' +_cyb_driver_slots[95] = &__cuMemHostGetDevicePointer_v2; _cyb_driver_names[95] = b'cuMemHostGetDevicePointer_v2' +_cyb_driver_slots[96] = &__cuMemHostGetFlags; _cyb_driver_names[96] = b'cuMemHostGetFlags' +_cyb_driver_slots[97] = &__cuMemAllocManaged; _cyb_driver_names[97] = b'cuMemAllocManaged' +_cyb_driver_slots[98] = &__cuDeviceRegisterAsyncNotification; _cyb_driver_names[98] = b'cuDeviceRegisterAsyncNotification' +_cyb_driver_slots[99] = &__cuDeviceUnregisterAsyncNotification; _cyb_driver_names[99] = b'cuDeviceUnregisterAsyncNotification' +_cyb_driver_slots[100] = &__cuDeviceGetByPCIBusId; _cyb_driver_names[100] = b'cuDeviceGetByPCIBusId' +_cyb_driver_slots[101] = &__cuDeviceGetPCIBusId; _cyb_driver_names[101] = b'cuDeviceGetPCIBusId' +_cyb_driver_slots[102] = &__cuIpcGetEventHandle; _cyb_driver_names[102] = b'cuIpcGetEventHandle' +_cyb_driver_slots[103] = &__cuIpcOpenEventHandle; _cyb_driver_names[103] = b'cuIpcOpenEventHandle' +_cyb_driver_slots[104] = &__cuIpcGetMemHandle; _cyb_driver_names[104] = b'cuIpcGetMemHandle' +_cyb_driver_slots[105] = &__cuIpcOpenMemHandle_v2; _cyb_driver_names[105] = b'cuIpcOpenMemHandle_v2' +_cyb_driver_slots[106] = &__cuIpcCloseMemHandle; _cyb_driver_names[106] = b'cuIpcCloseMemHandle' +_cyb_driver_slots[107] = &__cuMemHostRegister_v2; _cyb_driver_names[107] = b'cuMemHostRegister_v2' +_cyb_driver_slots[108] = &__cuMemHostUnregister; _cyb_driver_names[108] = b'cuMemHostUnregister' +_cyb_driver_slots[109] = &__cuMemcpy; _cyb_driver_names[109] = b'cuMemcpy' +_cyb_driver_slots[110] = &__cuMemcpyPeer; _cyb_driver_names[110] = b'cuMemcpyPeer' +_cyb_driver_slots[111] = &__cuMemcpyHtoD_v2; _cyb_driver_names[111] = b'cuMemcpyHtoD_v2' +_cyb_driver_slots[112] = &__cuMemcpyDtoH_v2; _cyb_driver_names[112] = b'cuMemcpyDtoH_v2' +_cyb_driver_slots[113] = &__cuMemcpyDtoD_v2; _cyb_driver_names[113] = b'cuMemcpyDtoD_v2' +_cyb_driver_slots[114] = &__cuMemcpyDtoA_v2; _cyb_driver_names[114] = b'cuMemcpyDtoA_v2' +_cyb_driver_slots[115] = &__cuMemcpyAtoD_v2; _cyb_driver_names[115] = b'cuMemcpyAtoD_v2' +_cyb_driver_slots[116] = &__cuMemcpyHtoA_v2; _cyb_driver_names[116] = b'cuMemcpyHtoA_v2' +_cyb_driver_slots[117] = &__cuMemcpyAtoH_v2; _cyb_driver_names[117] = b'cuMemcpyAtoH_v2' +_cyb_driver_slots[118] = &__cuMemcpyAtoA_v2; _cyb_driver_names[118] = b'cuMemcpyAtoA_v2' +_cyb_driver_slots[119] = &__cuMemcpy2D_v2; _cyb_driver_names[119] = b'cuMemcpy2D_v2' +_cyb_driver_slots[120] = &__cuMemcpy2DUnaligned_v2; _cyb_driver_names[120] = b'cuMemcpy2DUnaligned_v2' +_cyb_driver_slots[121] = &__cuMemcpy3D_v2; _cyb_driver_names[121] = b'cuMemcpy3D_v2' +_cyb_driver_slots[122] = &__cuMemcpy3DPeer; _cyb_driver_names[122] = b'cuMemcpy3DPeer' +_cyb_driver_slots[123] = &__cuMemcpyAsync; _cyb_driver_names[123] = b'cuMemcpyAsync' +_cyb_driver_slots[124] = &__cuMemcpyPeerAsync; _cyb_driver_names[124] = b'cuMemcpyPeerAsync' +_cyb_driver_slots[125] = &__cuMemcpyHtoDAsync_v2; _cyb_driver_names[125] = b'cuMemcpyHtoDAsync_v2' +_cyb_driver_slots[126] = &__cuMemcpyDtoHAsync_v2; _cyb_driver_names[126] = b'cuMemcpyDtoHAsync_v2' +_cyb_driver_slots[127] = &__cuMemcpyDtoDAsync_v2; _cyb_driver_names[127] = b'cuMemcpyDtoDAsync_v2' +_cyb_driver_slots[128] = &__cuMemcpyHtoAAsync_v2; _cyb_driver_names[128] = b'cuMemcpyHtoAAsync_v2' +_cyb_driver_slots[129] = &__cuMemcpyAtoHAsync_v2; _cyb_driver_names[129] = b'cuMemcpyAtoHAsync_v2' +_cyb_driver_slots[130] = &__cuMemcpy2DAsync_v2; _cyb_driver_names[130] = b'cuMemcpy2DAsync_v2' +_cyb_driver_slots[131] = &__cuMemcpy3DAsync_v2; _cyb_driver_names[131] = b'cuMemcpy3DAsync_v2' +_cyb_driver_slots[132] = &__cuMemcpy3DPeerAsync; _cyb_driver_names[132] = b'cuMemcpy3DPeerAsync' +_cyb_driver_slots[133] = &__cuMemcpyBatchAsync; _cyb_driver_names[133] = b'cuMemcpyBatchAsync' +_cyb_driver_slots[134] = &__cuMemcpy3DBatchAsync; _cyb_driver_names[134] = b'cuMemcpy3DBatchAsync' +_cyb_driver_slots[135] = &__cuMemsetD8_v2; _cyb_driver_names[135] = b'cuMemsetD8_v2' +_cyb_driver_slots[136] = &__cuMemsetD16_v2; _cyb_driver_names[136] = b'cuMemsetD16_v2' +_cyb_driver_slots[137] = &__cuMemsetD32_v2; _cyb_driver_names[137] = b'cuMemsetD32_v2' +_cyb_driver_slots[138] = &__cuMemsetD2D8_v2; _cyb_driver_names[138] = b'cuMemsetD2D8_v2' +_cyb_driver_slots[139] = &__cuMemsetD2D16_v2; _cyb_driver_names[139] = b'cuMemsetD2D16_v2' +_cyb_driver_slots[140] = &__cuMemsetD2D32_v2; _cyb_driver_names[140] = b'cuMemsetD2D32_v2' +_cyb_driver_slots[141] = &__cuMemsetD8Async; _cyb_driver_names[141] = b'cuMemsetD8Async' +_cyb_driver_slots[142] = &__cuMemsetD16Async; _cyb_driver_names[142] = b'cuMemsetD16Async' +_cyb_driver_slots[143] = &__cuMemsetD32Async; _cyb_driver_names[143] = b'cuMemsetD32Async' +_cyb_driver_slots[144] = &__cuMemsetD2D8Async; _cyb_driver_names[144] = b'cuMemsetD2D8Async' +_cyb_driver_slots[145] = &__cuMemsetD2D16Async; _cyb_driver_names[145] = b'cuMemsetD2D16Async' +_cyb_driver_slots[146] = &__cuMemsetD2D32Async; _cyb_driver_names[146] = b'cuMemsetD2D32Async' +_cyb_driver_slots[147] = &__cuArrayCreate_v2; _cyb_driver_names[147] = b'cuArrayCreate_v2' +_cyb_driver_slots[148] = &__cuArrayGetDescriptor_v2; _cyb_driver_names[148] = b'cuArrayGetDescriptor_v2' +_cyb_driver_slots[149] = &__cuArrayGetSparseProperties; _cyb_driver_names[149] = b'cuArrayGetSparseProperties' +_cyb_driver_slots[150] = &__cuMipmappedArrayGetSparseProperties; _cyb_driver_names[150] = b'cuMipmappedArrayGetSparseProperties' +_cyb_driver_slots[151] = &__cuArrayGetMemoryRequirements; _cyb_driver_names[151] = b'cuArrayGetMemoryRequirements' +_cyb_driver_slots[152] = &__cuMipmappedArrayGetMemoryRequirements; _cyb_driver_names[152] = b'cuMipmappedArrayGetMemoryRequirements' +_cyb_driver_slots[153] = &__cuArrayGetPlane; _cyb_driver_names[153] = b'cuArrayGetPlane' +_cyb_driver_slots[154] = &__cuArrayDestroy; _cyb_driver_names[154] = b'cuArrayDestroy' +_cyb_driver_slots[155] = &__cuArray3DCreate_v2; _cyb_driver_names[155] = b'cuArray3DCreate_v2' +_cyb_driver_slots[156] = &__cuArray3DGetDescriptor_v2; _cyb_driver_names[156] = b'cuArray3DGetDescriptor_v2' +_cyb_driver_slots[157] = &__cuMipmappedArrayCreate; _cyb_driver_names[157] = b'cuMipmappedArrayCreate' +_cyb_driver_slots[158] = &__cuMipmappedArrayGetLevel; _cyb_driver_names[158] = b'cuMipmappedArrayGetLevel' +_cyb_driver_slots[159] = &__cuMipmappedArrayDestroy; _cyb_driver_names[159] = b'cuMipmappedArrayDestroy' +_cyb_driver_slots[160] = &__cuMemGetHandleForAddressRange; _cyb_driver_names[160] = b'cuMemGetHandleForAddressRange' +_cyb_driver_slots[161] = &__cuMemBatchDecompressAsync; _cyb_driver_names[161] = b'cuMemBatchDecompressAsync' +_cyb_driver_slots[162] = &__cuMemAddressReserve; _cyb_driver_names[162] = b'cuMemAddressReserve' +_cyb_driver_slots[163] = &__cuMemAddressFree; _cyb_driver_names[163] = b'cuMemAddressFree' +_cyb_driver_slots[164] = &__cuMemCreate; _cyb_driver_names[164] = b'cuMemCreate' +_cyb_driver_slots[165] = &__cuMemRelease; _cyb_driver_names[165] = b'cuMemRelease' +_cyb_driver_slots[166] = &__cuMemMap; _cyb_driver_names[166] = b'cuMemMap' +_cyb_driver_slots[167] = &__cuMemMapArrayAsync; _cyb_driver_names[167] = b'cuMemMapArrayAsync' +_cyb_driver_slots[168] = &__cuMemUnmap; _cyb_driver_names[168] = b'cuMemUnmap' +_cyb_driver_slots[169] = &__cuMemSetAccess; _cyb_driver_names[169] = b'cuMemSetAccess' +_cyb_driver_slots[170] = &__cuMemGetAccess; _cyb_driver_names[170] = b'cuMemGetAccess' +_cyb_driver_slots[171] = &__cuMemExportToShareableHandle; _cyb_driver_names[171] = b'cuMemExportToShareableHandle' +_cyb_driver_slots[172] = &__cuMemImportFromShareableHandle; _cyb_driver_names[172] = b'cuMemImportFromShareableHandle' +_cyb_driver_slots[173] = &__cuMemGetAllocationGranularity; _cyb_driver_names[173] = b'cuMemGetAllocationGranularity' +_cyb_driver_slots[174] = &__cuMemGetAllocationPropertiesFromHandle; _cyb_driver_names[174] = b'cuMemGetAllocationPropertiesFromHandle' +_cyb_driver_slots[175] = &__cuMemRetainAllocationHandle; _cyb_driver_names[175] = b'cuMemRetainAllocationHandle' +_cyb_driver_slots[176] = &__cuMemFreeAsync; _cyb_driver_names[176] = b'cuMemFreeAsync' +_cyb_driver_slots[177] = &__cuMemAllocAsync; _cyb_driver_names[177] = b'cuMemAllocAsync' +_cyb_driver_slots[178] = &__cuMemPoolTrimTo; _cyb_driver_names[178] = b'cuMemPoolTrimTo' +_cyb_driver_slots[179] = &__cuMemPoolSetAttribute; _cyb_driver_names[179] = b'cuMemPoolSetAttribute' +_cyb_driver_slots[180] = &__cuMemPoolGetAttribute; _cyb_driver_names[180] = b'cuMemPoolGetAttribute' +_cyb_driver_slots[181] = &__cuMemPoolSetAccess; _cyb_driver_names[181] = b'cuMemPoolSetAccess' +_cyb_driver_slots[182] = &__cuMemPoolGetAccess; _cyb_driver_names[182] = b'cuMemPoolGetAccess' +_cyb_driver_slots[183] = &__cuMemPoolCreate; _cyb_driver_names[183] = b'cuMemPoolCreate' +_cyb_driver_slots[184] = &__cuMemPoolDestroy; _cyb_driver_names[184] = b'cuMemPoolDestroy' +_cyb_driver_slots[185] = &__cuMemAllocFromPoolAsync; _cyb_driver_names[185] = b'cuMemAllocFromPoolAsync' +_cyb_driver_slots[186] = &__cuMemPoolExportToShareableHandle; _cyb_driver_names[186] = b'cuMemPoolExportToShareableHandle' +_cyb_driver_slots[187] = &__cuMemPoolImportFromShareableHandle; _cyb_driver_names[187] = b'cuMemPoolImportFromShareableHandle' +_cyb_driver_slots[188] = &__cuMemPoolExportPointer; _cyb_driver_names[188] = b'cuMemPoolExportPointer' +_cyb_driver_slots[189] = &__cuMemPoolImportPointer; _cyb_driver_names[189] = b'cuMemPoolImportPointer' +_cyb_driver_slots[190] = &__cuMulticastCreate; _cyb_driver_names[190] = b'cuMulticastCreate' +_cyb_driver_slots[191] = &__cuMulticastAddDevice; _cyb_driver_names[191] = b'cuMulticastAddDevice' +_cyb_driver_slots[192] = &__cuMulticastBindMem; _cyb_driver_names[192] = b'cuMulticastBindMem' +_cyb_driver_slots[193] = &__cuMulticastBindAddr; _cyb_driver_names[193] = b'cuMulticastBindAddr' +_cyb_driver_slots[194] = &__cuMulticastUnbind; _cyb_driver_names[194] = b'cuMulticastUnbind' +_cyb_driver_slots[195] = &__cuMulticastGetGranularity; _cyb_driver_names[195] = b'cuMulticastGetGranularity' +_cyb_driver_slots[196] = &__cuPointerGetAttribute; _cyb_driver_names[196] = b'cuPointerGetAttribute' +_cyb_driver_slots[197] = &__cuMemPrefetchAsync; _cyb_driver_names[197] = b'cuMemPrefetchAsync' +_cyb_driver_slots[198] = &__cuMemPrefetchAsync_v2; _cyb_driver_names[198] = b'cuMemPrefetchAsync_v2' +_cyb_driver_slots[199] = &__cuMemAdvise; _cyb_driver_names[199] = b'cuMemAdvise' +_cyb_driver_slots[200] = &__cuMemAdvise_v2; _cyb_driver_names[200] = b'cuMemAdvise_v2' +_cyb_driver_slots[201] = &__cuMemRangeGetAttribute; _cyb_driver_names[201] = b'cuMemRangeGetAttribute' +_cyb_driver_slots[202] = &__cuMemRangeGetAttributes; _cyb_driver_names[202] = b'cuMemRangeGetAttributes' +_cyb_driver_slots[203] = &__cuPointerSetAttribute; _cyb_driver_names[203] = b'cuPointerSetAttribute' +_cyb_driver_slots[204] = &__cuPointerGetAttributes; _cyb_driver_names[204] = b'cuPointerGetAttributes' +_cyb_driver_slots[205] = &__cuStreamCreate; _cyb_driver_names[205] = b'cuStreamCreate' +_cyb_driver_slots[206] = &__cuStreamCreateWithPriority; _cyb_driver_names[206] = b'cuStreamCreateWithPriority' +_cyb_driver_slots[207] = &__cuStreamGetPriority; _cyb_driver_names[207] = b'cuStreamGetPriority' +_cyb_driver_slots[208] = &__cuStreamGetDevice; _cyb_driver_names[208] = b'cuStreamGetDevice' +_cyb_driver_slots[209] = &__cuStreamGetFlags; _cyb_driver_names[209] = b'cuStreamGetFlags' +_cyb_driver_slots[210] = &__cuStreamGetId; _cyb_driver_names[210] = b'cuStreamGetId' +_cyb_driver_slots[211] = &__cuStreamGetCtx; _cyb_driver_names[211] = b'cuStreamGetCtx' +_cyb_driver_slots[212] = &__cuStreamGetCtx_v2; _cyb_driver_names[212] = b'cuStreamGetCtx_v2' +_cyb_driver_slots[213] = &__cuStreamWaitEvent; _cyb_driver_names[213] = b'cuStreamWaitEvent' +_cyb_driver_slots[214] = &__cuStreamAddCallback; _cyb_driver_names[214] = b'cuStreamAddCallback' +_cyb_driver_slots[215] = &__cuStreamBeginCapture_v2; _cyb_driver_names[215] = b'cuStreamBeginCapture_v2' +_cyb_driver_slots[216] = &__cuStreamBeginCaptureToGraph; _cyb_driver_names[216] = b'cuStreamBeginCaptureToGraph' +_cyb_driver_slots[217] = &__cuThreadExchangeStreamCaptureMode; _cyb_driver_names[217] = b'cuThreadExchangeStreamCaptureMode' +_cyb_driver_slots[218] = &__cuStreamEndCapture; _cyb_driver_names[218] = b'cuStreamEndCapture' +_cyb_driver_slots[219] = &__cuStreamIsCapturing; _cyb_driver_names[219] = b'cuStreamIsCapturing' +_cyb_driver_slots[220] = &__cuStreamGetCaptureInfo_v2; _cyb_driver_names[220] = b'cuStreamGetCaptureInfo_v2' +_cyb_driver_slots[221] = &__cuStreamGetCaptureInfo_v3; _cyb_driver_names[221] = b'cuStreamGetCaptureInfo_v3' +_cyb_driver_slots[222] = &__cuStreamUpdateCaptureDependencies; _cyb_driver_names[222] = b'cuStreamUpdateCaptureDependencies' +_cyb_driver_slots[223] = &__cuStreamUpdateCaptureDependencies_v2; _cyb_driver_names[223] = b'cuStreamUpdateCaptureDependencies_v2' +_cyb_driver_slots[224] = &__cuStreamAttachMemAsync; _cyb_driver_names[224] = b'cuStreamAttachMemAsync' +_cyb_driver_slots[225] = &__cuStreamQuery; _cyb_driver_names[225] = b'cuStreamQuery' +_cyb_driver_slots[226] = &__cuStreamSynchronize; _cyb_driver_names[226] = b'cuStreamSynchronize' +_cyb_driver_slots[227] = &__cuStreamDestroy_v2; _cyb_driver_names[227] = b'cuStreamDestroy_v2' +_cyb_driver_slots[228] = &__cuStreamCopyAttributes; _cyb_driver_names[228] = b'cuStreamCopyAttributes' +_cyb_driver_slots[229] = &__cuStreamGetAttribute; _cyb_driver_names[229] = b'cuStreamGetAttribute' +_cyb_driver_slots[230] = &__cuStreamSetAttribute; _cyb_driver_names[230] = b'cuStreamSetAttribute' +_cyb_driver_slots[231] = &__cuEventCreate; _cyb_driver_names[231] = b'cuEventCreate' +_cyb_driver_slots[232] = &__cuEventRecord; _cyb_driver_names[232] = b'cuEventRecord' +_cyb_driver_slots[233] = &__cuEventRecordWithFlags; _cyb_driver_names[233] = b'cuEventRecordWithFlags' +_cyb_driver_slots[234] = &__cuEventQuery; _cyb_driver_names[234] = b'cuEventQuery' +_cyb_driver_slots[235] = &__cuEventSynchronize; _cyb_driver_names[235] = b'cuEventSynchronize' +_cyb_driver_slots[236] = &__cuEventDestroy_v2; _cyb_driver_names[236] = b'cuEventDestroy_v2' +_cyb_driver_slots[237] = &__cuEventElapsedTime; _cyb_driver_names[237] = b'cuEventElapsedTime' +_cyb_driver_slots[238] = &__cuEventElapsedTime_v2; _cyb_driver_names[238] = b'cuEventElapsedTime_v2' +_cyb_driver_slots[239] = &__cuImportExternalMemory; _cyb_driver_names[239] = b'cuImportExternalMemory' +_cyb_driver_slots[240] = &__cuExternalMemoryGetMappedBuffer; _cyb_driver_names[240] = b'cuExternalMemoryGetMappedBuffer' +_cyb_driver_slots[241] = &__cuExternalMemoryGetMappedMipmappedArray; _cyb_driver_names[241] = b'cuExternalMemoryGetMappedMipmappedArray' +_cyb_driver_slots[242] = &__cuDestroyExternalMemory; _cyb_driver_names[242] = b'cuDestroyExternalMemory' +_cyb_driver_slots[243] = &__cuImportExternalSemaphore; _cyb_driver_names[243] = b'cuImportExternalSemaphore' +_cyb_driver_slots[244] = &__cuSignalExternalSemaphoresAsync; _cyb_driver_names[244] = b'cuSignalExternalSemaphoresAsync' +_cyb_driver_slots[245] = &__cuWaitExternalSemaphoresAsync; _cyb_driver_names[245] = b'cuWaitExternalSemaphoresAsync' +_cyb_driver_slots[246] = &__cuDestroyExternalSemaphore; _cyb_driver_names[246] = b'cuDestroyExternalSemaphore' +_cyb_driver_slots[247] = &__cuStreamWaitValue32_v2; _cyb_driver_names[247] = b'cuStreamWaitValue32_v2' +_cyb_driver_slots[248] = &__cuStreamWaitValue64_v2; _cyb_driver_names[248] = b'cuStreamWaitValue64_v2' +_cyb_driver_slots[249] = &__cuStreamWriteValue32_v2; _cyb_driver_names[249] = b'cuStreamWriteValue32_v2' +_cyb_driver_slots[250] = &__cuStreamWriteValue64_v2; _cyb_driver_names[250] = b'cuStreamWriteValue64_v2' +_cyb_driver_slots[251] = &__cuStreamBatchMemOp_v2; _cyb_driver_names[251] = b'cuStreamBatchMemOp_v2' +_cyb_driver_slots[252] = &__cuFuncGetAttribute; _cyb_driver_names[252] = b'cuFuncGetAttribute' +_cyb_driver_slots[253] = &__cuFuncSetAttribute; _cyb_driver_names[253] = b'cuFuncSetAttribute' +_cyb_driver_slots[254] = &__cuFuncSetCacheConfig; _cyb_driver_names[254] = b'cuFuncSetCacheConfig' +_cyb_driver_slots[255] = &__cuFuncGetModule; _cyb_driver_names[255] = b'cuFuncGetModule' +_cyb_driver_slots[256] = &__cuFuncGetName; _cyb_driver_names[256] = b'cuFuncGetName' +_cyb_driver_slots[257] = &__cuFuncGetParamInfo; _cyb_driver_names[257] = b'cuFuncGetParamInfo' +_cyb_driver_slots[258] = &__cuFuncIsLoaded; _cyb_driver_names[258] = b'cuFuncIsLoaded' +_cyb_driver_slots[259] = &__cuFuncLoad; _cyb_driver_names[259] = b'cuFuncLoad' +_cyb_driver_slots[260] = &__cuLaunchKernel; _cyb_driver_names[260] = b'cuLaunchKernel' +_cyb_driver_slots[261] = &__cuLaunchKernelEx; _cyb_driver_names[261] = b'cuLaunchKernelEx' +_cyb_driver_slots[262] = &__cuLaunchCooperativeKernel; _cyb_driver_names[262] = b'cuLaunchCooperativeKernel' +_cyb_driver_slots[263] = &__cuLaunchCooperativeKernelMultiDevice; _cyb_driver_names[263] = b'cuLaunchCooperativeKernelMultiDevice' +_cyb_driver_slots[264] = &__cuLaunchHostFunc; _cyb_driver_names[264] = b'cuLaunchHostFunc' +_cyb_driver_slots[265] = &__cuFuncSetBlockShape; _cyb_driver_names[265] = b'cuFuncSetBlockShape' +_cyb_driver_slots[266] = &__cuFuncSetSharedSize; _cyb_driver_names[266] = b'cuFuncSetSharedSize' +_cyb_driver_slots[267] = &__cuParamSetSize; _cyb_driver_names[267] = b'cuParamSetSize' +_cyb_driver_slots[268] = &__cuParamSeti; _cyb_driver_names[268] = b'cuParamSeti' +_cyb_driver_slots[269] = &__cuParamSetf; _cyb_driver_names[269] = b'cuParamSetf' +_cyb_driver_slots[270] = &__cuParamSetv; _cyb_driver_names[270] = b'cuParamSetv' +_cyb_driver_slots[271] = &__cuLaunch; _cyb_driver_names[271] = b'cuLaunch' +_cyb_driver_slots[272] = &__cuLaunchGrid; _cyb_driver_names[272] = b'cuLaunchGrid' +_cyb_driver_slots[273] = &__cuLaunchGridAsync; _cyb_driver_names[273] = b'cuLaunchGridAsync' +_cyb_driver_slots[274] = &__cuParamSetTexRef; _cyb_driver_names[274] = b'cuParamSetTexRef' +_cyb_driver_slots[275] = &__cuFuncSetSharedMemConfig; _cyb_driver_names[275] = b'cuFuncSetSharedMemConfig' +_cyb_driver_slots[276] = &__cuGraphCreate; _cyb_driver_names[276] = b'cuGraphCreate' +_cyb_driver_slots[277] = &__cuGraphAddKernelNode_v2; _cyb_driver_names[277] = b'cuGraphAddKernelNode_v2' +_cyb_driver_slots[278] = &__cuGraphKernelNodeGetParams_v2; _cyb_driver_names[278] = b'cuGraphKernelNodeGetParams_v2' +_cyb_driver_slots[279] = &__cuGraphKernelNodeSetParams_v2; _cyb_driver_names[279] = b'cuGraphKernelNodeSetParams_v2' +_cyb_driver_slots[280] = &__cuGraphAddMemcpyNode; _cyb_driver_names[280] = b'cuGraphAddMemcpyNode' +_cyb_driver_slots[281] = &__cuGraphMemcpyNodeGetParams; _cyb_driver_names[281] = b'cuGraphMemcpyNodeGetParams' +_cyb_driver_slots[282] = &__cuGraphMemcpyNodeSetParams; _cyb_driver_names[282] = b'cuGraphMemcpyNodeSetParams' +_cyb_driver_slots[283] = &__cuGraphAddMemsetNode; _cyb_driver_names[283] = b'cuGraphAddMemsetNode' +_cyb_driver_slots[284] = &__cuGraphMemsetNodeGetParams; _cyb_driver_names[284] = b'cuGraphMemsetNodeGetParams' +_cyb_driver_slots[285] = &__cuGraphMemsetNodeSetParams; _cyb_driver_names[285] = b'cuGraphMemsetNodeSetParams' +_cyb_driver_slots[286] = &__cuGraphAddHostNode; _cyb_driver_names[286] = b'cuGraphAddHostNode' +_cyb_driver_slots[287] = &__cuGraphHostNodeGetParams; _cyb_driver_names[287] = b'cuGraphHostNodeGetParams' +_cyb_driver_slots[288] = &__cuGraphHostNodeSetParams; _cyb_driver_names[288] = b'cuGraphHostNodeSetParams' +_cyb_driver_slots[289] = &__cuGraphAddChildGraphNode; _cyb_driver_names[289] = b'cuGraphAddChildGraphNode' +_cyb_driver_slots[290] = &__cuGraphChildGraphNodeGetGraph; _cyb_driver_names[290] = b'cuGraphChildGraphNodeGetGraph' +_cyb_driver_slots[291] = &__cuGraphAddEmptyNode; _cyb_driver_names[291] = b'cuGraphAddEmptyNode' +_cyb_driver_slots[292] = &__cuGraphAddEventRecordNode; _cyb_driver_names[292] = b'cuGraphAddEventRecordNode' +_cyb_driver_slots[293] = &__cuGraphEventRecordNodeGetEvent; _cyb_driver_names[293] = b'cuGraphEventRecordNodeGetEvent' +_cyb_driver_slots[294] = &__cuGraphEventRecordNodeSetEvent; _cyb_driver_names[294] = b'cuGraphEventRecordNodeSetEvent' +_cyb_driver_slots[295] = &__cuGraphAddEventWaitNode; _cyb_driver_names[295] = b'cuGraphAddEventWaitNode' +_cyb_driver_slots[296] = &__cuGraphEventWaitNodeGetEvent; _cyb_driver_names[296] = b'cuGraphEventWaitNodeGetEvent' +_cyb_driver_slots[297] = &__cuGraphEventWaitNodeSetEvent; _cyb_driver_names[297] = b'cuGraphEventWaitNodeSetEvent' +_cyb_driver_slots[298] = &__cuGraphAddExternalSemaphoresSignalNode; _cyb_driver_names[298] = b'cuGraphAddExternalSemaphoresSignalNode' +_cyb_driver_slots[299] = &__cuGraphExternalSemaphoresSignalNodeGetParams; _cyb_driver_names[299] = b'cuGraphExternalSemaphoresSignalNodeGetParams' +_cyb_driver_slots[300] = &__cuGraphExternalSemaphoresSignalNodeSetParams; _cyb_driver_names[300] = b'cuGraphExternalSemaphoresSignalNodeSetParams' +_cyb_driver_slots[301] = &__cuGraphAddExternalSemaphoresWaitNode; _cyb_driver_names[301] = b'cuGraphAddExternalSemaphoresWaitNode' +_cyb_driver_slots[302] = &__cuGraphExternalSemaphoresWaitNodeGetParams; _cyb_driver_names[302] = b'cuGraphExternalSemaphoresWaitNodeGetParams' +_cyb_driver_slots[303] = &__cuGraphExternalSemaphoresWaitNodeSetParams; _cyb_driver_names[303] = b'cuGraphExternalSemaphoresWaitNodeSetParams' +_cyb_driver_slots[304] = &__cuGraphAddBatchMemOpNode; _cyb_driver_names[304] = b'cuGraphAddBatchMemOpNode' +_cyb_driver_slots[305] = &__cuGraphBatchMemOpNodeGetParams; _cyb_driver_names[305] = b'cuGraphBatchMemOpNodeGetParams' +_cyb_driver_slots[306] = &__cuGraphBatchMemOpNodeSetParams; _cyb_driver_names[306] = b'cuGraphBatchMemOpNodeSetParams' +_cyb_driver_slots[307] = &__cuGraphExecBatchMemOpNodeSetParams; _cyb_driver_names[307] = b'cuGraphExecBatchMemOpNodeSetParams' +_cyb_driver_slots[308] = &__cuGraphAddMemAllocNode; _cyb_driver_names[308] = b'cuGraphAddMemAllocNode' +_cyb_driver_slots[309] = &__cuGraphMemAllocNodeGetParams; _cyb_driver_names[309] = b'cuGraphMemAllocNodeGetParams' +_cyb_driver_slots[310] = &__cuGraphAddMemFreeNode; _cyb_driver_names[310] = b'cuGraphAddMemFreeNode' +_cyb_driver_slots[311] = &__cuGraphMemFreeNodeGetParams; _cyb_driver_names[311] = b'cuGraphMemFreeNodeGetParams' +_cyb_driver_slots[312] = &__cuDeviceGraphMemTrim; _cyb_driver_names[312] = b'cuDeviceGraphMemTrim' +_cyb_driver_slots[313] = &__cuDeviceGetGraphMemAttribute; _cyb_driver_names[313] = b'cuDeviceGetGraphMemAttribute' +_cyb_driver_slots[314] = &__cuDeviceSetGraphMemAttribute; _cyb_driver_names[314] = b'cuDeviceSetGraphMemAttribute' +_cyb_driver_slots[315] = &__cuGraphClone; _cyb_driver_names[315] = b'cuGraphClone' +_cyb_driver_slots[316] = &__cuGraphNodeFindInClone; _cyb_driver_names[316] = b'cuGraphNodeFindInClone' +_cyb_driver_slots[317] = &__cuGraphNodeGetType; _cyb_driver_names[317] = b'cuGraphNodeGetType' +_cyb_driver_slots[318] = &__cuGraphGetNodes; _cyb_driver_names[318] = b'cuGraphGetNodes' +_cyb_driver_slots[319] = &__cuGraphGetRootNodes; _cyb_driver_names[319] = b'cuGraphGetRootNodes' +_cyb_driver_slots[320] = &__cuGraphGetEdges; _cyb_driver_names[320] = b'cuGraphGetEdges' +_cyb_driver_slots[321] = &__cuGraphGetEdges_v2; _cyb_driver_names[321] = b'cuGraphGetEdges_v2' +_cyb_driver_slots[322] = &__cuGraphNodeGetDependencies; _cyb_driver_names[322] = b'cuGraphNodeGetDependencies' +_cyb_driver_slots[323] = &__cuGraphNodeGetDependencies_v2; _cyb_driver_names[323] = b'cuGraphNodeGetDependencies_v2' +_cyb_driver_slots[324] = &__cuGraphNodeGetDependentNodes; _cyb_driver_names[324] = b'cuGraphNodeGetDependentNodes' +_cyb_driver_slots[325] = &__cuGraphNodeGetDependentNodes_v2; _cyb_driver_names[325] = b'cuGraphNodeGetDependentNodes_v2' +_cyb_driver_slots[326] = &__cuGraphAddDependencies; _cyb_driver_names[326] = b'cuGraphAddDependencies' +_cyb_driver_slots[327] = &__cuGraphAddDependencies_v2; _cyb_driver_names[327] = b'cuGraphAddDependencies_v2' +_cyb_driver_slots[328] = &__cuGraphRemoveDependencies; _cyb_driver_names[328] = b'cuGraphRemoveDependencies' +_cyb_driver_slots[329] = &__cuGraphRemoveDependencies_v2; _cyb_driver_names[329] = b'cuGraphRemoveDependencies_v2' +_cyb_driver_slots[330] = &__cuGraphDestroyNode; _cyb_driver_names[330] = b'cuGraphDestroyNode' +_cyb_driver_slots[331] = &__cuGraphInstantiateWithFlags; _cyb_driver_names[331] = b'cuGraphInstantiateWithFlags' +_cyb_driver_slots[332] = &__cuGraphInstantiateWithParams; _cyb_driver_names[332] = b'cuGraphInstantiateWithParams' +_cyb_driver_slots[333] = &__cuGraphExecGetFlags; _cyb_driver_names[333] = b'cuGraphExecGetFlags' +_cyb_driver_slots[334] = &__cuGraphExecKernelNodeSetParams_v2; _cyb_driver_names[334] = b'cuGraphExecKernelNodeSetParams_v2' +_cyb_driver_slots[335] = &__cuGraphExecMemcpyNodeSetParams; _cyb_driver_names[335] = b'cuGraphExecMemcpyNodeSetParams' +_cyb_driver_slots[336] = &__cuGraphExecMemsetNodeSetParams; _cyb_driver_names[336] = b'cuGraphExecMemsetNodeSetParams' +_cyb_driver_slots[337] = &__cuGraphExecHostNodeSetParams; _cyb_driver_names[337] = b'cuGraphExecHostNodeSetParams' +_cyb_driver_slots[338] = &__cuGraphExecChildGraphNodeSetParams; _cyb_driver_names[338] = b'cuGraphExecChildGraphNodeSetParams' +_cyb_driver_slots[339] = &__cuGraphExecEventRecordNodeSetEvent; _cyb_driver_names[339] = b'cuGraphExecEventRecordNodeSetEvent' +_cyb_driver_slots[340] = &__cuGraphExecEventWaitNodeSetEvent; _cyb_driver_names[340] = b'cuGraphExecEventWaitNodeSetEvent' +_cyb_driver_slots[341] = &__cuGraphExecExternalSemaphoresSignalNodeSetParams; _cyb_driver_names[341] = b'cuGraphExecExternalSemaphoresSignalNodeSetParams' +_cyb_driver_slots[342] = &__cuGraphExecExternalSemaphoresWaitNodeSetParams; _cyb_driver_names[342] = b'cuGraphExecExternalSemaphoresWaitNodeSetParams' +_cyb_driver_slots[343] = &__cuGraphNodeSetEnabled; _cyb_driver_names[343] = b'cuGraphNodeSetEnabled' +_cyb_driver_slots[344] = &__cuGraphNodeGetEnabled; _cyb_driver_names[344] = b'cuGraphNodeGetEnabled' +_cyb_driver_slots[345] = &__cuGraphUpload; _cyb_driver_names[345] = b'cuGraphUpload' +_cyb_driver_slots[346] = &__cuGraphLaunch; _cyb_driver_names[346] = b'cuGraphLaunch' +_cyb_driver_slots[347] = &__cuGraphExecDestroy; _cyb_driver_names[347] = b'cuGraphExecDestroy' +_cyb_driver_slots[348] = &__cuGraphDestroy; _cyb_driver_names[348] = b'cuGraphDestroy' +_cyb_driver_slots[349] = &__cuGraphExecUpdate_v2; _cyb_driver_names[349] = b'cuGraphExecUpdate_v2' +_cyb_driver_slots[350] = &__cuGraphKernelNodeCopyAttributes; _cyb_driver_names[350] = b'cuGraphKernelNodeCopyAttributes' +_cyb_driver_slots[351] = &__cuGraphKernelNodeGetAttribute; _cyb_driver_names[351] = b'cuGraphKernelNodeGetAttribute' +_cyb_driver_slots[352] = &__cuGraphKernelNodeSetAttribute; _cyb_driver_names[352] = b'cuGraphKernelNodeSetAttribute' +_cyb_driver_slots[353] = &__cuGraphDebugDotPrint; _cyb_driver_names[353] = b'cuGraphDebugDotPrint' +_cyb_driver_slots[354] = &__cuUserObjectCreate; _cyb_driver_names[354] = b'cuUserObjectCreate' +_cyb_driver_slots[355] = &__cuUserObjectRetain; _cyb_driver_names[355] = b'cuUserObjectRetain' +_cyb_driver_slots[356] = &__cuUserObjectRelease; _cyb_driver_names[356] = b'cuUserObjectRelease' +_cyb_driver_slots[357] = &__cuGraphRetainUserObject; _cyb_driver_names[357] = b'cuGraphRetainUserObject' +_cyb_driver_slots[358] = &__cuGraphReleaseUserObject; _cyb_driver_names[358] = b'cuGraphReleaseUserObject' +_cyb_driver_slots[359] = &__cuGraphAddNode; _cyb_driver_names[359] = b'cuGraphAddNode' +_cyb_driver_slots[360] = &__cuGraphAddNode_v2; _cyb_driver_names[360] = b'cuGraphAddNode_v2' +_cyb_driver_slots[361] = &__cuGraphNodeSetParams; _cyb_driver_names[361] = b'cuGraphNodeSetParams' +_cyb_driver_slots[362] = &__cuGraphExecNodeSetParams; _cyb_driver_names[362] = b'cuGraphExecNodeSetParams' +_cyb_driver_slots[363] = &__cuGraphConditionalHandleCreate; _cyb_driver_names[363] = b'cuGraphConditionalHandleCreate' +_cyb_driver_slots[364] = &__cuOccupancyMaxActiveBlocksPerMultiprocessor; _cyb_driver_names[364] = b'cuOccupancyMaxActiveBlocksPerMultiprocessor' +_cyb_driver_slots[365] = &__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags; _cyb_driver_names[365] = b'cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' +_cyb_driver_slots[366] = &__cuOccupancyMaxPotentialBlockSize; _cyb_driver_names[366] = b'cuOccupancyMaxPotentialBlockSize' +_cyb_driver_slots[367] = &__cuOccupancyMaxPotentialBlockSizeWithFlags; _cyb_driver_names[367] = b'cuOccupancyMaxPotentialBlockSizeWithFlags' +_cyb_driver_slots[368] = &__cuOccupancyAvailableDynamicSMemPerBlock; _cyb_driver_names[368] = b'cuOccupancyAvailableDynamicSMemPerBlock' +_cyb_driver_slots[369] = &__cuOccupancyMaxPotentialClusterSize; _cyb_driver_names[369] = b'cuOccupancyMaxPotentialClusterSize' +_cyb_driver_slots[370] = &__cuOccupancyMaxActiveClusters; _cyb_driver_names[370] = b'cuOccupancyMaxActiveClusters' +_cyb_driver_slots[371] = &__cuTexRefSetArray; _cyb_driver_names[371] = b'cuTexRefSetArray' +_cyb_driver_slots[372] = &__cuTexRefSetMipmappedArray; _cyb_driver_names[372] = b'cuTexRefSetMipmappedArray' +_cyb_driver_slots[373] = &__cuTexRefSetAddress_v2; _cyb_driver_names[373] = b'cuTexRefSetAddress_v2' +_cyb_driver_slots[374] = &__cuTexRefSetAddress2D_v3; _cyb_driver_names[374] = b'cuTexRefSetAddress2D_v3' +_cyb_driver_slots[375] = &__cuTexRefSetFormat; _cyb_driver_names[375] = b'cuTexRefSetFormat' +_cyb_driver_slots[376] = &__cuTexRefSetAddressMode; _cyb_driver_names[376] = b'cuTexRefSetAddressMode' +_cyb_driver_slots[377] = &__cuTexRefSetFilterMode; _cyb_driver_names[377] = b'cuTexRefSetFilterMode' +_cyb_driver_slots[378] = &__cuTexRefSetMipmapFilterMode; _cyb_driver_names[378] = b'cuTexRefSetMipmapFilterMode' +_cyb_driver_slots[379] = &__cuTexRefSetMipmapLevelBias; _cyb_driver_names[379] = b'cuTexRefSetMipmapLevelBias' +_cyb_driver_slots[380] = &__cuTexRefSetMipmapLevelClamp; _cyb_driver_names[380] = b'cuTexRefSetMipmapLevelClamp' +_cyb_driver_slots[381] = &__cuTexRefSetMaxAnisotropy; _cyb_driver_names[381] = b'cuTexRefSetMaxAnisotropy' +_cyb_driver_slots[382] = &__cuTexRefSetBorderColor; _cyb_driver_names[382] = b'cuTexRefSetBorderColor' +_cyb_driver_slots[383] = &__cuTexRefSetFlags; _cyb_driver_names[383] = b'cuTexRefSetFlags' +_cyb_driver_slots[384] = &__cuTexRefGetAddress_v2; _cyb_driver_names[384] = b'cuTexRefGetAddress_v2' +_cyb_driver_slots[385] = &__cuTexRefGetArray; _cyb_driver_names[385] = b'cuTexRefGetArray' +_cyb_driver_slots[386] = &__cuTexRefGetMipmappedArray; _cyb_driver_names[386] = b'cuTexRefGetMipmappedArray' +_cyb_driver_slots[387] = &__cuTexRefGetAddressMode; _cyb_driver_names[387] = b'cuTexRefGetAddressMode' +_cyb_driver_slots[388] = &__cuTexRefGetFilterMode; _cyb_driver_names[388] = b'cuTexRefGetFilterMode' +_cyb_driver_slots[389] = &__cuTexRefGetFormat; _cyb_driver_names[389] = b'cuTexRefGetFormat' +_cyb_driver_slots[390] = &__cuTexRefGetMipmapFilterMode; _cyb_driver_names[390] = b'cuTexRefGetMipmapFilterMode' +_cyb_driver_slots[391] = &__cuTexRefGetMipmapLevelBias; _cyb_driver_names[391] = b'cuTexRefGetMipmapLevelBias' +_cyb_driver_slots[392] = &__cuTexRefGetMipmapLevelClamp; _cyb_driver_names[392] = b'cuTexRefGetMipmapLevelClamp' +_cyb_driver_slots[393] = &__cuTexRefGetMaxAnisotropy; _cyb_driver_names[393] = b'cuTexRefGetMaxAnisotropy' +_cyb_driver_slots[394] = &__cuTexRefGetBorderColor; _cyb_driver_names[394] = b'cuTexRefGetBorderColor' +_cyb_driver_slots[395] = &__cuTexRefGetFlags; _cyb_driver_names[395] = b'cuTexRefGetFlags' +_cyb_driver_slots[396] = &__cuTexRefCreate; _cyb_driver_names[396] = b'cuTexRefCreate' +_cyb_driver_slots[397] = &__cuTexRefDestroy; _cyb_driver_names[397] = b'cuTexRefDestroy' +_cyb_driver_slots[398] = &__cuSurfRefSetArray; _cyb_driver_names[398] = b'cuSurfRefSetArray' +_cyb_driver_slots[399] = &__cuSurfRefGetArray; _cyb_driver_names[399] = b'cuSurfRefGetArray' +_cyb_driver_slots[400] = &__cuTexObjectCreate; _cyb_driver_names[400] = b'cuTexObjectCreate' +_cyb_driver_slots[401] = &__cuTexObjectDestroy; _cyb_driver_names[401] = b'cuTexObjectDestroy' +_cyb_driver_slots[402] = &__cuTexObjectGetResourceDesc; _cyb_driver_names[402] = b'cuTexObjectGetResourceDesc' +_cyb_driver_slots[403] = &__cuTexObjectGetTextureDesc; _cyb_driver_names[403] = b'cuTexObjectGetTextureDesc' +_cyb_driver_slots[404] = &__cuTexObjectGetResourceViewDesc; _cyb_driver_names[404] = b'cuTexObjectGetResourceViewDesc' +_cyb_driver_slots[405] = &__cuSurfObjectCreate; _cyb_driver_names[405] = b'cuSurfObjectCreate' +_cyb_driver_slots[406] = &__cuSurfObjectDestroy; _cyb_driver_names[406] = b'cuSurfObjectDestroy' +_cyb_driver_slots[407] = &__cuSurfObjectGetResourceDesc; _cyb_driver_names[407] = b'cuSurfObjectGetResourceDesc' +_cyb_driver_slots[408] = &__cuTensorMapEncodeTiled; _cyb_driver_names[408] = b'cuTensorMapEncodeTiled' +_cyb_driver_slots[409] = &__cuTensorMapEncodeIm2col; _cyb_driver_names[409] = b'cuTensorMapEncodeIm2col' +_cyb_driver_slots[410] = &__cuTensorMapEncodeIm2colWide; _cyb_driver_names[410] = b'cuTensorMapEncodeIm2colWide' +_cyb_driver_slots[411] = &__cuTensorMapReplaceAddress; _cyb_driver_names[411] = b'cuTensorMapReplaceAddress' +_cyb_driver_slots[412] = &__cuDeviceCanAccessPeer; _cyb_driver_names[412] = b'cuDeviceCanAccessPeer' +_cyb_driver_slots[413] = &__cuCtxEnablePeerAccess; _cyb_driver_names[413] = b'cuCtxEnablePeerAccess' +_cyb_driver_slots[414] = &__cuCtxDisablePeerAccess; _cyb_driver_names[414] = b'cuCtxDisablePeerAccess' +_cyb_driver_slots[415] = &__cuDeviceGetP2PAttribute; _cyb_driver_names[415] = b'cuDeviceGetP2PAttribute' +_cyb_driver_slots[416] = &__cuGraphicsUnregisterResource; _cyb_driver_names[416] = b'cuGraphicsUnregisterResource' +_cyb_driver_slots[417] = &__cuGraphicsSubResourceGetMappedArray; _cyb_driver_names[417] = b'cuGraphicsSubResourceGetMappedArray' +_cyb_driver_slots[418] = &__cuGraphicsResourceGetMappedMipmappedArray; _cyb_driver_names[418] = b'cuGraphicsResourceGetMappedMipmappedArray' +_cyb_driver_slots[419] = &__cuGraphicsResourceGetMappedPointer_v2; _cyb_driver_names[419] = b'cuGraphicsResourceGetMappedPointer_v2' +_cyb_driver_slots[420] = &__cuGraphicsResourceSetMapFlags_v2; _cyb_driver_names[420] = b'cuGraphicsResourceSetMapFlags_v2' +_cyb_driver_slots[421] = &__cuGraphicsMapResources; _cyb_driver_names[421] = b'cuGraphicsMapResources' +_cyb_driver_slots[422] = &__cuGraphicsUnmapResources; _cyb_driver_names[422] = b'cuGraphicsUnmapResources' +_cyb_driver_slots[423] = &__cuGetProcAddress_v2; _cyb_driver_names[423] = b'cuGetProcAddress_v2' +_cyb_driver_slots[424] = &__cuCoredumpGetAttribute; _cyb_driver_names[424] = b'cuCoredumpGetAttribute' +_cyb_driver_slots[425] = &__cuCoredumpGetAttributeGlobal; _cyb_driver_names[425] = b'cuCoredumpGetAttributeGlobal' +_cyb_driver_slots[426] = &__cuCoredumpSetAttribute; _cyb_driver_names[426] = b'cuCoredumpSetAttribute' +_cyb_driver_slots[427] = &__cuCoredumpSetAttributeGlobal; _cyb_driver_names[427] = b'cuCoredumpSetAttributeGlobal' +_cyb_driver_slots[428] = &__cuGetExportTable; _cyb_driver_names[428] = b'cuGetExportTable' +_cyb_driver_slots[429] = &__cuGreenCtxCreate; _cyb_driver_names[429] = b'cuGreenCtxCreate' +_cyb_driver_slots[430] = &__cuGreenCtxDestroy; _cyb_driver_names[430] = b'cuGreenCtxDestroy' +_cyb_driver_slots[431] = &__cuCtxFromGreenCtx; _cyb_driver_names[431] = b'cuCtxFromGreenCtx' +_cyb_driver_slots[432] = &__cuDeviceGetDevResource; _cyb_driver_names[432] = b'cuDeviceGetDevResource' +_cyb_driver_slots[433] = &__cuCtxGetDevResource; _cyb_driver_names[433] = b'cuCtxGetDevResource' +_cyb_driver_slots[434] = &__cuGreenCtxGetDevResource; _cyb_driver_names[434] = b'cuGreenCtxGetDevResource' +_cyb_driver_slots[435] = &__cuDevSmResourceSplitByCount; _cyb_driver_names[435] = b'cuDevSmResourceSplitByCount' +_cyb_driver_slots[436] = &__cuDevResourceGenerateDesc; _cyb_driver_names[436] = b'cuDevResourceGenerateDesc' +_cyb_driver_slots[437] = &__cuGreenCtxRecordEvent; _cyb_driver_names[437] = b'cuGreenCtxRecordEvent' +_cyb_driver_slots[438] = &__cuGreenCtxWaitEvent; _cyb_driver_names[438] = b'cuGreenCtxWaitEvent' +_cyb_driver_slots[439] = &__cuStreamGetGreenCtx; _cyb_driver_names[439] = b'cuStreamGetGreenCtx' +_cyb_driver_slots[440] = &__cuGreenCtxStreamCreate; _cyb_driver_names[440] = b'cuGreenCtxStreamCreate' +_cyb_driver_slots[441] = &__cuLogsRegisterCallback; _cyb_driver_names[441] = b'cuLogsRegisterCallback' +_cyb_driver_slots[442] = &__cuLogsUnregisterCallback; _cyb_driver_names[442] = b'cuLogsUnregisterCallback' +_cyb_driver_slots[443] = &__cuLogsCurrent; _cyb_driver_names[443] = b'cuLogsCurrent' +_cyb_driver_slots[444] = &__cuLogsDumpToFile; _cyb_driver_names[444] = b'cuLogsDumpToFile' +_cyb_driver_slots[445] = &__cuLogsDumpToMemory; _cyb_driver_names[445] = b'cuLogsDumpToMemory' +_cyb_driver_slots[446] = &__cuCheckpointProcessGetRestoreThreadId; _cyb_driver_names[446] = b'cuCheckpointProcessGetRestoreThreadId' +_cyb_driver_slots[447] = &__cuCheckpointProcessGetState; _cyb_driver_names[447] = b'cuCheckpointProcessGetState' +_cyb_driver_slots[448] = &__cuCheckpointProcessLock; _cyb_driver_names[448] = b'cuCheckpointProcessLock' +_cyb_driver_slots[449] = &__cuCheckpointProcessCheckpoint; _cyb_driver_names[449] = b'cuCheckpointProcessCheckpoint' +_cyb_driver_slots[450] = &__cuCheckpointProcessRestore; _cyb_driver_names[450] = b'cuCheckpointProcessRestore' +_cyb_driver_slots[451] = &__cuCheckpointProcessUnlock; _cyb_driver_names[451] = b'cuCheckpointProcessUnlock' +_cyb_driver_slots[452] = &__cuGraphicsEGLRegisterImage; _cyb_driver_names[452] = b'cuGraphicsEGLRegisterImage' +_cyb_driver_slots[453] = &__cuEGLStreamConsumerConnect; _cyb_driver_names[453] = b'cuEGLStreamConsumerConnect' +_cyb_driver_slots[454] = &__cuEGLStreamConsumerConnectWithFlags; _cyb_driver_names[454] = b'cuEGLStreamConsumerConnectWithFlags' +_cyb_driver_slots[455] = &__cuEGLStreamConsumerDisconnect; _cyb_driver_names[455] = b'cuEGLStreamConsumerDisconnect' +_cyb_driver_slots[456] = &__cuEGLStreamConsumerAcquireFrame; _cyb_driver_names[456] = b'cuEGLStreamConsumerAcquireFrame' +_cyb_driver_slots[457] = &__cuEGLStreamConsumerReleaseFrame; _cyb_driver_names[457] = b'cuEGLStreamConsumerReleaseFrame' +_cyb_driver_slots[458] = &__cuEGLStreamProducerConnect; _cyb_driver_names[458] = b'cuEGLStreamProducerConnect' +_cyb_driver_slots[459] = &__cuEGLStreamProducerDisconnect; _cyb_driver_names[459] = b'cuEGLStreamProducerDisconnect' +_cyb_driver_slots[460] = &__cuEGLStreamProducerPresentFrame; _cyb_driver_names[460] = b'cuEGLStreamProducerPresentFrame' +_cyb_driver_slots[461] = &__cuEGLStreamProducerReturnFrame; _cyb_driver_names[461] = b'cuEGLStreamProducerReturnFrame' +_cyb_driver_slots[462] = &__cuGraphicsResourceGetMappedEglFrame; _cyb_driver_names[462] = b'cuGraphicsResourceGetMappedEglFrame' +_cyb_driver_slots[463] = &__cuEventCreateFromEGLSync; _cyb_driver_names[463] = b'cuEventCreateFromEGLSync' +_cyb_driver_slots[464] = &__cuGraphicsGLRegisterBuffer; _cyb_driver_names[464] = b'cuGraphicsGLRegisterBuffer' +_cyb_driver_slots[465] = &__cuGraphicsGLRegisterImage; _cyb_driver_names[465] = b'cuGraphicsGLRegisterImage' +_cyb_driver_slots[466] = &__cuGLGetDevices_v2; _cyb_driver_names[466] = b'cuGLGetDevices_v2' +_cyb_driver_slots[467] = &__cuGLCtxCreate_v2; _cyb_driver_names[467] = b'cuGLCtxCreate_v2' +_cyb_driver_slots[468] = &__cuGLInit; _cyb_driver_names[468] = b'cuGLInit' +_cyb_driver_slots[469] = &__cuGLRegisterBufferObject; _cyb_driver_names[469] = b'cuGLRegisterBufferObject' +_cyb_driver_slots[470] = &__cuGLMapBufferObject_v2; _cyb_driver_names[470] = b'cuGLMapBufferObject_v2' +_cyb_driver_slots[471] = &__cuGLUnmapBufferObject; _cyb_driver_names[471] = b'cuGLUnmapBufferObject' +_cyb_driver_slots[472] = &__cuGLUnregisterBufferObject; _cyb_driver_names[472] = b'cuGLUnregisterBufferObject' +_cyb_driver_slots[473] = &__cuGLSetBufferObjectMapFlags; _cyb_driver_names[473] = b'cuGLSetBufferObjectMapFlags' +_cyb_driver_slots[474] = &__cuGLMapBufferObjectAsync_v2; _cyb_driver_names[474] = b'cuGLMapBufferObjectAsync_v2' +_cyb_driver_slots[475] = &__cuGLUnmapBufferObjectAsync; _cyb_driver_names[475] = b'cuGLUnmapBufferObjectAsync' +_cyb_driver_slots[476] = &__cuProfilerInitialize; _cyb_driver_names[476] = b'cuProfilerInitialize' +_cyb_driver_slots[477] = &__cuProfilerStart; _cyb_driver_names[477] = b'cuProfilerStart' +_cyb_driver_slots[478] = &__cuProfilerStop; _cyb_driver_names[478] = b'cuProfilerStop' +_cyb_driver_slots[479] = &__cuVDPAUGetDevice; _cyb_driver_names[479] = b'cuVDPAUGetDevice' +_cyb_driver_slots[480] = &__cuVDPAUCtxCreate_v2; _cyb_driver_names[480] = b'cuVDPAUCtxCreate_v2' +_cyb_driver_slots[481] = &__cuGraphicsVDPAURegisterVideoSurface; _cyb_driver_names[481] = b'cuGraphicsVDPAURegisterVideoSurface' +_cyb_driver_slots[482] = &__cuGraphicsVDPAURegisterOutputSurface; _cyb_driver_names[482] = b'cuGraphicsVDPAURegisterOutputSurface' + cdef int _init_driver() except -1 nogil: global _cyb___py_driver_init cdef uintptr_t handle = 0 @@ -2039,1454 +2526,9 @@ cpdef dict _inspect_function_pointers(): _check_or_init_driver() cdef dict data = {} - global __cuGetErrorString - data["__cuGetErrorString"] = __cuGetErrorString - - global __cuGetErrorName - data["__cuGetErrorName"] = __cuGetErrorName - - global __cuInit - data["__cuInit"] = __cuInit - - global __cuDriverGetVersion - data["__cuDriverGetVersion"] = __cuDriverGetVersion - - global __cuDeviceGet - data["__cuDeviceGet"] = __cuDeviceGet - - global __cuDeviceGetCount - data["__cuDeviceGetCount"] = __cuDeviceGetCount - - global __cuDeviceGetName - data["__cuDeviceGetName"] = __cuDeviceGetName - - global __cuDeviceGetUuid - data["__cuDeviceGetUuid"] = __cuDeviceGetUuid - - global __cuDeviceGetUuid_v2 - data["__cuDeviceGetUuid_v2"] = __cuDeviceGetUuid_v2 - - global __cuDeviceGetLuid - data["__cuDeviceGetLuid"] = __cuDeviceGetLuid - - global __cuDeviceTotalMem_v2 - data["__cuDeviceTotalMem_v2"] = __cuDeviceTotalMem_v2 - - global __cuDeviceGetTexture1DLinearMaxWidth - data["__cuDeviceGetTexture1DLinearMaxWidth"] = __cuDeviceGetTexture1DLinearMaxWidth - - global __cuDeviceGetAttribute - data["__cuDeviceGetAttribute"] = __cuDeviceGetAttribute - - global __cuDeviceGetNvSciSyncAttributes - data["__cuDeviceGetNvSciSyncAttributes"] = __cuDeviceGetNvSciSyncAttributes - - global __cuDeviceSetMemPool - data["__cuDeviceSetMemPool"] = __cuDeviceSetMemPool - - global __cuDeviceGetMemPool - data["__cuDeviceGetMemPool"] = __cuDeviceGetMemPool - - global __cuDeviceGetDefaultMemPool - data["__cuDeviceGetDefaultMemPool"] = __cuDeviceGetDefaultMemPool - - global __cuDeviceGetExecAffinitySupport - data["__cuDeviceGetExecAffinitySupport"] = __cuDeviceGetExecAffinitySupport - - global __cuFlushGPUDirectRDMAWrites - data["__cuFlushGPUDirectRDMAWrites"] = __cuFlushGPUDirectRDMAWrites - - global __cuDeviceGetProperties - data["__cuDeviceGetProperties"] = __cuDeviceGetProperties - - global __cuDeviceComputeCapability - data["__cuDeviceComputeCapability"] = __cuDeviceComputeCapability - - global __cuDevicePrimaryCtxRetain - data["__cuDevicePrimaryCtxRetain"] = __cuDevicePrimaryCtxRetain - - global __cuDevicePrimaryCtxRelease_v2 - data["__cuDevicePrimaryCtxRelease_v2"] = __cuDevicePrimaryCtxRelease_v2 - - global __cuDevicePrimaryCtxSetFlags_v2 - data["__cuDevicePrimaryCtxSetFlags_v2"] = __cuDevicePrimaryCtxSetFlags_v2 - - global __cuDevicePrimaryCtxGetState - data["__cuDevicePrimaryCtxGetState"] = __cuDevicePrimaryCtxGetState - - global __cuDevicePrimaryCtxReset_v2 - data["__cuDevicePrimaryCtxReset_v2"] = __cuDevicePrimaryCtxReset_v2 - - global __cuCtxCreate_v2 - data["__cuCtxCreate_v2"] = __cuCtxCreate_v2 - - global __cuCtxCreate_v3 - data["__cuCtxCreate_v3"] = __cuCtxCreate_v3 - - global __cuCtxCreate_v4 - data["__cuCtxCreate_v4"] = __cuCtxCreate_v4 - - global __cuCtxDestroy_v2 - data["__cuCtxDestroy_v2"] = __cuCtxDestroy_v2 - - global __cuCtxPushCurrent_v2 - data["__cuCtxPushCurrent_v2"] = __cuCtxPushCurrent_v2 - - global __cuCtxPopCurrent_v2 - data["__cuCtxPopCurrent_v2"] = __cuCtxPopCurrent_v2 - - global __cuCtxSetCurrent - data["__cuCtxSetCurrent"] = __cuCtxSetCurrent - - global __cuCtxGetCurrent - data["__cuCtxGetCurrent"] = __cuCtxGetCurrent - - global __cuCtxGetDevice - data["__cuCtxGetDevice"] = __cuCtxGetDevice - - global __cuCtxGetFlags - data["__cuCtxGetFlags"] = __cuCtxGetFlags - - global __cuCtxSetFlags - data["__cuCtxSetFlags"] = __cuCtxSetFlags - - global __cuCtxGetId - data["__cuCtxGetId"] = __cuCtxGetId - - global __cuCtxSynchronize - data["__cuCtxSynchronize"] = __cuCtxSynchronize - - global __cuCtxSetLimit - data["__cuCtxSetLimit"] = __cuCtxSetLimit - - global __cuCtxGetLimit - data["__cuCtxGetLimit"] = __cuCtxGetLimit - - global __cuCtxGetCacheConfig - data["__cuCtxGetCacheConfig"] = __cuCtxGetCacheConfig - - global __cuCtxSetCacheConfig - data["__cuCtxSetCacheConfig"] = __cuCtxSetCacheConfig - - global __cuCtxGetApiVersion - data["__cuCtxGetApiVersion"] = __cuCtxGetApiVersion - - global __cuCtxGetStreamPriorityRange - data["__cuCtxGetStreamPriorityRange"] = __cuCtxGetStreamPriorityRange - - global __cuCtxResetPersistingL2Cache - data["__cuCtxResetPersistingL2Cache"] = __cuCtxResetPersistingL2Cache - - global __cuCtxGetExecAffinity - data["__cuCtxGetExecAffinity"] = __cuCtxGetExecAffinity - - global __cuCtxRecordEvent - data["__cuCtxRecordEvent"] = __cuCtxRecordEvent - - global __cuCtxWaitEvent - data["__cuCtxWaitEvent"] = __cuCtxWaitEvent - - global __cuCtxAttach - data["__cuCtxAttach"] = __cuCtxAttach - - global __cuCtxDetach - data["__cuCtxDetach"] = __cuCtxDetach - - global __cuCtxGetSharedMemConfig - data["__cuCtxGetSharedMemConfig"] = __cuCtxGetSharedMemConfig - - global __cuCtxSetSharedMemConfig - data["__cuCtxSetSharedMemConfig"] = __cuCtxSetSharedMemConfig - - global __cuModuleLoad - data["__cuModuleLoad"] = __cuModuleLoad - - global __cuModuleLoadData - data["__cuModuleLoadData"] = __cuModuleLoadData - - global __cuModuleLoadDataEx - data["__cuModuleLoadDataEx"] = __cuModuleLoadDataEx - - global __cuModuleLoadFatBinary - data["__cuModuleLoadFatBinary"] = __cuModuleLoadFatBinary - - global __cuModuleUnload - data["__cuModuleUnload"] = __cuModuleUnload - - global __cuModuleGetLoadingMode - data["__cuModuleGetLoadingMode"] = __cuModuleGetLoadingMode - - global __cuModuleGetFunction - data["__cuModuleGetFunction"] = __cuModuleGetFunction - - global __cuModuleGetFunctionCount - data["__cuModuleGetFunctionCount"] = __cuModuleGetFunctionCount - - global __cuModuleEnumerateFunctions - data["__cuModuleEnumerateFunctions"] = __cuModuleEnumerateFunctions - - global __cuModuleGetGlobal_v2 - data["__cuModuleGetGlobal_v2"] = __cuModuleGetGlobal_v2 - - global __cuLinkCreate_v2 - data["__cuLinkCreate_v2"] = __cuLinkCreate_v2 - - global __cuLinkAddData_v2 - data["__cuLinkAddData_v2"] = __cuLinkAddData_v2 - - global __cuLinkAddFile_v2 - data["__cuLinkAddFile_v2"] = __cuLinkAddFile_v2 - - global __cuLinkComplete - data["__cuLinkComplete"] = __cuLinkComplete - - global __cuLinkDestroy - data["__cuLinkDestroy"] = __cuLinkDestroy - - global __cuModuleGetTexRef - data["__cuModuleGetTexRef"] = __cuModuleGetTexRef - - global __cuModuleGetSurfRef - data["__cuModuleGetSurfRef"] = __cuModuleGetSurfRef - - global __cuLibraryLoadData - data["__cuLibraryLoadData"] = __cuLibraryLoadData - - global __cuLibraryLoadFromFile - data["__cuLibraryLoadFromFile"] = __cuLibraryLoadFromFile - - global __cuLibraryUnload - data["__cuLibraryUnload"] = __cuLibraryUnload - - global __cuLibraryGetKernel - data["__cuLibraryGetKernel"] = __cuLibraryGetKernel - - global __cuLibraryGetKernelCount - data["__cuLibraryGetKernelCount"] = __cuLibraryGetKernelCount - - global __cuLibraryEnumerateKernels - data["__cuLibraryEnumerateKernels"] = __cuLibraryEnumerateKernels - - global __cuLibraryGetModule - data["__cuLibraryGetModule"] = __cuLibraryGetModule - - global __cuKernelGetFunction - data["__cuKernelGetFunction"] = __cuKernelGetFunction - - global __cuKernelGetLibrary - data["__cuKernelGetLibrary"] = __cuKernelGetLibrary - - global __cuLibraryGetGlobal - data["__cuLibraryGetGlobal"] = __cuLibraryGetGlobal - - global __cuLibraryGetManaged - data["__cuLibraryGetManaged"] = __cuLibraryGetManaged - - global __cuLibraryGetUnifiedFunction - data["__cuLibraryGetUnifiedFunction"] = __cuLibraryGetUnifiedFunction - - global __cuKernelGetAttribute - data["__cuKernelGetAttribute"] = __cuKernelGetAttribute - - global __cuKernelSetAttribute - data["__cuKernelSetAttribute"] = __cuKernelSetAttribute - - global __cuKernelSetCacheConfig - data["__cuKernelSetCacheConfig"] = __cuKernelSetCacheConfig - - global __cuKernelGetName - data["__cuKernelGetName"] = __cuKernelGetName - - global __cuKernelGetParamInfo - data["__cuKernelGetParamInfo"] = __cuKernelGetParamInfo - - global __cuMemGetInfo_v2 - data["__cuMemGetInfo_v2"] = __cuMemGetInfo_v2 - - global __cuMemAlloc_v2 - data["__cuMemAlloc_v2"] = __cuMemAlloc_v2 - - global __cuMemAllocPitch_v2 - data["__cuMemAllocPitch_v2"] = __cuMemAllocPitch_v2 - - global __cuMemFree_v2 - data["__cuMemFree_v2"] = __cuMemFree_v2 - - global __cuMemGetAddressRange_v2 - data["__cuMemGetAddressRange_v2"] = __cuMemGetAddressRange_v2 - - global __cuMemAllocHost_v2 - data["__cuMemAllocHost_v2"] = __cuMemAllocHost_v2 - - global __cuMemFreeHost - data["__cuMemFreeHost"] = __cuMemFreeHost - - global __cuMemHostAlloc - data["__cuMemHostAlloc"] = __cuMemHostAlloc - - global __cuMemHostGetDevicePointer_v2 - data["__cuMemHostGetDevicePointer_v2"] = __cuMemHostGetDevicePointer_v2 - - global __cuMemHostGetFlags - data["__cuMemHostGetFlags"] = __cuMemHostGetFlags - - global __cuMemAllocManaged - data["__cuMemAllocManaged"] = __cuMemAllocManaged - - global __cuDeviceRegisterAsyncNotification - data["__cuDeviceRegisterAsyncNotification"] = __cuDeviceRegisterAsyncNotification - - global __cuDeviceUnregisterAsyncNotification - data["__cuDeviceUnregisterAsyncNotification"] = __cuDeviceUnregisterAsyncNotification - - global __cuDeviceGetByPCIBusId - data["__cuDeviceGetByPCIBusId"] = __cuDeviceGetByPCIBusId - - global __cuDeviceGetPCIBusId - data["__cuDeviceGetPCIBusId"] = __cuDeviceGetPCIBusId - - global __cuIpcGetEventHandle - data["__cuIpcGetEventHandle"] = __cuIpcGetEventHandle - - global __cuIpcOpenEventHandle - data["__cuIpcOpenEventHandle"] = __cuIpcOpenEventHandle - - global __cuIpcGetMemHandle - data["__cuIpcGetMemHandle"] = __cuIpcGetMemHandle - - global __cuIpcOpenMemHandle_v2 - data["__cuIpcOpenMemHandle_v2"] = __cuIpcOpenMemHandle_v2 - - global __cuIpcCloseMemHandle - data["__cuIpcCloseMemHandle"] = __cuIpcCloseMemHandle - - global __cuMemHostRegister_v2 - data["__cuMemHostRegister_v2"] = __cuMemHostRegister_v2 - - global __cuMemHostUnregister - data["__cuMemHostUnregister"] = __cuMemHostUnregister - - global __cuMemcpy - data["__cuMemcpy"] = __cuMemcpy - - global __cuMemcpyPeer - data["__cuMemcpyPeer"] = __cuMemcpyPeer - - global __cuMemcpyHtoD_v2 - data["__cuMemcpyHtoD_v2"] = __cuMemcpyHtoD_v2 - - global __cuMemcpyDtoH_v2 - data["__cuMemcpyDtoH_v2"] = __cuMemcpyDtoH_v2 - - global __cuMemcpyDtoD_v2 - data["__cuMemcpyDtoD_v2"] = __cuMemcpyDtoD_v2 - - global __cuMemcpyDtoA_v2 - data["__cuMemcpyDtoA_v2"] = __cuMemcpyDtoA_v2 - - global __cuMemcpyAtoD_v2 - data["__cuMemcpyAtoD_v2"] = __cuMemcpyAtoD_v2 - - global __cuMemcpyHtoA_v2 - data["__cuMemcpyHtoA_v2"] = __cuMemcpyHtoA_v2 - - global __cuMemcpyAtoH_v2 - data["__cuMemcpyAtoH_v2"] = __cuMemcpyAtoH_v2 - - global __cuMemcpyAtoA_v2 - data["__cuMemcpyAtoA_v2"] = __cuMemcpyAtoA_v2 - - global __cuMemcpy2D_v2 - data["__cuMemcpy2D_v2"] = __cuMemcpy2D_v2 - - global __cuMemcpy2DUnaligned_v2 - data["__cuMemcpy2DUnaligned_v2"] = __cuMemcpy2DUnaligned_v2 - - global __cuMemcpy3D_v2 - data["__cuMemcpy3D_v2"] = __cuMemcpy3D_v2 - - global __cuMemcpy3DPeer - data["__cuMemcpy3DPeer"] = __cuMemcpy3DPeer - - global __cuMemcpyAsync - data["__cuMemcpyAsync"] = __cuMemcpyAsync - - global __cuMemcpyPeerAsync - data["__cuMemcpyPeerAsync"] = __cuMemcpyPeerAsync - - global __cuMemcpyHtoDAsync_v2 - data["__cuMemcpyHtoDAsync_v2"] = __cuMemcpyHtoDAsync_v2 - - global __cuMemcpyDtoHAsync_v2 - data["__cuMemcpyDtoHAsync_v2"] = __cuMemcpyDtoHAsync_v2 - - global __cuMemcpyDtoDAsync_v2 - data["__cuMemcpyDtoDAsync_v2"] = __cuMemcpyDtoDAsync_v2 - - global __cuMemcpyHtoAAsync_v2 - data["__cuMemcpyHtoAAsync_v2"] = __cuMemcpyHtoAAsync_v2 - - global __cuMemcpyAtoHAsync_v2 - data["__cuMemcpyAtoHAsync_v2"] = __cuMemcpyAtoHAsync_v2 - - global __cuMemcpy2DAsync_v2 - data["__cuMemcpy2DAsync_v2"] = __cuMemcpy2DAsync_v2 - - global __cuMemcpy3DAsync_v2 - data["__cuMemcpy3DAsync_v2"] = __cuMemcpy3DAsync_v2 - - global __cuMemcpy3DPeerAsync - data["__cuMemcpy3DPeerAsync"] = __cuMemcpy3DPeerAsync - - global __cuMemcpyBatchAsync - data["__cuMemcpyBatchAsync"] = __cuMemcpyBatchAsync - - global __cuMemcpy3DBatchAsync - data["__cuMemcpy3DBatchAsync"] = __cuMemcpy3DBatchAsync - - global __cuMemsetD8_v2 - data["__cuMemsetD8_v2"] = __cuMemsetD8_v2 - - global __cuMemsetD16_v2 - data["__cuMemsetD16_v2"] = __cuMemsetD16_v2 - - global __cuMemsetD32_v2 - data["__cuMemsetD32_v2"] = __cuMemsetD32_v2 - - global __cuMemsetD2D8_v2 - data["__cuMemsetD2D8_v2"] = __cuMemsetD2D8_v2 - - global __cuMemsetD2D16_v2 - data["__cuMemsetD2D16_v2"] = __cuMemsetD2D16_v2 - - global __cuMemsetD2D32_v2 - data["__cuMemsetD2D32_v2"] = __cuMemsetD2D32_v2 - - global __cuMemsetD8Async - data["__cuMemsetD8Async"] = __cuMemsetD8Async - - global __cuMemsetD16Async - data["__cuMemsetD16Async"] = __cuMemsetD16Async - - global __cuMemsetD32Async - data["__cuMemsetD32Async"] = __cuMemsetD32Async - - global __cuMemsetD2D8Async - data["__cuMemsetD2D8Async"] = __cuMemsetD2D8Async - - global __cuMemsetD2D16Async - data["__cuMemsetD2D16Async"] = __cuMemsetD2D16Async - - global __cuMemsetD2D32Async - data["__cuMemsetD2D32Async"] = __cuMemsetD2D32Async - - global __cuArrayCreate_v2 - data["__cuArrayCreate_v2"] = __cuArrayCreate_v2 - - global __cuArrayGetDescriptor_v2 - data["__cuArrayGetDescriptor_v2"] = __cuArrayGetDescriptor_v2 - - global __cuArrayGetSparseProperties - data["__cuArrayGetSparseProperties"] = __cuArrayGetSparseProperties - - global __cuMipmappedArrayGetSparseProperties - data["__cuMipmappedArrayGetSparseProperties"] = __cuMipmappedArrayGetSparseProperties - - global __cuArrayGetMemoryRequirements - data["__cuArrayGetMemoryRequirements"] = __cuArrayGetMemoryRequirements - - global __cuMipmappedArrayGetMemoryRequirements - data["__cuMipmappedArrayGetMemoryRequirements"] = __cuMipmappedArrayGetMemoryRequirements - - global __cuArrayGetPlane - data["__cuArrayGetPlane"] = __cuArrayGetPlane - - global __cuArrayDestroy - data["__cuArrayDestroy"] = __cuArrayDestroy - - global __cuArray3DCreate_v2 - data["__cuArray3DCreate_v2"] = __cuArray3DCreate_v2 - - global __cuArray3DGetDescriptor_v2 - data["__cuArray3DGetDescriptor_v2"] = __cuArray3DGetDescriptor_v2 - - global __cuMipmappedArrayCreate - data["__cuMipmappedArrayCreate"] = __cuMipmappedArrayCreate - - global __cuMipmappedArrayGetLevel - data["__cuMipmappedArrayGetLevel"] = __cuMipmappedArrayGetLevel - - global __cuMipmappedArrayDestroy - data["__cuMipmappedArrayDestroy"] = __cuMipmappedArrayDestroy - - global __cuMemGetHandleForAddressRange - data["__cuMemGetHandleForAddressRange"] = __cuMemGetHandleForAddressRange - - global __cuMemBatchDecompressAsync - data["__cuMemBatchDecompressAsync"] = __cuMemBatchDecompressAsync - - global __cuMemAddressReserve - data["__cuMemAddressReserve"] = __cuMemAddressReserve - - global __cuMemAddressFree - data["__cuMemAddressFree"] = __cuMemAddressFree - - global __cuMemCreate - data["__cuMemCreate"] = __cuMemCreate - - global __cuMemRelease - data["__cuMemRelease"] = __cuMemRelease - - global __cuMemMap - data["__cuMemMap"] = __cuMemMap - - global __cuMemMapArrayAsync - data["__cuMemMapArrayAsync"] = __cuMemMapArrayAsync - - global __cuMemUnmap - data["__cuMemUnmap"] = __cuMemUnmap - - global __cuMemSetAccess - data["__cuMemSetAccess"] = __cuMemSetAccess - - global __cuMemGetAccess - data["__cuMemGetAccess"] = __cuMemGetAccess - - global __cuMemExportToShareableHandle - data["__cuMemExportToShareableHandle"] = __cuMemExportToShareableHandle - - global __cuMemImportFromShareableHandle - data["__cuMemImportFromShareableHandle"] = __cuMemImportFromShareableHandle - - global __cuMemGetAllocationGranularity - data["__cuMemGetAllocationGranularity"] = __cuMemGetAllocationGranularity - - global __cuMemGetAllocationPropertiesFromHandle - data["__cuMemGetAllocationPropertiesFromHandle"] = __cuMemGetAllocationPropertiesFromHandle - - global __cuMemRetainAllocationHandle - data["__cuMemRetainAllocationHandle"] = __cuMemRetainAllocationHandle - - global __cuMemFreeAsync - data["__cuMemFreeAsync"] = __cuMemFreeAsync - - global __cuMemAllocAsync - data["__cuMemAllocAsync"] = __cuMemAllocAsync - - global __cuMemPoolTrimTo - data["__cuMemPoolTrimTo"] = __cuMemPoolTrimTo - - global __cuMemPoolSetAttribute - data["__cuMemPoolSetAttribute"] = __cuMemPoolSetAttribute - - global __cuMemPoolGetAttribute - data["__cuMemPoolGetAttribute"] = __cuMemPoolGetAttribute - - global __cuMemPoolSetAccess - data["__cuMemPoolSetAccess"] = __cuMemPoolSetAccess - - global __cuMemPoolGetAccess - data["__cuMemPoolGetAccess"] = __cuMemPoolGetAccess - - global __cuMemPoolCreate - data["__cuMemPoolCreate"] = __cuMemPoolCreate - - global __cuMemPoolDestroy - data["__cuMemPoolDestroy"] = __cuMemPoolDestroy - - global __cuMemAllocFromPoolAsync - data["__cuMemAllocFromPoolAsync"] = __cuMemAllocFromPoolAsync - - global __cuMemPoolExportToShareableHandle - data["__cuMemPoolExportToShareableHandle"] = __cuMemPoolExportToShareableHandle - - global __cuMemPoolImportFromShareableHandle - data["__cuMemPoolImportFromShareableHandle"] = __cuMemPoolImportFromShareableHandle - - global __cuMemPoolExportPointer - data["__cuMemPoolExportPointer"] = __cuMemPoolExportPointer - - global __cuMemPoolImportPointer - data["__cuMemPoolImportPointer"] = __cuMemPoolImportPointer - - global __cuMulticastCreate - data["__cuMulticastCreate"] = __cuMulticastCreate - - global __cuMulticastAddDevice - data["__cuMulticastAddDevice"] = __cuMulticastAddDevice - - global __cuMulticastBindMem - data["__cuMulticastBindMem"] = __cuMulticastBindMem - - global __cuMulticastBindAddr - data["__cuMulticastBindAddr"] = __cuMulticastBindAddr - - global __cuMulticastUnbind - data["__cuMulticastUnbind"] = __cuMulticastUnbind - - global __cuMulticastGetGranularity - data["__cuMulticastGetGranularity"] = __cuMulticastGetGranularity - - global __cuPointerGetAttribute - data["__cuPointerGetAttribute"] = __cuPointerGetAttribute - - global __cuMemPrefetchAsync - data["__cuMemPrefetchAsync"] = __cuMemPrefetchAsync - - global __cuMemPrefetchAsync_v2 - data["__cuMemPrefetchAsync_v2"] = __cuMemPrefetchAsync_v2 - - global __cuMemAdvise - data["__cuMemAdvise"] = __cuMemAdvise - - global __cuMemAdvise_v2 - data["__cuMemAdvise_v2"] = __cuMemAdvise_v2 - - global __cuMemRangeGetAttribute - data["__cuMemRangeGetAttribute"] = __cuMemRangeGetAttribute - - global __cuMemRangeGetAttributes - data["__cuMemRangeGetAttributes"] = __cuMemRangeGetAttributes - - global __cuPointerSetAttribute - data["__cuPointerSetAttribute"] = __cuPointerSetAttribute - - global __cuPointerGetAttributes - data["__cuPointerGetAttributes"] = __cuPointerGetAttributes - - global __cuStreamCreate - data["__cuStreamCreate"] = __cuStreamCreate - - global __cuStreamCreateWithPriority - data["__cuStreamCreateWithPriority"] = __cuStreamCreateWithPriority - - global __cuStreamGetPriority - data["__cuStreamGetPriority"] = __cuStreamGetPriority - - global __cuStreamGetDevice - data["__cuStreamGetDevice"] = __cuStreamGetDevice - - global __cuStreamGetFlags - data["__cuStreamGetFlags"] = __cuStreamGetFlags - - global __cuStreamGetId - data["__cuStreamGetId"] = __cuStreamGetId - - global __cuStreamGetCtx - data["__cuStreamGetCtx"] = __cuStreamGetCtx - - global __cuStreamGetCtx_v2 - data["__cuStreamGetCtx_v2"] = __cuStreamGetCtx_v2 - - global __cuStreamWaitEvent - data["__cuStreamWaitEvent"] = __cuStreamWaitEvent - - global __cuStreamAddCallback - data["__cuStreamAddCallback"] = __cuStreamAddCallback - - global __cuStreamBeginCapture_v2 - data["__cuStreamBeginCapture_v2"] = __cuStreamBeginCapture_v2 - - global __cuStreamBeginCaptureToGraph - data["__cuStreamBeginCaptureToGraph"] = __cuStreamBeginCaptureToGraph - - global __cuThreadExchangeStreamCaptureMode - data["__cuThreadExchangeStreamCaptureMode"] = __cuThreadExchangeStreamCaptureMode - - global __cuStreamEndCapture - data["__cuStreamEndCapture"] = __cuStreamEndCapture - - global __cuStreamIsCapturing - data["__cuStreamIsCapturing"] = __cuStreamIsCapturing - - global __cuStreamGetCaptureInfo_v2 - data["__cuStreamGetCaptureInfo_v2"] = __cuStreamGetCaptureInfo_v2 - - global __cuStreamGetCaptureInfo_v3 - data["__cuStreamGetCaptureInfo_v3"] = __cuStreamGetCaptureInfo_v3 - - global __cuStreamUpdateCaptureDependencies - data["__cuStreamUpdateCaptureDependencies"] = __cuStreamUpdateCaptureDependencies - - global __cuStreamUpdateCaptureDependencies_v2 - data["__cuStreamUpdateCaptureDependencies_v2"] = __cuStreamUpdateCaptureDependencies_v2 - - global __cuStreamAttachMemAsync - data["__cuStreamAttachMemAsync"] = __cuStreamAttachMemAsync - - global __cuStreamQuery - data["__cuStreamQuery"] = __cuStreamQuery - - global __cuStreamSynchronize - data["__cuStreamSynchronize"] = __cuStreamSynchronize - - global __cuStreamDestroy_v2 - data["__cuStreamDestroy_v2"] = __cuStreamDestroy_v2 - - global __cuStreamCopyAttributes - data["__cuStreamCopyAttributes"] = __cuStreamCopyAttributes - - global __cuStreamGetAttribute - data["__cuStreamGetAttribute"] = __cuStreamGetAttribute - - global __cuStreamSetAttribute - data["__cuStreamSetAttribute"] = __cuStreamSetAttribute - - global __cuEventCreate - data["__cuEventCreate"] = __cuEventCreate - - global __cuEventRecord - data["__cuEventRecord"] = __cuEventRecord - - global __cuEventRecordWithFlags - data["__cuEventRecordWithFlags"] = __cuEventRecordWithFlags - - global __cuEventQuery - data["__cuEventQuery"] = __cuEventQuery - - global __cuEventSynchronize - data["__cuEventSynchronize"] = __cuEventSynchronize - - global __cuEventDestroy_v2 - data["__cuEventDestroy_v2"] = __cuEventDestroy_v2 - - global __cuEventElapsedTime - data["__cuEventElapsedTime"] = __cuEventElapsedTime - - global __cuEventElapsedTime_v2 - data["__cuEventElapsedTime_v2"] = __cuEventElapsedTime_v2 - - global __cuImportExternalMemory - data["__cuImportExternalMemory"] = __cuImportExternalMemory - - global __cuExternalMemoryGetMappedBuffer - data["__cuExternalMemoryGetMappedBuffer"] = __cuExternalMemoryGetMappedBuffer - - global __cuExternalMemoryGetMappedMipmappedArray - data["__cuExternalMemoryGetMappedMipmappedArray"] = __cuExternalMemoryGetMappedMipmappedArray - - global __cuDestroyExternalMemory - data["__cuDestroyExternalMemory"] = __cuDestroyExternalMemory - - global __cuImportExternalSemaphore - data["__cuImportExternalSemaphore"] = __cuImportExternalSemaphore - - global __cuSignalExternalSemaphoresAsync - data["__cuSignalExternalSemaphoresAsync"] = __cuSignalExternalSemaphoresAsync - - global __cuWaitExternalSemaphoresAsync - data["__cuWaitExternalSemaphoresAsync"] = __cuWaitExternalSemaphoresAsync - - global __cuDestroyExternalSemaphore - data["__cuDestroyExternalSemaphore"] = __cuDestroyExternalSemaphore - - global __cuStreamWaitValue32_v2 - data["__cuStreamWaitValue32_v2"] = __cuStreamWaitValue32_v2 - - global __cuStreamWaitValue64_v2 - data["__cuStreamWaitValue64_v2"] = __cuStreamWaitValue64_v2 - - global __cuStreamWriteValue32_v2 - data["__cuStreamWriteValue32_v2"] = __cuStreamWriteValue32_v2 - - global __cuStreamWriteValue64_v2 - data["__cuStreamWriteValue64_v2"] = __cuStreamWriteValue64_v2 - - global __cuStreamBatchMemOp_v2 - data["__cuStreamBatchMemOp_v2"] = __cuStreamBatchMemOp_v2 - - global __cuFuncGetAttribute - data["__cuFuncGetAttribute"] = __cuFuncGetAttribute - - global __cuFuncSetAttribute - data["__cuFuncSetAttribute"] = __cuFuncSetAttribute - - global __cuFuncSetCacheConfig - data["__cuFuncSetCacheConfig"] = __cuFuncSetCacheConfig - - global __cuFuncGetModule - data["__cuFuncGetModule"] = __cuFuncGetModule - - global __cuFuncGetName - data["__cuFuncGetName"] = __cuFuncGetName - - global __cuFuncGetParamInfo - data["__cuFuncGetParamInfo"] = __cuFuncGetParamInfo - - global __cuFuncIsLoaded - data["__cuFuncIsLoaded"] = __cuFuncIsLoaded - - global __cuFuncLoad - data["__cuFuncLoad"] = __cuFuncLoad - - global __cuLaunchKernel - data["__cuLaunchKernel"] = __cuLaunchKernel - - global __cuLaunchKernelEx - data["__cuLaunchKernelEx"] = __cuLaunchKernelEx - - global __cuLaunchCooperativeKernel - data["__cuLaunchCooperativeKernel"] = __cuLaunchCooperativeKernel - - global __cuLaunchCooperativeKernelMultiDevice - data["__cuLaunchCooperativeKernelMultiDevice"] = __cuLaunchCooperativeKernelMultiDevice - - global __cuLaunchHostFunc - data["__cuLaunchHostFunc"] = __cuLaunchHostFunc - - global __cuFuncSetBlockShape - data["__cuFuncSetBlockShape"] = __cuFuncSetBlockShape - - global __cuFuncSetSharedSize - data["__cuFuncSetSharedSize"] = __cuFuncSetSharedSize - - global __cuParamSetSize - data["__cuParamSetSize"] = __cuParamSetSize - - global __cuParamSeti - data["__cuParamSeti"] = __cuParamSeti - - global __cuParamSetf - data["__cuParamSetf"] = __cuParamSetf - - global __cuParamSetv - data["__cuParamSetv"] = __cuParamSetv - - global __cuLaunch - data["__cuLaunch"] = __cuLaunch - - global __cuLaunchGrid - data["__cuLaunchGrid"] = __cuLaunchGrid - - global __cuLaunchGridAsync - data["__cuLaunchGridAsync"] = __cuLaunchGridAsync - - global __cuParamSetTexRef - data["__cuParamSetTexRef"] = __cuParamSetTexRef - - global __cuFuncSetSharedMemConfig - data["__cuFuncSetSharedMemConfig"] = __cuFuncSetSharedMemConfig - - global __cuGraphCreate - data["__cuGraphCreate"] = __cuGraphCreate - - global __cuGraphAddKernelNode_v2 - data["__cuGraphAddKernelNode_v2"] = __cuGraphAddKernelNode_v2 - - global __cuGraphKernelNodeGetParams_v2 - data["__cuGraphKernelNodeGetParams_v2"] = __cuGraphKernelNodeGetParams_v2 - - global __cuGraphKernelNodeSetParams_v2 - data["__cuGraphKernelNodeSetParams_v2"] = __cuGraphKernelNodeSetParams_v2 - - global __cuGraphAddMemcpyNode - data["__cuGraphAddMemcpyNode"] = __cuGraphAddMemcpyNode - - global __cuGraphMemcpyNodeGetParams - data["__cuGraphMemcpyNodeGetParams"] = __cuGraphMemcpyNodeGetParams - - global __cuGraphMemcpyNodeSetParams - data["__cuGraphMemcpyNodeSetParams"] = __cuGraphMemcpyNodeSetParams - - global __cuGraphAddMemsetNode - data["__cuGraphAddMemsetNode"] = __cuGraphAddMemsetNode - - global __cuGraphMemsetNodeGetParams - data["__cuGraphMemsetNodeGetParams"] = __cuGraphMemsetNodeGetParams - - global __cuGraphMemsetNodeSetParams - data["__cuGraphMemsetNodeSetParams"] = __cuGraphMemsetNodeSetParams - - global __cuGraphAddHostNode - data["__cuGraphAddHostNode"] = __cuGraphAddHostNode - - global __cuGraphHostNodeGetParams - data["__cuGraphHostNodeGetParams"] = __cuGraphHostNodeGetParams - - global __cuGraphHostNodeSetParams - data["__cuGraphHostNodeSetParams"] = __cuGraphHostNodeSetParams - - global __cuGraphAddChildGraphNode - data["__cuGraphAddChildGraphNode"] = __cuGraphAddChildGraphNode - - global __cuGraphChildGraphNodeGetGraph - data["__cuGraphChildGraphNodeGetGraph"] = __cuGraphChildGraphNodeGetGraph - - global __cuGraphAddEmptyNode - data["__cuGraphAddEmptyNode"] = __cuGraphAddEmptyNode - - global __cuGraphAddEventRecordNode - data["__cuGraphAddEventRecordNode"] = __cuGraphAddEventRecordNode - - global __cuGraphEventRecordNodeGetEvent - data["__cuGraphEventRecordNodeGetEvent"] = __cuGraphEventRecordNodeGetEvent - - global __cuGraphEventRecordNodeSetEvent - data["__cuGraphEventRecordNodeSetEvent"] = __cuGraphEventRecordNodeSetEvent - - global __cuGraphAddEventWaitNode - data["__cuGraphAddEventWaitNode"] = __cuGraphAddEventWaitNode - - global __cuGraphEventWaitNodeGetEvent - data["__cuGraphEventWaitNodeGetEvent"] = __cuGraphEventWaitNodeGetEvent - - global __cuGraphEventWaitNodeSetEvent - data["__cuGraphEventWaitNodeSetEvent"] = __cuGraphEventWaitNodeSetEvent - - global __cuGraphAddExternalSemaphoresSignalNode - data["__cuGraphAddExternalSemaphoresSignalNode"] = __cuGraphAddExternalSemaphoresSignalNode - - global __cuGraphExternalSemaphoresSignalNodeGetParams - data["__cuGraphExternalSemaphoresSignalNodeGetParams"] = __cuGraphExternalSemaphoresSignalNodeGetParams - - global __cuGraphExternalSemaphoresSignalNodeSetParams - data["__cuGraphExternalSemaphoresSignalNodeSetParams"] = __cuGraphExternalSemaphoresSignalNodeSetParams - - global __cuGraphAddExternalSemaphoresWaitNode - data["__cuGraphAddExternalSemaphoresWaitNode"] = __cuGraphAddExternalSemaphoresWaitNode - - global __cuGraphExternalSemaphoresWaitNodeGetParams - data["__cuGraphExternalSemaphoresWaitNodeGetParams"] = __cuGraphExternalSemaphoresWaitNodeGetParams - - global __cuGraphExternalSemaphoresWaitNodeSetParams - data["__cuGraphExternalSemaphoresWaitNodeSetParams"] = __cuGraphExternalSemaphoresWaitNodeSetParams - - global __cuGraphAddBatchMemOpNode - data["__cuGraphAddBatchMemOpNode"] = __cuGraphAddBatchMemOpNode - - global __cuGraphBatchMemOpNodeGetParams - data["__cuGraphBatchMemOpNodeGetParams"] = __cuGraphBatchMemOpNodeGetParams - - global __cuGraphBatchMemOpNodeSetParams - data["__cuGraphBatchMemOpNodeSetParams"] = __cuGraphBatchMemOpNodeSetParams - - global __cuGraphExecBatchMemOpNodeSetParams - data["__cuGraphExecBatchMemOpNodeSetParams"] = __cuGraphExecBatchMemOpNodeSetParams - - global __cuGraphAddMemAllocNode - data["__cuGraphAddMemAllocNode"] = __cuGraphAddMemAllocNode - - global __cuGraphMemAllocNodeGetParams - data["__cuGraphMemAllocNodeGetParams"] = __cuGraphMemAllocNodeGetParams - - global __cuGraphAddMemFreeNode - data["__cuGraphAddMemFreeNode"] = __cuGraphAddMemFreeNode - - global __cuGraphMemFreeNodeGetParams - data["__cuGraphMemFreeNodeGetParams"] = __cuGraphMemFreeNodeGetParams - - global __cuDeviceGraphMemTrim - data["__cuDeviceGraphMemTrim"] = __cuDeviceGraphMemTrim - - global __cuDeviceGetGraphMemAttribute - data["__cuDeviceGetGraphMemAttribute"] = __cuDeviceGetGraphMemAttribute - - global __cuDeviceSetGraphMemAttribute - data["__cuDeviceSetGraphMemAttribute"] = __cuDeviceSetGraphMemAttribute - - global __cuGraphClone - data["__cuGraphClone"] = __cuGraphClone - - global __cuGraphNodeFindInClone - data["__cuGraphNodeFindInClone"] = __cuGraphNodeFindInClone - - global __cuGraphNodeGetType - data["__cuGraphNodeGetType"] = __cuGraphNodeGetType - - global __cuGraphGetNodes - data["__cuGraphGetNodes"] = __cuGraphGetNodes - - global __cuGraphGetRootNodes - data["__cuGraphGetRootNodes"] = __cuGraphGetRootNodes - - global __cuGraphGetEdges - data["__cuGraphGetEdges"] = __cuGraphGetEdges - - global __cuGraphGetEdges_v2 - data["__cuGraphGetEdges_v2"] = __cuGraphGetEdges_v2 - - global __cuGraphNodeGetDependencies - data["__cuGraphNodeGetDependencies"] = __cuGraphNodeGetDependencies - - global __cuGraphNodeGetDependencies_v2 - data["__cuGraphNodeGetDependencies_v2"] = __cuGraphNodeGetDependencies_v2 - - global __cuGraphNodeGetDependentNodes - data["__cuGraphNodeGetDependentNodes"] = __cuGraphNodeGetDependentNodes - - global __cuGraphNodeGetDependentNodes_v2 - data["__cuGraphNodeGetDependentNodes_v2"] = __cuGraphNodeGetDependentNodes_v2 - - global __cuGraphAddDependencies - data["__cuGraphAddDependencies"] = __cuGraphAddDependencies - - global __cuGraphAddDependencies_v2 - data["__cuGraphAddDependencies_v2"] = __cuGraphAddDependencies_v2 - - global __cuGraphRemoveDependencies - data["__cuGraphRemoveDependencies"] = __cuGraphRemoveDependencies - - global __cuGraphRemoveDependencies_v2 - data["__cuGraphRemoveDependencies_v2"] = __cuGraphRemoveDependencies_v2 - - global __cuGraphDestroyNode - data["__cuGraphDestroyNode"] = __cuGraphDestroyNode - - global __cuGraphInstantiateWithFlags - data["__cuGraphInstantiateWithFlags"] = __cuGraphInstantiateWithFlags - - global __cuGraphInstantiateWithParams - data["__cuGraphInstantiateWithParams"] = __cuGraphInstantiateWithParams - - global __cuGraphExecGetFlags - data["__cuGraphExecGetFlags"] = __cuGraphExecGetFlags - - global __cuGraphExecKernelNodeSetParams_v2 - data["__cuGraphExecKernelNodeSetParams_v2"] = __cuGraphExecKernelNodeSetParams_v2 - - global __cuGraphExecMemcpyNodeSetParams - data["__cuGraphExecMemcpyNodeSetParams"] = __cuGraphExecMemcpyNodeSetParams - - global __cuGraphExecMemsetNodeSetParams - data["__cuGraphExecMemsetNodeSetParams"] = __cuGraphExecMemsetNodeSetParams - - global __cuGraphExecHostNodeSetParams - data["__cuGraphExecHostNodeSetParams"] = __cuGraphExecHostNodeSetParams - - global __cuGraphExecChildGraphNodeSetParams - data["__cuGraphExecChildGraphNodeSetParams"] = __cuGraphExecChildGraphNodeSetParams - - global __cuGraphExecEventRecordNodeSetEvent - data["__cuGraphExecEventRecordNodeSetEvent"] = __cuGraphExecEventRecordNodeSetEvent - - global __cuGraphExecEventWaitNodeSetEvent - data["__cuGraphExecEventWaitNodeSetEvent"] = __cuGraphExecEventWaitNodeSetEvent - - global __cuGraphExecExternalSemaphoresSignalNodeSetParams - data["__cuGraphExecExternalSemaphoresSignalNodeSetParams"] = __cuGraphExecExternalSemaphoresSignalNodeSetParams - - global __cuGraphExecExternalSemaphoresWaitNodeSetParams - data["__cuGraphExecExternalSemaphoresWaitNodeSetParams"] = __cuGraphExecExternalSemaphoresWaitNodeSetParams - - global __cuGraphNodeSetEnabled - data["__cuGraphNodeSetEnabled"] = __cuGraphNodeSetEnabled - - global __cuGraphNodeGetEnabled - data["__cuGraphNodeGetEnabled"] = __cuGraphNodeGetEnabled - - global __cuGraphUpload - data["__cuGraphUpload"] = __cuGraphUpload - - global __cuGraphLaunch - data["__cuGraphLaunch"] = __cuGraphLaunch - - global __cuGraphExecDestroy - data["__cuGraphExecDestroy"] = __cuGraphExecDestroy - - global __cuGraphDestroy - data["__cuGraphDestroy"] = __cuGraphDestroy - - global __cuGraphExecUpdate_v2 - data["__cuGraphExecUpdate_v2"] = __cuGraphExecUpdate_v2 - - global __cuGraphKernelNodeCopyAttributes - data["__cuGraphKernelNodeCopyAttributes"] = __cuGraphKernelNodeCopyAttributes - - global __cuGraphKernelNodeGetAttribute - data["__cuGraphKernelNodeGetAttribute"] = __cuGraphKernelNodeGetAttribute - - global __cuGraphKernelNodeSetAttribute - data["__cuGraphKernelNodeSetAttribute"] = __cuGraphKernelNodeSetAttribute - - global __cuGraphDebugDotPrint - data["__cuGraphDebugDotPrint"] = __cuGraphDebugDotPrint - - global __cuUserObjectCreate - data["__cuUserObjectCreate"] = __cuUserObjectCreate - - global __cuUserObjectRetain - data["__cuUserObjectRetain"] = __cuUserObjectRetain - - global __cuUserObjectRelease - data["__cuUserObjectRelease"] = __cuUserObjectRelease - - global __cuGraphRetainUserObject - data["__cuGraphRetainUserObject"] = __cuGraphRetainUserObject - - global __cuGraphReleaseUserObject - data["__cuGraphReleaseUserObject"] = __cuGraphReleaseUserObject - - global __cuGraphAddNode - data["__cuGraphAddNode"] = __cuGraphAddNode - - global __cuGraphAddNode_v2 - data["__cuGraphAddNode_v2"] = __cuGraphAddNode_v2 - - global __cuGraphNodeSetParams - data["__cuGraphNodeSetParams"] = __cuGraphNodeSetParams - - global __cuGraphExecNodeSetParams - data["__cuGraphExecNodeSetParams"] = __cuGraphExecNodeSetParams - - global __cuGraphConditionalHandleCreate - data["__cuGraphConditionalHandleCreate"] = __cuGraphConditionalHandleCreate - - global __cuOccupancyMaxActiveBlocksPerMultiprocessor - data["__cuOccupancyMaxActiveBlocksPerMultiprocessor"] = __cuOccupancyMaxActiveBlocksPerMultiprocessor - - global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags - data["__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags"] = __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags - - global __cuOccupancyMaxPotentialBlockSize - data["__cuOccupancyMaxPotentialBlockSize"] = __cuOccupancyMaxPotentialBlockSize - - global __cuOccupancyMaxPotentialBlockSizeWithFlags - data["__cuOccupancyMaxPotentialBlockSizeWithFlags"] = __cuOccupancyMaxPotentialBlockSizeWithFlags - - global __cuOccupancyAvailableDynamicSMemPerBlock - data["__cuOccupancyAvailableDynamicSMemPerBlock"] = __cuOccupancyAvailableDynamicSMemPerBlock - - global __cuOccupancyMaxPotentialClusterSize - data["__cuOccupancyMaxPotentialClusterSize"] = __cuOccupancyMaxPotentialClusterSize - - global __cuOccupancyMaxActiveClusters - data["__cuOccupancyMaxActiveClusters"] = __cuOccupancyMaxActiveClusters - - global __cuTexRefSetArray - data["__cuTexRefSetArray"] = __cuTexRefSetArray - - global __cuTexRefSetMipmappedArray - data["__cuTexRefSetMipmappedArray"] = __cuTexRefSetMipmappedArray - - global __cuTexRefSetAddress_v2 - data["__cuTexRefSetAddress_v2"] = __cuTexRefSetAddress_v2 - - global __cuTexRefSetAddress2D_v3 - data["__cuTexRefSetAddress2D_v3"] = __cuTexRefSetAddress2D_v3 - - global __cuTexRefSetFormat - data["__cuTexRefSetFormat"] = __cuTexRefSetFormat - - global __cuTexRefSetAddressMode - data["__cuTexRefSetAddressMode"] = __cuTexRefSetAddressMode - - global __cuTexRefSetFilterMode - data["__cuTexRefSetFilterMode"] = __cuTexRefSetFilterMode - - global __cuTexRefSetMipmapFilterMode - data["__cuTexRefSetMipmapFilterMode"] = __cuTexRefSetMipmapFilterMode - - global __cuTexRefSetMipmapLevelBias - data["__cuTexRefSetMipmapLevelBias"] = __cuTexRefSetMipmapLevelBias - - global __cuTexRefSetMipmapLevelClamp - data["__cuTexRefSetMipmapLevelClamp"] = __cuTexRefSetMipmapLevelClamp - - global __cuTexRefSetMaxAnisotropy - data["__cuTexRefSetMaxAnisotropy"] = __cuTexRefSetMaxAnisotropy - - global __cuTexRefSetBorderColor - data["__cuTexRefSetBorderColor"] = __cuTexRefSetBorderColor - - global __cuTexRefSetFlags - data["__cuTexRefSetFlags"] = __cuTexRefSetFlags - - global __cuTexRefGetAddress_v2 - data["__cuTexRefGetAddress_v2"] = __cuTexRefGetAddress_v2 - - global __cuTexRefGetArray - data["__cuTexRefGetArray"] = __cuTexRefGetArray - - global __cuTexRefGetMipmappedArray - data["__cuTexRefGetMipmappedArray"] = __cuTexRefGetMipmappedArray - - global __cuTexRefGetAddressMode - data["__cuTexRefGetAddressMode"] = __cuTexRefGetAddressMode - - global __cuTexRefGetFilterMode - data["__cuTexRefGetFilterMode"] = __cuTexRefGetFilterMode - - global __cuTexRefGetFormat - data["__cuTexRefGetFormat"] = __cuTexRefGetFormat - - global __cuTexRefGetMipmapFilterMode - data["__cuTexRefGetMipmapFilterMode"] = __cuTexRefGetMipmapFilterMode - - global __cuTexRefGetMipmapLevelBias - data["__cuTexRefGetMipmapLevelBias"] = __cuTexRefGetMipmapLevelBias - - global __cuTexRefGetMipmapLevelClamp - data["__cuTexRefGetMipmapLevelClamp"] = __cuTexRefGetMipmapLevelClamp - - global __cuTexRefGetMaxAnisotropy - data["__cuTexRefGetMaxAnisotropy"] = __cuTexRefGetMaxAnisotropy - - global __cuTexRefGetBorderColor - data["__cuTexRefGetBorderColor"] = __cuTexRefGetBorderColor - - global __cuTexRefGetFlags - data["__cuTexRefGetFlags"] = __cuTexRefGetFlags - - global __cuTexRefCreate - data["__cuTexRefCreate"] = __cuTexRefCreate - - global __cuTexRefDestroy - data["__cuTexRefDestroy"] = __cuTexRefDestroy - - global __cuSurfRefSetArray - data["__cuSurfRefSetArray"] = __cuSurfRefSetArray - - global __cuSurfRefGetArray - data["__cuSurfRefGetArray"] = __cuSurfRefGetArray - - global __cuTexObjectCreate - data["__cuTexObjectCreate"] = __cuTexObjectCreate - - global __cuTexObjectDestroy - data["__cuTexObjectDestroy"] = __cuTexObjectDestroy - - global __cuTexObjectGetResourceDesc - data["__cuTexObjectGetResourceDesc"] = __cuTexObjectGetResourceDesc - - global __cuTexObjectGetTextureDesc - data["__cuTexObjectGetTextureDesc"] = __cuTexObjectGetTextureDesc - - global __cuTexObjectGetResourceViewDesc - data["__cuTexObjectGetResourceViewDesc"] = __cuTexObjectGetResourceViewDesc - - global __cuSurfObjectCreate - data["__cuSurfObjectCreate"] = __cuSurfObjectCreate - - global __cuSurfObjectDestroy - data["__cuSurfObjectDestroy"] = __cuSurfObjectDestroy - - global __cuSurfObjectGetResourceDesc - data["__cuSurfObjectGetResourceDesc"] = __cuSurfObjectGetResourceDesc - - global __cuTensorMapEncodeTiled - data["__cuTensorMapEncodeTiled"] = __cuTensorMapEncodeTiled - - global __cuTensorMapEncodeIm2col - data["__cuTensorMapEncodeIm2col"] = __cuTensorMapEncodeIm2col - - global __cuTensorMapEncodeIm2colWide - data["__cuTensorMapEncodeIm2colWide"] = __cuTensorMapEncodeIm2colWide - - global __cuTensorMapReplaceAddress - data["__cuTensorMapReplaceAddress"] = __cuTensorMapReplaceAddress - - global __cuDeviceCanAccessPeer - data["__cuDeviceCanAccessPeer"] = __cuDeviceCanAccessPeer - - global __cuCtxEnablePeerAccess - data["__cuCtxEnablePeerAccess"] = __cuCtxEnablePeerAccess - - global __cuCtxDisablePeerAccess - data["__cuCtxDisablePeerAccess"] = __cuCtxDisablePeerAccess - - global __cuDeviceGetP2PAttribute - data["__cuDeviceGetP2PAttribute"] = __cuDeviceGetP2PAttribute - - global __cuGraphicsUnregisterResource - data["__cuGraphicsUnregisterResource"] = __cuGraphicsUnregisterResource - - global __cuGraphicsSubResourceGetMappedArray - data["__cuGraphicsSubResourceGetMappedArray"] = __cuGraphicsSubResourceGetMappedArray - - global __cuGraphicsResourceGetMappedMipmappedArray - data["__cuGraphicsResourceGetMappedMipmappedArray"] = __cuGraphicsResourceGetMappedMipmappedArray - - global __cuGraphicsResourceGetMappedPointer_v2 - data["__cuGraphicsResourceGetMappedPointer_v2"] = __cuGraphicsResourceGetMappedPointer_v2 - - global __cuGraphicsResourceSetMapFlags_v2 - data["__cuGraphicsResourceSetMapFlags_v2"] = __cuGraphicsResourceSetMapFlags_v2 - - global __cuGraphicsMapResources - data["__cuGraphicsMapResources"] = __cuGraphicsMapResources - - global __cuGraphicsUnmapResources - data["__cuGraphicsUnmapResources"] = __cuGraphicsUnmapResources - - global __cuGetProcAddress_v2 - data["__cuGetProcAddress_v2"] = __cuGetProcAddress_v2 - - global __cuCoredumpGetAttribute - data["__cuCoredumpGetAttribute"] = __cuCoredumpGetAttribute - - global __cuCoredumpGetAttributeGlobal - data["__cuCoredumpGetAttributeGlobal"] = __cuCoredumpGetAttributeGlobal - - global __cuCoredumpSetAttribute - data["__cuCoredumpSetAttribute"] = __cuCoredumpSetAttribute - - global __cuCoredumpSetAttributeGlobal - data["__cuCoredumpSetAttributeGlobal"] = __cuCoredumpSetAttributeGlobal - - global __cuGetExportTable - data["__cuGetExportTable"] = __cuGetExportTable - - global __cuGreenCtxCreate - data["__cuGreenCtxCreate"] = __cuGreenCtxCreate - - global __cuGreenCtxDestroy - data["__cuGreenCtxDestroy"] = __cuGreenCtxDestroy - - global __cuCtxFromGreenCtx - data["__cuCtxFromGreenCtx"] = __cuCtxFromGreenCtx - - global __cuDeviceGetDevResource - data["__cuDeviceGetDevResource"] = __cuDeviceGetDevResource - - global __cuCtxGetDevResource - data["__cuCtxGetDevResource"] = __cuCtxGetDevResource - - global __cuGreenCtxGetDevResource - data["__cuGreenCtxGetDevResource"] = __cuGreenCtxGetDevResource - - global __cuDevSmResourceSplitByCount - data["__cuDevSmResourceSplitByCount"] = __cuDevSmResourceSplitByCount - - global __cuDevResourceGenerateDesc - data["__cuDevResourceGenerateDesc"] = __cuDevResourceGenerateDesc - - global __cuGreenCtxRecordEvent - data["__cuGreenCtxRecordEvent"] = __cuGreenCtxRecordEvent - - global __cuGreenCtxWaitEvent - data["__cuGreenCtxWaitEvent"] = __cuGreenCtxWaitEvent - - global __cuStreamGetGreenCtx - data["__cuStreamGetGreenCtx"] = __cuStreamGetGreenCtx - - global __cuGreenCtxStreamCreate - data["__cuGreenCtxStreamCreate"] = __cuGreenCtxStreamCreate - - global __cuLogsRegisterCallback - data["__cuLogsRegisterCallback"] = __cuLogsRegisterCallback - - global __cuLogsUnregisterCallback - data["__cuLogsUnregisterCallback"] = __cuLogsUnregisterCallback - - global __cuLogsCurrent - data["__cuLogsCurrent"] = __cuLogsCurrent - - global __cuLogsDumpToFile - data["__cuLogsDumpToFile"] = __cuLogsDumpToFile - - global __cuLogsDumpToMemory - data["__cuLogsDumpToMemory"] = __cuLogsDumpToMemory - - global __cuCheckpointProcessGetRestoreThreadId - data["__cuCheckpointProcessGetRestoreThreadId"] = __cuCheckpointProcessGetRestoreThreadId - - global __cuCheckpointProcessGetState - data["__cuCheckpointProcessGetState"] = __cuCheckpointProcessGetState - - global __cuCheckpointProcessLock - data["__cuCheckpointProcessLock"] = __cuCheckpointProcessLock - - global __cuCheckpointProcessCheckpoint - data["__cuCheckpointProcessCheckpoint"] = __cuCheckpointProcessCheckpoint - - global __cuCheckpointProcessRestore - data["__cuCheckpointProcessRestore"] = __cuCheckpointProcessRestore - - global __cuCheckpointProcessUnlock - data["__cuCheckpointProcessUnlock"] = __cuCheckpointProcessUnlock - - global __cuGraphicsEGLRegisterImage - data["__cuGraphicsEGLRegisterImage"] = __cuGraphicsEGLRegisterImage - - global __cuEGLStreamConsumerConnect - data["__cuEGLStreamConsumerConnect"] = __cuEGLStreamConsumerConnect - - global __cuEGLStreamConsumerConnectWithFlags - data["__cuEGLStreamConsumerConnectWithFlags"] = __cuEGLStreamConsumerConnectWithFlags - - global __cuEGLStreamConsumerDisconnect - data["__cuEGLStreamConsumerDisconnect"] = __cuEGLStreamConsumerDisconnect - - global __cuEGLStreamConsumerAcquireFrame - data["__cuEGLStreamConsumerAcquireFrame"] = __cuEGLStreamConsumerAcquireFrame - - global __cuEGLStreamConsumerReleaseFrame - data["__cuEGLStreamConsumerReleaseFrame"] = __cuEGLStreamConsumerReleaseFrame - - global __cuEGLStreamProducerConnect - data["__cuEGLStreamProducerConnect"] = __cuEGLStreamProducerConnect - - global __cuEGLStreamProducerDisconnect - data["__cuEGLStreamProducerDisconnect"] = __cuEGLStreamProducerDisconnect - - global __cuEGLStreamProducerPresentFrame - data["__cuEGLStreamProducerPresentFrame"] = __cuEGLStreamProducerPresentFrame - - global __cuEGLStreamProducerReturnFrame - data["__cuEGLStreamProducerReturnFrame"] = __cuEGLStreamProducerReturnFrame - - global __cuGraphicsResourceGetMappedEglFrame - data["__cuGraphicsResourceGetMappedEglFrame"] = __cuGraphicsResourceGetMappedEglFrame - - global __cuEventCreateFromEGLSync - data["__cuEventCreateFromEGLSync"] = __cuEventCreateFromEGLSync - - global __cuGraphicsGLRegisterBuffer - data["__cuGraphicsGLRegisterBuffer"] = __cuGraphicsGLRegisterBuffer - - global __cuGraphicsGLRegisterImage - data["__cuGraphicsGLRegisterImage"] = __cuGraphicsGLRegisterImage - - global __cuGLGetDevices_v2 - data["__cuGLGetDevices_v2"] = __cuGLGetDevices_v2 - - global __cuGLCtxCreate_v2 - data["__cuGLCtxCreate_v2"] = __cuGLCtxCreate_v2 - - global __cuGLInit - data["__cuGLInit"] = __cuGLInit - - global __cuGLRegisterBufferObject - data["__cuGLRegisterBufferObject"] = __cuGLRegisterBufferObject - - global __cuGLMapBufferObject_v2 - data["__cuGLMapBufferObject_v2"] = __cuGLMapBufferObject_v2 - - global __cuGLUnmapBufferObject - data["__cuGLUnmapBufferObject"] = __cuGLUnmapBufferObject - - global __cuGLUnregisterBufferObject - data["__cuGLUnregisterBufferObject"] = __cuGLUnregisterBufferObject - - global __cuGLSetBufferObjectMapFlags - data["__cuGLSetBufferObjectMapFlags"] = __cuGLSetBufferObjectMapFlags - - global __cuGLMapBufferObjectAsync_v2 - data["__cuGLMapBufferObjectAsync_v2"] = __cuGLMapBufferObjectAsync_v2 - - global __cuGLUnmapBufferObjectAsync - data["__cuGLUnmapBufferObjectAsync"] = __cuGLUnmapBufferObjectAsync - - global __cuProfilerInitialize - data["__cuProfilerInitialize"] = __cuProfilerInitialize - - global __cuProfilerStart - data["__cuProfilerStart"] = __cuProfilerStart - - global __cuProfilerStop - data["__cuProfilerStop"] = __cuProfilerStop - - global __cuVDPAUGetDevice - data["__cuVDPAUGetDevice"] = __cuVDPAUGetDevice - - global __cuVDPAUCtxCreate_v2 - data["__cuVDPAUCtxCreate_v2"] = __cuVDPAUCtxCreate_v2 - - global __cuGraphicsVDPAURegisterVideoSurface - data["__cuGraphicsVDPAURegisterVideoSurface"] = __cuGraphicsVDPAURegisterVideoSurface - - global __cuGraphicsVDPAURegisterOutputSurface - data["__cuGraphicsVDPAURegisterOutputSurface"] = __cuGraphicsVDPAURegisterOutputSurface + cdef Py_ssize_t i + for i in range(_cyb_driver_n_functions): + data['__' + _cyb_driver_names[i].decode()] = _cyb_driver_slots[i][0] _cyb_func_ptrs = data return data @@ -7859,14 +6901,14 @@ cdef CUresult _cuGreenCtxGetDevResource(CUgreenCtx hCtx, CUdevResource* resource hCtx, resource, type) -cdef CUresult _cuDevSmResourceSplitByCount(CUdevResource* result, unsigned int* nbGroups, const CUdevResource* input, CUdevResource* remaining, unsigned int useFlags, unsigned int minCount) except ?CUDA_ERROR_NOT_FOUND nogil: +cdef CUresult _cuDevSmResourceSplitByCount(CUdevResource* result, unsigned int* nbGroups, const CUdevResource* input, CUdevResource* remainder, unsigned int useFlags, unsigned int minCount) except ?CUDA_ERROR_NOT_FOUND nogil: global __cuDevSmResourceSplitByCount _check_or_init_driver() if __cuDevSmResourceSplitByCount == NULL: with gil: raise FunctionNotFoundError("function cuDevSmResourceSplitByCount is not found") return (__cuDevSmResourceSplitByCount)( - result, nbGroups, input, remaining, useFlags, minCount) + result, nbGroups, input, remainder, useFlags, minCount) cdef CUresult _cuDevResourceGenerateDesc(CUdevResourceDesc* phDesc, CUdevResource* resources, unsigned int nbResources) except ?CUDA_ERROR_NOT_FOUND nogil: diff --git a/cuda_bindings_12/cuda/bindings/_internal/nvfatbin.pxd b/cuda_bindings_12/cuda/bindings/_internal/nvfatbin.pxd index 4eadeab01c89..0bb36cc5d38f 100644 --- a/cuda_bindings_12/cuda/bindings/_internal/nvfatbin.pxd +++ b/cuda_bindings_12/cuda/bindings/_internal/nvfatbin.pxd @@ -2,9 +2,9 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.4.1 to 13.4.1. Do not modify it directly. +# This code was automatically generated across versions from 12.4.1 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=4fc8b05be8a1a25737a1940a53339f6af3b7a1d4e513558109aaac48b3222681 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=6482cce4e5ac4f530981d0513725b111e20a99ad35dbac62337dec3c22b761b1 from ..cynvfatbin cimport * diff --git a/cuda_bindings_12/cuda/bindings/_internal/nvfatbin_linux.pyx b/cuda_bindings_12/cuda/bindings/_internal/nvfatbin_linux.pyx index 937878b5a15e..8458c8cd6332 100644 --- a/cuda_bindings_12/cuda/bindings/_internal/nvfatbin_linux.pyx +++ b/cuda_bindings_12/cuda/bindings/_internal/nvfatbin_linux.pyx @@ -2,12 +2,14 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.4.1 to 13.4.1. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=6b42b70b945f3898a53f87261fcdb5a688cb9ab93476427781e1838a3ffffaf9 +# This code was automatically generated across versions from 12.4.1 to 13.5.0. Do not modify it directly. +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=8934b7f337c877db73540d82524de10847b1beb8d17b4bd86a2cd07329fc1882 # <<<< PREAMBLE CONTENT >>>> +from libc.stdint cimport intptr_t + cdef extern from * nogil: """ #if defined(_MSC_VER) && !defined(__clang__) @@ -44,8 +46,6 @@ cdef extern from "": void* _cyb_dlsym "dlsym"(void*, const char*) nogil const void * _cyb_RTLD_DEFAULT "RTLD_DEFAULT" -from libc.stdint cimport intptr_t - import threading as _cyb_threading cdef int _cyb___py_nvfatbin_init = 0 @@ -77,95 +77,35 @@ cdef void* __nvFatbinAddIndex = NULL cdef void* __nvFatbinAddReloc = NULL cdef void* __nvFatbinAddTileIR = NULL +cdef enum: _cyb_nvfatbin_n_functions = 12 +cdef void** _cyb_nvfatbin_slots[_cyb_nvfatbin_n_functions] +cdef const char* _cyb_nvfatbin_names[_cyb_nvfatbin_n_functions] +_cyb_nvfatbin_slots[0] = &__nvFatbinGetErrorString; _cyb_nvfatbin_names[0] = b'nvFatbinGetErrorString' +_cyb_nvfatbin_slots[1] = &__nvFatbinCreate; _cyb_nvfatbin_names[1] = b'nvFatbinCreate' +_cyb_nvfatbin_slots[2] = &__nvFatbinDestroy; _cyb_nvfatbin_names[2] = b'nvFatbinDestroy' +_cyb_nvfatbin_slots[3] = &__nvFatbinAddPTX; _cyb_nvfatbin_names[3] = b'nvFatbinAddPTX' +_cyb_nvfatbin_slots[4] = &__nvFatbinAddCubin; _cyb_nvfatbin_names[4] = b'nvFatbinAddCubin' +_cyb_nvfatbin_slots[5] = &__nvFatbinAddLTOIR; _cyb_nvfatbin_names[5] = b'nvFatbinAddLTOIR' +_cyb_nvfatbin_slots[6] = &__nvFatbinSize; _cyb_nvfatbin_names[6] = b'nvFatbinSize' +_cyb_nvfatbin_slots[7] = &__nvFatbinGet; _cyb_nvfatbin_names[7] = b'nvFatbinGet' +_cyb_nvfatbin_slots[8] = &__nvFatbinVersion; _cyb_nvfatbin_names[8] = b'nvFatbinVersion' +_cyb_nvfatbin_slots[9] = &__nvFatbinAddIndex; _cyb_nvfatbin_names[9] = b'nvFatbinAddIndex' +_cyb_nvfatbin_slots[10] = &__nvFatbinAddReloc; _cyb_nvfatbin_names[10] = b'nvFatbinAddReloc' +_cyb_nvfatbin_slots[11] = &__nvFatbinAddTileIR; _cyb_nvfatbin_names[11] = b'nvFatbinAddTileIR' + cdef int _init_nvfatbin() except -1 nogil: global _cyb___py_nvfatbin_init cdef void* handle = NULL + cdef Py_ssize_t i with gil, _cyb_symbol_lock: if _cyb___py_nvfatbin_init: return 0 - global __nvFatbinGetErrorString - __nvFatbinGetErrorString = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvFatbinGetErrorString') - if __nvFatbinGetErrorString == NULL: - if handle == NULL: - handle = load_library() - __nvFatbinGetErrorString = _cyb_dlsym(handle, 'nvFatbinGetErrorString') - - global __nvFatbinCreate - __nvFatbinCreate = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvFatbinCreate') - if __nvFatbinCreate == NULL: - if handle == NULL: - handle = load_library() - __nvFatbinCreate = _cyb_dlsym(handle, 'nvFatbinCreate') - - global __nvFatbinDestroy - __nvFatbinDestroy = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvFatbinDestroy') - if __nvFatbinDestroy == NULL: - if handle == NULL: - handle = load_library() - __nvFatbinDestroy = _cyb_dlsym(handle, 'nvFatbinDestroy') - - global __nvFatbinAddPTX - __nvFatbinAddPTX = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvFatbinAddPTX') - if __nvFatbinAddPTX == NULL: - if handle == NULL: - handle = load_library() - __nvFatbinAddPTX = _cyb_dlsym(handle, 'nvFatbinAddPTX') - - global __nvFatbinAddCubin - __nvFatbinAddCubin = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvFatbinAddCubin') - if __nvFatbinAddCubin == NULL: - if handle == NULL: - handle = load_library() - __nvFatbinAddCubin = _cyb_dlsym(handle, 'nvFatbinAddCubin') - - global __nvFatbinAddLTOIR - __nvFatbinAddLTOIR = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvFatbinAddLTOIR') - if __nvFatbinAddLTOIR == NULL: - if handle == NULL: - handle = load_library() - __nvFatbinAddLTOIR = _cyb_dlsym(handle, 'nvFatbinAddLTOIR') - - global __nvFatbinSize - __nvFatbinSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvFatbinSize') - if __nvFatbinSize == NULL: - if handle == NULL: - handle = load_library() - __nvFatbinSize = _cyb_dlsym(handle, 'nvFatbinSize') - - global __nvFatbinGet - __nvFatbinGet = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvFatbinGet') - if __nvFatbinGet == NULL: - if handle == NULL: - handle = load_library() - __nvFatbinGet = _cyb_dlsym(handle, 'nvFatbinGet') - - global __nvFatbinVersion - __nvFatbinVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvFatbinVersion') - if __nvFatbinVersion == NULL: - if handle == NULL: - handle = load_library() - __nvFatbinVersion = _cyb_dlsym(handle, 'nvFatbinVersion') - - global __nvFatbinAddIndex - __nvFatbinAddIndex = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvFatbinAddIndex') - if __nvFatbinAddIndex == NULL: - if handle == NULL: - handle = load_library() - __nvFatbinAddIndex = _cyb_dlsym(handle, 'nvFatbinAddIndex') - - global __nvFatbinAddReloc - __nvFatbinAddReloc = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvFatbinAddReloc') - if __nvFatbinAddReloc == NULL: - if handle == NULL: - handle = load_library() - __nvFatbinAddReloc = _cyb_dlsym(handle, 'nvFatbinAddReloc') - - global __nvFatbinAddTileIR - __nvFatbinAddTileIR = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvFatbinAddTileIR') - if __nvFatbinAddTileIR == NULL: - if handle == NULL: - handle = load_library() - __nvFatbinAddTileIR = _cyb_dlsym(handle, 'nvFatbinAddTileIR') + for i in range(_cyb_nvfatbin_n_functions): + _cyb_nvfatbin_slots[i][0] = _cyb_dlsym(_cyb_RTLD_DEFAULT, _cyb_nvfatbin_names[i]) + if _cyb_nvfatbin_slots[i][0] == NULL: + if handle == NULL: + handle = load_library() + _cyb_nvfatbin_slots[i][0] = _cyb_dlsym(handle, _cyb_nvfatbin_names[i]) _cyb_atomic_int_store(&_cyb___py_nvfatbin_init, 1) return 0 @@ -184,41 +124,9 @@ cpdef dict _inspect_function_pointers(): _check_or_init_nvfatbin() cdef dict data = {} - global __nvFatbinGetErrorString - data["__nvFatbinGetErrorString"] = __nvFatbinGetErrorString - - global __nvFatbinCreate - data["__nvFatbinCreate"] = __nvFatbinCreate - - global __nvFatbinDestroy - data["__nvFatbinDestroy"] = __nvFatbinDestroy - - global __nvFatbinAddPTX - data["__nvFatbinAddPTX"] = __nvFatbinAddPTX - - global __nvFatbinAddCubin - data["__nvFatbinAddCubin"] = __nvFatbinAddCubin - - global __nvFatbinAddLTOIR - data["__nvFatbinAddLTOIR"] = __nvFatbinAddLTOIR - - global __nvFatbinSize - data["__nvFatbinSize"] = __nvFatbinSize - - global __nvFatbinGet - data["__nvFatbinGet"] = __nvFatbinGet - - global __nvFatbinVersion - data["__nvFatbinVersion"] = __nvFatbinVersion - - global __nvFatbinAddIndex - data["__nvFatbinAddIndex"] = __nvFatbinAddIndex - - global __nvFatbinAddReloc - data["__nvFatbinAddReloc"] = __nvFatbinAddReloc - - global __nvFatbinAddTileIR - data["__nvFatbinAddTileIR"] = __nvFatbinAddTileIR + cdef Py_ssize_t i + for i in range(_cyb_nvfatbin_n_functions): + data['__' + _cyb_nvfatbin_names[i].decode()] = _cyb_nvfatbin_slots[i][0] _cyb_func_ptrs = data return data diff --git a/cuda_bindings_12/cuda/bindings/_internal/nvfatbin_windows.pyx b/cuda_bindings_12/cuda/bindings/_internal/nvfatbin_windows.pyx index 03453560c4ed..e0144d55a379 100644 --- a/cuda_bindings_12/cuda/bindings/_internal/nvfatbin_windows.pyx +++ b/cuda_bindings_12/cuda/bindings/_internal/nvfatbin_windows.pyx @@ -2,12 +2,17 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.4.1 to 13.4.1. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=4f4711d1bf4600663e9a7958c75666ad7c7785248afdef1c701d58c78ce81bfe +# This code was automatically generated across versions from 12.4.1 to 13.5.0. Do not modify it directly. +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=6181cdeb35d8ffd970e30339adfb9eb8d5e05bee58a4b5c1f46388823d424f52 # <<<< PREAMBLE CONTENT >>>> +from libc.stdint cimport ( + intptr_t, + uintptr_t, +) + cdef extern from * nogil: """ #if defined(_MSC_VER) && !defined(__clang__) @@ -44,11 +49,6 @@ cdef extern from "": ctypedef void* HMODULE void* _cyb_GetProcAddress "GetProcAddress"(HMODULE, const char*) nogil -from libc.stdint cimport ( - intptr_t, - uintptr_t, -) - import threading as _cyb_threading cdef int _cyb___py_nvfatbin_init = 0 @@ -77,50 +77,34 @@ cdef void* __nvFatbinAddIndex = NULL cdef void* __nvFatbinAddReloc = NULL cdef void* __nvFatbinAddTileIR = NULL +cdef enum: _cyb_nvfatbin_n_functions = 12 +cdef void** _cyb_nvfatbin_slots[_cyb_nvfatbin_n_functions] +cdef const char* _cyb_nvfatbin_names[_cyb_nvfatbin_n_functions] +_cyb_nvfatbin_slots[0] = &__nvFatbinGetErrorString; _cyb_nvfatbin_names[0] = b'nvFatbinGetErrorString' +_cyb_nvfatbin_slots[1] = &__nvFatbinCreate; _cyb_nvfatbin_names[1] = b'nvFatbinCreate' +_cyb_nvfatbin_slots[2] = &__nvFatbinDestroy; _cyb_nvfatbin_names[2] = b'nvFatbinDestroy' +_cyb_nvfatbin_slots[3] = &__nvFatbinAddPTX; _cyb_nvfatbin_names[3] = b'nvFatbinAddPTX' +_cyb_nvfatbin_slots[4] = &__nvFatbinAddCubin; _cyb_nvfatbin_names[4] = b'nvFatbinAddCubin' +_cyb_nvfatbin_slots[5] = &__nvFatbinAddLTOIR; _cyb_nvfatbin_names[5] = b'nvFatbinAddLTOIR' +_cyb_nvfatbin_slots[6] = &__nvFatbinSize; _cyb_nvfatbin_names[6] = b'nvFatbinSize' +_cyb_nvfatbin_slots[7] = &__nvFatbinGet; _cyb_nvfatbin_names[7] = b'nvFatbinGet' +_cyb_nvfatbin_slots[8] = &__nvFatbinVersion; _cyb_nvfatbin_names[8] = b'nvFatbinVersion' +_cyb_nvfatbin_slots[9] = &__nvFatbinAddIndex; _cyb_nvfatbin_names[9] = b'nvFatbinAddIndex' +_cyb_nvfatbin_slots[10] = &__nvFatbinAddReloc; _cyb_nvfatbin_names[10] = b'nvFatbinAddReloc' +_cyb_nvfatbin_slots[11] = &__nvFatbinAddTileIR; _cyb_nvfatbin_names[11] = b'nvFatbinAddTileIR' + cdef int _init_nvfatbin() except -1 nogil: global _cyb___py_nvfatbin_init cdef int err cdef uintptr_t handle + cdef Py_ssize_t i with gil, _cyb_symbol_lock: if _cyb___py_nvfatbin_init: return 0 handle = load_library() - global __nvFatbinGetErrorString - __nvFatbinGetErrorString = _cyb_GetProcAddress(handle, 'nvFatbinGetErrorString') - - global __nvFatbinCreate - __nvFatbinCreate = _cyb_GetProcAddress(handle, 'nvFatbinCreate') - - global __nvFatbinDestroy - __nvFatbinDestroy = _cyb_GetProcAddress(handle, 'nvFatbinDestroy') - - global __nvFatbinAddPTX - __nvFatbinAddPTX = _cyb_GetProcAddress(handle, 'nvFatbinAddPTX') - - global __nvFatbinAddCubin - __nvFatbinAddCubin = _cyb_GetProcAddress(handle, 'nvFatbinAddCubin') - - global __nvFatbinAddLTOIR - __nvFatbinAddLTOIR = _cyb_GetProcAddress(handle, 'nvFatbinAddLTOIR') - - global __nvFatbinSize - __nvFatbinSize = _cyb_GetProcAddress(handle, 'nvFatbinSize') - - global __nvFatbinGet - __nvFatbinGet = _cyb_GetProcAddress(handle, 'nvFatbinGet') - - global __nvFatbinVersion - __nvFatbinVersion = _cyb_GetProcAddress(handle, 'nvFatbinVersion') - - global __nvFatbinAddIndex - __nvFatbinAddIndex = _cyb_GetProcAddress(handle, 'nvFatbinAddIndex') - - global __nvFatbinAddReloc - __nvFatbinAddReloc = _cyb_GetProcAddress(handle, 'nvFatbinAddReloc') - - global __nvFatbinAddTileIR - __nvFatbinAddTileIR = _cyb_GetProcAddress(handle, 'nvFatbinAddTileIR') + for i in range(_cyb_nvfatbin_n_functions): + _cyb_nvfatbin_slots[i][0] = _cyb_GetProcAddress(handle, _cyb_nvfatbin_names[i]) _cyb_atomic_int_store(&_cyb___py_nvfatbin_init, 1) return 0 @@ -139,41 +123,9 @@ cpdef dict _inspect_function_pointers(): _check_or_init_nvfatbin() cdef dict data = {} - global __nvFatbinGetErrorString - data["__nvFatbinGetErrorString"] = __nvFatbinGetErrorString - - global __nvFatbinCreate - data["__nvFatbinCreate"] = __nvFatbinCreate - - global __nvFatbinDestroy - data["__nvFatbinDestroy"] = __nvFatbinDestroy - - global __nvFatbinAddPTX - data["__nvFatbinAddPTX"] = __nvFatbinAddPTX - - global __nvFatbinAddCubin - data["__nvFatbinAddCubin"] = __nvFatbinAddCubin - - global __nvFatbinAddLTOIR - data["__nvFatbinAddLTOIR"] = __nvFatbinAddLTOIR - - global __nvFatbinSize - data["__nvFatbinSize"] = __nvFatbinSize - - global __nvFatbinGet - data["__nvFatbinGet"] = __nvFatbinGet - - global __nvFatbinVersion - data["__nvFatbinVersion"] = __nvFatbinVersion - - global __nvFatbinAddIndex - data["__nvFatbinAddIndex"] = __nvFatbinAddIndex - - global __nvFatbinAddReloc - data["__nvFatbinAddReloc"] = __nvFatbinAddReloc - - global __nvFatbinAddTileIR - data["__nvFatbinAddTileIR"] = __nvFatbinAddTileIR + cdef Py_ssize_t i + for i in range(_cyb_nvfatbin_n_functions): + data['__' + _cyb_nvfatbin_names[i].decode()] = _cyb_nvfatbin_slots[i][0] _cyb_func_ptrs = data return data diff --git a/cuda_bindings_12/cuda/bindings/_internal/nvjitlink.pxd b/cuda_bindings_12/cuda/bindings/_internal/nvjitlink.pxd index bb1419ae9469..acfb77a0d435 100644 --- a/cuda_bindings_12/cuda/bindings/_internal/nvjitlink.pxd +++ b/cuda_bindings_12/cuda/bindings/_internal/nvjitlink.pxd @@ -2,8 +2,8 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.0.1 to 13.4.1. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=f54caf5830f0b76772ca6e06487bc94eef354c725f6e6f3c908b993860ba6787 +# This code was automatically generated across versions from 12.0.1 to 13.5.0. Do not modify it directly. +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=5727cd3d94207ce979d0fdb5a412f021ef2755d4e91b38ff2f6e6d5d646afb22 # <<<< PREAMBLE CONTENT >>>> diff --git a/cuda_bindings_12/cuda/bindings/_internal/nvjitlink_linux.pyx b/cuda_bindings_12/cuda/bindings/_internal/nvjitlink_linux.pyx index 4c21693caf77..c8273905e512 100644 --- a/cuda_bindings_12/cuda/bindings/_internal/nvjitlink_linux.pyx +++ b/cuda_bindings_12/cuda/bindings/_internal/nvjitlink_linux.pyx @@ -2,12 +2,17 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.0.1 to 13.4.1. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=a286ec6ed7fcdd0d82d6624d68c700cc3678e1e26f3ba1243df518cdeea5a992 +# This code was automatically generated across versions from 12.0.1 to 13.5.0. Do not modify it directly. +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=61060e81e509d327cb18d44b6e814164bb217d277af9a29d42708989acddee28 # <<<< PREAMBLE CONTENT >>>> +from libc.stdint cimport ( + intptr_t, + uint32_t, +) + cdef extern from * nogil: """ #if defined(_MSC_VER) && !defined(__clang__) @@ -44,11 +49,6 @@ cdef extern from "": void* _cyb_dlsym "dlsym"(void*, const char*) nogil const void * _cyb_RTLD_DEFAULT "RTLD_DEFAULT" -from libc.stdint cimport ( - intptr_t, - uint32_t, -) - import threading as _cyb_threading cdef int _cyb___py_nvjitlink_init = 0 @@ -84,123 +84,39 @@ cdef void* __nvJitLinkVersion = NULL cdef void* __nvJitLinkGetLinkedLTOIRSize = NULL cdef void* __nvJitLinkGetLinkedLTOIR = NULL +cdef enum: _cyb_nvjitlink_n_functions = 16 +cdef void** _cyb_nvjitlink_slots[_cyb_nvjitlink_n_functions] +cdef const char* _cyb_nvjitlink_names[_cyb_nvjitlink_n_functions] +_cyb_nvjitlink_slots[0] = &__nvJitLinkCreate; _cyb_nvjitlink_names[0] = b'nvJitLinkCreate' +_cyb_nvjitlink_slots[1] = &__nvJitLinkDestroy; _cyb_nvjitlink_names[1] = b'nvJitLinkDestroy' +_cyb_nvjitlink_slots[2] = &__nvJitLinkAddData; _cyb_nvjitlink_names[2] = b'nvJitLinkAddData' +_cyb_nvjitlink_slots[3] = &__nvJitLinkAddFile; _cyb_nvjitlink_names[3] = b'nvJitLinkAddFile' +_cyb_nvjitlink_slots[4] = &__nvJitLinkComplete; _cyb_nvjitlink_names[4] = b'nvJitLinkComplete' +_cyb_nvjitlink_slots[5] = &__nvJitLinkGetLinkedCubinSize; _cyb_nvjitlink_names[5] = b'nvJitLinkGetLinkedCubinSize' +_cyb_nvjitlink_slots[6] = &__nvJitLinkGetLinkedCubin; _cyb_nvjitlink_names[6] = b'nvJitLinkGetLinkedCubin' +_cyb_nvjitlink_slots[7] = &__nvJitLinkGetLinkedPtxSize; _cyb_nvjitlink_names[7] = b'nvJitLinkGetLinkedPtxSize' +_cyb_nvjitlink_slots[8] = &__nvJitLinkGetLinkedPtx; _cyb_nvjitlink_names[8] = b'nvJitLinkGetLinkedPtx' +_cyb_nvjitlink_slots[9] = &__nvJitLinkGetErrorLogSize; _cyb_nvjitlink_names[9] = b'nvJitLinkGetErrorLogSize' +_cyb_nvjitlink_slots[10] = &__nvJitLinkGetErrorLog; _cyb_nvjitlink_names[10] = b'nvJitLinkGetErrorLog' +_cyb_nvjitlink_slots[11] = &__nvJitLinkGetInfoLogSize; _cyb_nvjitlink_names[11] = b'nvJitLinkGetInfoLogSize' +_cyb_nvjitlink_slots[12] = &__nvJitLinkGetInfoLog; _cyb_nvjitlink_names[12] = b'nvJitLinkGetInfoLog' +_cyb_nvjitlink_slots[13] = &__nvJitLinkVersion; _cyb_nvjitlink_names[13] = b'nvJitLinkVersion' +_cyb_nvjitlink_slots[14] = &__nvJitLinkGetLinkedLTOIRSize; _cyb_nvjitlink_names[14] = b'nvJitLinkGetLinkedLTOIRSize' +_cyb_nvjitlink_slots[15] = &__nvJitLinkGetLinkedLTOIR; _cyb_nvjitlink_names[15] = b'nvJitLinkGetLinkedLTOIR' + cdef int _init_nvjitlink() except -1 nogil: global _cyb___py_nvjitlink_init cdef void* handle = NULL + cdef Py_ssize_t i with gil, _cyb_symbol_lock: if _cyb___py_nvjitlink_init: return 0 - global __nvJitLinkCreate - __nvJitLinkCreate = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkCreate') - if __nvJitLinkCreate == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkCreate = _cyb_dlsym(handle, 'nvJitLinkCreate') - - global __nvJitLinkDestroy - __nvJitLinkDestroy = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkDestroy') - if __nvJitLinkDestroy == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkDestroy = _cyb_dlsym(handle, 'nvJitLinkDestroy') - - global __nvJitLinkAddData - __nvJitLinkAddData = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkAddData') - if __nvJitLinkAddData == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkAddData = _cyb_dlsym(handle, 'nvJitLinkAddData') - - global __nvJitLinkAddFile - __nvJitLinkAddFile = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkAddFile') - if __nvJitLinkAddFile == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkAddFile = _cyb_dlsym(handle, 'nvJitLinkAddFile') - - global __nvJitLinkComplete - __nvJitLinkComplete = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkComplete') - if __nvJitLinkComplete == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkComplete = _cyb_dlsym(handle, 'nvJitLinkComplete') - - global __nvJitLinkGetLinkedCubinSize - __nvJitLinkGetLinkedCubinSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkGetLinkedCubinSize') - if __nvJitLinkGetLinkedCubinSize == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkGetLinkedCubinSize = _cyb_dlsym(handle, 'nvJitLinkGetLinkedCubinSize') - - global __nvJitLinkGetLinkedCubin - __nvJitLinkGetLinkedCubin = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkGetLinkedCubin') - if __nvJitLinkGetLinkedCubin == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkGetLinkedCubin = _cyb_dlsym(handle, 'nvJitLinkGetLinkedCubin') - - global __nvJitLinkGetLinkedPtxSize - __nvJitLinkGetLinkedPtxSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkGetLinkedPtxSize') - if __nvJitLinkGetLinkedPtxSize == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkGetLinkedPtxSize = _cyb_dlsym(handle, 'nvJitLinkGetLinkedPtxSize') - - global __nvJitLinkGetLinkedPtx - __nvJitLinkGetLinkedPtx = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkGetLinkedPtx') - if __nvJitLinkGetLinkedPtx == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkGetLinkedPtx = _cyb_dlsym(handle, 'nvJitLinkGetLinkedPtx') - - global __nvJitLinkGetErrorLogSize - __nvJitLinkGetErrorLogSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkGetErrorLogSize') - if __nvJitLinkGetErrorLogSize == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkGetErrorLogSize = _cyb_dlsym(handle, 'nvJitLinkGetErrorLogSize') - - global __nvJitLinkGetErrorLog - __nvJitLinkGetErrorLog = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkGetErrorLog') - if __nvJitLinkGetErrorLog == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkGetErrorLog = _cyb_dlsym(handle, 'nvJitLinkGetErrorLog') - - global __nvJitLinkGetInfoLogSize - __nvJitLinkGetInfoLogSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkGetInfoLogSize') - if __nvJitLinkGetInfoLogSize == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkGetInfoLogSize = _cyb_dlsym(handle, 'nvJitLinkGetInfoLogSize') - - global __nvJitLinkGetInfoLog - __nvJitLinkGetInfoLog = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkGetInfoLog') - if __nvJitLinkGetInfoLog == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkGetInfoLog = _cyb_dlsym(handle, 'nvJitLinkGetInfoLog') - - global __nvJitLinkVersion - __nvJitLinkVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkVersion') - if __nvJitLinkVersion == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkVersion = _cyb_dlsym(handle, 'nvJitLinkVersion') - - global __nvJitLinkGetLinkedLTOIRSize - __nvJitLinkGetLinkedLTOIRSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkGetLinkedLTOIRSize') - if __nvJitLinkGetLinkedLTOIRSize == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkGetLinkedLTOIRSize = _cyb_dlsym(handle, 'nvJitLinkGetLinkedLTOIRSize') - - global __nvJitLinkGetLinkedLTOIR - __nvJitLinkGetLinkedLTOIR = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvJitLinkGetLinkedLTOIR') - if __nvJitLinkGetLinkedLTOIR == NULL: - if handle == NULL: - handle = load_library() - __nvJitLinkGetLinkedLTOIR = _cyb_dlsym(handle, 'nvJitLinkGetLinkedLTOIR') + for i in range(_cyb_nvjitlink_n_functions): + _cyb_nvjitlink_slots[i][0] = _cyb_dlsym(_cyb_RTLD_DEFAULT, _cyb_nvjitlink_names[i]) + if _cyb_nvjitlink_slots[i][0] == NULL: + if handle == NULL: + handle = load_library() + _cyb_nvjitlink_slots[i][0] = _cyb_dlsym(handle, _cyb_nvjitlink_names[i]) _cyb_atomic_int_store(&_cyb___py_nvjitlink_init, 1) return 0 @@ -219,53 +135,9 @@ cpdef dict _inspect_function_pointers(): _check_or_init_nvjitlink() cdef dict data = {} - global __nvJitLinkCreate - data["__nvJitLinkCreate"] = __nvJitLinkCreate - - global __nvJitLinkDestroy - data["__nvJitLinkDestroy"] = __nvJitLinkDestroy - - global __nvJitLinkAddData - data["__nvJitLinkAddData"] = __nvJitLinkAddData - - global __nvJitLinkAddFile - data["__nvJitLinkAddFile"] = __nvJitLinkAddFile - - global __nvJitLinkComplete - data["__nvJitLinkComplete"] = __nvJitLinkComplete - - global __nvJitLinkGetLinkedCubinSize - data["__nvJitLinkGetLinkedCubinSize"] = __nvJitLinkGetLinkedCubinSize - - global __nvJitLinkGetLinkedCubin - data["__nvJitLinkGetLinkedCubin"] = __nvJitLinkGetLinkedCubin - - global __nvJitLinkGetLinkedPtxSize - data["__nvJitLinkGetLinkedPtxSize"] = __nvJitLinkGetLinkedPtxSize - - global __nvJitLinkGetLinkedPtx - data["__nvJitLinkGetLinkedPtx"] = __nvJitLinkGetLinkedPtx - - global __nvJitLinkGetErrorLogSize - data["__nvJitLinkGetErrorLogSize"] = __nvJitLinkGetErrorLogSize - - global __nvJitLinkGetErrorLog - data["__nvJitLinkGetErrorLog"] = __nvJitLinkGetErrorLog - - global __nvJitLinkGetInfoLogSize - data["__nvJitLinkGetInfoLogSize"] = __nvJitLinkGetInfoLogSize - - global __nvJitLinkGetInfoLog - data["__nvJitLinkGetInfoLog"] = __nvJitLinkGetInfoLog - - global __nvJitLinkVersion - data["__nvJitLinkVersion"] = __nvJitLinkVersion - - global __nvJitLinkGetLinkedLTOIRSize - data["__nvJitLinkGetLinkedLTOIRSize"] = __nvJitLinkGetLinkedLTOIRSize - - global __nvJitLinkGetLinkedLTOIR - data["__nvJitLinkGetLinkedLTOIR"] = __nvJitLinkGetLinkedLTOIR + cdef Py_ssize_t i + for i in range(_cyb_nvjitlink_n_functions): + data['__' + _cyb_nvjitlink_names[i].decode()] = _cyb_nvjitlink_slots[i][0] _cyb_func_ptrs = data return data diff --git a/cuda_bindings_12/cuda/bindings/_internal/nvjitlink_windows.pyx b/cuda_bindings_12/cuda/bindings/_internal/nvjitlink_windows.pyx index 9ce2fc111be8..8e7c87d62593 100644 --- a/cuda_bindings_12/cuda/bindings/_internal/nvjitlink_windows.pyx +++ b/cuda_bindings_12/cuda/bindings/_internal/nvjitlink_windows.pyx @@ -2,12 +2,18 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.0.1 to 13.4.1. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=eef6c33c425f24828307c7fc62c45dcdd8b98e5dd47be467709f64eadfd432b2 +# This code was automatically generated across versions from 12.0.1 to 13.5.0. Do not modify it directly. +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=75640ee43762d0c259e6720c8d80bafbc5ba178a32133367cf31f2a21d828c6d # <<<< PREAMBLE CONTENT >>>> +from libc.stdint cimport ( + intptr_t, + uint32_t, + uintptr_t, +) + cdef extern from * nogil: """ #if defined(_MSC_VER) && !defined(__clang__) @@ -44,12 +50,6 @@ cdef extern from "": ctypedef void* HMODULE void* _cyb_GetProcAddress "GetProcAddress"(HMODULE, const char*) nogil -from libc.stdint cimport ( - intptr_t, - uint32_t, - uintptr_t, -) - import threading as _cyb_threading cdef int _cyb___py_nvjitlink_init = 0 @@ -82,62 +82,38 @@ cdef void* __nvJitLinkVersion = NULL cdef void* __nvJitLinkGetLinkedLTOIRSize = NULL cdef void* __nvJitLinkGetLinkedLTOIR = NULL +cdef enum: _cyb_nvjitlink_n_functions = 16 +cdef void** _cyb_nvjitlink_slots[_cyb_nvjitlink_n_functions] +cdef const char* _cyb_nvjitlink_names[_cyb_nvjitlink_n_functions] +_cyb_nvjitlink_slots[0] = &__nvJitLinkCreate; _cyb_nvjitlink_names[0] = b'nvJitLinkCreate' +_cyb_nvjitlink_slots[1] = &__nvJitLinkDestroy; _cyb_nvjitlink_names[1] = b'nvJitLinkDestroy' +_cyb_nvjitlink_slots[2] = &__nvJitLinkAddData; _cyb_nvjitlink_names[2] = b'nvJitLinkAddData' +_cyb_nvjitlink_slots[3] = &__nvJitLinkAddFile; _cyb_nvjitlink_names[3] = b'nvJitLinkAddFile' +_cyb_nvjitlink_slots[4] = &__nvJitLinkComplete; _cyb_nvjitlink_names[4] = b'nvJitLinkComplete' +_cyb_nvjitlink_slots[5] = &__nvJitLinkGetLinkedCubinSize; _cyb_nvjitlink_names[5] = b'nvJitLinkGetLinkedCubinSize' +_cyb_nvjitlink_slots[6] = &__nvJitLinkGetLinkedCubin; _cyb_nvjitlink_names[6] = b'nvJitLinkGetLinkedCubin' +_cyb_nvjitlink_slots[7] = &__nvJitLinkGetLinkedPtxSize; _cyb_nvjitlink_names[7] = b'nvJitLinkGetLinkedPtxSize' +_cyb_nvjitlink_slots[8] = &__nvJitLinkGetLinkedPtx; _cyb_nvjitlink_names[8] = b'nvJitLinkGetLinkedPtx' +_cyb_nvjitlink_slots[9] = &__nvJitLinkGetErrorLogSize; _cyb_nvjitlink_names[9] = b'nvJitLinkGetErrorLogSize' +_cyb_nvjitlink_slots[10] = &__nvJitLinkGetErrorLog; _cyb_nvjitlink_names[10] = b'nvJitLinkGetErrorLog' +_cyb_nvjitlink_slots[11] = &__nvJitLinkGetInfoLogSize; _cyb_nvjitlink_names[11] = b'nvJitLinkGetInfoLogSize' +_cyb_nvjitlink_slots[12] = &__nvJitLinkGetInfoLog; _cyb_nvjitlink_names[12] = b'nvJitLinkGetInfoLog' +_cyb_nvjitlink_slots[13] = &__nvJitLinkVersion; _cyb_nvjitlink_names[13] = b'nvJitLinkVersion' +_cyb_nvjitlink_slots[14] = &__nvJitLinkGetLinkedLTOIRSize; _cyb_nvjitlink_names[14] = b'nvJitLinkGetLinkedLTOIRSize' +_cyb_nvjitlink_slots[15] = &__nvJitLinkGetLinkedLTOIR; _cyb_nvjitlink_names[15] = b'nvJitLinkGetLinkedLTOIR' + cdef int _init_nvjitlink() except -1 nogil: global _cyb___py_nvjitlink_init cdef int err cdef uintptr_t handle + cdef Py_ssize_t i with gil, _cyb_symbol_lock: if _cyb___py_nvjitlink_init: return 0 handle = load_library() - global __nvJitLinkCreate - __nvJitLinkCreate = _cyb_GetProcAddress(handle, 'nvJitLinkCreate') - - global __nvJitLinkDestroy - __nvJitLinkDestroy = _cyb_GetProcAddress(handle, 'nvJitLinkDestroy') - - global __nvJitLinkAddData - __nvJitLinkAddData = _cyb_GetProcAddress(handle, 'nvJitLinkAddData') - - global __nvJitLinkAddFile - __nvJitLinkAddFile = _cyb_GetProcAddress(handle, 'nvJitLinkAddFile') - - global __nvJitLinkComplete - __nvJitLinkComplete = _cyb_GetProcAddress(handle, 'nvJitLinkComplete') - - global __nvJitLinkGetLinkedCubinSize - __nvJitLinkGetLinkedCubinSize = _cyb_GetProcAddress(handle, 'nvJitLinkGetLinkedCubinSize') - - global __nvJitLinkGetLinkedCubin - __nvJitLinkGetLinkedCubin = _cyb_GetProcAddress(handle, 'nvJitLinkGetLinkedCubin') - - global __nvJitLinkGetLinkedPtxSize - __nvJitLinkGetLinkedPtxSize = _cyb_GetProcAddress(handle, 'nvJitLinkGetLinkedPtxSize') - - global __nvJitLinkGetLinkedPtx - __nvJitLinkGetLinkedPtx = _cyb_GetProcAddress(handle, 'nvJitLinkGetLinkedPtx') - - global __nvJitLinkGetErrorLogSize - __nvJitLinkGetErrorLogSize = _cyb_GetProcAddress(handle, 'nvJitLinkGetErrorLogSize') - - global __nvJitLinkGetErrorLog - __nvJitLinkGetErrorLog = _cyb_GetProcAddress(handle, 'nvJitLinkGetErrorLog') - - global __nvJitLinkGetInfoLogSize - __nvJitLinkGetInfoLogSize = _cyb_GetProcAddress(handle, 'nvJitLinkGetInfoLogSize') - - global __nvJitLinkGetInfoLog - __nvJitLinkGetInfoLog = _cyb_GetProcAddress(handle, 'nvJitLinkGetInfoLog') - - global __nvJitLinkVersion - __nvJitLinkVersion = _cyb_GetProcAddress(handle, 'nvJitLinkVersion') - - global __nvJitLinkGetLinkedLTOIRSize - __nvJitLinkGetLinkedLTOIRSize = _cyb_GetProcAddress(handle, 'nvJitLinkGetLinkedLTOIRSize') - - global __nvJitLinkGetLinkedLTOIR - __nvJitLinkGetLinkedLTOIR = _cyb_GetProcAddress(handle, 'nvJitLinkGetLinkedLTOIR') + for i in range(_cyb_nvjitlink_n_functions): + _cyb_nvjitlink_slots[i][0] = _cyb_GetProcAddress(handle, _cyb_nvjitlink_names[i]) _cyb_atomic_int_store(&_cyb___py_nvjitlink_init, 1) return 0 @@ -156,53 +132,9 @@ cpdef dict _inspect_function_pointers(): _check_or_init_nvjitlink() cdef dict data = {} - global __nvJitLinkCreate - data["__nvJitLinkCreate"] = __nvJitLinkCreate - - global __nvJitLinkDestroy - data["__nvJitLinkDestroy"] = __nvJitLinkDestroy - - global __nvJitLinkAddData - data["__nvJitLinkAddData"] = __nvJitLinkAddData - - global __nvJitLinkAddFile - data["__nvJitLinkAddFile"] = __nvJitLinkAddFile - - global __nvJitLinkComplete - data["__nvJitLinkComplete"] = __nvJitLinkComplete - - global __nvJitLinkGetLinkedCubinSize - data["__nvJitLinkGetLinkedCubinSize"] = __nvJitLinkGetLinkedCubinSize - - global __nvJitLinkGetLinkedCubin - data["__nvJitLinkGetLinkedCubin"] = __nvJitLinkGetLinkedCubin - - global __nvJitLinkGetLinkedPtxSize - data["__nvJitLinkGetLinkedPtxSize"] = __nvJitLinkGetLinkedPtxSize - - global __nvJitLinkGetLinkedPtx - data["__nvJitLinkGetLinkedPtx"] = __nvJitLinkGetLinkedPtx - - global __nvJitLinkGetErrorLogSize - data["__nvJitLinkGetErrorLogSize"] = __nvJitLinkGetErrorLogSize - - global __nvJitLinkGetErrorLog - data["__nvJitLinkGetErrorLog"] = __nvJitLinkGetErrorLog - - global __nvJitLinkGetInfoLogSize - data["__nvJitLinkGetInfoLogSize"] = __nvJitLinkGetInfoLogSize - - global __nvJitLinkGetInfoLog - data["__nvJitLinkGetInfoLog"] = __nvJitLinkGetInfoLog - - global __nvJitLinkVersion - data["__nvJitLinkVersion"] = __nvJitLinkVersion - - global __nvJitLinkGetLinkedLTOIRSize - data["__nvJitLinkGetLinkedLTOIRSize"] = __nvJitLinkGetLinkedLTOIRSize - - global __nvJitLinkGetLinkedLTOIR - data["__nvJitLinkGetLinkedLTOIR"] = __nvJitLinkGetLinkedLTOIR + cdef Py_ssize_t i + for i in range(_cyb_nvjitlink_n_functions): + data['__' + _cyb_nvjitlink_names[i].decode()] = _cyb_nvjitlink_slots[i][0] _cyb_func_ptrs = data return data diff --git a/cuda_bindings_12/cuda/bindings/_internal/nvml.pxd b/cuda_bindings_12/cuda/bindings/_internal/nvml.pxd index 11504e0f41d6..8c361e9213c0 100644 --- a/cuda_bindings_12/cuda/bindings/_internal/nvml.pxd +++ b/cuda_bindings_12/cuda/bindings/_internal/nvml.pxd @@ -2,9 +2,9 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.9.1 to 13.4.1. Do not modify it directly. +# This code was automatically generated across versions from 12.9.1 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=25a9a64fc7aed96ba4ab9be2bd7b2c8c2b464e7d8fb7dab7b2dd85b32da0efe3 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=e817f338e72cec9bb055ef7142d3ea7ae7e39d1c2a6d828a7737a8b2ec3188d5 from ..cynvml cimport * @@ -382,3 +382,11 @@ cdef nvmlReturn_t _nvmlEventSetGetContextInfo_v1(nvmlEventSet_t set, nvmlEventSe cdef nvmlReturn_t _nvmlEventSetGetContextData_v1(nvmlEventSet_t set, nvmlEventSetGetContextData_v1_t* params) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil cdef nvmlReturn_t _nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1(nvmlEventSet_t set, nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1_t* params) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil cdef nvmlReturn_t _nvmlDeviceGetBankRemapperStatus_v1(nvmlDevice_t device, nvmlEccBankRemapperStatus_v1_t* pBankRemapperStatus) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil +cdef nvmlReturn_t _nvmlDeviceGetGpuUptime_v1(nvmlDevice_t device, nvmlGpuUptime_v1_t* uptime) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil +cdef nvmlReturn_t _nvmlSystemGetConfComputeSettings_v2(nvmlSystemConfComputeSettings_v2_t* settings) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil +cdef nvmlReturn_t _nvmlDeviceGetNvLinkInfo_v3(nvmlDevice_t device, nvmlNvLinkInfo_v3_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil +cdef nvmlReturn_t _nvmlDeviceGetNvlinkRemapTableInfo_v1(nvmlDevice_t device, nvmlNvlinkGetRemapTableInfo_v1_t* remapTableInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil +cdef nvmlReturn_t _nvmlDeviceSetNvlinkNvleReady_v1(nvmlDevice_t device, nvmlNvlinkSetNvleReady_v1_t* setNvleReady) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil +cdef nvmlReturn_t _nvmlDeviceLockNvlinkRemapTable_v1(nvmlDevice_t device, nvmlNvlinkLockRemapTable_v1_t* remapTableLockInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil +cdef nvmlReturn_t _nvmlDeviceSetupNvlinkNvleEncryptionKey_v1(nvmlDevice_t device, nvmlNvlinkSetupNvleEncryptionKey_v1_t* encryptionKey) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil +cdef nvmlReturn_t _nvmlDeviceGetNvlinkNvlePrivateInfo_v1(nvmlDevice_t device, nvmlNvlinkNvlePrivateInfo_v1_t* privateInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil diff --git a/cuda_bindings_12/cuda/bindings/_internal/nvml_linux.pyx b/cuda_bindings_12/cuda/bindings/_internal/nvml_linux.pyx index ab251a57fe1b..d44f0d69c8ba 100644 --- a/cuda_bindings_12/cuda/bindings/_internal/nvml_linux.pyx +++ b/cuda_bindings_12/cuda/bindings/_internal/nvml_linux.pyx @@ -2,12 +2,14 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.9.1 to 13.4.1. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=77c516adfddaab32e14f7d0bf80b78c33d928198af0be5ea18ec7b880c9c09c9 +# This code was automatically generated across versions from 12.9.1 to 13.5.0. Do not modify it directly. +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=5f17ea23ec5cd82621614d664bfddb8c7cb48a59dedab4f94d090f5ed88fc43b # <<<< PREAMBLE CONTENT >>>> +from libc.stdint cimport intptr_t + cdef extern from * nogil: """ #if defined(_MSC_VER) && !defined(__clang__) @@ -44,8 +46,6 @@ cdef extern from "": void* _cyb_dlsym "dlsym"(void*, const char*) nogil const void * _cyb_RTLD_DEFAULT "RTLD_DEFAULT" -from libc.stdint cimport intptr_t - import threading as _cyb_threading cdef int _cyb___py_nvml_init = 0 @@ -237,3926 +237,628 @@ cdef void* __nvmlDeviceGetClkMonStatus = NULL cdef void* __nvmlDeviceGetProcessUtilization = NULL cdef void* __nvmlDeviceGetProcessesUtilizationInfo = NULL cdef void* __nvmlDeviceGetPlatformInfo = NULL -cdef void* __nvmlUnitSetLedState = NULL -cdef void* __nvmlDeviceSetPersistenceMode = NULL -cdef void* __nvmlDeviceSetComputeMode = NULL -cdef void* __nvmlDeviceSetEccMode = NULL -cdef void* __nvmlDeviceClearEccErrorCounts = NULL -cdef void* __nvmlDeviceSetDriverModel = NULL -cdef void* __nvmlDeviceSetGpuLockedClocks = NULL -cdef void* __nvmlDeviceResetGpuLockedClocks = NULL -cdef void* __nvmlDeviceSetMemoryLockedClocks = NULL -cdef void* __nvmlDeviceResetMemoryLockedClocks = NULL -cdef void* __nvmlDeviceSetAutoBoostedClocksEnabled = NULL -cdef void* __nvmlDeviceSetDefaultAutoBoostedClocksEnabled = NULL -cdef void* __nvmlDeviceSetDefaultFanSpeed_v2 = NULL -cdef void* __nvmlDeviceSetFanControlPolicy = NULL -cdef void* __nvmlDeviceSetTemperatureThreshold = NULL -cdef void* __nvmlDeviceSetGpuOperationMode = NULL -cdef void* __nvmlDeviceSetAPIRestriction = NULL -cdef void* __nvmlDeviceSetFanSpeed_v2 = NULL -cdef void* __nvmlDeviceSetAccountingMode = NULL -cdef void* __nvmlDeviceClearAccountingPids = NULL -cdef void* __nvmlDeviceSetPowerManagementLimit_v2 = NULL -cdef void* __nvmlDeviceGetNvLinkState = NULL -cdef void* __nvmlDeviceGetNvLinkVersion = NULL -cdef void* __nvmlDeviceGetNvLinkCapability = NULL -cdef void* __nvmlDeviceGetNvLinkRemotePciInfo_v2 = NULL -cdef void* __nvmlDeviceGetNvLinkErrorCounter = NULL -cdef void* __nvmlDeviceResetNvLinkErrorCounters = NULL -cdef void* __nvmlDeviceGetNvLinkRemoteDeviceType = NULL -cdef void* __nvmlDeviceSetNvLinkDeviceLowPowerThreshold = NULL -cdef void* __nvmlSystemSetNvlinkBwMode = NULL -cdef void* __nvmlSystemGetNvlinkBwMode = NULL -cdef void* __nvmlDeviceGetNvlinkSupportedBwModes = NULL -cdef void* __nvmlDeviceGetNvlinkBwMode = NULL -cdef void* __nvmlDeviceSetNvlinkBwMode = NULL -cdef void* __nvmlEventSetCreate = NULL -cdef void* __nvmlDeviceRegisterEvents = NULL -cdef void* __nvmlDeviceGetSupportedEventTypes = NULL -cdef void* __nvmlEventSetWait_v2 = NULL -cdef void* __nvmlEventSetFree = NULL -cdef void* __nvmlSystemEventSetCreate = NULL -cdef void* __nvmlSystemEventSetFree = NULL -cdef void* __nvmlSystemRegisterEvents = NULL -cdef void* __nvmlSystemEventSetWait = NULL -cdef void* __nvmlDeviceModifyDrainState = NULL -cdef void* __nvmlDeviceQueryDrainState = NULL -cdef void* __nvmlDeviceRemoveGpu_v2 = NULL -cdef void* __nvmlDeviceDiscoverGpus = NULL -cdef void* __nvmlDeviceGetFieldValues = NULL -cdef void* __nvmlDeviceClearFieldValues = NULL -cdef void* __nvmlDeviceGetVirtualizationMode = NULL -cdef void* __nvmlDeviceGetHostVgpuMode = NULL -cdef void* __nvmlDeviceSetVirtualizationMode = NULL -cdef void* __nvmlDeviceGetVgpuHeterogeneousMode = NULL -cdef void* __nvmlDeviceSetVgpuHeterogeneousMode = NULL -cdef void* __nvmlVgpuInstanceGetPlacementId = NULL -cdef void* __nvmlDeviceGetVgpuTypeSupportedPlacements = NULL -cdef void* __nvmlDeviceGetVgpuTypeCreatablePlacements = NULL -cdef void* __nvmlVgpuTypeGetGspHeapSize = NULL -cdef void* __nvmlVgpuTypeGetFbReservation = NULL -cdef void* __nvmlVgpuInstanceGetRuntimeStateSize = NULL -cdef void* __nvmlDeviceSetVgpuCapabilities = NULL -cdef void* __nvmlDeviceGetGridLicensableFeatures_v4 = NULL -cdef void* __nvmlGetVgpuDriverCapabilities = NULL -cdef void* __nvmlDeviceGetVgpuCapabilities = NULL -cdef void* __nvmlDeviceGetSupportedVgpus = NULL -cdef void* __nvmlDeviceGetCreatableVgpus = NULL -cdef void* __nvmlVgpuTypeGetClass = NULL -cdef void* __nvmlVgpuTypeGetName = NULL -cdef void* __nvmlVgpuTypeGetGpuInstanceProfileId = NULL -cdef void* __nvmlVgpuTypeGetDeviceID = NULL -cdef void* __nvmlVgpuTypeGetFramebufferSize = NULL -cdef void* __nvmlVgpuTypeGetNumDisplayHeads = NULL -cdef void* __nvmlVgpuTypeGetResolution = NULL -cdef void* __nvmlVgpuTypeGetLicense = NULL -cdef void* __nvmlVgpuTypeGetFrameRateLimit = NULL -cdef void* __nvmlVgpuTypeGetMaxInstances = NULL -cdef void* __nvmlVgpuTypeGetMaxInstancesPerVm = NULL -cdef void* __nvmlVgpuTypeGetBAR1Info = NULL -cdef void* __nvmlDeviceGetActiveVgpus = NULL -cdef void* __nvmlVgpuInstanceGetVmID = NULL -cdef void* __nvmlVgpuInstanceGetUUID = NULL -cdef void* __nvmlVgpuInstanceGetVmDriverVersion = NULL -cdef void* __nvmlVgpuInstanceGetFbUsage = NULL -cdef void* __nvmlVgpuInstanceGetLicenseStatus = NULL -cdef void* __nvmlVgpuInstanceGetType = NULL -cdef void* __nvmlVgpuInstanceGetFrameRateLimit = NULL -cdef void* __nvmlVgpuInstanceGetEccMode = NULL -cdef void* __nvmlVgpuInstanceGetEncoderCapacity = NULL -cdef void* __nvmlVgpuInstanceSetEncoderCapacity = NULL -cdef void* __nvmlVgpuInstanceGetEncoderStats = NULL -cdef void* __nvmlVgpuInstanceGetEncoderSessions = NULL -cdef void* __nvmlVgpuInstanceGetFBCStats = NULL -cdef void* __nvmlVgpuInstanceGetFBCSessions = NULL -cdef void* __nvmlVgpuInstanceGetGpuInstanceId = NULL -cdef void* __nvmlVgpuInstanceGetGpuPciId = NULL -cdef void* __nvmlVgpuTypeGetCapabilities = NULL -cdef void* __nvmlVgpuInstanceGetMdevUUID = NULL -cdef void* __nvmlGpuInstanceGetCreatableVgpus = NULL -cdef void* __nvmlVgpuTypeGetMaxInstancesPerGpuInstance = NULL -cdef void* __nvmlGpuInstanceGetActiveVgpus = NULL -cdef void* __nvmlGpuInstanceSetVgpuSchedulerState = NULL -cdef void* __nvmlGpuInstanceGetVgpuSchedulerState = NULL -cdef void* __nvmlGpuInstanceGetVgpuSchedulerLog = NULL -cdef void* __nvmlGpuInstanceGetVgpuTypeCreatablePlacements = NULL -cdef void* __nvmlGpuInstanceGetVgpuHeterogeneousMode = NULL -cdef void* __nvmlGpuInstanceSetVgpuHeterogeneousMode = NULL -cdef void* __nvmlVgpuInstanceGetMetadata = NULL -cdef void* __nvmlDeviceGetVgpuMetadata = NULL -cdef void* __nvmlGetVgpuCompatibility = NULL -cdef void* __nvmlDeviceGetPgpuMetadataString = NULL -cdef void* __nvmlDeviceGetVgpuSchedulerLog = NULL -cdef void* __nvmlDeviceGetVgpuSchedulerState = NULL -cdef void* __nvmlDeviceGetVgpuSchedulerCapabilities = NULL -cdef void* __nvmlDeviceSetVgpuSchedulerState = NULL -cdef void* __nvmlGetVgpuVersion = NULL -cdef void* __nvmlSetVgpuVersion = NULL -cdef void* __nvmlDeviceGetVgpuUtilization = NULL -cdef void* __nvmlDeviceGetVgpuInstancesUtilizationInfo = NULL -cdef void* __nvmlDeviceGetVgpuProcessUtilization = NULL -cdef void* __nvmlDeviceGetVgpuProcessesUtilizationInfo = NULL -cdef void* __nvmlVgpuInstanceGetAccountingMode = NULL -cdef void* __nvmlVgpuInstanceGetAccountingPids = NULL -cdef void* __nvmlVgpuInstanceGetAccountingStats = NULL -cdef void* __nvmlVgpuInstanceClearAccountingPids = NULL -cdef void* __nvmlVgpuInstanceGetLicenseInfo_v2 = NULL -cdef void* __nvmlGetExcludedDeviceCount = NULL -cdef void* __nvmlGetExcludedDeviceInfoByIndex = NULL -cdef void* __nvmlDeviceSetMigMode = NULL -cdef void* __nvmlDeviceGetMigMode = NULL -cdef void* __nvmlDeviceGetGpuInstanceProfileInfoV = NULL -cdef void* __nvmlDeviceGetGpuInstancePossiblePlacements_v2 = NULL -cdef void* __nvmlDeviceGetGpuInstanceRemainingCapacity = NULL -cdef void* __nvmlDeviceCreateGpuInstance = NULL -cdef void* __nvmlDeviceCreateGpuInstanceWithPlacement = NULL -cdef void* __nvmlGpuInstanceDestroy = NULL -cdef void* __nvmlDeviceGetGpuInstances = NULL -cdef void* __nvmlDeviceGetGpuInstanceById = NULL -cdef void* __nvmlGpuInstanceGetInfo = NULL -cdef void* __nvmlGpuInstanceGetComputeInstanceProfileInfoV = NULL -cdef void* __nvmlGpuInstanceGetComputeInstanceRemainingCapacity = NULL -cdef void* __nvmlGpuInstanceGetComputeInstancePossiblePlacements = NULL -cdef void* __nvmlGpuInstanceCreateComputeInstance = NULL -cdef void* __nvmlGpuInstanceCreateComputeInstanceWithPlacement = NULL -cdef void* __nvmlComputeInstanceDestroy = NULL -cdef void* __nvmlGpuInstanceGetComputeInstances = NULL -cdef void* __nvmlGpuInstanceGetComputeInstanceById = NULL -cdef void* __nvmlComputeInstanceGetInfo_v2 = NULL -cdef void* __nvmlDeviceIsMigDeviceHandle = NULL -cdef void* __nvmlDeviceGetGpuInstanceId = NULL -cdef void* __nvmlDeviceGetComputeInstanceId = NULL -cdef void* __nvmlDeviceGetMaxMigDeviceCount = NULL -cdef void* __nvmlDeviceGetMigDeviceHandleByIndex = NULL -cdef void* __nvmlDeviceGetDeviceHandleFromMigDeviceHandle = NULL -cdef void* __nvmlDeviceGetCapabilities = NULL -cdef void* __nvmlDevicePowerSmoothingActivatePresetProfile = NULL -cdef void* __nvmlDevicePowerSmoothingUpdatePresetProfileParam = NULL -cdef void* __nvmlDevicePowerSmoothingSetState = NULL -cdef void* __nvmlDeviceGetAddressingMode = NULL -cdef void* __nvmlDeviceGetRepairStatus = NULL -cdef void* __nvmlDeviceGetPowerMizerMode_v1 = NULL -cdef void* __nvmlDeviceSetPowerMizerMode_v1 = NULL -cdef void* __nvmlDeviceGetPdi = NULL -cdef void* __nvmlDeviceSetHostname_v1 = NULL -cdef void* __nvmlDeviceGetHostname_v1 = NULL -cdef void* __nvmlDeviceGetNvLinkInfo = NULL -cdef void* __nvmlDeviceReadWritePRM_v1 = NULL -cdef void* __nvmlDeviceGetGpuInstanceProfileInfoByIdV = NULL -cdef void* __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts = NULL -cdef void* __nvmlDeviceGetUnrepairableMemoryFlag_v1 = NULL -cdef void* __nvmlDeviceReadPRMCounters_v1 = NULL -cdef void* __nvmlDeviceSetRusdSettings_v1 = NULL -cdef void* __nvmlDeviceVgpuForceGspUnload = NULL -cdef void* __nvmlDeviceGetVgpuSchedulerState_v2 = NULL -cdef void* __nvmlGpuInstanceGetVgpuSchedulerState_v2 = NULL -cdef void* __nvmlDeviceGetVgpuSchedulerLog_v2 = NULL -cdef void* __nvmlGpuInstanceGetVgpuSchedulerLog_v2 = NULL -cdef void* __nvmlDeviceSetVgpuSchedulerState_v2 = NULL -cdef void* __nvmlGpuInstanceSetVgpuSchedulerState_v2 = NULL -cdef void* __nvmlSystemGetCPER_v1 = NULL -cdef void* __nvmlDeviceGetBBXTimeData_v1 = NULL -cdef void* __nvmlDeviceGetAccountingStats_v2 = NULL -cdef void* __nvmlDeviceGetRemappedRows_v2 = NULL -cdef void* __nvmlDeviceSetAdaptiveTgpMode_v1 = NULL -cdef void* __nvmlDeviceGetAdaptiveTgpModeInfo_v1 = NULL -cdef void* __nvmlDeviceSetMemoryLimits_v1 = NULL -cdef void* __nvmlDeviceGetMemoryLimits_v1 = NULL -cdef void* __nvmlDeviceGetGpuFabricInfo_v4 = NULL -cdef void* __nvmlDevicePerfMetricsGetSamples_v1 = NULL -cdef void* __nvmlDeviceSetNvlinkBwModeAsync_v1 = NULL -cdef void* __nvmlDeviceGetNvLinkTelemetrySamples_v1 = NULL -cdef void* __nvmlEventSetRegisterGpuOperationalEvents_v1 = NULL -cdef void* __nvmlEventSetWait_v3 = NULL -cdef void* __nvmlEventSetGetContextCount_v1 = NULL -cdef void* __nvmlEventSetGetContextInfo_v1 = NULL -cdef void* __nvmlEventSetGetContextData_v1 = NULL -cdef void* __nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1 = NULL -cdef void* __nvmlDeviceGetBankRemapperStatus_v1 = NULL - -cdef int _init_nvml() except -1 nogil: - global _cyb___py_nvml_init - cdef void* handle = NULL - with gil, _cyb_symbol_lock: - if _cyb___py_nvml_init: return 0 - - global __nvmlInit_v2 - __nvmlInit_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlInit_v2') - if __nvmlInit_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlInit_v2 = _cyb_dlsym(handle, 'nvmlInit_v2') - - global __nvmlInitWithFlags - __nvmlInitWithFlags = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlInitWithFlags') - if __nvmlInitWithFlags == NULL: - if handle == NULL: - handle = load_library() - __nvmlInitWithFlags = _cyb_dlsym(handle, 'nvmlInitWithFlags') - - global __nvmlShutdown - __nvmlShutdown = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlShutdown') - if __nvmlShutdown == NULL: - if handle == NULL: - handle = load_library() - __nvmlShutdown = _cyb_dlsym(handle, 'nvmlShutdown') - - global __nvmlErrorString - __nvmlErrorString = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlErrorString') - if __nvmlErrorString == NULL: - if handle == NULL: - handle = load_library() - __nvmlErrorString = _cyb_dlsym(handle, 'nvmlErrorString') - - global __nvmlSystemGetDriverVersion - __nvmlSystemGetDriverVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetDriverVersion') - if __nvmlSystemGetDriverVersion == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetDriverVersion = _cyb_dlsym(handle, 'nvmlSystemGetDriverVersion') - - global __nvmlSystemGetNVMLVersion - __nvmlSystemGetNVMLVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetNVMLVersion') - if __nvmlSystemGetNVMLVersion == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetNVMLVersion = _cyb_dlsym(handle, 'nvmlSystemGetNVMLVersion') - - global __nvmlSystemGetCudaDriverVersion - __nvmlSystemGetCudaDriverVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetCudaDriverVersion') - if __nvmlSystemGetCudaDriverVersion == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetCudaDriverVersion = _cyb_dlsym(handle, 'nvmlSystemGetCudaDriverVersion') - - global __nvmlSystemGetCudaDriverVersion_v2 - __nvmlSystemGetCudaDriverVersion_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetCudaDriverVersion_v2') - if __nvmlSystemGetCudaDriverVersion_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetCudaDriverVersion_v2 = _cyb_dlsym(handle, 'nvmlSystemGetCudaDriverVersion_v2') - - global __nvmlSystemGetProcessName - __nvmlSystemGetProcessName = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetProcessName') - if __nvmlSystemGetProcessName == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetProcessName = _cyb_dlsym(handle, 'nvmlSystemGetProcessName') - - global __nvmlSystemGetHicVersion - __nvmlSystemGetHicVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetHicVersion') - if __nvmlSystemGetHicVersion == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetHicVersion = _cyb_dlsym(handle, 'nvmlSystemGetHicVersion') - - global __nvmlSystemGetTopologyGpuSet - __nvmlSystemGetTopologyGpuSet = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetTopologyGpuSet') - if __nvmlSystemGetTopologyGpuSet == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetTopologyGpuSet = _cyb_dlsym(handle, 'nvmlSystemGetTopologyGpuSet') - - global __nvmlSystemGetDriverBranch - __nvmlSystemGetDriverBranch = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetDriverBranch') - if __nvmlSystemGetDriverBranch == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetDriverBranch = _cyb_dlsym(handle, 'nvmlSystemGetDriverBranch') - - global __nvmlUnitGetCount - __nvmlUnitGetCount = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlUnitGetCount') - if __nvmlUnitGetCount == NULL: - if handle == NULL: - handle = load_library() - __nvmlUnitGetCount = _cyb_dlsym(handle, 'nvmlUnitGetCount') - - global __nvmlUnitGetHandleByIndex - __nvmlUnitGetHandleByIndex = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlUnitGetHandleByIndex') - if __nvmlUnitGetHandleByIndex == NULL: - if handle == NULL: - handle = load_library() - __nvmlUnitGetHandleByIndex = _cyb_dlsym(handle, 'nvmlUnitGetHandleByIndex') - - global __nvmlUnitGetUnitInfo - __nvmlUnitGetUnitInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlUnitGetUnitInfo') - if __nvmlUnitGetUnitInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlUnitGetUnitInfo = _cyb_dlsym(handle, 'nvmlUnitGetUnitInfo') - - global __nvmlUnitGetLedState - __nvmlUnitGetLedState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlUnitGetLedState') - if __nvmlUnitGetLedState == NULL: - if handle == NULL: - handle = load_library() - __nvmlUnitGetLedState = _cyb_dlsym(handle, 'nvmlUnitGetLedState') - - global __nvmlUnitGetPsuInfo - __nvmlUnitGetPsuInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlUnitGetPsuInfo') - if __nvmlUnitGetPsuInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlUnitGetPsuInfo = _cyb_dlsym(handle, 'nvmlUnitGetPsuInfo') - - global __nvmlUnitGetTemperature - __nvmlUnitGetTemperature = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlUnitGetTemperature') - if __nvmlUnitGetTemperature == NULL: - if handle == NULL: - handle = load_library() - __nvmlUnitGetTemperature = _cyb_dlsym(handle, 'nvmlUnitGetTemperature') - - global __nvmlUnitGetFanSpeedInfo - __nvmlUnitGetFanSpeedInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlUnitGetFanSpeedInfo') - if __nvmlUnitGetFanSpeedInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlUnitGetFanSpeedInfo = _cyb_dlsym(handle, 'nvmlUnitGetFanSpeedInfo') - - global __nvmlUnitGetDevices - __nvmlUnitGetDevices = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlUnitGetDevices') - if __nvmlUnitGetDevices == NULL: - if handle == NULL: - handle = load_library() - __nvmlUnitGetDevices = _cyb_dlsym(handle, 'nvmlUnitGetDevices') - - global __nvmlDeviceGetCount_v2 - __nvmlDeviceGetCount_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetCount_v2') - if __nvmlDeviceGetCount_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetCount_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetCount_v2') - - global __nvmlDeviceGetAttributes_v2 - __nvmlDeviceGetAttributes_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetAttributes_v2') - if __nvmlDeviceGetAttributes_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetAttributes_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetAttributes_v2') - - global __nvmlDeviceGetHandleByIndex_v2 - __nvmlDeviceGetHandleByIndex_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetHandleByIndex_v2') - if __nvmlDeviceGetHandleByIndex_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetHandleByIndex_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetHandleByIndex_v2') - - global __nvmlDeviceGetHandleBySerial - __nvmlDeviceGetHandleBySerial = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetHandleBySerial') - if __nvmlDeviceGetHandleBySerial == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetHandleBySerial = _cyb_dlsym(handle, 'nvmlDeviceGetHandleBySerial') - - global __nvmlDeviceGetHandleByUUID - __nvmlDeviceGetHandleByUUID = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetHandleByUUID') - if __nvmlDeviceGetHandleByUUID == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetHandleByUUID = _cyb_dlsym(handle, 'nvmlDeviceGetHandleByUUID') - - global __nvmlDeviceGetHandleByUUIDV - __nvmlDeviceGetHandleByUUIDV = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetHandleByUUIDV') - if __nvmlDeviceGetHandleByUUIDV == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetHandleByUUIDV = _cyb_dlsym(handle, 'nvmlDeviceGetHandleByUUIDV') - - global __nvmlDeviceGetHandleByPciBusId_v2 - __nvmlDeviceGetHandleByPciBusId_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetHandleByPciBusId_v2') - if __nvmlDeviceGetHandleByPciBusId_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetHandleByPciBusId_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetHandleByPciBusId_v2') - - global __nvmlDeviceGetName - __nvmlDeviceGetName = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetName') - if __nvmlDeviceGetName == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetName = _cyb_dlsym(handle, 'nvmlDeviceGetName') - - global __nvmlDeviceGetBrand - __nvmlDeviceGetBrand = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetBrand') - if __nvmlDeviceGetBrand == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetBrand = _cyb_dlsym(handle, 'nvmlDeviceGetBrand') - - global __nvmlDeviceGetIndex - __nvmlDeviceGetIndex = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetIndex') - if __nvmlDeviceGetIndex == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetIndex = _cyb_dlsym(handle, 'nvmlDeviceGetIndex') - - global __nvmlDeviceGetSerial - __nvmlDeviceGetSerial = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetSerial') - if __nvmlDeviceGetSerial == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetSerial = _cyb_dlsym(handle, 'nvmlDeviceGetSerial') - - global __nvmlDeviceGetModuleId - __nvmlDeviceGetModuleId = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetModuleId') - if __nvmlDeviceGetModuleId == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetModuleId = _cyb_dlsym(handle, 'nvmlDeviceGetModuleId') - - global __nvmlDeviceGetC2cModeInfoV - __nvmlDeviceGetC2cModeInfoV = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetC2cModeInfoV') - if __nvmlDeviceGetC2cModeInfoV == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetC2cModeInfoV = _cyb_dlsym(handle, 'nvmlDeviceGetC2cModeInfoV') - - global __nvmlDeviceGetMemoryAffinity - __nvmlDeviceGetMemoryAffinity = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMemoryAffinity') - if __nvmlDeviceGetMemoryAffinity == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMemoryAffinity = _cyb_dlsym(handle, 'nvmlDeviceGetMemoryAffinity') - - global __nvmlDeviceGetCpuAffinityWithinScope - __nvmlDeviceGetCpuAffinityWithinScope = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetCpuAffinityWithinScope') - if __nvmlDeviceGetCpuAffinityWithinScope == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetCpuAffinityWithinScope = _cyb_dlsym(handle, 'nvmlDeviceGetCpuAffinityWithinScope') - - global __nvmlDeviceGetCpuAffinity - __nvmlDeviceGetCpuAffinity = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetCpuAffinity') - if __nvmlDeviceGetCpuAffinity == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetCpuAffinity = _cyb_dlsym(handle, 'nvmlDeviceGetCpuAffinity') - - global __nvmlDeviceSetCpuAffinity - __nvmlDeviceSetCpuAffinity = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetCpuAffinity') - if __nvmlDeviceSetCpuAffinity == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetCpuAffinity = _cyb_dlsym(handle, 'nvmlDeviceSetCpuAffinity') - - global __nvmlDeviceClearCpuAffinity - __nvmlDeviceClearCpuAffinity = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceClearCpuAffinity') - if __nvmlDeviceClearCpuAffinity == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceClearCpuAffinity = _cyb_dlsym(handle, 'nvmlDeviceClearCpuAffinity') - - global __nvmlDeviceGetNumaNodeId - __nvmlDeviceGetNumaNodeId = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNumaNodeId') - if __nvmlDeviceGetNumaNodeId == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNumaNodeId = _cyb_dlsym(handle, 'nvmlDeviceGetNumaNodeId') - - global __nvmlDeviceGetTopologyCommonAncestor - __nvmlDeviceGetTopologyCommonAncestor = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetTopologyCommonAncestor') - if __nvmlDeviceGetTopologyCommonAncestor == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetTopologyCommonAncestor = _cyb_dlsym(handle, 'nvmlDeviceGetTopologyCommonAncestor') - - global __nvmlDeviceGetTopologyNearestGpus - __nvmlDeviceGetTopologyNearestGpus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetTopologyNearestGpus') - if __nvmlDeviceGetTopologyNearestGpus == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetTopologyNearestGpus = _cyb_dlsym(handle, 'nvmlDeviceGetTopologyNearestGpus') - - global __nvmlDeviceGetP2PStatus - __nvmlDeviceGetP2PStatus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetP2PStatus') - if __nvmlDeviceGetP2PStatus == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetP2PStatus = _cyb_dlsym(handle, 'nvmlDeviceGetP2PStatus') - - global __nvmlDeviceGetUUID - __nvmlDeviceGetUUID = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetUUID') - if __nvmlDeviceGetUUID == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetUUID = _cyb_dlsym(handle, 'nvmlDeviceGetUUID') - - global __nvmlDeviceGetMinorNumber - __nvmlDeviceGetMinorNumber = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMinorNumber') - if __nvmlDeviceGetMinorNumber == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMinorNumber = _cyb_dlsym(handle, 'nvmlDeviceGetMinorNumber') - - global __nvmlDeviceGetBoardPartNumber - __nvmlDeviceGetBoardPartNumber = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetBoardPartNumber') - if __nvmlDeviceGetBoardPartNumber == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetBoardPartNumber = _cyb_dlsym(handle, 'nvmlDeviceGetBoardPartNumber') - - global __nvmlDeviceGetInforomVersion - __nvmlDeviceGetInforomVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetInforomVersion') - if __nvmlDeviceGetInforomVersion == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetInforomVersion = _cyb_dlsym(handle, 'nvmlDeviceGetInforomVersion') - - global __nvmlDeviceGetInforomImageVersion - __nvmlDeviceGetInforomImageVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetInforomImageVersion') - if __nvmlDeviceGetInforomImageVersion == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetInforomImageVersion = _cyb_dlsym(handle, 'nvmlDeviceGetInforomImageVersion') - - global __nvmlDeviceGetInforomConfigurationChecksum - __nvmlDeviceGetInforomConfigurationChecksum = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetInforomConfigurationChecksum') - if __nvmlDeviceGetInforomConfigurationChecksum == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetInforomConfigurationChecksum = _cyb_dlsym(handle, 'nvmlDeviceGetInforomConfigurationChecksum') - - global __nvmlDeviceValidateInforom - __nvmlDeviceValidateInforom = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceValidateInforom') - if __nvmlDeviceValidateInforom == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceValidateInforom = _cyb_dlsym(handle, 'nvmlDeviceValidateInforom') - - global __nvmlDeviceGetLastBBXFlushTime - __nvmlDeviceGetLastBBXFlushTime = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetLastBBXFlushTime') - if __nvmlDeviceGetLastBBXFlushTime == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetLastBBXFlushTime = _cyb_dlsym(handle, 'nvmlDeviceGetLastBBXFlushTime') - - global __nvmlDeviceGetDisplayMode - __nvmlDeviceGetDisplayMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetDisplayMode') - if __nvmlDeviceGetDisplayMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetDisplayMode = _cyb_dlsym(handle, 'nvmlDeviceGetDisplayMode') - - global __nvmlDeviceGetDisplayActive - __nvmlDeviceGetDisplayActive = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetDisplayActive') - if __nvmlDeviceGetDisplayActive == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetDisplayActive = _cyb_dlsym(handle, 'nvmlDeviceGetDisplayActive') - - global __nvmlDeviceGetPersistenceMode - __nvmlDeviceGetPersistenceMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPersistenceMode') - if __nvmlDeviceGetPersistenceMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPersistenceMode = _cyb_dlsym(handle, 'nvmlDeviceGetPersistenceMode') - - global __nvmlDeviceGetPciInfoExt - __nvmlDeviceGetPciInfoExt = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPciInfoExt') - if __nvmlDeviceGetPciInfoExt == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPciInfoExt = _cyb_dlsym(handle, 'nvmlDeviceGetPciInfoExt') - - global __nvmlDeviceGetPciInfo_v3 - __nvmlDeviceGetPciInfo_v3 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPciInfo_v3') - if __nvmlDeviceGetPciInfo_v3 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPciInfo_v3 = _cyb_dlsym(handle, 'nvmlDeviceGetPciInfo_v3') - - global __nvmlDeviceGetMaxPcieLinkGeneration - __nvmlDeviceGetMaxPcieLinkGeneration = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMaxPcieLinkGeneration') - if __nvmlDeviceGetMaxPcieLinkGeneration == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMaxPcieLinkGeneration = _cyb_dlsym(handle, 'nvmlDeviceGetMaxPcieLinkGeneration') - - global __nvmlDeviceGetGpuMaxPcieLinkGeneration - __nvmlDeviceGetGpuMaxPcieLinkGeneration = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGpuMaxPcieLinkGeneration') - if __nvmlDeviceGetGpuMaxPcieLinkGeneration == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGpuMaxPcieLinkGeneration = _cyb_dlsym(handle, 'nvmlDeviceGetGpuMaxPcieLinkGeneration') - - global __nvmlDeviceGetMaxPcieLinkWidth - __nvmlDeviceGetMaxPcieLinkWidth = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMaxPcieLinkWidth') - if __nvmlDeviceGetMaxPcieLinkWidth == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMaxPcieLinkWidth = _cyb_dlsym(handle, 'nvmlDeviceGetMaxPcieLinkWidth') - - global __nvmlDeviceGetCurrPcieLinkGeneration - __nvmlDeviceGetCurrPcieLinkGeneration = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetCurrPcieLinkGeneration') - if __nvmlDeviceGetCurrPcieLinkGeneration == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetCurrPcieLinkGeneration = _cyb_dlsym(handle, 'nvmlDeviceGetCurrPcieLinkGeneration') - - global __nvmlDeviceGetCurrPcieLinkWidth - __nvmlDeviceGetCurrPcieLinkWidth = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetCurrPcieLinkWidth') - if __nvmlDeviceGetCurrPcieLinkWidth == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetCurrPcieLinkWidth = _cyb_dlsym(handle, 'nvmlDeviceGetCurrPcieLinkWidth') - - global __nvmlDeviceGetPcieThroughput - __nvmlDeviceGetPcieThroughput = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPcieThroughput') - if __nvmlDeviceGetPcieThroughput == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPcieThroughput = _cyb_dlsym(handle, 'nvmlDeviceGetPcieThroughput') - - global __nvmlDeviceGetPcieReplayCounter - __nvmlDeviceGetPcieReplayCounter = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPcieReplayCounter') - if __nvmlDeviceGetPcieReplayCounter == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPcieReplayCounter = _cyb_dlsym(handle, 'nvmlDeviceGetPcieReplayCounter') - - global __nvmlDeviceGetClockInfo - __nvmlDeviceGetClockInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetClockInfo') - if __nvmlDeviceGetClockInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetClockInfo = _cyb_dlsym(handle, 'nvmlDeviceGetClockInfo') - - global __nvmlDeviceGetMaxClockInfo - __nvmlDeviceGetMaxClockInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMaxClockInfo') - if __nvmlDeviceGetMaxClockInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMaxClockInfo = _cyb_dlsym(handle, 'nvmlDeviceGetMaxClockInfo') - - global __nvmlDeviceGetGpcClkVfOffset - __nvmlDeviceGetGpcClkVfOffset = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGpcClkVfOffset') - if __nvmlDeviceGetGpcClkVfOffset == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGpcClkVfOffset = _cyb_dlsym(handle, 'nvmlDeviceGetGpcClkVfOffset') - - global __nvmlDeviceGetClock - __nvmlDeviceGetClock = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetClock') - if __nvmlDeviceGetClock == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetClock = _cyb_dlsym(handle, 'nvmlDeviceGetClock') - - global __nvmlDeviceGetMaxCustomerBoostClock - __nvmlDeviceGetMaxCustomerBoostClock = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMaxCustomerBoostClock') - if __nvmlDeviceGetMaxCustomerBoostClock == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMaxCustomerBoostClock = _cyb_dlsym(handle, 'nvmlDeviceGetMaxCustomerBoostClock') - - global __nvmlDeviceGetSupportedMemoryClocks - __nvmlDeviceGetSupportedMemoryClocks = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetSupportedMemoryClocks') - if __nvmlDeviceGetSupportedMemoryClocks == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetSupportedMemoryClocks = _cyb_dlsym(handle, 'nvmlDeviceGetSupportedMemoryClocks') - - global __nvmlDeviceGetSupportedGraphicsClocks - __nvmlDeviceGetSupportedGraphicsClocks = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetSupportedGraphicsClocks') - if __nvmlDeviceGetSupportedGraphicsClocks == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetSupportedGraphicsClocks = _cyb_dlsym(handle, 'nvmlDeviceGetSupportedGraphicsClocks') - - global __nvmlDeviceGetAutoBoostedClocksEnabled - __nvmlDeviceGetAutoBoostedClocksEnabled = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetAutoBoostedClocksEnabled') - if __nvmlDeviceGetAutoBoostedClocksEnabled == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetAutoBoostedClocksEnabled = _cyb_dlsym(handle, 'nvmlDeviceGetAutoBoostedClocksEnabled') - - global __nvmlDeviceGetFanSpeed - __nvmlDeviceGetFanSpeed = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetFanSpeed') - if __nvmlDeviceGetFanSpeed == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetFanSpeed = _cyb_dlsym(handle, 'nvmlDeviceGetFanSpeed') - - global __nvmlDeviceGetFanSpeed_v2 - __nvmlDeviceGetFanSpeed_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetFanSpeed_v2') - if __nvmlDeviceGetFanSpeed_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetFanSpeed_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetFanSpeed_v2') - - global __nvmlDeviceGetFanSpeedRPM - __nvmlDeviceGetFanSpeedRPM = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetFanSpeedRPM') - if __nvmlDeviceGetFanSpeedRPM == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetFanSpeedRPM = _cyb_dlsym(handle, 'nvmlDeviceGetFanSpeedRPM') - - global __nvmlDeviceGetTargetFanSpeed - __nvmlDeviceGetTargetFanSpeed = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetTargetFanSpeed') - if __nvmlDeviceGetTargetFanSpeed == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetTargetFanSpeed = _cyb_dlsym(handle, 'nvmlDeviceGetTargetFanSpeed') - - global __nvmlDeviceGetMinMaxFanSpeed - __nvmlDeviceGetMinMaxFanSpeed = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMinMaxFanSpeed') - if __nvmlDeviceGetMinMaxFanSpeed == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMinMaxFanSpeed = _cyb_dlsym(handle, 'nvmlDeviceGetMinMaxFanSpeed') - - global __nvmlDeviceGetFanControlPolicy_v2 - __nvmlDeviceGetFanControlPolicy_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetFanControlPolicy_v2') - if __nvmlDeviceGetFanControlPolicy_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetFanControlPolicy_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetFanControlPolicy_v2') - - global __nvmlDeviceGetNumFans - __nvmlDeviceGetNumFans = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNumFans') - if __nvmlDeviceGetNumFans == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNumFans = _cyb_dlsym(handle, 'nvmlDeviceGetNumFans') - - global __nvmlDeviceGetCoolerInfo - __nvmlDeviceGetCoolerInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetCoolerInfo') - if __nvmlDeviceGetCoolerInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetCoolerInfo = _cyb_dlsym(handle, 'nvmlDeviceGetCoolerInfo') - - global __nvmlDeviceGetTemperatureV - __nvmlDeviceGetTemperatureV = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetTemperatureV') - if __nvmlDeviceGetTemperatureV == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetTemperatureV = _cyb_dlsym(handle, 'nvmlDeviceGetTemperatureV') - - global __nvmlDeviceGetTemperatureThreshold - __nvmlDeviceGetTemperatureThreshold = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetTemperatureThreshold') - if __nvmlDeviceGetTemperatureThreshold == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetTemperatureThreshold = _cyb_dlsym(handle, 'nvmlDeviceGetTemperatureThreshold') - - global __nvmlDeviceGetMarginTemperature - __nvmlDeviceGetMarginTemperature = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMarginTemperature') - if __nvmlDeviceGetMarginTemperature == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMarginTemperature = _cyb_dlsym(handle, 'nvmlDeviceGetMarginTemperature') - - global __nvmlDeviceGetThermalSettings - __nvmlDeviceGetThermalSettings = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetThermalSettings') - if __nvmlDeviceGetThermalSettings == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetThermalSettings = _cyb_dlsym(handle, 'nvmlDeviceGetThermalSettings') - - global __nvmlDeviceGetPerformanceState - __nvmlDeviceGetPerformanceState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPerformanceState') - if __nvmlDeviceGetPerformanceState == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPerformanceState = _cyb_dlsym(handle, 'nvmlDeviceGetPerformanceState') - - global __nvmlDeviceGetCurrentClocksEventReasons - __nvmlDeviceGetCurrentClocksEventReasons = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetCurrentClocksEventReasons') - if __nvmlDeviceGetCurrentClocksEventReasons == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetCurrentClocksEventReasons = _cyb_dlsym(handle, 'nvmlDeviceGetCurrentClocksEventReasons') - - global __nvmlDeviceGetSupportedClocksEventReasons - __nvmlDeviceGetSupportedClocksEventReasons = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetSupportedClocksEventReasons') - if __nvmlDeviceGetSupportedClocksEventReasons == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetSupportedClocksEventReasons = _cyb_dlsym(handle, 'nvmlDeviceGetSupportedClocksEventReasons') - - global __nvmlDeviceGetPowerState - __nvmlDeviceGetPowerState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPowerState') - if __nvmlDeviceGetPowerState == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPowerState = _cyb_dlsym(handle, 'nvmlDeviceGetPowerState') - - global __nvmlDeviceGetDynamicPstatesInfo - __nvmlDeviceGetDynamicPstatesInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetDynamicPstatesInfo') - if __nvmlDeviceGetDynamicPstatesInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetDynamicPstatesInfo = _cyb_dlsym(handle, 'nvmlDeviceGetDynamicPstatesInfo') - - global __nvmlDeviceGetMemClkVfOffset - __nvmlDeviceGetMemClkVfOffset = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMemClkVfOffset') - if __nvmlDeviceGetMemClkVfOffset == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMemClkVfOffset = _cyb_dlsym(handle, 'nvmlDeviceGetMemClkVfOffset') - - global __nvmlDeviceGetMinMaxClockOfPState - __nvmlDeviceGetMinMaxClockOfPState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMinMaxClockOfPState') - if __nvmlDeviceGetMinMaxClockOfPState == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMinMaxClockOfPState = _cyb_dlsym(handle, 'nvmlDeviceGetMinMaxClockOfPState') - - global __nvmlDeviceGetSupportedPerformanceStates - __nvmlDeviceGetSupportedPerformanceStates = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetSupportedPerformanceStates') - if __nvmlDeviceGetSupportedPerformanceStates == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetSupportedPerformanceStates = _cyb_dlsym(handle, 'nvmlDeviceGetSupportedPerformanceStates') - - global __nvmlDeviceGetGpcClkMinMaxVfOffset - __nvmlDeviceGetGpcClkMinMaxVfOffset = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGpcClkMinMaxVfOffset') - if __nvmlDeviceGetGpcClkMinMaxVfOffset == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGpcClkMinMaxVfOffset = _cyb_dlsym(handle, 'nvmlDeviceGetGpcClkMinMaxVfOffset') - - global __nvmlDeviceGetMemClkMinMaxVfOffset - __nvmlDeviceGetMemClkMinMaxVfOffset = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMemClkMinMaxVfOffset') - if __nvmlDeviceGetMemClkMinMaxVfOffset == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMemClkMinMaxVfOffset = _cyb_dlsym(handle, 'nvmlDeviceGetMemClkMinMaxVfOffset') - - global __nvmlDeviceGetClockOffsets - __nvmlDeviceGetClockOffsets = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetClockOffsets') - if __nvmlDeviceGetClockOffsets == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetClockOffsets = _cyb_dlsym(handle, 'nvmlDeviceGetClockOffsets') - - global __nvmlDeviceSetClockOffsets - __nvmlDeviceSetClockOffsets = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetClockOffsets') - if __nvmlDeviceSetClockOffsets == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetClockOffsets = _cyb_dlsym(handle, 'nvmlDeviceSetClockOffsets') - - global __nvmlDeviceGetPerformanceModes - __nvmlDeviceGetPerformanceModes = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPerformanceModes') - if __nvmlDeviceGetPerformanceModes == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPerformanceModes = _cyb_dlsym(handle, 'nvmlDeviceGetPerformanceModes') - - global __nvmlDeviceGetCurrentClockFreqs - __nvmlDeviceGetCurrentClockFreqs = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetCurrentClockFreqs') - if __nvmlDeviceGetCurrentClockFreqs == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetCurrentClockFreqs = _cyb_dlsym(handle, 'nvmlDeviceGetCurrentClockFreqs') - - global __nvmlDeviceGetPowerManagementLimit - __nvmlDeviceGetPowerManagementLimit = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPowerManagementLimit') - if __nvmlDeviceGetPowerManagementLimit == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPowerManagementLimit = _cyb_dlsym(handle, 'nvmlDeviceGetPowerManagementLimit') - - global __nvmlDeviceGetPowerManagementLimitConstraints - __nvmlDeviceGetPowerManagementLimitConstraints = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPowerManagementLimitConstraints') - if __nvmlDeviceGetPowerManagementLimitConstraints == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPowerManagementLimitConstraints = _cyb_dlsym(handle, 'nvmlDeviceGetPowerManagementLimitConstraints') - - global __nvmlDeviceGetPowerManagementDefaultLimit - __nvmlDeviceGetPowerManagementDefaultLimit = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPowerManagementDefaultLimit') - if __nvmlDeviceGetPowerManagementDefaultLimit == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPowerManagementDefaultLimit = _cyb_dlsym(handle, 'nvmlDeviceGetPowerManagementDefaultLimit') - - global __nvmlDeviceGetPowerUsage - __nvmlDeviceGetPowerUsage = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPowerUsage') - if __nvmlDeviceGetPowerUsage == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPowerUsage = _cyb_dlsym(handle, 'nvmlDeviceGetPowerUsage') - - global __nvmlDeviceGetTotalEnergyConsumption - __nvmlDeviceGetTotalEnergyConsumption = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetTotalEnergyConsumption') - if __nvmlDeviceGetTotalEnergyConsumption == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetTotalEnergyConsumption = _cyb_dlsym(handle, 'nvmlDeviceGetTotalEnergyConsumption') - - global __nvmlDeviceGetEnforcedPowerLimit - __nvmlDeviceGetEnforcedPowerLimit = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetEnforcedPowerLimit') - if __nvmlDeviceGetEnforcedPowerLimit == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetEnforcedPowerLimit = _cyb_dlsym(handle, 'nvmlDeviceGetEnforcedPowerLimit') - - global __nvmlDeviceGetGpuOperationMode - __nvmlDeviceGetGpuOperationMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGpuOperationMode') - if __nvmlDeviceGetGpuOperationMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGpuOperationMode = _cyb_dlsym(handle, 'nvmlDeviceGetGpuOperationMode') - - global __nvmlDeviceGetMemoryInfo_v2 - __nvmlDeviceGetMemoryInfo_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMemoryInfo_v2') - if __nvmlDeviceGetMemoryInfo_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMemoryInfo_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetMemoryInfo_v2') - - global __nvmlDeviceGetComputeMode - __nvmlDeviceGetComputeMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetComputeMode') - if __nvmlDeviceGetComputeMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetComputeMode = _cyb_dlsym(handle, 'nvmlDeviceGetComputeMode') - - global __nvmlDeviceGetCudaComputeCapability - __nvmlDeviceGetCudaComputeCapability = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetCudaComputeCapability') - if __nvmlDeviceGetCudaComputeCapability == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetCudaComputeCapability = _cyb_dlsym(handle, 'nvmlDeviceGetCudaComputeCapability') - - global __nvmlDeviceGetDramEncryptionMode - __nvmlDeviceGetDramEncryptionMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetDramEncryptionMode') - if __nvmlDeviceGetDramEncryptionMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetDramEncryptionMode = _cyb_dlsym(handle, 'nvmlDeviceGetDramEncryptionMode') - - global __nvmlDeviceSetDramEncryptionMode - __nvmlDeviceSetDramEncryptionMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetDramEncryptionMode') - if __nvmlDeviceSetDramEncryptionMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetDramEncryptionMode = _cyb_dlsym(handle, 'nvmlDeviceSetDramEncryptionMode') - - global __nvmlDeviceGetEccMode - __nvmlDeviceGetEccMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetEccMode') - if __nvmlDeviceGetEccMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetEccMode = _cyb_dlsym(handle, 'nvmlDeviceGetEccMode') - - global __nvmlDeviceGetDefaultEccMode - __nvmlDeviceGetDefaultEccMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetDefaultEccMode') - if __nvmlDeviceGetDefaultEccMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetDefaultEccMode = _cyb_dlsym(handle, 'nvmlDeviceGetDefaultEccMode') - - global __nvmlDeviceGetBoardId - __nvmlDeviceGetBoardId = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetBoardId') - if __nvmlDeviceGetBoardId == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetBoardId = _cyb_dlsym(handle, 'nvmlDeviceGetBoardId') - - global __nvmlDeviceGetMultiGpuBoard - __nvmlDeviceGetMultiGpuBoard = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMultiGpuBoard') - if __nvmlDeviceGetMultiGpuBoard == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMultiGpuBoard = _cyb_dlsym(handle, 'nvmlDeviceGetMultiGpuBoard') - - global __nvmlDeviceGetTotalEccErrors - __nvmlDeviceGetTotalEccErrors = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetTotalEccErrors') - if __nvmlDeviceGetTotalEccErrors == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetTotalEccErrors = _cyb_dlsym(handle, 'nvmlDeviceGetTotalEccErrors') - - global __nvmlDeviceGetMemoryErrorCounter - __nvmlDeviceGetMemoryErrorCounter = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMemoryErrorCounter') - if __nvmlDeviceGetMemoryErrorCounter == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMemoryErrorCounter = _cyb_dlsym(handle, 'nvmlDeviceGetMemoryErrorCounter') - - global __nvmlDeviceGetUtilizationRates - __nvmlDeviceGetUtilizationRates = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetUtilizationRates') - if __nvmlDeviceGetUtilizationRates == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetUtilizationRates = _cyb_dlsym(handle, 'nvmlDeviceGetUtilizationRates') - - global __nvmlDeviceGetEncoderUtilization - __nvmlDeviceGetEncoderUtilization = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetEncoderUtilization') - if __nvmlDeviceGetEncoderUtilization == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetEncoderUtilization = _cyb_dlsym(handle, 'nvmlDeviceGetEncoderUtilization') - - global __nvmlDeviceGetEncoderCapacity - __nvmlDeviceGetEncoderCapacity = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetEncoderCapacity') - if __nvmlDeviceGetEncoderCapacity == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetEncoderCapacity = _cyb_dlsym(handle, 'nvmlDeviceGetEncoderCapacity') - - global __nvmlDeviceGetEncoderStats - __nvmlDeviceGetEncoderStats = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetEncoderStats') - if __nvmlDeviceGetEncoderStats == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetEncoderStats = _cyb_dlsym(handle, 'nvmlDeviceGetEncoderStats') - - global __nvmlDeviceGetEncoderSessions - __nvmlDeviceGetEncoderSessions = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetEncoderSessions') - if __nvmlDeviceGetEncoderSessions == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetEncoderSessions = _cyb_dlsym(handle, 'nvmlDeviceGetEncoderSessions') - - global __nvmlDeviceGetDecoderUtilization - __nvmlDeviceGetDecoderUtilization = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetDecoderUtilization') - if __nvmlDeviceGetDecoderUtilization == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetDecoderUtilization = _cyb_dlsym(handle, 'nvmlDeviceGetDecoderUtilization') - - global __nvmlDeviceGetJpgUtilization - __nvmlDeviceGetJpgUtilization = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetJpgUtilization') - if __nvmlDeviceGetJpgUtilization == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetJpgUtilization = _cyb_dlsym(handle, 'nvmlDeviceGetJpgUtilization') - - global __nvmlDeviceGetOfaUtilization - __nvmlDeviceGetOfaUtilization = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetOfaUtilization') - if __nvmlDeviceGetOfaUtilization == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetOfaUtilization = _cyb_dlsym(handle, 'nvmlDeviceGetOfaUtilization') - - global __nvmlDeviceGetFBCStats - __nvmlDeviceGetFBCStats = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetFBCStats') - if __nvmlDeviceGetFBCStats == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetFBCStats = _cyb_dlsym(handle, 'nvmlDeviceGetFBCStats') - - global __nvmlDeviceGetFBCSessions - __nvmlDeviceGetFBCSessions = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetFBCSessions') - if __nvmlDeviceGetFBCSessions == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetFBCSessions = _cyb_dlsym(handle, 'nvmlDeviceGetFBCSessions') - - global __nvmlDeviceGetDriverModel_v2 - __nvmlDeviceGetDriverModel_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetDriverModel_v2') - if __nvmlDeviceGetDriverModel_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetDriverModel_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetDriverModel_v2') - - global __nvmlDeviceGetVbiosVersion - __nvmlDeviceGetVbiosVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVbiosVersion') - if __nvmlDeviceGetVbiosVersion == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVbiosVersion = _cyb_dlsym(handle, 'nvmlDeviceGetVbiosVersion') - - global __nvmlDeviceGetBridgeChipInfo - __nvmlDeviceGetBridgeChipInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetBridgeChipInfo') - if __nvmlDeviceGetBridgeChipInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetBridgeChipInfo = _cyb_dlsym(handle, 'nvmlDeviceGetBridgeChipInfo') - - global __nvmlDeviceGetComputeRunningProcesses_v3 - __nvmlDeviceGetComputeRunningProcesses_v3 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetComputeRunningProcesses_v3') - if __nvmlDeviceGetComputeRunningProcesses_v3 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetComputeRunningProcesses_v3 = _cyb_dlsym(handle, 'nvmlDeviceGetComputeRunningProcesses_v3') - - global __nvmlDeviceGetGraphicsRunningProcesses_v3 - __nvmlDeviceGetGraphicsRunningProcesses_v3 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGraphicsRunningProcesses_v3') - if __nvmlDeviceGetGraphicsRunningProcesses_v3 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGraphicsRunningProcesses_v3 = _cyb_dlsym(handle, 'nvmlDeviceGetGraphicsRunningProcesses_v3') - - global __nvmlDeviceGetMPSComputeRunningProcesses_v3 - __nvmlDeviceGetMPSComputeRunningProcesses_v3 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMPSComputeRunningProcesses_v3') - if __nvmlDeviceGetMPSComputeRunningProcesses_v3 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMPSComputeRunningProcesses_v3 = _cyb_dlsym(handle, 'nvmlDeviceGetMPSComputeRunningProcesses_v3') - - global __nvmlDeviceGetRunningProcessDetailList - __nvmlDeviceGetRunningProcessDetailList = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetRunningProcessDetailList') - if __nvmlDeviceGetRunningProcessDetailList == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetRunningProcessDetailList = _cyb_dlsym(handle, 'nvmlDeviceGetRunningProcessDetailList') - - global __nvmlDeviceOnSameBoard - __nvmlDeviceOnSameBoard = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceOnSameBoard') - if __nvmlDeviceOnSameBoard == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceOnSameBoard = _cyb_dlsym(handle, 'nvmlDeviceOnSameBoard') - - global __nvmlDeviceGetAPIRestriction - __nvmlDeviceGetAPIRestriction = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetAPIRestriction') - if __nvmlDeviceGetAPIRestriction == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetAPIRestriction = _cyb_dlsym(handle, 'nvmlDeviceGetAPIRestriction') - - global __nvmlDeviceGetSamples - __nvmlDeviceGetSamples = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetSamples') - if __nvmlDeviceGetSamples == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetSamples = _cyb_dlsym(handle, 'nvmlDeviceGetSamples') - - global __nvmlDeviceGetBAR1MemoryInfo - __nvmlDeviceGetBAR1MemoryInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetBAR1MemoryInfo') - if __nvmlDeviceGetBAR1MemoryInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetBAR1MemoryInfo = _cyb_dlsym(handle, 'nvmlDeviceGetBAR1MemoryInfo') - - global __nvmlDeviceGetIrqNum - __nvmlDeviceGetIrqNum = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetIrqNum') - if __nvmlDeviceGetIrqNum == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetIrqNum = _cyb_dlsym(handle, 'nvmlDeviceGetIrqNum') - - global __nvmlDeviceGetNumGpuCores - __nvmlDeviceGetNumGpuCores = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNumGpuCores') - if __nvmlDeviceGetNumGpuCores == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNumGpuCores = _cyb_dlsym(handle, 'nvmlDeviceGetNumGpuCores') - - global __nvmlDeviceGetPowerSource - __nvmlDeviceGetPowerSource = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPowerSource') - if __nvmlDeviceGetPowerSource == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPowerSource = _cyb_dlsym(handle, 'nvmlDeviceGetPowerSource') - - global __nvmlDeviceGetMemoryBusWidth - __nvmlDeviceGetMemoryBusWidth = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMemoryBusWidth') - if __nvmlDeviceGetMemoryBusWidth == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMemoryBusWidth = _cyb_dlsym(handle, 'nvmlDeviceGetMemoryBusWidth') - - global __nvmlDeviceGetPcieLinkMaxSpeed - __nvmlDeviceGetPcieLinkMaxSpeed = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPcieLinkMaxSpeed') - if __nvmlDeviceGetPcieLinkMaxSpeed == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPcieLinkMaxSpeed = _cyb_dlsym(handle, 'nvmlDeviceGetPcieLinkMaxSpeed') - - global __nvmlDeviceGetPcieSpeed - __nvmlDeviceGetPcieSpeed = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPcieSpeed') - if __nvmlDeviceGetPcieSpeed == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPcieSpeed = _cyb_dlsym(handle, 'nvmlDeviceGetPcieSpeed') - - global __nvmlDeviceGetAdaptiveClockInfoStatus - __nvmlDeviceGetAdaptiveClockInfoStatus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetAdaptiveClockInfoStatus') - if __nvmlDeviceGetAdaptiveClockInfoStatus == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetAdaptiveClockInfoStatus = _cyb_dlsym(handle, 'nvmlDeviceGetAdaptiveClockInfoStatus') - - global __nvmlDeviceGetBusType - __nvmlDeviceGetBusType = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetBusType') - if __nvmlDeviceGetBusType == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetBusType = _cyb_dlsym(handle, 'nvmlDeviceGetBusType') - - global __nvmlDeviceGetGpuFabricInfoV - __nvmlDeviceGetGpuFabricInfoV = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGpuFabricInfoV') - if __nvmlDeviceGetGpuFabricInfoV == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGpuFabricInfoV = _cyb_dlsym(handle, 'nvmlDeviceGetGpuFabricInfoV') - - global __nvmlSystemGetConfComputeCapabilities - __nvmlSystemGetConfComputeCapabilities = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetConfComputeCapabilities') - if __nvmlSystemGetConfComputeCapabilities == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetConfComputeCapabilities = _cyb_dlsym(handle, 'nvmlSystemGetConfComputeCapabilities') - - global __nvmlSystemGetConfComputeState - __nvmlSystemGetConfComputeState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetConfComputeState') - if __nvmlSystemGetConfComputeState == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetConfComputeState = _cyb_dlsym(handle, 'nvmlSystemGetConfComputeState') - - global __nvmlDeviceGetConfComputeMemSizeInfo - __nvmlDeviceGetConfComputeMemSizeInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetConfComputeMemSizeInfo') - if __nvmlDeviceGetConfComputeMemSizeInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetConfComputeMemSizeInfo = _cyb_dlsym(handle, 'nvmlDeviceGetConfComputeMemSizeInfo') - - global __nvmlSystemGetConfComputeGpusReadyState - __nvmlSystemGetConfComputeGpusReadyState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetConfComputeGpusReadyState') - if __nvmlSystemGetConfComputeGpusReadyState == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetConfComputeGpusReadyState = _cyb_dlsym(handle, 'nvmlSystemGetConfComputeGpusReadyState') - - global __nvmlDeviceGetConfComputeProtectedMemoryUsage - __nvmlDeviceGetConfComputeProtectedMemoryUsage = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetConfComputeProtectedMemoryUsage') - if __nvmlDeviceGetConfComputeProtectedMemoryUsage == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetConfComputeProtectedMemoryUsage = _cyb_dlsym(handle, 'nvmlDeviceGetConfComputeProtectedMemoryUsage') - - global __nvmlDeviceGetConfComputeGpuCertificate - __nvmlDeviceGetConfComputeGpuCertificate = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetConfComputeGpuCertificate') - if __nvmlDeviceGetConfComputeGpuCertificate == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetConfComputeGpuCertificate = _cyb_dlsym(handle, 'nvmlDeviceGetConfComputeGpuCertificate') - - global __nvmlDeviceGetConfComputeGpuAttestationReport - __nvmlDeviceGetConfComputeGpuAttestationReport = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetConfComputeGpuAttestationReport') - if __nvmlDeviceGetConfComputeGpuAttestationReport == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetConfComputeGpuAttestationReport = _cyb_dlsym(handle, 'nvmlDeviceGetConfComputeGpuAttestationReport') - - global __nvmlSystemGetConfComputeKeyRotationThresholdInfo - __nvmlSystemGetConfComputeKeyRotationThresholdInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetConfComputeKeyRotationThresholdInfo') - if __nvmlSystemGetConfComputeKeyRotationThresholdInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetConfComputeKeyRotationThresholdInfo = _cyb_dlsym(handle, 'nvmlSystemGetConfComputeKeyRotationThresholdInfo') - - global __nvmlDeviceSetConfComputeUnprotectedMemSize - __nvmlDeviceSetConfComputeUnprotectedMemSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetConfComputeUnprotectedMemSize') - if __nvmlDeviceSetConfComputeUnprotectedMemSize == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetConfComputeUnprotectedMemSize = _cyb_dlsym(handle, 'nvmlDeviceSetConfComputeUnprotectedMemSize') - - global __nvmlSystemSetConfComputeGpusReadyState - __nvmlSystemSetConfComputeGpusReadyState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemSetConfComputeGpusReadyState') - if __nvmlSystemSetConfComputeGpusReadyState == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemSetConfComputeGpusReadyState = _cyb_dlsym(handle, 'nvmlSystemSetConfComputeGpusReadyState') - - global __nvmlSystemSetConfComputeKeyRotationThresholdInfo - __nvmlSystemSetConfComputeKeyRotationThresholdInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemSetConfComputeKeyRotationThresholdInfo') - if __nvmlSystemSetConfComputeKeyRotationThresholdInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemSetConfComputeKeyRotationThresholdInfo = _cyb_dlsym(handle, 'nvmlSystemSetConfComputeKeyRotationThresholdInfo') - - global __nvmlSystemGetConfComputeSettings - __nvmlSystemGetConfComputeSettings = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetConfComputeSettings') - if __nvmlSystemGetConfComputeSettings == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetConfComputeSettings = _cyb_dlsym(handle, 'nvmlSystemGetConfComputeSettings') - - global __nvmlDeviceGetGspFirmwareVersion - __nvmlDeviceGetGspFirmwareVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGspFirmwareVersion') - if __nvmlDeviceGetGspFirmwareVersion == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGspFirmwareVersion = _cyb_dlsym(handle, 'nvmlDeviceGetGspFirmwareVersion') - - global __nvmlDeviceGetGspFirmwareMode - __nvmlDeviceGetGspFirmwareMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGspFirmwareMode') - if __nvmlDeviceGetGspFirmwareMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGspFirmwareMode = _cyb_dlsym(handle, 'nvmlDeviceGetGspFirmwareMode') - - global __nvmlDeviceGetSramEccErrorStatus - __nvmlDeviceGetSramEccErrorStatus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetSramEccErrorStatus') - if __nvmlDeviceGetSramEccErrorStatus == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetSramEccErrorStatus = _cyb_dlsym(handle, 'nvmlDeviceGetSramEccErrorStatus') - - global __nvmlDeviceGetAccountingMode - __nvmlDeviceGetAccountingMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetAccountingMode') - if __nvmlDeviceGetAccountingMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetAccountingMode = _cyb_dlsym(handle, 'nvmlDeviceGetAccountingMode') - - global __nvmlDeviceGetAccountingStats - __nvmlDeviceGetAccountingStats = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetAccountingStats') - if __nvmlDeviceGetAccountingStats == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetAccountingStats = _cyb_dlsym(handle, 'nvmlDeviceGetAccountingStats') - - global __nvmlDeviceGetAccountingPids - __nvmlDeviceGetAccountingPids = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetAccountingPids') - if __nvmlDeviceGetAccountingPids == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetAccountingPids = _cyb_dlsym(handle, 'nvmlDeviceGetAccountingPids') - - global __nvmlDeviceGetAccountingBufferSize - __nvmlDeviceGetAccountingBufferSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetAccountingBufferSize') - if __nvmlDeviceGetAccountingBufferSize == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetAccountingBufferSize = _cyb_dlsym(handle, 'nvmlDeviceGetAccountingBufferSize') - - global __nvmlDeviceGetRetiredPages - __nvmlDeviceGetRetiredPages = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetRetiredPages') - if __nvmlDeviceGetRetiredPages == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetRetiredPages = _cyb_dlsym(handle, 'nvmlDeviceGetRetiredPages') - - global __nvmlDeviceGetRetiredPages_v2 - __nvmlDeviceGetRetiredPages_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetRetiredPages_v2') - if __nvmlDeviceGetRetiredPages_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetRetiredPages_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetRetiredPages_v2') - - global __nvmlDeviceGetRetiredPagesPendingStatus - __nvmlDeviceGetRetiredPagesPendingStatus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetRetiredPagesPendingStatus') - if __nvmlDeviceGetRetiredPagesPendingStatus == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetRetiredPagesPendingStatus = _cyb_dlsym(handle, 'nvmlDeviceGetRetiredPagesPendingStatus') - - global __nvmlDeviceGetRemappedRows - __nvmlDeviceGetRemappedRows = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetRemappedRows') - if __nvmlDeviceGetRemappedRows == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetRemappedRows = _cyb_dlsym(handle, 'nvmlDeviceGetRemappedRows') - - global __nvmlDeviceGetRowRemapperHistogram - __nvmlDeviceGetRowRemapperHistogram = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetRowRemapperHistogram') - if __nvmlDeviceGetRowRemapperHistogram == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetRowRemapperHistogram = _cyb_dlsym(handle, 'nvmlDeviceGetRowRemapperHistogram') - - global __nvmlDeviceGetArchitecture - __nvmlDeviceGetArchitecture = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetArchitecture') - if __nvmlDeviceGetArchitecture == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetArchitecture = _cyb_dlsym(handle, 'nvmlDeviceGetArchitecture') - - global __nvmlDeviceGetClkMonStatus - __nvmlDeviceGetClkMonStatus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetClkMonStatus') - if __nvmlDeviceGetClkMonStatus == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetClkMonStatus = _cyb_dlsym(handle, 'nvmlDeviceGetClkMonStatus') - - global __nvmlDeviceGetProcessUtilization - __nvmlDeviceGetProcessUtilization = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetProcessUtilization') - if __nvmlDeviceGetProcessUtilization == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetProcessUtilization = _cyb_dlsym(handle, 'nvmlDeviceGetProcessUtilization') - - global __nvmlDeviceGetProcessesUtilizationInfo - __nvmlDeviceGetProcessesUtilizationInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetProcessesUtilizationInfo') - if __nvmlDeviceGetProcessesUtilizationInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetProcessesUtilizationInfo = _cyb_dlsym(handle, 'nvmlDeviceGetProcessesUtilizationInfo') - - global __nvmlDeviceGetPlatformInfo - __nvmlDeviceGetPlatformInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPlatformInfo') - if __nvmlDeviceGetPlatformInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPlatformInfo = _cyb_dlsym(handle, 'nvmlDeviceGetPlatformInfo') - - global __nvmlUnitSetLedState - __nvmlUnitSetLedState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlUnitSetLedState') - if __nvmlUnitSetLedState == NULL: - if handle == NULL: - handle = load_library() - __nvmlUnitSetLedState = _cyb_dlsym(handle, 'nvmlUnitSetLedState') - - global __nvmlDeviceSetPersistenceMode - __nvmlDeviceSetPersistenceMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetPersistenceMode') - if __nvmlDeviceSetPersistenceMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetPersistenceMode = _cyb_dlsym(handle, 'nvmlDeviceSetPersistenceMode') - - global __nvmlDeviceSetComputeMode - __nvmlDeviceSetComputeMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetComputeMode') - if __nvmlDeviceSetComputeMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetComputeMode = _cyb_dlsym(handle, 'nvmlDeviceSetComputeMode') - - global __nvmlDeviceSetEccMode - __nvmlDeviceSetEccMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetEccMode') - if __nvmlDeviceSetEccMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetEccMode = _cyb_dlsym(handle, 'nvmlDeviceSetEccMode') - - global __nvmlDeviceClearEccErrorCounts - __nvmlDeviceClearEccErrorCounts = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceClearEccErrorCounts') - if __nvmlDeviceClearEccErrorCounts == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceClearEccErrorCounts = _cyb_dlsym(handle, 'nvmlDeviceClearEccErrorCounts') - - global __nvmlDeviceSetDriverModel - __nvmlDeviceSetDriverModel = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetDriverModel') - if __nvmlDeviceSetDriverModel == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetDriverModel = _cyb_dlsym(handle, 'nvmlDeviceSetDriverModel') - - global __nvmlDeviceSetGpuLockedClocks - __nvmlDeviceSetGpuLockedClocks = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetGpuLockedClocks') - if __nvmlDeviceSetGpuLockedClocks == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetGpuLockedClocks = _cyb_dlsym(handle, 'nvmlDeviceSetGpuLockedClocks') - - global __nvmlDeviceResetGpuLockedClocks - __nvmlDeviceResetGpuLockedClocks = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceResetGpuLockedClocks') - if __nvmlDeviceResetGpuLockedClocks == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceResetGpuLockedClocks = _cyb_dlsym(handle, 'nvmlDeviceResetGpuLockedClocks') - - global __nvmlDeviceSetMemoryLockedClocks - __nvmlDeviceSetMemoryLockedClocks = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetMemoryLockedClocks') - if __nvmlDeviceSetMemoryLockedClocks == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetMemoryLockedClocks = _cyb_dlsym(handle, 'nvmlDeviceSetMemoryLockedClocks') - - global __nvmlDeviceResetMemoryLockedClocks - __nvmlDeviceResetMemoryLockedClocks = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceResetMemoryLockedClocks') - if __nvmlDeviceResetMemoryLockedClocks == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceResetMemoryLockedClocks = _cyb_dlsym(handle, 'nvmlDeviceResetMemoryLockedClocks') - - global __nvmlDeviceSetAutoBoostedClocksEnabled - __nvmlDeviceSetAutoBoostedClocksEnabled = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetAutoBoostedClocksEnabled') - if __nvmlDeviceSetAutoBoostedClocksEnabled == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetAutoBoostedClocksEnabled = _cyb_dlsym(handle, 'nvmlDeviceSetAutoBoostedClocksEnabled') - - global __nvmlDeviceSetDefaultAutoBoostedClocksEnabled - __nvmlDeviceSetDefaultAutoBoostedClocksEnabled = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetDefaultAutoBoostedClocksEnabled') - if __nvmlDeviceSetDefaultAutoBoostedClocksEnabled == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetDefaultAutoBoostedClocksEnabled = _cyb_dlsym(handle, 'nvmlDeviceSetDefaultAutoBoostedClocksEnabled') - - global __nvmlDeviceSetDefaultFanSpeed_v2 - __nvmlDeviceSetDefaultFanSpeed_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetDefaultFanSpeed_v2') - if __nvmlDeviceSetDefaultFanSpeed_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetDefaultFanSpeed_v2 = _cyb_dlsym(handle, 'nvmlDeviceSetDefaultFanSpeed_v2') - - global __nvmlDeviceSetFanControlPolicy - __nvmlDeviceSetFanControlPolicy = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetFanControlPolicy') - if __nvmlDeviceSetFanControlPolicy == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetFanControlPolicy = _cyb_dlsym(handle, 'nvmlDeviceSetFanControlPolicy') - - global __nvmlDeviceSetTemperatureThreshold - __nvmlDeviceSetTemperatureThreshold = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetTemperatureThreshold') - if __nvmlDeviceSetTemperatureThreshold == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetTemperatureThreshold = _cyb_dlsym(handle, 'nvmlDeviceSetTemperatureThreshold') - - global __nvmlDeviceSetGpuOperationMode - __nvmlDeviceSetGpuOperationMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetGpuOperationMode') - if __nvmlDeviceSetGpuOperationMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetGpuOperationMode = _cyb_dlsym(handle, 'nvmlDeviceSetGpuOperationMode') - - global __nvmlDeviceSetAPIRestriction - __nvmlDeviceSetAPIRestriction = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetAPIRestriction') - if __nvmlDeviceSetAPIRestriction == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetAPIRestriction = _cyb_dlsym(handle, 'nvmlDeviceSetAPIRestriction') - - global __nvmlDeviceSetFanSpeed_v2 - __nvmlDeviceSetFanSpeed_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetFanSpeed_v2') - if __nvmlDeviceSetFanSpeed_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetFanSpeed_v2 = _cyb_dlsym(handle, 'nvmlDeviceSetFanSpeed_v2') - - global __nvmlDeviceSetAccountingMode - __nvmlDeviceSetAccountingMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetAccountingMode') - if __nvmlDeviceSetAccountingMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetAccountingMode = _cyb_dlsym(handle, 'nvmlDeviceSetAccountingMode') - - global __nvmlDeviceClearAccountingPids - __nvmlDeviceClearAccountingPids = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceClearAccountingPids') - if __nvmlDeviceClearAccountingPids == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceClearAccountingPids = _cyb_dlsym(handle, 'nvmlDeviceClearAccountingPids') - - global __nvmlDeviceSetPowerManagementLimit_v2 - __nvmlDeviceSetPowerManagementLimit_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetPowerManagementLimit_v2') - if __nvmlDeviceSetPowerManagementLimit_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetPowerManagementLimit_v2 = _cyb_dlsym(handle, 'nvmlDeviceSetPowerManagementLimit_v2') - - global __nvmlDeviceGetNvLinkState - __nvmlDeviceGetNvLinkState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNvLinkState') - if __nvmlDeviceGetNvLinkState == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNvLinkState = _cyb_dlsym(handle, 'nvmlDeviceGetNvLinkState') - - global __nvmlDeviceGetNvLinkVersion - __nvmlDeviceGetNvLinkVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNvLinkVersion') - if __nvmlDeviceGetNvLinkVersion == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNvLinkVersion = _cyb_dlsym(handle, 'nvmlDeviceGetNvLinkVersion') - - global __nvmlDeviceGetNvLinkCapability - __nvmlDeviceGetNvLinkCapability = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNvLinkCapability') - if __nvmlDeviceGetNvLinkCapability == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNvLinkCapability = _cyb_dlsym(handle, 'nvmlDeviceGetNvLinkCapability') - - global __nvmlDeviceGetNvLinkRemotePciInfo_v2 - __nvmlDeviceGetNvLinkRemotePciInfo_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNvLinkRemotePciInfo_v2') - if __nvmlDeviceGetNvLinkRemotePciInfo_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNvLinkRemotePciInfo_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetNvLinkRemotePciInfo_v2') - - global __nvmlDeviceGetNvLinkErrorCounter - __nvmlDeviceGetNvLinkErrorCounter = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNvLinkErrorCounter') - if __nvmlDeviceGetNvLinkErrorCounter == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNvLinkErrorCounter = _cyb_dlsym(handle, 'nvmlDeviceGetNvLinkErrorCounter') - - global __nvmlDeviceResetNvLinkErrorCounters - __nvmlDeviceResetNvLinkErrorCounters = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceResetNvLinkErrorCounters') - if __nvmlDeviceResetNvLinkErrorCounters == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceResetNvLinkErrorCounters = _cyb_dlsym(handle, 'nvmlDeviceResetNvLinkErrorCounters') - - global __nvmlDeviceGetNvLinkRemoteDeviceType - __nvmlDeviceGetNvLinkRemoteDeviceType = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNvLinkRemoteDeviceType') - if __nvmlDeviceGetNvLinkRemoteDeviceType == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNvLinkRemoteDeviceType = _cyb_dlsym(handle, 'nvmlDeviceGetNvLinkRemoteDeviceType') - - global __nvmlDeviceSetNvLinkDeviceLowPowerThreshold - __nvmlDeviceSetNvLinkDeviceLowPowerThreshold = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetNvLinkDeviceLowPowerThreshold') - if __nvmlDeviceSetNvLinkDeviceLowPowerThreshold == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetNvLinkDeviceLowPowerThreshold = _cyb_dlsym(handle, 'nvmlDeviceSetNvLinkDeviceLowPowerThreshold') - - global __nvmlSystemSetNvlinkBwMode - __nvmlSystemSetNvlinkBwMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemSetNvlinkBwMode') - if __nvmlSystemSetNvlinkBwMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemSetNvlinkBwMode = _cyb_dlsym(handle, 'nvmlSystemSetNvlinkBwMode') - - global __nvmlSystemGetNvlinkBwMode - __nvmlSystemGetNvlinkBwMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetNvlinkBwMode') - if __nvmlSystemGetNvlinkBwMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetNvlinkBwMode = _cyb_dlsym(handle, 'nvmlSystemGetNvlinkBwMode') - - global __nvmlDeviceGetNvlinkSupportedBwModes - __nvmlDeviceGetNvlinkSupportedBwModes = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNvlinkSupportedBwModes') - if __nvmlDeviceGetNvlinkSupportedBwModes == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNvlinkSupportedBwModes = _cyb_dlsym(handle, 'nvmlDeviceGetNvlinkSupportedBwModes') - - global __nvmlDeviceGetNvlinkBwMode - __nvmlDeviceGetNvlinkBwMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNvlinkBwMode') - if __nvmlDeviceGetNvlinkBwMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNvlinkBwMode = _cyb_dlsym(handle, 'nvmlDeviceGetNvlinkBwMode') - - global __nvmlDeviceSetNvlinkBwMode - __nvmlDeviceSetNvlinkBwMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetNvlinkBwMode') - if __nvmlDeviceSetNvlinkBwMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetNvlinkBwMode = _cyb_dlsym(handle, 'nvmlDeviceSetNvlinkBwMode') - - global __nvmlEventSetCreate - __nvmlEventSetCreate = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlEventSetCreate') - if __nvmlEventSetCreate == NULL: - if handle == NULL: - handle = load_library() - __nvmlEventSetCreate = _cyb_dlsym(handle, 'nvmlEventSetCreate') - - global __nvmlDeviceRegisterEvents - __nvmlDeviceRegisterEvents = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceRegisterEvents') - if __nvmlDeviceRegisterEvents == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceRegisterEvents = _cyb_dlsym(handle, 'nvmlDeviceRegisterEvents') - - global __nvmlDeviceGetSupportedEventTypes - __nvmlDeviceGetSupportedEventTypes = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetSupportedEventTypes') - if __nvmlDeviceGetSupportedEventTypes == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetSupportedEventTypes = _cyb_dlsym(handle, 'nvmlDeviceGetSupportedEventTypes') - - global __nvmlEventSetWait_v2 - __nvmlEventSetWait_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlEventSetWait_v2') - if __nvmlEventSetWait_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlEventSetWait_v2 = _cyb_dlsym(handle, 'nvmlEventSetWait_v2') - - global __nvmlEventSetFree - __nvmlEventSetFree = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlEventSetFree') - if __nvmlEventSetFree == NULL: - if handle == NULL: - handle = load_library() - __nvmlEventSetFree = _cyb_dlsym(handle, 'nvmlEventSetFree') - - global __nvmlSystemEventSetCreate - __nvmlSystemEventSetCreate = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemEventSetCreate') - if __nvmlSystemEventSetCreate == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemEventSetCreate = _cyb_dlsym(handle, 'nvmlSystemEventSetCreate') - - global __nvmlSystemEventSetFree - __nvmlSystemEventSetFree = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemEventSetFree') - if __nvmlSystemEventSetFree == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemEventSetFree = _cyb_dlsym(handle, 'nvmlSystemEventSetFree') - - global __nvmlSystemRegisterEvents - __nvmlSystemRegisterEvents = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemRegisterEvents') - if __nvmlSystemRegisterEvents == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemRegisterEvents = _cyb_dlsym(handle, 'nvmlSystemRegisterEvents') - - global __nvmlSystemEventSetWait - __nvmlSystemEventSetWait = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemEventSetWait') - if __nvmlSystemEventSetWait == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemEventSetWait = _cyb_dlsym(handle, 'nvmlSystemEventSetWait') - - global __nvmlDeviceModifyDrainState - __nvmlDeviceModifyDrainState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceModifyDrainState') - if __nvmlDeviceModifyDrainState == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceModifyDrainState = _cyb_dlsym(handle, 'nvmlDeviceModifyDrainState') - - global __nvmlDeviceQueryDrainState - __nvmlDeviceQueryDrainState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceQueryDrainState') - if __nvmlDeviceQueryDrainState == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceQueryDrainState = _cyb_dlsym(handle, 'nvmlDeviceQueryDrainState') - - global __nvmlDeviceRemoveGpu_v2 - __nvmlDeviceRemoveGpu_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceRemoveGpu_v2') - if __nvmlDeviceRemoveGpu_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceRemoveGpu_v2 = _cyb_dlsym(handle, 'nvmlDeviceRemoveGpu_v2') - - global __nvmlDeviceDiscoverGpus - __nvmlDeviceDiscoverGpus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceDiscoverGpus') - if __nvmlDeviceDiscoverGpus == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceDiscoverGpus = _cyb_dlsym(handle, 'nvmlDeviceDiscoverGpus') - - global __nvmlDeviceGetFieldValues - __nvmlDeviceGetFieldValues = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetFieldValues') - if __nvmlDeviceGetFieldValues == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetFieldValues = _cyb_dlsym(handle, 'nvmlDeviceGetFieldValues') - - global __nvmlDeviceClearFieldValues - __nvmlDeviceClearFieldValues = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceClearFieldValues') - if __nvmlDeviceClearFieldValues == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceClearFieldValues = _cyb_dlsym(handle, 'nvmlDeviceClearFieldValues') - - global __nvmlDeviceGetVirtualizationMode - __nvmlDeviceGetVirtualizationMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVirtualizationMode') - if __nvmlDeviceGetVirtualizationMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVirtualizationMode = _cyb_dlsym(handle, 'nvmlDeviceGetVirtualizationMode') - - global __nvmlDeviceGetHostVgpuMode - __nvmlDeviceGetHostVgpuMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetHostVgpuMode') - if __nvmlDeviceGetHostVgpuMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetHostVgpuMode = _cyb_dlsym(handle, 'nvmlDeviceGetHostVgpuMode') - - global __nvmlDeviceSetVirtualizationMode - __nvmlDeviceSetVirtualizationMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetVirtualizationMode') - if __nvmlDeviceSetVirtualizationMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetVirtualizationMode = _cyb_dlsym(handle, 'nvmlDeviceSetVirtualizationMode') - - global __nvmlDeviceGetVgpuHeterogeneousMode - __nvmlDeviceGetVgpuHeterogeneousMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuHeterogeneousMode') - if __nvmlDeviceGetVgpuHeterogeneousMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuHeterogeneousMode = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuHeterogeneousMode') - - global __nvmlDeviceSetVgpuHeterogeneousMode - __nvmlDeviceSetVgpuHeterogeneousMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetVgpuHeterogeneousMode') - if __nvmlDeviceSetVgpuHeterogeneousMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetVgpuHeterogeneousMode = _cyb_dlsym(handle, 'nvmlDeviceSetVgpuHeterogeneousMode') - - global __nvmlVgpuInstanceGetPlacementId - __nvmlVgpuInstanceGetPlacementId = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetPlacementId') - if __nvmlVgpuInstanceGetPlacementId == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetPlacementId = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetPlacementId') - - global __nvmlDeviceGetVgpuTypeSupportedPlacements - __nvmlDeviceGetVgpuTypeSupportedPlacements = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuTypeSupportedPlacements') - if __nvmlDeviceGetVgpuTypeSupportedPlacements == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuTypeSupportedPlacements = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuTypeSupportedPlacements') - - global __nvmlDeviceGetVgpuTypeCreatablePlacements - __nvmlDeviceGetVgpuTypeCreatablePlacements = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuTypeCreatablePlacements') - if __nvmlDeviceGetVgpuTypeCreatablePlacements == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuTypeCreatablePlacements = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuTypeCreatablePlacements') - - global __nvmlVgpuTypeGetGspHeapSize - __nvmlVgpuTypeGetGspHeapSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetGspHeapSize') - if __nvmlVgpuTypeGetGspHeapSize == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetGspHeapSize = _cyb_dlsym(handle, 'nvmlVgpuTypeGetGspHeapSize') - - global __nvmlVgpuTypeGetFbReservation - __nvmlVgpuTypeGetFbReservation = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetFbReservation') - if __nvmlVgpuTypeGetFbReservation == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetFbReservation = _cyb_dlsym(handle, 'nvmlVgpuTypeGetFbReservation') - - global __nvmlVgpuInstanceGetRuntimeStateSize - __nvmlVgpuInstanceGetRuntimeStateSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetRuntimeStateSize') - if __nvmlVgpuInstanceGetRuntimeStateSize == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetRuntimeStateSize = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetRuntimeStateSize') - - global __nvmlDeviceSetVgpuCapabilities - __nvmlDeviceSetVgpuCapabilities = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetVgpuCapabilities') - if __nvmlDeviceSetVgpuCapabilities == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetVgpuCapabilities = _cyb_dlsym(handle, 'nvmlDeviceSetVgpuCapabilities') - - global __nvmlDeviceGetGridLicensableFeatures_v4 - __nvmlDeviceGetGridLicensableFeatures_v4 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGridLicensableFeatures_v4') - if __nvmlDeviceGetGridLicensableFeatures_v4 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGridLicensableFeatures_v4 = _cyb_dlsym(handle, 'nvmlDeviceGetGridLicensableFeatures_v4') - - global __nvmlGetVgpuDriverCapabilities - __nvmlGetVgpuDriverCapabilities = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGetVgpuDriverCapabilities') - if __nvmlGetVgpuDriverCapabilities == NULL: - if handle == NULL: - handle = load_library() - __nvmlGetVgpuDriverCapabilities = _cyb_dlsym(handle, 'nvmlGetVgpuDriverCapabilities') - - global __nvmlDeviceGetVgpuCapabilities - __nvmlDeviceGetVgpuCapabilities = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuCapabilities') - if __nvmlDeviceGetVgpuCapabilities == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuCapabilities = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuCapabilities') - - global __nvmlDeviceGetSupportedVgpus - __nvmlDeviceGetSupportedVgpus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetSupportedVgpus') - if __nvmlDeviceGetSupportedVgpus == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetSupportedVgpus = _cyb_dlsym(handle, 'nvmlDeviceGetSupportedVgpus') - - global __nvmlDeviceGetCreatableVgpus - __nvmlDeviceGetCreatableVgpus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetCreatableVgpus') - if __nvmlDeviceGetCreatableVgpus == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetCreatableVgpus = _cyb_dlsym(handle, 'nvmlDeviceGetCreatableVgpus') - - global __nvmlVgpuTypeGetClass - __nvmlVgpuTypeGetClass = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetClass') - if __nvmlVgpuTypeGetClass == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetClass = _cyb_dlsym(handle, 'nvmlVgpuTypeGetClass') - - global __nvmlVgpuTypeGetName - __nvmlVgpuTypeGetName = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetName') - if __nvmlVgpuTypeGetName == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetName = _cyb_dlsym(handle, 'nvmlVgpuTypeGetName') - - global __nvmlVgpuTypeGetGpuInstanceProfileId - __nvmlVgpuTypeGetGpuInstanceProfileId = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetGpuInstanceProfileId') - if __nvmlVgpuTypeGetGpuInstanceProfileId == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetGpuInstanceProfileId = _cyb_dlsym(handle, 'nvmlVgpuTypeGetGpuInstanceProfileId') - - global __nvmlVgpuTypeGetDeviceID - __nvmlVgpuTypeGetDeviceID = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetDeviceID') - if __nvmlVgpuTypeGetDeviceID == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetDeviceID = _cyb_dlsym(handle, 'nvmlVgpuTypeGetDeviceID') - - global __nvmlVgpuTypeGetFramebufferSize - __nvmlVgpuTypeGetFramebufferSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetFramebufferSize') - if __nvmlVgpuTypeGetFramebufferSize == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetFramebufferSize = _cyb_dlsym(handle, 'nvmlVgpuTypeGetFramebufferSize') - - global __nvmlVgpuTypeGetNumDisplayHeads - __nvmlVgpuTypeGetNumDisplayHeads = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetNumDisplayHeads') - if __nvmlVgpuTypeGetNumDisplayHeads == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetNumDisplayHeads = _cyb_dlsym(handle, 'nvmlVgpuTypeGetNumDisplayHeads') - - global __nvmlVgpuTypeGetResolution - __nvmlVgpuTypeGetResolution = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetResolution') - if __nvmlVgpuTypeGetResolution == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetResolution = _cyb_dlsym(handle, 'nvmlVgpuTypeGetResolution') - - global __nvmlVgpuTypeGetLicense - __nvmlVgpuTypeGetLicense = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetLicense') - if __nvmlVgpuTypeGetLicense == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetLicense = _cyb_dlsym(handle, 'nvmlVgpuTypeGetLicense') - - global __nvmlVgpuTypeGetFrameRateLimit - __nvmlVgpuTypeGetFrameRateLimit = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetFrameRateLimit') - if __nvmlVgpuTypeGetFrameRateLimit == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetFrameRateLimit = _cyb_dlsym(handle, 'nvmlVgpuTypeGetFrameRateLimit') - - global __nvmlVgpuTypeGetMaxInstances - __nvmlVgpuTypeGetMaxInstances = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetMaxInstances') - if __nvmlVgpuTypeGetMaxInstances == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetMaxInstances = _cyb_dlsym(handle, 'nvmlVgpuTypeGetMaxInstances') - - global __nvmlVgpuTypeGetMaxInstancesPerVm - __nvmlVgpuTypeGetMaxInstancesPerVm = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetMaxInstancesPerVm') - if __nvmlVgpuTypeGetMaxInstancesPerVm == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetMaxInstancesPerVm = _cyb_dlsym(handle, 'nvmlVgpuTypeGetMaxInstancesPerVm') - - global __nvmlVgpuTypeGetBAR1Info - __nvmlVgpuTypeGetBAR1Info = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetBAR1Info') - if __nvmlVgpuTypeGetBAR1Info == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetBAR1Info = _cyb_dlsym(handle, 'nvmlVgpuTypeGetBAR1Info') - - global __nvmlDeviceGetActiveVgpus - __nvmlDeviceGetActiveVgpus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetActiveVgpus') - if __nvmlDeviceGetActiveVgpus == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetActiveVgpus = _cyb_dlsym(handle, 'nvmlDeviceGetActiveVgpus') - - global __nvmlVgpuInstanceGetVmID - __nvmlVgpuInstanceGetVmID = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetVmID') - if __nvmlVgpuInstanceGetVmID == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetVmID = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetVmID') - - global __nvmlVgpuInstanceGetUUID - __nvmlVgpuInstanceGetUUID = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetUUID') - if __nvmlVgpuInstanceGetUUID == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetUUID = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetUUID') - - global __nvmlVgpuInstanceGetVmDriverVersion - __nvmlVgpuInstanceGetVmDriverVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetVmDriverVersion') - if __nvmlVgpuInstanceGetVmDriverVersion == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetVmDriverVersion = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetVmDriverVersion') - - global __nvmlVgpuInstanceGetFbUsage - __nvmlVgpuInstanceGetFbUsage = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetFbUsage') - if __nvmlVgpuInstanceGetFbUsage == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetFbUsage = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetFbUsage') - - global __nvmlVgpuInstanceGetLicenseStatus - __nvmlVgpuInstanceGetLicenseStatus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetLicenseStatus') - if __nvmlVgpuInstanceGetLicenseStatus == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetLicenseStatus = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetLicenseStatus') - - global __nvmlVgpuInstanceGetType - __nvmlVgpuInstanceGetType = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetType') - if __nvmlVgpuInstanceGetType == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetType = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetType') - - global __nvmlVgpuInstanceGetFrameRateLimit - __nvmlVgpuInstanceGetFrameRateLimit = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetFrameRateLimit') - if __nvmlVgpuInstanceGetFrameRateLimit == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetFrameRateLimit = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetFrameRateLimit') - - global __nvmlVgpuInstanceGetEccMode - __nvmlVgpuInstanceGetEccMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetEccMode') - if __nvmlVgpuInstanceGetEccMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetEccMode = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetEccMode') - - global __nvmlVgpuInstanceGetEncoderCapacity - __nvmlVgpuInstanceGetEncoderCapacity = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetEncoderCapacity') - if __nvmlVgpuInstanceGetEncoderCapacity == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetEncoderCapacity = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetEncoderCapacity') - - global __nvmlVgpuInstanceSetEncoderCapacity - __nvmlVgpuInstanceSetEncoderCapacity = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceSetEncoderCapacity') - if __nvmlVgpuInstanceSetEncoderCapacity == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceSetEncoderCapacity = _cyb_dlsym(handle, 'nvmlVgpuInstanceSetEncoderCapacity') - - global __nvmlVgpuInstanceGetEncoderStats - __nvmlVgpuInstanceGetEncoderStats = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetEncoderStats') - if __nvmlVgpuInstanceGetEncoderStats == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetEncoderStats = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetEncoderStats') - - global __nvmlVgpuInstanceGetEncoderSessions - __nvmlVgpuInstanceGetEncoderSessions = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetEncoderSessions') - if __nvmlVgpuInstanceGetEncoderSessions == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetEncoderSessions = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetEncoderSessions') - - global __nvmlVgpuInstanceGetFBCStats - __nvmlVgpuInstanceGetFBCStats = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetFBCStats') - if __nvmlVgpuInstanceGetFBCStats == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetFBCStats = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetFBCStats') - - global __nvmlVgpuInstanceGetFBCSessions - __nvmlVgpuInstanceGetFBCSessions = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetFBCSessions') - if __nvmlVgpuInstanceGetFBCSessions == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetFBCSessions = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetFBCSessions') - - global __nvmlVgpuInstanceGetGpuInstanceId - __nvmlVgpuInstanceGetGpuInstanceId = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetGpuInstanceId') - if __nvmlVgpuInstanceGetGpuInstanceId == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetGpuInstanceId = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetGpuInstanceId') - - global __nvmlVgpuInstanceGetGpuPciId - __nvmlVgpuInstanceGetGpuPciId = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetGpuPciId') - if __nvmlVgpuInstanceGetGpuPciId == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetGpuPciId = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetGpuPciId') - - global __nvmlVgpuTypeGetCapabilities - __nvmlVgpuTypeGetCapabilities = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetCapabilities') - if __nvmlVgpuTypeGetCapabilities == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetCapabilities = _cyb_dlsym(handle, 'nvmlVgpuTypeGetCapabilities') - - global __nvmlVgpuInstanceGetMdevUUID - __nvmlVgpuInstanceGetMdevUUID = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetMdevUUID') - if __nvmlVgpuInstanceGetMdevUUID == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetMdevUUID = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetMdevUUID') - - global __nvmlGpuInstanceGetCreatableVgpus - __nvmlGpuInstanceGetCreatableVgpus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetCreatableVgpus') - if __nvmlGpuInstanceGetCreatableVgpus == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetCreatableVgpus = _cyb_dlsym(handle, 'nvmlGpuInstanceGetCreatableVgpus') - - global __nvmlVgpuTypeGetMaxInstancesPerGpuInstance - __nvmlVgpuTypeGetMaxInstancesPerGpuInstance = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuTypeGetMaxInstancesPerGpuInstance') - if __nvmlVgpuTypeGetMaxInstancesPerGpuInstance == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuTypeGetMaxInstancesPerGpuInstance = _cyb_dlsym(handle, 'nvmlVgpuTypeGetMaxInstancesPerGpuInstance') - - global __nvmlGpuInstanceGetActiveVgpus - __nvmlGpuInstanceGetActiveVgpus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetActiveVgpus') - if __nvmlGpuInstanceGetActiveVgpus == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetActiveVgpus = _cyb_dlsym(handle, 'nvmlGpuInstanceGetActiveVgpus') - - global __nvmlGpuInstanceSetVgpuSchedulerState - __nvmlGpuInstanceSetVgpuSchedulerState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceSetVgpuSchedulerState') - if __nvmlGpuInstanceSetVgpuSchedulerState == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceSetVgpuSchedulerState = _cyb_dlsym(handle, 'nvmlGpuInstanceSetVgpuSchedulerState') - - global __nvmlGpuInstanceGetVgpuSchedulerState - __nvmlGpuInstanceGetVgpuSchedulerState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetVgpuSchedulerState') - if __nvmlGpuInstanceGetVgpuSchedulerState == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetVgpuSchedulerState = _cyb_dlsym(handle, 'nvmlGpuInstanceGetVgpuSchedulerState') - - global __nvmlGpuInstanceGetVgpuSchedulerLog - __nvmlGpuInstanceGetVgpuSchedulerLog = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetVgpuSchedulerLog') - if __nvmlGpuInstanceGetVgpuSchedulerLog == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetVgpuSchedulerLog = _cyb_dlsym(handle, 'nvmlGpuInstanceGetVgpuSchedulerLog') - - global __nvmlGpuInstanceGetVgpuTypeCreatablePlacements - __nvmlGpuInstanceGetVgpuTypeCreatablePlacements = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetVgpuTypeCreatablePlacements') - if __nvmlGpuInstanceGetVgpuTypeCreatablePlacements == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetVgpuTypeCreatablePlacements = _cyb_dlsym(handle, 'nvmlGpuInstanceGetVgpuTypeCreatablePlacements') - - global __nvmlGpuInstanceGetVgpuHeterogeneousMode - __nvmlGpuInstanceGetVgpuHeterogeneousMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetVgpuHeterogeneousMode') - if __nvmlGpuInstanceGetVgpuHeterogeneousMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetVgpuHeterogeneousMode = _cyb_dlsym(handle, 'nvmlGpuInstanceGetVgpuHeterogeneousMode') - - global __nvmlGpuInstanceSetVgpuHeterogeneousMode - __nvmlGpuInstanceSetVgpuHeterogeneousMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceSetVgpuHeterogeneousMode') - if __nvmlGpuInstanceSetVgpuHeterogeneousMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceSetVgpuHeterogeneousMode = _cyb_dlsym(handle, 'nvmlGpuInstanceSetVgpuHeterogeneousMode') - - global __nvmlVgpuInstanceGetMetadata - __nvmlVgpuInstanceGetMetadata = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetMetadata') - if __nvmlVgpuInstanceGetMetadata == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetMetadata = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetMetadata') - - global __nvmlDeviceGetVgpuMetadata - __nvmlDeviceGetVgpuMetadata = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuMetadata') - if __nvmlDeviceGetVgpuMetadata == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuMetadata = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuMetadata') - - global __nvmlGetVgpuCompatibility - __nvmlGetVgpuCompatibility = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGetVgpuCompatibility') - if __nvmlGetVgpuCompatibility == NULL: - if handle == NULL: - handle = load_library() - __nvmlGetVgpuCompatibility = _cyb_dlsym(handle, 'nvmlGetVgpuCompatibility') - - global __nvmlDeviceGetPgpuMetadataString - __nvmlDeviceGetPgpuMetadataString = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPgpuMetadataString') - if __nvmlDeviceGetPgpuMetadataString == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPgpuMetadataString = _cyb_dlsym(handle, 'nvmlDeviceGetPgpuMetadataString') - - global __nvmlDeviceGetVgpuSchedulerLog - __nvmlDeviceGetVgpuSchedulerLog = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuSchedulerLog') - if __nvmlDeviceGetVgpuSchedulerLog == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuSchedulerLog = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuSchedulerLog') - - global __nvmlDeviceGetVgpuSchedulerState - __nvmlDeviceGetVgpuSchedulerState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuSchedulerState') - if __nvmlDeviceGetVgpuSchedulerState == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuSchedulerState = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuSchedulerState') - - global __nvmlDeviceGetVgpuSchedulerCapabilities - __nvmlDeviceGetVgpuSchedulerCapabilities = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuSchedulerCapabilities') - if __nvmlDeviceGetVgpuSchedulerCapabilities == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuSchedulerCapabilities = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuSchedulerCapabilities') - - global __nvmlDeviceSetVgpuSchedulerState - __nvmlDeviceSetVgpuSchedulerState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetVgpuSchedulerState') - if __nvmlDeviceSetVgpuSchedulerState == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetVgpuSchedulerState = _cyb_dlsym(handle, 'nvmlDeviceSetVgpuSchedulerState') - - global __nvmlGetVgpuVersion - __nvmlGetVgpuVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGetVgpuVersion') - if __nvmlGetVgpuVersion == NULL: - if handle == NULL: - handle = load_library() - __nvmlGetVgpuVersion = _cyb_dlsym(handle, 'nvmlGetVgpuVersion') - - global __nvmlSetVgpuVersion - __nvmlSetVgpuVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSetVgpuVersion') - if __nvmlSetVgpuVersion == NULL: - if handle == NULL: - handle = load_library() - __nvmlSetVgpuVersion = _cyb_dlsym(handle, 'nvmlSetVgpuVersion') - - global __nvmlDeviceGetVgpuUtilization - __nvmlDeviceGetVgpuUtilization = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuUtilization') - if __nvmlDeviceGetVgpuUtilization == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuUtilization = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuUtilization') - - global __nvmlDeviceGetVgpuInstancesUtilizationInfo - __nvmlDeviceGetVgpuInstancesUtilizationInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuInstancesUtilizationInfo') - if __nvmlDeviceGetVgpuInstancesUtilizationInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuInstancesUtilizationInfo = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuInstancesUtilizationInfo') - - global __nvmlDeviceGetVgpuProcessUtilization - __nvmlDeviceGetVgpuProcessUtilization = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuProcessUtilization') - if __nvmlDeviceGetVgpuProcessUtilization == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuProcessUtilization = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuProcessUtilization') - - global __nvmlDeviceGetVgpuProcessesUtilizationInfo - __nvmlDeviceGetVgpuProcessesUtilizationInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuProcessesUtilizationInfo') - if __nvmlDeviceGetVgpuProcessesUtilizationInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuProcessesUtilizationInfo = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuProcessesUtilizationInfo') - - global __nvmlVgpuInstanceGetAccountingMode - __nvmlVgpuInstanceGetAccountingMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetAccountingMode') - if __nvmlVgpuInstanceGetAccountingMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetAccountingMode = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetAccountingMode') - - global __nvmlVgpuInstanceGetAccountingPids - __nvmlVgpuInstanceGetAccountingPids = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetAccountingPids') - if __nvmlVgpuInstanceGetAccountingPids == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetAccountingPids = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetAccountingPids') - - global __nvmlVgpuInstanceGetAccountingStats - __nvmlVgpuInstanceGetAccountingStats = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetAccountingStats') - if __nvmlVgpuInstanceGetAccountingStats == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetAccountingStats = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetAccountingStats') - - global __nvmlVgpuInstanceClearAccountingPids - __nvmlVgpuInstanceClearAccountingPids = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceClearAccountingPids') - if __nvmlVgpuInstanceClearAccountingPids == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceClearAccountingPids = _cyb_dlsym(handle, 'nvmlVgpuInstanceClearAccountingPids') - - global __nvmlVgpuInstanceGetLicenseInfo_v2 - __nvmlVgpuInstanceGetLicenseInfo_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlVgpuInstanceGetLicenseInfo_v2') - if __nvmlVgpuInstanceGetLicenseInfo_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlVgpuInstanceGetLicenseInfo_v2 = _cyb_dlsym(handle, 'nvmlVgpuInstanceGetLicenseInfo_v2') - - global __nvmlGetExcludedDeviceCount - __nvmlGetExcludedDeviceCount = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGetExcludedDeviceCount') - if __nvmlGetExcludedDeviceCount == NULL: - if handle == NULL: - handle = load_library() - __nvmlGetExcludedDeviceCount = _cyb_dlsym(handle, 'nvmlGetExcludedDeviceCount') - - global __nvmlGetExcludedDeviceInfoByIndex - __nvmlGetExcludedDeviceInfoByIndex = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGetExcludedDeviceInfoByIndex') - if __nvmlGetExcludedDeviceInfoByIndex == NULL: - if handle == NULL: - handle = load_library() - __nvmlGetExcludedDeviceInfoByIndex = _cyb_dlsym(handle, 'nvmlGetExcludedDeviceInfoByIndex') - - global __nvmlDeviceSetMigMode - __nvmlDeviceSetMigMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetMigMode') - if __nvmlDeviceSetMigMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetMigMode = _cyb_dlsym(handle, 'nvmlDeviceSetMigMode') - - global __nvmlDeviceGetMigMode - __nvmlDeviceGetMigMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMigMode') - if __nvmlDeviceGetMigMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMigMode = _cyb_dlsym(handle, 'nvmlDeviceGetMigMode') - - global __nvmlDeviceGetGpuInstanceProfileInfoV - __nvmlDeviceGetGpuInstanceProfileInfoV = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGpuInstanceProfileInfoV') - if __nvmlDeviceGetGpuInstanceProfileInfoV == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGpuInstanceProfileInfoV = _cyb_dlsym(handle, 'nvmlDeviceGetGpuInstanceProfileInfoV') - - global __nvmlDeviceGetGpuInstancePossiblePlacements_v2 - __nvmlDeviceGetGpuInstancePossiblePlacements_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGpuInstancePossiblePlacements_v2') - if __nvmlDeviceGetGpuInstancePossiblePlacements_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGpuInstancePossiblePlacements_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetGpuInstancePossiblePlacements_v2') - - global __nvmlDeviceGetGpuInstanceRemainingCapacity - __nvmlDeviceGetGpuInstanceRemainingCapacity = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGpuInstanceRemainingCapacity') - if __nvmlDeviceGetGpuInstanceRemainingCapacity == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGpuInstanceRemainingCapacity = _cyb_dlsym(handle, 'nvmlDeviceGetGpuInstanceRemainingCapacity') - - global __nvmlDeviceCreateGpuInstance - __nvmlDeviceCreateGpuInstance = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceCreateGpuInstance') - if __nvmlDeviceCreateGpuInstance == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceCreateGpuInstance = _cyb_dlsym(handle, 'nvmlDeviceCreateGpuInstance') - - global __nvmlDeviceCreateGpuInstanceWithPlacement - __nvmlDeviceCreateGpuInstanceWithPlacement = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceCreateGpuInstanceWithPlacement') - if __nvmlDeviceCreateGpuInstanceWithPlacement == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceCreateGpuInstanceWithPlacement = _cyb_dlsym(handle, 'nvmlDeviceCreateGpuInstanceWithPlacement') - - global __nvmlGpuInstanceDestroy - __nvmlGpuInstanceDestroy = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceDestroy') - if __nvmlGpuInstanceDestroy == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceDestroy = _cyb_dlsym(handle, 'nvmlGpuInstanceDestroy') - - global __nvmlDeviceGetGpuInstances - __nvmlDeviceGetGpuInstances = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGpuInstances') - if __nvmlDeviceGetGpuInstances == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGpuInstances = _cyb_dlsym(handle, 'nvmlDeviceGetGpuInstances') - - global __nvmlDeviceGetGpuInstanceById - __nvmlDeviceGetGpuInstanceById = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGpuInstanceById') - if __nvmlDeviceGetGpuInstanceById == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGpuInstanceById = _cyb_dlsym(handle, 'nvmlDeviceGetGpuInstanceById') - - global __nvmlGpuInstanceGetInfo - __nvmlGpuInstanceGetInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetInfo') - if __nvmlGpuInstanceGetInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetInfo = _cyb_dlsym(handle, 'nvmlGpuInstanceGetInfo') - - global __nvmlGpuInstanceGetComputeInstanceProfileInfoV - __nvmlGpuInstanceGetComputeInstanceProfileInfoV = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetComputeInstanceProfileInfoV') - if __nvmlGpuInstanceGetComputeInstanceProfileInfoV == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetComputeInstanceProfileInfoV = _cyb_dlsym(handle, 'nvmlGpuInstanceGetComputeInstanceProfileInfoV') - - global __nvmlGpuInstanceGetComputeInstanceRemainingCapacity - __nvmlGpuInstanceGetComputeInstanceRemainingCapacity = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetComputeInstanceRemainingCapacity') - if __nvmlGpuInstanceGetComputeInstanceRemainingCapacity == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetComputeInstanceRemainingCapacity = _cyb_dlsym(handle, 'nvmlGpuInstanceGetComputeInstanceRemainingCapacity') - - global __nvmlGpuInstanceGetComputeInstancePossiblePlacements - __nvmlGpuInstanceGetComputeInstancePossiblePlacements = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetComputeInstancePossiblePlacements') - if __nvmlGpuInstanceGetComputeInstancePossiblePlacements == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetComputeInstancePossiblePlacements = _cyb_dlsym(handle, 'nvmlGpuInstanceGetComputeInstancePossiblePlacements') - - global __nvmlGpuInstanceCreateComputeInstance - __nvmlGpuInstanceCreateComputeInstance = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceCreateComputeInstance') - if __nvmlGpuInstanceCreateComputeInstance == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceCreateComputeInstance = _cyb_dlsym(handle, 'nvmlGpuInstanceCreateComputeInstance') - - global __nvmlGpuInstanceCreateComputeInstanceWithPlacement - __nvmlGpuInstanceCreateComputeInstanceWithPlacement = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceCreateComputeInstanceWithPlacement') - if __nvmlGpuInstanceCreateComputeInstanceWithPlacement == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceCreateComputeInstanceWithPlacement = _cyb_dlsym(handle, 'nvmlGpuInstanceCreateComputeInstanceWithPlacement') - - global __nvmlComputeInstanceDestroy - __nvmlComputeInstanceDestroy = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlComputeInstanceDestroy') - if __nvmlComputeInstanceDestroy == NULL: - if handle == NULL: - handle = load_library() - __nvmlComputeInstanceDestroy = _cyb_dlsym(handle, 'nvmlComputeInstanceDestroy') - - global __nvmlGpuInstanceGetComputeInstances - __nvmlGpuInstanceGetComputeInstances = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetComputeInstances') - if __nvmlGpuInstanceGetComputeInstances == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetComputeInstances = _cyb_dlsym(handle, 'nvmlGpuInstanceGetComputeInstances') - - global __nvmlGpuInstanceGetComputeInstanceById - __nvmlGpuInstanceGetComputeInstanceById = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetComputeInstanceById') - if __nvmlGpuInstanceGetComputeInstanceById == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetComputeInstanceById = _cyb_dlsym(handle, 'nvmlGpuInstanceGetComputeInstanceById') - - global __nvmlComputeInstanceGetInfo_v2 - __nvmlComputeInstanceGetInfo_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlComputeInstanceGetInfo_v2') - if __nvmlComputeInstanceGetInfo_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlComputeInstanceGetInfo_v2 = _cyb_dlsym(handle, 'nvmlComputeInstanceGetInfo_v2') - - global __nvmlDeviceIsMigDeviceHandle - __nvmlDeviceIsMigDeviceHandle = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceIsMigDeviceHandle') - if __nvmlDeviceIsMigDeviceHandle == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceIsMigDeviceHandle = _cyb_dlsym(handle, 'nvmlDeviceIsMigDeviceHandle') - - global __nvmlDeviceGetGpuInstanceId - __nvmlDeviceGetGpuInstanceId = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGpuInstanceId') - if __nvmlDeviceGetGpuInstanceId == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGpuInstanceId = _cyb_dlsym(handle, 'nvmlDeviceGetGpuInstanceId') - - global __nvmlDeviceGetComputeInstanceId - __nvmlDeviceGetComputeInstanceId = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetComputeInstanceId') - if __nvmlDeviceGetComputeInstanceId == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetComputeInstanceId = _cyb_dlsym(handle, 'nvmlDeviceGetComputeInstanceId') - - global __nvmlDeviceGetMaxMigDeviceCount - __nvmlDeviceGetMaxMigDeviceCount = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMaxMigDeviceCount') - if __nvmlDeviceGetMaxMigDeviceCount == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMaxMigDeviceCount = _cyb_dlsym(handle, 'nvmlDeviceGetMaxMigDeviceCount') - - global __nvmlDeviceGetMigDeviceHandleByIndex - __nvmlDeviceGetMigDeviceHandleByIndex = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMigDeviceHandleByIndex') - if __nvmlDeviceGetMigDeviceHandleByIndex == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMigDeviceHandleByIndex = _cyb_dlsym(handle, 'nvmlDeviceGetMigDeviceHandleByIndex') - - global __nvmlDeviceGetDeviceHandleFromMigDeviceHandle - __nvmlDeviceGetDeviceHandleFromMigDeviceHandle = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetDeviceHandleFromMigDeviceHandle') - if __nvmlDeviceGetDeviceHandleFromMigDeviceHandle == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetDeviceHandleFromMigDeviceHandle = _cyb_dlsym(handle, 'nvmlDeviceGetDeviceHandleFromMigDeviceHandle') - - global __nvmlDeviceGetCapabilities - __nvmlDeviceGetCapabilities = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetCapabilities') - if __nvmlDeviceGetCapabilities == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetCapabilities = _cyb_dlsym(handle, 'nvmlDeviceGetCapabilities') - - global __nvmlDevicePowerSmoothingActivatePresetProfile - __nvmlDevicePowerSmoothingActivatePresetProfile = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDevicePowerSmoothingActivatePresetProfile') - if __nvmlDevicePowerSmoothingActivatePresetProfile == NULL: - if handle == NULL: - handle = load_library() - __nvmlDevicePowerSmoothingActivatePresetProfile = _cyb_dlsym(handle, 'nvmlDevicePowerSmoothingActivatePresetProfile') - - global __nvmlDevicePowerSmoothingUpdatePresetProfileParam - __nvmlDevicePowerSmoothingUpdatePresetProfileParam = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDevicePowerSmoothingUpdatePresetProfileParam') - if __nvmlDevicePowerSmoothingUpdatePresetProfileParam == NULL: - if handle == NULL: - handle = load_library() - __nvmlDevicePowerSmoothingUpdatePresetProfileParam = _cyb_dlsym(handle, 'nvmlDevicePowerSmoothingUpdatePresetProfileParam') - - global __nvmlDevicePowerSmoothingSetState - __nvmlDevicePowerSmoothingSetState = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDevicePowerSmoothingSetState') - if __nvmlDevicePowerSmoothingSetState == NULL: - if handle == NULL: - handle = load_library() - __nvmlDevicePowerSmoothingSetState = _cyb_dlsym(handle, 'nvmlDevicePowerSmoothingSetState') - - global __nvmlDeviceGetAddressingMode - __nvmlDeviceGetAddressingMode = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetAddressingMode') - if __nvmlDeviceGetAddressingMode == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetAddressingMode = _cyb_dlsym(handle, 'nvmlDeviceGetAddressingMode') - - global __nvmlDeviceGetRepairStatus - __nvmlDeviceGetRepairStatus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetRepairStatus') - if __nvmlDeviceGetRepairStatus == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetRepairStatus = _cyb_dlsym(handle, 'nvmlDeviceGetRepairStatus') - - global __nvmlDeviceGetPowerMizerMode_v1 - __nvmlDeviceGetPowerMizerMode_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPowerMizerMode_v1') - if __nvmlDeviceGetPowerMizerMode_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPowerMizerMode_v1 = _cyb_dlsym(handle, 'nvmlDeviceGetPowerMizerMode_v1') - - global __nvmlDeviceSetPowerMizerMode_v1 - __nvmlDeviceSetPowerMizerMode_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetPowerMizerMode_v1') - if __nvmlDeviceSetPowerMizerMode_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetPowerMizerMode_v1 = _cyb_dlsym(handle, 'nvmlDeviceSetPowerMizerMode_v1') - - global __nvmlDeviceGetPdi - __nvmlDeviceGetPdi = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetPdi') - if __nvmlDeviceGetPdi == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetPdi = _cyb_dlsym(handle, 'nvmlDeviceGetPdi') - - global __nvmlDeviceSetHostname_v1 - __nvmlDeviceSetHostname_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetHostname_v1') - if __nvmlDeviceSetHostname_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetHostname_v1 = _cyb_dlsym(handle, 'nvmlDeviceSetHostname_v1') - - global __nvmlDeviceGetHostname_v1 - __nvmlDeviceGetHostname_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetHostname_v1') - if __nvmlDeviceGetHostname_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetHostname_v1 = _cyb_dlsym(handle, 'nvmlDeviceGetHostname_v1') - - global __nvmlDeviceGetNvLinkInfo - __nvmlDeviceGetNvLinkInfo = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNvLinkInfo') - if __nvmlDeviceGetNvLinkInfo == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNvLinkInfo = _cyb_dlsym(handle, 'nvmlDeviceGetNvLinkInfo') - - global __nvmlDeviceReadWritePRM_v1 - __nvmlDeviceReadWritePRM_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceReadWritePRM_v1') - if __nvmlDeviceReadWritePRM_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceReadWritePRM_v1 = _cyb_dlsym(handle, 'nvmlDeviceReadWritePRM_v1') - - global __nvmlDeviceGetGpuInstanceProfileInfoByIdV - __nvmlDeviceGetGpuInstanceProfileInfoByIdV = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGpuInstanceProfileInfoByIdV') - if __nvmlDeviceGetGpuInstanceProfileInfoByIdV == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGpuInstanceProfileInfoByIdV = _cyb_dlsym(handle, 'nvmlDeviceGetGpuInstanceProfileInfoByIdV') - - global __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts - __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts') - if __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts = _cyb_dlsym(handle, 'nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts') - - global __nvmlDeviceGetUnrepairableMemoryFlag_v1 - __nvmlDeviceGetUnrepairableMemoryFlag_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetUnrepairableMemoryFlag_v1') - if __nvmlDeviceGetUnrepairableMemoryFlag_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetUnrepairableMemoryFlag_v1 = _cyb_dlsym(handle, 'nvmlDeviceGetUnrepairableMemoryFlag_v1') - - global __nvmlDeviceReadPRMCounters_v1 - __nvmlDeviceReadPRMCounters_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceReadPRMCounters_v1') - if __nvmlDeviceReadPRMCounters_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceReadPRMCounters_v1 = _cyb_dlsym(handle, 'nvmlDeviceReadPRMCounters_v1') - - global __nvmlDeviceSetRusdSettings_v1 - __nvmlDeviceSetRusdSettings_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetRusdSettings_v1') - if __nvmlDeviceSetRusdSettings_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetRusdSettings_v1 = _cyb_dlsym(handle, 'nvmlDeviceSetRusdSettings_v1') - - global __nvmlDeviceVgpuForceGspUnload - __nvmlDeviceVgpuForceGspUnload = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceVgpuForceGspUnload') - if __nvmlDeviceVgpuForceGspUnload == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceVgpuForceGspUnload = _cyb_dlsym(handle, 'nvmlDeviceVgpuForceGspUnload') - - global __nvmlDeviceGetVgpuSchedulerState_v2 - __nvmlDeviceGetVgpuSchedulerState_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuSchedulerState_v2') - if __nvmlDeviceGetVgpuSchedulerState_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuSchedulerState_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuSchedulerState_v2') - - global __nvmlGpuInstanceGetVgpuSchedulerState_v2 - __nvmlGpuInstanceGetVgpuSchedulerState_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetVgpuSchedulerState_v2') - if __nvmlGpuInstanceGetVgpuSchedulerState_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetVgpuSchedulerState_v2 = _cyb_dlsym(handle, 'nvmlGpuInstanceGetVgpuSchedulerState_v2') - - global __nvmlDeviceGetVgpuSchedulerLog_v2 - __nvmlDeviceGetVgpuSchedulerLog_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetVgpuSchedulerLog_v2') - if __nvmlDeviceGetVgpuSchedulerLog_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetVgpuSchedulerLog_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetVgpuSchedulerLog_v2') - - global __nvmlGpuInstanceGetVgpuSchedulerLog_v2 - __nvmlGpuInstanceGetVgpuSchedulerLog_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceGetVgpuSchedulerLog_v2') - if __nvmlGpuInstanceGetVgpuSchedulerLog_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceGetVgpuSchedulerLog_v2 = _cyb_dlsym(handle, 'nvmlGpuInstanceGetVgpuSchedulerLog_v2') - - global __nvmlDeviceSetVgpuSchedulerState_v2 - __nvmlDeviceSetVgpuSchedulerState_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetVgpuSchedulerState_v2') - if __nvmlDeviceSetVgpuSchedulerState_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetVgpuSchedulerState_v2 = _cyb_dlsym(handle, 'nvmlDeviceSetVgpuSchedulerState_v2') - - global __nvmlGpuInstanceSetVgpuSchedulerState_v2 - __nvmlGpuInstanceSetVgpuSchedulerState_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlGpuInstanceSetVgpuSchedulerState_v2') - if __nvmlGpuInstanceSetVgpuSchedulerState_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlGpuInstanceSetVgpuSchedulerState_v2 = _cyb_dlsym(handle, 'nvmlGpuInstanceSetVgpuSchedulerState_v2') - - global __nvmlSystemGetCPER_v1 - __nvmlSystemGetCPER_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlSystemGetCPER_v1') - if __nvmlSystemGetCPER_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlSystemGetCPER_v1 = _cyb_dlsym(handle, 'nvmlSystemGetCPER_v1') - - global __nvmlDeviceGetBBXTimeData_v1 - __nvmlDeviceGetBBXTimeData_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetBBXTimeData_v1') - if __nvmlDeviceGetBBXTimeData_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetBBXTimeData_v1 = _cyb_dlsym(handle, 'nvmlDeviceGetBBXTimeData_v1') - - global __nvmlDeviceGetAccountingStats_v2 - __nvmlDeviceGetAccountingStats_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetAccountingStats_v2') - if __nvmlDeviceGetAccountingStats_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetAccountingStats_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetAccountingStats_v2') - - global __nvmlDeviceGetRemappedRows_v2 - __nvmlDeviceGetRemappedRows_v2 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetRemappedRows_v2') - if __nvmlDeviceGetRemappedRows_v2 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetRemappedRows_v2 = _cyb_dlsym(handle, 'nvmlDeviceGetRemappedRows_v2') - - global __nvmlDeviceSetAdaptiveTgpMode_v1 - __nvmlDeviceSetAdaptiveTgpMode_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetAdaptiveTgpMode_v1') - if __nvmlDeviceSetAdaptiveTgpMode_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetAdaptiveTgpMode_v1 = _cyb_dlsym(handle, 'nvmlDeviceSetAdaptiveTgpMode_v1') - - global __nvmlDeviceGetAdaptiveTgpModeInfo_v1 - __nvmlDeviceGetAdaptiveTgpModeInfo_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetAdaptiveTgpModeInfo_v1') - if __nvmlDeviceGetAdaptiveTgpModeInfo_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetAdaptiveTgpModeInfo_v1 = _cyb_dlsym(handle, 'nvmlDeviceGetAdaptiveTgpModeInfo_v1') - - global __nvmlDeviceSetMemoryLimits_v1 - __nvmlDeviceSetMemoryLimits_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetMemoryLimits_v1') - if __nvmlDeviceSetMemoryLimits_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetMemoryLimits_v1 = _cyb_dlsym(handle, 'nvmlDeviceSetMemoryLimits_v1') - - global __nvmlDeviceGetMemoryLimits_v1 - __nvmlDeviceGetMemoryLimits_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetMemoryLimits_v1') - if __nvmlDeviceGetMemoryLimits_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetMemoryLimits_v1 = _cyb_dlsym(handle, 'nvmlDeviceGetMemoryLimits_v1') - - global __nvmlDeviceGetGpuFabricInfo_v4 - __nvmlDeviceGetGpuFabricInfo_v4 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetGpuFabricInfo_v4') - if __nvmlDeviceGetGpuFabricInfo_v4 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetGpuFabricInfo_v4 = _cyb_dlsym(handle, 'nvmlDeviceGetGpuFabricInfo_v4') - - global __nvmlDevicePerfMetricsGetSamples_v1 - __nvmlDevicePerfMetricsGetSamples_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDevicePerfMetricsGetSamples_v1') - if __nvmlDevicePerfMetricsGetSamples_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDevicePerfMetricsGetSamples_v1 = _cyb_dlsym(handle, 'nvmlDevicePerfMetricsGetSamples_v1') - - global __nvmlDeviceSetNvlinkBwModeAsync_v1 - __nvmlDeviceSetNvlinkBwModeAsync_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceSetNvlinkBwModeAsync_v1') - if __nvmlDeviceSetNvlinkBwModeAsync_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceSetNvlinkBwModeAsync_v1 = _cyb_dlsym(handle, 'nvmlDeviceSetNvlinkBwModeAsync_v1') - - global __nvmlDeviceGetNvLinkTelemetrySamples_v1 - __nvmlDeviceGetNvLinkTelemetrySamples_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetNvLinkTelemetrySamples_v1') - if __nvmlDeviceGetNvLinkTelemetrySamples_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetNvLinkTelemetrySamples_v1 = _cyb_dlsym(handle, 'nvmlDeviceGetNvLinkTelemetrySamples_v1') - - global __nvmlEventSetRegisterGpuOperationalEvents_v1 - __nvmlEventSetRegisterGpuOperationalEvents_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlEventSetRegisterGpuOperationalEvents_v1') - if __nvmlEventSetRegisterGpuOperationalEvents_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlEventSetRegisterGpuOperationalEvents_v1 = _cyb_dlsym(handle, 'nvmlEventSetRegisterGpuOperationalEvents_v1') - - global __nvmlEventSetWait_v3 - __nvmlEventSetWait_v3 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlEventSetWait_v3') - if __nvmlEventSetWait_v3 == NULL: - if handle == NULL: - handle = load_library() - __nvmlEventSetWait_v3 = _cyb_dlsym(handle, 'nvmlEventSetWait_v3') - - global __nvmlEventSetGetContextCount_v1 - __nvmlEventSetGetContextCount_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlEventSetGetContextCount_v1') - if __nvmlEventSetGetContextCount_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlEventSetGetContextCount_v1 = _cyb_dlsym(handle, 'nvmlEventSetGetContextCount_v1') - - global __nvmlEventSetGetContextInfo_v1 - __nvmlEventSetGetContextInfo_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlEventSetGetContextInfo_v1') - if __nvmlEventSetGetContextInfo_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlEventSetGetContextInfo_v1 = _cyb_dlsym(handle, 'nvmlEventSetGetContextInfo_v1') - - global __nvmlEventSetGetContextData_v1 - __nvmlEventSetGetContextData_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlEventSetGetContextData_v1') - if __nvmlEventSetGetContextData_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlEventSetGetContextData_v1 = _cyb_dlsym(handle, 'nvmlEventSetGetContextData_v1') - - global __nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1 - __nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1') - if __nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1 = _cyb_dlsym(handle, 'nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1') - - global __nvmlDeviceGetBankRemapperStatus_v1 - __nvmlDeviceGetBankRemapperStatus_v1 = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvmlDeviceGetBankRemapperStatus_v1') - if __nvmlDeviceGetBankRemapperStatus_v1 == NULL: - if handle == NULL: - handle = load_library() - __nvmlDeviceGetBankRemapperStatus_v1 = _cyb_dlsym(handle, 'nvmlDeviceGetBankRemapperStatus_v1') - - _cyb_atomic_int_store(&_cyb___py_nvml_init, 1) - return 0 - -cdef inline int _check_or_init_nvml() except -1 nogil: - if _cyb_atomic_int_load(&_cyb___py_nvml_init): - return 0 - - return _init_nvml() - - -cpdef dict _inspect_function_pointers(): - global _cyb_func_ptrs - if _cyb_func_ptrs is not None: - return _cyb_func_ptrs - - _check_or_init_nvml() - cdef dict data = {} - global __nvmlInit_v2 - data["__nvmlInit_v2"] = __nvmlInit_v2 - - global __nvmlInitWithFlags - data["__nvmlInitWithFlags"] = __nvmlInitWithFlags - - global __nvmlShutdown - data["__nvmlShutdown"] = __nvmlShutdown - - global __nvmlErrorString - data["__nvmlErrorString"] = __nvmlErrorString - - global __nvmlSystemGetDriverVersion - data["__nvmlSystemGetDriverVersion"] = __nvmlSystemGetDriverVersion - - global __nvmlSystemGetNVMLVersion - data["__nvmlSystemGetNVMLVersion"] = __nvmlSystemGetNVMLVersion - - global __nvmlSystemGetCudaDriverVersion - data["__nvmlSystemGetCudaDriverVersion"] = __nvmlSystemGetCudaDriverVersion - - global __nvmlSystemGetCudaDriverVersion_v2 - data["__nvmlSystemGetCudaDriverVersion_v2"] = __nvmlSystemGetCudaDriverVersion_v2 - - global __nvmlSystemGetProcessName - data["__nvmlSystemGetProcessName"] = __nvmlSystemGetProcessName - - global __nvmlSystemGetHicVersion - data["__nvmlSystemGetHicVersion"] = __nvmlSystemGetHicVersion - - global __nvmlSystemGetTopologyGpuSet - data["__nvmlSystemGetTopologyGpuSet"] = __nvmlSystemGetTopologyGpuSet - - global __nvmlSystemGetDriverBranch - data["__nvmlSystemGetDriverBranch"] = __nvmlSystemGetDriverBranch - - global __nvmlUnitGetCount - data["__nvmlUnitGetCount"] = __nvmlUnitGetCount - - global __nvmlUnitGetHandleByIndex - data["__nvmlUnitGetHandleByIndex"] = __nvmlUnitGetHandleByIndex - - global __nvmlUnitGetUnitInfo - data["__nvmlUnitGetUnitInfo"] = __nvmlUnitGetUnitInfo - - global __nvmlUnitGetLedState - data["__nvmlUnitGetLedState"] = __nvmlUnitGetLedState - - global __nvmlUnitGetPsuInfo - data["__nvmlUnitGetPsuInfo"] = __nvmlUnitGetPsuInfo - - global __nvmlUnitGetTemperature - data["__nvmlUnitGetTemperature"] = __nvmlUnitGetTemperature - - global __nvmlUnitGetFanSpeedInfo - data["__nvmlUnitGetFanSpeedInfo"] = __nvmlUnitGetFanSpeedInfo - - global __nvmlUnitGetDevices - data["__nvmlUnitGetDevices"] = __nvmlUnitGetDevices - - global __nvmlDeviceGetCount_v2 - data["__nvmlDeviceGetCount_v2"] = __nvmlDeviceGetCount_v2 - - global __nvmlDeviceGetAttributes_v2 - data["__nvmlDeviceGetAttributes_v2"] = __nvmlDeviceGetAttributes_v2 - - global __nvmlDeviceGetHandleByIndex_v2 - data["__nvmlDeviceGetHandleByIndex_v2"] = __nvmlDeviceGetHandleByIndex_v2 - - global __nvmlDeviceGetHandleBySerial - data["__nvmlDeviceGetHandleBySerial"] = __nvmlDeviceGetHandleBySerial - - global __nvmlDeviceGetHandleByUUID - data["__nvmlDeviceGetHandleByUUID"] = __nvmlDeviceGetHandleByUUID - - global __nvmlDeviceGetHandleByUUIDV - data["__nvmlDeviceGetHandleByUUIDV"] = __nvmlDeviceGetHandleByUUIDV - - global __nvmlDeviceGetHandleByPciBusId_v2 - data["__nvmlDeviceGetHandleByPciBusId_v2"] = __nvmlDeviceGetHandleByPciBusId_v2 - - global __nvmlDeviceGetName - data["__nvmlDeviceGetName"] = __nvmlDeviceGetName - - global __nvmlDeviceGetBrand - data["__nvmlDeviceGetBrand"] = __nvmlDeviceGetBrand - - global __nvmlDeviceGetIndex - data["__nvmlDeviceGetIndex"] = __nvmlDeviceGetIndex - - global __nvmlDeviceGetSerial - data["__nvmlDeviceGetSerial"] = __nvmlDeviceGetSerial - - global __nvmlDeviceGetModuleId - data["__nvmlDeviceGetModuleId"] = __nvmlDeviceGetModuleId - - global __nvmlDeviceGetC2cModeInfoV - data["__nvmlDeviceGetC2cModeInfoV"] = __nvmlDeviceGetC2cModeInfoV - - global __nvmlDeviceGetMemoryAffinity - data["__nvmlDeviceGetMemoryAffinity"] = __nvmlDeviceGetMemoryAffinity - - global __nvmlDeviceGetCpuAffinityWithinScope - data["__nvmlDeviceGetCpuAffinityWithinScope"] = __nvmlDeviceGetCpuAffinityWithinScope - - global __nvmlDeviceGetCpuAffinity - data["__nvmlDeviceGetCpuAffinity"] = __nvmlDeviceGetCpuAffinity - - global __nvmlDeviceSetCpuAffinity - data["__nvmlDeviceSetCpuAffinity"] = __nvmlDeviceSetCpuAffinity - - global __nvmlDeviceClearCpuAffinity - data["__nvmlDeviceClearCpuAffinity"] = __nvmlDeviceClearCpuAffinity - - global __nvmlDeviceGetNumaNodeId - data["__nvmlDeviceGetNumaNodeId"] = __nvmlDeviceGetNumaNodeId - - global __nvmlDeviceGetTopologyCommonAncestor - data["__nvmlDeviceGetTopologyCommonAncestor"] = __nvmlDeviceGetTopologyCommonAncestor - - global __nvmlDeviceGetTopologyNearestGpus - data["__nvmlDeviceGetTopologyNearestGpus"] = __nvmlDeviceGetTopologyNearestGpus - - global __nvmlDeviceGetP2PStatus - data["__nvmlDeviceGetP2PStatus"] = __nvmlDeviceGetP2PStatus - - global __nvmlDeviceGetUUID - data["__nvmlDeviceGetUUID"] = __nvmlDeviceGetUUID - - global __nvmlDeviceGetMinorNumber - data["__nvmlDeviceGetMinorNumber"] = __nvmlDeviceGetMinorNumber - - global __nvmlDeviceGetBoardPartNumber - data["__nvmlDeviceGetBoardPartNumber"] = __nvmlDeviceGetBoardPartNumber - - global __nvmlDeviceGetInforomVersion - data["__nvmlDeviceGetInforomVersion"] = __nvmlDeviceGetInforomVersion - - global __nvmlDeviceGetInforomImageVersion - data["__nvmlDeviceGetInforomImageVersion"] = __nvmlDeviceGetInforomImageVersion - - global __nvmlDeviceGetInforomConfigurationChecksum - data["__nvmlDeviceGetInforomConfigurationChecksum"] = __nvmlDeviceGetInforomConfigurationChecksum - - global __nvmlDeviceValidateInforom - data["__nvmlDeviceValidateInforom"] = __nvmlDeviceValidateInforom - - global __nvmlDeviceGetLastBBXFlushTime - data["__nvmlDeviceGetLastBBXFlushTime"] = __nvmlDeviceGetLastBBXFlushTime - - global __nvmlDeviceGetDisplayMode - data["__nvmlDeviceGetDisplayMode"] = __nvmlDeviceGetDisplayMode - - global __nvmlDeviceGetDisplayActive - data["__nvmlDeviceGetDisplayActive"] = __nvmlDeviceGetDisplayActive - - global __nvmlDeviceGetPersistenceMode - data["__nvmlDeviceGetPersistenceMode"] = __nvmlDeviceGetPersistenceMode - - global __nvmlDeviceGetPciInfoExt - data["__nvmlDeviceGetPciInfoExt"] = __nvmlDeviceGetPciInfoExt - - global __nvmlDeviceGetPciInfo_v3 - data["__nvmlDeviceGetPciInfo_v3"] = __nvmlDeviceGetPciInfo_v3 - - global __nvmlDeviceGetMaxPcieLinkGeneration - data["__nvmlDeviceGetMaxPcieLinkGeneration"] = __nvmlDeviceGetMaxPcieLinkGeneration - - global __nvmlDeviceGetGpuMaxPcieLinkGeneration - data["__nvmlDeviceGetGpuMaxPcieLinkGeneration"] = __nvmlDeviceGetGpuMaxPcieLinkGeneration - - global __nvmlDeviceGetMaxPcieLinkWidth - data["__nvmlDeviceGetMaxPcieLinkWidth"] = __nvmlDeviceGetMaxPcieLinkWidth - - global __nvmlDeviceGetCurrPcieLinkGeneration - data["__nvmlDeviceGetCurrPcieLinkGeneration"] = __nvmlDeviceGetCurrPcieLinkGeneration - - global __nvmlDeviceGetCurrPcieLinkWidth - data["__nvmlDeviceGetCurrPcieLinkWidth"] = __nvmlDeviceGetCurrPcieLinkWidth - - global __nvmlDeviceGetPcieThroughput - data["__nvmlDeviceGetPcieThroughput"] = __nvmlDeviceGetPcieThroughput - - global __nvmlDeviceGetPcieReplayCounter - data["__nvmlDeviceGetPcieReplayCounter"] = __nvmlDeviceGetPcieReplayCounter - - global __nvmlDeviceGetClockInfo - data["__nvmlDeviceGetClockInfo"] = __nvmlDeviceGetClockInfo - - global __nvmlDeviceGetMaxClockInfo - data["__nvmlDeviceGetMaxClockInfo"] = __nvmlDeviceGetMaxClockInfo - - global __nvmlDeviceGetGpcClkVfOffset - data["__nvmlDeviceGetGpcClkVfOffset"] = __nvmlDeviceGetGpcClkVfOffset - - global __nvmlDeviceGetClock - data["__nvmlDeviceGetClock"] = __nvmlDeviceGetClock - - global __nvmlDeviceGetMaxCustomerBoostClock - data["__nvmlDeviceGetMaxCustomerBoostClock"] = __nvmlDeviceGetMaxCustomerBoostClock - - global __nvmlDeviceGetSupportedMemoryClocks - data["__nvmlDeviceGetSupportedMemoryClocks"] = __nvmlDeviceGetSupportedMemoryClocks - - global __nvmlDeviceGetSupportedGraphicsClocks - data["__nvmlDeviceGetSupportedGraphicsClocks"] = __nvmlDeviceGetSupportedGraphicsClocks - - global __nvmlDeviceGetAutoBoostedClocksEnabled - data["__nvmlDeviceGetAutoBoostedClocksEnabled"] = __nvmlDeviceGetAutoBoostedClocksEnabled - - global __nvmlDeviceGetFanSpeed - data["__nvmlDeviceGetFanSpeed"] = __nvmlDeviceGetFanSpeed - - global __nvmlDeviceGetFanSpeed_v2 - data["__nvmlDeviceGetFanSpeed_v2"] = __nvmlDeviceGetFanSpeed_v2 - - global __nvmlDeviceGetFanSpeedRPM - data["__nvmlDeviceGetFanSpeedRPM"] = __nvmlDeviceGetFanSpeedRPM - - global __nvmlDeviceGetTargetFanSpeed - data["__nvmlDeviceGetTargetFanSpeed"] = __nvmlDeviceGetTargetFanSpeed - - global __nvmlDeviceGetMinMaxFanSpeed - data["__nvmlDeviceGetMinMaxFanSpeed"] = __nvmlDeviceGetMinMaxFanSpeed - - global __nvmlDeviceGetFanControlPolicy_v2 - data["__nvmlDeviceGetFanControlPolicy_v2"] = __nvmlDeviceGetFanControlPolicy_v2 - - global __nvmlDeviceGetNumFans - data["__nvmlDeviceGetNumFans"] = __nvmlDeviceGetNumFans - - global __nvmlDeviceGetCoolerInfo - data["__nvmlDeviceGetCoolerInfo"] = __nvmlDeviceGetCoolerInfo - - global __nvmlDeviceGetTemperatureV - data["__nvmlDeviceGetTemperatureV"] = __nvmlDeviceGetTemperatureV - - global __nvmlDeviceGetTemperatureThreshold - data["__nvmlDeviceGetTemperatureThreshold"] = __nvmlDeviceGetTemperatureThreshold - - global __nvmlDeviceGetMarginTemperature - data["__nvmlDeviceGetMarginTemperature"] = __nvmlDeviceGetMarginTemperature - - global __nvmlDeviceGetThermalSettings - data["__nvmlDeviceGetThermalSettings"] = __nvmlDeviceGetThermalSettings - - global __nvmlDeviceGetPerformanceState - data["__nvmlDeviceGetPerformanceState"] = __nvmlDeviceGetPerformanceState - - global __nvmlDeviceGetCurrentClocksEventReasons - data["__nvmlDeviceGetCurrentClocksEventReasons"] = __nvmlDeviceGetCurrentClocksEventReasons - - global __nvmlDeviceGetSupportedClocksEventReasons - data["__nvmlDeviceGetSupportedClocksEventReasons"] = __nvmlDeviceGetSupportedClocksEventReasons - - global __nvmlDeviceGetPowerState - data["__nvmlDeviceGetPowerState"] = __nvmlDeviceGetPowerState - - global __nvmlDeviceGetDynamicPstatesInfo - data["__nvmlDeviceGetDynamicPstatesInfo"] = __nvmlDeviceGetDynamicPstatesInfo - - global __nvmlDeviceGetMemClkVfOffset - data["__nvmlDeviceGetMemClkVfOffset"] = __nvmlDeviceGetMemClkVfOffset - - global __nvmlDeviceGetMinMaxClockOfPState - data["__nvmlDeviceGetMinMaxClockOfPState"] = __nvmlDeviceGetMinMaxClockOfPState - - global __nvmlDeviceGetSupportedPerformanceStates - data["__nvmlDeviceGetSupportedPerformanceStates"] = __nvmlDeviceGetSupportedPerformanceStates - - global __nvmlDeviceGetGpcClkMinMaxVfOffset - data["__nvmlDeviceGetGpcClkMinMaxVfOffset"] = __nvmlDeviceGetGpcClkMinMaxVfOffset - - global __nvmlDeviceGetMemClkMinMaxVfOffset - data["__nvmlDeviceGetMemClkMinMaxVfOffset"] = __nvmlDeviceGetMemClkMinMaxVfOffset - - global __nvmlDeviceGetClockOffsets - data["__nvmlDeviceGetClockOffsets"] = __nvmlDeviceGetClockOffsets - - global __nvmlDeviceSetClockOffsets - data["__nvmlDeviceSetClockOffsets"] = __nvmlDeviceSetClockOffsets - - global __nvmlDeviceGetPerformanceModes - data["__nvmlDeviceGetPerformanceModes"] = __nvmlDeviceGetPerformanceModes - - global __nvmlDeviceGetCurrentClockFreqs - data["__nvmlDeviceGetCurrentClockFreqs"] = __nvmlDeviceGetCurrentClockFreqs - - global __nvmlDeviceGetPowerManagementLimit - data["__nvmlDeviceGetPowerManagementLimit"] = __nvmlDeviceGetPowerManagementLimit - - global __nvmlDeviceGetPowerManagementLimitConstraints - data["__nvmlDeviceGetPowerManagementLimitConstraints"] = __nvmlDeviceGetPowerManagementLimitConstraints - - global __nvmlDeviceGetPowerManagementDefaultLimit - data["__nvmlDeviceGetPowerManagementDefaultLimit"] = __nvmlDeviceGetPowerManagementDefaultLimit - - global __nvmlDeviceGetPowerUsage - data["__nvmlDeviceGetPowerUsage"] = __nvmlDeviceGetPowerUsage - - global __nvmlDeviceGetTotalEnergyConsumption - data["__nvmlDeviceGetTotalEnergyConsumption"] = __nvmlDeviceGetTotalEnergyConsumption - - global __nvmlDeviceGetEnforcedPowerLimit - data["__nvmlDeviceGetEnforcedPowerLimit"] = __nvmlDeviceGetEnforcedPowerLimit - - global __nvmlDeviceGetGpuOperationMode - data["__nvmlDeviceGetGpuOperationMode"] = __nvmlDeviceGetGpuOperationMode - - global __nvmlDeviceGetMemoryInfo_v2 - data["__nvmlDeviceGetMemoryInfo_v2"] = __nvmlDeviceGetMemoryInfo_v2 - - global __nvmlDeviceGetComputeMode - data["__nvmlDeviceGetComputeMode"] = __nvmlDeviceGetComputeMode - - global __nvmlDeviceGetCudaComputeCapability - data["__nvmlDeviceGetCudaComputeCapability"] = __nvmlDeviceGetCudaComputeCapability - - global __nvmlDeviceGetDramEncryptionMode - data["__nvmlDeviceGetDramEncryptionMode"] = __nvmlDeviceGetDramEncryptionMode - - global __nvmlDeviceSetDramEncryptionMode - data["__nvmlDeviceSetDramEncryptionMode"] = __nvmlDeviceSetDramEncryptionMode - - global __nvmlDeviceGetEccMode - data["__nvmlDeviceGetEccMode"] = __nvmlDeviceGetEccMode - - global __nvmlDeviceGetDefaultEccMode - data["__nvmlDeviceGetDefaultEccMode"] = __nvmlDeviceGetDefaultEccMode - - global __nvmlDeviceGetBoardId - data["__nvmlDeviceGetBoardId"] = __nvmlDeviceGetBoardId - - global __nvmlDeviceGetMultiGpuBoard - data["__nvmlDeviceGetMultiGpuBoard"] = __nvmlDeviceGetMultiGpuBoard - - global __nvmlDeviceGetTotalEccErrors - data["__nvmlDeviceGetTotalEccErrors"] = __nvmlDeviceGetTotalEccErrors - - global __nvmlDeviceGetMemoryErrorCounter - data["__nvmlDeviceGetMemoryErrorCounter"] = __nvmlDeviceGetMemoryErrorCounter - - global __nvmlDeviceGetUtilizationRates - data["__nvmlDeviceGetUtilizationRates"] = __nvmlDeviceGetUtilizationRates - - global __nvmlDeviceGetEncoderUtilization - data["__nvmlDeviceGetEncoderUtilization"] = __nvmlDeviceGetEncoderUtilization - - global __nvmlDeviceGetEncoderCapacity - data["__nvmlDeviceGetEncoderCapacity"] = __nvmlDeviceGetEncoderCapacity - - global __nvmlDeviceGetEncoderStats - data["__nvmlDeviceGetEncoderStats"] = __nvmlDeviceGetEncoderStats - - global __nvmlDeviceGetEncoderSessions - data["__nvmlDeviceGetEncoderSessions"] = __nvmlDeviceGetEncoderSessions - - global __nvmlDeviceGetDecoderUtilization - data["__nvmlDeviceGetDecoderUtilization"] = __nvmlDeviceGetDecoderUtilization - - global __nvmlDeviceGetJpgUtilization - data["__nvmlDeviceGetJpgUtilization"] = __nvmlDeviceGetJpgUtilization - - global __nvmlDeviceGetOfaUtilization - data["__nvmlDeviceGetOfaUtilization"] = __nvmlDeviceGetOfaUtilization - - global __nvmlDeviceGetFBCStats - data["__nvmlDeviceGetFBCStats"] = __nvmlDeviceGetFBCStats - - global __nvmlDeviceGetFBCSessions - data["__nvmlDeviceGetFBCSessions"] = __nvmlDeviceGetFBCSessions - - global __nvmlDeviceGetDriverModel_v2 - data["__nvmlDeviceGetDriverModel_v2"] = __nvmlDeviceGetDriverModel_v2 - - global __nvmlDeviceGetVbiosVersion - data["__nvmlDeviceGetVbiosVersion"] = __nvmlDeviceGetVbiosVersion - - global __nvmlDeviceGetBridgeChipInfo - data["__nvmlDeviceGetBridgeChipInfo"] = __nvmlDeviceGetBridgeChipInfo - - global __nvmlDeviceGetComputeRunningProcesses_v3 - data["__nvmlDeviceGetComputeRunningProcesses_v3"] = __nvmlDeviceGetComputeRunningProcesses_v3 - - global __nvmlDeviceGetGraphicsRunningProcesses_v3 - data["__nvmlDeviceGetGraphicsRunningProcesses_v3"] = __nvmlDeviceGetGraphicsRunningProcesses_v3 - - global __nvmlDeviceGetMPSComputeRunningProcesses_v3 - data["__nvmlDeviceGetMPSComputeRunningProcesses_v3"] = __nvmlDeviceGetMPSComputeRunningProcesses_v3 - - global __nvmlDeviceGetRunningProcessDetailList - data["__nvmlDeviceGetRunningProcessDetailList"] = __nvmlDeviceGetRunningProcessDetailList - - global __nvmlDeviceOnSameBoard - data["__nvmlDeviceOnSameBoard"] = __nvmlDeviceOnSameBoard - - global __nvmlDeviceGetAPIRestriction - data["__nvmlDeviceGetAPIRestriction"] = __nvmlDeviceGetAPIRestriction - - global __nvmlDeviceGetSamples - data["__nvmlDeviceGetSamples"] = __nvmlDeviceGetSamples - - global __nvmlDeviceGetBAR1MemoryInfo - data["__nvmlDeviceGetBAR1MemoryInfo"] = __nvmlDeviceGetBAR1MemoryInfo - - global __nvmlDeviceGetIrqNum - data["__nvmlDeviceGetIrqNum"] = __nvmlDeviceGetIrqNum - - global __nvmlDeviceGetNumGpuCores - data["__nvmlDeviceGetNumGpuCores"] = __nvmlDeviceGetNumGpuCores - - global __nvmlDeviceGetPowerSource - data["__nvmlDeviceGetPowerSource"] = __nvmlDeviceGetPowerSource - - global __nvmlDeviceGetMemoryBusWidth - data["__nvmlDeviceGetMemoryBusWidth"] = __nvmlDeviceGetMemoryBusWidth - - global __nvmlDeviceGetPcieLinkMaxSpeed - data["__nvmlDeviceGetPcieLinkMaxSpeed"] = __nvmlDeviceGetPcieLinkMaxSpeed - - global __nvmlDeviceGetPcieSpeed - data["__nvmlDeviceGetPcieSpeed"] = __nvmlDeviceGetPcieSpeed - - global __nvmlDeviceGetAdaptiveClockInfoStatus - data["__nvmlDeviceGetAdaptiveClockInfoStatus"] = __nvmlDeviceGetAdaptiveClockInfoStatus - - global __nvmlDeviceGetBusType - data["__nvmlDeviceGetBusType"] = __nvmlDeviceGetBusType - - global __nvmlDeviceGetGpuFabricInfoV - data["__nvmlDeviceGetGpuFabricInfoV"] = __nvmlDeviceGetGpuFabricInfoV - - global __nvmlSystemGetConfComputeCapabilities - data["__nvmlSystemGetConfComputeCapabilities"] = __nvmlSystemGetConfComputeCapabilities - - global __nvmlSystemGetConfComputeState - data["__nvmlSystemGetConfComputeState"] = __nvmlSystemGetConfComputeState - - global __nvmlDeviceGetConfComputeMemSizeInfo - data["__nvmlDeviceGetConfComputeMemSizeInfo"] = __nvmlDeviceGetConfComputeMemSizeInfo - - global __nvmlSystemGetConfComputeGpusReadyState - data["__nvmlSystemGetConfComputeGpusReadyState"] = __nvmlSystemGetConfComputeGpusReadyState - - global __nvmlDeviceGetConfComputeProtectedMemoryUsage - data["__nvmlDeviceGetConfComputeProtectedMemoryUsage"] = __nvmlDeviceGetConfComputeProtectedMemoryUsage - - global __nvmlDeviceGetConfComputeGpuCertificate - data["__nvmlDeviceGetConfComputeGpuCertificate"] = __nvmlDeviceGetConfComputeGpuCertificate - - global __nvmlDeviceGetConfComputeGpuAttestationReport - data["__nvmlDeviceGetConfComputeGpuAttestationReport"] = __nvmlDeviceGetConfComputeGpuAttestationReport - - global __nvmlSystemGetConfComputeKeyRotationThresholdInfo - data["__nvmlSystemGetConfComputeKeyRotationThresholdInfo"] = __nvmlSystemGetConfComputeKeyRotationThresholdInfo - - global __nvmlDeviceSetConfComputeUnprotectedMemSize - data["__nvmlDeviceSetConfComputeUnprotectedMemSize"] = __nvmlDeviceSetConfComputeUnprotectedMemSize - - global __nvmlSystemSetConfComputeGpusReadyState - data["__nvmlSystemSetConfComputeGpusReadyState"] = __nvmlSystemSetConfComputeGpusReadyState - - global __nvmlSystemSetConfComputeKeyRotationThresholdInfo - data["__nvmlSystemSetConfComputeKeyRotationThresholdInfo"] = __nvmlSystemSetConfComputeKeyRotationThresholdInfo - - global __nvmlSystemGetConfComputeSettings - data["__nvmlSystemGetConfComputeSettings"] = __nvmlSystemGetConfComputeSettings - - global __nvmlDeviceGetGspFirmwareVersion - data["__nvmlDeviceGetGspFirmwareVersion"] = __nvmlDeviceGetGspFirmwareVersion - - global __nvmlDeviceGetGspFirmwareMode - data["__nvmlDeviceGetGspFirmwareMode"] = __nvmlDeviceGetGspFirmwareMode - - global __nvmlDeviceGetSramEccErrorStatus - data["__nvmlDeviceGetSramEccErrorStatus"] = __nvmlDeviceGetSramEccErrorStatus - - global __nvmlDeviceGetAccountingMode - data["__nvmlDeviceGetAccountingMode"] = __nvmlDeviceGetAccountingMode - - global __nvmlDeviceGetAccountingStats - data["__nvmlDeviceGetAccountingStats"] = __nvmlDeviceGetAccountingStats - - global __nvmlDeviceGetAccountingPids - data["__nvmlDeviceGetAccountingPids"] = __nvmlDeviceGetAccountingPids - - global __nvmlDeviceGetAccountingBufferSize - data["__nvmlDeviceGetAccountingBufferSize"] = __nvmlDeviceGetAccountingBufferSize - - global __nvmlDeviceGetRetiredPages - data["__nvmlDeviceGetRetiredPages"] = __nvmlDeviceGetRetiredPages - - global __nvmlDeviceGetRetiredPages_v2 - data["__nvmlDeviceGetRetiredPages_v2"] = __nvmlDeviceGetRetiredPages_v2 - - global __nvmlDeviceGetRetiredPagesPendingStatus - data["__nvmlDeviceGetRetiredPagesPendingStatus"] = __nvmlDeviceGetRetiredPagesPendingStatus - - global __nvmlDeviceGetRemappedRows - data["__nvmlDeviceGetRemappedRows"] = __nvmlDeviceGetRemappedRows - - global __nvmlDeviceGetRowRemapperHistogram - data["__nvmlDeviceGetRowRemapperHistogram"] = __nvmlDeviceGetRowRemapperHistogram - - global __nvmlDeviceGetArchitecture - data["__nvmlDeviceGetArchitecture"] = __nvmlDeviceGetArchitecture - - global __nvmlDeviceGetClkMonStatus - data["__nvmlDeviceGetClkMonStatus"] = __nvmlDeviceGetClkMonStatus - - global __nvmlDeviceGetProcessUtilization - data["__nvmlDeviceGetProcessUtilization"] = __nvmlDeviceGetProcessUtilization - - global __nvmlDeviceGetProcessesUtilizationInfo - data["__nvmlDeviceGetProcessesUtilizationInfo"] = __nvmlDeviceGetProcessesUtilizationInfo - - global __nvmlDeviceGetPlatformInfo - data["__nvmlDeviceGetPlatformInfo"] = __nvmlDeviceGetPlatformInfo - - global __nvmlUnitSetLedState - data["__nvmlUnitSetLedState"] = __nvmlUnitSetLedState - - global __nvmlDeviceSetPersistenceMode - data["__nvmlDeviceSetPersistenceMode"] = __nvmlDeviceSetPersistenceMode - - global __nvmlDeviceSetComputeMode - data["__nvmlDeviceSetComputeMode"] = __nvmlDeviceSetComputeMode - - global __nvmlDeviceSetEccMode - data["__nvmlDeviceSetEccMode"] = __nvmlDeviceSetEccMode - - global __nvmlDeviceClearEccErrorCounts - data["__nvmlDeviceClearEccErrorCounts"] = __nvmlDeviceClearEccErrorCounts - - global __nvmlDeviceSetDriverModel - data["__nvmlDeviceSetDriverModel"] = __nvmlDeviceSetDriverModel - - global __nvmlDeviceSetGpuLockedClocks - data["__nvmlDeviceSetGpuLockedClocks"] = __nvmlDeviceSetGpuLockedClocks - - global __nvmlDeviceResetGpuLockedClocks - data["__nvmlDeviceResetGpuLockedClocks"] = __nvmlDeviceResetGpuLockedClocks - - global __nvmlDeviceSetMemoryLockedClocks - data["__nvmlDeviceSetMemoryLockedClocks"] = __nvmlDeviceSetMemoryLockedClocks - - global __nvmlDeviceResetMemoryLockedClocks - data["__nvmlDeviceResetMemoryLockedClocks"] = __nvmlDeviceResetMemoryLockedClocks - - global __nvmlDeviceSetAutoBoostedClocksEnabled - data["__nvmlDeviceSetAutoBoostedClocksEnabled"] = __nvmlDeviceSetAutoBoostedClocksEnabled - - global __nvmlDeviceSetDefaultAutoBoostedClocksEnabled - data["__nvmlDeviceSetDefaultAutoBoostedClocksEnabled"] = __nvmlDeviceSetDefaultAutoBoostedClocksEnabled - - global __nvmlDeviceSetDefaultFanSpeed_v2 - data["__nvmlDeviceSetDefaultFanSpeed_v2"] = __nvmlDeviceSetDefaultFanSpeed_v2 - - global __nvmlDeviceSetFanControlPolicy - data["__nvmlDeviceSetFanControlPolicy"] = __nvmlDeviceSetFanControlPolicy - - global __nvmlDeviceSetTemperatureThreshold - data["__nvmlDeviceSetTemperatureThreshold"] = __nvmlDeviceSetTemperatureThreshold - - global __nvmlDeviceSetGpuOperationMode - data["__nvmlDeviceSetGpuOperationMode"] = __nvmlDeviceSetGpuOperationMode - - global __nvmlDeviceSetAPIRestriction - data["__nvmlDeviceSetAPIRestriction"] = __nvmlDeviceSetAPIRestriction - - global __nvmlDeviceSetFanSpeed_v2 - data["__nvmlDeviceSetFanSpeed_v2"] = __nvmlDeviceSetFanSpeed_v2 - - global __nvmlDeviceSetAccountingMode - data["__nvmlDeviceSetAccountingMode"] = __nvmlDeviceSetAccountingMode - - global __nvmlDeviceClearAccountingPids - data["__nvmlDeviceClearAccountingPids"] = __nvmlDeviceClearAccountingPids - - global __nvmlDeviceSetPowerManagementLimit_v2 - data["__nvmlDeviceSetPowerManagementLimit_v2"] = __nvmlDeviceSetPowerManagementLimit_v2 - - global __nvmlDeviceGetNvLinkState - data["__nvmlDeviceGetNvLinkState"] = __nvmlDeviceGetNvLinkState - - global __nvmlDeviceGetNvLinkVersion - data["__nvmlDeviceGetNvLinkVersion"] = __nvmlDeviceGetNvLinkVersion - - global __nvmlDeviceGetNvLinkCapability - data["__nvmlDeviceGetNvLinkCapability"] = __nvmlDeviceGetNvLinkCapability - - global __nvmlDeviceGetNvLinkRemotePciInfo_v2 - data["__nvmlDeviceGetNvLinkRemotePciInfo_v2"] = __nvmlDeviceGetNvLinkRemotePciInfo_v2 - - global __nvmlDeviceGetNvLinkErrorCounter - data["__nvmlDeviceGetNvLinkErrorCounter"] = __nvmlDeviceGetNvLinkErrorCounter - - global __nvmlDeviceResetNvLinkErrorCounters - data["__nvmlDeviceResetNvLinkErrorCounters"] = __nvmlDeviceResetNvLinkErrorCounters - - global __nvmlDeviceGetNvLinkRemoteDeviceType - data["__nvmlDeviceGetNvLinkRemoteDeviceType"] = __nvmlDeviceGetNvLinkRemoteDeviceType - - global __nvmlDeviceSetNvLinkDeviceLowPowerThreshold - data["__nvmlDeviceSetNvLinkDeviceLowPowerThreshold"] = __nvmlDeviceSetNvLinkDeviceLowPowerThreshold - - global __nvmlSystemSetNvlinkBwMode - data["__nvmlSystemSetNvlinkBwMode"] = __nvmlSystemSetNvlinkBwMode - - global __nvmlSystemGetNvlinkBwMode - data["__nvmlSystemGetNvlinkBwMode"] = __nvmlSystemGetNvlinkBwMode - - global __nvmlDeviceGetNvlinkSupportedBwModes - data["__nvmlDeviceGetNvlinkSupportedBwModes"] = __nvmlDeviceGetNvlinkSupportedBwModes - - global __nvmlDeviceGetNvlinkBwMode - data["__nvmlDeviceGetNvlinkBwMode"] = __nvmlDeviceGetNvlinkBwMode - - global __nvmlDeviceSetNvlinkBwMode - data["__nvmlDeviceSetNvlinkBwMode"] = __nvmlDeviceSetNvlinkBwMode - - global __nvmlEventSetCreate - data["__nvmlEventSetCreate"] = __nvmlEventSetCreate - - global __nvmlDeviceRegisterEvents - data["__nvmlDeviceRegisterEvents"] = __nvmlDeviceRegisterEvents - - global __nvmlDeviceGetSupportedEventTypes - data["__nvmlDeviceGetSupportedEventTypes"] = __nvmlDeviceGetSupportedEventTypes - - global __nvmlEventSetWait_v2 - data["__nvmlEventSetWait_v2"] = __nvmlEventSetWait_v2 - - global __nvmlEventSetFree - data["__nvmlEventSetFree"] = __nvmlEventSetFree - - global __nvmlSystemEventSetCreate - data["__nvmlSystemEventSetCreate"] = __nvmlSystemEventSetCreate - - global __nvmlSystemEventSetFree - data["__nvmlSystemEventSetFree"] = __nvmlSystemEventSetFree - - global __nvmlSystemRegisterEvents - data["__nvmlSystemRegisterEvents"] = __nvmlSystemRegisterEvents - - global __nvmlSystemEventSetWait - data["__nvmlSystemEventSetWait"] = __nvmlSystemEventSetWait - - global __nvmlDeviceModifyDrainState - data["__nvmlDeviceModifyDrainState"] = __nvmlDeviceModifyDrainState - - global __nvmlDeviceQueryDrainState - data["__nvmlDeviceQueryDrainState"] = __nvmlDeviceQueryDrainState - - global __nvmlDeviceRemoveGpu_v2 - data["__nvmlDeviceRemoveGpu_v2"] = __nvmlDeviceRemoveGpu_v2 - - global __nvmlDeviceDiscoverGpus - data["__nvmlDeviceDiscoverGpus"] = __nvmlDeviceDiscoverGpus - - global __nvmlDeviceGetFieldValues - data["__nvmlDeviceGetFieldValues"] = __nvmlDeviceGetFieldValues - - global __nvmlDeviceClearFieldValues - data["__nvmlDeviceClearFieldValues"] = __nvmlDeviceClearFieldValues - - global __nvmlDeviceGetVirtualizationMode - data["__nvmlDeviceGetVirtualizationMode"] = __nvmlDeviceGetVirtualizationMode - - global __nvmlDeviceGetHostVgpuMode - data["__nvmlDeviceGetHostVgpuMode"] = __nvmlDeviceGetHostVgpuMode - - global __nvmlDeviceSetVirtualizationMode - data["__nvmlDeviceSetVirtualizationMode"] = __nvmlDeviceSetVirtualizationMode - - global __nvmlDeviceGetVgpuHeterogeneousMode - data["__nvmlDeviceGetVgpuHeterogeneousMode"] = __nvmlDeviceGetVgpuHeterogeneousMode - - global __nvmlDeviceSetVgpuHeterogeneousMode - data["__nvmlDeviceSetVgpuHeterogeneousMode"] = __nvmlDeviceSetVgpuHeterogeneousMode - - global __nvmlVgpuInstanceGetPlacementId - data["__nvmlVgpuInstanceGetPlacementId"] = __nvmlVgpuInstanceGetPlacementId - - global __nvmlDeviceGetVgpuTypeSupportedPlacements - data["__nvmlDeviceGetVgpuTypeSupportedPlacements"] = __nvmlDeviceGetVgpuTypeSupportedPlacements - - global __nvmlDeviceGetVgpuTypeCreatablePlacements - data["__nvmlDeviceGetVgpuTypeCreatablePlacements"] = __nvmlDeviceGetVgpuTypeCreatablePlacements - - global __nvmlVgpuTypeGetGspHeapSize - data["__nvmlVgpuTypeGetGspHeapSize"] = __nvmlVgpuTypeGetGspHeapSize - - global __nvmlVgpuTypeGetFbReservation - data["__nvmlVgpuTypeGetFbReservation"] = __nvmlVgpuTypeGetFbReservation - - global __nvmlVgpuInstanceGetRuntimeStateSize - data["__nvmlVgpuInstanceGetRuntimeStateSize"] = __nvmlVgpuInstanceGetRuntimeStateSize - - global __nvmlDeviceSetVgpuCapabilities - data["__nvmlDeviceSetVgpuCapabilities"] = __nvmlDeviceSetVgpuCapabilities - - global __nvmlDeviceGetGridLicensableFeatures_v4 - data["__nvmlDeviceGetGridLicensableFeatures_v4"] = __nvmlDeviceGetGridLicensableFeatures_v4 - - global __nvmlGetVgpuDriverCapabilities - data["__nvmlGetVgpuDriverCapabilities"] = __nvmlGetVgpuDriverCapabilities - - global __nvmlDeviceGetVgpuCapabilities - data["__nvmlDeviceGetVgpuCapabilities"] = __nvmlDeviceGetVgpuCapabilities - - global __nvmlDeviceGetSupportedVgpus - data["__nvmlDeviceGetSupportedVgpus"] = __nvmlDeviceGetSupportedVgpus - - global __nvmlDeviceGetCreatableVgpus - data["__nvmlDeviceGetCreatableVgpus"] = __nvmlDeviceGetCreatableVgpus - - global __nvmlVgpuTypeGetClass - data["__nvmlVgpuTypeGetClass"] = __nvmlVgpuTypeGetClass - - global __nvmlVgpuTypeGetName - data["__nvmlVgpuTypeGetName"] = __nvmlVgpuTypeGetName - - global __nvmlVgpuTypeGetGpuInstanceProfileId - data["__nvmlVgpuTypeGetGpuInstanceProfileId"] = __nvmlVgpuTypeGetGpuInstanceProfileId - - global __nvmlVgpuTypeGetDeviceID - data["__nvmlVgpuTypeGetDeviceID"] = __nvmlVgpuTypeGetDeviceID - - global __nvmlVgpuTypeGetFramebufferSize - data["__nvmlVgpuTypeGetFramebufferSize"] = __nvmlVgpuTypeGetFramebufferSize - - global __nvmlVgpuTypeGetNumDisplayHeads - data["__nvmlVgpuTypeGetNumDisplayHeads"] = __nvmlVgpuTypeGetNumDisplayHeads - - global __nvmlVgpuTypeGetResolution - data["__nvmlVgpuTypeGetResolution"] = __nvmlVgpuTypeGetResolution - - global __nvmlVgpuTypeGetLicense - data["__nvmlVgpuTypeGetLicense"] = __nvmlVgpuTypeGetLicense - - global __nvmlVgpuTypeGetFrameRateLimit - data["__nvmlVgpuTypeGetFrameRateLimit"] = __nvmlVgpuTypeGetFrameRateLimit - - global __nvmlVgpuTypeGetMaxInstances - data["__nvmlVgpuTypeGetMaxInstances"] = __nvmlVgpuTypeGetMaxInstances - - global __nvmlVgpuTypeGetMaxInstancesPerVm - data["__nvmlVgpuTypeGetMaxInstancesPerVm"] = __nvmlVgpuTypeGetMaxInstancesPerVm - - global __nvmlVgpuTypeGetBAR1Info - data["__nvmlVgpuTypeGetBAR1Info"] = __nvmlVgpuTypeGetBAR1Info - - global __nvmlDeviceGetActiveVgpus - data["__nvmlDeviceGetActiveVgpus"] = __nvmlDeviceGetActiveVgpus - - global __nvmlVgpuInstanceGetVmID - data["__nvmlVgpuInstanceGetVmID"] = __nvmlVgpuInstanceGetVmID - - global __nvmlVgpuInstanceGetUUID - data["__nvmlVgpuInstanceGetUUID"] = __nvmlVgpuInstanceGetUUID - - global __nvmlVgpuInstanceGetVmDriverVersion - data["__nvmlVgpuInstanceGetVmDriverVersion"] = __nvmlVgpuInstanceGetVmDriverVersion - - global __nvmlVgpuInstanceGetFbUsage - data["__nvmlVgpuInstanceGetFbUsage"] = __nvmlVgpuInstanceGetFbUsage - - global __nvmlVgpuInstanceGetLicenseStatus - data["__nvmlVgpuInstanceGetLicenseStatus"] = __nvmlVgpuInstanceGetLicenseStatus - - global __nvmlVgpuInstanceGetType - data["__nvmlVgpuInstanceGetType"] = __nvmlVgpuInstanceGetType - - global __nvmlVgpuInstanceGetFrameRateLimit - data["__nvmlVgpuInstanceGetFrameRateLimit"] = __nvmlVgpuInstanceGetFrameRateLimit - - global __nvmlVgpuInstanceGetEccMode - data["__nvmlVgpuInstanceGetEccMode"] = __nvmlVgpuInstanceGetEccMode - - global __nvmlVgpuInstanceGetEncoderCapacity - data["__nvmlVgpuInstanceGetEncoderCapacity"] = __nvmlVgpuInstanceGetEncoderCapacity - - global __nvmlVgpuInstanceSetEncoderCapacity - data["__nvmlVgpuInstanceSetEncoderCapacity"] = __nvmlVgpuInstanceSetEncoderCapacity - - global __nvmlVgpuInstanceGetEncoderStats - data["__nvmlVgpuInstanceGetEncoderStats"] = __nvmlVgpuInstanceGetEncoderStats - - global __nvmlVgpuInstanceGetEncoderSessions - data["__nvmlVgpuInstanceGetEncoderSessions"] = __nvmlVgpuInstanceGetEncoderSessions - - global __nvmlVgpuInstanceGetFBCStats - data["__nvmlVgpuInstanceGetFBCStats"] = __nvmlVgpuInstanceGetFBCStats - - global __nvmlVgpuInstanceGetFBCSessions - data["__nvmlVgpuInstanceGetFBCSessions"] = __nvmlVgpuInstanceGetFBCSessions - - global __nvmlVgpuInstanceGetGpuInstanceId - data["__nvmlVgpuInstanceGetGpuInstanceId"] = __nvmlVgpuInstanceGetGpuInstanceId - - global __nvmlVgpuInstanceGetGpuPciId - data["__nvmlVgpuInstanceGetGpuPciId"] = __nvmlVgpuInstanceGetGpuPciId - - global __nvmlVgpuTypeGetCapabilities - data["__nvmlVgpuTypeGetCapabilities"] = __nvmlVgpuTypeGetCapabilities - - global __nvmlVgpuInstanceGetMdevUUID - data["__nvmlVgpuInstanceGetMdevUUID"] = __nvmlVgpuInstanceGetMdevUUID - - global __nvmlGpuInstanceGetCreatableVgpus - data["__nvmlGpuInstanceGetCreatableVgpus"] = __nvmlGpuInstanceGetCreatableVgpus - - global __nvmlVgpuTypeGetMaxInstancesPerGpuInstance - data["__nvmlVgpuTypeGetMaxInstancesPerGpuInstance"] = __nvmlVgpuTypeGetMaxInstancesPerGpuInstance - - global __nvmlGpuInstanceGetActiveVgpus - data["__nvmlGpuInstanceGetActiveVgpus"] = __nvmlGpuInstanceGetActiveVgpus - - global __nvmlGpuInstanceSetVgpuSchedulerState - data["__nvmlGpuInstanceSetVgpuSchedulerState"] = __nvmlGpuInstanceSetVgpuSchedulerState - - global __nvmlGpuInstanceGetVgpuSchedulerState - data["__nvmlGpuInstanceGetVgpuSchedulerState"] = __nvmlGpuInstanceGetVgpuSchedulerState - - global __nvmlGpuInstanceGetVgpuSchedulerLog - data["__nvmlGpuInstanceGetVgpuSchedulerLog"] = __nvmlGpuInstanceGetVgpuSchedulerLog - - global __nvmlGpuInstanceGetVgpuTypeCreatablePlacements - data["__nvmlGpuInstanceGetVgpuTypeCreatablePlacements"] = __nvmlGpuInstanceGetVgpuTypeCreatablePlacements - - global __nvmlGpuInstanceGetVgpuHeterogeneousMode - data["__nvmlGpuInstanceGetVgpuHeterogeneousMode"] = __nvmlGpuInstanceGetVgpuHeterogeneousMode - - global __nvmlGpuInstanceSetVgpuHeterogeneousMode - data["__nvmlGpuInstanceSetVgpuHeterogeneousMode"] = __nvmlGpuInstanceSetVgpuHeterogeneousMode - - global __nvmlVgpuInstanceGetMetadata - data["__nvmlVgpuInstanceGetMetadata"] = __nvmlVgpuInstanceGetMetadata - - global __nvmlDeviceGetVgpuMetadata - data["__nvmlDeviceGetVgpuMetadata"] = __nvmlDeviceGetVgpuMetadata - - global __nvmlGetVgpuCompatibility - data["__nvmlGetVgpuCompatibility"] = __nvmlGetVgpuCompatibility - - global __nvmlDeviceGetPgpuMetadataString - data["__nvmlDeviceGetPgpuMetadataString"] = __nvmlDeviceGetPgpuMetadataString - - global __nvmlDeviceGetVgpuSchedulerLog - data["__nvmlDeviceGetVgpuSchedulerLog"] = __nvmlDeviceGetVgpuSchedulerLog - - global __nvmlDeviceGetVgpuSchedulerState - data["__nvmlDeviceGetVgpuSchedulerState"] = __nvmlDeviceGetVgpuSchedulerState - - global __nvmlDeviceGetVgpuSchedulerCapabilities - data["__nvmlDeviceGetVgpuSchedulerCapabilities"] = __nvmlDeviceGetVgpuSchedulerCapabilities - - global __nvmlDeviceSetVgpuSchedulerState - data["__nvmlDeviceSetVgpuSchedulerState"] = __nvmlDeviceSetVgpuSchedulerState - - global __nvmlGetVgpuVersion - data["__nvmlGetVgpuVersion"] = __nvmlGetVgpuVersion - - global __nvmlSetVgpuVersion - data["__nvmlSetVgpuVersion"] = __nvmlSetVgpuVersion - - global __nvmlDeviceGetVgpuUtilization - data["__nvmlDeviceGetVgpuUtilization"] = __nvmlDeviceGetVgpuUtilization - - global __nvmlDeviceGetVgpuInstancesUtilizationInfo - data["__nvmlDeviceGetVgpuInstancesUtilizationInfo"] = __nvmlDeviceGetVgpuInstancesUtilizationInfo - - global __nvmlDeviceGetVgpuProcessUtilization - data["__nvmlDeviceGetVgpuProcessUtilization"] = __nvmlDeviceGetVgpuProcessUtilization - - global __nvmlDeviceGetVgpuProcessesUtilizationInfo - data["__nvmlDeviceGetVgpuProcessesUtilizationInfo"] = __nvmlDeviceGetVgpuProcessesUtilizationInfo - - global __nvmlVgpuInstanceGetAccountingMode - data["__nvmlVgpuInstanceGetAccountingMode"] = __nvmlVgpuInstanceGetAccountingMode - - global __nvmlVgpuInstanceGetAccountingPids - data["__nvmlVgpuInstanceGetAccountingPids"] = __nvmlVgpuInstanceGetAccountingPids - - global __nvmlVgpuInstanceGetAccountingStats - data["__nvmlVgpuInstanceGetAccountingStats"] = __nvmlVgpuInstanceGetAccountingStats - - global __nvmlVgpuInstanceClearAccountingPids - data["__nvmlVgpuInstanceClearAccountingPids"] = __nvmlVgpuInstanceClearAccountingPids - - global __nvmlVgpuInstanceGetLicenseInfo_v2 - data["__nvmlVgpuInstanceGetLicenseInfo_v2"] = __nvmlVgpuInstanceGetLicenseInfo_v2 - - global __nvmlGetExcludedDeviceCount - data["__nvmlGetExcludedDeviceCount"] = __nvmlGetExcludedDeviceCount - - global __nvmlGetExcludedDeviceInfoByIndex - data["__nvmlGetExcludedDeviceInfoByIndex"] = __nvmlGetExcludedDeviceInfoByIndex - - global __nvmlDeviceSetMigMode - data["__nvmlDeviceSetMigMode"] = __nvmlDeviceSetMigMode - - global __nvmlDeviceGetMigMode - data["__nvmlDeviceGetMigMode"] = __nvmlDeviceGetMigMode - - global __nvmlDeviceGetGpuInstanceProfileInfoV - data["__nvmlDeviceGetGpuInstanceProfileInfoV"] = __nvmlDeviceGetGpuInstanceProfileInfoV - - global __nvmlDeviceGetGpuInstancePossiblePlacements_v2 - data["__nvmlDeviceGetGpuInstancePossiblePlacements_v2"] = __nvmlDeviceGetGpuInstancePossiblePlacements_v2 - - global __nvmlDeviceGetGpuInstanceRemainingCapacity - data["__nvmlDeviceGetGpuInstanceRemainingCapacity"] = __nvmlDeviceGetGpuInstanceRemainingCapacity - - global __nvmlDeviceCreateGpuInstance - data["__nvmlDeviceCreateGpuInstance"] = __nvmlDeviceCreateGpuInstance - - global __nvmlDeviceCreateGpuInstanceWithPlacement - data["__nvmlDeviceCreateGpuInstanceWithPlacement"] = __nvmlDeviceCreateGpuInstanceWithPlacement - - global __nvmlGpuInstanceDestroy - data["__nvmlGpuInstanceDestroy"] = __nvmlGpuInstanceDestroy - - global __nvmlDeviceGetGpuInstances - data["__nvmlDeviceGetGpuInstances"] = __nvmlDeviceGetGpuInstances - - global __nvmlDeviceGetGpuInstanceById - data["__nvmlDeviceGetGpuInstanceById"] = __nvmlDeviceGetGpuInstanceById - - global __nvmlGpuInstanceGetInfo - data["__nvmlGpuInstanceGetInfo"] = __nvmlGpuInstanceGetInfo - - global __nvmlGpuInstanceGetComputeInstanceProfileInfoV - data["__nvmlGpuInstanceGetComputeInstanceProfileInfoV"] = __nvmlGpuInstanceGetComputeInstanceProfileInfoV - - global __nvmlGpuInstanceGetComputeInstanceRemainingCapacity - data["__nvmlGpuInstanceGetComputeInstanceRemainingCapacity"] = __nvmlGpuInstanceGetComputeInstanceRemainingCapacity - - global __nvmlGpuInstanceGetComputeInstancePossiblePlacements - data["__nvmlGpuInstanceGetComputeInstancePossiblePlacements"] = __nvmlGpuInstanceGetComputeInstancePossiblePlacements - - global __nvmlGpuInstanceCreateComputeInstance - data["__nvmlGpuInstanceCreateComputeInstance"] = __nvmlGpuInstanceCreateComputeInstance - - global __nvmlGpuInstanceCreateComputeInstanceWithPlacement - data["__nvmlGpuInstanceCreateComputeInstanceWithPlacement"] = __nvmlGpuInstanceCreateComputeInstanceWithPlacement - - global __nvmlComputeInstanceDestroy - data["__nvmlComputeInstanceDestroy"] = __nvmlComputeInstanceDestroy - - global __nvmlGpuInstanceGetComputeInstances - data["__nvmlGpuInstanceGetComputeInstances"] = __nvmlGpuInstanceGetComputeInstances - - global __nvmlGpuInstanceGetComputeInstanceById - data["__nvmlGpuInstanceGetComputeInstanceById"] = __nvmlGpuInstanceGetComputeInstanceById - - global __nvmlComputeInstanceGetInfo_v2 - data["__nvmlComputeInstanceGetInfo_v2"] = __nvmlComputeInstanceGetInfo_v2 - - global __nvmlDeviceIsMigDeviceHandle - data["__nvmlDeviceIsMigDeviceHandle"] = __nvmlDeviceIsMigDeviceHandle - - global __nvmlDeviceGetGpuInstanceId - data["__nvmlDeviceGetGpuInstanceId"] = __nvmlDeviceGetGpuInstanceId - - global __nvmlDeviceGetComputeInstanceId - data["__nvmlDeviceGetComputeInstanceId"] = __nvmlDeviceGetComputeInstanceId - - global __nvmlDeviceGetMaxMigDeviceCount - data["__nvmlDeviceGetMaxMigDeviceCount"] = __nvmlDeviceGetMaxMigDeviceCount - - global __nvmlDeviceGetMigDeviceHandleByIndex - data["__nvmlDeviceGetMigDeviceHandleByIndex"] = __nvmlDeviceGetMigDeviceHandleByIndex - - global __nvmlDeviceGetDeviceHandleFromMigDeviceHandle - data["__nvmlDeviceGetDeviceHandleFromMigDeviceHandle"] = __nvmlDeviceGetDeviceHandleFromMigDeviceHandle - - global __nvmlDeviceGetCapabilities - data["__nvmlDeviceGetCapabilities"] = __nvmlDeviceGetCapabilities - - global __nvmlDevicePowerSmoothingActivatePresetProfile - data["__nvmlDevicePowerSmoothingActivatePresetProfile"] = __nvmlDevicePowerSmoothingActivatePresetProfile - - global __nvmlDevicePowerSmoothingUpdatePresetProfileParam - data["__nvmlDevicePowerSmoothingUpdatePresetProfileParam"] = __nvmlDevicePowerSmoothingUpdatePresetProfileParam - - global __nvmlDevicePowerSmoothingSetState - data["__nvmlDevicePowerSmoothingSetState"] = __nvmlDevicePowerSmoothingSetState - - global __nvmlDeviceGetAddressingMode - data["__nvmlDeviceGetAddressingMode"] = __nvmlDeviceGetAddressingMode - - global __nvmlDeviceGetRepairStatus - data["__nvmlDeviceGetRepairStatus"] = __nvmlDeviceGetRepairStatus - - global __nvmlDeviceGetPowerMizerMode_v1 - data["__nvmlDeviceGetPowerMizerMode_v1"] = __nvmlDeviceGetPowerMizerMode_v1 - - global __nvmlDeviceSetPowerMizerMode_v1 - data["__nvmlDeviceSetPowerMizerMode_v1"] = __nvmlDeviceSetPowerMizerMode_v1 - - global __nvmlDeviceGetPdi - data["__nvmlDeviceGetPdi"] = __nvmlDeviceGetPdi - - global __nvmlDeviceSetHostname_v1 - data["__nvmlDeviceSetHostname_v1"] = __nvmlDeviceSetHostname_v1 - - global __nvmlDeviceGetHostname_v1 - data["__nvmlDeviceGetHostname_v1"] = __nvmlDeviceGetHostname_v1 - - global __nvmlDeviceGetNvLinkInfo - data["__nvmlDeviceGetNvLinkInfo"] = __nvmlDeviceGetNvLinkInfo - - global __nvmlDeviceReadWritePRM_v1 - data["__nvmlDeviceReadWritePRM_v1"] = __nvmlDeviceReadWritePRM_v1 - - global __nvmlDeviceGetGpuInstanceProfileInfoByIdV - data["__nvmlDeviceGetGpuInstanceProfileInfoByIdV"] = __nvmlDeviceGetGpuInstanceProfileInfoByIdV - - global __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts - data["__nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts"] = __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts - - global __nvmlDeviceGetUnrepairableMemoryFlag_v1 - data["__nvmlDeviceGetUnrepairableMemoryFlag_v1"] = __nvmlDeviceGetUnrepairableMemoryFlag_v1 - - global __nvmlDeviceReadPRMCounters_v1 - data["__nvmlDeviceReadPRMCounters_v1"] = __nvmlDeviceReadPRMCounters_v1 - - global __nvmlDeviceSetRusdSettings_v1 - data["__nvmlDeviceSetRusdSettings_v1"] = __nvmlDeviceSetRusdSettings_v1 - - global __nvmlDeviceVgpuForceGspUnload - data["__nvmlDeviceVgpuForceGspUnload"] = __nvmlDeviceVgpuForceGspUnload - - global __nvmlDeviceGetVgpuSchedulerState_v2 - data["__nvmlDeviceGetVgpuSchedulerState_v2"] = __nvmlDeviceGetVgpuSchedulerState_v2 - - global __nvmlGpuInstanceGetVgpuSchedulerState_v2 - data["__nvmlGpuInstanceGetVgpuSchedulerState_v2"] = __nvmlGpuInstanceGetVgpuSchedulerState_v2 - - global __nvmlDeviceGetVgpuSchedulerLog_v2 - data["__nvmlDeviceGetVgpuSchedulerLog_v2"] = __nvmlDeviceGetVgpuSchedulerLog_v2 - - global __nvmlGpuInstanceGetVgpuSchedulerLog_v2 - data["__nvmlGpuInstanceGetVgpuSchedulerLog_v2"] = __nvmlGpuInstanceGetVgpuSchedulerLog_v2 - - global __nvmlDeviceSetVgpuSchedulerState_v2 - data["__nvmlDeviceSetVgpuSchedulerState_v2"] = __nvmlDeviceSetVgpuSchedulerState_v2 - - global __nvmlGpuInstanceSetVgpuSchedulerState_v2 - data["__nvmlGpuInstanceSetVgpuSchedulerState_v2"] = __nvmlGpuInstanceSetVgpuSchedulerState_v2 - - global __nvmlSystemGetCPER_v1 - data["__nvmlSystemGetCPER_v1"] = __nvmlSystemGetCPER_v1 - - global __nvmlDeviceGetBBXTimeData_v1 - data["__nvmlDeviceGetBBXTimeData_v1"] = __nvmlDeviceGetBBXTimeData_v1 - - global __nvmlDeviceGetAccountingStats_v2 - data["__nvmlDeviceGetAccountingStats_v2"] = __nvmlDeviceGetAccountingStats_v2 - - global __nvmlDeviceGetRemappedRows_v2 - data["__nvmlDeviceGetRemappedRows_v2"] = __nvmlDeviceGetRemappedRows_v2 - - global __nvmlDeviceSetAdaptiveTgpMode_v1 - data["__nvmlDeviceSetAdaptiveTgpMode_v1"] = __nvmlDeviceSetAdaptiveTgpMode_v1 - - global __nvmlDeviceGetAdaptiveTgpModeInfo_v1 - data["__nvmlDeviceGetAdaptiveTgpModeInfo_v1"] = __nvmlDeviceGetAdaptiveTgpModeInfo_v1 - - global __nvmlDeviceSetMemoryLimits_v1 - data["__nvmlDeviceSetMemoryLimits_v1"] = __nvmlDeviceSetMemoryLimits_v1 - - global __nvmlDeviceGetMemoryLimits_v1 - data["__nvmlDeviceGetMemoryLimits_v1"] = __nvmlDeviceGetMemoryLimits_v1 - - global __nvmlDeviceGetGpuFabricInfo_v4 - data["__nvmlDeviceGetGpuFabricInfo_v4"] = __nvmlDeviceGetGpuFabricInfo_v4 - - global __nvmlDevicePerfMetricsGetSamples_v1 - data["__nvmlDevicePerfMetricsGetSamples_v1"] = __nvmlDevicePerfMetricsGetSamples_v1 - - global __nvmlDeviceSetNvlinkBwModeAsync_v1 - data["__nvmlDeviceSetNvlinkBwModeAsync_v1"] = __nvmlDeviceSetNvlinkBwModeAsync_v1 +cdef void* __nvmlUnitSetLedState = NULL +cdef void* __nvmlDeviceSetPersistenceMode = NULL +cdef void* __nvmlDeviceSetComputeMode = NULL +cdef void* __nvmlDeviceSetEccMode = NULL +cdef void* __nvmlDeviceClearEccErrorCounts = NULL +cdef void* __nvmlDeviceSetDriverModel = NULL +cdef void* __nvmlDeviceSetGpuLockedClocks = NULL +cdef void* __nvmlDeviceResetGpuLockedClocks = NULL +cdef void* __nvmlDeviceSetMemoryLockedClocks = NULL +cdef void* __nvmlDeviceResetMemoryLockedClocks = NULL +cdef void* __nvmlDeviceSetAutoBoostedClocksEnabled = NULL +cdef void* __nvmlDeviceSetDefaultAutoBoostedClocksEnabled = NULL +cdef void* __nvmlDeviceSetDefaultFanSpeed_v2 = NULL +cdef void* __nvmlDeviceSetFanControlPolicy = NULL +cdef void* __nvmlDeviceSetTemperatureThreshold = NULL +cdef void* __nvmlDeviceSetGpuOperationMode = NULL +cdef void* __nvmlDeviceSetAPIRestriction = NULL +cdef void* __nvmlDeviceSetFanSpeed_v2 = NULL +cdef void* __nvmlDeviceSetAccountingMode = NULL +cdef void* __nvmlDeviceClearAccountingPids = NULL +cdef void* __nvmlDeviceSetPowerManagementLimit_v2 = NULL +cdef void* __nvmlDeviceGetNvLinkState = NULL +cdef void* __nvmlDeviceGetNvLinkVersion = NULL +cdef void* __nvmlDeviceGetNvLinkCapability = NULL +cdef void* __nvmlDeviceGetNvLinkRemotePciInfo_v2 = NULL +cdef void* __nvmlDeviceGetNvLinkErrorCounter = NULL +cdef void* __nvmlDeviceResetNvLinkErrorCounters = NULL +cdef void* __nvmlDeviceGetNvLinkRemoteDeviceType = NULL +cdef void* __nvmlDeviceSetNvLinkDeviceLowPowerThreshold = NULL +cdef void* __nvmlSystemSetNvlinkBwMode = NULL +cdef void* __nvmlSystemGetNvlinkBwMode = NULL +cdef void* __nvmlDeviceGetNvlinkSupportedBwModes = NULL +cdef void* __nvmlDeviceGetNvlinkBwMode = NULL +cdef void* __nvmlDeviceSetNvlinkBwMode = NULL +cdef void* __nvmlEventSetCreate = NULL +cdef void* __nvmlDeviceRegisterEvents = NULL +cdef void* __nvmlDeviceGetSupportedEventTypes = NULL +cdef void* __nvmlEventSetWait_v2 = NULL +cdef void* __nvmlEventSetFree = NULL +cdef void* __nvmlSystemEventSetCreate = NULL +cdef void* __nvmlSystemEventSetFree = NULL +cdef void* __nvmlSystemRegisterEvents = NULL +cdef void* __nvmlSystemEventSetWait = NULL +cdef void* __nvmlDeviceModifyDrainState = NULL +cdef void* __nvmlDeviceQueryDrainState = NULL +cdef void* __nvmlDeviceRemoveGpu_v2 = NULL +cdef void* __nvmlDeviceDiscoverGpus = NULL +cdef void* __nvmlDeviceGetFieldValues = NULL +cdef void* __nvmlDeviceClearFieldValues = NULL +cdef void* __nvmlDeviceGetVirtualizationMode = NULL +cdef void* __nvmlDeviceGetHostVgpuMode = NULL +cdef void* __nvmlDeviceSetVirtualizationMode = NULL +cdef void* __nvmlDeviceGetVgpuHeterogeneousMode = NULL +cdef void* __nvmlDeviceSetVgpuHeterogeneousMode = NULL +cdef void* __nvmlVgpuInstanceGetPlacementId = NULL +cdef void* __nvmlDeviceGetVgpuTypeSupportedPlacements = NULL +cdef void* __nvmlDeviceGetVgpuTypeCreatablePlacements = NULL +cdef void* __nvmlVgpuTypeGetGspHeapSize = NULL +cdef void* __nvmlVgpuTypeGetFbReservation = NULL +cdef void* __nvmlVgpuInstanceGetRuntimeStateSize = NULL +cdef void* __nvmlDeviceSetVgpuCapabilities = NULL +cdef void* __nvmlDeviceGetGridLicensableFeatures_v4 = NULL +cdef void* __nvmlGetVgpuDriverCapabilities = NULL +cdef void* __nvmlDeviceGetVgpuCapabilities = NULL +cdef void* __nvmlDeviceGetSupportedVgpus = NULL +cdef void* __nvmlDeviceGetCreatableVgpus = NULL +cdef void* __nvmlVgpuTypeGetClass = NULL +cdef void* __nvmlVgpuTypeGetName = NULL +cdef void* __nvmlVgpuTypeGetGpuInstanceProfileId = NULL +cdef void* __nvmlVgpuTypeGetDeviceID = NULL +cdef void* __nvmlVgpuTypeGetFramebufferSize = NULL +cdef void* __nvmlVgpuTypeGetNumDisplayHeads = NULL +cdef void* __nvmlVgpuTypeGetResolution = NULL +cdef void* __nvmlVgpuTypeGetLicense = NULL +cdef void* __nvmlVgpuTypeGetFrameRateLimit = NULL +cdef void* __nvmlVgpuTypeGetMaxInstances = NULL +cdef void* __nvmlVgpuTypeGetMaxInstancesPerVm = NULL +cdef void* __nvmlVgpuTypeGetBAR1Info = NULL +cdef void* __nvmlDeviceGetActiveVgpus = NULL +cdef void* __nvmlVgpuInstanceGetVmID = NULL +cdef void* __nvmlVgpuInstanceGetUUID = NULL +cdef void* __nvmlVgpuInstanceGetVmDriverVersion = NULL +cdef void* __nvmlVgpuInstanceGetFbUsage = NULL +cdef void* __nvmlVgpuInstanceGetLicenseStatus = NULL +cdef void* __nvmlVgpuInstanceGetType = NULL +cdef void* __nvmlVgpuInstanceGetFrameRateLimit = NULL +cdef void* __nvmlVgpuInstanceGetEccMode = NULL +cdef void* __nvmlVgpuInstanceGetEncoderCapacity = NULL +cdef void* __nvmlVgpuInstanceSetEncoderCapacity = NULL +cdef void* __nvmlVgpuInstanceGetEncoderStats = NULL +cdef void* __nvmlVgpuInstanceGetEncoderSessions = NULL +cdef void* __nvmlVgpuInstanceGetFBCStats = NULL +cdef void* __nvmlVgpuInstanceGetFBCSessions = NULL +cdef void* __nvmlVgpuInstanceGetGpuInstanceId = NULL +cdef void* __nvmlVgpuInstanceGetGpuPciId = NULL +cdef void* __nvmlVgpuTypeGetCapabilities = NULL +cdef void* __nvmlVgpuInstanceGetMdevUUID = NULL +cdef void* __nvmlGpuInstanceGetCreatableVgpus = NULL +cdef void* __nvmlVgpuTypeGetMaxInstancesPerGpuInstance = NULL +cdef void* __nvmlGpuInstanceGetActiveVgpus = NULL +cdef void* __nvmlGpuInstanceSetVgpuSchedulerState = NULL +cdef void* __nvmlGpuInstanceGetVgpuSchedulerState = NULL +cdef void* __nvmlGpuInstanceGetVgpuSchedulerLog = NULL +cdef void* __nvmlGpuInstanceGetVgpuTypeCreatablePlacements = NULL +cdef void* __nvmlGpuInstanceGetVgpuHeterogeneousMode = NULL +cdef void* __nvmlGpuInstanceSetVgpuHeterogeneousMode = NULL +cdef void* __nvmlVgpuInstanceGetMetadata = NULL +cdef void* __nvmlDeviceGetVgpuMetadata = NULL +cdef void* __nvmlGetVgpuCompatibility = NULL +cdef void* __nvmlDeviceGetPgpuMetadataString = NULL +cdef void* __nvmlDeviceGetVgpuSchedulerLog = NULL +cdef void* __nvmlDeviceGetVgpuSchedulerState = NULL +cdef void* __nvmlDeviceGetVgpuSchedulerCapabilities = NULL +cdef void* __nvmlDeviceSetVgpuSchedulerState = NULL +cdef void* __nvmlGetVgpuVersion = NULL +cdef void* __nvmlSetVgpuVersion = NULL +cdef void* __nvmlDeviceGetVgpuUtilization = NULL +cdef void* __nvmlDeviceGetVgpuInstancesUtilizationInfo = NULL +cdef void* __nvmlDeviceGetVgpuProcessUtilization = NULL +cdef void* __nvmlDeviceGetVgpuProcessesUtilizationInfo = NULL +cdef void* __nvmlVgpuInstanceGetAccountingMode = NULL +cdef void* __nvmlVgpuInstanceGetAccountingPids = NULL +cdef void* __nvmlVgpuInstanceGetAccountingStats = NULL +cdef void* __nvmlVgpuInstanceClearAccountingPids = NULL +cdef void* __nvmlVgpuInstanceGetLicenseInfo_v2 = NULL +cdef void* __nvmlGetExcludedDeviceCount = NULL +cdef void* __nvmlGetExcludedDeviceInfoByIndex = NULL +cdef void* __nvmlDeviceSetMigMode = NULL +cdef void* __nvmlDeviceGetMigMode = NULL +cdef void* __nvmlDeviceGetGpuInstanceProfileInfoV = NULL +cdef void* __nvmlDeviceGetGpuInstancePossiblePlacements_v2 = NULL +cdef void* __nvmlDeviceGetGpuInstanceRemainingCapacity = NULL +cdef void* __nvmlDeviceCreateGpuInstance = NULL +cdef void* __nvmlDeviceCreateGpuInstanceWithPlacement = NULL +cdef void* __nvmlGpuInstanceDestroy = NULL +cdef void* __nvmlDeviceGetGpuInstances = NULL +cdef void* __nvmlDeviceGetGpuInstanceById = NULL +cdef void* __nvmlGpuInstanceGetInfo = NULL +cdef void* __nvmlGpuInstanceGetComputeInstanceProfileInfoV = NULL +cdef void* __nvmlGpuInstanceGetComputeInstanceRemainingCapacity = NULL +cdef void* __nvmlGpuInstanceGetComputeInstancePossiblePlacements = NULL +cdef void* __nvmlGpuInstanceCreateComputeInstance = NULL +cdef void* __nvmlGpuInstanceCreateComputeInstanceWithPlacement = NULL +cdef void* __nvmlComputeInstanceDestroy = NULL +cdef void* __nvmlGpuInstanceGetComputeInstances = NULL +cdef void* __nvmlGpuInstanceGetComputeInstanceById = NULL +cdef void* __nvmlComputeInstanceGetInfo_v2 = NULL +cdef void* __nvmlDeviceIsMigDeviceHandle = NULL +cdef void* __nvmlDeviceGetGpuInstanceId = NULL +cdef void* __nvmlDeviceGetComputeInstanceId = NULL +cdef void* __nvmlDeviceGetMaxMigDeviceCount = NULL +cdef void* __nvmlDeviceGetMigDeviceHandleByIndex = NULL +cdef void* __nvmlDeviceGetDeviceHandleFromMigDeviceHandle = NULL +cdef void* __nvmlDeviceGetCapabilities = NULL +cdef void* __nvmlDevicePowerSmoothingActivatePresetProfile = NULL +cdef void* __nvmlDevicePowerSmoothingUpdatePresetProfileParam = NULL +cdef void* __nvmlDevicePowerSmoothingSetState = NULL +cdef void* __nvmlDeviceGetAddressingMode = NULL +cdef void* __nvmlDeviceGetRepairStatus = NULL +cdef void* __nvmlDeviceGetPowerMizerMode_v1 = NULL +cdef void* __nvmlDeviceSetPowerMizerMode_v1 = NULL +cdef void* __nvmlDeviceGetPdi = NULL +cdef void* __nvmlDeviceSetHostname_v1 = NULL +cdef void* __nvmlDeviceGetHostname_v1 = NULL +cdef void* __nvmlDeviceGetNvLinkInfo = NULL +cdef void* __nvmlDeviceReadWritePRM_v1 = NULL +cdef void* __nvmlDeviceGetGpuInstanceProfileInfoByIdV = NULL +cdef void* __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts = NULL +cdef void* __nvmlDeviceGetUnrepairableMemoryFlag_v1 = NULL +cdef void* __nvmlDeviceReadPRMCounters_v1 = NULL +cdef void* __nvmlDeviceSetRusdSettings_v1 = NULL +cdef void* __nvmlDeviceVgpuForceGspUnload = NULL +cdef void* __nvmlDeviceGetVgpuSchedulerState_v2 = NULL +cdef void* __nvmlGpuInstanceGetVgpuSchedulerState_v2 = NULL +cdef void* __nvmlDeviceGetVgpuSchedulerLog_v2 = NULL +cdef void* __nvmlGpuInstanceGetVgpuSchedulerLog_v2 = NULL +cdef void* __nvmlDeviceSetVgpuSchedulerState_v2 = NULL +cdef void* __nvmlGpuInstanceSetVgpuSchedulerState_v2 = NULL +cdef void* __nvmlSystemGetCPER_v1 = NULL +cdef void* __nvmlDeviceGetBBXTimeData_v1 = NULL +cdef void* __nvmlDeviceGetAccountingStats_v2 = NULL +cdef void* __nvmlDeviceGetRemappedRows_v2 = NULL +cdef void* __nvmlDeviceSetAdaptiveTgpMode_v1 = NULL +cdef void* __nvmlDeviceGetAdaptiveTgpModeInfo_v1 = NULL +cdef void* __nvmlDeviceSetMemoryLimits_v1 = NULL +cdef void* __nvmlDeviceGetMemoryLimits_v1 = NULL +cdef void* __nvmlDeviceGetGpuFabricInfo_v4 = NULL +cdef void* __nvmlDevicePerfMetricsGetSamples_v1 = NULL +cdef void* __nvmlDeviceSetNvlinkBwModeAsync_v1 = NULL +cdef void* __nvmlDeviceGetNvLinkTelemetrySamples_v1 = NULL +cdef void* __nvmlEventSetRegisterGpuOperationalEvents_v1 = NULL +cdef void* __nvmlEventSetWait_v3 = NULL +cdef void* __nvmlEventSetGetContextCount_v1 = NULL +cdef void* __nvmlEventSetGetContextInfo_v1 = NULL +cdef void* __nvmlEventSetGetContextData_v1 = NULL +cdef void* __nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1 = NULL +cdef void* __nvmlDeviceGetBankRemapperStatus_v1 = NULL +cdef void* __nvmlDeviceGetGpuUptime_v1 = NULL +cdef void* __nvmlSystemGetConfComputeSettings_v2 = NULL +cdef void* __nvmlDeviceGetNvLinkInfo_v3 = NULL +cdef void* __nvmlDeviceGetNvlinkRemapTableInfo_v1 = NULL +cdef void* __nvmlDeviceSetNvlinkNvleReady_v1 = NULL +cdef void* __nvmlDeviceLockNvlinkRemapTable_v1 = NULL +cdef void* __nvmlDeviceSetupNvlinkNvleEncryptionKey_v1 = NULL +cdef void* __nvmlDeviceGetNvlinkNvlePrivateInfo_v1 = NULL + +cdef enum: _cyb_nvml_n_functions = 378 +cdef void** _cyb_nvml_slots[_cyb_nvml_n_functions] +cdef const char* _cyb_nvml_names[_cyb_nvml_n_functions] +_cyb_nvml_slots[0] = &__nvmlInit_v2; _cyb_nvml_names[0] = b'nvmlInit_v2' +_cyb_nvml_slots[1] = &__nvmlInitWithFlags; _cyb_nvml_names[1] = b'nvmlInitWithFlags' +_cyb_nvml_slots[2] = &__nvmlShutdown; _cyb_nvml_names[2] = b'nvmlShutdown' +_cyb_nvml_slots[3] = &__nvmlErrorString; _cyb_nvml_names[3] = b'nvmlErrorString' +_cyb_nvml_slots[4] = &__nvmlSystemGetDriverVersion; _cyb_nvml_names[4] = b'nvmlSystemGetDriverVersion' +_cyb_nvml_slots[5] = &__nvmlSystemGetNVMLVersion; _cyb_nvml_names[5] = b'nvmlSystemGetNVMLVersion' +_cyb_nvml_slots[6] = &__nvmlSystemGetCudaDriverVersion; _cyb_nvml_names[6] = b'nvmlSystemGetCudaDriverVersion' +_cyb_nvml_slots[7] = &__nvmlSystemGetCudaDriverVersion_v2; _cyb_nvml_names[7] = b'nvmlSystemGetCudaDriverVersion_v2' +_cyb_nvml_slots[8] = &__nvmlSystemGetProcessName; _cyb_nvml_names[8] = b'nvmlSystemGetProcessName' +_cyb_nvml_slots[9] = &__nvmlSystemGetHicVersion; _cyb_nvml_names[9] = b'nvmlSystemGetHicVersion' +_cyb_nvml_slots[10] = &__nvmlSystemGetTopologyGpuSet; _cyb_nvml_names[10] = b'nvmlSystemGetTopologyGpuSet' +_cyb_nvml_slots[11] = &__nvmlSystemGetDriverBranch; _cyb_nvml_names[11] = b'nvmlSystemGetDriverBranch' +_cyb_nvml_slots[12] = &__nvmlUnitGetCount; _cyb_nvml_names[12] = b'nvmlUnitGetCount' +_cyb_nvml_slots[13] = &__nvmlUnitGetHandleByIndex; _cyb_nvml_names[13] = b'nvmlUnitGetHandleByIndex' +_cyb_nvml_slots[14] = &__nvmlUnitGetUnitInfo; _cyb_nvml_names[14] = b'nvmlUnitGetUnitInfo' +_cyb_nvml_slots[15] = &__nvmlUnitGetLedState; _cyb_nvml_names[15] = b'nvmlUnitGetLedState' +_cyb_nvml_slots[16] = &__nvmlUnitGetPsuInfo; _cyb_nvml_names[16] = b'nvmlUnitGetPsuInfo' +_cyb_nvml_slots[17] = &__nvmlUnitGetTemperature; _cyb_nvml_names[17] = b'nvmlUnitGetTemperature' +_cyb_nvml_slots[18] = &__nvmlUnitGetFanSpeedInfo; _cyb_nvml_names[18] = b'nvmlUnitGetFanSpeedInfo' +_cyb_nvml_slots[19] = &__nvmlUnitGetDevices; _cyb_nvml_names[19] = b'nvmlUnitGetDevices' +_cyb_nvml_slots[20] = &__nvmlDeviceGetCount_v2; _cyb_nvml_names[20] = b'nvmlDeviceGetCount_v2' +_cyb_nvml_slots[21] = &__nvmlDeviceGetAttributes_v2; _cyb_nvml_names[21] = b'nvmlDeviceGetAttributes_v2' +_cyb_nvml_slots[22] = &__nvmlDeviceGetHandleByIndex_v2; _cyb_nvml_names[22] = b'nvmlDeviceGetHandleByIndex_v2' +_cyb_nvml_slots[23] = &__nvmlDeviceGetHandleBySerial; _cyb_nvml_names[23] = b'nvmlDeviceGetHandleBySerial' +_cyb_nvml_slots[24] = &__nvmlDeviceGetHandleByUUID; _cyb_nvml_names[24] = b'nvmlDeviceGetHandleByUUID' +_cyb_nvml_slots[25] = &__nvmlDeviceGetHandleByUUIDV; _cyb_nvml_names[25] = b'nvmlDeviceGetHandleByUUIDV' +_cyb_nvml_slots[26] = &__nvmlDeviceGetHandleByPciBusId_v2; _cyb_nvml_names[26] = b'nvmlDeviceGetHandleByPciBusId_v2' +_cyb_nvml_slots[27] = &__nvmlDeviceGetName; _cyb_nvml_names[27] = b'nvmlDeviceGetName' +_cyb_nvml_slots[28] = &__nvmlDeviceGetBrand; _cyb_nvml_names[28] = b'nvmlDeviceGetBrand' +_cyb_nvml_slots[29] = &__nvmlDeviceGetIndex; _cyb_nvml_names[29] = b'nvmlDeviceGetIndex' +_cyb_nvml_slots[30] = &__nvmlDeviceGetSerial; _cyb_nvml_names[30] = b'nvmlDeviceGetSerial' +_cyb_nvml_slots[31] = &__nvmlDeviceGetModuleId; _cyb_nvml_names[31] = b'nvmlDeviceGetModuleId' +_cyb_nvml_slots[32] = &__nvmlDeviceGetC2cModeInfoV; _cyb_nvml_names[32] = b'nvmlDeviceGetC2cModeInfoV' +_cyb_nvml_slots[33] = &__nvmlDeviceGetMemoryAffinity; _cyb_nvml_names[33] = b'nvmlDeviceGetMemoryAffinity' +_cyb_nvml_slots[34] = &__nvmlDeviceGetCpuAffinityWithinScope; _cyb_nvml_names[34] = b'nvmlDeviceGetCpuAffinityWithinScope' +_cyb_nvml_slots[35] = &__nvmlDeviceGetCpuAffinity; _cyb_nvml_names[35] = b'nvmlDeviceGetCpuAffinity' +_cyb_nvml_slots[36] = &__nvmlDeviceSetCpuAffinity; _cyb_nvml_names[36] = b'nvmlDeviceSetCpuAffinity' +_cyb_nvml_slots[37] = &__nvmlDeviceClearCpuAffinity; _cyb_nvml_names[37] = b'nvmlDeviceClearCpuAffinity' +_cyb_nvml_slots[38] = &__nvmlDeviceGetNumaNodeId; _cyb_nvml_names[38] = b'nvmlDeviceGetNumaNodeId' +_cyb_nvml_slots[39] = &__nvmlDeviceGetTopologyCommonAncestor; _cyb_nvml_names[39] = b'nvmlDeviceGetTopologyCommonAncestor' +_cyb_nvml_slots[40] = &__nvmlDeviceGetTopologyNearestGpus; _cyb_nvml_names[40] = b'nvmlDeviceGetTopologyNearestGpus' +_cyb_nvml_slots[41] = &__nvmlDeviceGetP2PStatus; _cyb_nvml_names[41] = b'nvmlDeviceGetP2PStatus' +_cyb_nvml_slots[42] = &__nvmlDeviceGetUUID; _cyb_nvml_names[42] = b'nvmlDeviceGetUUID' +_cyb_nvml_slots[43] = &__nvmlDeviceGetMinorNumber; _cyb_nvml_names[43] = b'nvmlDeviceGetMinorNumber' +_cyb_nvml_slots[44] = &__nvmlDeviceGetBoardPartNumber; _cyb_nvml_names[44] = b'nvmlDeviceGetBoardPartNumber' +_cyb_nvml_slots[45] = &__nvmlDeviceGetInforomVersion; _cyb_nvml_names[45] = b'nvmlDeviceGetInforomVersion' +_cyb_nvml_slots[46] = &__nvmlDeviceGetInforomImageVersion; _cyb_nvml_names[46] = b'nvmlDeviceGetInforomImageVersion' +_cyb_nvml_slots[47] = &__nvmlDeviceGetInforomConfigurationChecksum; _cyb_nvml_names[47] = b'nvmlDeviceGetInforomConfigurationChecksum' +_cyb_nvml_slots[48] = &__nvmlDeviceValidateInforom; _cyb_nvml_names[48] = b'nvmlDeviceValidateInforom' +_cyb_nvml_slots[49] = &__nvmlDeviceGetLastBBXFlushTime; _cyb_nvml_names[49] = b'nvmlDeviceGetLastBBXFlushTime' +_cyb_nvml_slots[50] = &__nvmlDeviceGetDisplayMode; _cyb_nvml_names[50] = b'nvmlDeviceGetDisplayMode' +_cyb_nvml_slots[51] = &__nvmlDeviceGetDisplayActive; _cyb_nvml_names[51] = b'nvmlDeviceGetDisplayActive' +_cyb_nvml_slots[52] = &__nvmlDeviceGetPersistenceMode; _cyb_nvml_names[52] = b'nvmlDeviceGetPersistenceMode' +_cyb_nvml_slots[53] = &__nvmlDeviceGetPciInfoExt; _cyb_nvml_names[53] = b'nvmlDeviceGetPciInfoExt' +_cyb_nvml_slots[54] = &__nvmlDeviceGetPciInfo_v3; _cyb_nvml_names[54] = b'nvmlDeviceGetPciInfo_v3' +_cyb_nvml_slots[55] = &__nvmlDeviceGetMaxPcieLinkGeneration; _cyb_nvml_names[55] = b'nvmlDeviceGetMaxPcieLinkGeneration' +_cyb_nvml_slots[56] = &__nvmlDeviceGetGpuMaxPcieLinkGeneration; _cyb_nvml_names[56] = b'nvmlDeviceGetGpuMaxPcieLinkGeneration' +_cyb_nvml_slots[57] = &__nvmlDeviceGetMaxPcieLinkWidth; _cyb_nvml_names[57] = b'nvmlDeviceGetMaxPcieLinkWidth' +_cyb_nvml_slots[58] = &__nvmlDeviceGetCurrPcieLinkGeneration; _cyb_nvml_names[58] = b'nvmlDeviceGetCurrPcieLinkGeneration' +_cyb_nvml_slots[59] = &__nvmlDeviceGetCurrPcieLinkWidth; _cyb_nvml_names[59] = b'nvmlDeviceGetCurrPcieLinkWidth' +_cyb_nvml_slots[60] = &__nvmlDeviceGetPcieThroughput; _cyb_nvml_names[60] = b'nvmlDeviceGetPcieThroughput' +_cyb_nvml_slots[61] = &__nvmlDeviceGetPcieReplayCounter; _cyb_nvml_names[61] = b'nvmlDeviceGetPcieReplayCounter' +_cyb_nvml_slots[62] = &__nvmlDeviceGetClockInfo; _cyb_nvml_names[62] = b'nvmlDeviceGetClockInfo' +_cyb_nvml_slots[63] = &__nvmlDeviceGetMaxClockInfo; _cyb_nvml_names[63] = b'nvmlDeviceGetMaxClockInfo' +_cyb_nvml_slots[64] = &__nvmlDeviceGetGpcClkVfOffset; _cyb_nvml_names[64] = b'nvmlDeviceGetGpcClkVfOffset' +_cyb_nvml_slots[65] = &__nvmlDeviceGetClock; _cyb_nvml_names[65] = b'nvmlDeviceGetClock' +_cyb_nvml_slots[66] = &__nvmlDeviceGetMaxCustomerBoostClock; _cyb_nvml_names[66] = b'nvmlDeviceGetMaxCustomerBoostClock' +_cyb_nvml_slots[67] = &__nvmlDeviceGetSupportedMemoryClocks; _cyb_nvml_names[67] = b'nvmlDeviceGetSupportedMemoryClocks' +_cyb_nvml_slots[68] = &__nvmlDeviceGetSupportedGraphicsClocks; _cyb_nvml_names[68] = b'nvmlDeviceGetSupportedGraphicsClocks' +_cyb_nvml_slots[69] = &__nvmlDeviceGetAutoBoostedClocksEnabled; _cyb_nvml_names[69] = b'nvmlDeviceGetAutoBoostedClocksEnabled' +_cyb_nvml_slots[70] = &__nvmlDeviceGetFanSpeed; _cyb_nvml_names[70] = b'nvmlDeviceGetFanSpeed' +_cyb_nvml_slots[71] = &__nvmlDeviceGetFanSpeed_v2; _cyb_nvml_names[71] = b'nvmlDeviceGetFanSpeed_v2' +_cyb_nvml_slots[72] = &__nvmlDeviceGetFanSpeedRPM; _cyb_nvml_names[72] = b'nvmlDeviceGetFanSpeedRPM' +_cyb_nvml_slots[73] = &__nvmlDeviceGetTargetFanSpeed; _cyb_nvml_names[73] = b'nvmlDeviceGetTargetFanSpeed' +_cyb_nvml_slots[74] = &__nvmlDeviceGetMinMaxFanSpeed; _cyb_nvml_names[74] = b'nvmlDeviceGetMinMaxFanSpeed' +_cyb_nvml_slots[75] = &__nvmlDeviceGetFanControlPolicy_v2; _cyb_nvml_names[75] = b'nvmlDeviceGetFanControlPolicy_v2' +_cyb_nvml_slots[76] = &__nvmlDeviceGetNumFans; _cyb_nvml_names[76] = b'nvmlDeviceGetNumFans' +_cyb_nvml_slots[77] = &__nvmlDeviceGetCoolerInfo; _cyb_nvml_names[77] = b'nvmlDeviceGetCoolerInfo' +_cyb_nvml_slots[78] = &__nvmlDeviceGetTemperatureV; _cyb_nvml_names[78] = b'nvmlDeviceGetTemperatureV' +_cyb_nvml_slots[79] = &__nvmlDeviceGetTemperatureThreshold; _cyb_nvml_names[79] = b'nvmlDeviceGetTemperatureThreshold' +_cyb_nvml_slots[80] = &__nvmlDeviceGetMarginTemperature; _cyb_nvml_names[80] = b'nvmlDeviceGetMarginTemperature' +_cyb_nvml_slots[81] = &__nvmlDeviceGetThermalSettings; _cyb_nvml_names[81] = b'nvmlDeviceGetThermalSettings' +_cyb_nvml_slots[82] = &__nvmlDeviceGetPerformanceState; _cyb_nvml_names[82] = b'nvmlDeviceGetPerformanceState' +_cyb_nvml_slots[83] = &__nvmlDeviceGetCurrentClocksEventReasons; _cyb_nvml_names[83] = b'nvmlDeviceGetCurrentClocksEventReasons' +_cyb_nvml_slots[84] = &__nvmlDeviceGetSupportedClocksEventReasons; _cyb_nvml_names[84] = b'nvmlDeviceGetSupportedClocksEventReasons' +_cyb_nvml_slots[85] = &__nvmlDeviceGetPowerState; _cyb_nvml_names[85] = b'nvmlDeviceGetPowerState' +_cyb_nvml_slots[86] = &__nvmlDeviceGetDynamicPstatesInfo; _cyb_nvml_names[86] = b'nvmlDeviceGetDynamicPstatesInfo' +_cyb_nvml_slots[87] = &__nvmlDeviceGetMemClkVfOffset; _cyb_nvml_names[87] = b'nvmlDeviceGetMemClkVfOffset' +_cyb_nvml_slots[88] = &__nvmlDeviceGetMinMaxClockOfPState; _cyb_nvml_names[88] = b'nvmlDeviceGetMinMaxClockOfPState' +_cyb_nvml_slots[89] = &__nvmlDeviceGetSupportedPerformanceStates; _cyb_nvml_names[89] = b'nvmlDeviceGetSupportedPerformanceStates' +_cyb_nvml_slots[90] = &__nvmlDeviceGetGpcClkMinMaxVfOffset; _cyb_nvml_names[90] = b'nvmlDeviceGetGpcClkMinMaxVfOffset' +_cyb_nvml_slots[91] = &__nvmlDeviceGetMemClkMinMaxVfOffset; _cyb_nvml_names[91] = b'nvmlDeviceGetMemClkMinMaxVfOffset' +_cyb_nvml_slots[92] = &__nvmlDeviceGetClockOffsets; _cyb_nvml_names[92] = b'nvmlDeviceGetClockOffsets' +_cyb_nvml_slots[93] = &__nvmlDeviceSetClockOffsets; _cyb_nvml_names[93] = b'nvmlDeviceSetClockOffsets' +_cyb_nvml_slots[94] = &__nvmlDeviceGetPerformanceModes; _cyb_nvml_names[94] = b'nvmlDeviceGetPerformanceModes' +_cyb_nvml_slots[95] = &__nvmlDeviceGetCurrentClockFreqs; _cyb_nvml_names[95] = b'nvmlDeviceGetCurrentClockFreqs' +_cyb_nvml_slots[96] = &__nvmlDeviceGetPowerManagementLimit; _cyb_nvml_names[96] = b'nvmlDeviceGetPowerManagementLimit' +_cyb_nvml_slots[97] = &__nvmlDeviceGetPowerManagementLimitConstraints; _cyb_nvml_names[97] = b'nvmlDeviceGetPowerManagementLimitConstraints' +_cyb_nvml_slots[98] = &__nvmlDeviceGetPowerManagementDefaultLimit; _cyb_nvml_names[98] = b'nvmlDeviceGetPowerManagementDefaultLimit' +_cyb_nvml_slots[99] = &__nvmlDeviceGetPowerUsage; _cyb_nvml_names[99] = b'nvmlDeviceGetPowerUsage' +_cyb_nvml_slots[100] = &__nvmlDeviceGetTotalEnergyConsumption; _cyb_nvml_names[100] = b'nvmlDeviceGetTotalEnergyConsumption' +_cyb_nvml_slots[101] = &__nvmlDeviceGetEnforcedPowerLimit; _cyb_nvml_names[101] = b'nvmlDeviceGetEnforcedPowerLimit' +_cyb_nvml_slots[102] = &__nvmlDeviceGetGpuOperationMode; _cyb_nvml_names[102] = b'nvmlDeviceGetGpuOperationMode' +_cyb_nvml_slots[103] = &__nvmlDeviceGetMemoryInfo_v2; _cyb_nvml_names[103] = b'nvmlDeviceGetMemoryInfo_v2' +_cyb_nvml_slots[104] = &__nvmlDeviceGetComputeMode; _cyb_nvml_names[104] = b'nvmlDeviceGetComputeMode' +_cyb_nvml_slots[105] = &__nvmlDeviceGetCudaComputeCapability; _cyb_nvml_names[105] = b'nvmlDeviceGetCudaComputeCapability' +_cyb_nvml_slots[106] = &__nvmlDeviceGetDramEncryptionMode; _cyb_nvml_names[106] = b'nvmlDeviceGetDramEncryptionMode' +_cyb_nvml_slots[107] = &__nvmlDeviceSetDramEncryptionMode; _cyb_nvml_names[107] = b'nvmlDeviceSetDramEncryptionMode' +_cyb_nvml_slots[108] = &__nvmlDeviceGetEccMode; _cyb_nvml_names[108] = b'nvmlDeviceGetEccMode' +_cyb_nvml_slots[109] = &__nvmlDeviceGetDefaultEccMode; _cyb_nvml_names[109] = b'nvmlDeviceGetDefaultEccMode' +_cyb_nvml_slots[110] = &__nvmlDeviceGetBoardId; _cyb_nvml_names[110] = b'nvmlDeviceGetBoardId' +_cyb_nvml_slots[111] = &__nvmlDeviceGetMultiGpuBoard; _cyb_nvml_names[111] = b'nvmlDeviceGetMultiGpuBoard' +_cyb_nvml_slots[112] = &__nvmlDeviceGetTotalEccErrors; _cyb_nvml_names[112] = b'nvmlDeviceGetTotalEccErrors' +_cyb_nvml_slots[113] = &__nvmlDeviceGetMemoryErrorCounter; _cyb_nvml_names[113] = b'nvmlDeviceGetMemoryErrorCounter' +_cyb_nvml_slots[114] = &__nvmlDeviceGetUtilizationRates; _cyb_nvml_names[114] = b'nvmlDeviceGetUtilizationRates' +_cyb_nvml_slots[115] = &__nvmlDeviceGetEncoderUtilization; _cyb_nvml_names[115] = b'nvmlDeviceGetEncoderUtilization' +_cyb_nvml_slots[116] = &__nvmlDeviceGetEncoderCapacity; _cyb_nvml_names[116] = b'nvmlDeviceGetEncoderCapacity' +_cyb_nvml_slots[117] = &__nvmlDeviceGetEncoderStats; _cyb_nvml_names[117] = b'nvmlDeviceGetEncoderStats' +_cyb_nvml_slots[118] = &__nvmlDeviceGetEncoderSessions; _cyb_nvml_names[118] = b'nvmlDeviceGetEncoderSessions' +_cyb_nvml_slots[119] = &__nvmlDeviceGetDecoderUtilization; _cyb_nvml_names[119] = b'nvmlDeviceGetDecoderUtilization' +_cyb_nvml_slots[120] = &__nvmlDeviceGetJpgUtilization; _cyb_nvml_names[120] = b'nvmlDeviceGetJpgUtilization' +_cyb_nvml_slots[121] = &__nvmlDeviceGetOfaUtilization; _cyb_nvml_names[121] = b'nvmlDeviceGetOfaUtilization' +_cyb_nvml_slots[122] = &__nvmlDeviceGetFBCStats; _cyb_nvml_names[122] = b'nvmlDeviceGetFBCStats' +_cyb_nvml_slots[123] = &__nvmlDeviceGetFBCSessions; _cyb_nvml_names[123] = b'nvmlDeviceGetFBCSessions' +_cyb_nvml_slots[124] = &__nvmlDeviceGetDriverModel_v2; _cyb_nvml_names[124] = b'nvmlDeviceGetDriverModel_v2' +_cyb_nvml_slots[125] = &__nvmlDeviceGetVbiosVersion; _cyb_nvml_names[125] = b'nvmlDeviceGetVbiosVersion' +_cyb_nvml_slots[126] = &__nvmlDeviceGetBridgeChipInfo; _cyb_nvml_names[126] = b'nvmlDeviceGetBridgeChipInfo' +_cyb_nvml_slots[127] = &__nvmlDeviceGetComputeRunningProcesses_v3; _cyb_nvml_names[127] = b'nvmlDeviceGetComputeRunningProcesses_v3' +_cyb_nvml_slots[128] = &__nvmlDeviceGetGraphicsRunningProcesses_v3; _cyb_nvml_names[128] = b'nvmlDeviceGetGraphicsRunningProcesses_v3' +_cyb_nvml_slots[129] = &__nvmlDeviceGetMPSComputeRunningProcesses_v3; _cyb_nvml_names[129] = b'nvmlDeviceGetMPSComputeRunningProcesses_v3' +_cyb_nvml_slots[130] = &__nvmlDeviceGetRunningProcessDetailList; _cyb_nvml_names[130] = b'nvmlDeviceGetRunningProcessDetailList' +_cyb_nvml_slots[131] = &__nvmlDeviceOnSameBoard; _cyb_nvml_names[131] = b'nvmlDeviceOnSameBoard' +_cyb_nvml_slots[132] = &__nvmlDeviceGetAPIRestriction; _cyb_nvml_names[132] = b'nvmlDeviceGetAPIRestriction' +_cyb_nvml_slots[133] = &__nvmlDeviceGetSamples; _cyb_nvml_names[133] = b'nvmlDeviceGetSamples' +_cyb_nvml_slots[134] = &__nvmlDeviceGetBAR1MemoryInfo; _cyb_nvml_names[134] = b'nvmlDeviceGetBAR1MemoryInfo' +_cyb_nvml_slots[135] = &__nvmlDeviceGetIrqNum; _cyb_nvml_names[135] = b'nvmlDeviceGetIrqNum' +_cyb_nvml_slots[136] = &__nvmlDeviceGetNumGpuCores; _cyb_nvml_names[136] = b'nvmlDeviceGetNumGpuCores' +_cyb_nvml_slots[137] = &__nvmlDeviceGetPowerSource; _cyb_nvml_names[137] = b'nvmlDeviceGetPowerSource' +_cyb_nvml_slots[138] = &__nvmlDeviceGetMemoryBusWidth; _cyb_nvml_names[138] = b'nvmlDeviceGetMemoryBusWidth' +_cyb_nvml_slots[139] = &__nvmlDeviceGetPcieLinkMaxSpeed; _cyb_nvml_names[139] = b'nvmlDeviceGetPcieLinkMaxSpeed' +_cyb_nvml_slots[140] = &__nvmlDeviceGetPcieSpeed; _cyb_nvml_names[140] = b'nvmlDeviceGetPcieSpeed' +_cyb_nvml_slots[141] = &__nvmlDeviceGetAdaptiveClockInfoStatus; _cyb_nvml_names[141] = b'nvmlDeviceGetAdaptiveClockInfoStatus' +_cyb_nvml_slots[142] = &__nvmlDeviceGetBusType; _cyb_nvml_names[142] = b'nvmlDeviceGetBusType' +_cyb_nvml_slots[143] = &__nvmlDeviceGetGpuFabricInfoV; _cyb_nvml_names[143] = b'nvmlDeviceGetGpuFabricInfoV' +_cyb_nvml_slots[144] = &__nvmlSystemGetConfComputeCapabilities; _cyb_nvml_names[144] = b'nvmlSystemGetConfComputeCapabilities' +_cyb_nvml_slots[145] = &__nvmlSystemGetConfComputeState; _cyb_nvml_names[145] = b'nvmlSystemGetConfComputeState' +_cyb_nvml_slots[146] = &__nvmlDeviceGetConfComputeMemSizeInfo; _cyb_nvml_names[146] = b'nvmlDeviceGetConfComputeMemSizeInfo' +_cyb_nvml_slots[147] = &__nvmlSystemGetConfComputeGpusReadyState; _cyb_nvml_names[147] = b'nvmlSystemGetConfComputeGpusReadyState' +_cyb_nvml_slots[148] = &__nvmlDeviceGetConfComputeProtectedMemoryUsage; _cyb_nvml_names[148] = b'nvmlDeviceGetConfComputeProtectedMemoryUsage' +_cyb_nvml_slots[149] = &__nvmlDeviceGetConfComputeGpuCertificate; _cyb_nvml_names[149] = b'nvmlDeviceGetConfComputeGpuCertificate' +_cyb_nvml_slots[150] = &__nvmlDeviceGetConfComputeGpuAttestationReport; _cyb_nvml_names[150] = b'nvmlDeviceGetConfComputeGpuAttestationReport' +_cyb_nvml_slots[151] = &__nvmlSystemGetConfComputeKeyRotationThresholdInfo; _cyb_nvml_names[151] = b'nvmlSystemGetConfComputeKeyRotationThresholdInfo' +_cyb_nvml_slots[152] = &__nvmlDeviceSetConfComputeUnprotectedMemSize; _cyb_nvml_names[152] = b'nvmlDeviceSetConfComputeUnprotectedMemSize' +_cyb_nvml_slots[153] = &__nvmlSystemSetConfComputeGpusReadyState; _cyb_nvml_names[153] = b'nvmlSystemSetConfComputeGpusReadyState' +_cyb_nvml_slots[154] = &__nvmlSystemSetConfComputeKeyRotationThresholdInfo; _cyb_nvml_names[154] = b'nvmlSystemSetConfComputeKeyRotationThresholdInfo' +_cyb_nvml_slots[155] = &__nvmlSystemGetConfComputeSettings; _cyb_nvml_names[155] = b'nvmlSystemGetConfComputeSettings' +_cyb_nvml_slots[156] = &__nvmlDeviceGetGspFirmwareVersion; _cyb_nvml_names[156] = b'nvmlDeviceGetGspFirmwareVersion' +_cyb_nvml_slots[157] = &__nvmlDeviceGetGspFirmwareMode; _cyb_nvml_names[157] = b'nvmlDeviceGetGspFirmwareMode' +_cyb_nvml_slots[158] = &__nvmlDeviceGetSramEccErrorStatus; _cyb_nvml_names[158] = b'nvmlDeviceGetSramEccErrorStatus' +_cyb_nvml_slots[159] = &__nvmlDeviceGetAccountingMode; _cyb_nvml_names[159] = b'nvmlDeviceGetAccountingMode' +_cyb_nvml_slots[160] = &__nvmlDeviceGetAccountingStats; _cyb_nvml_names[160] = b'nvmlDeviceGetAccountingStats' +_cyb_nvml_slots[161] = &__nvmlDeviceGetAccountingPids; _cyb_nvml_names[161] = b'nvmlDeviceGetAccountingPids' +_cyb_nvml_slots[162] = &__nvmlDeviceGetAccountingBufferSize; _cyb_nvml_names[162] = b'nvmlDeviceGetAccountingBufferSize' +_cyb_nvml_slots[163] = &__nvmlDeviceGetRetiredPages; _cyb_nvml_names[163] = b'nvmlDeviceGetRetiredPages' +_cyb_nvml_slots[164] = &__nvmlDeviceGetRetiredPages_v2; _cyb_nvml_names[164] = b'nvmlDeviceGetRetiredPages_v2' +_cyb_nvml_slots[165] = &__nvmlDeviceGetRetiredPagesPendingStatus; _cyb_nvml_names[165] = b'nvmlDeviceGetRetiredPagesPendingStatus' +_cyb_nvml_slots[166] = &__nvmlDeviceGetRemappedRows; _cyb_nvml_names[166] = b'nvmlDeviceGetRemappedRows' +_cyb_nvml_slots[167] = &__nvmlDeviceGetRowRemapperHistogram; _cyb_nvml_names[167] = b'nvmlDeviceGetRowRemapperHistogram' +_cyb_nvml_slots[168] = &__nvmlDeviceGetArchitecture; _cyb_nvml_names[168] = b'nvmlDeviceGetArchitecture' +_cyb_nvml_slots[169] = &__nvmlDeviceGetClkMonStatus; _cyb_nvml_names[169] = b'nvmlDeviceGetClkMonStatus' +_cyb_nvml_slots[170] = &__nvmlDeviceGetProcessUtilization; _cyb_nvml_names[170] = b'nvmlDeviceGetProcessUtilization' +_cyb_nvml_slots[171] = &__nvmlDeviceGetProcessesUtilizationInfo; _cyb_nvml_names[171] = b'nvmlDeviceGetProcessesUtilizationInfo' +_cyb_nvml_slots[172] = &__nvmlDeviceGetPlatformInfo; _cyb_nvml_names[172] = b'nvmlDeviceGetPlatformInfo' +_cyb_nvml_slots[173] = &__nvmlUnitSetLedState; _cyb_nvml_names[173] = b'nvmlUnitSetLedState' +_cyb_nvml_slots[174] = &__nvmlDeviceSetPersistenceMode; _cyb_nvml_names[174] = b'nvmlDeviceSetPersistenceMode' +_cyb_nvml_slots[175] = &__nvmlDeviceSetComputeMode; _cyb_nvml_names[175] = b'nvmlDeviceSetComputeMode' +_cyb_nvml_slots[176] = &__nvmlDeviceSetEccMode; _cyb_nvml_names[176] = b'nvmlDeviceSetEccMode' +_cyb_nvml_slots[177] = &__nvmlDeviceClearEccErrorCounts; _cyb_nvml_names[177] = b'nvmlDeviceClearEccErrorCounts' +_cyb_nvml_slots[178] = &__nvmlDeviceSetDriverModel; _cyb_nvml_names[178] = b'nvmlDeviceSetDriverModel' +_cyb_nvml_slots[179] = &__nvmlDeviceSetGpuLockedClocks; _cyb_nvml_names[179] = b'nvmlDeviceSetGpuLockedClocks' +_cyb_nvml_slots[180] = &__nvmlDeviceResetGpuLockedClocks; _cyb_nvml_names[180] = b'nvmlDeviceResetGpuLockedClocks' +_cyb_nvml_slots[181] = &__nvmlDeviceSetMemoryLockedClocks; _cyb_nvml_names[181] = b'nvmlDeviceSetMemoryLockedClocks' +_cyb_nvml_slots[182] = &__nvmlDeviceResetMemoryLockedClocks; _cyb_nvml_names[182] = b'nvmlDeviceResetMemoryLockedClocks' +_cyb_nvml_slots[183] = &__nvmlDeviceSetAutoBoostedClocksEnabled; _cyb_nvml_names[183] = b'nvmlDeviceSetAutoBoostedClocksEnabled' +_cyb_nvml_slots[184] = &__nvmlDeviceSetDefaultAutoBoostedClocksEnabled; _cyb_nvml_names[184] = b'nvmlDeviceSetDefaultAutoBoostedClocksEnabled' +_cyb_nvml_slots[185] = &__nvmlDeviceSetDefaultFanSpeed_v2; _cyb_nvml_names[185] = b'nvmlDeviceSetDefaultFanSpeed_v2' +_cyb_nvml_slots[186] = &__nvmlDeviceSetFanControlPolicy; _cyb_nvml_names[186] = b'nvmlDeviceSetFanControlPolicy' +_cyb_nvml_slots[187] = &__nvmlDeviceSetTemperatureThreshold; _cyb_nvml_names[187] = b'nvmlDeviceSetTemperatureThreshold' +_cyb_nvml_slots[188] = &__nvmlDeviceSetGpuOperationMode; _cyb_nvml_names[188] = b'nvmlDeviceSetGpuOperationMode' +_cyb_nvml_slots[189] = &__nvmlDeviceSetAPIRestriction; _cyb_nvml_names[189] = b'nvmlDeviceSetAPIRestriction' +_cyb_nvml_slots[190] = &__nvmlDeviceSetFanSpeed_v2; _cyb_nvml_names[190] = b'nvmlDeviceSetFanSpeed_v2' +_cyb_nvml_slots[191] = &__nvmlDeviceSetAccountingMode; _cyb_nvml_names[191] = b'nvmlDeviceSetAccountingMode' +_cyb_nvml_slots[192] = &__nvmlDeviceClearAccountingPids; _cyb_nvml_names[192] = b'nvmlDeviceClearAccountingPids' +_cyb_nvml_slots[193] = &__nvmlDeviceSetPowerManagementLimit_v2; _cyb_nvml_names[193] = b'nvmlDeviceSetPowerManagementLimit_v2' +_cyb_nvml_slots[194] = &__nvmlDeviceGetNvLinkState; _cyb_nvml_names[194] = b'nvmlDeviceGetNvLinkState' +_cyb_nvml_slots[195] = &__nvmlDeviceGetNvLinkVersion; _cyb_nvml_names[195] = b'nvmlDeviceGetNvLinkVersion' +_cyb_nvml_slots[196] = &__nvmlDeviceGetNvLinkCapability; _cyb_nvml_names[196] = b'nvmlDeviceGetNvLinkCapability' +_cyb_nvml_slots[197] = &__nvmlDeviceGetNvLinkRemotePciInfo_v2; _cyb_nvml_names[197] = b'nvmlDeviceGetNvLinkRemotePciInfo_v2' +_cyb_nvml_slots[198] = &__nvmlDeviceGetNvLinkErrorCounter; _cyb_nvml_names[198] = b'nvmlDeviceGetNvLinkErrorCounter' +_cyb_nvml_slots[199] = &__nvmlDeviceResetNvLinkErrorCounters; _cyb_nvml_names[199] = b'nvmlDeviceResetNvLinkErrorCounters' +_cyb_nvml_slots[200] = &__nvmlDeviceGetNvLinkRemoteDeviceType; _cyb_nvml_names[200] = b'nvmlDeviceGetNvLinkRemoteDeviceType' +_cyb_nvml_slots[201] = &__nvmlDeviceSetNvLinkDeviceLowPowerThreshold; _cyb_nvml_names[201] = b'nvmlDeviceSetNvLinkDeviceLowPowerThreshold' +_cyb_nvml_slots[202] = &__nvmlSystemSetNvlinkBwMode; _cyb_nvml_names[202] = b'nvmlSystemSetNvlinkBwMode' +_cyb_nvml_slots[203] = &__nvmlSystemGetNvlinkBwMode; _cyb_nvml_names[203] = b'nvmlSystemGetNvlinkBwMode' +_cyb_nvml_slots[204] = &__nvmlDeviceGetNvlinkSupportedBwModes; _cyb_nvml_names[204] = b'nvmlDeviceGetNvlinkSupportedBwModes' +_cyb_nvml_slots[205] = &__nvmlDeviceGetNvlinkBwMode; _cyb_nvml_names[205] = b'nvmlDeviceGetNvlinkBwMode' +_cyb_nvml_slots[206] = &__nvmlDeviceSetNvlinkBwMode; _cyb_nvml_names[206] = b'nvmlDeviceSetNvlinkBwMode' +_cyb_nvml_slots[207] = &__nvmlEventSetCreate; _cyb_nvml_names[207] = b'nvmlEventSetCreate' +_cyb_nvml_slots[208] = &__nvmlDeviceRegisterEvents; _cyb_nvml_names[208] = b'nvmlDeviceRegisterEvents' +_cyb_nvml_slots[209] = &__nvmlDeviceGetSupportedEventTypes; _cyb_nvml_names[209] = b'nvmlDeviceGetSupportedEventTypes' +_cyb_nvml_slots[210] = &__nvmlEventSetWait_v2; _cyb_nvml_names[210] = b'nvmlEventSetWait_v2' +_cyb_nvml_slots[211] = &__nvmlEventSetFree; _cyb_nvml_names[211] = b'nvmlEventSetFree' +_cyb_nvml_slots[212] = &__nvmlSystemEventSetCreate; _cyb_nvml_names[212] = b'nvmlSystemEventSetCreate' +_cyb_nvml_slots[213] = &__nvmlSystemEventSetFree; _cyb_nvml_names[213] = b'nvmlSystemEventSetFree' +_cyb_nvml_slots[214] = &__nvmlSystemRegisterEvents; _cyb_nvml_names[214] = b'nvmlSystemRegisterEvents' +_cyb_nvml_slots[215] = &__nvmlSystemEventSetWait; _cyb_nvml_names[215] = b'nvmlSystemEventSetWait' +_cyb_nvml_slots[216] = &__nvmlDeviceModifyDrainState; _cyb_nvml_names[216] = b'nvmlDeviceModifyDrainState' +_cyb_nvml_slots[217] = &__nvmlDeviceQueryDrainState; _cyb_nvml_names[217] = b'nvmlDeviceQueryDrainState' +_cyb_nvml_slots[218] = &__nvmlDeviceRemoveGpu_v2; _cyb_nvml_names[218] = b'nvmlDeviceRemoveGpu_v2' +_cyb_nvml_slots[219] = &__nvmlDeviceDiscoverGpus; _cyb_nvml_names[219] = b'nvmlDeviceDiscoverGpus' +_cyb_nvml_slots[220] = &__nvmlDeviceGetFieldValues; _cyb_nvml_names[220] = b'nvmlDeviceGetFieldValues' +_cyb_nvml_slots[221] = &__nvmlDeviceClearFieldValues; _cyb_nvml_names[221] = b'nvmlDeviceClearFieldValues' +_cyb_nvml_slots[222] = &__nvmlDeviceGetVirtualizationMode; _cyb_nvml_names[222] = b'nvmlDeviceGetVirtualizationMode' +_cyb_nvml_slots[223] = &__nvmlDeviceGetHostVgpuMode; _cyb_nvml_names[223] = b'nvmlDeviceGetHostVgpuMode' +_cyb_nvml_slots[224] = &__nvmlDeviceSetVirtualizationMode; _cyb_nvml_names[224] = b'nvmlDeviceSetVirtualizationMode' +_cyb_nvml_slots[225] = &__nvmlDeviceGetVgpuHeterogeneousMode; _cyb_nvml_names[225] = b'nvmlDeviceGetVgpuHeterogeneousMode' +_cyb_nvml_slots[226] = &__nvmlDeviceSetVgpuHeterogeneousMode; _cyb_nvml_names[226] = b'nvmlDeviceSetVgpuHeterogeneousMode' +_cyb_nvml_slots[227] = &__nvmlVgpuInstanceGetPlacementId; _cyb_nvml_names[227] = b'nvmlVgpuInstanceGetPlacementId' +_cyb_nvml_slots[228] = &__nvmlDeviceGetVgpuTypeSupportedPlacements; _cyb_nvml_names[228] = b'nvmlDeviceGetVgpuTypeSupportedPlacements' +_cyb_nvml_slots[229] = &__nvmlDeviceGetVgpuTypeCreatablePlacements; _cyb_nvml_names[229] = b'nvmlDeviceGetVgpuTypeCreatablePlacements' +_cyb_nvml_slots[230] = &__nvmlVgpuTypeGetGspHeapSize; _cyb_nvml_names[230] = b'nvmlVgpuTypeGetGspHeapSize' +_cyb_nvml_slots[231] = &__nvmlVgpuTypeGetFbReservation; _cyb_nvml_names[231] = b'nvmlVgpuTypeGetFbReservation' +_cyb_nvml_slots[232] = &__nvmlVgpuInstanceGetRuntimeStateSize; _cyb_nvml_names[232] = b'nvmlVgpuInstanceGetRuntimeStateSize' +_cyb_nvml_slots[233] = &__nvmlDeviceSetVgpuCapabilities; _cyb_nvml_names[233] = b'nvmlDeviceSetVgpuCapabilities' +_cyb_nvml_slots[234] = &__nvmlDeviceGetGridLicensableFeatures_v4; _cyb_nvml_names[234] = b'nvmlDeviceGetGridLicensableFeatures_v4' +_cyb_nvml_slots[235] = &__nvmlGetVgpuDriverCapabilities; _cyb_nvml_names[235] = b'nvmlGetVgpuDriverCapabilities' +_cyb_nvml_slots[236] = &__nvmlDeviceGetVgpuCapabilities; _cyb_nvml_names[236] = b'nvmlDeviceGetVgpuCapabilities' +_cyb_nvml_slots[237] = &__nvmlDeviceGetSupportedVgpus; _cyb_nvml_names[237] = b'nvmlDeviceGetSupportedVgpus' +_cyb_nvml_slots[238] = &__nvmlDeviceGetCreatableVgpus; _cyb_nvml_names[238] = b'nvmlDeviceGetCreatableVgpus' +_cyb_nvml_slots[239] = &__nvmlVgpuTypeGetClass; _cyb_nvml_names[239] = b'nvmlVgpuTypeGetClass' +_cyb_nvml_slots[240] = &__nvmlVgpuTypeGetName; _cyb_nvml_names[240] = b'nvmlVgpuTypeGetName' +_cyb_nvml_slots[241] = &__nvmlVgpuTypeGetGpuInstanceProfileId; _cyb_nvml_names[241] = b'nvmlVgpuTypeGetGpuInstanceProfileId' +_cyb_nvml_slots[242] = &__nvmlVgpuTypeGetDeviceID; _cyb_nvml_names[242] = b'nvmlVgpuTypeGetDeviceID' +_cyb_nvml_slots[243] = &__nvmlVgpuTypeGetFramebufferSize; _cyb_nvml_names[243] = b'nvmlVgpuTypeGetFramebufferSize' +_cyb_nvml_slots[244] = &__nvmlVgpuTypeGetNumDisplayHeads; _cyb_nvml_names[244] = b'nvmlVgpuTypeGetNumDisplayHeads' +_cyb_nvml_slots[245] = &__nvmlVgpuTypeGetResolution; _cyb_nvml_names[245] = b'nvmlVgpuTypeGetResolution' +_cyb_nvml_slots[246] = &__nvmlVgpuTypeGetLicense; _cyb_nvml_names[246] = b'nvmlVgpuTypeGetLicense' +_cyb_nvml_slots[247] = &__nvmlVgpuTypeGetFrameRateLimit; _cyb_nvml_names[247] = b'nvmlVgpuTypeGetFrameRateLimit' +_cyb_nvml_slots[248] = &__nvmlVgpuTypeGetMaxInstances; _cyb_nvml_names[248] = b'nvmlVgpuTypeGetMaxInstances' +_cyb_nvml_slots[249] = &__nvmlVgpuTypeGetMaxInstancesPerVm; _cyb_nvml_names[249] = b'nvmlVgpuTypeGetMaxInstancesPerVm' +_cyb_nvml_slots[250] = &__nvmlVgpuTypeGetBAR1Info; _cyb_nvml_names[250] = b'nvmlVgpuTypeGetBAR1Info' +_cyb_nvml_slots[251] = &__nvmlDeviceGetActiveVgpus; _cyb_nvml_names[251] = b'nvmlDeviceGetActiveVgpus' +_cyb_nvml_slots[252] = &__nvmlVgpuInstanceGetVmID; _cyb_nvml_names[252] = b'nvmlVgpuInstanceGetVmID' +_cyb_nvml_slots[253] = &__nvmlVgpuInstanceGetUUID; _cyb_nvml_names[253] = b'nvmlVgpuInstanceGetUUID' +_cyb_nvml_slots[254] = &__nvmlVgpuInstanceGetVmDriverVersion; _cyb_nvml_names[254] = b'nvmlVgpuInstanceGetVmDriverVersion' +_cyb_nvml_slots[255] = &__nvmlVgpuInstanceGetFbUsage; _cyb_nvml_names[255] = b'nvmlVgpuInstanceGetFbUsage' +_cyb_nvml_slots[256] = &__nvmlVgpuInstanceGetLicenseStatus; _cyb_nvml_names[256] = b'nvmlVgpuInstanceGetLicenseStatus' +_cyb_nvml_slots[257] = &__nvmlVgpuInstanceGetType; _cyb_nvml_names[257] = b'nvmlVgpuInstanceGetType' +_cyb_nvml_slots[258] = &__nvmlVgpuInstanceGetFrameRateLimit; _cyb_nvml_names[258] = b'nvmlVgpuInstanceGetFrameRateLimit' +_cyb_nvml_slots[259] = &__nvmlVgpuInstanceGetEccMode; _cyb_nvml_names[259] = b'nvmlVgpuInstanceGetEccMode' +_cyb_nvml_slots[260] = &__nvmlVgpuInstanceGetEncoderCapacity; _cyb_nvml_names[260] = b'nvmlVgpuInstanceGetEncoderCapacity' +_cyb_nvml_slots[261] = &__nvmlVgpuInstanceSetEncoderCapacity; _cyb_nvml_names[261] = b'nvmlVgpuInstanceSetEncoderCapacity' +_cyb_nvml_slots[262] = &__nvmlVgpuInstanceGetEncoderStats; _cyb_nvml_names[262] = b'nvmlVgpuInstanceGetEncoderStats' +_cyb_nvml_slots[263] = &__nvmlVgpuInstanceGetEncoderSessions; _cyb_nvml_names[263] = b'nvmlVgpuInstanceGetEncoderSessions' +_cyb_nvml_slots[264] = &__nvmlVgpuInstanceGetFBCStats; _cyb_nvml_names[264] = b'nvmlVgpuInstanceGetFBCStats' +_cyb_nvml_slots[265] = &__nvmlVgpuInstanceGetFBCSessions; _cyb_nvml_names[265] = b'nvmlVgpuInstanceGetFBCSessions' +_cyb_nvml_slots[266] = &__nvmlVgpuInstanceGetGpuInstanceId; _cyb_nvml_names[266] = b'nvmlVgpuInstanceGetGpuInstanceId' +_cyb_nvml_slots[267] = &__nvmlVgpuInstanceGetGpuPciId; _cyb_nvml_names[267] = b'nvmlVgpuInstanceGetGpuPciId' +_cyb_nvml_slots[268] = &__nvmlVgpuTypeGetCapabilities; _cyb_nvml_names[268] = b'nvmlVgpuTypeGetCapabilities' +_cyb_nvml_slots[269] = &__nvmlVgpuInstanceGetMdevUUID; _cyb_nvml_names[269] = b'nvmlVgpuInstanceGetMdevUUID' +_cyb_nvml_slots[270] = &__nvmlGpuInstanceGetCreatableVgpus; _cyb_nvml_names[270] = b'nvmlGpuInstanceGetCreatableVgpus' +_cyb_nvml_slots[271] = &__nvmlVgpuTypeGetMaxInstancesPerGpuInstance; _cyb_nvml_names[271] = b'nvmlVgpuTypeGetMaxInstancesPerGpuInstance' +_cyb_nvml_slots[272] = &__nvmlGpuInstanceGetActiveVgpus; _cyb_nvml_names[272] = b'nvmlGpuInstanceGetActiveVgpus' +_cyb_nvml_slots[273] = &__nvmlGpuInstanceSetVgpuSchedulerState; _cyb_nvml_names[273] = b'nvmlGpuInstanceSetVgpuSchedulerState' +_cyb_nvml_slots[274] = &__nvmlGpuInstanceGetVgpuSchedulerState; _cyb_nvml_names[274] = b'nvmlGpuInstanceGetVgpuSchedulerState' +_cyb_nvml_slots[275] = &__nvmlGpuInstanceGetVgpuSchedulerLog; _cyb_nvml_names[275] = b'nvmlGpuInstanceGetVgpuSchedulerLog' +_cyb_nvml_slots[276] = &__nvmlGpuInstanceGetVgpuTypeCreatablePlacements; _cyb_nvml_names[276] = b'nvmlGpuInstanceGetVgpuTypeCreatablePlacements' +_cyb_nvml_slots[277] = &__nvmlGpuInstanceGetVgpuHeterogeneousMode; _cyb_nvml_names[277] = b'nvmlGpuInstanceGetVgpuHeterogeneousMode' +_cyb_nvml_slots[278] = &__nvmlGpuInstanceSetVgpuHeterogeneousMode; _cyb_nvml_names[278] = b'nvmlGpuInstanceSetVgpuHeterogeneousMode' +_cyb_nvml_slots[279] = &__nvmlVgpuInstanceGetMetadata; _cyb_nvml_names[279] = b'nvmlVgpuInstanceGetMetadata' +_cyb_nvml_slots[280] = &__nvmlDeviceGetVgpuMetadata; _cyb_nvml_names[280] = b'nvmlDeviceGetVgpuMetadata' +_cyb_nvml_slots[281] = &__nvmlGetVgpuCompatibility; _cyb_nvml_names[281] = b'nvmlGetVgpuCompatibility' +_cyb_nvml_slots[282] = &__nvmlDeviceGetPgpuMetadataString; _cyb_nvml_names[282] = b'nvmlDeviceGetPgpuMetadataString' +_cyb_nvml_slots[283] = &__nvmlDeviceGetVgpuSchedulerLog; _cyb_nvml_names[283] = b'nvmlDeviceGetVgpuSchedulerLog' +_cyb_nvml_slots[284] = &__nvmlDeviceGetVgpuSchedulerState; _cyb_nvml_names[284] = b'nvmlDeviceGetVgpuSchedulerState' +_cyb_nvml_slots[285] = &__nvmlDeviceGetVgpuSchedulerCapabilities; _cyb_nvml_names[285] = b'nvmlDeviceGetVgpuSchedulerCapabilities' +_cyb_nvml_slots[286] = &__nvmlDeviceSetVgpuSchedulerState; _cyb_nvml_names[286] = b'nvmlDeviceSetVgpuSchedulerState' +_cyb_nvml_slots[287] = &__nvmlGetVgpuVersion; _cyb_nvml_names[287] = b'nvmlGetVgpuVersion' +_cyb_nvml_slots[288] = &__nvmlSetVgpuVersion; _cyb_nvml_names[288] = b'nvmlSetVgpuVersion' +_cyb_nvml_slots[289] = &__nvmlDeviceGetVgpuUtilization; _cyb_nvml_names[289] = b'nvmlDeviceGetVgpuUtilization' +_cyb_nvml_slots[290] = &__nvmlDeviceGetVgpuInstancesUtilizationInfo; _cyb_nvml_names[290] = b'nvmlDeviceGetVgpuInstancesUtilizationInfo' +_cyb_nvml_slots[291] = &__nvmlDeviceGetVgpuProcessUtilization; _cyb_nvml_names[291] = b'nvmlDeviceGetVgpuProcessUtilization' +_cyb_nvml_slots[292] = &__nvmlDeviceGetVgpuProcessesUtilizationInfo; _cyb_nvml_names[292] = b'nvmlDeviceGetVgpuProcessesUtilizationInfo' +_cyb_nvml_slots[293] = &__nvmlVgpuInstanceGetAccountingMode; _cyb_nvml_names[293] = b'nvmlVgpuInstanceGetAccountingMode' +_cyb_nvml_slots[294] = &__nvmlVgpuInstanceGetAccountingPids; _cyb_nvml_names[294] = b'nvmlVgpuInstanceGetAccountingPids' +_cyb_nvml_slots[295] = &__nvmlVgpuInstanceGetAccountingStats; _cyb_nvml_names[295] = b'nvmlVgpuInstanceGetAccountingStats' +_cyb_nvml_slots[296] = &__nvmlVgpuInstanceClearAccountingPids; _cyb_nvml_names[296] = b'nvmlVgpuInstanceClearAccountingPids' +_cyb_nvml_slots[297] = &__nvmlVgpuInstanceGetLicenseInfo_v2; _cyb_nvml_names[297] = b'nvmlVgpuInstanceGetLicenseInfo_v2' +_cyb_nvml_slots[298] = &__nvmlGetExcludedDeviceCount; _cyb_nvml_names[298] = b'nvmlGetExcludedDeviceCount' +_cyb_nvml_slots[299] = &__nvmlGetExcludedDeviceInfoByIndex; _cyb_nvml_names[299] = b'nvmlGetExcludedDeviceInfoByIndex' +_cyb_nvml_slots[300] = &__nvmlDeviceSetMigMode; _cyb_nvml_names[300] = b'nvmlDeviceSetMigMode' +_cyb_nvml_slots[301] = &__nvmlDeviceGetMigMode; _cyb_nvml_names[301] = b'nvmlDeviceGetMigMode' +_cyb_nvml_slots[302] = &__nvmlDeviceGetGpuInstanceProfileInfoV; _cyb_nvml_names[302] = b'nvmlDeviceGetGpuInstanceProfileInfoV' +_cyb_nvml_slots[303] = &__nvmlDeviceGetGpuInstancePossiblePlacements_v2; _cyb_nvml_names[303] = b'nvmlDeviceGetGpuInstancePossiblePlacements_v2' +_cyb_nvml_slots[304] = &__nvmlDeviceGetGpuInstanceRemainingCapacity; _cyb_nvml_names[304] = b'nvmlDeviceGetGpuInstanceRemainingCapacity' +_cyb_nvml_slots[305] = &__nvmlDeviceCreateGpuInstance; _cyb_nvml_names[305] = b'nvmlDeviceCreateGpuInstance' +_cyb_nvml_slots[306] = &__nvmlDeviceCreateGpuInstanceWithPlacement; _cyb_nvml_names[306] = b'nvmlDeviceCreateGpuInstanceWithPlacement' +_cyb_nvml_slots[307] = &__nvmlGpuInstanceDestroy; _cyb_nvml_names[307] = b'nvmlGpuInstanceDestroy' +_cyb_nvml_slots[308] = &__nvmlDeviceGetGpuInstances; _cyb_nvml_names[308] = b'nvmlDeviceGetGpuInstances' +_cyb_nvml_slots[309] = &__nvmlDeviceGetGpuInstanceById; _cyb_nvml_names[309] = b'nvmlDeviceGetGpuInstanceById' +_cyb_nvml_slots[310] = &__nvmlGpuInstanceGetInfo; _cyb_nvml_names[310] = b'nvmlGpuInstanceGetInfo' +_cyb_nvml_slots[311] = &__nvmlGpuInstanceGetComputeInstanceProfileInfoV; _cyb_nvml_names[311] = b'nvmlGpuInstanceGetComputeInstanceProfileInfoV' +_cyb_nvml_slots[312] = &__nvmlGpuInstanceGetComputeInstanceRemainingCapacity; _cyb_nvml_names[312] = b'nvmlGpuInstanceGetComputeInstanceRemainingCapacity' +_cyb_nvml_slots[313] = &__nvmlGpuInstanceGetComputeInstancePossiblePlacements; _cyb_nvml_names[313] = b'nvmlGpuInstanceGetComputeInstancePossiblePlacements' +_cyb_nvml_slots[314] = &__nvmlGpuInstanceCreateComputeInstance; _cyb_nvml_names[314] = b'nvmlGpuInstanceCreateComputeInstance' +_cyb_nvml_slots[315] = &__nvmlGpuInstanceCreateComputeInstanceWithPlacement; _cyb_nvml_names[315] = b'nvmlGpuInstanceCreateComputeInstanceWithPlacement' +_cyb_nvml_slots[316] = &__nvmlComputeInstanceDestroy; _cyb_nvml_names[316] = b'nvmlComputeInstanceDestroy' +_cyb_nvml_slots[317] = &__nvmlGpuInstanceGetComputeInstances; _cyb_nvml_names[317] = b'nvmlGpuInstanceGetComputeInstances' +_cyb_nvml_slots[318] = &__nvmlGpuInstanceGetComputeInstanceById; _cyb_nvml_names[318] = b'nvmlGpuInstanceGetComputeInstanceById' +_cyb_nvml_slots[319] = &__nvmlComputeInstanceGetInfo_v2; _cyb_nvml_names[319] = b'nvmlComputeInstanceGetInfo_v2' +_cyb_nvml_slots[320] = &__nvmlDeviceIsMigDeviceHandle; _cyb_nvml_names[320] = b'nvmlDeviceIsMigDeviceHandle' +_cyb_nvml_slots[321] = &__nvmlDeviceGetGpuInstanceId; _cyb_nvml_names[321] = b'nvmlDeviceGetGpuInstanceId' +_cyb_nvml_slots[322] = &__nvmlDeviceGetComputeInstanceId; _cyb_nvml_names[322] = b'nvmlDeviceGetComputeInstanceId' +_cyb_nvml_slots[323] = &__nvmlDeviceGetMaxMigDeviceCount; _cyb_nvml_names[323] = b'nvmlDeviceGetMaxMigDeviceCount' +_cyb_nvml_slots[324] = &__nvmlDeviceGetMigDeviceHandleByIndex; _cyb_nvml_names[324] = b'nvmlDeviceGetMigDeviceHandleByIndex' +_cyb_nvml_slots[325] = &__nvmlDeviceGetDeviceHandleFromMigDeviceHandle; _cyb_nvml_names[325] = b'nvmlDeviceGetDeviceHandleFromMigDeviceHandle' +_cyb_nvml_slots[326] = &__nvmlDeviceGetCapabilities; _cyb_nvml_names[326] = b'nvmlDeviceGetCapabilities' +_cyb_nvml_slots[327] = &__nvmlDevicePowerSmoothingActivatePresetProfile; _cyb_nvml_names[327] = b'nvmlDevicePowerSmoothingActivatePresetProfile' +_cyb_nvml_slots[328] = &__nvmlDevicePowerSmoothingUpdatePresetProfileParam; _cyb_nvml_names[328] = b'nvmlDevicePowerSmoothingUpdatePresetProfileParam' +_cyb_nvml_slots[329] = &__nvmlDevicePowerSmoothingSetState; _cyb_nvml_names[329] = b'nvmlDevicePowerSmoothingSetState' +_cyb_nvml_slots[330] = &__nvmlDeviceGetAddressingMode; _cyb_nvml_names[330] = b'nvmlDeviceGetAddressingMode' +_cyb_nvml_slots[331] = &__nvmlDeviceGetRepairStatus; _cyb_nvml_names[331] = b'nvmlDeviceGetRepairStatus' +_cyb_nvml_slots[332] = &__nvmlDeviceGetPowerMizerMode_v1; _cyb_nvml_names[332] = b'nvmlDeviceGetPowerMizerMode_v1' +_cyb_nvml_slots[333] = &__nvmlDeviceSetPowerMizerMode_v1; _cyb_nvml_names[333] = b'nvmlDeviceSetPowerMizerMode_v1' +_cyb_nvml_slots[334] = &__nvmlDeviceGetPdi; _cyb_nvml_names[334] = b'nvmlDeviceGetPdi' +_cyb_nvml_slots[335] = &__nvmlDeviceSetHostname_v1; _cyb_nvml_names[335] = b'nvmlDeviceSetHostname_v1' +_cyb_nvml_slots[336] = &__nvmlDeviceGetHostname_v1; _cyb_nvml_names[336] = b'nvmlDeviceGetHostname_v1' +_cyb_nvml_slots[337] = &__nvmlDeviceGetNvLinkInfo; _cyb_nvml_names[337] = b'nvmlDeviceGetNvLinkInfo' +_cyb_nvml_slots[338] = &__nvmlDeviceReadWritePRM_v1; _cyb_nvml_names[338] = b'nvmlDeviceReadWritePRM_v1' +_cyb_nvml_slots[339] = &__nvmlDeviceGetGpuInstanceProfileInfoByIdV; _cyb_nvml_names[339] = b'nvmlDeviceGetGpuInstanceProfileInfoByIdV' +_cyb_nvml_slots[340] = &__nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts; _cyb_nvml_names[340] = b'nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts' +_cyb_nvml_slots[341] = &__nvmlDeviceGetUnrepairableMemoryFlag_v1; _cyb_nvml_names[341] = b'nvmlDeviceGetUnrepairableMemoryFlag_v1' +_cyb_nvml_slots[342] = &__nvmlDeviceReadPRMCounters_v1; _cyb_nvml_names[342] = b'nvmlDeviceReadPRMCounters_v1' +_cyb_nvml_slots[343] = &__nvmlDeviceSetRusdSettings_v1; _cyb_nvml_names[343] = b'nvmlDeviceSetRusdSettings_v1' +_cyb_nvml_slots[344] = &__nvmlDeviceVgpuForceGspUnload; _cyb_nvml_names[344] = b'nvmlDeviceVgpuForceGspUnload' +_cyb_nvml_slots[345] = &__nvmlDeviceGetVgpuSchedulerState_v2; _cyb_nvml_names[345] = b'nvmlDeviceGetVgpuSchedulerState_v2' +_cyb_nvml_slots[346] = &__nvmlGpuInstanceGetVgpuSchedulerState_v2; _cyb_nvml_names[346] = b'nvmlGpuInstanceGetVgpuSchedulerState_v2' +_cyb_nvml_slots[347] = &__nvmlDeviceGetVgpuSchedulerLog_v2; _cyb_nvml_names[347] = b'nvmlDeviceGetVgpuSchedulerLog_v2' +_cyb_nvml_slots[348] = &__nvmlGpuInstanceGetVgpuSchedulerLog_v2; _cyb_nvml_names[348] = b'nvmlGpuInstanceGetVgpuSchedulerLog_v2' +_cyb_nvml_slots[349] = &__nvmlDeviceSetVgpuSchedulerState_v2; _cyb_nvml_names[349] = b'nvmlDeviceSetVgpuSchedulerState_v2' +_cyb_nvml_slots[350] = &__nvmlGpuInstanceSetVgpuSchedulerState_v2; _cyb_nvml_names[350] = b'nvmlGpuInstanceSetVgpuSchedulerState_v2' +_cyb_nvml_slots[351] = &__nvmlSystemGetCPER_v1; _cyb_nvml_names[351] = b'nvmlSystemGetCPER_v1' +_cyb_nvml_slots[352] = &__nvmlDeviceGetBBXTimeData_v1; _cyb_nvml_names[352] = b'nvmlDeviceGetBBXTimeData_v1' +_cyb_nvml_slots[353] = &__nvmlDeviceGetAccountingStats_v2; _cyb_nvml_names[353] = b'nvmlDeviceGetAccountingStats_v2' +_cyb_nvml_slots[354] = &__nvmlDeviceGetRemappedRows_v2; _cyb_nvml_names[354] = b'nvmlDeviceGetRemappedRows_v2' +_cyb_nvml_slots[355] = &__nvmlDeviceSetAdaptiveTgpMode_v1; _cyb_nvml_names[355] = b'nvmlDeviceSetAdaptiveTgpMode_v1' +_cyb_nvml_slots[356] = &__nvmlDeviceGetAdaptiveTgpModeInfo_v1; _cyb_nvml_names[356] = b'nvmlDeviceGetAdaptiveTgpModeInfo_v1' +_cyb_nvml_slots[357] = &__nvmlDeviceSetMemoryLimits_v1; _cyb_nvml_names[357] = b'nvmlDeviceSetMemoryLimits_v1' +_cyb_nvml_slots[358] = &__nvmlDeviceGetMemoryLimits_v1; _cyb_nvml_names[358] = b'nvmlDeviceGetMemoryLimits_v1' +_cyb_nvml_slots[359] = &__nvmlDeviceGetGpuFabricInfo_v4; _cyb_nvml_names[359] = b'nvmlDeviceGetGpuFabricInfo_v4' +_cyb_nvml_slots[360] = &__nvmlDevicePerfMetricsGetSamples_v1; _cyb_nvml_names[360] = b'nvmlDevicePerfMetricsGetSamples_v1' +_cyb_nvml_slots[361] = &__nvmlDeviceSetNvlinkBwModeAsync_v1; _cyb_nvml_names[361] = b'nvmlDeviceSetNvlinkBwModeAsync_v1' +_cyb_nvml_slots[362] = &__nvmlDeviceGetNvLinkTelemetrySamples_v1; _cyb_nvml_names[362] = b'nvmlDeviceGetNvLinkTelemetrySamples_v1' +_cyb_nvml_slots[363] = &__nvmlEventSetRegisterGpuOperationalEvents_v1; _cyb_nvml_names[363] = b'nvmlEventSetRegisterGpuOperationalEvents_v1' +_cyb_nvml_slots[364] = &__nvmlEventSetWait_v3; _cyb_nvml_names[364] = b'nvmlEventSetWait_v3' +_cyb_nvml_slots[365] = &__nvmlEventSetGetContextCount_v1; _cyb_nvml_names[365] = b'nvmlEventSetGetContextCount_v1' +_cyb_nvml_slots[366] = &__nvmlEventSetGetContextInfo_v1; _cyb_nvml_names[366] = b'nvmlEventSetGetContextInfo_v1' +_cyb_nvml_slots[367] = &__nvmlEventSetGetContextData_v1; _cyb_nvml_names[367] = b'nvmlEventSetGetContextData_v1' +_cyb_nvml_slots[368] = &__nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1; _cyb_nvml_names[368] = b'nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1' +_cyb_nvml_slots[369] = &__nvmlDeviceGetBankRemapperStatus_v1; _cyb_nvml_names[369] = b'nvmlDeviceGetBankRemapperStatus_v1' +_cyb_nvml_slots[370] = &__nvmlDeviceGetGpuUptime_v1; _cyb_nvml_names[370] = b'nvmlDeviceGetGpuUptime_v1' +_cyb_nvml_slots[371] = &__nvmlSystemGetConfComputeSettings_v2; _cyb_nvml_names[371] = b'nvmlSystemGetConfComputeSettings_v2' +_cyb_nvml_slots[372] = &__nvmlDeviceGetNvLinkInfo_v3; _cyb_nvml_names[372] = b'nvmlDeviceGetNvLinkInfo_v3' +_cyb_nvml_slots[373] = &__nvmlDeviceGetNvlinkRemapTableInfo_v1; _cyb_nvml_names[373] = b'nvmlDeviceGetNvlinkRemapTableInfo_v1' +_cyb_nvml_slots[374] = &__nvmlDeviceSetNvlinkNvleReady_v1; _cyb_nvml_names[374] = b'nvmlDeviceSetNvlinkNvleReady_v1' +_cyb_nvml_slots[375] = &__nvmlDeviceLockNvlinkRemapTable_v1; _cyb_nvml_names[375] = b'nvmlDeviceLockNvlinkRemapTable_v1' +_cyb_nvml_slots[376] = &__nvmlDeviceSetupNvlinkNvleEncryptionKey_v1; _cyb_nvml_names[376] = b'nvmlDeviceSetupNvlinkNvleEncryptionKey_v1' +_cyb_nvml_slots[377] = &__nvmlDeviceGetNvlinkNvlePrivateInfo_v1; _cyb_nvml_names[377] = b'nvmlDeviceGetNvlinkNvlePrivateInfo_v1' - global __nvmlDeviceGetNvLinkTelemetrySamples_v1 - data["__nvmlDeviceGetNvLinkTelemetrySamples_v1"] = __nvmlDeviceGetNvLinkTelemetrySamples_v1 +cdef int _init_nvml() except -1 nogil: + global _cyb___py_nvml_init + cdef void* handle = NULL + cdef Py_ssize_t i + with gil, _cyb_symbol_lock: + if _cyb___py_nvml_init: return 0 - global __nvmlEventSetRegisterGpuOperationalEvents_v1 - data["__nvmlEventSetRegisterGpuOperationalEvents_v1"] = __nvmlEventSetRegisterGpuOperationalEvents_v1 + for i in range(_cyb_nvml_n_functions): + _cyb_nvml_slots[i][0] = _cyb_dlsym(_cyb_RTLD_DEFAULT, _cyb_nvml_names[i]) + if _cyb_nvml_slots[i][0] == NULL: + if handle == NULL: + handle = load_library() + _cyb_nvml_slots[i][0] = _cyb_dlsym(handle, _cyb_nvml_names[i]) - global __nvmlEventSetWait_v3 - data["__nvmlEventSetWait_v3"] = __nvmlEventSetWait_v3 + _cyb_atomic_int_store(&_cyb___py_nvml_init, 1) + return 0 - global __nvmlEventSetGetContextCount_v1 - data["__nvmlEventSetGetContextCount_v1"] = __nvmlEventSetGetContextCount_v1 +cdef inline int _check_or_init_nvml() except -1 nogil: + if _cyb_atomic_int_load(&_cyb___py_nvml_init): + return 0 - global __nvmlEventSetGetContextInfo_v1 - data["__nvmlEventSetGetContextInfo_v1"] = __nvmlEventSetGetContextInfo_v1 + return _init_nvml() - global __nvmlEventSetGetContextData_v1 - data["__nvmlEventSetGetContextData_v1"] = __nvmlEventSetGetContextData_v1 - global __nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1 - data["__nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1"] = __nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1 +cpdef dict _inspect_function_pointers(): + global _cyb_func_ptrs + if _cyb_func_ptrs is not None: + return _cyb_func_ptrs - global __nvmlDeviceGetBankRemapperStatus_v1 - data["__nvmlDeviceGetBankRemapperStatus_v1"] = __nvmlDeviceGetBankRemapperStatus_v1 + _check_or_init_nvml() + cdef dict data = {} + cdef Py_ssize_t i + for i in range(_cyb_nvml_n_functions): + data['__' + _cyb_nvml_names[i].decode()] = _cyb_nvml_slots[i][0] _cyb_func_ptrs = data return data @@ -7877,3 +4579,83 @@ cdef nvmlReturn_t _nvmlDeviceGetBankRemapperStatus_v1(nvmlDevice_t device, nvmlE raise FunctionNotFoundError("function nvmlDeviceGetBankRemapperStatus_v1 is not found") return (__nvmlDeviceGetBankRemapperStatus_v1)( device, pBankRemapperStatus) + + +cdef nvmlReturn_t _nvmlDeviceGetGpuUptime_v1(nvmlDevice_t device, nvmlGpuUptime_v1_t* uptime) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: + global __nvmlDeviceGetGpuUptime_v1 + _check_or_init_nvml() + if __nvmlDeviceGetGpuUptime_v1 == NULL: + with gil: + raise FunctionNotFoundError("function nvmlDeviceGetGpuUptime_v1 is not found") + return (__nvmlDeviceGetGpuUptime_v1)( + device, uptime) + + +cdef nvmlReturn_t _nvmlSystemGetConfComputeSettings_v2(nvmlSystemConfComputeSettings_v2_t* settings) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: + global __nvmlSystemGetConfComputeSettings_v2 + _check_or_init_nvml() + if __nvmlSystemGetConfComputeSettings_v2 == NULL: + with gil: + raise FunctionNotFoundError("function nvmlSystemGetConfComputeSettings_v2 is not found") + return (__nvmlSystemGetConfComputeSettings_v2)( + settings) + + +cdef nvmlReturn_t _nvmlDeviceGetNvLinkInfo_v3(nvmlDevice_t device, nvmlNvLinkInfo_v3_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: + global __nvmlDeviceGetNvLinkInfo_v3 + _check_or_init_nvml() + if __nvmlDeviceGetNvLinkInfo_v3 == NULL: + with gil: + raise FunctionNotFoundError("function nvmlDeviceGetNvLinkInfo_v3 is not found") + return (__nvmlDeviceGetNvLinkInfo_v3)( + device, info) + + +cdef nvmlReturn_t _nvmlDeviceGetNvlinkRemapTableInfo_v1(nvmlDevice_t device, nvmlNvlinkGetRemapTableInfo_v1_t* remapTableInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: + global __nvmlDeviceGetNvlinkRemapTableInfo_v1 + _check_or_init_nvml() + if __nvmlDeviceGetNvlinkRemapTableInfo_v1 == NULL: + with gil: + raise FunctionNotFoundError("function nvmlDeviceGetNvlinkRemapTableInfo_v1 is not found") + return (__nvmlDeviceGetNvlinkRemapTableInfo_v1)( + device, remapTableInfo) + + +cdef nvmlReturn_t _nvmlDeviceSetNvlinkNvleReady_v1(nvmlDevice_t device, nvmlNvlinkSetNvleReady_v1_t* setNvleReady) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: + global __nvmlDeviceSetNvlinkNvleReady_v1 + _check_or_init_nvml() + if __nvmlDeviceSetNvlinkNvleReady_v1 == NULL: + with gil: + raise FunctionNotFoundError("function nvmlDeviceSetNvlinkNvleReady_v1 is not found") + return (__nvmlDeviceSetNvlinkNvleReady_v1)( + device, setNvleReady) + + +cdef nvmlReturn_t _nvmlDeviceLockNvlinkRemapTable_v1(nvmlDevice_t device, nvmlNvlinkLockRemapTable_v1_t* remapTableLockInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: + global __nvmlDeviceLockNvlinkRemapTable_v1 + _check_or_init_nvml() + if __nvmlDeviceLockNvlinkRemapTable_v1 == NULL: + with gil: + raise FunctionNotFoundError("function nvmlDeviceLockNvlinkRemapTable_v1 is not found") + return (__nvmlDeviceLockNvlinkRemapTable_v1)( + device, remapTableLockInfo) + + +cdef nvmlReturn_t _nvmlDeviceSetupNvlinkNvleEncryptionKey_v1(nvmlDevice_t device, nvmlNvlinkSetupNvleEncryptionKey_v1_t* encryptionKey) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: + global __nvmlDeviceSetupNvlinkNvleEncryptionKey_v1 + _check_or_init_nvml() + if __nvmlDeviceSetupNvlinkNvleEncryptionKey_v1 == NULL: + with gil: + raise FunctionNotFoundError("function nvmlDeviceSetupNvlinkNvleEncryptionKey_v1 is not found") + return (__nvmlDeviceSetupNvlinkNvleEncryptionKey_v1)( + device, encryptionKey) + + +cdef nvmlReturn_t _nvmlDeviceGetNvlinkNvlePrivateInfo_v1(nvmlDevice_t device, nvmlNvlinkNvlePrivateInfo_v1_t* privateInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: + global __nvmlDeviceGetNvlinkNvlePrivateInfo_v1 + _check_or_init_nvml() + if __nvmlDeviceGetNvlinkNvlePrivateInfo_v1 == NULL: + with gil: + raise FunctionNotFoundError("function nvmlDeviceGetNvlinkNvlePrivateInfo_v1 is not found") + return (__nvmlDeviceGetNvlinkNvlePrivateInfo_v1)( + device, privateInfo) diff --git a/cuda_bindings_12/cuda/bindings/_internal/nvml_windows.pyx b/cuda_bindings_12/cuda/bindings/_internal/nvml_windows.pyx index e5a7cf53a78d..bcb68c2f1e54 100644 --- a/cuda_bindings_12/cuda/bindings/_internal/nvml_windows.pyx +++ b/cuda_bindings_12/cuda/bindings/_internal/nvml_windows.pyx @@ -2,12 +2,17 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.9.1 to 13.4.1. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=5e4dabf79550bbf99149a55b67542f1b6bf20a48f3dbfd922848c16115418f5e +# This code was automatically generated across versions from 12.9.1 to 13.5.0. Do not modify it directly. +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=5afbd4bac3bbe9aa0425a1ec4550bb3581ebb148d47a9de0668ea72649f4b395 # <<<< PREAMBLE CONTENT >>>> +from libc.stdint cimport ( + intptr_t, + uintptr_t, +) + cdef extern from * nogil: """ #if defined(_MSC_VER) && !defined(__clang__) @@ -44,11 +49,6 @@ cdef extern from "": ctypedef void* HMODULE void* _cyb_GetProcAddress "GetProcAddress"(HMODULE, const char*) nogil -from libc.stdint cimport ( - intptr_t, - uintptr_t, -) - import threading as _cyb_threading cdef int _cyb___py_nvml_init = 0 @@ -240,2446 +240,624 @@ cdef void* __nvmlDeviceGetPlatformInfo = NULL cdef void* __nvmlUnitSetLedState = NULL cdef void* __nvmlDeviceSetPersistenceMode = NULL cdef void* __nvmlDeviceSetComputeMode = NULL -cdef void* __nvmlDeviceSetEccMode = NULL -cdef void* __nvmlDeviceClearEccErrorCounts = NULL -cdef void* __nvmlDeviceSetDriverModel = NULL -cdef void* __nvmlDeviceSetGpuLockedClocks = NULL -cdef void* __nvmlDeviceResetGpuLockedClocks = NULL -cdef void* __nvmlDeviceSetMemoryLockedClocks = NULL -cdef void* __nvmlDeviceResetMemoryLockedClocks = NULL -cdef void* __nvmlDeviceSetAutoBoostedClocksEnabled = NULL -cdef void* __nvmlDeviceSetDefaultAutoBoostedClocksEnabled = NULL -cdef void* __nvmlDeviceSetDefaultFanSpeed_v2 = NULL -cdef void* __nvmlDeviceSetFanControlPolicy = NULL -cdef void* __nvmlDeviceSetTemperatureThreshold = NULL -cdef void* __nvmlDeviceSetGpuOperationMode = NULL -cdef void* __nvmlDeviceSetAPIRestriction = NULL -cdef void* __nvmlDeviceSetFanSpeed_v2 = NULL -cdef void* __nvmlDeviceSetAccountingMode = NULL -cdef void* __nvmlDeviceClearAccountingPids = NULL -cdef void* __nvmlDeviceSetPowerManagementLimit_v2 = NULL -cdef void* __nvmlDeviceGetNvLinkState = NULL -cdef void* __nvmlDeviceGetNvLinkVersion = NULL -cdef void* __nvmlDeviceGetNvLinkCapability = NULL -cdef void* __nvmlDeviceGetNvLinkRemotePciInfo_v2 = NULL -cdef void* __nvmlDeviceGetNvLinkErrorCounter = NULL -cdef void* __nvmlDeviceResetNvLinkErrorCounters = NULL -cdef void* __nvmlDeviceGetNvLinkRemoteDeviceType = NULL -cdef void* __nvmlDeviceSetNvLinkDeviceLowPowerThreshold = NULL -cdef void* __nvmlSystemSetNvlinkBwMode = NULL -cdef void* __nvmlSystemGetNvlinkBwMode = NULL -cdef void* __nvmlDeviceGetNvlinkSupportedBwModes = NULL -cdef void* __nvmlDeviceGetNvlinkBwMode = NULL -cdef void* __nvmlDeviceSetNvlinkBwMode = NULL -cdef void* __nvmlEventSetCreate = NULL -cdef void* __nvmlDeviceRegisterEvents = NULL -cdef void* __nvmlDeviceGetSupportedEventTypes = NULL -cdef void* __nvmlEventSetWait_v2 = NULL -cdef void* __nvmlEventSetFree = NULL -cdef void* __nvmlSystemEventSetCreate = NULL -cdef void* __nvmlSystemEventSetFree = NULL -cdef void* __nvmlSystemRegisterEvents = NULL -cdef void* __nvmlSystemEventSetWait = NULL -cdef void* __nvmlDeviceModifyDrainState = NULL -cdef void* __nvmlDeviceQueryDrainState = NULL -cdef void* __nvmlDeviceRemoveGpu_v2 = NULL -cdef void* __nvmlDeviceDiscoverGpus = NULL -cdef void* __nvmlDeviceGetFieldValues = NULL -cdef void* __nvmlDeviceClearFieldValues = NULL -cdef void* __nvmlDeviceGetVirtualizationMode = NULL -cdef void* __nvmlDeviceGetHostVgpuMode = NULL -cdef void* __nvmlDeviceSetVirtualizationMode = NULL -cdef void* __nvmlDeviceGetVgpuHeterogeneousMode = NULL -cdef void* __nvmlDeviceSetVgpuHeterogeneousMode = NULL -cdef void* __nvmlVgpuInstanceGetPlacementId = NULL -cdef void* __nvmlDeviceGetVgpuTypeSupportedPlacements = NULL -cdef void* __nvmlDeviceGetVgpuTypeCreatablePlacements = NULL -cdef void* __nvmlVgpuTypeGetGspHeapSize = NULL -cdef void* __nvmlVgpuTypeGetFbReservation = NULL -cdef void* __nvmlVgpuInstanceGetRuntimeStateSize = NULL -cdef void* __nvmlDeviceSetVgpuCapabilities = NULL -cdef void* __nvmlDeviceGetGridLicensableFeatures_v4 = NULL -cdef void* __nvmlGetVgpuDriverCapabilities = NULL -cdef void* __nvmlDeviceGetVgpuCapabilities = NULL -cdef void* __nvmlDeviceGetSupportedVgpus = NULL -cdef void* __nvmlDeviceGetCreatableVgpus = NULL -cdef void* __nvmlVgpuTypeGetClass = NULL -cdef void* __nvmlVgpuTypeGetName = NULL -cdef void* __nvmlVgpuTypeGetGpuInstanceProfileId = NULL -cdef void* __nvmlVgpuTypeGetDeviceID = NULL -cdef void* __nvmlVgpuTypeGetFramebufferSize = NULL -cdef void* __nvmlVgpuTypeGetNumDisplayHeads = NULL -cdef void* __nvmlVgpuTypeGetResolution = NULL -cdef void* __nvmlVgpuTypeGetLicense = NULL -cdef void* __nvmlVgpuTypeGetFrameRateLimit = NULL -cdef void* __nvmlVgpuTypeGetMaxInstances = NULL -cdef void* __nvmlVgpuTypeGetMaxInstancesPerVm = NULL -cdef void* __nvmlVgpuTypeGetBAR1Info = NULL -cdef void* __nvmlDeviceGetActiveVgpus = NULL -cdef void* __nvmlVgpuInstanceGetVmID = NULL -cdef void* __nvmlVgpuInstanceGetUUID = NULL -cdef void* __nvmlVgpuInstanceGetVmDriverVersion = NULL -cdef void* __nvmlVgpuInstanceGetFbUsage = NULL -cdef void* __nvmlVgpuInstanceGetLicenseStatus = NULL -cdef void* __nvmlVgpuInstanceGetType = NULL -cdef void* __nvmlVgpuInstanceGetFrameRateLimit = NULL -cdef void* __nvmlVgpuInstanceGetEccMode = NULL -cdef void* __nvmlVgpuInstanceGetEncoderCapacity = NULL -cdef void* __nvmlVgpuInstanceSetEncoderCapacity = NULL -cdef void* __nvmlVgpuInstanceGetEncoderStats = NULL -cdef void* __nvmlVgpuInstanceGetEncoderSessions = NULL -cdef void* __nvmlVgpuInstanceGetFBCStats = NULL -cdef void* __nvmlVgpuInstanceGetFBCSessions = NULL -cdef void* __nvmlVgpuInstanceGetGpuInstanceId = NULL -cdef void* __nvmlVgpuInstanceGetGpuPciId = NULL -cdef void* __nvmlVgpuTypeGetCapabilities = NULL -cdef void* __nvmlVgpuInstanceGetMdevUUID = NULL -cdef void* __nvmlGpuInstanceGetCreatableVgpus = NULL -cdef void* __nvmlVgpuTypeGetMaxInstancesPerGpuInstance = NULL -cdef void* __nvmlGpuInstanceGetActiveVgpus = NULL -cdef void* __nvmlGpuInstanceSetVgpuSchedulerState = NULL -cdef void* __nvmlGpuInstanceGetVgpuSchedulerState = NULL -cdef void* __nvmlGpuInstanceGetVgpuSchedulerLog = NULL -cdef void* __nvmlGpuInstanceGetVgpuTypeCreatablePlacements = NULL -cdef void* __nvmlGpuInstanceGetVgpuHeterogeneousMode = NULL -cdef void* __nvmlGpuInstanceSetVgpuHeterogeneousMode = NULL -cdef void* __nvmlVgpuInstanceGetMetadata = NULL -cdef void* __nvmlDeviceGetVgpuMetadata = NULL -cdef void* __nvmlGetVgpuCompatibility = NULL -cdef void* __nvmlDeviceGetPgpuMetadataString = NULL -cdef void* __nvmlDeviceGetVgpuSchedulerLog = NULL -cdef void* __nvmlDeviceGetVgpuSchedulerState = NULL -cdef void* __nvmlDeviceGetVgpuSchedulerCapabilities = NULL -cdef void* __nvmlDeviceSetVgpuSchedulerState = NULL -cdef void* __nvmlGetVgpuVersion = NULL -cdef void* __nvmlSetVgpuVersion = NULL -cdef void* __nvmlDeviceGetVgpuUtilization = NULL -cdef void* __nvmlDeviceGetVgpuInstancesUtilizationInfo = NULL -cdef void* __nvmlDeviceGetVgpuProcessUtilization = NULL -cdef void* __nvmlDeviceGetVgpuProcessesUtilizationInfo = NULL -cdef void* __nvmlVgpuInstanceGetAccountingMode = NULL -cdef void* __nvmlVgpuInstanceGetAccountingPids = NULL -cdef void* __nvmlVgpuInstanceGetAccountingStats = NULL -cdef void* __nvmlVgpuInstanceClearAccountingPids = NULL -cdef void* __nvmlVgpuInstanceGetLicenseInfo_v2 = NULL -cdef void* __nvmlGetExcludedDeviceCount = NULL -cdef void* __nvmlGetExcludedDeviceInfoByIndex = NULL -cdef void* __nvmlDeviceSetMigMode = NULL -cdef void* __nvmlDeviceGetMigMode = NULL -cdef void* __nvmlDeviceGetGpuInstanceProfileInfoV = NULL -cdef void* __nvmlDeviceGetGpuInstancePossiblePlacements_v2 = NULL -cdef void* __nvmlDeviceGetGpuInstanceRemainingCapacity = NULL -cdef void* __nvmlDeviceCreateGpuInstance = NULL -cdef void* __nvmlDeviceCreateGpuInstanceWithPlacement = NULL -cdef void* __nvmlGpuInstanceDestroy = NULL -cdef void* __nvmlDeviceGetGpuInstances = NULL -cdef void* __nvmlDeviceGetGpuInstanceById = NULL -cdef void* __nvmlGpuInstanceGetInfo = NULL -cdef void* __nvmlGpuInstanceGetComputeInstanceProfileInfoV = NULL -cdef void* __nvmlGpuInstanceGetComputeInstanceRemainingCapacity = NULL -cdef void* __nvmlGpuInstanceGetComputeInstancePossiblePlacements = NULL -cdef void* __nvmlGpuInstanceCreateComputeInstance = NULL -cdef void* __nvmlGpuInstanceCreateComputeInstanceWithPlacement = NULL -cdef void* __nvmlComputeInstanceDestroy = NULL -cdef void* __nvmlGpuInstanceGetComputeInstances = NULL -cdef void* __nvmlGpuInstanceGetComputeInstanceById = NULL -cdef void* __nvmlComputeInstanceGetInfo_v2 = NULL -cdef void* __nvmlDeviceIsMigDeviceHandle = NULL -cdef void* __nvmlDeviceGetGpuInstanceId = NULL -cdef void* __nvmlDeviceGetComputeInstanceId = NULL -cdef void* __nvmlDeviceGetMaxMigDeviceCount = NULL -cdef void* __nvmlDeviceGetMigDeviceHandleByIndex = NULL -cdef void* __nvmlDeviceGetDeviceHandleFromMigDeviceHandle = NULL -cdef void* __nvmlDeviceGetCapabilities = NULL -cdef void* __nvmlDevicePowerSmoothingActivatePresetProfile = NULL -cdef void* __nvmlDevicePowerSmoothingUpdatePresetProfileParam = NULL -cdef void* __nvmlDevicePowerSmoothingSetState = NULL -cdef void* __nvmlDeviceGetAddressingMode = NULL -cdef void* __nvmlDeviceGetRepairStatus = NULL -cdef void* __nvmlDeviceGetPowerMizerMode_v1 = NULL -cdef void* __nvmlDeviceSetPowerMizerMode_v1 = NULL -cdef void* __nvmlDeviceGetPdi = NULL -cdef void* __nvmlDeviceSetHostname_v1 = NULL -cdef void* __nvmlDeviceGetHostname_v1 = NULL -cdef void* __nvmlDeviceGetNvLinkInfo = NULL -cdef void* __nvmlDeviceReadWritePRM_v1 = NULL -cdef void* __nvmlDeviceGetGpuInstanceProfileInfoByIdV = NULL -cdef void* __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts = NULL -cdef void* __nvmlDeviceGetUnrepairableMemoryFlag_v1 = NULL -cdef void* __nvmlDeviceReadPRMCounters_v1 = NULL -cdef void* __nvmlDeviceSetRusdSettings_v1 = NULL -cdef void* __nvmlDeviceVgpuForceGspUnload = NULL -cdef void* __nvmlDeviceGetVgpuSchedulerState_v2 = NULL -cdef void* __nvmlGpuInstanceGetVgpuSchedulerState_v2 = NULL -cdef void* __nvmlDeviceGetVgpuSchedulerLog_v2 = NULL -cdef void* __nvmlGpuInstanceGetVgpuSchedulerLog_v2 = NULL -cdef void* __nvmlDeviceSetVgpuSchedulerState_v2 = NULL -cdef void* __nvmlGpuInstanceSetVgpuSchedulerState_v2 = NULL -cdef void* __nvmlSystemGetCPER_v1 = NULL -cdef void* __nvmlDeviceGetBBXTimeData_v1 = NULL -cdef void* __nvmlDeviceGetAccountingStats_v2 = NULL -cdef void* __nvmlDeviceGetRemappedRows_v2 = NULL -cdef void* __nvmlDeviceSetAdaptiveTgpMode_v1 = NULL -cdef void* __nvmlDeviceGetAdaptiveTgpModeInfo_v1 = NULL -cdef void* __nvmlDeviceSetMemoryLimits_v1 = NULL -cdef void* __nvmlDeviceGetMemoryLimits_v1 = NULL -cdef void* __nvmlDeviceGetGpuFabricInfo_v4 = NULL -cdef void* __nvmlDevicePerfMetricsGetSamples_v1 = NULL -cdef void* __nvmlDeviceSetNvlinkBwModeAsync_v1 = NULL -cdef void* __nvmlDeviceGetNvLinkTelemetrySamples_v1 = NULL -cdef void* __nvmlEventSetRegisterGpuOperationalEvents_v1 = NULL -cdef void* __nvmlEventSetWait_v3 = NULL -cdef void* __nvmlEventSetGetContextCount_v1 = NULL -cdef void* __nvmlEventSetGetContextInfo_v1 = NULL -cdef void* __nvmlEventSetGetContextData_v1 = NULL -cdef void* __nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1 = NULL -cdef void* __nvmlDeviceGetBankRemapperStatus_v1 = NULL - -cdef int _init_nvml() except -1 nogil: - global _cyb___py_nvml_init - - cdef int err - cdef uintptr_t handle - with gil, _cyb_symbol_lock: - if _cyb___py_nvml_init: return 0 - - handle = load_library() - global __nvmlInit_v2 - __nvmlInit_v2 = _cyb_GetProcAddress(handle, 'nvmlInit_v2') - - global __nvmlInitWithFlags - __nvmlInitWithFlags = _cyb_GetProcAddress(handle, 'nvmlInitWithFlags') - - global __nvmlShutdown - __nvmlShutdown = _cyb_GetProcAddress(handle, 'nvmlShutdown') - - global __nvmlErrorString - __nvmlErrorString = _cyb_GetProcAddress(handle, 'nvmlErrorString') - - global __nvmlSystemGetDriverVersion - __nvmlSystemGetDriverVersion = _cyb_GetProcAddress(handle, 'nvmlSystemGetDriverVersion') - - global __nvmlSystemGetNVMLVersion - __nvmlSystemGetNVMLVersion = _cyb_GetProcAddress(handle, 'nvmlSystemGetNVMLVersion') - - global __nvmlSystemGetCudaDriverVersion - __nvmlSystemGetCudaDriverVersion = _cyb_GetProcAddress(handle, 'nvmlSystemGetCudaDriverVersion') - - global __nvmlSystemGetCudaDriverVersion_v2 - __nvmlSystemGetCudaDriverVersion_v2 = _cyb_GetProcAddress(handle, 'nvmlSystemGetCudaDriverVersion_v2') - - global __nvmlSystemGetProcessName - __nvmlSystemGetProcessName = _cyb_GetProcAddress(handle, 'nvmlSystemGetProcessName') - - global __nvmlSystemGetHicVersion - __nvmlSystemGetHicVersion = _cyb_GetProcAddress(handle, 'nvmlSystemGetHicVersion') - - global __nvmlSystemGetTopologyGpuSet - __nvmlSystemGetTopologyGpuSet = _cyb_GetProcAddress(handle, 'nvmlSystemGetTopologyGpuSet') - - global __nvmlSystemGetDriverBranch - __nvmlSystemGetDriverBranch = _cyb_GetProcAddress(handle, 'nvmlSystemGetDriverBranch') - - global __nvmlUnitGetCount - __nvmlUnitGetCount = _cyb_GetProcAddress(handle, 'nvmlUnitGetCount') - - global __nvmlUnitGetHandleByIndex - __nvmlUnitGetHandleByIndex = _cyb_GetProcAddress(handle, 'nvmlUnitGetHandleByIndex') - - global __nvmlUnitGetUnitInfo - __nvmlUnitGetUnitInfo = _cyb_GetProcAddress(handle, 'nvmlUnitGetUnitInfo') - - global __nvmlUnitGetLedState - __nvmlUnitGetLedState = _cyb_GetProcAddress(handle, 'nvmlUnitGetLedState') - - global __nvmlUnitGetPsuInfo - __nvmlUnitGetPsuInfo = _cyb_GetProcAddress(handle, 'nvmlUnitGetPsuInfo') - - global __nvmlUnitGetTemperature - __nvmlUnitGetTemperature = _cyb_GetProcAddress(handle, 'nvmlUnitGetTemperature') - - global __nvmlUnitGetFanSpeedInfo - __nvmlUnitGetFanSpeedInfo = _cyb_GetProcAddress(handle, 'nvmlUnitGetFanSpeedInfo') - - global __nvmlUnitGetDevices - __nvmlUnitGetDevices = _cyb_GetProcAddress(handle, 'nvmlUnitGetDevices') - - global __nvmlDeviceGetCount_v2 - __nvmlDeviceGetCount_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetCount_v2') - - global __nvmlDeviceGetAttributes_v2 - __nvmlDeviceGetAttributes_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetAttributes_v2') - - global __nvmlDeviceGetHandleByIndex_v2 - __nvmlDeviceGetHandleByIndex_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetHandleByIndex_v2') - - global __nvmlDeviceGetHandleBySerial - __nvmlDeviceGetHandleBySerial = _cyb_GetProcAddress(handle, 'nvmlDeviceGetHandleBySerial') - - global __nvmlDeviceGetHandleByUUID - __nvmlDeviceGetHandleByUUID = _cyb_GetProcAddress(handle, 'nvmlDeviceGetHandleByUUID') - - global __nvmlDeviceGetHandleByUUIDV - __nvmlDeviceGetHandleByUUIDV = _cyb_GetProcAddress(handle, 'nvmlDeviceGetHandleByUUIDV') - - global __nvmlDeviceGetHandleByPciBusId_v2 - __nvmlDeviceGetHandleByPciBusId_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetHandleByPciBusId_v2') - - global __nvmlDeviceGetName - __nvmlDeviceGetName = _cyb_GetProcAddress(handle, 'nvmlDeviceGetName') - - global __nvmlDeviceGetBrand - __nvmlDeviceGetBrand = _cyb_GetProcAddress(handle, 'nvmlDeviceGetBrand') - - global __nvmlDeviceGetIndex - __nvmlDeviceGetIndex = _cyb_GetProcAddress(handle, 'nvmlDeviceGetIndex') - - global __nvmlDeviceGetSerial - __nvmlDeviceGetSerial = _cyb_GetProcAddress(handle, 'nvmlDeviceGetSerial') - - global __nvmlDeviceGetModuleId - __nvmlDeviceGetModuleId = _cyb_GetProcAddress(handle, 'nvmlDeviceGetModuleId') - - global __nvmlDeviceGetC2cModeInfoV - __nvmlDeviceGetC2cModeInfoV = _cyb_GetProcAddress(handle, 'nvmlDeviceGetC2cModeInfoV') - - global __nvmlDeviceGetMemoryAffinity - __nvmlDeviceGetMemoryAffinity = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMemoryAffinity') - - global __nvmlDeviceGetCpuAffinityWithinScope - __nvmlDeviceGetCpuAffinityWithinScope = _cyb_GetProcAddress(handle, 'nvmlDeviceGetCpuAffinityWithinScope') - - global __nvmlDeviceGetCpuAffinity - __nvmlDeviceGetCpuAffinity = _cyb_GetProcAddress(handle, 'nvmlDeviceGetCpuAffinity') - - global __nvmlDeviceSetCpuAffinity - __nvmlDeviceSetCpuAffinity = _cyb_GetProcAddress(handle, 'nvmlDeviceSetCpuAffinity') - - global __nvmlDeviceClearCpuAffinity - __nvmlDeviceClearCpuAffinity = _cyb_GetProcAddress(handle, 'nvmlDeviceClearCpuAffinity') - - global __nvmlDeviceGetNumaNodeId - __nvmlDeviceGetNumaNodeId = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNumaNodeId') - - global __nvmlDeviceGetTopologyCommonAncestor - __nvmlDeviceGetTopologyCommonAncestor = _cyb_GetProcAddress(handle, 'nvmlDeviceGetTopologyCommonAncestor') - - global __nvmlDeviceGetTopologyNearestGpus - __nvmlDeviceGetTopologyNearestGpus = _cyb_GetProcAddress(handle, 'nvmlDeviceGetTopologyNearestGpus') - - global __nvmlDeviceGetP2PStatus - __nvmlDeviceGetP2PStatus = _cyb_GetProcAddress(handle, 'nvmlDeviceGetP2PStatus') - - global __nvmlDeviceGetUUID - __nvmlDeviceGetUUID = _cyb_GetProcAddress(handle, 'nvmlDeviceGetUUID') - - global __nvmlDeviceGetMinorNumber - __nvmlDeviceGetMinorNumber = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMinorNumber') - - global __nvmlDeviceGetBoardPartNumber - __nvmlDeviceGetBoardPartNumber = _cyb_GetProcAddress(handle, 'nvmlDeviceGetBoardPartNumber') - - global __nvmlDeviceGetInforomVersion - __nvmlDeviceGetInforomVersion = _cyb_GetProcAddress(handle, 'nvmlDeviceGetInforomVersion') - - global __nvmlDeviceGetInforomImageVersion - __nvmlDeviceGetInforomImageVersion = _cyb_GetProcAddress(handle, 'nvmlDeviceGetInforomImageVersion') - - global __nvmlDeviceGetInforomConfigurationChecksum - __nvmlDeviceGetInforomConfigurationChecksum = _cyb_GetProcAddress(handle, 'nvmlDeviceGetInforomConfigurationChecksum') - - global __nvmlDeviceValidateInforom - __nvmlDeviceValidateInforom = _cyb_GetProcAddress(handle, 'nvmlDeviceValidateInforom') - - global __nvmlDeviceGetLastBBXFlushTime - __nvmlDeviceGetLastBBXFlushTime = _cyb_GetProcAddress(handle, 'nvmlDeviceGetLastBBXFlushTime') - - global __nvmlDeviceGetDisplayMode - __nvmlDeviceGetDisplayMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetDisplayMode') - - global __nvmlDeviceGetDisplayActive - __nvmlDeviceGetDisplayActive = _cyb_GetProcAddress(handle, 'nvmlDeviceGetDisplayActive') - - global __nvmlDeviceGetPersistenceMode - __nvmlDeviceGetPersistenceMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPersistenceMode') - - global __nvmlDeviceGetPciInfoExt - __nvmlDeviceGetPciInfoExt = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPciInfoExt') - - global __nvmlDeviceGetPciInfo_v3 - __nvmlDeviceGetPciInfo_v3 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPciInfo_v3') - - global __nvmlDeviceGetMaxPcieLinkGeneration - __nvmlDeviceGetMaxPcieLinkGeneration = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMaxPcieLinkGeneration') - - global __nvmlDeviceGetGpuMaxPcieLinkGeneration - __nvmlDeviceGetGpuMaxPcieLinkGeneration = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGpuMaxPcieLinkGeneration') - - global __nvmlDeviceGetMaxPcieLinkWidth - __nvmlDeviceGetMaxPcieLinkWidth = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMaxPcieLinkWidth') - - global __nvmlDeviceGetCurrPcieLinkGeneration - __nvmlDeviceGetCurrPcieLinkGeneration = _cyb_GetProcAddress(handle, 'nvmlDeviceGetCurrPcieLinkGeneration') - - global __nvmlDeviceGetCurrPcieLinkWidth - __nvmlDeviceGetCurrPcieLinkWidth = _cyb_GetProcAddress(handle, 'nvmlDeviceGetCurrPcieLinkWidth') - - global __nvmlDeviceGetPcieThroughput - __nvmlDeviceGetPcieThroughput = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPcieThroughput') - - global __nvmlDeviceGetPcieReplayCounter - __nvmlDeviceGetPcieReplayCounter = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPcieReplayCounter') - - global __nvmlDeviceGetClockInfo - __nvmlDeviceGetClockInfo = _cyb_GetProcAddress(handle, 'nvmlDeviceGetClockInfo') - - global __nvmlDeviceGetMaxClockInfo - __nvmlDeviceGetMaxClockInfo = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMaxClockInfo') - - global __nvmlDeviceGetGpcClkVfOffset - __nvmlDeviceGetGpcClkVfOffset = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGpcClkVfOffset') - - global __nvmlDeviceGetClock - __nvmlDeviceGetClock = _cyb_GetProcAddress(handle, 'nvmlDeviceGetClock') - - global __nvmlDeviceGetMaxCustomerBoostClock - __nvmlDeviceGetMaxCustomerBoostClock = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMaxCustomerBoostClock') - - global __nvmlDeviceGetSupportedMemoryClocks - __nvmlDeviceGetSupportedMemoryClocks = _cyb_GetProcAddress(handle, 'nvmlDeviceGetSupportedMemoryClocks') - - global __nvmlDeviceGetSupportedGraphicsClocks - __nvmlDeviceGetSupportedGraphicsClocks = _cyb_GetProcAddress(handle, 'nvmlDeviceGetSupportedGraphicsClocks') - - global __nvmlDeviceGetAutoBoostedClocksEnabled - __nvmlDeviceGetAutoBoostedClocksEnabled = _cyb_GetProcAddress(handle, 'nvmlDeviceGetAutoBoostedClocksEnabled') - - global __nvmlDeviceGetFanSpeed - __nvmlDeviceGetFanSpeed = _cyb_GetProcAddress(handle, 'nvmlDeviceGetFanSpeed') - - global __nvmlDeviceGetFanSpeed_v2 - __nvmlDeviceGetFanSpeed_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetFanSpeed_v2') - - global __nvmlDeviceGetFanSpeedRPM - __nvmlDeviceGetFanSpeedRPM = _cyb_GetProcAddress(handle, 'nvmlDeviceGetFanSpeedRPM') - - global __nvmlDeviceGetTargetFanSpeed - __nvmlDeviceGetTargetFanSpeed = _cyb_GetProcAddress(handle, 'nvmlDeviceGetTargetFanSpeed') - - global __nvmlDeviceGetMinMaxFanSpeed - __nvmlDeviceGetMinMaxFanSpeed = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMinMaxFanSpeed') - - global __nvmlDeviceGetFanControlPolicy_v2 - __nvmlDeviceGetFanControlPolicy_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetFanControlPolicy_v2') - - global __nvmlDeviceGetNumFans - __nvmlDeviceGetNumFans = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNumFans') - - global __nvmlDeviceGetCoolerInfo - __nvmlDeviceGetCoolerInfo = _cyb_GetProcAddress(handle, 'nvmlDeviceGetCoolerInfo') - - global __nvmlDeviceGetTemperatureV - __nvmlDeviceGetTemperatureV = _cyb_GetProcAddress(handle, 'nvmlDeviceGetTemperatureV') - - global __nvmlDeviceGetTemperatureThreshold - __nvmlDeviceGetTemperatureThreshold = _cyb_GetProcAddress(handle, 'nvmlDeviceGetTemperatureThreshold') - - global __nvmlDeviceGetMarginTemperature - __nvmlDeviceGetMarginTemperature = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMarginTemperature') - - global __nvmlDeviceGetThermalSettings - __nvmlDeviceGetThermalSettings = _cyb_GetProcAddress(handle, 'nvmlDeviceGetThermalSettings') - - global __nvmlDeviceGetPerformanceState - __nvmlDeviceGetPerformanceState = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPerformanceState') - - global __nvmlDeviceGetCurrentClocksEventReasons - __nvmlDeviceGetCurrentClocksEventReasons = _cyb_GetProcAddress(handle, 'nvmlDeviceGetCurrentClocksEventReasons') - - global __nvmlDeviceGetSupportedClocksEventReasons - __nvmlDeviceGetSupportedClocksEventReasons = _cyb_GetProcAddress(handle, 'nvmlDeviceGetSupportedClocksEventReasons') - - global __nvmlDeviceGetPowerState - __nvmlDeviceGetPowerState = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPowerState') - - global __nvmlDeviceGetDynamicPstatesInfo - __nvmlDeviceGetDynamicPstatesInfo = _cyb_GetProcAddress(handle, 'nvmlDeviceGetDynamicPstatesInfo') - - global __nvmlDeviceGetMemClkVfOffset - __nvmlDeviceGetMemClkVfOffset = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMemClkVfOffset') - - global __nvmlDeviceGetMinMaxClockOfPState - __nvmlDeviceGetMinMaxClockOfPState = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMinMaxClockOfPState') - - global __nvmlDeviceGetSupportedPerformanceStates - __nvmlDeviceGetSupportedPerformanceStates = _cyb_GetProcAddress(handle, 'nvmlDeviceGetSupportedPerformanceStates') - - global __nvmlDeviceGetGpcClkMinMaxVfOffset - __nvmlDeviceGetGpcClkMinMaxVfOffset = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGpcClkMinMaxVfOffset') - - global __nvmlDeviceGetMemClkMinMaxVfOffset - __nvmlDeviceGetMemClkMinMaxVfOffset = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMemClkMinMaxVfOffset') - - global __nvmlDeviceGetClockOffsets - __nvmlDeviceGetClockOffsets = _cyb_GetProcAddress(handle, 'nvmlDeviceGetClockOffsets') - - global __nvmlDeviceSetClockOffsets - __nvmlDeviceSetClockOffsets = _cyb_GetProcAddress(handle, 'nvmlDeviceSetClockOffsets') - - global __nvmlDeviceGetPerformanceModes - __nvmlDeviceGetPerformanceModes = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPerformanceModes') - - global __nvmlDeviceGetCurrentClockFreqs - __nvmlDeviceGetCurrentClockFreqs = _cyb_GetProcAddress(handle, 'nvmlDeviceGetCurrentClockFreqs') - - global __nvmlDeviceGetPowerManagementLimit - __nvmlDeviceGetPowerManagementLimit = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPowerManagementLimit') - - global __nvmlDeviceGetPowerManagementLimitConstraints - __nvmlDeviceGetPowerManagementLimitConstraints = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPowerManagementLimitConstraints') - - global __nvmlDeviceGetPowerManagementDefaultLimit - __nvmlDeviceGetPowerManagementDefaultLimit = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPowerManagementDefaultLimit') - - global __nvmlDeviceGetPowerUsage - __nvmlDeviceGetPowerUsage = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPowerUsage') - - global __nvmlDeviceGetTotalEnergyConsumption - __nvmlDeviceGetTotalEnergyConsumption = _cyb_GetProcAddress(handle, 'nvmlDeviceGetTotalEnergyConsumption') - - global __nvmlDeviceGetEnforcedPowerLimit - __nvmlDeviceGetEnforcedPowerLimit = _cyb_GetProcAddress(handle, 'nvmlDeviceGetEnforcedPowerLimit') - - global __nvmlDeviceGetGpuOperationMode - __nvmlDeviceGetGpuOperationMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGpuOperationMode') - - global __nvmlDeviceGetMemoryInfo_v2 - __nvmlDeviceGetMemoryInfo_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMemoryInfo_v2') - - global __nvmlDeviceGetComputeMode - __nvmlDeviceGetComputeMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetComputeMode') - - global __nvmlDeviceGetCudaComputeCapability - __nvmlDeviceGetCudaComputeCapability = _cyb_GetProcAddress(handle, 'nvmlDeviceGetCudaComputeCapability') - - global __nvmlDeviceGetDramEncryptionMode - __nvmlDeviceGetDramEncryptionMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetDramEncryptionMode') - - global __nvmlDeviceSetDramEncryptionMode - __nvmlDeviceSetDramEncryptionMode = _cyb_GetProcAddress(handle, 'nvmlDeviceSetDramEncryptionMode') - - global __nvmlDeviceGetEccMode - __nvmlDeviceGetEccMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetEccMode') - - global __nvmlDeviceGetDefaultEccMode - __nvmlDeviceGetDefaultEccMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetDefaultEccMode') - - global __nvmlDeviceGetBoardId - __nvmlDeviceGetBoardId = _cyb_GetProcAddress(handle, 'nvmlDeviceGetBoardId') - - global __nvmlDeviceGetMultiGpuBoard - __nvmlDeviceGetMultiGpuBoard = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMultiGpuBoard') - - global __nvmlDeviceGetTotalEccErrors - __nvmlDeviceGetTotalEccErrors = _cyb_GetProcAddress(handle, 'nvmlDeviceGetTotalEccErrors') - - global __nvmlDeviceGetMemoryErrorCounter - __nvmlDeviceGetMemoryErrorCounter = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMemoryErrorCounter') - - global __nvmlDeviceGetUtilizationRates - __nvmlDeviceGetUtilizationRates = _cyb_GetProcAddress(handle, 'nvmlDeviceGetUtilizationRates') - - global __nvmlDeviceGetEncoderUtilization - __nvmlDeviceGetEncoderUtilization = _cyb_GetProcAddress(handle, 'nvmlDeviceGetEncoderUtilization') - - global __nvmlDeviceGetEncoderCapacity - __nvmlDeviceGetEncoderCapacity = _cyb_GetProcAddress(handle, 'nvmlDeviceGetEncoderCapacity') - - global __nvmlDeviceGetEncoderStats - __nvmlDeviceGetEncoderStats = _cyb_GetProcAddress(handle, 'nvmlDeviceGetEncoderStats') - - global __nvmlDeviceGetEncoderSessions - __nvmlDeviceGetEncoderSessions = _cyb_GetProcAddress(handle, 'nvmlDeviceGetEncoderSessions') - - global __nvmlDeviceGetDecoderUtilization - __nvmlDeviceGetDecoderUtilization = _cyb_GetProcAddress(handle, 'nvmlDeviceGetDecoderUtilization') - - global __nvmlDeviceGetJpgUtilization - __nvmlDeviceGetJpgUtilization = _cyb_GetProcAddress(handle, 'nvmlDeviceGetJpgUtilization') - - global __nvmlDeviceGetOfaUtilization - __nvmlDeviceGetOfaUtilization = _cyb_GetProcAddress(handle, 'nvmlDeviceGetOfaUtilization') - - global __nvmlDeviceGetFBCStats - __nvmlDeviceGetFBCStats = _cyb_GetProcAddress(handle, 'nvmlDeviceGetFBCStats') - - global __nvmlDeviceGetFBCSessions - __nvmlDeviceGetFBCSessions = _cyb_GetProcAddress(handle, 'nvmlDeviceGetFBCSessions') - - global __nvmlDeviceGetDriverModel_v2 - __nvmlDeviceGetDriverModel_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetDriverModel_v2') - - global __nvmlDeviceGetVbiosVersion - __nvmlDeviceGetVbiosVersion = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVbiosVersion') - - global __nvmlDeviceGetBridgeChipInfo - __nvmlDeviceGetBridgeChipInfo = _cyb_GetProcAddress(handle, 'nvmlDeviceGetBridgeChipInfo') - - global __nvmlDeviceGetComputeRunningProcesses_v3 - __nvmlDeviceGetComputeRunningProcesses_v3 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetComputeRunningProcesses_v3') - - global __nvmlDeviceGetGraphicsRunningProcesses_v3 - __nvmlDeviceGetGraphicsRunningProcesses_v3 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGraphicsRunningProcesses_v3') - - global __nvmlDeviceGetMPSComputeRunningProcesses_v3 - __nvmlDeviceGetMPSComputeRunningProcesses_v3 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMPSComputeRunningProcesses_v3') - - global __nvmlDeviceGetRunningProcessDetailList - __nvmlDeviceGetRunningProcessDetailList = _cyb_GetProcAddress(handle, 'nvmlDeviceGetRunningProcessDetailList') - - global __nvmlDeviceOnSameBoard - __nvmlDeviceOnSameBoard = _cyb_GetProcAddress(handle, 'nvmlDeviceOnSameBoard') - - global __nvmlDeviceGetAPIRestriction - __nvmlDeviceGetAPIRestriction = _cyb_GetProcAddress(handle, 'nvmlDeviceGetAPIRestriction') - - global __nvmlDeviceGetSamples - __nvmlDeviceGetSamples = _cyb_GetProcAddress(handle, 'nvmlDeviceGetSamples') - - global __nvmlDeviceGetBAR1MemoryInfo - __nvmlDeviceGetBAR1MemoryInfo = _cyb_GetProcAddress(handle, 'nvmlDeviceGetBAR1MemoryInfo') - - global __nvmlDeviceGetIrqNum - __nvmlDeviceGetIrqNum = _cyb_GetProcAddress(handle, 'nvmlDeviceGetIrqNum') - - global __nvmlDeviceGetNumGpuCores - __nvmlDeviceGetNumGpuCores = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNumGpuCores') - - global __nvmlDeviceGetPowerSource - __nvmlDeviceGetPowerSource = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPowerSource') - - global __nvmlDeviceGetMemoryBusWidth - __nvmlDeviceGetMemoryBusWidth = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMemoryBusWidth') - - global __nvmlDeviceGetPcieLinkMaxSpeed - __nvmlDeviceGetPcieLinkMaxSpeed = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPcieLinkMaxSpeed') - - global __nvmlDeviceGetPcieSpeed - __nvmlDeviceGetPcieSpeed = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPcieSpeed') - - global __nvmlDeviceGetAdaptiveClockInfoStatus - __nvmlDeviceGetAdaptiveClockInfoStatus = _cyb_GetProcAddress(handle, 'nvmlDeviceGetAdaptiveClockInfoStatus') - - global __nvmlDeviceGetBusType - __nvmlDeviceGetBusType = _cyb_GetProcAddress(handle, 'nvmlDeviceGetBusType') - - global __nvmlDeviceGetGpuFabricInfoV - __nvmlDeviceGetGpuFabricInfoV = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGpuFabricInfoV') - - global __nvmlSystemGetConfComputeCapabilities - __nvmlSystemGetConfComputeCapabilities = _cyb_GetProcAddress(handle, 'nvmlSystemGetConfComputeCapabilities') - - global __nvmlSystemGetConfComputeState - __nvmlSystemGetConfComputeState = _cyb_GetProcAddress(handle, 'nvmlSystemGetConfComputeState') - - global __nvmlDeviceGetConfComputeMemSizeInfo - __nvmlDeviceGetConfComputeMemSizeInfo = _cyb_GetProcAddress(handle, 'nvmlDeviceGetConfComputeMemSizeInfo') - - global __nvmlSystemGetConfComputeGpusReadyState - __nvmlSystemGetConfComputeGpusReadyState = _cyb_GetProcAddress(handle, 'nvmlSystemGetConfComputeGpusReadyState') - - global __nvmlDeviceGetConfComputeProtectedMemoryUsage - __nvmlDeviceGetConfComputeProtectedMemoryUsage = _cyb_GetProcAddress(handle, 'nvmlDeviceGetConfComputeProtectedMemoryUsage') - - global __nvmlDeviceGetConfComputeGpuCertificate - __nvmlDeviceGetConfComputeGpuCertificate = _cyb_GetProcAddress(handle, 'nvmlDeviceGetConfComputeGpuCertificate') - - global __nvmlDeviceGetConfComputeGpuAttestationReport - __nvmlDeviceGetConfComputeGpuAttestationReport = _cyb_GetProcAddress(handle, 'nvmlDeviceGetConfComputeGpuAttestationReport') - - global __nvmlSystemGetConfComputeKeyRotationThresholdInfo - __nvmlSystemGetConfComputeKeyRotationThresholdInfo = _cyb_GetProcAddress(handle, 'nvmlSystemGetConfComputeKeyRotationThresholdInfo') - - global __nvmlDeviceSetConfComputeUnprotectedMemSize - __nvmlDeviceSetConfComputeUnprotectedMemSize = _cyb_GetProcAddress(handle, 'nvmlDeviceSetConfComputeUnprotectedMemSize') - - global __nvmlSystemSetConfComputeGpusReadyState - __nvmlSystemSetConfComputeGpusReadyState = _cyb_GetProcAddress(handle, 'nvmlSystemSetConfComputeGpusReadyState') - - global __nvmlSystemSetConfComputeKeyRotationThresholdInfo - __nvmlSystemSetConfComputeKeyRotationThresholdInfo = _cyb_GetProcAddress(handle, 'nvmlSystemSetConfComputeKeyRotationThresholdInfo') - - global __nvmlSystemGetConfComputeSettings - __nvmlSystemGetConfComputeSettings = _cyb_GetProcAddress(handle, 'nvmlSystemGetConfComputeSettings') - - global __nvmlDeviceGetGspFirmwareVersion - __nvmlDeviceGetGspFirmwareVersion = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGspFirmwareVersion') - - global __nvmlDeviceGetGspFirmwareMode - __nvmlDeviceGetGspFirmwareMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGspFirmwareMode') - - global __nvmlDeviceGetSramEccErrorStatus - __nvmlDeviceGetSramEccErrorStatus = _cyb_GetProcAddress(handle, 'nvmlDeviceGetSramEccErrorStatus') - - global __nvmlDeviceGetAccountingMode - __nvmlDeviceGetAccountingMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetAccountingMode') - - global __nvmlDeviceGetAccountingStats - __nvmlDeviceGetAccountingStats = _cyb_GetProcAddress(handle, 'nvmlDeviceGetAccountingStats') - - global __nvmlDeviceGetAccountingPids - __nvmlDeviceGetAccountingPids = _cyb_GetProcAddress(handle, 'nvmlDeviceGetAccountingPids') - - global __nvmlDeviceGetAccountingBufferSize - __nvmlDeviceGetAccountingBufferSize = _cyb_GetProcAddress(handle, 'nvmlDeviceGetAccountingBufferSize') - - global __nvmlDeviceGetRetiredPages - __nvmlDeviceGetRetiredPages = _cyb_GetProcAddress(handle, 'nvmlDeviceGetRetiredPages') - - global __nvmlDeviceGetRetiredPages_v2 - __nvmlDeviceGetRetiredPages_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetRetiredPages_v2') - - global __nvmlDeviceGetRetiredPagesPendingStatus - __nvmlDeviceGetRetiredPagesPendingStatus = _cyb_GetProcAddress(handle, 'nvmlDeviceGetRetiredPagesPendingStatus') - - global __nvmlDeviceGetRemappedRows - __nvmlDeviceGetRemappedRows = _cyb_GetProcAddress(handle, 'nvmlDeviceGetRemappedRows') - - global __nvmlDeviceGetRowRemapperHistogram - __nvmlDeviceGetRowRemapperHistogram = _cyb_GetProcAddress(handle, 'nvmlDeviceGetRowRemapperHistogram') - - global __nvmlDeviceGetArchitecture - __nvmlDeviceGetArchitecture = _cyb_GetProcAddress(handle, 'nvmlDeviceGetArchitecture') - - global __nvmlDeviceGetClkMonStatus - __nvmlDeviceGetClkMonStatus = _cyb_GetProcAddress(handle, 'nvmlDeviceGetClkMonStatus') - - global __nvmlDeviceGetProcessUtilization - __nvmlDeviceGetProcessUtilization = _cyb_GetProcAddress(handle, 'nvmlDeviceGetProcessUtilization') - - global __nvmlDeviceGetProcessesUtilizationInfo - __nvmlDeviceGetProcessesUtilizationInfo = _cyb_GetProcAddress(handle, 'nvmlDeviceGetProcessesUtilizationInfo') - - global __nvmlDeviceGetPlatformInfo - __nvmlDeviceGetPlatformInfo = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPlatformInfo') - - global __nvmlUnitSetLedState - __nvmlUnitSetLedState = _cyb_GetProcAddress(handle, 'nvmlUnitSetLedState') - - global __nvmlDeviceSetPersistenceMode - __nvmlDeviceSetPersistenceMode = _cyb_GetProcAddress(handle, 'nvmlDeviceSetPersistenceMode') - - global __nvmlDeviceSetComputeMode - __nvmlDeviceSetComputeMode = _cyb_GetProcAddress(handle, 'nvmlDeviceSetComputeMode') - - global __nvmlDeviceSetEccMode - __nvmlDeviceSetEccMode = _cyb_GetProcAddress(handle, 'nvmlDeviceSetEccMode') - - global __nvmlDeviceClearEccErrorCounts - __nvmlDeviceClearEccErrorCounts = _cyb_GetProcAddress(handle, 'nvmlDeviceClearEccErrorCounts') - - global __nvmlDeviceSetDriverModel - __nvmlDeviceSetDriverModel = _cyb_GetProcAddress(handle, 'nvmlDeviceSetDriverModel') - - global __nvmlDeviceSetGpuLockedClocks - __nvmlDeviceSetGpuLockedClocks = _cyb_GetProcAddress(handle, 'nvmlDeviceSetGpuLockedClocks') - - global __nvmlDeviceResetGpuLockedClocks - __nvmlDeviceResetGpuLockedClocks = _cyb_GetProcAddress(handle, 'nvmlDeviceResetGpuLockedClocks') - - global __nvmlDeviceSetMemoryLockedClocks - __nvmlDeviceSetMemoryLockedClocks = _cyb_GetProcAddress(handle, 'nvmlDeviceSetMemoryLockedClocks') - - global __nvmlDeviceResetMemoryLockedClocks - __nvmlDeviceResetMemoryLockedClocks = _cyb_GetProcAddress(handle, 'nvmlDeviceResetMemoryLockedClocks') - - global __nvmlDeviceSetAutoBoostedClocksEnabled - __nvmlDeviceSetAutoBoostedClocksEnabled = _cyb_GetProcAddress(handle, 'nvmlDeviceSetAutoBoostedClocksEnabled') - - global __nvmlDeviceSetDefaultAutoBoostedClocksEnabled - __nvmlDeviceSetDefaultAutoBoostedClocksEnabled = _cyb_GetProcAddress(handle, 'nvmlDeviceSetDefaultAutoBoostedClocksEnabled') - - global __nvmlDeviceSetDefaultFanSpeed_v2 - __nvmlDeviceSetDefaultFanSpeed_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceSetDefaultFanSpeed_v2') - - global __nvmlDeviceSetFanControlPolicy - __nvmlDeviceSetFanControlPolicy = _cyb_GetProcAddress(handle, 'nvmlDeviceSetFanControlPolicy') - - global __nvmlDeviceSetTemperatureThreshold - __nvmlDeviceSetTemperatureThreshold = _cyb_GetProcAddress(handle, 'nvmlDeviceSetTemperatureThreshold') - - global __nvmlDeviceSetGpuOperationMode - __nvmlDeviceSetGpuOperationMode = _cyb_GetProcAddress(handle, 'nvmlDeviceSetGpuOperationMode') - - global __nvmlDeviceSetAPIRestriction - __nvmlDeviceSetAPIRestriction = _cyb_GetProcAddress(handle, 'nvmlDeviceSetAPIRestriction') - - global __nvmlDeviceSetFanSpeed_v2 - __nvmlDeviceSetFanSpeed_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceSetFanSpeed_v2') - - global __nvmlDeviceSetAccountingMode - __nvmlDeviceSetAccountingMode = _cyb_GetProcAddress(handle, 'nvmlDeviceSetAccountingMode') - - global __nvmlDeviceClearAccountingPids - __nvmlDeviceClearAccountingPids = _cyb_GetProcAddress(handle, 'nvmlDeviceClearAccountingPids') - - global __nvmlDeviceSetPowerManagementLimit_v2 - __nvmlDeviceSetPowerManagementLimit_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceSetPowerManagementLimit_v2') - - global __nvmlDeviceGetNvLinkState - __nvmlDeviceGetNvLinkState = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNvLinkState') - - global __nvmlDeviceGetNvLinkVersion - __nvmlDeviceGetNvLinkVersion = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNvLinkVersion') - - global __nvmlDeviceGetNvLinkCapability - __nvmlDeviceGetNvLinkCapability = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNvLinkCapability') - - global __nvmlDeviceGetNvLinkRemotePciInfo_v2 - __nvmlDeviceGetNvLinkRemotePciInfo_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNvLinkRemotePciInfo_v2') - - global __nvmlDeviceGetNvLinkErrorCounter - __nvmlDeviceGetNvLinkErrorCounter = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNvLinkErrorCounter') - - global __nvmlDeviceResetNvLinkErrorCounters - __nvmlDeviceResetNvLinkErrorCounters = _cyb_GetProcAddress(handle, 'nvmlDeviceResetNvLinkErrorCounters') - - global __nvmlDeviceGetNvLinkRemoteDeviceType - __nvmlDeviceGetNvLinkRemoteDeviceType = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNvLinkRemoteDeviceType') - - global __nvmlDeviceSetNvLinkDeviceLowPowerThreshold - __nvmlDeviceSetNvLinkDeviceLowPowerThreshold = _cyb_GetProcAddress(handle, 'nvmlDeviceSetNvLinkDeviceLowPowerThreshold') - - global __nvmlSystemSetNvlinkBwMode - __nvmlSystemSetNvlinkBwMode = _cyb_GetProcAddress(handle, 'nvmlSystemSetNvlinkBwMode') - - global __nvmlSystemGetNvlinkBwMode - __nvmlSystemGetNvlinkBwMode = _cyb_GetProcAddress(handle, 'nvmlSystemGetNvlinkBwMode') - - global __nvmlDeviceGetNvlinkSupportedBwModes - __nvmlDeviceGetNvlinkSupportedBwModes = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNvlinkSupportedBwModes') - - global __nvmlDeviceGetNvlinkBwMode - __nvmlDeviceGetNvlinkBwMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNvlinkBwMode') - - global __nvmlDeviceSetNvlinkBwMode - __nvmlDeviceSetNvlinkBwMode = _cyb_GetProcAddress(handle, 'nvmlDeviceSetNvlinkBwMode') - - global __nvmlEventSetCreate - __nvmlEventSetCreate = _cyb_GetProcAddress(handle, 'nvmlEventSetCreate') - - global __nvmlDeviceRegisterEvents - __nvmlDeviceRegisterEvents = _cyb_GetProcAddress(handle, 'nvmlDeviceRegisterEvents') - - global __nvmlDeviceGetSupportedEventTypes - __nvmlDeviceGetSupportedEventTypes = _cyb_GetProcAddress(handle, 'nvmlDeviceGetSupportedEventTypes') - - global __nvmlEventSetWait_v2 - __nvmlEventSetWait_v2 = _cyb_GetProcAddress(handle, 'nvmlEventSetWait_v2') - - global __nvmlEventSetFree - __nvmlEventSetFree = _cyb_GetProcAddress(handle, 'nvmlEventSetFree') - - global __nvmlSystemEventSetCreate - __nvmlSystemEventSetCreate = _cyb_GetProcAddress(handle, 'nvmlSystemEventSetCreate') - - global __nvmlSystemEventSetFree - __nvmlSystemEventSetFree = _cyb_GetProcAddress(handle, 'nvmlSystemEventSetFree') - - global __nvmlSystemRegisterEvents - __nvmlSystemRegisterEvents = _cyb_GetProcAddress(handle, 'nvmlSystemRegisterEvents') - - global __nvmlSystemEventSetWait - __nvmlSystemEventSetWait = _cyb_GetProcAddress(handle, 'nvmlSystemEventSetWait') - - global __nvmlDeviceModifyDrainState - __nvmlDeviceModifyDrainState = _cyb_GetProcAddress(handle, 'nvmlDeviceModifyDrainState') - - global __nvmlDeviceQueryDrainState - __nvmlDeviceQueryDrainState = _cyb_GetProcAddress(handle, 'nvmlDeviceQueryDrainState') - - global __nvmlDeviceRemoveGpu_v2 - __nvmlDeviceRemoveGpu_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceRemoveGpu_v2') - - global __nvmlDeviceDiscoverGpus - __nvmlDeviceDiscoverGpus = _cyb_GetProcAddress(handle, 'nvmlDeviceDiscoverGpus') - - global __nvmlDeviceGetFieldValues - __nvmlDeviceGetFieldValues = _cyb_GetProcAddress(handle, 'nvmlDeviceGetFieldValues') - - global __nvmlDeviceClearFieldValues - __nvmlDeviceClearFieldValues = _cyb_GetProcAddress(handle, 'nvmlDeviceClearFieldValues') - - global __nvmlDeviceGetVirtualizationMode - __nvmlDeviceGetVirtualizationMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVirtualizationMode') - - global __nvmlDeviceGetHostVgpuMode - __nvmlDeviceGetHostVgpuMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetHostVgpuMode') - - global __nvmlDeviceSetVirtualizationMode - __nvmlDeviceSetVirtualizationMode = _cyb_GetProcAddress(handle, 'nvmlDeviceSetVirtualizationMode') - - global __nvmlDeviceGetVgpuHeterogeneousMode - __nvmlDeviceGetVgpuHeterogeneousMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuHeterogeneousMode') - - global __nvmlDeviceSetVgpuHeterogeneousMode - __nvmlDeviceSetVgpuHeterogeneousMode = _cyb_GetProcAddress(handle, 'nvmlDeviceSetVgpuHeterogeneousMode') - - global __nvmlVgpuInstanceGetPlacementId - __nvmlVgpuInstanceGetPlacementId = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetPlacementId') - - global __nvmlDeviceGetVgpuTypeSupportedPlacements - __nvmlDeviceGetVgpuTypeSupportedPlacements = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuTypeSupportedPlacements') - - global __nvmlDeviceGetVgpuTypeCreatablePlacements - __nvmlDeviceGetVgpuTypeCreatablePlacements = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuTypeCreatablePlacements') - - global __nvmlVgpuTypeGetGspHeapSize - __nvmlVgpuTypeGetGspHeapSize = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetGspHeapSize') - - global __nvmlVgpuTypeGetFbReservation - __nvmlVgpuTypeGetFbReservation = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetFbReservation') - - global __nvmlVgpuInstanceGetRuntimeStateSize - __nvmlVgpuInstanceGetRuntimeStateSize = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetRuntimeStateSize') - - global __nvmlDeviceSetVgpuCapabilities - __nvmlDeviceSetVgpuCapabilities = _cyb_GetProcAddress(handle, 'nvmlDeviceSetVgpuCapabilities') - - global __nvmlDeviceGetGridLicensableFeatures_v4 - __nvmlDeviceGetGridLicensableFeatures_v4 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGridLicensableFeatures_v4') - - global __nvmlGetVgpuDriverCapabilities - __nvmlGetVgpuDriverCapabilities = _cyb_GetProcAddress(handle, 'nvmlGetVgpuDriverCapabilities') - - global __nvmlDeviceGetVgpuCapabilities - __nvmlDeviceGetVgpuCapabilities = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuCapabilities') - - global __nvmlDeviceGetSupportedVgpus - __nvmlDeviceGetSupportedVgpus = _cyb_GetProcAddress(handle, 'nvmlDeviceGetSupportedVgpus') - - global __nvmlDeviceGetCreatableVgpus - __nvmlDeviceGetCreatableVgpus = _cyb_GetProcAddress(handle, 'nvmlDeviceGetCreatableVgpus') - - global __nvmlVgpuTypeGetClass - __nvmlVgpuTypeGetClass = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetClass') - - global __nvmlVgpuTypeGetName - __nvmlVgpuTypeGetName = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetName') - - global __nvmlVgpuTypeGetGpuInstanceProfileId - __nvmlVgpuTypeGetGpuInstanceProfileId = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetGpuInstanceProfileId') - - global __nvmlVgpuTypeGetDeviceID - __nvmlVgpuTypeGetDeviceID = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetDeviceID') - - global __nvmlVgpuTypeGetFramebufferSize - __nvmlVgpuTypeGetFramebufferSize = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetFramebufferSize') - - global __nvmlVgpuTypeGetNumDisplayHeads - __nvmlVgpuTypeGetNumDisplayHeads = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetNumDisplayHeads') - - global __nvmlVgpuTypeGetResolution - __nvmlVgpuTypeGetResolution = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetResolution') - - global __nvmlVgpuTypeGetLicense - __nvmlVgpuTypeGetLicense = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetLicense') - - global __nvmlVgpuTypeGetFrameRateLimit - __nvmlVgpuTypeGetFrameRateLimit = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetFrameRateLimit') - - global __nvmlVgpuTypeGetMaxInstances - __nvmlVgpuTypeGetMaxInstances = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetMaxInstances') - - global __nvmlVgpuTypeGetMaxInstancesPerVm - __nvmlVgpuTypeGetMaxInstancesPerVm = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetMaxInstancesPerVm') - - global __nvmlVgpuTypeGetBAR1Info - __nvmlVgpuTypeGetBAR1Info = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetBAR1Info') - - global __nvmlDeviceGetActiveVgpus - __nvmlDeviceGetActiveVgpus = _cyb_GetProcAddress(handle, 'nvmlDeviceGetActiveVgpus') - - global __nvmlVgpuInstanceGetVmID - __nvmlVgpuInstanceGetVmID = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetVmID') - - global __nvmlVgpuInstanceGetUUID - __nvmlVgpuInstanceGetUUID = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetUUID') - - global __nvmlVgpuInstanceGetVmDriverVersion - __nvmlVgpuInstanceGetVmDriverVersion = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetVmDriverVersion') - - global __nvmlVgpuInstanceGetFbUsage - __nvmlVgpuInstanceGetFbUsage = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetFbUsage') - - global __nvmlVgpuInstanceGetLicenseStatus - __nvmlVgpuInstanceGetLicenseStatus = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetLicenseStatus') - - global __nvmlVgpuInstanceGetType - __nvmlVgpuInstanceGetType = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetType') - - global __nvmlVgpuInstanceGetFrameRateLimit - __nvmlVgpuInstanceGetFrameRateLimit = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetFrameRateLimit') - - global __nvmlVgpuInstanceGetEccMode - __nvmlVgpuInstanceGetEccMode = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetEccMode') - - global __nvmlVgpuInstanceGetEncoderCapacity - __nvmlVgpuInstanceGetEncoderCapacity = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetEncoderCapacity') - - global __nvmlVgpuInstanceSetEncoderCapacity - __nvmlVgpuInstanceSetEncoderCapacity = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceSetEncoderCapacity') - - global __nvmlVgpuInstanceGetEncoderStats - __nvmlVgpuInstanceGetEncoderStats = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetEncoderStats') - - global __nvmlVgpuInstanceGetEncoderSessions - __nvmlVgpuInstanceGetEncoderSessions = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetEncoderSessions') - - global __nvmlVgpuInstanceGetFBCStats - __nvmlVgpuInstanceGetFBCStats = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetFBCStats') - - global __nvmlVgpuInstanceGetFBCSessions - __nvmlVgpuInstanceGetFBCSessions = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetFBCSessions') - - global __nvmlVgpuInstanceGetGpuInstanceId - __nvmlVgpuInstanceGetGpuInstanceId = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetGpuInstanceId') - - global __nvmlVgpuInstanceGetGpuPciId - __nvmlVgpuInstanceGetGpuPciId = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetGpuPciId') - - global __nvmlVgpuTypeGetCapabilities - __nvmlVgpuTypeGetCapabilities = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetCapabilities') - - global __nvmlVgpuInstanceGetMdevUUID - __nvmlVgpuInstanceGetMdevUUID = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetMdevUUID') - - global __nvmlGpuInstanceGetCreatableVgpus - __nvmlGpuInstanceGetCreatableVgpus = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetCreatableVgpus') - - global __nvmlVgpuTypeGetMaxInstancesPerGpuInstance - __nvmlVgpuTypeGetMaxInstancesPerGpuInstance = _cyb_GetProcAddress(handle, 'nvmlVgpuTypeGetMaxInstancesPerGpuInstance') - - global __nvmlGpuInstanceGetActiveVgpus - __nvmlGpuInstanceGetActiveVgpus = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetActiveVgpus') - - global __nvmlGpuInstanceSetVgpuSchedulerState - __nvmlGpuInstanceSetVgpuSchedulerState = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceSetVgpuSchedulerState') - - global __nvmlGpuInstanceGetVgpuSchedulerState - __nvmlGpuInstanceGetVgpuSchedulerState = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetVgpuSchedulerState') - - global __nvmlGpuInstanceGetVgpuSchedulerLog - __nvmlGpuInstanceGetVgpuSchedulerLog = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetVgpuSchedulerLog') - - global __nvmlGpuInstanceGetVgpuTypeCreatablePlacements - __nvmlGpuInstanceGetVgpuTypeCreatablePlacements = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetVgpuTypeCreatablePlacements') - - global __nvmlGpuInstanceGetVgpuHeterogeneousMode - __nvmlGpuInstanceGetVgpuHeterogeneousMode = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetVgpuHeterogeneousMode') - - global __nvmlGpuInstanceSetVgpuHeterogeneousMode - __nvmlGpuInstanceSetVgpuHeterogeneousMode = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceSetVgpuHeterogeneousMode') - - global __nvmlVgpuInstanceGetMetadata - __nvmlVgpuInstanceGetMetadata = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetMetadata') - - global __nvmlDeviceGetVgpuMetadata - __nvmlDeviceGetVgpuMetadata = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuMetadata') - - global __nvmlGetVgpuCompatibility - __nvmlGetVgpuCompatibility = _cyb_GetProcAddress(handle, 'nvmlGetVgpuCompatibility') - - global __nvmlDeviceGetPgpuMetadataString - __nvmlDeviceGetPgpuMetadataString = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPgpuMetadataString') - - global __nvmlDeviceGetVgpuSchedulerLog - __nvmlDeviceGetVgpuSchedulerLog = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuSchedulerLog') - - global __nvmlDeviceGetVgpuSchedulerState - __nvmlDeviceGetVgpuSchedulerState = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuSchedulerState') - - global __nvmlDeviceGetVgpuSchedulerCapabilities - __nvmlDeviceGetVgpuSchedulerCapabilities = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuSchedulerCapabilities') - - global __nvmlDeviceSetVgpuSchedulerState - __nvmlDeviceSetVgpuSchedulerState = _cyb_GetProcAddress(handle, 'nvmlDeviceSetVgpuSchedulerState') - - global __nvmlGetVgpuVersion - __nvmlGetVgpuVersion = _cyb_GetProcAddress(handle, 'nvmlGetVgpuVersion') - - global __nvmlSetVgpuVersion - __nvmlSetVgpuVersion = _cyb_GetProcAddress(handle, 'nvmlSetVgpuVersion') - - global __nvmlDeviceGetVgpuUtilization - __nvmlDeviceGetVgpuUtilization = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuUtilization') - - global __nvmlDeviceGetVgpuInstancesUtilizationInfo - __nvmlDeviceGetVgpuInstancesUtilizationInfo = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuInstancesUtilizationInfo') - - global __nvmlDeviceGetVgpuProcessUtilization - __nvmlDeviceGetVgpuProcessUtilization = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuProcessUtilization') - - global __nvmlDeviceGetVgpuProcessesUtilizationInfo - __nvmlDeviceGetVgpuProcessesUtilizationInfo = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuProcessesUtilizationInfo') - - global __nvmlVgpuInstanceGetAccountingMode - __nvmlVgpuInstanceGetAccountingMode = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetAccountingMode') - - global __nvmlVgpuInstanceGetAccountingPids - __nvmlVgpuInstanceGetAccountingPids = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetAccountingPids') - - global __nvmlVgpuInstanceGetAccountingStats - __nvmlVgpuInstanceGetAccountingStats = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetAccountingStats') - - global __nvmlVgpuInstanceClearAccountingPids - __nvmlVgpuInstanceClearAccountingPids = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceClearAccountingPids') - - global __nvmlVgpuInstanceGetLicenseInfo_v2 - __nvmlVgpuInstanceGetLicenseInfo_v2 = _cyb_GetProcAddress(handle, 'nvmlVgpuInstanceGetLicenseInfo_v2') - - global __nvmlGetExcludedDeviceCount - __nvmlGetExcludedDeviceCount = _cyb_GetProcAddress(handle, 'nvmlGetExcludedDeviceCount') - - global __nvmlGetExcludedDeviceInfoByIndex - __nvmlGetExcludedDeviceInfoByIndex = _cyb_GetProcAddress(handle, 'nvmlGetExcludedDeviceInfoByIndex') - - global __nvmlDeviceSetMigMode - __nvmlDeviceSetMigMode = _cyb_GetProcAddress(handle, 'nvmlDeviceSetMigMode') - - global __nvmlDeviceGetMigMode - __nvmlDeviceGetMigMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMigMode') - - global __nvmlDeviceGetGpuInstanceProfileInfoV - __nvmlDeviceGetGpuInstanceProfileInfoV = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGpuInstanceProfileInfoV') - - global __nvmlDeviceGetGpuInstancePossiblePlacements_v2 - __nvmlDeviceGetGpuInstancePossiblePlacements_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGpuInstancePossiblePlacements_v2') - - global __nvmlDeviceGetGpuInstanceRemainingCapacity - __nvmlDeviceGetGpuInstanceRemainingCapacity = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGpuInstanceRemainingCapacity') - - global __nvmlDeviceCreateGpuInstance - __nvmlDeviceCreateGpuInstance = _cyb_GetProcAddress(handle, 'nvmlDeviceCreateGpuInstance') - - global __nvmlDeviceCreateGpuInstanceWithPlacement - __nvmlDeviceCreateGpuInstanceWithPlacement = _cyb_GetProcAddress(handle, 'nvmlDeviceCreateGpuInstanceWithPlacement') - - global __nvmlGpuInstanceDestroy - __nvmlGpuInstanceDestroy = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceDestroy') - - global __nvmlDeviceGetGpuInstances - __nvmlDeviceGetGpuInstances = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGpuInstances') - - global __nvmlDeviceGetGpuInstanceById - __nvmlDeviceGetGpuInstanceById = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGpuInstanceById') - - global __nvmlGpuInstanceGetInfo - __nvmlGpuInstanceGetInfo = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetInfo') - - global __nvmlGpuInstanceGetComputeInstanceProfileInfoV - __nvmlGpuInstanceGetComputeInstanceProfileInfoV = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetComputeInstanceProfileInfoV') - - global __nvmlGpuInstanceGetComputeInstanceRemainingCapacity - __nvmlGpuInstanceGetComputeInstanceRemainingCapacity = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetComputeInstanceRemainingCapacity') - - global __nvmlGpuInstanceGetComputeInstancePossiblePlacements - __nvmlGpuInstanceGetComputeInstancePossiblePlacements = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetComputeInstancePossiblePlacements') - - global __nvmlGpuInstanceCreateComputeInstance - __nvmlGpuInstanceCreateComputeInstance = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceCreateComputeInstance') - - global __nvmlGpuInstanceCreateComputeInstanceWithPlacement - __nvmlGpuInstanceCreateComputeInstanceWithPlacement = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceCreateComputeInstanceWithPlacement') - - global __nvmlComputeInstanceDestroy - __nvmlComputeInstanceDestroy = _cyb_GetProcAddress(handle, 'nvmlComputeInstanceDestroy') - - global __nvmlGpuInstanceGetComputeInstances - __nvmlGpuInstanceGetComputeInstances = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetComputeInstances') - - global __nvmlGpuInstanceGetComputeInstanceById - __nvmlGpuInstanceGetComputeInstanceById = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetComputeInstanceById') - - global __nvmlComputeInstanceGetInfo_v2 - __nvmlComputeInstanceGetInfo_v2 = _cyb_GetProcAddress(handle, 'nvmlComputeInstanceGetInfo_v2') - - global __nvmlDeviceIsMigDeviceHandle - __nvmlDeviceIsMigDeviceHandle = _cyb_GetProcAddress(handle, 'nvmlDeviceIsMigDeviceHandle') - - global __nvmlDeviceGetGpuInstanceId - __nvmlDeviceGetGpuInstanceId = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGpuInstanceId') - - global __nvmlDeviceGetComputeInstanceId - __nvmlDeviceGetComputeInstanceId = _cyb_GetProcAddress(handle, 'nvmlDeviceGetComputeInstanceId') - - global __nvmlDeviceGetMaxMigDeviceCount - __nvmlDeviceGetMaxMigDeviceCount = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMaxMigDeviceCount') - - global __nvmlDeviceGetMigDeviceHandleByIndex - __nvmlDeviceGetMigDeviceHandleByIndex = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMigDeviceHandleByIndex') - - global __nvmlDeviceGetDeviceHandleFromMigDeviceHandle - __nvmlDeviceGetDeviceHandleFromMigDeviceHandle = _cyb_GetProcAddress(handle, 'nvmlDeviceGetDeviceHandleFromMigDeviceHandle') - - global __nvmlDeviceGetCapabilities - __nvmlDeviceGetCapabilities = _cyb_GetProcAddress(handle, 'nvmlDeviceGetCapabilities') - - global __nvmlDevicePowerSmoothingActivatePresetProfile - __nvmlDevicePowerSmoothingActivatePresetProfile = _cyb_GetProcAddress(handle, 'nvmlDevicePowerSmoothingActivatePresetProfile') - - global __nvmlDevicePowerSmoothingUpdatePresetProfileParam - __nvmlDevicePowerSmoothingUpdatePresetProfileParam = _cyb_GetProcAddress(handle, 'nvmlDevicePowerSmoothingUpdatePresetProfileParam') - - global __nvmlDevicePowerSmoothingSetState - __nvmlDevicePowerSmoothingSetState = _cyb_GetProcAddress(handle, 'nvmlDevicePowerSmoothingSetState') - - global __nvmlDeviceGetAddressingMode - __nvmlDeviceGetAddressingMode = _cyb_GetProcAddress(handle, 'nvmlDeviceGetAddressingMode') - - global __nvmlDeviceGetRepairStatus - __nvmlDeviceGetRepairStatus = _cyb_GetProcAddress(handle, 'nvmlDeviceGetRepairStatus') - - global __nvmlDeviceGetPowerMizerMode_v1 - __nvmlDeviceGetPowerMizerMode_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPowerMizerMode_v1') - - global __nvmlDeviceSetPowerMizerMode_v1 - __nvmlDeviceSetPowerMizerMode_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceSetPowerMizerMode_v1') - - global __nvmlDeviceGetPdi - __nvmlDeviceGetPdi = _cyb_GetProcAddress(handle, 'nvmlDeviceGetPdi') - - global __nvmlDeviceSetHostname_v1 - __nvmlDeviceSetHostname_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceSetHostname_v1') - - global __nvmlDeviceGetHostname_v1 - __nvmlDeviceGetHostname_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetHostname_v1') - - global __nvmlDeviceGetNvLinkInfo - __nvmlDeviceGetNvLinkInfo = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNvLinkInfo') - - global __nvmlDeviceReadWritePRM_v1 - __nvmlDeviceReadWritePRM_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceReadWritePRM_v1') - - global __nvmlDeviceGetGpuInstanceProfileInfoByIdV - __nvmlDeviceGetGpuInstanceProfileInfoByIdV = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGpuInstanceProfileInfoByIdV') - - global __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts - __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts = _cyb_GetProcAddress(handle, 'nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts') - - global __nvmlDeviceGetUnrepairableMemoryFlag_v1 - __nvmlDeviceGetUnrepairableMemoryFlag_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetUnrepairableMemoryFlag_v1') - - global __nvmlDeviceReadPRMCounters_v1 - __nvmlDeviceReadPRMCounters_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceReadPRMCounters_v1') - - global __nvmlDeviceSetRusdSettings_v1 - __nvmlDeviceSetRusdSettings_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceSetRusdSettings_v1') - - global __nvmlDeviceVgpuForceGspUnload - __nvmlDeviceVgpuForceGspUnload = _cyb_GetProcAddress(handle, 'nvmlDeviceVgpuForceGspUnload') - - global __nvmlDeviceGetVgpuSchedulerState_v2 - __nvmlDeviceGetVgpuSchedulerState_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuSchedulerState_v2') - - global __nvmlGpuInstanceGetVgpuSchedulerState_v2 - __nvmlGpuInstanceGetVgpuSchedulerState_v2 = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetVgpuSchedulerState_v2') - - global __nvmlDeviceGetVgpuSchedulerLog_v2 - __nvmlDeviceGetVgpuSchedulerLog_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetVgpuSchedulerLog_v2') - - global __nvmlGpuInstanceGetVgpuSchedulerLog_v2 - __nvmlGpuInstanceGetVgpuSchedulerLog_v2 = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceGetVgpuSchedulerLog_v2') - - global __nvmlDeviceSetVgpuSchedulerState_v2 - __nvmlDeviceSetVgpuSchedulerState_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceSetVgpuSchedulerState_v2') - - global __nvmlGpuInstanceSetVgpuSchedulerState_v2 - __nvmlGpuInstanceSetVgpuSchedulerState_v2 = _cyb_GetProcAddress(handle, 'nvmlGpuInstanceSetVgpuSchedulerState_v2') - - global __nvmlSystemGetCPER_v1 - __nvmlSystemGetCPER_v1 = _cyb_GetProcAddress(handle, 'nvmlSystemGetCPER_v1') - - global __nvmlDeviceGetBBXTimeData_v1 - __nvmlDeviceGetBBXTimeData_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetBBXTimeData_v1') - - global __nvmlDeviceGetAccountingStats_v2 - __nvmlDeviceGetAccountingStats_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetAccountingStats_v2') - - global __nvmlDeviceGetRemappedRows_v2 - __nvmlDeviceGetRemappedRows_v2 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetRemappedRows_v2') - - global __nvmlDeviceSetAdaptiveTgpMode_v1 - __nvmlDeviceSetAdaptiveTgpMode_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceSetAdaptiveTgpMode_v1') - - global __nvmlDeviceGetAdaptiveTgpModeInfo_v1 - __nvmlDeviceGetAdaptiveTgpModeInfo_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetAdaptiveTgpModeInfo_v1') - - global __nvmlDeviceSetMemoryLimits_v1 - __nvmlDeviceSetMemoryLimits_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceSetMemoryLimits_v1') - - global __nvmlDeviceGetMemoryLimits_v1 - __nvmlDeviceGetMemoryLimits_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetMemoryLimits_v1') - - global __nvmlDeviceGetGpuFabricInfo_v4 - __nvmlDeviceGetGpuFabricInfo_v4 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetGpuFabricInfo_v4') - - global __nvmlDevicePerfMetricsGetSamples_v1 - __nvmlDevicePerfMetricsGetSamples_v1 = _cyb_GetProcAddress(handle, 'nvmlDevicePerfMetricsGetSamples_v1') - - global __nvmlDeviceSetNvlinkBwModeAsync_v1 - __nvmlDeviceSetNvlinkBwModeAsync_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceSetNvlinkBwModeAsync_v1') - - global __nvmlDeviceGetNvLinkTelemetrySamples_v1 - __nvmlDeviceGetNvLinkTelemetrySamples_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetNvLinkTelemetrySamples_v1') - - global __nvmlEventSetRegisterGpuOperationalEvents_v1 - __nvmlEventSetRegisterGpuOperationalEvents_v1 = _cyb_GetProcAddress(handle, 'nvmlEventSetRegisterGpuOperationalEvents_v1') - - global __nvmlEventSetWait_v3 - __nvmlEventSetWait_v3 = _cyb_GetProcAddress(handle, 'nvmlEventSetWait_v3') - - global __nvmlEventSetGetContextCount_v1 - __nvmlEventSetGetContextCount_v1 = _cyb_GetProcAddress(handle, 'nvmlEventSetGetContextCount_v1') - - global __nvmlEventSetGetContextInfo_v1 - __nvmlEventSetGetContextInfo_v1 = _cyb_GetProcAddress(handle, 'nvmlEventSetGetContextInfo_v1') - - global __nvmlEventSetGetContextData_v1 - __nvmlEventSetGetContextData_v1 = _cyb_GetProcAddress(handle, 'nvmlEventSetGetContextData_v1') - - global __nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1 - __nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1 = _cyb_GetProcAddress(handle, 'nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1') - - global __nvmlDeviceGetBankRemapperStatus_v1 - __nvmlDeviceGetBankRemapperStatus_v1 = _cyb_GetProcAddress(handle, 'nvmlDeviceGetBankRemapperStatus_v1') - - _cyb_atomic_int_store(&_cyb___py_nvml_init, 1) - return 0 - -cdef inline int _check_or_init_nvml() except -1 nogil: - if _cyb_atomic_int_load(&_cyb___py_nvml_init): - return 0 - - return _init_nvml() - - -cpdef dict _inspect_function_pointers(): - global _cyb_func_ptrs - if _cyb_func_ptrs is not None: - return _cyb_func_ptrs - - _check_or_init_nvml() - cdef dict data = {} - global __nvmlInit_v2 - data["__nvmlInit_v2"] = __nvmlInit_v2 - - global __nvmlInitWithFlags - data["__nvmlInitWithFlags"] = __nvmlInitWithFlags - - global __nvmlShutdown - data["__nvmlShutdown"] = __nvmlShutdown - - global __nvmlErrorString - data["__nvmlErrorString"] = __nvmlErrorString - - global __nvmlSystemGetDriverVersion - data["__nvmlSystemGetDriverVersion"] = __nvmlSystemGetDriverVersion - - global __nvmlSystemGetNVMLVersion - data["__nvmlSystemGetNVMLVersion"] = __nvmlSystemGetNVMLVersion - - global __nvmlSystemGetCudaDriverVersion - data["__nvmlSystemGetCudaDriverVersion"] = __nvmlSystemGetCudaDriverVersion - - global __nvmlSystemGetCudaDriverVersion_v2 - data["__nvmlSystemGetCudaDriverVersion_v2"] = __nvmlSystemGetCudaDriverVersion_v2 - - global __nvmlSystemGetProcessName - data["__nvmlSystemGetProcessName"] = __nvmlSystemGetProcessName - - global __nvmlSystemGetHicVersion - data["__nvmlSystemGetHicVersion"] = __nvmlSystemGetHicVersion - - global __nvmlSystemGetTopologyGpuSet - data["__nvmlSystemGetTopologyGpuSet"] = __nvmlSystemGetTopologyGpuSet - - global __nvmlSystemGetDriverBranch - data["__nvmlSystemGetDriverBranch"] = __nvmlSystemGetDriverBranch - - global __nvmlUnitGetCount - data["__nvmlUnitGetCount"] = __nvmlUnitGetCount - - global __nvmlUnitGetHandleByIndex - data["__nvmlUnitGetHandleByIndex"] = __nvmlUnitGetHandleByIndex - - global __nvmlUnitGetUnitInfo - data["__nvmlUnitGetUnitInfo"] = __nvmlUnitGetUnitInfo - - global __nvmlUnitGetLedState - data["__nvmlUnitGetLedState"] = __nvmlUnitGetLedState - - global __nvmlUnitGetPsuInfo - data["__nvmlUnitGetPsuInfo"] = __nvmlUnitGetPsuInfo - - global __nvmlUnitGetTemperature - data["__nvmlUnitGetTemperature"] = __nvmlUnitGetTemperature - - global __nvmlUnitGetFanSpeedInfo - data["__nvmlUnitGetFanSpeedInfo"] = __nvmlUnitGetFanSpeedInfo - - global __nvmlUnitGetDevices - data["__nvmlUnitGetDevices"] = __nvmlUnitGetDevices - - global __nvmlDeviceGetCount_v2 - data["__nvmlDeviceGetCount_v2"] = __nvmlDeviceGetCount_v2 - - global __nvmlDeviceGetAttributes_v2 - data["__nvmlDeviceGetAttributes_v2"] = __nvmlDeviceGetAttributes_v2 - - global __nvmlDeviceGetHandleByIndex_v2 - data["__nvmlDeviceGetHandleByIndex_v2"] = __nvmlDeviceGetHandleByIndex_v2 - - global __nvmlDeviceGetHandleBySerial - data["__nvmlDeviceGetHandleBySerial"] = __nvmlDeviceGetHandleBySerial - - global __nvmlDeviceGetHandleByUUID - data["__nvmlDeviceGetHandleByUUID"] = __nvmlDeviceGetHandleByUUID - - global __nvmlDeviceGetHandleByUUIDV - data["__nvmlDeviceGetHandleByUUIDV"] = __nvmlDeviceGetHandleByUUIDV - - global __nvmlDeviceGetHandleByPciBusId_v2 - data["__nvmlDeviceGetHandleByPciBusId_v2"] = __nvmlDeviceGetHandleByPciBusId_v2 - - global __nvmlDeviceGetName - data["__nvmlDeviceGetName"] = __nvmlDeviceGetName - - global __nvmlDeviceGetBrand - data["__nvmlDeviceGetBrand"] = __nvmlDeviceGetBrand - - global __nvmlDeviceGetIndex - data["__nvmlDeviceGetIndex"] = __nvmlDeviceGetIndex - - global __nvmlDeviceGetSerial - data["__nvmlDeviceGetSerial"] = __nvmlDeviceGetSerial - - global __nvmlDeviceGetModuleId - data["__nvmlDeviceGetModuleId"] = __nvmlDeviceGetModuleId - - global __nvmlDeviceGetC2cModeInfoV - data["__nvmlDeviceGetC2cModeInfoV"] = __nvmlDeviceGetC2cModeInfoV - - global __nvmlDeviceGetMemoryAffinity - data["__nvmlDeviceGetMemoryAffinity"] = __nvmlDeviceGetMemoryAffinity - - global __nvmlDeviceGetCpuAffinityWithinScope - data["__nvmlDeviceGetCpuAffinityWithinScope"] = __nvmlDeviceGetCpuAffinityWithinScope - - global __nvmlDeviceGetCpuAffinity - data["__nvmlDeviceGetCpuAffinity"] = __nvmlDeviceGetCpuAffinity - - global __nvmlDeviceSetCpuAffinity - data["__nvmlDeviceSetCpuAffinity"] = __nvmlDeviceSetCpuAffinity - - global __nvmlDeviceClearCpuAffinity - data["__nvmlDeviceClearCpuAffinity"] = __nvmlDeviceClearCpuAffinity - - global __nvmlDeviceGetNumaNodeId - data["__nvmlDeviceGetNumaNodeId"] = __nvmlDeviceGetNumaNodeId - - global __nvmlDeviceGetTopologyCommonAncestor - data["__nvmlDeviceGetTopologyCommonAncestor"] = __nvmlDeviceGetTopologyCommonAncestor - - global __nvmlDeviceGetTopologyNearestGpus - data["__nvmlDeviceGetTopologyNearestGpus"] = __nvmlDeviceGetTopologyNearestGpus - - global __nvmlDeviceGetP2PStatus - data["__nvmlDeviceGetP2PStatus"] = __nvmlDeviceGetP2PStatus - - global __nvmlDeviceGetUUID - data["__nvmlDeviceGetUUID"] = __nvmlDeviceGetUUID - - global __nvmlDeviceGetMinorNumber - data["__nvmlDeviceGetMinorNumber"] = __nvmlDeviceGetMinorNumber - - global __nvmlDeviceGetBoardPartNumber - data["__nvmlDeviceGetBoardPartNumber"] = __nvmlDeviceGetBoardPartNumber - - global __nvmlDeviceGetInforomVersion - data["__nvmlDeviceGetInforomVersion"] = __nvmlDeviceGetInforomVersion - - global __nvmlDeviceGetInforomImageVersion - data["__nvmlDeviceGetInforomImageVersion"] = __nvmlDeviceGetInforomImageVersion - - global __nvmlDeviceGetInforomConfigurationChecksum - data["__nvmlDeviceGetInforomConfigurationChecksum"] = __nvmlDeviceGetInforomConfigurationChecksum - - global __nvmlDeviceValidateInforom - data["__nvmlDeviceValidateInforom"] = __nvmlDeviceValidateInforom - - global __nvmlDeviceGetLastBBXFlushTime - data["__nvmlDeviceGetLastBBXFlushTime"] = __nvmlDeviceGetLastBBXFlushTime - - global __nvmlDeviceGetDisplayMode - data["__nvmlDeviceGetDisplayMode"] = __nvmlDeviceGetDisplayMode - - global __nvmlDeviceGetDisplayActive - data["__nvmlDeviceGetDisplayActive"] = __nvmlDeviceGetDisplayActive - - global __nvmlDeviceGetPersistenceMode - data["__nvmlDeviceGetPersistenceMode"] = __nvmlDeviceGetPersistenceMode - - global __nvmlDeviceGetPciInfoExt - data["__nvmlDeviceGetPciInfoExt"] = __nvmlDeviceGetPciInfoExt - - global __nvmlDeviceGetPciInfo_v3 - data["__nvmlDeviceGetPciInfo_v3"] = __nvmlDeviceGetPciInfo_v3 - - global __nvmlDeviceGetMaxPcieLinkGeneration - data["__nvmlDeviceGetMaxPcieLinkGeneration"] = __nvmlDeviceGetMaxPcieLinkGeneration - - global __nvmlDeviceGetGpuMaxPcieLinkGeneration - data["__nvmlDeviceGetGpuMaxPcieLinkGeneration"] = __nvmlDeviceGetGpuMaxPcieLinkGeneration - - global __nvmlDeviceGetMaxPcieLinkWidth - data["__nvmlDeviceGetMaxPcieLinkWidth"] = __nvmlDeviceGetMaxPcieLinkWidth - - global __nvmlDeviceGetCurrPcieLinkGeneration - data["__nvmlDeviceGetCurrPcieLinkGeneration"] = __nvmlDeviceGetCurrPcieLinkGeneration - - global __nvmlDeviceGetCurrPcieLinkWidth - data["__nvmlDeviceGetCurrPcieLinkWidth"] = __nvmlDeviceGetCurrPcieLinkWidth - - global __nvmlDeviceGetPcieThroughput - data["__nvmlDeviceGetPcieThroughput"] = __nvmlDeviceGetPcieThroughput - - global __nvmlDeviceGetPcieReplayCounter - data["__nvmlDeviceGetPcieReplayCounter"] = __nvmlDeviceGetPcieReplayCounter - - global __nvmlDeviceGetClockInfo - data["__nvmlDeviceGetClockInfo"] = __nvmlDeviceGetClockInfo - - global __nvmlDeviceGetMaxClockInfo - data["__nvmlDeviceGetMaxClockInfo"] = __nvmlDeviceGetMaxClockInfo - - global __nvmlDeviceGetGpcClkVfOffset - data["__nvmlDeviceGetGpcClkVfOffset"] = __nvmlDeviceGetGpcClkVfOffset - - global __nvmlDeviceGetClock - data["__nvmlDeviceGetClock"] = __nvmlDeviceGetClock - - global __nvmlDeviceGetMaxCustomerBoostClock - data["__nvmlDeviceGetMaxCustomerBoostClock"] = __nvmlDeviceGetMaxCustomerBoostClock - - global __nvmlDeviceGetSupportedMemoryClocks - data["__nvmlDeviceGetSupportedMemoryClocks"] = __nvmlDeviceGetSupportedMemoryClocks - - global __nvmlDeviceGetSupportedGraphicsClocks - data["__nvmlDeviceGetSupportedGraphicsClocks"] = __nvmlDeviceGetSupportedGraphicsClocks - - global __nvmlDeviceGetAutoBoostedClocksEnabled - data["__nvmlDeviceGetAutoBoostedClocksEnabled"] = __nvmlDeviceGetAutoBoostedClocksEnabled - - global __nvmlDeviceGetFanSpeed - data["__nvmlDeviceGetFanSpeed"] = __nvmlDeviceGetFanSpeed - - global __nvmlDeviceGetFanSpeed_v2 - data["__nvmlDeviceGetFanSpeed_v2"] = __nvmlDeviceGetFanSpeed_v2 - - global __nvmlDeviceGetFanSpeedRPM - data["__nvmlDeviceGetFanSpeedRPM"] = __nvmlDeviceGetFanSpeedRPM - - global __nvmlDeviceGetTargetFanSpeed - data["__nvmlDeviceGetTargetFanSpeed"] = __nvmlDeviceGetTargetFanSpeed - - global __nvmlDeviceGetMinMaxFanSpeed - data["__nvmlDeviceGetMinMaxFanSpeed"] = __nvmlDeviceGetMinMaxFanSpeed - - global __nvmlDeviceGetFanControlPolicy_v2 - data["__nvmlDeviceGetFanControlPolicy_v2"] = __nvmlDeviceGetFanControlPolicy_v2 - - global __nvmlDeviceGetNumFans - data["__nvmlDeviceGetNumFans"] = __nvmlDeviceGetNumFans - - global __nvmlDeviceGetCoolerInfo - data["__nvmlDeviceGetCoolerInfo"] = __nvmlDeviceGetCoolerInfo - - global __nvmlDeviceGetTemperatureV - data["__nvmlDeviceGetTemperatureV"] = __nvmlDeviceGetTemperatureV - - global __nvmlDeviceGetTemperatureThreshold - data["__nvmlDeviceGetTemperatureThreshold"] = __nvmlDeviceGetTemperatureThreshold - - global __nvmlDeviceGetMarginTemperature - data["__nvmlDeviceGetMarginTemperature"] = __nvmlDeviceGetMarginTemperature - - global __nvmlDeviceGetThermalSettings - data["__nvmlDeviceGetThermalSettings"] = __nvmlDeviceGetThermalSettings - - global __nvmlDeviceGetPerformanceState - data["__nvmlDeviceGetPerformanceState"] = __nvmlDeviceGetPerformanceState - - global __nvmlDeviceGetCurrentClocksEventReasons - data["__nvmlDeviceGetCurrentClocksEventReasons"] = __nvmlDeviceGetCurrentClocksEventReasons - - global __nvmlDeviceGetSupportedClocksEventReasons - data["__nvmlDeviceGetSupportedClocksEventReasons"] = __nvmlDeviceGetSupportedClocksEventReasons - - global __nvmlDeviceGetPowerState - data["__nvmlDeviceGetPowerState"] = __nvmlDeviceGetPowerState - - global __nvmlDeviceGetDynamicPstatesInfo - data["__nvmlDeviceGetDynamicPstatesInfo"] = __nvmlDeviceGetDynamicPstatesInfo - - global __nvmlDeviceGetMemClkVfOffset - data["__nvmlDeviceGetMemClkVfOffset"] = __nvmlDeviceGetMemClkVfOffset - - global __nvmlDeviceGetMinMaxClockOfPState - data["__nvmlDeviceGetMinMaxClockOfPState"] = __nvmlDeviceGetMinMaxClockOfPState - - global __nvmlDeviceGetSupportedPerformanceStates - data["__nvmlDeviceGetSupportedPerformanceStates"] = __nvmlDeviceGetSupportedPerformanceStates - - global __nvmlDeviceGetGpcClkMinMaxVfOffset - data["__nvmlDeviceGetGpcClkMinMaxVfOffset"] = __nvmlDeviceGetGpcClkMinMaxVfOffset - - global __nvmlDeviceGetMemClkMinMaxVfOffset - data["__nvmlDeviceGetMemClkMinMaxVfOffset"] = __nvmlDeviceGetMemClkMinMaxVfOffset - - global __nvmlDeviceGetClockOffsets - data["__nvmlDeviceGetClockOffsets"] = __nvmlDeviceGetClockOffsets - - global __nvmlDeviceSetClockOffsets - data["__nvmlDeviceSetClockOffsets"] = __nvmlDeviceSetClockOffsets - - global __nvmlDeviceGetPerformanceModes - data["__nvmlDeviceGetPerformanceModes"] = __nvmlDeviceGetPerformanceModes - - global __nvmlDeviceGetCurrentClockFreqs - data["__nvmlDeviceGetCurrentClockFreqs"] = __nvmlDeviceGetCurrentClockFreqs - - global __nvmlDeviceGetPowerManagementLimit - data["__nvmlDeviceGetPowerManagementLimit"] = __nvmlDeviceGetPowerManagementLimit - - global __nvmlDeviceGetPowerManagementLimitConstraints - data["__nvmlDeviceGetPowerManagementLimitConstraints"] = __nvmlDeviceGetPowerManagementLimitConstraints - - global __nvmlDeviceGetPowerManagementDefaultLimit - data["__nvmlDeviceGetPowerManagementDefaultLimit"] = __nvmlDeviceGetPowerManagementDefaultLimit - - global __nvmlDeviceGetPowerUsage - data["__nvmlDeviceGetPowerUsage"] = __nvmlDeviceGetPowerUsage - - global __nvmlDeviceGetTotalEnergyConsumption - data["__nvmlDeviceGetTotalEnergyConsumption"] = __nvmlDeviceGetTotalEnergyConsumption - - global __nvmlDeviceGetEnforcedPowerLimit - data["__nvmlDeviceGetEnforcedPowerLimit"] = __nvmlDeviceGetEnforcedPowerLimit - - global __nvmlDeviceGetGpuOperationMode - data["__nvmlDeviceGetGpuOperationMode"] = __nvmlDeviceGetGpuOperationMode - - global __nvmlDeviceGetMemoryInfo_v2 - data["__nvmlDeviceGetMemoryInfo_v2"] = __nvmlDeviceGetMemoryInfo_v2 - - global __nvmlDeviceGetComputeMode - data["__nvmlDeviceGetComputeMode"] = __nvmlDeviceGetComputeMode - - global __nvmlDeviceGetCudaComputeCapability - data["__nvmlDeviceGetCudaComputeCapability"] = __nvmlDeviceGetCudaComputeCapability - - global __nvmlDeviceGetDramEncryptionMode - data["__nvmlDeviceGetDramEncryptionMode"] = __nvmlDeviceGetDramEncryptionMode - - global __nvmlDeviceSetDramEncryptionMode - data["__nvmlDeviceSetDramEncryptionMode"] = __nvmlDeviceSetDramEncryptionMode - - global __nvmlDeviceGetEccMode - data["__nvmlDeviceGetEccMode"] = __nvmlDeviceGetEccMode - - global __nvmlDeviceGetDefaultEccMode - data["__nvmlDeviceGetDefaultEccMode"] = __nvmlDeviceGetDefaultEccMode - - global __nvmlDeviceGetBoardId - data["__nvmlDeviceGetBoardId"] = __nvmlDeviceGetBoardId - - global __nvmlDeviceGetMultiGpuBoard - data["__nvmlDeviceGetMultiGpuBoard"] = __nvmlDeviceGetMultiGpuBoard - - global __nvmlDeviceGetTotalEccErrors - data["__nvmlDeviceGetTotalEccErrors"] = __nvmlDeviceGetTotalEccErrors - - global __nvmlDeviceGetMemoryErrorCounter - data["__nvmlDeviceGetMemoryErrorCounter"] = __nvmlDeviceGetMemoryErrorCounter - - global __nvmlDeviceGetUtilizationRates - data["__nvmlDeviceGetUtilizationRates"] = __nvmlDeviceGetUtilizationRates - - global __nvmlDeviceGetEncoderUtilization - data["__nvmlDeviceGetEncoderUtilization"] = __nvmlDeviceGetEncoderUtilization - - global __nvmlDeviceGetEncoderCapacity - data["__nvmlDeviceGetEncoderCapacity"] = __nvmlDeviceGetEncoderCapacity - - global __nvmlDeviceGetEncoderStats - data["__nvmlDeviceGetEncoderStats"] = __nvmlDeviceGetEncoderStats - - global __nvmlDeviceGetEncoderSessions - data["__nvmlDeviceGetEncoderSessions"] = __nvmlDeviceGetEncoderSessions - - global __nvmlDeviceGetDecoderUtilization - data["__nvmlDeviceGetDecoderUtilization"] = __nvmlDeviceGetDecoderUtilization - - global __nvmlDeviceGetJpgUtilization - data["__nvmlDeviceGetJpgUtilization"] = __nvmlDeviceGetJpgUtilization - - global __nvmlDeviceGetOfaUtilization - data["__nvmlDeviceGetOfaUtilization"] = __nvmlDeviceGetOfaUtilization - - global __nvmlDeviceGetFBCStats - data["__nvmlDeviceGetFBCStats"] = __nvmlDeviceGetFBCStats - - global __nvmlDeviceGetFBCSessions - data["__nvmlDeviceGetFBCSessions"] = __nvmlDeviceGetFBCSessions - - global __nvmlDeviceGetDriverModel_v2 - data["__nvmlDeviceGetDriverModel_v2"] = __nvmlDeviceGetDriverModel_v2 - - global __nvmlDeviceGetVbiosVersion - data["__nvmlDeviceGetVbiosVersion"] = __nvmlDeviceGetVbiosVersion - - global __nvmlDeviceGetBridgeChipInfo - data["__nvmlDeviceGetBridgeChipInfo"] = __nvmlDeviceGetBridgeChipInfo - - global __nvmlDeviceGetComputeRunningProcesses_v3 - data["__nvmlDeviceGetComputeRunningProcesses_v3"] = __nvmlDeviceGetComputeRunningProcesses_v3 - - global __nvmlDeviceGetGraphicsRunningProcesses_v3 - data["__nvmlDeviceGetGraphicsRunningProcesses_v3"] = __nvmlDeviceGetGraphicsRunningProcesses_v3 - - global __nvmlDeviceGetMPSComputeRunningProcesses_v3 - data["__nvmlDeviceGetMPSComputeRunningProcesses_v3"] = __nvmlDeviceGetMPSComputeRunningProcesses_v3 - - global __nvmlDeviceGetRunningProcessDetailList - data["__nvmlDeviceGetRunningProcessDetailList"] = __nvmlDeviceGetRunningProcessDetailList - - global __nvmlDeviceOnSameBoard - data["__nvmlDeviceOnSameBoard"] = __nvmlDeviceOnSameBoard - - global __nvmlDeviceGetAPIRestriction - data["__nvmlDeviceGetAPIRestriction"] = __nvmlDeviceGetAPIRestriction - - global __nvmlDeviceGetSamples - data["__nvmlDeviceGetSamples"] = __nvmlDeviceGetSamples - - global __nvmlDeviceGetBAR1MemoryInfo - data["__nvmlDeviceGetBAR1MemoryInfo"] = __nvmlDeviceGetBAR1MemoryInfo - - global __nvmlDeviceGetIrqNum - data["__nvmlDeviceGetIrqNum"] = __nvmlDeviceGetIrqNum - - global __nvmlDeviceGetNumGpuCores - data["__nvmlDeviceGetNumGpuCores"] = __nvmlDeviceGetNumGpuCores - - global __nvmlDeviceGetPowerSource - data["__nvmlDeviceGetPowerSource"] = __nvmlDeviceGetPowerSource - - global __nvmlDeviceGetMemoryBusWidth - data["__nvmlDeviceGetMemoryBusWidth"] = __nvmlDeviceGetMemoryBusWidth - - global __nvmlDeviceGetPcieLinkMaxSpeed - data["__nvmlDeviceGetPcieLinkMaxSpeed"] = __nvmlDeviceGetPcieLinkMaxSpeed - - global __nvmlDeviceGetPcieSpeed - data["__nvmlDeviceGetPcieSpeed"] = __nvmlDeviceGetPcieSpeed - - global __nvmlDeviceGetAdaptiveClockInfoStatus - data["__nvmlDeviceGetAdaptiveClockInfoStatus"] = __nvmlDeviceGetAdaptiveClockInfoStatus - - global __nvmlDeviceGetBusType - data["__nvmlDeviceGetBusType"] = __nvmlDeviceGetBusType - - global __nvmlDeviceGetGpuFabricInfoV - data["__nvmlDeviceGetGpuFabricInfoV"] = __nvmlDeviceGetGpuFabricInfoV - - global __nvmlSystemGetConfComputeCapabilities - data["__nvmlSystemGetConfComputeCapabilities"] = __nvmlSystemGetConfComputeCapabilities - - global __nvmlSystemGetConfComputeState - data["__nvmlSystemGetConfComputeState"] = __nvmlSystemGetConfComputeState - - global __nvmlDeviceGetConfComputeMemSizeInfo - data["__nvmlDeviceGetConfComputeMemSizeInfo"] = __nvmlDeviceGetConfComputeMemSizeInfo - - global __nvmlSystemGetConfComputeGpusReadyState - data["__nvmlSystemGetConfComputeGpusReadyState"] = __nvmlSystemGetConfComputeGpusReadyState - - global __nvmlDeviceGetConfComputeProtectedMemoryUsage - data["__nvmlDeviceGetConfComputeProtectedMemoryUsage"] = __nvmlDeviceGetConfComputeProtectedMemoryUsage - - global __nvmlDeviceGetConfComputeGpuCertificate - data["__nvmlDeviceGetConfComputeGpuCertificate"] = __nvmlDeviceGetConfComputeGpuCertificate - - global __nvmlDeviceGetConfComputeGpuAttestationReport - data["__nvmlDeviceGetConfComputeGpuAttestationReport"] = __nvmlDeviceGetConfComputeGpuAttestationReport - - global __nvmlSystemGetConfComputeKeyRotationThresholdInfo - data["__nvmlSystemGetConfComputeKeyRotationThresholdInfo"] = __nvmlSystemGetConfComputeKeyRotationThresholdInfo - - global __nvmlDeviceSetConfComputeUnprotectedMemSize - data["__nvmlDeviceSetConfComputeUnprotectedMemSize"] = __nvmlDeviceSetConfComputeUnprotectedMemSize - - global __nvmlSystemSetConfComputeGpusReadyState - data["__nvmlSystemSetConfComputeGpusReadyState"] = __nvmlSystemSetConfComputeGpusReadyState - - global __nvmlSystemSetConfComputeKeyRotationThresholdInfo - data["__nvmlSystemSetConfComputeKeyRotationThresholdInfo"] = __nvmlSystemSetConfComputeKeyRotationThresholdInfo - - global __nvmlSystemGetConfComputeSettings - data["__nvmlSystemGetConfComputeSettings"] = __nvmlSystemGetConfComputeSettings - - global __nvmlDeviceGetGspFirmwareVersion - data["__nvmlDeviceGetGspFirmwareVersion"] = __nvmlDeviceGetGspFirmwareVersion - - global __nvmlDeviceGetGspFirmwareMode - data["__nvmlDeviceGetGspFirmwareMode"] = __nvmlDeviceGetGspFirmwareMode - - global __nvmlDeviceGetSramEccErrorStatus - data["__nvmlDeviceGetSramEccErrorStatus"] = __nvmlDeviceGetSramEccErrorStatus - - global __nvmlDeviceGetAccountingMode - data["__nvmlDeviceGetAccountingMode"] = __nvmlDeviceGetAccountingMode - - global __nvmlDeviceGetAccountingStats - data["__nvmlDeviceGetAccountingStats"] = __nvmlDeviceGetAccountingStats - - global __nvmlDeviceGetAccountingPids - data["__nvmlDeviceGetAccountingPids"] = __nvmlDeviceGetAccountingPids - - global __nvmlDeviceGetAccountingBufferSize - data["__nvmlDeviceGetAccountingBufferSize"] = __nvmlDeviceGetAccountingBufferSize - - global __nvmlDeviceGetRetiredPages - data["__nvmlDeviceGetRetiredPages"] = __nvmlDeviceGetRetiredPages - - global __nvmlDeviceGetRetiredPages_v2 - data["__nvmlDeviceGetRetiredPages_v2"] = __nvmlDeviceGetRetiredPages_v2 - - global __nvmlDeviceGetRetiredPagesPendingStatus - data["__nvmlDeviceGetRetiredPagesPendingStatus"] = __nvmlDeviceGetRetiredPagesPendingStatus - - global __nvmlDeviceGetRemappedRows - data["__nvmlDeviceGetRemappedRows"] = __nvmlDeviceGetRemappedRows - - global __nvmlDeviceGetRowRemapperHistogram - data["__nvmlDeviceGetRowRemapperHistogram"] = __nvmlDeviceGetRowRemapperHistogram - - global __nvmlDeviceGetArchitecture - data["__nvmlDeviceGetArchitecture"] = __nvmlDeviceGetArchitecture - - global __nvmlDeviceGetClkMonStatus - data["__nvmlDeviceGetClkMonStatus"] = __nvmlDeviceGetClkMonStatus - - global __nvmlDeviceGetProcessUtilization - data["__nvmlDeviceGetProcessUtilization"] = __nvmlDeviceGetProcessUtilization - - global __nvmlDeviceGetProcessesUtilizationInfo - data["__nvmlDeviceGetProcessesUtilizationInfo"] = __nvmlDeviceGetProcessesUtilizationInfo - - global __nvmlDeviceGetPlatformInfo - data["__nvmlDeviceGetPlatformInfo"] = __nvmlDeviceGetPlatformInfo - - global __nvmlUnitSetLedState - data["__nvmlUnitSetLedState"] = __nvmlUnitSetLedState - - global __nvmlDeviceSetPersistenceMode - data["__nvmlDeviceSetPersistenceMode"] = __nvmlDeviceSetPersistenceMode - - global __nvmlDeviceSetComputeMode - data["__nvmlDeviceSetComputeMode"] = __nvmlDeviceSetComputeMode - - global __nvmlDeviceSetEccMode - data["__nvmlDeviceSetEccMode"] = __nvmlDeviceSetEccMode - - global __nvmlDeviceClearEccErrorCounts - data["__nvmlDeviceClearEccErrorCounts"] = __nvmlDeviceClearEccErrorCounts - - global __nvmlDeviceSetDriverModel - data["__nvmlDeviceSetDriverModel"] = __nvmlDeviceSetDriverModel - - global __nvmlDeviceSetGpuLockedClocks - data["__nvmlDeviceSetGpuLockedClocks"] = __nvmlDeviceSetGpuLockedClocks - - global __nvmlDeviceResetGpuLockedClocks - data["__nvmlDeviceResetGpuLockedClocks"] = __nvmlDeviceResetGpuLockedClocks - - global __nvmlDeviceSetMemoryLockedClocks - data["__nvmlDeviceSetMemoryLockedClocks"] = __nvmlDeviceSetMemoryLockedClocks - - global __nvmlDeviceResetMemoryLockedClocks - data["__nvmlDeviceResetMemoryLockedClocks"] = __nvmlDeviceResetMemoryLockedClocks - - global __nvmlDeviceSetAutoBoostedClocksEnabled - data["__nvmlDeviceSetAutoBoostedClocksEnabled"] = __nvmlDeviceSetAutoBoostedClocksEnabled - - global __nvmlDeviceSetDefaultAutoBoostedClocksEnabled - data["__nvmlDeviceSetDefaultAutoBoostedClocksEnabled"] = __nvmlDeviceSetDefaultAutoBoostedClocksEnabled - - global __nvmlDeviceSetDefaultFanSpeed_v2 - data["__nvmlDeviceSetDefaultFanSpeed_v2"] = __nvmlDeviceSetDefaultFanSpeed_v2 - - global __nvmlDeviceSetFanControlPolicy - data["__nvmlDeviceSetFanControlPolicy"] = __nvmlDeviceSetFanControlPolicy - - global __nvmlDeviceSetTemperatureThreshold - data["__nvmlDeviceSetTemperatureThreshold"] = __nvmlDeviceSetTemperatureThreshold - - global __nvmlDeviceSetGpuOperationMode - data["__nvmlDeviceSetGpuOperationMode"] = __nvmlDeviceSetGpuOperationMode - - global __nvmlDeviceSetAPIRestriction - data["__nvmlDeviceSetAPIRestriction"] = __nvmlDeviceSetAPIRestriction - - global __nvmlDeviceSetFanSpeed_v2 - data["__nvmlDeviceSetFanSpeed_v2"] = __nvmlDeviceSetFanSpeed_v2 - - global __nvmlDeviceSetAccountingMode - data["__nvmlDeviceSetAccountingMode"] = __nvmlDeviceSetAccountingMode - - global __nvmlDeviceClearAccountingPids - data["__nvmlDeviceClearAccountingPids"] = __nvmlDeviceClearAccountingPids - - global __nvmlDeviceSetPowerManagementLimit_v2 - data["__nvmlDeviceSetPowerManagementLimit_v2"] = __nvmlDeviceSetPowerManagementLimit_v2 - - global __nvmlDeviceGetNvLinkState - data["__nvmlDeviceGetNvLinkState"] = __nvmlDeviceGetNvLinkState - - global __nvmlDeviceGetNvLinkVersion - data["__nvmlDeviceGetNvLinkVersion"] = __nvmlDeviceGetNvLinkVersion - - global __nvmlDeviceGetNvLinkCapability - data["__nvmlDeviceGetNvLinkCapability"] = __nvmlDeviceGetNvLinkCapability - - global __nvmlDeviceGetNvLinkRemotePciInfo_v2 - data["__nvmlDeviceGetNvLinkRemotePciInfo_v2"] = __nvmlDeviceGetNvLinkRemotePciInfo_v2 - - global __nvmlDeviceGetNvLinkErrorCounter - data["__nvmlDeviceGetNvLinkErrorCounter"] = __nvmlDeviceGetNvLinkErrorCounter - - global __nvmlDeviceResetNvLinkErrorCounters - data["__nvmlDeviceResetNvLinkErrorCounters"] = __nvmlDeviceResetNvLinkErrorCounters - - global __nvmlDeviceGetNvLinkRemoteDeviceType - data["__nvmlDeviceGetNvLinkRemoteDeviceType"] = __nvmlDeviceGetNvLinkRemoteDeviceType - - global __nvmlDeviceSetNvLinkDeviceLowPowerThreshold - data["__nvmlDeviceSetNvLinkDeviceLowPowerThreshold"] = __nvmlDeviceSetNvLinkDeviceLowPowerThreshold - - global __nvmlSystemSetNvlinkBwMode - data["__nvmlSystemSetNvlinkBwMode"] = __nvmlSystemSetNvlinkBwMode - - global __nvmlSystemGetNvlinkBwMode - data["__nvmlSystemGetNvlinkBwMode"] = __nvmlSystemGetNvlinkBwMode - - global __nvmlDeviceGetNvlinkSupportedBwModes - data["__nvmlDeviceGetNvlinkSupportedBwModes"] = __nvmlDeviceGetNvlinkSupportedBwModes - - global __nvmlDeviceGetNvlinkBwMode - data["__nvmlDeviceGetNvlinkBwMode"] = __nvmlDeviceGetNvlinkBwMode - - global __nvmlDeviceSetNvlinkBwMode - data["__nvmlDeviceSetNvlinkBwMode"] = __nvmlDeviceSetNvlinkBwMode - - global __nvmlEventSetCreate - data["__nvmlEventSetCreate"] = __nvmlEventSetCreate - - global __nvmlDeviceRegisterEvents - data["__nvmlDeviceRegisterEvents"] = __nvmlDeviceRegisterEvents - - global __nvmlDeviceGetSupportedEventTypes - data["__nvmlDeviceGetSupportedEventTypes"] = __nvmlDeviceGetSupportedEventTypes - - global __nvmlEventSetWait_v2 - data["__nvmlEventSetWait_v2"] = __nvmlEventSetWait_v2 - - global __nvmlEventSetFree - data["__nvmlEventSetFree"] = __nvmlEventSetFree - - global __nvmlSystemEventSetCreate - data["__nvmlSystemEventSetCreate"] = __nvmlSystemEventSetCreate - - global __nvmlSystemEventSetFree - data["__nvmlSystemEventSetFree"] = __nvmlSystemEventSetFree - - global __nvmlSystemRegisterEvents - data["__nvmlSystemRegisterEvents"] = __nvmlSystemRegisterEvents - - global __nvmlSystemEventSetWait - data["__nvmlSystemEventSetWait"] = __nvmlSystemEventSetWait - - global __nvmlDeviceModifyDrainState - data["__nvmlDeviceModifyDrainState"] = __nvmlDeviceModifyDrainState - - global __nvmlDeviceQueryDrainState - data["__nvmlDeviceQueryDrainState"] = __nvmlDeviceQueryDrainState - - global __nvmlDeviceRemoveGpu_v2 - data["__nvmlDeviceRemoveGpu_v2"] = __nvmlDeviceRemoveGpu_v2 - - global __nvmlDeviceDiscoverGpus - data["__nvmlDeviceDiscoverGpus"] = __nvmlDeviceDiscoverGpus - - global __nvmlDeviceGetFieldValues - data["__nvmlDeviceGetFieldValues"] = __nvmlDeviceGetFieldValues - - global __nvmlDeviceClearFieldValues - data["__nvmlDeviceClearFieldValues"] = __nvmlDeviceClearFieldValues - - global __nvmlDeviceGetVirtualizationMode - data["__nvmlDeviceGetVirtualizationMode"] = __nvmlDeviceGetVirtualizationMode - - global __nvmlDeviceGetHostVgpuMode - data["__nvmlDeviceGetHostVgpuMode"] = __nvmlDeviceGetHostVgpuMode - - global __nvmlDeviceSetVirtualizationMode - data["__nvmlDeviceSetVirtualizationMode"] = __nvmlDeviceSetVirtualizationMode - - global __nvmlDeviceGetVgpuHeterogeneousMode - data["__nvmlDeviceGetVgpuHeterogeneousMode"] = __nvmlDeviceGetVgpuHeterogeneousMode - - global __nvmlDeviceSetVgpuHeterogeneousMode - data["__nvmlDeviceSetVgpuHeterogeneousMode"] = __nvmlDeviceSetVgpuHeterogeneousMode - - global __nvmlVgpuInstanceGetPlacementId - data["__nvmlVgpuInstanceGetPlacementId"] = __nvmlVgpuInstanceGetPlacementId - - global __nvmlDeviceGetVgpuTypeSupportedPlacements - data["__nvmlDeviceGetVgpuTypeSupportedPlacements"] = __nvmlDeviceGetVgpuTypeSupportedPlacements - - global __nvmlDeviceGetVgpuTypeCreatablePlacements - data["__nvmlDeviceGetVgpuTypeCreatablePlacements"] = __nvmlDeviceGetVgpuTypeCreatablePlacements - - global __nvmlVgpuTypeGetGspHeapSize - data["__nvmlVgpuTypeGetGspHeapSize"] = __nvmlVgpuTypeGetGspHeapSize - - global __nvmlVgpuTypeGetFbReservation - data["__nvmlVgpuTypeGetFbReservation"] = __nvmlVgpuTypeGetFbReservation - - global __nvmlVgpuInstanceGetRuntimeStateSize - data["__nvmlVgpuInstanceGetRuntimeStateSize"] = __nvmlVgpuInstanceGetRuntimeStateSize - - global __nvmlDeviceSetVgpuCapabilities - data["__nvmlDeviceSetVgpuCapabilities"] = __nvmlDeviceSetVgpuCapabilities - - global __nvmlDeviceGetGridLicensableFeatures_v4 - data["__nvmlDeviceGetGridLicensableFeatures_v4"] = __nvmlDeviceGetGridLicensableFeatures_v4 - - global __nvmlGetVgpuDriverCapabilities - data["__nvmlGetVgpuDriverCapabilities"] = __nvmlGetVgpuDriverCapabilities - - global __nvmlDeviceGetVgpuCapabilities - data["__nvmlDeviceGetVgpuCapabilities"] = __nvmlDeviceGetVgpuCapabilities - - global __nvmlDeviceGetSupportedVgpus - data["__nvmlDeviceGetSupportedVgpus"] = __nvmlDeviceGetSupportedVgpus - - global __nvmlDeviceGetCreatableVgpus - data["__nvmlDeviceGetCreatableVgpus"] = __nvmlDeviceGetCreatableVgpus - - global __nvmlVgpuTypeGetClass - data["__nvmlVgpuTypeGetClass"] = __nvmlVgpuTypeGetClass - - global __nvmlVgpuTypeGetName - data["__nvmlVgpuTypeGetName"] = __nvmlVgpuTypeGetName - - global __nvmlVgpuTypeGetGpuInstanceProfileId - data["__nvmlVgpuTypeGetGpuInstanceProfileId"] = __nvmlVgpuTypeGetGpuInstanceProfileId - - global __nvmlVgpuTypeGetDeviceID - data["__nvmlVgpuTypeGetDeviceID"] = __nvmlVgpuTypeGetDeviceID - - global __nvmlVgpuTypeGetFramebufferSize - data["__nvmlVgpuTypeGetFramebufferSize"] = __nvmlVgpuTypeGetFramebufferSize - - global __nvmlVgpuTypeGetNumDisplayHeads - data["__nvmlVgpuTypeGetNumDisplayHeads"] = __nvmlVgpuTypeGetNumDisplayHeads - - global __nvmlVgpuTypeGetResolution - data["__nvmlVgpuTypeGetResolution"] = __nvmlVgpuTypeGetResolution - - global __nvmlVgpuTypeGetLicense - data["__nvmlVgpuTypeGetLicense"] = __nvmlVgpuTypeGetLicense - - global __nvmlVgpuTypeGetFrameRateLimit - data["__nvmlVgpuTypeGetFrameRateLimit"] = __nvmlVgpuTypeGetFrameRateLimit - - global __nvmlVgpuTypeGetMaxInstances - data["__nvmlVgpuTypeGetMaxInstances"] = __nvmlVgpuTypeGetMaxInstances - - global __nvmlVgpuTypeGetMaxInstancesPerVm - data["__nvmlVgpuTypeGetMaxInstancesPerVm"] = __nvmlVgpuTypeGetMaxInstancesPerVm - - global __nvmlVgpuTypeGetBAR1Info - data["__nvmlVgpuTypeGetBAR1Info"] = __nvmlVgpuTypeGetBAR1Info - - global __nvmlDeviceGetActiveVgpus - data["__nvmlDeviceGetActiveVgpus"] = __nvmlDeviceGetActiveVgpus - - global __nvmlVgpuInstanceGetVmID - data["__nvmlVgpuInstanceGetVmID"] = __nvmlVgpuInstanceGetVmID - - global __nvmlVgpuInstanceGetUUID - data["__nvmlVgpuInstanceGetUUID"] = __nvmlVgpuInstanceGetUUID - - global __nvmlVgpuInstanceGetVmDriverVersion - data["__nvmlVgpuInstanceGetVmDriverVersion"] = __nvmlVgpuInstanceGetVmDriverVersion - - global __nvmlVgpuInstanceGetFbUsage - data["__nvmlVgpuInstanceGetFbUsage"] = __nvmlVgpuInstanceGetFbUsage - - global __nvmlVgpuInstanceGetLicenseStatus - data["__nvmlVgpuInstanceGetLicenseStatus"] = __nvmlVgpuInstanceGetLicenseStatus - - global __nvmlVgpuInstanceGetType - data["__nvmlVgpuInstanceGetType"] = __nvmlVgpuInstanceGetType - - global __nvmlVgpuInstanceGetFrameRateLimit - data["__nvmlVgpuInstanceGetFrameRateLimit"] = __nvmlVgpuInstanceGetFrameRateLimit - - global __nvmlVgpuInstanceGetEccMode - data["__nvmlVgpuInstanceGetEccMode"] = __nvmlVgpuInstanceGetEccMode - - global __nvmlVgpuInstanceGetEncoderCapacity - data["__nvmlVgpuInstanceGetEncoderCapacity"] = __nvmlVgpuInstanceGetEncoderCapacity - - global __nvmlVgpuInstanceSetEncoderCapacity - data["__nvmlVgpuInstanceSetEncoderCapacity"] = __nvmlVgpuInstanceSetEncoderCapacity - - global __nvmlVgpuInstanceGetEncoderStats - data["__nvmlVgpuInstanceGetEncoderStats"] = __nvmlVgpuInstanceGetEncoderStats - - global __nvmlVgpuInstanceGetEncoderSessions - data["__nvmlVgpuInstanceGetEncoderSessions"] = __nvmlVgpuInstanceGetEncoderSessions - - global __nvmlVgpuInstanceGetFBCStats - data["__nvmlVgpuInstanceGetFBCStats"] = __nvmlVgpuInstanceGetFBCStats - - global __nvmlVgpuInstanceGetFBCSessions - data["__nvmlVgpuInstanceGetFBCSessions"] = __nvmlVgpuInstanceGetFBCSessions - - global __nvmlVgpuInstanceGetGpuInstanceId - data["__nvmlVgpuInstanceGetGpuInstanceId"] = __nvmlVgpuInstanceGetGpuInstanceId - - global __nvmlVgpuInstanceGetGpuPciId - data["__nvmlVgpuInstanceGetGpuPciId"] = __nvmlVgpuInstanceGetGpuPciId - - global __nvmlVgpuTypeGetCapabilities - data["__nvmlVgpuTypeGetCapabilities"] = __nvmlVgpuTypeGetCapabilities - - global __nvmlVgpuInstanceGetMdevUUID - data["__nvmlVgpuInstanceGetMdevUUID"] = __nvmlVgpuInstanceGetMdevUUID - - global __nvmlGpuInstanceGetCreatableVgpus - data["__nvmlGpuInstanceGetCreatableVgpus"] = __nvmlGpuInstanceGetCreatableVgpus - - global __nvmlVgpuTypeGetMaxInstancesPerGpuInstance - data["__nvmlVgpuTypeGetMaxInstancesPerGpuInstance"] = __nvmlVgpuTypeGetMaxInstancesPerGpuInstance - - global __nvmlGpuInstanceGetActiveVgpus - data["__nvmlGpuInstanceGetActiveVgpus"] = __nvmlGpuInstanceGetActiveVgpus - - global __nvmlGpuInstanceSetVgpuSchedulerState - data["__nvmlGpuInstanceSetVgpuSchedulerState"] = __nvmlGpuInstanceSetVgpuSchedulerState - - global __nvmlGpuInstanceGetVgpuSchedulerState - data["__nvmlGpuInstanceGetVgpuSchedulerState"] = __nvmlGpuInstanceGetVgpuSchedulerState - - global __nvmlGpuInstanceGetVgpuSchedulerLog - data["__nvmlGpuInstanceGetVgpuSchedulerLog"] = __nvmlGpuInstanceGetVgpuSchedulerLog - - global __nvmlGpuInstanceGetVgpuTypeCreatablePlacements - data["__nvmlGpuInstanceGetVgpuTypeCreatablePlacements"] = __nvmlGpuInstanceGetVgpuTypeCreatablePlacements - - global __nvmlGpuInstanceGetVgpuHeterogeneousMode - data["__nvmlGpuInstanceGetVgpuHeterogeneousMode"] = __nvmlGpuInstanceGetVgpuHeterogeneousMode - - global __nvmlGpuInstanceSetVgpuHeterogeneousMode - data["__nvmlGpuInstanceSetVgpuHeterogeneousMode"] = __nvmlGpuInstanceSetVgpuHeterogeneousMode - - global __nvmlVgpuInstanceGetMetadata - data["__nvmlVgpuInstanceGetMetadata"] = __nvmlVgpuInstanceGetMetadata - - global __nvmlDeviceGetVgpuMetadata - data["__nvmlDeviceGetVgpuMetadata"] = __nvmlDeviceGetVgpuMetadata - - global __nvmlGetVgpuCompatibility - data["__nvmlGetVgpuCompatibility"] = __nvmlGetVgpuCompatibility - - global __nvmlDeviceGetPgpuMetadataString - data["__nvmlDeviceGetPgpuMetadataString"] = __nvmlDeviceGetPgpuMetadataString - - global __nvmlDeviceGetVgpuSchedulerLog - data["__nvmlDeviceGetVgpuSchedulerLog"] = __nvmlDeviceGetVgpuSchedulerLog - - global __nvmlDeviceGetVgpuSchedulerState - data["__nvmlDeviceGetVgpuSchedulerState"] = __nvmlDeviceGetVgpuSchedulerState - - global __nvmlDeviceGetVgpuSchedulerCapabilities - data["__nvmlDeviceGetVgpuSchedulerCapabilities"] = __nvmlDeviceGetVgpuSchedulerCapabilities - - global __nvmlDeviceSetVgpuSchedulerState - data["__nvmlDeviceSetVgpuSchedulerState"] = __nvmlDeviceSetVgpuSchedulerState - - global __nvmlGetVgpuVersion - data["__nvmlGetVgpuVersion"] = __nvmlGetVgpuVersion - - global __nvmlSetVgpuVersion - data["__nvmlSetVgpuVersion"] = __nvmlSetVgpuVersion - - global __nvmlDeviceGetVgpuUtilization - data["__nvmlDeviceGetVgpuUtilization"] = __nvmlDeviceGetVgpuUtilization - - global __nvmlDeviceGetVgpuInstancesUtilizationInfo - data["__nvmlDeviceGetVgpuInstancesUtilizationInfo"] = __nvmlDeviceGetVgpuInstancesUtilizationInfo - - global __nvmlDeviceGetVgpuProcessUtilization - data["__nvmlDeviceGetVgpuProcessUtilization"] = __nvmlDeviceGetVgpuProcessUtilization - - global __nvmlDeviceGetVgpuProcessesUtilizationInfo - data["__nvmlDeviceGetVgpuProcessesUtilizationInfo"] = __nvmlDeviceGetVgpuProcessesUtilizationInfo - - global __nvmlVgpuInstanceGetAccountingMode - data["__nvmlVgpuInstanceGetAccountingMode"] = __nvmlVgpuInstanceGetAccountingMode - - global __nvmlVgpuInstanceGetAccountingPids - data["__nvmlVgpuInstanceGetAccountingPids"] = __nvmlVgpuInstanceGetAccountingPids - - global __nvmlVgpuInstanceGetAccountingStats - data["__nvmlVgpuInstanceGetAccountingStats"] = __nvmlVgpuInstanceGetAccountingStats - - global __nvmlVgpuInstanceClearAccountingPids - data["__nvmlVgpuInstanceClearAccountingPids"] = __nvmlVgpuInstanceClearAccountingPids - - global __nvmlVgpuInstanceGetLicenseInfo_v2 - data["__nvmlVgpuInstanceGetLicenseInfo_v2"] = __nvmlVgpuInstanceGetLicenseInfo_v2 - - global __nvmlGetExcludedDeviceCount - data["__nvmlGetExcludedDeviceCount"] = __nvmlGetExcludedDeviceCount - - global __nvmlGetExcludedDeviceInfoByIndex - data["__nvmlGetExcludedDeviceInfoByIndex"] = __nvmlGetExcludedDeviceInfoByIndex - - global __nvmlDeviceSetMigMode - data["__nvmlDeviceSetMigMode"] = __nvmlDeviceSetMigMode - - global __nvmlDeviceGetMigMode - data["__nvmlDeviceGetMigMode"] = __nvmlDeviceGetMigMode - - global __nvmlDeviceGetGpuInstanceProfileInfoV - data["__nvmlDeviceGetGpuInstanceProfileInfoV"] = __nvmlDeviceGetGpuInstanceProfileInfoV - - global __nvmlDeviceGetGpuInstancePossiblePlacements_v2 - data["__nvmlDeviceGetGpuInstancePossiblePlacements_v2"] = __nvmlDeviceGetGpuInstancePossiblePlacements_v2 - - global __nvmlDeviceGetGpuInstanceRemainingCapacity - data["__nvmlDeviceGetGpuInstanceRemainingCapacity"] = __nvmlDeviceGetGpuInstanceRemainingCapacity - - global __nvmlDeviceCreateGpuInstance - data["__nvmlDeviceCreateGpuInstance"] = __nvmlDeviceCreateGpuInstance - - global __nvmlDeviceCreateGpuInstanceWithPlacement - data["__nvmlDeviceCreateGpuInstanceWithPlacement"] = __nvmlDeviceCreateGpuInstanceWithPlacement - - global __nvmlGpuInstanceDestroy - data["__nvmlGpuInstanceDestroy"] = __nvmlGpuInstanceDestroy - - global __nvmlDeviceGetGpuInstances - data["__nvmlDeviceGetGpuInstances"] = __nvmlDeviceGetGpuInstances - - global __nvmlDeviceGetGpuInstanceById - data["__nvmlDeviceGetGpuInstanceById"] = __nvmlDeviceGetGpuInstanceById - - global __nvmlGpuInstanceGetInfo - data["__nvmlGpuInstanceGetInfo"] = __nvmlGpuInstanceGetInfo - - global __nvmlGpuInstanceGetComputeInstanceProfileInfoV - data["__nvmlGpuInstanceGetComputeInstanceProfileInfoV"] = __nvmlGpuInstanceGetComputeInstanceProfileInfoV - - global __nvmlGpuInstanceGetComputeInstanceRemainingCapacity - data["__nvmlGpuInstanceGetComputeInstanceRemainingCapacity"] = __nvmlGpuInstanceGetComputeInstanceRemainingCapacity - - global __nvmlGpuInstanceGetComputeInstancePossiblePlacements - data["__nvmlGpuInstanceGetComputeInstancePossiblePlacements"] = __nvmlGpuInstanceGetComputeInstancePossiblePlacements - - global __nvmlGpuInstanceCreateComputeInstance - data["__nvmlGpuInstanceCreateComputeInstance"] = __nvmlGpuInstanceCreateComputeInstance - - global __nvmlGpuInstanceCreateComputeInstanceWithPlacement - data["__nvmlGpuInstanceCreateComputeInstanceWithPlacement"] = __nvmlGpuInstanceCreateComputeInstanceWithPlacement - - global __nvmlComputeInstanceDestroy - data["__nvmlComputeInstanceDestroy"] = __nvmlComputeInstanceDestroy - - global __nvmlGpuInstanceGetComputeInstances - data["__nvmlGpuInstanceGetComputeInstances"] = __nvmlGpuInstanceGetComputeInstances - - global __nvmlGpuInstanceGetComputeInstanceById - data["__nvmlGpuInstanceGetComputeInstanceById"] = __nvmlGpuInstanceGetComputeInstanceById - - global __nvmlComputeInstanceGetInfo_v2 - data["__nvmlComputeInstanceGetInfo_v2"] = __nvmlComputeInstanceGetInfo_v2 - - global __nvmlDeviceIsMigDeviceHandle - data["__nvmlDeviceIsMigDeviceHandle"] = __nvmlDeviceIsMigDeviceHandle - - global __nvmlDeviceGetGpuInstanceId - data["__nvmlDeviceGetGpuInstanceId"] = __nvmlDeviceGetGpuInstanceId - - global __nvmlDeviceGetComputeInstanceId - data["__nvmlDeviceGetComputeInstanceId"] = __nvmlDeviceGetComputeInstanceId - - global __nvmlDeviceGetMaxMigDeviceCount - data["__nvmlDeviceGetMaxMigDeviceCount"] = __nvmlDeviceGetMaxMigDeviceCount - - global __nvmlDeviceGetMigDeviceHandleByIndex - data["__nvmlDeviceGetMigDeviceHandleByIndex"] = __nvmlDeviceGetMigDeviceHandleByIndex - - global __nvmlDeviceGetDeviceHandleFromMigDeviceHandle - data["__nvmlDeviceGetDeviceHandleFromMigDeviceHandle"] = __nvmlDeviceGetDeviceHandleFromMigDeviceHandle - - global __nvmlDeviceGetCapabilities - data["__nvmlDeviceGetCapabilities"] = __nvmlDeviceGetCapabilities - - global __nvmlDevicePowerSmoothingActivatePresetProfile - data["__nvmlDevicePowerSmoothingActivatePresetProfile"] = __nvmlDevicePowerSmoothingActivatePresetProfile - - global __nvmlDevicePowerSmoothingUpdatePresetProfileParam - data["__nvmlDevicePowerSmoothingUpdatePresetProfileParam"] = __nvmlDevicePowerSmoothingUpdatePresetProfileParam - - global __nvmlDevicePowerSmoothingSetState - data["__nvmlDevicePowerSmoothingSetState"] = __nvmlDevicePowerSmoothingSetState - - global __nvmlDeviceGetAddressingMode - data["__nvmlDeviceGetAddressingMode"] = __nvmlDeviceGetAddressingMode - - global __nvmlDeviceGetRepairStatus - data["__nvmlDeviceGetRepairStatus"] = __nvmlDeviceGetRepairStatus - - global __nvmlDeviceGetPowerMizerMode_v1 - data["__nvmlDeviceGetPowerMizerMode_v1"] = __nvmlDeviceGetPowerMizerMode_v1 - - global __nvmlDeviceSetPowerMizerMode_v1 - data["__nvmlDeviceSetPowerMizerMode_v1"] = __nvmlDeviceSetPowerMizerMode_v1 - - global __nvmlDeviceGetPdi - data["__nvmlDeviceGetPdi"] = __nvmlDeviceGetPdi - - global __nvmlDeviceSetHostname_v1 - data["__nvmlDeviceSetHostname_v1"] = __nvmlDeviceSetHostname_v1 - - global __nvmlDeviceGetHostname_v1 - data["__nvmlDeviceGetHostname_v1"] = __nvmlDeviceGetHostname_v1 - - global __nvmlDeviceGetNvLinkInfo - data["__nvmlDeviceGetNvLinkInfo"] = __nvmlDeviceGetNvLinkInfo - - global __nvmlDeviceReadWritePRM_v1 - data["__nvmlDeviceReadWritePRM_v1"] = __nvmlDeviceReadWritePRM_v1 - - global __nvmlDeviceGetGpuInstanceProfileInfoByIdV - data["__nvmlDeviceGetGpuInstanceProfileInfoByIdV"] = __nvmlDeviceGetGpuInstanceProfileInfoByIdV - - global __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts - data["__nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts"] = __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts - - global __nvmlDeviceGetUnrepairableMemoryFlag_v1 - data["__nvmlDeviceGetUnrepairableMemoryFlag_v1"] = __nvmlDeviceGetUnrepairableMemoryFlag_v1 - - global __nvmlDeviceReadPRMCounters_v1 - data["__nvmlDeviceReadPRMCounters_v1"] = __nvmlDeviceReadPRMCounters_v1 - - global __nvmlDeviceSetRusdSettings_v1 - data["__nvmlDeviceSetRusdSettings_v1"] = __nvmlDeviceSetRusdSettings_v1 - - global __nvmlDeviceVgpuForceGspUnload - data["__nvmlDeviceVgpuForceGspUnload"] = __nvmlDeviceVgpuForceGspUnload - - global __nvmlDeviceGetVgpuSchedulerState_v2 - data["__nvmlDeviceGetVgpuSchedulerState_v2"] = __nvmlDeviceGetVgpuSchedulerState_v2 - - global __nvmlGpuInstanceGetVgpuSchedulerState_v2 - data["__nvmlGpuInstanceGetVgpuSchedulerState_v2"] = __nvmlGpuInstanceGetVgpuSchedulerState_v2 - - global __nvmlDeviceGetVgpuSchedulerLog_v2 - data["__nvmlDeviceGetVgpuSchedulerLog_v2"] = __nvmlDeviceGetVgpuSchedulerLog_v2 - - global __nvmlGpuInstanceGetVgpuSchedulerLog_v2 - data["__nvmlGpuInstanceGetVgpuSchedulerLog_v2"] = __nvmlGpuInstanceGetVgpuSchedulerLog_v2 - - global __nvmlDeviceSetVgpuSchedulerState_v2 - data["__nvmlDeviceSetVgpuSchedulerState_v2"] = __nvmlDeviceSetVgpuSchedulerState_v2 - - global __nvmlGpuInstanceSetVgpuSchedulerState_v2 - data["__nvmlGpuInstanceSetVgpuSchedulerState_v2"] = __nvmlGpuInstanceSetVgpuSchedulerState_v2 - - global __nvmlSystemGetCPER_v1 - data["__nvmlSystemGetCPER_v1"] = __nvmlSystemGetCPER_v1 - - global __nvmlDeviceGetBBXTimeData_v1 - data["__nvmlDeviceGetBBXTimeData_v1"] = __nvmlDeviceGetBBXTimeData_v1 - - global __nvmlDeviceGetAccountingStats_v2 - data["__nvmlDeviceGetAccountingStats_v2"] = __nvmlDeviceGetAccountingStats_v2 - - global __nvmlDeviceGetRemappedRows_v2 - data["__nvmlDeviceGetRemappedRows_v2"] = __nvmlDeviceGetRemappedRows_v2 - - global __nvmlDeviceSetAdaptiveTgpMode_v1 - data["__nvmlDeviceSetAdaptiveTgpMode_v1"] = __nvmlDeviceSetAdaptiveTgpMode_v1 - - global __nvmlDeviceGetAdaptiveTgpModeInfo_v1 - data["__nvmlDeviceGetAdaptiveTgpModeInfo_v1"] = __nvmlDeviceGetAdaptiveTgpModeInfo_v1 - - global __nvmlDeviceSetMemoryLimits_v1 - data["__nvmlDeviceSetMemoryLimits_v1"] = __nvmlDeviceSetMemoryLimits_v1 - - global __nvmlDeviceGetMemoryLimits_v1 - data["__nvmlDeviceGetMemoryLimits_v1"] = __nvmlDeviceGetMemoryLimits_v1 - - global __nvmlDeviceGetGpuFabricInfo_v4 - data["__nvmlDeviceGetGpuFabricInfo_v4"] = __nvmlDeviceGetGpuFabricInfo_v4 - - global __nvmlDevicePerfMetricsGetSamples_v1 - data["__nvmlDevicePerfMetricsGetSamples_v1"] = __nvmlDevicePerfMetricsGetSamples_v1 +cdef void* __nvmlDeviceSetEccMode = NULL +cdef void* __nvmlDeviceClearEccErrorCounts = NULL +cdef void* __nvmlDeviceSetDriverModel = NULL +cdef void* __nvmlDeviceSetGpuLockedClocks = NULL +cdef void* __nvmlDeviceResetGpuLockedClocks = NULL +cdef void* __nvmlDeviceSetMemoryLockedClocks = NULL +cdef void* __nvmlDeviceResetMemoryLockedClocks = NULL +cdef void* __nvmlDeviceSetAutoBoostedClocksEnabled = NULL +cdef void* __nvmlDeviceSetDefaultAutoBoostedClocksEnabled = NULL +cdef void* __nvmlDeviceSetDefaultFanSpeed_v2 = NULL +cdef void* __nvmlDeviceSetFanControlPolicy = NULL +cdef void* __nvmlDeviceSetTemperatureThreshold = NULL +cdef void* __nvmlDeviceSetGpuOperationMode = NULL +cdef void* __nvmlDeviceSetAPIRestriction = NULL +cdef void* __nvmlDeviceSetFanSpeed_v2 = NULL +cdef void* __nvmlDeviceSetAccountingMode = NULL +cdef void* __nvmlDeviceClearAccountingPids = NULL +cdef void* __nvmlDeviceSetPowerManagementLimit_v2 = NULL +cdef void* __nvmlDeviceGetNvLinkState = NULL +cdef void* __nvmlDeviceGetNvLinkVersion = NULL +cdef void* __nvmlDeviceGetNvLinkCapability = NULL +cdef void* __nvmlDeviceGetNvLinkRemotePciInfo_v2 = NULL +cdef void* __nvmlDeviceGetNvLinkErrorCounter = NULL +cdef void* __nvmlDeviceResetNvLinkErrorCounters = NULL +cdef void* __nvmlDeviceGetNvLinkRemoteDeviceType = NULL +cdef void* __nvmlDeviceSetNvLinkDeviceLowPowerThreshold = NULL +cdef void* __nvmlSystemSetNvlinkBwMode = NULL +cdef void* __nvmlSystemGetNvlinkBwMode = NULL +cdef void* __nvmlDeviceGetNvlinkSupportedBwModes = NULL +cdef void* __nvmlDeviceGetNvlinkBwMode = NULL +cdef void* __nvmlDeviceSetNvlinkBwMode = NULL +cdef void* __nvmlEventSetCreate = NULL +cdef void* __nvmlDeviceRegisterEvents = NULL +cdef void* __nvmlDeviceGetSupportedEventTypes = NULL +cdef void* __nvmlEventSetWait_v2 = NULL +cdef void* __nvmlEventSetFree = NULL +cdef void* __nvmlSystemEventSetCreate = NULL +cdef void* __nvmlSystemEventSetFree = NULL +cdef void* __nvmlSystemRegisterEvents = NULL +cdef void* __nvmlSystemEventSetWait = NULL +cdef void* __nvmlDeviceModifyDrainState = NULL +cdef void* __nvmlDeviceQueryDrainState = NULL +cdef void* __nvmlDeviceRemoveGpu_v2 = NULL +cdef void* __nvmlDeviceDiscoverGpus = NULL +cdef void* __nvmlDeviceGetFieldValues = NULL +cdef void* __nvmlDeviceClearFieldValues = NULL +cdef void* __nvmlDeviceGetVirtualizationMode = NULL +cdef void* __nvmlDeviceGetHostVgpuMode = NULL +cdef void* __nvmlDeviceSetVirtualizationMode = NULL +cdef void* __nvmlDeviceGetVgpuHeterogeneousMode = NULL +cdef void* __nvmlDeviceSetVgpuHeterogeneousMode = NULL +cdef void* __nvmlVgpuInstanceGetPlacementId = NULL +cdef void* __nvmlDeviceGetVgpuTypeSupportedPlacements = NULL +cdef void* __nvmlDeviceGetVgpuTypeCreatablePlacements = NULL +cdef void* __nvmlVgpuTypeGetGspHeapSize = NULL +cdef void* __nvmlVgpuTypeGetFbReservation = NULL +cdef void* __nvmlVgpuInstanceGetRuntimeStateSize = NULL +cdef void* __nvmlDeviceSetVgpuCapabilities = NULL +cdef void* __nvmlDeviceGetGridLicensableFeatures_v4 = NULL +cdef void* __nvmlGetVgpuDriverCapabilities = NULL +cdef void* __nvmlDeviceGetVgpuCapabilities = NULL +cdef void* __nvmlDeviceGetSupportedVgpus = NULL +cdef void* __nvmlDeviceGetCreatableVgpus = NULL +cdef void* __nvmlVgpuTypeGetClass = NULL +cdef void* __nvmlVgpuTypeGetName = NULL +cdef void* __nvmlVgpuTypeGetGpuInstanceProfileId = NULL +cdef void* __nvmlVgpuTypeGetDeviceID = NULL +cdef void* __nvmlVgpuTypeGetFramebufferSize = NULL +cdef void* __nvmlVgpuTypeGetNumDisplayHeads = NULL +cdef void* __nvmlVgpuTypeGetResolution = NULL +cdef void* __nvmlVgpuTypeGetLicense = NULL +cdef void* __nvmlVgpuTypeGetFrameRateLimit = NULL +cdef void* __nvmlVgpuTypeGetMaxInstances = NULL +cdef void* __nvmlVgpuTypeGetMaxInstancesPerVm = NULL +cdef void* __nvmlVgpuTypeGetBAR1Info = NULL +cdef void* __nvmlDeviceGetActiveVgpus = NULL +cdef void* __nvmlVgpuInstanceGetVmID = NULL +cdef void* __nvmlVgpuInstanceGetUUID = NULL +cdef void* __nvmlVgpuInstanceGetVmDriverVersion = NULL +cdef void* __nvmlVgpuInstanceGetFbUsage = NULL +cdef void* __nvmlVgpuInstanceGetLicenseStatus = NULL +cdef void* __nvmlVgpuInstanceGetType = NULL +cdef void* __nvmlVgpuInstanceGetFrameRateLimit = NULL +cdef void* __nvmlVgpuInstanceGetEccMode = NULL +cdef void* __nvmlVgpuInstanceGetEncoderCapacity = NULL +cdef void* __nvmlVgpuInstanceSetEncoderCapacity = NULL +cdef void* __nvmlVgpuInstanceGetEncoderStats = NULL +cdef void* __nvmlVgpuInstanceGetEncoderSessions = NULL +cdef void* __nvmlVgpuInstanceGetFBCStats = NULL +cdef void* __nvmlVgpuInstanceGetFBCSessions = NULL +cdef void* __nvmlVgpuInstanceGetGpuInstanceId = NULL +cdef void* __nvmlVgpuInstanceGetGpuPciId = NULL +cdef void* __nvmlVgpuTypeGetCapabilities = NULL +cdef void* __nvmlVgpuInstanceGetMdevUUID = NULL +cdef void* __nvmlGpuInstanceGetCreatableVgpus = NULL +cdef void* __nvmlVgpuTypeGetMaxInstancesPerGpuInstance = NULL +cdef void* __nvmlGpuInstanceGetActiveVgpus = NULL +cdef void* __nvmlGpuInstanceSetVgpuSchedulerState = NULL +cdef void* __nvmlGpuInstanceGetVgpuSchedulerState = NULL +cdef void* __nvmlGpuInstanceGetVgpuSchedulerLog = NULL +cdef void* __nvmlGpuInstanceGetVgpuTypeCreatablePlacements = NULL +cdef void* __nvmlGpuInstanceGetVgpuHeterogeneousMode = NULL +cdef void* __nvmlGpuInstanceSetVgpuHeterogeneousMode = NULL +cdef void* __nvmlVgpuInstanceGetMetadata = NULL +cdef void* __nvmlDeviceGetVgpuMetadata = NULL +cdef void* __nvmlGetVgpuCompatibility = NULL +cdef void* __nvmlDeviceGetPgpuMetadataString = NULL +cdef void* __nvmlDeviceGetVgpuSchedulerLog = NULL +cdef void* __nvmlDeviceGetVgpuSchedulerState = NULL +cdef void* __nvmlDeviceGetVgpuSchedulerCapabilities = NULL +cdef void* __nvmlDeviceSetVgpuSchedulerState = NULL +cdef void* __nvmlGetVgpuVersion = NULL +cdef void* __nvmlSetVgpuVersion = NULL +cdef void* __nvmlDeviceGetVgpuUtilization = NULL +cdef void* __nvmlDeviceGetVgpuInstancesUtilizationInfo = NULL +cdef void* __nvmlDeviceGetVgpuProcessUtilization = NULL +cdef void* __nvmlDeviceGetVgpuProcessesUtilizationInfo = NULL +cdef void* __nvmlVgpuInstanceGetAccountingMode = NULL +cdef void* __nvmlVgpuInstanceGetAccountingPids = NULL +cdef void* __nvmlVgpuInstanceGetAccountingStats = NULL +cdef void* __nvmlVgpuInstanceClearAccountingPids = NULL +cdef void* __nvmlVgpuInstanceGetLicenseInfo_v2 = NULL +cdef void* __nvmlGetExcludedDeviceCount = NULL +cdef void* __nvmlGetExcludedDeviceInfoByIndex = NULL +cdef void* __nvmlDeviceSetMigMode = NULL +cdef void* __nvmlDeviceGetMigMode = NULL +cdef void* __nvmlDeviceGetGpuInstanceProfileInfoV = NULL +cdef void* __nvmlDeviceGetGpuInstancePossiblePlacements_v2 = NULL +cdef void* __nvmlDeviceGetGpuInstanceRemainingCapacity = NULL +cdef void* __nvmlDeviceCreateGpuInstance = NULL +cdef void* __nvmlDeviceCreateGpuInstanceWithPlacement = NULL +cdef void* __nvmlGpuInstanceDestroy = NULL +cdef void* __nvmlDeviceGetGpuInstances = NULL +cdef void* __nvmlDeviceGetGpuInstanceById = NULL +cdef void* __nvmlGpuInstanceGetInfo = NULL +cdef void* __nvmlGpuInstanceGetComputeInstanceProfileInfoV = NULL +cdef void* __nvmlGpuInstanceGetComputeInstanceRemainingCapacity = NULL +cdef void* __nvmlGpuInstanceGetComputeInstancePossiblePlacements = NULL +cdef void* __nvmlGpuInstanceCreateComputeInstance = NULL +cdef void* __nvmlGpuInstanceCreateComputeInstanceWithPlacement = NULL +cdef void* __nvmlComputeInstanceDestroy = NULL +cdef void* __nvmlGpuInstanceGetComputeInstances = NULL +cdef void* __nvmlGpuInstanceGetComputeInstanceById = NULL +cdef void* __nvmlComputeInstanceGetInfo_v2 = NULL +cdef void* __nvmlDeviceIsMigDeviceHandle = NULL +cdef void* __nvmlDeviceGetGpuInstanceId = NULL +cdef void* __nvmlDeviceGetComputeInstanceId = NULL +cdef void* __nvmlDeviceGetMaxMigDeviceCount = NULL +cdef void* __nvmlDeviceGetMigDeviceHandleByIndex = NULL +cdef void* __nvmlDeviceGetDeviceHandleFromMigDeviceHandle = NULL +cdef void* __nvmlDeviceGetCapabilities = NULL +cdef void* __nvmlDevicePowerSmoothingActivatePresetProfile = NULL +cdef void* __nvmlDevicePowerSmoothingUpdatePresetProfileParam = NULL +cdef void* __nvmlDevicePowerSmoothingSetState = NULL +cdef void* __nvmlDeviceGetAddressingMode = NULL +cdef void* __nvmlDeviceGetRepairStatus = NULL +cdef void* __nvmlDeviceGetPowerMizerMode_v1 = NULL +cdef void* __nvmlDeviceSetPowerMizerMode_v1 = NULL +cdef void* __nvmlDeviceGetPdi = NULL +cdef void* __nvmlDeviceSetHostname_v1 = NULL +cdef void* __nvmlDeviceGetHostname_v1 = NULL +cdef void* __nvmlDeviceGetNvLinkInfo = NULL +cdef void* __nvmlDeviceReadWritePRM_v1 = NULL +cdef void* __nvmlDeviceGetGpuInstanceProfileInfoByIdV = NULL +cdef void* __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts = NULL +cdef void* __nvmlDeviceGetUnrepairableMemoryFlag_v1 = NULL +cdef void* __nvmlDeviceReadPRMCounters_v1 = NULL +cdef void* __nvmlDeviceSetRusdSettings_v1 = NULL +cdef void* __nvmlDeviceVgpuForceGspUnload = NULL +cdef void* __nvmlDeviceGetVgpuSchedulerState_v2 = NULL +cdef void* __nvmlGpuInstanceGetVgpuSchedulerState_v2 = NULL +cdef void* __nvmlDeviceGetVgpuSchedulerLog_v2 = NULL +cdef void* __nvmlGpuInstanceGetVgpuSchedulerLog_v2 = NULL +cdef void* __nvmlDeviceSetVgpuSchedulerState_v2 = NULL +cdef void* __nvmlGpuInstanceSetVgpuSchedulerState_v2 = NULL +cdef void* __nvmlSystemGetCPER_v1 = NULL +cdef void* __nvmlDeviceGetBBXTimeData_v1 = NULL +cdef void* __nvmlDeviceGetAccountingStats_v2 = NULL +cdef void* __nvmlDeviceGetRemappedRows_v2 = NULL +cdef void* __nvmlDeviceSetAdaptiveTgpMode_v1 = NULL +cdef void* __nvmlDeviceGetAdaptiveTgpModeInfo_v1 = NULL +cdef void* __nvmlDeviceSetMemoryLimits_v1 = NULL +cdef void* __nvmlDeviceGetMemoryLimits_v1 = NULL +cdef void* __nvmlDeviceGetGpuFabricInfo_v4 = NULL +cdef void* __nvmlDevicePerfMetricsGetSamples_v1 = NULL +cdef void* __nvmlDeviceSetNvlinkBwModeAsync_v1 = NULL +cdef void* __nvmlDeviceGetNvLinkTelemetrySamples_v1 = NULL +cdef void* __nvmlEventSetRegisterGpuOperationalEvents_v1 = NULL +cdef void* __nvmlEventSetWait_v3 = NULL +cdef void* __nvmlEventSetGetContextCount_v1 = NULL +cdef void* __nvmlEventSetGetContextInfo_v1 = NULL +cdef void* __nvmlEventSetGetContextData_v1 = NULL +cdef void* __nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1 = NULL +cdef void* __nvmlDeviceGetBankRemapperStatus_v1 = NULL +cdef void* __nvmlDeviceGetGpuUptime_v1 = NULL +cdef void* __nvmlSystemGetConfComputeSettings_v2 = NULL +cdef void* __nvmlDeviceGetNvLinkInfo_v3 = NULL +cdef void* __nvmlDeviceGetNvlinkRemapTableInfo_v1 = NULL +cdef void* __nvmlDeviceSetNvlinkNvleReady_v1 = NULL +cdef void* __nvmlDeviceLockNvlinkRemapTable_v1 = NULL +cdef void* __nvmlDeviceSetupNvlinkNvleEncryptionKey_v1 = NULL +cdef void* __nvmlDeviceGetNvlinkNvlePrivateInfo_v1 = NULL + +cdef enum: _cyb_nvml_n_functions = 378 +cdef void** _cyb_nvml_slots[_cyb_nvml_n_functions] +cdef const char* _cyb_nvml_names[_cyb_nvml_n_functions] +_cyb_nvml_slots[0] = &__nvmlInit_v2; _cyb_nvml_names[0] = b'nvmlInit_v2' +_cyb_nvml_slots[1] = &__nvmlInitWithFlags; _cyb_nvml_names[1] = b'nvmlInitWithFlags' +_cyb_nvml_slots[2] = &__nvmlShutdown; _cyb_nvml_names[2] = b'nvmlShutdown' +_cyb_nvml_slots[3] = &__nvmlErrorString; _cyb_nvml_names[3] = b'nvmlErrorString' +_cyb_nvml_slots[4] = &__nvmlSystemGetDriverVersion; _cyb_nvml_names[4] = b'nvmlSystemGetDriverVersion' +_cyb_nvml_slots[5] = &__nvmlSystemGetNVMLVersion; _cyb_nvml_names[5] = b'nvmlSystemGetNVMLVersion' +_cyb_nvml_slots[6] = &__nvmlSystemGetCudaDriverVersion; _cyb_nvml_names[6] = b'nvmlSystemGetCudaDriverVersion' +_cyb_nvml_slots[7] = &__nvmlSystemGetCudaDriverVersion_v2; _cyb_nvml_names[7] = b'nvmlSystemGetCudaDriverVersion_v2' +_cyb_nvml_slots[8] = &__nvmlSystemGetProcessName; _cyb_nvml_names[8] = b'nvmlSystemGetProcessName' +_cyb_nvml_slots[9] = &__nvmlSystemGetHicVersion; _cyb_nvml_names[9] = b'nvmlSystemGetHicVersion' +_cyb_nvml_slots[10] = &__nvmlSystemGetTopologyGpuSet; _cyb_nvml_names[10] = b'nvmlSystemGetTopologyGpuSet' +_cyb_nvml_slots[11] = &__nvmlSystemGetDriverBranch; _cyb_nvml_names[11] = b'nvmlSystemGetDriverBranch' +_cyb_nvml_slots[12] = &__nvmlUnitGetCount; _cyb_nvml_names[12] = b'nvmlUnitGetCount' +_cyb_nvml_slots[13] = &__nvmlUnitGetHandleByIndex; _cyb_nvml_names[13] = b'nvmlUnitGetHandleByIndex' +_cyb_nvml_slots[14] = &__nvmlUnitGetUnitInfo; _cyb_nvml_names[14] = b'nvmlUnitGetUnitInfo' +_cyb_nvml_slots[15] = &__nvmlUnitGetLedState; _cyb_nvml_names[15] = b'nvmlUnitGetLedState' +_cyb_nvml_slots[16] = &__nvmlUnitGetPsuInfo; _cyb_nvml_names[16] = b'nvmlUnitGetPsuInfo' +_cyb_nvml_slots[17] = &__nvmlUnitGetTemperature; _cyb_nvml_names[17] = b'nvmlUnitGetTemperature' +_cyb_nvml_slots[18] = &__nvmlUnitGetFanSpeedInfo; _cyb_nvml_names[18] = b'nvmlUnitGetFanSpeedInfo' +_cyb_nvml_slots[19] = &__nvmlUnitGetDevices; _cyb_nvml_names[19] = b'nvmlUnitGetDevices' +_cyb_nvml_slots[20] = &__nvmlDeviceGetCount_v2; _cyb_nvml_names[20] = b'nvmlDeviceGetCount_v2' +_cyb_nvml_slots[21] = &__nvmlDeviceGetAttributes_v2; _cyb_nvml_names[21] = b'nvmlDeviceGetAttributes_v2' +_cyb_nvml_slots[22] = &__nvmlDeviceGetHandleByIndex_v2; _cyb_nvml_names[22] = b'nvmlDeviceGetHandleByIndex_v2' +_cyb_nvml_slots[23] = &__nvmlDeviceGetHandleBySerial; _cyb_nvml_names[23] = b'nvmlDeviceGetHandleBySerial' +_cyb_nvml_slots[24] = &__nvmlDeviceGetHandleByUUID; _cyb_nvml_names[24] = b'nvmlDeviceGetHandleByUUID' +_cyb_nvml_slots[25] = &__nvmlDeviceGetHandleByUUIDV; _cyb_nvml_names[25] = b'nvmlDeviceGetHandleByUUIDV' +_cyb_nvml_slots[26] = &__nvmlDeviceGetHandleByPciBusId_v2; _cyb_nvml_names[26] = b'nvmlDeviceGetHandleByPciBusId_v2' +_cyb_nvml_slots[27] = &__nvmlDeviceGetName; _cyb_nvml_names[27] = b'nvmlDeviceGetName' +_cyb_nvml_slots[28] = &__nvmlDeviceGetBrand; _cyb_nvml_names[28] = b'nvmlDeviceGetBrand' +_cyb_nvml_slots[29] = &__nvmlDeviceGetIndex; _cyb_nvml_names[29] = b'nvmlDeviceGetIndex' +_cyb_nvml_slots[30] = &__nvmlDeviceGetSerial; _cyb_nvml_names[30] = b'nvmlDeviceGetSerial' +_cyb_nvml_slots[31] = &__nvmlDeviceGetModuleId; _cyb_nvml_names[31] = b'nvmlDeviceGetModuleId' +_cyb_nvml_slots[32] = &__nvmlDeviceGetC2cModeInfoV; _cyb_nvml_names[32] = b'nvmlDeviceGetC2cModeInfoV' +_cyb_nvml_slots[33] = &__nvmlDeviceGetMemoryAffinity; _cyb_nvml_names[33] = b'nvmlDeviceGetMemoryAffinity' +_cyb_nvml_slots[34] = &__nvmlDeviceGetCpuAffinityWithinScope; _cyb_nvml_names[34] = b'nvmlDeviceGetCpuAffinityWithinScope' +_cyb_nvml_slots[35] = &__nvmlDeviceGetCpuAffinity; _cyb_nvml_names[35] = b'nvmlDeviceGetCpuAffinity' +_cyb_nvml_slots[36] = &__nvmlDeviceSetCpuAffinity; _cyb_nvml_names[36] = b'nvmlDeviceSetCpuAffinity' +_cyb_nvml_slots[37] = &__nvmlDeviceClearCpuAffinity; _cyb_nvml_names[37] = b'nvmlDeviceClearCpuAffinity' +_cyb_nvml_slots[38] = &__nvmlDeviceGetNumaNodeId; _cyb_nvml_names[38] = b'nvmlDeviceGetNumaNodeId' +_cyb_nvml_slots[39] = &__nvmlDeviceGetTopologyCommonAncestor; _cyb_nvml_names[39] = b'nvmlDeviceGetTopologyCommonAncestor' +_cyb_nvml_slots[40] = &__nvmlDeviceGetTopologyNearestGpus; _cyb_nvml_names[40] = b'nvmlDeviceGetTopologyNearestGpus' +_cyb_nvml_slots[41] = &__nvmlDeviceGetP2PStatus; _cyb_nvml_names[41] = b'nvmlDeviceGetP2PStatus' +_cyb_nvml_slots[42] = &__nvmlDeviceGetUUID; _cyb_nvml_names[42] = b'nvmlDeviceGetUUID' +_cyb_nvml_slots[43] = &__nvmlDeviceGetMinorNumber; _cyb_nvml_names[43] = b'nvmlDeviceGetMinorNumber' +_cyb_nvml_slots[44] = &__nvmlDeviceGetBoardPartNumber; _cyb_nvml_names[44] = b'nvmlDeviceGetBoardPartNumber' +_cyb_nvml_slots[45] = &__nvmlDeviceGetInforomVersion; _cyb_nvml_names[45] = b'nvmlDeviceGetInforomVersion' +_cyb_nvml_slots[46] = &__nvmlDeviceGetInforomImageVersion; _cyb_nvml_names[46] = b'nvmlDeviceGetInforomImageVersion' +_cyb_nvml_slots[47] = &__nvmlDeviceGetInforomConfigurationChecksum; _cyb_nvml_names[47] = b'nvmlDeviceGetInforomConfigurationChecksum' +_cyb_nvml_slots[48] = &__nvmlDeviceValidateInforom; _cyb_nvml_names[48] = b'nvmlDeviceValidateInforom' +_cyb_nvml_slots[49] = &__nvmlDeviceGetLastBBXFlushTime; _cyb_nvml_names[49] = b'nvmlDeviceGetLastBBXFlushTime' +_cyb_nvml_slots[50] = &__nvmlDeviceGetDisplayMode; _cyb_nvml_names[50] = b'nvmlDeviceGetDisplayMode' +_cyb_nvml_slots[51] = &__nvmlDeviceGetDisplayActive; _cyb_nvml_names[51] = b'nvmlDeviceGetDisplayActive' +_cyb_nvml_slots[52] = &__nvmlDeviceGetPersistenceMode; _cyb_nvml_names[52] = b'nvmlDeviceGetPersistenceMode' +_cyb_nvml_slots[53] = &__nvmlDeviceGetPciInfoExt; _cyb_nvml_names[53] = b'nvmlDeviceGetPciInfoExt' +_cyb_nvml_slots[54] = &__nvmlDeviceGetPciInfo_v3; _cyb_nvml_names[54] = b'nvmlDeviceGetPciInfo_v3' +_cyb_nvml_slots[55] = &__nvmlDeviceGetMaxPcieLinkGeneration; _cyb_nvml_names[55] = b'nvmlDeviceGetMaxPcieLinkGeneration' +_cyb_nvml_slots[56] = &__nvmlDeviceGetGpuMaxPcieLinkGeneration; _cyb_nvml_names[56] = b'nvmlDeviceGetGpuMaxPcieLinkGeneration' +_cyb_nvml_slots[57] = &__nvmlDeviceGetMaxPcieLinkWidth; _cyb_nvml_names[57] = b'nvmlDeviceGetMaxPcieLinkWidth' +_cyb_nvml_slots[58] = &__nvmlDeviceGetCurrPcieLinkGeneration; _cyb_nvml_names[58] = b'nvmlDeviceGetCurrPcieLinkGeneration' +_cyb_nvml_slots[59] = &__nvmlDeviceGetCurrPcieLinkWidth; _cyb_nvml_names[59] = b'nvmlDeviceGetCurrPcieLinkWidth' +_cyb_nvml_slots[60] = &__nvmlDeviceGetPcieThroughput; _cyb_nvml_names[60] = b'nvmlDeviceGetPcieThroughput' +_cyb_nvml_slots[61] = &__nvmlDeviceGetPcieReplayCounter; _cyb_nvml_names[61] = b'nvmlDeviceGetPcieReplayCounter' +_cyb_nvml_slots[62] = &__nvmlDeviceGetClockInfo; _cyb_nvml_names[62] = b'nvmlDeviceGetClockInfo' +_cyb_nvml_slots[63] = &__nvmlDeviceGetMaxClockInfo; _cyb_nvml_names[63] = b'nvmlDeviceGetMaxClockInfo' +_cyb_nvml_slots[64] = &__nvmlDeviceGetGpcClkVfOffset; _cyb_nvml_names[64] = b'nvmlDeviceGetGpcClkVfOffset' +_cyb_nvml_slots[65] = &__nvmlDeviceGetClock; _cyb_nvml_names[65] = b'nvmlDeviceGetClock' +_cyb_nvml_slots[66] = &__nvmlDeviceGetMaxCustomerBoostClock; _cyb_nvml_names[66] = b'nvmlDeviceGetMaxCustomerBoostClock' +_cyb_nvml_slots[67] = &__nvmlDeviceGetSupportedMemoryClocks; _cyb_nvml_names[67] = b'nvmlDeviceGetSupportedMemoryClocks' +_cyb_nvml_slots[68] = &__nvmlDeviceGetSupportedGraphicsClocks; _cyb_nvml_names[68] = b'nvmlDeviceGetSupportedGraphicsClocks' +_cyb_nvml_slots[69] = &__nvmlDeviceGetAutoBoostedClocksEnabled; _cyb_nvml_names[69] = b'nvmlDeviceGetAutoBoostedClocksEnabled' +_cyb_nvml_slots[70] = &__nvmlDeviceGetFanSpeed; _cyb_nvml_names[70] = b'nvmlDeviceGetFanSpeed' +_cyb_nvml_slots[71] = &__nvmlDeviceGetFanSpeed_v2; _cyb_nvml_names[71] = b'nvmlDeviceGetFanSpeed_v2' +_cyb_nvml_slots[72] = &__nvmlDeviceGetFanSpeedRPM; _cyb_nvml_names[72] = b'nvmlDeviceGetFanSpeedRPM' +_cyb_nvml_slots[73] = &__nvmlDeviceGetTargetFanSpeed; _cyb_nvml_names[73] = b'nvmlDeviceGetTargetFanSpeed' +_cyb_nvml_slots[74] = &__nvmlDeviceGetMinMaxFanSpeed; _cyb_nvml_names[74] = b'nvmlDeviceGetMinMaxFanSpeed' +_cyb_nvml_slots[75] = &__nvmlDeviceGetFanControlPolicy_v2; _cyb_nvml_names[75] = b'nvmlDeviceGetFanControlPolicy_v2' +_cyb_nvml_slots[76] = &__nvmlDeviceGetNumFans; _cyb_nvml_names[76] = b'nvmlDeviceGetNumFans' +_cyb_nvml_slots[77] = &__nvmlDeviceGetCoolerInfo; _cyb_nvml_names[77] = b'nvmlDeviceGetCoolerInfo' +_cyb_nvml_slots[78] = &__nvmlDeviceGetTemperatureV; _cyb_nvml_names[78] = b'nvmlDeviceGetTemperatureV' +_cyb_nvml_slots[79] = &__nvmlDeviceGetTemperatureThreshold; _cyb_nvml_names[79] = b'nvmlDeviceGetTemperatureThreshold' +_cyb_nvml_slots[80] = &__nvmlDeviceGetMarginTemperature; _cyb_nvml_names[80] = b'nvmlDeviceGetMarginTemperature' +_cyb_nvml_slots[81] = &__nvmlDeviceGetThermalSettings; _cyb_nvml_names[81] = b'nvmlDeviceGetThermalSettings' +_cyb_nvml_slots[82] = &__nvmlDeviceGetPerformanceState; _cyb_nvml_names[82] = b'nvmlDeviceGetPerformanceState' +_cyb_nvml_slots[83] = &__nvmlDeviceGetCurrentClocksEventReasons; _cyb_nvml_names[83] = b'nvmlDeviceGetCurrentClocksEventReasons' +_cyb_nvml_slots[84] = &__nvmlDeviceGetSupportedClocksEventReasons; _cyb_nvml_names[84] = b'nvmlDeviceGetSupportedClocksEventReasons' +_cyb_nvml_slots[85] = &__nvmlDeviceGetPowerState; _cyb_nvml_names[85] = b'nvmlDeviceGetPowerState' +_cyb_nvml_slots[86] = &__nvmlDeviceGetDynamicPstatesInfo; _cyb_nvml_names[86] = b'nvmlDeviceGetDynamicPstatesInfo' +_cyb_nvml_slots[87] = &__nvmlDeviceGetMemClkVfOffset; _cyb_nvml_names[87] = b'nvmlDeviceGetMemClkVfOffset' +_cyb_nvml_slots[88] = &__nvmlDeviceGetMinMaxClockOfPState; _cyb_nvml_names[88] = b'nvmlDeviceGetMinMaxClockOfPState' +_cyb_nvml_slots[89] = &__nvmlDeviceGetSupportedPerformanceStates; _cyb_nvml_names[89] = b'nvmlDeviceGetSupportedPerformanceStates' +_cyb_nvml_slots[90] = &__nvmlDeviceGetGpcClkMinMaxVfOffset; _cyb_nvml_names[90] = b'nvmlDeviceGetGpcClkMinMaxVfOffset' +_cyb_nvml_slots[91] = &__nvmlDeviceGetMemClkMinMaxVfOffset; _cyb_nvml_names[91] = b'nvmlDeviceGetMemClkMinMaxVfOffset' +_cyb_nvml_slots[92] = &__nvmlDeviceGetClockOffsets; _cyb_nvml_names[92] = b'nvmlDeviceGetClockOffsets' +_cyb_nvml_slots[93] = &__nvmlDeviceSetClockOffsets; _cyb_nvml_names[93] = b'nvmlDeviceSetClockOffsets' +_cyb_nvml_slots[94] = &__nvmlDeviceGetPerformanceModes; _cyb_nvml_names[94] = b'nvmlDeviceGetPerformanceModes' +_cyb_nvml_slots[95] = &__nvmlDeviceGetCurrentClockFreqs; _cyb_nvml_names[95] = b'nvmlDeviceGetCurrentClockFreqs' +_cyb_nvml_slots[96] = &__nvmlDeviceGetPowerManagementLimit; _cyb_nvml_names[96] = b'nvmlDeviceGetPowerManagementLimit' +_cyb_nvml_slots[97] = &__nvmlDeviceGetPowerManagementLimitConstraints; _cyb_nvml_names[97] = b'nvmlDeviceGetPowerManagementLimitConstraints' +_cyb_nvml_slots[98] = &__nvmlDeviceGetPowerManagementDefaultLimit; _cyb_nvml_names[98] = b'nvmlDeviceGetPowerManagementDefaultLimit' +_cyb_nvml_slots[99] = &__nvmlDeviceGetPowerUsage; _cyb_nvml_names[99] = b'nvmlDeviceGetPowerUsage' +_cyb_nvml_slots[100] = &__nvmlDeviceGetTotalEnergyConsumption; _cyb_nvml_names[100] = b'nvmlDeviceGetTotalEnergyConsumption' +_cyb_nvml_slots[101] = &__nvmlDeviceGetEnforcedPowerLimit; _cyb_nvml_names[101] = b'nvmlDeviceGetEnforcedPowerLimit' +_cyb_nvml_slots[102] = &__nvmlDeviceGetGpuOperationMode; _cyb_nvml_names[102] = b'nvmlDeviceGetGpuOperationMode' +_cyb_nvml_slots[103] = &__nvmlDeviceGetMemoryInfo_v2; _cyb_nvml_names[103] = b'nvmlDeviceGetMemoryInfo_v2' +_cyb_nvml_slots[104] = &__nvmlDeviceGetComputeMode; _cyb_nvml_names[104] = b'nvmlDeviceGetComputeMode' +_cyb_nvml_slots[105] = &__nvmlDeviceGetCudaComputeCapability; _cyb_nvml_names[105] = b'nvmlDeviceGetCudaComputeCapability' +_cyb_nvml_slots[106] = &__nvmlDeviceGetDramEncryptionMode; _cyb_nvml_names[106] = b'nvmlDeviceGetDramEncryptionMode' +_cyb_nvml_slots[107] = &__nvmlDeviceSetDramEncryptionMode; _cyb_nvml_names[107] = b'nvmlDeviceSetDramEncryptionMode' +_cyb_nvml_slots[108] = &__nvmlDeviceGetEccMode; _cyb_nvml_names[108] = b'nvmlDeviceGetEccMode' +_cyb_nvml_slots[109] = &__nvmlDeviceGetDefaultEccMode; _cyb_nvml_names[109] = b'nvmlDeviceGetDefaultEccMode' +_cyb_nvml_slots[110] = &__nvmlDeviceGetBoardId; _cyb_nvml_names[110] = b'nvmlDeviceGetBoardId' +_cyb_nvml_slots[111] = &__nvmlDeviceGetMultiGpuBoard; _cyb_nvml_names[111] = b'nvmlDeviceGetMultiGpuBoard' +_cyb_nvml_slots[112] = &__nvmlDeviceGetTotalEccErrors; _cyb_nvml_names[112] = b'nvmlDeviceGetTotalEccErrors' +_cyb_nvml_slots[113] = &__nvmlDeviceGetMemoryErrorCounter; _cyb_nvml_names[113] = b'nvmlDeviceGetMemoryErrorCounter' +_cyb_nvml_slots[114] = &__nvmlDeviceGetUtilizationRates; _cyb_nvml_names[114] = b'nvmlDeviceGetUtilizationRates' +_cyb_nvml_slots[115] = &__nvmlDeviceGetEncoderUtilization; _cyb_nvml_names[115] = b'nvmlDeviceGetEncoderUtilization' +_cyb_nvml_slots[116] = &__nvmlDeviceGetEncoderCapacity; _cyb_nvml_names[116] = b'nvmlDeviceGetEncoderCapacity' +_cyb_nvml_slots[117] = &__nvmlDeviceGetEncoderStats; _cyb_nvml_names[117] = b'nvmlDeviceGetEncoderStats' +_cyb_nvml_slots[118] = &__nvmlDeviceGetEncoderSessions; _cyb_nvml_names[118] = b'nvmlDeviceGetEncoderSessions' +_cyb_nvml_slots[119] = &__nvmlDeviceGetDecoderUtilization; _cyb_nvml_names[119] = b'nvmlDeviceGetDecoderUtilization' +_cyb_nvml_slots[120] = &__nvmlDeviceGetJpgUtilization; _cyb_nvml_names[120] = b'nvmlDeviceGetJpgUtilization' +_cyb_nvml_slots[121] = &__nvmlDeviceGetOfaUtilization; _cyb_nvml_names[121] = b'nvmlDeviceGetOfaUtilization' +_cyb_nvml_slots[122] = &__nvmlDeviceGetFBCStats; _cyb_nvml_names[122] = b'nvmlDeviceGetFBCStats' +_cyb_nvml_slots[123] = &__nvmlDeviceGetFBCSessions; _cyb_nvml_names[123] = b'nvmlDeviceGetFBCSessions' +_cyb_nvml_slots[124] = &__nvmlDeviceGetDriverModel_v2; _cyb_nvml_names[124] = b'nvmlDeviceGetDriverModel_v2' +_cyb_nvml_slots[125] = &__nvmlDeviceGetVbiosVersion; _cyb_nvml_names[125] = b'nvmlDeviceGetVbiosVersion' +_cyb_nvml_slots[126] = &__nvmlDeviceGetBridgeChipInfo; _cyb_nvml_names[126] = b'nvmlDeviceGetBridgeChipInfo' +_cyb_nvml_slots[127] = &__nvmlDeviceGetComputeRunningProcesses_v3; _cyb_nvml_names[127] = b'nvmlDeviceGetComputeRunningProcesses_v3' +_cyb_nvml_slots[128] = &__nvmlDeviceGetGraphicsRunningProcesses_v3; _cyb_nvml_names[128] = b'nvmlDeviceGetGraphicsRunningProcesses_v3' +_cyb_nvml_slots[129] = &__nvmlDeviceGetMPSComputeRunningProcesses_v3; _cyb_nvml_names[129] = b'nvmlDeviceGetMPSComputeRunningProcesses_v3' +_cyb_nvml_slots[130] = &__nvmlDeviceGetRunningProcessDetailList; _cyb_nvml_names[130] = b'nvmlDeviceGetRunningProcessDetailList' +_cyb_nvml_slots[131] = &__nvmlDeviceOnSameBoard; _cyb_nvml_names[131] = b'nvmlDeviceOnSameBoard' +_cyb_nvml_slots[132] = &__nvmlDeviceGetAPIRestriction; _cyb_nvml_names[132] = b'nvmlDeviceGetAPIRestriction' +_cyb_nvml_slots[133] = &__nvmlDeviceGetSamples; _cyb_nvml_names[133] = b'nvmlDeviceGetSamples' +_cyb_nvml_slots[134] = &__nvmlDeviceGetBAR1MemoryInfo; _cyb_nvml_names[134] = b'nvmlDeviceGetBAR1MemoryInfo' +_cyb_nvml_slots[135] = &__nvmlDeviceGetIrqNum; _cyb_nvml_names[135] = b'nvmlDeviceGetIrqNum' +_cyb_nvml_slots[136] = &__nvmlDeviceGetNumGpuCores; _cyb_nvml_names[136] = b'nvmlDeviceGetNumGpuCores' +_cyb_nvml_slots[137] = &__nvmlDeviceGetPowerSource; _cyb_nvml_names[137] = b'nvmlDeviceGetPowerSource' +_cyb_nvml_slots[138] = &__nvmlDeviceGetMemoryBusWidth; _cyb_nvml_names[138] = b'nvmlDeviceGetMemoryBusWidth' +_cyb_nvml_slots[139] = &__nvmlDeviceGetPcieLinkMaxSpeed; _cyb_nvml_names[139] = b'nvmlDeviceGetPcieLinkMaxSpeed' +_cyb_nvml_slots[140] = &__nvmlDeviceGetPcieSpeed; _cyb_nvml_names[140] = b'nvmlDeviceGetPcieSpeed' +_cyb_nvml_slots[141] = &__nvmlDeviceGetAdaptiveClockInfoStatus; _cyb_nvml_names[141] = b'nvmlDeviceGetAdaptiveClockInfoStatus' +_cyb_nvml_slots[142] = &__nvmlDeviceGetBusType; _cyb_nvml_names[142] = b'nvmlDeviceGetBusType' +_cyb_nvml_slots[143] = &__nvmlDeviceGetGpuFabricInfoV; _cyb_nvml_names[143] = b'nvmlDeviceGetGpuFabricInfoV' +_cyb_nvml_slots[144] = &__nvmlSystemGetConfComputeCapabilities; _cyb_nvml_names[144] = b'nvmlSystemGetConfComputeCapabilities' +_cyb_nvml_slots[145] = &__nvmlSystemGetConfComputeState; _cyb_nvml_names[145] = b'nvmlSystemGetConfComputeState' +_cyb_nvml_slots[146] = &__nvmlDeviceGetConfComputeMemSizeInfo; _cyb_nvml_names[146] = b'nvmlDeviceGetConfComputeMemSizeInfo' +_cyb_nvml_slots[147] = &__nvmlSystemGetConfComputeGpusReadyState; _cyb_nvml_names[147] = b'nvmlSystemGetConfComputeGpusReadyState' +_cyb_nvml_slots[148] = &__nvmlDeviceGetConfComputeProtectedMemoryUsage; _cyb_nvml_names[148] = b'nvmlDeviceGetConfComputeProtectedMemoryUsage' +_cyb_nvml_slots[149] = &__nvmlDeviceGetConfComputeGpuCertificate; _cyb_nvml_names[149] = b'nvmlDeviceGetConfComputeGpuCertificate' +_cyb_nvml_slots[150] = &__nvmlDeviceGetConfComputeGpuAttestationReport; _cyb_nvml_names[150] = b'nvmlDeviceGetConfComputeGpuAttestationReport' +_cyb_nvml_slots[151] = &__nvmlSystemGetConfComputeKeyRotationThresholdInfo; _cyb_nvml_names[151] = b'nvmlSystemGetConfComputeKeyRotationThresholdInfo' +_cyb_nvml_slots[152] = &__nvmlDeviceSetConfComputeUnprotectedMemSize; _cyb_nvml_names[152] = b'nvmlDeviceSetConfComputeUnprotectedMemSize' +_cyb_nvml_slots[153] = &__nvmlSystemSetConfComputeGpusReadyState; _cyb_nvml_names[153] = b'nvmlSystemSetConfComputeGpusReadyState' +_cyb_nvml_slots[154] = &__nvmlSystemSetConfComputeKeyRotationThresholdInfo; _cyb_nvml_names[154] = b'nvmlSystemSetConfComputeKeyRotationThresholdInfo' +_cyb_nvml_slots[155] = &__nvmlSystemGetConfComputeSettings; _cyb_nvml_names[155] = b'nvmlSystemGetConfComputeSettings' +_cyb_nvml_slots[156] = &__nvmlDeviceGetGspFirmwareVersion; _cyb_nvml_names[156] = b'nvmlDeviceGetGspFirmwareVersion' +_cyb_nvml_slots[157] = &__nvmlDeviceGetGspFirmwareMode; _cyb_nvml_names[157] = b'nvmlDeviceGetGspFirmwareMode' +_cyb_nvml_slots[158] = &__nvmlDeviceGetSramEccErrorStatus; _cyb_nvml_names[158] = b'nvmlDeviceGetSramEccErrorStatus' +_cyb_nvml_slots[159] = &__nvmlDeviceGetAccountingMode; _cyb_nvml_names[159] = b'nvmlDeviceGetAccountingMode' +_cyb_nvml_slots[160] = &__nvmlDeviceGetAccountingStats; _cyb_nvml_names[160] = b'nvmlDeviceGetAccountingStats' +_cyb_nvml_slots[161] = &__nvmlDeviceGetAccountingPids; _cyb_nvml_names[161] = b'nvmlDeviceGetAccountingPids' +_cyb_nvml_slots[162] = &__nvmlDeviceGetAccountingBufferSize; _cyb_nvml_names[162] = b'nvmlDeviceGetAccountingBufferSize' +_cyb_nvml_slots[163] = &__nvmlDeviceGetRetiredPages; _cyb_nvml_names[163] = b'nvmlDeviceGetRetiredPages' +_cyb_nvml_slots[164] = &__nvmlDeviceGetRetiredPages_v2; _cyb_nvml_names[164] = b'nvmlDeviceGetRetiredPages_v2' +_cyb_nvml_slots[165] = &__nvmlDeviceGetRetiredPagesPendingStatus; _cyb_nvml_names[165] = b'nvmlDeviceGetRetiredPagesPendingStatus' +_cyb_nvml_slots[166] = &__nvmlDeviceGetRemappedRows; _cyb_nvml_names[166] = b'nvmlDeviceGetRemappedRows' +_cyb_nvml_slots[167] = &__nvmlDeviceGetRowRemapperHistogram; _cyb_nvml_names[167] = b'nvmlDeviceGetRowRemapperHistogram' +_cyb_nvml_slots[168] = &__nvmlDeviceGetArchitecture; _cyb_nvml_names[168] = b'nvmlDeviceGetArchitecture' +_cyb_nvml_slots[169] = &__nvmlDeviceGetClkMonStatus; _cyb_nvml_names[169] = b'nvmlDeviceGetClkMonStatus' +_cyb_nvml_slots[170] = &__nvmlDeviceGetProcessUtilization; _cyb_nvml_names[170] = b'nvmlDeviceGetProcessUtilization' +_cyb_nvml_slots[171] = &__nvmlDeviceGetProcessesUtilizationInfo; _cyb_nvml_names[171] = b'nvmlDeviceGetProcessesUtilizationInfo' +_cyb_nvml_slots[172] = &__nvmlDeviceGetPlatformInfo; _cyb_nvml_names[172] = b'nvmlDeviceGetPlatformInfo' +_cyb_nvml_slots[173] = &__nvmlUnitSetLedState; _cyb_nvml_names[173] = b'nvmlUnitSetLedState' +_cyb_nvml_slots[174] = &__nvmlDeviceSetPersistenceMode; _cyb_nvml_names[174] = b'nvmlDeviceSetPersistenceMode' +_cyb_nvml_slots[175] = &__nvmlDeviceSetComputeMode; _cyb_nvml_names[175] = b'nvmlDeviceSetComputeMode' +_cyb_nvml_slots[176] = &__nvmlDeviceSetEccMode; _cyb_nvml_names[176] = b'nvmlDeviceSetEccMode' +_cyb_nvml_slots[177] = &__nvmlDeviceClearEccErrorCounts; _cyb_nvml_names[177] = b'nvmlDeviceClearEccErrorCounts' +_cyb_nvml_slots[178] = &__nvmlDeviceSetDriverModel; _cyb_nvml_names[178] = b'nvmlDeviceSetDriverModel' +_cyb_nvml_slots[179] = &__nvmlDeviceSetGpuLockedClocks; _cyb_nvml_names[179] = b'nvmlDeviceSetGpuLockedClocks' +_cyb_nvml_slots[180] = &__nvmlDeviceResetGpuLockedClocks; _cyb_nvml_names[180] = b'nvmlDeviceResetGpuLockedClocks' +_cyb_nvml_slots[181] = &__nvmlDeviceSetMemoryLockedClocks; _cyb_nvml_names[181] = b'nvmlDeviceSetMemoryLockedClocks' +_cyb_nvml_slots[182] = &__nvmlDeviceResetMemoryLockedClocks; _cyb_nvml_names[182] = b'nvmlDeviceResetMemoryLockedClocks' +_cyb_nvml_slots[183] = &__nvmlDeviceSetAutoBoostedClocksEnabled; _cyb_nvml_names[183] = b'nvmlDeviceSetAutoBoostedClocksEnabled' +_cyb_nvml_slots[184] = &__nvmlDeviceSetDefaultAutoBoostedClocksEnabled; _cyb_nvml_names[184] = b'nvmlDeviceSetDefaultAutoBoostedClocksEnabled' +_cyb_nvml_slots[185] = &__nvmlDeviceSetDefaultFanSpeed_v2; _cyb_nvml_names[185] = b'nvmlDeviceSetDefaultFanSpeed_v2' +_cyb_nvml_slots[186] = &__nvmlDeviceSetFanControlPolicy; _cyb_nvml_names[186] = b'nvmlDeviceSetFanControlPolicy' +_cyb_nvml_slots[187] = &__nvmlDeviceSetTemperatureThreshold; _cyb_nvml_names[187] = b'nvmlDeviceSetTemperatureThreshold' +_cyb_nvml_slots[188] = &__nvmlDeviceSetGpuOperationMode; _cyb_nvml_names[188] = b'nvmlDeviceSetGpuOperationMode' +_cyb_nvml_slots[189] = &__nvmlDeviceSetAPIRestriction; _cyb_nvml_names[189] = b'nvmlDeviceSetAPIRestriction' +_cyb_nvml_slots[190] = &__nvmlDeviceSetFanSpeed_v2; _cyb_nvml_names[190] = b'nvmlDeviceSetFanSpeed_v2' +_cyb_nvml_slots[191] = &__nvmlDeviceSetAccountingMode; _cyb_nvml_names[191] = b'nvmlDeviceSetAccountingMode' +_cyb_nvml_slots[192] = &__nvmlDeviceClearAccountingPids; _cyb_nvml_names[192] = b'nvmlDeviceClearAccountingPids' +_cyb_nvml_slots[193] = &__nvmlDeviceSetPowerManagementLimit_v2; _cyb_nvml_names[193] = b'nvmlDeviceSetPowerManagementLimit_v2' +_cyb_nvml_slots[194] = &__nvmlDeviceGetNvLinkState; _cyb_nvml_names[194] = b'nvmlDeviceGetNvLinkState' +_cyb_nvml_slots[195] = &__nvmlDeviceGetNvLinkVersion; _cyb_nvml_names[195] = b'nvmlDeviceGetNvLinkVersion' +_cyb_nvml_slots[196] = &__nvmlDeviceGetNvLinkCapability; _cyb_nvml_names[196] = b'nvmlDeviceGetNvLinkCapability' +_cyb_nvml_slots[197] = &__nvmlDeviceGetNvLinkRemotePciInfo_v2; _cyb_nvml_names[197] = b'nvmlDeviceGetNvLinkRemotePciInfo_v2' +_cyb_nvml_slots[198] = &__nvmlDeviceGetNvLinkErrorCounter; _cyb_nvml_names[198] = b'nvmlDeviceGetNvLinkErrorCounter' +_cyb_nvml_slots[199] = &__nvmlDeviceResetNvLinkErrorCounters; _cyb_nvml_names[199] = b'nvmlDeviceResetNvLinkErrorCounters' +_cyb_nvml_slots[200] = &__nvmlDeviceGetNvLinkRemoteDeviceType; _cyb_nvml_names[200] = b'nvmlDeviceGetNvLinkRemoteDeviceType' +_cyb_nvml_slots[201] = &__nvmlDeviceSetNvLinkDeviceLowPowerThreshold; _cyb_nvml_names[201] = b'nvmlDeviceSetNvLinkDeviceLowPowerThreshold' +_cyb_nvml_slots[202] = &__nvmlSystemSetNvlinkBwMode; _cyb_nvml_names[202] = b'nvmlSystemSetNvlinkBwMode' +_cyb_nvml_slots[203] = &__nvmlSystemGetNvlinkBwMode; _cyb_nvml_names[203] = b'nvmlSystemGetNvlinkBwMode' +_cyb_nvml_slots[204] = &__nvmlDeviceGetNvlinkSupportedBwModes; _cyb_nvml_names[204] = b'nvmlDeviceGetNvlinkSupportedBwModes' +_cyb_nvml_slots[205] = &__nvmlDeviceGetNvlinkBwMode; _cyb_nvml_names[205] = b'nvmlDeviceGetNvlinkBwMode' +_cyb_nvml_slots[206] = &__nvmlDeviceSetNvlinkBwMode; _cyb_nvml_names[206] = b'nvmlDeviceSetNvlinkBwMode' +_cyb_nvml_slots[207] = &__nvmlEventSetCreate; _cyb_nvml_names[207] = b'nvmlEventSetCreate' +_cyb_nvml_slots[208] = &__nvmlDeviceRegisterEvents; _cyb_nvml_names[208] = b'nvmlDeviceRegisterEvents' +_cyb_nvml_slots[209] = &__nvmlDeviceGetSupportedEventTypes; _cyb_nvml_names[209] = b'nvmlDeviceGetSupportedEventTypes' +_cyb_nvml_slots[210] = &__nvmlEventSetWait_v2; _cyb_nvml_names[210] = b'nvmlEventSetWait_v2' +_cyb_nvml_slots[211] = &__nvmlEventSetFree; _cyb_nvml_names[211] = b'nvmlEventSetFree' +_cyb_nvml_slots[212] = &__nvmlSystemEventSetCreate; _cyb_nvml_names[212] = b'nvmlSystemEventSetCreate' +_cyb_nvml_slots[213] = &__nvmlSystemEventSetFree; _cyb_nvml_names[213] = b'nvmlSystemEventSetFree' +_cyb_nvml_slots[214] = &__nvmlSystemRegisterEvents; _cyb_nvml_names[214] = b'nvmlSystemRegisterEvents' +_cyb_nvml_slots[215] = &__nvmlSystemEventSetWait; _cyb_nvml_names[215] = b'nvmlSystemEventSetWait' +_cyb_nvml_slots[216] = &__nvmlDeviceModifyDrainState; _cyb_nvml_names[216] = b'nvmlDeviceModifyDrainState' +_cyb_nvml_slots[217] = &__nvmlDeviceQueryDrainState; _cyb_nvml_names[217] = b'nvmlDeviceQueryDrainState' +_cyb_nvml_slots[218] = &__nvmlDeviceRemoveGpu_v2; _cyb_nvml_names[218] = b'nvmlDeviceRemoveGpu_v2' +_cyb_nvml_slots[219] = &__nvmlDeviceDiscoverGpus; _cyb_nvml_names[219] = b'nvmlDeviceDiscoverGpus' +_cyb_nvml_slots[220] = &__nvmlDeviceGetFieldValues; _cyb_nvml_names[220] = b'nvmlDeviceGetFieldValues' +_cyb_nvml_slots[221] = &__nvmlDeviceClearFieldValues; _cyb_nvml_names[221] = b'nvmlDeviceClearFieldValues' +_cyb_nvml_slots[222] = &__nvmlDeviceGetVirtualizationMode; _cyb_nvml_names[222] = b'nvmlDeviceGetVirtualizationMode' +_cyb_nvml_slots[223] = &__nvmlDeviceGetHostVgpuMode; _cyb_nvml_names[223] = b'nvmlDeviceGetHostVgpuMode' +_cyb_nvml_slots[224] = &__nvmlDeviceSetVirtualizationMode; _cyb_nvml_names[224] = b'nvmlDeviceSetVirtualizationMode' +_cyb_nvml_slots[225] = &__nvmlDeviceGetVgpuHeterogeneousMode; _cyb_nvml_names[225] = b'nvmlDeviceGetVgpuHeterogeneousMode' +_cyb_nvml_slots[226] = &__nvmlDeviceSetVgpuHeterogeneousMode; _cyb_nvml_names[226] = b'nvmlDeviceSetVgpuHeterogeneousMode' +_cyb_nvml_slots[227] = &__nvmlVgpuInstanceGetPlacementId; _cyb_nvml_names[227] = b'nvmlVgpuInstanceGetPlacementId' +_cyb_nvml_slots[228] = &__nvmlDeviceGetVgpuTypeSupportedPlacements; _cyb_nvml_names[228] = b'nvmlDeviceGetVgpuTypeSupportedPlacements' +_cyb_nvml_slots[229] = &__nvmlDeviceGetVgpuTypeCreatablePlacements; _cyb_nvml_names[229] = b'nvmlDeviceGetVgpuTypeCreatablePlacements' +_cyb_nvml_slots[230] = &__nvmlVgpuTypeGetGspHeapSize; _cyb_nvml_names[230] = b'nvmlVgpuTypeGetGspHeapSize' +_cyb_nvml_slots[231] = &__nvmlVgpuTypeGetFbReservation; _cyb_nvml_names[231] = b'nvmlVgpuTypeGetFbReservation' +_cyb_nvml_slots[232] = &__nvmlVgpuInstanceGetRuntimeStateSize; _cyb_nvml_names[232] = b'nvmlVgpuInstanceGetRuntimeStateSize' +_cyb_nvml_slots[233] = &__nvmlDeviceSetVgpuCapabilities; _cyb_nvml_names[233] = b'nvmlDeviceSetVgpuCapabilities' +_cyb_nvml_slots[234] = &__nvmlDeviceGetGridLicensableFeatures_v4; _cyb_nvml_names[234] = b'nvmlDeviceGetGridLicensableFeatures_v4' +_cyb_nvml_slots[235] = &__nvmlGetVgpuDriverCapabilities; _cyb_nvml_names[235] = b'nvmlGetVgpuDriverCapabilities' +_cyb_nvml_slots[236] = &__nvmlDeviceGetVgpuCapabilities; _cyb_nvml_names[236] = b'nvmlDeviceGetVgpuCapabilities' +_cyb_nvml_slots[237] = &__nvmlDeviceGetSupportedVgpus; _cyb_nvml_names[237] = b'nvmlDeviceGetSupportedVgpus' +_cyb_nvml_slots[238] = &__nvmlDeviceGetCreatableVgpus; _cyb_nvml_names[238] = b'nvmlDeviceGetCreatableVgpus' +_cyb_nvml_slots[239] = &__nvmlVgpuTypeGetClass; _cyb_nvml_names[239] = b'nvmlVgpuTypeGetClass' +_cyb_nvml_slots[240] = &__nvmlVgpuTypeGetName; _cyb_nvml_names[240] = b'nvmlVgpuTypeGetName' +_cyb_nvml_slots[241] = &__nvmlVgpuTypeGetGpuInstanceProfileId; _cyb_nvml_names[241] = b'nvmlVgpuTypeGetGpuInstanceProfileId' +_cyb_nvml_slots[242] = &__nvmlVgpuTypeGetDeviceID; _cyb_nvml_names[242] = b'nvmlVgpuTypeGetDeviceID' +_cyb_nvml_slots[243] = &__nvmlVgpuTypeGetFramebufferSize; _cyb_nvml_names[243] = b'nvmlVgpuTypeGetFramebufferSize' +_cyb_nvml_slots[244] = &__nvmlVgpuTypeGetNumDisplayHeads; _cyb_nvml_names[244] = b'nvmlVgpuTypeGetNumDisplayHeads' +_cyb_nvml_slots[245] = &__nvmlVgpuTypeGetResolution; _cyb_nvml_names[245] = b'nvmlVgpuTypeGetResolution' +_cyb_nvml_slots[246] = &__nvmlVgpuTypeGetLicense; _cyb_nvml_names[246] = b'nvmlVgpuTypeGetLicense' +_cyb_nvml_slots[247] = &__nvmlVgpuTypeGetFrameRateLimit; _cyb_nvml_names[247] = b'nvmlVgpuTypeGetFrameRateLimit' +_cyb_nvml_slots[248] = &__nvmlVgpuTypeGetMaxInstances; _cyb_nvml_names[248] = b'nvmlVgpuTypeGetMaxInstances' +_cyb_nvml_slots[249] = &__nvmlVgpuTypeGetMaxInstancesPerVm; _cyb_nvml_names[249] = b'nvmlVgpuTypeGetMaxInstancesPerVm' +_cyb_nvml_slots[250] = &__nvmlVgpuTypeGetBAR1Info; _cyb_nvml_names[250] = b'nvmlVgpuTypeGetBAR1Info' +_cyb_nvml_slots[251] = &__nvmlDeviceGetActiveVgpus; _cyb_nvml_names[251] = b'nvmlDeviceGetActiveVgpus' +_cyb_nvml_slots[252] = &__nvmlVgpuInstanceGetVmID; _cyb_nvml_names[252] = b'nvmlVgpuInstanceGetVmID' +_cyb_nvml_slots[253] = &__nvmlVgpuInstanceGetUUID; _cyb_nvml_names[253] = b'nvmlVgpuInstanceGetUUID' +_cyb_nvml_slots[254] = &__nvmlVgpuInstanceGetVmDriverVersion; _cyb_nvml_names[254] = b'nvmlVgpuInstanceGetVmDriverVersion' +_cyb_nvml_slots[255] = &__nvmlVgpuInstanceGetFbUsage; _cyb_nvml_names[255] = b'nvmlVgpuInstanceGetFbUsage' +_cyb_nvml_slots[256] = &__nvmlVgpuInstanceGetLicenseStatus; _cyb_nvml_names[256] = b'nvmlVgpuInstanceGetLicenseStatus' +_cyb_nvml_slots[257] = &__nvmlVgpuInstanceGetType; _cyb_nvml_names[257] = b'nvmlVgpuInstanceGetType' +_cyb_nvml_slots[258] = &__nvmlVgpuInstanceGetFrameRateLimit; _cyb_nvml_names[258] = b'nvmlVgpuInstanceGetFrameRateLimit' +_cyb_nvml_slots[259] = &__nvmlVgpuInstanceGetEccMode; _cyb_nvml_names[259] = b'nvmlVgpuInstanceGetEccMode' +_cyb_nvml_slots[260] = &__nvmlVgpuInstanceGetEncoderCapacity; _cyb_nvml_names[260] = b'nvmlVgpuInstanceGetEncoderCapacity' +_cyb_nvml_slots[261] = &__nvmlVgpuInstanceSetEncoderCapacity; _cyb_nvml_names[261] = b'nvmlVgpuInstanceSetEncoderCapacity' +_cyb_nvml_slots[262] = &__nvmlVgpuInstanceGetEncoderStats; _cyb_nvml_names[262] = b'nvmlVgpuInstanceGetEncoderStats' +_cyb_nvml_slots[263] = &__nvmlVgpuInstanceGetEncoderSessions; _cyb_nvml_names[263] = b'nvmlVgpuInstanceGetEncoderSessions' +_cyb_nvml_slots[264] = &__nvmlVgpuInstanceGetFBCStats; _cyb_nvml_names[264] = b'nvmlVgpuInstanceGetFBCStats' +_cyb_nvml_slots[265] = &__nvmlVgpuInstanceGetFBCSessions; _cyb_nvml_names[265] = b'nvmlVgpuInstanceGetFBCSessions' +_cyb_nvml_slots[266] = &__nvmlVgpuInstanceGetGpuInstanceId; _cyb_nvml_names[266] = b'nvmlVgpuInstanceGetGpuInstanceId' +_cyb_nvml_slots[267] = &__nvmlVgpuInstanceGetGpuPciId; _cyb_nvml_names[267] = b'nvmlVgpuInstanceGetGpuPciId' +_cyb_nvml_slots[268] = &__nvmlVgpuTypeGetCapabilities; _cyb_nvml_names[268] = b'nvmlVgpuTypeGetCapabilities' +_cyb_nvml_slots[269] = &__nvmlVgpuInstanceGetMdevUUID; _cyb_nvml_names[269] = b'nvmlVgpuInstanceGetMdevUUID' +_cyb_nvml_slots[270] = &__nvmlGpuInstanceGetCreatableVgpus; _cyb_nvml_names[270] = b'nvmlGpuInstanceGetCreatableVgpus' +_cyb_nvml_slots[271] = &__nvmlVgpuTypeGetMaxInstancesPerGpuInstance; _cyb_nvml_names[271] = b'nvmlVgpuTypeGetMaxInstancesPerGpuInstance' +_cyb_nvml_slots[272] = &__nvmlGpuInstanceGetActiveVgpus; _cyb_nvml_names[272] = b'nvmlGpuInstanceGetActiveVgpus' +_cyb_nvml_slots[273] = &__nvmlGpuInstanceSetVgpuSchedulerState; _cyb_nvml_names[273] = b'nvmlGpuInstanceSetVgpuSchedulerState' +_cyb_nvml_slots[274] = &__nvmlGpuInstanceGetVgpuSchedulerState; _cyb_nvml_names[274] = b'nvmlGpuInstanceGetVgpuSchedulerState' +_cyb_nvml_slots[275] = &__nvmlGpuInstanceGetVgpuSchedulerLog; _cyb_nvml_names[275] = b'nvmlGpuInstanceGetVgpuSchedulerLog' +_cyb_nvml_slots[276] = &__nvmlGpuInstanceGetVgpuTypeCreatablePlacements; _cyb_nvml_names[276] = b'nvmlGpuInstanceGetVgpuTypeCreatablePlacements' +_cyb_nvml_slots[277] = &__nvmlGpuInstanceGetVgpuHeterogeneousMode; _cyb_nvml_names[277] = b'nvmlGpuInstanceGetVgpuHeterogeneousMode' +_cyb_nvml_slots[278] = &__nvmlGpuInstanceSetVgpuHeterogeneousMode; _cyb_nvml_names[278] = b'nvmlGpuInstanceSetVgpuHeterogeneousMode' +_cyb_nvml_slots[279] = &__nvmlVgpuInstanceGetMetadata; _cyb_nvml_names[279] = b'nvmlVgpuInstanceGetMetadata' +_cyb_nvml_slots[280] = &__nvmlDeviceGetVgpuMetadata; _cyb_nvml_names[280] = b'nvmlDeviceGetVgpuMetadata' +_cyb_nvml_slots[281] = &__nvmlGetVgpuCompatibility; _cyb_nvml_names[281] = b'nvmlGetVgpuCompatibility' +_cyb_nvml_slots[282] = &__nvmlDeviceGetPgpuMetadataString; _cyb_nvml_names[282] = b'nvmlDeviceGetPgpuMetadataString' +_cyb_nvml_slots[283] = &__nvmlDeviceGetVgpuSchedulerLog; _cyb_nvml_names[283] = b'nvmlDeviceGetVgpuSchedulerLog' +_cyb_nvml_slots[284] = &__nvmlDeviceGetVgpuSchedulerState; _cyb_nvml_names[284] = b'nvmlDeviceGetVgpuSchedulerState' +_cyb_nvml_slots[285] = &__nvmlDeviceGetVgpuSchedulerCapabilities; _cyb_nvml_names[285] = b'nvmlDeviceGetVgpuSchedulerCapabilities' +_cyb_nvml_slots[286] = &__nvmlDeviceSetVgpuSchedulerState; _cyb_nvml_names[286] = b'nvmlDeviceSetVgpuSchedulerState' +_cyb_nvml_slots[287] = &__nvmlGetVgpuVersion; _cyb_nvml_names[287] = b'nvmlGetVgpuVersion' +_cyb_nvml_slots[288] = &__nvmlSetVgpuVersion; _cyb_nvml_names[288] = b'nvmlSetVgpuVersion' +_cyb_nvml_slots[289] = &__nvmlDeviceGetVgpuUtilization; _cyb_nvml_names[289] = b'nvmlDeviceGetVgpuUtilization' +_cyb_nvml_slots[290] = &__nvmlDeviceGetVgpuInstancesUtilizationInfo; _cyb_nvml_names[290] = b'nvmlDeviceGetVgpuInstancesUtilizationInfo' +_cyb_nvml_slots[291] = &__nvmlDeviceGetVgpuProcessUtilization; _cyb_nvml_names[291] = b'nvmlDeviceGetVgpuProcessUtilization' +_cyb_nvml_slots[292] = &__nvmlDeviceGetVgpuProcessesUtilizationInfo; _cyb_nvml_names[292] = b'nvmlDeviceGetVgpuProcessesUtilizationInfo' +_cyb_nvml_slots[293] = &__nvmlVgpuInstanceGetAccountingMode; _cyb_nvml_names[293] = b'nvmlVgpuInstanceGetAccountingMode' +_cyb_nvml_slots[294] = &__nvmlVgpuInstanceGetAccountingPids; _cyb_nvml_names[294] = b'nvmlVgpuInstanceGetAccountingPids' +_cyb_nvml_slots[295] = &__nvmlVgpuInstanceGetAccountingStats; _cyb_nvml_names[295] = b'nvmlVgpuInstanceGetAccountingStats' +_cyb_nvml_slots[296] = &__nvmlVgpuInstanceClearAccountingPids; _cyb_nvml_names[296] = b'nvmlVgpuInstanceClearAccountingPids' +_cyb_nvml_slots[297] = &__nvmlVgpuInstanceGetLicenseInfo_v2; _cyb_nvml_names[297] = b'nvmlVgpuInstanceGetLicenseInfo_v2' +_cyb_nvml_slots[298] = &__nvmlGetExcludedDeviceCount; _cyb_nvml_names[298] = b'nvmlGetExcludedDeviceCount' +_cyb_nvml_slots[299] = &__nvmlGetExcludedDeviceInfoByIndex; _cyb_nvml_names[299] = b'nvmlGetExcludedDeviceInfoByIndex' +_cyb_nvml_slots[300] = &__nvmlDeviceSetMigMode; _cyb_nvml_names[300] = b'nvmlDeviceSetMigMode' +_cyb_nvml_slots[301] = &__nvmlDeviceGetMigMode; _cyb_nvml_names[301] = b'nvmlDeviceGetMigMode' +_cyb_nvml_slots[302] = &__nvmlDeviceGetGpuInstanceProfileInfoV; _cyb_nvml_names[302] = b'nvmlDeviceGetGpuInstanceProfileInfoV' +_cyb_nvml_slots[303] = &__nvmlDeviceGetGpuInstancePossiblePlacements_v2; _cyb_nvml_names[303] = b'nvmlDeviceGetGpuInstancePossiblePlacements_v2' +_cyb_nvml_slots[304] = &__nvmlDeviceGetGpuInstanceRemainingCapacity; _cyb_nvml_names[304] = b'nvmlDeviceGetGpuInstanceRemainingCapacity' +_cyb_nvml_slots[305] = &__nvmlDeviceCreateGpuInstance; _cyb_nvml_names[305] = b'nvmlDeviceCreateGpuInstance' +_cyb_nvml_slots[306] = &__nvmlDeviceCreateGpuInstanceWithPlacement; _cyb_nvml_names[306] = b'nvmlDeviceCreateGpuInstanceWithPlacement' +_cyb_nvml_slots[307] = &__nvmlGpuInstanceDestroy; _cyb_nvml_names[307] = b'nvmlGpuInstanceDestroy' +_cyb_nvml_slots[308] = &__nvmlDeviceGetGpuInstances; _cyb_nvml_names[308] = b'nvmlDeviceGetGpuInstances' +_cyb_nvml_slots[309] = &__nvmlDeviceGetGpuInstanceById; _cyb_nvml_names[309] = b'nvmlDeviceGetGpuInstanceById' +_cyb_nvml_slots[310] = &__nvmlGpuInstanceGetInfo; _cyb_nvml_names[310] = b'nvmlGpuInstanceGetInfo' +_cyb_nvml_slots[311] = &__nvmlGpuInstanceGetComputeInstanceProfileInfoV; _cyb_nvml_names[311] = b'nvmlGpuInstanceGetComputeInstanceProfileInfoV' +_cyb_nvml_slots[312] = &__nvmlGpuInstanceGetComputeInstanceRemainingCapacity; _cyb_nvml_names[312] = b'nvmlGpuInstanceGetComputeInstanceRemainingCapacity' +_cyb_nvml_slots[313] = &__nvmlGpuInstanceGetComputeInstancePossiblePlacements; _cyb_nvml_names[313] = b'nvmlGpuInstanceGetComputeInstancePossiblePlacements' +_cyb_nvml_slots[314] = &__nvmlGpuInstanceCreateComputeInstance; _cyb_nvml_names[314] = b'nvmlGpuInstanceCreateComputeInstance' +_cyb_nvml_slots[315] = &__nvmlGpuInstanceCreateComputeInstanceWithPlacement; _cyb_nvml_names[315] = b'nvmlGpuInstanceCreateComputeInstanceWithPlacement' +_cyb_nvml_slots[316] = &__nvmlComputeInstanceDestroy; _cyb_nvml_names[316] = b'nvmlComputeInstanceDestroy' +_cyb_nvml_slots[317] = &__nvmlGpuInstanceGetComputeInstances; _cyb_nvml_names[317] = b'nvmlGpuInstanceGetComputeInstances' +_cyb_nvml_slots[318] = &__nvmlGpuInstanceGetComputeInstanceById; _cyb_nvml_names[318] = b'nvmlGpuInstanceGetComputeInstanceById' +_cyb_nvml_slots[319] = &__nvmlComputeInstanceGetInfo_v2; _cyb_nvml_names[319] = b'nvmlComputeInstanceGetInfo_v2' +_cyb_nvml_slots[320] = &__nvmlDeviceIsMigDeviceHandle; _cyb_nvml_names[320] = b'nvmlDeviceIsMigDeviceHandle' +_cyb_nvml_slots[321] = &__nvmlDeviceGetGpuInstanceId; _cyb_nvml_names[321] = b'nvmlDeviceGetGpuInstanceId' +_cyb_nvml_slots[322] = &__nvmlDeviceGetComputeInstanceId; _cyb_nvml_names[322] = b'nvmlDeviceGetComputeInstanceId' +_cyb_nvml_slots[323] = &__nvmlDeviceGetMaxMigDeviceCount; _cyb_nvml_names[323] = b'nvmlDeviceGetMaxMigDeviceCount' +_cyb_nvml_slots[324] = &__nvmlDeviceGetMigDeviceHandleByIndex; _cyb_nvml_names[324] = b'nvmlDeviceGetMigDeviceHandleByIndex' +_cyb_nvml_slots[325] = &__nvmlDeviceGetDeviceHandleFromMigDeviceHandle; _cyb_nvml_names[325] = b'nvmlDeviceGetDeviceHandleFromMigDeviceHandle' +_cyb_nvml_slots[326] = &__nvmlDeviceGetCapabilities; _cyb_nvml_names[326] = b'nvmlDeviceGetCapabilities' +_cyb_nvml_slots[327] = &__nvmlDevicePowerSmoothingActivatePresetProfile; _cyb_nvml_names[327] = b'nvmlDevicePowerSmoothingActivatePresetProfile' +_cyb_nvml_slots[328] = &__nvmlDevicePowerSmoothingUpdatePresetProfileParam; _cyb_nvml_names[328] = b'nvmlDevicePowerSmoothingUpdatePresetProfileParam' +_cyb_nvml_slots[329] = &__nvmlDevicePowerSmoothingSetState; _cyb_nvml_names[329] = b'nvmlDevicePowerSmoothingSetState' +_cyb_nvml_slots[330] = &__nvmlDeviceGetAddressingMode; _cyb_nvml_names[330] = b'nvmlDeviceGetAddressingMode' +_cyb_nvml_slots[331] = &__nvmlDeviceGetRepairStatus; _cyb_nvml_names[331] = b'nvmlDeviceGetRepairStatus' +_cyb_nvml_slots[332] = &__nvmlDeviceGetPowerMizerMode_v1; _cyb_nvml_names[332] = b'nvmlDeviceGetPowerMizerMode_v1' +_cyb_nvml_slots[333] = &__nvmlDeviceSetPowerMizerMode_v1; _cyb_nvml_names[333] = b'nvmlDeviceSetPowerMizerMode_v1' +_cyb_nvml_slots[334] = &__nvmlDeviceGetPdi; _cyb_nvml_names[334] = b'nvmlDeviceGetPdi' +_cyb_nvml_slots[335] = &__nvmlDeviceSetHostname_v1; _cyb_nvml_names[335] = b'nvmlDeviceSetHostname_v1' +_cyb_nvml_slots[336] = &__nvmlDeviceGetHostname_v1; _cyb_nvml_names[336] = b'nvmlDeviceGetHostname_v1' +_cyb_nvml_slots[337] = &__nvmlDeviceGetNvLinkInfo; _cyb_nvml_names[337] = b'nvmlDeviceGetNvLinkInfo' +_cyb_nvml_slots[338] = &__nvmlDeviceReadWritePRM_v1; _cyb_nvml_names[338] = b'nvmlDeviceReadWritePRM_v1' +_cyb_nvml_slots[339] = &__nvmlDeviceGetGpuInstanceProfileInfoByIdV; _cyb_nvml_names[339] = b'nvmlDeviceGetGpuInstanceProfileInfoByIdV' +_cyb_nvml_slots[340] = &__nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts; _cyb_nvml_names[340] = b'nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts' +_cyb_nvml_slots[341] = &__nvmlDeviceGetUnrepairableMemoryFlag_v1; _cyb_nvml_names[341] = b'nvmlDeviceGetUnrepairableMemoryFlag_v1' +_cyb_nvml_slots[342] = &__nvmlDeviceReadPRMCounters_v1; _cyb_nvml_names[342] = b'nvmlDeviceReadPRMCounters_v1' +_cyb_nvml_slots[343] = &__nvmlDeviceSetRusdSettings_v1; _cyb_nvml_names[343] = b'nvmlDeviceSetRusdSettings_v1' +_cyb_nvml_slots[344] = &__nvmlDeviceVgpuForceGspUnload; _cyb_nvml_names[344] = b'nvmlDeviceVgpuForceGspUnload' +_cyb_nvml_slots[345] = &__nvmlDeviceGetVgpuSchedulerState_v2; _cyb_nvml_names[345] = b'nvmlDeviceGetVgpuSchedulerState_v2' +_cyb_nvml_slots[346] = &__nvmlGpuInstanceGetVgpuSchedulerState_v2; _cyb_nvml_names[346] = b'nvmlGpuInstanceGetVgpuSchedulerState_v2' +_cyb_nvml_slots[347] = &__nvmlDeviceGetVgpuSchedulerLog_v2; _cyb_nvml_names[347] = b'nvmlDeviceGetVgpuSchedulerLog_v2' +_cyb_nvml_slots[348] = &__nvmlGpuInstanceGetVgpuSchedulerLog_v2; _cyb_nvml_names[348] = b'nvmlGpuInstanceGetVgpuSchedulerLog_v2' +_cyb_nvml_slots[349] = &__nvmlDeviceSetVgpuSchedulerState_v2; _cyb_nvml_names[349] = b'nvmlDeviceSetVgpuSchedulerState_v2' +_cyb_nvml_slots[350] = &__nvmlGpuInstanceSetVgpuSchedulerState_v2; _cyb_nvml_names[350] = b'nvmlGpuInstanceSetVgpuSchedulerState_v2' +_cyb_nvml_slots[351] = &__nvmlSystemGetCPER_v1; _cyb_nvml_names[351] = b'nvmlSystemGetCPER_v1' +_cyb_nvml_slots[352] = &__nvmlDeviceGetBBXTimeData_v1; _cyb_nvml_names[352] = b'nvmlDeviceGetBBXTimeData_v1' +_cyb_nvml_slots[353] = &__nvmlDeviceGetAccountingStats_v2; _cyb_nvml_names[353] = b'nvmlDeviceGetAccountingStats_v2' +_cyb_nvml_slots[354] = &__nvmlDeviceGetRemappedRows_v2; _cyb_nvml_names[354] = b'nvmlDeviceGetRemappedRows_v2' +_cyb_nvml_slots[355] = &__nvmlDeviceSetAdaptiveTgpMode_v1; _cyb_nvml_names[355] = b'nvmlDeviceSetAdaptiveTgpMode_v1' +_cyb_nvml_slots[356] = &__nvmlDeviceGetAdaptiveTgpModeInfo_v1; _cyb_nvml_names[356] = b'nvmlDeviceGetAdaptiveTgpModeInfo_v1' +_cyb_nvml_slots[357] = &__nvmlDeviceSetMemoryLimits_v1; _cyb_nvml_names[357] = b'nvmlDeviceSetMemoryLimits_v1' +_cyb_nvml_slots[358] = &__nvmlDeviceGetMemoryLimits_v1; _cyb_nvml_names[358] = b'nvmlDeviceGetMemoryLimits_v1' +_cyb_nvml_slots[359] = &__nvmlDeviceGetGpuFabricInfo_v4; _cyb_nvml_names[359] = b'nvmlDeviceGetGpuFabricInfo_v4' +_cyb_nvml_slots[360] = &__nvmlDevicePerfMetricsGetSamples_v1; _cyb_nvml_names[360] = b'nvmlDevicePerfMetricsGetSamples_v1' +_cyb_nvml_slots[361] = &__nvmlDeviceSetNvlinkBwModeAsync_v1; _cyb_nvml_names[361] = b'nvmlDeviceSetNvlinkBwModeAsync_v1' +_cyb_nvml_slots[362] = &__nvmlDeviceGetNvLinkTelemetrySamples_v1; _cyb_nvml_names[362] = b'nvmlDeviceGetNvLinkTelemetrySamples_v1' +_cyb_nvml_slots[363] = &__nvmlEventSetRegisterGpuOperationalEvents_v1; _cyb_nvml_names[363] = b'nvmlEventSetRegisterGpuOperationalEvents_v1' +_cyb_nvml_slots[364] = &__nvmlEventSetWait_v3; _cyb_nvml_names[364] = b'nvmlEventSetWait_v3' +_cyb_nvml_slots[365] = &__nvmlEventSetGetContextCount_v1; _cyb_nvml_names[365] = b'nvmlEventSetGetContextCount_v1' +_cyb_nvml_slots[366] = &__nvmlEventSetGetContextInfo_v1; _cyb_nvml_names[366] = b'nvmlEventSetGetContextInfo_v1' +_cyb_nvml_slots[367] = &__nvmlEventSetGetContextData_v1; _cyb_nvml_names[367] = b'nvmlEventSetGetContextData_v1' +_cyb_nvml_slots[368] = &__nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1; _cyb_nvml_names[368] = b'nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1' +_cyb_nvml_slots[369] = &__nvmlDeviceGetBankRemapperStatus_v1; _cyb_nvml_names[369] = b'nvmlDeviceGetBankRemapperStatus_v1' +_cyb_nvml_slots[370] = &__nvmlDeviceGetGpuUptime_v1; _cyb_nvml_names[370] = b'nvmlDeviceGetGpuUptime_v1' +_cyb_nvml_slots[371] = &__nvmlSystemGetConfComputeSettings_v2; _cyb_nvml_names[371] = b'nvmlSystemGetConfComputeSettings_v2' +_cyb_nvml_slots[372] = &__nvmlDeviceGetNvLinkInfo_v3; _cyb_nvml_names[372] = b'nvmlDeviceGetNvLinkInfo_v3' +_cyb_nvml_slots[373] = &__nvmlDeviceGetNvlinkRemapTableInfo_v1; _cyb_nvml_names[373] = b'nvmlDeviceGetNvlinkRemapTableInfo_v1' +_cyb_nvml_slots[374] = &__nvmlDeviceSetNvlinkNvleReady_v1; _cyb_nvml_names[374] = b'nvmlDeviceSetNvlinkNvleReady_v1' +_cyb_nvml_slots[375] = &__nvmlDeviceLockNvlinkRemapTable_v1; _cyb_nvml_names[375] = b'nvmlDeviceLockNvlinkRemapTable_v1' +_cyb_nvml_slots[376] = &__nvmlDeviceSetupNvlinkNvleEncryptionKey_v1; _cyb_nvml_names[376] = b'nvmlDeviceSetupNvlinkNvleEncryptionKey_v1' +_cyb_nvml_slots[377] = &__nvmlDeviceGetNvlinkNvlePrivateInfo_v1; _cyb_nvml_names[377] = b'nvmlDeviceGetNvlinkNvlePrivateInfo_v1' - global __nvmlDeviceSetNvlinkBwModeAsync_v1 - data["__nvmlDeviceSetNvlinkBwModeAsync_v1"] = __nvmlDeviceSetNvlinkBwModeAsync_v1 +cdef int _init_nvml() except -1 nogil: + global _cyb___py_nvml_init - global __nvmlDeviceGetNvLinkTelemetrySamples_v1 - data["__nvmlDeviceGetNvLinkTelemetrySamples_v1"] = __nvmlDeviceGetNvLinkTelemetrySamples_v1 + cdef int err + cdef uintptr_t handle + cdef Py_ssize_t i + with gil, _cyb_symbol_lock: + if _cyb___py_nvml_init: return 0 - global __nvmlEventSetRegisterGpuOperationalEvents_v1 - data["__nvmlEventSetRegisterGpuOperationalEvents_v1"] = __nvmlEventSetRegisterGpuOperationalEvents_v1 + handle = load_library() + for i in range(_cyb_nvml_n_functions): + _cyb_nvml_slots[i][0] = _cyb_GetProcAddress(handle, _cyb_nvml_names[i]) - global __nvmlEventSetWait_v3 - data["__nvmlEventSetWait_v3"] = __nvmlEventSetWait_v3 + _cyb_atomic_int_store(&_cyb___py_nvml_init, 1) + return 0 - global __nvmlEventSetGetContextCount_v1 - data["__nvmlEventSetGetContextCount_v1"] = __nvmlEventSetGetContextCount_v1 +cdef inline int _check_or_init_nvml() except -1 nogil: + if _cyb_atomic_int_load(&_cyb___py_nvml_init): + return 0 - global __nvmlEventSetGetContextInfo_v1 - data["__nvmlEventSetGetContextInfo_v1"] = __nvmlEventSetGetContextInfo_v1 + return _init_nvml() - global __nvmlEventSetGetContextData_v1 - data["__nvmlEventSetGetContextData_v1"] = __nvmlEventSetGetContextData_v1 - global __nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1 - data["__nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1"] = __nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1 +cpdef dict _inspect_function_pointers(): + global _cyb_func_ptrs + if _cyb_func_ptrs is not None: + return _cyb_func_ptrs - global __nvmlDeviceGetBankRemapperStatus_v1 - data["__nvmlDeviceGetBankRemapperStatus_v1"] = __nvmlDeviceGetBankRemapperStatus_v1 + _check_or_init_nvml() + cdef dict data = {} + cdef Py_ssize_t i + for i in range(_cyb_nvml_n_functions): + data['__' + _cyb_nvml_names[i].decode()] = _cyb_nvml_slots[i][0] _cyb_func_ptrs = data return data @@ -6399,3 +4577,83 @@ cdef nvmlReturn_t _nvmlDeviceGetBankRemapperStatus_v1(nvmlDevice_t device, nvmlE raise FunctionNotFoundError("function nvmlDeviceGetBankRemapperStatus_v1 is not found") return (__nvmlDeviceGetBankRemapperStatus_v1)( device, pBankRemapperStatus) + + +cdef nvmlReturn_t _nvmlDeviceGetGpuUptime_v1(nvmlDevice_t device, nvmlGpuUptime_v1_t* uptime) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: + global __nvmlDeviceGetGpuUptime_v1 + _check_or_init_nvml() + if __nvmlDeviceGetGpuUptime_v1 == NULL: + with gil: + raise FunctionNotFoundError("function nvmlDeviceGetGpuUptime_v1 is not found") + return (__nvmlDeviceGetGpuUptime_v1)( + device, uptime) + + +cdef nvmlReturn_t _nvmlSystemGetConfComputeSettings_v2(nvmlSystemConfComputeSettings_v2_t* settings) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: + global __nvmlSystemGetConfComputeSettings_v2 + _check_or_init_nvml() + if __nvmlSystemGetConfComputeSettings_v2 == NULL: + with gil: + raise FunctionNotFoundError("function nvmlSystemGetConfComputeSettings_v2 is not found") + return (__nvmlSystemGetConfComputeSettings_v2)( + settings) + + +cdef nvmlReturn_t _nvmlDeviceGetNvLinkInfo_v3(nvmlDevice_t device, nvmlNvLinkInfo_v3_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: + global __nvmlDeviceGetNvLinkInfo_v3 + _check_or_init_nvml() + if __nvmlDeviceGetNvLinkInfo_v3 == NULL: + with gil: + raise FunctionNotFoundError("function nvmlDeviceGetNvLinkInfo_v3 is not found") + return (__nvmlDeviceGetNvLinkInfo_v3)( + device, info) + + +cdef nvmlReturn_t _nvmlDeviceGetNvlinkRemapTableInfo_v1(nvmlDevice_t device, nvmlNvlinkGetRemapTableInfo_v1_t* remapTableInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: + global __nvmlDeviceGetNvlinkRemapTableInfo_v1 + _check_or_init_nvml() + if __nvmlDeviceGetNvlinkRemapTableInfo_v1 == NULL: + with gil: + raise FunctionNotFoundError("function nvmlDeviceGetNvlinkRemapTableInfo_v1 is not found") + return (__nvmlDeviceGetNvlinkRemapTableInfo_v1)( + device, remapTableInfo) + + +cdef nvmlReturn_t _nvmlDeviceSetNvlinkNvleReady_v1(nvmlDevice_t device, nvmlNvlinkSetNvleReady_v1_t* setNvleReady) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: + global __nvmlDeviceSetNvlinkNvleReady_v1 + _check_or_init_nvml() + if __nvmlDeviceSetNvlinkNvleReady_v1 == NULL: + with gil: + raise FunctionNotFoundError("function nvmlDeviceSetNvlinkNvleReady_v1 is not found") + return (__nvmlDeviceSetNvlinkNvleReady_v1)( + device, setNvleReady) + + +cdef nvmlReturn_t _nvmlDeviceLockNvlinkRemapTable_v1(nvmlDevice_t device, nvmlNvlinkLockRemapTable_v1_t* remapTableLockInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: + global __nvmlDeviceLockNvlinkRemapTable_v1 + _check_or_init_nvml() + if __nvmlDeviceLockNvlinkRemapTable_v1 == NULL: + with gil: + raise FunctionNotFoundError("function nvmlDeviceLockNvlinkRemapTable_v1 is not found") + return (__nvmlDeviceLockNvlinkRemapTable_v1)( + device, remapTableLockInfo) + + +cdef nvmlReturn_t _nvmlDeviceSetupNvlinkNvleEncryptionKey_v1(nvmlDevice_t device, nvmlNvlinkSetupNvleEncryptionKey_v1_t* encryptionKey) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: + global __nvmlDeviceSetupNvlinkNvleEncryptionKey_v1 + _check_or_init_nvml() + if __nvmlDeviceSetupNvlinkNvleEncryptionKey_v1 == NULL: + with gil: + raise FunctionNotFoundError("function nvmlDeviceSetupNvlinkNvleEncryptionKey_v1 is not found") + return (__nvmlDeviceSetupNvlinkNvleEncryptionKey_v1)( + device, encryptionKey) + + +cdef nvmlReturn_t _nvmlDeviceGetNvlinkNvlePrivateInfo_v1(nvmlDevice_t device, nvmlNvlinkNvlePrivateInfo_v1_t* privateInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: + global __nvmlDeviceGetNvlinkNvlePrivateInfo_v1 + _check_or_init_nvml() + if __nvmlDeviceGetNvlinkNvlePrivateInfo_v1 == NULL: + with gil: + raise FunctionNotFoundError("function nvmlDeviceGetNvlinkNvlePrivateInfo_v1 is not found") + return (__nvmlDeviceGetNvlinkNvlePrivateInfo_v1)( + device, privateInfo) diff --git a/cuda_bindings_12/cuda/bindings/_internal/nvrtc_linux.pyx b/cuda_bindings_12/cuda/bindings/_internal/nvrtc_linux.pyx index 4b892fbb8057..17c276a36b0f 100644 --- a/cuda_bindings_12/cuda/bindings/_internal/nvrtc_linux.pyx +++ b/cuda_bindings_12/cuda/bindings/_internal/nvrtc_linux.pyx @@ -3,11 +3,13 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated with version 12.9.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=b382b06daa43bc67abaa1ef39ecee58156ba05220b82cbec693a063fa73f1b27 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=a86fd01987bd6934281500ad99dc4da0ae555b3e1deec8218333f2b98d4ffec0 # <<<< PREAMBLE CONTENT >>>> +from libc.stdint cimport intptr_t + cdef extern from * nogil: """ #if defined(_MSC_VER) && !defined(__clang__) @@ -44,8 +46,6 @@ cdef extern from "": void* _cyb_dlsym "dlsym"(void*, const char*) nogil const void * _cyb_RTLD_DEFAULT "RTLD_DEFAULT" -from libc.stdint cimport intptr_t - import threading as _cyb_threading cdef int _cyb___py_nvrtc_init = 0 @@ -89,179 +89,47 @@ cdef void* __nvrtcGetPCHCreateStatus = NULL cdef void* __nvrtcGetPCHHeapSizeRequired = NULL cdef void* __nvrtcSetFlowCallback = NULL +cdef enum: _cyb_nvrtc_n_functions = 24 +cdef void** _cyb_nvrtc_slots[_cyb_nvrtc_n_functions] +cdef const char* _cyb_nvrtc_names[_cyb_nvrtc_n_functions] +_cyb_nvrtc_slots[0] = &__nvrtcGetErrorString; _cyb_nvrtc_names[0] = b'nvrtcGetErrorString' +_cyb_nvrtc_slots[1] = &__nvrtcVersion; _cyb_nvrtc_names[1] = b'nvrtcVersion' +_cyb_nvrtc_slots[2] = &__nvrtcGetNumSupportedArchs; _cyb_nvrtc_names[2] = b'nvrtcGetNumSupportedArchs' +_cyb_nvrtc_slots[3] = &__nvrtcGetSupportedArchs; _cyb_nvrtc_names[3] = b'nvrtcGetSupportedArchs' +_cyb_nvrtc_slots[4] = &__nvrtcCreateProgram; _cyb_nvrtc_names[4] = b'nvrtcCreateProgram' +_cyb_nvrtc_slots[5] = &__nvrtcDestroyProgram; _cyb_nvrtc_names[5] = b'nvrtcDestroyProgram' +_cyb_nvrtc_slots[6] = &__nvrtcCompileProgram; _cyb_nvrtc_names[6] = b'nvrtcCompileProgram' +_cyb_nvrtc_slots[7] = &__nvrtcGetPTXSize; _cyb_nvrtc_names[7] = b'nvrtcGetPTXSize' +_cyb_nvrtc_slots[8] = &__nvrtcGetPTX; _cyb_nvrtc_names[8] = b'nvrtcGetPTX' +_cyb_nvrtc_slots[9] = &__nvrtcGetCUBINSize; _cyb_nvrtc_names[9] = b'nvrtcGetCUBINSize' +_cyb_nvrtc_slots[10] = &__nvrtcGetCUBIN; _cyb_nvrtc_names[10] = b'nvrtcGetCUBIN' +_cyb_nvrtc_slots[11] = &__nvrtcGetLTOIRSize; _cyb_nvrtc_names[11] = b'nvrtcGetLTOIRSize' +_cyb_nvrtc_slots[12] = &__nvrtcGetLTOIR; _cyb_nvrtc_names[12] = b'nvrtcGetLTOIR' +_cyb_nvrtc_slots[13] = &__nvrtcGetOptiXIRSize; _cyb_nvrtc_names[13] = b'nvrtcGetOptiXIRSize' +_cyb_nvrtc_slots[14] = &__nvrtcGetOptiXIR; _cyb_nvrtc_names[14] = b'nvrtcGetOptiXIR' +_cyb_nvrtc_slots[15] = &__nvrtcGetProgramLogSize; _cyb_nvrtc_names[15] = b'nvrtcGetProgramLogSize' +_cyb_nvrtc_slots[16] = &__nvrtcGetProgramLog; _cyb_nvrtc_names[16] = b'nvrtcGetProgramLog' +_cyb_nvrtc_slots[17] = &__nvrtcAddNameExpression; _cyb_nvrtc_names[17] = b'nvrtcAddNameExpression' +_cyb_nvrtc_slots[18] = &__nvrtcGetLoweredName; _cyb_nvrtc_names[18] = b'nvrtcGetLoweredName' +_cyb_nvrtc_slots[19] = &__nvrtcGetPCHHeapSize; _cyb_nvrtc_names[19] = b'nvrtcGetPCHHeapSize' +_cyb_nvrtc_slots[20] = &__nvrtcSetPCHHeapSize; _cyb_nvrtc_names[20] = b'nvrtcSetPCHHeapSize' +_cyb_nvrtc_slots[21] = &__nvrtcGetPCHCreateStatus; _cyb_nvrtc_names[21] = b'nvrtcGetPCHCreateStatus' +_cyb_nvrtc_slots[22] = &__nvrtcGetPCHHeapSizeRequired; _cyb_nvrtc_names[22] = b'nvrtcGetPCHHeapSizeRequired' +_cyb_nvrtc_slots[23] = &__nvrtcSetFlowCallback; _cyb_nvrtc_names[23] = b'nvrtcSetFlowCallback' + cdef int _init_nvrtc() except -1 nogil: global _cyb___py_nvrtc_init cdef void* handle = NULL + cdef Py_ssize_t i with gil, _cyb_symbol_lock: if _cyb___py_nvrtc_init: return 0 - global __nvrtcGetErrorString - __nvrtcGetErrorString = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetErrorString') - if __nvrtcGetErrorString == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetErrorString = _cyb_dlsym(handle, 'nvrtcGetErrorString') - - global __nvrtcVersion - __nvrtcVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcVersion') - if __nvrtcVersion == NULL: - if handle == NULL: - handle = load_library() - __nvrtcVersion = _cyb_dlsym(handle, 'nvrtcVersion') - - global __nvrtcGetNumSupportedArchs - __nvrtcGetNumSupportedArchs = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetNumSupportedArchs') - if __nvrtcGetNumSupportedArchs == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetNumSupportedArchs = _cyb_dlsym(handle, 'nvrtcGetNumSupportedArchs') - - global __nvrtcGetSupportedArchs - __nvrtcGetSupportedArchs = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetSupportedArchs') - if __nvrtcGetSupportedArchs == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetSupportedArchs = _cyb_dlsym(handle, 'nvrtcGetSupportedArchs') - - global __nvrtcCreateProgram - __nvrtcCreateProgram = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcCreateProgram') - if __nvrtcCreateProgram == NULL: - if handle == NULL: - handle = load_library() - __nvrtcCreateProgram = _cyb_dlsym(handle, 'nvrtcCreateProgram') - - global __nvrtcDestroyProgram - __nvrtcDestroyProgram = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcDestroyProgram') - if __nvrtcDestroyProgram == NULL: - if handle == NULL: - handle = load_library() - __nvrtcDestroyProgram = _cyb_dlsym(handle, 'nvrtcDestroyProgram') - - global __nvrtcCompileProgram - __nvrtcCompileProgram = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcCompileProgram') - if __nvrtcCompileProgram == NULL: - if handle == NULL: - handle = load_library() - __nvrtcCompileProgram = _cyb_dlsym(handle, 'nvrtcCompileProgram') - - global __nvrtcGetPTXSize - __nvrtcGetPTXSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetPTXSize') - if __nvrtcGetPTXSize == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetPTXSize = _cyb_dlsym(handle, 'nvrtcGetPTXSize') - - global __nvrtcGetPTX - __nvrtcGetPTX = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetPTX') - if __nvrtcGetPTX == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetPTX = _cyb_dlsym(handle, 'nvrtcGetPTX') - - global __nvrtcGetCUBINSize - __nvrtcGetCUBINSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetCUBINSize') - if __nvrtcGetCUBINSize == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetCUBINSize = _cyb_dlsym(handle, 'nvrtcGetCUBINSize') - - global __nvrtcGetCUBIN - __nvrtcGetCUBIN = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetCUBIN') - if __nvrtcGetCUBIN == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetCUBIN = _cyb_dlsym(handle, 'nvrtcGetCUBIN') - - global __nvrtcGetLTOIRSize - __nvrtcGetLTOIRSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetLTOIRSize') - if __nvrtcGetLTOIRSize == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetLTOIRSize = _cyb_dlsym(handle, 'nvrtcGetLTOIRSize') - - global __nvrtcGetLTOIR - __nvrtcGetLTOIR = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetLTOIR') - if __nvrtcGetLTOIR == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetLTOIR = _cyb_dlsym(handle, 'nvrtcGetLTOIR') - - global __nvrtcGetOptiXIRSize - __nvrtcGetOptiXIRSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetOptiXIRSize') - if __nvrtcGetOptiXIRSize == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetOptiXIRSize = _cyb_dlsym(handle, 'nvrtcGetOptiXIRSize') - - global __nvrtcGetOptiXIR - __nvrtcGetOptiXIR = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetOptiXIR') - if __nvrtcGetOptiXIR == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetOptiXIR = _cyb_dlsym(handle, 'nvrtcGetOptiXIR') - - global __nvrtcGetProgramLogSize - __nvrtcGetProgramLogSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetProgramLogSize') - if __nvrtcGetProgramLogSize == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetProgramLogSize = _cyb_dlsym(handle, 'nvrtcGetProgramLogSize') - - global __nvrtcGetProgramLog - __nvrtcGetProgramLog = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetProgramLog') - if __nvrtcGetProgramLog == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetProgramLog = _cyb_dlsym(handle, 'nvrtcGetProgramLog') - - global __nvrtcAddNameExpression - __nvrtcAddNameExpression = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcAddNameExpression') - if __nvrtcAddNameExpression == NULL: - if handle == NULL: - handle = load_library() - __nvrtcAddNameExpression = _cyb_dlsym(handle, 'nvrtcAddNameExpression') - - global __nvrtcGetLoweredName - __nvrtcGetLoweredName = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetLoweredName') - if __nvrtcGetLoweredName == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetLoweredName = _cyb_dlsym(handle, 'nvrtcGetLoweredName') - - global __nvrtcGetPCHHeapSize - __nvrtcGetPCHHeapSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetPCHHeapSize') - if __nvrtcGetPCHHeapSize == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetPCHHeapSize = _cyb_dlsym(handle, 'nvrtcGetPCHHeapSize') - - global __nvrtcSetPCHHeapSize - __nvrtcSetPCHHeapSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcSetPCHHeapSize') - if __nvrtcSetPCHHeapSize == NULL: - if handle == NULL: - handle = load_library() - __nvrtcSetPCHHeapSize = _cyb_dlsym(handle, 'nvrtcSetPCHHeapSize') - - global __nvrtcGetPCHCreateStatus - __nvrtcGetPCHCreateStatus = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetPCHCreateStatus') - if __nvrtcGetPCHCreateStatus == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetPCHCreateStatus = _cyb_dlsym(handle, 'nvrtcGetPCHCreateStatus') - - global __nvrtcGetPCHHeapSizeRequired - __nvrtcGetPCHHeapSizeRequired = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcGetPCHHeapSizeRequired') - if __nvrtcGetPCHHeapSizeRequired == NULL: - if handle == NULL: - handle = load_library() - __nvrtcGetPCHHeapSizeRequired = _cyb_dlsym(handle, 'nvrtcGetPCHHeapSizeRequired') - - global __nvrtcSetFlowCallback - __nvrtcSetFlowCallback = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvrtcSetFlowCallback') - if __nvrtcSetFlowCallback == NULL: - if handle == NULL: - handle = load_library() - __nvrtcSetFlowCallback = _cyb_dlsym(handle, 'nvrtcSetFlowCallback') + for i in range(_cyb_nvrtc_n_functions): + _cyb_nvrtc_slots[i][0] = _cyb_dlsym(_cyb_RTLD_DEFAULT, _cyb_nvrtc_names[i]) + if _cyb_nvrtc_slots[i][0] == NULL: + if handle == NULL: + handle = load_library() + _cyb_nvrtc_slots[i][0] = _cyb_dlsym(handle, _cyb_nvrtc_names[i]) _cyb_atomic_int_store(&_cyb___py_nvrtc_init, 1) return 0 @@ -280,77 +148,9 @@ cpdef dict _inspect_function_pointers(): _check_or_init_nvrtc() cdef dict data = {} - global __nvrtcGetErrorString - data["__nvrtcGetErrorString"] = __nvrtcGetErrorString - - global __nvrtcVersion - data["__nvrtcVersion"] = __nvrtcVersion - - global __nvrtcGetNumSupportedArchs - data["__nvrtcGetNumSupportedArchs"] = __nvrtcGetNumSupportedArchs - - global __nvrtcGetSupportedArchs - data["__nvrtcGetSupportedArchs"] = __nvrtcGetSupportedArchs - - global __nvrtcCreateProgram - data["__nvrtcCreateProgram"] = __nvrtcCreateProgram - - global __nvrtcDestroyProgram - data["__nvrtcDestroyProgram"] = __nvrtcDestroyProgram - - global __nvrtcCompileProgram - data["__nvrtcCompileProgram"] = __nvrtcCompileProgram - - global __nvrtcGetPTXSize - data["__nvrtcGetPTXSize"] = __nvrtcGetPTXSize - - global __nvrtcGetPTX - data["__nvrtcGetPTX"] = __nvrtcGetPTX - - global __nvrtcGetCUBINSize - data["__nvrtcGetCUBINSize"] = __nvrtcGetCUBINSize - - global __nvrtcGetCUBIN - data["__nvrtcGetCUBIN"] = __nvrtcGetCUBIN - - global __nvrtcGetLTOIRSize - data["__nvrtcGetLTOIRSize"] = __nvrtcGetLTOIRSize - - global __nvrtcGetLTOIR - data["__nvrtcGetLTOIR"] = __nvrtcGetLTOIR - - global __nvrtcGetOptiXIRSize - data["__nvrtcGetOptiXIRSize"] = __nvrtcGetOptiXIRSize - - global __nvrtcGetOptiXIR - data["__nvrtcGetOptiXIR"] = __nvrtcGetOptiXIR - - global __nvrtcGetProgramLogSize - data["__nvrtcGetProgramLogSize"] = __nvrtcGetProgramLogSize - - global __nvrtcGetProgramLog - data["__nvrtcGetProgramLog"] = __nvrtcGetProgramLog - - global __nvrtcAddNameExpression - data["__nvrtcAddNameExpression"] = __nvrtcAddNameExpression - - global __nvrtcGetLoweredName - data["__nvrtcGetLoweredName"] = __nvrtcGetLoweredName - - global __nvrtcGetPCHHeapSize - data["__nvrtcGetPCHHeapSize"] = __nvrtcGetPCHHeapSize - - global __nvrtcSetPCHHeapSize - data["__nvrtcSetPCHHeapSize"] = __nvrtcSetPCHHeapSize - - global __nvrtcGetPCHCreateStatus - data["__nvrtcGetPCHCreateStatus"] = __nvrtcGetPCHCreateStatus - - global __nvrtcGetPCHHeapSizeRequired - data["__nvrtcGetPCHHeapSizeRequired"] = __nvrtcGetPCHHeapSizeRequired - - global __nvrtcSetFlowCallback - data["__nvrtcSetFlowCallback"] = __nvrtcSetFlowCallback + cdef Py_ssize_t i + for i in range(_cyb_nvrtc_n_functions): + data['__' + _cyb_nvrtc_names[i].decode()] = _cyb_nvrtc_slots[i][0] _cyb_func_ptrs = data return data diff --git a/cuda_bindings_12/cuda/bindings/_internal/nvrtc_windows.pyx b/cuda_bindings_12/cuda/bindings/_internal/nvrtc_windows.pyx index 11441473a743..3f7c8835766d 100644 --- a/cuda_bindings_12/cuda/bindings/_internal/nvrtc_windows.pyx +++ b/cuda_bindings_12/cuda/bindings/_internal/nvrtc_windows.pyx @@ -3,11 +3,16 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated with version 12.9.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=59def78264f6eb2ac30eb34435bdefcfc2f8718c6d017c8a693c9e3df3e35df6 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=c966ebf00ed86b6ecaa0417ccf2d438954af5b08ac9d7d7f77a0e9f9818a5441 # <<<< PREAMBLE CONTENT >>>> +from libc.stdint cimport ( + intptr_t, + uintptr_t, +) + cdef extern from * nogil: """ #if defined(_MSC_VER) && !defined(__clang__) @@ -44,11 +49,6 @@ cdef extern from "": ctypedef void* HMODULE void* _cyb_GetProcAddress "GetProcAddress"(HMODULE, const char*) nogil -from libc.stdint cimport ( - intptr_t, - uintptr_t, -) - import threading as _cyb_threading cdef int _cyb___py_nvrtc_init = 0 @@ -89,86 +89,46 @@ cdef void* __nvrtcGetPCHCreateStatus = NULL cdef void* __nvrtcGetPCHHeapSizeRequired = NULL cdef void* __nvrtcSetFlowCallback = NULL +cdef enum: _cyb_nvrtc_n_functions = 24 +cdef void** _cyb_nvrtc_slots[_cyb_nvrtc_n_functions] +cdef const char* _cyb_nvrtc_names[_cyb_nvrtc_n_functions] +_cyb_nvrtc_slots[0] = &__nvrtcGetErrorString; _cyb_nvrtc_names[0] = b'nvrtcGetErrorString' +_cyb_nvrtc_slots[1] = &__nvrtcVersion; _cyb_nvrtc_names[1] = b'nvrtcVersion' +_cyb_nvrtc_slots[2] = &__nvrtcGetNumSupportedArchs; _cyb_nvrtc_names[2] = b'nvrtcGetNumSupportedArchs' +_cyb_nvrtc_slots[3] = &__nvrtcGetSupportedArchs; _cyb_nvrtc_names[3] = b'nvrtcGetSupportedArchs' +_cyb_nvrtc_slots[4] = &__nvrtcCreateProgram; _cyb_nvrtc_names[4] = b'nvrtcCreateProgram' +_cyb_nvrtc_slots[5] = &__nvrtcDestroyProgram; _cyb_nvrtc_names[5] = b'nvrtcDestroyProgram' +_cyb_nvrtc_slots[6] = &__nvrtcCompileProgram; _cyb_nvrtc_names[6] = b'nvrtcCompileProgram' +_cyb_nvrtc_slots[7] = &__nvrtcGetPTXSize; _cyb_nvrtc_names[7] = b'nvrtcGetPTXSize' +_cyb_nvrtc_slots[8] = &__nvrtcGetPTX; _cyb_nvrtc_names[8] = b'nvrtcGetPTX' +_cyb_nvrtc_slots[9] = &__nvrtcGetCUBINSize; _cyb_nvrtc_names[9] = b'nvrtcGetCUBINSize' +_cyb_nvrtc_slots[10] = &__nvrtcGetCUBIN; _cyb_nvrtc_names[10] = b'nvrtcGetCUBIN' +_cyb_nvrtc_slots[11] = &__nvrtcGetLTOIRSize; _cyb_nvrtc_names[11] = b'nvrtcGetLTOIRSize' +_cyb_nvrtc_slots[12] = &__nvrtcGetLTOIR; _cyb_nvrtc_names[12] = b'nvrtcGetLTOIR' +_cyb_nvrtc_slots[13] = &__nvrtcGetOptiXIRSize; _cyb_nvrtc_names[13] = b'nvrtcGetOptiXIRSize' +_cyb_nvrtc_slots[14] = &__nvrtcGetOptiXIR; _cyb_nvrtc_names[14] = b'nvrtcGetOptiXIR' +_cyb_nvrtc_slots[15] = &__nvrtcGetProgramLogSize; _cyb_nvrtc_names[15] = b'nvrtcGetProgramLogSize' +_cyb_nvrtc_slots[16] = &__nvrtcGetProgramLog; _cyb_nvrtc_names[16] = b'nvrtcGetProgramLog' +_cyb_nvrtc_slots[17] = &__nvrtcAddNameExpression; _cyb_nvrtc_names[17] = b'nvrtcAddNameExpression' +_cyb_nvrtc_slots[18] = &__nvrtcGetLoweredName; _cyb_nvrtc_names[18] = b'nvrtcGetLoweredName' +_cyb_nvrtc_slots[19] = &__nvrtcGetPCHHeapSize; _cyb_nvrtc_names[19] = b'nvrtcGetPCHHeapSize' +_cyb_nvrtc_slots[20] = &__nvrtcSetPCHHeapSize; _cyb_nvrtc_names[20] = b'nvrtcSetPCHHeapSize' +_cyb_nvrtc_slots[21] = &__nvrtcGetPCHCreateStatus; _cyb_nvrtc_names[21] = b'nvrtcGetPCHCreateStatus' +_cyb_nvrtc_slots[22] = &__nvrtcGetPCHHeapSizeRequired; _cyb_nvrtc_names[22] = b'nvrtcGetPCHHeapSizeRequired' +_cyb_nvrtc_slots[23] = &__nvrtcSetFlowCallback; _cyb_nvrtc_names[23] = b'nvrtcSetFlowCallback' + cdef int _init_nvrtc() except -1 nogil: global _cyb___py_nvrtc_init cdef int err cdef uintptr_t handle + cdef Py_ssize_t i with gil, _cyb_symbol_lock: if _cyb___py_nvrtc_init: return 0 handle = load_library() - global __nvrtcGetErrorString - __nvrtcGetErrorString = _cyb_GetProcAddress(handle, 'nvrtcGetErrorString') - - global __nvrtcVersion - __nvrtcVersion = _cyb_GetProcAddress(handle, 'nvrtcVersion') - - global __nvrtcGetNumSupportedArchs - __nvrtcGetNumSupportedArchs = _cyb_GetProcAddress(handle, 'nvrtcGetNumSupportedArchs') - - global __nvrtcGetSupportedArchs - __nvrtcGetSupportedArchs = _cyb_GetProcAddress(handle, 'nvrtcGetSupportedArchs') - - global __nvrtcCreateProgram - __nvrtcCreateProgram = _cyb_GetProcAddress(handle, 'nvrtcCreateProgram') - - global __nvrtcDestroyProgram - __nvrtcDestroyProgram = _cyb_GetProcAddress(handle, 'nvrtcDestroyProgram') - - global __nvrtcCompileProgram - __nvrtcCompileProgram = _cyb_GetProcAddress(handle, 'nvrtcCompileProgram') - - global __nvrtcGetPTXSize - __nvrtcGetPTXSize = _cyb_GetProcAddress(handle, 'nvrtcGetPTXSize') - - global __nvrtcGetPTX - __nvrtcGetPTX = _cyb_GetProcAddress(handle, 'nvrtcGetPTX') - - global __nvrtcGetCUBINSize - __nvrtcGetCUBINSize = _cyb_GetProcAddress(handle, 'nvrtcGetCUBINSize') - - global __nvrtcGetCUBIN - __nvrtcGetCUBIN = _cyb_GetProcAddress(handle, 'nvrtcGetCUBIN') - - global __nvrtcGetLTOIRSize - __nvrtcGetLTOIRSize = _cyb_GetProcAddress(handle, 'nvrtcGetLTOIRSize') - - global __nvrtcGetLTOIR - __nvrtcGetLTOIR = _cyb_GetProcAddress(handle, 'nvrtcGetLTOIR') - - global __nvrtcGetOptiXIRSize - __nvrtcGetOptiXIRSize = _cyb_GetProcAddress(handle, 'nvrtcGetOptiXIRSize') - - global __nvrtcGetOptiXIR - __nvrtcGetOptiXIR = _cyb_GetProcAddress(handle, 'nvrtcGetOptiXIR') - - global __nvrtcGetProgramLogSize - __nvrtcGetProgramLogSize = _cyb_GetProcAddress(handle, 'nvrtcGetProgramLogSize') - - global __nvrtcGetProgramLog - __nvrtcGetProgramLog = _cyb_GetProcAddress(handle, 'nvrtcGetProgramLog') - - global __nvrtcAddNameExpression - __nvrtcAddNameExpression = _cyb_GetProcAddress(handle, 'nvrtcAddNameExpression') - - global __nvrtcGetLoweredName - __nvrtcGetLoweredName = _cyb_GetProcAddress(handle, 'nvrtcGetLoweredName') - - global __nvrtcGetPCHHeapSize - __nvrtcGetPCHHeapSize = _cyb_GetProcAddress(handle, 'nvrtcGetPCHHeapSize') - - global __nvrtcSetPCHHeapSize - __nvrtcSetPCHHeapSize = _cyb_GetProcAddress(handle, 'nvrtcSetPCHHeapSize') - - global __nvrtcGetPCHCreateStatus - __nvrtcGetPCHCreateStatus = _cyb_GetProcAddress(handle, 'nvrtcGetPCHCreateStatus') - - global __nvrtcGetPCHHeapSizeRequired - __nvrtcGetPCHHeapSizeRequired = _cyb_GetProcAddress(handle, 'nvrtcGetPCHHeapSizeRequired') - - global __nvrtcSetFlowCallback - __nvrtcSetFlowCallback = _cyb_GetProcAddress(handle, 'nvrtcSetFlowCallback') + for i in range(_cyb_nvrtc_n_functions): + _cyb_nvrtc_slots[i][0] = _cyb_GetProcAddress(handle, _cyb_nvrtc_names[i]) _cyb_atomic_int_store(&_cyb___py_nvrtc_init, 1) return 0 @@ -187,77 +147,9 @@ cpdef dict _inspect_function_pointers(): _check_or_init_nvrtc() cdef dict data = {} - global __nvrtcGetErrorString - data["__nvrtcGetErrorString"] = __nvrtcGetErrorString - - global __nvrtcVersion - data["__nvrtcVersion"] = __nvrtcVersion - - global __nvrtcGetNumSupportedArchs - data["__nvrtcGetNumSupportedArchs"] = __nvrtcGetNumSupportedArchs - - global __nvrtcGetSupportedArchs - data["__nvrtcGetSupportedArchs"] = __nvrtcGetSupportedArchs - - global __nvrtcCreateProgram - data["__nvrtcCreateProgram"] = __nvrtcCreateProgram - - global __nvrtcDestroyProgram - data["__nvrtcDestroyProgram"] = __nvrtcDestroyProgram - - global __nvrtcCompileProgram - data["__nvrtcCompileProgram"] = __nvrtcCompileProgram - - global __nvrtcGetPTXSize - data["__nvrtcGetPTXSize"] = __nvrtcGetPTXSize - - global __nvrtcGetPTX - data["__nvrtcGetPTX"] = __nvrtcGetPTX - - global __nvrtcGetCUBINSize - data["__nvrtcGetCUBINSize"] = __nvrtcGetCUBINSize - - global __nvrtcGetCUBIN - data["__nvrtcGetCUBIN"] = __nvrtcGetCUBIN - - global __nvrtcGetLTOIRSize - data["__nvrtcGetLTOIRSize"] = __nvrtcGetLTOIRSize - - global __nvrtcGetLTOIR - data["__nvrtcGetLTOIR"] = __nvrtcGetLTOIR - - global __nvrtcGetOptiXIRSize - data["__nvrtcGetOptiXIRSize"] = __nvrtcGetOptiXIRSize - - global __nvrtcGetOptiXIR - data["__nvrtcGetOptiXIR"] = __nvrtcGetOptiXIR - - global __nvrtcGetProgramLogSize - data["__nvrtcGetProgramLogSize"] = __nvrtcGetProgramLogSize - - global __nvrtcGetProgramLog - data["__nvrtcGetProgramLog"] = __nvrtcGetProgramLog - - global __nvrtcAddNameExpression - data["__nvrtcAddNameExpression"] = __nvrtcAddNameExpression - - global __nvrtcGetLoweredName - data["__nvrtcGetLoweredName"] = __nvrtcGetLoweredName - - global __nvrtcGetPCHHeapSize - data["__nvrtcGetPCHHeapSize"] = __nvrtcGetPCHHeapSize - - global __nvrtcSetPCHHeapSize - data["__nvrtcSetPCHHeapSize"] = __nvrtcSetPCHHeapSize - - global __nvrtcGetPCHCreateStatus - data["__nvrtcGetPCHCreateStatus"] = __nvrtcGetPCHCreateStatus - - global __nvrtcGetPCHHeapSizeRequired - data["__nvrtcGetPCHHeapSizeRequired"] = __nvrtcGetPCHHeapSizeRequired - - global __nvrtcSetFlowCallback - data["__nvrtcSetFlowCallback"] = __nvrtcSetFlowCallback + cdef Py_ssize_t i + for i in range(_cyb_nvrtc_n_functions): + data['__' + _cyb_nvrtc_names[i].decode()] = _cyb_nvrtc_slots[i][0] _cyb_func_ptrs = data return data diff --git a/cuda_bindings_12/cuda/bindings/_internal/nvvm.pxd b/cuda_bindings_12/cuda/bindings/_internal/nvvm.pxd index 5b9abafa5df9..3a83588cc731 100644 --- a/cuda_bindings_12/cuda/bindings/_internal/nvvm.pxd +++ b/cuda_bindings_12/cuda/bindings/_internal/nvvm.pxd @@ -2,9 +2,9 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.0.1 to 13.4.1. Do not modify it directly. +# This code was automatically generated across versions from 12.0.1 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=6be47c668a3a1086937075cb5f4798941232ec81027841b98ee6ca66c277ff0c +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=139988e0b2d0716b7ecd715d927456bccf45a5ff0857d4f21f1d4530b4e831fa from ..cynvvm cimport * diff --git a/cuda_bindings_12/cuda/bindings/_internal/nvvm_linux.pyx b/cuda_bindings_12/cuda/bindings/_internal/nvvm_linux.pyx index 39329bc9b64c..64109ec65734 100644 --- a/cuda_bindings_12/cuda/bindings/_internal/nvvm_linux.pyx +++ b/cuda_bindings_12/cuda/bindings/_internal/nvvm_linux.pyx @@ -2,12 +2,14 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.0.1 to 13.4.1. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=cf645e79d2d72cd4c10d5f4fcd6bab245f292559ac432180554c0d944aa03dae +# This code was automatically generated across versions from 12.0.1 to 13.5.0. Do not modify it directly. +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=968ebda3f299a209f6240c152411869cef689b565fb8b504f7779caacef58b2f # <<<< PREAMBLE CONTENT >>>> +from libc.stdint cimport intptr_t + cdef extern from * nogil: """ #if defined(_MSC_VER) && !defined(__clang__) @@ -44,8 +46,6 @@ cdef extern from "": void* _cyb_dlsym "dlsym"(void*, const char*) nogil const void * _cyb_RTLD_DEFAULT "RTLD_DEFAULT" -from libc.stdint cimport intptr_t - import threading as _cyb_threading cdef int _cyb___py_nvvm_init = 0 @@ -79,109 +79,37 @@ cdef void* __nvvmGetProgramLogSize = NULL cdef void* __nvvmGetProgramLog = NULL cdef void* __nvvmLLVMVersion = NULL +cdef enum: _cyb_nvvm_n_functions = 14 +cdef void** _cyb_nvvm_slots[_cyb_nvvm_n_functions] +cdef const char* _cyb_nvvm_names[_cyb_nvvm_n_functions] +_cyb_nvvm_slots[0] = &__nvvmGetErrorString; _cyb_nvvm_names[0] = b'nvvmGetErrorString' +_cyb_nvvm_slots[1] = &__nvvmVersion; _cyb_nvvm_names[1] = b'nvvmVersion' +_cyb_nvvm_slots[2] = &__nvvmIRVersion; _cyb_nvvm_names[2] = b'nvvmIRVersion' +_cyb_nvvm_slots[3] = &__nvvmCreateProgram; _cyb_nvvm_names[3] = b'nvvmCreateProgram' +_cyb_nvvm_slots[4] = &__nvvmDestroyProgram; _cyb_nvvm_names[4] = b'nvvmDestroyProgram' +_cyb_nvvm_slots[5] = &__nvvmAddModuleToProgram; _cyb_nvvm_names[5] = b'nvvmAddModuleToProgram' +_cyb_nvvm_slots[6] = &__nvvmLazyAddModuleToProgram; _cyb_nvvm_names[6] = b'nvvmLazyAddModuleToProgram' +_cyb_nvvm_slots[7] = &__nvvmCompileProgram; _cyb_nvvm_names[7] = b'nvvmCompileProgram' +_cyb_nvvm_slots[8] = &__nvvmVerifyProgram; _cyb_nvvm_names[8] = b'nvvmVerifyProgram' +_cyb_nvvm_slots[9] = &__nvvmGetCompiledResultSize; _cyb_nvvm_names[9] = b'nvvmGetCompiledResultSize' +_cyb_nvvm_slots[10] = &__nvvmGetCompiledResult; _cyb_nvvm_names[10] = b'nvvmGetCompiledResult' +_cyb_nvvm_slots[11] = &__nvvmGetProgramLogSize; _cyb_nvvm_names[11] = b'nvvmGetProgramLogSize' +_cyb_nvvm_slots[12] = &__nvvmGetProgramLog; _cyb_nvvm_names[12] = b'nvvmGetProgramLog' +_cyb_nvvm_slots[13] = &__nvvmLLVMVersion; _cyb_nvvm_names[13] = b'nvvmLLVMVersion' + cdef int _init_nvvm() except -1 nogil: global _cyb___py_nvvm_init cdef void* handle = NULL + cdef Py_ssize_t i with gil, _cyb_symbol_lock: if _cyb___py_nvvm_init: return 0 - global __nvvmGetErrorString - __nvvmGetErrorString = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmGetErrorString') - if __nvvmGetErrorString == NULL: - if handle == NULL: - handle = load_library() - __nvvmGetErrorString = _cyb_dlsym(handle, 'nvvmGetErrorString') - - global __nvvmVersion - __nvvmVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmVersion') - if __nvvmVersion == NULL: - if handle == NULL: - handle = load_library() - __nvvmVersion = _cyb_dlsym(handle, 'nvvmVersion') - - global __nvvmIRVersion - __nvvmIRVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmIRVersion') - if __nvvmIRVersion == NULL: - if handle == NULL: - handle = load_library() - __nvvmIRVersion = _cyb_dlsym(handle, 'nvvmIRVersion') - - global __nvvmCreateProgram - __nvvmCreateProgram = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmCreateProgram') - if __nvvmCreateProgram == NULL: - if handle == NULL: - handle = load_library() - __nvvmCreateProgram = _cyb_dlsym(handle, 'nvvmCreateProgram') - - global __nvvmDestroyProgram - __nvvmDestroyProgram = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmDestroyProgram') - if __nvvmDestroyProgram == NULL: - if handle == NULL: - handle = load_library() - __nvvmDestroyProgram = _cyb_dlsym(handle, 'nvvmDestroyProgram') - - global __nvvmAddModuleToProgram - __nvvmAddModuleToProgram = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmAddModuleToProgram') - if __nvvmAddModuleToProgram == NULL: - if handle == NULL: - handle = load_library() - __nvvmAddModuleToProgram = _cyb_dlsym(handle, 'nvvmAddModuleToProgram') - - global __nvvmLazyAddModuleToProgram - __nvvmLazyAddModuleToProgram = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmLazyAddModuleToProgram') - if __nvvmLazyAddModuleToProgram == NULL: - if handle == NULL: - handle = load_library() - __nvvmLazyAddModuleToProgram = _cyb_dlsym(handle, 'nvvmLazyAddModuleToProgram') - - global __nvvmCompileProgram - __nvvmCompileProgram = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmCompileProgram') - if __nvvmCompileProgram == NULL: - if handle == NULL: - handle = load_library() - __nvvmCompileProgram = _cyb_dlsym(handle, 'nvvmCompileProgram') - - global __nvvmVerifyProgram - __nvvmVerifyProgram = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmVerifyProgram') - if __nvvmVerifyProgram == NULL: - if handle == NULL: - handle = load_library() - __nvvmVerifyProgram = _cyb_dlsym(handle, 'nvvmVerifyProgram') - - global __nvvmGetCompiledResultSize - __nvvmGetCompiledResultSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmGetCompiledResultSize') - if __nvvmGetCompiledResultSize == NULL: - if handle == NULL: - handle = load_library() - __nvvmGetCompiledResultSize = _cyb_dlsym(handle, 'nvvmGetCompiledResultSize') - - global __nvvmGetCompiledResult - __nvvmGetCompiledResult = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmGetCompiledResult') - if __nvvmGetCompiledResult == NULL: - if handle == NULL: - handle = load_library() - __nvvmGetCompiledResult = _cyb_dlsym(handle, 'nvvmGetCompiledResult') - - global __nvvmGetProgramLogSize - __nvvmGetProgramLogSize = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmGetProgramLogSize') - if __nvvmGetProgramLogSize == NULL: - if handle == NULL: - handle = load_library() - __nvvmGetProgramLogSize = _cyb_dlsym(handle, 'nvvmGetProgramLogSize') - - global __nvvmGetProgramLog - __nvvmGetProgramLog = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmGetProgramLog') - if __nvvmGetProgramLog == NULL: - if handle == NULL: - handle = load_library() - __nvvmGetProgramLog = _cyb_dlsym(handle, 'nvvmGetProgramLog') - - global __nvvmLLVMVersion - __nvvmLLVMVersion = _cyb_dlsym(_cyb_RTLD_DEFAULT, 'nvvmLLVMVersion') - if __nvvmLLVMVersion == NULL: - if handle == NULL: - handle = load_library() - __nvvmLLVMVersion = _cyb_dlsym(handle, 'nvvmLLVMVersion') + for i in range(_cyb_nvvm_n_functions): + _cyb_nvvm_slots[i][0] = _cyb_dlsym(_cyb_RTLD_DEFAULT, _cyb_nvvm_names[i]) + if _cyb_nvvm_slots[i][0] == NULL: + if handle == NULL: + handle = load_library() + _cyb_nvvm_slots[i][0] = _cyb_dlsym(handle, _cyb_nvvm_names[i]) _cyb_atomic_int_store(&_cyb___py_nvvm_init, 1) return 0 @@ -200,47 +128,9 @@ cpdef dict _inspect_function_pointers(): _check_or_init_nvvm() cdef dict data = {} - global __nvvmGetErrorString - data["__nvvmGetErrorString"] = __nvvmGetErrorString - - global __nvvmVersion - data["__nvvmVersion"] = __nvvmVersion - - global __nvvmIRVersion - data["__nvvmIRVersion"] = __nvvmIRVersion - - global __nvvmCreateProgram - data["__nvvmCreateProgram"] = __nvvmCreateProgram - - global __nvvmDestroyProgram - data["__nvvmDestroyProgram"] = __nvvmDestroyProgram - - global __nvvmAddModuleToProgram - data["__nvvmAddModuleToProgram"] = __nvvmAddModuleToProgram - - global __nvvmLazyAddModuleToProgram - data["__nvvmLazyAddModuleToProgram"] = __nvvmLazyAddModuleToProgram - - global __nvvmCompileProgram - data["__nvvmCompileProgram"] = __nvvmCompileProgram - - global __nvvmVerifyProgram - data["__nvvmVerifyProgram"] = __nvvmVerifyProgram - - global __nvvmGetCompiledResultSize - data["__nvvmGetCompiledResultSize"] = __nvvmGetCompiledResultSize - - global __nvvmGetCompiledResult - data["__nvvmGetCompiledResult"] = __nvvmGetCompiledResult - - global __nvvmGetProgramLogSize - data["__nvvmGetProgramLogSize"] = __nvvmGetProgramLogSize - - global __nvvmGetProgramLog - data["__nvvmGetProgramLog"] = __nvvmGetProgramLog - - global __nvvmLLVMVersion - data["__nvvmLLVMVersion"] = __nvvmLLVMVersion + cdef Py_ssize_t i + for i in range(_cyb_nvvm_n_functions): + data['__' + _cyb_nvvm_names[i].decode()] = _cyb_nvvm_slots[i][0] _cyb_func_ptrs = data return data diff --git a/cuda_bindings_12/cuda/bindings/_internal/nvvm_windows.pyx b/cuda_bindings_12/cuda/bindings/_internal/nvvm_windows.pyx index 047c99f2b9f2..a03b9a9b7519 100644 --- a/cuda_bindings_12/cuda/bindings/_internal/nvvm_windows.pyx +++ b/cuda_bindings_12/cuda/bindings/_internal/nvvm_windows.pyx @@ -2,12 +2,17 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.0.1 to 13.4.1. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=d826369ce197164240eae2ca22bc88bb193a3ec936946b9d3b5b906b503fb446 +# This code was automatically generated across versions from 12.0.1 to 13.5.0. Do not modify it directly. +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=6295f4cb60761857a1b8b261f8923391d85382748a7868ecbe10db6c52f78cdb # <<<< PREAMBLE CONTENT >>>> +from libc.stdint cimport ( + intptr_t, + uintptr_t, +) + cdef extern from * nogil: """ #if defined(_MSC_VER) && !defined(__clang__) @@ -44,11 +49,6 @@ cdef extern from "": ctypedef void* HMODULE void* _cyb_GetProcAddress "GetProcAddress"(HMODULE, const char*) nogil -from libc.stdint cimport ( - intptr_t, - uintptr_t, -) - import threading as _cyb_threading cdef int _cyb___py_nvvm_init = 0 @@ -79,56 +79,36 @@ cdef void* __nvvmGetProgramLogSize = NULL cdef void* __nvvmGetProgramLog = NULL cdef void* __nvvmLLVMVersion = NULL +cdef enum: _cyb_nvvm_n_functions = 14 +cdef void** _cyb_nvvm_slots[_cyb_nvvm_n_functions] +cdef const char* _cyb_nvvm_names[_cyb_nvvm_n_functions] +_cyb_nvvm_slots[0] = &__nvvmGetErrorString; _cyb_nvvm_names[0] = b'nvvmGetErrorString' +_cyb_nvvm_slots[1] = &__nvvmVersion; _cyb_nvvm_names[1] = b'nvvmVersion' +_cyb_nvvm_slots[2] = &__nvvmIRVersion; _cyb_nvvm_names[2] = b'nvvmIRVersion' +_cyb_nvvm_slots[3] = &__nvvmCreateProgram; _cyb_nvvm_names[3] = b'nvvmCreateProgram' +_cyb_nvvm_slots[4] = &__nvvmDestroyProgram; _cyb_nvvm_names[4] = b'nvvmDestroyProgram' +_cyb_nvvm_slots[5] = &__nvvmAddModuleToProgram; _cyb_nvvm_names[5] = b'nvvmAddModuleToProgram' +_cyb_nvvm_slots[6] = &__nvvmLazyAddModuleToProgram; _cyb_nvvm_names[6] = b'nvvmLazyAddModuleToProgram' +_cyb_nvvm_slots[7] = &__nvvmCompileProgram; _cyb_nvvm_names[7] = b'nvvmCompileProgram' +_cyb_nvvm_slots[8] = &__nvvmVerifyProgram; _cyb_nvvm_names[8] = b'nvvmVerifyProgram' +_cyb_nvvm_slots[9] = &__nvvmGetCompiledResultSize; _cyb_nvvm_names[9] = b'nvvmGetCompiledResultSize' +_cyb_nvvm_slots[10] = &__nvvmGetCompiledResult; _cyb_nvvm_names[10] = b'nvvmGetCompiledResult' +_cyb_nvvm_slots[11] = &__nvvmGetProgramLogSize; _cyb_nvvm_names[11] = b'nvvmGetProgramLogSize' +_cyb_nvvm_slots[12] = &__nvvmGetProgramLog; _cyb_nvvm_names[12] = b'nvvmGetProgramLog' +_cyb_nvvm_slots[13] = &__nvvmLLVMVersion; _cyb_nvvm_names[13] = b'nvvmLLVMVersion' + cdef int _init_nvvm() except -1 nogil: global _cyb___py_nvvm_init cdef int err cdef uintptr_t handle + cdef Py_ssize_t i with gil, _cyb_symbol_lock: if _cyb___py_nvvm_init: return 0 handle = load_library() - global __nvvmGetErrorString - __nvvmGetErrorString = _cyb_GetProcAddress(handle, 'nvvmGetErrorString') - - global __nvvmVersion - __nvvmVersion = _cyb_GetProcAddress(handle, 'nvvmVersion') - - global __nvvmIRVersion - __nvvmIRVersion = _cyb_GetProcAddress(handle, 'nvvmIRVersion') - - global __nvvmCreateProgram - __nvvmCreateProgram = _cyb_GetProcAddress(handle, 'nvvmCreateProgram') - - global __nvvmDestroyProgram - __nvvmDestroyProgram = _cyb_GetProcAddress(handle, 'nvvmDestroyProgram') - - global __nvvmAddModuleToProgram - __nvvmAddModuleToProgram = _cyb_GetProcAddress(handle, 'nvvmAddModuleToProgram') - - global __nvvmLazyAddModuleToProgram - __nvvmLazyAddModuleToProgram = _cyb_GetProcAddress(handle, 'nvvmLazyAddModuleToProgram') - - global __nvvmCompileProgram - __nvvmCompileProgram = _cyb_GetProcAddress(handle, 'nvvmCompileProgram') - - global __nvvmVerifyProgram - __nvvmVerifyProgram = _cyb_GetProcAddress(handle, 'nvvmVerifyProgram') - - global __nvvmGetCompiledResultSize - __nvvmGetCompiledResultSize = _cyb_GetProcAddress(handle, 'nvvmGetCompiledResultSize') - - global __nvvmGetCompiledResult - __nvvmGetCompiledResult = _cyb_GetProcAddress(handle, 'nvvmGetCompiledResult') - - global __nvvmGetProgramLogSize - __nvvmGetProgramLogSize = _cyb_GetProcAddress(handle, 'nvvmGetProgramLogSize') - - global __nvvmGetProgramLog - __nvvmGetProgramLog = _cyb_GetProcAddress(handle, 'nvvmGetProgramLog') - - global __nvvmLLVMVersion - __nvvmLLVMVersion = _cyb_GetProcAddress(handle, 'nvvmLLVMVersion') + for i in range(_cyb_nvvm_n_functions): + _cyb_nvvm_slots[i][0] = _cyb_GetProcAddress(handle, _cyb_nvvm_names[i]) _cyb_atomic_int_store(&_cyb___py_nvvm_init, 1) return 0 @@ -147,47 +127,9 @@ cpdef dict _inspect_function_pointers(): _check_or_init_nvvm() cdef dict data = {} - global __nvvmGetErrorString - data["__nvvmGetErrorString"] = __nvvmGetErrorString - - global __nvvmVersion - data["__nvvmVersion"] = __nvvmVersion - - global __nvvmIRVersion - data["__nvvmIRVersion"] = __nvvmIRVersion - - global __nvvmCreateProgram - data["__nvvmCreateProgram"] = __nvvmCreateProgram - - global __nvvmDestroyProgram - data["__nvvmDestroyProgram"] = __nvvmDestroyProgram - - global __nvvmAddModuleToProgram - data["__nvvmAddModuleToProgram"] = __nvvmAddModuleToProgram - - global __nvvmLazyAddModuleToProgram - data["__nvvmLazyAddModuleToProgram"] = __nvvmLazyAddModuleToProgram - - global __nvvmCompileProgram - data["__nvvmCompileProgram"] = __nvvmCompileProgram - - global __nvvmVerifyProgram - data["__nvvmVerifyProgram"] = __nvvmVerifyProgram - - global __nvvmGetCompiledResultSize - data["__nvvmGetCompiledResultSize"] = __nvvmGetCompiledResultSize - - global __nvvmGetCompiledResult - data["__nvvmGetCompiledResult"] = __nvvmGetCompiledResult - - global __nvvmGetProgramLogSize - data["__nvvmGetProgramLogSize"] = __nvvmGetProgramLogSize - - global __nvvmGetProgramLog - data["__nvvmGetProgramLog"] = __nvvmGetProgramLog - - global __nvvmLLVMVersion - data["__nvvmLLVMVersion"] = __nvvmLLVMVersion + cdef Py_ssize_t i + for i in range(_cyb_nvvm_n_functions): + data['__' + _cyb_nvvm_names[i].decode()] = _cyb_nvvm_slots[i][0] _cyb_func_ptrs = data return data diff --git a/cuda_bindings_12/cuda/bindings/_bindings/cyruntime.pxd.in b/cuda_bindings_12/cuda/bindings/_internal/runtime.pxd similarity index 69% rename from cuda_bindings_12/cuda/bindings/_bindings/cyruntime.pxd.in rename to cuda_bindings_12/cuda/bindings/_internal/runtime.pxd index 52389ddf04ab..1e017ed0aaeb 100644 --- a/cuda_bindings_12/cuda/bindings/_bindings/cyruntime.pxd.in +++ b/cuda_bindings_12/cuda/bindings/_internal/runtime.pxd @@ -1,1468 +1,310 @@ # SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# # SPDX-License-Identifier: Apache-2.0 - +# # This code was automatically generated with version 12.9.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=497222751557bdc4a8756fe4782b96e2baa2e59daf890a40b166d80f97a74bf8 -include "../cyruntime_types.pxi" +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=b8b94e2fb6801fcb9511020883fa31f8393d01d7e54188e729e88152a96bca23 +from ..cyruntime cimport * + +# EGL/GL/VDPAU helper declarations (implementations included in runtime_linux/windows.pyx) include "../_lib/cyruntime/cyruntime.pxd" -{{if 'cudaDeviceReset' in found_functions}} +cdef cudaError_t _getLocalRuntimeVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaDeviceReset() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} -{{if 'cudaDeviceSynchronize' in found_functions}} +############################################################################### +# Wrapper functions +############################################################################### +cdef cudaError_t _cudaDeviceReset() except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaDeviceSynchronize() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetLimit' in found_functions}} - cdef cudaError_t _cudaDeviceSetLimit(cudaLimit limit, size_t value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetLimit' in found_functions}} - cdef cudaError_t _cudaDeviceGetLimit(size_t* pValue, cudaLimit limit) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetTexture1DLinearMaxWidth' in found_functions}} - cdef cudaError_t _cudaDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetCacheConfig' in found_functions}} - cdef cudaError_t _cudaDeviceGetCacheConfig(cudaFuncCache* pCacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetStreamPriorityRange' in found_functions}} - cdef cudaError_t _cudaDeviceGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetCacheConfig' in found_functions}} - cdef cudaError_t _cudaDeviceSetCacheConfig(cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetByPCIBusId' in found_functions}} - cdef cudaError_t _cudaDeviceGetByPCIBusId(int* device, const char* pciBusId) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetPCIBusId' in found_functions}} - -cdef cudaError_t _cudaDeviceGetPCIBusId(char* pciBusId, int length, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcGetEventHandle' in found_functions}} - +cdef cudaError_t _cudaDeviceGetPCIBusId(char* pciBusId, int len, int device) except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaIpcGetEventHandle(cudaIpcEventHandle_t* handle, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcOpenEventHandle' in found_functions}} - cdef cudaError_t _cudaIpcOpenEventHandle(cudaEvent_t* event, cudaIpcEventHandle_t handle) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcGetMemHandle' in found_functions}} - cdef cudaError_t _cudaIpcGetMemHandle(cudaIpcMemHandle_t* handle, void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcOpenMemHandle' in found_functions}} - cdef cudaError_t _cudaIpcOpenMemHandle(void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcCloseMemHandle' in found_functions}} - cdef cudaError_t _cudaIpcCloseMemHandle(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceFlushGPUDirectRDMAWrites' in found_functions}} - cdef cudaError_t _cudaDeviceFlushGPUDirectRDMAWrites(cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceRegisterAsyncNotification' in found_functions}} - cdef cudaError_t _cudaDeviceRegisterAsyncNotification(int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceUnregisterAsyncNotification' in found_functions}} - cdef cudaError_t _cudaDeviceUnregisterAsyncNotification(int device, cudaAsyncCallbackHandle_t callback) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetSharedMemConfig' in found_functions}} - cdef cudaError_t _cudaDeviceGetSharedMemConfig(cudaSharedMemConfig* pConfig) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetSharedMemConfig' in found_functions}} - cdef cudaError_t _cudaDeviceSetSharedMemConfig(cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetLastError' in found_functions}} - cdef cudaError_t _cudaGetLastError() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaPeekAtLastError' in found_functions}} - cdef cudaError_t _cudaPeekAtLastError() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetErrorName' in found_functions}} - -cdef const char* _cudaGetErrorName(cudaError_t error) except ?NULL nogil -{{endif}} - -{{if 'cudaGetErrorString' in found_functions}} - -cdef const char* _cudaGetErrorString(cudaError_t error) except ?NULL nogil -{{endif}} - -{{if 'cudaGetDeviceCount' in found_functions}} - +cdef const char* _cudaGetErrorName(cudaError_t error) except?NULL nogil +cdef const char* _cudaGetErrorString(cudaError_t error) except?NULL nogil cdef cudaError_t _cudaGetDeviceCount(int* count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDeviceProperties_v2' in found_functions}} - cdef cudaError_t _cudaGetDeviceProperties_v2(cudaDeviceProp* prop, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetAttribute' in found_functions}} - cdef cudaError_t _cudaDeviceGetAttribute(int* value, cudaDeviceAttr attr, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetDefaultMemPool' in found_functions}} - cdef cudaError_t _cudaDeviceGetDefaultMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetMemPool' in found_functions}} - cdef cudaError_t _cudaDeviceSetMemPool(int device, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetMemPool' in found_functions}} - cdef cudaError_t _cudaDeviceGetMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetNvSciSyncAttributes' in found_functions}} - cdef cudaError_t _cudaDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, int device, int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetP2PAttribute' in found_functions}} - cdef cudaError_t _cudaDeviceGetP2PAttribute(int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaChooseDevice' in found_functions}} - cdef cudaError_t _cudaChooseDevice(int* device, const cudaDeviceProp* prop) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaInitDevice' in found_functions}} - cdef cudaError_t _cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaSetDevice' in found_functions}} - cdef cudaError_t _cudaSetDevice(int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDevice' in found_functions}} - cdef cudaError_t _cudaGetDevice(int* device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaSetDeviceFlags' in found_functions}} - cdef cudaError_t _cudaSetDeviceFlags(unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDeviceFlags' in found_functions}} - cdef cudaError_t _cudaGetDeviceFlags(unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamCreate' in found_functions}} - cdef cudaError_t _cudaStreamCreate(cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamCreateWithFlags' in found_functions}} - cdef cudaError_t _cudaStreamCreateWithFlags(cudaStream_t* pStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamCreateWithPriority' in found_functions}} - cdef cudaError_t _cudaStreamCreateWithPriority(cudaStream_t* pStream, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetPriority' in found_functions}} - cdef cudaError_t _cudaStreamGetPriority(cudaStream_t hStream, int* priority) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetFlags' in found_functions}} - cdef cudaError_t _cudaStreamGetFlags(cudaStream_t hStream, unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetId' in found_functions}} - cdef cudaError_t _cudaStreamGetId(cudaStream_t hStream, unsigned long long* streamId) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetDevice' in found_functions}} - cdef cudaError_t _cudaStreamGetDevice(cudaStream_t hStream, int* device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaCtxResetPersistingL2Cache' in found_functions}} - cdef cudaError_t _cudaCtxResetPersistingL2Cache() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamCopyAttributes' in found_functions}} - cdef cudaError_t _cudaStreamCopyAttributes(cudaStream_t dst, cudaStream_t src) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetAttribute' in found_functions}} - cdef cudaError_t _cudaStreamGetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, cudaStreamAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamSetAttribute' in found_functions}} - cdef cudaError_t _cudaStreamSetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, const cudaStreamAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamDestroy' in found_functions}} - cdef cudaError_t _cudaStreamDestroy(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamWaitEvent' in found_functions}} - cdef cudaError_t _cudaStreamWaitEvent(cudaStream_t stream, cudaEvent_t event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamAddCallback' in found_functions}} - cdef cudaError_t _cudaStreamAddCallback(cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamSynchronize' in found_functions}} - cdef cudaError_t _cudaStreamSynchronize(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamQuery' in found_functions}} - cdef cudaError_t _cudaStreamQuery(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamAttachMemAsync' in found_functions}} - cdef cudaError_t _cudaStreamAttachMemAsync(cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamBeginCapture' in found_functions}} - cdef cudaError_t _cudaStreamBeginCapture(cudaStream_t stream, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamBeginCaptureToGraph' in found_functions}} - cdef cudaError_t _cudaStreamBeginCaptureToGraph(cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaThreadExchangeStreamCaptureMode' in found_functions}} - cdef cudaError_t _cudaThreadExchangeStreamCaptureMode(cudaStreamCaptureMode* mode) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamEndCapture' in found_functions}} - cdef cudaError_t _cudaStreamEndCapture(cudaStream_t stream, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamIsCapturing' in found_functions}} - cdef cudaError_t _cudaStreamIsCapturing(cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetCaptureInfo_v2' in found_functions}} - cdef cudaError_t _cudaStreamGetCaptureInfo_v2(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetCaptureInfo_v3' in found_functions}} - cdef cudaError_t _cudaStreamGetCaptureInfo_v3(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamUpdateCaptureDependencies' in found_functions}} - cdef cudaError_t _cudaStreamUpdateCaptureDependencies(cudaStream_t stream, cudaGraphNode_t* dependencies, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamUpdateCaptureDependencies_v2' in found_functions}} - cdef cudaError_t _cudaStreamUpdateCaptureDependencies_v2(cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventCreate' in found_functions}} - cdef cudaError_t _cudaEventCreate(cudaEvent_t* event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventCreateWithFlags' in found_functions}} - cdef cudaError_t _cudaEventCreateWithFlags(cudaEvent_t* event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventRecord' in found_functions}} - cdef cudaError_t _cudaEventRecord(cudaEvent_t event, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventRecordWithFlags' in found_functions}} - cdef cudaError_t _cudaEventRecordWithFlags(cudaEvent_t event, cudaStream_t stream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventQuery' in found_functions}} - cdef cudaError_t _cudaEventQuery(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventSynchronize' in found_functions}} - cdef cudaError_t _cudaEventSynchronize(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventDestroy' in found_functions}} - cdef cudaError_t _cudaEventDestroy(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventElapsedTime' in found_functions}} - cdef cudaError_t _cudaEventElapsedTime(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventElapsedTime_v2' in found_functions}} - cdef cudaError_t _cudaEventElapsedTime_v2(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaImportExternalMemory' in found_functions}} - cdef cudaError_t _cudaImportExternalMemory(cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExternalMemoryGetMappedBuffer' in found_functions}} - cdef cudaError_t _cudaExternalMemoryGetMappedBuffer(void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExternalMemoryGetMappedMipmappedArray' in found_functions}} - cdef cudaError_t _cudaExternalMemoryGetMappedMipmappedArray(cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDestroyExternalMemory' in found_functions}} - cdef cudaError_t _cudaDestroyExternalMemory(cudaExternalMemory_t extMem) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaImportExternalSemaphore' in found_functions}} - cdef cudaError_t _cudaImportExternalSemaphore(cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaSignalExternalSemaphoresAsync_v2' in found_functions}} - cdef cudaError_t _cudaSignalExternalSemaphoresAsync_v2(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaWaitExternalSemaphoresAsync_v2' in found_functions}} - cdef cudaError_t _cudaWaitExternalSemaphoresAsync_v2(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDestroyExternalSemaphore' in found_functions}} - cdef cudaError_t _cudaDestroyExternalSemaphore(cudaExternalSemaphore_t extSem) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFuncSetCacheConfig' in found_functions}} - cdef cudaError_t _cudaFuncSetCacheConfig(const void* func, cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFuncGetAttributes' in found_functions}} - cdef cudaError_t _cudaFuncGetAttributes(cudaFuncAttributes* attr, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFuncSetAttribute' in found_functions}} - cdef cudaError_t _cudaFuncSetAttribute(const void* func, cudaFuncAttribute attr, int value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLaunchHostFunc' in found_functions}} - +cdef cudaError_t _cudaFuncGetName(const char** name, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaFuncGetParamInfo(const void* func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaLaunchHostFunc(cudaStream_t stream, cudaHostFn_t fn, void* userData) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFuncSetSharedMemConfig' in found_functions}} - cdef cudaError_t _cudaFuncSetSharedMemConfig(const void* func, cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}} - cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaOccupancyAvailableDynamicSMemPerBlock' in found_functions}} - cdef cudaError_t _cudaOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}} - cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocManaged' in found_functions}} - cdef cudaError_t _cudaMallocManaged(void** devPtr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMalloc' in found_functions}} - cdef cudaError_t _cudaMalloc(void** devPtr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocHost' in found_functions}} - cdef cudaError_t _cudaMallocHost(void** ptr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocPitch' in found_functions}} - cdef cudaError_t _cudaMallocPitch(void** devPtr, size_t* pitch, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocArray' in found_functions}} - cdef cudaError_t _cudaMallocArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFree' in found_functions}} - cdef cudaError_t _cudaFree(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFreeHost' in found_functions}} - cdef cudaError_t _cudaFreeHost(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFreeArray' in found_functions}} - cdef cudaError_t _cudaFreeArray(cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFreeMipmappedArray' in found_functions}} - cdef cudaError_t _cudaFreeMipmappedArray(cudaMipmappedArray_t mipmappedArray) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostAlloc' in found_functions}} - cdef cudaError_t _cudaHostAlloc(void** pHost, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostRegister' in found_functions}} - cdef cudaError_t _cudaHostRegister(void* ptr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostUnregister' in found_functions}} - cdef cudaError_t _cudaHostUnregister(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostGetDevicePointer' in found_functions}} - cdef cudaError_t _cudaHostGetDevicePointer(void** pDevice, void* pHost, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostGetFlags' in found_functions}} - cdef cudaError_t _cudaHostGetFlags(unsigned int* pFlags, void* pHost) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMalloc3D' in found_functions}} - cdef cudaError_t _cudaMalloc3D(cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMalloc3DArray' in found_functions}} - cdef cudaError_t _cudaMalloc3DArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocMipmappedArray' in found_functions}} - cdef cudaError_t _cudaMallocMipmappedArray(cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetMipmappedArrayLevel' in found_functions}} - cdef cudaError_t _cudaGetMipmappedArrayLevel(cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3D' in found_functions}} - cdef cudaError_t _cudaMemcpy3D(const cudaMemcpy3DParms* p) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3DPeer' in found_functions}} - cdef cudaError_t _cudaMemcpy3DPeer(const cudaMemcpy3DPeerParms* p) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3DAsync' in found_functions}} - cdef cudaError_t _cudaMemcpy3DAsync(const cudaMemcpy3DParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3DPeerAsync' in found_functions}} - cdef cudaError_t _cudaMemcpy3DPeerAsync(const cudaMemcpy3DPeerParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemGetInfo' in found_functions}} - cdef cudaError_t _cudaMemGetInfo(size_t* free, size_t* total) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaArrayGetInfo' in found_functions}} - cdef cudaError_t _cudaArrayGetInfo(cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaArrayGetPlane' in found_functions}} - cdef cudaError_t _cudaArrayGetPlane(cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaArrayGetMemoryRequirements' in found_functions}} - cdef cudaError_t _cudaArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMipmappedArrayGetMemoryRequirements' in found_functions}} - cdef cudaError_t _cudaMipmappedArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaArrayGetSparseProperties' in found_functions}} - cdef cudaError_t _cudaArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMipmappedArrayGetSparseProperties' in found_functions}} - cdef cudaError_t _cudaMipmappedArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy' in found_functions}} - cdef cudaError_t _cudaMemcpy(void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyPeer' in found_functions}} - cdef cudaError_t _cudaMemcpyPeer(void* dst, int dstDevice, const void* src, int srcDevice, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2D' in found_functions}} - cdef cudaError_t _cudaMemcpy2D(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DToArray' in found_functions}} - cdef cudaError_t _cudaMemcpy2DToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DFromArray' in found_functions}} - cdef cudaError_t _cudaMemcpy2DFromArray(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DArrayToArray' in found_functions}} - cdef cudaError_t _cudaMemcpy2DArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyAsync' in found_functions}} - cdef cudaError_t _cudaMemcpyAsync(void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyPeerAsync' in found_functions}} - cdef cudaError_t _cudaMemcpyPeerAsync(void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyBatchAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpyBatchAsync(void** dsts, void** srcs, size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, size_t* failIdx, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3DBatchAsync' in found_functions}} - +cdef cudaError_t _cudaMemcpyBatchAsync(const void** dsts, void** srcs, size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, size_t* failIdx, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaMemcpy3DBatchAsync(size_t numOps, cudaMemcpy3DBatchOp* opList, size_t* failIdx, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DAsync' in found_functions}} - cdef cudaError_t _cudaMemcpy2DAsync(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DToArrayAsync' in found_functions}} - cdef cudaError_t _cudaMemcpy2DToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DFromArrayAsync' in found_functions}} - cdef cudaError_t _cudaMemcpy2DFromArrayAsync(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset' in found_functions}} - cdef cudaError_t _cudaMemset(void* devPtr, int value, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset2D' in found_functions}} - cdef cudaError_t _cudaMemset2D(void* devPtr, size_t pitch, int value, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset3D' in found_functions}} - cdef cudaError_t _cudaMemset3D(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemsetAsync' in found_functions}} - cdef cudaError_t _cudaMemsetAsync(void* devPtr, int value, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset2DAsync' in found_functions}} - cdef cudaError_t _cudaMemset2DAsync(void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset3DAsync' in found_functions}} - cdef cudaError_t _cudaMemset3DAsync(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPrefetchAsync' in found_functions}} - cdef cudaError_t _cudaMemPrefetchAsync(const void* devPtr, size_t count, int dstDevice, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPrefetchAsync_v2' in found_functions}} - cdef cudaError_t _cudaMemPrefetchAsync_v2(const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemAdvise' in found_functions}} - cdef cudaError_t _cudaMemAdvise(const void* devPtr, size_t count, cudaMemoryAdvise advice, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemAdvise_v2' in found_functions}} - cdef cudaError_t _cudaMemAdvise_v2(const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemRangeGetAttribute' in found_functions}} - cdef cudaError_t _cudaMemRangeGetAttribute(void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemRangeGetAttributes' in found_functions}} - cdef cudaError_t _cudaMemRangeGetAttributes(void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyToArray' in found_functions}} - cdef cudaError_t _cudaMemcpyToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyFromArray' in found_functions}} - cdef cudaError_t _cudaMemcpyFromArray(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyArrayToArray' in found_functions}} - cdef cudaError_t _cudaMemcpyArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyToArrayAsync' in found_functions}} - cdef cudaError_t _cudaMemcpyToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyFromArrayAsync' in found_functions}} - cdef cudaError_t _cudaMemcpyFromArrayAsync(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocAsync' in found_functions}} - cdef cudaError_t _cudaMallocAsync(void** devPtr, size_t size, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFreeAsync' in found_functions}} - cdef cudaError_t _cudaFreeAsync(void* devPtr, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolTrimTo' in found_functions}} - cdef cudaError_t _cudaMemPoolTrimTo(cudaMemPool_t memPool, size_t minBytesToKeep) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolSetAttribute' in found_functions}} - cdef cudaError_t _cudaMemPoolSetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolGetAttribute' in found_functions}} - cdef cudaError_t _cudaMemPoolGetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolSetAccess' in found_functions}} - cdef cudaError_t _cudaMemPoolSetAccess(cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolGetAccess' in found_functions}} - cdef cudaError_t _cudaMemPoolGetAccess(cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolCreate' in found_functions}} - cdef cudaError_t _cudaMemPoolCreate(cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolDestroy' in found_functions}} - cdef cudaError_t _cudaMemPoolDestroy(cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocFromPoolAsync' in found_functions}} - cdef cudaError_t _cudaMallocFromPoolAsync(void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolExportToShareableHandle' in found_functions}} - cdef cudaError_t _cudaMemPoolExportToShareableHandle(void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolImportFromShareableHandle' in found_functions}} - cdef cudaError_t _cudaMemPoolImportFromShareableHandle(cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolExportPointer' in found_functions}} - cdef cudaError_t _cudaMemPoolExportPointer(cudaMemPoolPtrExportData* exportData, void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolImportPointer' in found_functions}} - cdef cudaError_t _cudaMemPoolImportPointer(void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaPointerGetAttributes' in found_functions}} - cdef cudaError_t _cudaPointerGetAttributes(cudaPointerAttributes* attributes, const void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceCanAccessPeer' in found_functions}} - cdef cudaError_t _cudaDeviceCanAccessPeer(int* canAccessPeer, int device, int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceEnablePeerAccess' in found_functions}} - cdef cudaError_t _cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceDisablePeerAccess' in found_functions}} - cdef cudaError_t _cudaDeviceDisablePeerAccess(int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsUnregisterResource' in found_functions}} - cdef cudaError_t _cudaGraphicsUnregisterResource(cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsResourceSetMapFlags' in found_functions}} - cdef cudaError_t _cudaGraphicsResourceSetMapFlags(cudaGraphicsResource_t resource, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsMapResources' in found_functions}} - cdef cudaError_t _cudaGraphicsMapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsUnmapResources' in found_functions}} - cdef cudaError_t _cudaGraphicsUnmapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsResourceGetMappedPointer' in found_functions}} - cdef cudaError_t _cudaGraphicsResourceGetMappedPointer(void** devPtr, size_t* size, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsSubResourceGetMappedArray' in found_functions}} - cdef cudaError_t _cudaGraphicsSubResourceGetMappedArray(cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsResourceGetMappedMipmappedArray' in found_functions}} - cdef cudaError_t _cudaGraphicsResourceGetMappedMipmappedArray(cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetChannelDesc' in found_functions}} - cdef cudaError_t _cudaGetChannelDesc(cudaChannelFormatDesc* desc, cudaArray_const_t array) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaCreateChannelDesc' in found_functions}} - cdef cudaChannelFormatDesc _cudaCreateChannelDesc(int x, int y, int z, int w, cudaChannelFormatKind f) except* nogil -{{endif}} - -{{if 'cudaCreateTextureObject' in found_functions}} - cdef cudaError_t _cudaCreateTextureObject(cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDestroyTextureObject' in found_functions}} - cdef cudaError_t _cudaDestroyTextureObject(cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetTextureObjectResourceDesc' in found_functions}} - cdef cudaError_t _cudaGetTextureObjectResourceDesc(cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetTextureObjectTextureDesc' in found_functions}} - cdef cudaError_t _cudaGetTextureObjectTextureDesc(cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetTextureObjectResourceViewDesc' in found_functions}} - cdef cudaError_t _cudaGetTextureObjectResourceViewDesc(cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaCreateSurfaceObject' in found_functions}} - cdef cudaError_t _cudaCreateSurfaceObject(cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDestroySurfaceObject' in found_functions}} - cdef cudaError_t _cudaDestroySurfaceObject(cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetSurfaceObjectResourceDesc' in found_functions}} - cdef cudaError_t _cudaGetSurfaceObjectResourceDesc(cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDriverGetVersion' in found_functions}} - cdef cudaError_t _cudaDriverGetVersion(int* driverVersion) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaRuntimeGetVersion' in found_functions}} - cdef cudaError_t _cudaRuntimeGetVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphCreate' in found_functions}} - cdef cudaError_t _cudaGraphCreate(cudaGraph_t* pGraph, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddKernelNode' in found_functions}} - cdef cudaError_t _cudaGraphAddKernelNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphKernelNodeGetParams(cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphKernelNodeSetParams(cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeCopyAttributes' in found_functions}} - cdef cudaError_t _cudaGraphKernelNodeCopyAttributes(cudaGraphNode_t hSrc, cudaGraphNode_t hDst) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeGetAttribute' in found_functions}} - cdef cudaError_t _cudaGraphKernelNodeGetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, cudaKernelNodeAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeSetAttribute' in found_functions}} - cdef cudaError_t _cudaGraphKernelNodeSetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, const cudaKernelNodeAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemcpyNode' in found_functions}} - cdef cudaError_t _cudaGraphAddMemcpyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemcpyNode1D' in found_functions}} - cdef cudaError_t _cudaGraphAddMemcpyNode1D(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemcpyNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphMemcpyNodeGetParams(cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemcpyNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphMemcpyNodeSetParams(cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemcpyNodeSetParams1D' in found_functions}} - cdef cudaError_t _cudaGraphMemcpyNodeSetParams1D(cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemsetNode' in found_functions}} - cdef cudaError_t _cudaGraphAddMemsetNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemsetNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphMemsetNodeGetParams(cudaGraphNode_t node, cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemsetNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphMemsetNodeSetParams(cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddHostNode' in found_functions}} - cdef cudaError_t _cudaGraphAddHostNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphHostNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphHostNodeGetParams(cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphHostNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphHostNodeSetParams(cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddChildGraphNode' in found_functions}} - cdef cudaError_t _cudaGraphAddChildGraphNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphChildGraphNodeGetGraph' in found_functions}} - cdef cudaError_t _cudaGraphChildGraphNodeGetGraph(cudaGraphNode_t node, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddEmptyNode' in found_functions}} - cdef cudaError_t _cudaGraphAddEmptyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddEventRecordNode' in found_functions}} - cdef cudaError_t _cudaGraphAddEventRecordNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphEventRecordNodeGetEvent' in found_functions}} - cdef cudaError_t _cudaGraphEventRecordNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphEventRecordNodeSetEvent' in found_functions}} - cdef cudaError_t _cudaGraphEventRecordNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddEventWaitNode' in found_functions}} - cdef cudaError_t _cudaGraphAddEventWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphEventWaitNodeGetEvent' in found_functions}} - cdef cudaError_t _cudaGraphEventWaitNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphEventWaitNodeSetEvent' in found_functions}} - cdef cudaError_t _cudaGraphEventWaitNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddExternalSemaphoresSignalNode' in found_functions}} - cdef cudaError_t _cudaGraphAddExternalSemaphoresSignalNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExternalSemaphoresSignalNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExternalSemaphoresSignalNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddExternalSemaphoresWaitNode' in found_functions}} - cdef cudaError_t _cudaGraphAddExternalSemaphoresWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExternalSemaphoresWaitNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExternalSemaphoresWaitNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemAllocNode' in found_functions}} - cdef cudaError_t _cudaGraphAddMemAllocNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemAllocNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphMemAllocNodeGetParams(cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemFreeNode' in found_functions}} - cdef cudaError_t _cudaGraphAddMemFreeNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemFreeNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphMemFreeNodeGetParams(cudaGraphNode_t node, void* dptr_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGraphMemTrim' in found_functions}} - cdef cudaError_t _cudaDeviceGraphMemTrim(int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetGraphMemAttribute' in found_functions}} - cdef cudaError_t _cudaDeviceGetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetGraphMemAttribute' in found_functions}} - cdef cudaError_t _cudaDeviceSetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphClone' in found_functions}} - cdef cudaError_t _cudaGraphClone(cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeFindInClone' in found_functions}} - cdef cudaError_t _cudaGraphNodeFindInClone(cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetType' in found_functions}} - cdef cudaError_t _cudaGraphNodeGetType(cudaGraphNode_t node, cudaGraphNodeType* pType) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphGetNodes' in found_functions}} - cdef cudaError_t _cudaGraphGetNodes(cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphGetRootNodes' in found_functions}} - cdef cudaError_t _cudaGraphGetRootNodes(cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphGetEdges' in found_functions}} - cdef cudaError_t _cudaGraphGetEdges(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphGetEdges_v2' in found_functions}} - cdef cudaError_t _cudaGraphGetEdges_v2(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetDependencies' in found_functions}} - cdef cudaError_t _cudaGraphNodeGetDependencies(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetDependencies_v2' in found_functions}} - cdef cudaError_t _cudaGraphNodeGetDependencies_v2(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetDependentNodes' in found_functions}} - cdef cudaError_t _cudaGraphNodeGetDependentNodes(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetDependentNodes_v2' in found_functions}} - cdef cudaError_t _cudaGraphNodeGetDependentNodes_v2(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddDependencies' in found_functions}} - cdef cudaError_t _cudaGraphAddDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddDependencies_v2' in found_functions}} - cdef cudaError_t _cudaGraphAddDependencies_v2(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphRemoveDependencies' in found_functions}} - cdef cudaError_t _cudaGraphRemoveDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphRemoveDependencies_v2' in found_functions}} - cdef cudaError_t _cudaGraphRemoveDependencies_v2(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphDestroyNode' in found_functions}} - cdef cudaError_t _cudaGraphDestroyNode(cudaGraphNode_t node) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphInstantiate' in found_functions}} - cdef cudaError_t _cudaGraphInstantiate(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphInstantiateWithFlags' in found_functions}} - cdef cudaError_t _cudaGraphInstantiateWithFlags(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphInstantiateWithParams' in found_functions}} - cdef cudaError_t _cudaGraphInstantiateWithParams(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecGetFlags' in found_functions}} - cdef cudaError_t _cudaGraphExecGetFlags(cudaGraphExec_t graphExec, unsigned long long* flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecKernelNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecKernelNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecMemcpyNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecMemcpyNodeSetParams1D' in found_functions}} - cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams1D(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecMemsetNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecMemsetNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecHostNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecHostNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecChildGraphNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecChildGraphNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecEventRecordNodeSetEvent' in found_functions}} - cdef cudaError_t _cudaGraphExecEventRecordNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecEventWaitNodeSetEvent' in found_functions}} - cdef cudaError_t _cudaGraphExecEventWaitNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecExternalSemaphoresSignalNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecExternalSemaphoresWaitNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeSetEnabled' in found_functions}} - cdef cudaError_t _cudaGraphNodeSetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetEnabled' in found_functions}} - cdef cudaError_t _cudaGraphNodeGetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecUpdate' in found_functions}} - cdef cudaError_t _cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphUpload' in found_functions}} - cdef cudaError_t _cudaGraphUpload(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphLaunch' in found_functions}} - cdef cudaError_t _cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecDestroy' in found_functions}} - cdef cudaError_t _cudaGraphExecDestroy(cudaGraphExec_t graphExec) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphDestroy' in found_functions}} - cdef cudaError_t _cudaGraphDestroy(cudaGraph_t graph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphDebugDotPrint' in found_functions}} - cdef cudaError_t _cudaGraphDebugDotPrint(cudaGraph_t graph, const char* path, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaUserObjectCreate' in found_functions}} - cdef cudaError_t _cudaUserObjectCreate(cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaUserObjectRetain' in found_functions}} - cdef cudaError_t _cudaUserObjectRetain(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaUserObjectRelease' in found_functions}} - cdef cudaError_t _cudaUserObjectRelease(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphRetainUserObject' in found_functions}} - cdef cudaError_t _cudaGraphRetainUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphReleaseUserObject' in found_functions}} - cdef cudaError_t _cudaGraphReleaseUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddNode' in found_functions}} - cdef cudaError_t _cudaGraphAddNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddNode_v2' in found_functions}} - cdef cudaError_t _cudaGraphAddNode_v2(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphNodeSetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecNodeSetParams(cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphConditionalHandleCreate' in found_functions}} - cdef cudaError_t _cudaGraphConditionalHandleCreate(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDriverEntryPoint' in found_functions}} - cdef cudaError_t _cudaGetDriverEntryPoint(const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDriverEntryPointByVersion' in found_functions}} - cdef cudaError_t _cudaGetDriverEntryPointByVersion(const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryLoadData' in found_functions}} - cdef cudaError_t _cudaLibraryLoadData(cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryLoadFromFile' in found_functions}} - cdef cudaError_t _cudaLibraryLoadFromFile(cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryUnload' in found_functions}} - cdef cudaError_t _cudaLibraryUnload(cudaLibrary_t library) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetKernel' in found_functions}} - cdef cudaError_t _cudaLibraryGetKernel(cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetGlobal' in found_functions}} - -cdef cudaError_t _cudaLibraryGetGlobal(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetManaged' in found_functions}} - -cdef cudaError_t _cudaLibraryGetManaged(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetUnifiedFunction' in found_functions}} - +cdef cudaError_t _cudaLibraryGetGlobal(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaLibraryGetManaged(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaLibraryGetUnifiedFunction(void** fptr, cudaLibrary_t library, const char* symbol) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetKernelCount' in found_functions}} - cdef cudaError_t _cudaLibraryGetKernelCount(unsigned int* count, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryEnumerateKernels' in found_functions}} - cdef cudaError_t _cudaLibraryEnumerateKernels(cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaKernelSetAttributeForDevice' in found_functions}} - cdef cudaError_t _cudaKernelSetAttributeForDevice(cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetExportTable' in found_functions}} - cdef cudaError_t _cudaGetExportTable(const void** ppExportTable, const cudaUUID_t* pExportTableId) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetKernel' in found_functions}} - cdef cudaError_t _cudaGetKernel(cudaKernel_t* kernelPtr, const void* entryFuncAddr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'make_cudaPitchedPtr' in found_functions}} - -cdef cudaPitchedPtr _make_cudaPitchedPtr(void* d, size_t p, size_t xsz, size_t ysz) except* nogil -{{endif}} - -{{if 'make_cudaPos' in found_functions}} - -cdef cudaPos _make_cudaPos(size_t x, size_t y, size_t z) except* nogil -{{endif}} - -{{if 'make_cudaExtent' in found_functions}} - -cdef cudaExtent _make_cudaExtent(size_t w, size_t h, size_t d) except* nogil -{{endif}} - -{{if 'cudaProfilerStart' in found_functions}} - cdef cudaError_t _cudaProfilerStart() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaProfilerStop' in found_functions}} - cdef cudaError_t _cudaProfilerStop() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} diff --git a/cuda_bindings_12/cuda/bindings/_internal/runtime_linux.pyx b/cuda_bindings_12/cuda/bindings/_internal/runtime_linux.pyx new file mode 100644 index 000000000000..1e51d09a2745 --- /dev/null +++ b/cuda_bindings_12/cuda/bindings/_internal/runtime_linux.pyx @@ -0,0 +1,2999 @@ +# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# +# This code was automatically generated with version 12.9.0. Do not modify it directly. + +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=ec7e5cff06d8a2e65f043ecf4c092fcaa2630dc4ba1df42d74943410ff460118 +import os + +from libc.stdint cimport uintptr_t + +from cuda.pathfinder import load_nvidia_dynamic_lib +cimport cuda.bindings._lib.dlfcn as dlfcn +cimport cuda.bindings._internal.runtime_ptds as ptds +cimport cython + + +############################################################################### +# Per-thread default stream dispatch +############################################################################### + +cdef bint __cudaPythonInit = False +cdef bint __usePTDS = False + +cdef int _cudaPythonInit() except -1 nogil: + global __cudaPythonInit + global __usePTDS + with gil: + __usePTDS = bool(int(os.getenv('CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM', default=0))) + __cudaPythonInit = True + return __usePTDS + +cdef inline int cudaPythonInit() except -1 nogil: + if __cudaPythonInit: + return __usePTDS + return _cudaPythonInit() + + +############################################################################### +# EGL/GL/VDPAU helpers (implementations delegating to driver EGL/VDPAU/GL APIs) +############################################################################### + +include "../_lib/cyruntime/cyruntime.pxi" + + +############################################################################### +# getLocalRuntimeVersion — dynamically loads cudart to read its own version +############################################################################### + +cdef cudaError_t _getLocalRuntimeVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil: + # Load cudart dynamically to read its embedded version number. + with gil: + loaded_dl = load_nvidia_dynamic_lib("cudart") + handle = loaded_dl._handle_uint + + cdef void* __cudaRuntimeGetVersion = dlfcn.dlsym(handle, 'cudaRuntimeGetVersion') + + if __cudaRuntimeGetVersion == NULL: + with gil: + raise RuntimeError(f'Function "cudaRuntimeGetVersion" not found in {loaded_dl.abs_path}') + + # We explicitly do *NOT* cleanup the library handle here, acknowledging + # that, yes, the handle leaks. The reason is that there's a + # `functools.cache` on the top-level caller of this function. + # + # This means this library would be opened once and then immediately closed, + # all the while remaining in the cache lurking there for people to call. + # + # Since we open the library one time (technically once per unique library name), + # there's not a ton of leakage, which we deem acceptable for the 1000x speedup + # achieved by caching (ultimately) `ctypes.CDLL` calls. + # + # Long(er)-term we can explore cleaning up the library using higher-level + # Python mechanisms, like `__del__` or `weakref.finalizer`s. + + cdef cudaError_t err = cudaSuccess + err = ( __cudaRuntimeGetVersion)(runtimeVersion) + return err + + +############################################################################### +# C function declarations for static cudart (avoids infinite recursion through +# the same-named Cython wrappers imported via `from ..cyruntime cimport *`) +############################################################################### + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceReset "cudaDeviceReset" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSynchronize "cudaDeviceSynchronize" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetLimit "cudaDeviceSetLimit" (cudaLimit limit, size_t value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetLimit "cudaDeviceGetLimit" (size_t* pValue, cudaLimit limit) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetTexture1DLinearMaxWidth "cudaDeviceGetTexture1DLinearMaxWidth" (size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetCacheConfig "cudaDeviceGetCacheConfig" (cudaFuncCache* pCacheConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetStreamPriorityRange "cudaDeviceGetStreamPriorityRange" (int* leastPriority, int* greatestPriority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetCacheConfig "cudaDeviceSetCacheConfig" (cudaFuncCache cacheConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetByPCIBusId "cudaDeviceGetByPCIBusId" (int* device, const char* pciBusId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetPCIBusId "cudaDeviceGetPCIBusId" (char* pciBusId, int len, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcGetEventHandle "cudaIpcGetEventHandle" (cudaIpcEventHandle_t* handle, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcOpenEventHandle "cudaIpcOpenEventHandle" (cudaEvent_t* event, cudaIpcEventHandle_t handle) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcGetMemHandle "cudaIpcGetMemHandle" (cudaIpcMemHandle_t* handle, void* devPtr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcOpenMemHandle "cudaIpcOpenMemHandle" (void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcCloseMemHandle "cudaIpcCloseMemHandle" (void* devPtr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceFlushGPUDirectRDMAWrites "cudaDeviceFlushGPUDirectRDMAWrites" (cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceRegisterAsyncNotification "cudaDeviceRegisterAsyncNotification" (int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceUnregisterAsyncNotification "cudaDeviceUnregisterAsyncNotification" (int device, cudaAsyncCallbackHandle_t callback) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetSharedMemConfig "cudaDeviceGetSharedMemConfig" (cudaSharedMemConfig* pConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetSharedMemConfig "cudaDeviceSetSharedMemConfig" (cudaSharedMemConfig config) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetLastError "cudaGetLastError" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaPeekAtLastError "cudaPeekAtLastError" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + const char* _static_cudaGetErrorName "cudaGetErrorName" (cudaError_t error) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + const char* _static_cudaGetErrorString "cudaGetErrorString" (cudaError_t error) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDeviceCount "cudaGetDeviceCount" (int* count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDeviceProperties_v2 "cudaGetDeviceProperties_v2" (cudaDeviceProp* prop, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetAttribute "cudaDeviceGetAttribute" (int* value, cudaDeviceAttr attr, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetDefaultMemPool "cudaDeviceGetDefaultMemPool" (cudaMemPool_t* memPool, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetMemPool "cudaDeviceSetMemPool" (int device, cudaMemPool_t memPool) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetMemPool "cudaDeviceGetMemPool" (cudaMemPool_t* memPool, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetNvSciSyncAttributes "cudaDeviceGetNvSciSyncAttributes" (void* nvSciSyncAttrList, int device, int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetP2PAttribute "cudaDeviceGetP2PAttribute" (int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaChooseDevice "cudaChooseDevice" (int* device, const cudaDeviceProp* prop) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaInitDevice "cudaInitDevice" (int device, unsigned int deviceFlags, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaSetDevice "cudaSetDevice" (int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDevice "cudaGetDevice" (int* device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaSetDeviceFlags "cudaSetDeviceFlags" (unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDeviceFlags "cudaGetDeviceFlags" (unsigned int* flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCreate "cudaStreamCreate" (cudaStream_t* pStream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCreateWithFlags "cudaStreamCreateWithFlags" (cudaStream_t* pStream, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCreateWithPriority "cudaStreamCreateWithPriority" (cudaStream_t* pStream, unsigned int flags, int priority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetPriority "cudaStreamGetPriority" (cudaStream_t hStream, int* priority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetFlags "cudaStreamGetFlags" (cudaStream_t hStream, unsigned int* flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetId "cudaStreamGetId" (cudaStream_t hStream, unsigned long long* streamId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetDevice "cudaStreamGetDevice" (cudaStream_t hStream, int* device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaCtxResetPersistingL2Cache "cudaCtxResetPersistingL2Cache" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCopyAttributes "cudaStreamCopyAttributes" (cudaStream_t dst, cudaStream_t src) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetAttribute "cudaStreamGetAttribute" (cudaStream_t hStream, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamSetAttribute "cudaStreamSetAttribute" (cudaStream_t hStream, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamDestroy "cudaStreamDestroy" (cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamWaitEvent "cudaStreamWaitEvent" (cudaStream_t stream, cudaEvent_t event, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamAddCallback "cudaStreamAddCallback" (cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamSynchronize "cudaStreamSynchronize" (cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamQuery "cudaStreamQuery" (cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamAttachMemAsync "cudaStreamAttachMemAsync" (cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamBeginCapture "cudaStreamBeginCapture" (cudaStream_t stream, cudaStreamCaptureMode mode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamBeginCaptureToGraph "cudaStreamBeginCaptureToGraph" (cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaThreadExchangeStreamCaptureMode "cudaThreadExchangeStreamCaptureMode" (cudaStreamCaptureMode* mode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamEndCapture "cudaStreamEndCapture" (cudaStream_t stream, cudaGraph_t* pGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamIsCapturing "cudaStreamIsCapturing" (cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetCaptureInfo_v2 "cudaStreamGetCaptureInfo_v2" (cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, size_t* numDependencies_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetCaptureInfo_v3 "cudaStreamGetCaptureInfo_v3" (cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamUpdateCaptureDependencies "cudaStreamUpdateCaptureDependencies" (cudaStream_t stream, cudaGraphNode_t* dependencies, size_t numDependencies, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamUpdateCaptureDependencies_v2 "cudaStreamUpdateCaptureDependencies_v2" (cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventCreate "cudaEventCreate" (cudaEvent_t* event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventCreateWithFlags "cudaEventCreateWithFlags" (cudaEvent_t* event, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventRecord "cudaEventRecord" (cudaEvent_t event, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventRecordWithFlags "cudaEventRecordWithFlags" (cudaEvent_t event, cudaStream_t stream, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventQuery "cudaEventQuery" (cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventSynchronize "cudaEventSynchronize" (cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventDestroy "cudaEventDestroy" (cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventElapsedTime "cudaEventElapsedTime" (float* ms, cudaEvent_t start, cudaEvent_t end) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventElapsedTime_v2 "cudaEventElapsedTime_v2" (float* ms, cudaEvent_t start, cudaEvent_t end) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaImportExternalMemory "cudaImportExternalMemory" (cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExternalMemoryGetMappedBuffer "cudaExternalMemoryGetMappedBuffer" (void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExternalMemoryGetMappedMipmappedArray "cudaExternalMemoryGetMappedMipmappedArray" (cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroyExternalMemory "cudaDestroyExternalMemory" (cudaExternalMemory_t extMem) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaImportExternalSemaphore "cudaImportExternalSemaphore" (cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaSignalExternalSemaphoresAsync_v2 "cudaSignalExternalSemaphoresAsync_v2" (const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaWaitExternalSemaphoresAsync_v2 "cudaWaitExternalSemaphoresAsync_v2" (const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroyExternalSemaphore "cudaDestroyExternalSemaphore" (cudaExternalSemaphore_t extSem) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncSetCacheConfig "cudaFuncSetCacheConfig" (const void* func, cudaFuncCache cacheConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetAttributes "cudaFuncGetAttributes" (cudaFuncAttributes* attr, const void* func) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncSetAttribute "cudaFuncSetAttribute" (const void* func, cudaFuncAttribute attr, int value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetName "cudaFuncGetName" (const char** name, const void* func) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetParamInfo "cudaFuncGetParamInfo" (const void* func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLaunchHostFunc "cudaLaunchHostFunc" (cudaStream_t stream, cudaHostFn_t fn, void* userData) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncSetSharedMemConfig "cudaFuncSetSharedMemConfig" (const void* func, cudaSharedMemConfig config) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaOccupancyMaxActiveBlocksPerMultiprocessor "cudaOccupancyMaxActiveBlocksPerMultiprocessor" (int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaOccupancyAvailableDynamicSMemPerBlock "cudaOccupancyAvailableDynamicSMemPerBlock" (size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags "cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags" (int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocManaged "cudaMallocManaged" (void** devPtr, size_t size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMalloc "cudaMalloc" (void** devPtr, size_t size) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocHost "cudaMallocHost" (void** ptr, size_t size) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocPitch "cudaMallocPitch" (void** devPtr, size_t* pitch, size_t width, size_t height) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocArray "cudaMallocArray" (cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFree "cudaFree" (void* devPtr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeHost "cudaFreeHost" (void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeArray "cudaFreeArray" (cudaArray_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeMipmappedArray "cudaFreeMipmappedArray" (cudaMipmappedArray_t mipmappedArray) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostAlloc "cudaHostAlloc" (void** pHost, size_t size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostRegister "cudaHostRegister" (void* ptr, size_t size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostUnregister "cudaHostUnregister" (void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostGetDevicePointer "cudaHostGetDevicePointer" (void** pDevice, void* pHost, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostGetFlags "cudaHostGetFlags" (unsigned int* pFlags, void* pHost) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMalloc3D "cudaMalloc3D" (cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMalloc3DArray "cudaMalloc3DArray" (cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocMipmappedArray "cudaMallocMipmappedArray" (cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetMipmappedArrayLevel "cudaGetMipmappedArrayLevel" (cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3D "cudaMemcpy3D" (const cudaMemcpy3DParms* p) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DPeer "cudaMemcpy3DPeer" (const cudaMemcpy3DPeerParms* p) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DAsync "cudaMemcpy3DAsync" (const cudaMemcpy3DParms* p, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DPeerAsync "cudaMemcpy3DPeerAsync" (const cudaMemcpy3DPeerParms* p, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemGetInfo "cudaMemGetInfo" (size_t* free, size_t* total) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetInfo "cudaArrayGetInfo" (cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetPlane "cudaArrayGetPlane" (cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetMemoryRequirements "cudaArrayGetMemoryRequirements" (cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMipmappedArrayGetMemoryRequirements "cudaMipmappedArrayGetMemoryRequirements" (cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetSparseProperties "cudaArrayGetSparseProperties" (cudaArraySparseProperties* sparseProperties, cudaArray_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMipmappedArrayGetSparseProperties "cudaMipmappedArrayGetSparseProperties" (cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy "cudaMemcpy" (void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyPeer "cudaMemcpyPeer" (void* dst, int dstDevice, const void* src, int srcDevice, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2D "cudaMemcpy2D" (void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DToArray "cudaMemcpy2DToArray" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DFromArray "cudaMemcpy2DFromArray" (void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DArrayToArray "cudaMemcpy2DArrayToArray" (cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyAsync "cudaMemcpyAsync" (void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyPeerAsync "cudaMemcpyPeerAsync" (void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyBatchAsync "cudaMemcpyBatchAsync" (void** dsts, void** srcs, size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, size_t* failIdx, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DBatchAsync "cudaMemcpy3DBatchAsync" (size_t numOps, cudaMemcpy3DBatchOp* opList, size_t* failIdx, unsigned long long flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DAsync "cudaMemcpy2DAsync" (void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DToArrayAsync "cudaMemcpy2DToArrayAsync" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DFromArrayAsync "cudaMemcpy2DFromArrayAsync" (void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset "cudaMemset" (void* devPtr, int value, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset2D "cudaMemset2D" (void* devPtr, size_t pitch, int value, size_t width, size_t height) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset3D "cudaMemset3D" (cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemsetAsync "cudaMemsetAsync" (void* devPtr, int value, size_t count, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset2DAsync "cudaMemset2DAsync" (void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset3DAsync "cudaMemset3DAsync" (cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPrefetchAsync "cudaMemPrefetchAsync" (const void* devPtr, size_t count, int dstDevice, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPrefetchAsync_v2 "cudaMemPrefetchAsync_v2" (const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemAdvise "cudaMemAdvise" (const void* devPtr, size_t count, cudaMemoryAdvise advice, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemAdvise_v2 "cudaMemAdvise_v2" (const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemRangeGetAttribute "cudaMemRangeGetAttribute" (void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemRangeGetAttributes "cudaMemRangeGetAttributes" (void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyToArray "cudaMemcpyToArray" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyFromArray "cudaMemcpyFromArray" (void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyArrayToArray "cudaMemcpyArrayToArray" (cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyToArrayAsync "cudaMemcpyToArrayAsync" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyFromArrayAsync "cudaMemcpyFromArrayAsync" (void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocAsync "cudaMallocAsync" (void** devPtr, size_t size, cudaStream_t hStream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeAsync "cudaFreeAsync" (void* devPtr, cudaStream_t hStream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolTrimTo "cudaMemPoolTrimTo" (cudaMemPool_t memPool, size_t minBytesToKeep) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolSetAttribute "cudaMemPoolSetAttribute" (cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolGetAttribute "cudaMemPoolGetAttribute" (cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolSetAccess "cudaMemPoolSetAccess" (cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolGetAccess "cudaMemPoolGetAccess" (cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolCreate "cudaMemPoolCreate" (cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolDestroy "cudaMemPoolDestroy" (cudaMemPool_t memPool) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocFromPoolAsync "cudaMallocFromPoolAsync" (void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolExportToShareableHandle "cudaMemPoolExportToShareableHandle" (void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolImportFromShareableHandle "cudaMemPoolImportFromShareableHandle" (cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolExportPointer "cudaMemPoolExportPointer" (cudaMemPoolPtrExportData* exportData, void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolImportPointer "cudaMemPoolImportPointer" (void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaPointerGetAttributes "cudaPointerGetAttributes" (cudaPointerAttributes* attributes, const void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceCanAccessPeer "cudaDeviceCanAccessPeer" (int* canAccessPeer, int device, int peerDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceEnablePeerAccess "cudaDeviceEnablePeerAccess" (int peerDevice, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceDisablePeerAccess "cudaDeviceDisablePeerAccess" (int peerDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsUnregisterResource "cudaGraphicsUnregisterResource" (cudaGraphicsResource_t resource) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsResourceSetMapFlags "cudaGraphicsResourceSetMapFlags" (cudaGraphicsResource_t resource, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsMapResources "cudaGraphicsMapResources" (int count, cudaGraphicsResource_t* resources, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsUnmapResources "cudaGraphicsUnmapResources" (int count, cudaGraphicsResource_t* resources, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsResourceGetMappedPointer "cudaGraphicsResourceGetMappedPointer" (void** devPtr, size_t* size, cudaGraphicsResource_t resource) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsSubResourceGetMappedArray "cudaGraphicsSubResourceGetMappedArray" (cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsResourceGetMappedMipmappedArray "cudaGraphicsResourceGetMappedMipmappedArray" (cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetChannelDesc "cudaGetChannelDesc" (cudaChannelFormatDesc* desc, cudaArray_const_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaChannelFormatDesc _static_cudaCreateChannelDesc "cudaCreateChannelDesc" (int x, int y, int z, int w, cudaChannelFormatKind f) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaCreateTextureObject "cudaCreateTextureObject" (cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroyTextureObject "cudaDestroyTextureObject" (cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetTextureObjectResourceDesc "cudaGetTextureObjectResourceDesc" (cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetTextureObjectTextureDesc "cudaGetTextureObjectTextureDesc" (cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetTextureObjectResourceViewDesc "cudaGetTextureObjectResourceViewDesc" (cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaCreateSurfaceObject "cudaCreateSurfaceObject" (cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroySurfaceObject "cudaDestroySurfaceObject" (cudaSurfaceObject_t surfObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetSurfaceObjectResourceDesc "cudaGetSurfaceObjectResourceDesc" (cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDriverGetVersion "cudaDriverGetVersion" (int* driverVersion) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaRuntimeGetVersion "cudaRuntimeGetVersion" (int* runtimeVersion) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphCreate "cudaGraphCreate" (cudaGraph_t* pGraph, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddKernelNode "cudaGraphAddKernelNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeGetParams "cudaGraphKernelNodeGetParams" (cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeSetParams "cudaGraphKernelNodeSetParams" (cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeCopyAttributes "cudaGraphKernelNodeCopyAttributes" (cudaGraphNode_t hSrc, cudaGraphNode_t hDst) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeGetAttribute "cudaGraphKernelNodeGetAttribute" (cudaGraphNode_t hNode, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeSetAttribute "cudaGraphKernelNodeSetAttribute" (cudaGraphNode_t hNode, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemcpyNode "cudaGraphAddMemcpyNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemcpyNode1D "cudaGraphAddMemcpyNode1D" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemcpyNodeGetParams "cudaGraphMemcpyNodeGetParams" (cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemcpyNodeSetParams "cudaGraphMemcpyNodeSetParams" (cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemcpyNodeSetParams1D "cudaGraphMemcpyNodeSetParams1D" (cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemsetNode "cudaGraphAddMemsetNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemsetNodeGetParams "cudaGraphMemsetNodeGetParams" (cudaGraphNode_t node, cudaMemsetParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemsetNodeSetParams "cudaGraphMemsetNodeSetParams" (cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddHostNode "cudaGraphAddHostNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphHostNodeGetParams "cudaGraphHostNodeGetParams" (cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphHostNodeSetParams "cudaGraphHostNodeSetParams" (cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddChildGraphNode "cudaGraphAddChildGraphNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphChildGraphNodeGetGraph "cudaGraphChildGraphNodeGetGraph" (cudaGraphNode_t node, cudaGraph_t* pGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddEmptyNode "cudaGraphAddEmptyNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddEventRecordNode "cudaGraphAddEventRecordNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventRecordNodeGetEvent "cudaGraphEventRecordNodeGetEvent" (cudaGraphNode_t node, cudaEvent_t* event_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventRecordNodeSetEvent "cudaGraphEventRecordNodeSetEvent" (cudaGraphNode_t node, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddEventWaitNode "cudaGraphAddEventWaitNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventWaitNodeGetEvent "cudaGraphEventWaitNodeGetEvent" (cudaGraphNode_t node, cudaEvent_t* event_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventWaitNodeSetEvent "cudaGraphEventWaitNodeSetEvent" (cudaGraphNode_t node, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddExternalSemaphoresSignalNode "cudaGraphAddExternalSemaphoresSignalNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresSignalNodeGetParams "cudaGraphExternalSemaphoresSignalNodeGetParams" (cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresSignalNodeSetParams "cudaGraphExternalSemaphoresSignalNodeSetParams" (cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddExternalSemaphoresWaitNode "cudaGraphAddExternalSemaphoresWaitNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresWaitNodeGetParams "cudaGraphExternalSemaphoresWaitNodeGetParams" (cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresWaitNodeSetParams "cudaGraphExternalSemaphoresWaitNodeSetParams" (cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemAllocNode "cudaGraphAddMemAllocNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemAllocNodeGetParams "cudaGraphMemAllocNodeGetParams" (cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemFreeNode "cudaGraphAddMemFreeNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemFreeNodeGetParams "cudaGraphMemFreeNodeGetParams" (cudaGraphNode_t node, void* dptr_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGraphMemTrim "cudaDeviceGraphMemTrim" (int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetGraphMemAttribute "cudaDeviceGetGraphMemAttribute" (int device, cudaGraphMemAttributeType attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetGraphMemAttribute "cudaDeviceSetGraphMemAttribute" (int device, cudaGraphMemAttributeType attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphClone "cudaGraphClone" (cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeFindInClone "cudaGraphNodeFindInClone" (cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetType "cudaGraphNodeGetType" (cudaGraphNode_t node, cudaGraphNodeType* pType) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetNodes "cudaGraphGetNodes" (cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetRootNodes "cudaGraphGetRootNodes" (cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetEdges "cudaGraphGetEdges" (cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, size_t* numEdges) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetEdges_v2 "cudaGraphGetEdges_v2" (cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetDependencies "cudaGraphNodeGetDependencies" (cudaGraphNode_t node, cudaGraphNode_t* pDependencies, size_t* pNumDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetDependencies_v2 "cudaGraphNodeGetDependencies_v2" (cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetDependentNodes "cudaGraphNodeGetDependentNodes" (cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, size_t* pNumDependentNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetDependentNodes_v2 "cudaGraphNodeGetDependentNodes_v2" (cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddDependencies "cudaGraphAddDependencies" (cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddDependencies_v2 "cudaGraphAddDependencies_v2" (cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphRemoveDependencies "cudaGraphRemoveDependencies" (cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphRemoveDependencies_v2 "cudaGraphRemoveDependencies_v2" (cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphDestroyNode "cudaGraphDestroyNode" (cudaGraphNode_t node) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphInstantiate "cudaGraphInstantiate" (cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphInstantiateWithFlags "cudaGraphInstantiateWithFlags" (cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphInstantiateWithParams "cudaGraphInstantiateWithParams" (cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecGetFlags "cudaGraphExecGetFlags" (cudaGraphExec_t graphExec, unsigned long long* flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecKernelNodeSetParams "cudaGraphExecKernelNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecMemcpyNodeSetParams "cudaGraphExecMemcpyNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecMemcpyNodeSetParams1D "cudaGraphExecMemcpyNodeSetParams1D" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecMemsetNodeSetParams "cudaGraphExecMemsetNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecHostNodeSetParams "cudaGraphExecHostNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecChildGraphNodeSetParams "cudaGraphExecChildGraphNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecEventRecordNodeSetEvent "cudaGraphExecEventRecordNodeSetEvent" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecEventWaitNodeSetEvent "cudaGraphExecEventWaitNodeSetEvent" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecExternalSemaphoresSignalNodeSetParams "cudaGraphExecExternalSemaphoresSignalNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecExternalSemaphoresWaitNodeSetParams "cudaGraphExecExternalSemaphoresWaitNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeSetEnabled "cudaGraphNodeSetEnabled" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetEnabled "cudaGraphNodeGetEnabled" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecUpdate "cudaGraphExecUpdate" (cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphUpload "cudaGraphUpload" (cudaGraphExec_t graphExec, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphLaunch "cudaGraphLaunch" (cudaGraphExec_t graphExec, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecDestroy "cudaGraphExecDestroy" (cudaGraphExec_t graphExec) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphDestroy "cudaGraphDestroy" (cudaGraph_t graph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphDebugDotPrint "cudaGraphDebugDotPrint" (cudaGraph_t graph, const char* path, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaUserObjectCreate "cudaUserObjectCreate" (cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaUserObjectRetain "cudaUserObjectRetain" (cudaUserObject_t object, unsigned int count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaUserObjectRelease "cudaUserObjectRelease" (cudaUserObject_t object, unsigned int count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphRetainUserObject "cudaGraphRetainUserObject" (cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphReleaseUserObject "cudaGraphReleaseUserObject" (cudaGraph_t graph, cudaUserObject_t object, unsigned int count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddNode "cudaGraphAddNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddNode_v2 "cudaGraphAddNode_v2" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeSetParams "cudaGraphNodeSetParams" (cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecNodeSetParams "cudaGraphExecNodeSetParams" (cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphConditionalHandleCreate "cudaGraphConditionalHandleCreate" (cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDriverEntryPoint "cudaGetDriverEntryPoint" (const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDriverEntryPointByVersion "cudaGetDriverEntryPointByVersion" (const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryLoadData "cudaLibraryLoadData" (cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryLoadFromFile "cudaLibraryLoadFromFile" (cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryUnload "cudaLibraryUnload" (cudaLibrary_t library) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetKernel "cudaLibraryGetKernel" (cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetGlobal "cudaLibraryGetGlobal" (void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetManaged "cudaLibraryGetManaged" (void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetUnifiedFunction "cudaLibraryGetUnifiedFunction" (void** fptr, cudaLibrary_t library, const char* symbol) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetKernelCount "cudaLibraryGetKernelCount" (unsigned int* count, cudaLibrary_t lib) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryEnumerateKernels "cudaLibraryEnumerateKernels" (cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaKernelSetAttributeForDevice "cudaKernelSetAttributeForDevice" (cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetExportTable "cudaGetExportTable" (const void** ppExportTable, const cudaUUID_t* pExportTableId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetKernel "cudaGetKernel" (cudaKernel_t* kernelPtr, const void* entryFuncAddr) noexcept + +cdef extern from 'cuda_profiler_api.h' nogil: + cudaError_t _static_cudaProfilerStart "cudaProfilerStart" () noexcept + +cdef extern from 'cuda_profiler_api.h' nogil: + cudaError_t _static_cudaProfilerStop "cudaProfilerStop" () noexcept + + + +############################################################################### +# Wrapper functions +############################################################################### + +cdef cudaError_t _cudaDeviceReset() except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceReset() + return _static_cudaDeviceReset() + + +cdef cudaError_t _cudaDeviceSynchronize() except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceSynchronize() + return _static_cudaDeviceSynchronize() + + +cdef cudaError_t _cudaDeviceSetLimit(cudaLimit limit, size_t value) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceSetLimit(limit, value) + return _static_cudaDeviceSetLimit(limit, value) + + +cdef cudaError_t _cudaDeviceGetLimit(size_t* pValue, cudaLimit limit) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetLimit(pValue, limit) + return _static_cudaDeviceGetLimit(pValue, limit) + + +cdef cudaError_t _cudaDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetTexture1DLinearMaxWidth(maxWidthInElements, fmtDesc, device) + return _static_cudaDeviceGetTexture1DLinearMaxWidth(maxWidthInElements, fmtDesc, device) + + +cdef cudaError_t _cudaDeviceGetCacheConfig(cudaFuncCache* pCacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetCacheConfig(pCacheConfig) + return _static_cudaDeviceGetCacheConfig(pCacheConfig) + + +cdef cudaError_t _cudaDeviceGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetStreamPriorityRange(leastPriority, greatestPriority) + return _static_cudaDeviceGetStreamPriorityRange(leastPriority, greatestPriority) + + +cdef cudaError_t _cudaDeviceSetCacheConfig(cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceSetCacheConfig(cacheConfig) + return _static_cudaDeviceSetCacheConfig(cacheConfig) + + +cdef cudaError_t _cudaDeviceGetByPCIBusId(int* device, const char* pciBusId) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetByPCIBusId(device, pciBusId) + return _static_cudaDeviceGetByPCIBusId(device, pciBusId) + + +cdef cudaError_t _cudaDeviceGetPCIBusId(char* pciBusId, int len, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetPCIBusId(pciBusId, len, device) + return _static_cudaDeviceGetPCIBusId(pciBusId, len, device) + + +cdef cudaError_t _cudaIpcGetEventHandle(cudaIpcEventHandle_t* handle, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaIpcGetEventHandle(handle, event) + return _static_cudaIpcGetEventHandle(handle, event) + + +cdef cudaError_t _cudaIpcOpenEventHandle(cudaEvent_t* event, cudaIpcEventHandle_t handle) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaIpcOpenEventHandle(event, handle) + return _static_cudaIpcOpenEventHandle(event, handle) + + +cdef cudaError_t _cudaIpcGetMemHandle(cudaIpcMemHandle_t* handle, void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaIpcGetMemHandle(handle, devPtr) + return _static_cudaIpcGetMemHandle(handle, devPtr) + + +cdef cudaError_t _cudaIpcOpenMemHandle(void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaIpcOpenMemHandle(devPtr, handle, flags) + return _static_cudaIpcOpenMemHandle(devPtr, handle, flags) + + +cdef cudaError_t _cudaIpcCloseMemHandle(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaIpcCloseMemHandle(devPtr) + return _static_cudaIpcCloseMemHandle(devPtr) + + +cdef cudaError_t _cudaDeviceFlushGPUDirectRDMAWrites(cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceFlushGPUDirectRDMAWrites(target, scope) + return _static_cudaDeviceFlushGPUDirectRDMAWrites(target, scope) + + +cdef cudaError_t _cudaDeviceRegisterAsyncNotification(int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceRegisterAsyncNotification(device, callbackFunc, userData, callback) + return _static_cudaDeviceRegisterAsyncNotification(device, callbackFunc, userData, callback) + + +cdef cudaError_t _cudaDeviceUnregisterAsyncNotification(int device, cudaAsyncCallbackHandle_t callback) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceUnregisterAsyncNotification(device, callback) + return _static_cudaDeviceUnregisterAsyncNotification(device, callback) + + +cdef cudaError_t _cudaDeviceGetSharedMemConfig(cudaSharedMemConfig* pConfig) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetSharedMemConfig(pConfig) + return _static_cudaDeviceGetSharedMemConfig(pConfig) + + +cdef cudaError_t _cudaDeviceSetSharedMemConfig(cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceSetSharedMemConfig(config) + return _static_cudaDeviceSetSharedMemConfig(config) + + +cdef cudaError_t _cudaGetLastError() except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetLastError() + return _static_cudaGetLastError() + + +cdef cudaError_t _cudaPeekAtLastError() except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaPeekAtLastError() + return _static_cudaPeekAtLastError() + + +cdef const char* _cudaGetErrorName(cudaError_t error) except?NULL nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetErrorName(error) + return _static_cudaGetErrorName(error) + + +cdef const char* _cudaGetErrorString(cudaError_t error) except?NULL nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetErrorString(error) + return _static_cudaGetErrorString(error) + + +cdef cudaError_t _cudaGetDeviceCount(int* count) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetDeviceCount(count) + return _static_cudaGetDeviceCount(count) + + +cdef cudaError_t _cudaGetDeviceProperties_v2(cudaDeviceProp* prop, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetDeviceProperties_v2(prop, device) + return _static_cudaGetDeviceProperties_v2(prop, device) + + +cdef cudaError_t _cudaDeviceGetAttribute(int* value, cudaDeviceAttr attr, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetAttribute(value, attr, device) + return _static_cudaDeviceGetAttribute(value, attr, device) + + +cdef cudaError_t _cudaDeviceGetDefaultMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetDefaultMemPool(memPool, device) + return _static_cudaDeviceGetDefaultMemPool(memPool, device) + + +cdef cudaError_t _cudaDeviceSetMemPool(int device, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceSetMemPool(device, memPool) + return _static_cudaDeviceSetMemPool(device, memPool) + + +cdef cudaError_t _cudaDeviceGetMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetMemPool(memPool, device) + return _static_cudaDeviceGetMemPool(memPool, device) + + +cdef cudaError_t _cudaDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, int device, int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, device, flags) + return _static_cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, device, flags) + + +cdef cudaError_t _cudaDeviceGetP2PAttribute(int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetP2PAttribute(value, attr, srcDevice, dstDevice) + return _static_cudaDeviceGetP2PAttribute(value, attr, srcDevice, dstDevice) + + +cdef cudaError_t _cudaChooseDevice(int* device, const cudaDeviceProp* prop) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaChooseDevice(device, prop) + return _static_cudaChooseDevice(device, prop) + + +cdef cudaError_t _cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaInitDevice(device, deviceFlags, flags) + return _static_cudaInitDevice(device, deviceFlags, flags) + + +cdef cudaError_t _cudaSetDevice(int device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaSetDevice(device) + return _static_cudaSetDevice(device) + + +cdef cudaError_t _cudaGetDevice(int* device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetDevice(device) + return _static_cudaGetDevice(device) + + +cdef cudaError_t _cudaSetDeviceFlags(unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaSetDeviceFlags(flags) + return _static_cudaSetDeviceFlags(flags) + + +cdef cudaError_t _cudaGetDeviceFlags(unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetDeviceFlags(flags) + return _static_cudaGetDeviceFlags(flags) + + +cdef cudaError_t _cudaStreamCreate(cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamCreate(pStream) + return _static_cudaStreamCreate(pStream) + + +cdef cudaError_t _cudaStreamCreateWithFlags(cudaStream_t* pStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamCreateWithFlags(pStream, flags) + return _static_cudaStreamCreateWithFlags(pStream, flags) + + +cdef cudaError_t _cudaStreamCreateWithPriority(cudaStream_t* pStream, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamCreateWithPriority(pStream, flags, priority) + return _static_cudaStreamCreateWithPriority(pStream, flags, priority) + + +cdef cudaError_t _cudaStreamGetPriority(cudaStream_t hStream, int* priority) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamGetPriority(hStream, priority) + return _static_cudaStreamGetPriority(hStream, priority) + + +cdef cudaError_t _cudaStreamGetFlags(cudaStream_t hStream, unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamGetFlags(hStream, flags) + return _static_cudaStreamGetFlags(hStream, flags) + + +cdef cudaError_t _cudaStreamGetId(cudaStream_t hStream, unsigned long long* streamId) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamGetId(hStream, streamId) + return _static_cudaStreamGetId(hStream, streamId) + + +cdef cudaError_t _cudaStreamGetDevice(cudaStream_t hStream, int* device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamGetDevice(hStream, device) + return _static_cudaStreamGetDevice(hStream, device) + + +cdef cudaError_t _cudaCtxResetPersistingL2Cache() except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaCtxResetPersistingL2Cache() + return _static_cudaCtxResetPersistingL2Cache() + + +cdef cudaError_t _cudaStreamCopyAttributes(cudaStream_t dst, cudaStream_t src) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamCopyAttributes(dst, src) + return _static_cudaStreamCopyAttributes(dst, src) + + +cdef cudaError_t _cudaStreamGetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, cudaStreamAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamGetAttribute(hStream, attr, value_out) + return _static_cudaStreamGetAttribute(hStream, attr, value_out) + + +cdef cudaError_t _cudaStreamSetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, const cudaStreamAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamSetAttribute(hStream, attr, value) + return _static_cudaStreamSetAttribute(hStream, attr, value) + + +cdef cudaError_t _cudaStreamDestroy(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamDestroy(stream) + return _static_cudaStreamDestroy(stream) + + +cdef cudaError_t _cudaStreamWaitEvent(cudaStream_t stream, cudaEvent_t event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamWaitEvent(stream, event, flags) + return _static_cudaStreamWaitEvent(stream, event, flags) + + +cdef cudaError_t _cudaStreamAddCallback(cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamAddCallback(stream, callback, userData, flags) + return _static_cudaStreamAddCallback(stream, callback, userData, flags) + + +cdef cudaError_t _cudaStreamSynchronize(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamSynchronize(stream) + return _static_cudaStreamSynchronize(stream) + + +cdef cudaError_t _cudaStreamQuery(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamQuery(stream) + return _static_cudaStreamQuery(stream) + + +cdef cudaError_t _cudaStreamAttachMemAsync(cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamAttachMemAsync(stream, devPtr, length, flags) + return _static_cudaStreamAttachMemAsync(stream, devPtr, length, flags) + + +cdef cudaError_t _cudaStreamBeginCapture(cudaStream_t stream, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamBeginCapture(stream, mode) + return _static_cudaStreamBeginCapture(stream, mode) + + +cdef cudaError_t _cudaStreamBeginCaptureToGraph(cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamBeginCaptureToGraph(stream, graph, dependencies, dependencyData, numDependencies, mode) + return _static_cudaStreamBeginCaptureToGraph(stream, graph, dependencies, dependencyData, numDependencies, mode) + + +cdef cudaError_t _cudaThreadExchangeStreamCaptureMode(cudaStreamCaptureMode* mode) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaThreadExchangeStreamCaptureMode(mode) + return _static_cudaThreadExchangeStreamCaptureMode(mode) + + +cdef cudaError_t _cudaStreamEndCapture(cudaStream_t stream, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamEndCapture(stream, pGraph) + return _static_cudaStreamEndCapture(stream, pGraph) + + +cdef cudaError_t _cudaStreamIsCapturing(cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamIsCapturing(stream, pCaptureStatus) + return _static_cudaStreamIsCapturing(stream, pCaptureStatus) + + +cdef cudaError_t _cudaStreamGetCaptureInfo_v2(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamGetCaptureInfo_v2(stream, captureStatus_out, id_out, graph_out, dependencies_out, numDependencies_out) + return _static_cudaStreamGetCaptureInfo_v2(stream, captureStatus_out, id_out, graph_out, dependencies_out, numDependencies_out) + + +cdef cudaError_t _cudaStreamGetCaptureInfo_v3(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamGetCaptureInfo_v3(stream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) + return _static_cudaStreamGetCaptureInfo_v3(stream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) + + +cdef cudaError_t _cudaStreamUpdateCaptureDependencies(cudaStream_t stream, cudaGraphNode_t* dependencies, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamUpdateCaptureDependencies(stream, dependencies, numDependencies, flags) + return _static_cudaStreamUpdateCaptureDependencies(stream, dependencies, numDependencies, flags) + + +cdef cudaError_t _cudaStreamUpdateCaptureDependencies_v2(cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamUpdateCaptureDependencies_v2(stream, dependencies, dependencyData, numDependencies, flags) + return _static_cudaStreamUpdateCaptureDependencies_v2(stream, dependencies, dependencyData, numDependencies, flags) + + +cdef cudaError_t _cudaEventCreate(cudaEvent_t* event) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaEventCreate(event) + return _static_cudaEventCreate(event) + + +cdef cudaError_t _cudaEventCreateWithFlags(cudaEvent_t* event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaEventCreateWithFlags(event, flags) + return _static_cudaEventCreateWithFlags(event, flags) + + +cdef cudaError_t _cudaEventRecord(cudaEvent_t event, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaEventRecord(event, stream) + return _static_cudaEventRecord(event, stream) + + +cdef cudaError_t _cudaEventRecordWithFlags(cudaEvent_t event, cudaStream_t stream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaEventRecordWithFlags(event, stream, flags) + return _static_cudaEventRecordWithFlags(event, stream, flags) + + +cdef cudaError_t _cudaEventQuery(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaEventQuery(event) + return _static_cudaEventQuery(event) + + +cdef cudaError_t _cudaEventSynchronize(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaEventSynchronize(event) + return _static_cudaEventSynchronize(event) + + +cdef cudaError_t _cudaEventDestroy(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaEventDestroy(event) + return _static_cudaEventDestroy(event) + + +cdef cudaError_t _cudaEventElapsedTime(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaEventElapsedTime(ms, start, end) + return _static_cudaEventElapsedTime(ms, start, end) + + +cdef cudaError_t _cudaEventElapsedTime_v2(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaEventElapsedTime_v2(ms, start, end) + return _static_cudaEventElapsedTime_v2(ms, start, end) + + +cdef cudaError_t _cudaImportExternalMemory(cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaImportExternalMemory(extMem_out, memHandleDesc) + return _static_cudaImportExternalMemory(extMem_out, memHandleDesc) + + +cdef cudaError_t _cudaExternalMemoryGetMappedBuffer(void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaExternalMemoryGetMappedBuffer(devPtr, extMem, bufferDesc) + return _static_cudaExternalMemoryGetMappedBuffer(devPtr, extMem, bufferDesc) + + +cdef cudaError_t _cudaExternalMemoryGetMappedMipmappedArray(cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaExternalMemoryGetMappedMipmappedArray(mipmap, extMem, mipmapDesc) + return _static_cudaExternalMemoryGetMappedMipmappedArray(mipmap, extMem, mipmapDesc) + + +cdef cudaError_t _cudaDestroyExternalMemory(cudaExternalMemory_t extMem) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDestroyExternalMemory(extMem) + return _static_cudaDestroyExternalMemory(extMem) + + +cdef cudaError_t _cudaImportExternalSemaphore(cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaImportExternalSemaphore(extSem_out, semHandleDesc) + return _static_cudaImportExternalSemaphore(extSem_out, semHandleDesc) + + +cdef cudaError_t _cudaSignalExternalSemaphoresAsync_v2(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaSignalExternalSemaphoresAsync_v2(extSemArray, paramsArray, numExtSems, stream) + return _static_cudaSignalExternalSemaphoresAsync_v2(extSemArray, paramsArray, numExtSems, stream) + + +cdef cudaError_t _cudaWaitExternalSemaphoresAsync_v2(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaWaitExternalSemaphoresAsync_v2(extSemArray, paramsArray, numExtSems, stream) + return _static_cudaWaitExternalSemaphoresAsync_v2(extSemArray, paramsArray, numExtSems, stream) + + +cdef cudaError_t _cudaDestroyExternalSemaphore(cudaExternalSemaphore_t extSem) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDestroyExternalSemaphore(extSem) + return _static_cudaDestroyExternalSemaphore(extSem) + + +cdef cudaError_t _cudaFuncSetCacheConfig(const void* func, cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaFuncSetCacheConfig(func, cacheConfig) + return _static_cudaFuncSetCacheConfig(func, cacheConfig) + + +cdef cudaError_t _cudaFuncGetAttributes(cudaFuncAttributes* attr, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaFuncGetAttributes(attr, func) + return _static_cudaFuncGetAttributes(attr, func) + + +cdef cudaError_t _cudaFuncSetAttribute(const void* func, cudaFuncAttribute attr, int value) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaFuncSetAttribute(func, attr, value) + return _static_cudaFuncSetAttribute(func, attr, value) + + +cdef cudaError_t _cudaFuncGetName(const char** name, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaFuncGetName(name, func) + return _static_cudaFuncGetName(name, func) + + +cdef cudaError_t _cudaFuncGetParamInfo(const void* func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaFuncGetParamInfo(func, paramIndex, paramOffset, paramSize) + return _static_cudaFuncGetParamInfo(func, paramIndex, paramOffset, paramSize) + + +cdef cudaError_t _cudaLaunchHostFunc(cudaStream_t stream, cudaHostFn_t fn, void* userData) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLaunchHostFunc(stream, fn, userData) + return _static_cudaLaunchHostFunc(stream, fn, userData) + + +cdef cudaError_t _cudaFuncSetSharedMemConfig(const void* func, cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaFuncSetSharedMemConfig(func, config) + return _static_cudaFuncSetSharedMemConfig(func, config) + + +cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaOccupancyMaxActiveBlocksPerMultiprocessor(numBlocks, func, blockSize, dynamicSMemSize) + return _static_cudaOccupancyMaxActiveBlocksPerMultiprocessor(numBlocks, func, blockSize, dynamicSMemSize) + + +cdef cudaError_t _cudaOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaOccupancyAvailableDynamicSMemPerBlock(dynamicSmemSize, func, numBlocks, blockSize) + return _static_cudaOccupancyAvailableDynamicSMemPerBlock(dynamicSmemSize, func, numBlocks, blockSize) + + +cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(numBlocks, func, blockSize, dynamicSMemSize, flags) + return _static_cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(numBlocks, func, blockSize, dynamicSMemSize, flags) + + +cdef cudaError_t _cudaMallocManaged(void** devPtr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMallocManaged(devPtr, size, flags) + return _static_cudaMallocManaged(devPtr, size, flags) + + +cdef cudaError_t _cudaMalloc(void** devPtr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMalloc(devPtr, size) + return _static_cudaMalloc(devPtr, size) + + +cdef cudaError_t _cudaMallocHost(void** ptr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMallocHost(ptr, size) + return _static_cudaMallocHost(ptr, size) + + +cdef cudaError_t _cudaMallocPitch(void** devPtr, size_t* pitch, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMallocPitch(devPtr, pitch, width, height) + return _static_cudaMallocPitch(devPtr, pitch, width, height) + + +cdef cudaError_t _cudaMallocArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMallocArray(array, desc, width, height, flags) + return _static_cudaMallocArray(array, desc, width, height, flags) + + +cdef cudaError_t _cudaFree(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaFree(devPtr) + return _static_cudaFree(devPtr) + + +cdef cudaError_t _cudaFreeHost(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaFreeHost(ptr) + return _static_cudaFreeHost(ptr) + + +cdef cudaError_t _cudaFreeArray(cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaFreeArray(array) + return _static_cudaFreeArray(array) + + +cdef cudaError_t _cudaFreeMipmappedArray(cudaMipmappedArray_t mipmappedArray) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaFreeMipmappedArray(mipmappedArray) + return _static_cudaFreeMipmappedArray(mipmappedArray) + + +cdef cudaError_t _cudaHostAlloc(void** pHost, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaHostAlloc(pHost, size, flags) + return _static_cudaHostAlloc(pHost, size, flags) + + +cdef cudaError_t _cudaHostRegister(void* ptr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaHostRegister(ptr, size, flags) + return _static_cudaHostRegister(ptr, size, flags) + + +cdef cudaError_t _cudaHostUnregister(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaHostUnregister(ptr) + return _static_cudaHostUnregister(ptr) + + +cdef cudaError_t _cudaHostGetDevicePointer(void** pDevice, void* pHost, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaHostGetDevicePointer(pDevice, pHost, flags) + return _static_cudaHostGetDevicePointer(pDevice, pHost, flags) + + +cdef cudaError_t _cudaHostGetFlags(unsigned int* pFlags, void* pHost) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaHostGetFlags(pFlags, pHost) + return _static_cudaHostGetFlags(pFlags, pHost) + + +cdef cudaError_t _cudaMalloc3D(cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMalloc3D(pitchedDevPtr, extent) + return _static_cudaMalloc3D(pitchedDevPtr, extent) + + +cdef cudaError_t _cudaMalloc3DArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMalloc3DArray(array, desc, extent, flags) + return _static_cudaMalloc3DArray(array, desc, extent, flags) + + +cdef cudaError_t _cudaMallocMipmappedArray(cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMallocMipmappedArray(mipmappedArray, desc, extent, numLevels, flags) + return _static_cudaMallocMipmappedArray(mipmappedArray, desc, extent, numLevels, flags) + + +cdef cudaError_t _cudaGetMipmappedArrayLevel(cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetMipmappedArrayLevel(levelArray, mipmappedArray, level) + return _static_cudaGetMipmappedArrayLevel(levelArray, mipmappedArray, level) + + +cdef cudaError_t _cudaMemcpy3D(const cudaMemcpy3DParms* p) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpy3D(p) + return _static_cudaMemcpy3D(p) + + +cdef cudaError_t _cudaMemcpy3DPeer(const cudaMemcpy3DPeerParms* p) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpy3DPeer(p) + return _static_cudaMemcpy3DPeer(p) + + +cdef cudaError_t _cudaMemcpy3DAsync(const cudaMemcpy3DParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpy3DAsync(p, stream) + return _static_cudaMemcpy3DAsync(p, stream) + + +cdef cudaError_t _cudaMemcpy3DPeerAsync(const cudaMemcpy3DPeerParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpy3DPeerAsync(p, stream) + return _static_cudaMemcpy3DPeerAsync(p, stream) + + +cdef cudaError_t _cudaMemGetInfo(size_t* free, size_t* total) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemGetInfo(free, total) + return _static_cudaMemGetInfo(free, total) + + +cdef cudaError_t _cudaArrayGetInfo(cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaArrayGetInfo(desc, extent, flags, array) + return _static_cudaArrayGetInfo(desc, extent, flags, array) + + +cdef cudaError_t _cudaArrayGetPlane(cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaArrayGetPlane(pPlaneArray, hArray, planeIdx) + return _static_cudaArrayGetPlane(pPlaneArray, hArray, planeIdx) + + +cdef cudaError_t _cudaArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaArrayGetMemoryRequirements(memoryRequirements, array, device) + return _static_cudaArrayGetMemoryRequirements(memoryRequirements, array, device) + + +cdef cudaError_t _cudaMipmappedArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMipmappedArrayGetMemoryRequirements(memoryRequirements, mipmap, device) + return _static_cudaMipmappedArrayGetMemoryRequirements(memoryRequirements, mipmap, device) + + +cdef cudaError_t _cudaArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaArrayGetSparseProperties(sparseProperties, array) + return _static_cudaArrayGetSparseProperties(sparseProperties, array) + + +cdef cudaError_t _cudaMipmappedArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMipmappedArrayGetSparseProperties(sparseProperties, mipmap) + return _static_cudaMipmappedArrayGetSparseProperties(sparseProperties, mipmap) + + +cdef cudaError_t _cudaMemcpy(void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpy(dst, src, count, kind) + return _static_cudaMemcpy(dst, src, count, kind) + + +cdef cudaError_t _cudaMemcpyPeer(void* dst, int dstDevice, const void* src, int srcDevice, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpyPeer(dst, dstDevice, src, srcDevice, count) + return _static_cudaMemcpyPeer(dst, dstDevice, src, srcDevice, count) + + +cdef cudaError_t _cudaMemcpy2D(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpy2D(dst, dpitch, src, spitch, width, height, kind) + return _static_cudaMemcpy2D(dst, dpitch, src, spitch, width, height, kind) + + +cdef cudaError_t _cudaMemcpy2DToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpy2DToArray(dst, wOffset, hOffset, src, spitch, width, height, kind) + return _static_cudaMemcpy2DToArray(dst, wOffset, hOffset, src, spitch, width, height, kind) + + +cdef cudaError_t _cudaMemcpy2DFromArray(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpy2DFromArray(dst, dpitch, src, wOffset, hOffset, width, height, kind) + return _static_cudaMemcpy2DFromArray(dst, dpitch, src, wOffset, hOffset, width, height, kind) + + +cdef cudaError_t _cudaMemcpy2DArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpy2DArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, width, height, kind) + return _static_cudaMemcpy2DArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, width, height, kind) + + +cdef cudaError_t _cudaMemcpyAsync(void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpyAsync(dst, src, count, kind, stream) + return _static_cudaMemcpyAsync(dst, src, count, kind, stream) + + +cdef cudaError_t _cudaMemcpyPeerAsync(void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpyPeerAsync(dst, dstDevice, src, srcDevice, count, stream) + return _static_cudaMemcpyPeerAsync(dst, dstDevice, src, srcDevice, count, stream) + + +cdef cudaError_t _cudaMemcpyBatchAsync(const void** dsts, void** srcs, size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, size_t* failIdx, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpyBatchAsync(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, failIdx, stream) + return _static_cudaMemcpyBatchAsync(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, failIdx, stream) + + +cdef cudaError_t _cudaMemcpy3DBatchAsync(size_t numOps, cudaMemcpy3DBatchOp* opList, size_t* failIdx, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpy3DBatchAsync(numOps, opList, failIdx, flags, stream) + return _static_cudaMemcpy3DBatchAsync(numOps, opList, failIdx, flags, stream) + + +cdef cudaError_t _cudaMemcpy2DAsync(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpy2DAsync(dst, dpitch, src, spitch, width, height, kind, stream) + return _static_cudaMemcpy2DAsync(dst, dpitch, src, spitch, width, height, kind, stream) + + +cdef cudaError_t _cudaMemcpy2DToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpy2DToArrayAsync(dst, wOffset, hOffset, src, spitch, width, height, kind, stream) + return _static_cudaMemcpy2DToArrayAsync(dst, wOffset, hOffset, src, spitch, width, height, kind, stream) + + +cdef cudaError_t _cudaMemcpy2DFromArrayAsync(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpy2DFromArrayAsync(dst, dpitch, src, wOffset, hOffset, width, height, kind, stream) + return _static_cudaMemcpy2DFromArrayAsync(dst, dpitch, src, wOffset, hOffset, width, height, kind, stream) + + +cdef cudaError_t _cudaMemset(void* devPtr, int value, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemset(devPtr, value, count) + return _static_cudaMemset(devPtr, value, count) + + +cdef cudaError_t _cudaMemset2D(void* devPtr, size_t pitch, int value, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemset2D(devPtr, pitch, value, width, height) + return _static_cudaMemset2D(devPtr, pitch, value, width, height) + + +cdef cudaError_t _cudaMemset3D(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemset3D(pitchedDevPtr, value, extent) + return _static_cudaMemset3D(pitchedDevPtr, value, extent) + + +cdef cudaError_t _cudaMemsetAsync(void* devPtr, int value, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemsetAsync(devPtr, value, count, stream) + return _static_cudaMemsetAsync(devPtr, value, count, stream) + + +cdef cudaError_t _cudaMemset2DAsync(void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemset2DAsync(devPtr, pitch, value, width, height, stream) + return _static_cudaMemset2DAsync(devPtr, pitch, value, width, height, stream) + + +cdef cudaError_t _cudaMemset3DAsync(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemset3DAsync(pitchedDevPtr, value, extent, stream) + return _static_cudaMemset3DAsync(pitchedDevPtr, value, extent, stream) + + +cdef cudaError_t _cudaMemPrefetchAsync(const void* devPtr, size_t count, int dstDevice, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemPrefetchAsync(devPtr, count, dstDevice, stream) + return _static_cudaMemPrefetchAsync(devPtr, count, dstDevice, stream) + + +cdef cudaError_t _cudaMemPrefetchAsync_v2(const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemPrefetchAsync_v2(devPtr, count, location, flags, stream) + return _static_cudaMemPrefetchAsync_v2(devPtr, count, location, flags, stream) + + +cdef cudaError_t _cudaMemAdvise(const void* devPtr, size_t count, cudaMemoryAdvise advice, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemAdvise(devPtr, count, advice, device) + return _static_cudaMemAdvise(devPtr, count, advice, device) + + +cdef cudaError_t _cudaMemAdvise_v2(const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemAdvise_v2(devPtr, count, advice, location) + return _static_cudaMemAdvise_v2(devPtr, count, advice, location) + + +cdef cudaError_t _cudaMemRangeGetAttribute(void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemRangeGetAttribute(data, dataSize, attribute, devPtr, count) + return _static_cudaMemRangeGetAttribute(data, dataSize, attribute, devPtr, count) + + +cdef cudaError_t _cudaMemRangeGetAttributes(void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemRangeGetAttributes(data, dataSizes, attributes, numAttributes, devPtr, count) + return _static_cudaMemRangeGetAttributes(data, dataSizes, attributes, numAttributes, devPtr, count) + + +cdef cudaError_t _cudaMemcpyToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpyToArray(dst, wOffset, hOffset, src, count, kind) + return _static_cudaMemcpyToArray(dst, wOffset, hOffset, src, count, kind) + + +cdef cudaError_t _cudaMemcpyFromArray(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpyFromArray(dst, src, wOffset, hOffset, count, kind) + return _static_cudaMemcpyFromArray(dst, src, wOffset, hOffset, count, kind) + + +cdef cudaError_t _cudaMemcpyArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpyArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, count, kind) + return _static_cudaMemcpyArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, count, kind) + + +cdef cudaError_t _cudaMemcpyToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpyToArrayAsync(dst, wOffset, hOffset, src, count, kind, stream) + return _static_cudaMemcpyToArrayAsync(dst, wOffset, hOffset, src, count, kind, stream) + + +cdef cudaError_t _cudaMemcpyFromArrayAsync(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpyFromArrayAsync(dst, src, wOffset, hOffset, count, kind, stream) + return _static_cudaMemcpyFromArrayAsync(dst, src, wOffset, hOffset, count, kind, stream) + + +cdef cudaError_t _cudaMallocAsync(void** devPtr, size_t size, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMallocAsync(devPtr, size, hStream) + return _static_cudaMallocAsync(devPtr, size, hStream) + + +cdef cudaError_t _cudaFreeAsync(void* devPtr, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaFreeAsync(devPtr, hStream) + return _static_cudaFreeAsync(devPtr, hStream) + + +cdef cudaError_t _cudaMemPoolTrimTo(cudaMemPool_t memPool, size_t minBytesToKeep) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemPoolTrimTo(memPool, minBytesToKeep) + return _static_cudaMemPoolTrimTo(memPool, minBytesToKeep) + + +cdef cudaError_t _cudaMemPoolSetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemPoolSetAttribute(memPool, attr, value) + return _static_cudaMemPoolSetAttribute(memPool, attr, value) + + +cdef cudaError_t _cudaMemPoolGetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemPoolGetAttribute(memPool, attr, value) + return _static_cudaMemPoolGetAttribute(memPool, attr, value) + + +cdef cudaError_t _cudaMemPoolSetAccess(cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemPoolSetAccess(memPool, descList, count) + return _static_cudaMemPoolSetAccess(memPool, descList, count) + + +cdef cudaError_t _cudaMemPoolGetAccess(cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemPoolGetAccess(flags, memPool, location) + return _static_cudaMemPoolGetAccess(flags, memPool, location) + + +cdef cudaError_t _cudaMemPoolCreate(cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemPoolCreate(memPool, poolProps) + return _static_cudaMemPoolCreate(memPool, poolProps) + + +cdef cudaError_t _cudaMemPoolDestroy(cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemPoolDestroy(memPool) + return _static_cudaMemPoolDestroy(memPool) + + +cdef cudaError_t _cudaMallocFromPoolAsync(void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMallocFromPoolAsync(ptr, size, memPool, stream) + return _static_cudaMallocFromPoolAsync(ptr, size, memPool, stream) + + +cdef cudaError_t _cudaMemPoolExportToShareableHandle(void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemPoolExportToShareableHandle(shareableHandle, memPool, handleType, flags) + return _static_cudaMemPoolExportToShareableHandle(shareableHandle, memPool, handleType, flags) + + +cdef cudaError_t _cudaMemPoolImportFromShareableHandle(cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemPoolImportFromShareableHandle(memPool, shareableHandle, handleType, flags) + return _static_cudaMemPoolImportFromShareableHandle(memPool, shareableHandle, handleType, flags) + + +cdef cudaError_t _cudaMemPoolExportPointer(cudaMemPoolPtrExportData* exportData, void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemPoolExportPointer(exportData, ptr) + return _static_cudaMemPoolExportPointer(exportData, ptr) + + +cdef cudaError_t _cudaMemPoolImportPointer(void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemPoolImportPointer(ptr, memPool, exportData) + return _static_cudaMemPoolImportPointer(ptr, memPool, exportData) + + +cdef cudaError_t _cudaPointerGetAttributes(cudaPointerAttributes* attributes, const void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaPointerGetAttributes(attributes, ptr) + return _static_cudaPointerGetAttributes(attributes, ptr) + + +cdef cudaError_t _cudaDeviceCanAccessPeer(int* canAccessPeer, int device, int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceCanAccessPeer(canAccessPeer, device, peerDevice) + return _static_cudaDeviceCanAccessPeer(canAccessPeer, device, peerDevice) + + +cdef cudaError_t _cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceEnablePeerAccess(peerDevice, flags) + return _static_cudaDeviceEnablePeerAccess(peerDevice, flags) + + +cdef cudaError_t _cudaDeviceDisablePeerAccess(int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceDisablePeerAccess(peerDevice) + return _static_cudaDeviceDisablePeerAccess(peerDevice) + + +cdef cudaError_t _cudaGraphicsUnregisterResource(cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphicsUnregisterResource(resource) + return _static_cudaGraphicsUnregisterResource(resource) + + +cdef cudaError_t _cudaGraphicsResourceSetMapFlags(cudaGraphicsResource_t resource, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphicsResourceSetMapFlags(resource, flags) + return _static_cudaGraphicsResourceSetMapFlags(resource, flags) + + +cdef cudaError_t _cudaGraphicsMapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphicsMapResources(count, resources, stream) + return _static_cudaGraphicsMapResources(count, resources, stream) + + +cdef cudaError_t _cudaGraphicsUnmapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphicsUnmapResources(count, resources, stream) + return _static_cudaGraphicsUnmapResources(count, resources, stream) + + +cdef cudaError_t _cudaGraphicsResourceGetMappedPointer(void** devPtr, size_t* size, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphicsResourceGetMappedPointer(devPtr, size, resource) + return _static_cudaGraphicsResourceGetMappedPointer(devPtr, size, resource) + + +cdef cudaError_t _cudaGraphicsSubResourceGetMappedArray(cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphicsSubResourceGetMappedArray(array, resource, arrayIndex, mipLevel) + return _static_cudaGraphicsSubResourceGetMappedArray(array, resource, arrayIndex, mipLevel) + + +cdef cudaError_t _cudaGraphicsResourceGetMappedMipmappedArray(cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphicsResourceGetMappedMipmappedArray(mipmappedArray, resource) + return _static_cudaGraphicsResourceGetMappedMipmappedArray(mipmappedArray, resource) + + +cdef cudaError_t _cudaGetChannelDesc(cudaChannelFormatDesc* desc, cudaArray_const_t array) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetChannelDesc(desc, array) + return _static_cudaGetChannelDesc(desc, array) + + +cdef cudaChannelFormatDesc _cudaCreateChannelDesc(int x, int y, int z, int w, cudaChannelFormatKind f) except* nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaCreateChannelDesc(x, y, z, w, f) + return _static_cudaCreateChannelDesc(x, y, z, w, f) + + +cdef cudaError_t _cudaCreateTextureObject(cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaCreateTextureObject(pTexObject, pResDesc, pTexDesc, pResViewDesc) + return _static_cudaCreateTextureObject(pTexObject, pResDesc, pTexDesc, pResViewDesc) + + +cdef cudaError_t _cudaDestroyTextureObject(cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDestroyTextureObject(texObject) + return _static_cudaDestroyTextureObject(texObject) + + +cdef cudaError_t _cudaGetTextureObjectResourceDesc(cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetTextureObjectResourceDesc(pResDesc, texObject) + return _static_cudaGetTextureObjectResourceDesc(pResDesc, texObject) + + +cdef cudaError_t _cudaGetTextureObjectTextureDesc(cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetTextureObjectTextureDesc(pTexDesc, texObject) + return _static_cudaGetTextureObjectTextureDesc(pTexDesc, texObject) + + +cdef cudaError_t _cudaGetTextureObjectResourceViewDesc(cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetTextureObjectResourceViewDesc(pResViewDesc, texObject) + return _static_cudaGetTextureObjectResourceViewDesc(pResViewDesc, texObject) + + +cdef cudaError_t _cudaCreateSurfaceObject(cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaCreateSurfaceObject(pSurfObject, pResDesc) + return _static_cudaCreateSurfaceObject(pSurfObject, pResDesc) + + +cdef cudaError_t _cudaDestroySurfaceObject(cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDestroySurfaceObject(surfObject) + return _static_cudaDestroySurfaceObject(surfObject) + + +cdef cudaError_t _cudaGetSurfaceObjectResourceDesc(cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetSurfaceObjectResourceDesc(pResDesc, surfObject) + return _static_cudaGetSurfaceObjectResourceDesc(pResDesc, surfObject) + + +cdef cudaError_t _cudaDriverGetVersion(int* driverVersion) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDriverGetVersion(driverVersion) + return _static_cudaDriverGetVersion(driverVersion) + + +cdef cudaError_t _cudaRuntimeGetVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaRuntimeGetVersion(runtimeVersion) + return _static_cudaRuntimeGetVersion(runtimeVersion) + + +cdef cudaError_t _cudaGraphCreate(cudaGraph_t* pGraph, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphCreate(pGraph, flags) + return _static_cudaGraphCreate(pGraph, flags) + + +cdef cudaError_t _cudaGraphAddKernelNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddKernelNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) + return _static_cudaGraphAddKernelNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) + + +cdef cudaError_t _cudaGraphKernelNodeGetParams(cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphKernelNodeGetParams(node, pNodeParams) + return _static_cudaGraphKernelNodeGetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphKernelNodeSetParams(cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphKernelNodeSetParams(node, pNodeParams) + return _static_cudaGraphKernelNodeSetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphKernelNodeCopyAttributes(cudaGraphNode_t hSrc, cudaGraphNode_t hDst) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphKernelNodeCopyAttributes(hSrc, hDst) + return _static_cudaGraphKernelNodeCopyAttributes(hSrc, hDst) + + +cdef cudaError_t _cudaGraphKernelNodeGetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, cudaKernelNodeAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphKernelNodeGetAttribute(hNode, attr, value_out) + return _static_cudaGraphKernelNodeGetAttribute(hNode, attr, value_out) + + +cdef cudaError_t _cudaGraphKernelNodeSetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, const cudaKernelNodeAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphKernelNodeSetAttribute(hNode, attr, value) + return _static_cudaGraphKernelNodeSetAttribute(hNode, attr, value) + + +cdef cudaError_t _cudaGraphAddMemcpyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddMemcpyNode(pGraphNode, graph, pDependencies, numDependencies, pCopyParams) + return _static_cudaGraphAddMemcpyNode(pGraphNode, graph, pDependencies, numDependencies, pCopyParams) + + +cdef cudaError_t _cudaGraphAddMemcpyNode1D(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddMemcpyNode1D(pGraphNode, graph, pDependencies, numDependencies, dst, src, count, kind) + return _static_cudaGraphAddMemcpyNode1D(pGraphNode, graph, pDependencies, numDependencies, dst, src, count, kind) + + +cdef cudaError_t _cudaGraphMemcpyNodeGetParams(cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphMemcpyNodeGetParams(node, pNodeParams) + return _static_cudaGraphMemcpyNodeGetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphMemcpyNodeSetParams(cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphMemcpyNodeSetParams(node, pNodeParams) + return _static_cudaGraphMemcpyNodeSetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphMemcpyNodeSetParams1D(cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphMemcpyNodeSetParams1D(node, dst, src, count, kind) + return _static_cudaGraphMemcpyNodeSetParams1D(node, dst, src, count, kind) + + +cdef cudaError_t _cudaGraphAddMemsetNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddMemsetNode(pGraphNode, graph, pDependencies, numDependencies, pMemsetParams) + return _static_cudaGraphAddMemsetNode(pGraphNode, graph, pDependencies, numDependencies, pMemsetParams) + + +cdef cudaError_t _cudaGraphMemsetNodeGetParams(cudaGraphNode_t node, cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphMemsetNodeGetParams(node, pNodeParams) + return _static_cudaGraphMemsetNodeGetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphMemsetNodeSetParams(cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphMemsetNodeSetParams(node, pNodeParams) + return _static_cudaGraphMemsetNodeSetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphAddHostNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddHostNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) + return _static_cudaGraphAddHostNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) + + +cdef cudaError_t _cudaGraphHostNodeGetParams(cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphHostNodeGetParams(node, pNodeParams) + return _static_cudaGraphHostNodeGetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphHostNodeSetParams(cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphHostNodeSetParams(node, pNodeParams) + return _static_cudaGraphHostNodeSetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphAddChildGraphNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddChildGraphNode(pGraphNode, graph, pDependencies, numDependencies, childGraph) + return _static_cudaGraphAddChildGraphNode(pGraphNode, graph, pDependencies, numDependencies, childGraph) + + +cdef cudaError_t _cudaGraphChildGraphNodeGetGraph(cudaGraphNode_t node, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphChildGraphNodeGetGraph(node, pGraph) + return _static_cudaGraphChildGraphNodeGetGraph(node, pGraph) + + +cdef cudaError_t _cudaGraphAddEmptyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddEmptyNode(pGraphNode, graph, pDependencies, numDependencies) + return _static_cudaGraphAddEmptyNode(pGraphNode, graph, pDependencies, numDependencies) + + +cdef cudaError_t _cudaGraphAddEventRecordNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddEventRecordNode(pGraphNode, graph, pDependencies, numDependencies, event) + return _static_cudaGraphAddEventRecordNode(pGraphNode, graph, pDependencies, numDependencies, event) + + +cdef cudaError_t _cudaGraphEventRecordNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphEventRecordNodeGetEvent(node, event_out) + return _static_cudaGraphEventRecordNodeGetEvent(node, event_out) + + +cdef cudaError_t _cudaGraphEventRecordNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphEventRecordNodeSetEvent(node, event) + return _static_cudaGraphEventRecordNodeSetEvent(node, event) + + +cdef cudaError_t _cudaGraphAddEventWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddEventWaitNode(pGraphNode, graph, pDependencies, numDependencies, event) + return _static_cudaGraphAddEventWaitNode(pGraphNode, graph, pDependencies, numDependencies, event) + + +cdef cudaError_t _cudaGraphEventWaitNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphEventWaitNodeGetEvent(node, event_out) + return _static_cudaGraphEventWaitNodeGetEvent(node, event_out) + + +cdef cudaError_t _cudaGraphEventWaitNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphEventWaitNodeSetEvent(node, event) + return _static_cudaGraphEventWaitNodeSetEvent(node, event) + + +cdef cudaError_t _cudaGraphAddExternalSemaphoresSignalNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddExternalSemaphoresSignalNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + return _static_cudaGraphAddExternalSemaphoresSignalNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + + +cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExternalSemaphoresSignalNodeGetParams(hNode, params_out) + return _static_cudaGraphExternalSemaphoresSignalNodeGetParams(hNode, params_out) + + +cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams) + return _static_cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams) + + +cdef cudaError_t _cudaGraphAddExternalSemaphoresWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddExternalSemaphoresWaitNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + return _static_cudaGraphAddExternalSemaphoresWaitNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + + +cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExternalSemaphoresWaitNodeGetParams(hNode, params_out) + return _static_cudaGraphExternalSemaphoresWaitNodeGetParams(hNode, params_out) + + +cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams) + return _static_cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams) + + +cdef cudaError_t _cudaGraphAddMemAllocNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddMemAllocNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + return _static_cudaGraphAddMemAllocNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + + +cdef cudaError_t _cudaGraphMemAllocNodeGetParams(cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphMemAllocNodeGetParams(node, params_out) + return _static_cudaGraphMemAllocNodeGetParams(node, params_out) + + +cdef cudaError_t _cudaGraphAddMemFreeNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddMemFreeNode(pGraphNode, graph, pDependencies, numDependencies, dptr) + return _static_cudaGraphAddMemFreeNode(pGraphNode, graph, pDependencies, numDependencies, dptr) + + +cdef cudaError_t _cudaGraphMemFreeNodeGetParams(cudaGraphNode_t node, void* dptr_out) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphMemFreeNodeGetParams(node, dptr_out) + return _static_cudaGraphMemFreeNodeGetParams(node, dptr_out) + + +cdef cudaError_t _cudaDeviceGraphMemTrim(int device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGraphMemTrim(device) + return _static_cudaDeviceGraphMemTrim(device) + + +cdef cudaError_t _cudaDeviceGetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetGraphMemAttribute(device, attr, value) + return _static_cudaDeviceGetGraphMemAttribute(device, attr, value) + + +cdef cudaError_t _cudaDeviceSetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceSetGraphMemAttribute(device, attr, value) + return _static_cudaDeviceSetGraphMemAttribute(device, attr, value) + + +cdef cudaError_t _cudaGraphClone(cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphClone(pGraphClone, originalGraph) + return _static_cudaGraphClone(pGraphClone, originalGraph) + + +cdef cudaError_t _cudaGraphNodeFindInClone(cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphNodeFindInClone(pNode, originalNode, clonedGraph) + return _static_cudaGraphNodeFindInClone(pNode, originalNode, clonedGraph) + + +cdef cudaError_t _cudaGraphNodeGetType(cudaGraphNode_t node, cudaGraphNodeType* pType) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphNodeGetType(node, pType) + return _static_cudaGraphNodeGetType(node, pType) + + +cdef cudaError_t _cudaGraphGetNodes(cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphGetNodes(graph, nodes, numNodes) + return _static_cudaGraphGetNodes(graph, nodes, numNodes) + + +cdef cudaError_t _cudaGraphGetRootNodes(cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphGetRootNodes(graph, pRootNodes, pNumRootNodes) + return _static_cudaGraphGetRootNodes(graph, pRootNodes, pNumRootNodes) + + +cdef cudaError_t _cudaGraphGetEdges(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphGetEdges(graph, from_, to, numEdges) + return _static_cudaGraphGetEdges(graph, from_, to, numEdges) + + +cdef cudaError_t _cudaGraphGetEdges_v2(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphGetEdges_v2(graph, from_, to, edgeData, numEdges) + return _static_cudaGraphGetEdges_v2(graph, from_, to, edgeData, numEdges) + + +cdef cudaError_t _cudaGraphNodeGetDependencies(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphNodeGetDependencies(node, pDependencies, pNumDependencies) + return _static_cudaGraphNodeGetDependencies(node, pDependencies, pNumDependencies) + + +cdef cudaError_t _cudaGraphNodeGetDependencies_v2(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphNodeGetDependencies_v2(node, pDependencies, edgeData, pNumDependencies) + return _static_cudaGraphNodeGetDependencies_v2(node, pDependencies, edgeData, pNumDependencies) + + +cdef cudaError_t _cudaGraphNodeGetDependentNodes(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphNodeGetDependentNodes(node, pDependentNodes, pNumDependentNodes) + return _static_cudaGraphNodeGetDependentNodes(node, pDependentNodes, pNumDependentNodes) + + +cdef cudaError_t _cudaGraphNodeGetDependentNodes_v2(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphNodeGetDependentNodes_v2(node, pDependentNodes, edgeData, pNumDependentNodes) + return _static_cudaGraphNodeGetDependentNodes_v2(node, pDependentNodes, edgeData, pNumDependentNodes) + + +cdef cudaError_t _cudaGraphAddDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddDependencies(graph, from_, to, numDependencies) + return _static_cudaGraphAddDependencies(graph, from_, to, numDependencies) + + +cdef cudaError_t _cudaGraphAddDependencies_v2(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddDependencies_v2(graph, from_, to, edgeData, numDependencies) + return _static_cudaGraphAddDependencies_v2(graph, from_, to, edgeData, numDependencies) + + +cdef cudaError_t _cudaGraphRemoveDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphRemoveDependencies(graph, from_, to, numDependencies) + return _static_cudaGraphRemoveDependencies(graph, from_, to, numDependencies) + + +cdef cudaError_t _cudaGraphRemoveDependencies_v2(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphRemoveDependencies_v2(graph, from_, to, edgeData, numDependencies) + return _static_cudaGraphRemoveDependencies_v2(graph, from_, to, edgeData, numDependencies) + + +cdef cudaError_t _cudaGraphDestroyNode(cudaGraphNode_t node) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphDestroyNode(node) + return _static_cudaGraphDestroyNode(node) + + +cdef cudaError_t _cudaGraphInstantiate(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphInstantiate(pGraphExec, graph, flags) + return _static_cudaGraphInstantiate(pGraphExec, graph, flags) + + +cdef cudaError_t _cudaGraphInstantiateWithFlags(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphInstantiateWithFlags(pGraphExec, graph, flags) + return _static_cudaGraphInstantiateWithFlags(pGraphExec, graph, flags) + + +cdef cudaError_t _cudaGraphInstantiateWithParams(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphInstantiateWithParams(pGraphExec, graph, instantiateParams) + return _static_cudaGraphInstantiateWithParams(pGraphExec, graph, instantiateParams) + + +cdef cudaError_t _cudaGraphExecGetFlags(cudaGraphExec_t graphExec, unsigned long long* flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecGetFlags(graphExec, flags) + return _static_cudaGraphExecGetFlags(graphExec, flags) + + +cdef cudaError_t _cudaGraphExecKernelNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams) + return _static_cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams) + + +cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams) + return _static_cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams) + + +cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams1D(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, count, kind) + return _static_cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, count, kind) + + +cdef cudaError_t _cudaGraphExecMemsetNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams) + return _static_cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams) + + +cdef cudaError_t _cudaGraphExecHostNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams) + return _static_cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams) + + +cdef cudaError_t _cudaGraphExecChildGraphNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph) + return _static_cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph) + + +cdef cudaError_t _cudaGraphExecEventRecordNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event) + return _static_cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event) + + +cdef cudaError_t _cudaGraphExecEventWaitNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event) + return _static_cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event) + + +cdef cudaError_t _cudaGraphExecExternalSemaphoresSignalNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams) + return _static_cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams) + + +cdef cudaError_t _cudaGraphExecExternalSemaphoresWaitNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams) + return _static_cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams) + + +cdef cudaError_t _cudaGraphNodeSetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphNodeSetEnabled(hGraphExec, hNode, isEnabled) + return _static_cudaGraphNodeSetEnabled(hGraphExec, hNode, isEnabled) + + +cdef cudaError_t _cudaGraphNodeGetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphNodeGetEnabled(hGraphExec, hNode, isEnabled) + return _static_cudaGraphNodeGetEnabled(hGraphExec, hNode, isEnabled) + + +cdef cudaError_t _cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecUpdate(hGraphExec, hGraph, resultInfo) + return _static_cudaGraphExecUpdate(hGraphExec, hGraph, resultInfo) + + +cdef cudaError_t _cudaGraphUpload(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphUpload(graphExec, stream) + return _static_cudaGraphUpload(graphExec, stream) + + +cdef cudaError_t _cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphLaunch(graphExec, stream) + return _static_cudaGraphLaunch(graphExec, stream) + + +cdef cudaError_t _cudaGraphExecDestroy(cudaGraphExec_t graphExec) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecDestroy(graphExec) + return _static_cudaGraphExecDestroy(graphExec) + + +cdef cudaError_t _cudaGraphDestroy(cudaGraph_t graph) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphDestroy(graph) + return _static_cudaGraphDestroy(graph) + + +cdef cudaError_t _cudaGraphDebugDotPrint(cudaGraph_t graph, const char* path, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphDebugDotPrint(graph, path, flags) + return _static_cudaGraphDebugDotPrint(graph, path, flags) + + +cdef cudaError_t _cudaUserObjectCreate(cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaUserObjectCreate(object_out, ptr, destroy, initialRefcount, flags) + return _static_cudaUserObjectCreate(object_out, ptr, destroy, initialRefcount, flags) + + +cdef cudaError_t _cudaUserObjectRetain(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaUserObjectRetain(object, count) + return _static_cudaUserObjectRetain(object, count) + + +cdef cudaError_t _cudaUserObjectRelease(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaUserObjectRelease(object, count) + return _static_cudaUserObjectRelease(object, count) + + +cdef cudaError_t _cudaGraphRetainUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphRetainUserObject(graph, object, count, flags) + return _static_cudaGraphRetainUserObject(graph, object, count, flags) + + +cdef cudaError_t _cudaGraphReleaseUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphReleaseUserObject(graph, object, count) + return _static_cudaGraphReleaseUserObject(graph, object, count) + + +cdef cudaError_t _cudaGraphAddNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + return _static_cudaGraphAddNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + + +cdef cudaError_t _cudaGraphAddNode_v2(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddNode_v2(pGraphNode, graph, pDependencies, dependencyData, numDependencies, nodeParams) + return _static_cudaGraphAddNode_v2(pGraphNode, graph, pDependencies, dependencyData, numDependencies, nodeParams) + + +cdef cudaError_t _cudaGraphNodeSetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphNodeSetParams(node, nodeParams) + return _static_cudaGraphNodeSetParams(node, nodeParams) + + +cdef cudaError_t _cudaGraphExecNodeSetParams(cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecNodeSetParams(graphExec, node, nodeParams) + return _static_cudaGraphExecNodeSetParams(graphExec, node, nodeParams) + + +cdef cudaError_t _cudaGraphConditionalHandleCreate(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphConditionalHandleCreate(pHandle_out, graph, defaultLaunchValue, flags) + return _static_cudaGraphConditionalHandleCreate(pHandle_out, graph, defaultLaunchValue, flags) + + +cdef cudaError_t _cudaGetDriverEntryPoint(const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetDriverEntryPoint(symbol, funcPtr, flags, driverStatus) + return _static_cudaGetDriverEntryPoint(symbol, funcPtr, flags, driverStatus) + + +cdef cudaError_t _cudaGetDriverEntryPointByVersion(const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetDriverEntryPointByVersion(symbol, funcPtr, cudaVersion, flags, driverStatus) + return _static_cudaGetDriverEntryPointByVersion(symbol, funcPtr, cudaVersion, flags, driverStatus) + + +cdef cudaError_t _cudaLibraryLoadData(cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLibraryLoadData(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) + return _static_cudaLibraryLoadData(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) + + +cdef cudaError_t _cudaLibraryLoadFromFile(cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLibraryLoadFromFile(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) + return _static_cudaLibraryLoadFromFile(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) + + +cdef cudaError_t _cudaLibraryUnload(cudaLibrary_t library) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLibraryUnload(library) + return _static_cudaLibraryUnload(library) + + +cdef cudaError_t _cudaLibraryGetKernel(cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLibraryGetKernel(pKernel, library, name) + return _static_cudaLibraryGetKernel(pKernel, library, name) + + +cdef cudaError_t _cudaLibraryGetGlobal(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLibraryGetGlobal(dptr, bytes, library, name) + return _static_cudaLibraryGetGlobal(dptr, bytes, library, name) + + +cdef cudaError_t _cudaLibraryGetManaged(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLibraryGetManaged(dptr, bytes, library, name) + return _static_cudaLibraryGetManaged(dptr, bytes, library, name) + + +cdef cudaError_t _cudaLibraryGetUnifiedFunction(void** fptr, cudaLibrary_t library, const char* symbol) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLibraryGetUnifiedFunction(fptr, library, symbol) + return _static_cudaLibraryGetUnifiedFunction(fptr, library, symbol) + + +cdef cudaError_t _cudaLibraryGetKernelCount(unsigned int* count, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLibraryGetKernelCount(count, lib) + return _static_cudaLibraryGetKernelCount(count, lib) + + +cdef cudaError_t _cudaLibraryEnumerateKernels(cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLibraryEnumerateKernels(kernels, numKernels, lib) + return _static_cudaLibraryEnumerateKernels(kernels, numKernels, lib) + + +cdef cudaError_t _cudaKernelSetAttributeForDevice(cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaKernelSetAttributeForDevice(kernel, attr, value, device) + return _static_cudaKernelSetAttributeForDevice(kernel, attr, value, device) + + +cdef cudaError_t _cudaGetExportTable(const void** ppExportTable, const cudaUUID_t* pExportTableId) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetExportTable(ppExportTable, pExportTableId) + return _static_cudaGetExportTable(ppExportTable, pExportTableId) + + +cdef cudaError_t _cudaGetKernel(cudaKernel_t* kernelPtr, const void* entryFuncAddr) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetKernel(kernelPtr, entryFuncAddr) + return _static_cudaGetKernel(kernelPtr, entryFuncAddr) + + +cdef cudaError_t _cudaProfilerStart() except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaProfilerStart() + return _static_cudaProfilerStart() + + +cdef cudaError_t _cudaProfilerStop() except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaProfilerStop() + return _static_cudaProfilerStop() diff --git a/cuda_bindings_12/cuda/bindings/_bindings/cyruntime_ptds.pxd.in b/cuda_bindings_12/cuda/bindings/_internal/runtime_ptds.pxd similarity index 69% rename from cuda_bindings_12/cuda/bindings/_bindings/cyruntime_ptds.pxd.in rename to cuda_bindings_12/cuda/bindings/_internal/runtime_ptds.pxd index 43792e1e18c8..dc94747eedef 100644 --- a/cuda_bindings_12/cuda/bindings/_bindings/cyruntime_ptds.pxd.in +++ b/cuda_bindings_12/cuda/bindings/_internal/runtime_ptds.pxd @@ -1,1471 +1,305 @@ # SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# # SPDX-License-Identifier: Apache-2.0 - +# # This code was automatically generated with version 12.9.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=58ec8deb9f130e6305b7842d14d609fd871cd1d3f7bf0f0ff714957cd77772b5 -cdef extern from "": - """ - #define CUDA_API_PER_THREAD_DEFAULT_STREAM - """ - -include "../cyruntime_types.pxi" -{{if 'cudaDeviceReset' in found_functions}} +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=24b754bc661d82f88593face4c877f9c5c7d6329afa466f4c91e3d64464f7184 +from ..cyruntime cimport * -cdef cudaError_t _cudaDeviceReset() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} -{{if 'cudaDeviceSynchronize' in found_functions}} +############################################################################### +# Wrapper functions +############################################################################### +cdef cudaError_t _cudaDeviceReset() except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaDeviceSynchronize() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetLimit' in found_functions}} - cdef cudaError_t _cudaDeviceSetLimit(cudaLimit limit, size_t value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetLimit' in found_functions}} - cdef cudaError_t _cudaDeviceGetLimit(size_t* pValue, cudaLimit limit) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetTexture1DLinearMaxWidth' in found_functions}} - cdef cudaError_t _cudaDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetCacheConfig' in found_functions}} - cdef cudaError_t _cudaDeviceGetCacheConfig(cudaFuncCache* pCacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetStreamPriorityRange' in found_functions}} - cdef cudaError_t _cudaDeviceGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetCacheConfig' in found_functions}} - cdef cudaError_t _cudaDeviceSetCacheConfig(cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetByPCIBusId' in found_functions}} - cdef cudaError_t _cudaDeviceGetByPCIBusId(int* device, const char* pciBusId) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetPCIBusId' in found_functions}} - -cdef cudaError_t _cudaDeviceGetPCIBusId(char* pciBusId, int length, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcGetEventHandle' in found_functions}} - +cdef cudaError_t _cudaDeviceGetPCIBusId(char* pciBusId, int len, int device) except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaIpcGetEventHandle(cudaIpcEventHandle_t* handle, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcOpenEventHandle' in found_functions}} - cdef cudaError_t _cudaIpcOpenEventHandle(cudaEvent_t* event, cudaIpcEventHandle_t handle) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcGetMemHandle' in found_functions}} - cdef cudaError_t _cudaIpcGetMemHandle(cudaIpcMemHandle_t* handle, void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcOpenMemHandle' in found_functions}} - cdef cudaError_t _cudaIpcOpenMemHandle(void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcCloseMemHandle' in found_functions}} - cdef cudaError_t _cudaIpcCloseMemHandle(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceFlushGPUDirectRDMAWrites' in found_functions}} - cdef cudaError_t _cudaDeviceFlushGPUDirectRDMAWrites(cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceRegisterAsyncNotification' in found_functions}} - cdef cudaError_t _cudaDeviceRegisterAsyncNotification(int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceUnregisterAsyncNotification' in found_functions}} - cdef cudaError_t _cudaDeviceUnregisterAsyncNotification(int device, cudaAsyncCallbackHandle_t callback) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetSharedMemConfig' in found_functions}} - cdef cudaError_t _cudaDeviceGetSharedMemConfig(cudaSharedMemConfig* pConfig) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetSharedMemConfig' in found_functions}} - cdef cudaError_t _cudaDeviceSetSharedMemConfig(cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetLastError' in found_functions}} - cdef cudaError_t _cudaGetLastError() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaPeekAtLastError' in found_functions}} - cdef cudaError_t _cudaPeekAtLastError() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetErrorName' in found_functions}} - -cdef const char* _cudaGetErrorName(cudaError_t error) except ?NULL nogil -{{endif}} - -{{if 'cudaGetErrorString' in found_functions}} - -cdef const char* _cudaGetErrorString(cudaError_t error) except ?NULL nogil -{{endif}} - -{{if 'cudaGetDeviceCount' in found_functions}} - +cdef const char* _cudaGetErrorName(cudaError_t error) except?NULL nogil +cdef const char* _cudaGetErrorString(cudaError_t error) except?NULL nogil cdef cudaError_t _cudaGetDeviceCount(int* count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDeviceProperties_v2' in found_functions}} - cdef cudaError_t _cudaGetDeviceProperties_v2(cudaDeviceProp* prop, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetAttribute' in found_functions}} - cdef cudaError_t _cudaDeviceGetAttribute(int* value, cudaDeviceAttr attr, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetDefaultMemPool' in found_functions}} - cdef cudaError_t _cudaDeviceGetDefaultMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetMemPool' in found_functions}} - cdef cudaError_t _cudaDeviceSetMemPool(int device, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetMemPool' in found_functions}} - cdef cudaError_t _cudaDeviceGetMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetNvSciSyncAttributes' in found_functions}} - cdef cudaError_t _cudaDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, int device, int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetP2PAttribute' in found_functions}} - cdef cudaError_t _cudaDeviceGetP2PAttribute(int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaChooseDevice' in found_functions}} - cdef cudaError_t _cudaChooseDevice(int* device, const cudaDeviceProp* prop) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaInitDevice' in found_functions}} - cdef cudaError_t _cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaSetDevice' in found_functions}} - cdef cudaError_t _cudaSetDevice(int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDevice' in found_functions}} - cdef cudaError_t _cudaGetDevice(int* device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaSetDeviceFlags' in found_functions}} - cdef cudaError_t _cudaSetDeviceFlags(unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDeviceFlags' in found_functions}} - cdef cudaError_t _cudaGetDeviceFlags(unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamCreate' in found_functions}} - cdef cudaError_t _cudaStreamCreate(cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamCreateWithFlags' in found_functions}} - cdef cudaError_t _cudaStreamCreateWithFlags(cudaStream_t* pStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamCreateWithPriority' in found_functions}} - cdef cudaError_t _cudaStreamCreateWithPriority(cudaStream_t* pStream, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetPriority' in found_functions}} - cdef cudaError_t _cudaStreamGetPriority(cudaStream_t hStream, int* priority) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetFlags' in found_functions}} - cdef cudaError_t _cudaStreamGetFlags(cudaStream_t hStream, unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetId' in found_functions}} - cdef cudaError_t _cudaStreamGetId(cudaStream_t hStream, unsigned long long* streamId) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetDevice' in found_functions}} - cdef cudaError_t _cudaStreamGetDevice(cudaStream_t hStream, int* device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaCtxResetPersistingL2Cache' in found_functions}} - cdef cudaError_t _cudaCtxResetPersistingL2Cache() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamCopyAttributes' in found_functions}} - cdef cudaError_t _cudaStreamCopyAttributes(cudaStream_t dst, cudaStream_t src) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetAttribute' in found_functions}} - cdef cudaError_t _cudaStreamGetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, cudaStreamAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamSetAttribute' in found_functions}} - cdef cudaError_t _cudaStreamSetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, const cudaStreamAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamDestroy' in found_functions}} - cdef cudaError_t _cudaStreamDestroy(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamWaitEvent' in found_functions}} - cdef cudaError_t _cudaStreamWaitEvent(cudaStream_t stream, cudaEvent_t event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamAddCallback' in found_functions}} - cdef cudaError_t _cudaStreamAddCallback(cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamSynchronize' in found_functions}} - cdef cudaError_t _cudaStreamSynchronize(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamQuery' in found_functions}} - cdef cudaError_t _cudaStreamQuery(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamAttachMemAsync' in found_functions}} - cdef cudaError_t _cudaStreamAttachMemAsync(cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamBeginCapture' in found_functions}} - cdef cudaError_t _cudaStreamBeginCapture(cudaStream_t stream, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamBeginCaptureToGraph' in found_functions}} - cdef cudaError_t _cudaStreamBeginCaptureToGraph(cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaThreadExchangeStreamCaptureMode' in found_functions}} - cdef cudaError_t _cudaThreadExchangeStreamCaptureMode(cudaStreamCaptureMode* mode) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamEndCapture' in found_functions}} - cdef cudaError_t _cudaStreamEndCapture(cudaStream_t stream, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamIsCapturing' in found_functions}} - cdef cudaError_t _cudaStreamIsCapturing(cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetCaptureInfo_v2' in found_functions}} - cdef cudaError_t _cudaStreamGetCaptureInfo_v2(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetCaptureInfo_v3' in found_functions}} - cdef cudaError_t _cudaStreamGetCaptureInfo_v3(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamUpdateCaptureDependencies' in found_functions}} - cdef cudaError_t _cudaStreamUpdateCaptureDependencies(cudaStream_t stream, cudaGraphNode_t* dependencies, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamUpdateCaptureDependencies_v2' in found_functions}} - cdef cudaError_t _cudaStreamUpdateCaptureDependencies_v2(cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventCreate' in found_functions}} - cdef cudaError_t _cudaEventCreate(cudaEvent_t* event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventCreateWithFlags' in found_functions}} - cdef cudaError_t _cudaEventCreateWithFlags(cudaEvent_t* event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventRecord' in found_functions}} - cdef cudaError_t _cudaEventRecord(cudaEvent_t event, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventRecordWithFlags' in found_functions}} - cdef cudaError_t _cudaEventRecordWithFlags(cudaEvent_t event, cudaStream_t stream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventQuery' in found_functions}} - cdef cudaError_t _cudaEventQuery(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventSynchronize' in found_functions}} - cdef cudaError_t _cudaEventSynchronize(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventDestroy' in found_functions}} - cdef cudaError_t _cudaEventDestroy(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventElapsedTime' in found_functions}} - cdef cudaError_t _cudaEventElapsedTime(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventElapsedTime_v2' in found_functions}} - cdef cudaError_t _cudaEventElapsedTime_v2(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaImportExternalMemory' in found_functions}} - cdef cudaError_t _cudaImportExternalMemory(cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExternalMemoryGetMappedBuffer' in found_functions}} - cdef cudaError_t _cudaExternalMemoryGetMappedBuffer(void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExternalMemoryGetMappedMipmappedArray' in found_functions}} - cdef cudaError_t _cudaExternalMemoryGetMappedMipmappedArray(cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDestroyExternalMemory' in found_functions}} - cdef cudaError_t _cudaDestroyExternalMemory(cudaExternalMemory_t extMem) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaImportExternalSemaphore' in found_functions}} - cdef cudaError_t _cudaImportExternalSemaphore(cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaSignalExternalSemaphoresAsync_v2' in found_functions}} - cdef cudaError_t _cudaSignalExternalSemaphoresAsync_v2(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaWaitExternalSemaphoresAsync_v2' in found_functions}} - cdef cudaError_t _cudaWaitExternalSemaphoresAsync_v2(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDestroyExternalSemaphore' in found_functions}} - cdef cudaError_t _cudaDestroyExternalSemaphore(cudaExternalSemaphore_t extSem) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFuncSetCacheConfig' in found_functions}} - cdef cudaError_t _cudaFuncSetCacheConfig(const void* func, cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFuncGetAttributes' in found_functions}} - cdef cudaError_t _cudaFuncGetAttributes(cudaFuncAttributes* attr, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFuncSetAttribute' in found_functions}} - cdef cudaError_t _cudaFuncSetAttribute(const void* func, cudaFuncAttribute attr, int value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLaunchHostFunc' in found_functions}} - +cdef cudaError_t _cudaFuncGetName(const char** name, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaFuncGetParamInfo(const void* func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaLaunchHostFunc(cudaStream_t stream, cudaHostFn_t fn, void* userData) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFuncSetSharedMemConfig' in found_functions}} - cdef cudaError_t _cudaFuncSetSharedMemConfig(const void* func, cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}} - cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaOccupancyAvailableDynamicSMemPerBlock' in found_functions}} - cdef cudaError_t _cudaOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}} - cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocManaged' in found_functions}} - cdef cudaError_t _cudaMallocManaged(void** devPtr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMalloc' in found_functions}} - cdef cudaError_t _cudaMalloc(void** devPtr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocHost' in found_functions}} - cdef cudaError_t _cudaMallocHost(void** ptr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocPitch' in found_functions}} - cdef cudaError_t _cudaMallocPitch(void** devPtr, size_t* pitch, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocArray' in found_functions}} - cdef cudaError_t _cudaMallocArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFree' in found_functions}} - cdef cudaError_t _cudaFree(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFreeHost' in found_functions}} - cdef cudaError_t _cudaFreeHost(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFreeArray' in found_functions}} - cdef cudaError_t _cudaFreeArray(cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFreeMipmappedArray' in found_functions}} - cdef cudaError_t _cudaFreeMipmappedArray(cudaMipmappedArray_t mipmappedArray) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostAlloc' in found_functions}} - cdef cudaError_t _cudaHostAlloc(void** pHost, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostRegister' in found_functions}} - cdef cudaError_t _cudaHostRegister(void* ptr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostUnregister' in found_functions}} - cdef cudaError_t _cudaHostUnregister(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostGetDevicePointer' in found_functions}} - cdef cudaError_t _cudaHostGetDevicePointer(void** pDevice, void* pHost, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostGetFlags' in found_functions}} - cdef cudaError_t _cudaHostGetFlags(unsigned int* pFlags, void* pHost) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMalloc3D' in found_functions}} - cdef cudaError_t _cudaMalloc3D(cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMalloc3DArray' in found_functions}} - cdef cudaError_t _cudaMalloc3DArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocMipmappedArray' in found_functions}} - cdef cudaError_t _cudaMallocMipmappedArray(cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetMipmappedArrayLevel' in found_functions}} - cdef cudaError_t _cudaGetMipmappedArrayLevel(cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3D' in found_functions}} - cdef cudaError_t _cudaMemcpy3D(const cudaMemcpy3DParms* p) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3DPeer' in found_functions}} - cdef cudaError_t _cudaMemcpy3DPeer(const cudaMemcpy3DPeerParms* p) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3DAsync' in found_functions}} - cdef cudaError_t _cudaMemcpy3DAsync(const cudaMemcpy3DParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3DPeerAsync' in found_functions}} - cdef cudaError_t _cudaMemcpy3DPeerAsync(const cudaMemcpy3DPeerParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemGetInfo' in found_functions}} - cdef cudaError_t _cudaMemGetInfo(size_t* free, size_t* total) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaArrayGetInfo' in found_functions}} - cdef cudaError_t _cudaArrayGetInfo(cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaArrayGetPlane' in found_functions}} - cdef cudaError_t _cudaArrayGetPlane(cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaArrayGetMemoryRequirements' in found_functions}} - cdef cudaError_t _cudaArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMipmappedArrayGetMemoryRequirements' in found_functions}} - cdef cudaError_t _cudaMipmappedArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaArrayGetSparseProperties' in found_functions}} - cdef cudaError_t _cudaArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMipmappedArrayGetSparseProperties' in found_functions}} - cdef cudaError_t _cudaMipmappedArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy' in found_functions}} - cdef cudaError_t _cudaMemcpy(void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyPeer' in found_functions}} - cdef cudaError_t _cudaMemcpyPeer(void* dst, int dstDevice, const void* src, int srcDevice, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2D' in found_functions}} - cdef cudaError_t _cudaMemcpy2D(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DToArray' in found_functions}} - cdef cudaError_t _cudaMemcpy2DToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DFromArray' in found_functions}} - cdef cudaError_t _cudaMemcpy2DFromArray(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DArrayToArray' in found_functions}} - cdef cudaError_t _cudaMemcpy2DArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyAsync' in found_functions}} - cdef cudaError_t _cudaMemcpyAsync(void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyPeerAsync' in found_functions}} - cdef cudaError_t _cudaMemcpyPeerAsync(void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyBatchAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpyBatchAsync(void** dsts, void** srcs, size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, size_t* failIdx, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3DBatchAsync' in found_functions}} - +cdef cudaError_t _cudaMemcpyBatchAsync(const void** dsts, void** srcs, size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, size_t* failIdx, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaMemcpy3DBatchAsync(size_t numOps, cudaMemcpy3DBatchOp* opList, size_t* failIdx, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DAsync' in found_functions}} - cdef cudaError_t _cudaMemcpy2DAsync(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DToArrayAsync' in found_functions}} - cdef cudaError_t _cudaMemcpy2DToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DFromArrayAsync' in found_functions}} - cdef cudaError_t _cudaMemcpy2DFromArrayAsync(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset' in found_functions}} - cdef cudaError_t _cudaMemset(void* devPtr, int value, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset2D' in found_functions}} - cdef cudaError_t _cudaMemset2D(void* devPtr, size_t pitch, int value, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset3D' in found_functions}} - cdef cudaError_t _cudaMemset3D(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemsetAsync' in found_functions}} - cdef cudaError_t _cudaMemsetAsync(void* devPtr, int value, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset2DAsync' in found_functions}} - cdef cudaError_t _cudaMemset2DAsync(void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset3DAsync' in found_functions}} - cdef cudaError_t _cudaMemset3DAsync(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPrefetchAsync' in found_functions}} - cdef cudaError_t _cudaMemPrefetchAsync(const void* devPtr, size_t count, int dstDevice, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPrefetchAsync_v2' in found_functions}} - cdef cudaError_t _cudaMemPrefetchAsync_v2(const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemAdvise' in found_functions}} - cdef cudaError_t _cudaMemAdvise(const void* devPtr, size_t count, cudaMemoryAdvise advice, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemAdvise_v2' in found_functions}} - cdef cudaError_t _cudaMemAdvise_v2(const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemRangeGetAttribute' in found_functions}} - cdef cudaError_t _cudaMemRangeGetAttribute(void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemRangeGetAttributes' in found_functions}} - cdef cudaError_t _cudaMemRangeGetAttributes(void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyToArray' in found_functions}} - cdef cudaError_t _cudaMemcpyToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyFromArray' in found_functions}} - cdef cudaError_t _cudaMemcpyFromArray(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyArrayToArray' in found_functions}} - cdef cudaError_t _cudaMemcpyArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyToArrayAsync' in found_functions}} - cdef cudaError_t _cudaMemcpyToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyFromArrayAsync' in found_functions}} - cdef cudaError_t _cudaMemcpyFromArrayAsync(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocAsync' in found_functions}} - cdef cudaError_t _cudaMallocAsync(void** devPtr, size_t size, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFreeAsync' in found_functions}} - cdef cudaError_t _cudaFreeAsync(void* devPtr, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolTrimTo' in found_functions}} - cdef cudaError_t _cudaMemPoolTrimTo(cudaMemPool_t memPool, size_t minBytesToKeep) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolSetAttribute' in found_functions}} - cdef cudaError_t _cudaMemPoolSetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolGetAttribute' in found_functions}} - cdef cudaError_t _cudaMemPoolGetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolSetAccess' in found_functions}} - cdef cudaError_t _cudaMemPoolSetAccess(cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolGetAccess' in found_functions}} - cdef cudaError_t _cudaMemPoolGetAccess(cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolCreate' in found_functions}} - cdef cudaError_t _cudaMemPoolCreate(cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolDestroy' in found_functions}} - cdef cudaError_t _cudaMemPoolDestroy(cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocFromPoolAsync' in found_functions}} - cdef cudaError_t _cudaMallocFromPoolAsync(void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolExportToShareableHandle' in found_functions}} - cdef cudaError_t _cudaMemPoolExportToShareableHandle(void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolImportFromShareableHandle' in found_functions}} - cdef cudaError_t _cudaMemPoolImportFromShareableHandle(cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolExportPointer' in found_functions}} - cdef cudaError_t _cudaMemPoolExportPointer(cudaMemPoolPtrExportData* exportData, void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolImportPointer' in found_functions}} - cdef cudaError_t _cudaMemPoolImportPointer(void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaPointerGetAttributes' in found_functions}} - cdef cudaError_t _cudaPointerGetAttributes(cudaPointerAttributes* attributes, const void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceCanAccessPeer' in found_functions}} - cdef cudaError_t _cudaDeviceCanAccessPeer(int* canAccessPeer, int device, int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceEnablePeerAccess' in found_functions}} - cdef cudaError_t _cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceDisablePeerAccess' in found_functions}} - cdef cudaError_t _cudaDeviceDisablePeerAccess(int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsUnregisterResource' in found_functions}} - cdef cudaError_t _cudaGraphicsUnregisterResource(cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsResourceSetMapFlags' in found_functions}} - cdef cudaError_t _cudaGraphicsResourceSetMapFlags(cudaGraphicsResource_t resource, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsMapResources' in found_functions}} - cdef cudaError_t _cudaGraphicsMapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsUnmapResources' in found_functions}} - cdef cudaError_t _cudaGraphicsUnmapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsResourceGetMappedPointer' in found_functions}} - cdef cudaError_t _cudaGraphicsResourceGetMappedPointer(void** devPtr, size_t* size, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsSubResourceGetMappedArray' in found_functions}} - cdef cudaError_t _cudaGraphicsSubResourceGetMappedArray(cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsResourceGetMappedMipmappedArray' in found_functions}} - cdef cudaError_t _cudaGraphicsResourceGetMappedMipmappedArray(cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetChannelDesc' in found_functions}} - cdef cudaError_t _cudaGetChannelDesc(cudaChannelFormatDesc* desc, cudaArray_const_t array) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaCreateChannelDesc' in found_functions}} - cdef cudaChannelFormatDesc _cudaCreateChannelDesc(int x, int y, int z, int w, cudaChannelFormatKind f) except* nogil -{{endif}} - -{{if 'cudaCreateTextureObject' in found_functions}} - cdef cudaError_t _cudaCreateTextureObject(cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDestroyTextureObject' in found_functions}} - cdef cudaError_t _cudaDestroyTextureObject(cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetTextureObjectResourceDesc' in found_functions}} - cdef cudaError_t _cudaGetTextureObjectResourceDesc(cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetTextureObjectTextureDesc' in found_functions}} - cdef cudaError_t _cudaGetTextureObjectTextureDesc(cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetTextureObjectResourceViewDesc' in found_functions}} - cdef cudaError_t _cudaGetTextureObjectResourceViewDesc(cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaCreateSurfaceObject' in found_functions}} - cdef cudaError_t _cudaCreateSurfaceObject(cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDestroySurfaceObject' in found_functions}} - cdef cudaError_t _cudaDestroySurfaceObject(cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetSurfaceObjectResourceDesc' in found_functions}} - cdef cudaError_t _cudaGetSurfaceObjectResourceDesc(cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDriverGetVersion' in found_functions}} - cdef cudaError_t _cudaDriverGetVersion(int* driverVersion) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaRuntimeGetVersion' in found_functions}} - cdef cudaError_t _cudaRuntimeGetVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphCreate' in found_functions}} - cdef cudaError_t _cudaGraphCreate(cudaGraph_t* pGraph, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddKernelNode' in found_functions}} - cdef cudaError_t _cudaGraphAddKernelNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphKernelNodeGetParams(cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphKernelNodeSetParams(cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeCopyAttributes' in found_functions}} - cdef cudaError_t _cudaGraphKernelNodeCopyAttributes(cudaGraphNode_t hSrc, cudaGraphNode_t hDst) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeGetAttribute' in found_functions}} - cdef cudaError_t _cudaGraphKernelNodeGetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, cudaKernelNodeAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeSetAttribute' in found_functions}} - cdef cudaError_t _cudaGraphKernelNodeSetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, const cudaKernelNodeAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemcpyNode' in found_functions}} - cdef cudaError_t _cudaGraphAddMemcpyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemcpyNode1D' in found_functions}} - cdef cudaError_t _cudaGraphAddMemcpyNode1D(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemcpyNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphMemcpyNodeGetParams(cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemcpyNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphMemcpyNodeSetParams(cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemcpyNodeSetParams1D' in found_functions}} - cdef cudaError_t _cudaGraphMemcpyNodeSetParams1D(cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemsetNode' in found_functions}} - cdef cudaError_t _cudaGraphAddMemsetNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemsetNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphMemsetNodeGetParams(cudaGraphNode_t node, cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemsetNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphMemsetNodeSetParams(cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddHostNode' in found_functions}} - cdef cudaError_t _cudaGraphAddHostNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphHostNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphHostNodeGetParams(cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphHostNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphHostNodeSetParams(cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddChildGraphNode' in found_functions}} - cdef cudaError_t _cudaGraphAddChildGraphNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphChildGraphNodeGetGraph' in found_functions}} - cdef cudaError_t _cudaGraphChildGraphNodeGetGraph(cudaGraphNode_t node, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddEmptyNode' in found_functions}} - cdef cudaError_t _cudaGraphAddEmptyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddEventRecordNode' in found_functions}} - cdef cudaError_t _cudaGraphAddEventRecordNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphEventRecordNodeGetEvent' in found_functions}} - cdef cudaError_t _cudaGraphEventRecordNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphEventRecordNodeSetEvent' in found_functions}} - cdef cudaError_t _cudaGraphEventRecordNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddEventWaitNode' in found_functions}} - cdef cudaError_t _cudaGraphAddEventWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphEventWaitNodeGetEvent' in found_functions}} - cdef cudaError_t _cudaGraphEventWaitNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphEventWaitNodeSetEvent' in found_functions}} - cdef cudaError_t _cudaGraphEventWaitNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddExternalSemaphoresSignalNode' in found_functions}} - cdef cudaError_t _cudaGraphAddExternalSemaphoresSignalNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExternalSemaphoresSignalNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExternalSemaphoresSignalNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddExternalSemaphoresWaitNode' in found_functions}} - cdef cudaError_t _cudaGraphAddExternalSemaphoresWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExternalSemaphoresWaitNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExternalSemaphoresWaitNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemAllocNode' in found_functions}} - cdef cudaError_t _cudaGraphAddMemAllocNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemAllocNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphMemAllocNodeGetParams(cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemFreeNode' in found_functions}} - cdef cudaError_t _cudaGraphAddMemFreeNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemFreeNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphMemFreeNodeGetParams(cudaGraphNode_t node, void* dptr_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGraphMemTrim' in found_functions}} - cdef cudaError_t _cudaDeviceGraphMemTrim(int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetGraphMemAttribute' in found_functions}} - cdef cudaError_t _cudaDeviceGetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetGraphMemAttribute' in found_functions}} - cdef cudaError_t _cudaDeviceSetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphClone' in found_functions}} - cdef cudaError_t _cudaGraphClone(cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeFindInClone' in found_functions}} - cdef cudaError_t _cudaGraphNodeFindInClone(cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetType' in found_functions}} - cdef cudaError_t _cudaGraphNodeGetType(cudaGraphNode_t node, cudaGraphNodeType* pType) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphGetNodes' in found_functions}} - cdef cudaError_t _cudaGraphGetNodes(cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphGetRootNodes' in found_functions}} - cdef cudaError_t _cudaGraphGetRootNodes(cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphGetEdges' in found_functions}} - cdef cudaError_t _cudaGraphGetEdges(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphGetEdges_v2' in found_functions}} - cdef cudaError_t _cudaGraphGetEdges_v2(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetDependencies' in found_functions}} - cdef cudaError_t _cudaGraphNodeGetDependencies(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetDependencies_v2' in found_functions}} - cdef cudaError_t _cudaGraphNodeGetDependencies_v2(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetDependentNodes' in found_functions}} - cdef cudaError_t _cudaGraphNodeGetDependentNodes(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetDependentNodes_v2' in found_functions}} - cdef cudaError_t _cudaGraphNodeGetDependentNodes_v2(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddDependencies' in found_functions}} - cdef cudaError_t _cudaGraphAddDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddDependencies_v2' in found_functions}} - cdef cudaError_t _cudaGraphAddDependencies_v2(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphRemoveDependencies' in found_functions}} - cdef cudaError_t _cudaGraphRemoveDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphRemoveDependencies_v2' in found_functions}} - cdef cudaError_t _cudaGraphRemoveDependencies_v2(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphDestroyNode' in found_functions}} - cdef cudaError_t _cudaGraphDestroyNode(cudaGraphNode_t node) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphInstantiate' in found_functions}} - cdef cudaError_t _cudaGraphInstantiate(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphInstantiateWithFlags' in found_functions}} - cdef cudaError_t _cudaGraphInstantiateWithFlags(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphInstantiateWithParams' in found_functions}} - cdef cudaError_t _cudaGraphInstantiateWithParams(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecGetFlags' in found_functions}} - cdef cudaError_t _cudaGraphExecGetFlags(cudaGraphExec_t graphExec, unsigned long long* flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecKernelNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecKernelNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecMemcpyNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecMemcpyNodeSetParams1D' in found_functions}} - cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams1D(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecMemsetNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecMemsetNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecHostNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecHostNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecChildGraphNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecChildGraphNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecEventRecordNodeSetEvent' in found_functions}} - cdef cudaError_t _cudaGraphExecEventRecordNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecEventWaitNodeSetEvent' in found_functions}} - cdef cudaError_t _cudaGraphExecEventWaitNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecExternalSemaphoresSignalNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecExternalSemaphoresWaitNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeSetEnabled' in found_functions}} - cdef cudaError_t _cudaGraphNodeSetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetEnabled' in found_functions}} - cdef cudaError_t _cudaGraphNodeGetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecUpdate' in found_functions}} - cdef cudaError_t _cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphUpload' in found_functions}} - cdef cudaError_t _cudaGraphUpload(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphLaunch' in found_functions}} - cdef cudaError_t _cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecDestroy' in found_functions}} - cdef cudaError_t _cudaGraphExecDestroy(cudaGraphExec_t graphExec) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphDestroy' in found_functions}} - cdef cudaError_t _cudaGraphDestroy(cudaGraph_t graph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphDebugDotPrint' in found_functions}} - cdef cudaError_t _cudaGraphDebugDotPrint(cudaGraph_t graph, const char* path, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaUserObjectCreate' in found_functions}} - cdef cudaError_t _cudaUserObjectCreate(cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaUserObjectRetain' in found_functions}} - cdef cudaError_t _cudaUserObjectRetain(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaUserObjectRelease' in found_functions}} - cdef cudaError_t _cudaUserObjectRelease(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphRetainUserObject' in found_functions}} - cdef cudaError_t _cudaGraphRetainUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphReleaseUserObject' in found_functions}} - cdef cudaError_t _cudaGraphReleaseUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddNode' in found_functions}} - cdef cudaError_t _cudaGraphAddNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddNode_v2' in found_functions}} - cdef cudaError_t _cudaGraphAddNode_v2(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphNodeSetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecNodeSetParams(cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphConditionalHandleCreate' in found_functions}} - cdef cudaError_t _cudaGraphConditionalHandleCreate(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDriverEntryPoint' in found_functions}} - cdef cudaError_t _cudaGetDriverEntryPoint(const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDriverEntryPointByVersion' in found_functions}} - cdef cudaError_t _cudaGetDriverEntryPointByVersion(const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryLoadData' in found_functions}} - cdef cudaError_t _cudaLibraryLoadData(cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryLoadFromFile' in found_functions}} - cdef cudaError_t _cudaLibraryLoadFromFile(cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryUnload' in found_functions}} - cdef cudaError_t _cudaLibraryUnload(cudaLibrary_t library) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetKernel' in found_functions}} - cdef cudaError_t _cudaLibraryGetKernel(cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetGlobal' in found_functions}} - -cdef cudaError_t _cudaLibraryGetGlobal(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetManaged' in found_functions}} - -cdef cudaError_t _cudaLibraryGetManaged(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetUnifiedFunction' in found_functions}} - +cdef cudaError_t _cudaLibraryGetGlobal(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaLibraryGetManaged(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaLibraryGetUnifiedFunction(void** fptr, cudaLibrary_t library, const char* symbol) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetKernelCount' in found_functions}} - cdef cudaError_t _cudaLibraryGetKernelCount(unsigned int* count, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryEnumerateKernels' in found_functions}} - cdef cudaError_t _cudaLibraryEnumerateKernels(cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaKernelSetAttributeForDevice' in found_functions}} - cdef cudaError_t _cudaKernelSetAttributeForDevice(cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetExportTable' in found_functions}} - cdef cudaError_t _cudaGetExportTable(const void** ppExportTable, const cudaUUID_t* pExportTableId) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetKernel' in found_functions}} - cdef cudaError_t _cudaGetKernel(cudaKernel_t* kernelPtr, const void* entryFuncAddr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'make_cudaPitchedPtr' in found_functions}} - -cdef cudaPitchedPtr _make_cudaPitchedPtr(void* d, size_t p, size_t xsz, size_t ysz) except* nogil -{{endif}} - -{{if 'make_cudaPos' in found_functions}} - -cdef cudaPos _make_cudaPos(size_t x, size_t y, size_t z) except* nogil -{{endif}} - -{{if 'make_cudaExtent' in found_functions}} - -cdef cudaExtent _make_cudaExtent(size_t w, size_t h, size_t d) except* nogil -{{endif}} - -{{if 'cudaProfilerStart' in found_functions}} - cdef cudaError_t _cudaProfilerStart() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaProfilerStop' in found_functions}} - cdef cudaError_t _cudaProfilerStop() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} diff --git a/cuda_bindings_12/cuda/bindings/_internal/runtime_ptds_linux.pyx b/cuda_bindings_12/cuda/bindings/_internal/runtime_ptds_linux.pyx new file mode 100644 index 000000000000..ed806aabf2b5 --- /dev/null +++ b/cuda_bindings_12/cuda/bindings/_internal/runtime_ptds_linux.pyx @@ -0,0 +1,2060 @@ +# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# +# This code was automatically generated with version 12.9.0. Do not modify it directly. + +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=4ce144a754554f6d4d5ba3aab7c8b608382d026a5b08d9078577ae2dc3c866bf +cdef extern from "": + """ + #define CUDA_API_PER_THREAD_DEFAULT_STREAM + """ + + +############################################################################### +# C function declarations for static cudart with per-thread default stream +# (CUDA_API_PER_THREAD_DEFAULT_STREAM causes cudaXxx to resolve to the _ptsz +# per-thread-stream symbol variants) +############################################################################### + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceReset "cudaDeviceReset" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSynchronize "cudaDeviceSynchronize" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetLimit "cudaDeviceSetLimit" (cudaLimit limit, size_t value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetLimit "cudaDeviceGetLimit" (size_t* pValue, cudaLimit limit) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetTexture1DLinearMaxWidth "cudaDeviceGetTexture1DLinearMaxWidth" (size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetCacheConfig "cudaDeviceGetCacheConfig" (cudaFuncCache* pCacheConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetStreamPriorityRange "cudaDeviceGetStreamPriorityRange" (int* leastPriority, int* greatestPriority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetCacheConfig "cudaDeviceSetCacheConfig" (cudaFuncCache cacheConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetByPCIBusId "cudaDeviceGetByPCIBusId" (int* device, const char* pciBusId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetPCIBusId "cudaDeviceGetPCIBusId" (char* pciBusId, int len, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcGetEventHandle "cudaIpcGetEventHandle" (cudaIpcEventHandle_t* handle, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcOpenEventHandle "cudaIpcOpenEventHandle" (cudaEvent_t* event, cudaIpcEventHandle_t handle) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcGetMemHandle "cudaIpcGetMemHandle" (cudaIpcMemHandle_t* handle, void* devPtr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcOpenMemHandle "cudaIpcOpenMemHandle" (void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcCloseMemHandle "cudaIpcCloseMemHandle" (void* devPtr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceFlushGPUDirectRDMAWrites "cudaDeviceFlushGPUDirectRDMAWrites" (cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceRegisterAsyncNotification "cudaDeviceRegisterAsyncNotification" (int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceUnregisterAsyncNotification "cudaDeviceUnregisterAsyncNotification" (int device, cudaAsyncCallbackHandle_t callback) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetSharedMemConfig "cudaDeviceGetSharedMemConfig" (cudaSharedMemConfig* pConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetSharedMemConfig "cudaDeviceSetSharedMemConfig" (cudaSharedMemConfig config) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetLastError "cudaGetLastError" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaPeekAtLastError "cudaPeekAtLastError" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + const char* _static_cudaGetErrorName "cudaGetErrorName" (cudaError_t error) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + const char* _static_cudaGetErrorString "cudaGetErrorString" (cudaError_t error) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDeviceCount "cudaGetDeviceCount" (int* count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDeviceProperties_v2 "cudaGetDeviceProperties_v2" (cudaDeviceProp* prop, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetAttribute "cudaDeviceGetAttribute" (int* value, cudaDeviceAttr attr, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetDefaultMemPool "cudaDeviceGetDefaultMemPool" (cudaMemPool_t* memPool, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetMemPool "cudaDeviceSetMemPool" (int device, cudaMemPool_t memPool) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetMemPool "cudaDeviceGetMemPool" (cudaMemPool_t* memPool, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetNvSciSyncAttributes "cudaDeviceGetNvSciSyncAttributes" (void* nvSciSyncAttrList, int device, int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetP2PAttribute "cudaDeviceGetP2PAttribute" (int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaChooseDevice "cudaChooseDevice" (int* device, const cudaDeviceProp* prop) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaInitDevice "cudaInitDevice" (int device, unsigned int deviceFlags, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaSetDevice "cudaSetDevice" (int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDevice "cudaGetDevice" (int* device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaSetDeviceFlags "cudaSetDeviceFlags" (unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDeviceFlags "cudaGetDeviceFlags" (unsigned int* flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCreate "cudaStreamCreate" (cudaStream_t* pStream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCreateWithFlags "cudaStreamCreateWithFlags" (cudaStream_t* pStream, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCreateWithPriority "cudaStreamCreateWithPriority" (cudaStream_t* pStream, unsigned int flags, int priority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetPriority "cudaStreamGetPriority" (cudaStream_t hStream, int* priority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetFlags "cudaStreamGetFlags" (cudaStream_t hStream, unsigned int* flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetId "cudaStreamGetId" (cudaStream_t hStream, unsigned long long* streamId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetDevice "cudaStreamGetDevice" (cudaStream_t hStream, int* device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaCtxResetPersistingL2Cache "cudaCtxResetPersistingL2Cache" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCopyAttributes "cudaStreamCopyAttributes" (cudaStream_t dst, cudaStream_t src) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetAttribute "cudaStreamGetAttribute" (cudaStream_t hStream, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamSetAttribute "cudaStreamSetAttribute" (cudaStream_t hStream, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamDestroy "cudaStreamDestroy" (cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamWaitEvent "cudaStreamWaitEvent" (cudaStream_t stream, cudaEvent_t event, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamAddCallback "cudaStreamAddCallback" (cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamSynchronize "cudaStreamSynchronize" (cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamQuery "cudaStreamQuery" (cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamAttachMemAsync "cudaStreamAttachMemAsync" (cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamBeginCapture "cudaStreamBeginCapture" (cudaStream_t stream, cudaStreamCaptureMode mode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamBeginCaptureToGraph "cudaStreamBeginCaptureToGraph" (cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaThreadExchangeStreamCaptureMode "cudaThreadExchangeStreamCaptureMode" (cudaStreamCaptureMode* mode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamEndCapture "cudaStreamEndCapture" (cudaStream_t stream, cudaGraph_t* pGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamIsCapturing "cudaStreamIsCapturing" (cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetCaptureInfo_v2 "cudaStreamGetCaptureInfo_v2" (cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, size_t* numDependencies_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetCaptureInfo_v3 "cudaStreamGetCaptureInfo_v3" (cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamUpdateCaptureDependencies "cudaStreamUpdateCaptureDependencies" (cudaStream_t stream, cudaGraphNode_t* dependencies, size_t numDependencies, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamUpdateCaptureDependencies_v2 "cudaStreamUpdateCaptureDependencies_v2" (cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventCreate "cudaEventCreate" (cudaEvent_t* event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventCreateWithFlags "cudaEventCreateWithFlags" (cudaEvent_t* event, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventRecord "cudaEventRecord" (cudaEvent_t event, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventRecordWithFlags "cudaEventRecordWithFlags" (cudaEvent_t event, cudaStream_t stream, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventQuery "cudaEventQuery" (cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventSynchronize "cudaEventSynchronize" (cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventDestroy "cudaEventDestroy" (cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventElapsedTime "cudaEventElapsedTime" (float* ms, cudaEvent_t start, cudaEvent_t end) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventElapsedTime_v2 "cudaEventElapsedTime_v2" (float* ms, cudaEvent_t start, cudaEvent_t end) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaImportExternalMemory "cudaImportExternalMemory" (cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExternalMemoryGetMappedBuffer "cudaExternalMemoryGetMappedBuffer" (void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExternalMemoryGetMappedMipmappedArray "cudaExternalMemoryGetMappedMipmappedArray" (cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroyExternalMemory "cudaDestroyExternalMemory" (cudaExternalMemory_t extMem) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaImportExternalSemaphore "cudaImportExternalSemaphore" (cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaSignalExternalSemaphoresAsync_v2 "cudaSignalExternalSemaphoresAsync_v2" (const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaWaitExternalSemaphoresAsync_v2 "cudaWaitExternalSemaphoresAsync_v2" (const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroyExternalSemaphore "cudaDestroyExternalSemaphore" (cudaExternalSemaphore_t extSem) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncSetCacheConfig "cudaFuncSetCacheConfig" (const void* func, cudaFuncCache cacheConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetAttributes "cudaFuncGetAttributes" (cudaFuncAttributes* attr, const void* func) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncSetAttribute "cudaFuncSetAttribute" (const void* func, cudaFuncAttribute attr, int value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetName "cudaFuncGetName" (const char** name, const void* func) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetParamInfo "cudaFuncGetParamInfo" (const void* func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLaunchHostFunc "cudaLaunchHostFunc" (cudaStream_t stream, cudaHostFn_t fn, void* userData) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncSetSharedMemConfig "cudaFuncSetSharedMemConfig" (const void* func, cudaSharedMemConfig config) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaOccupancyMaxActiveBlocksPerMultiprocessor "cudaOccupancyMaxActiveBlocksPerMultiprocessor" (int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaOccupancyAvailableDynamicSMemPerBlock "cudaOccupancyAvailableDynamicSMemPerBlock" (size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags "cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags" (int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocManaged "cudaMallocManaged" (void** devPtr, size_t size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMalloc "cudaMalloc" (void** devPtr, size_t size) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocHost "cudaMallocHost" (void** ptr, size_t size) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocPitch "cudaMallocPitch" (void** devPtr, size_t* pitch, size_t width, size_t height) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocArray "cudaMallocArray" (cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFree "cudaFree" (void* devPtr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeHost "cudaFreeHost" (void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeArray "cudaFreeArray" (cudaArray_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeMipmappedArray "cudaFreeMipmappedArray" (cudaMipmappedArray_t mipmappedArray) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostAlloc "cudaHostAlloc" (void** pHost, size_t size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostRegister "cudaHostRegister" (void* ptr, size_t size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostUnregister "cudaHostUnregister" (void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostGetDevicePointer "cudaHostGetDevicePointer" (void** pDevice, void* pHost, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostGetFlags "cudaHostGetFlags" (unsigned int* pFlags, void* pHost) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMalloc3D "cudaMalloc3D" (cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMalloc3DArray "cudaMalloc3DArray" (cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocMipmappedArray "cudaMallocMipmappedArray" (cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetMipmappedArrayLevel "cudaGetMipmappedArrayLevel" (cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3D "cudaMemcpy3D" (const cudaMemcpy3DParms* p) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DPeer "cudaMemcpy3DPeer" (const cudaMemcpy3DPeerParms* p) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DAsync "cudaMemcpy3DAsync" (const cudaMemcpy3DParms* p, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DPeerAsync "cudaMemcpy3DPeerAsync" (const cudaMemcpy3DPeerParms* p, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemGetInfo "cudaMemGetInfo" (size_t* free, size_t* total) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetInfo "cudaArrayGetInfo" (cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetPlane "cudaArrayGetPlane" (cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetMemoryRequirements "cudaArrayGetMemoryRequirements" (cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMipmappedArrayGetMemoryRequirements "cudaMipmappedArrayGetMemoryRequirements" (cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetSparseProperties "cudaArrayGetSparseProperties" (cudaArraySparseProperties* sparseProperties, cudaArray_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMipmappedArrayGetSparseProperties "cudaMipmappedArrayGetSparseProperties" (cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy "cudaMemcpy" (void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyPeer "cudaMemcpyPeer" (void* dst, int dstDevice, const void* src, int srcDevice, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2D "cudaMemcpy2D" (void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DToArray "cudaMemcpy2DToArray" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DFromArray "cudaMemcpy2DFromArray" (void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DArrayToArray "cudaMemcpy2DArrayToArray" (cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyAsync "cudaMemcpyAsync" (void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyPeerAsync "cudaMemcpyPeerAsync" (void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyBatchAsync "cudaMemcpyBatchAsync" (void** dsts, void** srcs, size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, size_t* failIdx, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DBatchAsync "cudaMemcpy3DBatchAsync" (size_t numOps, cudaMemcpy3DBatchOp* opList, size_t* failIdx, unsigned long long flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DAsync "cudaMemcpy2DAsync" (void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DToArrayAsync "cudaMemcpy2DToArrayAsync" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DFromArrayAsync "cudaMemcpy2DFromArrayAsync" (void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset "cudaMemset" (void* devPtr, int value, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset2D "cudaMemset2D" (void* devPtr, size_t pitch, int value, size_t width, size_t height) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset3D "cudaMemset3D" (cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemsetAsync "cudaMemsetAsync" (void* devPtr, int value, size_t count, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset2DAsync "cudaMemset2DAsync" (void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset3DAsync "cudaMemset3DAsync" (cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPrefetchAsync "cudaMemPrefetchAsync" (const void* devPtr, size_t count, int dstDevice, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPrefetchAsync_v2 "cudaMemPrefetchAsync_v2" (const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemAdvise "cudaMemAdvise" (const void* devPtr, size_t count, cudaMemoryAdvise advice, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemAdvise_v2 "cudaMemAdvise_v2" (const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemRangeGetAttribute "cudaMemRangeGetAttribute" (void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemRangeGetAttributes "cudaMemRangeGetAttributes" (void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyToArray "cudaMemcpyToArray" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyFromArray "cudaMemcpyFromArray" (void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyArrayToArray "cudaMemcpyArrayToArray" (cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyToArrayAsync "cudaMemcpyToArrayAsync" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyFromArrayAsync "cudaMemcpyFromArrayAsync" (void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocAsync "cudaMallocAsync" (void** devPtr, size_t size, cudaStream_t hStream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeAsync "cudaFreeAsync" (void* devPtr, cudaStream_t hStream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolTrimTo "cudaMemPoolTrimTo" (cudaMemPool_t memPool, size_t minBytesToKeep) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolSetAttribute "cudaMemPoolSetAttribute" (cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolGetAttribute "cudaMemPoolGetAttribute" (cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolSetAccess "cudaMemPoolSetAccess" (cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolGetAccess "cudaMemPoolGetAccess" (cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolCreate "cudaMemPoolCreate" (cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolDestroy "cudaMemPoolDestroy" (cudaMemPool_t memPool) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocFromPoolAsync "cudaMallocFromPoolAsync" (void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolExportToShareableHandle "cudaMemPoolExportToShareableHandle" (void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolImportFromShareableHandle "cudaMemPoolImportFromShareableHandle" (cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolExportPointer "cudaMemPoolExportPointer" (cudaMemPoolPtrExportData* exportData, void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolImportPointer "cudaMemPoolImportPointer" (void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaPointerGetAttributes "cudaPointerGetAttributes" (cudaPointerAttributes* attributes, const void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceCanAccessPeer "cudaDeviceCanAccessPeer" (int* canAccessPeer, int device, int peerDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceEnablePeerAccess "cudaDeviceEnablePeerAccess" (int peerDevice, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceDisablePeerAccess "cudaDeviceDisablePeerAccess" (int peerDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsUnregisterResource "cudaGraphicsUnregisterResource" (cudaGraphicsResource_t resource) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsResourceSetMapFlags "cudaGraphicsResourceSetMapFlags" (cudaGraphicsResource_t resource, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsMapResources "cudaGraphicsMapResources" (int count, cudaGraphicsResource_t* resources, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsUnmapResources "cudaGraphicsUnmapResources" (int count, cudaGraphicsResource_t* resources, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsResourceGetMappedPointer "cudaGraphicsResourceGetMappedPointer" (void** devPtr, size_t* size, cudaGraphicsResource_t resource) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsSubResourceGetMappedArray "cudaGraphicsSubResourceGetMappedArray" (cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsResourceGetMappedMipmappedArray "cudaGraphicsResourceGetMappedMipmappedArray" (cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetChannelDesc "cudaGetChannelDesc" (cudaChannelFormatDesc* desc, cudaArray_const_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaChannelFormatDesc _static_cudaCreateChannelDesc "cudaCreateChannelDesc" (int x, int y, int z, int w, cudaChannelFormatKind f) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaCreateTextureObject "cudaCreateTextureObject" (cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroyTextureObject "cudaDestroyTextureObject" (cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetTextureObjectResourceDesc "cudaGetTextureObjectResourceDesc" (cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetTextureObjectTextureDesc "cudaGetTextureObjectTextureDesc" (cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetTextureObjectResourceViewDesc "cudaGetTextureObjectResourceViewDesc" (cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaCreateSurfaceObject "cudaCreateSurfaceObject" (cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroySurfaceObject "cudaDestroySurfaceObject" (cudaSurfaceObject_t surfObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetSurfaceObjectResourceDesc "cudaGetSurfaceObjectResourceDesc" (cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDriverGetVersion "cudaDriverGetVersion" (int* driverVersion) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaRuntimeGetVersion "cudaRuntimeGetVersion" (int* runtimeVersion) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphCreate "cudaGraphCreate" (cudaGraph_t* pGraph, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddKernelNode "cudaGraphAddKernelNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeGetParams "cudaGraphKernelNodeGetParams" (cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeSetParams "cudaGraphKernelNodeSetParams" (cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeCopyAttributes "cudaGraphKernelNodeCopyAttributes" (cudaGraphNode_t hSrc, cudaGraphNode_t hDst) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeGetAttribute "cudaGraphKernelNodeGetAttribute" (cudaGraphNode_t hNode, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeSetAttribute "cudaGraphKernelNodeSetAttribute" (cudaGraphNode_t hNode, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemcpyNode "cudaGraphAddMemcpyNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemcpyNode1D "cudaGraphAddMemcpyNode1D" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemcpyNodeGetParams "cudaGraphMemcpyNodeGetParams" (cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemcpyNodeSetParams "cudaGraphMemcpyNodeSetParams" (cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemcpyNodeSetParams1D "cudaGraphMemcpyNodeSetParams1D" (cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemsetNode "cudaGraphAddMemsetNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemsetNodeGetParams "cudaGraphMemsetNodeGetParams" (cudaGraphNode_t node, cudaMemsetParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemsetNodeSetParams "cudaGraphMemsetNodeSetParams" (cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddHostNode "cudaGraphAddHostNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphHostNodeGetParams "cudaGraphHostNodeGetParams" (cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphHostNodeSetParams "cudaGraphHostNodeSetParams" (cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddChildGraphNode "cudaGraphAddChildGraphNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphChildGraphNodeGetGraph "cudaGraphChildGraphNodeGetGraph" (cudaGraphNode_t node, cudaGraph_t* pGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddEmptyNode "cudaGraphAddEmptyNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddEventRecordNode "cudaGraphAddEventRecordNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventRecordNodeGetEvent "cudaGraphEventRecordNodeGetEvent" (cudaGraphNode_t node, cudaEvent_t* event_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventRecordNodeSetEvent "cudaGraphEventRecordNodeSetEvent" (cudaGraphNode_t node, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddEventWaitNode "cudaGraphAddEventWaitNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventWaitNodeGetEvent "cudaGraphEventWaitNodeGetEvent" (cudaGraphNode_t node, cudaEvent_t* event_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventWaitNodeSetEvent "cudaGraphEventWaitNodeSetEvent" (cudaGraphNode_t node, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddExternalSemaphoresSignalNode "cudaGraphAddExternalSemaphoresSignalNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresSignalNodeGetParams "cudaGraphExternalSemaphoresSignalNodeGetParams" (cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresSignalNodeSetParams "cudaGraphExternalSemaphoresSignalNodeSetParams" (cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddExternalSemaphoresWaitNode "cudaGraphAddExternalSemaphoresWaitNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresWaitNodeGetParams "cudaGraphExternalSemaphoresWaitNodeGetParams" (cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresWaitNodeSetParams "cudaGraphExternalSemaphoresWaitNodeSetParams" (cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemAllocNode "cudaGraphAddMemAllocNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemAllocNodeGetParams "cudaGraphMemAllocNodeGetParams" (cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemFreeNode "cudaGraphAddMemFreeNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemFreeNodeGetParams "cudaGraphMemFreeNodeGetParams" (cudaGraphNode_t node, void* dptr_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGraphMemTrim "cudaDeviceGraphMemTrim" (int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetGraphMemAttribute "cudaDeviceGetGraphMemAttribute" (int device, cudaGraphMemAttributeType attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetGraphMemAttribute "cudaDeviceSetGraphMemAttribute" (int device, cudaGraphMemAttributeType attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphClone "cudaGraphClone" (cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeFindInClone "cudaGraphNodeFindInClone" (cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetType "cudaGraphNodeGetType" (cudaGraphNode_t node, cudaGraphNodeType* pType) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetNodes "cudaGraphGetNodes" (cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetRootNodes "cudaGraphGetRootNodes" (cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetEdges "cudaGraphGetEdges" (cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, size_t* numEdges) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetEdges_v2 "cudaGraphGetEdges_v2" (cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetDependencies "cudaGraphNodeGetDependencies" (cudaGraphNode_t node, cudaGraphNode_t* pDependencies, size_t* pNumDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetDependencies_v2 "cudaGraphNodeGetDependencies_v2" (cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetDependentNodes "cudaGraphNodeGetDependentNodes" (cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, size_t* pNumDependentNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetDependentNodes_v2 "cudaGraphNodeGetDependentNodes_v2" (cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddDependencies "cudaGraphAddDependencies" (cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddDependencies_v2 "cudaGraphAddDependencies_v2" (cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphRemoveDependencies "cudaGraphRemoveDependencies" (cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphRemoveDependencies_v2 "cudaGraphRemoveDependencies_v2" (cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphDestroyNode "cudaGraphDestroyNode" (cudaGraphNode_t node) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphInstantiate "cudaGraphInstantiate" (cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphInstantiateWithFlags "cudaGraphInstantiateWithFlags" (cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphInstantiateWithParams "cudaGraphInstantiateWithParams" (cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecGetFlags "cudaGraphExecGetFlags" (cudaGraphExec_t graphExec, unsigned long long* flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecKernelNodeSetParams "cudaGraphExecKernelNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecMemcpyNodeSetParams "cudaGraphExecMemcpyNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecMemcpyNodeSetParams1D "cudaGraphExecMemcpyNodeSetParams1D" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecMemsetNodeSetParams "cudaGraphExecMemsetNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecHostNodeSetParams "cudaGraphExecHostNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecChildGraphNodeSetParams "cudaGraphExecChildGraphNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecEventRecordNodeSetEvent "cudaGraphExecEventRecordNodeSetEvent" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecEventWaitNodeSetEvent "cudaGraphExecEventWaitNodeSetEvent" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecExternalSemaphoresSignalNodeSetParams "cudaGraphExecExternalSemaphoresSignalNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecExternalSemaphoresWaitNodeSetParams "cudaGraphExecExternalSemaphoresWaitNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeSetEnabled "cudaGraphNodeSetEnabled" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetEnabled "cudaGraphNodeGetEnabled" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecUpdate "cudaGraphExecUpdate" (cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphUpload "cudaGraphUpload" (cudaGraphExec_t graphExec, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphLaunch "cudaGraphLaunch" (cudaGraphExec_t graphExec, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecDestroy "cudaGraphExecDestroy" (cudaGraphExec_t graphExec) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphDestroy "cudaGraphDestroy" (cudaGraph_t graph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphDebugDotPrint "cudaGraphDebugDotPrint" (cudaGraph_t graph, const char* path, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaUserObjectCreate "cudaUserObjectCreate" (cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaUserObjectRetain "cudaUserObjectRetain" (cudaUserObject_t object, unsigned int count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaUserObjectRelease "cudaUserObjectRelease" (cudaUserObject_t object, unsigned int count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphRetainUserObject "cudaGraphRetainUserObject" (cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphReleaseUserObject "cudaGraphReleaseUserObject" (cudaGraph_t graph, cudaUserObject_t object, unsigned int count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddNode "cudaGraphAddNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddNode_v2 "cudaGraphAddNode_v2" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeSetParams "cudaGraphNodeSetParams" (cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecNodeSetParams "cudaGraphExecNodeSetParams" (cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphConditionalHandleCreate "cudaGraphConditionalHandleCreate" (cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDriverEntryPoint "cudaGetDriverEntryPoint" (const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDriverEntryPointByVersion "cudaGetDriverEntryPointByVersion" (const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryLoadData "cudaLibraryLoadData" (cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryLoadFromFile "cudaLibraryLoadFromFile" (cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryUnload "cudaLibraryUnload" (cudaLibrary_t library) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetKernel "cudaLibraryGetKernel" (cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetGlobal "cudaLibraryGetGlobal" (void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetManaged "cudaLibraryGetManaged" (void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetUnifiedFunction "cudaLibraryGetUnifiedFunction" (void** fptr, cudaLibrary_t library, const char* symbol) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetKernelCount "cudaLibraryGetKernelCount" (unsigned int* count, cudaLibrary_t lib) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryEnumerateKernels "cudaLibraryEnumerateKernels" (cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaKernelSetAttributeForDevice "cudaKernelSetAttributeForDevice" (cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetExportTable "cudaGetExportTable" (const void** ppExportTable, const cudaUUID_t* pExportTableId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetKernel "cudaGetKernel" (cudaKernel_t* kernelPtr, const void* entryFuncAddr) noexcept + +cdef extern from 'cuda_profiler_api.h' nogil: + cudaError_t _static_cudaProfilerStart "cudaProfilerStart" () noexcept + +cdef extern from 'cuda_profiler_api.h' nogil: + cudaError_t _static_cudaProfilerStop "cudaProfilerStop" () noexcept + + + +############################################################################### +# Wrapper functions +############################################################################### + +cdef cudaError_t _cudaDeviceReset() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceReset() + + +cdef cudaError_t _cudaDeviceSynchronize() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceSynchronize() + + +cdef cudaError_t _cudaDeviceSetLimit(cudaLimit limit, size_t value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceSetLimit(limit, value) + + +cdef cudaError_t _cudaDeviceGetLimit(size_t* pValue, cudaLimit limit) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetLimit(pValue, limit) + + +cdef cudaError_t _cudaDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetTexture1DLinearMaxWidth(maxWidthInElements, fmtDesc, device) + + +cdef cudaError_t _cudaDeviceGetCacheConfig(cudaFuncCache* pCacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetCacheConfig(pCacheConfig) + + +cdef cudaError_t _cudaDeviceGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetStreamPriorityRange(leastPriority, greatestPriority) + + +cdef cudaError_t _cudaDeviceSetCacheConfig(cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceSetCacheConfig(cacheConfig) + + +cdef cudaError_t _cudaDeviceGetByPCIBusId(int* device, const char* pciBusId) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetByPCIBusId(device, pciBusId) + + +cdef cudaError_t _cudaDeviceGetPCIBusId(char* pciBusId, int len, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetPCIBusId(pciBusId, len, device) + + +cdef cudaError_t _cudaIpcGetEventHandle(cudaIpcEventHandle_t* handle, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaIpcGetEventHandle(handle, event) + + +cdef cudaError_t _cudaIpcOpenEventHandle(cudaEvent_t* event, cudaIpcEventHandle_t handle) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaIpcOpenEventHandle(event, handle) + + +cdef cudaError_t _cudaIpcGetMemHandle(cudaIpcMemHandle_t* handle, void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaIpcGetMemHandle(handle, devPtr) + + +cdef cudaError_t _cudaIpcOpenMemHandle(void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaIpcOpenMemHandle(devPtr, handle, flags) + + +cdef cudaError_t _cudaIpcCloseMemHandle(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaIpcCloseMemHandle(devPtr) + + +cdef cudaError_t _cudaDeviceFlushGPUDirectRDMAWrites(cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceFlushGPUDirectRDMAWrites(target, scope) + + +cdef cudaError_t _cudaDeviceRegisterAsyncNotification(int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceRegisterAsyncNotification(device, callbackFunc, userData, callback) + + +cdef cudaError_t _cudaDeviceUnregisterAsyncNotification(int device, cudaAsyncCallbackHandle_t callback) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceUnregisterAsyncNotification(device, callback) + + +cdef cudaError_t _cudaDeviceGetSharedMemConfig(cudaSharedMemConfig* pConfig) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetSharedMemConfig(pConfig) + + +cdef cudaError_t _cudaDeviceSetSharedMemConfig(cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceSetSharedMemConfig(config) + + +cdef cudaError_t _cudaGetLastError() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetLastError() + + +cdef cudaError_t _cudaPeekAtLastError() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaPeekAtLastError() + + +cdef const char* _cudaGetErrorName(cudaError_t error) except?NULL nogil: + return _static_cudaGetErrorName(error) + + +cdef const char* _cudaGetErrorString(cudaError_t error) except?NULL nogil: + return _static_cudaGetErrorString(error) + + +cdef cudaError_t _cudaGetDeviceCount(int* count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetDeviceCount(count) + + +cdef cudaError_t _cudaGetDeviceProperties_v2(cudaDeviceProp* prop, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetDeviceProperties_v2(prop, device) + + +cdef cudaError_t _cudaDeviceGetAttribute(int* value, cudaDeviceAttr attr, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetAttribute(value, attr, device) + + +cdef cudaError_t _cudaDeviceGetDefaultMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetDefaultMemPool(memPool, device) + + +cdef cudaError_t _cudaDeviceSetMemPool(int device, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceSetMemPool(device, memPool) + + +cdef cudaError_t _cudaDeviceGetMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetMemPool(memPool, device) + + +cdef cudaError_t _cudaDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, int device, int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, device, flags) + + +cdef cudaError_t _cudaDeviceGetP2PAttribute(int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetP2PAttribute(value, attr, srcDevice, dstDevice) + + +cdef cudaError_t _cudaChooseDevice(int* device, const cudaDeviceProp* prop) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaChooseDevice(device, prop) + + +cdef cudaError_t _cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaInitDevice(device, deviceFlags, flags) + + +cdef cudaError_t _cudaSetDevice(int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaSetDevice(device) + + +cdef cudaError_t _cudaGetDevice(int* device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetDevice(device) + + +cdef cudaError_t _cudaSetDeviceFlags(unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaSetDeviceFlags(flags) + + +cdef cudaError_t _cudaGetDeviceFlags(unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetDeviceFlags(flags) + + +cdef cudaError_t _cudaStreamCreate(cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamCreate(pStream) + + +cdef cudaError_t _cudaStreamCreateWithFlags(cudaStream_t* pStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamCreateWithFlags(pStream, flags) + + +cdef cudaError_t _cudaStreamCreateWithPriority(cudaStream_t* pStream, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamCreateWithPriority(pStream, flags, priority) + + +cdef cudaError_t _cudaStreamGetPriority(cudaStream_t hStream, int* priority) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetPriority(hStream, priority) + + +cdef cudaError_t _cudaStreamGetFlags(cudaStream_t hStream, unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetFlags(hStream, flags) + + +cdef cudaError_t _cudaStreamGetId(cudaStream_t hStream, unsigned long long* streamId) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetId(hStream, streamId) + + +cdef cudaError_t _cudaStreamGetDevice(cudaStream_t hStream, int* device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetDevice(hStream, device) + + +cdef cudaError_t _cudaCtxResetPersistingL2Cache() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaCtxResetPersistingL2Cache() + + +cdef cudaError_t _cudaStreamCopyAttributes(cudaStream_t dst, cudaStream_t src) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamCopyAttributes(dst, src) + + +cdef cudaError_t _cudaStreamGetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, cudaStreamAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetAttribute(hStream, attr, value_out) + + +cdef cudaError_t _cudaStreamSetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, const cudaStreamAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamSetAttribute(hStream, attr, value) + + +cdef cudaError_t _cudaStreamDestroy(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamDestroy(stream) + + +cdef cudaError_t _cudaStreamWaitEvent(cudaStream_t stream, cudaEvent_t event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamWaitEvent(stream, event, flags) + + +cdef cudaError_t _cudaStreamAddCallback(cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamAddCallback(stream, callback, userData, flags) + + +cdef cudaError_t _cudaStreamSynchronize(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamSynchronize(stream) + + +cdef cudaError_t _cudaStreamQuery(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamQuery(stream) + + +cdef cudaError_t _cudaStreamAttachMemAsync(cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamAttachMemAsync(stream, devPtr, length, flags) + + +cdef cudaError_t _cudaStreamBeginCapture(cudaStream_t stream, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamBeginCapture(stream, mode) + + +cdef cudaError_t _cudaStreamBeginCaptureToGraph(cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamBeginCaptureToGraph(stream, graph, dependencies, dependencyData, numDependencies, mode) + + +cdef cudaError_t _cudaThreadExchangeStreamCaptureMode(cudaStreamCaptureMode* mode) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaThreadExchangeStreamCaptureMode(mode) + + +cdef cudaError_t _cudaStreamEndCapture(cudaStream_t stream, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamEndCapture(stream, pGraph) + + +cdef cudaError_t _cudaStreamIsCapturing(cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamIsCapturing(stream, pCaptureStatus) + + +cdef cudaError_t _cudaStreamGetCaptureInfo_v2(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetCaptureInfo_v2(stream, captureStatus_out, id_out, graph_out, dependencies_out, numDependencies_out) + + +cdef cudaError_t _cudaStreamGetCaptureInfo_v3(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetCaptureInfo_v3(stream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) + + +cdef cudaError_t _cudaStreamUpdateCaptureDependencies(cudaStream_t stream, cudaGraphNode_t* dependencies, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamUpdateCaptureDependencies(stream, dependencies, numDependencies, flags) + + +cdef cudaError_t _cudaStreamUpdateCaptureDependencies_v2(cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamUpdateCaptureDependencies_v2(stream, dependencies, dependencyData, numDependencies, flags) + + +cdef cudaError_t _cudaEventCreate(cudaEvent_t* event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventCreate(event) + + +cdef cudaError_t _cudaEventCreateWithFlags(cudaEvent_t* event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventCreateWithFlags(event, flags) + + +cdef cudaError_t _cudaEventRecord(cudaEvent_t event, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventRecord(event, stream) + + +cdef cudaError_t _cudaEventRecordWithFlags(cudaEvent_t event, cudaStream_t stream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventRecordWithFlags(event, stream, flags) + + +cdef cudaError_t _cudaEventQuery(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventQuery(event) + + +cdef cudaError_t _cudaEventSynchronize(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventSynchronize(event) + + +cdef cudaError_t _cudaEventDestroy(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventDestroy(event) + + +cdef cudaError_t _cudaEventElapsedTime(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventElapsedTime(ms, start, end) + + +cdef cudaError_t _cudaEventElapsedTime_v2(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventElapsedTime_v2(ms, start, end) + + +cdef cudaError_t _cudaImportExternalMemory(cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaImportExternalMemory(extMem_out, memHandleDesc) + + +cdef cudaError_t _cudaExternalMemoryGetMappedBuffer(void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaExternalMemoryGetMappedBuffer(devPtr, extMem, bufferDesc) + + +cdef cudaError_t _cudaExternalMemoryGetMappedMipmappedArray(cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaExternalMemoryGetMappedMipmappedArray(mipmap, extMem, mipmapDesc) + + +cdef cudaError_t _cudaDestroyExternalMemory(cudaExternalMemory_t extMem) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDestroyExternalMemory(extMem) + + +cdef cudaError_t _cudaImportExternalSemaphore(cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaImportExternalSemaphore(extSem_out, semHandleDesc) + + +cdef cudaError_t _cudaSignalExternalSemaphoresAsync_v2(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaSignalExternalSemaphoresAsync_v2(extSemArray, paramsArray, numExtSems, stream) + + +cdef cudaError_t _cudaWaitExternalSemaphoresAsync_v2(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaWaitExternalSemaphoresAsync_v2(extSemArray, paramsArray, numExtSems, stream) + + +cdef cudaError_t _cudaDestroyExternalSemaphore(cudaExternalSemaphore_t extSem) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDestroyExternalSemaphore(extSem) + + +cdef cudaError_t _cudaFuncSetCacheConfig(const void* func, cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFuncSetCacheConfig(func, cacheConfig) + + +cdef cudaError_t _cudaFuncGetAttributes(cudaFuncAttributes* attr, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFuncGetAttributes(attr, func) + + +cdef cudaError_t _cudaFuncSetAttribute(const void* func, cudaFuncAttribute attr, int value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFuncSetAttribute(func, attr, value) + + +cdef cudaError_t _cudaFuncGetName(const char** name, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFuncGetName(name, func) + + +cdef cudaError_t _cudaFuncGetParamInfo(const void* func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFuncGetParamInfo(func, paramIndex, paramOffset, paramSize) + + +cdef cudaError_t _cudaLaunchHostFunc(cudaStream_t stream, cudaHostFn_t fn, void* userData) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLaunchHostFunc(stream, fn, userData) + + +cdef cudaError_t _cudaFuncSetSharedMemConfig(const void* func, cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFuncSetSharedMemConfig(func, config) + + +cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaOccupancyMaxActiveBlocksPerMultiprocessor(numBlocks, func, blockSize, dynamicSMemSize) + + +cdef cudaError_t _cudaOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaOccupancyAvailableDynamicSMemPerBlock(dynamicSmemSize, func, numBlocks, blockSize) + + +cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(numBlocks, func, blockSize, dynamicSMemSize, flags) + + +cdef cudaError_t _cudaMallocManaged(void** devPtr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocManaged(devPtr, size, flags) + + +cdef cudaError_t _cudaMalloc(void** devPtr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMalloc(devPtr, size) + + +cdef cudaError_t _cudaMallocHost(void** ptr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocHost(ptr, size) + + +cdef cudaError_t _cudaMallocPitch(void** devPtr, size_t* pitch, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocPitch(devPtr, pitch, width, height) + + +cdef cudaError_t _cudaMallocArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocArray(array, desc, width, height, flags) + + +cdef cudaError_t _cudaFree(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFree(devPtr) + + +cdef cudaError_t _cudaFreeHost(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFreeHost(ptr) + + +cdef cudaError_t _cudaFreeArray(cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFreeArray(array) + + +cdef cudaError_t _cudaFreeMipmappedArray(cudaMipmappedArray_t mipmappedArray) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFreeMipmappedArray(mipmappedArray) + + +cdef cudaError_t _cudaHostAlloc(void** pHost, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaHostAlloc(pHost, size, flags) + + +cdef cudaError_t _cudaHostRegister(void* ptr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaHostRegister(ptr, size, flags) + + +cdef cudaError_t _cudaHostUnregister(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaHostUnregister(ptr) + + +cdef cudaError_t _cudaHostGetDevicePointer(void** pDevice, void* pHost, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaHostGetDevicePointer(pDevice, pHost, flags) + + +cdef cudaError_t _cudaHostGetFlags(unsigned int* pFlags, void* pHost) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaHostGetFlags(pFlags, pHost) + + +cdef cudaError_t _cudaMalloc3D(cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMalloc3D(pitchedDevPtr, extent) + + +cdef cudaError_t _cudaMalloc3DArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMalloc3DArray(array, desc, extent, flags) + + +cdef cudaError_t _cudaMallocMipmappedArray(cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocMipmappedArray(mipmappedArray, desc, extent, numLevels, flags) + + +cdef cudaError_t _cudaGetMipmappedArrayLevel(cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetMipmappedArrayLevel(levelArray, mipmappedArray, level) + + +cdef cudaError_t _cudaMemcpy3D(const cudaMemcpy3DParms* p) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy3D(p) + + +cdef cudaError_t _cudaMemcpy3DPeer(const cudaMemcpy3DPeerParms* p) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy3DPeer(p) + + +cdef cudaError_t _cudaMemcpy3DAsync(const cudaMemcpy3DParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy3DAsync(p, stream) + + +cdef cudaError_t _cudaMemcpy3DPeerAsync(const cudaMemcpy3DPeerParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy3DPeerAsync(p, stream) + + +cdef cudaError_t _cudaMemGetInfo(size_t* free, size_t* total) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemGetInfo(free, total) + + +cdef cudaError_t _cudaArrayGetInfo(cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaArrayGetInfo(desc, extent, flags, array) + + +cdef cudaError_t _cudaArrayGetPlane(cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaArrayGetPlane(pPlaneArray, hArray, planeIdx) + + +cdef cudaError_t _cudaArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaArrayGetMemoryRequirements(memoryRequirements, array, device) + + +cdef cudaError_t _cudaMipmappedArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMipmappedArrayGetMemoryRequirements(memoryRequirements, mipmap, device) + + +cdef cudaError_t _cudaArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaArrayGetSparseProperties(sparseProperties, array) + + +cdef cudaError_t _cudaMipmappedArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMipmappedArrayGetSparseProperties(sparseProperties, mipmap) + + +cdef cudaError_t _cudaMemcpy(void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy(dst, src, count, kind) + + +cdef cudaError_t _cudaMemcpyPeer(void* dst, int dstDevice, const void* src, int srcDevice, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyPeer(dst, dstDevice, src, srcDevice, count) + + +cdef cudaError_t _cudaMemcpy2D(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2D(dst, dpitch, src, spitch, width, height, kind) + + +cdef cudaError_t _cudaMemcpy2DToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2DToArray(dst, wOffset, hOffset, src, spitch, width, height, kind) + + +cdef cudaError_t _cudaMemcpy2DFromArray(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2DFromArray(dst, dpitch, src, wOffset, hOffset, width, height, kind) + + +cdef cudaError_t _cudaMemcpy2DArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2DArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, width, height, kind) + + +cdef cudaError_t _cudaMemcpyAsync(void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyAsync(dst, src, count, kind, stream) + + +cdef cudaError_t _cudaMemcpyPeerAsync(void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyPeerAsync(dst, dstDevice, src, srcDevice, count, stream) + + +cdef cudaError_t _cudaMemcpyBatchAsync(const void** dsts, void** srcs, size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, size_t* failIdx, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyBatchAsync(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, failIdx, stream) + + +cdef cudaError_t _cudaMemcpy3DBatchAsync(size_t numOps, cudaMemcpy3DBatchOp* opList, size_t* failIdx, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy3DBatchAsync(numOps, opList, failIdx, flags, stream) + + +cdef cudaError_t _cudaMemcpy2DAsync(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2DAsync(dst, dpitch, src, spitch, width, height, kind, stream) + + +cdef cudaError_t _cudaMemcpy2DToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2DToArrayAsync(dst, wOffset, hOffset, src, spitch, width, height, kind, stream) + + +cdef cudaError_t _cudaMemcpy2DFromArrayAsync(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2DFromArrayAsync(dst, dpitch, src, wOffset, hOffset, width, height, kind, stream) + + +cdef cudaError_t _cudaMemset(void* devPtr, int value, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemset(devPtr, value, count) + + +cdef cudaError_t _cudaMemset2D(void* devPtr, size_t pitch, int value, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemset2D(devPtr, pitch, value, width, height) + + +cdef cudaError_t _cudaMemset3D(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemset3D(pitchedDevPtr, value, extent) + + +cdef cudaError_t _cudaMemsetAsync(void* devPtr, int value, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemsetAsync(devPtr, value, count, stream) + + +cdef cudaError_t _cudaMemset2DAsync(void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemset2DAsync(devPtr, pitch, value, width, height, stream) + + +cdef cudaError_t _cudaMemset3DAsync(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemset3DAsync(pitchedDevPtr, value, extent, stream) + + +cdef cudaError_t _cudaMemPrefetchAsync(const void* devPtr, size_t count, int dstDevice, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPrefetchAsync(devPtr, count, dstDevice, stream) + + +cdef cudaError_t _cudaMemPrefetchAsync_v2(const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPrefetchAsync_v2(devPtr, count, location, flags, stream) + + +cdef cudaError_t _cudaMemAdvise(const void* devPtr, size_t count, cudaMemoryAdvise advice, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemAdvise(devPtr, count, advice, device) + + +cdef cudaError_t _cudaMemAdvise_v2(const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemAdvise_v2(devPtr, count, advice, location) + + +cdef cudaError_t _cudaMemRangeGetAttribute(void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemRangeGetAttribute(data, dataSize, attribute, devPtr, count) + + +cdef cudaError_t _cudaMemRangeGetAttributes(void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemRangeGetAttributes(data, dataSizes, attributes, numAttributes, devPtr, count) + + +cdef cudaError_t _cudaMemcpyToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyToArray(dst, wOffset, hOffset, src, count, kind) + + +cdef cudaError_t _cudaMemcpyFromArray(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyFromArray(dst, src, wOffset, hOffset, count, kind) + + +cdef cudaError_t _cudaMemcpyArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, count, kind) + + +cdef cudaError_t _cudaMemcpyToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyToArrayAsync(dst, wOffset, hOffset, src, count, kind, stream) + + +cdef cudaError_t _cudaMemcpyFromArrayAsync(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyFromArrayAsync(dst, src, wOffset, hOffset, count, kind, stream) + + +cdef cudaError_t _cudaMallocAsync(void** devPtr, size_t size, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocAsync(devPtr, size, hStream) + + +cdef cudaError_t _cudaFreeAsync(void* devPtr, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFreeAsync(devPtr, hStream) + + +cdef cudaError_t _cudaMemPoolTrimTo(cudaMemPool_t memPool, size_t minBytesToKeep) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolTrimTo(memPool, minBytesToKeep) + + +cdef cudaError_t _cudaMemPoolSetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolSetAttribute(memPool, attr, value) + + +cdef cudaError_t _cudaMemPoolGetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolGetAttribute(memPool, attr, value) + + +cdef cudaError_t _cudaMemPoolSetAccess(cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolSetAccess(memPool, descList, count) + + +cdef cudaError_t _cudaMemPoolGetAccess(cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolGetAccess(flags, memPool, location) + + +cdef cudaError_t _cudaMemPoolCreate(cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolCreate(memPool, poolProps) + + +cdef cudaError_t _cudaMemPoolDestroy(cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolDestroy(memPool) + + +cdef cudaError_t _cudaMallocFromPoolAsync(void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocFromPoolAsync(ptr, size, memPool, stream) + + +cdef cudaError_t _cudaMemPoolExportToShareableHandle(void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolExportToShareableHandle(shareableHandle, memPool, handleType, flags) + + +cdef cudaError_t _cudaMemPoolImportFromShareableHandle(cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolImportFromShareableHandle(memPool, shareableHandle, handleType, flags) + + +cdef cudaError_t _cudaMemPoolExportPointer(cudaMemPoolPtrExportData* exportData, void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolExportPointer(exportData, ptr) + + +cdef cudaError_t _cudaMemPoolImportPointer(void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolImportPointer(ptr, memPool, exportData) + + +cdef cudaError_t _cudaPointerGetAttributes(cudaPointerAttributes* attributes, const void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaPointerGetAttributes(attributes, ptr) + + +cdef cudaError_t _cudaDeviceCanAccessPeer(int* canAccessPeer, int device, int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceCanAccessPeer(canAccessPeer, device, peerDevice) + + +cdef cudaError_t _cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceEnablePeerAccess(peerDevice, flags) + + +cdef cudaError_t _cudaDeviceDisablePeerAccess(int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceDisablePeerAccess(peerDevice) + + +cdef cudaError_t _cudaGraphicsUnregisterResource(cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsUnregisterResource(resource) + + +cdef cudaError_t _cudaGraphicsResourceSetMapFlags(cudaGraphicsResource_t resource, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsResourceSetMapFlags(resource, flags) + + +cdef cudaError_t _cudaGraphicsMapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsMapResources(count, resources, stream) + + +cdef cudaError_t _cudaGraphicsUnmapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsUnmapResources(count, resources, stream) + + +cdef cudaError_t _cudaGraphicsResourceGetMappedPointer(void** devPtr, size_t* size, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsResourceGetMappedPointer(devPtr, size, resource) + + +cdef cudaError_t _cudaGraphicsSubResourceGetMappedArray(cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsSubResourceGetMappedArray(array, resource, arrayIndex, mipLevel) + + +cdef cudaError_t _cudaGraphicsResourceGetMappedMipmappedArray(cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsResourceGetMappedMipmappedArray(mipmappedArray, resource) + + +cdef cudaError_t _cudaGetChannelDesc(cudaChannelFormatDesc* desc, cudaArray_const_t array) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetChannelDesc(desc, array) + + +cdef cudaChannelFormatDesc _cudaCreateChannelDesc(int x, int y, int z, int w, cudaChannelFormatKind f) except* nogil: + return _static_cudaCreateChannelDesc(x, y, z, w, f) + + +cdef cudaError_t _cudaCreateTextureObject(cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaCreateTextureObject(pTexObject, pResDesc, pTexDesc, pResViewDesc) + + +cdef cudaError_t _cudaDestroyTextureObject(cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDestroyTextureObject(texObject) + + +cdef cudaError_t _cudaGetTextureObjectResourceDesc(cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetTextureObjectResourceDesc(pResDesc, texObject) + + +cdef cudaError_t _cudaGetTextureObjectTextureDesc(cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetTextureObjectTextureDesc(pTexDesc, texObject) + + +cdef cudaError_t _cudaGetTextureObjectResourceViewDesc(cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetTextureObjectResourceViewDesc(pResViewDesc, texObject) + + +cdef cudaError_t _cudaCreateSurfaceObject(cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaCreateSurfaceObject(pSurfObject, pResDesc) + + +cdef cudaError_t _cudaDestroySurfaceObject(cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDestroySurfaceObject(surfObject) + + +cdef cudaError_t _cudaGetSurfaceObjectResourceDesc(cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetSurfaceObjectResourceDesc(pResDesc, surfObject) + + +cdef cudaError_t _cudaDriverGetVersion(int* driverVersion) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDriverGetVersion(driverVersion) + + +cdef cudaError_t _cudaRuntimeGetVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaRuntimeGetVersion(runtimeVersion) + + +cdef cudaError_t _cudaGraphCreate(cudaGraph_t* pGraph, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphCreate(pGraph, flags) + + +cdef cudaError_t _cudaGraphAddKernelNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddKernelNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) + + +cdef cudaError_t _cudaGraphKernelNodeGetParams(cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphKernelNodeGetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphKernelNodeSetParams(cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphKernelNodeSetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphKernelNodeCopyAttributes(cudaGraphNode_t hSrc, cudaGraphNode_t hDst) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphKernelNodeCopyAttributes(hSrc, hDst) + + +cdef cudaError_t _cudaGraphKernelNodeGetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, cudaKernelNodeAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphKernelNodeGetAttribute(hNode, attr, value_out) + + +cdef cudaError_t _cudaGraphKernelNodeSetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, const cudaKernelNodeAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphKernelNodeSetAttribute(hNode, attr, value) + + +cdef cudaError_t _cudaGraphAddMemcpyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddMemcpyNode(pGraphNode, graph, pDependencies, numDependencies, pCopyParams) + + +cdef cudaError_t _cudaGraphAddMemcpyNode1D(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddMemcpyNode1D(pGraphNode, graph, pDependencies, numDependencies, dst, src, count, kind) + + +cdef cudaError_t _cudaGraphMemcpyNodeGetParams(cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemcpyNodeGetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphMemcpyNodeSetParams(cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemcpyNodeSetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphMemcpyNodeSetParams1D(cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemcpyNodeSetParams1D(node, dst, src, count, kind) + + +cdef cudaError_t _cudaGraphAddMemsetNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddMemsetNode(pGraphNode, graph, pDependencies, numDependencies, pMemsetParams) + + +cdef cudaError_t _cudaGraphMemsetNodeGetParams(cudaGraphNode_t node, cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemsetNodeGetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphMemsetNodeSetParams(cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemsetNodeSetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphAddHostNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddHostNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) + + +cdef cudaError_t _cudaGraphHostNodeGetParams(cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphHostNodeGetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphHostNodeSetParams(cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphHostNodeSetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphAddChildGraphNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddChildGraphNode(pGraphNode, graph, pDependencies, numDependencies, childGraph) + + +cdef cudaError_t _cudaGraphChildGraphNodeGetGraph(cudaGraphNode_t node, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphChildGraphNodeGetGraph(node, pGraph) + + +cdef cudaError_t _cudaGraphAddEmptyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddEmptyNode(pGraphNode, graph, pDependencies, numDependencies) + + +cdef cudaError_t _cudaGraphAddEventRecordNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddEventRecordNode(pGraphNode, graph, pDependencies, numDependencies, event) + + +cdef cudaError_t _cudaGraphEventRecordNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphEventRecordNodeGetEvent(node, event_out) + + +cdef cudaError_t _cudaGraphEventRecordNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphEventRecordNodeSetEvent(node, event) + + +cdef cudaError_t _cudaGraphAddEventWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddEventWaitNode(pGraphNode, graph, pDependencies, numDependencies, event) + + +cdef cudaError_t _cudaGraphEventWaitNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphEventWaitNodeGetEvent(node, event_out) + + +cdef cudaError_t _cudaGraphEventWaitNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphEventWaitNodeSetEvent(node, event) + + +cdef cudaError_t _cudaGraphAddExternalSemaphoresSignalNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddExternalSemaphoresSignalNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + + +cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExternalSemaphoresSignalNodeGetParams(hNode, params_out) + + +cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams) + + +cdef cudaError_t _cudaGraphAddExternalSemaphoresWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddExternalSemaphoresWaitNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + + +cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExternalSemaphoresWaitNodeGetParams(hNode, params_out) + + +cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams) + + +cdef cudaError_t _cudaGraphAddMemAllocNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddMemAllocNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + + +cdef cudaError_t _cudaGraphMemAllocNodeGetParams(cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemAllocNodeGetParams(node, params_out) + + +cdef cudaError_t _cudaGraphAddMemFreeNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddMemFreeNode(pGraphNode, graph, pDependencies, numDependencies, dptr) + + +cdef cudaError_t _cudaGraphMemFreeNodeGetParams(cudaGraphNode_t node, void* dptr_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemFreeNodeGetParams(node, dptr_out) + + +cdef cudaError_t _cudaDeviceGraphMemTrim(int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGraphMemTrim(device) + + +cdef cudaError_t _cudaDeviceGetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetGraphMemAttribute(device, attr, value) + + +cdef cudaError_t _cudaDeviceSetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceSetGraphMemAttribute(device, attr, value) + + +cdef cudaError_t _cudaGraphClone(cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphClone(pGraphClone, originalGraph) + + +cdef cudaError_t _cudaGraphNodeFindInClone(cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeFindInClone(pNode, originalNode, clonedGraph) + + +cdef cudaError_t _cudaGraphNodeGetType(cudaGraphNode_t node, cudaGraphNodeType* pType) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetType(node, pType) + + +cdef cudaError_t _cudaGraphGetNodes(cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphGetNodes(graph, nodes, numNodes) + + +cdef cudaError_t _cudaGraphGetRootNodes(cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphGetRootNodes(graph, pRootNodes, pNumRootNodes) + + +cdef cudaError_t _cudaGraphGetEdges(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphGetEdges(graph, from_, to, numEdges) + + +cdef cudaError_t _cudaGraphGetEdges_v2(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphGetEdges_v2(graph, from_, to, edgeData, numEdges) + + +cdef cudaError_t _cudaGraphNodeGetDependencies(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetDependencies(node, pDependencies, pNumDependencies) + + +cdef cudaError_t _cudaGraphNodeGetDependencies_v2(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetDependencies_v2(node, pDependencies, edgeData, pNumDependencies) + + +cdef cudaError_t _cudaGraphNodeGetDependentNodes(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetDependentNodes(node, pDependentNodes, pNumDependentNodes) + + +cdef cudaError_t _cudaGraphNodeGetDependentNodes_v2(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetDependentNodes_v2(node, pDependentNodes, edgeData, pNumDependentNodes) + + +cdef cudaError_t _cudaGraphAddDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddDependencies(graph, from_, to, numDependencies) + + +cdef cudaError_t _cudaGraphAddDependencies_v2(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddDependencies_v2(graph, from_, to, edgeData, numDependencies) + + +cdef cudaError_t _cudaGraphRemoveDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphRemoveDependencies(graph, from_, to, numDependencies) + + +cdef cudaError_t _cudaGraphRemoveDependencies_v2(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphRemoveDependencies_v2(graph, from_, to, edgeData, numDependencies) + + +cdef cudaError_t _cudaGraphDestroyNode(cudaGraphNode_t node) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphDestroyNode(node) + + +cdef cudaError_t _cudaGraphInstantiate(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphInstantiate(pGraphExec, graph, flags) + + +cdef cudaError_t _cudaGraphInstantiateWithFlags(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphInstantiateWithFlags(pGraphExec, graph, flags) + + +cdef cudaError_t _cudaGraphInstantiateWithParams(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphInstantiateWithParams(pGraphExec, graph, instantiateParams) + + +cdef cudaError_t _cudaGraphExecGetFlags(cudaGraphExec_t graphExec, unsigned long long* flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecGetFlags(graphExec, flags) + + +cdef cudaError_t _cudaGraphExecKernelNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams) + + +cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams) + + +cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams1D(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, count, kind) + + +cdef cudaError_t _cudaGraphExecMemsetNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams) + + +cdef cudaError_t _cudaGraphExecHostNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams) + + +cdef cudaError_t _cudaGraphExecChildGraphNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph) + + +cdef cudaError_t _cudaGraphExecEventRecordNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event) + + +cdef cudaError_t _cudaGraphExecEventWaitNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event) + + +cdef cudaError_t _cudaGraphExecExternalSemaphoresSignalNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams) + + +cdef cudaError_t _cudaGraphExecExternalSemaphoresWaitNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams) + + +cdef cudaError_t _cudaGraphNodeSetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeSetEnabled(hGraphExec, hNode, isEnabled) + + +cdef cudaError_t _cudaGraphNodeGetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetEnabled(hGraphExec, hNode, isEnabled) + + +cdef cudaError_t _cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecUpdate(hGraphExec, hGraph, resultInfo) + + +cdef cudaError_t _cudaGraphUpload(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphUpload(graphExec, stream) + + +cdef cudaError_t _cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphLaunch(graphExec, stream) + + +cdef cudaError_t _cudaGraphExecDestroy(cudaGraphExec_t graphExec) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecDestroy(graphExec) + + +cdef cudaError_t _cudaGraphDestroy(cudaGraph_t graph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphDestroy(graph) + + +cdef cudaError_t _cudaGraphDebugDotPrint(cudaGraph_t graph, const char* path, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphDebugDotPrint(graph, path, flags) + + +cdef cudaError_t _cudaUserObjectCreate(cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaUserObjectCreate(object_out, ptr, destroy, initialRefcount, flags) + + +cdef cudaError_t _cudaUserObjectRetain(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaUserObjectRetain(object, count) + + +cdef cudaError_t _cudaUserObjectRelease(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaUserObjectRelease(object, count) + + +cdef cudaError_t _cudaGraphRetainUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphRetainUserObject(graph, object, count, flags) + + +cdef cudaError_t _cudaGraphReleaseUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphReleaseUserObject(graph, object, count) + + +cdef cudaError_t _cudaGraphAddNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + + +cdef cudaError_t _cudaGraphAddNode_v2(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddNode_v2(pGraphNode, graph, pDependencies, dependencyData, numDependencies, nodeParams) + + +cdef cudaError_t _cudaGraphNodeSetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeSetParams(node, nodeParams) + + +cdef cudaError_t _cudaGraphExecNodeSetParams(cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecNodeSetParams(graphExec, node, nodeParams) + + +cdef cudaError_t _cudaGraphConditionalHandleCreate(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphConditionalHandleCreate(pHandle_out, graph, defaultLaunchValue, flags) + + +cdef cudaError_t _cudaGetDriverEntryPoint(const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetDriverEntryPoint(symbol, funcPtr, flags, driverStatus) + + +cdef cudaError_t _cudaGetDriverEntryPointByVersion(const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetDriverEntryPointByVersion(symbol, funcPtr, cudaVersion, flags, driverStatus) + + +cdef cudaError_t _cudaLibraryLoadData(cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryLoadData(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) + + +cdef cudaError_t _cudaLibraryLoadFromFile(cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryLoadFromFile(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) + + +cdef cudaError_t _cudaLibraryUnload(cudaLibrary_t library) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryUnload(library) + + +cdef cudaError_t _cudaLibraryGetKernel(cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryGetKernel(pKernel, library, name) + + +cdef cudaError_t _cudaLibraryGetGlobal(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryGetGlobal(dptr, bytes, library, name) + + +cdef cudaError_t _cudaLibraryGetManaged(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryGetManaged(dptr, bytes, library, name) + + +cdef cudaError_t _cudaLibraryGetUnifiedFunction(void** fptr, cudaLibrary_t library, const char* symbol) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryGetUnifiedFunction(fptr, library, symbol) + + +cdef cudaError_t _cudaLibraryGetKernelCount(unsigned int* count, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryGetKernelCount(count, lib) + + +cdef cudaError_t _cudaLibraryEnumerateKernels(cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryEnumerateKernels(kernels, numKernels, lib) + + +cdef cudaError_t _cudaKernelSetAttributeForDevice(cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaKernelSetAttributeForDevice(kernel, attr, value, device) + + +cdef cudaError_t _cudaGetExportTable(const void** ppExportTable, const cudaUUID_t* pExportTableId) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetExportTable(ppExportTable, pExportTableId) + + +cdef cudaError_t _cudaGetKernel(cudaKernel_t* kernelPtr, const void* entryFuncAddr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetKernel(kernelPtr, entryFuncAddr) + + +cdef cudaError_t _cudaProfilerStart() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaProfilerStart() + + +cdef cudaError_t _cudaProfilerStop() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaProfilerStop() diff --git a/cuda_bindings_12/cuda/bindings/_internal/runtime_ptds_windows.pyx b/cuda_bindings_12/cuda/bindings/_internal/runtime_ptds_windows.pyx new file mode 100644 index 000000000000..ed806aabf2b5 --- /dev/null +++ b/cuda_bindings_12/cuda/bindings/_internal/runtime_ptds_windows.pyx @@ -0,0 +1,2060 @@ +# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# +# This code was automatically generated with version 12.9.0. Do not modify it directly. + +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=4ce144a754554f6d4d5ba3aab7c8b608382d026a5b08d9078577ae2dc3c866bf +cdef extern from "": + """ + #define CUDA_API_PER_THREAD_DEFAULT_STREAM + """ + + +############################################################################### +# C function declarations for static cudart with per-thread default stream +# (CUDA_API_PER_THREAD_DEFAULT_STREAM causes cudaXxx to resolve to the _ptsz +# per-thread-stream symbol variants) +############################################################################### + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceReset "cudaDeviceReset" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSynchronize "cudaDeviceSynchronize" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetLimit "cudaDeviceSetLimit" (cudaLimit limit, size_t value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetLimit "cudaDeviceGetLimit" (size_t* pValue, cudaLimit limit) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetTexture1DLinearMaxWidth "cudaDeviceGetTexture1DLinearMaxWidth" (size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetCacheConfig "cudaDeviceGetCacheConfig" (cudaFuncCache* pCacheConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetStreamPriorityRange "cudaDeviceGetStreamPriorityRange" (int* leastPriority, int* greatestPriority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetCacheConfig "cudaDeviceSetCacheConfig" (cudaFuncCache cacheConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetByPCIBusId "cudaDeviceGetByPCIBusId" (int* device, const char* pciBusId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetPCIBusId "cudaDeviceGetPCIBusId" (char* pciBusId, int len, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcGetEventHandle "cudaIpcGetEventHandle" (cudaIpcEventHandle_t* handle, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcOpenEventHandle "cudaIpcOpenEventHandle" (cudaEvent_t* event, cudaIpcEventHandle_t handle) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcGetMemHandle "cudaIpcGetMemHandle" (cudaIpcMemHandle_t* handle, void* devPtr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcOpenMemHandle "cudaIpcOpenMemHandle" (void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcCloseMemHandle "cudaIpcCloseMemHandle" (void* devPtr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceFlushGPUDirectRDMAWrites "cudaDeviceFlushGPUDirectRDMAWrites" (cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceRegisterAsyncNotification "cudaDeviceRegisterAsyncNotification" (int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceUnregisterAsyncNotification "cudaDeviceUnregisterAsyncNotification" (int device, cudaAsyncCallbackHandle_t callback) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetSharedMemConfig "cudaDeviceGetSharedMemConfig" (cudaSharedMemConfig* pConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetSharedMemConfig "cudaDeviceSetSharedMemConfig" (cudaSharedMemConfig config) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetLastError "cudaGetLastError" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaPeekAtLastError "cudaPeekAtLastError" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + const char* _static_cudaGetErrorName "cudaGetErrorName" (cudaError_t error) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + const char* _static_cudaGetErrorString "cudaGetErrorString" (cudaError_t error) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDeviceCount "cudaGetDeviceCount" (int* count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDeviceProperties_v2 "cudaGetDeviceProperties_v2" (cudaDeviceProp* prop, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetAttribute "cudaDeviceGetAttribute" (int* value, cudaDeviceAttr attr, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetDefaultMemPool "cudaDeviceGetDefaultMemPool" (cudaMemPool_t* memPool, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetMemPool "cudaDeviceSetMemPool" (int device, cudaMemPool_t memPool) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetMemPool "cudaDeviceGetMemPool" (cudaMemPool_t* memPool, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetNvSciSyncAttributes "cudaDeviceGetNvSciSyncAttributes" (void* nvSciSyncAttrList, int device, int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetP2PAttribute "cudaDeviceGetP2PAttribute" (int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaChooseDevice "cudaChooseDevice" (int* device, const cudaDeviceProp* prop) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaInitDevice "cudaInitDevice" (int device, unsigned int deviceFlags, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaSetDevice "cudaSetDevice" (int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDevice "cudaGetDevice" (int* device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaSetDeviceFlags "cudaSetDeviceFlags" (unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDeviceFlags "cudaGetDeviceFlags" (unsigned int* flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCreate "cudaStreamCreate" (cudaStream_t* pStream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCreateWithFlags "cudaStreamCreateWithFlags" (cudaStream_t* pStream, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCreateWithPriority "cudaStreamCreateWithPriority" (cudaStream_t* pStream, unsigned int flags, int priority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetPriority "cudaStreamGetPriority" (cudaStream_t hStream, int* priority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetFlags "cudaStreamGetFlags" (cudaStream_t hStream, unsigned int* flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetId "cudaStreamGetId" (cudaStream_t hStream, unsigned long long* streamId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetDevice "cudaStreamGetDevice" (cudaStream_t hStream, int* device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaCtxResetPersistingL2Cache "cudaCtxResetPersistingL2Cache" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCopyAttributes "cudaStreamCopyAttributes" (cudaStream_t dst, cudaStream_t src) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetAttribute "cudaStreamGetAttribute" (cudaStream_t hStream, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamSetAttribute "cudaStreamSetAttribute" (cudaStream_t hStream, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamDestroy "cudaStreamDestroy" (cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamWaitEvent "cudaStreamWaitEvent" (cudaStream_t stream, cudaEvent_t event, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamAddCallback "cudaStreamAddCallback" (cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamSynchronize "cudaStreamSynchronize" (cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamQuery "cudaStreamQuery" (cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamAttachMemAsync "cudaStreamAttachMemAsync" (cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamBeginCapture "cudaStreamBeginCapture" (cudaStream_t stream, cudaStreamCaptureMode mode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamBeginCaptureToGraph "cudaStreamBeginCaptureToGraph" (cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaThreadExchangeStreamCaptureMode "cudaThreadExchangeStreamCaptureMode" (cudaStreamCaptureMode* mode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamEndCapture "cudaStreamEndCapture" (cudaStream_t stream, cudaGraph_t* pGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamIsCapturing "cudaStreamIsCapturing" (cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetCaptureInfo_v2 "cudaStreamGetCaptureInfo_v2" (cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, size_t* numDependencies_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetCaptureInfo_v3 "cudaStreamGetCaptureInfo_v3" (cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamUpdateCaptureDependencies "cudaStreamUpdateCaptureDependencies" (cudaStream_t stream, cudaGraphNode_t* dependencies, size_t numDependencies, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamUpdateCaptureDependencies_v2 "cudaStreamUpdateCaptureDependencies_v2" (cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventCreate "cudaEventCreate" (cudaEvent_t* event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventCreateWithFlags "cudaEventCreateWithFlags" (cudaEvent_t* event, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventRecord "cudaEventRecord" (cudaEvent_t event, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventRecordWithFlags "cudaEventRecordWithFlags" (cudaEvent_t event, cudaStream_t stream, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventQuery "cudaEventQuery" (cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventSynchronize "cudaEventSynchronize" (cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventDestroy "cudaEventDestroy" (cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventElapsedTime "cudaEventElapsedTime" (float* ms, cudaEvent_t start, cudaEvent_t end) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventElapsedTime_v2 "cudaEventElapsedTime_v2" (float* ms, cudaEvent_t start, cudaEvent_t end) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaImportExternalMemory "cudaImportExternalMemory" (cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExternalMemoryGetMappedBuffer "cudaExternalMemoryGetMappedBuffer" (void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExternalMemoryGetMappedMipmappedArray "cudaExternalMemoryGetMappedMipmappedArray" (cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroyExternalMemory "cudaDestroyExternalMemory" (cudaExternalMemory_t extMem) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaImportExternalSemaphore "cudaImportExternalSemaphore" (cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaSignalExternalSemaphoresAsync_v2 "cudaSignalExternalSemaphoresAsync_v2" (const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaWaitExternalSemaphoresAsync_v2 "cudaWaitExternalSemaphoresAsync_v2" (const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroyExternalSemaphore "cudaDestroyExternalSemaphore" (cudaExternalSemaphore_t extSem) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncSetCacheConfig "cudaFuncSetCacheConfig" (const void* func, cudaFuncCache cacheConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetAttributes "cudaFuncGetAttributes" (cudaFuncAttributes* attr, const void* func) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncSetAttribute "cudaFuncSetAttribute" (const void* func, cudaFuncAttribute attr, int value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetName "cudaFuncGetName" (const char** name, const void* func) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetParamInfo "cudaFuncGetParamInfo" (const void* func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLaunchHostFunc "cudaLaunchHostFunc" (cudaStream_t stream, cudaHostFn_t fn, void* userData) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncSetSharedMemConfig "cudaFuncSetSharedMemConfig" (const void* func, cudaSharedMemConfig config) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaOccupancyMaxActiveBlocksPerMultiprocessor "cudaOccupancyMaxActiveBlocksPerMultiprocessor" (int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaOccupancyAvailableDynamicSMemPerBlock "cudaOccupancyAvailableDynamicSMemPerBlock" (size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags "cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags" (int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocManaged "cudaMallocManaged" (void** devPtr, size_t size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMalloc "cudaMalloc" (void** devPtr, size_t size) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocHost "cudaMallocHost" (void** ptr, size_t size) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocPitch "cudaMallocPitch" (void** devPtr, size_t* pitch, size_t width, size_t height) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocArray "cudaMallocArray" (cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFree "cudaFree" (void* devPtr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeHost "cudaFreeHost" (void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeArray "cudaFreeArray" (cudaArray_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeMipmappedArray "cudaFreeMipmappedArray" (cudaMipmappedArray_t mipmappedArray) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostAlloc "cudaHostAlloc" (void** pHost, size_t size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostRegister "cudaHostRegister" (void* ptr, size_t size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostUnregister "cudaHostUnregister" (void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostGetDevicePointer "cudaHostGetDevicePointer" (void** pDevice, void* pHost, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostGetFlags "cudaHostGetFlags" (unsigned int* pFlags, void* pHost) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMalloc3D "cudaMalloc3D" (cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMalloc3DArray "cudaMalloc3DArray" (cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocMipmappedArray "cudaMallocMipmappedArray" (cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetMipmappedArrayLevel "cudaGetMipmappedArrayLevel" (cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3D "cudaMemcpy3D" (const cudaMemcpy3DParms* p) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DPeer "cudaMemcpy3DPeer" (const cudaMemcpy3DPeerParms* p) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DAsync "cudaMemcpy3DAsync" (const cudaMemcpy3DParms* p, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DPeerAsync "cudaMemcpy3DPeerAsync" (const cudaMemcpy3DPeerParms* p, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemGetInfo "cudaMemGetInfo" (size_t* free, size_t* total) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetInfo "cudaArrayGetInfo" (cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetPlane "cudaArrayGetPlane" (cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetMemoryRequirements "cudaArrayGetMemoryRequirements" (cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMipmappedArrayGetMemoryRequirements "cudaMipmappedArrayGetMemoryRequirements" (cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetSparseProperties "cudaArrayGetSparseProperties" (cudaArraySparseProperties* sparseProperties, cudaArray_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMipmappedArrayGetSparseProperties "cudaMipmappedArrayGetSparseProperties" (cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy "cudaMemcpy" (void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyPeer "cudaMemcpyPeer" (void* dst, int dstDevice, const void* src, int srcDevice, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2D "cudaMemcpy2D" (void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DToArray "cudaMemcpy2DToArray" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DFromArray "cudaMemcpy2DFromArray" (void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DArrayToArray "cudaMemcpy2DArrayToArray" (cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyAsync "cudaMemcpyAsync" (void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyPeerAsync "cudaMemcpyPeerAsync" (void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyBatchAsync "cudaMemcpyBatchAsync" (void** dsts, void** srcs, size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, size_t* failIdx, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DBatchAsync "cudaMemcpy3DBatchAsync" (size_t numOps, cudaMemcpy3DBatchOp* opList, size_t* failIdx, unsigned long long flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DAsync "cudaMemcpy2DAsync" (void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DToArrayAsync "cudaMemcpy2DToArrayAsync" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DFromArrayAsync "cudaMemcpy2DFromArrayAsync" (void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset "cudaMemset" (void* devPtr, int value, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset2D "cudaMemset2D" (void* devPtr, size_t pitch, int value, size_t width, size_t height) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset3D "cudaMemset3D" (cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemsetAsync "cudaMemsetAsync" (void* devPtr, int value, size_t count, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset2DAsync "cudaMemset2DAsync" (void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset3DAsync "cudaMemset3DAsync" (cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPrefetchAsync "cudaMemPrefetchAsync" (const void* devPtr, size_t count, int dstDevice, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPrefetchAsync_v2 "cudaMemPrefetchAsync_v2" (const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemAdvise "cudaMemAdvise" (const void* devPtr, size_t count, cudaMemoryAdvise advice, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemAdvise_v2 "cudaMemAdvise_v2" (const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemRangeGetAttribute "cudaMemRangeGetAttribute" (void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemRangeGetAttributes "cudaMemRangeGetAttributes" (void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyToArray "cudaMemcpyToArray" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyFromArray "cudaMemcpyFromArray" (void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyArrayToArray "cudaMemcpyArrayToArray" (cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyToArrayAsync "cudaMemcpyToArrayAsync" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyFromArrayAsync "cudaMemcpyFromArrayAsync" (void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocAsync "cudaMallocAsync" (void** devPtr, size_t size, cudaStream_t hStream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeAsync "cudaFreeAsync" (void* devPtr, cudaStream_t hStream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolTrimTo "cudaMemPoolTrimTo" (cudaMemPool_t memPool, size_t minBytesToKeep) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolSetAttribute "cudaMemPoolSetAttribute" (cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolGetAttribute "cudaMemPoolGetAttribute" (cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolSetAccess "cudaMemPoolSetAccess" (cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolGetAccess "cudaMemPoolGetAccess" (cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolCreate "cudaMemPoolCreate" (cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolDestroy "cudaMemPoolDestroy" (cudaMemPool_t memPool) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocFromPoolAsync "cudaMallocFromPoolAsync" (void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolExportToShareableHandle "cudaMemPoolExportToShareableHandle" (void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolImportFromShareableHandle "cudaMemPoolImportFromShareableHandle" (cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolExportPointer "cudaMemPoolExportPointer" (cudaMemPoolPtrExportData* exportData, void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolImportPointer "cudaMemPoolImportPointer" (void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaPointerGetAttributes "cudaPointerGetAttributes" (cudaPointerAttributes* attributes, const void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceCanAccessPeer "cudaDeviceCanAccessPeer" (int* canAccessPeer, int device, int peerDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceEnablePeerAccess "cudaDeviceEnablePeerAccess" (int peerDevice, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceDisablePeerAccess "cudaDeviceDisablePeerAccess" (int peerDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsUnregisterResource "cudaGraphicsUnregisterResource" (cudaGraphicsResource_t resource) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsResourceSetMapFlags "cudaGraphicsResourceSetMapFlags" (cudaGraphicsResource_t resource, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsMapResources "cudaGraphicsMapResources" (int count, cudaGraphicsResource_t* resources, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsUnmapResources "cudaGraphicsUnmapResources" (int count, cudaGraphicsResource_t* resources, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsResourceGetMappedPointer "cudaGraphicsResourceGetMappedPointer" (void** devPtr, size_t* size, cudaGraphicsResource_t resource) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsSubResourceGetMappedArray "cudaGraphicsSubResourceGetMappedArray" (cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsResourceGetMappedMipmappedArray "cudaGraphicsResourceGetMappedMipmappedArray" (cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetChannelDesc "cudaGetChannelDesc" (cudaChannelFormatDesc* desc, cudaArray_const_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaChannelFormatDesc _static_cudaCreateChannelDesc "cudaCreateChannelDesc" (int x, int y, int z, int w, cudaChannelFormatKind f) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaCreateTextureObject "cudaCreateTextureObject" (cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroyTextureObject "cudaDestroyTextureObject" (cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetTextureObjectResourceDesc "cudaGetTextureObjectResourceDesc" (cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetTextureObjectTextureDesc "cudaGetTextureObjectTextureDesc" (cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetTextureObjectResourceViewDesc "cudaGetTextureObjectResourceViewDesc" (cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaCreateSurfaceObject "cudaCreateSurfaceObject" (cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroySurfaceObject "cudaDestroySurfaceObject" (cudaSurfaceObject_t surfObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetSurfaceObjectResourceDesc "cudaGetSurfaceObjectResourceDesc" (cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDriverGetVersion "cudaDriverGetVersion" (int* driverVersion) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaRuntimeGetVersion "cudaRuntimeGetVersion" (int* runtimeVersion) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphCreate "cudaGraphCreate" (cudaGraph_t* pGraph, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddKernelNode "cudaGraphAddKernelNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeGetParams "cudaGraphKernelNodeGetParams" (cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeSetParams "cudaGraphKernelNodeSetParams" (cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeCopyAttributes "cudaGraphKernelNodeCopyAttributes" (cudaGraphNode_t hSrc, cudaGraphNode_t hDst) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeGetAttribute "cudaGraphKernelNodeGetAttribute" (cudaGraphNode_t hNode, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeSetAttribute "cudaGraphKernelNodeSetAttribute" (cudaGraphNode_t hNode, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemcpyNode "cudaGraphAddMemcpyNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemcpyNode1D "cudaGraphAddMemcpyNode1D" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemcpyNodeGetParams "cudaGraphMemcpyNodeGetParams" (cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemcpyNodeSetParams "cudaGraphMemcpyNodeSetParams" (cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemcpyNodeSetParams1D "cudaGraphMemcpyNodeSetParams1D" (cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemsetNode "cudaGraphAddMemsetNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemsetNodeGetParams "cudaGraphMemsetNodeGetParams" (cudaGraphNode_t node, cudaMemsetParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemsetNodeSetParams "cudaGraphMemsetNodeSetParams" (cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddHostNode "cudaGraphAddHostNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphHostNodeGetParams "cudaGraphHostNodeGetParams" (cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphHostNodeSetParams "cudaGraphHostNodeSetParams" (cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddChildGraphNode "cudaGraphAddChildGraphNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphChildGraphNodeGetGraph "cudaGraphChildGraphNodeGetGraph" (cudaGraphNode_t node, cudaGraph_t* pGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddEmptyNode "cudaGraphAddEmptyNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddEventRecordNode "cudaGraphAddEventRecordNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventRecordNodeGetEvent "cudaGraphEventRecordNodeGetEvent" (cudaGraphNode_t node, cudaEvent_t* event_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventRecordNodeSetEvent "cudaGraphEventRecordNodeSetEvent" (cudaGraphNode_t node, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddEventWaitNode "cudaGraphAddEventWaitNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventWaitNodeGetEvent "cudaGraphEventWaitNodeGetEvent" (cudaGraphNode_t node, cudaEvent_t* event_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventWaitNodeSetEvent "cudaGraphEventWaitNodeSetEvent" (cudaGraphNode_t node, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddExternalSemaphoresSignalNode "cudaGraphAddExternalSemaphoresSignalNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresSignalNodeGetParams "cudaGraphExternalSemaphoresSignalNodeGetParams" (cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresSignalNodeSetParams "cudaGraphExternalSemaphoresSignalNodeSetParams" (cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddExternalSemaphoresWaitNode "cudaGraphAddExternalSemaphoresWaitNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresWaitNodeGetParams "cudaGraphExternalSemaphoresWaitNodeGetParams" (cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresWaitNodeSetParams "cudaGraphExternalSemaphoresWaitNodeSetParams" (cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemAllocNode "cudaGraphAddMemAllocNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemAllocNodeGetParams "cudaGraphMemAllocNodeGetParams" (cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemFreeNode "cudaGraphAddMemFreeNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemFreeNodeGetParams "cudaGraphMemFreeNodeGetParams" (cudaGraphNode_t node, void* dptr_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGraphMemTrim "cudaDeviceGraphMemTrim" (int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetGraphMemAttribute "cudaDeviceGetGraphMemAttribute" (int device, cudaGraphMemAttributeType attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetGraphMemAttribute "cudaDeviceSetGraphMemAttribute" (int device, cudaGraphMemAttributeType attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphClone "cudaGraphClone" (cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeFindInClone "cudaGraphNodeFindInClone" (cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetType "cudaGraphNodeGetType" (cudaGraphNode_t node, cudaGraphNodeType* pType) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetNodes "cudaGraphGetNodes" (cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetRootNodes "cudaGraphGetRootNodes" (cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetEdges "cudaGraphGetEdges" (cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, size_t* numEdges) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetEdges_v2 "cudaGraphGetEdges_v2" (cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetDependencies "cudaGraphNodeGetDependencies" (cudaGraphNode_t node, cudaGraphNode_t* pDependencies, size_t* pNumDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetDependencies_v2 "cudaGraphNodeGetDependencies_v2" (cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetDependentNodes "cudaGraphNodeGetDependentNodes" (cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, size_t* pNumDependentNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetDependentNodes_v2 "cudaGraphNodeGetDependentNodes_v2" (cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddDependencies "cudaGraphAddDependencies" (cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddDependencies_v2 "cudaGraphAddDependencies_v2" (cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphRemoveDependencies "cudaGraphRemoveDependencies" (cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphRemoveDependencies_v2 "cudaGraphRemoveDependencies_v2" (cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphDestroyNode "cudaGraphDestroyNode" (cudaGraphNode_t node) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphInstantiate "cudaGraphInstantiate" (cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphInstantiateWithFlags "cudaGraphInstantiateWithFlags" (cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphInstantiateWithParams "cudaGraphInstantiateWithParams" (cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecGetFlags "cudaGraphExecGetFlags" (cudaGraphExec_t graphExec, unsigned long long* flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecKernelNodeSetParams "cudaGraphExecKernelNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecMemcpyNodeSetParams "cudaGraphExecMemcpyNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecMemcpyNodeSetParams1D "cudaGraphExecMemcpyNodeSetParams1D" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecMemsetNodeSetParams "cudaGraphExecMemsetNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecHostNodeSetParams "cudaGraphExecHostNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecChildGraphNodeSetParams "cudaGraphExecChildGraphNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecEventRecordNodeSetEvent "cudaGraphExecEventRecordNodeSetEvent" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecEventWaitNodeSetEvent "cudaGraphExecEventWaitNodeSetEvent" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecExternalSemaphoresSignalNodeSetParams "cudaGraphExecExternalSemaphoresSignalNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecExternalSemaphoresWaitNodeSetParams "cudaGraphExecExternalSemaphoresWaitNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeSetEnabled "cudaGraphNodeSetEnabled" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetEnabled "cudaGraphNodeGetEnabled" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecUpdate "cudaGraphExecUpdate" (cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphUpload "cudaGraphUpload" (cudaGraphExec_t graphExec, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphLaunch "cudaGraphLaunch" (cudaGraphExec_t graphExec, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecDestroy "cudaGraphExecDestroy" (cudaGraphExec_t graphExec) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphDestroy "cudaGraphDestroy" (cudaGraph_t graph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphDebugDotPrint "cudaGraphDebugDotPrint" (cudaGraph_t graph, const char* path, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaUserObjectCreate "cudaUserObjectCreate" (cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaUserObjectRetain "cudaUserObjectRetain" (cudaUserObject_t object, unsigned int count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaUserObjectRelease "cudaUserObjectRelease" (cudaUserObject_t object, unsigned int count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphRetainUserObject "cudaGraphRetainUserObject" (cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphReleaseUserObject "cudaGraphReleaseUserObject" (cudaGraph_t graph, cudaUserObject_t object, unsigned int count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddNode "cudaGraphAddNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddNode_v2 "cudaGraphAddNode_v2" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeSetParams "cudaGraphNodeSetParams" (cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecNodeSetParams "cudaGraphExecNodeSetParams" (cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphConditionalHandleCreate "cudaGraphConditionalHandleCreate" (cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDriverEntryPoint "cudaGetDriverEntryPoint" (const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDriverEntryPointByVersion "cudaGetDriverEntryPointByVersion" (const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryLoadData "cudaLibraryLoadData" (cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryLoadFromFile "cudaLibraryLoadFromFile" (cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryUnload "cudaLibraryUnload" (cudaLibrary_t library) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetKernel "cudaLibraryGetKernel" (cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetGlobal "cudaLibraryGetGlobal" (void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetManaged "cudaLibraryGetManaged" (void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetUnifiedFunction "cudaLibraryGetUnifiedFunction" (void** fptr, cudaLibrary_t library, const char* symbol) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetKernelCount "cudaLibraryGetKernelCount" (unsigned int* count, cudaLibrary_t lib) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryEnumerateKernels "cudaLibraryEnumerateKernels" (cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaKernelSetAttributeForDevice "cudaKernelSetAttributeForDevice" (cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetExportTable "cudaGetExportTable" (const void** ppExportTable, const cudaUUID_t* pExportTableId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetKernel "cudaGetKernel" (cudaKernel_t* kernelPtr, const void* entryFuncAddr) noexcept + +cdef extern from 'cuda_profiler_api.h' nogil: + cudaError_t _static_cudaProfilerStart "cudaProfilerStart" () noexcept + +cdef extern from 'cuda_profiler_api.h' nogil: + cudaError_t _static_cudaProfilerStop "cudaProfilerStop" () noexcept + + + +############################################################################### +# Wrapper functions +############################################################################### + +cdef cudaError_t _cudaDeviceReset() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceReset() + + +cdef cudaError_t _cudaDeviceSynchronize() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceSynchronize() + + +cdef cudaError_t _cudaDeviceSetLimit(cudaLimit limit, size_t value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceSetLimit(limit, value) + + +cdef cudaError_t _cudaDeviceGetLimit(size_t* pValue, cudaLimit limit) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetLimit(pValue, limit) + + +cdef cudaError_t _cudaDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetTexture1DLinearMaxWidth(maxWidthInElements, fmtDesc, device) + + +cdef cudaError_t _cudaDeviceGetCacheConfig(cudaFuncCache* pCacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetCacheConfig(pCacheConfig) + + +cdef cudaError_t _cudaDeviceGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetStreamPriorityRange(leastPriority, greatestPriority) + + +cdef cudaError_t _cudaDeviceSetCacheConfig(cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceSetCacheConfig(cacheConfig) + + +cdef cudaError_t _cudaDeviceGetByPCIBusId(int* device, const char* pciBusId) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetByPCIBusId(device, pciBusId) + + +cdef cudaError_t _cudaDeviceGetPCIBusId(char* pciBusId, int len, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetPCIBusId(pciBusId, len, device) + + +cdef cudaError_t _cudaIpcGetEventHandle(cudaIpcEventHandle_t* handle, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaIpcGetEventHandle(handle, event) + + +cdef cudaError_t _cudaIpcOpenEventHandle(cudaEvent_t* event, cudaIpcEventHandle_t handle) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaIpcOpenEventHandle(event, handle) + + +cdef cudaError_t _cudaIpcGetMemHandle(cudaIpcMemHandle_t* handle, void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaIpcGetMemHandle(handle, devPtr) + + +cdef cudaError_t _cudaIpcOpenMemHandle(void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaIpcOpenMemHandle(devPtr, handle, flags) + + +cdef cudaError_t _cudaIpcCloseMemHandle(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaIpcCloseMemHandle(devPtr) + + +cdef cudaError_t _cudaDeviceFlushGPUDirectRDMAWrites(cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceFlushGPUDirectRDMAWrites(target, scope) + + +cdef cudaError_t _cudaDeviceRegisterAsyncNotification(int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceRegisterAsyncNotification(device, callbackFunc, userData, callback) + + +cdef cudaError_t _cudaDeviceUnregisterAsyncNotification(int device, cudaAsyncCallbackHandle_t callback) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceUnregisterAsyncNotification(device, callback) + + +cdef cudaError_t _cudaDeviceGetSharedMemConfig(cudaSharedMemConfig* pConfig) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetSharedMemConfig(pConfig) + + +cdef cudaError_t _cudaDeviceSetSharedMemConfig(cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceSetSharedMemConfig(config) + + +cdef cudaError_t _cudaGetLastError() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetLastError() + + +cdef cudaError_t _cudaPeekAtLastError() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaPeekAtLastError() + + +cdef const char* _cudaGetErrorName(cudaError_t error) except?NULL nogil: + return _static_cudaGetErrorName(error) + + +cdef const char* _cudaGetErrorString(cudaError_t error) except?NULL nogil: + return _static_cudaGetErrorString(error) + + +cdef cudaError_t _cudaGetDeviceCount(int* count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetDeviceCount(count) + + +cdef cudaError_t _cudaGetDeviceProperties_v2(cudaDeviceProp* prop, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetDeviceProperties_v2(prop, device) + + +cdef cudaError_t _cudaDeviceGetAttribute(int* value, cudaDeviceAttr attr, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetAttribute(value, attr, device) + + +cdef cudaError_t _cudaDeviceGetDefaultMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetDefaultMemPool(memPool, device) + + +cdef cudaError_t _cudaDeviceSetMemPool(int device, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceSetMemPool(device, memPool) + + +cdef cudaError_t _cudaDeviceGetMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetMemPool(memPool, device) + + +cdef cudaError_t _cudaDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, int device, int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, device, flags) + + +cdef cudaError_t _cudaDeviceGetP2PAttribute(int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetP2PAttribute(value, attr, srcDevice, dstDevice) + + +cdef cudaError_t _cudaChooseDevice(int* device, const cudaDeviceProp* prop) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaChooseDevice(device, prop) + + +cdef cudaError_t _cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaInitDevice(device, deviceFlags, flags) + + +cdef cudaError_t _cudaSetDevice(int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaSetDevice(device) + + +cdef cudaError_t _cudaGetDevice(int* device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetDevice(device) + + +cdef cudaError_t _cudaSetDeviceFlags(unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaSetDeviceFlags(flags) + + +cdef cudaError_t _cudaGetDeviceFlags(unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetDeviceFlags(flags) + + +cdef cudaError_t _cudaStreamCreate(cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamCreate(pStream) + + +cdef cudaError_t _cudaStreamCreateWithFlags(cudaStream_t* pStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamCreateWithFlags(pStream, flags) + + +cdef cudaError_t _cudaStreamCreateWithPriority(cudaStream_t* pStream, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamCreateWithPriority(pStream, flags, priority) + + +cdef cudaError_t _cudaStreamGetPriority(cudaStream_t hStream, int* priority) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetPriority(hStream, priority) + + +cdef cudaError_t _cudaStreamGetFlags(cudaStream_t hStream, unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetFlags(hStream, flags) + + +cdef cudaError_t _cudaStreamGetId(cudaStream_t hStream, unsigned long long* streamId) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetId(hStream, streamId) + + +cdef cudaError_t _cudaStreamGetDevice(cudaStream_t hStream, int* device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetDevice(hStream, device) + + +cdef cudaError_t _cudaCtxResetPersistingL2Cache() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaCtxResetPersistingL2Cache() + + +cdef cudaError_t _cudaStreamCopyAttributes(cudaStream_t dst, cudaStream_t src) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamCopyAttributes(dst, src) + + +cdef cudaError_t _cudaStreamGetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, cudaStreamAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetAttribute(hStream, attr, value_out) + + +cdef cudaError_t _cudaStreamSetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, const cudaStreamAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamSetAttribute(hStream, attr, value) + + +cdef cudaError_t _cudaStreamDestroy(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamDestroy(stream) + + +cdef cudaError_t _cudaStreamWaitEvent(cudaStream_t stream, cudaEvent_t event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamWaitEvent(stream, event, flags) + + +cdef cudaError_t _cudaStreamAddCallback(cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamAddCallback(stream, callback, userData, flags) + + +cdef cudaError_t _cudaStreamSynchronize(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamSynchronize(stream) + + +cdef cudaError_t _cudaStreamQuery(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamQuery(stream) + + +cdef cudaError_t _cudaStreamAttachMemAsync(cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamAttachMemAsync(stream, devPtr, length, flags) + + +cdef cudaError_t _cudaStreamBeginCapture(cudaStream_t stream, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamBeginCapture(stream, mode) + + +cdef cudaError_t _cudaStreamBeginCaptureToGraph(cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamBeginCaptureToGraph(stream, graph, dependencies, dependencyData, numDependencies, mode) + + +cdef cudaError_t _cudaThreadExchangeStreamCaptureMode(cudaStreamCaptureMode* mode) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaThreadExchangeStreamCaptureMode(mode) + + +cdef cudaError_t _cudaStreamEndCapture(cudaStream_t stream, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamEndCapture(stream, pGraph) + + +cdef cudaError_t _cudaStreamIsCapturing(cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamIsCapturing(stream, pCaptureStatus) + + +cdef cudaError_t _cudaStreamGetCaptureInfo_v2(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetCaptureInfo_v2(stream, captureStatus_out, id_out, graph_out, dependencies_out, numDependencies_out) + + +cdef cudaError_t _cudaStreamGetCaptureInfo_v3(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetCaptureInfo_v3(stream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) + + +cdef cudaError_t _cudaStreamUpdateCaptureDependencies(cudaStream_t stream, cudaGraphNode_t* dependencies, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamUpdateCaptureDependencies(stream, dependencies, numDependencies, flags) + + +cdef cudaError_t _cudaStreamUpdateCaptureDependencies_v2(cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamUpdateCaptureDependencies_v2(stream, dependencies, dependencyData, numDependencies, flags) + + +cdef cudaError_t _cudaEventCreate(cudaEvent_t* event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventCreate(event) + + +cdef cudaError_t _cudaEventCreateWithFlags(cudaEvent_t* event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventCreateWithFlags(event, flags) + + +cdef cudaError_t _cudaEventRecord(cudaEvent_t event, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventRecord(event, stream) + + +cdef cudaError_t _cudaEventRecordWithFlags(cudaEvent_t event, cudaStream_t stream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventRecordWithFlags(event, stream, flags) + + +cdef cudaError_t _cudaEventQuery(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventQuery(event) + + +cdef cudaError_t _cudaEventSynchronize(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventSynchronize(event) + + +cdef cudaError_t _cudaEventDestroy(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventDestroy(event) + + +cdef cudaError_t _cudaEventElapsedTime(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventElapsedTime(ms, start, end) + + +cdef cudaError_t _cudaEventElapsedTime_v2(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventElapsedTime_v2(ms, start, end) + + +cdef cudaError_t _cudaImportExternalMemory(cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaImportExternalMemory(extMem_out, memHandleDesc) + + +cdef cudaError_t _cudaExternalMemoryGetMappedBuffer(void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaExternalMemoryGetMappedBuffer(devPtr, extMem, bufferDesc) + + +cdef cudaError_t _cudaExternalMemoryGetMappedMipmappedArray(cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaExternalMemoryGetMappedMipmappedArray(mipmap, extMem, mipmapDesc) + + +cdef cudaError_t _cudaDestroyExternalMemory(cudaExternalMemory_t extMem) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDestroyExternalMemory(extMem) + + +cdef cudaError_t _cudaImportExternalSemaphore(cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaImportExternalSemaphore(extSem_out, semHandleDesc) + + +cdef cudaError_t _cudaSignalExternalSemaphoresAsync_v2(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaSignalExternalSemaphoresAsync_v2(extSemArray, paramsArray, numExtSems, stream) + + +cdef cudaError_t _cudaWaitExternalSemaphoresAsync_v2(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaWaitExternalSemaphoresAsync_v2(extSemArray, paramsArray, numExtSems, stream) + + +cdef cudaError_t _cudaDestroyExternalSemaphore(cudaExternalSemaphore_t extSem) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDestroyExternalSemaphore(extSem) + + +cdef cudaError_t _cudaFuncSetCacheConfig(const void* func, cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFuncSetCacheConfig(func, cacheConfig) + + +cdef cudaError_t _cudaFuncGetAttributes(cudaFuncAttributes* attr, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFuncGetAttributes(attr, func) + + +cdef cudaError_t _cudaFuncSetAttribute(const void* func, cudaFuncAttribute attr, int value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFuncSetAttribute(func, attr, value) + + +cdef cudaError_t _cudaFuncGetName(const char** name, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFuncGetName(name, func) + + +cdef cudaError_t _cudaFuncGetParamInfo(const void* func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFuncGetParamInfo(func, paramIndex, paramOffset, paramSize) + + +cdef cudaError_t _cudaLaunchHostFunc(cudaStream_t stream, cudaHostFn_t fn, void* userData) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLaunchHostFunc(stream, fn, userData) + + +cdef cudaError_t _cudaFuncSetSharedMemConfig(const void* func, cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFuncSetSharedMemConfig(func, config) + + +cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaOccupancyMaxActiveBlocksPerMultiprocessor(numBlocks, func, blockSize, dynamicSMemSize) + + +cdef cudaError_t _cudaOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaOccupancyAvailableDynamicSMemPerBlock(dynamicSmemSize, func, numBlocks, blockSize) + + +cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(numBlocks, func, blockSize, dynamicSMemSize, flags) + + +cdef cudaError_t _cudaMallocManaged(void** devPtr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocManaged(devPtr, size, flags) + + +cdef cudaError_t _cudaMalloc(void** devPtr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMalloc(devPtr, size) + + +cdef cudaError_t _cudaMallocHost(void** ptr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocHost(ptr, size) + + +cdef cudaError_t _cudaMallocPitch(void** devPtr, size_t* pitch, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocPitch(devPtr, pitch, width, height) + + +cdef cudaError_t _cudaMallocArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocArray(array, desc, width, height, flags) + + +cdef cudaError_t _cudaFree(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFree(devPtr) + + +cdef cudaError_t _cudaFreeHost(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFreeHost(ptr) + + +cdef cudaError_t _cudaFreeArray(cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFreeArray(array) + + +cdef cudaError_t _cudaFreeMipmappedArray(cudaMipmappedArray_t mipmappedArray) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFreeMipmappedArray(mipmappedArray) + + +cdef cudaError_t _cudaHostAlloc(void** pHost, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaHostAlloc(pHost, size, flags) + + +cdef cudaError_t _cudaHostRegister(void* ptr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaHostRegister(ptr, size, flags) + + +cdef cudaError_t _cudaHostUnregister(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaHostUnregister(ptr) + + +cdef cudaError_t _cudaHostGetDevicePointer(void** pDevice, void* pHost, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaHostGetDevicePointer(pDevice, pHost, flags) + + +cdef cudaError_t _cudaHostGetFlags(unsigned int* pFlags, void* pHost) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaHostGetFlags(pFlags, pHost) + + +cdef cudaError_t _cudaMalloc3D(cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMalloc3D(pitchedDevPtr, extent) + + +cdef cudaError_t _cudaMalloc3DArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMalloc3DArray(array, desc, extent, flags) + + +cdef cudaError_t _cudaMallocMipmappedArray(cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocMipmappedArray(mipmappedArray, desc, extent, numLevels, flags) + + +cdef cudaError_t _cudaGetMipmappedArrayLevel(cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetMipmappedArrayLevel(levelArray, mipmappedArray, level) + + +cdef cudaError_t _cudaMemcpy3D(const cudaMemcpy3DParms* p) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy3D(p) + + +cdef cudaError_t _cudaMemcpy3DPeer(const cudaMemcpy3DPeerParms* p) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy3DPeer(p) + + +cdef cudaError_t _cudaMemcpy3DAsync(const cudaMemcpy3DParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy3DAsync(p, stream) + + +cdef cudaError_t _cudaMemcpy3DPeerAsync(const cudaMemcpy3DPeerParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy3DPeerAsync(p, stream) + + +cdef cudaError_t _cudaMemGetInfo(size_t* free, size_t* total) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemGetInfo(free, total) + + +cdef cudaError_t _cudaArrayGetInfo(cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaArrayGetInfo(desc, extent, flags, array) + + +cdef cudaError_t _cudaArrayGetPlane(cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaArrayGetPlane(pPlaneArray, hArray, planeIdx) + + +cdef cudaError_t _cudaArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaArrayGetMemoryRequirements(memoryRequirements, array, device) + + +cdef cudaError_t _cudaMipmappedArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMipmappedArrayGetMemoryRequirements(memoryRequirements, mipmap, device) + + +cdef cudaError_t _cudaArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaArrayGetSparseProperties(sparseProperties, array) + + +cdef cudaError_t _cudaMipmappedArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMipmappedArrayGetSparseProperties(sparseProperties, mipmap) + + +cdef cudaError_t _cudaMemcpy(void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy(dst, src, count, kind) + + +cdef cudaError_t _cudaMemcpyPeer(void* dst, int dstDevice, const void* src, int srcDevice, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyPeer(dst, dstDevice, src, srcDevice, count) + + +cdef cudaError_t _cudaMemcpy2D(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2D(dst, dpitch, src, spitch, width, height, kind) + + +cdef cudaError_t _cudaMemcpy2DToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2DToArray(dst, wOffset, hOffset, src, spitch, width, height, kind) + + +cdef cudaError_t _cudaMemcpy2DFromArray(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2DFromArray(dst, dpitch, src, wOffset, hOffset, width, height, kind) + + +cdef cudaError_t _cudaMemcpy2DArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2DArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, width, height, kind) + + +cdef cudaError_t _cudaMemcpyAsync(void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyAsync(dst, src, count, kind, stream) + + +cdef cudaError_t _cudaMemcpyPeerAsync(void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyPeerAsync(dst, dstDevice, src, srcDevice, count, stream) + + +cdef cudaError_t _cudaMemcpyBatchAsync(const void** dsts, void** srcs, size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, size_t* failIdx, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyBatchAsync(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, failIdx, stream) + + +cdef cudaError_t _cudaMemcpy3DBatchAsync(size_t numOps, cudaMemcpy3DBatchOp* opList, size_t* failIdx, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy3DBatchAsync(numOps, opList, failIdx, flags, stream) + + +cdef cudaError_t _cudaMemcpy2DAsync(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2DAsync(dst, dpitch, src, spitch, width, height, kind, stream) + + +cdef cudaError_t _cudaMemcpy2DToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2DToArrayAsync(dst, wOffset, hOffset, src, spitch, width, height, kind, stream) + + +cdef cudaError_t _cudaMemcpy2DFromArrayAsync(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2DFromArrayAsync(dst, dpitch, src, wOffset, hOffset, width, height, kind, stream) + + +cdef cudaError_t _cudaMemset(void* devPtr, int value, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemset(devPtr, value, count) + + +cdef cudaError_t _cudaMemset2D(void* devPtr, size_t pitch, int value, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemset2D(devPtr, pitch, value, width, height) + + +cdef cudaError_t _cudaMemset3D(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemset3D(pitchedDevPtr, value, extent) + + +cdef cudaError_t _cudaMemsetAsync(void* devPtr, int value, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemsetAsync(devPtr, value, count, stream) + + +cdef cudaError_t _cudaMemset2DAsync(void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemset2DAsync(devPtr, pitch, value, width, height, stream) + + +cdef cudaError_t _cudaMemset3DAsync(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemset3DAsync(pitchedDevPtr, value, extent, stream) + + +cdef cudaError_t _cudaMemPrefetchAsync(const void* devPtr, size_t count, int dstDevice, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPrefetchAsync(devPtr, count, dstDevice, stream) + + +cdef cudaError_t _cudaMemPrefetchAsync_v2(const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPrefetchAsync_v2(devPtr, count, location, flags, stream) + + +cdef cudaError_t _cudaMemAdvise(const void* devPtr, size_t count, cudaMemoryAdvise advice, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemAdvise(devPtr, count, advice, device) + + +cdef cudaError_t _cudaMemAdvise_v2(const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemAdvise_v2(devPtr, count, advice, location) + + +cdef cudaError_t _cudaMemRangeGetAttribute(void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemRangeGetAttribute(data, dataSize, attribute, devPtr, count) + + +cdef cudaError_t _cudaMemRangeGetAttributes(void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemRangeGetAttributes(data, dataSizes, attributes, numAttributes, devPtr, count) + + +cdef cudaError_t _cudaMemcpyToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyToArray(dst, wOffset, hOffset, src, count, kind) + + +cdef cudaError_t _cudaMemcpyFromArray(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyFromArray(dst, src, wOffset, hOffset, count, kind) + + +cdef cudaError_t _cudaMemcpyArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, count, kind) + + +cdef cudaError_t _cudaMemcpyToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyToArrayAsync(dst, wOffset, hOffset, src, count, kind, stream) + + +cdef cudaError_t _cudaMemcpyFromArrayAsync(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyFromArrayAsync(dst, src, wOffset, hOffset, count, kind, stream) + + +cdef cudaError_t _cudaMallocAsync(void** devPtr, size_t size, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocAsync(devPtr, size, hStream) + + +cdef cudaError_t _cudaFreeAsync(void* devPtr, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFreeAsync(devPtr, hStream) + + +cdef cudaError_t _cudaMemPoolTrimTo(cudaMemPool_t memPool, size_t minBytesToKeep) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolTrimTo(memPool, minBytesToKeep) + + +cdef cudaError_t _cudaMemPoolSetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolSetAttribute(memPool, attr, value) + + +cdef cudaError_t _cudaMemPoolGetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolGetAttribute(memPool, attr, value) + + +cdef cudaError_t _cudaMemPoolSetAccess(cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolSetAccess(memPool, descList, count) + + +cdef cudaError_t _cudaMemPoolGetAccess(cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolGetAccess(flags, memPool, location) + + +cdef cudaError_t _cudaMemPoolCreate(cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolCreate(memPool, poolProps) + + +cdef cudaError_t _cudaMemPoolDestroy(cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolDestroy(memPool) + + +cdef cudaError_t _cudaMallocFromPoolAsync(void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocFromPoolAsync(ptr, size, memPool, stream) + + +cdef cudaError_t _cudaMemPoolExportToShareableHandle(void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolExportToShareableHandle(shareableHandle, memPool, handleType, flags) + + +cdef cudaError_t _cudaMemPoolImportFromShareableHandle(cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolImportFromShareableHandle(memPool, shareableHandle, handleType, flags) + + +cdef cudaError_t _cudaMemPoolExportPointer(cudaMemPoolPtrExportData* exportData, void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolExportPointer(exportData, ptr) + + +cdef cudaError_t _cudaMemPoolImportPointer(void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolImportPointer(ptr, memPool, exportData) + + +cdef cudaError_t _cudaPointerGetAttributes(cudaPointerAttributes* attributes, const void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaPointerGetAttributes(attributes, ptr) + + +cdef cudaError_t _cudaDeviceCanAccessPeer(int* canAccessPeer, int device, int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceCanAccessPeer(canAccessPeer, device, peerDevice) + + +cdef cudaError_t _cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceEnablePeerAccess(peerDevice, flags) + + +cdef cudaError_t _cudaDeviceDisablePeerAccess(int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceDisablePeerAccess(peerDevice) + + +cdef cudaError_t _cudaGraphicsUnregisterResource(cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsUnregisterResource(resource) + + +cdef cudaError_t _cudaGraphicsResourceSetMapFlags(cudaGraphicsResource_t resource, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsResourceSetMapFlags(resource, flags) + + +cdef cudaError_t _cudaGraphicsMapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsMapResources(count, resources, stream) + + +cdef cudaError_t _cudaGraphicsUnmapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsUnmapResources(count, resources, stream) + + +cdef cudaError_t _cudaGraphicsResourceGetMappedPointer(void** devPtr, size_t* size, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsResourceGetMappedPointer(devPtr, size, resource) + + +cdef cudaError_t _cudaGraphicsSubResourceGetMappedArray(cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsSubResourceGetMappedArray(array, resource, arrayIndex, mipLevel) + + +cdef cudaError_t _cudaGraphicsResourceGetMappedMipmappedArray(cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsResourceGetMappedMipmappedArray(mipmappedArray, resource) + + +cdef cudaError_t _cudaGetChannelDesc(cudaChannelFormatDesc* desc, cudaArray_const_t array) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetChannelDesc(desc, array) + + +cdef cudaChannelFormatDesc _cudaCreateChannelDesc(int x, int y, int z, int w, cudaChannelFormatKind f) except* nogil: + return _static_cudaCreateChannelDesc(x, y, z, w, f) + + +cdef cudaError_t _cudaCreateTextureObject(cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaCreateTextureObject(pTexObject, pResDesc, pTexDesc, pResViewDesc) + + +cdef cudaError_t _cudaDestroyTextureObject(cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDestroyTextureObject(texObject) + + +cdef cudaError_t _cudaGetTextureObjectResourceDesc(cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetTextureObjectResourceDesc(pResDesc, texObject) + + +cdef cudaError_t _cudaGetTextureObjectTextureDesc(cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetTextureObjectTextureDesc(pTexDesc, texObject) + + +cdef cudaError_t _cudaGetTextureObjectResourceViewDesc(cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetTextureObjectResourceViewDesc(pResViewDesc, texObject) + + +cdef cudaError_t _cudaCreateSurfaceObject(cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaCreateSurfaceObject(pSurfObject, pResDesc) + + +cdef cudaError_t _cudaDestroySurfaceObject(cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDestroySurfaceObject(surfObject) + + +cdef cudaError_t _cudaGetSurfaceObjectResourceDesc(cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetSurfaceObjectResourceDesc(pResDesc, surfObject) + + +cdef cudaError_t _cudaDriverGetVersion(int* driverVersion) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDriverGetVersion(driverVersion) + + +cdef cudaError_t _cudaRuntimeGetVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaRuntimeGetVersion(runtimeVersion) + + +cdef cudaError_t _cudaGraphCreate(cudaGraph_t* pGraph, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphCreate(pGraph, flags) + + +cdef cudaError_t _cudaGraphAddKernelNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddKernelNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) + + +cdef cudaError_t _cudaGraphKernelNodeGetParams(cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphKernelNodeGetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphKernelNodeSetParams(cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphKernelNodeSetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphKernelNodeCopyAttributes(cudaGraphNode_t hSrc, cudaGraphNode_t hDst) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphKernelNodeCopyAttributes(hSrc, hDst) + + +cdef cudaError_t _cudaGraphKernelNodeGetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, cudaKernelNodeAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphKernelNodeGetAttribute(hNode, attr, value_out) + + +cdef cudaError_t _cudaGraphKernelNodeSetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, const cudaKernelNodeAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphKernelNodeSetAttribute(hNode, attr, value) + + +cdef cudaError_t _cudaGraphAddMemcpyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddMemcpyNode(pGraphNode, graph, pDependencies, numDependencies, pCopyParams) + + +cdef cudaError_t _cudaGraphAddMemcpyNode1D(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddMemcpyNode1D(pGraphNode, graph, pDependencies, numDependencies, dst, src, count, kind) + + +cdef cudaError_t _cudaGraphMemcpyNodeGetParams(cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemcpyNodeGetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphMemcpyNodeSetParams(cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemcpyNodeSetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphMemcpyNodeSetParams1D(cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemcpyNodeSetParams1D(node, dst, src, count, kind) + + +cdef cudaError_t _cudaGraphAddMemsetNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddMemsetNode(pGraphNode, graph, pDependencies, numDependencies, pMemsetParams) + + +cdef cudaError_t _cudaGraphMemsetNodeGetParams(cudaGraphNode_t node, cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemsetNodeGetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphMemsetNodeSetParams(cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemsetNodeSetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphAddHostNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddHostNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) + + +cdef cudaError_t _cudaGraphHostNodeGetParams(cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphHostNodeGetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphHostNodeSetParams(cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphHostNodeSetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphAddChildGraphNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddChildGraphNode(pGraphNode, graph, pDependencies, numDependencies, childGraph) + + +cdef cudaError_t _cudaGraphChildGraphNodeGetGraph(cudaGraphNode_t node, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphChildGraphNodeGetGraph(node, pGraph) + + +cdef cudaError_t _cudaGraphAddEmptyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddEmptyNode(pGraphNode, graph, pDependencies, numDependencies) + + +cdef cudaError_t _cudaGraphAddEventRecordNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddEventRecordNode(pGraphNode, graph, pDependencies, numDependencies, event) + + +cdef cudaError_t _cudaGraphEventRecordNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphEventRecordNodeGetEvent(node, event_out) + + +cdef cudaError_t _cudaGraphEventRecordNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphEventRecordNodeSetEvent(node, event) + + +cdef cudaError_t _cudaGraphAddEventWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddEventWaitNode(pGraphNode, graph, pDependencies, numDependencies, event) + + +cdef cudaError_t _cudaGraphEventWaitNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphEventWaitNodeGetEvent(node, event_out) + + +cdef cudaError_t _cudaGraphEventWaitNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphEventWaitNodeSetEvent(node, event) + + +cdef cudaError_t _cudaGraphAddExternalSemaphoresSignalNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddExternalSemaphoresSignalNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + + +cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExternalSemaphoresSignalNodeGetParams(hNode, params_out) + + +cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams) + + +cdef cudaError_t _cudaGraphAddExternalSemaphoresWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddExternalSemaphoresWaitNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + + +cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExternalSemaphoresWaitNodeGetParams(hNode, params_out) + + +cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams) + + +cdef cudaError_t _cudaGraphAddMemAllocNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddMemAllocNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + + +cdef cudaError_t _cudaGraphMemAllocNodeGetParams(cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemAllocNodeGetParams(node, params_out) + + +cdef cudaError_t _cudaGraphAddMemFreeNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddMemFreeNode(pGraphNode, graph, pDependencies, numDependencies, dptr) + + +cdef cudaError_t _cudaGraphMemFreeNodeGetParams(cudaGraphNode_t node, void* dptr_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemFreeNodeGetParams(node, dptr_out) + + +cdef cudaError_t _cudaDeviceGraphMemTrim(int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGraphMemTrim(device) + + +cdef cudaError_t _cudaDeviceGetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetGraphMemAttribute(device, attr, value) + + +cdef cudaError_t _cudaDeviceSetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceSetGraphMemAttribute(device, attr, value) + + +cdef cudaError_t _cudaGraphClone(cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphClone(pGraphClone, originalGraph) + + +cdef cudaError_t _cudaGraphNodeFindInClone(cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeFindInClone(pNode, originalNode, clonedGraph) + + +cdef cudaError_t _cudaGraphNodeGetType(cudaGraphNode_t node, cudaGraphNodeType* pType) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetType(node, pType) + + +cdef cudaError_t _cudaGraphGetNodes(cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphGetNodes(graph, nodes, numNodes) + + +cdef cudaError_t _cudaGraphGetRootNodes(cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphGetRootNodes(graph, pRootNodes, pNumRootNodes) + + +cdef cudaError_t _cudaGraphGetEdges(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphGetEdges(graph, from_, to, numEdges) + + +cdef cudaError_t _cudaGraphGetEdges_v2(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphGetEdges_v2(graph, from_, to, edgeData, numEdges) + + +cdef cudaError_t _cudaGraphNodeGetDependencies(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetDependencies(node, pDependencies, pNumDependencies) + + +cdef cudaError_t _cudaGraphNodeGetDependencies_v2(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetDependencies_v2(node, pDependencies, edgeData, pNumDependencies) + + +cdef cudaError_t _cudaGraphNodeGetDependentNodes(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetDependentNodes(node, pDependentNodes, pNumDependentNodes) + + +cdef cudaError_t _cudaGraphNodeGetDependentNodes_v2(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetDependentNodes_v2(node, pDependentNodes, edgeData, pNumDependentNodes) + + +cdef cudaError_t _cudaGraphAddDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddDependencies(graph, from_, to, numDependencies) + + +cdef cudaError_t _cudaGraphAddDependencies_v2(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddDependencies_v2(graph, from_, to, edgeData, numDependencies) + + +cdef cudaError_t _cudaGraphRemoveDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphRemoveDependencies(graph, from_, to, numDependencies) + + +cdef cudaError_t _cudaGraphRemoveDependencies_v2(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphRemoveDependencies_v2(graph, from_, to, edgeData, numDependencies) + + +cdef cudaError_t _cudaGraphDestroyNode(cudaGraphNode_t node) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphDestroyNode(node) + + +cdef cudaError_t _cudaGraphInstantiate(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphInstantiate(pGraphExec, graph, flags) + + +cdef cudaError_t _cudaGraphInstantiateWithFlags(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphInstantiateWithFlags(pGraphExec, graph, flags) + + +cdef cudaError_t _cudaGraphInstantiateWithParams(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphInstantiateWithParams(pGraphExec, graph, instantiateParams) + + +cdef cudaError_t _cudaGraphExecGetFlags(cudaGraphExec_t graphExec, unsigned long long* flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecGetFlags(graphExec, flags) + + +cdef cudaError_t _cudaGraphExecKernelNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams) + + +cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams) + + +cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams1D(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, count, kind) + + +cdef cudaError_t _cudaGraphExecMemsetNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams) + + +cdef cudaError_t _cudaGraphExecHostNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams) + + +cdef cudaError_t _cudaGraphExecChildGraphNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph) + + +cdef cudaError_t _cudaGraphExecEventRecordNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event) + + +cdef cudaError_t _cudaGraphExecEventWaitNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event) + + +cdef cudaError_t _cudaGraphExecExternalSemaphoresSignalNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams) + + +cdef cudaError_t _cudaGraphExecExternalSemaphoresWaitNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams) + + +cdef cudaError_t _cudaGraphNodeSetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeSetEnabled(hGraphExec, hNode, isEnabled) + + +cdef cudaError_t _cudaGraphNodeGetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetEnabled(hGraphExec, hNode, isEnabled) + + +cdef cudaError_t _cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecUpdate(hGraphExec, hGraph, resultInfo) + + +cdef cudaError_t _cudaGraphUpload(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphUpload(graphExec, stream) + + +cdef cudaError_t _cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphLaunch(graphExec, stream) + + +cdef cudaError_t _cudaGraphExecDestroy(cudaGraphExec_t graphExec) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecDestroy(graphExec) + + +cdef cudaError_t _cudaGraphDestroy(cudaGraph_t graph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphDestroy(graph) + + +cdef cudaError_t _cudaGraphDebugDotPrint(cudaGraph_t graph, const char* path, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphDebugDotPrint(graph, path, flags) + + +cdef cudaError_t _cudaUserObjectCreate(cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaUserObjectCreate(object_out, ptr, destroy, initialRefcount, flags) + + +cdef cudaError_t _cudaUserObjectRetain(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaUserObjectRetain(object, count) + + +cdef cudaError_t _cudaUserObjectRelease(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaUserObjectRelease(object, count) + + +cdef cudaError_t _cudaGraphRetainUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphRetainUserObject(graph, object, count, flags) + + +cdef cudaError_t _cudaGraphReleaseUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphReleaseUserObject(graph, object, count) + + +cdef cudaError_t _cudaGraphAddNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + + +cdef cudaError_t _cudaGraphAddNode_v2(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddNode_v2(pGraphNode, graph, pDependencies, dependencyData, numDependencies, nodeParams) + + +cdef cudaError_t _cudaGraphNodeSetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeSetParams(node, nodeParams) + + +cdef cudaError_t _cudaGraphExecNodeSetParams(cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecNodeSetParams(graphExec, node, nodeParams) + + +cdef cudaError_t _cudaGraphConditionalHandleCreate(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphConditionalHandleCreate(pHandle_out, graph, defaultLaunchValue, flags) + + +cdef cudaError_t _cudaGetDriverEntryPoint(const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetDriverEntryPoint(symbol, funcPtr, flags, driverStatus) + + +cdef cudaError_t _cudaGetDriverEntryPointByVersion(const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetDriverEntryPointByVersion(symbol, funcPtr, cudaVersion, flags, driverStatus) + + +cdef cudaError_t _cudaLibraryLoadData(cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryLoadData(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) + + +cdef cudaError_t _cudaLibraryLoadFromFile(cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryLoadFromFile(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) + + +cdef cudaError_t _cudaLibraryUnload(cudaLibrary_t library) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryUnload(library) + + +cdef cudaError_t _cudaLibraryGetKernel(cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryGetKernel(pKernel, library, name) + + +cdef cudaError_t _cudaLibraryGetGlobal(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryGetGlobal(dptr, bytes, library, name) + + +cdef cudaError_t _cudaLibraryGetManaged(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryGetManaged(dptr, bytes, library, name) + + +cdef cudaError_t _cudaLibraryGetUnifiedFunction(void** fptr, cudaLibrary_t library, const char* symbol) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryGetUnifiedFunction(fptr, library, symbol) + + +cdef cudaError_t _cudaLibraryGetKernelCount(unsigned int* count, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryGetKernelCount(count, lib) + + +cdef cudaError_t _cudaLibraryEnumerateKernels(cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryEnumerateKernels(kernels, numKernels, lib) + + +cdef cudaError_t _cudaKernelSetAttributeForDevice(cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaKernelSetAttributeForDevice(kernel, attr, value, device) + + +cdef cudaError_t _cudaGetExportTable(const void** ppExportTable, const cudaUUID_t* pExportTableId) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetExportTable(ppExportTable, pExportTableId) + + +cdef cudaError_t _cudaGetKernel(cudaKernel_t* kernelPtr, const void* entryFuncAddr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetKernel(kernelPtr, entryFuncAddr) + + +cdef cudaError_t _cudaProfilerStart() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaProfilerStart() + + +cdef cudaError_t _cudaProfilerStop() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaProfilerStop() diff --git a/cuda_bindings_12/cuda/bindings/_bindings/cyruntime.pyx.in b/cuda_bindings_12/cuda/bindings/_internal/runtime_windows.pyx similarity index 50% rename from cuda_bindings_12/cuda/bindings/_bindings/cyruntime.pyx.in rename to cuda_bindings_12/cuda/bindings/_internal/runtime_windows.pyx index eb86cdbf5aa5..554704fd45d1 100644 --- a/cuda_bindings_12/cuda/bindings/_bindings/cyruntime.pyx.in +++ b/cuda_bindings_12/cuda/bindings/_internal/runtime_windows.pyx @@ -1,2659 +1,2987 @@ # SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# # SPDX-License-Identifier: Apache-2.0 - +# # This code was automatically generated with version 12.9.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=3eb7a8ac79c0415fa1dfeb13d6f9f72ff7ff9b867f08b683c267219576c8df15 -include "../cyruntime_functions.pxi" +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=d4a67ab3a348485ac68a88a121f465999c708581e43f130ce3b94be438bcc5d0 import os -cimport cuda.bindings._bindings.cyruntime_ptds as ptds + +from libc.stdint cimport uintptr_t + +from cuda.pathfinder import load_nvidia_dynamic_lib +cimport cuda.bindings._lib.windll as windll +cimport cuda.bindings._internal.runtime_ptds as ptds cimport cython + +############################################################################### +# Per-thread default stream dispatch +############################################################################### + cdef bint __cudaPythonInit = False cdef bint __usePTDS = False -cdef int _cudaPythonInit() except -1 nogil: - global __cudaPythonInit - global __usePTDS - with gil: - __usePTDS = bool(int(os.getenv('CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM', default=0))) - __cudaPythonInit = True - return __usePTDS +cdef int _cudaPythonInit() except -1 nogil: + global __cudaPythonInit + global __usePTDS + with gil: + __usePTDS = bool(int(os.getenv('CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM', default=0))) + __cudaPythonInit = True + return __usePTDS -# Create a very small function to check whether we are init'ed, so the C -# compiler can inline it. cdef inline int cudaPythonInit() except -1 nogil: if __cudaPythonInit: return __usePTDS return _cudaPythonInit() -{{if 'cudaDeviceReset' in found_functions}} + +############################################################################### +# EGL/GL/VDPAU helpers (implementations delegating to driver EGL/VDPAU/GL APIs) +############################################################################### + +include "../_lib/cyruntime/cyruntime.pxi" + + +############################################################################### +# getLocalRuntimeVersion — dynamically loads cudart to read its own version +############################################################################### + +cdef cudaError_t _getLocalRuntimeVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil: + # Load cudart dynamically to read its embedded version number. + with gil: + loaded_dl = load_nvidia_dynamic_lib("cudart") + handle = loaded_dl._handle_uint + + cdef void* __cudaRuntimeGetVersion = windll.GetProcAddress(handle, b'cudaRuntimeGetVersion') + + if __cudaRuntimeGetVersion == NULL: + with gil: + raise RuntimeError(f'Function "cudaRuntimeGetVersion" not found in {loaded_dl.abs_path}') + + # We explicitly do *NOT* cleanup the library handle here — see runtime_linux.pyx comment. + + cdef cudaError_t err = cudaSuccess + err = ( __cudaRuntimeGetVersion)(runtimeVersion) + return err + + +############################################################################### +# C function declarations for static cudart (avoids infinite recursion through +# the same-named Cython wrappers imported via `from ..cyruntime cimport *`) +############################################################################### + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceReset "cudaDeviceReset" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSynchronize "cudaDeviceSynchronize" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetLimit "cudaDeviceSetLimit" (cudaLimit limit, size_t value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetLimit "cudaDeviceGetLimit" (size_t* pValue, cudaLimit limit) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetTexture1DLinearMaxWidth "cudaDeviceGetTexture1DLinearMaxWidth" (size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetCacheConfig "cudaDeviceGetCacheConfig" (cudaFuncCache* pCacheConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetStreamPriorityRange "cudaDeviceGetStreamPriorityRange" (int* leastPriority, int* greatestPriority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetCacheConfig "cudaDeviceSetCacheConfig" (cudaFuncCache cacheConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetByPCIBusId "cudaDeviceGetByPCIBusId" (int* device, const char* pciBusId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetPCIBusId "cudaDeviceGetPCIBusId" (char* pciBusId, int len, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcGetEventHandle "cudaIpcGetEventHandle" (cudaIpcEventHandle_t* handle, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcOpenEventHandle "cudaIpcOpenEventHandle" (cudaEvent_t* event, cudaIpcEventHandle_t handle) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcGetMemHandle "cudaIpcGetMemHandle" (cudaIpcMemHandle_t* handle, void* devPtr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcOpenMemHandle "cudaIpcOpenMemHandle" (void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcCloseMemHandle "cudaIpcCloseMemHandle" (void* devPtr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceFlushGPUDirectRDMAWrites "cudaDeviceFlushGPUDirectRDMAWrites" (cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceRegisterAsyncNotification "cudaDeviceRegisterAsyncNotification" (int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceUnregisterAsyncNotification "cudaDeviceUnregisterAsyncNotification" (int device, cudaAsyncCallbackHandle_t callback) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetSharedMemConfig "cudaDeviceGetSharedMemConfig" (cudaSharedMemConfig* pConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetSharedMemConfig "cudaDeviceSetSharedMemConfig" (cudaSharedMemConfig config) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetLastError "cudaGetLastError" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaPeekAtLastError "cudaPeekAtLastError" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + const char* _static_cudaGetErrorName "cudaGetErrorName" (cudaError_t error) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + const char* _static_cudaGetErrorString "cudaGetErrorString" (cudaError_t error) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDeviceCount "cudaGetDeviceCount" (int* count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDeviceProperties_v2 "cudaGetDeviceProperties_v2" (cudaDeviceProp* prop, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetAttribute "cudaDeviceGetAttribute" (int* value, cudaDeviceAttr attr, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetDefaultMemPool "cudaDeviceGetDefaultMemPool" (cudaMemPool_t* memPool, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetMemPool "cudaDeviceSetMemPool" (int device, cudaMemPool_t memPool) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetMemPool "cudaDeviceGetMemPool" (cudaMemPool_t* memPool, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetNvSciSyncAttributes "cudaDeviceGetNvSciSyncAttributes" (void* nvSciSyncAttrList, int device, int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetP2PAttribute "cudaDeviceGetP2PAttribute" (int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaChooseDevice "cudaChooseDevice" (int* device, const cudaDeviceProp* prop) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaInitDevice "cudaInitDevice" (int device, unsigned int deviceFlags, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaSetDevice "cudaSetDevice" (int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDevice "cudaGetDevice" (int* device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaSetDeviceFlags "cudaSetDeviceFlags" (unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDeviceFlags "cudaGetDeviceFlags" (unsigned int* flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCreate "cudaStreamCreate" (cudaStream_t* pStream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCreateWithFlags "cudaStreamCreateWithFlags" (cudaStream_t* pStream, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCreateWithPriority "cudaStreamCreateWithPriority" (cudaStream_t* pStream, unsigned int flags, int priority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetPriority "cudaStreamGetPriority" (cudaStream_t hStream, int* priority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetFlags "cudaStreamGetFlags" (cudaStream_t hStream, unsigned int* flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetId "cudaStreamGetId" (cudaStream_t hStream, unsigned long long* streamId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetDevice "cudaStreamGetDevice" (cudaStream_t hStream, int* device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaCtxResetPersistingL2Cache "cudaCtxResetPersistingL2Cache" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCopyAttributes "cudaStreamCopyAttributes" (cudaStream_t dst, cudaStream_t src) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetAttribute "cudaStreamGetAttribute" (cudaStream_t hStream, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamSetAttribute "cudaStreamSetAttribute" (cudaStream_t hStream, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamDestroy "cudaStreamDestroy" (cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamWaitEvent "cudaStreamWaitEvent" (cudaStream_t stream, cudaEvent_t event, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamAddCallback "cudaStreamAddCallback" (cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamSynchronize "cudaStreamSynchronize" (cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamQuery "cudaStreamQuery" (cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamAttachMemAsync "cudaStreamAttachMemAsync" (cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamBeginCapture "cudaStreamBeginCapture" (cudaStream_t stream, cudaStreamCaptureMode mode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamBeginCaptureToGraph "cudaStreamBeginCaptureToGraph" (cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaThreadExchangeStreamCaptureMode "cudaThreadExchangeStreamCaptureMode" (cudaStreamCaptureMode* mode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamEndCapture "cudaStreamEndCapture" (cudaStream_t stream, cudaGraph_t* pGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamIsCapturing "cudaStreamIsCapturing" (cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetCaptureInfo_v2 "cudaStreamGetCaptureInfo_v2" (cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, size_t* numDependencies_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetCaptureInfo_v3 "cudaStreamGetCaptureInfo_v3" (cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamUpdateCaptureDependencies "cudaStreamUpdateCaptureDependencies" (cudaStream_t stream, cudaGraphNode_t* dependencies, size_t numDependencies, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamUpdateCaptureDependencies_v2 "cudaStreamUpdateCaptureDependencies_v2" (cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventCreate "cudaEventCreate" (cudaEvent_t* event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventCreateWithFlags "cudaEventCreateWithFlags" (cudaEvent_t* event, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventRecord "cudaEventRecord" (cudaEvent_t event, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventRecordWithFlags "cudaEventRecordWithFlags" (cudaEvent_t event, cudaStream_t stream, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventQuery "cudaEventQuery" (cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventSynchronize "cudaEventSynchronize" (cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventDestroy "cudaEventDestroy" (cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventElapsedTime "cudaEventElapsedTime" (float* ms, cudaEvent_t start, cudaEvent_t end) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventElapsedTime_v2 "cudaEventElapsedTime_v2" (float* ms, cudaEvent_t start, cudaEvent_t end) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaImportExternalMemory "cudaImportExternalMemory" (cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExternalMemoryGetMappedBuffer "cudaExternalMemoryGetMappedBuffer" (void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExternalMemoryGetMappedMipmappedArray "cudaExternalMemoryGetMappedMipmappedArray" (cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroyExternalMemory "cudaDestroyExternalMemory" (cudaExternalMemory_t extMem) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaImportExternalSemaphore "cudaImportExternalSemaphore" (cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaSignalExternalSemaphoresAsync_v2 "cudaSignalExternalSemaphoresAsync_v2" (const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaWaitExternalSemaphoresAsync_v2 "cudaWaitExternalSemaphoresAsync_v2" (const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroyExternalSemaphore "cudaDestroyExternalSemaphore" (cudaExternalSemaphore_t extSem) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncSetCacheConfig "cudaFuncSetCacheConfig" (const void* func, cudaFuncCache cacheConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetAttributes "cudaFuncGetAttributes" (cudaFuncAttributes* attr, const void* func) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncSetAttribute "cudaFuncSetAttribute" (const void* func, cudaFuncAttribute attr, int value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetName "cudaFuncGetName" (const char** name, const void* func) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetParamInfo "cudaFuncGetParamInfo" (const void* func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLaunchHostFunc "cudaLaunchHostFunc" (cudaStream_t stream, cudaHostFn_t fn, void* userData) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncSetSharedMemConfig "cudaFuncSetSharedMemConfig" (const void* func, cudaSharedMemConfig config) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaOccupancyMaxActiveBlocksPerMultiprocessor "cudaOccupancyMaxActiveBlocksPerMultiprocessor" (int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaOccupancyAvailableDynamicSMemPerBlock "cudaOccupancyAvailableDynamicSMemPerBlock" (size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags "cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags" (int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocManaged "cudaMallocManaged" (void** devPtr, size_t size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMalloc "cudaMalloc" (void** devPtr, size_t size) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocHost "cudaMallocHost" (void** ptr, size_t size) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocPitch "cudaMallocPitch" (void** devPtr, size_t* pitch, size_t width, size_t height) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocArray "cudaMallocArray" (cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFree "cudaFree" (void* devPtr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeHost "cudaFreeHost" (void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeArray "cudaFreeArray" (cudaArray_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeMipmappedArray "cudaFreeMipmappedArray" (cudaMipmappedArray_t mipmappedArray) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostAlloc "cudaHostAlloc" (void** pHost, size_t size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostRegister "cudaHostRegister" (void* ptr, size_t size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostUnregister "cudaHostUnregister" (void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostGetDevicePointer "cudaHostGetDevicePointer" (void** pDevice, void* pHost, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostGetFlags "cudaHostGetFlags" (unsigned int* pFlags, void* pHost) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMalloc3D "cudaMalloc3D" (cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMalloc3DArray "cudaMalloc3DArray" (cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocMipmappedArray "cudaMallocMipmappedArray" (cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetMipmappedArrayLevel "cudaGetMipmappedArrayLevel" (cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3D "cudaMemcpy3D" (const cudaMemcpy3DParms* p) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DPeer "cudaMemcpy3DPeer" (const cudaMemcpy3DPeerParms* p) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DAsync "cudaMemcpy3DAsync" (const cudaMemcpy3DParms* p, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DPeerAsync "cudaMemcpy3DPeerAsync" (const cudaMemcpy3DPeerParms* p, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemGetInfo "cudaMemGetInfo" (size_t* free, size_t* total) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetInfo "cudaArrayGetInfo" (cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetPlane "cudaArrayGetPlane" (cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetMemoryRequirements "cudaArrayGetMemoryRequirements" (cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMipmappedArrayGetMemoryRequirements "cudaMipmappedArrayGetMemoryRequirements" (cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetSparseProperties "cudaArrayGetSparseProperties" (cudaArraySparseProperties* sparseProperties, cudaArray_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMipmappedArrayGetSparseProperties "cudaMipmappedArrayGetSparseProperties" (cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy "cudaMemcpy" (void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyPeer "cudaMemcpyPeer" (void* dst, int dstDevice, const void* src, int srcDevice, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2D "cudaMemcpy2D" (void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DToArray "cudaMemcpy2DToArray" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DFromArray "cudaMemcpy2DFromArray" (void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DArrayToArray "cudaMemcpy2DArrayToArray" (cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyAsync "cudaMemcpyAsync" (void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyPeerAsync "cudaMemcpyPeerAsync" (void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyBatchAsync "cudaMemcpyBatchAsync" (void** dsts, void** srcs, size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, size_t* failIdx, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DBatchAsync "cudaMemcpy3DBatchAsync" (size_t numOps, cudaMemcpy3DBatchOp* opList, size_t* failIdx, unsigned long long flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DAsync "cudaMemcpy2DAsync" (void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DToArrayAsync "cudaMemcpy2DToArrayAsync" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DFromArrayAsync "cudaMemcpy2DFromArrayAsync" (void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset "cudaMemset" (void* devPtr, int value, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset2D "cudaMemset2D" (void* devPtr, size_t pitch, int value, size_t width, size_t height) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset3D "cudaMemset3D" (cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemsetAsync "cudaMemsetAsync" (void* devPtr, int value, size_t count, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset2DAsync "cudaMemset2DAsync" (void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset3DAsync "cudaMemset3DAsync" (cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPrefetchAsync "cudaMemPrefetchAsync" (const void* devPtr, size_t count, int dstDevice, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPrefetchAsync_v2 "cudaMemPrefetchAsync_v2" (const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemAdvise "cudaMemAdvise" (const void* devPtr, size_t count, cudaMemoryAdvise advice, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemAdvise_v2 "cudaMemAdvise_v2" (const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemRangeGetAttribute "cudaMemRangeGetAttribute" (void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemRangeGetAttributes "cudaMemRangeGetAttributes" (void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyToArray "cudaMemcpyToArray" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyFromArray "cudaMemcpyFromArray" (void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyArrayToArray "cudaMemcpyArrayToArray" (cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyToArrayAsync "cudaMemcpyToArrayAsync" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyFromArrayAsync "cudaMemcpyFromArrayAsync" (void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocAsync "cudaMallocAsync" (void** devPtr, size_t size, cudaStream_t hStream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeAsync "cudaFreeAsync" (void* devPtr, cudaStream_t hStream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolTrimTo "cudaMemPoolTrimTo" (cudaMemPool_t memPool, size_t minBytesToKeep) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolSetAttribute "cudaMemPoolSetAttribute" (cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolGetAttribute "cudaMemPoolGetAttribute" (cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolSetAccess "cudaMemPoolSetAccess" (cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolGetAccess "cudaMemPoolGetAccess" (cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolCreate "cudaMemPoolCreate" (cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolDestroy "cudaMemPoolDestroy" (cudaMemPool_t memPool) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocFromPoolAsync "cudaMallocFromPoolAsync" (void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolExportToShareableHandle "cudaMemPoolExportToShareableHandle" (void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolImportFromShareableHandle "cudaMemPoolImportFromShareableHandle" (cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolExportPointer "cudaMemPoolExportPointer" (cudaMemPoolPtrExportData* exportData, void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolImportPointer "cudaMemPoolImportPointer" (void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaPointerGetAttributes "cudaPointerGetAttributes" (cudaPointerAttributes* attributes, const void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceCanAccessPeer "cudaDeviceCanAccessPeer" (int* canAccessPeer, int device, int peerDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceEnablePeerAccess "cudaDeviceEnablePeerAccess" (int peerDevice, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceDisablePeerAccess "cudaDeviceDisablePeerAccess" (int peerDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsUnregisterResource "cudaGraphicsUnregisterResource" (cudaGraphicsResource_t resource) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsResourceSetMapFlags "cudaGraphicsResourceSetMapFlags" (cudaGraphicsResource_t resource, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsMapResources "cudaGraphicsMapResources" (int count, cudaGraphicsResource_t* resources, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsUnmapResources "cudaGraphicsUnmapResources" (int count, cudaGraphicsResource_t* resources, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsResourceGetMappedPointer "cudaGraphicsResourceGetMappedPointer" (void** devPtr, size_t* size, cudaGraphicsResource_t resource) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsSubResourceGetMappedArray "cudaGraphicsSubResourceGetMappedArray" (cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsResourceGetMappedMipmappedArray "cudaGraphicsResourceGetMappedMipmappedArray" (cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetChannelDesc "cudaGetChannelDesc" (cudaChannelFormatDesc* desc, cudaArray_const_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaChannelFormatDesc _static_cudaCreateChannelDesc "cudaCreateChannelDesc" (int x, int y, int z, int w, cudaChannelFormatKind f) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaCreateTextureObject "cudaCreateTextureObject" (cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroyTextureObject "cudaDestroyTextureObject" (cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetTextureObjectResourceDesc "cudaGetTextureObjectResourceDesc" (cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetTextureObjectTextureDesc "cudaGetTextureObjectTextureDesc" (cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetTextureObjectResourceViewDesc "cudaGetTextureObjectResourceViewDesc" (cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaCreateSurfaceObject "cudaCreateSurfaceObject" (cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroySurfaceObject "cudaDestroySurfaceObject" (cudaSurfaceObject_t surfObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetSurfaceObjectResourceDesc "cudaGetSurfaceObjectResourceDesc" (cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDriverGetVersion "cudaDriverGetVersion" (int* driverVersion) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaRuntimeGetVersion "cudaRuntimeGetVersion" (int* runtimeVersion) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphCreate "cudaGraphCreate" (cudaGraph_t* pGraph, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddKernelNode "cudaGraphAddKernelNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeGetParams "cudaGraphKernelNodeGetParams" (cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeSetParams "cudaGraphKernelNodeSetParams" (cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeCopyAttributes "cudaGraphKernelNodeCopyAttributes" (cudaGraphNode_t hSrc, cudaGraphNode_t hDst) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeGetAttribute "cudaGraphKernelNodeGetAttribute" (cudaGraphNode_t hNode, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeSetAttribute "cudaGraphKernelNodeSetAttribute" (cudaGraphNode_t hNode, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemcpyNode "cudaGraphAddMemcpyNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemcpyNode1D "cudaGraphAddMemcpyNode1D" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemcpyNodeGetParams "cudaGraphMemcpyNodeGetParams" (cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemcpyNodeSetParams "cudaGraphMemcpyNodeSetParams" (cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemcpyNodeSetParams1D "cudaGraphMemcpyNodeSetParams1D" (cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemsetNode "cudaGraphAddMemsetNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemsetNodeGetParams "cudaGraphMemsetNodeGetParams" (cudaGraphNode_t node, cudaMemsetParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemsetNodeSetParams "cudaGraphMemsetNodeSetParams" (cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddHostNode "cudaGraphAddHostNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphHostNodeGetParams "cudaGraphHostNodeGetParams" (cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphHostNodeSetParams "cudaGraphHostNodeSetParams" (cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddChildGraphNode "cudaGraphAddChildGraphNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphChildGraphNodeGetGraph "cudaGraphChildGraphNodeGetGraph" (cudaGraphNode_t node, cudaGraph_t* pGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddEmptyNode "cudaGraphAddEmptyNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddEventRecordNode "cudaGraphAddEventRecordNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventRecordNodeGetEvent "cudaGraphEventRecordNodeGetEvent" (cudaGraphNode_t node, cudaEvent_t* event_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventRecordNodeSetEvent "cudaGraphEventRecordNodeSetEvent" (cudaGraphNode_t node, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddEventWaitNode "cudaGraphAddEventWaitNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventWaitNodeGetEvent "cudaGraphEventWaitNodeGetEvent" (cudaGraphNode_t node, cudaEvent_t* event_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventWaitNodeSetEvent "cudaGraphEventWaitNodeSetEvent" (cudaGraphNode_t node, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddExternalSemaphoresSignalNode "cudaGraphAddExternalSemaphoresSignalNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresSignalNodeGetParams "cudaGraphExternalSemaphoresSignalNodeGetParams" (cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresSignalNodeSetParams "cudaGraphExternalSemaphoresSignalNodeSetParams" (cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddExternalSemaphoresWaitNode "cudaGraphAddExternalSemaphoresWaitNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresWaitNodeGetParams "cudaGraphExternalSemaphoresWaitNodeGetParams" (cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresWaitNodeSetParams "cudaGraphExternalSemaphoresWaitNodeSetParams" (cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemAllocNode "cudaGraphAddMemAllocNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemAllocNodeGetParams "cudaGraphMemAllocNodeGetParams" (cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemFreeNode "cudaGraphAddMemFreeNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemFreeNodeGetParams "cudaGraphMemFreeNodeGetParams" (cudaGraphNode_t node, void* dptr_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGraphMemTrim "cudaDeviceGraphMemTrim" (int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetGraphMemAttribute "cudaDeviceGetGraphMemAttribute" (int device, cudaGraphMemAttributeType attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetGraphMemAttribute "cudaDeviceSetGraphMemAttribute" (int device, cudaGraphMemAttributeType attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphClone "cudaGraphClone" (cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeFindInClone "cudaGraphNodeFindInClone" (cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetType "cudaGraphNodeGetType" (cudaGraphNode_t node, cudaGraphNodeType* pType) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetNodes "cudaGraphGetNodes" (cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetRootNodes "cudaGraphGetRootNodes" (cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetEdges "cudaGraphGetEdges" (cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, size_t* numEdges) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetEdges_v2 "cudaGraphGetEdges_v2" (cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetDependencies "cudaGraphNodeGetDependencies" (cudaGraphNode_t node, cudaGraphNode_t* pDependencies, size_t* pNumDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetDependencies_v2 "cudaGraphNodeGetDependencies_v2" (cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetDependentNodes "cudaGraphNodeGetDependentNodes" (cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, size_t* pNumDependentNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetDependentNodes_v2 "cudaGraphNodeGetDependentNodes_v2" (cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddDependencies "cudaGraphAddDependencies" (cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddDependencies_v2 "cudaGraphAddDependencies_v2" (cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphRemoveDependencies "cudaGraphRemoveDependencies" (cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphRemoveDependencies_v2 "cudaGraphRemoveDependencies_v2" (cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphDestroyNode "cudaGraphDestroyNode" (cudaGraphNode_t node) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphInstantiate "cudaGraphInstantiate" (cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphInstantiateWithFlags "cudaGraphInstantiateWithFlags" (cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphInstantiateWithParams "cudaGraphInstantiateWithParams" (cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecGetFlags "cudaGraphExecGetFlags" (cudaGraphExec_t graphExec, unsigned long long* flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecKernelNodeSetParams "cudaGraphExecKernelNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecMemcpyNodeSetParams "cudaGraphExecMemcpyNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecMemcpyNodeSetParams1D "cudaGraphExecMemcpyNodeSetParams1D" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecMemsetNodeSetParams "cudaGraphExecMemsetNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecHostNodeSetParams "cudaGraphExecHostNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecChildGraphNodeSetParams "cudaGraphExecChildGraphNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecEventRecordNodeSetEvent "cudaGraphExecEventRecordNodeSetEvent" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecEventWaitNodeSetEvent "cudaGraphExecEventWaitNodeSetEvent" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecExternalSemaphoresSignalNodeSetParams "cudaGraphExecExternalSemaphoresSignalNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecExternalSemaphoresWaitNodeSetParams "cudaGraphExecExternalSemaphoresWaitNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeSetEnabled "cudaGraphNodeSetEnabled" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetEnabled "cudaGraphNodeGetEnabled" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecUpdate "cudaGraphExecUpdate" (cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphUpload "cudaGraphUpload" (cudaGraphExec_t graphExec, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphLaunch "cudaGraphLaunch" (cudaGraphExec_t graphExec, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecDestroy "cudaGraphExecDestroy" (cudaGraphExec_t graphExec) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphDestroy "cudaGraphDestroy" (cudaGraph_t graph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphDebugDotPrint "cudaGraphDebugDotPrint" (cudaGraph_t graph, const char* path, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaUserObjectCreate "cudaUserObjectCreate" (cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaUserObjectRetain "cudaUserObjectRetain" (cudaUserObject_t object, unsigned int count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaUserObjectRelease "cudaUserObjectRelease" (cudaUserObject_t object, unsigned int count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphRetainUserObject "cudaGraphRetainUserObject" (cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphReleaseUserObject "cudaGraphReleaseUserObject" (cudaGraph_t graph, cudaUserObject_t object, unsigned int count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddNode "cudaGraphAddNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddNode_v2 "cudaGraphAddNode_v2" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeSetParams "cudaGraphNodeSetParams" (cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecNodeSetParams "cudaGraphExecNodeSetParams" (cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphConditionalHandleCreate "cudaGraphConditionalHandleCreate" (cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDriverEntryPoint "cudaGetDriverEntryPoint" (const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDriverEntryPointByVersion "cudaGetDriverEntryPointByVersion" (const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryLoadData "cudaLibraryLoadData" (cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryLoadFromFile "cudaLibraryLoadFromFile" (cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryUnload "cudaLibraryUnload" (cudaLibrary_t library) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetKernel "cudaLibraryGetKernel" (cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetGlobal "cudaLibraryGetGlobal" (void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetManaged "cudaLibraryGetManaged" (void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetUnifiedFunction "cudaLibraryGetUnifiedFunction" (void** fptr, cudaLibrary_t library, const char* symbol) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetKernelCount "cudaLibraryGetKernelCount" (unsigned int* count, cudaLibrary_t lib) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryEnumerateKernels "cudaLibraryEnumerateKernels" (cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaKernelSetAttributeForDevice "cudaKernelSetAttributeForDevice" (cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetExportTable "cudaGetExportTable" (const void** ppExportTable, const cudaUUID_t* pExportTableId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetKernel "cudaGetKernel" (cudaKernel_t* kernelPtr, const void* entryFuncAddr) noexcept + +cdef extern from 'cuda_profiler_api.h' nogil: + cudaError_t _static_cudaProfilerStart "cudaProfilerStart" () noexcept + +cdef extern from 'cuda_profiler_api.h' nogil: + cudaError_t _static_cudaProfilerStop "cudaProfilerStop" () noexcept + + + +############################################################################### +# Wrapper functions +############################################################################### cdef cudaError_t _cudaDeviceReset() except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceReset() - return cudaDeviceReset() -{{endif}} + return _static_cudaDeviceReset() -{{if 'cudaDeviceSynchronize' in found_functions}} cdef cudaError_t _cudaDeviceSynchronize() except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceSynchronize() - return cudaDeviceSynchronize() -{{endif}} + return _static_cudaDeviceSynchronize() -{{if 'cudaDeviceSetLimit' in found_functions}} cdef cudaError_t _cudaDeviceSetLimit(cudaLimit limit, size_t value) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceSetLimit(limit, value) - return cudaDeviceSetLimit(limit, value) -{{endif}} + return _static_cudaDeviceSetLimit(limit, value) -{{if 'cudaDeviceGetLimit' in found_functions}} cdef cudaError_t _cudaDeviceGetLimit(size_t* pValue, cudaLimit limit) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceGetLimit(pValue, limit) - return cudaDeviceGetLimit(pValue, limit) -{{endif}} + return _static_cudaDeviceGetLimit(pValue, limit) -{{if 'cudaDeviceGetTexture1DLinearMaxWidth' in found_functions}} cdef cudaError_t _cudaDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceGetTexture1DLinearMaxWidth(maxWidthInElements, fmtDesc, device) - return cudaDeviceGetTexture1DLinearMaxWidth(maxWidthInElements, fmtDesc, device) -{{endif}} + return _static_cudaDeviceGetTexture1DLinearMaxWidth(maxWidthInElements, fmtDesc, device) -{{if 'cudaDeviceGetCacheConfig' in found_functions}} cdef cudaError_t _cudaDeviceGetCacheConfig(cudaFuncCache* pCacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceGetCacheConfig(pCacheConfig) - return cudaDeviceGetCacheConfig(pCacheConfig) -{{endif}} + return _static_cudaDeviceGetCacheConfig(pCacheConfig) -{{if 'cudaDeviceGetStreamPriorityRange' in found_functions}} cdef cudaError_t _cudaDeviceGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceGetStreamPriorityRange(leastPriority, greatestPriority) - return cudaDeviceGetStreamPriorityRange(leastPriority, greatestPriority) -{{endif}} + return _static_cudaDeviceGetStreamPriorityRange(leastPriority, greatestPriority) -{{if 'cudaDeviceSetCacheConfig' in found_functions}} cdef cudaError_t _cudaDeviceSetCacheConfig(cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceSetCacheConfig(cacheConfig) - return cudaDeviceSetCacheConfig(cacheConfig) -{{endif}} + return _static_cudaDeviceSetCacheConfig(cacheConfig) -{{if 'cudaDeviceGetByPCIBusId' in found_functions}} cdef cudaError_t _cudaDeviceGetByPCIBusId(int* device, const char* pciBusId) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceGetByPCIBusId(device, pciBusId) - return cudaDeviceGetByPCIBusId(device, pciBusId) -{{endif}} + return _static_cudaDeviceGetByPCIBusId(device, pciBusId) -{{if 'cudaDeviceGetPCIBusId' in found_functions}} -cdef cudaError_t _cudaDeviceGetPCIBusId(char* pciBusId, int length, int device) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaDeviceGetPCIBusId(char* pciBusId, int len, int device) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: - return ptds._cudaDeviceGetPCIBusId(pciBusId, length, device) - return cudaDeviceGetPCIBusId(pciBusId, length, device) -{{endif}} + return ptds._cudaDeviceGetPCIBusId(pciBusId, len, device) + return _static_cudaDeviceGetPCIBusId(pciBusId, len, device) -{{if 'cudaIpcGetEventHandle' in found_functions}} cdef cudaError_t _cudaIpcGetEventHandle(cudaIpcEventHandle_t* handle, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaIpcGetEventHandle(handle, event) - return cudaIpcGetEventHandle(handle, event) -{{endif}} + return _static_cudaIpcGetEventHandle(handle, event) -{{if 'cudaIpcOpenEventHandle' in found_functions}} cdef cudaError_t _cudaIpcOpenEventHandle(cudaEvent_t* event, cudaIpcEventHandle_t handle) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaIpcOpenEventHandle(event, handle) - return cudaIpcOpenEventHandle(event, handle) -{{endif}} + return _static_cudaIpcOpenEventHandle(event, handle) -{{if 'cudaIpcGetMemHandle' in found_functions}} cdef cudaError_t _cudaIpcGetMemHandle(cudaIpcMemHandle_t* handle, void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaIpcGetMemHandle(handle, devPtr) - return cudaIpcGetMemHandle(handle, devPtr) -{{endif}} + return _static_cudaIpcGetMemHandle(handle, devPtr) -{{if 'cudaIpcOpenMemHandle' in found_functions}} cdef cudaError_t _cudaIpcOpenMemHandle(void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaIpcOpenMemHandle(devPtr, handle, flags) - return cudaIpcOpenMemHandle(devPtr, handle, flags) -{{endif}} + return _static_cudaIpcOpenMemHandle(devPtr, handle, flags) -{{if 'cudaIpcCloseMemHandle' in found_functions}} cdef cudaError_t _cudaIpcCloseMemHandle(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaIpcCloseMemHandle(devPtr) - return cudaIpcCloseMemHandle(devPtr) -{{endif}} + return _static_cudaIpcCloseMemHandle(devPtr) -{{if 'cudaDeviceFlushGPUDirectRDMAWrites' in found_functions}} cdef cudaError_t _cudaDeviceFlushGPUDirectRDMAWrites(cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceFlushGPUDirectRDMAWrites(target, scope) - return cudaDeviceFlushGPUDirectRDMAWrites(target, scope) -{{endif}} + return _static_cudaDeviceFlushGPUDirectRDMAWrites(target, scope) -{{if 'cudaDeviceRegisterAsyncNotification' in found_functions}} cdef cudaError_t _cudaDeviceRegisterAsyncNotification(int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceRegisterAsyncNotification(device, callbackFunc, userData, callback) - return cudaDeviceRegisterAsyncNotification(device, callbackFunc, userData, callback) -{{endif}} + return _static_cudaDeviceRegisterAsyncNotification(device, callbackFunc, userData, callback) -{{if 'cudaDeviceUnregisterAsyncNotification' in found_functions}} cdef cudaError_t _cudaDeviceUnregisterAsyncNotification(int device, cudaAsyncCallbackHandle_t callback) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceUnregisterAsyncNotification(device, callback) - return cudaDeviceUnregisterAsyncNotification(device, callback) -{{endif}} + return _static_cudaDeviceUnregisterAsyncNotification(device, callback) -{{if 'cudaDeviceGetSharedMemConfig' in found_functions}} cdef cudaError_t _cudaDeviceGetSharedMemConfig(cudaSharedMemConfig* pConfig) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceGetSharedMemConfig(pConfig) - return cudaDeviceGetSharedMemConfig(pConfig) -{{endif}} + return _static_cudaDeviceGetSharedMemConfig(pConfig) -{{if 'cudaDeviceSetSharedMemConfig' in found_functions}} cdef cudaError_t _cudaDeviceSetSharedMemConfig(cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceSetSharedMemConfig(config) - return cudaDeviceSetSharedMemConfig(config) -{{endif}} + return _static_cudaDeviceSetSharedMemConfig(config) -{{if 'cudaGetLastError' in found_functions}} cdef cudaError_t _cudaGetLastError() except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetLastError() - return cudaGetLastError() -{{endif}} + return _static_cudaGetLastError() -{{if 'cudaPeekAtLastError' in found_functions}} cdef cudaError_t _cudaPeekAtLastError() except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaPeekAtLastError() - return cudaPeekAtLastError() -{{endif}} + return _static_cudaPeekAtLastError() -{{if 'cudaGetErrorName' in found_functions}} -cdef const char* _cudaGetErrorName(cudaError_t error) except ?NULL nogil: +cdef const char* _cudaGetErrorName(cudaError_t error) except?NULL nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetErrorName(error) - return cudaGetErrorName(error) -{{endif}} + return _static_cudaGetErrorName(error) -{{if 'cudaGetErrorString' in found_functions}} -cdef const char* _cudaGetErrorString(cudaError_t error) except ?NULL nogil: +cdef const char* _cudaGetErrorString(cudaError_t error) except?NULL nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetErrorString(error) - return cudaGetErrorString(error) -{{endif}} + return _static_cudaGetErrorString(error) -{{if 'cudaGetDeviceCount' in found_functions}} cdef cudaError_t _cudaGetDeviceCount(int* count) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetDeviceCount(count) - return cudaGetDeviceCount(count) -{{endif}} + return _static_cudaGetDeviceCount(count) -{{if 'cudaGetDeviceProperties_v2' in found_functions}} cdef cudaError_t _cudaGetDeviceProperties_v2(cudaDeviceProp* prop, int device) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetDeviceProperties_v2(prop, device) - return cudaGetDeviceProperties_v2(prop, device) -{{endif}} + return _static_cudaGetDeviceProperties_v2(prop, device) -{{if 'cudaDeviceGetAttribute' in found_functions}} cdef cudaError_t _cudaDeviceGetAttribute(int* value, cudaDeviceAttr attr, int device) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceGetAttribute(value, attr, device) - return cudaDeviceGetAttribute(value, attr, device) -{{endif}} + return _static_cudaDeviceGetAttribute(value, attr, device) -{{if 'cudaDeviceGetDefaultMemPool' in found_functions}} cdef cudaError_t _cudaDeviceGetDefaultMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceGetDefaultMemPool(memPool, device) - return cudaDeviceGetDefaultMemPool(memPool, device) -{{endif}} + return _static_cudaDeviceGetDefaultMemPool(memPool, device) -{{if 'cudaDeviceSetMemPool' in found_functions}} cdef cudaError_t _cudaDeviceSetMemPool(int device, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceSetMemPool(device, memPool) - return cudaDeviceSetMemPool(device, memPool) -{{endif}} + return _static_cudaDeviceSetMemPool(device, memPool) -{{if 'cudaDeviceGetMemPool' in found_functions}} cdef cudaError_t _cudaDeviceGetMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceGetMemPool(memPool, device) - return cudaDeviceGetMemPool(memPool, device) -{{endif}} + return _static_cudaDeviceGetMemPool(memPool, device) -{{if 'cudaDeviceGetNvSciSyncAttributes' in found_functions}} cdef cudaError_t _cudaDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, int device, int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, device, flags) - return cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, device, flags) -{{endif}} + return _static_cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, device, flags) -{{if 'cudaDeviceGetP2PAttribute' in found_functions}} cdef cudaError_t _cudaDeviceGetP2PAttribute(int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceGetP2PAttribute(value, attr, srcDevice, dstDevice) - return cudaDeviceGetP2PAttribute(value, attr, srcDevice, dstDevice) -{{endif}} + return _static_cudaDeviceGetP2PAttribute(value, attr, srcDevice, dstDevice) -{{if 'cudaChooseDevice' in found_functions}} cdef cudaError_t _cudaChooseDevice(int* device, const cudaDeviceProp* prop) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaChooseDevice(device, prop) - return cudaChooseDevice(device, prop) -{{endif}} + return _static_cudaChooseDevice(device, prop) -{{if 'cudaInitDevice' in found_functions}} cdef cudaError_t _cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaInitDevice(device, deviceFlags, flags) - return cudaInitDevice(device, deviceFlags, flags) -{{endif}} + return _static_cudaInitDevice(device, deviceFlags, flags) -{{if 'cudaSetDevice' in found_functions}} cdef cudaError_t _cudaSetDevice(int device) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaSetDevice(device) - return cudaSetDevice(device) -{{endif}} + return _static_cudaSetDevice(device) -{{if 'cudaGetDevice' in found_functions}} cdef cudaError_t _cudaGetDevice(int* device) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetDevice(device) - return cudaGetDevice(device) -{{endif}} + return _static_cudaGetDevice(device) -{{if 'cudaSetDeviceFlags' in found_functions}} cdef cudaError_t _cudaSetDeviceFlags(unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaSetDeviceFlags(flags) - return cudaSetDeviceFlags(flags) -{{endif}} + return _static_cudaSetDeviceFlags(flags) -{{if 'cudaGetDeviceFlags' in found_functions}} cdef cudaError_t _cudaGetDeviceFlags(unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetDeviceFlags(flags) - return cudaGetDeviceFlags(flags) -{{endif}} + return _static_cudaGetDeviceFlags(flags) -{{if 'cudaStreamCreate' in found_functions}} cdef cudaError_t _cudaStreamCreate(cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamCreate(pStream) - return cudaStreamCreate(pStream) -{{endif}} + return _static_cudaStreamCreate(pStream) -{{if 'cudaStreamCreateWithFlags' in found_functions}} cdef cudaError_t _cudaStreamCreateWithFlags(cudaStream_t* pStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamCreateWithFlags(pStream, flags) - return cudaStreamCreateWithFlags(pStream, flags) -{{endif}} + return _static_cudaStreamCreateWithFlags(pStream, flags) -{{if 'cudaStreamCreateWithPriority' in found_functions}} cdef cudaError_t _cudaStreamCreateWithPriority(cudaStream_t* pStream, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamCreateWithPriority(pStream, flags, priority) - return cudaStreamCreateWithPriority(pStream, flags, priority) -{{endif}} + return _static_cudaStreamCreateWithPriority(pStream, flags, priority) -{{if 'cudaStreamGetPriority' in found_functions}} cdef cudaError_t _cudaStreamGetPriority(cudaStream_t hStream, int* priority) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamGetPriority(hStream, priority) - return cudaStreamGetPriority(hStream, priority) -{{endif}} + return _static_cudaStreamGetPriority(hStream, priority) -{{if 'cudaStreamGetFlags' in found_functions}} cdef cudaError_t _cudaStreamGetFlags(cudaStream_t hStream, unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamGetFlags(hStream, flags) - return cudaStreamGetFlags(hStream, flags) -{{endif}} + return _static_cudaStreamGetFlags(hStream, flags) -{{if 'cudaStreamGetId' in found_functions}} cdef cudaError_t _cudaStreamGetId(cudaStream_t hStream, unsigned long long* streamId) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamGetId(hStream, streamId) - return cudaStreamGetId(hStream, streamId) -{{endif}} + return _static_cudaStreamGetId(hStream, streamId) -{{if 'cudaStreamGetDevice' in found_functions}} cdef cudaError_t _cudaStreamGetDevice(cudaStream_t hStream, int* device) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamGetDevice(hStream, device) - return cudaStreamGetDevice(hStream, device) -{{endif}} + return _static_cudaStreamGetDevice(hStream, device) -{{if 'cudaCtxResetPersistingL2Cache' in found_functions}} cdef cudaError_t _cudaCtxResetPersistingL2Cache() except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaCtxResetPersistingL2Cache() - return cudaCtxResetPersistingL2Cache() -{{endif}} + return _static_cudaCtxResetPersistingL2Cache() -{{if 'cudaStreamCopyAttributes' in found_functions}} cdef cudaError_t _cudaStreamCopyAttributes(cudaStream_t dst, cudaStream_t src) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamCopyAttributes(dst, src) - return cudaStreamCopyAttributes(dst, src) -{{endif}} + return _static_cudaStreamCopyAttributes(dst, src) -{{if 'cudaStreamGetAttribute' in found_functions}} cdef cudaError_t _cudaStreamGetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, cudaStreamAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamGetAttribute(hStream, attr, value_out) - return cudaStreamGetAttribute(hStream, attr, value_out) -{{endif}} + return _static_cudaStreamGetAttribute(hStream, attr, value_out) -{{if 'cudaStreamSetAttribute' in found_functions}} cdef cudaError_t _cudaStreamSetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, const cudaStreamAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamSetAttribute(hStream, attr, value) - return cudaStreamSetAttribute(hStream, attr, value) -{{endif}} + return _static_cudaStreamSetAttribute(hStream, attr, value) -{{if 'cudaStreamDestroy' in found_functions}} cdef cudaError_t _cudaStreamDestroy(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamDestroy(stream) - return cudaStreamDestroy(stream) -{{endif}} + return _static_cudaStreamDestroy(stream) -{{if 'cudaStreamWaitEvent' in found_functions}} cdef cudaError_t _cudaStreamWaitEvent(cudaStream_t stream, cudaEvent_t event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamWaitEvent(stream, event, flags) - return cudaStreamWaitEvent(stream, event, flags) -{{endif}} + return _static_cudaStreamWaitEvent(stream, event, flags) -{{if 'cudaStreamAddCallback' in found_functions}} cdef cudaError_t _cudaStreamAddCallback(cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamAddCallback(stream, callback, userData, flags) - return cudaStreamAddCallback(stream, callback, userData, flags) -{{endif}} + return _static_cudaStreamAddCallback(stream, callback, userData, flags) -{{if 'cudaStreamSynchronize' in found_functions}} cdef cudaError_t _cudaStreamSynchronize(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamSynchronize(stream) - return cudaStreamSynchronize(stream) -{{endif}} + return _static_cudaStreamSynchronize(stream) -{{if 'cudaStreamQuery' in found_functions}} cdef cudaError_t _cudaStreamQuery(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamQuery(stream) - return cudaStreamQuery(stream) -{{endif}} + return _static_cudaStreamQuery(stream) -{{if 'cudaStreamAttachMemAsync' in found_functions}} cdef cudaError_t _cudaStreamAttachMemAsync(cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamAttachMemAsync(stream, devPtr, length, flags) - return cudaStreamAttachMemAsync(stream, devPtr, length, flags) -{{endif}} + return _static_cudaStreamAttachMemAsync(stream, devPtr, length, flags) -{{if 'cudaStreamBeginCapture' in found_functions}} cdef cudaError_t _cudaStreamBeginCapture(cudaStream_t stream, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamBeginCapture(stream, mode) - return cudaStreamBeginCapture(stream, mode) -{{endif}} + return _static_cudaStreamBeginCapture(stream, mode) -{{if 'cudaStreamBeginCaptureToGraph' in found_functions}} cdef cudaError_t _cudaStreamBeginCaptureToGraph(cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamBeginCaptureToGraph(stream, graph, dependencies, dependencyData, numDependencies, mode) - return cudaStreamBeginCaptureToGraph(stream, graph, dependencies, dependencyData, numDependencies, mode) -{{endif}} + return _static_cudaStreamBeginCaptureToGraph(stream, graph, dependencies, dependencyData, numDependencies, mode) -{{if 'cudaThreadExchangeStreamCaptureMode' in found_functions}} cdef cudaError_t _cudaThreadExchangeStreamCaptureMode(cudaStreamCaptureMode* mode) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaThreadExchangeStreamCaptureMode(mode) - return cudaThreadExchangeStreamCaptureMode(mode) -{{endif}} + return _static_cudaThreadExchangeStreamCaptureMode(mode) -{{if 'cudaStreamEndCapture' in found_functions}} cdef cudaError_t _cudaStreamEndCapture(cudaStream_t stream, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamEndCapture(stream, pGraph) - return cudaStreamEndCapture(stream, pGraph) -{{endif}} + return _static_cudaStreamEndCapture(stream, pGraph) -{{if 'cudaStreamIsCapturing' in found_functions}} cdef cudaError_t _cudaStreamIsCapturing(cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamIsCapturing(stream, pCaptureStatus) - return cudaStreamIsCapturing(stream, pCaptureStatus) -{{endif}} + return _static_cudaStreamIsCapturing(stream, pCaptureStatus) -{{if 'cudaStreamGetCaptureInfo_v2' in found_functions}} cdef cudaError_t _cudaStreamGetCaptureInfo_v2(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamGetCaptureInfo_v2(stream, captureStatus_out, id_out, graph_out, dependencies_out, numDependencies_out) - return cudaStreamGetCaptureInfo_v2(stream, captureStatus_out, id_out, graph_out, dependencies_out, numDependencies_out) -{{endif}} + return _static_cudaStreamGetCaptureInfo_v2(stream, captureStatus_out, id_out, graph_out, dependencies_out, numDependencies_out) -{{if 'cudaStreamGetCaptureInfo_v3' in found_functions}} cdef cudaError_t _cudaStreamGetCaptureInfo_v3(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamGetCaptureInfo_v3(stream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) - return cudaStreamGetCaptureInfo_v3(stream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) -{{endif}} + return _static_cudaStreamGetCaptureInfo_v3(stream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) -{{if 'cudaStreamUpdateCaptureDependencies' in found_functions}} cdef cudaError_t _cudaStreamUpdateCaptureDependencies(cudaStream_t stream, cudaGraphNode_t* dependencies, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamUpdateCaptureDependencies(stream, dependencies, numDependencies, flags) - return cudaStreamUpdateCaptureDependencies(stream, dependencies, numDependencies, flags) -{{endif}} + return _static_cudaStreamUpdateCaptureDependencies(stream, dependencies, numDependencies, flags) -{{if 'cudaStreamUpdateCaptureDependencies_v2' in found_functions}} cdef cudaError_t _cudaStreamUpdateCaptureDependencies_v2(cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamUpdateCaptureDependencies_v2(stream, dependencies, dependencyData, numDependencies, flags) - return cudaStreamUpdateCaptureDependencies_v2(stream, dependencies, dependencyData, numDependencies, flags) -{{endif}} + return _static_cudaStreamUpdateCaptureDependencies_v2(stream, dependencies, dependencyData, numDependencies, flags) -{{if 'cudaEventCreate' in found_functions}} cdef cudaError_t _cudaEventCreate(cudaEvent_t* event) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaEventCreate(event) - return cudaEventCreate(event) -{{endif}} + return _static_cudaEventCreate(event) -{{if 'cudaEventCreateWithFlags' in found_functions}} cdef cudaError_t _cudaEventCreateWithFlags(cudaEvent_t* event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaEventCreateWithFlags(event, flags) - return cudaEventCreateWithFlags(event, flags) -{{endif}} + return _static_cudaEventCreateWithFlags(event, flags) -{{if 'cudaEventRecord' in found_functions}} cdef cudaError_t _cudaEventRecord(cudaEvent_t event, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaEventRecord(event, stream) - return cudaEventRecord(event, stream) -{{endif}} + return _static_cudaEventRecord(event, stream) -{{if 'cudaEventRecordWithFlags' in found_functions}} cdef cudaError_t _cudaEventRecordWithFlags(cudaEvent_t event, cudaStream_t stream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaEventRecordWithFlags(event, stream, flags) - return cudaEventRecordWithFlags(event, stream, flags) -{{endif}} + return _static_cudaEventRecordWithFlags(event, stream, flags) -{{if 'cudaEventQuery' in found_functions}} cdef cudaError_t _cudaEventQuery(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaEventQuery(event) - return cudaEventQuery(event) -{{endif}} + return _static_cudaEventQuery(event) -{{if 'cudaEventSynchronize' in found_functions}} cdef cudaError_t _cudaEventSynchronize(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaEventSynchronize(event) - return cudaEventSynchronize(event) -{{endif}} + return _static_cudaEventSynchronize(event) -{{if 'cudaEventDestroy' in found_functions}} cdef cudaError_t _cudaEventDestroy(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaEventDestroy(event) - return cudaEventDestroy(event) -{{endif}} + return _static_cudaEventDestroy(event) -{{if 'cudaEventElapsedTime' in found_functions}} cdef cudaError_t _cudaEventElapsedTime(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaEventElapsedTime(ms, start, end) - return cudaEventElapsedTime(ms, start, end) -{{endif}} + return _static_cudaEventElapsedTime(ms, start, end) -{{if 'cudaEventElapsedTime_v2' in found_functions}} cdef cudaError_t _cudaEventElapsedTime_v2(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaEventElapsedTime_v2(ms, start, end) - return cudaEventElapsedTime_v2(ms, start, end) -{{endif}} + return _static_cudaEventElapsedTime_v2(ms, start, end) -{{if 'cudaImportExternalMemory' in found_functions}} cdef cudaError_t _cudaImportExternalMemory(cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaImportExternalMemory(extMem_out, memHandleDesc) - return cudaImportExternalMemory(extMem_out, memHandleDesc) -{{endif}} + return _static_cudaImportExternalMemory(extMem_out, memHandleDesc) -{{if 'cudaExternalMemoryGetMappedBuffer' in found_functions}} cdef cudaError_t _cudaExternalMemoryGetMappedBuffer(void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaExternalMemoryGetMappedBuffer(devPtr, extMem, bufferDesc) - return cudaExternalMemoryGetMappedBuffer(devPtr, extMem, bufferDesc) -{{endif}} + return _static_cudaExternalMemoryGetMappedBuffer(devPtr, extMem, bufferDesc) -{{if 'cudaExternalMemoryGetMappedMipmappedArray' in found_functions}} cdef cudaError_t _cudaExternalMemoryGetMappedMipmappedArray(cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaExternalMemoryGetMappedMipmappedArray(mipmap, extMem, mipmapDesc) - return cudaExternalMemoryGetMappedMipmappedArray(mipmap, extMem, mipmapDesc) -{{endif}} + return _static_cudaExternalMemoryGetMappedMipmappedArray(mipmap, extMem, mipmapDesc) -{{if 'cudaDestroyExternalMemory' in found_functions}} cdef cudaError_t _cudaDestroyExternalMemory(cudaExternalMemory_t extMem) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDestroyExternalMemory(extMem) - return cudaDestroyExternalMemory(extMem) -{{endif}} + return _static_cudaDestroyExternalMemory(extMem) -{{if 'cudaImportExternalSemaphore' in found_functions}} cdef cudaError_t _cudaImportExternalSemaphore(cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaImportExternalSemaphore(extSem_out, semHandleDesc) - return cudaImportExternalSemaphore(extSem_out, semHandleDesc) -{{endif}} + return _static_cudaImportExternalSemaphore(extSem_out, semHandleDesc) -{{if 'cudaSignalExternalSemaphoresAsync_v2' in found_functions}} cdef cudaError_t _cudaSignalExternalSemaphoresAsync_v2(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaSignalExternalSemaphoresAsync_v2(extSemArray, paramsArray, numExtSems, stream) - return cudaSignalExternalSemaphoresAsync_v2(extSemArray, paramsArray, numExtSems, stream) -{{endif}} + return _static_cudaSignalExternalSemaphoresAsync_v2(extSemArray, paramsArray, numExtSems, stream) -{{if 'cudaWaitExternalSemaphoresAsync_v2' in found_functions}} cdef cudaError_t _cudaWaitExternalSemaphoresAsync_v2(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaWaitExternalSemaphoresAsync_v2(extSemArray, paramsArray, numExtSems, stream) - return cudaWaitExternalSemaphoresAsync_v2(extSemArray, paramsArray, numExtSems, stream) -{{endif}} + return _static_cudaWaitExternalSemaphoresAsync_v2(extSemArray, paramsArray, numExtSems, stream) -{{if 'cudaDestroyExternalSemaphore' in found_functions}} cdef cudaError_t _cudaDestroyExternalSemaphore(cudaExternalSemaphore_t extSem) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDestroyExternalSemaphore(extSem) - return cudaDestroyExternalSemaphore(extSem) -{{endif}} + return _static_cudaDestroyExternalSemaphore(extSem) -{{if 'cudaFuncSetCacheConfig' in found_functions}} cdef cudaError_t _cudaFuncSetCacheConfig(const void* func, cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaFuncSetCacheConfig(func, cacheConfig) - return cudaFuncSetCacheConfig(func, cacheConfig) -{{endif}} + return _static_cudaFuncSetCacheConfig(func, cacheConfig) -{{if 'cudaFuncGetAttributes' in found_functions}} cdef cudaError_t _cudaFuncGetAttributes(cudaFuncAttributes* attr, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaFuncGetAttributes(attr, func) - return cudaFuncGetAttributes(attr, func) -{{endif}} + return _static_cudaFuncGetAttributes(attr, func) -{{if 'cudaFuncSetAttribute' in found_functions}} cdef cudaError_t _cudaFuncSetAttribute(const void* func, cudaFuncAttribute attr, int value) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaFuncSetAttribute(func, attr, value) - return cudaFuncSetAttribute(func, attr, value) -{{endif}} + return _static_cudaFuncSetAttribute(func, attr, value) + + +cdef cudaError_t _cudaFuncGetName(const char** name, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaFuncGetName(name, func) + return _static_cudaFuncGetName(name, func) + + +cdef cudaError_t _cudaFuncGetParamInfo(const void* func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaFuncGetParamInfo(func, paramIndex, paramOffset, paramSize) + return _static_cudaFuncGetParamInfo(func, paramIndex, paramOffset, paramSize) -{{if 'cudaLaunchHostFunc' in found_functions}} cdef cudaError_t _cudaLaunchHostFunc(cudaStream_t stream, cudaHostFn_t fn, void* userData) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaLaunchHostFunc(stream, fn, userData) - return cudaLaunchHostFunc(stream, fn, userData) -{{endif}} + return _static_cudaLaunchHostFunc(stream, fn, userData) -{{if 'cudaFuncSetSharedMemConfig' in found_functions}} cdef cudaError_t _cudaFuncSetSharedMemConfig(const void* func, cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaFuncSetSharedMemConfig(func, config) - return cudaFuncSetSharedMemConfig(func, config) -{{endif}} + return _static_cudaFuncSetSharedMemConfig(func, config) -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}} cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaOccupancyMaxActiveBlocksPerMultiprocessor(numBlocks, func, blockSize, dynamicSMemSize) - return cudaOccupancyMaxActiveBlocksPerMultiprocessor(numBlocks, func, blockSize, dynamicSMemSize) -{{endif}} + return _static_cudaOccupancyMaxActiveBlocksPerMultiprocessor(numBlocks, func, blockSize, dynamicSMemSize) -{{if 'cudaOccupancyAvailableDynamicSMemPerBlock' in found_functions}} cdef cudaError_t _cudaOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaOccupancyAvailableDynamicSMemPerBlock(dynamicSmemSize, func, numBlocks, blockSize) - return cudaOccupancyAvailableDynamicSMemPerBlock(dynamicSmemSize, func, numBlocks, blockSize) -{{endif}} + return _static_cudaOccupancyAvailableDynamicSMemPerBlock(dynamicSmemSize, func, numBlocks, blockSize) -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}} cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(numBlocks, func, blockSize, dynamicSMemSize, flags) - return cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(numBlocks, func, blockSize, dynamicSMemSize, flags) -{{endif}} + return _static_cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(numBlocks, func, blockSize, dynamicSMemSize, flags) -{{if 'cudaMallocManaged' in found_functions}} cdef cudaError_t _cudaMallocManaged(void** devPtr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMallocManaged(devPtr, size, flags) - return cudaMallocManaged(devPtr, size, flags) -{{endif}} + return _static_cudaMallocManaged(devPtr, size, flags) -{{if 'cudaMalloc' in found_functions}} cdef cudaError_t _cudaMalloc(void** devPtr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMalloc(devPtr, size) - return cudaMalloc(devPtr, size) -{{endif}} + return _static_cudaMalloc(devPtr, size) -{{if 'cudaMallocHost' in found_functions}} cdef cudaError_t _cudaMallocHost(void** ptr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMallocHost(ptr, size) - return cudaMallocHost(ptr, size) -{{endif}} + return _static_cudaMallocHost(ptr, size) -{{if 'cudaMallocPitch' in found_functions}} cdef cudaError_t _cudaMallocPitch(void** devPtr, size_t* pitch, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMallocPitch(devPtr, pitch, width, height) - return cudaMallocPitch(devPtr, pitch, width, height) -{{endif}} + return _static_cudaMallocPitch(devPtr, pitch, width, height) -{{if 'cudaMallocArray' in found_functions}} cdef cudaError_t _cudaMallocArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMallocArray(array, desc, width, height, flags) - return cudaMallocArray(array, desc, width, height, flags) -{{endif}} + return _static_cudaMallocArray(array, desc, width, height, flags) -{{if 'cudaFree' in found_functions}} cdef cudaError_t _cudaFree(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaFree(devPtr) - return cudaFree(devPtr) -{{endif}} + return _static_cudaFree(devPtr) -{{if 'cudaFreeHost' in found_functions}} cdef cudaError_t _cudaFreeHost(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaFreeHost(ptr) - return cudaFreeHost(ptr) -{{endif}} + return _static_cudaFreeHost(ptr) -{{if 'cudaFreeArray' in found_functions}} cdef cudaError_t _cudaFreeArray(cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaFreeArray(array) - return cudaFreeArray(array) -{{endif}} + return _static_cudaFreeArray(array) -{{if 'cudaFreeMipmappedArray' in found_functions}} cdef cudaError_t _cudaFreeMipmappedArray(cudaMipmappedArray_t mipmappedArray) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaFreeMipmappedArray(mipmappedArray) - return cudaFreeMipmappedArray(mipmappedArray) -{{endif}} + return _static_cudaFreeMipmappedArray(mipmappedArray) -{{if 'cudaHostAlloc' in found_functions}} cdef cudaError_t _cudaHostAlloc(void** pHost, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaHostAlloc(pHost, size, flags) - return cudaHostAlloc(pHost, size, flags) -{{endif}} + return _static_cudaHostAlloc(pHost, size, flags) -{{if 'cudaHostRegister' in found_functions}} cdef cudaError_t _cudaHostRegister(void* ptr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaHostRegister(ptr, size, flags) - return cudaHostRegister(ptr, size, flags) -{{endif}} + return _static_cudaHostRegister(ptr, size, flags) -{{if 'cudaHostUnregister' in found_functions}} cdef cudaError_t _cudaHostUnregister(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaHostUnregister(ptr) - return cudaHostUnregister(ptr) -{{endif}} + return _static_cudaHostUnregister(ptr) -{{if 'cudaHostGetDevicePointer' in found_functions}} cdef cudaError_t _cudaHostGetDevicePointer(void** pDevice, void* pHost, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaHostGetDevicePointer(pDevice, pHost, flags) - return cudaHostGetDevicePointer(pDevice, pHost, flags) -{{endif}} + return _static_cudaHostGetDevicePointer(pDevice, pHost, flags) -{{if 'cudaHostGetFlags' in found_functions}} cdef cudaError_t _cudaHostGetFlags(unsigned int* pFlags, void* pHost) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaHostGetFlags(pFlags, pHost) - return cudaHostGetFlags(pFlags, pHost) -{{endif}} + return _static_cudaHostGetFlags(pFlags, pHost) -{{if 'cudaMalloc3D' in found_functions}} cdef cudaError_t _cudaMalloc3D(cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMalloc3D(pitchedDevPtr, extent) - return cudaMalloc3D(pitchedDevPtr, extent) -{{endif}} + return _static_cudaMalloc3D(pitchedDevPtr, extent) -{{if 'cudaMalloc3DArray' in found_functions}} cdef cudaError_t _cudaMalloc3DArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMalloc3DArray(array, desc, extent, flags) - return cudaMalloc3DArray(array, desc, extent, flags) -{{endif}} + return _static_cudaMalloc3DArray(array, desc, extent, flags) -{{if 'cudaMallocMipmappedArray' in found_functions}} cdef cudaError_t _cudaMallocMipmappedArray(cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMallocMipmappedArray(mipmappedArray, desc, extent, numLevels, flags) - return cudaMallocMipmappedArray(mipmappedArray, desc, extent, numLevels, flags) -{{endif}} + return _static_cudaMallocMipmappedArray(mipmappedArray, desc, extent, numLevels, flags) -{{if 'cudaGetMipmappedArrayLevel' in found_functions}} cdef cudaError_t _cudaGetMipmappedArrayLevel(cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetMipmappedArrayLevel(levelArray, mipmappedArray, level) - return cudaGetMipmappedArrayLevel(levelArray, mipmappedArray, level) -{{endif}} + return _static_cudaGetMipmappedArrayLevel(levelArray, mipmappedArray, level) -{{if 'cudaMemcpy3D' in found_functions}} cdef cudaError_t _cudaMemcpy3D(const cudaMemcpy3DParms* p) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpy3D(p) - return cudaMemcpy3D(p) -{{endif}} + return _static_cudaMemcpy3D(p) -{{if 'cudaMemcpy3DPeer' in found_functions}} cdef cudaError_t _cudaMemcpy3DPeer(const cudaMemcpy3DPeerParms* p) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpy3DPeer(p) - return cudaMemcpy3DPeer(p) -{{endif}} + return _static_cudaMemcpy3DPeer(p) -{{if 'cudaMemcpy3DAsync' in found_functions}} cdef cudaError_t _cudaMemcpy3DAsync(const cudaMemcpy3DParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpy3DAsync(p, stream) - return cudaMemcpy3DAsync(p, stream) -{{endif}} + return _static_cudaMemcpy3DAsync(p, stream) -{{if 'cudaMemcpy3DPeerAsync' in found_functions}} cdef cudaError_t _cudaMemcpy3DPeerAsync(const cudaMemcpy3DPeerParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpy3DPeerAsync(p, stream) - return cudaMemcpy3DPeerAsync(p, stream) -{{endif}} + return _static_cudaMemcpy3DPeerAsync(p, stream) -{{if 'cudaMemGetInfo' in found_functions}} cdef cudaError_t _cudaMemGetInfo(size_t* free, size_t* total) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemGetInfo(free, total) - return cudaMemGetInfo(free, total) -{{endif}} + return _static_cudaMemGetInfo(free, total) -{{if 'cudaArrayGetInfo' in found_functions}} cdef cudaError_t _cudaArrayGetInfo(cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaArrayGetInfo(desc, extent, flags, array) - return cudaArrayGetInfo(desc, extent, flags, array) -{{endif}} + return _static_cudaArrayGetInfo(desc, extent, flags, array) -{{if 'cudaArrayGetPlane' in found_functions}} cdef cudaError_t _cudaArrayGetPlane(cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaArrayGetPlane(pPlaneArray, hArray, planeIdx) - return cudaArrayGetPlane(pPlaneArray, hArray, planeIdx) -{{endif}} + return _static_cudaArrayGetPlane(pPlaneArray, hArray, planeIdx) -{{if 'cudaArrayGetMemoryRequirements' in found_functions}} cdef cudaError_t _cudaArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaArrayGetMemoryRequirements(memoryRequirements, array, device) - return cudaArrayGetMemoryRequirements(memoryRequirements, array, device) -{{endif}} + return _static_cudaArrayGetMemoryRequirements(memoryRequirements, array, device) -{{if 'cudaMipmappedArrayGetMemoryRequirements' in found_functions}} cdef cudaError_t _cudaMipmappedArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMipmappedArrayGetMemoryRequirements(memoryRequirements, mipmap, device) - return cudaMipmappedArrayGetMemoryRequirements(memoryRequirements, mipmap, device) -{{endif}} + return _static_cudaMipmappedArrayGetMemoryRequirements(memoryRequirements, mipmap, device) -{{if 'cudaArrayGetSparseProperties' in found_functions}} cdef cudaError_t _cudaArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaArrayGetSparseProperties(sparseProperties, array) - return cudaArrayGetSparseProperties(sparseProperties, array) -{{endif}} + return _static_cudaArrayGetSparseProperties(sparseProperties, array) -{{if 'cudaMipmappedArrayGetSparseProperties' in found_functions}} cdef cudaError_t _cudaMipmappedArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMipmappedArrayGetSparseProperties(sparseProperties, mipmap) - return cudaMipmappedArrayGetSparseProperties(sparseProperties, mipmap) -{{endif}} + return _static_cudaMipmappedArrayGetSparseProperties(sparseProperties, mipmap) -{{if 'cudaMemcpy' in found_functions}} cdef cudaError_t _cudaMemcpy(void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpy(dst, src, count, kind) - return cudaMemcpy(dst, src, count, kind) -{{endif}} + return _static_cudaMemcpy(dst, src, count, kind) -{{if 'cudaMemcpyPeer' in found_functions}} cdef cudaError_t _cudaMemcpyPeer(void* dst, int dstDevice, const void* src, int srcDevice, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpyPeer(dst, dstDevice, src, srcDevice, count) - return cudaMemcpyPeer(dst, dstDevice, src, srcDevice, count) -{{endif}} + return _static_cudaMemcpyPeer(dst, dstDevice, src, srcDevice, count) -{{if 'cudaMemcpy2D' in found_functions}} cdef cudaError_t _cudaMemcpy2D(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpy2D(dst, dpitch, src, spitch, width, height, kind) - return cudaMemcpy2D(dst, dpitch, src, spitch, width, height, kind) -{{endif}} + return _static_cudaMemcpy2D(dst, dpitch, src, spitch, width, height, kind) -{{if 'cudaMemcpy2DToArray' in found_functions}} cdef cudaError_t _cudaMemcpy2DToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpy2DToArray(dst, wOffset, hOffset, src, spitch, width, height, kind) - return cudaMemcpy2DToArray(dst, wOffset, hOffset, src, spitch, width, height, kind) -{{endif}} + return _static_cudaMemcpy2DToArray(dst, wOffset, hOffset, src, spitch, width, height, kind) -{{if 'cudaMemcpy2DFromArray' in found_functions}} cdef cudaError_t _cudaMemcpy2DFromArray(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpy2DFromArray(dst, dpitch, src, wOffset, hOffset, width, height, kind) - return cudaMemcpy2DFromArray(dst, dpitch, src, wOffset, hOffset, width, height, kind) -{{endif}} + return _static_cudaMemcpy2DFromArray(dst, dpitch, src, wOffset, hOffset, width, height, kind) -{{if 'cudaMemcpy2DArrayToArray' in found_functions}} cdef cudaError_t _cudaMemcpy2DArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpy2DArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, width, height, kind) - return cudaMemcpy2DArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, width, height, kind) -{{endif}} + return _static_cudaMemcpy2DArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, width, height, kind) -{{if 'cudaMemcpyAsync' in found_functions}} cdef cudaError_t _cudaMemcpyAsync(void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpyAsync(dst, src, count, kind, stream) - return cudaMemcpyAsync(dst, src, count, kind, stream) -{{endif}} + return _static_cudaMemcpyAsync(dst, src, count, kind, stream) -{{if 'cudaMemcpyPeerAsync' in found_functions}} cdef cudaError_t _cudaMemcpyPeerAsync(void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpyPeerAsync(dst, dstDevice, src, srcDevice, count, stream) - return cudaMemcpyPeerAsync(dst, dstDevice, src, srcDevice, count, stream) -{{endif}} + return _static_cudaMemcpyPeerAsync(dst, dstDevice, src, srcDevice, count, stream) -{{if 'cudaMemcpyBatchAsync' in found_functions}} -cdef cudaError_t _cudaMemcpyBatchAsync(void** dsts, void** srcs, size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, size_t* failIdx, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaMemcpyBatchAsync(const void** dsts, void** srcs, size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, size_t* failIdx, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpyBatchAsync(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, failIdx, stream) - return cudaMemcpyBatchAsync(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, failIdx, stream) -{{endif}} + return _static_cudaMemcpyBatchAsync(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, failIdx, stream) -{{if 'cudaMemcpy3DBatchAsync' in found_functions}} cdef cudaError_t _cudaMemcpy3DBatchAsync(size_t numOps, cudaMemcpy3DBatchOp* opList, size_t* failIdx, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpy3DBatchAsync(numOps, opList, failIdx, flags, stream) - return cudaMemcpy3DBatchAsync(numOps, opList, failIdx, flags, stream) -{{endif}} + return _static_cudaMemcpy3DBatchAsync(numOps, opList, failIdx, flags, stream) -{{if 'cudaMemcpy2DAsync' in found_functions}} cdef cudaError_t _cudaMemcpy2DAsync(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpy2DAsync(dst, dpitch, src, spitch, width, height, kind, stream) - return cudaMemcpy2DAsync(dst, dpitch, src, spitch, width, height, kind, stream) -{{endif}} + return _static_cudaMemcpy2DAsync(dst, dpitch, src, spitch, width, height, kind, stream) -{{if 'cudaMemcpy2DToArrayAsync' in found_functions}} cdef cudaError_t _cudaMemcpy2DToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpy2DToArrayAsync(dst, wOffset, hOffset, src, spitch, width, height, kind, stream) - return cudaMemcpy2DToArrayAsync(dst, wOffset, hOffset, src, spitch, width, height, kind, stream) -{{endif}} + return _static_cudaMemcpy2DToArrayAsync(dst, wOffset, hOffset, src, spitch, width, height, kind, stream) -{{if 'cudaMemcpy2DFromArrayAsync' in found_functions}} cdef cudaError_t _cudaMemcpy2DFromArrayAsync(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpy2DFromArrayAsync(dst, dpitch, src, wOffset, hOffset, width, height, kind, stream) - return cudaMemcpy2DFromArrayAsync(dst, dpitch, src, wOffset, hOffset, width, height, kind, stream) -{{endif}} + return _static_cudaMemcpy2DFromArrayAsync(dst, dpitch, src, wOffset, hOffset, width, height, kind, stream) -{{if 'cudaMemset' in found_functions}} cdef cudaError_t _cudaMemset(void* devPtr, int value, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemset(devPtr, value, count) - return cudaMemset(devPtr, value, count) -{{endif}} + return _static_cudaMemset(devPtr, value, count) -{{if 'cudaMemset2D' in found_functions}} cdef cudaError_t _cudaMemset2D(void* devPtr, size_t pitch, int value, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemset2D(devPtr, pitch, value, width, height) - return cudaMemset2D(devPtr, pitch, value, width, height) -{{endif}} + return _static_cudaMemset2D(devPtr, pitch, value, width, height) -{{if 'cudaMemset3D' in found_functions}} cdef cudaError_t _cudaMemset3D(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemset3D(pitchedDevPtr, value, extent) - return cudaMemset3D(pitchedDevPtr, value, extent) -{{endif}} + return _static_cudaMemset3D(pitchedDevPtr, value, extent) -{{if 'cudaMemsetAsync' in found_functions}} cdef cudaError_t _cudaMemsetAsync(void* devPtr, int value, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemsetAsync(devPtr, value, count, stream) - return cudaMemsetAsync(devPtr, value, count, stream) -{{endif}} + return _static_cudaMemsetAsync(devPtr, value, count, stream) -{{if 'cudaMemset2DAsync' in found_functions}} cdef cudaError_t _cudaMemset2DAsync(void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemset2DAsync(devPtr, pitch, value, width, height, stream) - return cudaMemset2DAsync(devPtr, pitch, value, width, height, stream) -{{endif}} + return _static_cudaMemset2DAsync(devPtr, pitch, value, width, height, stream) -{{if 'cudaMemset3DAsync' in found_functions}} cdef cudaError_t _cudaMemset3DAsync(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemset3DAsync(pitchedDevPtr, value, extent, stream) - return cudaMemset3DAsync(pitchedDevPtr, value, extent, stream) -{{endif}} + return _static_cudaMemset3DAsync(pitchedDevPtr, value, extent, stream) -{{if 'cudaMemPrefetchAsync' in found_functions}} cdef cudaError_t _cudaMemPrefetchAsync(const void* devPtr, size_t count, int dstDevice, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemPrefetchAsync(devPtr, count, dstDevice, stream) - return cudaMemPrefetchAsync(devPtr, count, dstDevice, stream) -{{endif}} + return _static_cudaMemPrefetchAsync(devPtr, count, dstDevice, stream) -{{if 'cudaMemPrefetchAsync_v2' in found_functions}} cdef cudaError_t _cudaMemPrefetchAsync_v2(const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemPrefetchAsync_v2(devPtr, count, location, flags, stream) - return cudaMemPrefetchAsync_v2(devPtr, count, location, flags, stream) -{{endif}} + return _static_cudaMemPrefetchAsync_v2(devPtr, count, location, flags, stream) -{{if 'cudaMemAdvise' in found_functions}} cdef cudaError_t _cudaMemAdvise(const void* devPtr, size_t count, cudaMemoryAdvise advice, int device) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemAdvise(devPtr, count, advice, device) - return cudaMemAdvise(devPtr, count, advice, device) -{{endif}} + return _static_cudaMemAdvise(devPtr, count, advice, device) -{{if 'cudaMemAdvise_v2' in found_functions}} cdef cudaError_t _cudaMemAdvise_v2(const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemAdvise_v2(devPtr, count, advice, location) - return cudaMemAdvise_v2(devPtr, count, advice, location) -{{endif}} + return _static_cudaMemAdvise_v2(devPtr, count, advice, location) -{{if 'cudaMemRangeGetAttribute' in found_functions}} cdef cudaError_t _cudaMemRangeGetAttribute(void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemRangeGetAttribute(data, dataSize, attribute, devPtr, count) - return cudaMemRangeGetAttribute(data, dataSize, attribute, devPtr, count) -{{endif}} + return _static_cudaMemRangeGetAttribute(data, dataSize, attribute, devPtr, count) -{{if 'cudaMemRangeGetAttributes' in found_functions}} cdef cudaError_t _cudaMemRangeGetAttributes(void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemRangeGetAttributes(data, dataSizes, attributes, numAttributes, devPtr, count) - return cudaMemRangeGetAttributes(data, dataSizes, attributes, numAttributes, devPtr, count) -{{endif}} + return _static_cudaMemRangeGetAttributes(data, dataSizes, attributes, numAttributes, devPtr, count) -{{if 'cudaMemcpyToArray' in found_functions}} cdef cudaError_t _cudaMemcpyToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpyToArray(dst, wOffset, hOffset, src, count, kind) - return cudaMemcpyToArray(dst, wOffset, hOffset, src, count, kind) -{{endif}} + return _static_cudaMemcpyToArray(dst, wOffset, hOffset, src, count, kind) -{{if 'cudaMemcpyFromArray' in found_functions}} cdef cudaError_t _cudaMemcpyFromArray(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpyFromArray(dst, src, wOffset, hOffset, count, kind) - return cudaMemcpyFromArray(dst, src, wOffset, hOffset, count, kind) -{{endif}} + return _static_cudaMemcpyFromArray(dst, src, wOffset, hOffset, count, kind) -{{if 'cudaMemcpyArrayToArray' in found_functions}} cdef cudaError_t _cudaMemcpyArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpyArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, count, kind) - return cudaMemcpyArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, count, kind) -{{endif}} + return _static_cudaMemcpyArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, count, kind) -{{if 'cudaMemcpyToArrayAsync' in found_functions}} cdef cudaError_t _cudaMemcpyToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpyToArrayAsync(dst, wOffset, hOffset, src, count, kind, stream) - return cudaMemcpyToArrayAsync(dst, wOffset, hOffset, src, count, kind, stream) -{{endif}} + return _static_cudaMemcpyToArrayAsync(dst, wOffset, hOffset, src, count, kind, stream) -{{if 'cudaMemcpyFromArrayAsync' in found_functions}} cdef cudaError_t _cudaMemcpyFromArrayAsync(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpyFromArrayAsync(dst, src, wOffset, hOffset, count, kind, stream) - return cudaMemcpyFromArrayAsync(dst, src, wOffset, hOffset, count, kind, stream) -{{endif}} + return _static_cudaMemcpyFromArrayAsync(dst, src, wOffset, hOffset, count, kind, stream) -{{if 'cudaMallocAsync' in found_functions}} cdef cudaError_t _cudaMallocAsync(void** devPtr, size_t size, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMallocAsync(devPtr, size, hStream) - return cudaMallocAsync(devPtr, size, hStream) -{{endif}} + return _static_cudaMallocAsync(devPtr, size, hStream) -{{if 'cudaFreeAsync' in found_functions}} cdef cudaError_t _cudaFreeAsync(void* devPtr, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaFreeAsync(devPtr, hStream) - return cudaFreeAsync(devPtr, hStream) -{{endif}} + return _static_cudaFreeAsync(devPtr, hStream) -{{if 'cudaMemPoolTrimTo' in found_functions}} cdef cudaError_t _cudaMemPoolTrimTo(cudaMemPool_t memPool, size_t minBytesToKeep) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemPoolTrimTo(memPool, minBytesToKeep) - return cudaMemPoolTrimTo(memPool, minBytesToKeep) -{{endif}} + return _static_cudaMemPoolTrimTo(memPool, minBytesToKeep) -{{if 'cudaMemPoolSetAttribute' in found_functions}} cdef cudaError_t _cudaMemPoolSetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemPoolSetAttribute(memPool, attr, value) - return cudaMemPoolSetAttribute(memPool, attr, value) -{{endif}} + return _static_cudaMemPoolSetAttribute(memPool, attr, value) -{{if 'cudaMemPoolGetAttribute' in found_functions}} cdef cudaError_t _cudaMemPoolGetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemPoolGetAttribute(memPool, attr, value) - return cudaMemPoolGetAttribute(memPool, attr, value) -{{endif}} + return _static_cudaMemPoolGetAttribute(memPool, attr, value) -{{if 'cudaMemPoolSetAccess' in found_functions}} cdef cudaError_t _cudaMemPoolSetAccess(cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemPoolSetAccess(memPool, descList, count) - return cudaMemPoolSetAccess(memPool, descList, count) -{{endif}} + return _static_cudaMemPoolSetAccess(memPool, descList, count) -{{if 'cudaMemPoolGetAccess' in found_functions}} cdef cudaError_t _cudaMemPoolGetAccess(cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemPoolGetAccess(flags, memPool, location) - return cudaMemPoolGetAccess(flags, memPool, location) -{{endif}} + return _static_cudaMemPoolGetAccess(flags, memPool, location) -{{if 'cudaMemPoolCreate' in found_functions}} cdef cudaError_t _cudaMemPoolCreate(cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemPoolCreate(memPool, poolProps) - return cudaMemPoolCreate(memPool, poolProps) -{{endif}} + return _static_cudaMemPoolCreate(memPool, poolProps) -{{if 'cudaMemPoolDestroy' in found_functions}} cdef cudaError_t _cudaMemPoolDestroy(cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemPoolDestroy(memPool) - return cudaMemPoolDestroy(memPool) -{{endif}} + return _static_cudaMemPoolDestroy(memPool) -{{if 'cudaMallocFromPoolAsync' in found_functions}} cdef cudaError_t _cudaMallocFromPoolAsync(void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMallocFromPoolAsync(ptr, size, memPool, stream) - return cudaMallocFromPoolAsync(ptr, size, memPool, stream) -{{endif}} + return _static_cudaMallocFromPoolAsync(ptr, size, memPool, stream) -{{if 'cudaMemPoolExportToShareableHandle' in found_functions}} cdef cudaError_t _cudaMemPoolExportToShareableHandle(void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemPoolExportToShareableHandle(shareableHandle, memPool, handleType, flags) - return cudaMemPoolExportToShareableHandle(shareableHandle, memPool, handleType, flags) -{{endif}} + return _static_cudaMemPoolExportToShareableHandle(shareableHandle, memPool, handleType, flags) -{{if 'cudaMemPoolImportFromShareableHandle' in found_functions}} cdef cudaError_t _cudaMemPoolImportFromShareableHandle(cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemPoolImportFromShareableHandle(memPool, shareableHandle, handleType, flags) - return cudaMemPoolImportFromShareableHandle(memPool, shareableHandle, handleType, flags) -{{endif}} + return _static_cudaMemPoolImportFromShareableHandle(memPool, shareableHandle, handleType, flags) -{{if 'cudaMemPoolExportPointer' in found_functions}} cdef cudaError_t _cudaMemPoolExportPointer(cudaMemPoolPtrExportData* exportData, void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemPoolExportPointer(exportData, ptr) - return cudaMemPoolExportPointer(exportData, ptr) -{{endif}} + return _static_cudaMemPoolExportPointer(exportData, ptr) -{{if 'cudaMemPoolImportPointer' in found_functions}} cdef cudaError_t _cudaMemPoolImportPointer(void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemPoolImportPointer(ptr, memPool, exportData) - return cudaMemPoolImportPointer(ptr, memPool, exportData) -{{endif}} + return _static_cudaMemPoolImportPointer(ptr, memPool, exportData) -{{if 'cudaPointerGetAttributes' in found_functions}} cdef cudaError_t _cudaPointerGetAttributes(cudaPointerAttributes* attributes, const void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaPointerGetAttributes(attributes, ptr) - return cudaPointerGetAttributes(attributes, ptr) -{{endif}} + return _static_cudaPointerGetAttributes(attributes, ptr) -{{if 'cudaDeviceCanAccessPeer' in found_functions}} cdef cudaError_t _cudaDeviceCanAccessPeer(int* canAccessPeer, int device, int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceCanAccessPeer(canAccessPeer, device, peerDevice) - return cudaDeviceCanAccessPeer(canAccessPeer, device, peerDevice) -{{endif}} + return _static_cudaDeviceCanAccessPeer(canAccessPeer, device, peerDevice) -{{if 'cudaDeviceEnablePeerAccess' in found_functions}} cdef cudaError_t _cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceEnablePeerAccess(peerDevice, flags) - return cudaDeviceEnablePeerAccess(peerDevice, flags) -{{endif}} + return _static_cudaDeviceEnablePeerAccess(peerDevice, flags) -{{if 'cudaDeviceDisablePeerAccess' in found_functions}} cdef cudaError_t _cudaDeviceDisablePeerAccess(int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceDisablePeerAccess(peerDevice) - return cudaDeviceDisablePeerAccess(peerDevice) -{{endif}} + return _static_cudaDeviceDisablePeerAccess(peerDevice) -{{if 'cudaGraphicsUnregisterResource' in found_functions}} cdef cudaError_t _cudaGraphicsUnregisterResource(cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphicsUnregisterResource(resource) - return cudaGraphicsUnregisterResource(resource) -{{endif}} + return _static_cudaGraphicsUnregisterResource(resource) -{{if 'cudaGraphicsResourceSetMapFlags' in found_functions}} cdef cudaError_t _cudaGraphicsResourceSetMapFlags(cudaGraphicsResource_t resource, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphicsResourceSetMapFlags(resource, flags) - return cudaGraphicsResourceSetMapFlags(resource, flags) -{{endif}} + return _static_cudaGraphicsResourceSetMapFlags(resource, flags) -{{if 'cudaGraphicsMapResources' in found_functions}} cdef cudaError_t _cudaGraphicsMapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphicsMapResources(count, resources, stream) - return cudaGraphicsMapResources(count, resources, stream) -{{endif}} + return _static_cudaGraphicsMapResources(count, resources, stream) -{{if 'cudaGraphicsUnmapResources' in found_functions}} cdef cudaError_t _cudaGraphicsUnmapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphicsUnmapResources(count, resources, stream) - return cudaGraphicsUnmapResources(count, resources, stream) -{{endif}} + return _static_cudaGraphicsUnmapResources(count, resources, stream) -{{if 'cudaGraphicsResourceGetMappedPointer' in found_functions}} cdef cudaError_t _cudaGraphicsResourceGetMappedPointer(void** devPtr, size_t* size, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphicsResourceGetMappedPointer(devPtr, size, resource) - return cudaGraphicsResourceGetMappedPointer(devPtr, size, resource) -{{endif}} + return _static_cudaGraphicsResourceGetMappedPointer(devPtr, size, resource) -{{if 'cudaGraphicsSubResourceGetMappedArray' in found_functions}} cdef cudaError_t _cudaGraphicsSubResourceGetMappedArray(cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphicsSubResourceGetMappedArray(array, resource, arrayIndex, mipLevel) - return cudaGraphicsSubResourceGetMappedArray(array, resource, arrayIndex, mipLevel) -{{endif}} + return _static_cudaGraphicsSubResourceGetMappedArray(array, resource, arrayIndex, mipLevel) -{{if 'cudaGraphicsResourceGetMappedMipmappedArray' in found_functions}} cdef cudaError_t _cudaGraphicsResourceGetMappedMipmappedArray(cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphicsResourceGetMappedMipmappedArray(mipmappedArray, resource) - return cudaGraphicsResourceGetMappedMipmappedArray(mipmappedArray, resource) -{{endif}} + return _static_cudaGraphicsResourceGetMappedMipmappedArray(mipmappedArray, resource) -{{if 'cudaGetChannelDesc' in found_functions}} cdef cudaError_t _cudaGetChannelDesc(cudaChannelFormatDesc* desc, cudaArray_const_t array) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetChannelDesc(desc, array) - return cudaGetChannelDesc(desc, array) -{{endif}} + return _static_cudaGetChannelDesc(desc, array) + -{{if 'cudaCreateChannelDesc' in found_functions}} -@cython.show_performance_hints(False) cdef cudaChannelFormatDesc _cudaCreateChannelDesc(int x, int y, int z, int w, cudaChannelFormatKind f) except* nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaCreateChannelDesc(x, y, z, w, f) - return cudaCreateChannelDesc(x, y, z, w, f) -{{endif}} + return _static_cudaCreateChannelDesc(x, y, z, w, f) -{{if 'cudaCreateTextureObject' in found_functions}} cdef cudaError_t _cudaCreateTextureObject(cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaCreateTextureObject(pTexObject, pResDesc, pTexDesc, pResViewDesc) - return cudaCreateTextureObject(pTexObject, pResDesc, pTexDesc, pResViewDesc) -{{endif}} + return _static_cudaCreateTextureObject(pTexObject, pResDesc, pTexDesc, pResViewDesc) -{{if 'cudaDestroyTextureObject' in found_functions}} cdef cudaError_t _cudaDestroyTextureObject(cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDestroyTextureObject(texObject) - return cudaDestroyTextureObject(texObject) -{{endif}} + return _static_cudaDestroyTextureObject(texObject) -{{if 'cudaGetTextureObjectResourceDesc' in found_functions}} cdef cudaError_t _cudaGetTextureObjectResourceDesc(cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetTextureObjectResourceDesc(pResDesc, texObject) - return cudaGetTextureObjectResourceDesc(pResDesc, texObject) -{{endif}} + return _static_cudaGetTextureObjectResourceDesc(pResDesc, texObject) -{{if 'cudaGetTextureObjectTextureDesc' in found_functions}} cdef cudaError_t _cudaGetTextureObjectTextureDesc(cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetTextureObjectTextureDesc(pTexDesc, texObject) - return cudaGetTextureObjectTextureDesc(pTexDesc, texObject) -{{endif}} + return _static_cudaGetTextureObjectTextureDesc(pTexDesc, texObject) -{{if 'cudaGetTextureObjectResourceViewDesc' in found_functions}} cdef cudaError_t _cudaGetTextureObjectResourceViewDesc(cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetTextureObjectResourceViewDesc(pResViewDesc, texObject) - return cudaGetTextureObjectResourceViewDesc(pResViewDesc, texObject) -{{endif}} + return _static_cudaGetTextureObjectResourceViewDesc(pResViewDesc, texObject) -{{if 'cudaCreateSurfaceObject' in found_functions}} cdef cudaError_t _cudaCreateSurfaceObject(cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaCreateSurfaceObject(pSurfObject, pResDesc) - return cudaCreateSurfaceObject(pSurfObject, pResDesc) -{{endif}} + return _static_cudaCreateSurfaceObject(pSurfObject, pResDesc) -{{if 'cudaDestroySurfaceObject' in found_functions}} cdef cudaError_t _cudaDestroySurfaceObject(cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDestroySurfaceObject(surfObject) - return cudaDestroySurfaceObject(surfObject) -{{endif}} + return _static_cudaDestroySurfaceObject(surfObject) -{{if 'cudaGetSurfaceObjectResourceDesc' in found_functions}} cdef cudaError_t _cudaGetSurfaceObjectResourceDesc(cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetSurfaceObjectResourceDesc(pResDesc, surfObject) - return cudaGetSurfaceObjectResourceDesc(pResDesc, surfObject) -{{endif}} + return _static_cudaGetSurfaceObjectResourceDesc(pResDesc, surfObject) -{{if 'cudaDriverGetVersion' in found_functions}} cdef cudaError_t _cudaDriverGetVersion(int* driverVersion) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDriverGetVersion(driverVersion) - return cudaDriverGetVersion(driverVersion) -{{endif}} + return _static_cudaDriverGetVersion(driverVersion) -{{if 'cudaRuntimeGetVersion' in found_functions}} cdef cudaError_t _cudaRuntimeGetVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaRuntimeGetVersion(runtimeVersion) - return cudaRuntimeGetVersion(runtimeVersion) -{{endif}} + return _static_cudaRuntimeGetVersion(runtimeVersion) -{{if 'cudaGraphCreate' in found_functions}} cdef cudaError_t _cudaGraphCreate(cudaGraph_t* pGraph, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphCreate(pGraph, flags) - return cudaGraphCreate(pGraph, flags) -{{endif}} + return _static_cudaGraphCreate(pGraph, flags) -{{if 'cudaGraphAddKernelNode' in found_functions}} cdef cudaError_t _cudaGraphAddKernelNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddKernelNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) - return cudaGraphAddKernelNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) -{{endif}} + return _static_cudaGraphAddKernelNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) -{{if 'cudaGraphKernelNodeGetParams' in found_functions}} cdef cudaError_t _cudaGraphKernelNodeGetParams(cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphKernelNodeGetParams(node, pNodeParams) - return cudaGraphKernelNodeGetParams(node, pNodeParams) -{{endif}} + return _static_cudaGraphKernelNodeGetParams(node, pNodeParams) -{{if 'cudaGraphKernelNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphKernelNodeSetParams(cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphKernelNodeSetParams(node, pNodeParams) - return cudaGraphKernelNodeSetParams(node, pNodeParams) -{{endif}} + return _static_cudaGraphKernelNodeSetParams(node, pNodeParams) -{{if 'cudaGraphKernelNodeCopyAttributes' in found_functions}} cdef cudaError_t _cudaGraphKernelNodeCopyAttributes(cudaGraphNode_t hSrc, cudaGraphNode_t hDst) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphKernelNodeCopyAttributes(hSrc, hDst) - return cudaGraphKernelNodeCopyAttributes(hSrc, hDst) -{{endif}} + return _static_cudaGraphKernelNodeCopyAttributes(hSrc, hDst) -{{if 'cudaGraphKernelNodeGetAttribute' in found_functions}} cdef cudaError_t _cudaGraphKernelNodeGetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, cudaKernelNodeAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphKernelNodeGetAttribute(hNode, attr, value_out) - return cudaGraphKernelNodeGetAttribute(hNode, attr, value_out) -{{endif}} + return _static_cudaGraphKernelNodeGetAttribute(hNode, attr, value_out) -{{if 'cudaGraphKernelNodeSetAttribute' in found_functions}} cdef cudaError_t _cudaGraphKernelNodeSetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, const cudaKernelNodeAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphKernelNodeSetAttribute(hNode, attr, value) - return cudaGraphKernelNodeSetAttribute(hNode, attr, value) -{{endif}} + return _static_cudaGraphKernelNodeSetAttribute(hNode, attr, value) -{{if 'cudaGraphAddMemcpyNode' in found_functions}} cdef cudaError_t _cudaGraphAddMemcpyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddMemcpyNode(pGraphNode, graph, pDependencies, numDependencies, pCopyParams) - return cudaGraphAddMemcpyNode(pGraphNode, graph, pDependencies, numDependencies, pCopyParams) -{{endif}} + return _static_cudaGraphAddMemcpyNode(pGraphNode, graph, pDependencies, numDependencies, pCopyParams) -{{if 'cudaGraphAddMemcpyNode1D' in found_functions}} cdef cudaError_t _cudaGraphAddMemcpyNode1D(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddMemcpyNode1D(pGraphNode, graph, pDependencies, numDependencies, dst, src, count, kind) - return cudaGraphAddMemcpyNode1D(pGraphNode, graph, pDependencies, numDependencies, dst, src, count, kind) -{{endif}} + return _static_cudaGraphAddMemcpyNode1D(pGraphNode, graph, pDependencies, numDependencies, dst, src, count, kind) -{{if 'cudaGraphMemcpyNodeGetParams' in found_functions}} cdef cudaError_t _cudaGraphMemcpyNodeGetParams(cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphMemcpyNodeGetParams(node, pNodeParams) - return cudaGraphMemcpyNodeGetParams(node, pNodeParams) -{{endif}} + return _static_cudaGraphMemcpyNodeGetParams(node, pNodeParams) -{{if 'cudaGraphMemcpyNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphMemcpyNodeSetParams(cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphMemcpyNodeSetParams(node, pNodeParams) - return cudaGraphMemcpyNodeSetParams(node, pNodeParams) -{{endif}} + return _static_cudaGraphMemcpyNodeSetParams(node, pNodeParams) -{{if 'cudaGraphMemcpyNodeSetParams1D' in found_functions}} cdef cudaError_t _cudaGraphMemcpyNodeSetParams1D(cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphMemcpyNodeSetParams1D(node, dst, src, count, kind) - return cudaGraphMemcpyNodeSetParams1D(node, dst, src, count, kind) -{{endif}} + return _static_cudaGraphMemcpyNodeSetParams1D(node, dst, src, count, kind) -{{if 'cudaGraphAddMemsetNode' in found_functions}} cdef cudaError_t _cudaGraphAddMemsetNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddMemsetNode(pGraphNode, graph, pDependencies, numDependencies, pMemsetParams) - return cudaGraphAddMemsetNode(pGraphNode, graph, pDependencies, numDependencies, pMemsetParams) -{{endif}} + return _static_cudaGraphAddMemsetNode(pGraphNode, graph, pDependencies, numDependencies, pMemsetParams) -{{if 'cudaGraphMemsetNodeGetParams' in found_functions}} cdef cudaError_t _cudaGraphMemsetNodeGetParams(cudaGraphNode_t node, cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphMemsetNodeGetParams(node, pNodeParams) - return cudaGraphMemsetNodeGetParams(node, pNodeParams) -{{endif}} + return _static_cudaGraphMemsetNodeGetParams(node, pNodeParams) -{{if 'cudaGraphMemsetNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphMemsetNodeSetParams(cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphMemsetNodeSetParams(node, pNodeParams) - return cudaGraphMemsetNodeSetParams(node, pNodeParams) -{{endif}} + return _static_cudaGraphMemsetNodeSetParams(node, pNodeParams) -{{if 'cudaGraphAddHostNode' in found_functions}} cdef cudaError_t _cudaGraphAddHostNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddHostNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) - return cudaGraphAddHostNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) -{{endif}} + return _static_cudaGraphAddHostNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) -{{if 'cudaGraphHostNodeGetParams' in found_functions}} cdef cudaError_t _cudaGraphHostNodeGetParams(cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphHostNodeGetParams(node, pNodeParams) - return cudaGraphHostNodeGetParams(node, pNodeParams) -{{endif}} + return _static_cudaGraphHostNodeGetParams(node, pNodeParams) -{{if 'cudaGraphHostNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphHostNodeSetParams(cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphHostNodeSetParams(node, pNodeParams) - return cudaGraphHostNodeSetParams(node, pNodeParams) -{{endif}} + return _static_cudaGraphHostNodeSetParams(node, pNodeParams) -{{if 'cudaGraphAddChildGraphNode' in found_functions}} cdef cudaError_t _cudaGraphAddChildGraphNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddChildGraphNode(pGraphNode, graph, pDependencies, numDependencies, childGraph) - return cudaGraphAddChildGraphNode(pGraphNode, graph, pDependencies, numDependencies, childGraph) -{{endif}} + return _static_cudaGraphAddChildGraphNode(pGraphNode, graph, pDependencies, numDependencies, childGraph) -{{if 'cudaGraphChildGraphNodeGetGraph' in found_functions}} cdef cudaError_t _cudaGraphChildGraphNodeGetGraph(cudaGraphNode_t node, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphChildGraphNodeGetGraph(node, pGraph) - return cudaGraphChildGraphNodeGetGraph(node, pGraph) -{{endif}} + return _static_cudaGraphChildGraphNodeGetGraph(node, pGraph) -{{if 'cudaGraphAddEmptyNode' in found_functions}} cdef cudaError_t _cudaGraphAddEmptyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddEmptyNode(pGraphNode, graph, pDependencies, numDependencies) - return cudaGraphAddEmptyNode(pGraphNode, graph, pDependencies, numDependencies) -{{endif}} + return _static_cudaGraphAddEmptyNode(pGraphNode, graph, pDependencies, numDependencies) -{{if 'cudaGraphAddEventRecordNode' in found_functions}} cdef cudaError_t _cudaGraphAddEventRecordNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddEventRecordNode(pGraphNode, graph, pDependencies, numDependencies, event) - return cudaGraphAddEventRecordNode(pGraphNode, graph, pDependencies, numDependencies, event) -{{endif}} + return _static_cudaGraphAddEventRecordNode(pGraphNode, graph, pDependencies, numDependencies, event) -{{if 'cudaGraphEventRecordNodeGetEvent' in found_functions}} cdef cudaError_t _cudaGraphEventRecordNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphEventRecordNodeGetEvent(node, event_out) - return cudaGraphEventRecordNodeGetEvent(node, event_out) -{{endif}} + return _static_cudaGraphEventRecordNodeGetEvent(node, event_out) -{{if 'cudaGraphEventRecordNodeSetEvent' in found_functions}} cdef cudaError_t _cudaGraphEventRecordNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphEventRecordNodeSetEvent(node, event) - return cudaGraphEventRecordNodeSetEvent(node, event) -{{endif}} + return _static_cudaGraphEventRecordNodeSetEvent(node, event) -{{if 'cudaGraphAddEventWaitNode' in found_functions}} cdef cudaError_t _cudaGraphAddEventWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddEventWaitNode(pGraphNode, graph, pDependencies, numDependencies, event) - return cudaGraphAddEventWaitNode(pGraphNode, graph, pDependencies, numDependencies, event) -{{endif}} + return _static_cudaGraphAddEventWaitNode(pGraphNode, graph, pDependencies, numDependencies, event) -{{if 'cudaGraphEventWaitNodeGetEvent' in found_functions}} cdef cudaError_t _cudaGraphEventWaitNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphEventWaitNodeGetEvent(node, event_out) - return cudaGraphEventWaitNodeGetEvent(node, event_out) -{{endif}} + return _static_cudaGraphEventWaitNodeGetEvent(node, event_out) -{{if 'cudaGraphEventWaitNodeSetEvent' in found_functions}} cdef cudaError_t _cudaGraphEventWaitNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphEventWaitNodeSetEvent(node, event) - return cudaGraphEventWaitNodeSetEvent(node, event) -{{endif}} + return _static_cudaGraphEventWaitNodeSetEvent(node, event) -{{if 'cudaGraphAddExternalSemaphoresSignalNode' in found_functions}} cdef cudaError_t _cudaGraphAddExternalSemaphoresSignalNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddExternalSemaphoresSignalNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) - return cudaGraphAddExternalSemaphoresSignalNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{endif}} + return _static_cudaGraphAddExternalSemaphoresSignalNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{if 'cudaGraphExternalSemaphoresSignalNodeGetParams' in found_functions}} cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExternalSemaphoresSignalNodeGetParams(hNode, params_out) - return cudaGraphExternalSemaphoresSignalNodeGetParams(hNode, params_out) -{{endif}} + return _static_cudaGraphExternalSemaphoresSignalNodeGetParams(hNode, params_out) -{{if 'cudaGraphExternalSemaphoresSignalNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams) - return cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams) -{{endif}} + return _static_cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams) -{{if 'cudaGraphAddExternalSemaphoresWaitNode' in found_functions}} cdef cudaError_t _cudaGraphAddExternalSemaphoresWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddExternalSemaphoresWaitNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) - return cudaGraphAddExternalSemaphoresWaitNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{endif}} + return _static_cudaGraphAddExternalSemaphoresWaitNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{if 'cudaGraphExternalSemaphoresWaitNodeGetParams' in found_functions}} cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExternalSemaphoresWaitNodeGetParams(hNode, params_out) - return cudaGraphExternalSemaphoresWaitNodeGetParams(hNode, params_out) -{{endif}} + return _static_cudaGraphExternalSemaphoresWaitNodeGetParams(hNode, params_out) -{{if 'cudaGraphExternalSemaphoresWaitNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams) - return cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams) -{{endif}} + return _static_cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams) -{{if 'cudaGraphAddMemAllocNode' in found_functions}} cdef cudaError_t _cudaGraphAddMemAllocNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddMemAllocNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) - return cudaGraphAddMemAllocNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{endif}} + return _static_cudaGraphAddMemAllocNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{if 'cudaGraphMemAllocNodeGetParams' in found_functions}} cdef cudaError_t _cudaGraphMemAllocNodeGetParams(cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphMemAllocNodeGetParams(node, params_out) - return cudaGraphMemAllocNodeGetParams(node, params_out) -{{endif}} + return _static_cudaGraphMemAllocNodeGetParams(node, params_out) -{{if 'cudaGraphAddMemFreeNode' in found_functions}} cdef cudaError_t _cudaGraphAddMemFreeNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddMemFreeNode(pGraphNode, graph, pDependencies, numDependencies, dptr) - return cudaGraphAddMemFreeNode(pGraphNode, graph, pDependencies, numDependencies, dptr) -{{endif}} + return _static_cudaGraphAddMemFreeNode(pGraphNode, graph, pDependencies, numDependencies, dptr) -{{if 'cudaGraphMemFreeNodeGetParams' in found_functions}} cdef cudaError_t _cudaGraphMemFreeNodeGetParams(cudaGraphNode_t node, void* dptr_out) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphMemFreeNodeGetParams(node, dptr_out) - return cudaGraphMemFreeNodeGetParams(node, dptr_out) -{{endif}} + return _static_cudaGraphMemFreeNodeGetParams(node, dptr_out) -{{if 'cudaDeviceGraphMemTrim' in found_functions}} cdef cudaError_t _cudaDeviceGraphMemTrim(int device) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceGraphMemTrim(device) - return cudaDeviceGraphMemTrim(device) -{{endif}} + return _static_cudaDeviceGraphMemTrim(device) -{{if 'cudaDeviceGetGraphMemAttribute' in found_functions}} cdef cudaError_t _cudaDeviceGetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceGetGraphMemAttribute(device, attr, value) - return cudaDeviceGetGraphMemAttribute(device, attr, value) -{{endif}} + return _static_cudaDeviceGetGraphMemAttribute(device, attr, value) -{{if 'cudaDeviceSetGraphMemAttribute' in found_functions}} cdef cudaError_t _cudaDeviceSetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceSetGraphMemAttribute(device, attr, value) - return cudaDeviceSetGraphMemAttribute(device, attr, value) -{{endif}} + return _static_cudaDeviceSetGraphMemAttribute(device, attr, value) -{{if 'cudaGraphClone' in found_functions}} cdef cudaError_t _cudaGraphClone(cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphClone(pGraphClone, originalGraph) - return cudaGraphClone(pGraphClone, originalGraph) -{{endif}} + return _static_cudaGraphClone(pGraphClone, originalGraph) -{{if 'cudaGraphNodeFindInClone' in found_functions}} cdef cudaError_t _cudaGraphNodeFindInClone(cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphNodeFindInClone(pNode, originalNode, clonedGraph) - return cudaGraphNodeFindInClone(pNode, originalNode, clonedGraph) -{{endif}} + return _static_cudaGraphNodeFindInClone(pNode, originalNode, clonedGraph) -{{if 'cudaGraphNodeGetType' in found_functions}} cdef cudaError_t _cudaGraphNodeGetType(cudaGraphNode_t node, cudaGraphNodeType* pType) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphNodeGetType(node, pType) - return cudaGraphNodeGetType(node, pType) -{{endif}} + return _static_cudaGraphNodeGetType(node, pType) -{{if 'cudaGraphGetNodes' in found_functions}} cdef cudaError_t _cudaGraphGetNodes(cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphGetNodes(graph, nodes, numNodes) - return cudaGraphGetNodes(graph, nodes, numNodes) -{{endif}} + return _static_cudaGraphGetNodes(graph, nodes, numNodes) -{{if 'cudaGraphGetRootNodes' in found_functions}} cdef cudaError_t _cudaGraphGetRootNodes(cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphGetRootNodes(graph, pRootNodes, pNumRootNodes) - return cudaGraphGetRootNodes(graph, pRootNodes, pNumRootNodes) -{{endif}} + return _static_cudaGraphGetRootNodes(graph, pRootNodes, pNumRootNodes) -{{if 'cudaGraphGetEdges' in found_functions}} cdef cudaError_t _cudaGraphGetEdges(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphGetEdges(graph, from_, to, numEdges) - return cudaGraphGetEdges(graph, from_, to, numEdges) -{{endif}} + return _static_cudaGraphGetEdges(graph, from_, to, numEdges) -{{if 'cudaGraphGetEdges_v2' in found_functions}} cdef cudaError_t _cudaGraphGetEdges_v2(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphGetEdges_v2(graph, from_, to, edgeData, numEdges) - return cudaGraphGetEdges_v2(graph, from_, to, edgeData, numEdges) -{{endif}} + return _static_cudaGraphGetEdges_v2(graph, from_, to, edgeData, numEdges) -{{if 'cudaGraphNodeGetDependencies' in found_functions}} cdef cudaError_t _cudaGraphNodeGetDependencies(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphNodeGetDependencies(node, pDependencies, pNumDependencies) - return cudaGraphNodeGetDependencies(node, pDependencies, pNumDependencies) -{{endif}} + return _static_cudaGraphNodeGetDependencies(node, pDependencies, pNumDependencies) -{{if 'cudaGraphNodeGetDependencies_v2' in found_functions}} cdef cudaError_t _cudaGraphNodeGetDependencies_v2(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphNodeGetDependencies_v2(node, pDependencies, edgeData, pNumDependencies) - return cudaGraphNodeGetDependencies_v2(node, pDependencies, edgeData, pNumDependencies) -{{endif}} + return _static_cudaGraphNodeGetDependencies_v2(node, pDependencies, edgeData, pNumDependencies) -{{if 'cudaGraphNodeGetDependentNodes' in found_functions}} cdef cudaError_t _cudaGraphNodeGetDependentNodes(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphNodeGetDependentNodes(node, pDependentNodes, pNumDependentNodes) - return cudaGraphNodeGetDependentNodes(node, pDependentNodes, pNumDependentNodes) -{{endif}} + return _static_cudaGraphNodeGetDependentNodes(node, pDependentNodes, pNumDependentNodes) -{{if 'cudaGraphNodeGetDependentNodes_v2' in found_functions}} cdef cudaError_t _cudaGraphNodeGetDependentNodes_v2(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphNodeGetDependentNodes_v2(node, pDependentNodes, edgeData, pNumDependentNodes) - return cudaGraphNodeGetDependentNodes_v2(node, pDependentNodes, edgeData, pNumDependentNodes) -{{endif}} + return _static_cudaGraphNodeGetDependentNodes_v2(node, pDependentNodes, edgeData, pNumDependentNodes) -{{if 'cudaGraphAddDependencies' in found_functions}} cdef cudaError_t _cudaGraphAddDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddDependencies(graph, from_, to, numDependencies) - return cudaGraphAddDependencies(graph, from_, to, numDependencies) -{{endif}} + return _static_cudaGraphAddDependencies(graph, from_, to, numDependencies) -{{if 'cudaGraphAddDependencies_v2' in found_functions}} cdef cudaError_t _cudaGraphAddDependencies_v2(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddDependencies_v2(graph, from_, to, edgeData, numDependencies) - return cudaGraphAddDependencies_v2(graph, from_, to, edgeData, numDependencies) -{{endif}} + return _static_cudaGraphAddDependencies_v2(graph, from_, to, edgeData, numDependencies) -{{if 'cudaGraphRemoveDependencies' in found_functions}} cdef cudaError_t _cudaGraphRemoveDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphRemoveDependencies(graph, from_, to, numDependencies) - return cudaGraphRemoveDependencies(graph, from_, to, numDependencies) -{{endif}} + return _static_cudaGraphRemoveDependencies(graph, from_, to, numDependencies) -{{if 'cudaGraphRemoveDependencies_v2' in found_functions}} cdef cudaError_t _cudaGraphRemoveDependencies_v2(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphRemoveDependencies_v2(graph, from_, to, edgeData, numDependencies) - return cudaGraphRemoveDependencies_v2(graph, from_, to, edgeData, numDependencies) -{{endif}} + return _static_cudaGraphRemoveDependencies_v2(graph, from_, to, edgeData, numDependencies) -{{if 'cudaGraphDestroyNode' in found_functions}} cdef cudaError_t _cudaGraphDestroyNode(cudaGraphNode_t node) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphDestroyNode(node) - return cudaGraphDestroyNode(node) -{{endif}} + return _static_cudaGraphDestroyNode(node) -{{if 'cudaGraphInstantiate' in found_functions}} cdef cudaError_t _cudaGraphInstantiate(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphInstantiate(pGraphExec, graph, flags) - return cudaGraphInstantiate(pGraphExec, graph, flags) -{{endif}} + return _static_cudaGraphInstantiate(pGraphExec, graph, flags) -{{if 'cudaGraphInstantiateWithFlags' in found_functions}} cdef cudaError_t _cudaGraphInstantiateWithFlags(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphInstantiateWithFlags(pGraphExec, graph, flags) - return cudaGraphInstantiateWithFlags(pGraphExec, graph, flags) -{{endif}} + return _static_cudaGraphInstantiateWithFlags(pGraphExec, graph, flags) -{{if 'cudaGraphInstantiateWithParams' in found_functions}} cdef cudaError_t _cudaGraphInstantiateWithParams(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphInstantiateWithParams(pGraphExec, graph, instantiateParams) - return cudaGraphInstantiateWithParams(pGraphExec, graph, instantiateParams) -{{endif}} + return _static_cudaGraphInstantiateWithParams(pGraphExec, graph, instantiateParams) -{{if 'cudaGraphExecGetFlags' in found_functions}} cdef cudaError_t _cudaGraphExecGetFlags(cudaGraphExec_t graphExec, unsigned long long* flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecGetFlags(graphExec, flags) - return cudaGraphExecGetFlags(graphExec, flags) -{{endif}} + return _static_cudaGraphExecGetFlags(graphExec, flags) -{{if 'cudaGraphExecKernelNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphExecKernelNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams) - return cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams) -{{endif}} + return _static_cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams) -{{if 'cudaGraphExecMemcpyNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams) - return cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams) -{{endif}} + return _static_cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams) -{{if 'cudaGraphExecMemcpyNodeSetParams1D' in found_functions}} cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams1D(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, count, kind) - return cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, count, kind) -{{endif}} + return _static_cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, count, kind) -{{if 'cudaGraphExecMemsetNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphExecMemsetNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams) - return cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams) -{{endif}} + return _static_cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams) -{{if 'cudaGraphExecHostNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphExecHostNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams) - return cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams) -{{endif}} + return _static_cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams) -{{if 'cudaGraphExecChildGraphNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphExecChildGraphNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph) - return cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph) -{{endif}} + return _static_cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph) -{{if 'cudaGraphExecEventRecordNodeSetEvent' in found_functions}} cdef cudaError_t _cudaGraphExecEventRecordNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event) - return cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event) -{{endif}} + return _static_cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event) -{{if 'cudaGraphExecEventWaitNodeSetEvent' in found_functions}} cdef cudaError_t _cudaGraphExecEventWaitNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event) - return cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event) -{{endif}} + return _static_cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event) -{{if 'cudaGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphExecExternalSemaphoresSignalNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams) - return cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams) -{{endif}} + return _static_cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams) -{{if 'cudaGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphExecExternalSemaphoresWaitNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams) - return cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams) -{{endif}} + return _static_cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams) -{{if 'cudaGraphNodeSetEnabled' in found_functions}} cdef cudaError_t _cudaGraphNodeSetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphNodeSetEnabled(hGraphExec, hNode, isEnabled) - return cudaGraphNodeSetEnabled(hGraphExec, hNode, isEnabled) -{{endif}} + return _static_cudaGraphNodeSetEnabled(hGraphExec, hNode, isEnabled) -{{if 'cudaGraphNodeGetEnabled' in found_functions}} cdef cudaError_t _cudaGraphNodeGetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphNodeGetEnabled(hGraphExec, hNode, isEnabled) - return cudaGraphNodeGetEnabled(hGraphExec, hNode, isEnabled) -{{endif}} + return _static_cudaGraphNodeGetEnabled(hGraphExec, hNode, isEnabled) -{{if 'cudaGraphExecUpdate' in found_functions}} cdef cudaError_t _cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecUpdate(hGraphExec, hGraph, resultInfo) - return cudaGraphExecUpdate(hGraphExec, hGraph, resultInfo) -{{endif}} + return _static_cudaGraphExecUpdate(hGraphExec, hGraph, resultInfo) -{{if 'cudaGraphUpload' in found_functions}} cdef cudaError_t _cudaGraphUpload(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphUpload(graphExec, stream) - return cudaGraphUpload(graphExec, stream) -{{endif}} + return _static_cudaGraphUpload(graphExec, stream) -{{if 'cudaGraphLaunch' in found_functions}} cdef cudaError_t _cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphLaunch(graphExec, stream) - return cudaGraphLaunch(graphExec, stream) -{{endif}} + return _static_cudaGraphLaunch(graphExec, stream) -{{if 'cudaGraphExecDestroy' in found_functions}} cdef cudaError_t _cudaGraphExecDestroy(cudaGraphExec_t graphExec) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecDestroy(graphExec) - return cudaGraphExecDestroy(graphExec) -{{endif}} + return _static_cudaGraphExecDestroy(graphExec) -{{if 'cudaGraphDestroy' in found_functions}} cdef cudaError_t _cudaGraphDestroy(cudaGraph_t graph) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphDestroy(graph) - return cudaGraphDestroy(graph) -{{endif}} + return _static_cudaGraphDestroy(graph) -{{if 'cudaGraphDebugDotPrint' in found_functions}} cdef cudaError_t _cudaGraphDebugDotPrint(cudaGraph_t graph, const char* path, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphDebugDotPrint(graph, path, flags) - return cudaGraphDebugDotPrint(graph, path, flags) -{{endif}} + return _static_cudaGraphDebugDotPrint(graph, path, flags) -{{if 'cudaUserObjectCreate' in found_functions}} cdef cudaError_t _cudaUserObjectCreate(cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaUserObjectCreate(object_out, ptr, destroy, initialRefcount, flags) - return cudaUserObjectCreate(object_out, ptr, destroy, initialRefcount, flags) -{{endif}} + return _static_cudaUserObjectCreate(object_out, ptr, destroy, initialRefcount, flags) -{{if 'cudaUserObjectRetain' in found_functions}} cdef cudaError_t _cudaUserObjectRetain(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaUserObjectRetain(object, count) - return cudaUserObjectRetain(object, count) -{{endif}} + return _static_cudaUserObjectRetain(object, count) -{{if 'cudaUserObjectRelease' in found_functions}} cdef cudaError_t _cudaUserObjectRelease(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaUserObjectRelease(object, count) - return cudaUserObjectRelease(object, count) -{{endif}} + return _static_cudaUserObjectRelease(object, count) -{{if 'cudaGraphRetainUserObject' in found_functions}} cdef cudaError_t _cudaGraphRetainUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphRetainUserObject(graph, object, count, flags) - return cudaGraphRetainUserObject(graph, object, count, flags) -{{endif}} + return _static_cudaGraphRetainUserObject(graph, object, count, flags) -{{if 'cudaGraphReleaseUserObject' in found_functions}} cdef cudaError_t _cudaGraphReleaseUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphReleaseUserObject(graph, object, count) - return cudaGraphReleaseUserObject(graph, object, count) -{{endif}} + return _static_cudaGraphReleaseUserObject(graph, object, count) -{{if 'cudaGraphAddNode' in found_functions}} cdef cudaError_t _cudaGraphAddNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) - return cudaGraphAddNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{endif}} + return _static_cudaGraphAddNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{if 'cudaGraphAddNode_v2' in found_functions}} cdef cudaError_t _cudaGraphAddNode_v2(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddNode_v2(pGraphNode, graph, pDependencies, dependencyData, numDependencies, nodeParams) - return cudaGraphAddNode_v2(pGraphNode, graph, pDependencies, dependencyData, numDependencies, nodeParams) -{{endif}} + return _static_cudaGraphAddNode_v2(pGraphNode, graph, pDependencies, dependencyData, numDependencies, nodeParams) -{{if 'cudaGraphNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphNodeSetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphNodeSetParams(node, nodeParams) - return cudaGraphNodeSetParams(node, nodeParams) -{{endif}} + return _static_cudaGraphNodeSetParams(node, nodeParams) -{{if 'cudaGraphExecNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphExecNodeSetParams(cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecNodeSetParams(graphExec, node, nodeParams) - return cudaGraphExecNodeSetParams(graphExec, node, nodeParams) -{{endif}} + return _static_cudaGraphExecNodeSetParams(graphExec, node, nodeParams) -{{if 'cudaGraphConditionalHandleCreate' in found_functions}} cdef cudaError_t _cudaGraphConditionalHandleCreate(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphConditionalHandleCreate(pHandle_out, graph, defaultLaunchValue, flags) - return cudaGraphConditionalHandleCreate(pHandle_out, graph, defaultLaunchValue, flags) -{{endif}} + return _static_cudaGraphConditionalHandleCreate(pHandle_out, graph, defaultLaunchValue, flags) -{{if 'cudaGetDriverEntryPoint' in found_functions}} cdef cudaError_t _cudaGetDriverEntryPoint(const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetDriverEntryPoint(symbol, funcPtr, flags, driverStatus) - return cudaGetDriverEntryPoint(symbol, funcPtr, flags, driverStatus) -{{endif}} + return _static_cudaGetDriverEntryPoint(symbol, funcPtr, flags, driverStatus) -{{if 'cudaGetDriverEntryPointByVersion' in found_functions}} cdef cudaError_t _cudaGetDriverEntryPointByVersion(const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetDriverEntryPointByVersion(symbol, funcPtr, cudaVersion, flags, driverStatus) - return cudaGetDriverEntryPointByVersion(symbol, funcPtr, cudaVersion, flags, driverStatus) -{{endif}} + return _static_cudaGetDriverEntryPointByVersion(symbol, funcPtr, cudaVersion, flags, driverStatus) -{{if 'cudaLibraryLoadData' in found_functions}} cdef cudaError_t _cudaLibraryLoadData(cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaLibraryLoadData(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) - return cudaLibraryLoadData(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) -{{endif}} + return _static_cudaLibraryLoadData(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) -{{if 'cudaLibraryLoadFromFile' in found_functions}} cdef cudaError_t _cudaLibraryLoadFromFile(cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaLibraryLoadFromFile(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) - return cudaLibraryLoadFromFile(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) -{{endif}} + return _static_cudaLibraryLoadFromFile(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) -{{if 'cudaLibraryUnload' in found_functions}} cdef cudaError_t _cudaLibraryUnload(cudaLibrary_t library) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaLibraryUnload(library) - return cudaLibraryUnload(library) -{{endif}} + return _static_cudaLibraryUnload(library) -{{if 'cudaLibraryGetKernel' in found_functions}} cdef cudaError_t _cudaLibraryGetKernel(cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaLibraryGetKernel(pKernel, library, name) - return cudaLibraryGetKernel(pKernel, library, name) -{{endif}} + return _static_cudaLibraryGetKernel(pKernel, library, name) -{{if 'cudaLibraryGetGlobal' in found_functions}} -cdef cudaError_t _cudaLibraryGetGlobal(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaLibraryGetGlobal(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: - return ptds._cudaLibraryGetGlobal(dptr, numbytes, library, name) - return cudaLibraryGetGlobal(dptr, numbytes, library, name) -{{endif}} + return ptds._cudaLibraryGetGlobal(dptr, bytes, library, name) + return _static_cudaLibraryGetGlobal(dptr, bytes, library, name) -{{if 'cudaLibraryGetManaged' in found_functions}} -cdef cudaError_t _cudaLibraryGetManaged(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaLibraryGetManaged(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: - return ptds._cudaLibraryGetManaged(dptr, numbytes, library, name) - return cudaLibraryGetManaged(dptr, numbytes, library, name) -{{endif}} + return ptds._cudaLibraryGetManaged(dptr, bytes, library, name) + return _static_cudaLibraryGetManaged(dptr, bytes, library, name) -{{if 'cudaLibraryGetUnifiedFunction' in found_functions}} cdef cudaError_t _cudaLibraryGetUnifiedFunction(void** fptr, cudaLibrary_t library, const char* symbol) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaLibraryGetUnifiedFunction(fptr, library, symbol) - return cudaLibraryGetUnifiedFunction(fptr, library, symbol) -{{endif}} + return _static_cudaLibraryGetUnifiedFunction(fptr, library, symbol) -{{if 'cudaLibraryGetKernelCount' in found_functions}} cdef cudaError_t _cudaLibraryGetKernelCount(unsigned int* count, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaLibraryGetKernelCount(count, lib) - return cudaLibraryGetKernelCount(count, lib) -{{endif}} + return _static_cudaLibraryGetKernelCount(count, lib) -{{if 'cudaLibraryEnumerateKernels' in found_functions}} cdef cudaError_t _cudaLibraryEnumerateKernels(cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaLibraryEnumerateKernels(kernels, numKernels, lib) - return cudaLibraryEnumerateKernels(kernels, numKernels, lib) -{{endif}} + return _static_cudaLibraryEnumerateKernels(kernels, numKernels, lib) -{{if 'cudaKernelSetAttributeForDevice' in found_functions}} cdef cudaError_t _cudaKernelSetAttributeForDevice(cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaKernelSetAttributeForDevice(kernel, attr, value, device) - return cudaKernelSetAttributeForDevice(kernel, attr, value, device) -{{endif}} + return _static_cudaKernelSetAttributeForDevice(kernel, attr, value, device) -{{if 'cudaGetExportTable' in found_functions}} cdef cudaError_t _cudaGetExportTable(const void** ppExportTable, const cudaUUID_t* pExportTableId) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetExportTable(ppExportTable, pExportTableId) - return cudaGetExportTable(ppExportTable, pExportTableId) -{{endif}} + return _static_cudaGetExportTable(ppExportTable, pExportTableId) -{{if 'cudaGetKernel' in found_functions}} cdef cudaError_t _cudaGetKernel(cudaKernel_t* kernelPtr, const void* entryFuncAddr) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetKernel(kernelPtr, entryFuncAddr) - return cudaGetKernel(kernelPtr, entryFuncAddr) -{{endif}} + return _static_cudaGetKernel(kernelPtr, entryFuncAddr) -{{if 'make_cudaPitchedPtr' in found_functions}} -@cython.show_performance_hints(False) -cdef cudaPitchedPtr _make_cudaPitchedPtr(void* d, size_t p, size_t xsz, size_t ysz) except* nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._make_cudaPitchedPtr(d, p, xsz, ysz) - return make_cudaPitchedPtr(d, p, xsz, ysz) -{{endif}} - -{{if 'make_cudaPos' in found_functions}} -@cython.show_performance_hints(False) -cdef cudaPos _make_cudaPos(size_t x, size_t y, size_t z) except* nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._make_cudaPos(x, y, z) - return make_cudaPos(x, y, z) -{{endif}} - -{{if 'make_cudaExtent' in found_functions}} -@cython.show_performance_hints(False) -cdef cudaExtent _make_cudaExtent(size_t w, size_t h, size_t d) except* nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._make_cudaExtent(w, h, d) - return make_cudaExtent(w, h, d) -{{endif}} - -{{if 'cudaProfilerStart' in found_functions}} cdef cudaError_t _cudaProfilerStart() except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaProfilerStart() - return cudaProfilerStart() -{{endif}} + return _static_cudaProfilerStart() -{{if 'cudaProfilerStop' in found_functions}} cdef cudaError_t _cudaProfilerStop() except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaProfilerStop() - return cudaProfilerStop() -{{endif}} - - -include "../_lib/cyruntime/cyruntime.pxi" + return _static_cudaProfilerStop() diff --git a/cuda_bindings_12/cuda/bindings/_lib/cyruntime/cyruntime.pxd b/cuda_bindings_12/cuda/bindings/_lib/cyruntime/cyruntime.pxd index 482f91ca5956..7258d4b43cc7 100644 --- a/cuda_bindings_12/cuda/bindings/_lib/cyruntime/cyruntime.pxd +++ b/cuda_bindings_12/cuda/bindings/_lib/cyruntime/cyruntime.pxd @@ -1,7 +1,6 @@ # SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -cimport cuda.bindings.cyruntime as cyruntime cimport cuda.bindings._internal.driver as _cydriver # These graphics API are the reimplemented version of what's supported by CUDA Runtime. @@ -17,27 +16,27 @@ cimport cuda.bindings._internal.driver as _cydriver # independent modules (c.b._lib.cyruntime.cyruntime and # c.b._lib.cyruntime.utils), but was merged into one. -cdef cudaError_t _cudaEGLStreamProducerPresentFrame(cyruntime.cudaEglStreamConnection* conn, cyruntime.cudaEglFrame eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaEGLStreamProducerReturnFrame(cyruntime.cudaEglStreamConnection* conn, cyruntime.cudaEglFrame* eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaGraphicsResourceGetMappedEglFrame(cyruntime.cudaEglFrame* eglFrame, cudaGraphicsResource_t resource, unsigned int index, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaVDPAUSetVDPAUDevice(int device, cyruntime.VdpDevice vdpDevice, cyruntime.VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaVDPAUGetDevice(int* device, cyruntime.VdpDevice vdpDevice, cyruntime.VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaGraphicsVDPAURegisterVideoSurface(cudaGraphicsResource** resource, cyruntime.VdpVideoSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaGraphicsVDPAURegisterOutputSurface(cudaGraphicsResource** resource, cyruntime.VdpOutputSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaGLGetDevices(unsigned int* pCudaDeviceCount, int* pCudaDevices, unsigned int cudaDeviceCount, cyruntime.cudaGLDeviceList deviceList) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaGraphicsGLRegisterImage(cudaGraphicsResource** resource, cyruntime.GLuint image, cyruntime.GLenum target, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaGraphicsGLRegisterBuffer(cudaGraphicsResource** resource, cyruntime.GLuint buffer, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaGraphicsEGLRegisterImage(cudaGraphicsResource_t* pCudaResource, cyruntime.EGLImageKHR image, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaEGLStreamConsumerConnect(cyruntime.cudaEglStreamConnection* conn, cyruntime.EGLStreamKHR eglStream) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaEGLStreamConsumerConnectWithFlags(cyruntime.cudaEglStreamConnection* conn, cyruntime.EGLStreamKHR eglStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaEGLStreamConsumerDisconnect(cyruntime.cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaEGLStreamConsumerAcquireFrame(cyruntime.cudaEglStreamConnection* conn, cudaGraphicsResource_t* pCudaResource, cudaStream_t* pStream, unsigned int timeout) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaEGLStreamConsumerReleaseFrame(cyruntime.cudaEglStreamConnection* conn, cudaGraphicsResource_t pCudaResource, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaEGLStreamProducerConnect(cyruntime.cudaEglStreamConnection* conn, cyruntime.EGLStreamKHR eglStream, cyruntime.EGLint width, cyruntime.EGLint height) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaEGLStreamProducerDisconnect(cyruntime.cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaEventCreateFromEGLSync(cudaEvent_t* phEvent, cyruntime.EGLSyncKHR eglSync, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaEGLStreamProducerPresentFrame(cudaEglStreamConnection* conn, cudaEglFrame eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaEGLStreamProducerReturnFrame(cudaEglStreamConnection* conn, cudaEglFrame* eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphicsResourceGetMappedEglFrame(cudaEglFrame* eglFrame, cudaGraphicsResource_t resource, unsigned int index, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaVDPAUSetVDPAUDevice(int device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaVDPAUGetDevice(int* device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphicsVDPAURegisterVideoSurface(cudaGraphicsResource** resource, VdpVideoSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphicsVDPAURegisterOutputSurface(cudaGraphicsResource** resource, VdpOutputSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGLGetDevices(unsigned int* pCudaDeviceCount, int* pCudaDevices, unsigned int cudaDeviceCount, cudaGLDeviceList deviceList) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphicsGLRegisterImage(cudaGraphicsResource** resource, GLuint image, GLenum target, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphicsGLRegisterBuffer(cudaGraphicsResource** resource, GLuint buffer, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphicsEGLRegisterImage(cudaGraphicsResource_t* pCudaResource, EGLImageKHR image, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaEGLStreamConsumerConnect(cudaEglStreamConnection* conn, EGLStreamKHR eglStream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaEGLStreamConsumerConnectWithFlags(cudaEglStreamConnection* conn, EGLStreamKHR eglStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaEGLStreamConsumerDisconnect(cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaEGLStreamConsumerAcquireFrame(cudaEglStreamConnection* conn, cudaGraphicsResource_t* pCudaResource, cudaStream_t* pStream, unsigned int timeout) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaEGLStreamConsumerReleaseFrame(cudaEglStreamConnection* conn, cudaGraphicsResource_t pCudaResource, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaEGLStreamProducerConnect(cudaEglStreamConnection* conn, EGLStreamKHR eglStream, EGLint width, EGLint height) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaEGLStreamProducerDisconnect(cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaEventCreateFromEGLSync(cudaEvent_t* phEvent, EGLSyncKHR eglSync, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil # utility functions -cdef cudaError_t getDriverEglFrame(_cydriver.CUeglFrame *cuEglFrame, cyruntime.cudaEglFrame eglFrame) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t getRuntimeEglFrame(cyruntime.cudaEglFrame *eglFrame, _cydriver.CUeglFrame cueglFrame) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t getDriverEglFrame(_cydriver.CUeglFrame *cuEglFrame, cudaEglFrame eglFrame) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t getRuntimeEglFrame(cudaEglFrame *eglFrame, _cydriver.CUeglFrame cueglFrame) except ?cudaErrorCallRequiresNewerDriver nogil diff --git a/cuda_bindings_12/cuda/bindings/_lib/cyruntime/cyruntime.pxi b/cuda_bindings_12/cuda/bindings/_lib/cyruntime/cyruntime.pxi index 455279665427..22161ed01153 100644 --- a/cuda_bindings_12/cuda/bindings/_lib/cyruntime/cyruntime.pxi +++ b/cuda_bindings_12/cuda/bindings/_lib/cyruntime/cyruntime.pxi @@ -11,14 +11,22 @@ # Prior to https://github.com/NVIDIA/cuda-python/pull/914, this was two # independent modules (c.b._lib.cyruntime.cyruntime and # c.b._lib.cyruntime.utils), but was merged into one. +import cython +cimport cython from libc.string cimport memset cimport cuda.bindings._internal.driver as cydriver -cdef cudaError_t _cudaEGLStreamProducerPresentFrame(cyruntime.cudaEglStreamConnection* conn, cyruntime.cudaEglFrame eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: +# Call make_cudaPitchedPtr directly from the C header to avoid a runtime import +# of cuda.bindings.cyruntime (the Cython wrapper lives there but including it +# here would create a circular import via _internal.runtime → cyruntime → _internal.runtime). +cdef extern from 'driver_functions.h': + cudaPitchedPtr _cylib_make_cudaPitchedPtr "make_cudaPitchedPtr"(void* d, size_t p, size_t xsz, size_t ysz) nogil + +cdef cudaError_t _cudaEGLStreamProducerPresentFrame(cudaEglStreamConnection* conn, cudaEglFrame eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err cdef cydriver.CUeglFrame cueglFrame @@ -28,10 +36,10 @@ cdef cudaError_t _cudaEGLStreamProducerPresentFrame(cyruntime.cudaEglStreamConne err = cydriver._cuEGLStreamProducerPresentFrame(conn, cueglFrame, pStream) return err -cdef cudaError_t _cudaEGLStreamProducerReturnFrame(cyruntime.cudaEglStreamConnection* conn, cyruntime.cudaEglFrame* eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaEGLStreamProducerReturnFrame(cudaEglStreamConnection* conn, cudaEglFrame* eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err if eglframe == NULL: @@ -44,10 +52,10 @@ cdef cudaError_t _cudaEGLStreamProducerReturnFrame(cyruntime.cudaEglStreamConnec err = getRuntimeEglFrame(eglframe, cueglFrame) return err -cdef cudaError_t _cudaGraphicsResourceGetMappedEglFrame(cyruntime.cudaEglFrame* eglFrame, cudaGraphicsResource_t resource, unsigned int index, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaGraphicsResourceGetMappedEglFrame(cudaEglFrame* eglFrame, cudaGraphicsResource_t resource, unsigned int index, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err cdef cydriver.CUeglFrame cueglFrame @@ -58,139 +66,139 @@ cdef cudaError_t _cudaGraphicsResourceGetMappedEglFrame(cyruntime.cudaEglFrame* err = getRuntimeEglFrame(eglFrame, cueglFrame) return err -cdef cudaError_t _cudaVDPAUSetVDPAUDevice(int device, cyruntime.VdpDevice vdpDevice, cyruntime.VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaVDPAUSetVDPAUDevice(int device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil: return cudaErrorNotSupported -cdef cudaError_t _cudaVDPAUGetDevice(int* device, cyruntime.VdpDevice vdpDevice, cyruntime.VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaVDPAUGetDevice(int* device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuVDPAUGetDevice(device, vdpDevice, vdpGetProcAddress) return err -cdef cudaError_t _cudaGraphicsVDPAURegisterVideoSurface(cudaGraphicsResource** resource, cyruntime.VdpVideoSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaGraphicsVDPAURegisterVideoSurface(cudaGraphicsResource** resource, VdpVideoSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuGraphicsVDPAURegisterVideoSurface(resource, vdpSurface, flags) return err -cdef cudaError_t _cudaGraphicsVDPAURegisterOutputSurface(cudaGraphicsResource** resource, cyruntime.VdpOutputSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaGraphicsVDPAURegisterOutputSurface(cudaGraphicsResource** resource, VdpOutputSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuGraphicsVDPAURegisterOutputSurface(resource, vdpSurface, flags) return err -cdef cudaError_t _cudaGLGetDevices(unsigned int* pCudaDeviceCount, int* pCudaDevices, unsigned int cudaDeviceCount, cyruntime.cudaGLDeviceList deviceList) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaGLGetDevices(unsigned int* pCudaDeviceCount, int* pCudaDevices, unsigned int cudaDeviceCount, cudaGLDeviceList deviceList) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuGLGetDevices_v2(pCudaDeviceCount, pCudaDevices, cudaDeviceCount, deviceList) return err -cdef cudaError_t _cudaGraphicsGLRegisterImage(cudaGraphicsResource** resource, cyruntime.GLuint image, cyruntime.GLenum target, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaGraphicsGLRegisterImage(cudaGraphicsResource** resource, GLuint image, GLenum target, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuGraphicsGLRegisterImage(resource, image, target, flags) return err -cdef cudaError_t _cudaGraphicsGLRegisterBuffer(cudaGraphicsResource** resource, cyruntime.GLuint buffer, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaGraphicsGLRegisterBuffer(cudaGraphicsResource** resource, GLuint buffer, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuGraphicsGLRegisterBuffer(resource, buffer, flags) return err -cdef cudaError_t _cudaGraphicsEGLRegisterImage(cudaGraphicsResource_t* pCudaResource, cyruntime.EGLImageKHR image, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaGraphicsEGLRegisterImage(cudaGraphicsResource_t* pCudaResource, EGLImageKHR image, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuGraphicsEGLRegisterImage(pCudaResource, image, flags) return err -cdef cudaError_t _cudaEGLStreamConsumerConnect(cyruntime.cudaEglStreamConnection* conn, cyruntime.EGLStreamKHR eglStream) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaEGLStreamConsumerConnect(cudaEglStreamConnection* conn, EGLStreamKHR eglStream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuEGLStreamConsumerConnect(conn, eglStream) return err -cdef cudaError_t _cudaEGLStreamConsumerConnectWithFlags(cyruntime.cudaEglStreamConnection* conn, cyruntime.EGLStreamKHR eglStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaEGLStreamConsumerConnectWithFlags(cudaEglStreamConnection* conn, EGLStreamKHR eglStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuEGLStreamConsumerConnectWithFlags(conn, eglStream, flags) return err -cdef cudaError_t _cudaEGLStreamConsumerDisconnect(cyruntime.cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaEGLStreamConsumerDisconnect(cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuEGLStreamConsumerDisconnect(conn) return err -cdef cudaError_t _cudaEGLStreamConsumerAcquireFrame(cyruntime.cudaEglStreamConnection* conn, cudaGraphicsResource_t* pCudaResource, cudaStream_t* pStream, unsigned int timeout) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaEGLStreamConsumerAcquireFrame(cudaEglStreamConnection* conn, cudaGraphicsResource_t* pCudaResource, cudaStream_t* pStream, unsigned int timeout) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuEGLStreamConsumerAcquireFrame(conn, pCudaResource, pStream, timeout) return err -cdef cudaError_t _cudaEGLStreamConsumerReleaseFrame(cyruntime.cudaEglStreamConnection* conn, cudaGraphicsResource_t pCudaResource, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaEGLStreamConsumerReleaseFrame(cudaEglStreamConnection* conn, cudaGraphicsResource_t pCudaResource, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuEGLStreamConsumerReleaseFrame(conn, pCudaResource, pStream) return err -cdef cudaError_t _cudaEGLStreamProducerConnect(cyruntime.cudaEglStreamConnection* conn, cyruntime.EGLStreamKHR eglStream, cyruntime.EGLint width, cyruntime.EGLint height) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaEGLStreamProducerConnect(cudaEglStreamConnection* conn, EGLStreamKHR eglStream, EGLint width, EGLint height) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuEGLStreamProducerConnect(conn, eglStream, width, height) return err -cdef cudaError_t _cudaEGLStreamProducerDisconnect(cyruntime.cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaEGLStreamProducerDisconnect(cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuEGLStreamProducerDisconnect(conn) return err -cdef cudaError_t _cudaEventCreateFromEGLSync(cudaEvent_t* phEvent, cyruntime.EGLSyncKHR eglSync, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaEventCreateFromEGLSync(cudaEvent_t* phEvent, EGLSyncKHR eglSync, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuEventCreateFromEGLSync(phEvent, eglSync, flags) @@ -600,7 +608,7 @@ cdef cudaError_t getChannelFormatDescFromDriverDesc(cudaChannelFormatDesc* pRunt pWidth[0] = pDriverDesc[0].Width return cudaSuccess -cdef cudaError_t getDriverEglFrame(cydriver.CUeglFrame *cuEglFrame, cyruntime.cudaEglFrame eglFrame) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t getDriverEglFrame(cydriver.CUeglFrame *cuEglFrame, cudaEglFrame eglFrame) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess cdef unsigned int i = 0 @@ -608,7 +616,7 @@ cdef cudaError_t getDriverEglFrame(cydriver.CUeglFrame *cuEglFrame, cyruntime.cu if err != cudaSuccess: return err for i in range(eglFrame.planeCount): - if eglFrame.frameType == cyruntime.cudaEglFrameTypeArray: + if eglFrame.frameType == cudaEglFrameTypeArray: cuEglFrame[0].frame.pArray[i] = eglFrame.frame.pArray[i] else: cuEglFrame[0].frame.pPitch[i] = eglFrame.frame.pPitch[i].ptr @@ -617,243 +625,243 @@ cdef cudaError_t getDriverEglFrame(cydriver.CUeglFrame *cuEglFrame, cyruntime.cu cuEglFrame[0].depth = eglFrame.planeDesc[0].depth cuEglFrame[0].pitch = eglFrame.planeDesc[0].pitch cuEglFrame[0].planeCount = eglFrame.planeCount - if eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV420Planar: + if eglFrame.eglColorFormat == cudaEglColorFormatYUV420Planar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_PLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV420SemiPlanar: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV420SemiPlanar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV422Planar: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV422Planar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV422_PLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV422SemiPlanar: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV422SemiPlanar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV422_SEMIPLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV444Planar: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV444Planar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV444_PLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV444SemiPlanar: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV444SemiPlanar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV444_SEMIPLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUYV422: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUYV422: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUYV_422 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatUYVY422: + elif eglFrame.eglColorFormat == cudaEglColorFormatUYVY422: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_UYVY_422 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatUYVY709: + elif eglFrame.eglColorFormat == cudaEglColorFormatUYVY709: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_UYVY_709 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatUYVY709_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatUYVY709_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_UYVY_709_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatUYVY2020: + elif eglFrame.eglColorFormat == cudaEglColorFormatUYVY2020: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_UYVY_2020 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatARGB: + elif eglFrame.eglColorFormat == cudaEglColorFormatARGB: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_ARGB - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatRGBA: + elif eglFrame.eglColorFormat == cudaEglColorFormatRGBA: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_RGBA - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatABGR: + elif eglFrame.eglColorFormat == cudaEglColorFormatABGR: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_ABGR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBGRA: + elif eglFrame.eglColorFormat == cudaEglColorFormatBGRA: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BGRA - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatL: + elif eglFrame.eglColorFormat == cudaEglColorFormatL: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_L - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatR: + elif eglFrame.eglColorFormat == cudaEglColorFormatR: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_R - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatA: + elif eglFrame.eglColorFormat == cudaEglColorFormatA: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_A - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatRG: + elif eglFrame.eglColorFormat == cudaEglColorFormatRG: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_RG - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatAYUV: + elif eglFrame.eglColorFormat == cudaEglColorFormatAYUV: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_AYUV - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU444SemiPlanar: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU444SemiPlanar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU444_SEMIPLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU422SemiPlanar: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU422SemiPlanar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU422_SEMIPLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU420SemiPlanar: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU420SemiPlanar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY10V10U10_444SemiPlanar: + elif eglFrame.eglColorFormat == cudaEglColorFormatY10V10U10_444SemiPlanar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY10V10U10_420SemiPlanar: + elif eglFrame.eglColorFormat == cudaEglColorFormatY10V10U10_420SemiPlanar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY12V12U12_444SemiPlanar: + elif eglFrame.eglColorFormat == cudaEglColorFormatY12V12U12_444SemiPlanar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY12V12U12_420SemiPlanar: + elif eglFrame.eglColorFormat == cudaEglColorFormatY12V12U12_420SemiPlanar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatVYUY_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatVYUY_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_VYUY_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatUYVY_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatUYVY_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_UYVY_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUYV_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUYV_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUYV_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVYU_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVYU_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVYU_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUVA_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUVA_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUVA_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatAYUV_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatAYUV_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_AYUV_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV444Planar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV444Planar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV444_PLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV422Planar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV422Planar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV422_PLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV420Planar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV420Planar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_PLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV444SemiPlanar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV444SemiPlanar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV444_SEMIPLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV422SemiPlanar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV422SemiPlanar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV422_SEMIPLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV420SemiPlanar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV420SemiPlanar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU444Planar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU444Planar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU444_PLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU422Planar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU422Planar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU422_PLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU420Planar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU420Planar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_PLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU444SemiPlanar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU444SemiPlanar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU444_SEMIPLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU422SemiPlanar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU422SemiPlanar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU422_SEMIPLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU420SemiPlanar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU420SemiPlanar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayerRGGB: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayerRGGB: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_RGGB - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayerBGGR: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayerBGGR: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_BGGR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayerGRBG: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayerGRBG: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_GRBG - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayerGBRG: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayerGBRG: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_GBRG - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer10RGGB: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer10RGGB: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER10_RGGB - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer10BGGR: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer10BGGR: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER10_BGGR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer10GRBG: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer10GRBG: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER10_GRBG - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer10GBRG: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer10GBRG: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER10_GBRG - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer12RGGB: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer12RGGB: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_RGGB - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer12BGGR: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer12BGGR: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_BGGR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer12GRBG: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer12GRBG: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_GRBG - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer12GBRG: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer12GBRG: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_GBRG - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer14RGGB: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer14RGGB: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER14_RGGB - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer14BGGR: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer14BGGR: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER14_BGGR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer14GRBG: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer14GRBG: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER14_GRBG - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer14GBRG: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer14GBRG: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER14_GBRG - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer20RGGB: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer20RGGB: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER20_RGGB - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer20BGGR: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer20BGGR: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER20_BGGR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer20GRBG: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer20GRBG: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER20_GRBG - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer20GBRG: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer20GBRG: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER20_GBRG - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayerIspRGGB: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayerIspRGGB: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_ISP_RGGB - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayerIspBGGR: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayerIspBGGR: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_ISP_BGGR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayerIspGRBG: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayerIspGRBG: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_ISP_GRBG - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayerIspGBRG: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayerIspGBRG: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_ISP_GBRG - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU444Planar: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU444Planar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU444_PLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU422Planar: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU422Planar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU422_PLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU420Planar: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU420Planar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_PLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayerBCCR: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayerBCCR: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_BCCR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayerRCCB: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayerRCCB: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_RCCB - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayerCRBC: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayerCRBC: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_CRBC - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayerCBRC: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayerCBRC: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_CBRC - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer10CCCC: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer10CCCC: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER10_CCCC - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer12BCCR: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer12BCCR: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_BCCR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer12RCCB: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer12RCCB: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_RCCB - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer12CRBC: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer12CRBC: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_CRBC - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer12CBRC: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer12CBRC: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_CBRC - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer12CCCC: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer12CCCC: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_CCCC - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY: + elif eglFrame.eglColorFormat == cudaEglColorFormatY: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV420SemiPlanar_2020: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV420SemiPlanar_2020: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_2020 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU420SemiPlanar_2020: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU420SemiPlanar_2020: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_2020 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV420Planar_2020: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV420Planar_2020: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_PLANAR_2020 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU420Planar_2020: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU420Planar_2020: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_PLANAR_2020 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV420SemiPlanar_709: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV420SemiPlanar_709: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_709 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU420SemiPlanar_709: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU420SemiPlanar_709: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_709 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV420Planar_709: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV420Planar_709: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_PLANAR_709 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU420Planar_709: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU420Planar_709: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_PLANAR_709 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY10V10U10_420SemiPlanar_709: + elif eglFrame.eglColorFormat == cudaEglColorFormatY10V10U10_420SemiPlanar_709: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_709 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY10V10U10_420SemiPlanar_2020: + elif eglFrame.eglColorFormat == cudaEglColorFormatY10V10U10_420SemiPlanar_2020: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_2020 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY10V10U10_422SemiPlanar_2020: + elif eglFrame.eglColorFormat == cudaEglColorFormatY10V10U10_422SemiPlanar_2020: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR_2020 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY10V10U10_422SemiPlanar: + elif eglFrame.eglColorFormat == cudaEglColorFormatY10V10U10_422SemiPlanar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY10V10U10_422SemiPlanar_709: + elif eglFrame.eglColorFormat == cudaEglColorFormatY10V10U10_422SemiPlanar_709: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR_709 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY_709_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY_709_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y_709_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY10_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY10_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY10_709_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY10_709_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10_709_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY12_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY12_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY12_709_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY12_709_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12_709_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUVA: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUVA: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUVA - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVYU: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVYU: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVYU - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatVYUY: + elif eglFrame.eglColorFormat == cudaEglColorFormatVYUY: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_VYUY - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY10V10U10_420SemiPlanar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY10V10U10_420SemiPlanar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY10V10U10_420SemiPlanar_709_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY10V10U10_420SemiPlanar_709_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_709_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY10V10U10_444SemiPlanar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY10V10U10_444SemiPlanar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY10V10U10_444SemiPlanar_709_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY10V10U10_444SemiPlanar_709_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR_709_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY12V12U12_420SemiPlanar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY12V12U12_420SemiPlanar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY12V12U12_420SemiPlanar_709_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY12V12U12_420SemiPlanar_709_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR_709_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY12V12U12_444SemiPlanar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY12V12U12_444SemiPlanar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR_709_ER else: return cudaErrorInvalidValue - if eglFrame.frameType == cyruntime.cudaEglFrameTypeArray: + if eglFrame.frameType == cudaEglFrameTypeArray: cuEglFrame[0].frameType = cydriver.CUeglFrameType_enum.CU_EGL_FRAME_TYPE_ARRAY - elif eglFrame.frameType == cyruntime.cudaEglFrameTypePitch: + elif eglFrame.frameType == cudaEglFrameTypePitch: cuEglFrame[0].frameType = cydriver.CUeglFrameType_enum.CU_EGL_FRAME_TYPE_PITCH else: return cudaErrorInvalidValue @cython.show_performance_hints(False) -cdef cudaError_t getRuntimeEglFrame(cyruntime.cudaEglFrame *eglFrame, cydriver.CUeglFrame cueglFrame) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t getRuntimeEglFrame(cudaEglFrame *eglFrame, cydriver.CUeglFrame cueglFrame) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess cdef unsigned int i cdef cydriver.CUDA_ARRAY3D_DESCRIPTOR_v2 ad @@ -971,242 +979,242 @@ cdef cudaError_t getRuntimeEglFrame(cyruntime.cudaEglFrame *eglFrame, cydriver.C if cueglFrame.frameType == cydriver.CUeglFrameType_enum.CU_EGL_FRAME_TYPE_ARRAY: eglFrame[0].frame.pArray[i] = cueglFrame.frame.pArray[i] else: - pPtr = make_cudaPitchedPtr(cueglFrame.frame.pPitch[i], eglFrame[0].planeDesc[i].pitch, + pPtr = _cylib_make_cudaPitchedPtr(cueglFrame.frame.pPitch[i], eglFrame[0].planeDesc[i].pitch, eglFrame[0].planeDesc[i].width, eglFrame[0].planeDesc[i].height) eglFrame[0].frame.pPitch[i] = pPtr eglFrame[0].planeCount = cueglFrame.planeCount if cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_PLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV420Planar + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV420Planar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV420SemiPlanar + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV420SemiPlanar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV422_PLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV422Planar + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV422Planar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV422_SEMIPLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV422SemiPlanar + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV422SemiPlanar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV444_PLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV444Planar + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV444Planar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV444_SEMIPLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV444SemiPlanar + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV444SemiPlanar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUYV_422: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUYV422 + eglFrame[0].eglColorFormat = cudaEglColorFormatYUYV422 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_UYVY_422: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatUYVY422 + eglFrame[0].eglColorFormat = cudaEglColorFormatUYVY422 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_UYVY_709: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatUYVY709 + eglFrame[0].eglColorFormat = cudaEglColorFormatUYVY709 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_UYVY_709_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatUYVY709_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatUYVY709_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_UYVY_2020: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatUYVY2020 + eglFrame[0].eglColorFormat = cudaEglColorFormatUYVY2020 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_ARGB: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatARGB + eglFrame[0].eglColorFormat = cudaEglColorFormatARGB elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_RGBA: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatRGBA + eglFrame[0].eglColorFormat = cudaEglColorFormatRGBA elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_ABGR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatABGR + eglFrame[0].eglColorFormat = cudaEglColorFormatABGR elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BGRA: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBGRA + eglFrame[0].eglColorFormat = cudaEglColorFormatBGRA elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_L: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatL + eglFrame[0].eglColorFormat = cudaEglColorFormatL elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_R: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatR + eglFrame[0].eglColorFormat = cudaEglColorFormatR elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_A: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatA + eglFrame[0].eglColorFormat = cudaEglColorFormatA elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_RG: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatRG + eglFrame[0].eglColorFormat = cudaEglColorFormatRG elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_AYUV: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatAYUV + eglFrame[0].eglColorFormat = cudaEglColorFormatAYUV elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU444_SEMIPLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU444SemiPlanar + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU444SemiPlanar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU422_SEMIPLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU422SemiPlanar + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU422SemiPlanar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU420SemiPlanar + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU420SemiPlanar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY10V10U10_444SemiPlanar + eglFrame[0].eglColorFormat = cudaEglColorFormatY10V10U10_444SemiPlanar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY10V10U10_420SemiPlanar + eglFrame[0].eglColorFormat = cudaEglColorFormatY10V10U10_420SemiPlanar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY12V12U12_444SemiPlanar + eglFrame[0].eglColorFormat = cudaEglColorFormatY12V12U12_444SemiPlanar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY12V12U12_420SemiPlanar + eglFrame[0].eglColorFormat = cudaEglColorFormatY12V12U12_420SemiPlanar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_VYUY_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatVYUY_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatVYUY_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_UYVY_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatUYVY_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatUYVY_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUYV_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUYV_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYUYV_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVYU_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVYU_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYVYU_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUVA_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUVA_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYUVA_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_AYUV_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatAYUV_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatAYUV_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV444_PLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV444Planar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV444Planar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV422_PLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV422Planar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV422Planar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_PLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV420Planar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV420Planar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV444_SEMIPLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV444SemiPlanar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV444SemiPlanar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV422_SEMIPLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV422SemiPlanar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV422SemiPlanar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV420SemiPlanar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV420SemiPlanar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU444_PLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU444Planar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU444Planar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU422_PLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU422Planar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU422Planar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_PLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU420Planar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU420Planar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU444_SEMIPLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU444SemiPlanar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU444SemiPlanar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU422_SEMIPLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU422SemiPlanar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU422SemiPlanar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU420SemiPlanar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU420SemiPlanar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_RGGB: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayerRGGB + eglFrame[0].eglColorFormat = cudaEglColorFormatBayerRGGB elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_BGGR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayerBGGR + eglFrame[0].eglColorFormat = cudaEglColorFormatBayerBGGR elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_GRBG: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayerGRBG + eglFrame[0].eglColorFormat = cudaEglColorFormatBayerGRBG elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_GBRG: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayerGBRG + eglFrame[0].eglColorFormat = cudaEglColorFormatBayerGBRG elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER10_RGGB: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer10RGGB + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer10RGGB elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER10_BGGR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer10BGGR + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer10BGGR elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER10_GRBG: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer10GRBG + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer10GRBG elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER10_GBRG: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer10GBRG + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer10GBRG elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_RGGB: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer12RGGB + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer12RGGB elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_BGGR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer12BGGR + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer12BGGR elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_GRBG: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer12GRBG + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer12GRBG elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_GBRG: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer12GBRG + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer12GBRG elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER14_RGGB: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer14RGGB + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer14RGGB elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER14_BGGR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer14BGGR + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer14BGGR elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER14_GRBG: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer14GRBG + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer14GRBG elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER14_GBRG: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer14GBRG + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer14GBRG elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER20_RGGB: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer20RGGB + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer20RGGB elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER20_BGGR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer20BGGR + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer20BGGR elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER20_GRBG: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer20GRBG + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer20GRBG elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER20_GBRG: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer20GBRG + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer20GBRG elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_ISP_RGGB: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayerIspRGGB + eglFrame[0].eglColorFormat = cudaEglColorFormatBayerIspRGGB elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_ISP_BGGR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayerIspBGGR + eglFrame[0].eglColorFormat = cudaEglColorFormatBayerIspBGGR elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_ISP_GRBG: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayerIspGRBG + eglFrame[0].eglColorFormat = cudaEglColorFormatBayerIspGRBG elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_ISP_GBRG: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayerIspGBRG + eglFrame[0].eglColorFormat = cudaEglColorFormatBayerIspGBRG elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU444_PLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU444Planar + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU444Planar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU422_PLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU422Planar + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU422Planar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_PLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU420Planar + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU420Planar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_BCCR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayerBCCR + eglFrame[0].eglColorFormat = cudaEglColorFormatBayerBCCR elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_RCCB: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayerRCCB + eglFrame[0].eglColorFormat = cudaEglColorFormatBayerRCCB elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_CRBC: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayerCRBC + eglFrame[0].eglColorFormat = cudaEglColorFormatBayerCRBC elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_CBRC: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayerCBRC + eglFrame[0].eglColorFormat = cudaEglColorFormatBayerCBRC elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER10_CCCC: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer10CCCC + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer10CCCC elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_BCCR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer12BCCR + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer12BCCR elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_RCCB: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer12RCCB + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer12RCCB elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_CRBC: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer12CRBC + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer12CRBC elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_CBRC: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer12CBRC + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer12CBRC elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_CCCC: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer12CCCC + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer12CCCC elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY + eglFrame[0].eglColorFormat = cudaEglColorFormatY elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_2020: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV420SemiPlanar_2020 + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV420SemiPlanar_2020 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_2020: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU420SemiPlanar_2020 + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU420SemiPlanar_2020 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_PLANAR_2020: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV420Planar_2020 + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV420Planar_2020 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_PLANAR_2020: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU420Planar_2020 + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU420Planar_2020 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_709: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV420SemiPlanar_709 + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV420SemiPlanar_709 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_709: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU420SemiPlanar_709 + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU420SemiPlanar_709 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_PLANAR_709: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV420Planar_709 + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV420Planar_709 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_PLANAR_709: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU420Planar_709 + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU420Planar_709 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_709: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY10V10U10_420SemiPlanar_709 + eglFrame[0].eglColorFormat = cudaEglColorFormatY10V10U10_420SemiPlanar_709 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_2020: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY10V10U10_420SemiPlanar_2020 + eglFrame[0].eglColorFormat = cudaEglColorFormatY10V10U10_420SemiPlanar_2020 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR_2020: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY10V10U10_422SemiPlanar_2020 + eglFrame[0].eglColorFormat = cudaEglColorFormatY10V10U10_422SemiPlanar_2020 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY10V10U10_422SemiPlanar + eglFrame[0].eglColorFormat = cudaEglColorFormatY10V10U10_422SemiPlanar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR_709: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY10V10U10_422SemiPlanar_709 + eglFrame[0].eglColorFormat = cudaEglColorFormatY10V10U10_422SemiPlanar_709 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y_709_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY_709_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY_709_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY10_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY10_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10_709_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY10_709_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY10_709_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY12_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY12_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12_709_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY12_709_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY12_709_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUVA: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUVA + eglFrame[0].eglColorFormat = cudaEglColorFormatYUVA elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVYU: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVYU + eglFrame[0].eglColorFormat = cudaEglColorFormatYVYU elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_VYUY: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatVYUY + eglFrame[0].eglColorFormat = cudaEglColorFormatVYUY elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY10V10U10_420SemiPlanar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY10V10U10_420SemiPlanar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_709_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY10V10U10_420SemiPlanar_709_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY10V10U10_420SemiPlanar_709_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY10V10U10_444SemiPlanar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY10V10U10_444SemiPlanar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR_709_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY10V10U10_444SemiPlanar_709_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY10V10U10_444SemiPlanar_709_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY12V12U12_420SemiPlanar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY12V12U12_420SemiPlanar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR_709_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY12V12U12_420SemiPlanar_709_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY12V12U12_420SemiPlanar_709_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY12V12U12_444SemiPlanar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY12V12U12_444SemiPlanar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR_709_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER else: return cudaErrorInvalidValue if cueglFrame.frameType == cydriver.CUeglFrameType_enum.CU_EGL_FRAME_TYPE_ARRAY: - eglFrame[0].frameType = cyruntime.cudaEglFrameTypeArray + eglFrame[0].frameType = cudaEglFrameTypeArray elif cueglFrame.frameType == cydriver.CUeglFrameType_enum.CU_EGL_FRAME_TYPE_PITCH: - eglFrame[0].frameType = cyruntime.cudaEglFrameTypePitch + eglFrame[0].frameType = cudaEglFrameTypePitch else: return cudaErrorInvalidValue diff --git a/cuda_bindings_12/cuda/bindings/cufile.pyx b/cuda_bindings_12/cuda/bindings/cufile.pyx index 070327ec4e44..e1f99ee10561 100644 --- a/cuda_bindings_12/cuda/bindings/cufile.pyx +++ b/cuda_bindings_12/cuda/bindings/cufile.pyx @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated with version 12.9.1. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=d62f6263d1fb1fb7c7c55516972f8e40d6b019462e47ae11127db8f8ef5a805d +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=11c0f6874dbbca1b98aa2e0d38e44146556d4d1a4ce5a5584cbad9c5792792c2 # <<<< PREAMBLE CONTENT >>>> @@ -17,11 +17,6 @@ from cpython.buffer cimport ( Py_buffer as _cyb_Py_buffer, ) cimport cpython.memoryview as _cyb_cpython_memoryview -from cpython.object cimport PyObject as _cyb_PyObject -from cpython.ref cimport ( - Py_CLEAR as _cyb_Py_CLEAR, - Py_XINCREF as _cyb_Py_XINCREF, -) from libc.stdint cimport intptr_t from libc.stdlib cimport ( calloc as _cyb_calloc, @@ -52,6 +47,14 @@ cdef _cyb___getbuffer(object self, _cyb_cpython.Py_buffer *buffer, void *ptr, in buffer.strides = &buffer.itemsize buffer.suboffsets = NULL +cdef inline intptr_t _cyb_array_ptr(object arr) except? 0: + cdef _cyb_cpython.Py_buffer view + cdef intptr_t ptr + _cyb_cpython.PyObject_GetBuffer(arr, &view, _cyb_cpython_buffer.PyBUF_STRIDES) + ptr = view.buf + _cyb_cpython.PyBuffer_Release(&view) + return ptr + cdef _cyb_from_buffer(buffer, size, lowpp_type): cdef _cyb_cpython.Py_buffer view if _cyb_cpython.PyObject_GetBuffer(buffer, &view, _cyb_cpython_buffer.PyBUF_SIMPLE) != 0: @@ -102,7 +105,7 @@ cdef _get__py_anon_pod1_dtype_offsets(): (&(pod.fd)) - (&pod), (&(pod.handle)) - (&pod), ], - 'itemsize': sizeof((NULL).handle), + 'itemsize': sizeof(cuda_bindings_cufile__anon_pod1), }) _py_anon_pod1_dtype = _get__py_anon_pod1_dtype_offsets() @@ -115,24 +118,24 @@ cdef class _py_anon_pod1: """ cdef: cuda_bindings_cufile__anon_pod1 *_ptr - _cyb_PyObject *_owner + object _owner + bint _owns_ptr bint _readonly def __init__(self): - self._ptr = _cyb_calloc(1, sizeof((NULL).handle)) + self._ptr = _cyb_calloc(1, sizeof(cuda_bindings_cufile__anon_pod1)) if self._ptr == NULL: raise MemoryError("Error allocating _py_anon_pod1") - self._owner = NULL + self._owns_ptr = True + self._owner = None self._readonly = False def __dealloc__(self): cdef cuda_bindings_cufile__anon_pod1 *ptr - if self._owner == NULL and self._ptr != NULL: + if self._owns_ptr and self._ptr != NULL: ptr = self._ptr self._ptr = NULL _cyb_free(ptr) - _cyb_Py_CLEAR(self._owner) - self._owner = NULL def __repr__(self): return f"<{__name__}._py_anon_pod1 object at {hex(id(self))}>" @@ -153,10 +156,10 @@ cdef class _py_anon_pod1: if not isinstance(other, _py_anon_pod1): return False other_ = other - return (_cyb_memcmp((self._ptr), (other_._ptr), sizeof((NULL).handle)) == 0) + return (_cyb_memcmp((self._ptr), (other_._ptr), sizeof(cuda_bindings_cufile__anon_pod1)) == 0) def __getbuffer__(self, _cyb_cpython.Py_buffer *buffer, int flags): - _cyb___getbuffer(self, buffer, self._ptr, sizeof((NULL).handle), self._readonly) + _cyb___getbuffer(self, buffer, self._ptr, sizeof(cuda_bindings_cufile__anon_pod1), self._readonly) def __releasebuffer__(self, Py_buffer *buffer): pass @@ -168,11 +171,11 @@ cdef class _py_anon_pod1: raise ValueError("This _py_anon_pod1 instance is read-only") _cyb_PyObject_GetBuffer(val, &view, _cyb_PyBUF_SIMPLE) try: - if view.len < sizeof((NULL).handle): + if view.len < sizeof(cuda_bindings_cufile__anon_pod1): raise ValueError( - "source buffer too small: expected at least %d bytes, got %d" % (sizeof((NULL).handle), view.len) + "source buffer too small: expected at least %d bytes, got %d" % (sizeof(cuda_bindings_cufile__anon_pod1), view.len) ) - _cyb_memmove(self._ptr, view.buf, sizeof((NULL).handle)) + _cyb_memmove(self._ptr, view.buf, sizeof(cuda_bindings_cufile__anon_pod1)) self._readonly = view.readonly != 0 finally: _cyb_PyBuffer_Release(&view) @@ -204,7 +207,7 @@ cdef class _py_anon_pod1: @staticmethod def from_buffer(buffer): """Create an _py_anon_pod1 instance with the memory from the given buffer.""" - return _cyb_from_buffer(buffer, sizeof((NULL).handle), _py_anon_pod1) + return _cyb_from_buffer(buffer, sizeof(cuda_bindings_cufile__anon_pod1), _py_anon_pod1) @staticmethod def from_data(data): @@ -228,15 +231,16 @@ cdef class _py_anon_pod1: raise ValueError("ptr must not be null (0)") cdef _py_anon_pod1 obj = _py_anon_pod1.__new__(_py_anon_pod1) if owner is None: - obj._ptr = _cyb_malloc(sizeof((NULL).handle)) + obj._ptr = _cyb_malloc(sizeof(cuda_bindings_cufile__anon_pod1)) if obj._ptr == NULL: raise MemoryError("Error allocating _py_anon_pod1") - _cyb_memcpy((obj._ptr), ptr, sizeof((NULL).handle)) - obj._owner = NULL + _cyb_memcpy((obj._ptr), ptr, sizeof(cuda_bindings_cufile__anon_pod1)) + obj._owns_ptr = True + obj._owner = None else: obj._ptr = ptr - obj._owner = <_cyb_PyObject *>owner - _cyb_Py_XINCREF(obj._owner) + obj._owns_ptr = False + obj._owner = owner obj._readonly = readonly return obj @@ -252,7 +256,7 @@ cdef _get__py_anon_pod3_dtype_offsets(): (&(pod.devPtr_offset)) - (&pod), (&(pod.size)) - (&pod), ], - 'itemsize': sizeof((NULL).u.batch), + 'itemsize': sizeof(cuda_bindings_cufile__anon_pod3), }) _py_anon_pod3_dtype = _get__py_anon_pod3_dtype_offsets() @@ -265,24 +269,24 @@ cdef class _py_anon_pod3: """ cdef: cuda_bindings_cufile__anon_pod3 *_ptr - _cyb_PyObject *_owner + object _owner + bint _owns_ptr bint _readonly def __init__(self): - self._ptr = _cyb_calloc(1, sizeof((NULL).u.batch)) + self._ptr = _cyb_calloc(1, sizeof(cuda_bindings_cufile__anon_pod3)) if self._ptr == NULL: raise MemoryError("Error allocating _py_anon_pod3") - self._owner = NULL + self._owns_ptr = True + self._owner = None self._readonly = False def __dealloc__(self): cdef cuda_bindings_cufile__anon_pod3 *ptr - if self._owner == NULL and self._ptr != NULL: + if self._owns_ptr and self._ptr != NULL: ptr = self._ptr self._ptr = NULL _cyb_free(ptr) - _cyb_Py_CLEAR(self._owner) - self._owner = NULL def __repr__(self): return f"<{__name__}._py_anon_pod3 object at {hex(id(self))}>" @@ -303,10 +307,10 @@ cdef class _py_anon_pod3: if not isinstance(other, _py_anon_pod3): return False other_ = other - return (_cyb_memcmp((self._ptr), (other_._ptr), sizeof((NULL).u.batch)) == 0) + return (_cyb_memcmp((self._ptr), (other_._ptr), sizeof(cuda_bindings_cufile__anon_pod3)) == 0) def __getbuffer__(self, _cyb_cpython.Py_buffer *buffer, int flags): - _cyb___getbuffer(self, buffer, self._ptr, sizeof((NULL).u.batch), self._readonly) + _cyb___getbuffer(self, buffer, self._ptr, sizeof(cuda_bindings_cufile__anon_pod3), self._readonly) def __releasebuffer__(self, Py_buffer *buffer): pass @@ -318,11 +322,11 @@ cdef class _py_anon_pod3: raise ValueError("This _py_anon_pod3 instance is read-only") _cyb_PyObject_GetBuffer(val, &view, _cyb_PyBUF_SIMPLE) try: - if view.len < sizeof((NULL).u.batch): + if view.len < sizeof(cuda_bindings_cufile__anon_pod3): raise ValueError( - "source buffer too small: expected at least %d bytes, got %d" % (sizeof((NULL).u.batch), view.len) + "source buffer too small: expected at least %d bytes, got %d" % (sizeof(cuda_bindings_cufile__anon_pod3), view.len) ) - _cyb_memmove(self._ptr, view.buf, sizeof((NULL).u.batch)) + _cyb_memmove(self._ptr, view.buf, sizeof(cuda_bindings_cufile__anon_pod3)) self._readonly = view.readonly != 0 finally: _cyb_PyBuffer_Release(&view) @@ -376,7 +380,7 @@ cdef class _py_anon_pod3: @staticmethod def from_buffer(buffer): """Create an _py_anon_pod3 instance with the memory from the given buffer.""" - return _cyb_from_buffer(buffer, sizeof((NULL).u.batch), _py_anon_pod3) + return _cyb_from_buffer(buffer, sizeof(cuda_bindings_cufile__anon_pod3), _py_anon_pod3) @staticmethod def from_data(data): @@ -400,15 +404,16 @@ cdef class _py_anon_pod3: raise ValueError("ptr must not be null (0)") cdef _py_anon_pod3 obj = _py_anon_pod3.__new__(_py_anon_pod3) if owner is None: - obj._ptr = _cyb_malloc(sizeof((NULL).u.batch)) + obj._ptr = _cyb_malloc(sizeof(cuda_bindings_cufile__anon_pod3)) if obj._ptr == NULL: raise MemoryError("Error allocating _py_anon_pod3") - _cyb_memcpy((obj._ptr), ptr, sizeof((NULL).u.batch)) - obj._owner = NULL + _cyb_memcpy((obj._ptr), ptr, sizeof(cuda_bindings_cufile__anon_pod3)) + obj._owns_ptr = True + obj._owner = None else: obj._ptr = ptr - obj._owner = <_cyb_PyObject *>owner - _cyb_Py_XINCREF(obj._owner) + obj._owns_ptr = False + obj._owner = owner obj._readonly = readonly return obj @@ -427,6 +432,7 @@ cdef _get_io_events_dtype_offsets(): }) io_events_dtype = _get_io_events_dtype_offsets() +cdef object io_events_dtype_record = _numpy.dtype((_numpy.record, io_events_dtype)) cdef class IOEvents: """Empty-initialize an array of `CUfileIOEvents_t`. @@ -443,8 +449,7 @@ cdef class IOEvents: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=io_events_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=io_events_dtype_record) assert self._data.itemsize == sizeof(CUfileIOEvents_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(CUfileIOEvents_t) }" @@ -457,17 +462,17 @@ cdef class IOEvents: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -488,38 +493,45 @@ cdef class IOEvents: def cookie(self): """Union[~_numpy.intp, int]: """ if self._data.size == 1: - return int(self._data.cookie[0]) - return self._data.cookie + return int(self._data["cookie"][0]) + return self._data["cookie"] @cookie.setter def cookie(self, val): - self._data.cookie = val + if not self._data.flags.writeable: + raise ValueError("This IOEvents instance is read-only") + self._data["cookie"] = val @property def status(self): """Union[~_numpy.int32, int]: """ if self._data.size == 1: - return int(self._data.status[0]) - return self._data.status + return int(self._data["status"][0]) + return self._data["status"] @status.setter def status(self, val): - self._data.status = val + if not self._data.flags.writeable: + raise ValueError("This IOEvents instance is read-only") + self._data["status"] = val @property def ret(self): """Union[~_numpy.uint64, int]: """ if self._data.size == 1: - return int(self._data.ret[0]) - return self._data.ret + return int(self._data["ret"][0]) + return self._data["ret"] @ret.setter def ret(self, val): - self._data.ret = val + if not self._data.flags.writeable: + raise ValueError("This IOEvents instance is read-only") + self._data["ret"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef IOEvents obj if isinstance(key, int): key_ = key size = self._data.size @@ -527,10 +539,18 @@ cdef class IOEvents: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return IOEvents.from_data(self._data[key_:key_+1]) + obj = IOEvents.__new__(IOEvents) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == io_events_dtype: - return IOEvents.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == io_events_dtype: + obj = IOEvents.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -555,8 +575,7 @@ cdef class IOEvents: raise ValueError("data array must be 1D") if data.dtype != io_events_dtype: raise ValueError("data array must be of dtype io_events_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=io_events_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -576,10 +595,8 @@ cdef class IOEvents: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(CUfileIOEvents_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=io_events_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=io_events_dtype_record) obj._owner = owner - return obj @@ -597,6 +614,7 @@ cdef _get_descr_dtype_offsets(): }) descr_dtype = _get_descr_dtype_offsets() +cdef object descr_dtype_record = _numpy.dtype((_numpy.record, descr_dtype)) cdef class Descr: """Empty-initialize an array of `CUfileDescr_t`. @@ -613,8 +631,7 @@ cdef class Descr: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=descr_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=descr_dtype_record) assert self._data.itemsize == sizeof(CUfileDescr_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(CUfileDescr_t) }" @@ -627,17 +644,17 @@ cdef class Descr: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -658,36 +675,43 @@ cdef class Descr: def type(self): """Union[~_numpy.int32, int]: """ if self._data.size == 1: - return int(self._data.type[0]) - return self._data.type + return int(self._data["type"][0]) + return self._data["type"] @type.setter def type(self, val): - self._data.type = val + if not self._data.flags.writeable: + raise ValueError("This Descr instance is read-only") + self._data["type"] = val @property def handle(self): """_py_anon_pod1_dtype: """ - return self._data.handle + return self._data["handle"].view(_numpy.recarray) @handle.setter def handle(self, val): - self._data.handle = val + if not self._data.flags.writeable: + raise ValueError("This Descr instance is read-only") + self._data["handle"] = val @property def fs_ops(self): """Union[~_numpy.intp, int]: """ if self._data.size == 1: - return int(self._data.fs_ops[0]) - return self._data.fs_ops + return int(self._data["fs_ops"][0]) + return self._data["fs_ops"] @fs_ops.setter def fs_ops(self, val): - self._data.fs_ops = val + if not self._data.flags.writeable: + raise ValueError("This Descr instance is read-only") + self._data["fs_ops"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef Descr obj if isinstance(key, int): key_ = key size = self._data.size @@ -695,10 +719,18 @@ cdef class Descr: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return Descr.from_data(self._data[key_:key_+1]) + obj = Descr.__new__(Descr) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == descr_dtype: - return Descr.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == descr_dtype: + obj = Descr.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -723,8 +755,7 @@ cdef class Descr: raise ValueError("data array must be 1D") if data.dtype != descr_dtype: raise ValueError("data array must be of dtype descr_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=descr_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -744,10 +775,8 @@ cdef class Descr: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(CUfileDescr_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=descr_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=descr_dtype_record) obj._owner = owner - return obj @@ -759,7 +788,7 @@ cdef _get__py_anon_pod2_dtype_offsets(): 'offsets': [ (&(pod.batch)) - (&pod), ], - 'itemsize': sizeof((NULL).u), + 'itemsize': sizeof(cuda_bindings_cufile__anon_pod2), }) _py_anon_pod2_dtype = _get__py_anon_pod2_dtype_offsets() @@ -772,24 +801,24 @@ cdef class _py_anon_pod2: """ cdef: cuda_bindings_cufile__anon_pod2 *_ptr - _cyb_PyObject *_owner + object _owner + bint _owns_ptr bint _readonly def __init__(self): - self._ptr = _cyb_calloc(1, sizeof((NULL).u)) + self._ptr = _cyb_calloc(1, sizeof(cuda_bindings_cufile__anon_pod2)) if self._ptr == NULL: raise MemoryError("Error allocating _py_anon_pod2") - self._owner = NULL + self._owns_ptr = True + self._owner = None self._readonly = False def __dealloc__(self): cdef cuda_bindings_cufile__anon_pod2 *ptr - if self._owner == NULL and self._ptr != NULL: + if self._owns_ptr and self._ptr != NULL: ptr = self._ptr self._ptr = NULL _cyb_free(ptr) - _cyb_Py_CLEAR(self._owner) - self._owner = NULL def __repr__(self): return f"<{__name__}._py_anon_pod2 object at {hex(id(self))}>" @@ -810,10 +839,10 @@ cdef class _py_anon_pod2: if not isinstance(other, _py_anon_pod2): return False other_ = other - return (_cyb_memcmp((self._ptr), (other_._ptr), sizeof((NULL).u)) == 0) + return (_cyb_memcmp((self._ptr), (other_._ptr), sizeof(cuda_bindings_cufile__anon_pod2)) == 0) def __getbuffer__(self, _cyb_cpython.Py_buffer *buffer, int flags): - _cyb___getbuffer(self, buffer, self._ptr, sizeof((NULL).u), self._readonly) + _cyb___getbuffer(self, buffer, self._ptr, sizeof(cuda_bindings_cufile__anon_pod2), self._readonly) def __releasebuffer__(self, Py_buffer *buffer): pass @@ -825,11 +854,11 @@ cdef class _py_anon_pod2: raise ValueError("This _py_anon_pod2 instance is read-only") _cyb_PyObject_GetBuffer(val, &view, _cyb_PyBUF_SIMPLE) try: - if view.len < sizeof((NULL).u): + if view.len < sizeof(cuda_bindings_cufile__anon_pod2): raise ValueError( - "source buffer too small: expected at least %d bytes, got %d" % (sizeof((NULL).u), view.len) + "source buffer too small: expected at least %d bytes, got %d" % (sizeof(cuda_bindings_cufile__anon_pod2), view.len) ) - _cyb_memmove(self._ptr, view.buf, sizeof((NULL).u)) + _cyb_memmove(self._ptr, view.buf, sizeof(cuda_bindings_cufile__anon_pod2)) self._readonly = view.readonly != 0 finally: _cyb_PyBuffer_Release(&view) @@ -855,7 +884,7 @@ cdef class _py_anon_pod2: @staticmethod def from_buffer(buffer): """Create an _py_anon_pod2 instance with the memory from the given buffer.""" - return _cyb_from_buffer(buffer, sizeof((NULL).u), _py_anon_pod2) + return _cyb_from_buffer(buffer, sizeof(cuda_bindings_cufile__anon_pod2), _py_anon_pod2) @staticmethod def from_data(data): @@ -879,15 +908,16 @@ cdef class _py_anon_pod2: raise ValueError("ptr must not be null (0)") cdef _py_anon_pod2 obj = _py_anon_pod2.__new__(_py_anon_pod2) if owner is None: - obj._ptr = _cyb_malloc(sizeof((NULL).u)) + obj._ptr = _cyb_malloc(sizeof(cuda_bindings_cufile__anon_pod2)) if obj._ptr == NULL: raise MemoryError("Error allocating _py_anon_pod2") - _cyb_memcpy((obj._ptr), ptr, sizeof((NULL).u)) - obj._owner = NULL + _cyb_memcpy((obj._ptr), ptr, sizeof(cuda_bindings_cufile__anon_pod2)) + obj._owns_ptr = True + obj._owner = None else: obj._ptr = ptr - obj._owner = <_cyb_PyObject *>owner - _cyb_Py_XINCREF(obj._owner) + obj._owns_ptr = False + obj._owner = owner obj._readonly = readonly return obj @@ -908,6 +938,7 @@ cdef _get_io_params_dtype_offsets(): }) io_params_dtype = _get_io_params_dtype_offsets() +cdef object io_params_dtype_record = _numpy.dtype((_numpy.record, io_params_dtype)) cdef class IOParams: """Empty-initialize an array of `CUfileIOParams_t`. @@ -924,8 +955,7 @@ cdef class IOParams: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=io_params_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=io_params_dtype_record) assert self._data.itemsize == sizeof(CUfileIOParams_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(CUfileIOParams_t) }" @@ -938,17 +968,17 @@ cdef class IOParams: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -969,58 +999,69 @@ cdef class IOParams: def mode(self): """Union[~_numpy.int32, int]: """ if self._data.size == 1: - return int(self._data.mode[0]) - return self._data.mode + return int(self._data["mode"][0]) + return self._data["mode"] @mode.setter def mode(self, val): - self._data.mode = val + if not self._data.flags.writeable: + raise ValueError("This IOParams instance is read-only") + self._data["mode"] = val @property def u(self): """_py_anon_pod2_dtype: """ - return self._data.u + return self._data["u"].view(_numpy.recarray) @u.setter def u(self, val): - self._data.u = val + if not self._data.flags.writeable: + raise ValueError("This IOParams instance is read-only") + self._data["u"] = val @property def fh(self): """Union[~_numpy.intp, int]: """ if self._data.size == 1: - return int(self._data.fh[0]) - return self._data.fh + return int(self._data["fh"][0]) + return self._data["fh"] @fh.setter def fh(self, val): - self._data.fh = val + if not self._data.flags.writeable: + raise ValueError("This IOParams instance is read-only") + self._data["fh"] = val @property def opcode(self): """Union[~_numpy.int32, int]: """ if self._data.size == 1: - return int(self._data.opcode[0]) - return self._data.opcode + return int(self._data["opcode"][0]) + return self._data["opcode"] @opcode.setter def opcode(self, val): - self._data.opcode = val + if not self._data.flags.writeable: + raise ValueError("This IOParams instance is read-only") + self._data["opcode"] = val @property def cookie(self): """Union[~_numpy.intp, int]: """ if self._data.size == 1: - return int(self._data.cookie[0]) - return self._data.cookie + return int(self._data["cookie"][0]) + return self._data["cookie"] @cookie.setter def cookie(self, val): - self._data.cookie = val + if not self._data.flags.writeable: + raise ValueError("This IOParams instance is read-only") + self._data["cookie"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef IOParams obj if isinstance(key, int): key_ = key size = self._data.size @@ -1028,10 +1069,18 @@ cdef class IOParams: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return IOParams.from_data(self._data[key_:key_+1]) + obj = IOParams.__new__(IOParams) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == io_params_dtype: - return IOParams.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == io_params_dtype: + obj = IOParams.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -1056,8 +1105,7 @@ cdef class IOParams: raise ValueError("data array must be 1D") if data.dtype != io_params_dtype: raise ValueError("data array must be of dtype io_params_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=io_params_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -1077,10 +1125,8 @@ cdef class IOParams: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(CUfileIOParams_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=io_params_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=io_params_dtype_record) obj._owner = owner - return obj @@ -1304,7 +1350,7 @@ cpdef intptr_t handle_register(descr) except? 0: the file needs to be opened in O_DIRECT mode to support GPUDirect Storage. .. seealso:: `cuFileHandleRegister` """ - cdef intptr_t _descr_ptr_ = int(descr) + cdef intptr_t _descr_ptr_ = 0 if descr is None else int(descr) cdef Handle fh with nogil: __status__ = cuFileHandleRegister(&fh, _descr_ptr_) @@ -1477,14 +1523,14 @@ cpdef intptr_t batch_io_set_up(unsigned nr) except? 0: cpdef batch_io_submit(intptr_t batch_idp, unsigned nr, iocbp, unsigned int flags): - cdef intptr_t _iocbp_ptr_ = int(iocbp) + cdef intptr_t _iocbp_ptr_ = 0 if iocbp is None else int(iocbp) with nogil: __status__ = cuFileBatchIOSubmit(batch_idp, nr, _iocbp_ptr_, flags) check_status(__status__) cpdef batch_io_get_status(intptr_t batch_idp, unsigned min_nr, intptr_t nr, iocbp, intptr_t timeout): - cdef intptr_t _iocbp_ptr_ = int(iocbp) + cdef intptr_t _iocbp_ptr_ = 0 if iocbp is None else int(iocbp) with nogil: __status__ = cuFileBatchIOGetStatus(batch_idp, min_nr, nr, _iocbp_ptr_, timeout) check_status(__status__) diff --git a/cuda_bindings_12/cuda/bindings/cycufile.pxd b/cuda_bindings_12/cuda/bindings/cycufile.pxd index 727e6dd0c3a2..9072a6420ad1 100644 --- a/cuda_bindings_12/cuda/bindings/cycufile.pxd +++ b/cuda_bindings_12/cuda/bindings/cycufile.pxd @@ -3,13 +3,16 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated with version 12.9.1. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=2dcfd746c3b9fd0e890cb0c319541c52bba6ed389e67765e542509b743dc95a9 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=3eb9d86dd8b3d2b8b241bc23f2706f73b456a6d9eab5a83d910a9057ce0a8ab2 # <<<< PREAMBLE CONTENT >>>> from libcpp cimport bool as _cyb_bool +cdef extern from "": + pass + # <<<< END OF PREAMBLE CONTENT >>>> @@ -184,13 +187,14 @@ cdef extern from 'cufile.h': CUfileOpError err CUresult cu_err -cdef struct cuda_bindings_cufile__anon_pod0: - unsigned int major_version - unsigned int minor_version - size_t poll_thresh_size - size_t max_direct_io_size - unsigned int dstatusflags - unsigned int dcontrolflags +cdef extern from 'cufile.h': + ctypedef struct cuda_bindings_cufile__anon_pod0 "std::remove_all_extentsnvfs)>::type": + unsigned int major_version + unsigned int minor_version + size_t poll_thresh_size + size_t max_direct_io_size + unsigned int dstatusflags + unsigned int dcontrolflags cdef extern from 'cufile.h': ctypedef struct cufileRDMAInfo_t 'cufileRDMAInfo_t': @@ -206,15 +210,17 @@ cdef extern from 'cufile.h': ssize_t (*read)(void*, char*, size_t, loff_t, cufileRDMAInfo_t*) ssize_t (*write)(void*, const char*, size_t, loff_t, cufileRDMAInfo_t*) -cdef union cuda_bindings_cufile__anon_pod1: - int fd - void* handle +cdef extern from 'cufile.h': + ctypedef union cuda_bindings_cufile__anon_pod1 "std::remove_all_extentshandle)>::type": + int fd + void* handle -cdef struct cuda_bindings_cufile__anon_pod3: - void* devPtr_base - off_t file_offset - off_t devPtr_offset - size_t size +cdef extern from 'cufile.h': + ctypedef struct cuda_bindings_cufile__anon_pod3 "std::remove_all_extentsu.batch)>::type": + void* devPtr_base + off_t file_offset + off_t devPtr_offset + size_t size cdef extern from 'cufile.h': ctypedef struct CUfileIOEvents_t 'CUfileIOEvents_t': @@ -238,8 +244,9 @@ cdef extern from 'cufile.h': cuda_bindings_cufile__anon_pod1 handle CUfileFSOps_t* fs_ops -cdef union cuda_bindings_cufile__anon_pod2: - cuda_bindings_cufile__anon_pod3 batch +cdef extern from 'cufile.h': + ctypedef union cuda_bindings_cufile__anon_pod2 "std::remove_all_extentsu)>::type": + cuda_bindings_cufile__anon_pod3 batch cdef extern from 'cufile.h': ctypedef struct CUfileIOParams_t 'CUfileIOParams_t': diff --git a/cuda_bindings_12/cuda/bindings/cydriver.pxd b/cuda_bindings_12/cuda/bindings/cydriver.pxd index 35427dfbf053..d1b66920d1e6 100644 --- a/cuda_bindings_12/cuda/bindings/cydriver.pxd +++ b/cuda_bindings_12/cuda/bindings/cydriver.pxd @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated with version 12.9.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=9882ad2c1336b55915f58e8b293a27976fc3282923630b4fa6b3dbb2f8d449de +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=9b8e95610e60e3af80dbe936370b254c4ce3f18a98712cff6966ba87185a8fff # <<<< PREAMBLE CONTENT >>>> @@ -13,6 +13,9 @@ from libc.stdint cimport ( uint64_t, ) +cdef extern from "": + pass + # <<<< END OF PREAMBLE CONTENT >>>> @@ -1788,17 +1791,18 @@ cdef extern from 'cuda.h': ctypedef CUuuid_st CUuuid cdef extern from 'cuda.h': - ctypedef struct CUstreamMemOpFlushRemoteWritesParams_st 'CUstreamMemOpFlushRemoteWritesParams_st': + ctypedef struct CUstreamMemOpFlushRemoteWritesParams_st "std::remove_all_extentsflushRemoteWrites)>::type": CUstreamBatchMemOpType operation unsigned int flags cdef extern from 'cuda.h': - ctypedef struct CUstreamMemOpMemoryBarrierParams_st 'CUstreamMemOpMemoryBarrierParams_st': + ctypedef struct CUstreamMemOpMemoryBarrierParams_st "std::remove_all_extentsmemoryBarrier)>::type": CUstreamBatchMemOpType operation unsigned int flags -cdef struct cuda_bindings_driver__anon_pod3: - unsigned long long bytesOverBudget +cdef extern from 'cuda.h': + ctypedef struct cuda_bindings_driver__anon_pod3 "std::remove_all_extentsinfo.overBudget)>::type": + unsigned long long bytesOverBudget cdef extern from 'cuda.h': ctypedef void (*CUhostFn 'CUhostFn')( @@ -1820,15 +1824,17 @@ cdef extern from 'cuda.h': unsigned char remote ctypedef CUlaunchMemSyncDomainMap_st CUlaunchMemSyncDomainMap -cdef struct cuda_bindings_driver__anon_pod4: - unsigned int x - unsigned int y - unsigned int z +cdef extern from 'cuda.h': + ctypedef struct cuda_bindings_driver__anon_pod4 "std::remove_all_extentsclusterDim)>::type": + unsigned int x + unsigned int y + unsigned int z -cdef struct cuda_bindings_driver__anon_pod7: - unsigned int x - unsigned int y - unsigned int z +cdef extern from 'cuda.h': + ctypedef struct cuda_bindings_driver__anon_pod7 "std::remove_all_extentspreferredClusterDim)>::type": + unsigned int x + unsigned int y + unsigned int z cdef extern from 'cuda.h': cdef struct CUctxCigParam_st: @@ -1844,63 +1850,76 @@ cdef extern from 'cuda.h': size_t dataWindowSize ctypedef CUlibraryHostUniversalFunctionAndDataTable_st CUlibraryHostUniversalFunctionAndDataTable -cdef struct cuda_bindings_driver__anon_pod10: - unsigned int width - unsigned int height - unsigned int depth +cdef extern from 'cuda.h': + ctypedef struct cuda_bindings_driver__anon_pod10 "std::remove_all_extentstileExtent)>::type": + unsigned int width + unsigned int height + unsigned int depth -cdef struct cuda_bindings_driver__anon_pod16: - int reserved[32] +cdef extern from 'cuda.h': + ctypedef struct cuda_bindings_driver__anon_pod16 "std::remove_all_extentsres.reserved)>::type": + int reserved[32] -cdef struct cuda_bindings_driver__anon_pod18: - void* handle - void* name +cdef extern from 'cuda.h': + ctypedef struct cuda_bindings_driver__anon_pod18 "std::remove_all_extentshandle.win32)>::type": + void* handle + void* name -cdef struct cuda_bindings_driver__anon_pod20: - void* handle - void* name +cdef extern from 'cuda.h': + ctypedef struct cuda_bindings_driver__anon_pod20 "std::remove_all_extentshandle.win32)>::type": + void* handle + void* name -cdef struct cuda_bindings_driver__anon_pod22: - unsigned long long value +cdef extern from 'cuda.h': + ctypedef struct cuda_bindings_driver__anon_pod22 "std::remove_all_extentsparams.fence)>::type": + unsigned long long value -cdef union cuda_bindings_driver__anon_pod23: - void* fence - unsigned long long reserved +cdef extern from 'cuda.h': + ctypedef union cuda_bindings_driver__anon_pod23 "std::remove_all_extentsparams.nvSciSync)>::type": + void* fence + unsigned long long reserved -cdef struct cuda_bindings_driver__anon_pod24: - unsigned long long key +cdef extern from 'cuda.h': + ctypedef struct cuda_bindings_driver__anon_pod24 "std::remove_all_extentsparams.keyedMutex)>::type": + unsigned long long key -cdef struct cuda_bindings_driver__anon_pod26: - unsigned long long value +cdef extern from 'cuda.h': + ctypedef struct cuda_bindings_driver__anon_pod26 "std::remove_all_extentsparams.fence)>::type": + unsigned long long value -cdef union cuda_bindings_driver__anon_pod27: - void* fence - unsigned long long reserved +cdef extern from 'cuda.h': + ctypedef union cuda_bindings_driver__anon_pod27 "std::remove_all_extentsparams.nvSciSync)>::type": + void* fence + unsigned long long reserved -cdef struct cuda_bindings_driver__anon_pod28: - unsigned long long key - unsigned int timeoutMs +cdef extern from 'cuda.h': + ctypedef struct cuda_bindings_driver__anon_pod28 "std::remove_all_extentsparams.keyedMutex)>::type": + unsigned long long key + unsigned int timeoutMs -cdef struct cuda_bindings_driver__anon_pod31: - unsigned int level - unsigned int layer - unsigned int offsetX - unsigned int offsetY - unsigned int offsetZ - unsigned int extentWidth - unsigned int extentHeight - unsigned int extentDepth +cdef extern from 'cuda.h': + ctypedef struct cuda_bindings_driver__anon_pod31 "std::remove_all_extentssubresource.sparseLevel)>::type": + unsigned int level + unsigned int layer + unsigned int offsetX + unsigned int offsetY + unsigned int offsetZ + unsigned int extentWidth + unsigned int extentHeight + unsigned int extentDepth -cdef struct cuda_bindings_driver__anon_pod32: - unsigned int layer - unsigned long long offset - unsigned long long size +cdef extern from 'cuda.h': + ctypedef struct cuda_bindings_driver__anon_pod32 "std::remove_all_extentssubresource.miptail)>::type": + unsigned int layer + unsigned long long offset + unsigned long long size -cdef struct cuda_bindings_driver__anon_pod34: - unsigned char compressionType - unsigned char gpuDirectRDMACapable - unsigned short usage - unsigned char reserved[4] +cdef extern from 'cuda.h': + ctypedef struct cuda_bindings_driver__anon_pod34 "std::remove_all_extentsallocFlags)>::type": + unsigned char compressionType + unsigned char gpuDirectRDMACapable + unsigned short usage + unsigned char reserved[4] cdef extern from 'cuda.h': cdef struct CUdevSmResource_st: @@ -2102,24 +2121,29 @@ cdef extern from 'cuda.h': CUcontext ctx ctypedef CUDA_KERNEL_NODE_PARAMS_v3_st CUDA_KERNEL_NODE_PARAMS_v3 -cdef struct cuda_bindings_driver__anon_pod12: - CUarray hArray +cdef extern from 'cuda.h': + ctypedef struct cuda_bindings_driver__anon_pod12 "std::remove_all_extentsres.array)>::type": + CUarray hArray -cdef struct cuda_bindings_driver__anon_pod13: - CUmipmappedArray hMipmappedArray +cdef extern from 'cuda.h': + ctypedef struct cuda_bindings_driver__anon_pod13 "std::remove_all_extentsres.mipmap)>::type": + CUmipmappedArray hMipmappedArray -cdef union cuda_bindings_driver__anon_pod29: - CUmipmappedArray mipmap - CUarray array +cdef extern from 'cuda.h': + ctypedef union cuda_bindings_driver__anon_pod29 "std::remove_all_extentsresource)>::type": + CUmipmappedArray mipmap + CUarray array -cdef struct cuda_bindings_driver__anon_pod5: - CUevent event - int flags - int triggerAtBlockStart +cdef extern from 'cuda.h': + ctypedef struct cuda_bindings_driver__anon_pod5 "std::remove_all_extentsprogrammaticEvent)>::type": + CUevent event + int flags + int triggerAtBlockStart -cdef struct cuda_bindings_driver__anon_pod6: - CUevent event - int flags +cdef extern from 'cuda.h': + ctypedef struct cuda_bindings_driver__anon_pod6 "std::remove_all_extentslaunchCompletionEvent)>::type": + CUevent event + int flags cdef extern from 'cuda.h': cdef struct CUDA_EVENT_RECORD_NODE_PARAMS_st: @@ -2174,12 +2198,14 @@ cdef extern from 'cuda.h': CUgraphNode errorFromNode ctypedef CUgraphExecUpdateResultInfo_st CUgraphExecUpdateResultInfo_v1 -cdef struct cuda_bindings_driver__anon_pod8: - int deviceUpdatable - CUgraphDeviceNode devNode +cdef extern from 'cuda.h': + ctypedef struct cuda_bindings_driver__anon_pod8 "std::remove_all_extentsdeviceUpdatableKernelNode)>::type": + int deviceUpdatable + CUgraphDeviceNode devNode -cdef union cuda_bindings_driver__anon_pod2: - cuda_bindings_driver__anon_pod3 overBudget +cdef extern from 'cuda.h': + ctypedef union cuda_bindings_driver__anon_pod2 "std::remove_all_extentsinfo)>::type": + cuda_bindings_driver__anon_pod3 overBudget cdef extern from 'cuda.h': cdef struct CUDA_HOST_NODE_PARAMS_st: @@ -2202,31 +2228,36 @@ cdef extern from 'cuda.h': unsigned int reserved[4] ctypedef CUDA_ARRAY_SPARSE_PROPERTIES_st CUDA_ARRAY_SPARSE_PROPERTIES_v1 -cdef union cuda_bindings_driver__anon_pod17: - int fd - cuda_bindings_driver__anon_pod18 win32 - void* nvSciBufObject +cdef extern from 'cuda.h': + ctypedef union cuda_bindings_driver__anon_pod17 "std::remove_all_extentshandle)>::type": + int fd + cuda_bindings_driver__anon_pod18 win32 + void* nvSciBufObject -cdef union cuda_bindings_driver__anon_pod19: - int fd - cuda_bindings_driver__anon_pod20 win32 - void* nvSciSyncObj +cdef extern from 'cuda.h': + ctypedef union cuda_bindings_driver__anon_pod19 "std::remove_all_extentshandle)>::type": + int fd + cuda_bindings_driver__anon_pod20 win32 + void* nvSciSyncObj -cdef struct cuda_bindings_driver__anon_pod21: - cuda_bindings_driver__anon_pod22 fence - cuda_bindings_driver__anon_pod23 nvSciSync - cuda_bindings_driver__anon_pod24 keyedMutex - unsigned int reserved[12] +cdef extern from 'cuda.h': + ctypedef struct cuda_bindings_driver__anon_pod21 "std::remove_all_extentsparams)>::type": + cuda_bindings_driver__anon_pod22 fence + cuda_bindings_driver__anon_pod23 nvSciSync + cuda_bindings_driver__anon_pod24 keyedMutex + unsigned int reserved[12] -cdef struct cuda_bindings_driver__anon_pod25: - cuda_bindings_driver__anon_pod26 fence - cuda_bindings_driver__anon_pod27 nvSciSync - cuda_bindings_driver__anon_pod28 keyedMutex - unsigned int reserved[10] +cdef extern from 'cuda.h': + ctypedef struct cuda_bindings_driver__anon_pod25 "std::remove_all_extentsparams)>::type": + cuda_bindings_driver__anon_pod26 fence + cuda_bindings_driver__anon_pod27 nvSciSync + cuda_bindings_driver__anon_pod28 keyedMutex + unsigned int reserved[10] -cdef union cuda_bindings_driver__anon_pod30: - cuda_bindings_driver__anon_pod31 sparseLevel - cuda_bindings_driver__anon_pod32 miptail +cdef extern from 'cuda.h': + ctypedef union cuda_bindings_driver__anon_pod30 "std::remove_all_extentssubresource)>::type": + cuda_bindings_driver__anon_pod31 sparseLevel + cuda_bindings_driver__anon_pod32 miptail cdef extern from 'cuda.h': ctypedef struct CUDA_CONDITIONAL_NODE_PARAMS 'CUDA_CONDITIONAL_NODE_PARAMS': @@ -2237,7 +2268,7 @@ cdef extern from 'cuda.h': CUcontext ctx cdef extern from 'cuda.h': - ctypedef struct CUstreamMemOpWaitValueParams_st 'CUstreamMemOpWaitValueParams_st': + ctypedef struct CUstreamMemOpWaitValueParams_st "std::remove_all_extentswaitValue)>::type": CUstreamBatchMemOpType operation CUdeviceptr address cuuint32_t value @@ -2246,7 +2277,7 @@ cdef extern from 'cuda.h': CUdeviceptr alias cdef extern from 'cuda.h': - ctypedef struct CUstreamMemOpWriteValueParams_st 'CUstreamMemOpWriteValueParams_st': + ctypedef struct CUstreamMemOpWriteValueParams_st "std::remove_all_extentswriteValue)>::type": CUstreamBatchMemOpType operation CUdeviceptr address cuuint32_t value @@ -2353,27 +2384,30 @@ cdef extern from 'cuda.h': size_t Depth ctypedef CUDA_MEMCPY3D_PEER_st CUDA_MEMCPY3D_PEER_v1 -cdef struct cuda_bindings_driver__anon_pod14: - CUdeviceptr devPtr - CUarray_format format - unsigned int numChannels - size_t sizeInBytes +cdef extern from 'cuda.h': + ctypedef struct cuda_bindings_driver__anon_pod14 "std::remove_all_extentsres.linear)>::type": + CUdeviceptr devPtr + CUarray_format format + unsigned int numChannels + size_t sizeInBytes -cdef struct cuda_bindings_driver__anon_pod15: - CUdeviceptr devPtr - CUarray_format format - unsigned int numChannels - size_t width - size_t height - size_t pitchInBytes +cdef extern from 'cuda.h': + ctypedef struct cuda_bindings_driver__anon_pod15 "std::remove_all_extentsres.pitch2D)>::type": + CUdeviceptr devPtr + CUarray_format format + unsigned int numChannels + size_t width + size_t height + size_t pitchInBytes cdef extern from 'cuda.h': cdef struct CUDA_MEM_FREE_NODE_PARAMS_st: CUdeviceptr dptr ctypedef CUDA_MEM_FREE_NODE_PARAMS_st CUDA_MEM_FREE_NODE_PARAMS -cdef union cuda_bindings_driver__anon_pod9: - CUexecAffinitySmCount smCount +cdef extern from 'cuda.h': + ctypedef union cuda_bindings_driver__anon_pod9 "std::remove_all_extentsparam)>::type": + CUexecAffinitySmCount smCount cdef extern from 'cuda.h': cdef struct CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st: @@ -2383,8 +2417,9 @@ cdef extern from 'cuda.h': unsigned int reserved[16] ctypedef CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1 -cdef union cuda_bindings_driver__anon_pod33: - CUmemGenericAllocationHandle memHandle +cdef extern from 'cuda.h': + ctypedef union cuda_bindings_driver__anon_pod33 "std::remove_all_extentsmemHandle)>::type": + CUmemGenericAllocationHandle memHandle cdef extern from 'cuda.h': cdef struct CUmemAllocationProp_st: @@ -2420,15 +2455,17 @@ cdef extern from 'cuda.h': unsigned int flags ctypedef CUmemcpyAttributes_st CUmemcpyAttributes_v1 -cdef struct cuda_bindings_driver__anon_pod36: - CUdeviceptr ptr - size_t rowLength - size_t layerHeight - CUmemLocation locHint +cdef extern from 'cuda.h': + ctypedef struct cuda_bindings_driver__anon_pod36 "std::remove_all_extentsop.ptr)>::type": + CUdeviceptr ptr + size_t rowLength + size_t layerHeight + CUmemLocation locHint -cdef struct cuda_bindings_driver__anon_pod37: - CUarray array - CUoffset3D offset +cdef extern from 'cuda.h': + ctypedef struct cuda_bindings_driver__anon_pod37 "std::remove_all_extentsop.array)>::type": + CUarray array + CUoffset3D offset cdef extern from 'cuda.h': ctypedef CUDA_KERNEL_NODE_PARAMS_v2 CUDA_KERNEL_NODE_PARAMS 'CUDA_KERNEL_NODE_PARAMS' @@ -2540,12 +2577,13 @@ cdef extern from 'cuda.h': ctypedef CUDA_MEMCPY3D_PEER_v1 CUDA_MEMCPY3D_PEER 'CUDA_MEMCPY3D_PEER' -cdef union cuda_bindings_driver__anon_pod11: - cuda_bindings_driver__anon_pod12 array - cuda_bindings_driver__anon_pod13 mipmap - cuda_bindings_driver__anon_pod14 linear - cuda_bindings_driver__anon_pod15 pitch2D - cuda_bindings_driver__anon_pod16 reserved +cdef extern from 'cuda.h': + ctypedef union cuda_bindings_driver__anon_pod11 "std::remove_all_extentsres)>::type": + cuda_bindings_driver__anon_pod12 array + cuda_bindings_driver__anon_pod13 mipmap + cuda_bindings_driver__anon_pod14 linear + cuda_bindings_driver__anon_pod15 pitch2D + cuda_bindings_driver__anon_pod16 reserved cdef extern from 'cuda.h': cdef struct CUexecAffinityParam_st: @@ -2588,9 +2626,10 @@ cdef extern from 'cuda.h': ctypedef CUmemcpyAttributes_v1 CUmemcpyAttributes 'CUmemcpyAttributes' -cdef union cuda_bindings_driver__anon_pod35: - cuda_bindings_driver__anon_pod36 ptr - cuda_bindings_driver__anon_pod37 array +cdef extern from 'cuda.h': + ctypedef union cuda_bindings_driver__anon_pod35 "std::remove_all_extentsop)>::type": + cuda_bindings_driver__anon_pod36 ptr + cuda_bindings_driver__anon_pod37 array cdef extern from 'cuda.h': ctypedef CUlaunchAttributeValue CUkernelNodeAttrValue_v1 'CUkernelNodeAttrValue_v1' @@ -3289,7 +3328,7 @@ cdef CUresult cuCtxFromGreenCtx(CUcontext* pContext, CUgreenCtx hCtx) except ?CU cdef CUresult cuDeviceGetDevResource(CUdevice device, CUdevResource* resource, CUdevResourceType type) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult cuCtxGetDevResource(CUcontext hCtx, CUdevResource* resource, CUdevResourceType type) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult cuGreenCtxGetDevResource(CUgreenCtx hCtx, CUdevResource* resource, CUdevResourceType type) except ?CUDA_ERROR_NOT_FOUND nogil -cdef CUresult cuDevSmResourceSplitByCount(CUdevResource* result, unsigned int* nbGroups, const CUdevResource* input, CUdevResource* remaining, unsigned int useFlags, unsigned int minCount) except ?CUDA_ERROR_NOT_FOUND nogil +cdef CUresult cuDevSmResourceSplitByCount(CUdevResource* result, unsigned int* nbGroups, const CUdevResource* input, CUdevResource* remainder, unsigned int useFlags, unsigned int minCount) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult cuDevResourceGenerateDesc(CUdevResourceDesc* phDesc, CUdevResource* resources, unsigned int nbResources) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult cuGreenCtxRecordEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult cuGreenCtxWaitEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil @@ -3482,7 +3521,11 @@ cdef enum: CU_DEVICE_INVALID = -2 cdef enum: MAX_PLANES = 3 -cdef enum: CUDA_EGL_INFINITE_TIMEOUT = 4294967295 +cdef extern from *: + """ + const uint32_t CUDA_EGL_INFINITE_TIMEOUT = 0xffffffff; + """ + const uint32_t CUDA_EGL_INFINITE_TIMEOUT cdef enum: RESOURCE_ABI_VERSION = 1 diff --git a/cuda_bindings_12/cuda/bindings/cydriver.pyx b/cuda_bindings_12/cuda/bindings/cydriver.pyx index 403481bd9cfe..1f8d5b7a8e23 100644 --- a/cuda_bindings_12/cuda/bindings/cydriver.pyx +++ b/cuda_bindings_12/cuda/bindings/cydriver.pyx @@ -4,7 +4,7 @@ # # This code was automatically generated with version 12.9.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=b8293f7b94123dad8c0eadad09ece6c5262e4b28a733663b74e3601edcfac791 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=2c3b60bfe3be4a827c6639aa60fe17990745c611bc339d86bc7444f6af9225fa from ._internal cimport driver as _driver cdef CUresult cuGetErrorString(CUresult error, const char** pStr) except ?CUDA_ERROR_NOT_FOUND nogil: @@ -1747,8 +1747,8 @@ cdef CUresult cuGreenCtxGetDevResource(CUgreenCtx hCtx, CUdevResource* resource, return _driver._cuGreenCtxGetDevResource(hCtx, resource, type) -cdef CUresult cuDevSmResourceSplitByCount(CUdevResource* result, unsigned int* nbGroups, const CUdevResource* input, CUdevResource* remaining, unsigned int useFlags, unsigned int minCount) except ?CUDA_ERROR_NOT_FOUND nogil: - return _driver._cuDevSmResourceSplitByCount(result, nbGroups, input, remaining, useFlags, minCount) +cdef CUresult cuDevSmResourceSplitByCount(CUdevResource* result, unsigned int* nbGroups, const CUdevResource* input, CUdevResource* remainder, unsigned int useFlags, unsigned int minCount) except ?CUDA_ERROR_NOT_FOUND nogil: + return _driver._cuDevSmResourceSplitByCount(result, nbGroups, input, remainder, useFlags, minCount) cdef CUresult cuDevResourceGenerateDesc(CUdevResourceDesc* phDesc, CUdevResource* resources, unsigned int nbResources) except ?CUDA_ERROR_NOT_FOUND nogil: diff --git a/cuda_bindings_12/cuda/bindings/cynvfatbin.pxd b/cuda_bindings_12/cuda/bindings/cynvfatbin.pxd index b61707a47c88..552a36307641 100644 --- a/cuda_bindings_12/cuda/bindings/cynvfatbin.pxd +++ b/cuda_bindings_12/cuda/bindings/cynvfatbin.pxd @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.4.1 to 13.4.1. Do not modify it directly. +# This code was automatically generated across versions from 12.4.1 to 13.5.0. Do not modify it directly. @@ -11,7 +11,7 @@ ############################################################################### # enums -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=4eaac7021af14308210cbd9dd8bf938f0b09d395ef079368750627da493fa06e +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=aaf11ec15d17e7c6051539ba080af5a01b1bf9c8270de12ce2e3b6b6d79bb428 ctypedef enum nvFatbinResult "nvFatbinResult": NVFATBIN_SUCCESS "NVFATBIN_SUCCESS" = 0 NVFATBIN_ERROR_INTERNAL "NVFATBIN_ERROR_INTERNAL" diff --git a/cuda_bindings_12/cuda/bindings/cynvfatbin.pyx b/cuda_bindings_12/cuda/bindings/cynvfatbin.pyx index a943e7bbf01d..127b6fa25050 100644 --- a/cuda_bindings_12/cuda/bindings/cynvfatbin.pyx +++ b/cuda_bindings_12/cuda/bindings/cynvfatbin.pyx @@ -2,9 +2,9 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.4.1 to 13.4.1. Do not modify it directly. +# This code was automatically generated across versions from 12.4.1 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=ac4e507008fec5a9a6963e6539b4a783ca1908452fc4bdb300119af7a1312ff0 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=28611acfc3acf609962d979441ad27ae9223e93c5b72d7ae4df25e6f1f42b57e from ._internal cimport nvfatbin as _nvfatbin diff --git a/cuda_bindings_12/cuda/bindings/cynvjitlink.pxd b/cuda_bindings_12/cuda/bindings/cynvjitlink.pxd index 1c240342c91a..2ed162752508 100644 --- a/cuda_bindings_12/cuda/bindings/cynvjitlink.pxd +++ b/cuda_bindings_12/cuda/bindings/cynvjitlink.pxd @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.0.1 to 13.4.1. Do not modify it directly. +# This code was automatically generated across versions from 12.0.1 to 13.5.0. Do not modify it directly. @@ -11,7 +11,7 @@ ############################################################################### # enums -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=7bd3a5876758225a37a98b496a1423047d3a446a4a0956ebc11b17f0abe2128a +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=91854c8cb6b94083b226d333ffdf0c8b6eb10ac373a00da0be4547b5e7e61076 # <<<< PREAMBLE CONTENT >>>> diff --git a/cuda_bindings_12/cuda/bindings/cynvjitlink.pyx b/cuda_bindings_12/cuda/bindings/cynvjitlink.pyx index 0359f23f2163..44efa6708a33 100644 --- a/cuda_bindings_12/cuda/bindings/cynvjitlink.pyx +++ b/cuda_bindings_12/cuda/bindings/cynvjitlink.pyx @@ -2,8 +2,8 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.0.1 to 13.4.1. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=3abd933ead70f75181084a0ac8ea01c523839c18b93820a2c560e9b945de6d3e +# This code was automatically generated across versions from 12.0.1 to 13.5.0. Do not modify it directly. +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=3e39dd3d29fe397aac64b870c1759f893e5792a63df167ab9dad3f9dda0bbec5 # <<<< PREAMBLE CONTENT >>>> diff --git a/cuda_bindings_12/cuda/bindings/cynvml.pxd b/cuda_bindings_12/cuda/bindings/cynvml.pxd index 780241c5a3ac..6b7077f0fa84 100644 --- a/cuda_bindings_12/cuda/bindings/cynvml.pxd +++ b/cuda_bindings_12/cuda/bindings/cynvml.pxd @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.9.1 to 13.4.1. Do not modify it directly. +# This code was automatically generated across versions from 12.9.1 to 13.5.0. Do not modify it directly. @@ -11,7 +11,7 @@ ############################################################################### # enums -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=60a5b20aeb8f2f1b807c72675995ed6bf5943e58f3b9ab24933f51d4a7246f6f +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=2c738c3fcedf7ae3325451885afecee74d7aa012ce8cf57d351957d5f22e02fc ctypedef enum nvmlBridgeChipType_t "nvmlBridgeChipType_t": NVML_BRIDGE_CHIP_PLX "NVML_BRIDGE_CHIP_PLX" = 0 NVML_BRIDGE_CHIP_BRO4 "NVML_BRIDGE_CHIP_BRO4" = 1 @@ -198,8 +198,8 @@ ctypedef enum nvmlBrandType_t "nvmlBrandType_t": NVML_BRAND_GEFORCE_RTX "NVML_BRAND_GEFORCE_RTX" = 15 NVML_BRAND_TITAN_RTX "NVML_BRAND_TITAN_RTX" = 16 NVML_BRAND_NVIDIA_DLA "NVML_BRAND_NVIDIA_DLA" = 17 - NVML_BRAND_NVIDIA_VGAMEDEV "NVML_BRAND_NVIDIA_VGAMEDEV" = 18 NVML_BRAND_NVIDIA_NPU "NVML_BRAND_NVIDIA_NPU" = 19 + NVML_BRAND_NVIDIA_VGAMEDEV "NVML_BRAND_NVIDIA_VGAMEDEV" = 18 NVML_BRAND_COUNT "NVML_BRAND_COUNT" = 20 ctypedef enum nvmlTemperatureThresholds_t "nvmlTemperatureThresholds_t": @@ -1811,6 +1811,34 @@ ctypedef struct nvmlEccBankRemapperHistogram_v1_t 'nvmlEccBankRemapperHistogram_ unsigned int maxSpareGroupCount unsigned int noSpareGroupCount +ctypedef struct nvmlGpuUptime_v1_t 'nvmlGpuUptime_v1_t': + unsigned int uptime + +ctypedef struct nvmlSystemConfComputeSettings_v2_t 'nvmlSystemConfComputeSettings_v2_t': + unsigned int version + unsigned int environment + unsigned int ccFeature + unsigned int devToolsMode + unsigned int multiGpuMode + unsigned int tdispState + +ctypedef struct nvmlNvlinkGetRemapTableInfo_v1_t 'nvmlNvlinkGetRemapTableInfo_v1_t': + unsigned int alid + unsigned int flaRemapTabAddr[4096] + unsigned int gpaRemapTabAddr[4096] + unsigned int remapTabSize + +ctypedef struct nvmlNvlinkSetNvleReady_v1_t 'nvmlNvlinkSetNvleReady_v1_t': + unsigned char bNvleReady + +ctypedef struct nvmlNvlinkLockRemapTable_v1_t 'nvmlNvlinkLockRemapTable_v1_t': + unsigned char bRemapTableLocked + unsigned char bRemapTableLockDisabled + +ctypedef struct nvmlNvlinkNvlePrivateInfo_v1_t 'nvmlNvlinkNvlePrivateInfo_v1_t': + unsigned char data[256] + unsigned int size + ctypedef nvmlPciInfoExt_v1_t nvmlPciInfoExt_t 'nvmlPciInfoExt_t' ctypedef nvmlCoolerInfo_v1_t nvmlCoolerInfo_t 'nvmlCoolerInfo_t' @@ -2198,6 +2226,13 @@ ctypedef struct nvmlEccBankRemapperStatus_v1_t 'nvmlEccBankRemapperStatus_v1_t': unsigned int bPending nvmlEccBankRemapperHistogram_v1_t histogram +ctypedef struct nvmlNvlinkSetupNvleEncryptionKey_v1_t 'nvmlNvlinkSetupNvleEncryptionKey_v1_t': + unsigned char nvleKey[32] + unsigned int localGpuAlid + unsigned int remoteGpuAlid + nvmlNvlinkNvlePrivateInfo_v1_t localGpuNvlePrivateInfo + nvmlNvlinkNvlePrivateInfo_v1_t remoteGpuNvlePrivateInfo + ctypedef nvmlVgpuTypeIdInfo_v1_t nvmlVgpuTypeIdInfo_t 'nvmlVgpuTypeIdInfo_t' ctypedef nvmlVgpuTypeMaxInstance_v1_t nvmlVgpuTypeMaxInstance_t 'nvmlVgpuTypeMaxInstance_t' @@ -2311,6 +2346,11 @@ ctypedef struct nvmlNvLinkInfo_v2_t 'nvmlNvLinkInfo_v2_t': unsigned int isNvleEnabled nvmlNvlinkFirmwareInfo_t firmwareInfo +ctypedef struct nvmlNvLinkInfo_v3_t 'nvmlNvLinkInfo_v3_t': + unsigned int isNvleEnabled + nvmlNvlinkFirmwareInfo_t firmwareInfo + unsigned int isNvleReady + ctypedef struct nvmlPwrModelMetricsDlppm1x_t 'nvmlPwrModelMetricsDlppm1x_t': unsigned char bValid nvmlCoreRailMetrics_t coreRail @@ -2750,3 +2790,11 @@ cdef nvmlReturn_t nvmlEventSetGetContextInfo_v1(nvmlEventSet_t set, nvmlEventSet cdef nvmlReturn_t nvmlEventSetGetContextData_v1(nvmlEventSet_t set, nvmlEventSetGetContextData_v1_t* params) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil cdef nvmlReturn_t nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1(nvmlEventSet_t set, nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1_t* params) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil cdef nvmlReturn_t nvmlDeviceGetBankRemapperStatus_v1(nvmlDevice_t device, nvmlEccBankRemapperStatus_v1_t* pBankRemapperStatus) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil +cdef nvmlReturn_t nvmlDeviceGetGpuUptime_v1(nvmlDevice_t device, nvmlGpuUptime_v1_t* uptime) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil +cdef nvmlReturn_t nvmlSystemGetConfComputeSettings_v2(nvmlSystemConfComputeSettings_v2_t* settings) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil +cdef nvmlReturn_t nvmlDeviceGetNvLinkInfo_v3(nvmlDevice_t device, nvmlNvLinkInfo_v3_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil +cdef nvmlReturn_t nvmlDeviceGetNvlinkRemapTableInfo_v1(nvmlDevice_t device, nvmlNvlinkGetRemapTableInfo_v1_t* remapTableInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil +cdef nvmlReturn_t nvmlDeviceSetNvlinkNvleReady_v1(nvmlDevice_t device, nvmlNvlinkSetNvleReady_v1_t* setNvleReady) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil +cdef nvmlReturn_t nvmlDeviceLockNvlinkRemapTable_v1(nvmlDevice_t device, nvmlNvlinkLockRemapTable_v1_t* remapTableLockInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil +cdef nvmlReturn_t nvmlDeviceSetupNvlinkNvleEncryptionKey_v1(nvmlDevice_t device, nvmlNvlinkSetupNvleEncryptionKey_v1_t* encryptionKey) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil +cdef nvmlReturn_t nvmlDeviceGetNvlinkNvlePrivateInfo_v1(nvmlDevice_t device, nvmlNvlinkNvlePrivateInfo_v1_t* privateInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil diff --git a/cuda_bindings_12/cuda/bindings/cynvml.pyx b/cuda_bindings_12/cuda/bindings/cynvml.pyx index c309bc66eaa4..4f90a7461e23 100644 --- a/cuda_bindings_12/cuda/bindings/cynvml.pyx +++ b/cuda_bindings_12/cuda/bindings/cynvml.pyx @@ -2,9 +2,9 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.9.1 to 13.4.1. Do not modify it directly. +# This code was automatically generated across versions from 12.9.1 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=f5af75e5d248a615a2165cbd490ef48486c2b9e3a3957aec27050eda3de5f329 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=e4f252d4eb41bb6057e377cc4d212b07f4ecc5c0fe1c85fb2dff9319ef664726 from ._internal cimport nvml as _nvml @@ -1490,3 +1490,35 @@ cdef nvmlReturn_t nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1(nvmlEven cdef nvmlReturn_t nvmlDeviceGetBankRemapperStatus_v1(nvmlDevice_t device, nvmlEccBankRemapperStatus_v1_t* pBankRemapperStatus) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: return _nvml._nvmlDeviceGetBankRemapperStatus_v1(device, pBankRemapperStatus) + + +cdef nvmlReturn_t nvmlDeviceGetGpuUptime_v1(nvmlDevice_t device, nvmlGpuUptime_v1_t* uptime) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: + return _nvml._nvmlDeviceGetGpuUptime_v1(device, uptime) + + +cdef nvmlReturn_t nvmlSystemGetConfComputeSettings_v2(nvmlSystemConfComputeSettings_v2_t* settings) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: + return _nvml._nvmlSystemGetConfComputeSettings_v2(settings) + + +cdef nvmlReturn_t nvmlDeviceGetNvLinkInfo_v3(nvmlDevice_t device, nvmlNvLinkInfo_v3_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: + return _nvml._nvmlDeviceGetNvLinkInfo_v3(device, info) + + +cdef nvmlReturn_t nvmlDeviceGetNvlinkRemapTableInfo_v1(nvmlDevice_t device, nvmlNvlinkGetRemapTableInfo_v1_t* remapTableInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: + return _nvml._nvmlDeviceGetNvlinkRemapTableInfo_v1(device, remapTableInfo) + + +cdef nvmlReturn_t nvmlDeviceSetNvlinkNvleReady_v1(nvmlDevice_t device, nvmlNvlinkSetNvleReady_v1_t* setNvleReady) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: + return _nvml._nvmlDeviceSetNvlinkNvleReady_v1(device, setNvleReady) + + +cdef nvmlReturn_t nvmlDeviceLockNvlinkRemapTable_v1(nvmlDevice_t device, nvmlNvlinkLockRemapTable_v1_t* remapTableLockInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: + return _nvml._nvmlDeviceLockNvlinkRemapTable_v1(device, remapTableLockInfo) + + +cdef nvmlReturn_t nvmlDeviceSetupNvlinkNvleEncryptionKey_v1(nvmlDevice_t device, nvmlNvlinkSetupNvleEncryptionKey_v1_t* encryptionKey) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: + return _nvml._nvmlDeviceSetupNvlinkNvleEncryptionKey_v1(device, encryptionKey) + + +cdef nvmlReturn_t nvmlDeviceGetNvlinkNvlePrivateInfo_v1(nvmlDevice_t device, nvmlNvlinkNvlePrivateInfo_v1_t* privateInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: + return _nvml._nvmlDeviceGetNvlinkNvlePrivateInfo_v1(device, privateInfo) diff --git a/cuda_bindings_12/cuda/bindings/cynvvm.pxd b/cuda_bindings_12/cuda/bindings/cynvvm.pxd index 1dea8578b409..10874ffaf445 100644 --- a/cuda_bindings_12/cuda/bindings/cynvvm.pxd +++ b/cuda_bindings_12/cuda/bindings/cynvvm.pxd @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.0.1 to 13.4.1. Do not modify it directly. +# This code was automatically generated across versions from 12.0.1 to 13.5.0. Do not modify it directly. ############################################################################### @@ -10,7 +10,7 @@ ############################################################################### # enums -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=060a4e1d735676d6239664555a8a07b292481085ca0f5b5f362ce5289f20ca6d +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=7744f4d1d82bf1ce883a81e54ed034118e4690df66166f6cf4aad15e72739f05 ctypedef enum nvvmResult "nvvmResult": NVVM_SUCCESS "NVVM_SUCCESS" = 0 NVVM_ERROR_OUT_OF_MEMORY "NVVM_ERROR_OUT_OF_MEMORY" = 1 diff --git a/cuda_bindings_12/cuda/bindings/cynvvm.pyx b/cuda_bindings_12/cuda/bindings/cynvvm.pyx index 450283856337..ed382f3c08e4 100644 --- a/cuda_bindings_12/cuda/bindings/cynvvm.pyx +++ b/cuda_bindings_12/cuda/bindings/cynvvm.pyx @@ -2,9 +2,9 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.0.1 to 13.4.1. Do not modify it directly. +# This code was automatically generated across versions from 12.0.1 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=f235b24d553d40a065b8e5df12f584994d30eb6a3f52fc0dd35d7202c703f05b +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=c7348ed30990a08322dd20b80fdc90c5ceba85f78ddfd8fcc5b79fda635a0e46 from ._internal cimport nvvm as _nvvm diff --git a/cuda_bindings_12/cuda/bindings/cyruntime.pxd b/cuda_bindings_12/cuda/bindings/cyruntime.pxd new file mode 100644 index 000000000000..f729a32c14f2 --- /dev/null +++ b/cuda_bindings_12/cuda/bindings/cyruntime.pxd @@ -0,0 +1,2492 @@ +# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# +# This code was automatically generated with version 12.9.0. Do not modify it directly. +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=3b4da42728210e76f79e896fe70d8167e7dff92ec533e35a6ee4cf78234c272c + + +# <<<< PREAMBLE CONTENT >>>> + +cdef extern from "": + pass + + +# <<<< END OF PREAMBLE CONTENT >>>> + +from libc.stdint cimport uint32_t, uint64_t + + +# Types overridden or aliased here because they are macros in driver_types.h +# (not real C types) and cannot be generated from headers directly. + +# GL +ctypedef unsigned int GLenum +ctypedef unsigned int GLuint + +# EGL +ctypedef void *EGLImageKHR +ctypedef void *EGLStreamKHR +ctypedef unsigned int EGLint +ctypedef void *EGLSyncKHR + +# VDPAU +ctypedef uint32_t VdpDevice +ctypedef unsigned long long VdpGetProcAddress +ctypedef uint32_t VdpVideoSurface +ctypedef uint32_t VdpOutputSurface + +# These four names are preprocessor macros in driver_types.h that alias the +# cudaLaunchAttribute* types. Omitting the C alias string is intentional: it +# preserves the Cython-mangled ABI (__pyx_t_...) that legacy_cython_gen produced, +# so downstream extensions compiled against the old headers keep working. +# Do NOT add 'CName' aliases here — that would break binary compatibility. +ctypedef cudaLaunchAttributeID cudaStreamAttrID +ctypedef cudaLaunchAttributeID cudaKernelNodeAttrID +ctypedef cudaLaunchAttributeValue cudaStreamAttrValue +ctypedef cudaLaunchAttributeValue cudaKernelNodeAttrValue + +# dim3 is used as a member type in several CUDA structs +cdef extern from 'vector_types.h': + ctypedef struct dim3 'dim3': + unsigned int x + unsigned int y + unsigned int z + +# Opaque CUDA runtime handle types declared as their underlying CU*_st pointer types +# (matching cydriver's declarations) so that runtime wrapper classes sharing _pvt_ptr +# with driver wrapper classes can assign values without Cython type errors. +cdef extern from 'driver_types.h': + cdef struct CUstream_st 'CUstream_st': + pass + ctypedef CUstream_st* cudaStream_t 'cudaStream_t' + +cdef extern from 'driver_types.h': + cdef struct CUevent_st 'CUevent_st': + pass + ctypedef CUevent_st* cudaEvent_t 'cudaEvent_t' + +cdef extern from 'driver_types.h': + cdef struct CUexternalMemory_st 'CUexternalMemory_st': + pass + ctypedef CUexternalMemory_st* cudaExternalMemory_t 'cudaExternalMemory_t' + +cdef extern from 'driver_types.h': + cdef struct CUexternalSemaphore_st 'CUexternalSemaphore_st': + pass + ctypedef CUexternalSemaphore_st* cudaExternalSemaphore_t 'cudaExternalSemaphore_t' + +cdef extern from 'driver_types.h': + cdef struct CUgraph_st 'CUgraph_st': + pass + ctypedef CUgraph_st* cudaGraph_t 'cudaGraph_t' + +cdef extern from 'driver_types.h': + cdef struct CUgraphNode_st 'CUgraphNode_st': + pass + ctypedef CUgraphNode_st* cudaGraphNode_t 'cudaGraphNode_t' + +cdef extern from 'driver_types.h': + cdef struct CUuserObject_st 'CUuserObject_st': + pass + ctypedef CUuserObject_st* cudaUserObject_t 'cudaUserObject_t' + +cdef extern from 'driver_types.h': + cdef struct CUfunc_st 'CUfunc_st': + pass + ctypedef CUfunc_st* cudaFunction_t 'cudaFunction_t' + +cdef extern from 'driver_types.h': + cdef struct CUkern_st 'CUkern_st': + pass + ctypedef CUkern_st* cudaKernel_t 'cudaKernel_t' + +cdef extern from 'driver_types.h': + cdef struct CUlib_st 'CUlib_st': + pass + ctypedef CUlib_st* cudaLibrary_t 'cudaLibrary_t' + +cdef extern from 'driver_types.h': + cdef struct CUmemPoolHandle_st 'CUmemPoolHandle_st': + pass + ctypedef CUmemPoolHandle_st* cudaMemPool_t 'cudaMemPool_t' + +cdef extern from 'driver_types.h': + cdef struct CUgraphExec_st 'CUgraphExec_st': + pass + ctypedef CUgraphExec_st* cudaGraphExec_t 'cudaGraphExec_t' + +cdef extern from 'driver_types.h': + cdef struct CUgraphDeviceUpdatableNode_st 'CUgraphDeviceUpdatableNode_st': + pass + ctypedef CUgraphDeviceUpdatableNode_st* cudaGraphDeviceNode_t 'cudaGraphDeviceNode_t' + +cdef extern from 'driver_types.h': + cdef struct CUlogsCallbackEntry_st 'CUlogsCallbackEntry_st': + pass + ctypedef CUlogsCallbackEntry_st* cudaLogsCallbackHandle 'cudaLogsCallbackHandle' + +cdef extern from 'driver_types.h': + cdef struct CUdevResourceDesc_st 'CUdevResourceDesc_st': + pass + ctypedef CUdevResourceDesc_st* cudaDevResourceDesc_t 'cudaDevResourceDesc_t' + +cdef extern from 'driver_types.h': + cdef struct cudaExecutionContext_st 'cudaExecutionContext_st': + pass + ctypedef cudaExecutionContext_st* cudaExecutionContext_t 'cudaExecutionContext_t' + +# Types that are outside the naming pattern or SKIPped but required for ABI compatibility +# with the lowpp layer (runtime.pxd) which was generated by legacy_cython_gen. +cdef extern from 'driver_types.h': + cdef struct CUuuid_st 'CUuuid_st': + char bytes[16] + ctypedef CUuuid_st CUuuid 'CUuuid' + +cdef extern from 'driver_types.h': + cdef struct cudalibraryHostUniversalFunctionAndDataTable 'cudalibraryHostUniversalFunctionAndDataTable': + void* functionTable + size_t functionWindowSize + void* dataTable + size_t dataWindowSize + +# Forward declarations for types that are SKIPped but referenced in non-skipped structs/functions +cdef extern from 'driver_types.h': + ctypedef struct cudaUUID_t 'cudaUUID_t': + char bytes[16] + +cdef extern from 'driver_types.h': + cdef struct cudaGraphicsResource 'cudaGraphicsResource': + pass + ctypedef cudaGraphicsResource* cudaGraphicsResource_t 'cudaGraphicsResource_t' + +cdef extern from *: + """ + struct CUeglStreamConnection_st; + typedef struct CUeglStreamConnection_st *cudaEglStreamConnection; + """ + cdef struct CUeglStreamConnection_st 'CUeglStreamConnection_st': + pass + +# Declared at module scope (not inside cdef extern from) so that Cython assigns +# its own mangled name (__pyx_t_...) to this typedef, preserving the Cython ABI +# that legacy_cython_gen produced for the EGL functions that take this type. +# Do NOT move this declaration back inside the cdef extern from block. +ctypedef CUeglStreamConnection_st* cudaEglStreamConnection + + +# ENUMS +cdef extern from 'driver_types.h': + cdef enum cudaError: + cudaSuccess + cudaErrorInvalidValue + cudaErrorMemoryAllocation + cudaErrorInitializationError + cudaErrorCudartUnloading + cudaErrorProfilerDisabled + cudaErrorProfilerNotInitialized + cudaErrorProfilerAlreadyStarted + cudaErrorProfilerAlreadyStopped + cudaErrorInvalidConfiguration + cudaErrorInvalidPitchValue + cudaErrorInvalidSymbol + cudaErrorInvalidHostPointer + cudaErrorInvalidDevicePointer + cudaErrorInvalidTexture + cudaErrorInvalidTextureBinding + cudaErrorInvalidChannelDescriptor + cudaErrorInvalidMemcpyDirection + cudaErrorAddressOfConstant + cudaErrorTextureFetchFailed + cudaErrorTextureNotBound + cudaErrorSynchronizationError + cudaErrorInvalidFilterSetting + cudaErrorInvalidNormSetting + cudaErrorMixedDeviceExecution + cudaErrorNotYetImplemented + cudaErrorMemoryValueTooLarge + cudaErrorStubLibrary + cudaErrorInsufficientDriver + cudaErrorCallRequiresNewerDriver + cudaErrorInvalidSurface + cudaErrorDuplicateVariableName + cudaErrorDuplicateTextureName + cudaErrorDuplicateSurfaceName + cudaErrorDevicesUnavailable + cudaErrorIncompatibleDriverContext + cudaErrorMissingConfiguration + cudaErrorPriorLaunchFailure + cudaErrorLaunchMaxDepthExceeded + cudaErrorLaunchFileScopedTex + cudaErrorLaunchFileScopedSurf + cudaErrorSyncDepthExceeded + cudaErrorLaunchPendingCountExceeded + cudaErrorInvalidDeviceFunction + cudaErrorNoDevice + cudaErrorInvalidDevice + cudaErrorDeviceNotLicensed + cudaErrorSoftwareValidityNotEstablished + cudaErrorStartupFailure + cudaErrorInvalidKernelImage + cudaErrorDeviceUninitialized + cudaErrorMapBufferObjectFailed + cudaErrorUnmapBufferObjectFailed + cudaErrorArrayIsMapped + cudaErrorAlreadyMapped + cudaErrorNoKernelImageForDevice + cudaErrorAlreadyAcquired + cudaErrorNotMapped + cudaErrorNotMappedAsArray + cudaErrorNotMappedAsPointer + cudaErrorECCUncorrectable + cudaErrorUnsupportedLimit + cudaErrorDeviceAlreadyInUse + cudaErrorPeerAccessUnsupported + cudaErrorInvalidPtx + cudaErrorInvalidGraphicsContext + cudaErrorNvlinkUncorrectable + cudaErrorJitCompilerNotFound + cudaErrorUnsupportedPtxVersion + cudaErrorJitCompilationDisabled + cudaErrorUnsupportedExecAffinity + cudaErrorUnsupportedDevSideSync + cudaErrorContained + cudaErrorInvalidSource + cudaErrorFileNotFound + cudaErrorSharedObjectSymbolNotFound + cudaErrorSharedObjectInitFailed + cudaErrorOperatingSystem + cudaErrorInvalidResourceHandle + cudaErrorIllegalState + cudaErrorLossyQuery + cudaErrorSymbolNotFound + cudaErrorNotReady + cudaErrorIllegalAddress + cudaErrorLaunchOutOfResources + cudaErrorLaunchTimeout + cudaErrorLaunchIncompatibleTexturing + cudaErrorPeerAccessAlreadyEnabled + cudaErrorPeerAccessNotEnabled + cudaErrorSetOnActiveProcess + cudaErrorContextIsDestroyed + cudaErrorAssert + cudaErrorTooManyPeers + cudaErrorHostMemoryAlreadyRegistered + cudaErrorHostMemoryNotRegistered + cudaErrorHardwareStackError + cudaErrorIllegalInstruction + cudaErrorMisalignedAddress + cudaErrorInvalidAddressSpace + cudaErrorInvalidPc + cudaErrorLaunchFailure + cudaErrorCooperativeLaunchTooLarge + cudaErrorTensorMemoryLeak + cudaErrorNotPermitted + cudaErrorNotSupported + cudaErrorSystemNotReady + cudaErrorSystemDriverMismatch + cudaErrorCompatNotSupportedOnDevice + cudaErrorMpsConnectionFailed + cudaErrorMpsRpcFailure + cudaErrorMpsServerNotReady + cudaErrorMpsMaxClientsReached + cudaErrorMpsMaxConnectionsReached + cudaErrorMpsClientTerminated + cudaErrorCdpNotSupported + cudaErrorCdpVersionMismatch + cudaErrorStreamCaptureUnsupported + cudaErrorStreamCaptureInvalidated + cudaErrorStreamCaptureMerge + cudaErrorStreamCaptureUnmatched + cudaErrorStreamCaptureUnjoined + cudaErrorStreamCaptureIsolation + cudaErrorStreamCaptureImplicit + cudaErrorCapturedEvent + cudaErrorStreamCaptureWrongThread + cudaErrorTimeout + cudaErrorGraphExecUpdateFailure + cudaErrorExternalDevice + cudaErrorInvalidClusterSize + cudaErrorFunctionNotLoaded + cudaErrorInvalidResourceType + cudaErrorInvalidResourceConfiguration + cudaErrorUnknown + cudaErrorApiFailureBase + +cdef extern from 'driver_types.h': + cdef enum cudaChannelFormatKind: + cudaChannelFormatKindSigned + cudaChannelFormatKindUnsigned + cudaChannelFormatKindFloat + cudaChannelFormatKindNone + cudaChannelFormatKindNV12 + cudaChannelFormatKindUnsignedNormalized8X1 + cudaChannelFormatKindUnsignedNormalized8X2 + cudaChannelFormatKindUnsignedNormalized8X4 + cudaChannelFormatKindUnsignedNormalized16X1 + cudaChannelFormatKindUnsignedNormalized16X2 + cudaChannelFormatKindUnsignedNormalized16X4 + cudaChannelFormatKindSignedNormalized8X1 + cudaChannelFormatKindSignedNormalized8X2 + cudaChannelFormatKindSignedNormalized8X4 + cudaChannelFormatKindSignedNormalized16X1 + cudaChannelFormatKindSignedNormalized16X2 + cudaChannelFormatKindSignedNormalized16X4 + cudaChannelFormatKindUnsignedBlockCompressed1 + cudaChannelFormatKindUnsignedBlockCompressed1SRGB + cudaChannelFormatKindUnsignedBlockCompressed2 + cudaChannelFormatKindUnsignedBlockCompressed2SRGB + cudaChannelFormatKindUnsignedBlockCompressed3 + cudaChannelFormatKindUnsignedBlockCompressed3SRGB + cudaChannelFormatKindUnsignedBlockCompressed4 + cudaChannelFormatKindSignedBlockCompressed4 + cudaChannelFormatKindUnsignedBlockCompressed5 + cudaChannelFormatKindSignedBlockCompressed5 + cudaChannelFormatKindUnsignedBlockCompressed6H + cudaChannelFormatKindSignedBlockCompressed6H + cudaChannelFormatKindUnsignedBlockCompressed7 + cudaChannelFormatKindUnsignedBlockCompressed7SRGB + cudaChannelFormatKindUnsignedNormalized1010102 + +cdef extern from 'driver_types.h': + cdef enum cudaMemoryType: + cudaMemoryTypeUnregistered + cudaMemoryTypeHost + cudaMemoryTypeDevice + cudaMemoryTypeManaged + +cdef extern from 'driver_types.h': + cdef enum cudaMemcpyKind: + cudaMemcpyHostToHost + cudaMemcpyHostToDevice + cudaMemcpyDeviceToHost + cudaMemcpyDeviceToDevice + cudaMemcpyDefault + +cdef extern from 'driver_types.h': + cdef enum cudaAccessProperty: + cudaAccessPropertyNormal + cudaAccessPropertyStreaming + cudaAccessPropertyPersisting + +cdef extern from 'driver_types.h': + cdef enum cudaStreamCaptureStatus: + cudaStreamCaptureStatusNone + cudaStreamCaptureStatusActive + cudaStreamCaptureStatusInvalidated + +cdef extern from 'driver_types.h': + cdef enum cudaStreamCaptureMode: + cudaStreamCaptureModeGlobal + cudaStreamCaptureModeThreadLocal + cudaStreamCaptureModeRelaxed + +cdef extern from 'driver_types.h': + cdef enum cudaSynchronizationPolicy: + cudaSyncPolicyAuto + cudaSyncPolicySpin + cudaSyncPolicyYield + cudaSyncPolicyBlockingSync + +cdef extern from 'driver_types.h': + cdef enum cudaClusterSchedulingPolicy: + cudaClusterSchedulingPolicyDefault + cudaClusterSchedulingPolicySpread + cudaClusterSchedulingPolicyLoadBalancing + +cdef extern from 'driver_types.h': + cdef enum cudaStreamUpdateCaptureDependenciesFlags: + cudaStreamAddCaptureDependencies + cudaStreamSetCaptureDependencies + +cdef extern from 'driver_types.h': + cdef enum cudaUserObjectFlags: + cudaUserObjectNoDestructorSync + +cdef extern from 'driver_types.h': + cdef enum cudaUserObjectRetainFlags: + cudaGraphUserObjectMove + +cdef extern from 'driver_types.h': + cdef enum cudaGraphicsRegisterFlags: + cudaGraphicsRegisterFlagsNone + cudaGraphicsRegisterFlagsReadOnly + cudaGraphicsRegisterFlagsWriteDiscard + cudaGraphicsRegisterFlagsSurfaceLoadStore + cudaGraphicsRegisterFlagsTextureGather + +cdef extern from 'driver_types.h': + cdef enum cudaGraphicsMapFlags: + cudaGraphicsMapFlagsNone + cudaGraphicsMapFlagsReadOnly + cudaGraphicsMapFlagsWriteDiscard + +cdef extern from 'driver_types.h': + cdef enum cudaGraphicsCubeFace: + cudaGraphicsCubeFacePositiveX + cudaGraphicsCubeFaceNegativeX + cudaGraphicsCubeFacePositiveY + cudaGraphicsCubeFaceNegativeY + cudaGraphicsCubeFacePositiveZ + cudaGraphicsCubeFaceNegativeZ + +cdef extern from 'driver_types.h': + cdef enum cudaResourceType: + cudaResourceTypeArray + cudaResourceTypeMipmappedArray + cudaResourceTypeLinear + cudaResourceTypePitch2D + +cdef extern from 'driver_types.h': + cdef enum cudaResourceViewFormat: + cudaResViewFormatNone + cudaResViewFormatUnsignedChar1 + cudaResViewFormatUnsignedChar2 + cudaResViewFormatUnsignedChar4 + cudaResViewFormatSignedChar1 + cudaResViewFormatSignedChar2 + cudaResViewFormatSignedChar4 + cudaResViewFormatUnsignedShort1 + cudaResViewFormatUnsignedShort2 + cudaResViewFormatUnsignedShort4 + cudaResViewFormatSignedShort1 + cudaResViewFormatSignedShort2 + cudaResViewFormatSignedShort4 + cudaResViewFormatUnsignedInt1 + cudaResViewFormatUnsignedInt2 + cudaResViewFormatUnsignedInt4 + cudaResViewFormatSignedInt1 + cudaResViewFormatSignedInt2 + cudaResViewFormatSignedInt4 + cudaResViewFormatHalf1 + cudaResViewFormatHalf2 + cudaResViewFormatHalf4 + cudaResViewFormatFloat1 + cudaResViewFormatFloat2 + cudaResViewFormatFloat4 + cudaResViewFormatUnsignedBlockCompressed1 + cudaResViewFormatUnsignedBlockCompressed2 + cudaResViewFormatUnsignedBlockCompressed3 + cudaResViewFormatUnsignedBlockCompressed4 + cudaResViewFormatSignedBlockCompressed4 + cudaResViewFormatUnsignedBlockCompressed5 + cudaResViewFormatSignedBlockCompressed5 + cudaResViewFormatUnsignedBlockCompressed6H + cudaResViewFormatSignedBlockCompressed6H + cudaResViewFormatUnsignedBlockCompressed7 + +cdef extern from 'driver_types.h': + cdef enum cudaFuncAttribute: + cudaFuncAttributeMaxDynamicSharedMemorySize + cudaFuncAttributePreferredSharedMemoryCarveout + cudaFuncAttributeClusterDimMustBeSet + cudaFuncAttributeRequiredClusterWidth + cudaFuncAttributeRequiredClusterHeight + cudaFuncAttributeRequiredClusterDepth + cudaFuncAttributeNonPortableClusterSizeAllowed + cudaFuncAttributeClusterSchedulingPolicyPreference + cudaFuncAttributeMax + +cdef extern from 'driver_types.h': + cdef enum cudaFuncCache: + cudaFuncCachePreferNone + cudaFuncCachePreferShared + cudaFuncCachePreferL1 + cudaFuncCachePreferEqual + +cdef extern from 'driver_types.h': + cdef enum cudaSharedMemConfig: + cudaSharedMemBankSizeDefault + cudaSharedMemBankSizeFourByte + cudaSharedMemBankSizeEightByte + +cdef extern from 'driver_types.h': + cdef enum cudaSharedCarveout: + cudaSharedmemCarveoutDefault + cudaSharedmemCarveoutMaxShared + cudaSharedmemCarveoutMaxL1 + +cdef extern from 'driver_types.h': + cdef enum cudaComputeMode: + cudaComputeModeDefault + cudaComputeModeExclusive + cudaComputeModeProhibited + cudaComputeModeExclusiveProcess + +cdef extern from 'driver_types.h': + cdef enum cudaLimit: + cudaLimitStackSize + cudaLimitPrintfFifoSize + cudaLimitMallocHeapSize + cudaLimitDevRuntimeSyncDepth + cudaLimitDevRuntimePendingLaunchCount + cudaLimitMaxL2FetchGranularity + cudaLimitPersistingL2CacheSize + +cdef extern from 'driver_types.h': + cdef enum cudaMemoryAdvise: + cudaMemAdviseSetReadMostly + cudaMemAdviseUnsetReadMostly + cudaMemAdviseSetPreferredLocation + cudaMemAdviseUnsetPreferredLocation + cudaMemAdviseSetAccessedBy + cudaMemAdviseUnsetAccessedBy + +cdef extern from 'driver_types.h': + cdef enum cudaMemRangeAttribute: + cudaMemRangeAttributeReadMostly + cudaMemRangeAttributePreferredLocation + cudaMemRangeAttributeAccessedBy + cudaMemRangeAttributeLastPrefetchLocation + cudaMemRangeAttributePreferredLocationType + cudaMemRangeAttributePreferredLocationId + cudaMemRangeAttributeLastPrefetchLocationType + cudaMemRangeAttributeLastPrefetchLocationId + +cdef extern from 'driver_types.h': + cdef enum cudaFlushGPUDirectRDMAWritesOptions: + cudaFlushGPUDirectRDMAWritesOptionHost + cudaFlushGPUDirectRDMAWritesOptionMemOps + +cdef extern from 'driver_types.h': + cdef enum cudaGPUDirectRDMAWritesOrdering: + cudaGPUDirectRDMAWritesOrderingNone + cudaGPUDirectRDMAWritesOrderingOwner + cudaGPUDirectRDMAWritesOrderingAllDevices + +cdef extern from 'driver_types.h': + cdef enum cudaFlushGPUDirectRDMAWritesScope: + cudaFlushGPUDirectRDMAWritesToOwner + cudaFlushGPUDirectRDMAWritesToAllDevices + +cdef extern from 'driver_types.h': + cdef enum cudaFlushGPUDirectRDMAWritesTarget: + cudaFlushGPUDirectRDMAWritesTargetCurrentDevice + +cdef extern from 'driver_types.h': + cdef enum cudaDeviceAttr: + cudaDevAttrMaxThreadsPerBlock + cudaDevAttrMaxBlockDimX + cudaDevAttrMaxBlockDimY + cudaDevAttrMaxBlockDimZ + cudaDevAttrMaxGridDimX + cudaDevAttrMaxGridDimY + cudaDevAttrMaxGridDimZ + cudaDevAttrMaxSharedMemoryPerBlock + cudaDevAttrTotalConstantMemory + cudaDevAttrWarpSize + cudaDevAttrMaxPitch + cudaDevAttrMaxRegistersPerBlock + cudaDevAttrClockRate + cudaDevAttrTextureAlignment + cudaDevAttrGpuOverlap + cudaDevAttrMultiProcessorCount + cudaDevAttrKernelExecTimeout + cudaDevAttrIntegrated + cudaDevAttrCanMapHostMemory + cudaDevAttrComputeMode + cudaDevAttrMaxTexture1DWidth + cudaDevAttrMaxTexture2DWidth + cudaDevAttrMaxTexture2DHeight + cudaDevAttrMaxTexture3DWidth + cudaDevAttrMaxTexture3DHeight + cudaDevAttrMaxTexture3DDepth + cudaDevAttrMaxTexture2DLayeredWidth + cudaDevAttrMaxTexture2DLayeredHeight + cudaDevAttrMaxTexture2DLayeredLayers + cudaDevAttrSurfaceAlignment + cudaDevAttrConcurrentKernels + cudaDevAttrEccEnabled + cudaDevAttrPciBusId + cudaDevAttrPciDeviceId + cudaDevAttrTccDriver + cudaDevAttrMemoryClockRate + cudaDevAttrGlobalMemoryBusWidth + cudaDevAttrL2CacheSize + cudaDevAttrMaxThreadsPerMultiProcessor + cudaDevAttrAsyncEngineCount + cudaDevAttrUnifiedAddressing + cudaDevAttrMaxTexture1DLayeredWidth + cudaDevAttrMaxTexture1DLayeredLayers + cudaDevAttrMaxTexture2DGatherWidth + cudaDevAttrMaxTexture2DGatherHeight + cudaDevAttrMaxTexture3DWidthAlt + cudaDevAttrMaxTexture3DHeightAlt + cudaDevAttrMaxTexture3DDepthAlt + cudaDevAttrPciDomainId + cudaDevAttrTexturePitchAlignment + cudaDevAttrMaxTextureCubemapWidth + cudaDevAttrMaxTextureCubemapLayeredWidth + cudaDevAttrMaxTextureCubemapLayeredLayers + cudaDevAttrMaxSurface1DWidth + cudaDevAttrMaxSurface2DWidth + cudaDevAttrMaxSurface2DHeight + cudaDevAttrMaxSurface3DWidth + cudaDevAttrMaxSurface3DHeight + cudaDevAttrMaxSurface3DDepth + cudaDevAttrMaxSurface1DLayeredWidth + cudaDevAttrMaxSurface1DLayeredLayers + cudaDevAttrMaxSurface2DLayeredWidth + cudaDevAttrMaxSurface2DLayeredHeight + cudaDevAttrMaxSurface2DLayeredLayers + cudaDevAttrMaxSurfaceCubemapWidth + cudaDevAttrMaxSurfaceCubemapLayeredWidth + cudaDevAttrMaxSurfaceCubemapLayeredLayers + cudaDevAttrMaxTexture1DLinearWidth + cudaDevAttrMaxTexture2DLinearWidth + cudaDevAttrMaxTexture2DLinearHeight + cudaDevAttrMaxTexture2DLinearPitch + cudaDevAttrMaxTexture2DMipmappedWidth + cudaDevAttrMaxTexture2DMipmappedHeight + cudaDevAttrComputeCapabilityMajor + cudaDevAttrComputeCapabilityMinor + cudaDevAttrMaxTexture1DMipmappedWidth + cudaDevAttrStreamPrioritiesSupported + cudaDevAttrGlobalL1CacheSupported + cudaDevAttrLocalL1CacheSupported + cudaDevAttrMaxSharedMemoryPerMultiprocessor + cudaDevAttrMaxRegistersPerMultiprocessor + cudaDevAttrManagedMemory + cudaDevAttrIsMultiGpuBoard + cudaDevAttrMultiGpuBoardGroupID + cudaDevAttrHostNativeAtomicSupported + cudaDevAttrSingleToDoublePrecisionPerfRatio + cudaDevAttrPageableMemoryAccess + cudaDevAttrConcurrentManagedAccess + cudaDevAttrComputePreemptionSupported + cudaDevAttrCanUseHostPointerForRegisteredMem + cudaDevAttrReserved92 + cudaDevAttrReserved93 + cudaDevAttrReserved94 + cudaDevAttrCooperativeLaunch + cudaDevAttrCooperativeMultiDeviceLaunch + cudaDevAttrMaxSharedMemoryPerBlockOptin + cudaDevAttrCanFlushRemoteWrites + cudaDevAttrHostRegisterSupported + cudaDevAttrPageableMemoryAccessUsesHostPageTables + cudaDevAttrDirectManagedMemAccessFromHost + cudaDevAttrMaxBlocksPerMultiprocessor + cudaDevAttrMaxPersistingL2CacheSize + cudaDevAttrMaxAccessPolicyWindowSize + cudaDevAttrReservedSharedMemoryPerBlock + cudaDevAttrSparseCudaArraySupported + cudaDevAttrHostRegisterReadOnlySupported + cudaDevAttrTimelineSemaphoreInteropSupported + cudaDevAttrMaxTimelineSemaphoreInteropSupported + cudaDevAttrMemoryPoolsSupported + cudaDevAttrGPUDirectRDMASupported + cudaDevAttrGPUDirectRDMAFlushWritesOptions + cudaDevAttrGPUDirectRDMAWritesOrdering + cudaDevAttrMemoryPoolSupportedHandleTypes + cudaDevAttrClusterLaunch + cudaDevAttrDeferredMappingCudaArraySupported + cudaDevAttrReserved122 + cudaDevAttrReserved123 + cudaDevAttrReserved124 + cudaDevAttrIpcEventSupport + cudaDevAttrMemSyncDomainCount + cudaDevAttrReserved127 + cudaDevAttrReserved128 + cudaDevAttrReserved129 + cudaDevAttrNumaConfig + cudaDevAttrNumaId + cudaDevAttrReserved132 + cudaDevAttrMpsEnabled + cudaDevAttrHostNumaId + cudaDevAttrD3D12CigSupported + cudaDevAttrVulkanCigSupported + cudaDevAttrGpuPciDeviceId + cudaDevAttrGpuPciSubsystemId + cudaDevAttrReserved141 + cudaDevAttrHostNumaMemoryPoolsSupported + cudaDevAttrHostNumaMultinodeIpcSupported + cudaDevAttrMax + +cdef extern from 'driver_types.h': + cdef enum cudaMemPoolAttr: + cudaMemPoolReuseFollowEventDependencies + cudaMemPoolReuseAllowOpportunistic + cudaMemPoolReuseAllowInternalDependencies + cudaMemPoolAttrReleaseThreshold + cudaMemPoolAttrReservedMemCurrent + cudaMemPoolAttrReservedMemHigh + cudaMemPoolAttrUsedMemCurrent + cudaMemPoolAttrUsedMemHigh + +cdef extern from 'driver_types.h': + cdef enum cudaMemLocationType: + cudaMemLocationTypeInvalid + cudaMemLocationTypeDevice + cudaMemLocationTypeHost + cudaMemLocationTypeHostNuma + cudaMemLocationTypeHostNumaCurrent + +cdef extern from 'driver_types.h': + cdef enum cudaMemAccessFlags: + cudaMemAccessFlagsProtNone + cudaMemAccessFlagsProtRead + cudaMemAccessFlagsProtReadWrite + +cdef extern from 'driver_types.h': + cdef enum cudaMemAllocationType: + cudaMemAllocationTypeInvalid + cudaMemAllocationTypePinned + cudaMemAllocationTypeMax + +cdef extern from 'driver_types.h': + cdef enum cudaMemAllocationHandleType: + cudaMemHandleTypeNone + cudaMemHandleTypePosixFileDescriptor + cudaMemHandleTypeWin32 + cudaMemHandleTypeWin32Kmt + cudaMemHandleTypeFabric + +cdef extern from 'driver_types.h': + cdef enum cudaGraphMemAttributeType: + cudaGraphMemAttrUsedMemCurrent + cudaGraphMemAttrUsedMemHigh + cudaGraphMemAttrReservedMemCurrent + cudaGraphMemAttrReservedMemHigh + +cdef extern from 'driver_types.h': + cdef enum cudaMemcpyFlags: + cudaMemcpyFlagDefault + cudaMemcpyFlagPreferOverlapWithCompute + +cdef extern from 'driver_types.h': + cdef enum cudaMemcpySrcAccessOrder: + cudaMemcpySrcAccessOrderInvalid + cudaMemcpySrcAccessOrderStream + cudaMemcpySrcAccessOrderDuringApiCall + cudaMemcpySrcAccessOrderAny + cudaMemcpySrcAccessOrderMax + +cdef extern from 'driver_types.h': + cdef enum cudaMemcpy3DOperandType: + cudaMemcpyOperandTypePointer + cudaMemcpyOperandTypeArray + cudaMemcpyOperandTypeMax + +cdef extern from 'driver_types.h': + cdef enum cudaDeviceP2PAttr: + cudaDevP2PAttrPerformanceRank + cudaDevP2PAttrAccessSupported + cudaDevP2PAttrNativeAtomicSupported + cudaDevP2PAttrCudaArrayAccessSupported + +cdef extern from 'driver_types.h': + cdef enum cudaExternalMemoryHandleType: + cudaExternalMemoryHandleTypeOpaqueFd + cudaExternalMemoryHandleTypeOpaqueWin32 + cudaExternalMemoryHandleTypeOpaqueWin32Kmt + cudaExternalMemoryHandleTypeD3D12Heap + cudaExternalMemoryHandleTypeD3D12Resource + cudaExternalMemoryHandleTypeD3D11Resource + cudaExternalMemoryHandleTypeD3D11ResourceKmt + cudaExternalMemoryHandleTypeNvSciBuf + +cdef extern from 'driver_types.h': + cdef enum cudaExternalSemaphoreHandleType: + cudaExternalSemaphoreHandleTypeOpaqueFd + cudaExternalSemaphoreHandleTypeOpaqueWin32 + cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt + cudaExternalSemaphoreHandleTypeD3D12Fence + cudaExternalSemaphoreHandleTypeD3D11Fence + cudaExternalSemaphoreHandleTypeNvSciSync + cudaExternalSemaphoreHandleTypeKeyedMutex + cudaExternalSemaphoreHandleTypeKeyedMutexKmt + cudaExternalSemaphoreHandleTypeTimelineSemaphoreFd + cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32 + +cdef extern from 'driver_types.h': + ctypedef cudaError cudaError_t + +cdef extern from 'driver_types.h': + cdef enum cudaJitOption: + cudaJitMaxRegisters + cudaJitThreadsPerBlock + cudaJitWallTime + cudaJitInfoLogBuffer + cudaJitInfoLogBufferSizeBytes + cudaJitErrorLogBuffer + cudaJitErrorLogBufferSizeBytes + cudaJitOptimizationLevel + cudaJitFallbackStrategy + cudaJitGenerateDebugInfo + cudaJitLogVerbose + cudaJitGenerateLineInfo + cudaJitCacheMode + cudaJitPositionIndependentCode + cudaJitMinCtaPerSm + cudaJitMaxThreadsPerBlock + cudaJitOverrideDirectiveValues + +cdef extern from 'driver_types.h': + cdef enum cudaLibraryOption: + cudaLibraryHostUniversalFunctionAndDataTable + cudaLibraryBinaryIsPreserved + +cdef extern from 'driver_types.h': + cdef enum cudaJit_CacheMode: + cudaJitCacheOptionNone + cudaJitCacheOptionCG + cudaJitCacheOptionCA + +cdef extern from 'driver_types.h': + cdef enum cudaJit_Fallback: + cudaPreferPtx + cudaPreferBinary + +cdef extern from 'driver_types.h': + cdef enum cudaCGScope: + cudaCGScopeInvalid + cudaCGScopeGrid + cudaCGScopeMultiGrid + +cdef extern from 'driver_types.h': + cdef enum cudaGraphConditionalHandleFlags: + cudaGraphCondAssignDefault + +cdef extern from 'driver_types.h': + cdef enum cudaGraphConditionalNodeType: + cudaGraphCondTypeIf + cudaGraphCondTypeWhile + cudaGraphCondTypeSwitch + +cdef extern from 'driver_types.h': + cdef enum cudaGraphNodeType: + cudaGraphNodeTypeKernel + cudaGraphNodeTypeMemcpy + cudaGraphNodeTypeMemset + cudaGraphNodeTypeHost + cudaGraphNodeTypeGraph + cudaGraphNodeTypeEmpty + cudaGraphNodeTypeWaitEvent + cudaGraphNodeTypeEventRecord + cudaGraphNodeTypeExtSemaphoreSignal + cudaGraphNodeTypeExtSemaphoreWait + cudaGraphNodeTypeMemAlloc + cudaGraphNodeTypeMemFree + cudaGraphNodeTypeConditional + cudaGraphNodeTypeCount + +cdef extern from 'driver_types.h': + cdef enum cudaGraphChildGraphNodeOwnership: + cudaGraphChildGraphOwnershipClone + cudaGraphChildGraphOwnershipMove + +cdef extern from 'driver_types.h': + cdef enum cudaGraphDependencyType_enum: + cudaGraphDependencyTypeDefault + cudaGraphDependencyTypeProgrammatic + ctypedef cudaGraphDependencyType_enum cudaGraphDependencyType + +cdef extern from 'driver_types.h': + cdef enum cudaGraphExecUpdateResult: + cudaGraphExecUpdateSuccess + cudaGraphExecUpdateError + cudaGraphExecUpdateErrorTopologyChanged + cudaGraphExecUpdateErrorNodeTypeChanged + cudaGraphExecUpdateErrorFunctionChanged + cudaGraphExecUpdateErrorParametersChanged + cudaGraphExecUpdateErrorNotSupported + cudaGraphExecUpdateErrorUnsupportedFunctionChange + cudaGraphExecUpdateErrorAttributesChanged + +cdef extern from 'driver_types.h': + cdef enum cudaGraphInstantiateResult: + cudaGraphInstantiateSuccess + cudaGraphInstantiateError + cudaGraphInstantiateInvalidStructure + cudaGraphInstantiateNodeOperationNotSupported + cudaGraphInstantiateMultipleDevicesNotSupported + cudaGraphInstantiateConditionalHandleUnused + +cdef extern from 'driver_types.h': + cdef enum cudaGraphKernelNodeField: + cudaGraphKernelNodeFieldInvalid + cudaGraphKernelNodeFieldGridDim + cudaGraphKernelNodeFieldParam + cudaGraphKernelNodeFieldEnabled + +cdef extern from 'driver_types.h': + cdef enum cudaGetDriverEntryPointFlags: + cudaEnableDefault + cudaEnableLegacyStream + cudaEnablePerThreadDefaultStream + +cdef extern from 'driver_types.h': + cdef enum cudaDriverEntryPointQueryResult: + cudaDriverEntryPointSuccess + cudaDriverEntryPointSymbolNotFound + cudaDriverEntryPointVersionNotSufficent + +cdef extern from 'driver_types.h': + cdef enum cudaGraphDebugDotFlags: + cudaGraphDebugDotFlagsVerbose + cudaGraphDebugDotFlagsKernelNodeParams + cudaGraphDebugDotFlagsMemcpyNodeParams + cudaGraphDebugDotFlagsMemsetNodeParams + cudaGraphDebugDotFlagsHostNodeParams + cudaGraphDebugDotFlagsEventNodeParams + cudaGraphDebugDotFlagsExtSemasSignalNodeParams + cudaGraphDebugDotFlagsExtSemasWaitNodeParams + cudaGraphDebugDotFlagsKernelNodeAttributes + cudaGraphDebugDotFlagsHandles + cudaGraphDebugDotFlagsConditionalNodeParams + +cdef extern from 'driver_types.h': + cdef enum cudaGraphInstantiateFlags: + cudaGraphInstantiateFlagAutoFreeOnLaunch + cudaGraphInstantiateFlagUpload + cudaGraphInstantiateFlagDeviceLaunch + cudaGraphInstantiateFlagUseNodePriority + +cdef extern from 'driver_types.h': + cdef enum cudaLaunchMemSyncDomain: + cudaLaunchMemSyncDomainDefault + cudaLaunchMemSyncDomainRemote + +cdef extern from 'driver_types.h': + cdef enum cudaLaunchAttributeID: + cudaLaunchAttributeIgnore + cudaLaunchAttributeAccessPolicyWindow + cudaLaunchAttributeCooperative + cudaLaunchAttributeSynchronizationPolicy + cudaLaunchAttributeClusterDimension + cudaLaunchAttributeClusterSchedulingPolicyPreference + cudaLaunchAttributeProgrammaticStreamSerialization + cudaLaunchAttributeProgrammaticEvent + cudaLaunchAttributePriority + cudaLaunchAttributeMemSyncDomainMap + cudaLaunchAttributeMemSyncDomain + cudaLaunchAttributePreferredClusterDimension + cudaLaunchAttributeLaunchCompletionEvent + cudaLaunchAttributeDeviceUpdatableKernelNode + cudaLaunchAttributePreferredSharedMemoryCarveout + +cdef extern from 'driver_types.h': + cdef enum cudaDeviceNumaConfig: + cudaDeviceNumaConfigNone + cudaDeviceNumaConfigNumaNode + +cdef extern from 'driver_types.h': + cdef enum cudaAsyncNotificationType_enum: + cudaAsyncNotificationTypeOverBudget + ctypedef cudaAsyncNotificationType_enum cudaAsyncNotificationType + +cdef extern from 'device_types.h': + cdef enum cudaRoundMode: + cudaRoundNearest + cudaRoundZero + cudaRoundPosInf + cudaRoundMinInf + +cdef extern from 'surface_types.h': + cdef enum cudaSurfaceBoundaryMode: + cudaBoundaryModeZero + cudaBoundaryModeClamp + cudaBoundaryModeTrap + +cdef extern from 'surface_types.h': + cdef enum cudaSurfaceFormatMode: + cudaFormatModeForced + cudaFormatModeAuto + +cdef extern from 'texture_types.h': + cdef enum cudaTextureAddressMode: + cudaAddressModeWrap + cudaAddressModeClamp + cudaAddressModeMirror + cudaAddressModeBorder + +cdef extern from 'texture_types.h': + cdef enum cudaTextureFilterMode: + cudaFilterModePoint + cudaFilterModeLinear + +cdef extern from 'texture_types.h': + cdef enum cudaTextureReadMode: + cudaReadModeElementType + cudaReadModeNormalizedFloat + +cdef extern from 'library_types.h': + cdef enum cudaDataType_t: + CUDA_R_16F + CUDA_C_16F + CUDA_R_16BF + CUDA_C_16BF + CUDA_R_32F + CUDA_C_32F + CUDA_R_64F + CUDA_C_64F + CUDA_R_4I + CUDA_C_4I + CUDA_R_4U + CUDA_C_4U + CUDA_R_8I + CUDA_C_8I + CUDA_R_8U + CUDA_C_8U + CUDA_R_16I + CUDA_C_16I + CUDA_R_16U + CUDA_C_16U + CUDA_R_32I + CUDA_C_32I + CUDA_R_32U + CUDA_C_32U + CUDA_R_64I + CUDA_C_64I + CUDA_R_64U + CUDA_C_64U + CUDA_R_8F_E4M3 + CUDA_R_8F_UE4M3 + CUDA_R_8F_E5M2 + CUDA_R_8F_UE8M0 + CUDA_R_6F_E2M3 + CUDA_R_6F_E3M2 + CUDA_R_4F_E2M1 + ctypedef cudaDataType_t cudaDataType + +cdef enum cudaEglFrameType_enum: + cudaEglFrameTypeArray = 0 + cudaEglFrameTypePitch = 1 +ctypedef cudaEglFrameType_enum cudaEglFrameType + +cdef enum cudaEglResourceLocationFlags_enum: + cudaEglResourceLocationSysmem = 0x00 + cudaEglResourceLocationVidmem = 0x01 +ctypedef cudaEglResourceLocationFlags_enum cudaEglResourceLocationFlags + +cdef enum cudaEglColorFormat_enum: + cudaEglColorFormatYUV420Planar = 0 + cudaEglColorFormatYUV420SemiPlanar = 1 + cudaEglColorFormatYUV422Planar = 2 + cudaEglColorFormatYUV422SemiPlanar = 3 + cudaEglColorFormatARGB = 6 + cudaEglColorFormatRGBA = 7 + cudaEglColorFormatL = 8 + cudaEglColorFormatR = 9 + cudaEglColorFormatYUV444Planar = 10 + cudaEglColorFormatYUV444SemiPlanar = 11 + cudaEglColorFormatYUYV422 = 12 + cudaEglColorFormatUYVY422 = 13 + cudaEglColorFormatABGR = 14 + cudaEglColorFormatBGRA = 15 + cudaEglColorFormatA = 16 + cudaEglColorFormatRG = 17 + cudaEglColorFormatAYUV = 18 + cudaEglColorFormatYVU444SemiPlanar = 19 + cudaEglColorFormatYVU422SemiPlanar = 20 + cudaEglColorFormatYVU420SemiPlanar = 21 + cudaEglColorFormatY10V10U10_444SemiPlanar = 22 + cudaEglColorFormatY10V10U10_420SemiPlanar = 23 + cudaEglColorFormatY12V12U12_444SemiPlanar = 24 + cudaEglColorFormatY12V12U12_420SemiPlanar = 25 + cudaEglColorFormatVYUY_ER = 26 + cudaEglColorFormatUYVY_ER = 27 + cudaEglColorFormatYUYV_ER = 28 + cudaEglColorFormatYVYU_ER = 29 + cudaEglColorFormatYUVA_ER = 31 + cudaEglColorFormatAYUV_ER = 32 + cudaEglColorFormatYUV444Planar_ER = 33 + cudaEglColorFormatYUV422Planar_ER = 34 + cudaEglColorFormatYUV420Planar_ER = 35 + cudaEglColorFormatYUV444SemiPlanar_ER = 36 + cudaEglColorFormatYUV422SemiPlanar_ER = 37 + cudaEglColorFormatYUV420SemiPlanar_ER = 38 + cudaEglColorFormatYVU444Planar_ER = 39 + cudaEglColorFormatYVU422Planar_ER = 40 + cudaEglColorFormatYVU420Planar_ER = 41 + cudaEglColorFormatYVU444SemiPlanar_ER = 42 + cudaEglColorFormatYVU422SemiPlanar_ER = 43 + cudaEglColorFormatYVU420SemiPlanar_ER = 44 + cudaEglColorFormatBayerRGGB = 45 + cudaEglColorFormatBayerBGGR = 46 + cudaEglColorFormatBayerGRBG = 47 + cudaEglColorFormatBayerGBRG = 48 + cudaEglColorFormatBayer10RGGB = 49 + cudaEglColorFormatBayer10BGGR = 50 + cudaEglColorFormatBayer10GRBG = 51 + cudaEglColorFormatBayer10GBRG = 52 + cudaEglColorFormatBayer12RGGB = 53 + cudaEglColorFormatBayer12BGGR = 54 + cudaEglColorFormatBayer12GRBG = 55 + cudaEglColorFormatBayer12GBRG = 56 + cudaEglColorFormatBayer14RGGB = 57 + cudaEglColorFormatBayer14BGGR = 58 + cudaEglColorFormatBayer14GRBG = 59 + cudaEglColorFormatBayer14GBRG = 60 + cudaEglColorFormatBayer20RGGB = 61 + cudaEglColorFormatBayer20BGGR = 62 + cudaEglColorFormatBayer20GRBG = 63 + cudaEglColorFormatBayer20GBRG = 64 + cudaEglColorFormatYVU444Planar = 65 + cudaEglColorFormatYVU422Planar = 66 + cudaEglColorFormatYVU420Planar = 67 + cudaEglColorFormatBayerIspRGGB = 68 + cudaEglColorFormatBayerIspBGGR = 69 + cudaEglColorFormatBayerIspGRBG = 70 + cudaEglColorFormatBayerIspGBRG = 71 + cudaEglColorFormatBayerBCCR = 72 + cudaEglColorFormatBayerRCCB = 73 + cudaEglColorFormatBayerCRBC = 74 + cudaEglColorFormatBayerCBRC = 75 + cudaEglColorFormatBayer10CCCC = 76 + cudaEglColorFormatBayer12BCCR = 77 + cudaEglColorFormatBayer12RCCB = 78 + cudaEglColorFormatBayer12CRBC = 79 + cudaEglColorFormatBayer12CBRC = 80 + cudaEglColorFormatBayer12CCCC = 81 + cudaEglColorFormatY = 82 + cudaEglColorFormatYUV420SemiPlanar_2020 = 83 + cudaEglColorFormatYVU420SemiPlanar_2020 = 84 + cudaEglColorFormatYUV420Planar_2020 = 85 + cudaEglColorFormatYVU420Planar_2020 = 86 + cudaEglColorFormatYUV420SemiPlanar_709 = 87 + cudaEglColorFormatYVU420SemiPlanar_709 = 88 + cudaEglColorFormatYUV420Planar_709 = 89 + cudaEglColorFormatYVU420Planar_709 = 90 + cudaEglColorFormatY10V10U10_420SemiPlanar_709 = 91 + cudaEglColorFormatY10V10U10_420SemiPlanar_2020 = 92 + cudaEglColorFormatY10V10U10_422SemiPlanar_2020 = 93 + cudaEglColorFormatY10V10U10_422SemiPlanar = 94 + cudaEglColorFormatY10V10U10_422SemiPlanar_709 = 95 + cudaEglColorFormatY_ER = 96 + cudaEglColorFormatY_709_ER = 97 + cudaEglColorFormatY10_ER = 98 + cudaEglColorFormatY10_709_ER = 99 + cudaEglColorFormatY12_ER = 100 + cudaEglColorFormatY12_709_ER = 101 + cudaEglColorFormatYUVA = 102 + cudaEglColorFormatYVYU = 104 + cudaEglColorFormatVYUY = 105 + cudaEglColorFormatY10V10U10_420SemiPlanar_ER = 106 + cudaEglColorFormatY10V10U10_420SemiPlanar_709_ER = 107 + cudaEglColorFormatY10V10U10_444SemiPlanar_ER = 108 + cudaEglColorFormatY10V10U10_444SemiPlanar_709_ER = 109 + cudaEglColorFormatY12V12U12_420SemiPlanar_ER = 110 + cudaEglColorFormatY12V12U12_420SemiPlanar_709_ER = 111 + cudaEglColorFormatY12V12U12_444SemiPlanar_ER = 112 + cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER = 113 + cudaEglColorFormatUYVY709 = 114 + cudaEglColorFormatUYVY709_ER = 115 + cudaEglColorFormatUYVY2020 = 116 +ctypedef cudaEglColorFormat_enum cudaEglColorFormat + +cdef enum cudaGLDeviceList: + cudaGLDeviceListAll = 1 + cudaGLDeviceListCurrentFrame = 2 + cudaGLDeviceListNextFrame = 3 + +cdef enum cudaGLMapFlags: + cudaGLMapFlagsNone = 0 + cudaGLMapFlagsReadOnly = 1 + cudaGLMapFlagsWriteDiscard = 2 +cdef enum: _CUDAERROR_T_INTERNAL_LOADING_ERROR = cudaError_t.cudaErrorCallRequiresNewerDriver + + +# TYPES +cdef extern from 'driver_types.h': + ctypedef unsigned long long cudaGraphConditionalHandle 'cudaGraphConditionalHandle' + + +cdef extern from 'surface_types.h': + ctypedef unsigned long long cudaSurfaceObject_t 'cudaSurfaceObject_t' + + +cdef extern from 'texture_types.h': + ctypedef unsigned long long cudaTextureObject_t 'cudaTextureObject_t' + + +cdef extern from 'driver_types.h': + ctypedef struct cudaArray: + pass + ctypedef cudaArray* cudaArray_t 'cudaArray_t' + + +cdef extern from 'driver_types.h': + ctypedef struct cudaArray: + pass + ctypedef cudaArray* cudaArray_const_t 'cudaArray_const_t' + + +cdef extern from 'driver_types.h': + ctypedef struct cudaMipmappedArray: + pass + ctypedef cudaMipmappedArray* cudaMipmappedArray_t 'cudaMipmappedArray_t' + + +cdef extern from 'driver_types.h': + ctypedef struct cudaMipmappedArray: + pass + ctypedef cudaMipmappedArray* cudaMipmappedArray_const_t 'cudaMipmappedArray_const_t' + + +cdef extern from 'driver_types.h': + ctypedef struct cudaAsyncCallbackEntry: + pass + ctypedef cudaAsyncCallbackEntry* cudaAsyncCallbackHandle_t 'cudaAsyncCallbackHandle_t' + + +cdef extern from 'driver_types.h': + cdef struct cudaChannelFormatDesc: + int x + int y + int z + int w + cudaChannelFormatKind f + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod0 "std::remove_all_extentstileExtent)>::type": + unsigned int width + unsigned int height + unsigned int depth + +cdef extern from 'driver_types.h': + cdef struct cudaArrayMemoryRequirements: + size_t size + size_t alignment + unsigned int reserved[4] + +cdef extern from 'driver_types.h': + cdef struct cudaPitchedPtr: + void* ptr + size_t pitch + size_t xsize + size_t ysize + +cdef extern from 'driver_types.h': + cdef struct cudaExtent: + size_t width + size_t height + size_t depth + +cdef extern from 'driver_types.h': + cdef struct cudaPos: + size_t x + size_t y + size_t z + +cdef extern from 'driver_types.h': + cdef struct cudaMemsetParams: + void* dst + size_t pitch + unsigned int value + unsigned int elementSize + size_t width + size_t height + +cdef extern from 'driver_types.h': + cdef struct cudaMemsetParamsV2: + void* dst + size_t pitch + unsigned int value + unsigned int elementSize + size_t width + size_t height + +cdef extern from 'driver_types.h': + cdef struct cudaAccessPolicyWindow: + void* base_ptr + size_t num_bytes + float hitRatio + cudaAccessProperty hitProp + cudaAccessProperty missProp + +cdef extern from 'driver_types.h': + ctypedef void (*cudaHostFn_t 'cudaHostFn_t')( + void* userData + ) + + +cdef extern from 'driver_types.h': + cdef struct cudaResourceViewDesc: + cudaResourceViewFormat format + size_t width + size_t height + size_t depth + unsigned int firstMipmapLevel + unsigned int lastMipmapLevel + unsigned int firstLayer + unsigned int lastLayer + +cdef extern from 'driver_types.h': + cdef struct cudaPointerAttributes: + cudaMemoryType type + int device + void* devicePointer + void* hostPointer + +cdef extern from 'driver_types.h': + cdef struct cudaFuncAttributes: + size_t sharedSizeBytes + size_t constSizeBytes + size_t localSizeBytes + int maxThreadsPerBlock + int numRegs + int ptxVersion + int binaryVersion + int cacheModeCA + int maxDynamicSharedSizeBytes + int preferredShmemCarveout + int clusterDimMustBeSet + int requiredClusterWidth + int requiredClusterHeight + int requiredClusterDepth + int clusterSchedulingPolicyPreference + int nonPortableClusterSizeAllowed + int reserved[16] + +cdef extern from 'driver_types.h': + cdef struct cudaMemLocation: + cudaMemLocationType type + int id + +cdef extern from 'driver_types.h': + cdef struct cudaMemPoolPtrExportData: + unsigned char reserved[64] + +cdef extern from 'driver_types.h': + cdef struct cudaMemFreeNodeParams: + void* dptr + +cdef extern from 'driver_types.h': + cdef struct cudaOffset3D: + size_t x + size_t y + size_t z + +cdef extern from 'driver_types.h': + cdef struct cudaDeviceProp: + char name[256] + cudaUUID_t uuid + char luid[8] + unsigned int luidDeviceNodeMask + size_t totalGlobalMem + size_t sharedMemPerBlock + int regsPerBlock + int warpSize + size_t memPitch + int maxThreadsPerBlock + int maxThreadsDim[3] + int maxGridSize[3] + int clockRate + size_t totalConstMem + int major + int minor + size_t textureAlignment + size_t texturePitchAlignment + int deviceOverlap + int multiProcessorCount + int kernelExecTimeoutEnabled + int integrated + int canMapHostMemory + int computeMode + int maxTexture1D + int maxTexture1DMipmap + int maxTexture1DLinear + int maxTexture2D[2] + int maxTexture2DMipmap[2] + int maxTexture2DLinear[3] + int maxTexture2DGather[2] + int maxTexture3D[3] + int maxTexture3DAlt[3] + int maxTextureCubemap + int maxTexture1DLayered[2] + int maxTexture2DLayered[3] + int maxTextureCubemapLayered[2] + int maxSurface1D + int maxSurface2D[2] + int maxSurface3D[3] + int maxSurface1DLayered[2] + int maxSurface2DLayered[3] + int maxSurfaceCubemap + int maxSurfaceCubemapLayered[2] + size_t surfaceAlignment + int concurrentKernels + int ECCEnabled + int pciBusID + int pciDeviceID + int pciDomainID + int tccDriver + int asyncEngineCount + int unifiedAddressing + int memoryClockRate + int memoryBusWidth + int l2CacheSize + int persistingL2CacheMaxSize + int maxThreadsPerMultiProcessor + int streamPrioritiesSupported + int globalL1CacheSupported + int localL1CacheSupported + size_t sharedMemPerMultiprocessor + int regsPerMultiprocessor + int managedMemory + int isMultiGpuBoard + int multiGpuBoardGroupID + int hostNativeAtomicSupported + int singleToDoublePrecisionPerfRatio + int pageableMemoryAccess + int concurrentManagedAccess + int computePreemptionSupported + int canUseHostPointerForRegisteredMem + int cooperativeLaunch + int cooperativeMultiDeviceLaunch + size_t sharedMemPerBlockOptin + int pageableMemoryAccessUsesHostPageTables + int directManagedMemAccessFromHost + int maxBlocksPerMultiProcessor + int accessPolicyMaxWindowSize + size_t reservedSharedMemPerBlock + int hostRegisterSupported + int sparseCudaArraySupported + int hostRegisterReadOnlySupported + int timelineSemaphoreInteropSupported + int memoryPoolsSupported + int gpuDirectRDMASupported + unsigned int gpuDirectRDMAFlushWritesOptions + int gpuDirectRDMAWritesOrdering + unsigned int memoryPoolSupportedHandleTypes + int deferredMappingCudaArraySupported + int ipcEventSupported + int clusterLaunch + int unifiedFunctionPointers + int reserved[63] + +cdef extern from 'driver_types.h': + cdef struct cudaIpcEventHandle_st: + char reserved[64] + ctypedef cudaIpcEventHandle_st cudaIpcEventHandle_t + +cdef extern from 'driver_types.h': + cdef struct cudaIpcMemHandle_st: + char reserved[64] + ctypedef cudaIpcMemHandle_st cudaIpcMemHandle_t + +cdef extern from 'driver_types.h': + cdef struct cudaMemFabricHandle_st: + char reserved[64] + ctypedef cudaMemFabricHandle_st cudaMemFabricHandle_t + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod10 "std::remove_all_extentshandle.win32)>::type": + void* handle + void* name + +cdef extern from 'driver_types.h': + cdef struct cudaExternalMemoryBufferDesc: + unsigned long long offset + unsigned long long size + unsigned int flags + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod12 "std::remove_all_extentshandle.win32)>::type": + void* handle + void* name + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod14 "std::remove_all_extentsparams.fence)>::type": + unsigned long long value + +cdef extern from 'driver_types.h': + ctypedef union cuda_bindings_runtime__anon_pod15 "std::remove_all_extentsparams.nvSciSync)>::type": + void* fence + unsigned long long reserved + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod16 "std::remove_all_extentsparams.keyedMutex)>::type": + unsigned long long key + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod18 "std::remove_all_extentsparams.fence)>::type": + unsigned long long value + +cdef extern from 'driver_types.h': + ctypedef union cuda_bindings_runtime__anon_pod19 "std::remove_all_extentsparams.nvSciSync)>::type": + void* fence + unsigned long long reserved + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod20 "std::remove_all_extentsparams.keyedMutex)>::type": + unsigned long long key + unsigned int timeoutMs + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod22 "std::remove_all_extentsparams.fence)>::type": + unsigned long long value + +cdef extern from 'driver_types.h': + ctypedef union cuda_bindings_runtime__anon_pod23 "std::remove_all_extentsparams.nvSciSync)>::type": + void* fence + unsigned long long reserved + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod24 "std::remove_all_extentsparams.keyedMutex)>::type": + unsigned long long key + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod26 "std::remove_all_extentsparams.fence)>::type": + unsigned long long value + +cdef extern from 'driver_types.h': + ctypedef union cuda_bindings_runtime__anon_pod27 "std::remove_all_extentsparams.nvSciSync)>::type": + void* fence + unsigned long long reserved + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod28 "std::remove_all_extentsparams.keyedMutex)>::type": + unsigned long long key + unsigned int timeoutMs + +cdef extern from 'driver_types.h': + cdef struct cudaKernelNodeParams: + void* func + dim3 gridDim + dim3 blockDim + unsigned int sharedMemBytes + void** kernelParams + void** extra + +cdef extern from 'driver_types.h': + cdef struct cudaKernelNodeParamsV2: + void* func + dim3 gridDim + dim3 blockDim + unsigned int sharedMemBytes + void** kernelParams + void** extra + +cdef extern from 'driver_types.h': + cdef struct cudaGraphEdgeData_st: + unsigned char from_port + unsigned char to_port + unsigned char type + unsigned char reserved[5] + ctypedef cudaGraphEdgeData_st cudaGraphEdgeData + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod31 "std::remove_all_extentsupdateData.param)>::type": + void* pValue + size_t offset + size_t size + +cdef extern from 'driver_types.h': + cdef struct cudaLaunchMemSyncDomainMap_st: + unsigned char default_ + unsigned char remote + ctypedef cudaLaunchMemSyncDomainMap_st cudaLaunchMemSyncDomainMap + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod32 "std::remove_all_extentsclusterDim)>::type": + unsigned int x + unsigned int y + unsigned int z + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod34 "std::remove_all_extentspreferredClusterDim)>::type": + unsigned int x + unsigned int y + unsigned int z + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod38 "std::remove_all_extentsinfo.overBudget)>::type": + unsigned long long bytesOverBudget + +cdef extern from '': + cdef struct cudaTextureDesc: + cudaTextureAddressMode addressMode[3] + cudaTextureFilterMode filterMode + cudaTextureReadMode readMode + int sRGB + float borderColor[4] + int normalizedCoords + unsigned int maxAnisotropy + cudaTextureFilterMode mipmapFilterMode + float mipmapLevelBias + float minMipmapLevelClamp + float maxMipmapLevelClamp + int disableTrilinearOptimization + int seamlessCubemap + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod2 "std::remove_all_extentsres.array)>::type": + cudaArray_t array + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod3 "std::remove_all_extentsres.mipmap)>::type": + cudaMipmappedArray_t mipmap + +cdef extern from 'driver_types.h': + cdef struct cudaLaunchParams: + void* func + dim3 gridDim + dim3 blockDim + void** args + size_t sharedMem + cudaStream_t stream + +cdef extern from 'cuda_runtime_api.h': + ctypedef void (*cudaStreamCallback_t 'cudaStreamCallback_t')( + cudaStream_t stream, + cudaError_t status, + void* userData + ) + + +cdef extern from 'driver_types.h': + cdef struct cudaEventRecordNodeParams: + cudaEvent_t event + +cdef extern from 'driver_types.h': + cdef struct cudaEventWaitNodeParams: + cudaEvent_t event + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod33 "std::remove_all_extentsprogrammaticEvent)>::type": + cudaEvent_t event + int flags + int triggerAtBlockStart + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod35 "std::remove_all_extentslaunchCompletionEvent)>::type": + cudaEvent_t event + int flags + +cdef extern from 'driver_types.h': + cdef struct cudaConditionalNodeParams: + cudaGraphConditionalHandle handle + cudaGraphConditionalNodeType type + unsigned int size + cudaGraph_t* phGraph_out + +cdef extern from 'driver_types.h': + cdef struct cudaChildGraphNodeParams: + cudaGraph_t graph + cudaGraphChildGraphNodeOwnership ownership + +cdef extern from 'driver_types.h': + cdef struct cudaGraphInstantiateParams_st: + unsigned long long flags + cudaStream_t uploadStream + cudaGraphNode_t errNode_out + cudaGraphInstantiateResult result_out + ctypedef cudaGraphInstantiateParams_st cudaGraphInstantiateParams + +cdef extern from 'driver_types.h': + cdef struct cudaGraphExecUpdateResultInfo_st: + cudaGraphExecUpdateResult result + cudaGraphNode_t errorNode + cudaGraphNode_t errorFromNode + ctypedef cudaGraphExecUpdateResultInfo_st cudaGraphExecUpdateResultInfo + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod36 "std::remove_all_extentsdeviceUpdatableKernelNode)>::type": + int deviceUpdatable + cudaGraphDeviceNode_t devNode + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod4 "std::remove_all_extentsres.linear)>::type": + void* devPtr + cudaChannelFormatDesc desc + size_t sizeInBytes + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod5 "std::remove_all_extentsres.pitch2D)>::type": + void* devPtr + cudaChannelFormatDesc desc + size_t width + size_t height + size_t pitchInBytes + +cdef struct cudaEglPlaneDesc_st: + unsigned int width + unsigned int height + unsigned int depth + unsigned int pitch + unsigned int numChannels + cudaChannelFormatDesc channelDesc + unsigned int reserved[4] +ctypedef cudaEglPlaneDesc_st cudaEglPlaneDesc + +cdef extern from 'driver_types.h': + cdef struct cudaArraySparseProperties: + cuda_bindings_runtime__anon_pod0 tileExtent + unsigned int miptailFirstLevel + unsigned long long miptailSize + unsigned int flags + unsigned int reserved[4] + +cdef union cuda_bindings_runtime__anon_pod39: + cudaArray_t pArray[3] + cudaPitchedPtr pPitch[3] + +cdef extern from 'driver_types.h': + cdef struct cudaExternalMemoryMipmappedArrayDesc: + unsigned long long offset + cudaChannelFormatDesc formatDesc + cudaExtent extent + unsigned int flags + unsigned int numLevels + +cdef extern from 'driver_types.h': + cdef struct cudaMemcpy3DParms: + cudaArray_t srcArray + cudaPos srcPos + cudaPitchedPtr srcPtr + cudaArray_t dstArray + cudaPos dstPos + cudaPitchedPtr dstPtr + cudaExtent extent + cudaMemcpyKind kind + +cdef extern from 'driver_types.h': + cdef struct cudaMemcpy3DPeerParms: + cudaArray_t srcArray + cudaPos srcPos + cudaPitchedPtr srcPtr + int srcDevice + cudaArray_t dstArray + cudaPos dstPos + cudaPitchedPtr dstPtr + int dstDevice + cudaExtent extent + +cdef extern from 'driver_types.h': + cdef struct cudaHostNodeParams: + cudaHostFn_t fn + void* userData + +cdef extern from 'driver_types.h': + cdef struct cudaHostNodeParamsV2: + cudaHostFn_t fn + void* userData + +cdef extern from 'driver_types.h': + cdef struct cudaMemAccessDesc: + cudaMemLocation location + cudaMemAccessFlags flags + +cdef extern from 'driver_types.h': + cdef struct cudaMemPoolProps: + cudaMemAllocationType allocType + cudaMemAllocationHandleType handleTypes + cudaMemLocation location + void* win32SecurityAttributes + size_t maxSize + unsigned short usage + unsigned char reserved[54] + +cdef extern from 'driver_types.h': + cdef struct cudaMemcpyAttributes: + cudaMemcpySrcAccessOrder srcAccessOrder + cudaMemLocation srcLocHint + cudaMemLocation dstLocHint + unsigned int flags + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod7 "std::remove_all_extentsop.ptr)>::type": + void* ptr + size_t rowLength + size_t layerHeight + cudaMemLocation locHint + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod8 "std::remove_all_extentsop.array)>::type": + cudaArray_t array + cudaOffset3D offset + +cdef extern from 'driver_types.h': + ctypedef union cuda_bindings_runtime__anon_pod9 "std::remove_all_extentshandle)>::type": + int fd + cuda_bindings_runtime__anon_pod10 win32 + void* nvSciBufObject + +cdef extern from 'driver_types.h': + ctypedef union cuda_bindings_runtime__anon_pod11 "std::remove_all_extentshandle)>::type": + int fd + cuda_bindings_runtime__anon_pod12 win32 + void* nvSciSyncObj + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod13 "std::remove_all_extentsparams)>::type": + cuda_bindings_runtime__anon_pod14 fence + cuda_bindings_runtime__anon_pod15 nvSciSync + cuda_bindings_runtime__anon_pod16 keyedMutex + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod17 "std::remove_all_extentsparams)>::type": + cuda_bindings_runtime__anon_pod18 fence + cuda_bindings_runtime__anon_pod19 nvSciSync + cuda_bindings_runtime__anon_pod20 keyedMutex + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod21 "std::remove_all_extentsparams)>::type": + cuda_bindings_runtime__anon_pod22 fence + cuda_bindings_runtime__anon_pod23 nvSciSync + cuda_bindings_runtime__anon_pod24 keyedMutex + unsigned int reserved[12] + +cdef extern from 'driver_types.h': + ctypedef struct cuda_bindings_runtime__anon_pod25 "std::remove_all_extentsparams)>::type": + cuda_bindings_runtime__anon_pod26 fence + cuda_bindings_runtime__anon_pod27 nvSciSync + cuda_bindings_runtime__anon_pod28 keyedMutex + unsigned int reserved[10] + +cdef extern from 'driver_types.h': + ctypedef union cuda_bindings_runtime__anon_pod30 "std::remove_all_extentsupdateData)>::type": + dim3 gridDim + cuda_bindings_runtime__anon_pod31 param + unsigned int isEnabled + +cdef extern from 'driver_types.h': + ctypedef union cuda_bindings_runtime__anon_pod37 "std::remove_all_extentsinfo)>::type": + cuda_bindings_runtime__anon_pod38 overBudget + +cdef extern from 'driver_types.h': + cdef union cudaLaunchAttributeValue: + char pad[64] + cudaAccessPolicyWindow accessPolicyWindow + int cooperative + cudaSynchronizationPolicy syncPolicy + cuda_bindings_runtime__anon_pod32 clusterDim + cudaClusterSchedulingPolicy clusterSchedulingPolicyPreference + int programmaticStreamSerializationAllowed + cuda_bindings_runtime__anon_pod33 programmaticEvent + int priority + cudaLaunchMemSyncDomainMap memSyncDomainMap + cudaLaunchMemSyncDomain memSyncDomain + cuda_bindings_runtime__anon_pod34 preferredClusterDim + cuda_bindings_runtime__anon_pod35 launchCompletionEvent + cuda_bindings_runtime__anon_pod36 deviceUpdatableKernelNode + unsigned int sharedMemCarveout + +cdef extern from 'driver_types.h': + ctypedef union cuda_bindings_runtime__anon_pod1 "std::remove_all_extentsres)>::type": + cuda_bindings_runtime__anon_pod2 array + cuda_bindings_runtime__anon_pod3 mipmap + cuda_bindings_runtime__anon_pod4 linear + cuda_bindings_runtime__anon_pod5 pitch2D + +cdef struct cudaEglFrame_st: + cuda_bindings_runtime__anon_pod39 frame + cudaEglPlaneDesc planeDesc[3] + unsigned int planeCount + cudaEglFrameType frameType + cudaEglColorFormat eglColorFormat +ctypedef cudaEglFrame_st cudaEglFrame + +cdef extern from 'driver_types.h': + cdef struct cudaMemcpyNodeParams: + int flags + int reserved[3] + cudaMemcpy3DParms copyParams + +cdef extern from 'driver_types.h': + cdef struct cudaMemAllocNodeParams: + cudaMemPoolProps poolProps + cudaMemAccessDesc* accessDescs + size_t accessDescCount + size_t bytesize + void* dptr + +cdef extern from 'driver_types.h': + cdef struct cudaMemAllocNodeParamsV2: + cudaMemPoolProps poolProps + cudaMemAccessDesc* accessDescs + size_t accessDescCount + size_t bytesize + void* dptr + +cdef extern from 'driver_types.h': + ctypedef union cuda_bindings_runtime__anon_pod6 "std::remove_all_extentsop)>::type": + cuda_bindings_runtime__anon_pod7 ptr + cuda_bindings_runtime__anon_pod8 array + +cdef extern from 'driver_types.h': + cdef struct cudaExternalMemoryHandleDesc: + cudaExternalMemoryHandleType type + cuda_bindings_runtime__anon_pod9 handle + unsigned long long size + unsigned int flags + +cdef extern from 'driver_types.h': + cdef struct cudaExternalSemaphoreHandleDesc: + cudaExternalSemaphoreHandleType type + cuda_bindings_runtime__anon_pod11 handle + unsigned int flags + +cdef extern from 'driver_types.h': + cdef struct cudaExternalSemaphoreSignalParams_v1: + cuda_bindings_runtime__anon_pod13 params + unsigned int flags + +cdef extern from 'driver_types.h': + cdef struct cudaExternalSemaphoreWaitParams_v1: + cuda_bindings_runtime__anon_pod17 params + unsigned int flags + +cdef extern from 'driver_types.h': + cdef struct cudaExternalSemaphoreSignalParams: + cuda_bindings_runtime__anon_pod21 params + unsigned int flags + unsigned int reserved[16] + +cdef extern from 'driver_types.h': + cdef struct cudaExternalSemaphoreWaitParams: + cuda_bindings_runtime__anon_pod25 params + unsigned int flags + unsigned int reserved[16] + +cdef extern from 'driver_types.h': + cdef struct cudaGraphKernelNodeUpdate: + cudaGraphDeviceNode_t node + cudaGraphKernelNodeField field + cuda_bindings_runtime__anon_pod30 updateData + +cdef extern from 'driver_types.h': + cdef struct cudaAsyncNotificationInfo: + cudaAsyncNotificationType type + cuda_bindings_runtime__anon_pod37 info + ctypedef cudaAsyncNotificationInfo cudaAsyncNotificationInfo_t + +cdef extern from 'driver_types.h': + cdef struct cudaResourceDesc: + cudaResourceType resType + cuda_bindings_runtime__anon_pod1 res + +cdef extern from 'driver_types.h': + cdef struct cudaMemcpy3DOperand: + cudaMemcpy3DOperandType type + cuda_bindings_runtime__anon_pod6 op + +cdef extern from 'driver_types.h': + cdef struct cudaExternalSemaphoreSignalNodeParams: + cudaExternalSemaphore_t* extSemArray + cudaExternalSemaphoreSignalParams* paramsArray + unsigned int numExtSems + +cdef extern from 'driver_types.h': + cdef struct cudaExternalSemaphoreSignalNodeParamsV2: + cudaExternalSemaphore_t* extSemArray + cudaExternalSemaphoreSignalParams* paramsArray + unsigned int numExtSems + +cdef extern from 'driver_types.h': + cdef struct cudaExternalSemaphoreWaitNodeParams: + cudaExternalSemaphore_t* extSemArray + cudaExternalSemaphoreWaitParams* paramsArray + unsigned int numExtSems + +cdef extern from 'driver_types.h': + cdef struct cudaExternalSemaphoreWaitNodeParamsV2: + cudaExternalSemaphore_t* extSemArray + cudaExternalSemaphoreWaitParams* paramsArray + unsigned int numExtSems + +cdef extern from 'driver_types.h': + cdef struct cudaMemcpy3DBatchOp: + cudaMemcpy3DOperand src + cudaMemcpy3DOperand dst + cudaExtent extent + cudaMemcpySrcAccessOrder srcAccessOrder + unsigned int flags + +cdef extern from 'driver_types.h': + cdef struct cudaGraphNodeParams: + cudaGraphNodeType type + int reserved0[3] + long long reserved1[29] + cudaKernelNodeParamsV2 kernel + cudaMemcpyNodeParams memcpy + cudaMemsetParamsV2 memset + cudaHostNodeParamsV2 host + cudaChildGraphNodeParams graph + cudaEventWaitNodeParams eventWait + cudaEventRecordNodeParams eventRecord + cudaExternalSemaphoreSignalNodeParamsV2 extSemSignal + cudaExternalSemaphoreWaitNodeParamsV2 extSemWait + cudaMemAllocNodeParamsV2 alloc + cudaMemFreeNodeParams free + cudaConditionalNodeParams conditional + long long reserved2 + +cdef extern from 'driver_types.h': + # cudaLaunchAttribute_st is SKIPped (sizeof-based array dimension in pad field). + # Declared here (after the enum and type sections) so that cudaLaunchAttributeID and + # cudaLaunchAttributeValue are already in scope — Cython requires forward types to + # be visible at the point of use even inside cdef extern from blocks. + # Field types must match the legacy_cython_gen ABI baseline for __pyx_capi__ compat. + ctypedef struct cudaLaunchAttribute_st 'cudaLaunchAttribute_st': + cudaLaunchAttributeID id + cudaLaunchAttributeValue val + +cdef extern from 'driver_types.h': + ctypedef cudaLaunchAttribute_st cudaLaunchAttribute 'cudaLaunchAttribute' + +# cudaLaunchConfig_st references cudaLaunchAttribute* so it must follow the above. +# Declared here rather than auto-generated (which would land in type_decls, before +# cudaLaunchAttribute) to satisfy Cython's forward-declaration requirement. +cdef extern from '': + cdef struct cudaLaunchConfig_st: + dim3 gridDim + dim3 blockDim + size_t dynamicSmemBytes + cudaStream_t stream + cudaLaunchAttribute* attrs + unsigned int numAttrs + ctypedef cudaLaunchConfig_st cudaLaunchConfig_t + +cdef extern from 'cuda_runtime_api.h': + ctypedef void (*cudaAsyncCallback)(cudaAsyncNotificationInfo_t* info, void* userData, cudaAsyncCallbackHandle_t handle) nogil + + +# FUNCTIONS +cdef cudaError_t cudaDeviceReset() except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceSynchronize() except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceSetLimit(cudaLimit limit, size_t value) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetLimit(size_t* pValue, cudaLimit limit) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetCacheConfig(cudaFuncCache* pCacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceSetCacheConfig(cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetByPCIBusId(int* device, const char* pciBusId) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetPCIBusId(char* pciBusId, int len, int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaIpcGetEventHandle(cudaIpcEventHandle_t* handle, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaIpcOpenEventHandle(cudaEvent_t* event, cudaIpcEventHandle_t handle) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaIpcGetMemHandle(cudaIpcMemHandle_t* handle, void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaIpcOpenMemHandle(void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaIpcCloseMemHandle(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceFlushGPUDirectRDMAWrites(cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceRegisterAsyncNotification(int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceUnregisterAsyncNotification(int device, cudaAsyncCallbackHandle_t callback) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetSharedMemConfig(cudaSharedMemConfig* pConfig) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceSetSharedMemConfig(cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetLastError() except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaPeekAtLastError() except ?cudaErrorCallRequiresNewerDriver nogil +cdef const char* cudaGetErrorName(cudaError_t error) except?NULL nogil +cdef const char* cudaGetErrorString(cudaError_t error) except?NULL nogil +cdef cudaError_t cudaGetDeviceCount(int* count) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetDeviceProperties(cudaDeviceProp* prop, int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetAttribute(int* value, cudaDeviceAttr attr, int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetDefaultMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceSetMemPool(int device, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, int device, int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetP2PAttribute(int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaChooseDevice(int* device, const cudaDeviceProp* prop) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaSetDevice(int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetDevice(int* device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaSetDeviceFlags(unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetDeviceFlags(unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamCreate(cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamCreateWithFlags(cudaStream_t* pStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamCreateWithPriority(cudaStream_t* pStream, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamGetPriority(cudaStream_t hStream, int* priority) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamGetFlags(cudaStream_t hStream, unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamGetId(cudaStream_t hStream, unsigned long long* streamId) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamGetDevice(cudaStream_t hStream, int* device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaCtxResetPersistingL2Cache() except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamCopyAttributes(cudaStream_t dst, cudaStream_t src) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamGetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, cudaStreamAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamSetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, const cudaStreamAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamDestroy(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamWaitEvent(cudaStream_t stream, cudaEvent_t event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamAddCallback(cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamSynchronize(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamQuery(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamAttachMemAsync(cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamBeginCapture(cudaStream_t stream, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamBeginCaptureToGraph(cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaThreadExchangeStreamCaptureMode(cudaStreamCaptureMode* mode) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamEndCapture(cudaStream_t stream, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamIsCapturing(cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamGetCaptureInfo(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamGetCaptureInfo_v3(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamUpdateCaptureDependencies(cudaStream_t stream, cudaGraphNode_t* dependencies, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamUpdateCaptureDependencies_v2(cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEventCreate(cudaEvent_t* event) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEventCreateWithFlags(cudaEvent_t* event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEventRecord(cudaEvent_t event, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEventRecordWithFlags(cudaEvent_t event, cudaStream_t stream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEventQuery(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEventSynchronize(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEventDestroy(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEventElapsedTime(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEventElapsedTime_v2(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaImportExternalMemory(cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaExternalMemoryGetMappedBuffer(void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaExternalMemoryGetMappedMipmappedArray(cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDestroyExternalMemory(cudaExternalMemory_t extMem) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaImportExternalSemaphore(cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaSignalExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaWaitExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDestroyExternalSemaphore(cudaExternalSemaphore_t extSem) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaFuncSetCacheConfig(const void* func, cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaFuncGetAttributes(cudaFuncAttributes* attr, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaFuncSetAttribute(const void* func, cudaFuncAttribute attr, int value) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaFuncGetName(const char** name, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaFuncGetParamInfo(const void* func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaLaunchHostFunc(cudaStream_t stream, cudaHostFn_t fn, void* userData) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaFuncSetSharedMemConfig(const void* func, cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMallocManaged(void** devPtr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMalloc(void** devPtr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMallocHost(void** ptr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMallocPitch(void** devPtr, size_t* pitch, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMallocArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaFree(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaFreeHost(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaFreeArray(cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaFreeMipmappedArray(cudaMipmappedArray_t mipmappedArray) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaHostAlloc(void** pHost, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaHostRegister(void* ptr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaHostUnregister(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaHostGetDevicePointer(void** pDevice, void* pHost, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaHostGetFlags(unsigned int* pFlags, void* pHost) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMalloc3D(cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMalloc3DArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMallocMipmappedArray(cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetMipmappedArrayLevel(cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpy3D(const cudaMemcpy3DParms* p) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpy3DPeer(const cudaMemcpy3DPeerParms* p) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpy3DAsync(const cudaMemcpy3DParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpy3DPeerAsync(const cudaMemcpy3DPeerParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemGetInfo(size_t* free, size_t* total) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaArrayGetInfo(cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaArrayGetPlane(cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMipmappedArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMipmappedArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpy(void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpyPeer(void* dst, int dstDevice, const void* src, int srcDevice, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpy2D(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpy2DToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpy2DFromArray(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpy2DArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpyAsync(void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpyPeerAsync(void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpyBatchAsync(const void** dsts, void** srcs, size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, size_t* failIdx, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpy3DBatchAsync(size_t numOps, cudaMemcpy3DBatchOp* opList, size_t* failIdx, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpy2DAsync(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpy2DToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpy2DFromArrayAsync(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemset(void* devPtr, int value, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemset2D(void* devPtr, size_t pitch, int value, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemset3D(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemsetAsync(void* devPtr, int value, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemset2DAsync(void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemset3DAsync(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemPrefetchAsync(const void* devPtr, size_t count, int dstDevice, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemPrefetchAsync_v2(const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemAdvise(const void* devPtr, size_t count, cudaMemoryAdvise advice, int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemAdvise_v2(const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemRangeGetAttribute(void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemRangeGetAttributes(void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpyToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpyFromArray(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpyArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpyToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpyFromArrayAsync(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMallocAsync(void** devPtr, size_t size, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaFreeAsync(void* devPtr, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemPoolTrimTo(cudaMemPool_t memPool, size_t minBytesToKeep) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemPoolSetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemPoolGetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemPoolSetAccess(cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemPoolGetAccess(cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemPoolCreate(cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemPoolDestroy(cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMallocFromPoolAsync(void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemPoolExportToShareableHandle(void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemPoolImportFromShareableHandle(cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemPoolExportPointer(cudaMemPoolPtrExportData* exportData, void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemPoolImportPointer(void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaPointerGetAttributes(cudaPointerAttributes* attributes, const void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceCanAccessPeer(int* canAccessPeer, int device, int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceDisablePeerAccess(int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphicsUnregisterResource(cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphicsResourceSetMapFlags(cudaGraphicsResource_t resource, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphicsMapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphicsUnmapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphicsResourceGetMappedPointer(void** devPtr, size_t* size, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphicsSubResourceGetMappedArray(cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphicsResourceGetMappedMipmappedArray(cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetChannelDesc(cudaChannelFormatDesc* desc, cudaArray_const_t array) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaChannelFormatDesc cudaCreateChannelDesc(int x, int y, int z, int w, cudaChannelFormatKind f) except* nogil +cdef cudaError_t cudaCreateTextureObject(cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDestroyTextureObject(cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetTextureObjectResourceDesc(cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetTextureObjectTextureDesc(cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetTextureObjectResourceViewDesc(cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaCreateSurfaceObject(cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDestroySurfaceObject(cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetSurfaceObjectResourceDesc(cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDriverGetVersion(int* driverVersion) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaRuntimeGetVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphCreate(cudaGraph_t* pGraph, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddKernelNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphKernelNodeGetParams(cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphKernelNodeSetParams(cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphKernelNodeCopyAttributes(cudaGraphNode_t hSrc, cudaGraphNode_t hDst) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphKernelNodeGetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, cudaKernelNodeAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphKernelNodeSetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, const cudaKernelNodeAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddMemcpyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddMemcpyNode1D(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphMemcpyNodeGetParams(cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphMemcpyNodeSetParams(cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphMemcpyNodeSetParams1D(cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddMemsetNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphMemsetNodeGetParams(cudaGraphNode_t node, cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphMemsetNodeSetParams(cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddHostNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphHostNodeGetParams(cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphHostNodeSetParams(cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddChildGraphNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphChildGraphNodeGetGraph(cudaGraphNode_t node, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddEmptyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddEventRecordNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphEventRecordNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphEventRecordNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddEventWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphEventWaitNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphEventWaitNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddExternalSemaphoresSignalNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExternalSemaphoresSignalNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExternalSemaphoresSignalNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddExternalSemaphoresWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExternalSemaphoresWaitNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExternalSemaphoresWaitNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddMemAllocNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphMemAllocNodeGetParams(cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddMemFreeNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphMemFreeNodeGetParams(cudaGraphNode_t node, void* dptr_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGraphMemTrim(int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceSetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphClone(cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphNodeFindInClone(cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphNodeGetType(cudaGraphNode_t node, cudaGraphNodeType* pType) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphGetNodes(cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphGetRootNodes(cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphGetEdges(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphGetEdges_v2(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphNodeGetDependencies(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphNodeGetDependencies_v2(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphNodeGetDependentNodes(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphNodeGetDependentNodes_v2(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddDependencies_v2(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphRemoveDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphRemoveDependencies_v2(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphDestroyNode(cudaGraphNode_t node) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphInstantiate(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphInstantiateWithFlags(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphInstantiateWithParams(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecGetFlags(cudaGraphExec_t graphExec, unsigned long long* flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecKernelNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecMemcpyNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecMemcpyNodeSetParams1D(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecMemsetNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecHostNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecChildGraphNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecEventRecordNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecEventWaitNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecExternalSemaphoresSignalNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecExternalSemaphoresWaitNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphNodeSetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphNodeGetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphUpload(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecDestroy(cudaGraphExec_t graphExec) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphDestroy(cudaGraph_t graph) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphDebugDotPrint(cudaGraph_t graph, const char* path, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaUserObjectCreate(cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaUserObjectRetain(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaUserObjectRelease(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphRetainUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphReleaseUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddNode_v2(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphNodeSetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecNodeSetParams(cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphConditionalHandleCreate(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetDriverEntryPoint(const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetDriverEntryPointByVersion(const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaLibraryLoadData(cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaLibraryLoadFromFile(cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaLibraryUnload(cudaLibrary_t library) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaLibraryGetKernel(cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaLibraryGetGlobal(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaLibraryGetManaged(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaLibraryGetUnifiedFunction(void** fptr, cudaLibrary_t library, const char* symbol) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaLibraryGetKernelCount(unsigned int* count, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaLibraryEnumerateKernels(cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaKernelSetAttributeForDevice(cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetExportTable(const void** ppExportTable, const cudaUUID_t* pExportTableId) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetKernel(cudaKernel_t* kernelPtr, const void* entryFuncAddr) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphicsEGLRegisterImage(cudaGraphicsResource** pCudaResource, EGLImageKHR image, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEGLStreamConsumerConnect(cudaEglStreamConnection* conn, EGLStreamKHR eglStream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEGLStreamConsumerConnectWithFlags(cudaEglStreamConnection* conn, EGLStreamKHR eglStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEGLStreamConsumerDisconnect(cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEGLStreamConsumerAcquireFrame(cudaEglStreamConnection* conn, cudaGraphicsResource_t* pCudaResource, cudaStream_t* pStream, unsigned int timeout) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEGLStreamConsumerReleaseFrame(cudaEglStreamConnection* conn, cudaGraphicsResource_t pCudaResource, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEGLStreamProducerConnect(cudaEglStreamConnection* conn, EGLStreamKHR eglStream, EGLint width, EGLint height) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEGLStreamProducerDisconnect(cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEGLStreamProducerPresentFrame(cudaEglStreamConnection* conn, cudaEglFrame eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEGLStreamProducerReturnFrame(cudaEglStreamConnection* conn, cudaEglFrame* eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphicsResourceGetMappedEglFrame(cudaEglFrame* eglFrame, cudaGraphicsResource_t resource, unsigned int index, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEventCreateFromEGLSync(cudaEvent_t* phEvent, EGLSyncKHR eglSync, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaProfilerStart() except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaProfilerStop() except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGLGetDevices(unsigned int* pCudaDeviceCount, int* pCudaDevices, unsigned int cudaDeviceCount, cudaGLDeviceList deviceList) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphicsGLRegisterImage(cudaGraphicsResource** resource, GLuint image, GLenum target, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphicsGLRegisterBuffer(cudaGraphicsResource** resource, GLuint buffer, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaVDPAUGetDevice(int* device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaVDPAUSetVDPAUDevice(int device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphicsVDPAURegisterVideoSurface(cudaGraphicsResource** resource, VdpVideoSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphicsVDPAURegisterOutputSurface(cudaGraphicsResource** resource, VdpOutputSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil + +# C #define integer constants from driver_types.h required for ABI compat with lowpp layer +cdef extern from 'driver_types.h': + cdef enum: + cudaHostAllocDefault + cudaHostAllocPortable + cudaHostAllocMapped + cudaHostAllocWriteCombined + cudaHostRegisterDefault + cudaHostRegisterPortable + cudaHostRegisterMapped + cudaHostRegisterIoMemory + cudaHostRegisterReadOnly + cudaPeerAccessDefault + cudaStreamDefault + cudaStreamNonBlocking + cudaEventDefault + cudaEventBlockingSync + cudaEventDisableTiming + cudaEventInterprocess + cudaEventRecordDefault + cudaEventRecordExternal + cudaEventWaitDefault + cudaEventWaitExternal + cudaDeviceScheduleAuto + cudaDeviceScheduleSpin + cudaDeviceScheduleYield + cudaDeviceScheduleBlockingSync + cudaDeviceBlockingSync + cudaDeviceScheduleMask + cudaDeviceMapHost + cudaDeviceLmemResizeToMax + cudaDeviceSyncMemops + cudaDeviceMask + cudaArrayDefault + cudaArrayLayered + cudaArraySurfaceLoadStore + cudaArrayCubemap + cudaArrayTextureGather + cudaArrayColorAttachment + cudaArraySparse + cudaArrayDeferredMapping + cudaIpcMemLazyEnablePeerAccess + cudaMemAttachGlobal + cudaMemAttachHost + cudaMemAttachSingle + cudaOccupancyDefault + cudaOccupancyDisableCachingOverride + cudaCpuDeviceId + cudaInvalidDeviceId + cudaInitDeviceFlagsAreValid + cudaArraySparsePropertiesSingleMipTail + cudaMemPoolCreateUsageHwDecompress + CUDA_IPC_HANDLE_SIZE + cudaExternalMemoryDedicated + cudaExternalSemaphoreSignalSkipNvSciBufMemSync + cudaExternalSemaphoreWaitSkipNvSciBufMemSync + cudaNvSciSyncAttrSignal + cudaNvSciSyncAttrWait + cudaGraphKernelNodePortDefault + cudaGraphKernelNodePortProgrammatic + cudaGraphKernelNodePortLaunchCompletion + cudaStreamAttributeAccessPolicyWindow + cudaStreamAttributeSynchronizationPolicy + cudaStreamAttributeMemSyncDomainMap + cudaStreamAttributeMemSyncDomain + cudaStreamAttributePriority + cudaKernelNodeAttributeAccessPolicyWindow + cudaKernelNodeAttributeCooperative + cudaKernelNodeAttributePriority + cudaKernelNodeAttributeClusterDimension + cudaKernelNodeAttributeClusterSchedulingPolicyPreference + cudaKernelNodeAttributeMemSyncDomainMap + cudaKernelNodeAttributeMemSyncDomain + cudaKernelNodeAttributePreferredSharedMemoryCarveout + cudaKernelNodeAttributeDeviceUpdatableKernelNode + cudaKernelNodeAttributeNvlinkUtilCentricScheduling + +# cudaStreamLegacy/PerThread are pointer-cast macros: ((cudaStream_t)0x1/0x2); use integer values +cdef enum: + cudaStreamLegacy = 1 + cudaStreamPerThread = 2 + +# Surface and texture type constants +cdef extern from 'surface_types.h': + cdef enum: + cudaSurfaceType1D + cudaSurfaceType2D + cudaSurfaceType3D + cudaSurfaceTypeCubemap + cudaSurfaceType1DLayered + cudaSurfaceType2DLayered + cudaSurfaceTypeCubemapLayered + +cdef extern from 'texture_types.h': + cdef enum: + cudaTextureType1D + cudaTextureType2D + cudaTextureType3D + cudaTextureTypeCubemap + cudaTextureType1DLayered + cudaTextureType2DLayered + cudaTextureTypeCubemapLayered + +# Version constants +cdef extern from 'cuda_runtime.h': + cdef enum: + CUDART_VERSION + +cdef extern from 'cuda_runtime_api.h': + cdef enum: + __CUDART_API_VERSION + +# CUDA_EGL_MAX_PLANES is defined as 3 in cuda_egl_interop.h; hardcoded to avoid EGL deps +cdef enum: + CUDA_EGL_MAX_PLANES = 3 + +# Defined in the CUDA 12 headers only (removed in CUDA 13); declared as integers for ABI compat +cdef enum: + cudaCooperativeLaunchMultiDeviceNoPreSync = 1 + cudaCooperativeLaunchMultiDeviceNoPostSync = 2 + +# libraryPropertyType_t (starts lowercase, outside type pattern) +cdef extern from 'library_types.h': + ctypedef enum libraryPropertyType_t 'libraryPropertyType_t': + MAJOR_VERSION + MINOR_VERSION + PATCH_LEVEL + + +# Static inline helpers from driver_functions.h — wrapped as cdef so the lowpp layer can cimport them. +cdef cudaPitchedPtr make_cudaPitchedPtr(void* d, size_t p, size_t xsz, size_t ysz) except* nogil +cdef cudaPos make_cudaPos(size_t x, size_t y, size_t z) except* nogil +cdef cudaExtent make_cudaExtent(size_t w, size_t h, size_t d) except* nogil + +cdef cudaError_t getLocalRuntimeVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil diff --git a/cuda_bindings_12/cuda/bindings/cyruntime.pxd.in b/cuda_bindings_12/cuda/bindings/cyruntime.pxd.in deleted file mode 100644 index 173b988ab81c..000000000000 --- a/cuda_bindings_12/cuda/bindings/cyruntime.pxd.in +++ /dev/null @@ -1,1952 +0,0 @@ -# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -# SPDX-License-Identifier: Apache-2.0 - -# This code was automatically generated with version 12.9.0. Do not modify it directly. - -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=812e2cbe43c7944dd759085cbe7beb7c37dd6389c433ecf879e584248e867cbd -from libc.stdint cimport uint32_t, uint64_t - -include "cyruntime_types.pxi" - -ctypedef unsigned int GLenum - -ctypedef unsigned int GLuint - -cdef extern from "": - cdef struct void: - pass -ctypedef void* EGLImageKHR - -cdef extern from "": - cdef struct void: - pass -ctypedef void* EGLStreamKHR - -ctypedef unsigned int EGLint - -cdef extern from "": - cdef struct void: - pass -ctypedef void* EGLSyncKHR - -ctypedef uint32_t VdpDevice - -ctypedef unsigned long long VdpGetProcAddress - -ctypedef uint32_t VdpVideoSurface - -ctypedef uint32_t VdpOutputSurface - -cdef enum cudaEglFrameType_enum: - cudaEglFrameTypeArray = 0 - cudaEglFrameTypePitch = 1 - -ctypedef cudaEglFrameType_enum cudaEglFrameType - -cdef enum cudaEglResourceLocationFlags_enum: - cudaEglResourceLocationSysmem = 0 - cudaEglResourceLocationVidmem = 1 - -ctypedef cudaEglResourceLocationFlags_enum cudaEglResourceLocationFlags - -cdef enum cudaEglColorFormat_enum: - cudaEglColorFormatYUV420Planar = 0 - cudaEglColorFormatYUV420SemiPlanar = 1 - cudaEglColorFormatYUV422Planar = 2 - cudaEglColorFormatYUV422SemiPlanar = 3 - cudaEglColorFormatARGB = 6 - cudaEglColorFormatRGBA = 7 - cudaEglColorFormatL = 8 - cudaEglColorFormatR = 9 - cudaEglColorFormatYUV444Planar = 10 - cudaEglColorFormatYUV444SemiPlanar = 11 - cudaEglColorFormatYUYV422 = 12 - cudaEglColorFormatUYVY422 = 13 - cudaEglColorFormatABGR = 14 - cudaEglColorFormatBGRA = 15 - cudaEglColorFormatA = 16 - cudaEglColorFormatRG = 17 - cudaEglColorFormatAYUV = 18 - cudaEglColorFormatYVU444SemiPlanar = 19 - cudaEglColorFormatYVU422SemiPlanar = 20 - cudaEglColorFormatYVU420SemiPlanar = 21 - cudaEglColorFormatY10V10U10_444SemiPlanar = 22 - cudaEglColorFormatY10V10U10_420SemiPlanar = 23 - cudaEglColorFormatY12V12U12_444SemiPlanar = 24 - cudaEglColorFormatY12V12U12_420SemiPlanar = 25 - cudaEglColorFormatVYUY_ER = 26 - cudaEglColorFormatUYVY_ER = 27 - cudaEglColorFormatYUYV_ER = 28 - cudaEglColorFormatYVYU_ER = 29 - cudaEglColorFormatYUVA_ER = 31 - cudaEglColorFormatAYUV_ER = 32 - cudaEglColorFormatYUV444Planar_ER = 33 - cudaEglColorFormatYUV422Planar_ER = 34 - cudaEglColorFormatYUV420Planar_ER = 35 - cudaEglColorFormatYUV444SemiPlanar_ER = 36 - cudaEglColorFormatYUV422SemiPlanar_ER = 37 - cudaEglColorFormatYUV420SemiPlanar_ER = 38 - cudaEglColorFormatYVU444Planar_ER = 39 - cudaEglColorFormatYVU422Planar_ER = 40 - cudaEglColorFormatYVU420Planar_ER = 41 - cudaEglColorFormatYVU444SemiPlanar_ER = 42 - cudaEglColorFormatYVU422SemiPlanar_ER = 43 - cudaEglColorFormatYVU420SemiPlanar_ER = 44 - cudaEglColorFormatBayerRGGB = 45 - cudaEglColorFormatBayerBGGR = 46 - cudaEglColorFormatBayerGRBG = 47 - cudaEglColorFormatBayerGBRG = 48 - cudaEglColorFormatBayer10RGGB = 49 - cudaEglColorFormatBayer10BGGR = 50 - cudaEglColorFormatBayer10GRBG = 51 - cudaEglColorFormatBayer10GBRG = 52 - cudaEglColorFormatBayer12RGGB = 53 - cudaEglColorFormatBayer12BGGR = 54 - cudaEglColorFormatBayer12GRBG = 55 - cudaEglColorFormatBayer12GBRG = 56 - cudaEglColorFormatBayer14RGGB = 57 - cudaEglColorFormatBayer14BGGR = 58 - cudaEglColorFormatBayer14GRBG = 59 - cudaEglColorFormatBayer14GBRG = 60 - cudaEglColorFormatBayer20RGGB = 61 - cudaEglColorFormatBayer20BGGR = 62 - cudaEglColorFormatBayer20GRBG = 63 - cudaEglColorFormatBayer20GBRG = 64 - cudaEglColorFormatYVU444Planar = 65 - cudaEglColorFormatYVU422Planar = 66 - cudaEglColorFormatYVU420Planar = 67 - cudaEglColorFormatBayerIspRGGB = 68 - cudaEglColorFormatBayerIspBGGR = 69 - cudaEglColorFormatBayerIspGRBG = 70 - cudaEglColorFormatBayerIspGBRG = 71 - cudaEglColorFormatBayerBCCR = 72 - cudaEglColorFormatBayerRCCB = 73 - cudaEglColorFormatBayerCRBC = 74 - cudaEglColorFormatBayerCBRC = 75 - cudaEglColorFormatBayer10CCCC = 76 - cudaEglColorFormatBayer12BCCR = 77 - cudaEglColorFormatBayer12RCCB = 78 - cudaEglColorFormatBayer12CRBC = 79 - cudaEglColorFormatBayer12CBRC = 80 - cudaEglColorFormatBayer12CCCC = 81 - cudaEglColorFormatY = 82 - cudaEglColorFormatYUV420SemiPlanar_2020 = 83 - cudaEglColorFormatYVU420SemiPlanar_2020 = 84 - cudaEglColorFormatYUV420Planar_2020 = 85 - cudaEglColorFormatYVU420Planar_2020 = 86 - cudaEglColorFormatYUV420SemiPlanar_709 = 87 - cudaEglColorFormatYVU420SemiPlanar_709 = 88 - cudaEglColorFormatYUV420Planar_709 = 89 - cudaEglColorFormatYVU420Planar_709 = 90 - cudaEglColorFormatY10V10U10_420SemiPlanar_709 = 91 - cudaEglColorFormatY10V10U10_420SemiPlanar_2020 = 92 - cudaEglColorFormatY10V10U10_422SemiPlanar_2020 = 93 - cudaEglColorFormatY10V10U10_422SemiPlanar = 94 - cudaEglColorFormatY10V10U10_422SemiPlanar_709 = 95 - cudaEglColorFormatY_ER = 96 - cudaEglColorFormatY_709_ER = 97 - cudaEglColorFormatY10_ER = 98 - cudaEglColorFormatY10_709_ER = 99 - cudaEglColorFormatY12_ER = 100 - cudaEglColorFormatY12_709_ER = 101 - cudaEglColorFormatYUVA = 102 - cudaEglColorFormatYVYU = 104 - cudaEglColorFormatVYUY = 105 - cudaEglColorFormatY10V10U10_420SemiPlanar_ER = 106 - cudaEglColorFormatY10V10U10_420SemiPlanar_709_ER = 107 - cudaEglColorFormatY10V10U10_444SemiPlanar_ER = 108 - cudaEglColorFormatY10V10U10_444SemiPlanar_709_ER = 109 - cudaEglColorFormatY12V12U12_420SemiPlanar_ER = 110 - cudaEglColorFormatY12V12U12_420SemiPlanar_709_ER = 111 - cudaEglColorFormatY12V12U12_444SemiPlanar_ER = 112 - cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER = 113 - cudaEglColorFormatUYVY709 = 114 - cudaEglColorFormatUYVY709_ER = 115 - cudaEglColorFormatUYVY2020 = 116 - -ctypedef cudaEglColorFormat_enum cudaEglColorFormat - -cdef struct cudaEglPlaneDesc_st: - unsigned int width - unsigned int height - unsigned int depth - unsigned int pitch - unsigned int numChannels - cudaChannelFormatDesc channelDesc - unsigned int reserved[4] - -ctypedef cudaEglPlaneDesc_st cudaEglPlaneDesc - -cdef union anon_union11: - cudaArray_t pArray[3] - cudaPitchedPtr pPitch[3] - -cdef struct cudaEglFrame_st: - anon_union11 frame - cudaEglPlaneDesc planeDesc[3] - unsigned int planeCount - cudaEglFrameType frameType - cudaEglColorFormat eglColorFormat - -ctypedef cudaEglFrame_st cudaEglFrame - -cdef extern from "": - cdef struct CUeglStreamConnection_st: - pass -ctypedef CUeglStreamConnection_st* cudaEglStreamConnection - -cdef enum cudaGLDeviceList: - cudaGLDeviceListAll = 1 - cudaGLDeviceListCurrentFrame = 2 - cudaGLDeviceListNextFrame = 3 - -cdef enum cudaGLMapFlags: - cudaGLMapFlagsNone = 0 - cudaGLMapFlagsReadOnly = 1 - cudaGLMapFlagsWriteDiscard = 2 - -{{if 'cudaDeviceReset' in found_functions}} - -cdef cudaError_t cudaDeviceReset() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSynchronize' in found_functions}} - -cdef cudaError_t cudaDeviceSynchronize() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetLimit' in found_functions}} - -cdef cudaError_t cudaDeviceSetLimit(cudaLimit limit, size_t value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetLimit' in found_functions}} - -cdef cudaError_t cudaDeviceGetLimit(size_t* pValue, cudaLimit limit) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetTexture1DLinearMaxWidth' in found_functions}} - -cdef cudaError_t cudaDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetCacheConfig' in found_functions}} - -cdef cudaError_t cudaDeviceGetCacheConfig(cudaFuncCache* pCacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetStreamPriorityRange' in found_functions}} - -cdef cudaError_t cudaDeviceGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetCacheConfig' in found_functions}} - -cdef cudaError_t cudaDeviceSetCacheConfig(cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetByPCIBusId' in found_functions}} - -cdef cudaError_t cudaDeviceGetByPCIBusId(int* device, const char* pciBusId) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetPCIBusId' in found_functions}} - -cdef cudaError_t cudaDeviceGetPCIBusId(char* pciBusId, int length, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcGetEventHandle' in found_functions}} - -cdef cudaError_t cudaIpcGetEventHandle(cudaIpcEventHandle_t* handle, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcOpenEventHandle' in found_functions}} - -cdef cudaError_t cudaIpcOpenEventHandle(cudaEvent_t* event, cudaIpcEventHandle_t handle) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcGetMemHandle' in found_functions}} - -cdef cudaError_t cudaIpcGetMemHandle(cudaIpcMemHandle_t* handle, void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcOpenMemHandle' in found_functions}} - -cdef cudaError_t cudaIpcOpenMemHandle(void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcCloseMemHandle' in found_functions}} - -cdef cudaError_t cudaIpcCloseMemHandle(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceFlushGPUDirectRDMAWrites' in found_functions}} - -cdef cudaError_t cudaDeviceFlushGPUDirectRDMAWrites(cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceRegisterAsyncNotification' in found_functions}} - -cdef cudaError_t cudaDeviceRegisterAsyncNotification(int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceUnregisterAsyncNotification' in found_functions}} - -cdef cudaError_t cudaDeviceUnregisterAsyncNotification(int device, cudaAsyncCallbackHandle_t callback) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetSharedMemConfig' in found_functions}} - -cdef cudaError_t cudaDeviceGetSharedMemConfig(cudaSharedMemConfig* pConfig) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetSharedMemConfig' in found_functions}} - -cdef cudaError_t cudaDeviceSetSharedMemConfig(cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetLastError' in found_functions}} - -cdef cudaError_t cudaGetLastError() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaPeekAtLastError' in found_functions}} - -cdef cudaError_t cudaPeekAtLastError() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetErrorName' in found_functions}} - -cdef const char* cudaGetErrorName(cudaError_t error) except ?NULL nogil -{{endif}} - -{{if 'cudaGetErrorString' in found_functions}} - -cdef const char* cudaGetErrorString(cudaError_t error) except ?NULL nogil -{{endif}} - -{{if 'cudaGetDeviceCount' in found_functions}} - -cdef cudaError_t cudaGetDeviceCount(int* count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDeviceProperties_v2' in found_functions}} - -cdef cudaError_t cudaGetDeviceProperties(cudaDeviceProp* prop, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetAttribute' in found_functions}} - -cdef cudaError_t cudaDeviceGetAttribute(int* value, cudaDeviceAttr attr, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetDefaultMemPool' in found_functions}} - -cdef cudaError_t cudaDeviceGetDefaultMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetMemPool' in found_functions}} - -cdef cudaError_t cudaDeviceSetMemPool(int device, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetMemPool' in found_functions}} - -cdef cudaError_t cudaDeviceGetMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetNvSciSyncAttributes' in found_functions}} - -cdef cudaError_t cudaDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, int device, int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetP2PAttribute' in found_functions}} - -cdef cudaError_t cudaDeviceGetP2PAttribute(int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaChooseDevice' in found_functions}} - -cdef cudaError_t cudaChooseDevice(int* device, const cudaDeviceProp* prop) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaInitDevice' in found_functions}} - -cdef cudaError_t cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaSetDevice' in found_functions}} - -cdef cudaError_t cudaSetDevice(int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDevice' in found_functions}} - -cdef cudaError_t cudaGetDevice(int* device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaSetDeviceFlags' in found_functions}} - -cdef cudaError_t cudaSetDeviceFlags(unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDeviceFlags' in found_functions}} - -cdef cudaError_t cudaGetDeviceFlags(unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamCreate' in found_functions}} - -cdef cudaError_t cudaStreamCreate(cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamCreateWithFlags' in found_functions}} - -cdef cudaError_t cudaStreamCreateWithFlags(cudaStream_t* pStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamCreateWithPriority' in found_functions}} - -cdef cudaError_t cudaStreamCreateWithPriority(cudaStream_t* pStream, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetPriority' in found_functions}} - -cdef cudaError_t cudaStreamGetPriority(cudaStream_t hStream, int* priority) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetFlags' in found_functions}} - -cdef cudaError_t cudaStreamGetFlags(cudaStream_t hStream, unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetId' in found_functions}} - -cdef cudaError_t cudaStreamGetId(cudaStream_t hStream, unsigned long long* streamId) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetDevice' in found_functions}} - -cdef cudaError_t cudaStreamGetDevice(cudaStream_t hStream, int* device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaCtxResetPersistingL2Cache' in found_functions}} - -cdef cudaError_t cudaCtxResetPersistingL2Cache() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamCopyAttributes' in found_functions}} - -cdef cudaError_t cudaStreamCopyAttributes(cudaStream_t dst, cudaStream_t src) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetAttribute' in found_functions}} - -cdef cudaError_t cudaStreamGetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, cudaStreamAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamSetAttribute' in found_functions}} - -cdef cudaError_t cudaStreamSetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, const cudaStreamAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamDestroy' in found_functions}} - -cdef cudaError_t cudaStreamDestroy(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamWaitEvent' in found_functions}} - -cdef cudaError_t cudaStreamWaitEvent(cudaStream_t stream, cudaEvent_t event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamAddCallback' in found_functions}} - -cdef cudaError_t cudaStreamAddCallback(cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamSynchronize' in found_functions}} - -cdef cudaError_t cudaStreamSynchronize(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamQuery' in found_functions}} - -cdef cudaError_t cudaStreamQuery(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamAttachMemAsync' in found_functions}} - -cdef cudaError_t cudaStreamAttachMemAsync(cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamBeginCapture' in found_functions}} - -cdef cudaError_t cudaStreamBeginCapture(cudaStream_t stream, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamBeginCaptureToGraph' in found_functions}} - -cdef cudaError_t cudaStreamBeginCaptureToGraph(cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaThreadExchangeStreamCaptureMode' in found_functions}} - -cdef cudaError_t cudaThreadExchangeStreamCaptureMode(cudaStreamCaptureMode* mode) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamEndCapture' in found_functions}} - -cdef cudaError_t cudaStreamEndCapture(cudaStream_t stream, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamIsCapturing' in found_functions}} - -cdef cudaError_t cudaStreamIsCapturing(cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetCaptureInfo_v2' in found_functions}} - -cdef cudaError_t cudaStreamGetCaptureInfo(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetCaptureInfo_v3' in found_functions}} - -cdef cudaError_t cudaStreamGetCaptureInfo_v3(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamUpdateCaptureDependencies' in found_functions}} - -cdef cudaError_t cudaStreamUpdateCaptureDependencies(cudaStream_t stream, cudaGraphNode_t* dependencies, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamUpdateCaptureDependencies_v2' in found_functions}} - -cdef cudaError_t cudaStreamUpdateCaptureDependencies_v2(cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventCreate' in found_functions}} - -cdef cudaError_t cudaEventCreate(cudaEvent_t* event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventCreateWithFlags' in found_functions}} - -cdef cudaError_t cudaEventCreateWithFlags(cudaEvent_t* event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventRecord' in found_functions}} - -cdef cudaError_t cudaEventRecord(cudaEvent_t event, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventRecordWithFlags' in found_functions}} - -cdef cudaError_t cudaEventRecordWithFlags(cudaEvent_t event, cudaStream_t stream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventQuery' in found_functions}} - -cdef cudaError_t cudaEventQuery(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventSynchronize' in found_functions}} - -cdef cudaError_t cudaEventSynchronize(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventDestroy' in found_functions}} - -cdef cudaError_t cudaEventDestroy(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventElapsedTime' in found_functions}} - -cdef cudaError_t cudaEventElapsedTime(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventElapsedTime_v2' in found_functions}} - -cdef cudaError_t cudaEventElapsedTime_v2(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaImportExternalMemory' in found_functions}} - -cdef cudaError_t cudaImportExternalMemory(cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExternalMemoryGetMappedBuffer' in found_functions}} - -cdef cudaError_t cudaExternalMemoryGetMappedBuffer(void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExternalMemoryGetMappedMipmappedArray' in found_functions}} - -cdef cudaError_t cudaExternalMemoryGetMappedMipmappedArray(cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDestroyExternalMemory' in found_functions}} - -cdef cudaError_t cudaDestroyExternalMemory(cudaExternalMemory_t extMem) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaImportExternalSemaphore' in found_functions}} - -cdef cudaError_t cudaImportExternalSemaphore(cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaSignalExternalSemaphoresAsync_v2' in found_functions}} - -cdef cudaError_t cudaSignalExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaWaitExternalSemaphoresAsync_v2' in found_functions}} - -cdef cudaError_t cudaWaitExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDestroyExternalSemaphore' in found_functions}} - -cdef cudaError_t cudaDestroyExternalSemaphore(cudaExternalSemaphore_t extSem) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFuncSetCacheConfig' in found_functions}} - -cdef cudaError_t cudaFuncSetCacheConfig(const void* func, cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFuncGetAttributes' in found_functions}} - -cdef cudaError_t cudaFuncGetAttributes(cudaFuncAttributes* attr, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFuncSetAttribute' in found_functions}} - -cdef cudaError_t cudaFuncSetAttribute(const void* func, cudaFuncAttribute attr, int value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLaunchHostFunc' in found_functions}} - -cdef cudaError_t cudaLaunchHostFunc(cudaStream_t stream, cudaHostFn_t fn, void* userData) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFuncSetSharedMemConfig' in found_functions}} - -cdef cudaError_t cudaFuncSetSharedMemConfig(const void* func, cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}} - -cdef cudaError_t cudaOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaOccupancyAvailableDynamicSMemPerBlock' in found_functions}} - -cdef cudaError_t cudaOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}} - -cdef cudaError_t cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocManaged' in found_functions}} - -cdef cudaError_t cudaMallocManaged(void** devPtr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMalloc' in found_functions}} - -cdef cudaError_t cudaMalloc(void** devPtr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocHost' in found_functions}} - -cdef cudaError_t cudaMallocHost(void** ptr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocPitch' in found_functions}} - -cdef cudaError_t cudaMallocPitch(void** devPtr, size_t* pitch, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocArray' in found_functions}} - -cdef cudaError_t cudaMallocArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFree' in found_functions}} - -cdef cudaError_t cudaFree(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFreeHost' in found_functions}} - -cdef cudaError_t cudaFreeHost(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFreeArray' in found_functions}} - -cdef cudaError_t cudaFreeArray(cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFreeMipmappedArray' in found_functions}} - -cdef cudaError_t cudaFreeMipmappedArray(cudaMipmappedArray_t mipmappedArray) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostAlloc' in found_functions}} - -cdef cudaError_t cudaHostAlloc(void** pHost, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostRegister' in found_functions}} - -cdef cudaError_t cudaHostRegister(void* ptr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostUnregister' in found_functions}} - -cdef cudaError_t cudaHostUnregister(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostGetDevicePointer' in found_functions}} - -cdef cudaError_t cudaHostGetDevicePointer(void** pDevice, void* pHost, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostGetFlags' in found_functions}} - -cdef cudaError_t cudaHostGetFlags(unsigned int* pFlags, void* pHost) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMalloc3D' in found_functions}} - -cdef cudaError_t cudaMalloc3D(cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMalloc3DArray' in found_functions}} - -cdef cudaError_t cudaMalloc3DArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocMipmappedArray' in found_functions}} - -cdef cudaError_t cudaMallocMipmappedArray(cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetMipmappedArrayLevel' in found_functions}} - -cdef cudaError_t cudaGetMipmappedArrayLevel(cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3D' in found_functions}} - -cdef cudaError_t cudaMemcpy3D(const cudaMemcpy3DParms* p) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3DPeer' in found_functions}} - -cdef cudaError_t cudaMemcpy3DPeer(const cudaMemcpy3DPeerParms* p) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3DAsync' in found_functions}} - -cdef cudaError_t cudaMemcpy3DAsync(const cudaMemcpy3DParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3DPeerAsync' in found_functions}} - -cdef cudaError_t cudaMemcpy3DPeerAsync(const cudaMemcpy3DPeerParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemGetInfo' in found_functions}} - -cdef cudaError_t cudaMemGetInfo(size_t* free, size_t* total) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaArrayGetInfo' in found_functions}} - -cdef cudaError_t cudaArrayGetInfo(cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaArrayGetPlane' in found_functions}} - -cdef cudaError_t cudaArrayGetPlane(cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaArrayGetMemoryRequirements' in found_functions}} - -cdef cudaError_t cudaArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMipmappedArrayGetMemoryRequirements' in found_functions}} - -cdef cudaError_t cudaMipmappedArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaArrayGetSparseProperties' in found_functions}} - -cdef cudaError_t cudaArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMipmappedArrayGetSparseProperties' in found_functions}} - -cdef cudaError_t cudaMipmappedArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy' in found_functions}} - -cdef cudaError_t cudaMemcpy(void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyPeer' in found_functions}} - -cdef cudaError_t cudaMemcpyPeer(void* dst, int dstDevice, const void* src, int srcDevice, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2D' in found_functions}} - -cdef cudaError_t cudaMemcpy2D(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DToArray' in found_functions}} - -cdef cudaError_t cudaMemcpy2DToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DFromArray' in found_functions}} - -cdef cudaError_t cudaMemcpy2DFromArray(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DArrayToArray' in found_functions}} - -cdef cudaError_t cudaMemcpy2DArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyAsync' in found_functions}} - -cdef cudaError_t cudaMemcpyAsync(void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyPeerAsync' in found_functions}} - -cdef cudaError_t cudaMemcpyPeerAsync(void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyBatchAsync' in found_functions}} - -cdef cudaError_t cudaMemcpyBatchAsync(void** dsts, void** srcs, size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, size_t* failIdx, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3DBatchAsync' in found_functions}} - -cdef cudaError_t cudaMemcpy3DBatchAsync(size_t numOps, cudaMemcpy3DBatchOp* opList, size_t* failIdx, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DAsync' in found_functions}} - -cdef cudaError_t cudaMemcpy2DAsync(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DToArrayAsync' in found_functions}} - -cdef cudaError_t cudaMemcpy2DToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DFromArrayAsync' in found_functions}} - -cdef cudaError_t cudaMemcpy2DFromArrayAsync(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset' in found_functions}} - -cdef cudaError_t cudaMemset(void* devPtr, int value, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset2D' in found_functions}} - -cdef cudaError_t cudaMemset2D(void* devPtr, size_t pitch, int value, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset3D' in found_functions}} - -cdef cudaError_t cudaMemset3D(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemsetAsync' in found_functions}} - -cdef cudaError_t cudaMemsetAsync(void* devPtr, int value, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset2DAsync' in found_functions}} - -cdef cudaError_t cudaMemset2DAsync(void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset3DAsync' in found_functions}} - -cdef cudaError_t cudaMemset3DAsync(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPrefetchAsync' in found_functions}} - -cdef cudaError_t cudaMemPrefetchAsync(const void* devPtr, size_t count, int dstDevice, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPrefetchAsync_v2' in found_functions}} - -cdef cudaError_t cudaMemPrefetchAsync_v2(const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemAdvise' in found_functions}} - -cdef cudaError_t cudaMemAdvise(const void* devPtr, size_t count, cudaMemoryAdvise advice, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemAdvise_v2' in found_functions}} - -cdef cudaError_t cudaMemAdvise_v2(const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemRangeGetAttribute' in found_functions}} - -cdef cudaError_t cudaMemRangeGetAttribute(void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemRangeGetAttributes' in found_functions}} - -cdef cudaError_t cudaMemRangeGetAttributes(void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyToArray' in found_functions}} - -cdef cudaError_t cudaMemcpyToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyFromArray' in found_functions}} - -cdef cudaError_t cudaMemcpyFromArray(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyArrayToArray' in found_functions}} - -cdef cudaError_t cudaMemcpyArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyToArrayAsync' in found_functions}} - -cdef cudaError_t cudaMemcpyToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyFromArrayAsync' in found_functions}} - -cdef cudaError_t cudaMemcpyFromArrayAsync(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocAsync' in found_functions}} - -cdef cudaError_t cudaMallocAsync(void** devPtr, size_t size, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFreeAsync' in found_functions}} - -cdef cudaError_t cudaFreeAsync(void* devPtr, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolTrimTo' in found_functions}} - -cdef cudaError_t cudaMemPoolTrimTo(cudaMemPool_t memPool, size_t minBytesToKeep) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolSetAttribute' in found_functions}} - -cdef cudaError_t cudaMemPoolSetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolGetAttribute' in found_functions}} - -cdef cudaError_t cudaMemPoolGetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolSetAccess' in found_functions}} - -cdef cudaError_t cudaMemPoolSetAccess(cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolGetAccess' in found_functions}} - -cdef cudaError_t cudaMemPoolGetAccess(cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolCreate' in found_functions}} - -cdef cudaError_t cudaMemPoolCreate(cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolDestroy' in found_functions}} - -cdef cudaError_t cudaMemPoolDestroy(cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocFromPoolAsync' in found_functions}} - -cdef cudaError_t cudaMallocFromPoolAsync(void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolExportToShareableHandle' in found_functions}} - -cdef cudaError_t cudaMemPoolExportToShareableHandle(void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolImportFromShareableHandle' in found_functions}} - -cdef cudaError_t cudaMemPoolImportFromShareableHandle(cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolExportPointer' in found_functions}} - -cdef cudaError_t cudaMemPoolExportPointer(cudaMemPoolPtrExportData* exportData, void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolImportPointer' in found_functions}} - -cdef cudaError_t cudaMemPoolImportPointer(void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaPointerGetAttributes' in found_functions}} - -cdef cudaError_t cudaPointerGetAttributes(cudaPointerAttributes* attributes, const void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceCanAccessPeer' in found_functions}} - -cdef cudaError_t cudaDeviceCanAccessPeer(int* canAccessPeer, int device, int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceEnablePeerAccess' in found_functions}} - -cdef cudaError_t cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceDisablePeerAccess' in found_functions}} - -cdef cudaError_t cudaDeviceDisablePeerAccess(int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsUnregisterResource' in found_functions}} - -cdef cudaError_t cudaGraphicsUnregisterResource(cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsResourceSetMapFlags' in found_functions}} - -cdef cudaError_t cudaGraphicsResourceSetMapFlags(cudaGraphicsResource_t resource, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsMapResources' in found_functions}} - -cdef cudaError_t cudaGraphicsMapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsUnmapResources' in found_functions}} - -cdef cudaError_t cudaGraphicsUnmapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsResourceGetMappedPointer' in found_functions}} - -cdef cudaError_t cudaGraphicsResourceGetMappedPointer(void** devPtr, size_t* size, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsSubResourceGetMappedArray' in found_functions}} - -cdef cudaError_t cudaGraphicsSubResourceGetMappedArray(cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsResourceGetMappedMipmappedArray' in found_functions}} - -cdef cudaError_t cudaGraphicsResourceGetMappedMipmappedArray(cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetChannelDesc' in found_functions}} - -cdef cudaError_t cudaGetChannelDesc(cudaChannelFormatDesc* desc, cudaArray_const_t array) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaCreateChannelDesc' in found_functions}} - -cdef cudaChannelFormatDesc cudaCreateChannelDesc(int x, int y, int z, int w, cudaChannelFormatKind f) except* nogil -{{endif}} - -{{if 'cudaCreateTextureObject' in found_functions}} - -cdef cudaError_t cudaCreateTextureObject(cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDestroyTextureObject' in found_functions}} - -cdef cudaError_t cudaDestroyTextureObject(cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetTextureObjectResourceDesc' in found_functions}} - -cdef cudaError_t cudaGetTextureObjectResourceDesc(cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetTextureObjectTextureDesc' in found_functions}} - -cdef cudaError_t cudaGetTextureObjectTextureDesc(cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetTextureObjectResourceViewDesc' in found_functions}} - -cdef cudaError_t cudaGetTextureObjectResourceViewDesc(cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaCreateSurfaceObject' in found_functions}} - -cdef cudaError_t cudaCreateSurfaceObject(cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDestroySurfaceObject' in found_functions}} - -cdef cudaError_t cudaDestroySurfaceObject(cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetSurfaceObjectResourceDesc' in found_functions}} - -cdef cudaError_t cudaGetSurfaceObjectResourceDesc(cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDriverGetVersion' in found_functions}} - -cdef cudaError_t cudaDriverGetVersion(int* driverVersion) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaRuntimeGetVersion' in found_functions}} - -cdef cudaError_t cudaRuntimeGetVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphCreate' in found_functions}} - -cdef cudaError_t cudaGraphCreate(cudaGraph_t* pGraph, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddKernelNode' in found_functions}} - -cdef cudaError_t cudaGraphAddKernelNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeGetParams' in found_functions}} - -cdef cudaError_t cudaGraphKernelNodeGetParams(cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphKernelNodeSetParams(cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeCopyAttributes' in found_functions}} - -cdef cudaError_t cudaGraphKernelNodeCopyAttributes(cudaGraphNode_t hSrc, cudaGraphNode_t hDst) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeGetAttribute' in found_functions}} - -cdef cudaError_t cudaGraphKernelNodeGetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, cudaKernelNodeAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeSetAttribute' in found_functions}} - -cdef cudaError_t cudaGraphKernelNodeSetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, const cudaKernelNodeAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemcpyNode' in found_functions}} - -cdef cudaError_t cudaGraphAddMemcpyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemcpyNode1D' in found_functions}} - -cdef cudaError_t cudaGraphAddMemcpyNode1D(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemcpyNodeGetParams' in found_functions}} - -cdef cudaError_t cudaGraphMemcpyNodeGetParams(cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemcpyNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphMemcpyNodeSetParams(cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemcpyNodeSetParams1D' in found_functions}} - -cdef cudaError_t cudaGraphMemcpyNodeSetParams1D(cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemsetNode' in found_functions}} - -cdef cudaError_t cudaGraphAddMemsetNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemsetNodeGetParams' in found_functions}} - -cdef cudaError_t cudaGraphMemsetNodeGetParams(cudaGraphNode_t node, cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemsetNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphMemsetNodeSetParams(cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddHostNode' in found_functions}} - -cdef cudaError_t cudaGraphAddHostNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphHostNodeGetParams' in found_functions}} - -cdef cudaError_t cudaGraphHostNodeGetParams(cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphHostNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphHostNodeSetParams(cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddChildGraphNode' in found_functions}} - -cdef cudaError_t cudaGraphAddChildGraphNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphChildGraphNodeGetGraph' in found_functions}} - -cdef cudaError_t cudaGraphChildGraphNodeGetGraph(cudaGraphNode_t node, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddEmptyNode' in found_functions}} - -cdef cudaError_t cudaGraphAddEmptyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddEventRecordNode' in found_functions}} - -cdef cudaError_t cudaGraphAddEventRecordNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphEventRecordNodeGetEvent' in found_functions}} - -cdef cudaError_t cudaGraphEventRecordNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphEventRecordNodeSetEvent' in found_functions}} - -cdef cudaError_t cudaGraphEventRecordNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddEventWaitNode' in found_functions}} - -cdef cudaError_t cudaGraphAddEventWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphEventWaitNodeGetEvent' in found_functions}} - -cdef cudaError_t cudaGraphEventWaitNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphEventWaitNodeSetEvent' in found_functions}} - -cdef cudaError_t cudaGraphEventWaitNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddExternalSemaphoresSignalNode' in found_functions}} - -cdef cudaError_t cudaGraphAddExternalSemaphoresSignalNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExternalSemaphoresSignalNodeGetParams' in found_functions}} - -cdef cudaError_t cudaGraphExternalSemaphoresSignalNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExternalSemaphoresSignalNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphExternalSemaphoresSignalNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddExternalSemaphoresWaitNode' in found_functions}} - -cdef cudaError_t cudaGraphAddExternalSemaphoresWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExternalSemaphoresWaitNodeGetParams' in found_functions}} - -cdef cudaError_t cudaGraphExternalSemaphoresWaitNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExternalSemaphoresWaitNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphExternalSemaphoresWaitNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemAllocNode' in found_functions}} - -cdef cudaError_t cudaGraphAddMemAllocNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemAllocNodeGetParams' in found_functions}} - -cdef cudaError_t cudaGraphMemAllocNodeGetParams(cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemFreeNode' in found_functions}} - -cdef cudaError_t cudaGraphAddMemFreeNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemFreeNodeGetParams' in found_functions}} - -cdef cudaError_t cudaGraphMemFreeNodeGetParams(cudaGraphNode_t node, void* dptr_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGraphMemTrim' in found_functions}} - -cdef cudaError_t cudaDeviceGraphMemTrim(int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetGraphMemAttribute' in found_functions}} - -cdef cudaError_t cudaDeviceGetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetGraphMemAttribute' in found_functions}} - -cdef cudaError_t cudaDeviceSetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphClone' in found_functions}} - -cdef cudaError_t cudaGraphClone(cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeFindInClone' in found_functions}} - -cdef cudaError_t cudaGraphNodeFindInClone(cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetType' in found_functions}} - -cdef cudaError_t cudaGraphNodeGetType(cudaGraphNode_t node, cudaGraphNodeType* pType) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphGetNodes' in found_functions}} - -cdef cudaError_t cudaGraphGetNodes(cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphGetRootNodes' in found_functions}} - -cdef cudaError_t cudaGraphGetRootNodes(cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphGetEdges' in found_functions}} - -cdef cudaError_t cudaGraphGetEdges(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphGetEdges_v2' in found_functions}} - -cdef cudaError_t cudaGraphGetEdges_v2(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetDependencies' in found_functions}} - -cdef cudaError_t cudaGraphNodeGetDependencies(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetDependencies_v2' in found_functions}} - -cdef cudaError_t cudaGraphNodeGetDependencies_v2(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetDependentNodes' in found_functions}} - -cdef cudaError_t cudaGraphNodeGetDependentNodes(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetDependentNodes_v2' in found_functions}} - -cdef cudaError_t cudaGraphNodeGetDependentNodes_v2(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddDependencies' in found_functions}} - -cdef cudaError_t cudaGraphAddDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddDependencies_v2' in found_functions}} - -cdef cudaError_t cudaGraphAddDependencies_v2(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphRemoveDependencies' in found_functions}} - -cdef cudaError_t cudaGraphRemoveDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphRemoveDependencies_v2' in found_functions}} - -cdef cudaError_t cudaGraphRemoveDependencies_v2(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphDestroyNode' in found_functions}} - -cdef cudaError_t cudaGraphDestroyNode(cudaGraphNode_t node) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphInstantiate' in found_functions}} - -cdef cudaError_t cudaGraphInstantiate(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphInstantiateWithFlags' in found_functions}} - -cdef cudaError_t cudaGraphInstantiateWithFlags(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphInstantiateWithParams' in found_functions}} - -cdef cudaError_t cudaGraphInstantiateWithParams(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecGetFlags' in found_functions}} - -cdef cudaError_t cudaGraphExecGetFlags(cudaGraphExec_t graphExec, unsigned long long* flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecKernelNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphExecKernelNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecMemcpyNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphExecMemcpyNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecMemcpyNodeSetParams1D' in found_functions}} - -cdef cudaError_t cudaGraphExecMemcpyNodeSetParams1D(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecMemsetNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphExecMemsetNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecHostNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphExecHostNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecChildGraphNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphExecChildGraphNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecEventRecordNodeSetEvent' in found_functions}} - -cdef cudaError_t cudaGraphExecEventRecordNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecEventWaitNodeSetEvent' in found_functions}} - -cdef cudaError_t cudaGraphExecEventWaitNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphExecExternalSemaphoresSignalNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphExecExternalSemaphoresWaitNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeSetEnabled' in found_functions}} - -cdef cudaError_t cudaGraphNodeSetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetEnabled' in found_functions}} - -cdef cudaError_t cudaGraphNodeGetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecUpdate' in found_functions}} - -cdef cudaError_t cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphUpload' in found_functions}} - -cdef cudaError_t cudaGraphUpload(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphLaunch' in found_functions}} - -cdef cudaError_t cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecDestroy' in found_functions}} - -cdef cudaError_t cudaGraphExecDestroy(cudaGraphExec_t graphExec) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphDestroy' in found_functions}} - -cdef cudaError_t cudaGraphDestroy(cudaGraph_t graph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphDebugDotPrint' in found_functions}} - -cdef cudaError_t cudaGraphDebugDotPrint(cudaGraph_t graph, const char* path, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaUserObjectCreate' in found_functions}} - -cdef cudaError_t cudaUserObjectCreate(cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaUserObjectRetain' in found_functions}} - -cdef cudaError_t cudaUserObjectRetain(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaUserObjectRelease' in found_functions}} - -cdef cudaError_t cudaUserObjectRelease(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphRetainUserObject' in found_functions}} - -cdef cudaError_t cudaGraphRetainUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphReleaseUserObject' in found_functions}} - -cdef cudaError_t cudaGraphReleaseUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddNode' in found_functions}} - -cdef cudaError_t cudaGraphAddNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddNode_v2' in found_functions}} - -cdef cudaError_t cudaGraphAddNode_v2(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphNodeSetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphExecNodeSetParams(cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphConditionalHandleCreate' in found_functions}} - -cdef cudaError_t cudaGraphConditionalHandleCreate(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDriverEntryPoint' in found_functions}} - -cdef cudaError_t cudaGetDriverEntryPoint(const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDriverEntryPointByVersion' in found_functions}} - -cdef cudaError_t cudaGetDriverEntryPointByVersion(const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryLoadData' in found_functions}} - -cdef cudaError_t cudaLibraryLoadData(cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryLoadFromFile' in found_functions}} - -cdef cudaError_t cudaLibraryLoadFromFile(cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryUnload' in found_functions}} - -cdef cudaError_t cudaLibraryUnload(cudaLibrary_t library) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetKernel' in found_functions}} - -cdef cudaError_t cudaLibraryGetKernel(cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetGlobal' in found_functions}} - -cdef cudaError_t cudaLibraryGetGlobal(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetManaged' in found_functions}} - -cdef cudaError_t cudaLibraryGetManaged(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetUnifiedFunction' in found_functions}} - -cdef cudaError_t cudaLibraryGetUnifiedFunction(void** fptr, cudaLibrary_t library, const char* symbol) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetKernelCount' in found_functions}} - -cdef cudaError_t cudaLibraryGetKernelCount(unsigned int* count, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryEnumerateKernels' in found_functions}} - -cdef cudaError_t cudaLibraryEnumerateKernels(cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaKernelSetAttributeForDevice' in found_functions}} - -cdef cudaError_t cudaKernelSetAttributeForDevice(cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetExportTable' in found_functions}} - -cdef cudaError_t cudaGetExportTable(const void** ppExportTable, const cudaUUID_t* pExportTableId) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetKernel' in found_functions}} - -cdef cudaError_t cudaGetKernel(cudaKernel_t* kernelPtr, const void* entryFuncAddr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'make_cudaPitchedPtr' in found_functions}} - -cdef cudaPitchedPtr make_cudaPitchedPtr(void* d, size_t p, size_t xsz, size_t ysz) except* nogil -{{endif}} - -{{if 'make_cudaPos' in found_functions}} - -cdef cudaPos make_cudaPos(size_t x, size_t y, size_t z) except* nogil -{{endif}} - -{{if 'make_cudaExtent' in found_functions}} - -cdef cudaExtent make_cudaExtent(size_t w, size_t h, size_t d) except* nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaGraphicsEGLRegisterImage(cudaGraphicsResource** pCudaResource, EGLImageKHR image, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaEGLStreamConsumerConnect(cudaEglStreamConnection* conn, EGLStreamKHR eglStream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaEGLStreamConsumerConnectWithFlags(cudaEglStreamConnection* conn, EGLStreamKHR eglStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaEGLStreamConsumerDisconnect(cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaEGLStreamConsumerAcquireFrame(cudaEglStreamConnection* conn, cudaGraphicsResource_t* pCudaResource, cudaStream_t* pStream, unsigned int timeout) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaEGLStreamConsumerReleaseFrame(cudaEglStreamConnection* conn, cudaGraphicsResource_t pCudaResource, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaEGLStreamProducerConnect(cudaEglStreamConnection* conn, EGLStreamKHR eglStream, EGLint width, EGLint height) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaEGLStreamProducerDisconnect(cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaEGLStreamProducerPresentFrame(cudaEglStreamConnection* conn, cudaEglFrame eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaEGLStreamProducerReturnFrame(cudaEglStreamConnection* conn, cudaEglFrame* eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaGraphicsResourceGetMappedEglFrame(cudaEglFrame* eglFrame, cudaGraphicsResource_t resource, unsigned int index, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaEventCreateFromEGLSync(cudaEvent_t* phEvent, EGLSyncKHR eglSync, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaProfilerStart' in found_functions}} - -cdef cudaError_t cudaProfilerStart() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaProfilerStop' in found_functions}} - -cdef cudaError_t cudaProfilerStop() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaGLGetDevices(unsigned int* pCudaDeviceCount, int* pCudaDevices, unsigned int cudaDeviceCount, cudaGLDeviceList deviceList) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaGraphicsGLRegisterImage(cudaGraphicsResource** resource, GLuint image, GLenum target, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaGraphicsGLRegisterBuffer(cudaGraphicsResource** resource, GLuint buffer, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaVDPAUGetDevice(int* device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaVDPAUSetVDPAUDevice(int device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaGraphicsVDPAURegisterVideoSurface(cudaGraphicsResource** resource, VdpVideoSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaGraphicsVDPAURegisterOutputSurface(cudaGraphicsResource** resource, VdpOutputSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t getLocalRuntimeVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -cdef enum: cudaHostAllocDefault = 0 - -cdef enum: cudaHostAllocPortable = 1 - -cdef enum: cudaHostAllocMapped = 2 - -cdef enum: cudaHostAllocWriteCombined = 4 - -cdef enum: cudaHostRegisterDefault = 0 - -cdef enum: cudaHostRegisterPortable = 1 - -cdef enum: cudaHostRegisterMapped = 2 - -cdef enum: cudaHostRegisterIoMemory = 4 - -cdef enum: cudaHostRegisterReadOnly = 8 - -cdef enum: cudaPeerAccessDefault = 0 - -cdef enum: cudaStreamDefault = 0 - -cdef enum: cudaStreamNonBlocking = 1 - -cdef enum: cudaStreamLegacy = 1 - -cdef enum: cudaStreamPerThread = 2 - -cdef enum: cudaEventDefault = 0 - -cdef enum: cudaEventBlockingSync = 1 - -cdef enum: cudaEventDisableTiming = 2 - -cdef enum: cudaEventInterprocess = 4 - -cdef enum: cudaEventRecordDefault = 0 - -cdef enum: cudaEventRecordExternal = 1 - -cdef enum: cudaEventWaitDefault = 0 - -cdef enum: cudaEventWaitExternal = 1 - -cdef enum: cudaDeviceScheduleAuto = 0 - -cdef enum: cudaDeviceScheduleSpin = 1 - -cdef enum: cudaDeviceScheduleYield = 2 - -cdef enum: cudaDeviceScheduleBlockingSync = 4 - -cdef enum: cudaDeviceBlockingSync = 4 - -cdef enum: cudaDeviceScheduleMask = 7 - -cdef enum: cudaDeviceMapHost = 8 - -cdef enum: cudaDeviceLmemResizeToMax = 16 - -cdef enum: cudaDeviceSyncMemops = 128 - -cdef enum: cudaDeviceMask = 255 - -cdef enum: cudaArrayDefault = 0 - -cdef enum: cudaArrayLayered = 1 - -cdef enum: cudaArraySurfaceLoadStore = 2 - -cdef enum: cudaArrayCubemap = 4 - -cdef enum: cudaArrayTextureGather = 8 - -cdef enum: cudaArrayColorAttachment = 32 - -cdef enum: cudaArraySparse = 64 - -cdef enum: cudaArrayDeferredMapping = 128 - -cdef enum: cudaIpcMemLazyEnablePeerAccess = 1 - -cdef enum: cudaMemAttachGlobal = 1 - -cdef enum: cudaMemAttachHost = 2 - -cdef enum: cudaMemAttachSingle = 4 - -cdef enum: cudaOccupancyDefault = 0 - -cdef enum: cudaOccupancyDisableCachingOverride = 1 - -cdef enum: cudaCpuDeviceId = -1 - -cdef enum: cudaInvalidDeviceId = -2 - -cdef enum: cudaInitDeviceFlagsAreValid = 1 - -cdef enum: cudaCooperativeLaunchMultiDeviceNoPreSync = 1 - -cdef enum: cudaCooperativeLaunchMultiDeviceNoPostSync = 2 - -cdef enum: cudaArraySparsePropertiesSingleMipTail = 1 - -cdef enum: cudaMemPoolCreateUsageHwDecompress = 2 - -cdef enum: CUDA_IPC_HANDLE_SIZE = 64 - -cdef enum: cudaExternalMemoryDedicated = 1 - -cdef enum: cudaExternalSemaphoreSignalSkipNvSciBufMemSync = 1 - -cdef enum: cudaExternalSemaphoreWaitSkipNvSciBufMemSync = 2 - -cdef enum: cudaNvSciSyncAttrSignal = 1 - -cdef enum: cudaNvSciSyncAttrWait = 2 - -cdef enum: cudaGraphKernelNodePortDefault = 0 - -cdef enum: cudaGraphKernelNodePortProgrammatic = 1 - -cdef enum: cudaGraphKernelNodePortLaunchCompletion = 2 - -cdef enum: cudaStreamAttributeAccessPolicyWindow = 1 - -cdef enum: cudaStreamAttributeSynchronizationPolicy = 3 - -cdef enum: cudaStreamAttributeMemSyncDomainMap = 9 - -cdef enum: cudaStreamAttributeMemSyncDomain = 10 - -cdef enum: cudaStreamAttributePriority = 8 - -cdef enum: cudaKernelNodeAttributeAccessPolicyWindow = 1 - -cdef enum: cudaKernelNodeAttributeCooperative = 2 - -cdef enum: cudaKernelNodeAttributePriority = 8 - -cdef enum: cudaKernelNodeAttributeClusterDimension = 4 - -cdef enum: cudaKernelNodeAttributeClusterSchedulingPolicyPreference = 5 - -cdef enum: cudaKernelNodeAttributeMemSyncDomainMap = 9 - -cdef enum: cudaKernelNodeAttributeMemSyncDomain = 10 - -cdef enum: cudaKernelNodeAttributePreferredSharedMemoryCarveout = 14 - -cdef enum: cudaKernelNodeAttributeDeviceUpdatableKernelNode = 13 - -cdef enum: cudaSurfaceType1D = 1 - -cdef enum: cudaSurfaceType2D = 2 - -cdef enum: cudaSurfaceType3D = 3 - -cdef enum: cudaSurfaceTypeCubemap = 12 - -cdef enum: cudaSurfaceType1DLayered = 241 - -cdef enum: cudaSurfaceType2DLayered = 242 - -cdef enum: cudaSurfaceTypeCubemapLayered = 252 - -cdef enum: cudaTextureType1D = 1 - -cdef enum: cudaTextureType2D = 2 - -cdef enum: cudaTextureType3D = 3 - -cdef enum: cudaTextureTypeCubemap = 12 - -cdef enum: cudaTextureType1DLayered = 241 - -cdef enum: cudaTextureType2DLayered = 242 - -cdef enum: cudaTextureTypeCubemapLayered = 252 - -cdef enum: CUDART_VERSION = 12090 - -cdef enum: __CUDART_API_VERSION = 12090 - -cdef enum: CUDA_EGL_MAX_PLANES = 3 \ No newline at end of file diff --git a/cuda_bindings_12/cuda/bindings/cyruntime.pyx.in b/cuda_bindings_12/cuda/bindings/cyruntime.pyx similarity index 52% rename from cuda_bindings_12/cuda/bindings/cyruntime.pyx.in rename to cuda_bindings_12/cuda/bindings/cyruntime.pyx index 10a2b114315f..d053c5bdc0e3 100644 --- a/cuda_bindings_12/cuda/bindings/cyruntime.pyx.in +++ b/cuda_bindings_12/cuda/bindings/cyruntime.pyx @@ -1,1924 +1,1277 @@ # SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# # SPDX-License-Identifier: Apache-2.0 - +# # This code was automatically generated with version 12.9.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=61af0372d09a2cd574c4c1e6ba8f3412828209f65c8fdb2acdd18ad9a300146d -cimport cuda.bindings._bindings.cyruntime as cyruntime -cimport cython -{{if 'cudaDeviceReset' in found_functions}} +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=f0b358f9b17443961d62446fdc6ca004be07f64a5065cb4fce248353984d2bec +from ._internal cimport runtime as _runtime cdef cudaError_t cudaDeviceReset() except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceReset() -{{endif}} + return _runtime._cudaDeviceReset() -{{if 'cudaDeviceSynchronize' in found_functions}} cdef cudaError_t cudaDeviceSynchronize() except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceSynchronize() -{{endif}} + return _runtime._cudaDeviceSynchronize() -{{if 'cudaDeviceSetLimit' in found_functions}} cdef cudaError_t cudaDeviceSetLimit(cudaLimit limit, size_t value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceSetLimit(limit, value) -{{endif}} + return _runtime._cudaDeviceSetLimit(limit, value) -{{if 'cudaDeviceGetLimit' in found_functions}} cdef cudaError_t cudaDeviceGetLimit(size_t* pValue, cudaLimit limit) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetLimit(pValue, limit) -{{endif}} + return _runtime._cudaDeviceGetLimit(pValue, limit) -{{if 'cudaDeviceGetTexture1DLinearMaxWidth' in found_functions}} cdef cudaError_t cudaDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetTexture1DLinearMaxWidth(maxWidthInElements, fmtDesc, device) -{{endif}} + return _runtime._cudaDeviceGetTexture1DLinearMaxWidth(maxWidthInElements, fmtDesc, device) -{{if 'cudaDeviceGetCacheConfig' in found_functions}} cdef cudaError_t cudaDeviceGetCacheConfig(cudaFuncCache* pCacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetCacheConfig(pCacheConfig) -{{endif}} + return _runtime._cudaDeviceGetCacheConfig(pCacheConfig) -{{if 'cudaDeviceGetStreamPriorityRange' in found_functions}} cdef cudaError_t cudaDeviceGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetStreamPriorityRange(leastPriority, greatestPriority) -{{endif}} + return _runtime._cudaDeviceGetStreamPriorityRange(leastPriority, greatestPriority) -{{if 'cudaDeviceSetCacheConfig' in found_functions}} cdef cudaError_t cudaDeviceSetCacheConfig(cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceSetCacheConfig(cacheConfig) -{{endif}} + return _runtime._cudaDeviceSetCacheConfig(cacheConfig) -{{if 'cudaDeviceGetByPCIBusId' in found_functions}} cdef cudaError_t cudaDeviceGetByPCIBusId(int* device, const char* pciBusId) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetByPCIBusId(device, pciBusId) -{{endif}} + return _runtime._cudaDeviceGetByPCIBusId(device, pciBusId) -{{if 'cudaDeviceGetPCIBusId' in found_functions}} -cdef cudaError_t cudaDeviceGetPCIBusId(char* pciBusId, int length, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetPCIBusId(pciBusId, length, device) -{{endif}} +cdef cudaError_t cudaDeviceGetPCIBusId(char* pciBusId, int len, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaDeviceGetPCIBusId(pciBusId, len, device) -{{if 'cudaIpcGetEventHandle' in found_functions}} cdef cudaError_t cudaIpcGetEventHandle(cudaIpcEventHandle_t* handle, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaIpcGetEventHandle(handle, event) -{{endif}} + return _runtime._cudaIpcGetEventHandle(handle, event) -{{if 'cudaIpcOpenEventHandle' in found_functions}} cdef cudaError_t cudaIpcOpenEventHandle(cudaEvent_t* event, cudaIpcEventHandle_t handle) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaIpcOpenEventHandle(event, handle) -{{endif}} + return _runtime._cudaIpcOpenEventHandle(event, handle) -{{if 'cudaIpcGetMemHandle' in found_functions}} cdef cudaError_t cudaIpcGetMemHandle(cudaIpcMemHandle_t* handle, void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaIpcGetMemHandle(handle, devPtr) -{{endif}} + return _runtime._cudaIpcGetMemHandle(handle, devPtr) -{{if 'cudaIpcOpenMemHandle' in found_functions}} cdef cudaError_t cudaIpcOpenMemHandle(void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaIpcOpenMemHandle(devPtr, handle, flags) -{{endif}} + return _runtime._cudaIpcOpenMemHandle(devPtr, handle, flags) -{{if 'cudaIpcCloseMemHandle' in found_functions}} cdef cudaError_t cudaIpcCloseMemHandle(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaIpcCloseMemHandle(devPtr) -{{endif}} + return _runtime._cudaIpcCloseMemHandle(devPtr) -{{if 'cudaDeviceFlushGPUDirectRDMAWrites' in found_functions}} cdef cudaError_t cudaDeviceFlushGPUDirectRDMAWrites(cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceFlushGPUDirectRDMAWrites(target, scope) -{{endif}} + return _runtime._cudaDeviceFlushGPUDirectRDMAWrites(target, scope) -{{if 'cudaDeviceRegisterAsyncNotification' in found_functions}} cdef cudaError_t cudaDeviceRegisterAsyncNotification(int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceRegisterAsyncNotification(device, callbackFunc, userData, callback) -{{endif}} + return _runtime._cudaDeviceRegisterAsyncNotification(device, callbackFunc, userData, callback) -{{if 'cudaDeviceUnregisterAsyncNotification' in found_functions}} cdef cudaError_t cudaDeviceUnregisterAsyncNotification(int device, cudaAsyncCallbackHandle_t callback) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceUnregisterAsyncNotification(device, callback) -{{endif}} + return _runtime._cudaDeviceUnregisterAsyncNotification(device, callback) -{{if 'cudaDeviceGetSharedMemConfig' in found_functions}} cdef cudaError_t cudaDeviceGetSharedMemConfig(cudaSharedMemConfig* pConfig) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetSharedMemConfig(pConfig) -{{endif}} + return _runtime._cudaDeviceGetSharedMemConfig(pConfig) -{{if 'cudaDeviceSetSharedMemConfig' in found_functions}} cdef cudaError_t cudaDeviceSetSharedMemConfig(cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceSetSharedMemConfig(config) -{{endif}} + return _runtime._cudaDeviceSetSharedMemConfig(config) -{{if 'cudaGetLastError' in found_functions}} cdef cudaError_t cudaGetLastError() except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetLastError() -{{endif}} + return _runtime._cudaGetLastError() -{{if 'cudaPeekAtLastError' in found_functions}} cdef cudaError_t cudaPeekAtLastError() except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaPeekAtLastError() -{{endif}} + return _runtime._cudaPeekAtLastError() -{{if 'cudaGetErrorName' in found_functions}} -cdef const char* cudaGetErrorName(cudaError_t error) except ?NULL nogil: - return cyruntime._cudaGetErrorName(error) -{{endif}} +cdef const char* cudaGetErrorName(cudaError_t error) except?NULL nogil: + return _runtime._cudaGetErrorName(error) -{{if 'cudaGetErrorString' in found_functions}} -cdef const char* cudaGetErrorString(cudaError_t error) except ?NULL nogil: - return cyruntime._cudaGetErrorString(error) -{{endif}} +cdef const char* cudaGetErrorString(cudaError_t error) except?NULL nogil: + return _runtime._cudaGetErrorString(error) -{{if 'cudaGetDeviceCount' in found_functions}} cdef cudaError_t cudaGetDeviceCount(int* count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetDeviceCount(count) -{{endif}} + return _runtime._cudaGetDeviceCount(count) -{{if 'cudaGetDeviceProperties_v2' in found_functions}} cdef cudaError_t cudaGetDeviceProperties(cudaDeviceProp* prop, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetDeviceProperties_v2(prop, device) -{{endif}} + return _runtime._cudaGetDeviceProperties_v2(prop, device) -{{if 'cudaDeviceGetAttribute' in found_functions}} cdef cudaError_t cudaDeviceGetAttribute(int* value, cudaDeviceAttr attr, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetAttribute(value, attr, device) -{{endif}} + return _runtime._cudaDeviceGetAttribute(value, attr, device) -{{if 'cudaDeviceGetDefaultMemPool' in found_functions}} cdef cudaError_t cudaDeviceGetDefaultMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetDefaultMemPool(memPool, device) -{{endif}} + return _runtime._cudaDeviceGetDefaultMemPool(memPool, device) -{{if 'cudaDeviceSetMemPool' in found_functions}} cdef cudaError_t cudaDeviceSetMemPool(int device, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceSetMemPool(device, memPool) -{{endif}} + return _runtime._cudaDeviceSetMemPool(device, memPool) -{{if 'cudaDeviceGetMemPool' in found_functions}} cdef cudaError_t cudaDeviceGetMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetMemPool(memPool, device) -{{endif}} + return _runtime._cudaDeviceGetMemPool(memPool, device) -{{if 'cudaDeviceGetNvSciSyncAttributes' in found_functions}} cdef cudaError_t cudaDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, int device, int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, device, flags) -{{endif}} + return _runtime._cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, device, flags) -{{if 'cudaDeviceGetP2PAttribute' in found_functions}} cdef cudaError_t cudaDeviceGetP2PAttribute(int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetP2PAttribute(value, attr, srcDevice, dstDevice) -{{endif}} + return _runtime._cudaDeviceGetP2PAttribute(value, attr, srcDevice, dstDevice) -{{if 'cudaChooseDevice' in found_functions}} cdef cudaError_t cudaChooseDevice(int* device, const cudaDeviceProp* prop) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaChooseDevice(device, prop) -{{endif}} + return _runtime._cudaChooseDevice(device, prop) -{{if 'cudaInitDevice' in found_functions}} cdef cudaError_t cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaInitDevice(device, deviceFlags, flags) -{{endif}} + return _runtime._cudaInitDevice(device, deviceFlags, flags) -{{if 'cudaSetDevice' in found_functions}} cdef cudaError_t cudaSetDevice(int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaSetDevice(device) -{{endif}} + return _runtime._cudaSetDevice(device) -{{if 'cudaGetDevice' in found_functions}} cdef cudaError_t cudaGetDevice(int* device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetDevice(device) -{{endif}} + return _runtime._cudaGetDevice(device) -{{if 'cudaSetDeviceFlags' in found_functions}} cdef cudaError_t cudaSetDeviceFlags(unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaSetDeviceFlags(flags) -{{endif}} + return _runtime._cudaSetDeviceFlags(flags) -{{if 'cudaGetDeviceFlags' in found_functions}} cdef cudaError_t cudaGetDeviceFlags(unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetDeviceFlags(flags) -{{endif}} + return _runtime._cudaGetDeviceFlags(flags) -{{if 'cudaStreamCreate' in found_functions}} cdef cudaError_t cudaStreamCreate(cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamCreate(pStream) -{{endif}} + return _runtime._cudaStreamCreate(pStream) -{{if 'cudaStreamCreateWithFlags' in found_functions}} cdef cudaError_t cudaStreamCreateWithFlags(cudaStream_t* pStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamCreateWithFlags(pStream, flags) -{{endif}} + return _runtime._cudaStreamCreateWithFlags(pStream, flags) -{{if 'cudaStreamCreateWithPriority' in found_functions}} cdef cudaError_t cudaStreamCreateWithPriority(cudaStream_t* pStream, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamCreateWithPriority(pStream, flags, priority) -{{endif}} + return _runtime._cudaStreamCreateWithPriority(pStream, flags, priority) -{{if 'cudaStreamGetPriority' in found_functions}} cdef cudaError_t cudaStreamGetPriority(cudaStream_t hStream, int* priority) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamGetPriority(hStream, priority) -{{endif}} + return _runtime._cudaStreamGetPriority(hStream, priority) -{{if 'cudaStreamGetFlags' in found_functions}} cdef cudaError_t cudaStreamGetFlags(cudaStream_t hStream, unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamGetFlags(hStream, flags) -{{endif}} + return _runtime._cudaStreamGetFlags(hStream, flags) -{{if 'cudaStreamGetId' in found_functions}} cdef cudaError_t cudaStreamGetId(cudaStream_t hStream, unsigned long long* streamId) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamGetId(hStream, streamId) -{{endif}} + return _runtime._cudaStreamGetId(hStream, streamId) -{{if 'cudaStreamGetDevice' in found_functions}} cdef cudaError_t cudaStreamGetDevice(cudaStream_t hStream, int* device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamGetDevice(hStream, device) -{{endif}} + return _runtime._cudaStreamGetDevice(hStream, device) -{{if 'cudaCtxResetPersistingL2Cache' in found_functions}} cdef cudaError_t cudaCtxResetPersistingL2Cache() except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaCtxResetPersistingL2Cache() -{{endif}} + return _runtime._cudaCtxResetPersistingL2Cache() -{{if 'cudaStreamCopyAttributes' in found_functions}} cdef cudaError_t cudaStreamCopyAttributes(cudaStream_t dst, cudaStream_t src) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamCopyAttributes(dst, src) -{{endif}} + return _runtime._cudaStreamCopyAttributes(dst, src) -{{if 'cudaStreamGetAttribute' in found_functions}} cdef cudaError_t cudaStreamGetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, cudaStreamAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamGetAttribute(hStream, attr, value_out) -{{endif}} + return _runtime._cudaStreamGetAttribute(hStream, attr, value_out) -{{if 'cudaStreamSetAttribute' in found_functions}} cdef cudaError_t cudaStreamSetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, const cudaStreamAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamSetAttribute(hStream, attr, value) -{{endif}} + return _runtime._cudaStreamSetAttribute(hStream, attr, value) -{{if 'cudaStreamDestroy' in found_functions}} cdef cudaError_t cudaStreamDestroy(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamDestroy(stream) -{{endif}} + return _runtime._cudaStreamDestroy(stream) -{{if 'cudaStreamWaitEvent' in found_functions}} cdef cudaError_t cudaStreamWaitEvent(cudaStream_t stream, cudaEvent_t event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamWaitEvent(stream, event, flags) -{{endif}} + return _runtime._cudaStreamWaitEvent(stream, event, flags) -{{if 'cudaStreamAddCallback' in found_functions}} cdef cudaError_t cudaStreamAddCallback(cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamAddCallback(stream, callback, userData, flags) -{{endif}} + return _runtime._cudaStreamAddCallback(stream, callback, userData, flags) -{{if 'cudaStreamSynchronize' in found_functions}} cdef cudaError_t cudaStreamSynchronize(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamSynchronize(stream) -{{endif}} + return _runtime._cudaStreamSynchronize(stream) -{{if 'cudaStreamQuery' in found_functions}} cdef cudaError_t cudaStreamQuery(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamQuery(stream) -{{endif}} + return _runtime._cudaStreamQuery(stream) -{{if 'cudaStreamAttachMemAsync' in found_functions}} cdef cudaError_t cudaStreamAttachMemAsync(cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamAttachMemAsync(stream, devPtr, length, flags) -{{endif}} + return _runtime._cudaStreamAttachMemAsync(stream, devPtr, length, flags) -{{if 'cudaStreamBeginCapture' in found_functions}} cdef cudaError_t cudaStreamBeginCapture(cudaStream_t stream, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamBeginCapture(stream, mode) -{{endif}} + return _runtime._cudaStreamBeginCapture(stream, mode) -{{if 'cudaStreamBeginCaptureToGraph' in found_functions}} cdef cudaError_t cudaStreamBeginCaptureToGraph(cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamBeginCaptureToGraph(stream, graph, dependencies, dependencyData, numDependencies, mode) -{{endif}} + return _runtime._cudaStreamBeginCaptureToGraph(stream, graph, dependencies, dependencyData, numDependencies, mode) -{{if 'cudaThreadExchangeStreamCaptureMode' in found_functions}} cdef cudaError_t cudaThreadExchangeStreamCaptureMode(cudaStreamCaptureMode* mode) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaThreadExchangeStreamCaptureMode(mode) -{{endif}} + return _runtime._cudaThreadExchangeStreamCaptureMode(mode) -{{if 'cudaStreamEndCapture' in found_functions}} cdef cudaError_t cudaStreamEndCapture(cudaStream_t stream, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamEndCapture(stream, pGraph) -{{endif}} + return _runtime._cudaStreamEndCapture(stream, pGraph) -{{if 'cudaStreamIsCapturing' in found_functions}} cdef cudaError_t cudaStreamIsCapturing(cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamIsCapturing(stream, pCaptureStatus) -{{endif}} + return _runtime._cudaStreamIsCapturing(stream, pCaptureStatus) -{{if 'cudaStreamGetCaptureInfo_v2' in found_functions}} cdef cudaError_t cudaStreamGetCaptureInfo(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamGetCaptureInfo_v2(stream, captureStatus_out, id_out, graph_out, dependencies_out, numDependencies_out) -{{endif}} + return _runtime._cudaStreamGetCaptureInfo_v2(stream, captureStatus_out, id_out, graph_out, dependencies_out, numDependencies_out) -{{if 'cudaStreamGetCaptureInfo_v3' in found_functions}} cdef cudaError_t cudaStreamGetCaptureInfo_v3(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamGetCaptureInfo_v3(stream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) -{{endif}} + return _runtime._cudaStreamGetCaptureInfo_v3(stream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) -{{if 'cudaStreamUpdateCaptureDependencies' in found_functions}} cdef cudaError_t cudaStreamUpdateCaptureDependencies(cudaStream_t stream, cudaGraphNode_t* dependencies, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamUpdateCaptureDependencies(stream, dependencies, numDependencies, flags) -{{endif}} + return _runtime._cudaStreamUpdateCaptureDependencies(stream, dependencies, numDependencies, flags) -{{if 'cudaStreamUpdateCaptureDependencies_v2' in found_functions}} cdef cudaError_t cudaStreamUpdateCaptureDependencies_v2(cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamUpdateCaptureDependencies_v2(stream, dependencies, dependencyData, numDependencies, flags) -{{endif}} + return _runtime._cudaStreamUpdateCaptureDependencies_v2(stream, dependencies, dependencyData, numDependencies, flags) -{{if 'cudaEventCreate' in found_functions}} cdef cudaError_t cudaEventCreate(cudaEvent_t* event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEventCreate(event) -{{endif}} + return _runtime._cudaEventCreate(event) -{{if 'cudaEventCreateWithFlags' in found_functions}} cdef cudaError_t cudaEventCreateWithFlags(cudaEvent_t* event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEventCreateWithFlags(event, flags) -{{endif}} + return _runtime._cudaEventCreateWithFlags(event, flags) -{{if 'cudaEventRecord' in found_functions}} cdef cudaError_t cudaEventRecord(cudaEvent_t event, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEventRecord(event, stream) -{{endif}} + return _runtime._cudaEventRecord(event, stream) -{{if 'cudaEventRecordWithFlags' in found_functions}} cdef cudaError_t cudaEventRecordWithFlags(cudaEvent_t event, cudaStream_t stream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEventRecordWithFlags(event, stream, flags) -{{endif}} + return _runtime._cudaEventRecordWithFlags(event, stream, flags) -{{if 'cudaEventQuery' in found_functions}} cdef cudaError_t cudaEventQuery(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEventQuery(event) -{{endif}} + return _runtime._cudaEventQuery(event) -{{if 'cudaEventSynchronize' in found_functions}} cdef cudaError_t cudaEventSynchronize(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEventSynchronize(event) -{{endif}} + return _runtime._cudaEventSynchronize(event) -{{if 'cudaEventDestroy' in found_functions}} cdef cudaError_t cudaEventDestroy(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEventDestroy(event) -{{endif}} + return _runtime._cudaEventDestroy(event) -{{if 'cudaEventElapsedTime' in found_functions}} cdef cudaError_t cudaEventElapsedTime(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEventElapsedTime(ms, start, end) -{{endif}} + return _runtime._cudaEventElapsedTime(ms, start, end) -{{if 'cudaEventElapsedTime_v2' in found_functions}} cdef cudaError_t cudaEventElapsedTime_v2(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEventElapsedTime_v2(ms, start, end) -{{endif}} + return _runtime._cudaEventElapsedTime_v2(ms, start, end) -{{if 'cudaImportExternalMemory' in found_functions}} cdef cudaError_t cudaImportExternalMemory(cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaImportExternalMemory(extMem_out, memHandleDesc) -{{endif}} + return _runtime._cudaImportExternalMemory(extMem_out, memHandleDesc) -{{if 'cudaExternalMemoryGetMappedBuffer' in found_functions}} cdef cudaError_t cudaExternalMemoryGetMappedBuffer(void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaExternalMemoryGetMappedBuffer(devPtr, extMem, bufferDesc) -{{endif}} + return _runtime._cudaExternalMemoryGetMappedBuffer(devPtr, extMem, bufferDesc) -{{if 'cudaExternalMemoryGetMappedMipmappedArray' in found_functions}} cdef cudaError_t cudaExternalMemoryGetMappedMipmappedArray(cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaExternalMemoryGetMappedMipmappedArray(mipmap, extMem, mipmapDesc) -{{endif}} + return _runtime._cudaExternalMemoryGetMappedMipmappedArray(mipmap, extMem, mipmapDesc) -{{if 'cudaDestroyExternalMemory' in found_functions}} cdef cudaError_t cudaDestroyExternalMemory(cudaExternalMemory_t extMem) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDestroyExternalMemory(extMem) -{{endif}} + return _runtime._cudaDestroyExternalMemory(extMem) -{{if 'cudaImportExternalSemaphore' in found_functions}} cdef cudaError_t cudaImportExternalSemaphore(cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaImportExternalSemaphore(extSem_out, semHandleDesc) -{{endif}} + return _runtime._cudaImportExternalSemaphore(extSem_out, semHandleDesc) -{{if 'cudaSignalExternalSemaphoresAsync_v2' in found_functions}} cdef cudaError_t cudaSignalExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaSignalExternalSemaphoresAsync_v2(extSemArray, paramsArray, numExtSems, stream) -{{endif}} + return _runtime._cudaSignalExternalSemaphoresAsync_v2(extSemArray, paramsArray, numExtSems, stream) -{{if 'cudaWaitExternalSemaphoresAsync_v2' in found_functions}} cdef cudaError_t cudaWaitExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaWaitExternalSemaphoresAsync_v2(extSemArray, paramsArray, numExtSems, stream) -{{endif}} + return _runtime._cudaWaitExternalSemaphoresAsync_v2(extSemArray, paramsArray, numExtSems, stream) -{{if 'cudaDestroyExternalSemaphore' in found_functions}} cdef cudaError_t cudaDestroyExternalSemaphore(cudaExternalSemaphore_t extSem) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDestroyExternalSemaphore(extSem) -{{endif}} + return _runtime._cudaDestroyExternalSemaphore(extSem) -{{if 'cudaFuncSetCacheConfig' in found_functions}} cdef cudaError_t cudaFuncSetCacheConfig(const void* func, cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaFuncSetCacheConfig(func, cacheConfig) -{{endif}} + return _runtime._cudaFuncSetCacheConfig(func, cacheConfig) -{{if 'cudaFuncGetAttributes' in found_functions}} cdef cudaError_t cudaFuncGetAttributes(cudaFuncAttributes* attr, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaFuncGetAttributes(attr, func) -{{endif}} + return _runtime._cudaFuncGetAttributes(attr, func) -{{if 'cudaFuncSetAttribute' in found_functions}} cdef cudaError_t cudaFuncSetAttribute(const void* func, cudaFuncAttribute attr, int value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaFuncSetAttribute(func, attr, value) -{{endif}} + return _runtime._cudaFuncSetAttribute(func, attr, value) + + +cdef cudaError_t cudaFuncGetName(const char** name, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaFuncGetName(name, func) + + +cdef cudaError_t cudaFuncGetParamInfo(const void* func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaFuncGetParamInfo(func, paramIndex, paramOffset, paramSize) -{{if 'cudaLaunchHostFunc' in found_functions}} cdef cudaError_t cudaLaunchHostFunc(cudaStream_t stream, cudaHostFn_t fn, void* userData) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaLaunchHostFunc(stream, fn, userData) -{{endif}} + return _runtime._cudaLaunchHostFunc(stream, fn, userData) -{{if 'cudaFuncSetSharedMemConfig' in found_functions}} cdef cudaError_t cudaFuncSetSharedMemConfig(const void* func, cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaFuncSetSharedMemConfig(func, config) -{{endif}} + return _runtime._cudaFuncSetSharedMemConfig(func, config) -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}} cdef cudaError_t cudaOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaOccupancyMaxActiveBlocksPerMultiprocessor(numBlocks, func, blockSize, dynamicSMemSize) -{{endif}} + return _runtime._cudaOccupancyMaxActiveBlocksPerMultiprocessor(numBlocks, func, blockSize, dynamicSMemSize) -{{if 'cudaOccupancyAvailableDynamicSMemPerBlock' in found_functions}} cdef cudaError_t cudaOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaOccupancyAvailableDynamicSMemPerBlock(dynamicSmemSize, func, numBlocks, blockSize) -{{endif}} + return _runtime._cudaOccupancyAvailableDynamicSMemPerBlock(dynamicSmemSize, func, numBlocks, blockSize) -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}} cdef cudaError_t cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(numBlocks, func, blockSize, dynamicSMemSize, flags) -{{endif}} + return _runtime._cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(numBlocks, func, blockSize, dynamicSMemSize, flags) -{{if 'cudaMallocManaged' in found_functions}} cdef cudaError_t cudaMallocManaged(void** devPtr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMallocManaged(devPtr, size, flags) -{{endif}} + return _runtime._cudaMallocManaged(devPtr, size, flags) -{{if 'cudaMalloc' in found_functions}} cdef cudaError_t cudaMalloc(void** devPtr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMalloc(devPtr, size) -{{endif}} + return _runtime._cudaMalloc(devPtr, size) -{{if 'cudaMallocHost' in found_functions}} cdef cudaError_t cudaMallocHost(void** ptr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMallocHost(ptr, size) -{{endif}} + return _runtime._cudaMallocHost(ptr, size) -{{if 'cudaMallocPitch' in found_functions}} cdef cudaError_t cudaMallocPitch(void** devPtr, size_t* pitch, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMallocPitch(devPtr, pitch, width, height) -{{endif}} + return _runtime._cudaMallocPitch(devPtr, pitch, width, height) -{{if 'cudaMallocArray' in found_functions}} cdef cudaError_t cudaMallocArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMallocArray(array, desc, width, height, flags) -{{endif}} + return _runtime._cudaMallocArray(array, desc, width, height, flags) -{{if 'cudaFree' in found_functions}} cdef cudaError_t cudaFree(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaFree(devPtr) -{{endif}} + return _runtime._cudaFree(devPtr) -{{if 'cudaFreeHost' in found_functions}} cdef cudaError_t cudaFreeHost(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaFreeHost(ptr) -{{endif}} + return _runtime._cudaFreeHost(ptr) -{{if 'cudaFreeArray' in found_functions}} cdef cudaError_t cudaFreeArray(cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaFreeArray(array) -{{endif}} + return _runtime._cudaFreeArray(array) -{{if 'cudaFreeMipmappedArray' in found_functions}} cdef cudaError_t cudaFreeMipmappedArray(cudaMipmappedArray_t mipmappedArray) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaFreeMipmappedArray(mipmappedArray) -{{endif}} + return _runtime._cudaFreeMipmappedArray(mipmappedArray) -{{if 'cudaHostAlloc' in found_functions}} cdef cudaError_t cudaHostAlloc(void** pHost, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaHostAlloc(pHost, size, flags) -{{endif}} + return _runtime._cudaHostAlloc(pHost, size, flags) -{{if 'cudaHostRegister' in found_functions}} cdef cudaError_t cudaHostRegister(void* ptr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaHostRegister(ptr, size, flags) -{{endif}} + return _runtime._cudaHostRegister(ptr, size, flags) -{{if 'cudaHostUnregister' in found_functions}} cdef cudaError_t cudaHostUnregister(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaHostUnregister(ptr) -{{endif}} + return _runtime._cudaHostUnregister(ptr) -{{if 'cudaHostGetDevicePointer' in found_functions}} cdef cudaError_t cudaHostGetDevicePointer(void** pDevice, void* pHost, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaHostGetDevicePointer(pDevice, pHost, flags) -{{endif}} + return _runtime._cudaHostGetDevicePointer(pDevice, pHost, flags) -{{if 'cudaHostGetFlags' in found_functions}} cdef cudaError_t cudaHostGetFlags(unsigned int* pFlags, void* pHost) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaHostGetFlags(pFlags, pHost) -{{endif}} + return _runtime._cudaHostGetFlags(pFlags, pHost) -{{if 'cudaMalloc3D' in found_functions}} cdef cudaError_t cudaMalloc3D(cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMalloc3D(pitchedDevPtr, extent) -{{endif}} + return _runtime._cudaMalloc3D(pitchedDevPtr, extent) -{{if 'cudaMalloc3DArray' in found_functions}} cdef cudaError_t cudaMalloc3DArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMalloc3DArray(array, desc, extent, flags) -{{endif}} + return _runtime._cudaMalloc3DArray(array, desc, extent, flags) -{{if 'cudaMallocMipmappedArray' in found_functions}} cdef cudaError_t cudaMallocMipmappedArray(cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMallocMipmappedArray(mipmappedArray, desc, extent, numLevels, flags) -{{endif}} + return _runtime._cudaMallocMipmappedArray(mipmappedArray, desc, extent, numLevels, flags) -{{if 'cudaGetMipmappedArrayLevel' in found_functions}} cdef cudaError_t cudaGetMipmappedArrayLevel(cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetMipmappedArrayLevel(levelArray, mipmappedArray, level) -{{endif}} + return _runtime._cudaGetMipmappedArrayLevel(levelArray, mipmappedArray, level) -{{if 'cudaMemcpy3D' in found_functions}} cdef cudaError_t cudaMemcpy3D(const cudaMemcpy3DParms* p) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpy3D(p) -{{endif}} + return _runtime._cudaMemcpy3D(p) -{{if 'cudaMemcpy3DPeer' in found_functions}} cdef cudaError_t cudaMemcpy3DPeer(const cudaMemcpy3DPeerParms* p) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpy3DPeer(p) -{{endif}} + return _runtime._cudaMemcpy3DPeer(p) -{{if 'cudaMemcpy3DAsync' in found_functions}} cdef cudaError_t cudaMemcpy3DAsync(const cudaMemcpy3DParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpy3DAsync(p, stream) -{{endif}} + return _runtime._cudaMemcpy3DAsync(p, stream) -{{if 'cudaMemcpy3DPeerAsync' in found_functions}} cdef cudaError_t cudaMemcpy3DPeerAsync(const cudaMemcpy3DPeerParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpy3DPeerAsync(p, stream) -{{endif}} + return _runtime._cudaMemcpy3DPeerAsync(p, stream) -{{if 'cudaMemGetInfo' in found_functions}} cdef cudaError_t cudaMemGetInfo(size_t* free, size_t* total) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemGetInfo(free, total) -{{endif}} + return _runtime._cudaMemGetInfo(free, total) -{{if 'cudaArrayGetInfo' in found_functions}} cdef cudaError_t cudaArrayGetInfo(cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaArrayGetInfo(desc, extent, flags, array) -{{endif}} + return _runtime._cudaArrayGetInfo(desc, extent, flags, array) -{{if 'cudaArrayGetPlane' in found_functions}} cdef cudaError_t cudaArrayGetPlane(cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaArrayGetPlane(pPlaneArray, hArray, planeIdx) -{{endif}} + return _runtime._cudaArrayGetPlane(pPlaneArray, hArray, planeIdx) -{{if 'cudaArrayGetMemoryRequirements' in found_functions}} cdef cudaError_t cudaArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaArrayGetMemoryRequirements(memoryRequirements, array, device) -{{endif}} + return _runtime._cudaArrayGetMemoryRequirements(memoryRequirements, array, device) -{{if 'cudaMipmappedArrayGetMemoryRequirements' in found_functions}} cdef cudaError_t cudaMipmappedArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMipmappedArrayGetMemoryRequirements(memoryRequirements, mipmap, device) -{{endif}} + return _runtime._cudaMipmappedArrayGetMemoryRequirements(memoryRequirements, mipmap, device) -{{if 'cudaArrayGetSparseProperties' in found_functions}} cdef cudaError_t cudaArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaArrayGetSparseProperties(sparseProperties, array) -{{endif}} + return _runtime._cudaArrayGetSparseProperties(sparseProperties, array) -{{if 'cudaMipmappedArrayGetSparseProperties' in found_functions}} cdef cudaError_t cudaMipmappedArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMipmappedArrayGetSparseProperties(sparseProperties, mipmap) -{{endif}} + return _runtime._cudaMipmappedArrayGetSparseProperties(sparseProperties, mipmap) -{{if 'cudaMemcpy' in found_functions}} cdef cudaError_t cudaMemcpy(void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpy(dst, src, count, kind) -{{endif}} + return _runtime._cudaMemcpy(dst, src, count, kind) -{{if 'cudaMemcpyPeer' in found_functions}} cdef cudaError_t cudaMemcpyPeer(void* dst, int dstDevice, const void* src, int srcDevice, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpyPeer(dst, dstDevice, src, srcDevice, count) -{{endif}} + return _runtime._cudaMemcpyPeer(dst, dstDevice, src, srcDevice, count) -{{if 'cudaMemcpy2D' in found_functions}} cdef cudaError_t cudaMemcpy2D(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpy2D(dst, dpitch, src, spitch, width, height, kind) -{{endif}} + return _runtime._cudaMemcpy2D(dst, dpitch, src, spitch, width, height, kind) -{{if 'cudaMemcpy2DToArray' in found_functions}} cdef cudaError_t cudaMemcpy2DToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpy2DToArray(dst, wOffset, hOffset, src, spitch, width, height, kind) -{{endif}} + return _runtime._cudaMemcpy2DToArray(dst, wOffset, hOffset, src, spitch, width, height, kind) -{{if 'cudaMemcpy2DFromArray' in found_functions}} cdef cudaError_t cudaMemcpy2DFromArray(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpy2DFromArray(dst, dpitch, src, wOffset, hOffset, width, height, kind) -{{endif}} + return _runtime._cudaMemcpy2DFromArray(dst, dpitch, src, wOffset, hOffset, width, height, kind) -{{if 'cudaMemcpy2DArrayToArray' in found_functions}} cdef cudaError_t cudaMemcpy2DArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpy2DArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, width, height, kind) -{{endif}} + return _runtime._cudaMemcpy2DArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, width, height, kind) -{{if 'cudaMemcpyAsync' in found_functions}} cdef cudaError_t cudaMemcpyAsync(void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpyAsync(dst, src, count, kind, stream) -{{endif}} + return _runtime._cudaMemcpyAsync(dst, src, count, kind, stream) -{{if 'cudaMemcpyPeerAsync' in found_functions}} cdef cudaError_t cudaMemcpyPeerAsync(void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpyPeerAsync(dst, dstDevice, src, srcDevice, count, stream) -{{endif}} + return _runtime._cudaMemcpyPeerAsync(dst, dstDevice, src, srcDevice, count, stream) -{{if 'cudaMemcpyBatchAsync' in found_functions}} -cdef cudaError_t cudaMemcpyBatchAsync(void** dsts, void** srcs, size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, size_t* failIdx, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpyBatchAsync(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, failIdx, stream) -{{endif}} +cdef cudaError_t cudaMemcpyBatchAsync(const void** dsts, void** srcs, size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, size_t* failIdx, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaMemcpyBatchAsync(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, failIdx, stream) -{{if 'cudaMemcpy3DBatchAsync' in found_functions}} cdef cudaError_t cudaMemcpy3DBatchAsync(size_t numOps, cudaMemcpy3DBatchOp* opList, size_t* failIdx, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpy3DBatchAsync(numOps, opList, failIdx, flags, stream) -{{endif}} + return _runtime._cudaMemcpy3DBatchAsync(numOps, opList, failIdx, flags, stream) -{{if 'cudaMemcpy2DAsync' in found_functions}} cdef cudaError_t cudaMemcpy2DAsync(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpy2DAsync(dst, dpitch, src, spitch, width, height, kind, stream) -{{endif}} + return _runtime._cudaMemcpy2DAsync(dst, dpitch, src, spitch, width, height, kind, stream) -{{if 'cudaMemcpy2DToArrayAsync' in found_functions}} cdef cudaError_t cudaMemcpy2DToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpy2DToArrayAsync(dst, wOffset, hOffset, src, spitch, width, height, kind, stream) -{{endif}} + return _runtime._cudaMemcpy2DToArrayAsync(dst, wOffset, hOffset, src, spitch, width, height, kind, stream) -{{if 'cudaMemcpy2DFromArrayAsync' in found_functions}} cdef cudaError_t cudaMemcpy2DFromArrayAsync(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpy2DFromArrayAsync(dst, dpitch, src, wOffset, hOffset, width, height, kind, stream) -{{endif}} + return _runtime._cudaMemcpy2DFromArrayAsync(dst, dpitch, src, wOffset, hOffset, width, height, kind, stream) -{{if 'cudaMemset' in found_functions}} cdef cudaError_t cudaMemset(void* devPtr, int value, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemset(devPtr, value, count) -{{endif}} + return _runtime._cudaMemset(devPtr, value, count) -{{if 'cudaMemset2D' in found_functions}} cdef cudaError_t cudaMemset2D(void* devPtr, size_t pitch, int value, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemset2D(devPtr, pitch, value, width, height) -{{endif}} + return _runtime._cudaMemset2D(devPtr, pitch, value, width, height) -{{if 'cudaMemset3D' in found_functions}} cdef cudaError_t cudaMemset3D(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemset3D(pitchedDevPtr, value, extent) -{{endif}} + return _runtime._cudaMemset3D(pitchedDevPtr, value, extent) -{{if 'cudaMemsetAsync' in found_functions}} cdef cudaError_t cudaMemsetAsync(void* devPtr, int value, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemsetAsync(devPtr, value, count, stream) -{{endif}} + return _runtime._cudaMemsetAsync(devPtr, value, count, stream) -{{if 'cudaMemset2DAsync' in found_functions}} cdef cudaError_t cudaMemset2DAsync(void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemset2DAsync(devPtr, pitch, value, width, height, stream) -{{endif}} + return _runtime._cudaMemset2DAsync(devPtr, pitch, value, width, height, stream) -{{if 'cudaMemset3DAsync' in found_functions}} cdef cudaError_t cudaMemset3DAsync(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemset3DAsync(pitchedDevPtr, value, extent, stream) -{{endif}} + return _runtime._cudaMemset3DAsync(pitchedDevPtr, value, extent, stream) -{{if 'cudaMemPrefetchAsync' in found_functions}} cdef cudaError_t cudaMemPrefetchAsync(const void* devPtr, size_t count, int dstDevice, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemPrefetchAsync(devPtr, count, dstDevice, stream) -{{endif}} + return _runtime._cudaMemPrefetchAsync(devPtr, count, dstDevice, stream) -{{if 'cudaMemPrefetchAsync_v2' in found_functions}} cdef cudaError_t cudaMemPrefetchAsync_v2(const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemPrefetchAsync_v2(devPtr, count, location, flags, stream) -{{endif}} + return _runtime._cudaMemPrefetchAsync_v2(devPtr, count, location, flags, stream) -{{if 'cudaMemAdvise' in found_functions}} cdef cudaError_t cudaMemAdvise(const void* devPtr, size_t count, cudaMemoryAdvise advice, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemAdvise(devPtr, count, advice, device) -{{endif}} + return _runtime._cudaMemAdvise(devPtr, count, advice, device) -{{if 'cudaMemAdvise_v2' in found_functions}} cdef cudaError_t cudaMemAdvise_v2(const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemAdvise_v2(devPtr, count, advice, location) -{{endif}} + return _runtime._cudaMemAdvise_v2(devPtr, count, advice, location) -{{if 'cudaMemRangeGetAttribute' in found_functions}} cdef cudaError_t cudaMemRangeGetAttribute(void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemRangeGetAttribute(data, dataSize, attribute, devPtr, count) -{{endif}} + return _runtime._cudaMemRangeGetAttribute(data, dataSize, attribute, devPtr, count) -{{if 'cudaMemRangeGetAttributes' in found_functions}} cdef cudaError_t cudaMemRangeGetAttributes(void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemRangeGetAttributes(data, dataSizes, attributes, numAttributes, devPtr, count) -{{endif}} + return _runtime._cudaMemRangeGetAttributes(data, dataSizes, attributes, numAttributes, devPtr, count) -{{if 'cudaMemcpyToArray' in found_functions}} cdef cudaError_t cudaMemcpyToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpyToArray(dst, wOffset, hOffset, src, count, kind) -{{endif}} + return _runtime._cudaMemcpyToArray(dst, wOffset, hOffset, src, count, kind) -{{if 'cudaMemcpyFromArray' in found_functions}} cdef cudaError_t cudaMemcpyFromArray(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpyFromArray(dst, src, wOffset, hOffset, count, kind) -{{endif}} + return _runtime._cudaMemcpyFromArray(dst, src, wOffset, hOffset, count, kind) -{{if 'cudaMemcpyArrayToArray' in found_functions}} cdef cudaError_t cudaMemcpyArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpyArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, count, kind) -{{endif}} + return _runtime._cudaMemcpyArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, count, kind) -{{if 'cudaMemcpyToArrayAsync' in found_functions}} cdef cudaError_t cudaMemcpyToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpyToArrayAsync(dst, wOffset, hOffset, src, count, kind, stream) -{{endif}} + return _runtime._cudaMemcpyToArrayAsync(dst, wOffset, hOffset, src, count, kind, stream) -{{if 'cudaMemcpyFromArrayAsync' in found_functions}} cdef cudaError_t cudaMemcpyFromArrayAsync(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpyFromArrayAsync(dst, src, wOffset, hOffset, count, kind, stream) -{{endif}} + return _runtime._cudaMemcpyFromArrayAsync(dst, src, wOffset, hOffset, count, kind, stream) -{{if 'cudaMallocAsync' in found_functions}} cdef cudaError_t cudaMallocAsync(void** devPtr, size_t size, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMallocAsync(devPtr, size, hStream) -{{endif}} + return _runtime._cudaMallocAsync(devPtr, size, hStream) -{{if 'cudaFreeAsync' in found_functions}} cdef cudaError_t cudaFreeAsync(void* devPtr, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaFreeAsync(devPtr, hStream) -{{endif}} + return _runtime._cudaFreeAsync(devPtr, hStream) -{{if 'cudaMemPoolTrimTo' in found_functions}} cdef cudaError_t cudaMemPoolTrimTo(cudaMemPool_t memPool, size_t minBytesToKeep) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemPoolTrimTo(memPool, minBytesToKeep) -{{endif}} + return _runtime._cudaMemPoolTrimTo(memPool, minBytesToKeep) -{{if 'cudaMemPoolSetAttribute' in found_functions}} cdef cudaError_t cudaMemPoolSetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemPoolSetAttribute(memPool, attr, value) -{{endif}} + return _runtime._cudaMemPoolSetAttribute(memPool, attr, value) -{{if 'cudaMemPoolGetAttribute' in found_functions}} cdef cudaError_t cudaMemPoolGetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemPoolGetAttribute(memPool, attr, value) -{{endif}} + return _runtime._cudaMemPoolGetAttribute(memPool, attr, value) -{{if 'cudaMemPoolSetAccess' in found_functions}} cdef cudaError_t cudaMemPoolSetAccess(cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemPoolSetAccess(memPool, descList, count) -{{endif}} + return _runtime._cudaMemPoolSetAccess(memPool, descList, count) -{{if 'cudaMemPoolGetAccess' in found_functions}} cdef cudaError_t cudaMemPoolGetAccess(cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemPoolGetAccess(flags, memPool, location) -{{endif}} + return _runtime._cudaMemPoolGetAccess(flags, memPool, location) -{{if 'cudaMemPoolCreate' in found_functions}} cdef cudaError_t cudaMemPoolCreate(cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemPoolCreate(memPool, poolProps) -{{endif}} + return _runtime._cudaMemPoolCreate(memPool, poolProps) -{{if 'cudaMemPoolDestroy' in found_functions}} cdef cudaError_t cudaMemPoolDestroy(cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemPoolDestroy(memPool) -{{endif}} + return _runtime._cudaMemPoolDestroy(memPool) -{{if 'cudaMallocFromPoolAsync' in found_functions}} cdef cudaError_t cudaMallocFromPoolAsync(void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMallocFromPoolAsync(ptr, size, memPool, stream) -{{endif}} + return _runtime._cudaMallocFromPoolAsync(ptr, size, memPool, stream) -{{if 'cudaMemPoolExportToShareableHandle' in found_functions}} cdef cudaError_t cudaMemPoolExportToShareableHandle(void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemPoolExportToShareableHandle(shareableHandle, memPool, handleType, flags) -{{endif}} + return _runtime._cudaMemPoolExportToShareableHandle(shareableHandle, memPool, handleType, flags) -{{if 'cudaMemPoolImportFromShareableHandle' in found_functions}} cdef cudaError_t cudaMemPoolImportFromShareableHandle(cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemPoolImportFromShareableHandle(memPool, shareableHandle, handleType, flags) -{{endif}} + return _runtime._cudaMemPoolImportFromShareableHandle(memPool, shareableHandle, handleType, flags) -{{if 'cudaMemPoolExportPointer' in found_functions}} cdef cudaError_t cudaMemPoolExportPointer(cudaMemPoolPtrExportData* exportData, void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemPoolExportPointer(exportData, ptr) -{{endif}} + return _runtime._cudaMemPoolExportPointer(exportData, ptr) -{{if 'cudaMemPoolImportPointer' in found_functions}} cdef cudaError_t cudaMemPoolImportPointer(void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemPoolImportPointer(ptr, memPool, exportData) -{{endif}} + return _runtime._cudaMemPoolImportPointer(ptr, memPool, exportData) -{{if 'cudaPointerGetAttributes' in found_functions}} cdef cudaError_t cudaPointerGetAttributes(cudaPointerAttributes* attributes, const void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaPointerGetAttributes(attributes, ptr) -{{endif}} + return _runtime._cudaPointerGetAttributes(attributes, ptr) -{{if 'cudaDeviceCanAccessPeer' in found_functions}} cdef cudaError_t cudaDeviceCanAccessPeer(int* canAccessPeer, int device, int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceCanAccessPeer(canAccessPeer, device, peerDevice) -{{endif}} + return _runtime._cudaDeviceCanAccessPeer(canAccessPeer, device, peerDevice) -{{if 'cudaDeviceEnablePeerAccess' in found_functions}} cdef cudaError_t cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceEnablePeerAccess(peerDevice, flags) -{{endif}} + return _runtime._cudaDeviceEnablePeerAccess(peerDevice, flags) -{{if 'cudaDeviceDisablePeerAccess' in found_functions}} cdef cudaError_t cudaDeviceDisablePeerAccess(int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceDisablePeerAccess(peerDevice) -{{endif}} + return _runtime._cudaDeviceDisablePeerAccess(peerDevice) -{{if 'cudaGraphicsUnregisterResource' in found_functions}} cdef cudaError_t cudaGraphicsUnregisterResource(cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphicsUnregisterResource(resource) -{{endif}} + return _runtime._cudaGraphicsUnregisterResource(resource) -{{if 'cudaGraphicsResourceSetMapFlags' in found_functions}} cdef cudaError_t cudaGraphicsResourceSetMapFlags(cudaGraphicsResource_t resource, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphicsResourceSetMapFlags(resource, flags) -{{endif}} + return _runtime._cudaGraphicsResourceSetMapFlags(resource, flags) -{{if 'cudaGraphicsMapResources' in found_functions}} cdef cudaError_t cudaGraphicsMapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphicsMapResources(count, resources, stream) -{{endif}} + return _runtime._cudaGraphicsMapResources(count, resources, stream) -{{if 'cudaGraphicsUnmapResources' in found_functions}} cdef cudaError_t cudaGraphicsUnmapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphicsUnmapResources(count, resources, stream) -{{endif}} + return _runtime._cudaGraphicsUnmapResources(count, resources, stream) -{{if 'cudaGraphicsResourceGetMappedPointer' in found_functions}} cdef cudaError_t cudaGraphicsResourceGetMappedPointer(void** devPtr, size_t* size, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphicsResourceGetMappedPointer(devPtr, size, resource) -{{endif}} + return _runtime._cudaGraphicsResourceGetMappedPointer(devPtr, size, resource) -{{if 'cudaGraphicsSubResourceGetMappedArray' in found_functions}} cdef cudaError_t cudaGraphicsSubResourceGetMappedArray(cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphicsSubResourceGetMappedArray(array, resource, arrayIndex, mipLevel) -{{endif}} + return _runtime._cudaGraphicsSubResourceGetMappedArray(array, resource, arrayIndex, mipLevel) -{{if 'cudaGraphicsResourceGetMappedMipmappedArray' in found_functions}} cdef cudaError_t cudaGraphicsResourceGetMappedMipmappedArray(cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphicsResourceGetMappedMipmappedArray(mipmappedArray, resource) -{{endif}} + return _runtime._cudaGraphicsResourceGetMappedMipmappedArray(mipmappedArray, resource) -{{if 'cudaGetChannelDesc' in found_functions}} cdef cudaError_t cudaGetChannelDesc(cudaChannelFormatDesc* desc, cudaArray_const_t array) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetChannelDesc(desc, array) -{{endif}} + return _runtime._cudaGetChannelDesc(desc, array) + -{{if 'cudaCreateChannelDesc' in found_functions}} -@cython.show_performance_hints(False) cdef cudaChannelFormatDesc cudaCreateChannelDesc(int x, int y, int z, int w, cudaChannelFormatKind f) except* nogil: - return cyruntime._cudaCreateChannelDesc(x, y, z, w, f) -{{endif}} + return _runtime._cudaCreateChannelDesc(x, y, z, w, f) -{{if 'cudaCreateTextureObject' in found_functions}} cdef cudaError_t cudaCreateTextureObject(cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaCreateTextureObject(pTexObject, pResDesc, pTexDesc, pResViewDesc) -{{endif}} + return _runtime._cudaCreateTextureObject(pTexObject, pResDesc, pTexDesc, pResViewDesc) -{{if 'cudaDestroyTextureObject' in found_functions}} cdef cudaError_t cudaDestroyTextureObject(cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDestroyTextureObject(texObject) -{{endif}} + return _runtime._cudaDestroyTextureObject(texObject) -{{if 'cudaGetTextureObjectResourceDesc' in found_functions}} cdef cudaError_t cudaGetTextureObjectResourceDesc(cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetTextureObjectResourceDesc(pResDesc, texObject) -{{endif}} + return _runtime._cudaGetTextureObjectResourceDesc(pResDesc, texObject) -{{if 'cudaGetTextureObjectTextureDesc' in found_functions}} cdef cudaError_t cudaGetTextureObjectTextureDesc(cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetTextureObjectTextureDesc(pTexDesc, texObject) -{{endif}} + return _runtime._cudaGetTextureObjectTextureDesc(pTexDesc, texObject) -{{if 'cudaGetTextureObjectResourceViewDesc' in found_functions}} cdef cudaError_t cudaGetTextureObjectResourceViewDesc(cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetTextureObjectResourceViewDesc(pResViewDesc, texObject) -{{endif}} + return _runtime._cudaGetTextureObjectResourceViewDesc(pResViewDesc, texObject) -{{if 'cudaCreateSurfaceObject' in found_functions}} cdef cudaError_t cudaCreateSurfaceObject(cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaCreateSurfaceObject(pSurfObject, pResDesc) -{{endif}} + return _runtime._cudaCreateSurfaceObject(pSurfObject, pResDesc) -{{if 'cudaDestroySurfaceObject' in found_functions}} cdef cudaError_t cudaDestroySurfaceObject(cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDestroySurfaceObject(surfObject) -{{endif}} + return _runtime._cudaDestroySurfaceObject(surfObject) -{{if 'cudaGetSurfaceObjectResourceDesc' in found_functions}} cdef cudaError_t cudaGetSurfaceObjectResourceDesc(cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetSurfaceObjectResourceDesc(pResDesc, surfObject) -{{endif}} + return _runtime._cudaGetSurfaceObjectResourceDesc(pResDesc, surfObject) -{{if 'cudaDriverGetVersion' in found_functions}} cdef cudaError_t cudaDriverGetVersion(int* driverVersion) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDriverGetVersion(driverVersion) -{{endif}} + return _runtime._cudaDriverGetVersion(driverVersion) -{{if 'cudaRuntimeGetVersion' in found_functions}} cdef cudaError_t cudaRuntimeGetVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaRuntimeGetVersion(runtimeVersion) -{{endif}} + return _runtime._cudaRuntimeGetVersion(runtimeVersion) -{{if 'cudaGraphCreate' in found_functions}} cdef cudaError_t cudaGraphCreate(cudaGraph_t* pGraph, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphCreate(pGraph, flags) -{{endif}} + return _runtime._cudaGraphCreate(pGraph, flags) -{{if 'cudaGraphAddKernelNode' in found_functions}} cdef cudaError_t cudaGraphAddKernelNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddKernelNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) -{{endif}} + return _runtime._cudaGraphAddKernelNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) -{{if 'cudaGraphKernelNodeGetParams' in found_functions}} cdef cudaError_t cudaGraphKernelNodeGetParams(cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphKernelNodeGetParams(node, pNodeParams) -{{endif}} + return _runtime._cudaGraphKernelNodeGetParams(node, pNodeParams) -{{if 'cudaGraphKernelNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphKernelNodeSetParams(cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphKernelNodeSetParams(node, pNodeParams) -{{endif}} + return _runtime._cudaGraphKernelNodeSetParams(node, pNodeParams) -{{if 'cudaGraphKernelNodeCopyAttributes' in found_functions}} cdef cudaError_t cudaGraphKernelNodeCopyAttributes(cudaGraphNode_t hSrc, cudaGraphNode_t hDst) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphKernelNodeCopyAttributes(hSrc, hDst) -{{endif}} + return _runtime._cudaGraphKernelNodeCopyAttributes(hSrc, hDst) -{{if 'cudaGraphKernelNodeGetAttribute' in found_functions}} cdef cudaError_t cudaGraphKernelNodeGetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, cudaKernelNodeAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphKernelNodeGetAttribute(hNode, attr, value_out) -{{endif}} + return _runtime._cudaGraphKernelNodeGetAttribute(hNode, attr, value_out) -{{if 'cudaGraphKernelNodeSetAttribute' in found_functions}} cdef cudaError_t cudaGraphKernelNodeSetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, const cudaKernelNodeAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphKernelNodeSetAttribute(hNode, attr, value) -{{endif}} + return _runtime._cudaGraphKernelNodeSetAttribute(hNode, attr, value) -{{if 'cudaGraphAddMemcpyNode' in found_functions}} cdef cudaError_t cudaGraphAddMemcpyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddMemcpyNode(pGraphNode, graph, pDependencies, numDependencies, pCopyParams) -{{endif}} + return _runtime._cudaGraphAddMemcpyNode(pGraphNode, graph, pDependencies, numDependencies, pCopyParams) -{{if 'cudaGraphAddMemcpyNode1D' in found_functions}} cdef cudaError_t cudaGraphAddMemcpyNode1D(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddMemcpyNode1D(pGraphNode, graph, pDependencies, numDependencies, dst, src, count, kind) -{{endif}} + return _runtime._cudaGraphAddMemcpyNode1D(pGraphNode, graph, pDependencies, numDependencies, dst, src, count, kind) -{{if 'cudaGraphMemcpyNodeGetParams' in found_functions}} cdef cudaError_t cudaGraphMemcpyNodeGetParams(cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphMemcpyNodeGetParams(node, pNodeParams) -{{endif}} + return _runtime._cudaGraphMemcpyNodeGetParams(node, pNodeParams) -{{if 'cudaGraphMemcpyNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphMemcpyNodeSetParams(cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphMemcpyNodeSetParams(node, pNodeParams) -{{endif}} + return _runtime._cudaGraphMemcpyNodeSetParams(node, pNodeParams) -{{if 'cudaGraphMemcpyNodeSetParams1D' in found_functions}} cdef cudaError_t cudaGraphMemcpyNodeSetParams1D(cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphMemcpyNodeSetParams1D(node, dst, src, count, kind) -{{endif}} + return _runtime._cudaGraphMemcpyNodeSetParams1D(node, dst, src, count, kind) -{{if 'cudaGraphAddMemsetNode' in found_functions}} cdef cudaError_t cudaGraphAddMemsetNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddMemsetNode(pGraphNode, graph, pDependencies, numDependencies, pMemsetParams) -{{endif}} + return _runtime._cudaGraphAddMemsetNode(pGraphNode, graph, pDependencies, numDependencies, pMemsetParams) -{{if 'cudaGraphMemsetNodeGetParams' in found_functions}} cdef cudaError_t cudaGraphMemsetNodeGetParams(cudaGraphNode_t node, cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphMemsetNodeGetParams(node, pNodeParams) -{{endif}} + return _runtime._cudaGraphMemsetNodeGetParams(node, pNodeParams) -{{if 'cudaGraphMemsetNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphMemsetNodeSetParams(cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphMemsetNodeSetParams(node, pNodeParams) -{{endif}} + return _runtime._cudaGraphMemsetNodeSetParams(node, pNodeParams) -{{if 'cudaGraphAddHostNode' in found_functions}} cdef cudaError_t cudaGraphAddHostNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddHostNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) -{{endif}} + return _runtime._cudaGraphAddHostNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) -{{if 'cudaGraphHostNodeGetParams' in found_functions}} cdef cudaError_t cudaGraphHostNodeGetParams(cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphHostNodeGetParams(node, pNodeParams) -{{endif}} + return _runtime._cudaGraphHostNodeGetParams(node, pNodeParams) -{{if 'cudaGraphHostNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphHostNodeSetParams(cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphHostNodeSetParams(node, pNodeParams) -{{endif}} + return _runtime._cudaGraphHostNodeSetParams(node, pNodeParams) -{{if 'cudaGraphAddChildGraphNode' in found_functions}} cdef cudaError_t cudaGraphAddChildGraphNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddChildGraphNode(pGraphNode, graph, pDependencies, numDependencies, childGraph) -{{endif}} + return _runtime._cudaGraphAddChildGraphNode(pGraphNode, graph, pDependencies, numDependencies, childGraph) -{{if 'cudaGraphChildGraphNodeGetGraph' in found_functions}} cdef cudaError_t cudaGraphChildGraphNodeGetGraph(cudaGraphNode_t node, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphChildGraphNodeGetGraph(node, pGraph) -{{endif}} + return _runtime._cudaGraphChildGraphNodeGetGraph(node, pGraph) -{{if 'cudaGraphAddEmptyNode' in found_functions}} cdef cudaError_t cudaGraphAddEmptyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddEmptyNode(pGraphNode, graph, pDependencies, numDependencies) -{{endif}} + return _runtime._cudaGraphAddEmptyNode(pGraphNode, graph, pDependencies, numDependencies) -{{if 'cudaGraphAddEventRecordNode' in found_functions}} cdef cudaError_t cudaGraphAddEventRecordNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddEventRecordNode(pGraphNode, graph, pDependencies, numDependencies, event) -{{endif}} + return _runtime._cudaGraphAddEventRecordNode(pGraphNode, graph, pDependencies, numDependencies, event) -{{if 'cudaGraphEventRecordNodeGetEvent' in found_functions}} cdef cudaError_t cudaGraphEventRecordNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphEventRecordNodeGetEvent(node, event_out) -{{endif}} + return _runtime._cudaGraphEventRecordNodeGetEvent(node, event_out) -{{if 'cudaGraphEventRecordNodeSetEvent' in found_functions}} cdef cudaError_t cudaGraphEventRecordNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphEventRecordNodeSetEvent(node, event) -{{endif}} + return _runtime._cudaGraphEventRecordNodeSetEvent(node, event) -{{if 'cudaGraphAddEventWaitNode' in found_functions}} cdef cudaError_t cudaGraphAddEventWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddEventWaitNode(pGraphNode, graph, pDependencies, numDependencies, event) -{{endif}} + return _runtime._cudaGraphAddEventWaitNode(pGraphNode, graph, pDependencies, numDependencies, event) -{{if 'cudaGraphEventWaitNodeGetEvent' in found_functions}} cdef cudaError_t cudaGraphEventWaitNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphEventWaitNodeGetEvent(node, event_out) -{{endif}} + return _runtime._cudaGraphEventWaitNodeGetEvent(node, event_out) -{{if 'cudaGraphEventWaitNodeSetEvent' in found_functions}} cdef cudaError_t cudaGraphEventWaitNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphEventWaitNodeSetEvent(node, event) -{{endif}} + return _runtime._cudaGraphEventWaitNodeSetEvent(node, event) -{{if 'cudaGraphAddExternalSemaphoresSignalNode' in found_functions}} cdef cudaError_t cudaGraphAddExternalSemaphoresSignalNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddExternalSemaphoresSignalNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{endif}} + return _runtime._cudaGraphAddExternalSemaphoresSignalNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{if 'cudaGraphExternalSemaphoresSignalNodeGetParams' in found_functions}} cdef cudaError_t cudaGraphExternalSemaphoresSignalNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExternalSemaphoresSignalNodeGetParams(hNode, params_out) -{{endif}} + return _runtime._cudaGraphExternalSemaphoresSignalNodeGetParams(hNode, params_out) -{{if 'cudaGraphExternalSemaphoresSignalNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphExternalSemaphoresSignalNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams) -{{endif}} + return _runtime._cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams) -{{if 'cudaGraphAddExternalSemaphoresWaitNode' in found_functions}} cdef cudaError_t cudaGraphAddExternalSemaphoresWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddExternalSemaphoresWaitNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{endif}} + return _runtime._cudaGraphAddExternalSemaphoresWaitNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{if 'cudaGraphExternalSemaphoresWaitNodeGetParams' in found_functions}} cdef cudaError_t cudaGraphExternalSemaphoresWaitNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExternalSemaphoresWaitNodeGetParams(hNode, params_out) -{{endif}} + return _runtime._cudaGraphExternalSemaphoresWaitNodeGetParams(hNode, params_out) -{{if 'cudaGraphExternalSemaphoresWaitNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphExternalSemaphoresWaitNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams) -{{endif}} + return _runtime._cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams) -{{if 'cudaGraphAddMemAllocNode' in found_functions}} cdef cudaError_t cudaGraphAddMemAllocNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddMemAllocNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{endif}} + return _runtime._cudaGraphAddMemAllocNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{if 'cudaGraphMemAllocNodeGetParams' in found_functions}} cdef cudaError_t cudaGraphMemAllocNodeGetParams(cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphMemAllocNodeGetParams(node, params_out) -{{endif}} + return _runtime._cudaGraphMemAllocNodeGetParams(node, params_out) -{{if 'cudaGraphAddMemFreeNode' in found_functions}} cdef cudaError_t cudaGraphAddMemFreeNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddMemFreeNode(pGraphNode, graph, pDependencies, numDependencies, dptr) -{{endif}} + return _runtime._cudaGraphAddMemFreeNode(pGraphNode, graph, pDependencies, numDependencies, dptr) -{{if 'cudaGraphMemFreeNodeGetParams' in found_functions}} cdef cudaError_t cudaGraphMemFreeNodeGetParams(cudaGraphNode_t node, void* dptr_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphMemFreeNodeGetParams(node, dptr_out) -{{endif}} + return _runtime._cudaGraphMemFreeNodeGetParams(node, dptr_out) -{{if 'cudaDeviceGraphMemTrim' in found_functions}} cdef cudaError_t cudaDeviceGraphMemTrim(int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGraphMemTrim(device) -{{endif}} + return _runtime._cudaDeviceGraphMemTrim(device) -{{if 'cudaDeviceGetGraphMemAttribute' in found_functions}} cdef cudaError_t cudaDeviceGetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetGraphMemAttribute(device, attr, value) -{{endif}} + return _runtime._cudaDeviceGetGraphMemAttribute(device, attr, value) -{{if 'cudaDeviceSetGraphMemAttribute' in found_functions}} cdef cudaError_t cudaDeviceSetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceSetGraphMemAttribute(device, attr, value) -{{endif}} + return _runtime._cudaDeviceSetGraphMemAttribute(device, attr, value) -{{if 'cudaGraphClone' in found_functions}} cdef cudaError_t cudaGraphClone(cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphClone(pGraphClone, originalGraph) -{{endif}} + return _runtime._cudaGraphClone(pGraphClone, originalGraph) -{{if 'cudaGraphNodeFindInClone' in found_functions}} cdef cudaError_t cudaGraphNodeFindInClone(cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphNodeFindInClone(pNode, originalNode, clonedGraph) -{{endif}} + return _runtime._cudaGraphNodeFindInClone(pNode, originalNode, clonedGraph) -{{if 'cudaGraphNodeGetType' in found_functions}} cdef cudaError_t cudaGraphNodeGetType(cudaGraphNode_t node, cudaGraphNodeType* pType) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphNodeGetType(node, pType) -{{endif}} + return _runtime._cudaGraphNodeGetType(node, pType) -{{if 'cudaGraphGetNodes' in found_functions}} cdef cudaError_t cudaGraphGetNodes(cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphGetNodes(graph, nodes, numNodes) -{{endif}} + return _runtime._cudaGraphGetNodes(graph, nodes, numNodes) -{{if 'cudaGraphGetRootNodes' in found_functions}} cdef cudaError_t cudaGraphGetRootNodes(cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphGetRootNodes(graph, pRootNodes, pNumRootNodes) -{{endif}} + return _runtime._cudaGraphGetRootNodes(graph, pRootNodes, pNumRootNodes) -{{if 'cudaGraphGetEdges' in found_functions}} cdef cudaError_t cudaGraphGetEdges(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphGetEdges(graph, from_, to, numEdges) -{{endif}} + return _runtime._cudaGraphGetEdges(graph, from_, to, numEdges) -{{if 'cudaGraphGetEdges_v2' in found_functions}} cdef cudaError_t cudaGraphGetEdges_v2(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphGetEdges_v2(graph, from_, to, edgeData, numEdges) -{{endif}} + return _runtime._cudaGraphGetEdges_v2(graph, from_, to, edgeData, numEdges) -{{if 'cudaGraphNodeGetDependencies' in found_functions}} cdef cudaError_t cudaGraphNodeGetDependencies(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphNodeGetDependencies(node, pDependencies, pNumDependencies) -{{endif}} + return _runtime._cudaGraphNodeGetDependencies(node, pDependencies, pNumDependencies) -{{if 'cudaGraphNodeGetDependencies_v2' in found_functions}} cdef cudaError_t cudaGraphNodeGetDependencies_v2(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphNodeGetDependencies_v2(node, pDependencies, edgeData, pNumDependencies) -{{endif}} + return _runtime._cudaGraphNodeGetDependencies_v2(node, pDependencies, edgeData, pNumDependencies) -{{if 'cudaGraphNodeGetDependentNodes' in found_functions}} cdef cudaError_t cudaGraphNodeGetDependentNodes(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphNodeGetDependentNodes(node, pDependentNodes, pNumDependentNodes) -{{endif}} + return _runtime._cudaGraphNodeGetDependentNodes(node, pDependentNodes, pNumDependentNodes) -{{if 'cudaGraphNodeGetDependentNodes_v2' in found_functions}} cdef cudaError_t cudaGraphNodeGetDependentNodes_v2(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphNodeGetDependentNodes_v2(node, pDependentNodes, edgeData, pNumDependentNodes) -{{endif}} + return _runtime._cudaGraphNodeGetDependentNodes_v2(node, pDependentNodes, edgeData, pNumDependentNodes) -{{if 'cudaGraphAddDependencies' in found_functions}} cdef cudaError_t cudaGraphAddDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddDependencies(graph, from_, to, numDependencies) -{{endif}} + return _runtime._cudaGraphAddDependencies(graph, from_, to, numDependencies) -{{if 'cudaGraphAddDependencies_v2' in found_functions}} cdef cudaError_t cudaGraphAddDependencies_v2(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddDependencies_v2(graph, from_, to, edgeData, numDependencies) -{{endif}} + return _runtime._cudaGraphAddDependencies_v2(graph, from_, to, edgeData, numDependencies) -{{if 'cudaGraphRemoveDependencies' in found_functions}} cdef cudaError_t cudaGraphRemoveDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphRemoveDependencies(graph, from_, to, numDependencies) -{{endif}} + return _runtime._cudaGraphRemoveDependencies(graph, from_, to, numDependencies) -{{if 'cudaGraphRemoveDependencies_v2' in found_functions}} cdef cudaError_t cudaGraphRemoveDependencies_v2(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphRemoveDependencies_v2(graph, from_, to, edgeData, numDependencies) -{{endif}} + return _runtime._cudaGraphRemoveDependencies_v2(graph, from_, to, edgeData, numDependencies) -{{if 'cudaGraphDestroyNode' in found_functions}} cdef cudaError_t cudaGraphDestroyNode(cudaGraphNode_t node) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphDestroyNode(node) -{{endif}} + return _runtime._cudaGraphDestroyNode(node) -{{if 'cudaGraphInstantiate' in found_functions}} cdef cudaError_t cudaGraphInstantiate(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphInstantiate(pGraphExec, graph, flags) -{{endif}} + return _runtime._cudaGraphInstantiate(pGraphExec, graph, flags) -{{if 'cudaGraphInstantiateWithFlags' in found_functions}} cdef cudaError_t cudaGraphInstantiateWithFlags(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphInstantiateWithFlags(pGraphExec, graph, flags) -{{endif}} + return _runtime._cudaGraphInstantiateWithFlags(pGraphExec, graph, flags) -{{if 'cudaGraphInstantiateWithParams' in found_functions}} cdef cudaError_t cudaGraphInstantiateWithParams(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphInstantiateWithParams(pGraphExec, graph, instantiateParams) -{{endif}} + return _runtime._cudaGraphInstantiateWithParams(pGraphExec, graph, instantiateParams) -{{if 'cudaGraphExecGetFlags' in found_functions}} cdef cudaError_t cudaGraphExecGetFlags(cudaGraphExec_t graphExec, unsigned long long* flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecGetFlags(graphExec, flags) -{{endif}} + return _runtime._cudaGraphExecGetFlags(graphExec, flags) -{{if 'cudaGraphExecKernelNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphExecKernelNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams) -{{endif}} + return _runtime._cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams) -{{if 'cudaGraphExecMemcpyNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphExecMemcpyNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams) -{{endif}} + return _runtime._cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams) -{{if 'cudaGraphExecMemcpyNodeSetParams1D' in found_functions}} cdef cudaError_t cudaGraphExecMemcpyNodeSetParams1D(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, count, kind) -{{endif}} + return _runtime._cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, count, kind) -{{if 'cudaGraphExecMemsetNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphExecMemsetNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams) -{{endif}} + return _runtime._cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams) -{{if 'cudaGraphExecHostNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphExecHostNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams) -{{endif}} + return _runtime._cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams) -{{if 'cudaGraphExecChildGraphNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphExecChildGraphNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph) -{{endif}} + return _runtime._cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph) -{{if 'cudaGraphExecEventRecordNodeSetEvent' in found_functions}} cdef cudaError_t cudaGraphExecEventRecordNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event) -{{endif}} + return _runtime._cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event) -{{if 'cudaGraphExecEventWaitNodeSetEvent' in found_functions}} cdef cudaError_t cudaGraphExecEventWaitNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event) -{{endif}} + return _runtime._cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event) -{{if 'cudaGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphExecExternalSemaphoresSignalNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams) -{{endif}} + return _runtime._cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams) -{{if 'cudaGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphExecExternalSemaphoresWaitNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams) -{{endif}} + return _runtime._cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams) -{{if 'cudaGraphNodeSetEnabled' in found_functions}} cdef cudaError_t cudaGraphNodeSetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphNodeSetEnabled(hGraphExec, hNode, isEnabled) -{{endif}} + return _runtime._cudaGraphNodeSetEnabled(hGraphExec, hNode, isEnabled) -{{if 'cudaGraphNodeGetEnabled' in found_functions}} cdef cudaError_t cudaGraphNodeGetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphNodeGetEnabled(hGraphExec, hNode, isEnabled) -{{endif}} + return _runtime._cudaGraphNodeGetEnabled(hGraphExec, hNode, isEnabled) -{{if 'cudaGraphExecUpdate' in found_functions}} cdef cudaError_t cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecUpdate(hGraphExec, hGraph, resultInfo) -{{endif}} + return _runtime._cudaGraphExecUpdate(hGraphExec, hGraph, resultInfo) -{{if 'cudaGraphUpload' in found_functions}} cdef cudaError_t cudaGraphUpload(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphUpload(graphExec, stream) -{{endif}} + return _runtime._cudaGraphUpload(graphExec, stream) -{{if 'cudaGraphLaunch' in found_functions}} cdef cudaError_t cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphLaunch(graphExec, stream) -{{endif}} + return _runtime._cudaGraphLaunch(graphExec, stream) -{{if 'cudaGraphExecDestroy' in found_functions}} cdef cudaError_t cudaGraphExecDestroy(cudaGraphExec_t graphExec) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecDestroy(graphExec) -{{endif}} + return _runtime._cudaGraphExecDestroy(graphExec) -{{if 'cudaGraphDestroy' in found_functions}} cdef cudaError_t cudaGraphDestroy(cudaGraph_t graph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphDestroy(graph) -{{endif}} + return _runtime._cudaGraphDestroy(graph) -{{if 'cudaGraphDebugDotPrint' in found_functions}} cdef cudaError_t cudaGraphDebugDotPrint(cudaGraph_t graph, const char* path, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphDebugDotPrint(graph, path, flags) -{{endif}} + return _runtime._cudaGraphDebugDotPrint(graph, path, flags) -{{if 'cudaUserObjectCreate' in found_functions}} cdef cudaError_t cudaUserObjectCreate(cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaUserObjectCreate(object_out, ptr, destroy, initialRefcount, flags) -{{endif}} + return _runtime._cudaUserObjectCreate(object_out, ptr, destroy, initialRefcount, flags) -{{if 'cudaUserObjectRetain' in found_functions}} cdef cudaError_t cudaUserObjectRetain(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaUserObjectRetain(object, count) -{{endif}} + return _runtime._cudaUserObjectRetain(object, count) -{{if 'cudaUserObjectRelease' in found_functions}} cdef cudaError_t cudaUserObjectRelease(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaUserObjectRelease(object, count) -{{endif}} + return _runtime._cudaUserObjectRelease(object, count) -{{if 'cudaGraphRetainUserObject' in found_functions}} cdef cudaError_t cudaGraphRetainUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphRetainUserObject(graph, object, count, flags) -{{endif}} + return _runtime._cudaGraphRetainUserObject(graph, object, count, flags) -{{if 'cudaGraphReleaseUserObject' in found_functions}} cdef cudaError_t cudaGraphReleaseUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphReleaseUserObject(graph, object, count) -{{endif}} + return _runtime._cudaGraphReleaseUserObject(graph, object, count) -{{if 'cudaGraphAddNode' in found_functions}} cdef cudaError_t cudaGraphAddNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{endif}} + return _runtime._cudaGraphAddNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{if 'cudaGraphAddNode_v2' in found_functions}} cdef cudaError_t cudaGraphAddNode_v2(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddNode_v2(pGraphNode, graph, pDependencies, dependencyData, numDependencies, nodeParams) -{{endif}} + return _runtime._cudaGraphAddNode_v2(pGraphNode, graph, pDependencies, dependencyData, numDependencies, nodeParams) -{{if 'cudaGraphNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphNodeSetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphNodeSetParams(node, nodeParams) -{{endif}} + return _runtime._cudaGraphNodeSetParams(node, nodeParams) -{{if 'cudaGraphExecNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphExecNodeSetParams(cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecNodeSetParams(graphExec, node, nodeParams) -{{endif}} + return _runtime._cudaGraphExecNodeSetParams(graphExec, node, nodeParams) -{{if 'cudaGraphConditionalHandleCreate' in found_functions}} cdef cudaError_t cudaGraphConditionalHandleCreate(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphConditionalHandleCreate(pHandle_out, graph, defaultLaunchValue, flags) -{{endif}} + return _runtime._cudaGraphConditionalHandleCreate(pHandle_out, graph, defaultLaunchValue, flags) -{{if 'cudaGetDriverEntryPoint' in found_functions}} cdef cudaError_t cudaGetDriverEntryPoint(const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetDriverEntryPoint(symbol, funcPtr, flags, driverStatus) -{{endif}} + return _runtime._cudaGetDriverEntryPoint(symbol, funcPtr, flags, driverStatus) -{{if 'cudaGetDriverEntryPointByVersion' in found_functions}} cdef cudaError_t cudaGetDriverEntryPointByVersion(const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetDriverEntryPointByVersion(symbol, funcPtr, cudaVersion, flags, driverStatus) -{{endif}} + return _runtime._cudaGetDriverEntryPointByVersion(symbol, funcPtr, cudaVersion, flags, driverStatus) -{{if 'cudaLibraryLoadData' in found_functions}} cdef cudaError_t cudaLibraryLoadData(cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaLibraryLoadData(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) -{{endif}} + return _runtime._cudaLibraryLoadData(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) -{{if 'cudaLibraryLoadFromFile' in found_functions}} cdef cudaError_t cudaLibraryLoadFromFile(cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaLibraryLoadFromFile(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) -{{endif}} + return _runtime._cudaLibraryLoadFromFile(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) -{{if 'cudaLibraryUnload' in found_functions}} cdef cudaError_t cudaLibraryUnload(cudaLibrary_t library) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaLibraryUnload(library) -{{endif}} + return _runtime._cudaLibraryUnload(library) -{{if 'cudaLibraryGetKernel' in found_functions}} cdef cudaError_t cudaLibraryGetKernel(cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaLibraryGetKernel(pKernel, library, name) -{{endif}} + return _runtime._cudaLibraryGetKernel(pKernel, library, name) -{{if 'cudaLibraryGetGlobal' in found_functions}} -cdef cudaError_t cudaLibraryGetGlobal(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaLibraryGetGlobal(dptr, numbytes, library, name) -{{endif}} +cdef cudaError_t cudaLibraryGetGlobal(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaLibraryGetGlobal(dptr, bytes, library, name) -{{if 'cudaLibraryGetManaged' in found_functions}} -cdef cudaError_t cudaLibraryGetManaged(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaLibraryGetManaged(dptr, numbytes, library, name) -{{endif}} +cdef cudaError_t cudaLibraryGetManaged(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaLibraryGetManaged(dptr, bytes, library, name) -{{if 'cudaLibraryGetUnifiedFunction' in found_functions}} cdef cudaError_t cudaLibraryGetUnifiedFunction(void** fptr, cudaLibrary_t library, const char* symbol) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaLibraryGetUnifiedFunction(fptr, library, symbol) -{{endif}} + return _runtime._cudaLibraryGetUnifiedFunction(fptr, library, symbol) -{{if 'cudaLibraryGetKernelCount' in found_functions}} cdef cudaError_t cudaLibraryGetKernelCount(unsigned int* count, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaLibraryGetKernelCount(count, lib) -{{endif}} + return _runtime._cudaLibraryGetKernelCount(count, lib) -{{if 'cudaLibraryEnumerateKernels' in found_functions}} cdef cudaError_t cudaLibraryEnumerateKernels(cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaLibraryEnumerateKernels(kernels, numKernels, lib) -{{endif}} + return _runtime._cudaLibraryEnumerateKernels(kernels, numKernels, lib) -{{if 'cudaKernelSetAttributeForDevice' in found_functions}} cdef cudaError_t cudaKernelSetAttributeForDevice(cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaKernelSetAttributeForDevice(kernel, attr, value, device) -{{endif}} + return _runtime._cudaKernelSetAttributeForDevice(kernel, attr, value, device) -{{if 'cudaGetExportTable' in found_functions}} cdef cudaError_t cudaGetExportTable(const void** ppExportTable, const cudaUUID_t* pExportTableId) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetExportTable(ppExportTable, pExportTableId) -{{endif}} + return _runtime._cudaGetExportTable(ppExportTable, pExportTableId) -{{if 'cudaGetKernel' in found_functions}} cdef cudaError_t cudaGetKernel(cudaKernel_t* kernelPtr, const void* entryFuncAddr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetKernel(kernelPtr, entryFuncAddr) -{{endif}} - -{{if 'make_cudaPitchedPtr' in found_functions}} -@cython.show_performance_hints(False) -cdef cudaPitchedPtr make_cudaPitchedPtr(void* d, size_t p, size_t xsz, size_t ysz) except* nogil: - return cyruntime._make_cudaPitchedPtr(d, p, xsz, ysz) -{{endif}} - -{{if 'make_cudaPos' in found_functions}} -@cython.show_performance_hints(False) -cdef cudaPos make_cudaPos(size_t x, size_t y, size_t z) except* nogil: - return cyruntime._make_cudaPos(x, y, z) -{{endif}} - -{{if 'make_cudaExtent' in found_functions}} -@cython.show_performance_hints(False) -cdef cudaExtent make_cudaExtent(size_t w, size_t h, size_t d) except* nogil: - return cyruntime._make_cudaExtent(w, h, d) -{{endif}} + return _runtime._cudaGetKernel(kernelPtr, entryFuncAddr) -{{if True}} cdef cudaError_t cudaGraphicsEGLRegisterImage(cudaGraphicsResource** pCudaResource, EGLImageKHR image, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphicsEGLRegisterImage(pCudaResource, image, flags) -{{endif}} + return _runtime._cudaGraphicsEGLRegisterImage(pCudaResource, image, flags) -{{if True}} cdef cudaError_t cudaEGLStreamConsumerConnect(cudaEglStreamConnection* conn, EGLStreamKHR eglStream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEGLStreamConsumerConnect(conn, eglStream) -{{endif}} + return _runtime._cudaEGLStreamConsumerConnect(conn, eglStream) -{{if True}} cdef cudaError_t cudaEGLStreamConsumerConnectWithFlags(cudaEglStreamConnection* conn, EGLStreamKHR eglStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEGLStreamConsumerConnectWithFlags(conn, eglStream, flags) -{{endif}} + return _runtime._cudaEGLStreamConsumerConnectWithFlags(conn, eglStream, flags) -{{if True}} cdef cudaError_t cudaEGLStreamConsumerDisconnect(cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEGLStreamConsumerDisconnect(conn) -{{endif}} + return _runtime._cudaEGLStreamConsumerDisconnect(conn) -{{if True}} cdef cudaError_t cudaEGLStreamConsumerAcquireFrame(cudaEglStreamConnection* conn, cudaGraphicsResource_t* pCudaResource, cudaStream_t* pStream, unsigned int timeout) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEGLStreamConsumerAcquireFrame(conn, pCudaResource, pStream, timeout) -{{endif}} + return _runtime._cudaEGLStreamConsumerAcquireFrame(conn, pCudaResource, pStream, timeout) -{{if True}} cdef cudaError_t cudaEGLStreamConsumerReleaseFrame(cudaEglStreamConnection* conn, cudaGraphicsResource_t pCudaResource, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEGLStreamConsumerReleaseFrame(conn, pCudaResource, pStream) -{{endif}} + return _runtime._cudaEGLStreamConsumerReleaseFrame(conn, pCudaResource, pStream) -{{if True}} cdef cudaError_t cudaEGLStreamProducerConnect(cudaEglStreamConnection* conn, EGLStreamKHR eglStream, EGLint width, EGLint height) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEGLStreamProducerConnect(conn, eglStream, width, height) -{{endif}} + return _runtime._cudaEGLStreamProducerConnect(conn, eglStream, width, height) -{{if True}} cdef cudaError_t cudaEGLStreamProducerDisconnect(cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEGLStreamProducerDisconnect(conn) -{{endif}} + return _runtime._cudaEGLStreamProducerDisconnect(conn) -{{if True}} cdef cudaError_t cudaEGLStreamProducerPresentFrame(cudaEglStreamConnection* conn, cudaEglFrame eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEGLStreamProducerPresentFrame(conn, eglframe, pStream) -{{endif}} + return _runtime._cudaEGLStreamProducerPresentFrame(conn, eglframe, pStream) -{{if True}} cdef cudaError_t cudaEGLStreamProducerReturnFrame(cudaEglStreamConnection* conn, cudaEglFrame* eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEGLStreamProducerReturnFrame(conn, eglframe, pStream) -{{endif}} + return _runtime._cudaEGLStreamProducerReturnFrame(conn, eglframe, pStream) -{{if True}} cdef cudaError_t cudaGraphicsResourceGetMappedEglFrame(cudaEglFrame* eglFrame, cudaGraphicsResource_t resource, unsigned int index, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphicsResourceGetMappedEglFrame(eglFrame, resource, index, mipLevel) -{{endif}} + return _runtime._cudaGraphicsResourceGetMappedEglFrame(eglFrame, resource, index, mipLevel) -{{if True}} cdef cudaError_t cudaEventCreateFromEGLSync(cudaEvent_t* phEvent, EGLSyncKHR eglSync, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEventCreateFromEGLSync(phEvent, eglSync, flags) -{{endif}} + return _runtime._cudaEventCreateFromEGLSync(phEvent, eglSync, flags) -{{if 'cudaProfilerStart' in found_functions}} cdef cudaError_t cudaProfilerStart() except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaProfilerStart() -{{endif}} + return _runtime._cudaProfilerStart() -{{if 'cudaProfilerStop' in found_functions}} cdef cudaError_t cudaProfilerStop() except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaProfilerStop() -{{endif}} + return _runtime._cudaProfilerStop() -{{if True}} cdef cudaError_t cudaGLGetDevices(unsigned int* pCudaDeviceCount, int* pCudaDevices, unsigned int cudaDeviceCount, cudaGLDeviceList deviceList) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGLGetDevices(pCudaDeviceCount, pCudaDevices, cudaDeviceCount, deviceList) -{{endif}} + return _runtime._cudaGLGetDevices(pCudaDeviceCount, pCudaDevices, cudaDeviceCount, deviceList) -{{if True}} cdef cudaError_t cudaGraphicsGLRegisterImage(cudaGraphicsResource** resource, GLuint image, GLenum target, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphicsGLRegisterImage(resource, image, target, flags) -{{endif}} + return _runtime._cudaGraphicsGLRegisterImage(resource, image, target, flags) -{{if True}} cdef cudaError_t cudaGraphicsGLRegisterBuffer(cudaGraphicsResource** resource, GLuint buffer, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphicsGLRegisterBuffer(resource, buffer, flags) -{{endif}} + return _runtime._cudaGraphicsGLRegisterBuffer(resource, buffer, flags) -{{if True}} cdef cudaError_t cudaVDPAUGetDevice(int* device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaVDPAUGetDevice(device, vdpDevice, vdpGetProcAddress) -{{endif}} + return _runtime._cudaVDPAUGetDevice(device, vdpDevice, vdpGetProcAddress) -{{if True}} cdef cudaError_t cudaVDPAUSetVDPAUDevice(int device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaVDPAUSetVDPAUDevice(device, vdpDevice, vdpGetProcAddress) -{{endif}} + return _runtime._cudaVDPAUSetVDPAUDevice(device, vdpDevice, vdpGetProcAddress) -{{if True}} cdef cudaError_t cudaGraphicsVDPAURegisterVideoSurface(cudaGraphicsResource** resource, VdpVideoSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphicsVDPAURegisterVideoSurface(resource, vdpSurface, flags) -{{endif}} + return _runtime._cudaGraphicsVDPAURegisterVideoSurface(resource, vdpSurface, flags) -{{if True}} cdef cudaError_t cudaGraphicsVDPAURegisterOutputSurface(cudaGraphicsResource** resource, VdpOutputSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphicsVDPAURegisterOutputSurface(resource, vdpSurface, flags) -{{endif}} + return _runtime._cudaGraphicsVDPAURegisterOutputSurface(resource, vdpSurface, flags) + + +############################################################################### +# Static inline helpers from driver_functions.h +############################################################################### + +cdef extern from 'driver_functions.h': + cudaPitchedPtr _c_make_cudaPitchedPtr "make_cudaPitchedPtr"(void* d, size_t p, size_t xsz, size_t ysz) nogil + cudaPos _c_make_cudaPos "make_cudaPos"(size_t x, size_t y, size_t z) nogil + cudaExtent _c_make_cudaExtent "make_cudaExtent"(size_t w, size_t h, size_t d) nogil + + +cdef cudaPitchedPtr make_cudaPitchedPtr(void* d, size_t p, size_t xsz, size_t ysz) except* nogil: + return _c_make_cudaPitchedPtr(d, p, xsz, ysz) + + +cdef cudaPos make_cudaPos(size_t x, size_t y, size_t z) except* nogil: + return _c_make_cudaPos(x, y, z) + + +cdef cudaExtent make_cudaExtent(size_t w, size_t h, size_t d) except* nogil: + return _c_make_cudaExtent(w, h, d) -{{if True}} -from libc.stdint cimport uintptr_t -from cuda.pathfinder import load_nvidia_dynamic_lib -{{if 'Windows' == platform.system()}} -cimport cuda.bindings._lib.windll as windll -{{else}} -cimport cuda.bindings._lib.dlfcn as dlfcn -{{endif}} +############################################################################### +# getLocalRuntimeVersion +############################################################################### cdef cudaError_t getLocalRuntimeVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil: - # Load - with gil: - loaded_dl = load_nvidia_dynamic_lib("cudart") - {{if 'Windows' == platform.system()}} - handle = loaded_dl._handle_uint - {{else}} - handle = loaded_dl._handle_uint - {{endif}} - - {{if 'Windows' == platform.system()}} - __cudaRuntimeGetVersion = windll.GetProcAddress(handle, b'cudaRuntimeGetVersion') - {{else}} - __cudaRuntimeGetVersion = dlfcn.dlsym(handle, 'cudaRuntimeGetVersion') - {{endif}} - - if __cudaRuntimeGetVersion == NULL: - with gil: - raise RuntimeError(f'Function "cudaRuntimeGetVersion" not found in {loaded_dl.abs_path}') - - # Call - cdef cudaError_t err = cudaSuccess - err = ( __cudaRuntimeGetVersion)(runtimeVersion) - - # We explicitly do *NOT* cleanup the library handle here, acknowledging - # that, yes, the handle leaks. The reason is that there's a - # `functools.cache` on the top-level caller of this function. - # - # This means this library would be opened once and then immediately closed, - # all the while remaining in the cache lurking there for people to call. - # - # Since we open the library one time (technically once per unique library name), - # there's not a ton of leakage, which we deem acceptable for the 1000x speedup - # achieved by caching (ultimately) `ctypes.CDLL` calls. - # - # Long(er)-term we can explore cleaning up the library using higher-level - # Python mechanisms, like `__del__` or `weakref.finalizer`s. - - return err -{{endif}} + return _runtime._getLocalRuntimeVersion(runtimeVersion) diff --git a/cuda_bindings_12/cuda/bindings/cyruntime_functions.pxi.in b/cuda_bindings_12/cuda/bindings/cyruntime_functions.pxi.in deleted file mode 100644 index 686107f51771..000000000000 --- a/cuda_bindings_12/cuda/bindings/cyruntime_functions.pxi.in +++ /dev/null @@ -1,1489 +0,0 @@ -# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -# SPDX-License-Identifier: Apache-2.0 - -# This code was automatically generated with version 12.9.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=f940ac0c504c1db7e68fdff89b8e65d35a8cf4a3962c4067e67d8afd11a5b6df -cdef extern from "cuda_runtime_api.h": - - {{if 'cudaDeviceReset' in found_functions}} - - cudaError_t cudaDeviceReset() nogil - - {{endif}} - {{if 'cudaDeviceSynchronize' in found_functions}} - - cudaError_t cudaDeviceSynchronize() nogil - - {{endif}} - {{if 'cudaDeviceSetLimit' in found_functions}} - - cudaError_t cudaDeviceSetLimit(cudaLimit limit, size_t value) nogil - - {{endif}} - {{if 'cudaDeviceGetLimit' in found_functions}} - - cudaError_t cudaDeviceGetLimit(size_t* pValue, cudaLimit limit) nogil - - {{endif}} - {{if 'cudaDeviceGetTexture1DLinearMaxWidth' in found_functions}} - - cudaError_t cudaDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) nogil - - {{endif}} - {{if 'cudaDeviceGetCacheConfig' in found_functions}} - - cudaError_t cudaDeviceGetCacheConfig(cudaFuncCache* pCacheConfig) nogil - - {{endif}} - {{if 'cudaDeviceGetStreamPriorityRange' in found_functions}} - - cudaError_t cudaDeviceGetStreamPriorityRange(int* leastPriority, int* greatestPriority) nogil - - {{endif}} - {{if 'cudaDeviceSetCacheConfig' in found_functions}} - - cudaError_t cudaDeviceSetCacheConfig(cudaFuncCache cacheConfig) nogil - - {{endif}} - {{if 'cudaDeviceGetByPCIBusId' in found_functions}} - - cudaError_t cudaDeviceGetByPCIBusId(int* device, const char* pciBusId) nogil - - {{endif}} - {{if 'cudaDeviceGetPCIBusId' in found_functions}} - - cudaError_t cudaDeviceGetPCIBusId(char* pciBusId, int length, int device) nogil - - {{endif}} - {{if 'cudaIpcGetEventHandle' in found_functions}} - - cudaError_t cudaIpcGetEventHandle(cudaIpcEventHandle_t* handle, cudaEvent_t event) nogil - - {{endif}} - {{if 'cudaIpcOpenEventHandle' in found_functions}} - - cudaError_t cudaIpcOpenEventHandle(cudaEvent_t* event, cudaIpcEventHandle_t handle) nogil - - {{endif}} - {{if 'cudaIpcGetMemHandle' in found_functions}} - - cudaError_t cudaIpcGetMemHandle(cudaIpcMemHandle_t* handle, void* devPtr) nogil - - {{endif}} - {{if 'cudaIpcOpenMemHandle' in found_functions}} - - cudaError_t cudaIpcOpenMemHandle(void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) nogil - - {{endif}} - {{if 'cudaIpcCloseMemHandle' in found_functions}} - - cudaError_t cudaIpcCloseMemHandle(void* devPtr) nogil - - {{endif}} - {{if 'cudaDeviceFlushGPUDirectRDMAWrites' in found_functions}} - - cudaError_t cudaDeviceFlushGPUDirectRDMAWrites(cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) nogil - - {{endif}} - {{if 'cudaDeviceRegisterAsyncNotification' in found_functions}} - - cudaError_t cudaDeviceRegisterAsyncNotification(int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) nogil - - {{endif}} - {{if 'cudaDeviceUnregisterAsyncNotification' in found_functions}} - - cudaError_t cudaDeviceUnregisterAsyncNotification(int device, cudaAsyncCallbackHandle_t callback) nogil - - {{endif}} - {{if 'cudaDeviceGetSharedMemConfig' in found_functions}} - - cudaError_t cudaDeviceGetSharedMemConfig(cudaSharedMemConfig* pConfig) nogil - - {{endif}} - {{if 'cudaDeviceSetSharedMemConfig' in found_functions}} - - cudaError_t cudaDeviceSetSharedMemConfig(cudaSharedMemConfig config) nogil - - {{endif}} - {{if 'cudaGetLastError' in found_functions}} - - cudaError_t cudaGetLastError() nogil - - {{endif}} - {{if 'cudaPeekAtLastError' in found_functions}} - - cudaError_t cudaPeekAtLastError() nogil - - {{endif}} - {{if 'cudaGetErrorName' in found_functions}} - - const char* cudaGetErrorName(cudaError_t error) nogil - - {{endif}} - {{if 'cudaGetErrorString' in found_functions}} - - const char* cudaGetErrorString(cudaError_t error) nogil - - {{endif}} - {{if 'cudaGetDeviceCount' in found_functions}} - - cudaError_t cudaGetDeviceCount(int* count) nogil - - {{endif}} - {{if 'cudaGetDeviceProperties_v2' in found_functions}} - - cudaError_t cudaGetDeviceProperties_v2(cudaDeviceProp* prop, int device) nogil - - {{endif}} - {{if 'cudaDeviceGetAttribute' in found_functions}} - - cudaError_t cudaDeviceGetAttribute(int* value, cudaDeviceAttr attr, int device) nogil - - {{endif}} - {{if 'cudaDeviceGetDefaultMemPool' in found_functions}} - - cudaError_t cudaDeviceGetDefaultMemPool(cudaMemPool_t* memPool, int device) nogil - - {{endif}} - {{if 'cudaDeviceSetMemPool' in found_functions}} - - cudaError_t cudaDeviceSetMemPool(int device, cudaMemPool_t memPool) nogil - - {{endif}} - {{if 'cudaDeviceGetMemPool' in found_functions}} - - cudaError_t cudaDeviceGetMemPool(cudaMemPool_t* memPool, int device) nogil - - {{endif}} - {{if 'cudaDeviceGetNvSciSyncAttributes' in found_functions}} - - cudaError_t cudaDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, int device, int flags) nogil - - {{endif}} - {{if 'cudaDeviceGetP2PAttribute' in found_functions}} - - cudaError_t cudaDeviceGetP2PAttribute(int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) nogil - - {{endif}} - {{if 'cudaChooseDevice' in found_functions}} - - cudaError_t cudaChooseDevice(int* device, const cudaDeviceProp* prop) nogil - - {{endif}} - {{if 'cudaInitDevice' in found_functions}} - - cudaError_t cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags) nogil - - {{endif}} - {{if 'cudaSetDevice' in found_functions}} - - cudaError_t cudaSetDevice(int device) nogil - - {{endif}} - {{if 'cudaGetDevice' in found_functions}} - - cudaError_t cudaGetDevice(int* device) nogil - - {{endif}} - {{if 'cudaSetDeviceFlags' in found_functions}} - - cudaError_t cudaSetDeviceFlags(unsigned int flags) nogil - - {{endif}} - {{if 'cudaGetDeviceFlags' in found_functions}} - - cudaError_t cudaGetDeviceFlags(unsigned int* flags) nogil - - {{endif}} - {{if 'cudaStreamCreate' in found_functions}} - - cudaError_t cudaStreamCreate(cudaStream_t* pStream) nogil - - {{endif}} - {{if 'cudaStreamCreateWithFlags' in found_functions}} - - cudaError_t cudaStreamCreateWithFlags(cudaStream_t* pStream, unsigned int flags) nogil - - {{endif}} - {{if 'cudaStreamCreateWithPriority' in found_functions}} - - cudaError_t cudaStreamCreateWithPriority(cudaStream_t* pStream, unsigned int flags, int priority) nogil - - {{endif}} - {{if 'cudaStreamGetPriority' in found_functions}} - - cudaError_t cudaStreamGetPriority(cudaStream_t hStream, int* priority) nogil - - {{endif}} - {{if 'cudaStreamGetFlags' in found_functions}} - - cudaError_t cudaStreamGetFlags(cudaStream_t hStream, unsigned int* flags) nogil - - {{endif}} - {{if 'cudaStreamGetId' in found_functions}} - - cudaError_t cudaStreamGetId(cudaStream_t hStream, unsigned long long* streamId) nogil - - {{endif}} - {{if 'cudaStreamGetDevice' in found_functions}} - - cudaError_t cudaStreamGetDevice(cudaStream_t hStream, int* device) nogil - - {{endif}} - {{if 'cudaCtxResetPersistingL2Cache' in found_functions}} - - cudaError_t cudaCtxResetPersistingL2Cache() nogil - - {{endif}} - {{if 'cudaStreamCopyAttributes' in found_functions}} - - cudaError_t cudaStreamCopyAttributes(cudaStream_t dst, cudaStream_t src) nogil - - {{endif}} - {{if 'cudaStreamGetAttribute' in found_functions}} - - cudaError_t cudaStreamGetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, cudaStreamAttrValue* value_out) nogil - - {{endif}} - {{if 'cudaStreamSetAttribute' in found_functions}} - - cudaError_t cudaStreamSetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, const cudaStreamAttrValue* value) nogil - - {{endif}} - {{if 'cudaStreamDestroy' in found_functions}} - - cudaError_t cudaStreamDestroy(cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaStreamWaitEvent' in found_functions}} - - cudaError_t cudaStreamWaitEvent(cudaStream_t stream, cudaEvent_t event, unsigned int flags) nogil - - {{endif}} - {{if 'cudaStreamAddCallback' in found_functions}} - - cudaError_t cudaStreamAddCallback(cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) nogil - - {{endif}} - {{if 'cudaStreamSynchronize' in found_functions}} - - cudaError_t cudaStreamSynchronize(cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaStreamQuery' in found_functions}} - - cudaError_t cudaStreamQuery(cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaStreamAttachMemAsync' in found_functions}} - - cudaError_t cudaStreamAttachMemAsync(cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) nogil - - {{endif}} - {{if 'cudaStreamBeginCapture' in found_functions}} - - cudaError_t cudaStreamBeginCapture(cudaStream_t stream, cudaStreamCaptureMode mode) nogil - - {{endif}} - {{if 'cudaStreamBeginCaptureToGraph' in found_functions}} - - cudaError_t cudaStreamBeginCaptureToGraph(cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) nogil - - {{endif}} - {{if 'cudaThreadExchangeStreamCaptureMode' in found_functions}} - - cudaError_t cudaThreadExchangeStreamCaptureMode(cudaStreamCaptureMode* mode) nogil - - {{endif}} - {{if 'cudaStreamEndCapture' in found_functions}} - - cudaError_t cudaStreamEndCapture(cudaStream_t stream, cudaGraph_t* pGraph) nogil - - {{endif}} - {{if 'cudaStreamIsCapturing' in found_functions}} - - cudaError_t cudaStreamIsCapturing(cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) nogil - - {{endif}} - {{if 'cudaStreamGetCaptureInfo_v2' in found_functions}} - - cudaError_t cudaStreamGetCaptureInfo_v2_ptsz(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, size_t* numDependencies_out) nogil - - {{endif}} - {{if 'cudaStreamGetCaptureInfo_v2' in found_functions}} - - cudaError_t cudaStreamGetCaptureInfo_v2(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, size_t* numDependencies_out) nogil - - {{endif}} - {{if 'cudaStreamGetCaptureInfo_v3' in found_functions}} - - cudaError_t cudaStreamGetCaptureInfo_v3(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) nogil - - {{endif}} - {{if 'cudaStreamUpdateCaptureDependencies' in found_functions}} - - cudaError_t cudaStreamUpdateCaptureDependencies(cudaStream_t stream, cudaGraphNode_t* dependencies, size_t numDependencies, unsigned int flags) nogil - - {{endif}} - {{if 'cudaStreamUpdateCaptureDependencies_v2' in found_functions}} - - cudaError_t cudaStreamUpdateCaptureDependencies_v2(cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) nogil - - {{endif}} - {{if 'cudaEventCreate' in found_functions}} - - cudaError_t cudaEventCreate(cudaEvent_t* event) nogil - - {{endif}} - {{if 'cudaEventCreateWithFlags' in found_functions}} - - cudaError_t cudaEventCreateWithFlags(cudaEvent_t* event, unsigned int flags) nogil - - {{endif}} - {{if 'cudaEventRecord' in found_functions}} - - cudaError_t cudaEventRecord(cudaEvent_t event, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaEventRecordWithFlags' in found_functions}} - - cudaError_t cudaEventRecordWithFlags(cudaEvent_t event, cudaStream_t stream, unsigned int flags) nogil - - {{endif}} - {{if 'cudaEventQuery' in found_functions}} - - cudaError_t cudaEventQuery(cudaEvent_t event) nogil - - {{endif}} - {{if 'cudaEventSynchronize' in found_functions}} - - cudaError_t cudaEventSynchronize(cudaEvent_t event) nogil - - {{endif}} - {{if 'cudaEventDestroy' in found_functions}} - - cudaError_t cudaEventDestroy(cudaEvent_t event) nogil - - {{endif}} - {{if 'cudaEventElapsedTime' in found_functions}} - - cudaError_t cudaEventElapsedTime(float* ms, cudaEvent_t start, cudaEvent_t end) nogil - - {{endif}} - {{if 'cudaEventElapsedTime_v2' in found_functions}} - - cudaError_t cudaEventElapsedTime_v2(float* ms, cudaEvent_t start, cudaEvent_t end) nogil - - {{endif}} - {{if 'cudaImportExternalMemory' in found_functions}} - - cudaError_t cudaImportExternalMemory(cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) nogil - - {{endif}} - {{if 'cudaExternalMemoryGetMappedBuffer' in found_functions}} - - cudaError_t cudaExternalMemoryGetMappedBuffer(void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) nogil - - {{endif}} - {{if 'cudaExternalMemoryGetMappedMipmappedArray' in found_functions}} - - cudaError_t cudaExternalMemoryGetMappedMipmappedArray(cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) nogil - - {{endif}} - {{if 'cudaDestroyExternalMemory' in found_functions}} - - cudaError_t cudaDestroyExternalMemory(cudaExternalMemory_t extMem) nogil - - {{endif}} - {{if 'cudaImportExternalSemaphore' in found_functions}} - - cudaError_t cudaImportExternalSemaphore(cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) nogil - - {{endif}} - {{if 'cudaSignalExternalSemaphoresAsync_v2' in found_functions}} - - cudaError_t cudaSignalExternalSemaphoresAsync_v2_ptsz(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaSignalExternalSemaphoresAsync_v2' in found_functions}} - - cudaError_t cudaSignalExternalSemaphoresAsync_v2(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaWaitExternalSemaphoresAsync_v2' in found_functions}} - - cudaError_t cudaWaitExternalSemaphoresAsync_v2_ptsz(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaWaitExternalSemaphoresAsync_v2' in found_functions}} - - cudaError_t cudaWaitExternalSemaphoresAsync_v2(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaDestroyExternalSemaphore' in found_functions}} - - cudaError_t cudaDestroyExternalSemaphore(cudaExternalSemaphore_t extSem) nogil - - {{endif}} - {{if 'cudaFuncSetCacheConfig' in found_functions}} - - cudaError_t cudaFuncSetCacheConfig(const void* func, cudaFuncCache cacheConfig) nogil - - {{endif}} - {{if 'cudaFuncGetAttributes' in found_functions}} - - cudaError_t cudaFuncGetAttributes(cudaFuncAttributes* attr, const void* func) nogil - - {{endif}} - {{if 'cudaFuncSetAttribute' in found_functions}} - - cudaError_t cudaFuncSetAttribute(const void* func, cudaFuncAttribute attr, int value) nogil - - {{endif}} - {{if 'cudaLaunchHostFunc' in found_functions}} - - cudaError_t cudaLaunchHostFunc(cudaStream_t stream, cudaHostFn_t fn, void* userData) nogil - - {{endif}} - {{if 'cudaFuncSetSharedMemConfig' in found_functions}} - - cudaError_t cudaFuncSetSharedMemConfig(const void* func, cudaSharedMemConfig config) nogil - - {{endif}} - {{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}} - - cudaError_t cudaOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) nogil - - {{endif}} - {{if 'cudaOccupancyAvailableDynamicSMemPerBlock' in found_functions}} - - cudaError_t cudaOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) nogil - - {{endif}} - {{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}} - - cudaError_t cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) nogil - - {{endif}} - {{if 'cudaMallocManaged' in found_functions}} - - cudaError_t cudaMallocManaged(void** devPtr, size_t size, unsigned int flags) nogil - - {{endif}} - {{if 'cudaMalloc' in found_functions}} - - cudaError_t cudaMalloc(void** devPtr, size_t size) nogil - - {{endif}} - {{if 'cudaMallocHost' in found_functions}} - - cudaError_t cudaMallocHost(void** ptr, size_t size) nogil - - {{endif}} - {{if 'cudaMallocPitch' in found_functions}} - - cudaError_t cudaMallocPitch(void** devPtr, size_t* pitch, size_t width, size_t height) nogil - - {{endif}} - {{if 'cudaMallocArray' in found_functions}} - - cudaError_t cudaMallocArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) nogil - - {{endif}} - {{if 'cudaFree' in found_functions}} - - cudaError_t cudaFree(void* devPtr) nogil - - {{endif}} - {{if 'cudaFreeHost' in found_functions}} - - cudaError_t cudaFreeHost(void* ptr) nogil - - {{endif}} - {{if 'cudaFreeArray' in found_functions}} - - cudaError_t cudaFreeArray(cudaArray_t array) nogil - - {{endif}} - {{if 'cudaFreeMipmappedArray' in found_functions}} - - cudaError_t cudaFreeMipmappedArray(cudaMipmappedArray_t mipmappedArray) nogil - - {{endif}} - {{if 'cudaHostAlloc' in found_functions}} - - cudaError_t cudaHostAlloc(void** pHost, size_t size, unsigned int flags) nogil - - {{endif}} - {{if 'cudaHostRegister' in found_functions}} - - cudaError_t cudaHostRegister(void* ptr, size_t size, unsigned int flags) nogil - - {{endif}} - {{if 'cudaHostUnregister' in found_functions}} - - cudaError_t cudaHostUnregister(void* ptr) nogil - - {{endif}} - {{if 'cudaHostGetDevicePointer' in found_functions}} - - cudaError_t cudaHostGetDevicePointer(void** pDevice, void* pHost, unsigned int flags) nogil - - {{endif}} - {{if 'cudaHostGetFlags' in found_functions}} - - cudaError_t cudaHostGetFlags(unsigned int* pFlags, void* pHost) nogil - - {{endif}} - {{if 'cudaMalloc3D' in found_functions}} - - cudaError_t cudaMalloc3D(cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) nogil - - {{endif}} - {{if 'cudaMalloc3DArray' in found_functions}} - - cudaError_t cudaMalloc3DArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) nogil - - {{endif}} - {{if 'cudaMallocMipmappedArray' in found_functions}} - - cudaError_t cudaMallocMipmappedArray(cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) nogil - - {{endif}} - {{if 'cudaGetMipmappedArrayLevel' in found_functions}} - - cudaError_t cudaGetMipmappedArrayLevel(cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) nogil - - {{endif}} - {{if 'cudaMemcpy3D' in found_functions}} - - cudaError_t cudaMemcpy3D(const cudaMemcpy3DParms* p) nogil - - {{endif}} - {{if 'cudaMemcpy3DPeer' in found_functions}} - - cudaError_t cudaMemcpy3DPeer(const cudaMemcpy3DPeerParms* p) nogil - - {{endif}} - {{if 'cudaMemcpy3DAsync' in found_functions}} - - cudaError_t cudaMemcpy3DAsync(const cudaMemcpy3DParms* p, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemcpy3DPeerAsync' in found_functions}} - - cudaError_t cudaMemcpy3DPeerAsync(const cudaMemcpy3DPeerParms* p, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemGetInfo' in found_functions}} - - cudaError_t cudaMemGetInfo(size_t* free, size_t* total) nogil - - {{endif}} - {{if 'cudaArrayGetInfo' in found_functions}} - - cudaError_t cudaArrayGetInfo(cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) nogil - - {{endif}} - {{if 'cudaArrayGetPlane' in found_functions}} - - cudaError_t cudaArrayGetPlane(cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) nogil - - {{endif}} - {{if 'cudaArrayGetMemoryRequirements' in found_functions}} - - cudaError_t cudaArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) nogil - - {{endif}} - {{if 'cudaMipmappedArrayGetMemoryRequirements' in found_functions}} - - cudaError_t cudaMipmappedArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) nogil - - {{endif}} - {{if 'cudaArrayGetSparseProperties' in found_functions}} - - cudaError_t cudaArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaArray_t array) nogil - - {{endif}} - {{if 'cudaMipmappedArrayGetSparseProperties' in found_functions}} - - cudaError_t cudaMipmappedArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) nogil - - {{endif}} - {{if 'cudaMemcpy' in found_functions}} - - cudaError_t cudaMemcpy(void* dst, const void* src, size_t count, cudaMemcpyKind kind) nogil - - {{endif}} - {{if 'cudaMemcpyPeer' in found_functions}} - - cudaError_t cudaMemcpyPeer(void* dst, int dstDevice, const void* src, int srcDevice, size_t count) nogil - - {{endif}} - {{if 'cudaMemcpy2D' in found_functions}} - - cudaError_t cudaMemcpy2D(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) nogil - - {{endif}} - {{if 'cudaMemcpy2DToArray' in found_functions}} - - cudaError_t cudaMemcpy2DToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) nogil - - {{endif}} - {{if 'cudaMemcpy2DFromArray' in found_functions}} - - cudaError_t cudaMemcpy2DFromArray(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) nogil - - {{endif}} - {{if 'cudaMemcpy2DArrayToArray' in found_functions}} - - cudaError_t cudaMemcpy2DArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) nogil - - {{endif}} - {{if 'cudaMemcpyAsync' in found_functions}} - - cudaError_t cudaMemcpyAsync(void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemcpyPeerAsync' in found_functions}} - - cudaError_t cudaMemcpyPeerAsync(void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemcpyBatchAsync' in found_functions}} - - cudaError_t cudaMemcpyBatchAsync(void** dsts, void** srcs, size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, size_t* failIdx, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemcpy3DBatchAsync' in found_functions}} - - cudaError_t cudaMemcpy3DBatchAsync(size_t numOps, cudaMemcpy3DBatchOp* opList, size_t* failIdx, unsigned long long flags, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemcpy2DAsync' in found_functions}} - - cudaError_t cudaMemcpy2DAsync(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemcpy2DToArrayAsync' in found_functions}} - - cudaError_t cudaMemcpy2DToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemcpy2DFromArrayAsync' in found_functions}} - - cudaError_t cudaMemcpy2DFromArrayAsync(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemset' in found_functions}} - - cudaError_t cudaMemset(void* devPtr, int value, size_t count) nogil - - {{endif}} - {{if 'cudaMemset2D' in found_functions}} - - cudaError_t cudaMemset2D(void* devPtr, size_t pitch, int value, size_t width, size_t height) nogil - - {{endif}} - {{if 'cudaMemset3D' in found_functions}} - - cudaError_t cudaMemset3D(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) nogil - - {{endif}} - {{if 'cudaMemsetAsync' in found_functions}} - - cudaError_t cudaMemsetAsync(void* devPtr, int value, size_t count, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemset2DAsync' in found_functions}} - - cudaError_t cudaMemset2DAsync(void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemset3DAsync' in found_functions}} - - cudaError_t cudaMemset3DAsync(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemPrefetchAsync' in found_functions}} - - cudaError_t cudaMemPrefetchAsync(const void* devPtr, size_t count, int dstDevice, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemPrefetchAsync_v2' in found_functions}} - - cudaError_t cudaMemPrefetchAsync_v2(const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemAdvise' in found_functions}} - - cudaError_t cudaMemAdvise(const void* devPtr, size_t count, cudaMemoryAdvise advice, int device) nogil - - {{endif}} - {{if 'cudaMemAdvise_v2' in found_functions}} - - cudaError_t cudaMemAdvise_v2(const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) nogil - - {{endif}} - {{if 'cudaMemRangeGetAttribute' in found_functions}} - - cudaError_t cudaMemRangeGetAttribute(void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) nogil - - {{endif}} - {{if 'cudaMemRangeGetAttributes' in found_functions}} - - cudaError_t cudaMemRangeGetAttributes(void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) nogil - - {{endif}} - {{if 'cudaMemcpyToArray' in found_functions}} - - cudaError_t cudaMemcpyToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) nogil - - {{endif}} - {{if 'cudaMemcpyFromArray' in found_functions}} - - cudaError_t cudaMemcpyFromArray(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) nogil - - {{endif}} - {{if 'cudaMemcpyArrayToArray' in found_functions}} - - cudaError_t cudaMemcpyArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) nogil - - {{endif}} - {{if 'cudaMemcpyToArrayAsync' in found_functions}} - - cudaError_t cudaMemcpyToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemcpyFromArrayAsync' in found_functions}} - - cudaError_t cudaMemcpyFromArrayAsync(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMallocAsync' in found_functions}} - - cudaError_t cudaMallocAsync(void** devPtr, size_t size, cudaStream_t hStream) nogil - - {{endif}} - {{if 'cudaFreeAsync' in found_functions}} - - cudaError_t cudaFreeAsync(void* devPtr, cudaStream_t hStream) nogil - - {{endif}} - {{if 'cudaMemPoolTrimTo' in found_functions}} - - cudaError_t cudaMemPoolTrimTo(cudaMemPool_t memPool, size_t minBytesToKeep) nogil - - {{endif}} - {{if 'cudaMemPoolSetAttribute' in found_functions}} - - cudaError_t cudaMemPoolSetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) nogil - - {{endif}} - {{if 'cudaMemPoolGetAttribute' in found_functions}} - - cudaError_t cudaMemPoolGetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) nogil - - {{endif}} - {{if 'cudaMemPoolSetAccess' in found_functions}} - - cudaError_t cudaMemPoolSetAccess(cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) nogil - - {{endif}} - {{if 'cudaMemPoolGetAccess' in found_functions}} - - cudaError_t cudaMemPoolGetAccess(cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) nogil - - {{endif}} - {{if 'cudaMemPoolCreate' in found_functions}} - - cudaError_t cudaMemPoolCreate(cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) nogil - - {{endif}} - {{if 'cudaMemPoolDestroy' in found_functions}} - - cudaError_t cudaMemPoolDestroy(cudaMemPool_t memPool) nogil - - {{endif}} - {{if 'cudaMallocFromPoolAsync' in found_functions}} - - cudaError_t cudaMallocFromPoolAsync(void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemPoolExportToShareableHandle' in found_functions}} - - cudaError_t cudaMemPoolExportToShareableHandle(void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) nogil - - {{endif}} - {{if 'cudaMemPoolImportFromShareableHandle' in found_functions}} - - cudaError_t cudaMemPoolImportFromShareableHandle(cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) nogil - - {{endif}} - {{if 'cudaMemPoolExportPointer' in found_functions}} - - cudaError_t cudaMemPoolExportPointer(cudaMemPoolPtrExportData* exportData, void* ptr) nogil - - {{endif}} - {{if 'cudaMemPoolImportPointer' in found_functions}} - - cudaError_t cudaMemPoolImportPointer(void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) nogil - - {{endif}} - {{if 'cudaPointerGetAttributes' in found_functions}} - - cudaError_t cudaPointerGetAttributes(cudaPointerAttributes* attributes, const void* ptr) nogil - - {{endif}} - {{if 'cudaDeviceCanAccessPeer' in found_functions}} - - cudaError_t cudaDeviceCanAccessPeer(int* canAccessPeer, int device, int peerDevice) nogil - - {{endif}} - {{if 'cudaDeviceEnablePeerAccess' in found_functions}} - - cudaError_t cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags) nogil - - {{endif}} - {{if 'cudaDeviceDisablePeerAccess' in found_functions}} - - cudaError_t cudaDeviceDisablePeerAccess(int peerDevice) nogil - - {{endif}} - {{if 'cudaGraphicsUnregisterResource' in found_functions}} - - cudaError_t cudaGraphicsUnregisterResource(cudaGraphicsResource_t resource) nogil - - {{endif}} - {{if 'cudaGraphicsResourceSetMapFlags' in found_functions}} - - cudaError_t cudaGraphicsResourceSetMapFlags(cudaGraphicsResource_t resource, unsigned int flags) nogil - - {{endif}} - {{if 'cudaGraphicsMapResources' in found_functions}} - - cudaError_t cudaGraphicsMapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaGraphicsUnmapResources' in found_functions}} - - cudaError_t cudaGraphicsUnmapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaGraphicsResourceGetMappedPointer' in found_functions}} - - cudaError_t cudaGraphicsResourceGetMappedPointer(void** devPtr, size_t* size, cudaGraphicsResource_t resource) nogil - - {{endif}} - {{if 'cudaGraphicsSubResourceGetMappedArray' in found_functions}} - - cudaError_t cudaGraphicsSubResourceGetMappedArray(cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) nogil - - {{endif}} - {{if 'cudaGraphicsResourceGetMappedMipmappedArray' in found_functions}} - - cudaError_t cudaGraphicsResourceGetMappedMipmappedArray(cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) nogil - - {{endif}} - {{if 'cudaGetChannelDesc' in found_functions}} - - cudaError_t cudaGetChannelDesc(cudaChannelFormatDesc* desc, cudaArray_const_t array) nogil - - {{endif}} - {{if 'cudaCreateChannelDesc' in found_functions}} - - cudaChannelFormatDesc cudaCreateChannelDesc(int x, int y, int z, int w, cudaChannelFormatKind f) nogil - - {{endif}} - {{if 'cudaCreateTextureObject' in found_functions}} - - cudaError_t cudaCreateTextureObject(cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) nogil - - {{endif}} - {{if 'cudaDestroyTextureObject' in found_functions}} - - cudaError_t cudaDestroyTextureObject(cudaTextureObject_t texObject) nogil - - {{endif}} - {{if 'cudaGetTextureObjectResourceDesc' in found_functions}} - - cudaError_t cudaGetTextureObjectResourceDesc(cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) nogil - - {{endif}} - {{if 'cudaGetTextureObjectTextureDesc' in found_functions}} - - cudaError_t cudaGetTextureObjectTextureDesc(cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) nogil - - {{endif}} - {{if 'cudaGetTextureObjectResourceViewDesc' in found_functions}} - - cudaError_t cudaGetTextureObjectResourceViewDesc(cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) nogil - - {{endif}} - {{if 'cudaCreateSurfaceObject' in found_functions}} - - cudaError_t cudaCreateSurfaceObject(cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) nogil - - {{endif}} - {{if 'cudaDestroySurfaceObject' in found_functions}} - - cudaError_t cudaDestroySurfaceObject(cudaSurfaceObject_t surfObject) nogil - - {{endif}} - {{if 'cudaGetSurfaceObjectResourceDesc' in found_functions}} - - cudaError_t cudaGetSurfaceObjectResourceDesc(cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) nogil - - {{endif}} - {{if 'cudaDriverGetVersion' in found_functions}} - - cudaError_t cudaDriverGetVersion(int* driverVersion) nogil - - {{endif}} - {{if 'cudaRuntimeGetVersion' in found_functions}} - - cudaError_t cudaRuntimeGetVersion(int* runtimeVersion) nogil - - {{endif}} - {{if 'cudaGraphCreate' in found_functions}} - - cudaError_t cudaGraphCreate(cudaGraph_t* pGraph, unsigned int flags) nogil - - {{endif}} - {{if 'cudaGraphAddKernelNode' in found_functions}} - - cudaError_t cudaGraphAddKernelNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphKernelNodeGetParams' in found_functions}} - - cudaError_t cudaGraphKernelNodeGetParams(cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphKernelNodeSetParams' in found_functions}} - - cudaError_t cudaGraphKernelNodeSetParams(cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphKernelNodeCopyAttributes' in found_functions}} - - cudaError_t cudaGraphKernelNodeCopyAttributes(cudaGraphNode_t hSrc, cudaGraphNode_t hDst) nogil - - {{endif}} - {{if 'cudaGraphKernelNodeGetAttribute' in found_functions}} - - cudaError_t cudaGraphKernelNodeGetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, cudaKernelNodeAttrValue* value_out) nogil - - {{endif}} - {{if 'cudaGraphKernelNodeSetAttribute' in found_functions}} - - cudaError_t cudaGraphKernelNodeSetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, const cudaKernelNodeAttrValue* value) nogil - - {{endif}} - {{if 'cudaGraphAddMemcpyNode' in found_functions}} - - cudaError_t cudaGraphAddMemcpyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) nogil - - {{endif}} - {{if 'cudaGraphAddMemcpyNode1D' in found_functions}} - - cudaError_t cudaGraphAddMemcpyNode1D(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) nogil - - {{endif}} - {{if 'cudaGraphMemcpyNodeGetParams' in found_functions}} - - cudaError_t cudaGraphMemcpyNodeGetParams(cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphMemcpyNodeSetParams' in found_functions}} - - cudaError_t cudaGraphMemcpyNodeSetParams(cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphMemcpyNodeSetParams1D' in found_functions}} - - cudaError_t cudaGraphMemcpyNodeSetParams1D(cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) nogil - - {{endif}} - {{if 'cudaGraphAddMemsetNode' in found_functions}} - - cudaError_t cudaGraphAddMemsetNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) nogil - - {{endif}} - {{if 'cudaGraphMemsetNodeGetParams' in found_functions}} - - cudaError_t cudaGraphMemsetNodeGetParams(cudaGraphNode_t node, cudaMemsetParams* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphMemsetNodeSetParams' in found_functions}} - - cudaError_t cudaGraphMemsetNodeSetParams(cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphAddHostNode' in found_functions}} - - cudaError_t cudaGraphAddHostNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphHostNodeGetParams' in found_functions}} - - cudaError_t cudaGraphHostNodeGetParams(cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphHostNodeSetParams' in found_functions}} - - cudaError_t cudaGraphHostNodeSetParams(cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphAddChildGraphNode' in found_functions}} - - cudaError_t cudaGraphAddChildGraphNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) nogil - - {{endif}} - {{if 'cudaGraphChildGraphNodeGetGraph' in found_functions}} - - cudaError_t cudaGraphChildGraphNodeGetGraph(cudaGraphNode_t node, cudaGraph_t* pGraph) nogil - - {{endif}} - {{if 'cudaGraphAddEmptyNode' in found_functions}} - - cudaError_t cudaGraphAddEmptyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) nogil - - {{endif}} - {{if 'cudaGraphAddEventRecordNode' in found_functions}} - - cudaError_t cudaGraphAddEventRecordNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) nogil - - {{endif}} - {{if 'cudaGraphEventRecordNodeGetEvent' in found_functions}} - - cudaError_t cudaGraphEventRecordNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) nogil - - {{endif}} - {{if 'cudaGraphEventRecordNodeSetEvent' in found_functions}} - - cudaError_t cudaGraphEventRecordNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) nogil - - {{endif}} - {{if 'cudaGraphAddEventWaitNode' in found_functions}} - - cudaError_t cudaGraphAddEventWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) nogil - - {{endif}} - {{if 'cudaGraphEventWaitNodeGetEvent' in found_functions}} - - cudaError_t cudaGraphEventWaitNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) nogil - - {{endif}} - {{if 'cudaGraphEventWaitNodeSetEvent' in found_functions}} - - cudaError_t cudaGraphEventWaitNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) nogil - - {{endif}} - {{if 'cudaGraphAddExternalSemaphoresSignalNode' in found_functions}} - - cudaError_t cudaGraphAddExternalSemaphoresSignalNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) nogil - - {{endif}} - {{if 'cudaGraphExternalSemaphoresSignalNodeGetParams' in found_functions}} - - cudaError_t cudaGraphExternalSemaphoresSignalNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) nogil - - {{endif}} - {{if 'cudaGraphExternalSemaphoresSignalNodeSetParams' in found_functions}} - - cudaError_t cudaGraphExternalSemaphoresSignalNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) nogil - - {{endif}} - {{if 'cudaGraphAddExternalSemaphoresWaitNode' in found_functions}} - - cudaError_t cudaGraphAddExternalSemaphoresWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) nogil - - {{endif}} - {{if 'cudaGraphExternalSemaphoresWaitNodeGetParams' in found_functions}} - - cudaError_t cudaGraphExternalSemaphoresWaitNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) nogil - - {{endif}} - {{if 'cudaGraphExternalSemaphoresWaitNodeSetParams' in found_functions}} - - cudaError_t cudaGraphExternalSemaphoresWaitNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) nogil - - {{endif}} - {{if 'cudaGraphAddMemAllocNode' in found_functions}} - - cudaError_t cudaGraphAddMemAllocNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) nogil - - {{endif}} - {{if 'cudaGraphMemAllocNodeGetParams' in found_functions}} - - cudaError_t cudaGraphMemAllocNodeGetParams(cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) nogil - - {{endif}} - {{if 'cudaGraphAddMemFreeNode' in found_functions}} - - cudaError_t cudaGraphAddMemFreeNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) nogil - - {{endif}} - {{if 'cudaGraphMemFreeNodeGetParams' in found_functions}} - - cudaError_t cudaGraphMemFreeNodeGetParams(cudaGraphNode_t node, void* dptr_out) nogil - - {{endif}} - {{if 'cudaDeviceGraphMemTrim' in found_functions}} - - cudaError_t cudaDeviceGraphMemTrim(int device) nogil - - {{endif}} - {{if 'cudaDeviceGetGraphMemAttribute' in found_functions}} - - cudaError_t cudaDeviceGetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) nogil - - {{endif}} - {{if 'cudaDeviceSetGraphMemAttribute' in found_functions}} - - cudaError_t cudaDeviceSetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) nogil - - {{endif}} - {{if 'cudaGraphClone' in found_functions}} - - cudaError_t cudaGraphClone(cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) nogil - - {{endif}} - {{if 'cudaGraphNodeFindInClone' in found_functions}} - - cudaError_t cudaGraphNodeFindInClone(cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) nogil - - {{endif}} - {{if 'cudaGraphNodeGetType' in found_functions}} - - cudaError_t cudaGraphNodeGetType(cudaGraphNode_t node, cudaGraphNodeType* pType) nogil - - {{endif}} - {{if 'cudaGraphGetNodes' in found_functions}} - - cudaError_t cudaGraphGetNodes(cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) nogil - - {{endif}} - {{if 'cudaGraphGetRootNodes' in found_functions}} - - cudaError_t cudaGraphGetRootNodes(cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) nogil - - {{endif}} - {{if 'cudaGraphGetEdges' in found_functions}} - - cudaError_t cudaGraphGetEdges(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, size_t* numEdges) nogil - - {{endif}} - {{if 'cudaGraphGetEdges_v2' in found_functions}} - - cudaError_t cudaGraphGetEdges_v2(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) nogil - - {{endif}} - {{if 'cudaGraphNodeGetDependencies' in found_functions}} - - cudaError_t cudaGraphNodeGetDependencies(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, size_t* pNumDependencies) nogil - - {{endif}} - {{if 'cudaGraphNodeGetDependencies_v2' in found_functions}} - - cudaError_t cudaGraphNodeGetDependencies_v2(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) nogil - - {{endif}} - {{if 'cudaGraphNodeGetDependentNodes' in found_functions}} - - cudaError_t cudaGraphNodeGetDependentNodes(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, size_t* pNumDependentNodes) nogil - - {{endif}} - {{if 'cudaGraphNodeGetDependentNodes_v2' in found_functions}} - - cudaError_t cudaGraphNodeGetDependentNodes_v2(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) nogil - - {{endif}} - {{if 'cudaGraphAddDependencies' in found_functions}} - - cudaError_t cudaGraphAddDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) nogil - - {{endif}} - {{if 'cudaGraphAddDependencies_v2' in found_functions}} - - cudaError_t cudaGraphAddDependencies_v2(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) nogil - - {{endif}} - {{if 'cudaGraphRemoveDependencies' in found_functions}} - - cudaError_t cudaGraphRemoveDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, size_t numDependencies) nogil - - {{endif}} - {{if 'cudaGraphRemoveDependencies_v2' in found_functions}} - - cudaError_t cudaGraphRemoveDependencies_v2(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) nogil - - {{endif}} - {{if 'cudaGraphDestroyNode' in found_functions}} - - cudaError_t cudaGraphDestroyNode(cudaGraphNode_t node) nogil - - {{endif}} - {{if 'cudaGraphInstantiate' in found_functions}} - - cudaError_t cudaGraphInstantiate(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) nogil - - {{endif}} - {{if 'cudaGraphInstantiateWithFlags' in found_functions}} - - cudaError_t cudaGraphInstantiateWithFlags(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) nogil - - {{endif}} - {{if 'cudaGraphInstantiateWithParams' in found_functions}} - - cudaError_t cudaGraphInstantiateWithParams(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) nogil - - {{endif}} - {{if 'cudaGraphExecGetFlags' in found_functions}} - - cudaError_t cudaGraphExecGetFlags(cudaGraphExec_t graphExec, unsigned long long* flags) nogil - - {{endif}} - {{if 'cudaGraphExecKernelNodeSetParams' in found_functions}} - - cudaError_t cudaGraphExecKernelNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphExecMemcpyNodeSetParams' in found_functions}} - - cudaError_t cudaGraphExecMemcpyNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphExecMemcpyNodeSetParams1D' in found_functions}} - - cudaError_t cudaGraphExecMemcpyNodeSetParams1D(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) nogil - - {{endif}} - {{if 'cudaGraphExecMemsetNodeSetParams' in found_functions}} - - cudaError_t cudaGraphExecMemsetNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphExecHostNodeSetParams' in found_functions}} - - cudaError_t cudaGraphExecHostNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphExecChildGraphNodeSetParams' in found_functions}} - - cudaError_t cudaGraphExecChildGraphNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) nogil - - {{endif}} - {{if 'cudaGraphExecEventRecordNodeSetEvent' in found_functions}} - - cudaError_t cudaGraphExecEventRecordNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) nogil - - {{endif}} - {{if 'cudaGraphExecEventWaitNodeSetEvent' in found_functions}} - - cudaError_t cudaGraphExecEventWaitNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) nogil - - {{endif}} - {{if 'cudaGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}} - - cudaError_t cudaGraphExecExternalSemaphoresSignalNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) nogil - - {{endif}} - {{if 'cudaGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}} - - cudaError_t cudaGraphExecExternalSemaphoresWaitNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) nogil - - {{endif}} - {{if 'cudaGraphNodeSetEnabled' in found_functions}} - - cudaError_t cudaGraphNodeSetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) nogil - - {{endif}} - {{if 'cudaGraphNodeGetEnabled' in found_functions}} - - cudaError_t cudaGraphNodeGetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) nogil - - {{endif}} - {{if 'cudaGraphExecUpdate' in found_functions}} - - cudaError_t cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) nogil - - {{endif}} - {{if 'cudaGraphUpload' in found_functions}} - - cudaError_t cudaGraphUpload(cudaGraphExec_t graphExec, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaGraphLaunch' in found_functions}} - - cudaError_t cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaGraphExecDestroy' in found_functions}} - - cudaError_t cudaGraphExecDestroy(cudaGraphExec_t graphExec) nogil - - {{endif}} - {{if 'cudaGraphDestroy' in found_functions}} - - cudaError_t cudaGraphDestroy(cudaGraph_t graph) nogil - - {{endif}} - {{if 'cudaGraphDebugDotPrint' in found_functions}} - - cudaError_t cudaGraphDebugDotPrint(cudaGraph_t graph, const char* path, unsigned int flags) nogil - - {{endif}} - {{if 'cudaUserObjectCreate' in found_functions}} - - cudaError_t cudaUserObjectCreate(cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) nogil - - {{endif}} - {{if 'cudaUserObjectRetain' in found_functions}} - - cudaError_t cudaUserObjectRetain(cudaUserObject_t object, unsigned int count) nogil - - {{endif}} - {{if 'cudaUserObjectRelease' in found_functions}} - - cudaError_t cudaUserObjectRelease(cudaUserObject_t object, unsigned int count) nogil - - {{endif}} - {{if 'cudaGraphRetainUserObject' in found_functions}} - - cudaError_t cudaGraphRetainUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) nogil - - {{endif}} - {{if 'cudaGraphReleaseUserObject' in found_functions}} - - cudaError_t cudaGraphReleaseUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count) nogil - - {{endif}} - {{if 'cudaGraphAddNode' in found_functions}} - - cudaError_t cudaGraphAddNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraphNodeParams* nodeParams) nogil - - {{endif}} - {{if 'cudaGraphAddNode_v2' in found_functions}} - - cudaError_t cudaGraphAddNode_v2(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) nogil - - {{endif}} - {{if 'cudaGraphNodeSetParams' in found_functions}} - - cudaError_t cudaGraphNodeSetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) nogil - - {{endif}} - {{if 'cudaGraphExecNodeSetParams' in found_functions}} - - cudaError_t cudaGraphExecNodeSetParams(cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) nogil - - {{endif}} - {{if 'cudaGraphConditionalHandleCreate' in found_functions}} - - cudaError_t cudaGraphConditionalHandleCreate(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) nogil - - {{endif}} - {{if 'cudaGetDriverEntryPoint' in found_functions}} - - cudaError_t cudaGetDriverEntryPoint(const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) nogil - - {{endif}} - {{if 'cudaGetDriverEntryPointByVersion' in found_functions}} - - cudaError_t cudaGetDriverEntryPointByVersion(const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) nogil - - {{endif}} - {{if 'cudaLibraryLoadData' in found_functions}} - - cudaError_t cudaLibraryLoadData(cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) nogil - - {{endif}} - {{if 'cudaLibraryLoadFromFile' in found_functions}} - - cudaError_t cudaLibraryLoadFromFile(cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) nogil - - {{endif}} - {{if 'cudaLibraryUnload' in found_functions}} - - cudaError_t cudaLibraryUnload(cudaLibrary_t library) nogil - - {{endif}} - {{if 'cudaLibraryGetKernel' in found_functions}} - - cudaError_t cudaLibraryGetKernel(cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) nogil - - {{endif}} - {{if 'cudaLibraryGetGlobal' in found_functions}} - - cudaError_t cudaLibraryGetGlobal(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) nogil - - {{endif}} - {{if 'cudaLibraryGetManaged' in found_functions}} - - cudaError_t cudaLibraryGetManaged(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) nogil - - {{endif}} - {{if 'cudaLibraryGetUnifiedFunction' in found_functions}} - - cudaError_t cudaLibraryGetUnifiedFunction(void** fptr, cudaLibrary_t library, const char* symbol) nogil - - {{endif}} - {{if 'cudaLibraryGetKernelCount' in found_functions}} - - cudaError_t cudaLibraryGetKernelCount(unsigned int* count, cudaLibrary_t lib) nogil - - {{endif}} - {{if 'cudaLibraryEnumerateKernels' in found_functions}} - - cudaError_t cudaLibraryEnumerateKernels(cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) nogil - - {{endif}} - {{if 'cudaKernelSetAttributeForDevice' in found_functions}} - - cudaError_t cudaKernelSetAttributeForDevice(cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) nogil - - {{endif}} - {{if 'cudaGetExportTable' in found_functions}} - - cudaError_t cudaGetExportTable(const void** ppExportTable, const cudaUUID_t* pExportTableId) nogil - - {{endif}} - {{if 'cudaGetKernel' in found_functions}} - - cudaError_t cudaGetKernel(cudaKernel_t* kernelPtr, const void* entryFuncAddr) nogil - - {{endif}} - -cdef extern from "cuda_runtime.h": - - {{if 'make_cudaPitchedPtr' in found_functions}} - - cudaPitchedPtr make_cudaPitchedPtr(void* d, size_t p, size_t xsz, size_t ysz) nogil - - {{endif}} - {{if 'make_cudaPos' in found_functions}} - - cudaPos make_cudaPos(size_t x, size_t y, size_t z) nogil - - {{endif}} - {{if 'make_cudaExtent' in found_functions}} - - cudaExtent make_cudaExtent(size_t w, size_t h, size_t d) nogil - - {{endif}} - -cdef extern from "cuda_profiler_api.h": - - {{if 'cudaProfilerStart' in found_functions}} - - cudaError_t cudaProfilerStart() nogil - - {{endif}} - {{if 'cudaProfilerStop' in found_functions}} - - cudaError_t cudaProfilerStop() nogil - - {{endif}} - diff --git a/cuda_bindings_12/cuda/bindings/cyruntime_types.pxi.in b/cuda_bindings_12/cuda/bindings/cyruntime_types.pxi.in deleted file mode 100644 index b3375206bfd9..000000000000 --- a/cuda_bindings_12/cuda/bindings/cyruntime_types.pxi.in +++ /dev/null @@ -1,1560 +0,0 @@ -# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -# SPDX-License-Identifier: Apache-2.0 - -# This code was automatically generated with version 12.9.0. Do not modify it directly. - -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=c51143430d125993e9caa3d4ef3c8ae8c00cee1d4bbeb947dc2b2a736714e833 -cdef extern from "vector_types.h": - - cdef struct dim3: - unsigned int x - unsigned int y - unsigned int z - -cdef extern from "driver_types.h": - - cdef enum cudaError: - cudaSuccess = 0 - cudaErrorInvalidValue = 1 - cudaErrorMemoryAllocation = 2 - cudaErrorInitializationError = 3 - cudaErrorCudartUnloading = 4 - cudaErrorProfilerDisabled = 5 - cudaErrorProfilerNotInitialized = 6 - cudaErrorProfilerAlreadyStarted = 7 - cudaErrorProfilerAlreadyStopped = 8 - cudaErrorInvalidConfiguration = 9 - cudaErrorInvalidPitchValue = 12 - cudaErrorInvalidSymbol = 13 - cudaErrorInvalidHostPointer = 16 - cudaErrorInvalidDevicePointer = 17 - cudaErrorInvalidTexture = 18 - cudaErrorInvalidTextureBinding = 19 - cudaErrorInvalidChannelDescriptor = 20 - cudaErrorInvalidMemcpyDirection = 21 - cudaErrorAddressOfConstant = 22 - cudaErrorTextureFetchFailed = 23 - cudaErrorTextureNotBound = 24 - cudaErrorSynchronizationError = 25 - cudaErrorInvalidFilterSetting = 26 - cudaErrorInvalidNormSetting = 27 - cudaErrorMixedDeviceExecution = 28 - cudaErrorNotYetImplemented = 31 - cudaErrorMemoryValueTooLarge = 32 - cudaErrorStubLibrary = 34 - cudaErrorInsufficientDriver = 35 - cudaErrorCallRequiresNewerDriver = 36 - cudaErrorInvalidSurface = 37 - cudaErrorDuplicateVariableName = 43 - cudaErrorDuplicateTextureName = 44 - cudaErrorDuplicateSurfaceName = 45 - cudaErrorDevicesUnavailable = 46 - cudaErrorIncompatibleDriverContext = 49 - cudaErrorMissingConfiguration = 52 - cudaErrorPriorLaunchFailure = 53 - cudaErrorLaunchMaxDepthExceeded = 65 - cudaErrorLaunchFileScopedTex = 66 - cudaErrorLaunchFileScopedSurf = 67 - cudaErrorSyncDepthExceeded = 68 - cudaErrorLaunchPendingCountExceeded = 69 - cudaErrorInvalidDeviceFunction = 98 - cudaErrorNoDevice = 100 - cudaErrorInvalidDevice = 101 - cudaErrorDeviceNotLicensed = 102 - cudaErrorSoftwareValidityNotEstablished = 103 - cudaErrorStartupFailure = 127 - cudaErrorInvalidKernelImage = 200 - cudaErrorDeviceUninitialized = 201 - cudaErrorMapBufferObjectFailed = 205 - cudaErrorUnmapBufferObjectFailed = 206 - cudaErrorArrayIsMapped = 207 - cudaErrorAlreadyMapped = 208 - cudaErrorNoKernelImageForDevice = 209 - cudaErrorAlreadyAcquired = 210 - cudaErrorNotMapped = 211 - cudaErrorNotMappedAsArray = 212 - cudaErrorNotMappedAsPointer = 213 - cudaErrorECCUncorrectable = 214 - cudaErrorUnsupportedLimit = 215 - cudaErrorDeviceAlreadyInUse = 216 - cudaErrorPeerAccessUnsupported = 217 - cudaErrorInvalidPtx = 218 - cudaErrorInvalidGraphicsContext = 219 - cudaErrorNvlinkUncorrectable = 220 - cudaErrorJitCompilerNotFound = 221 - cudaErrorUnsupportedPtxVersion = 222 - cudaErrorJitCompilationDisabled = 223 - cudaErrorUnsupportedExecAffinity = 224 - cudaErrorUnsupportedDevSideSync = 225 - cudaErrorContained = 226 - cudaErrorInvalidSource = 300 - cudaErrorFileNotFound = 301 - cudaErrorSharedObjectSymbolNotFound = 302 - cudaErrorSharedObjectInitFailed = 303 - cudaErrorOperatingSystem = 304 - cudaErrorInvalidResourceHandle = 400 - cudaErrorIllegalState = 401 - cudaErrorLossyQuery = 402 - cudaErrorSymbolNotFound = 500 - cudaErrorNotReady = 600 - cudaErrorIllegalAddress = 700 - cudaErrorLaunchOutOfResources = 701 - cudaErrorLaunchTimeout = 702 - cudaErrorLaunchIncompatibleTexturing = 703 - cudaErrorPeerAccessAlreadyEnabled = 704 - cudaErrorPeerAccessNotEnabled = 705 - cudaErrorSetOnActiveProcess = 708 - cudaErrorContextIsDestroyed = 709 - cudaErrorAssert = 710 - cudaErrorTooManyPeers = 711 - cudaErrorHostMemoryAlreadyRegistered = 712 - cudaErrorHostMemoryNotRegistered = 713 - cudaErrorHardwareStackError = 714 - cudaErrorIllegalInstruction = 715 - cudaErrorMisalignedAddress = 716 - cudaErrorInvalidAddressSpace = 717 - cudaErrorInvalidPc = 718 - cudaErrorLaunchFailure = 719 - cudaErrorCooperativeLaunchTooLarge = 720 - cudaErrorTensorMemoryLeak = 721 - cudaErrorNotPermitted = 800 - cudaErrorNotSupported = 801 - cudaErrorSystemNotReady = 802 - cudaErrorSystemDriverMismatch = 803 - cudaErrorCompatNotSupportedOnDevice = 804 - cudaErrorMpsConnectionFailed = 805 - cudaErrorMpsRpcFailure = 806 - cudaErrorMpsServerNotReady = 807 - cudaErrorMpsMaxClientsReached = 808 - cudaErrorMpsMaxConnectionsReached = 809 - cudaErrorMpsClientTerminated = 810 - cudaErrorCdpNotSupported = 811 - cudaErrorCdpVersionMismatch = 812 - cudaErrorStreamCaptureUnsupported = 900 - cudaErrorStreamCaptureInvalidated = 901 - cudaErrorStreamCaptureMerge = 902 - cudaErrorStreamCaptureUnmatched = 903 - cudaErrorStreamCaptureUnjoined = 904 - cudaErrorStreamCaptureIsolation = 905 - cudaErrorStreamCaptureImplicit = 906 - cudaErrorCapturedEvent = 907 - cudaErrorStreamCaptureWrongThread = 908 - cudaErrorTimeout = 909 - cudaErrorGraphExecUpdateFailure = 910 - cudaErrorExternalDevice = 911 - cudaErrorInvalidClusterSize = 912 - cudaErrorFunctionNotLoaded = 913 - cudaErrorInvalidResourceType = 914 - cudaErrorInvalidResourceConfiguration = 915 - cudaErrorUnknown = 999 - cudaErrorApiFailureBase = 10000 - - ctypedef cudaError cudaError_t - - cdef struct cudaChannelFormatDesc: - int x - int y - int z - int w - cudaChannelFormatKind f - - cdef struct cudaArray: - pass - ctypedef cudaArray* cudaArray_t - - cdef struct cudaArray: - pass - ctypedef cudaArray* cudaArray_const_t - - cdef struct cudaMipmappedArray: - pass - ctypedef cudaMipmappedArray* cudaMipmappedArray_t - - cdef struct cudaMipmappedArray: - pass - ctypedef cudaMipmappedArray* cudaMipmappedArray_const_t - - cdef struct anon_struct0: - unsigned int width - unsigned int height - unsigned int depth - - cdef struct cudaArraySparseProperties: - anon_struct0 tileExtent - unsigned int miptailFirstLevel - unsigned long long miptailSize - unsigned int flags - unsigned int reserved[4] - - cdef struct cudaArrayMemoryRequirements: - size_t size - size_t alignment - unsigned int reserved[4] - - cdef struct cudaPitchedPtr: - void* ptr - size_t pitch - size_t xsize - size_t ysize - - cdef struct cudaExtent: - size_t width - size_t height - size_t depth - - cdef struct cudaPos: - size_t x - size_t y - size_t z - - cdef struct cudaMemcpy3DParms: - cudaArray_t srcArray - cudaPos srcPos - cudaPitchedPtr srcPtr - cudaArray_t dstArray - cudaPos dstPos - cudaPitchedPtr dstPtr - cudaExtent extent - cudaMemcpyKind kind - - cdef struct cudaMemcpyNodeParams: - int flags - int reserved[3] - cudaMemcpy3DParms copyParams - - cdef struct cudaMemcpy3DPeerParms: - cudaArray_t srcArray - cudaPos srcPos - cudaPitchedPtr srcPtr - int srcDevice - cudaArray_t dstArray - cudaPos dstPos - cudaPitchedPtr dstPtr - int dstDevice - cudaExtent extent - - cdef struct cudaMemsetParams: - void* dst - size_t pitch - unsigned int value - unsigned int elementSize - size_t width - size_t height - - cdef struct cudaMemsetParamsV2: - void* dst - size_t pitch - unsigned int value - unsigned int elementSize - size_t width - size_t height - - cdef struct cudaAccessPolicyWindow: - void* base_ptr - size_t num_bytes - float hitRatio - cudaAccessProperty hitProp - cudaAccessProperty missProp - - ctypedef void (*cudaHostFn_t)(void* userData) - - cdef struct cudaHostNodeParams: - cudaHostFn_t fn - void* userData - - cdef struct cudaHostNodeParamsV2: - cudaHostFn_t fn - void* userData - - cdef struct anon_struct1: - cudaArray_t array - - cdef struct anon_struct2: - cudaMipmappedArray_t mipmap - - cdef struct anon_struct3: - void* devPtr - cudaChannelFormatDesc desc - size_t sizeInBytes - - cdef struct anon_struct4: - void* devPtr - cudaChannelFormatDesc desc - size_t width - size_t height - size_t pitchInBytes - - cdef union anon_union0: - anon_struct1 array - anon_struct2 mipmap - anon_struct3 linear - anon_struct4 pitch2D - - cdef struct cudaResourceDesc: - cudaResourceType resType - anon_union0 res - - cdef struct cudaResourceViewDesc: - cudaResourceViewFormat format - size_t width - size_t height - size_t depth - unsigned int firstMipmapLevel - unsigned int lastMipmapLevel - unsigned int firstLayer - unsigned int lastLayer - - cdef struct cudaPointerAttributes: - cudaMemoryType type - int device - void* devicePointer - void* hostPointer - - cdef struct cudaFuncAttributes: - size_t sharedSizeBytes - size_t constSizeBytes - size_t localSizeBytes - int maxThreadsPerBlock - int numRegs - int ptxVersion - int binaryVersion - int cacheModeCA - int maxDynamicSharedSizeBytes - int preferredShmemCarveout - int clusterDimMustBeSet - int requiredClusterWidth - int requiredClusterHeight - int requiredClusterDepth - int clusterSchedulingPolicyPreference - int nonPortableClusterSizeAllowed - int reserved[16] - - cdef struct cudaMemLocation: - cudaMemLocationType type - int id - - cdef struct cudaMemAccessDesc: - cudaMemLocation location - cudaMemAccessFlags flags - - cdef struct cudaMemPoolProps: - cudaMemAllocationType allocType - cudaMemAllocationHandleType handleTypes - cudaMemLocation location - void* win32SecurityAttributes - size_t maxSize - unsigned short usage - unsigned char reserved[54] - - cdef struct cudaMemPoolPtrExportData: - unsigned char reserved[64] - - cdef struct cudaMemAllocNodeParams: - cudaMemPoolProps poolProps - const cudaMemAccessDesc* accessDescs - size_t accessDescCount - size_t bytesize - void* dptr - - cdef struct cudaMemAllocNodeParamsV2: - cudaMemPoolProps poolProps - const cudaMemAccessDesc* accessDescs - size_t accessDescCount - size_t bytesize - void* dptr - - cdef struct cudaMemFreeNodeParams: - void* dptr - - cdef struct cudaMemcpyAttributes: - cudaMemcpySrcAccessOrder srcAccessOrder - cudaMemLocation srcLocHint - cudaMemLocation dstLocHint - unsigned int flags - - cdef struct cudaOffset3D: - size_t x - size_t y - size_t z - - cdef struct anon_struct5: - void* ptr - size_t rowLength - size_t layerHeight - cudaMemLocation locHint - - cdef struct anon_struct6: - cudaArray_t array - cudaOffset3D offset - - cdef union anon_union1: - anon_struct5 ptr - anon_struct6 array - - cdef struct cudaMemcpy3DOperand: - cudaMemcpy3DOperandType type - anon_union1 op - - cdef struct cudaMemcpy3DBatchOp: - cudaMemcpy3DOperand src - cudaMemcpy3DOperand dst - cudaExtent extent - cudaMemcpySrcAccessOrder srcAccessOrder - unsigned int flags - - cdef struct CUuuid_st: - char bytes[16] - - ctypedef CUuuid_st CUuuid - - ctypedef CUuuid_st cudaUUID_t - - cdef struct cudaDeviceProp: - char name[256] - cudaUUID_t uuid - char luid[8] - unsigned int luidDeviceNodeMask - size_t totalGlobalMem - size_t sharedMemPerBlock - int regsPerBlock - int warpSize - size_t memPitch - int maxThreadsPerBlock - int maxThreadsDim[3] - int maxGridSize[3] - int clockRate - size_t totalConstMem - int major - int minor - size_t textureAlignment - size_t texturePitchAlignment - int deviceOverlap - int multiProcessorCount - int kernelExecTimeoutEnabled - int integrated - int canMapHostMemory - int computeMode - int maxTexture1D - int maxTexture1DMipmap - int maxTexture1DLinear - int maxTexture2D[2] - int maxTexture2DMipmap[2] - int maxTexture2DLinear[3] - int maxTexture2DGather[2] - int maxTexture3D[3] - int maxTexture3DAlt[3] - int maxTextureCubemap - int maxTexture1DLayered[2] - int maxTexture2DLayered[3] - int maxTextureCubemapLayered[2] - int maxSurface1D - int maxSurface2D[2] - int maxSurface3D[3] - int maxSurface1DLayered[2] - int maxSurface2DLayered[3] - int maxSurfaceCubemap - int maxSurfaceCubemapLayered[2] - size_t surfaceAlignment - int concurrentKernels - int ECCEnabled - int pciBusID - int pciDeviceID - int pciDomainID - int tccDriver - int asyncEngineCount - int unifiedAddressing - int memoryClockRate - int memoryBusWidth - int l2CacheSize - int persistingL2CacheMaxSize - int maxThreadsPerMultiProcessor - int streamPrioritiesSupported - int globalL1CacheSupported - int localL1CacheSupported - size_t sharedMemPerMultiprocessor - int regsPerMultiprocessor - int managedMemory - int isMultiGpuBoard - int multiGpuBoardGroupID - int hostNativeAtomicSupported - int singleToDoublePrecisionPerfRatio - int pageableMemoryAccess - int concurrentManagedAccess - int computePreemptionSupported - int canUseHostPointerForRegisteredMem - int cooperativeLaunch - int cooperativeMultiDeviceLaunch - size_t sharedMemPerBlockOptin - int pageableMemoryAccessUsesHostPageTables - int directManagedMemAccessFromHost - int maxBlocksPerMultiProcessor - int accessPolicyMaxWindowSize - size_t reservedSharedMemPerBlock - int hostRegisterSupported - int sparseCudaArraySupported - int hostRegisterReadOnlySupported - int timelineSemaphoreInteropSupported - int memoryPoolsSupported - int gpuDirectRDMASupported - unsigned int gpuDirectRDMAFlushWritesOptions - int gpuDirectRDMAWritesOrdering - unsigned int memoryPoolSupportedHandleTypes - int deferredMappingCudaArraySupported - int ipcEventSupported - int clusterLaunch - int unifiedFunctionPointers - int reserved[63] - - cdef struct cudaIpcEventHandle_st: - char reserved[64] - - ctypedef cudaIpcEventHandle_st cudaIpcEventHandle_t - - cdef struct cudaIpcMemHandle_st: - char reserved[64] - - ctypedef cudaIpcMemHandle_st cudaIpcMemHandle_t - - cdef struct cudaMemFabricHandle_st: - char reserved[64] - - ctypedef cudaMemFabricHandle_st cudaMemFabricHandle_t - - cdef struct anon_struct7: - void* handle - const void* name - - cdef union anon_union2: - int fd - anon_struct7 win32 - const void* nvSciBufObject - - cdef struct cudaExternalMemoryHandleDesc: - cudaExternalMemoryHandleType type - anon_union2 handle - unsigned long long size - unsigned int flags - - cdef struct cudaExternalMemoryBufferDesc: - unsigned long long offset - unsigned long long size - unsigned int flags - - cdef struct cudaExternalMemoryMipmappedArrayDesc: - unsigned long long offset - cudaChannelFormatDesc formatDesc - cudaExtent extent - unsigned int flags - unsigned int numLevels - - cdef struct anon_struct8: - void* handle - const void* name - - cdef union anon_union3: - int fd - anon_struct8 win32 - const void* nvSciSyncObj - - cdef struct cudaExternalSemaphoreHandleDesc: - cudaExternalSemaphoreHandleType type - anon_union3 handle - unsigned int flags - - cdef struct anon_struct15: - unsigned long long value - - cdef union anon_union6: - void* fence - unsigned long long reserved - - cdef struct anon_struct16: - unsigned long long key - - cdef struct anon_struct17: - anon_struct15 fence - anon_union6 nvSciSync - anon_struct16 keyedMutex - unsigned int reserved[12] - - cdef struct cudaExternalSemaphoreSignalParams: - anon_struct17 params - unsigned int flags - unsigned int reserved[16] - - cdef struct anon_struct18: - unsigned long long value - - cdef union anon_union7: - void* fence - unsigned long long reserved - - cdef struct anon_struct19: - unsigned long long key - unsigned int timeoutMs - - cdef struct anon_struct20: - anon_struct18 fence - anon_union7 nvSciSync - anon_struct19 keyedMutex - unsigned int reserved[10] - - cdef struct cudaExternalSemaphoreWaitParams: - anon_struct20 params - unsigned int flags - unsigned int reserved[16] - - cdef struct CUstream_st: - pass - ctypedef CUstream_st* cudaStream_t - - cdef struct CUevent_st: - pass - ctypedef CUevent_st* cudaEvent_t - - cdef struct cudaGraphicsResource: - pass - ctypedef cudaGraphicsResource* cudaGraphicsResource_t - - cdef struct CUexternalMemory_st: - pass - ctypedef CUexternalMemory_st* cudaExternalMemory_t - - cdef struct CUexternalSemaphore_st: - pass - ctypedef CUexternalSemaphore_st* cudaExternalSemaphore_t - - cdef struct CUgraph_st: - pass - ctypedef CUgraph_st* cudaGraph_t - - cdef struct CUgraphNode_st: - pass - ctypedef CUgraphNode_st* cudaGraphNode_t - - cdef struct CUuserObject_st: - pass - ctypedef CUuserObject_st* cudaUserObject_t - - ctypedef unsigned long long cudaGraphConditionalHandle - - cdef struct CUfunc_st: - pass - ctypedef CUfunc_st* cudaFunction_t - - cdef struct CUkern_st: - pass - ctypedef CUkern_st* cudaKernel_t - - cdef struct cudalibraryHostUniversalFunctionAndDataTable: - void* functionTable - size_t functionWindowSize - void* dataTable - size_t dataWindowSize - - cdef struct CUlib_st: - pass - ctypedef CUlib_st* cudaLibrary_t - - cdef struct CUmemPoolHandle_st: - pass - ctypedef CUmemPoolHandle_st* cudaMemPool_t - - cdef struct cudaKernelNodeParams: - void* func - dim3 gridDim - dim3 blockDim - unsigned int sharedMemBytes - void** kernelParams - void** extra - - cdef struct cudaKernelNodeParamsV2: - void* func - dim3 gridDim - dim3 blockDim - unsigned int sharedMemBytes - void** kernelParams - void** extra - - cdef struct cudaExternalSemaphoreSignalNodeParams: - cudaExternalSemaphore_t* extSemArray - const cudaExternalSemaphoreSignalParams* paramsArray - unsigned int numExtSems - - cdef struct cudaExternalSemaphoreSignalNodeParamsV2: - cudaExternalSemaphore_t* extSemArray - const cudaExternalSemaphoreSignalParams* paramsArray - unsigned int numExtSems - - cdef struct cudaExternalSemaphoreWaitNodeParams: - cudaExternalSemaphore_t* extSemArray - const cudaExternalSemaphoreWaitParams* paramsArray - unsigned int numExtSems - - cdef struct cudaExternalSemaphoreWaitNodeParamsV2: - cudaExternalSemaphore_t* extSemArray - const cudaExternalSemaphoreWaitParams* paramsArray - unsigned int numExtSems - - cdef struct cudaConditionalNodeParams: - cudaGraphConditionalHandle handle - cudaGraphConditionalNodeType type - unsigned int size - cudaGraph_t* phGraph_out - - cdef struct cudaChildGraphNodeParams: - cudaGraph_t graph - cudaGraphChildGraphNodeOwnership ownership - - cdef struct cudaEventRecordNodeParams: - cudaEvent_t event - - cdef struct cudaEventWaitNodeParams: - cudaEvent_t event - - cdef struct cudaGraphNodeParams: - cudaGraphNodeType type - int reserved0[3] - long long reserved1[29] - cudaKernelNodeParamsV2 kernel - cudaMemcpyNodeParams memcpy - cudaMemsetParamsV2 memset - cudaHostNodeParamsV2 host - cudaChildGraphNodeParams graph - cudaEventWaitNodeParams eventWait - cudaEventRecordNodeParams eventRecord - cudaExternalSemaphoreSignalNodeParamsV2 extSemSignal - cudaExternalSemaphoreWaitNodeParamsV2 extSemWait - cudaMemAllocNodeParamsV2 alloc - cudaMemFreeNodeParams free - cudaConditionalNodeParams conditional - long long reserved2 - - cdef enum cudaGraphDependencyType_enum: - cudaGraphDependencyTypeDefault = 0 - cudaGraphDependencyTypeProgrammatic = 1 - - ctypedef cudaGraphDependencyType_enum cudaGraphDependencyType - - cdef struct cudaGraphEdgeData_st: - unsigned char from_port - unsigned char to_port - unsigned char type - unsigned char reserved[5] - - ctypedef cudaGraphEdgeData_st cudaGraphEdgeData - - cdef struct CUgraphExec_st: - pass - ctypedef CUgraphExec_st* cudaGraphExec_t - - cdef enum cudaGraphInstantiateResult: - cudaGraphInstantiateSuccess = 0 - cudaGraphInstantiateError = 1 - cudaGraphInstantiateInvalidStructure = 2 - cudaGraphInstantiateNodeOperationNotSupported = 3 - cudaGraphInstantiateMultipleDevicesNotSupported = 4 - cudaGraphInstantiateConditionalHandleUnused = 5 - - cdef struct cudaGraphInstantiateParams_st: - unsigned long long flags - cudaStream_t uploadStream - cudaGraphNode_t errNode_out - cudaGraphInstantiateResult result_out - - ctypedef cudaGraphInstantiateParams_st cudaGraphInstantiateParams - - cdef struct cudaGraphExecUpdateResultInfo_st: - cudaGraphExecUpdateResult result - cudaGraphNode_t errorNode - cudaGraphNode_t errorFromNode - - ctypedef cudaGraphExecUpdateResultInfo_st cudaGraphExecUpdateResultInfo - - cdef struct CUgraphDeviceUpdatableNode_st: - pass - ctypedef CUgraphDeviceUpdatableNode_st* cudaGraphDeviceNode_t - - cdef struct anon_struct21: - const void* pValue - size_t offset - size_t size - - cdef union anon_union9: - dim3 gridDim - anon_struct21 param - unsigned int isEnabled - - cdef struct cudaGraphKernelNodeUpdate: - cudaGraphDeviceNode_t node - cudaGraphKernelNodeField field - anon_union9 updateData - - cdef enum cudaLaunchMemSyncDomain: - cudaLaunchMemSyncDomainDefault = 0 - cudaLaunchMemSyncDomainRemote = 1 - - cdef struct cudaLaunchMemSyncDomainMap_st: - unsigned char default_ - unsigned char remote - - ctypedef cudaLaunchMemSyncDomainMap_st cudaLaunchMemSyncDomainMap - - cdef enum cudaLaunchAttributeID: - cudaLaunchAttributeIgnore = 0 - cudaLaunchAttributeAccessPolicyWindow = 1 - cudaLaunchAttributeCooperative = 2 - cudaLaunchAttributeSynchronizationPolicy = 3 - cudaLaunchAttributeClusterDimension = 4 - cudaLaunchAttributeClusterSchedulingPolicyPreference = 5 - cudaLaunchAttributeProgrammaticStreamSerialization = 6 - cudaLaunchAttributeProgrammaticEvent = 7 - cudaLaunchAttributePriority = 8 - cudaLaunchAttributeMemSyncDomainMap = 9 - cudaLaunchAttributeMemSyncDomain = 10 - cudaLaunchAttributePreferredClusterDimension = 11 - cudaLaunchAttributeLaunchCompletionEvent = 12 - cudaLaunchAttributeDeviceUpdatableKernelNode = 13 - cudaLaunchAttributePreferredSharedMemoryCarveout = 14 - - cdef struct anon_struct22: - unsigned int x - unsigned int y - unsigned int z - - cdef struct anon_struct23: - cudaEvent_t event - int flags - int triggerAtBlockStart - - cdef struct anon_struct24: - unsigned int x - unsigned int y - unsigned int z - - cdef struct anon_struct25: - cudaEvent_t event - int flags - - cdef struct anon_struct26: - int deviceUpdatable - cudaGraphDeviceNode_t devNode - - cdef union cudaLaunchAttributeValue: - char pad[64] - cudaAccessPolicyWindow accessPolicyWindow - int cooperative - cudaSynchronizationPolicy syncPolicy - anon_struct22 clusterDim - cudaClusterSchedulingPolicy clusterSchedulingPolicyPreference - int programmaticStreamSerializationAllowed - anon_struct23 programmaticEvent - int priority - cudaLaunchMemSyncDomainMap memSyncDomainMap - cudaLaunchMemSyncDomain memSyncDomain - anon_struct24 preferredClusterDim - anon_struct25 launchCompletionEvent - anon_struct26 deviceUpdatableKernelNode - unsigned int sharedMemCarveout - - cdef struct cudaLaunchAttribute_st: - cudaLaunchAttributeID id - cudaLaunchAttributeValue val - - ctypedef cudaLaunchAttribute_st cudaLaunchAttribute - - cdef struct cudaAsyncCallbackEntry: - pass - ctypedef cudaAsyncCallbackEntry* cudaAsyncCallbackHandle_t - - cdef enum cudaAsyncNotificationType_enum: - cudaAsyncNotificationTypeOverBudget = 1 - - ctypedef cudaAsyncNotificationType_enum cudaAsyncNotificationType - - cdef struct anon_struct27: - unsigned long long bytesOverBudget - - cdef union anon_union10: - anon_struct27 overBudget - - cdef struct cudaAsyncNotificationInfo: - cudaAsyncNotificationType type - anon_union10 info - - ctypedef cudaAsyncNotificationInfo cudaAsyncNotificationInfo_t - - ctypedef void (*cudaAsyncCallback)(cudaAsyncNotificationInfo_t* , void* , cudaAsyncCallbackHandle_t ) - - cdef enum cudaChannelFormatKind: - cudaChannelFormatKindSigned = 0 - cudaChannelFormatKindUnsigned = 1 - cudaChannelFormatKindFloat = 2 - cudaChannelFormatKindNone = 3 - cudaChannelFormatKindNV12 = 4 - cudaChannelFormatKindUnsignedNormalized8X1 = 5 - cudaChannelFormatKindUnsignedNormalized8X2 = 6 - cudaChannelFormatKindUnsignedNormalized8X4 = 7 - cudaChannelFormatKindUnsignedNormalized16X1 = 8 - cudaChannelFormatKindUnsignedNormalized16X2 = 9 - cudaChannelFormatKindUnsignedNormalized16X4 = 10 - cudaChannelFormatKindSignedNormalized8X1 = 11 - cudaChannelFormatKindSignedNormalized8X2 = 12 - cudaChannelFormatKindSignedNormalized8X4 = 13 - cudaChannelFormatKindSignedNormalized16X1 = 14 - cudaChannelFormatKindSignedNormalized16X2 = 15 - cudaChannelFormatKindSignedNormalized16X4 = 16 - cudaChannelFormatKindUnsignedBlockCompressed1 = 17 - cudaChannelFormatKindUnsignedBlockCompressed1SRGB = 18 - cudaChannelFormatKindUnsignedBlockCompressed2 = 19 - cudaChannelFormatKindUnsignedBlockCompressed2SRGB = 20 - cudaChannelFormatKindUnsignedBlockCompressed3 = 21 - cudaChannelFormatKindUnsignedBlockCompressed3SRGB = 22 - cudaChannelFormatKindUnsignedBlockCompressed4 = 23 - cudaChannelFormatKindSignedBlockCompressed4 = 24 - cudaChannelFormatKindUnsignedBlockCompressed5 = 25 - cudaChannelFormatKindSignedBlockCompressed5 = 26 - cudaChannelFormatKindUnsignedBlockCompressed6H = 27 - cudaChannelFormatKindSignedBlockCompressed6H = 28 - cudaChannelFormatKindUnsignedBlockCompressed7 = 29 - cudaChannelFormatKindUnsignedBlockCompressed7SRGB = 30 - cudaChannelFormatKindUnsignedNormalized1010102 = 31 - - cdef enum cudaMemoryType: - cudaMemoryTypeUnregistered = 0 - cudaMemoryTypeHost = 1 - cudaMemoryTypeDevice = 2 - cudaMemoryTypeManaged = 3 - - cdef enum cudaMemcpyKind: - cudaMemcpyHostToHost = 0 - cudaMemcpyHostToDevice = 1 - cudaMemcpyDeviceToHost = 2 - cudaMemcpyDeviceToDevice = 3 - cudaMemcpyDefault = 4 - - cdef enum cudaAccessProperty: - cudaAccessPropertyNormal = 0 - cudaAccessPropertyStreaming = 1 - cudaAccessPropertyPersisting = 2 - - cdef enum cudaStreamCaptureStatus: - cudaStreamCaptureStatusNone = 0 - cudaStreamCaptureStatusActive = 1 - cudaStreamCaptureStatusInvalidated = 2 - - cdef enum cudaStreamCaptureMode: - cudaStreamCaptureModeGlobal = 0 - cudaStreamCaptureModeThreadLocal = 1 - cudaStreamCaptureModeRelaxed = 2 - - cdef enum cudaSynchronizationPolicy: - cudaSyncPolicyAuto = 1 - cudaSyncPolicySpin = 2 - cudaSyncPolicyYield = 3 - cudaSyncPolicyBlockingSync = 4 - - cdef enum cudaClusterSchedulingPolicy: - cudaClusterSchedulingPolicyDefault = 0 - cudaClusterSchedulingPolicySpread = 1 - cudaClusterSchedulingPolicyLoadBalancing = 2 - - cdef enum cudaStreamUpdateCaptureDependenciesFlags: - cudaStreamAddCaptureDependencies = 0 - cudaStreamSetCaptureDependencies = 1 - - cdef enum cudaUserObjectFlags: - cudaUserObjectNoDestructorSync = 1 - - cdef enum cudaUserObjectRetainFlags: - cudaGraphUserObjectMove = 1 - - cdef enum cudaGraphicsRegisterFlags: - cudaGraphicsRegisterFlagsNone = 0 - cudaGraphicsRegisterFlagsReadOnly = 1 - cudaGraphicsRegisterFlagsWriteDiscard = 2 - cudaGraphicsRegisterFlagsSurfaceLoadStore = 4 - cudaGraphicsRegisterFlagsTextureGather = 8 - - cdef enum cudaGraphicsMapFlags: - cudaGraphicsMapFlagsNone = 0 - cudaGraphicsMapFlagsReadOnly = 1 - cudaGraphicsMapFlagsWriteDiscard = 2 - - cdef enum cudaGraphicsCubeFace: - cudaGraphicsCubeFacePositiveX = 0 - cudaGraphicsCubeFaceNegativeX = 1 - cudaGraphicsCubeFacePositiveY = 2 - cudaGraphicsCubeFaceNegativeY = 3 - cudaGraphicsCubeFacePositiveZ = 4 - cudaGraphicsCubeFaceNegativeZ = 5 - - cdef enum cudaResourceType: - cudaResourceTypeArray = 0 - cudaResourceTypeMipmappedArray = 1 - cudaResourceTypeLinear = 2 - cudaResourceTypePitch2D = 3 - - cdef enum cudaResourceViewFormat: - cudaResViewFormatNone = 0 - cudaResViewFormatUnsignedChar1 = 1 - cudaResViewFormatUnsignedChar2 = 2 - cudaResViewFormatUnsignedChar4 = 3 - cudaResViewFormatSignedChar1 = 4 - cudaResViewFormatSignedChar2 = 5 - cudaResViewFormatSignedChar4 = 6 - cudaResViewFormatUnsignedShort1 = 7 - cudaResViewFormatUnsignedShort2 = 8 - cudaResViewFormatUnsignedShort4 = 9 - cudaResViewFormatSignedShort1 = 10 - cudaResViewFormatSignedShort2 = 11 - cudaResViewFormatSignedShort4 = 12 - cudaResViewFormatUnsignedInt1 = 13 - cudaResViewFormatUnsignedInt2 = 14 - cudaResViewFormatUnsignedInt4 = 15 - cudaResViewFormatSignedInt1 = 16 - cudaResViewFormatSignedInt2 = 17 - cudaResViewFormatSignedInt4 = 18 - cudaResViewFormatHalf1 = 19 - cudaResViewFormatHalf2 = 20 - cudaResViewFormatHalf4 = 21 - cudaResViewFormatFloat1 = 22 - cudaResViewFormatFloat2 = 23 - cudaResViewFormatFloat4 = 24 - cudaResViewFormatUnsignedBlockCompressed1 = 25 - cudaResViewFormatUnsignedBlockCompressed2 = 26 - cudaResViewFormatUnsignedBlockCompressed3 = 27 - cudaResViewFormatUnsignedBlockCompressed4 = 28 - cudaResViewFormatSignedBlockCompressed4 = 29 - cudaResViewFormatUnsignedBlockCompressed5 = 30 - cudaResViewFormatSignedBlockCompressed5 = 31 - cudaResViewFormatUnsignedBlockCompressed6H = 32 - cudaResViewFormatSignedBlockCompressed6H = 33 - cudaResViewFormatUnsignedBlockCompressed7 = 34 - - cdef enum cudaFuncAttribute: - cudaFuncAttributeMaxDynamicSharedMemorySize = 8 - cudaFuncAttributePreferredSharedMemoryCarveout = 9 - cudaFuncAttributeClusterDimMustBeSet = 10 - cudaFuncAttributeRequiredClusterWidth = 11 - cudaFuncAttributeRequiredClusterHeight = 12 - cudaFuncAttributeRequiredClusterDepth = 13 - cudaFuncAttributeNonPortableClusterSizeAllowed = 14 - cudaFuncAttributeClusterSchedulingPolicyPreference = 15 - cudaFuncAttributeMax = 16 - - cdef enum cudaFuncCache: - cudaFuncCachePreferNone = 0 - cudaFuncCachePreferShared = 1 - cudaFuncCachePreferL1 = 2 - cudaFuncCachePreferEqual = 3 - - cdef enum cudaSharedMemConfig: - cudaSharedMemBankSizeDefault = 0 - cudaSharedMemBankSizeFourByte = 1 - cudaSharedMemBankSizeEightByte = 2 - - cdef enum cudaSharedCarveout: - cudaSharedmemCarveoutDefault = -1 - cudaSharedmemCarveoutMaxL1 = 0 - cudaSharedmemCarveoutMaxShared = 100 - - cdef enum cudaComputeMode: - cudaComputeModeDefault = 0 - cudaComputeModeExclusive = 1 - cudaComputeModeProhibited = 2 - cudaComputeModeExclusiveProcess = 3 - - cdef enum cudaLimit: - cudaLimitStackSize = 0 - cudaLimitPrintfFifoSize = 1 - cudaLimitMallocHeapSize = 2 - cudaLimitDevRuntimeSyncDepth = 3 - cudaLimitDevRuntimePendingLaunchCount = 4 - cudaLimitMaxL2FetchGranularity = 5 - cudaLimitPersistingL2CacheSize = 6 - - cdef enum cudaMemoryAdvise: - cudaMemAdviseSetReadMostly = 1 - cudaMemAdviseUnsetReadMostly = 2 - cudaMemAdviseSetPreferredLocation = 3 - cudaMemAdviseUnsetPreferredLocation = 4 - cudaMemAdviseSetAccessedBy = 5 - cudaMemAdviseUnsetAccessedBy = 6 - - cdef enum cudaMemRangeAttribute: - cudaMemRangeAttributeReadMostly = 1 - cudaMemRangeAttributePreferredLocation = 2 - cudaMemRangeAttributeAccessedBy = 3 - cudaMemRangeAttributeLastPrefetchLocation = 4 - cudaMemRangeAttributePreferredLocationType = 5 - cudaMemRangeAttributePreferredLocationId = 6 - cudaMemRangeAttributeLastPrefetchLocationType = 7 - cudaMemRangeAttributeLastPrefetchLocationId = 8 - - cdef enum cudaFlushGPUDirectRDMAWritesOptions: - cudaFlushGPUDirectRDMAWritesOptionHost = 1 - cudaFlushGPUDirectRDMAWritesOptionMemOps = 2 - - cdef enum cudaGPUDirectRDMAWritesOrdering: - cudaGPUDirectRDMAWritesOrderingNone = 0 - cudaGPUDirectRDMAWritesOrderingOwner = 100 - cudaGPUDirectRDMAWritesOrderingAllDevices = 200 - - cdef enum cudaFlushGPUDirectRDMAWritesScope: - cudaFlushGPUDirectRDMAWritesToOwner = 100 - cudaFlushGPUDirectRDMAWritesToAllDevices = 200 - - cdef enum cudaFlushGPUDirectRDMAWritesTarget: - cudaFlushGPUDirectRDMAWritesTargetCurrentDevice = 0 - - cdef enum cudaDeviceAttr: - cudaDevAttrMaxThreadsPerBlock = 1 - cudaDevAttrMaxBlockDimX = 2 - cudaDevAttrMaxBlockDimY = 3 - cudaDevAttrMaxBlockDimZ = 4 - cudaDevAttrMaxGridDimX = 5 - cudaDevAttrMaxGridDimY = 6 - cudaDevAttrMaxGridDimZ = 7 - cudaDevAttrMaxSharedMemoryPerBlock = 8 - cudaDevAttrTotalConstantMemory = 9 - cudaDevAttrWarpSize = 10 - cudaDevAttrMaxPitch = 11 - cudaDevAttrMaxRegistersPerBlock = 12 - cudaDevAttrClockRate = 13 - cudaDevAttrTextureAlignment = 14 - cudaDevAttrGpuOverlap = 15 - cudaDevAttrMultiProcessorCount = 16 - cudaDevAttrKernelExecTimeout = 17 - cudaDevAttrIntegrated = 18 - cudaDevAttrCanMapHostMemory = 19 - cudaDevAttrComputeMode = 20 - cudaDevAttrMaxTexture1DWidth = 21 - cudaDevAttrMaxTexture2DWidth = 22 - cudaDevAttrMaxTexture2DHeight = 23 - cudaDevAttrMaxTexture3DWidth = 24 - cudaDevAttrMaxTexture3DHeight = 25 - cudaDevAttrMaxTexture3DDepth = 26 - cudaDevAttrMaxTexture2DLayeredWidth = 27 - cudaDevAttrMaxTexture2DLayeredHeight = 28 - cudaDevAttrMaxTexture2DLayeredLayers = 29 - cudaDevAttrSurfaceAlignment = 30 - cudaDevAttrConcurrentKernels = 31 - cudaDevAttrEccEnabled = 32 - cudaDevAttrPciBusId = 33 - cudaDevAttrPciDeviceId = 34 - cudaDevAttrTccDriver = 35 - cudaDevAttrMemoryClockRate = 36 - cudaDevAttrGlobalMemoryBusWidth = 37 - cudaDevAttrL2CacheSize = 38 - cudaDevAttrMaxThreadsPerMultiProcessor = 39 - cudaDevAttrAsyncEngineCount = 40 - cudaDevAttrUnifiedAddressing = 41 - cudaDevAttrMaxTexture1DLayeredWidth = 42 - cudaDevAttrMaxTexture1DLayeredLayers = 43 - cudaDevAttrMaxTexture2DGatherWidth = 45 - cudaDevAttrMaxTexture2DGatherHeight = 46 - cudaDevAttrMaxTexture3DWidthAlt = 47 - cudaDevAttrMaxTexture3DHeightAlt = 48 - cudaDevAttrMaxTexture3DDepthAlt = 49 - cudaDevAttrPciDomainId = 50 - cudaDevAttrTexturePitchAlignment = 51 - cudaDevAttrMaxTextureCubemapWidth = 52 - cudaDevAttrMaxTextureCubemapLayeredWidth = 53 - cudaDevAttrMaxTextureCubemapLayeredLayers = 54 - cudaDevAttrMaxSurface1DWidth = 55 - cudaDevAttrMaxSurface2DWidth = 56 - cudaDevAttrMaxSurface2DHeight = 57 - cudaDevAttrMaxSurface3DWidth = 58 - cudaDevAttrMaxSurface3DHeight = 59 - cudaDevAttrMaxSurface3DDepth = 60 - cudaDevAttrMaxSurface1DLayeredWidth = 61 - cudaDevAttrMaxSurface1DLayeredLayers = 62 - cudaDevAttrMaxSurface2DLayeredWidth = 63 - cudaDevAttrMaxSurface2DLayeredHeight = 64 - cudaDevAttrMaxSurface2DLayeredLayers = 65 - cudaDevAttrMaxSurfaceCubemapWidth = 66 - cudaDevAttrMaxSurfaceCubemapLayeredWidth = 67 - cudaDevAttrMaxSurfaceCubemapLayeredLayers = 68 - cudaDevAttrMaxTexture1DLinearWidth = 69 - cudaDevAttrMaxTexture2DLinearWidth = 70 - cudaDevAttrMaxTexture2DLinearHeight = 71 - cudaDevAttrMaxTexture2DLinearPitch = 72 - cudaDevAttrMaxTexture2DMipmappedWidth = 73 - cudaDevAttrMaxTexture2DMipmappedHeight = 74 - cudaDevAttrComputeCapabilityMajor = 75 - cudaDevAttrComputeCapabilityMinor = 76 - cudaDevAttrMaxTexture1DMipmappedWidth = 77 - cudaDevAttrStreamPrioritiesSupported = 78 - cudaDevAttrGlobalL1CacheSupported = 79 - cudaDevAttrLocalL1CacheSupported = 80 - cudaDevAttrMaxSharedMemoryPerMultiprocessor = 81 - cudaDevAttrMaxRegistersPerMultiprocessor = 82 - cudaDevAttrManagedMemory = 83 - cudaDevAttrIsMultiGpuBoard = 84 - cudaDevAttrMultiGpuBoardGroupID = 85 - cudaDevAttrHostNativeAtomicSupported = 86 - cudaDevAttrSingleToDoublePrecisionPerfRatio = 87 - cudaDevAttrPageableMemoryAccess = 88 - cudaDevAttrConcurrentManagedAccess = 89 - cudaDevAttrComputePreemptionSupported = 90 - cudaDevAttrCanUseHostPointerForRegisteredMem = 91 - cudaDevAttrReserved92 = 92 - cudaDevAttrReserved93 = 93 - cudaDevAttrReserved94 = 94 - cudaDevAttrCooperativeLaunch = 95 - cudaDevAttrCooperativeMultiDeviceLaunch = 96 - cudaDevAttrMaxSharedMemoryPerBlockOptin = 97 - cudaDevAttrCanFlushRemoteWrites = 98 - cudaDevAttrHostRegisterSupported = 99 - cudaDevAttrPageableMemoryAccessUsesHostPageTables = 100 - cudaDevAttrDirectManagedMemAccessFromHost = 101 - cudaDevAttrMaxBlocksPerMultiprocessor = 106 - cudaDevAttrMaxPersistingL2CacheSize = 108 - cudaDevAttrMaxAccessPolicyWindowSize = 109 - cudaDevAttrReservedSharedMemoryPerBlock = 111 - cudaDevAttrSparseCudaArraySupported = 112 - cudaDevAttrHostRegisterReadOnlySupported = 113 - cudaDevAttrTimelineSemaphoreInteropSupported = 114 - cudaDevAttrMaxTimelineSemaphoreInteropSupported = 114 - cudaDevAttrMemoryPoolsSupported = 115 - cudaDevAttrGPUDirectRDMASupported = 116 - cudaDevAttrGPUDirectRDMAFlushWritesOptions = 117 - cudaDevAttrGPUDirectRDMAWritesOrdering = 118 - cudaDevAttrMemoryPoolSupportedHandleTypes = 119 - cudaDevAttrClusterLaunch = 120 - cudaDevAttrDeferredMappingCudaArraySupported = 121 - cudaDevAttrReserved122 = 122 - cudaDevAttrReserved123 = 123 - cudaDevAttrReserved124 = 124 - cudaDevAttrIpcEventSupport = 125 - cudaDevAttrMemSyncDomainCount = 126 - cudaDevAttrReserved127 = 127 - cudaDevAttrReserved128 = 128 - cudaDevAttrReserved129 = 129 - cudaDevAttrNumaConfig = 130 - cudaDevAttrNumaId = 131 - cudaDevAttrReserved132 = 132 - cudaDevAttrMpsEnabled = 133 - cudaDevAttrHostNumaId = 134 - cudaDevAttrD3D12CigSupported = 135 - cudaDevAttrVulkanCigSupported = 138 - cudaDevAttrGpuPciDeviceId = 139 - cudaDevAttrGpuPciSubsystemId = 140 - cudaDevAttrReserved141 = 141 - cudaDevAttrHostNumaMemoryPoolsSupported = 142 - cudaDevAttrHostNumaMultinodeIpcSupported = 143 - cudaDevAttrMax = 144 - - cdef enum cudaMemPoolAttr: - cudaMemPoolReuseFollowEventDependencies = 1 - cudaMemPoolReuseAllowOpportunistic = 2 - cudaMemPoolReuseAllowInternalDependencies = 3 - cudaMemPoolAttrReleaseThreshold = 4 - cudaMemPoolAttrReservedMemCurrent = 5 - cudaMemPoolAttrReservedMemHigh = 6 - cudaMemPoolAttrUsedMemCurrent = 7 - cudaMemPoolAttrUsedMemHigh = 8 - - cdef enum cudaMemLocationType: - cudaMemLocationTypeInvalid = 0 - cudaMemLocationTypeDevice = 1 - cudaMemLocationTypeHost = 2 - cudaMemLocationTypeHostNuma = 3 - cudaMemLocationTypeHostNumaCurrent = 4 - - cdef enum cudaMemAccessFlags: - cudaMemAccessFlagsProtNone = 0 - cudaMemAccessFlagsProtRead = 1 - cudaMemAccessFlagsProtReadWrite = 3 - - cdef enum cudaMemAllocationType: - cudaMemAllocationTypeInvalid = 0 - cudaMemAllocationTypePinned = 1 - cudaMemAllocationTypeMax = 2147483647 - - cdef enum cudaMemAllocationHandleType: - cudaMemHandleTypeNone = 0 - cudaMemHandleTypePosixFileDescriptor = 1 - cudaMemHandleTypeWin32 = 2 - cudaMemHandleTypeWin32Kmt = 4 - cudaMemHandleTypeFabric = 8 - - cdef enum cudaGraphMemAttributeType: - cudaGraphMemAttrUsedMemCurrent = 0 - cudaGraphMemAttrUsedMemHigh = 1 - cudaGraphMemAttrReservedMemCurrent = 2 - cudaGraphMemAttrReservedMemHigh = 3 - - cdef enum cudaMemcpyFlags: - cudaMemcpyFlagDefault = 0 - cudaMemcpyFlagPreferOverlapWithCompute = 1 - - cdef enum cudaMemcpySrcAccessOrder: - cudaMemcpySrcAccessOrderInvalid = 0 - cudaMemcpySrcAccessOrderStream = 1 - cudaMemcpySrcAccessOrderDuringApiCall = 2 - cudaMemcpySrcAccessOrderAny = 3 - cudaMemcpySrcAccessOrderMax = 2147483647 - - cdef enum cudaMemcpy3DOperandType: - cudaMemcpyOperandTypePointer = 1 - cudaMemcpyOperandTypeArray = 2 - cudaMemcpyOperandTypeMax = 2147483647 - - cdef enum cudaDeviceP2PAttr: - cudaDevP2PAttrPerformanceRank = 1 - cudaDevP2PAttrAccessSupported = 2 - cudaDevP2PAttrNativeAtomicSupported = 3 - cudaDevP2PAttrCudaArrayAccessSupported = 4 - - cdef enum cudaExternalMemoryHandleType: - cudaExternalMemoryHandleTypeOpaqueFd = 1 - cudaExternalMemoryHandleTypeOpaqueWin32 = 2 - cudaExternalMemoryHandleTypeOpaqueWin32Kmt = 3 - cudaExternalMemoryHandleTypeD3D12Heap = 4 - cudaExternalMemoryHandleTypeD3D12Resource = 5 - cudaExternalMemoryHandleTypeD3D11Resource = 6 - cudaExternalMemoryHandleTypeD3D11ResourceKmt = 7 - cudaExternalMemoryHandleTypeNvSciBuf = 8 - - cdef enum cudaExternalSemaphoreHandleType: - cudaExternalSemaphoreHandleTypeOpaqueFd = 1 - cudaExternalSemaphoreHandleTypeOpaqueWin32 = 2 - cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt = 3 - cudaExternalSemaphoreHandleTypeD3D12Fence = 4 - cudaExternalSemaphoreHandleTypeD3D11Fence = 5 - cudaExternalSemaphoreHandleTypeNvSciSync = 6 - cudaExternalSemaphoreHandleTypeKeyedMutex = 7 - cudaExternalSemaphoreHandleTypeKeyedMutexKmt = 8 - cudaExternalSemaphoreHandleTypeTimelineSemaphoreFd = 9 - cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32 = 10 - - cdef enum cudaJitOption: - cudaJitMaxRegisters = 0 - cudaJitThreadsPerBlock = 1 - cudaJitWallTime = 2 - cudaJitInfoLogBuffer = 3 - cudaJitInfoLogBufferSizeBytes = 4 - cudaJitErrorLogBuffer = 5 - cudaJitErrorLogBufferSizeBytes = 6 - cudaJitOptimizationLevel = 7 - cudaJitFallbackStrategy = 10 - cudaJitGenerateDebugInfo = 11 - cudaJitLogVerbose = 12 - cudaJitGenerateLineInfo = 13 - cudaJitCacheMode = 14 - cudaJitPositionIndependentCode = 30 - cudaJitMinCtaPerSm = 31 - cudaJitMaxThreadsPerBlock = 32 - cudaJitOverrideDirectiveValues = 33 - - cdef enum cudaLibraryOption: - cudaLibraryHostUniversalFunctionAndDataTable = 0 - cudaLibraryBinaryIsPreserved = 1 - - cdef enum cudaJit_CacheMode: - cudaJitCacheOptionNone = 0 - cudaJitCacheOptionCG = 1 - cudaJitCacheOptionCA = 2 - - cdef enum cudaJit_Fallback: - cudaPreferPtx = 0 - cudaPreferBinary = 1 - - cdef enum cudaCGScope: - cudaCGScopeInvalid = 0 - cudaCGScopeGrid = 1 - cudaCGScopeMultiGrid = 2 - - cdef enum cudaGraphConditionalHandleFlags: - cudaGraphCondAssignDefault = 1 - - cdef enum cudaGraphConditionalNodeType: - cudaGraphCondTypeIf = 0 - cudaGraphCondTypeWhile = 1 - cudaGraphCondTypeSwitch = 2 - - cdef enum cudaGraphNodeType: - cudaGraphNodeTypeKernel = 0 - cudaGraphNodeTypeMemcpy = 1 - cudaGraphNodeTypeMemset = 2 - cudaGraphNodeTypeHost = 3 - cudaGraphNodeTypeGraph = 4 - cudaGraphNodeTypeEmpty = 5 - cudaGraphNodeTypeWaitEvent = 6 - cudaGraphNodeTypeEventRecord = 7 - cudaGraphNodeTypeExtSemaphoreSignal = 8 - cudaGraphNodeTypeExtSemaphoreWait = 9 - cudaGraphNodeTypeMemAlloc = 10 - cudaGraphNodeTypeMemFree = 11 - cudaGraphNodeTypeConditional = 13 - cudaGraphNodeTypeCount = 14 - - cdef enum cudaGraphChildGraphNodeOwnership: - cudaGraphChildGraphOwnershipClone = 0 - cudaGraphChildGraphOwnershipMove = 1 - - cdef enum cudaGraphExecUpdateResult: - cudaGraphExecUpdateSuccess = 0 - cudaGraphExecUpdateError = 1 - cudaGraphExecUpdateErrorTopologyChanged = 2 - cudaGraphExecUpdateErrorNodeTypeChanged = 3 - cudaGraphExecUpdateErrorFunctionChanged = 4 - cudaGraphExecUpdateErrorParametersChanged = 5 - cudaGraphExecUpdateErrorNotSupported = 6 - cudaGraphExecUpdateErrorUnsupportedFunctionChange = 7 - cudaGraphExecUpdateErrorAttributesChanged = 8 - - cdef enum cudaGraphKernelNodeField: - cudaGraphKernelNodeFieldInvalid = 0 - cudaGraphKernelNodeFieldGridDim = 1 - cudaGraphKernelNodeFieldParam = 2 - cudaGraphKernelNodeFieldEnabled = 3 - - cdef enum cudaGetDriverEntryPointFlags: - cudaEnableDefault = 0 - cudaEnableLegacyStream = 1 - cudaEnablePerThreadDefaultStream = 2 - - cdef enum cudaDriverEntryPointQueryResult: - cudaDriverEntryPointSuccess = 0 - cudaDriverEntryPointSymbolNotFound = 1 - cudaDriverEntryPointVersionNotSufficent = 2 - - cdef enum cudaGraphDebugDotFlags: - cudaGraphDebugDotFlagsVerbose = 1 - cudaGraphDebugDotFlagsKernelNodeParams = 4 - cudaGraphDebugDotFlagsMemcpyNodeParams = 8 - cudaGraphDebugDotFlagsMemsetNodeParams = 16 - cudaGraphDebugDotFlagsHostNodeParams = 32 - cudaGraphDebugDotFlagsEventNodeParams = 64 - cudaGraphDebugDotFlagsExtSemasSignalNodeParams = 128 - cudaGraphDebugDotFlagsExtSemasWaitNodeParams = 256 - cudaGraphDebugDotFlagsKernelNodeAttributes = 512 - cudaGraphDebugDotFlagsHandles = 1024 - cudaGraphDebugDotFlagsConditionalNodeParams = 32768 - - cdef enum cudaGraphInstantiateFlags: - cudaGraphInstantiateFlagAutoFreeOnLaunch = 1 - cudaGraphInstantiateFlagUpload = 2 - cudaGraphInstantiateFlagDeviceLaunch = 4 - cudaGraphInstantiateFlagUseNodePriority = 8 - - cdef enum cudaDeviceNumaConfig: - cudaDeviceNumaConfigNone = 0 - cudaDeviceNumaConfigNumaNode = 1 - -cdef extern from "surface_types.h": - - ctypedef unsigned long long cudaSurfaceObject_t - - cdef enum cudaSurfaceBoundaryMode: - cudaBoundaryModeZero = 0 - cudaBoundaryModeClamp = 1 - cudaBoundaryModeTrap = 2 - - cdef enum cudaSurfaceFormatMode: - cudaFormatModeForced = 0 - cudaFormatModeAuto = 1 - -cdef extern from "texture_types.h": - - cdef struct cudaTextureDesc: - cudaTextureAddressMode addressMode[3] - cudaTextureFilterMode filterMode - cudaTextureReadMode readMode - int sRGB - float borderColor[4] - int normalizedCoords - unsigned int maxAnisotropy - cudaTextureFilterMode mipmapFilterMode - float mipmapLevelBias - float minMipmapLevelClamp - float maxMipmapLevelClamp - int disableTrilinearOptimization - int seamlessCubemap - - ctypedef unsigned long long cudaTextureObject_t - - cdef enum cudaTextureAddressMode: - cudaAddressModeWrap = 0 - cudaAddressModeClamp = 1 - cudaAddressModeMirror = 2 - cudaAddressModeBorder = 3 - - cdef enum cudaTextureFilterMode: - cudaFilterModePoint = 0 - cudaFilterModeLinear = 1 - - cdef enum cudaTextureReadMode: - cudaReadModeElementType = 0 - cudaReadModeNormalizedFloat = 1 - -cdef extern from "library_types.h": - - cdef enum cudaDataType_t: - CUDA_R_32F = 0 - CUDA_R_64F = 1 - CUDA_R_16F = 2 - CUDA_R_8I = 3 - CUDA_C_32F = 4 - CUDA_C_64F = 5 - CUDA_C_16F = 6 - CUDA_C_8I = 7 - CUDA_R_8U = 8 - CUDA_C_8U = 9 - CUDA_R_32I = 10 - CUDA_C_32I = 11 - CUDA_R_32U = 12 - CUDA_C_32U = 13 - CUDA_R_16BF = 14 - CUDA_C_16BF = 15 - CUDA_R_4I = 16 - CUDA_C_4I = 17 - CUDA_R_4U = 18 - CUDA_C_4U = 19 - CUDA_R_16I = 20 - CUDA_C_16I = 21 - CUDA_R_16U = 22 - CUDA_C_16U = 23 - CUDA_R_64I = 24 - CUDA_C_64I = 25 - CUDA_R_64U = 26 - CUDA_C_64U = 27 - CUDA_R_8F_E4M3 = 28 - CUDA_R_8F_UE4M3 = 28 - CUDA_R_8F_E5M2 = 29 - CUDA_R_8F_UE8M0 = 30 - CUDA_R_6F_E2M3 = 31 - CUDA_R_6F_E3M2 = 32 - CUDA_R_4F_E2M1 = 33 - - ctypedef cudaDataType_t cudaDataType - - cdef enum libraryPropertyType_t: - MAJOR_VERSION = 0 - MINOR_VERSION = 1 - PATCH_LEVEL = 2 - - ctypedef libraryPropertyType_t libraryPropertyType - -cdef extern from "cuda_runtime_api.h": - - ctypedef void (*cudaStreamCallback_t)(cudaStream_t stream, cudaError_t status, void* userData) - -cdef extern from "device_types.h": - - cdef enum cudaRoundMode: - cudaRoundNearest = 0 - cudaRoundZero = 1 - cudaRoundPosInf = 2 - cudaRoundMinInf = 3 - -ctypedef cudaLaunchAttributeID cudaStreamAttrID - -ctypedef cudaLaunchAttributeID cudaKernelNodeAttrID - -ctypedef cudaLaunchAttributeValue cudaStreamAttrValue - -ctypedef cudaLaunchAttributeValue cudaKernelNodeAttrValue diff --git a/cuda_bindings_12/cuda/bindings/driver.pxd b/cuda_bindings_12/cuda/bindings/driver.pxd index 637ed4fe08eb..34e40b48056b 100644 --- a/cuda_bindings_12/cuda/bindings/driver.pxd +++ b/cuda_bindings_12/cuda/bindings/driver.pxd @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # This code was automatically generated with version 12.9.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=5739d4e34a7ac7d9fab129e5380ab9dfa7cfe983957b3b97d76d21a6ee2d710d +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=4d4cb508b0b226880a8e9e24027fb1293f1b021a5fcb86e08449a96f37d9cf3c cimport cuda.bindings.cydriver as cydriver include "_lib/utils.pxd" @@ -478,6 +478,7 @@ cdef class CUuuid_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUuuid_st _pvt_val cdef cydriver.CUuuid_st* _pvt_ptr @@ -500,6 +501,7 @@ cdef class CUmemFabricHandle_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUmemFabricHandle_st _pvt_val cdef cydriver.CUmemFabricHandle_st* _pvt_ptr @@ -512,6 +514,7 @@ cdef class CUipcEventHandle_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUipcEventHandle_st _pvt_val cdef cydriver.CUipcEventHandle_st* _pvt_ptr @@ -524,6 +527,7 @@ cdef class CUipcMemHandle_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUipcMemHandle_st _pvt_val cdef cydriver.CUipcMemHandle_st* _pvt_ptr @@ -561,6 +565,7 @@ cdef class CUstreamMemOpWaitValueParams_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUstreamBatchMemOpParams_union* _pvt_ptr cdef CUdeviceptr _address @@ -609,6 +614,7 @@ cdef class CUstreamMemOpWriteValueParams_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUstreamBatchMemOpParams_union* _pvt_ptr cdef CUdeviceptr _address @@ -641,6 +647,7 @@ cdef class CUstreamMemOpFlushRemoteWritesParams_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUstreamBatchMemOpParams_union* _pvt_ptr cdef class CUstreamMemOpMemoryBarrierParams_st: @@ -661,6 +668,7 @@ cdef class CUstreamMemOpMemoryBarrierParams_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUstreamBatchMemOpParams_union* _pvt_ptr cdef class CUstreamBatchMemOpParams_union: @@ -699,6 +707,7 @@ cdef class CUstreamBatchMemOpParams_union: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUstreamBatchMemOpParams_union _pvt_val cdef cydriver.CUstreamBatchMemOpParams_union* _pvt_ptr @@ -740,6 +749,7 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st _pvt_val cdef cydriver.CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st* _pvt_ptr @@ -778,6 +788,7 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st _pvt_val cdef cydriver.CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st* _pvt_ptr @@ -802,6 +813,7 @@ cdef class anon_struct0: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUasyncNotificationInfo_st* _pvt_ptr cdef class anon_union2: @@ -818,6 +830,7 @@ cdef class anon_union2: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUasyncNotificationInfo_st* _pvt_ptr cdef anon_struct0 _overBudget @@ -844,6 +857,7 @@ cdef class CUasyncNotificationInfo_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUasyncNotificationInfo_st* _val_ptr cdef cydriver.CUasyncNotificationInfo_st* _pvt_ptr @@ -902,6 +916,7 @@ cdef class CUdevprop_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUdevprop_st _pvt_val cdef cydriver.CUdevprop_st* _pvt_ptr @@ -949,6 +964,7 @@ cdef class CUaccessPolicyWindow_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUaccessPolicyWindow_st _pvt_val cdef cydriver.CUaccessPolicyWindow_st* _pvt_ptr @@ -1007,6 +1023,7 @@ cdef class CUDA_KERNEL_NODE_PARAMS_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_KERNEL_NODE_PARAMS_st _pvt_val cdef cydriver.CUDA_KERNEL_NODE_PARAMS_st* _pvt_ptr @@ -1078,6 +1095,7 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v2_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_KERNEL_NODE_PARAMS_v2_st _pvt_val cdef cydriver.CUDA_KERNEL_NODE_PARAMS_v2_st* _pvt_ptr @@ -1155,6 +1173,7 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v3_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_KERNEL_NODE_PARAMS_v3_st _pvt_val cdef cydriver.CUDA_KERNEL_NODE_PARAMS_v3_st* _pvt_ptr @@ -1206,6 +1225,7 @@ cdef class CUDA_MEMSET_NODE_PARAMS_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_MEMSET_NODE_PARAMS_st _pvt_val cdef cydriver.CUDA_MEMSET_NODE_PARAMS_st* _pvt_ptr @@ -1252,6 +1272,7 @@ cdef class CUDA_MEMSET_NODE_PARAMS_v2_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_MEMSET_NODE_PARAMS_v2_st _pvt_val cdef cydriver.CUDA_MEMSET_NODE_PARAMS_v2_st* _pvt_ptr @@ -1281,6 +1302,7 @@ cdef class CUDA_HOST_NODE_PARAMS_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_HOST_NODE_PARAMS_st _pvt_val cdef cydriver.CUDA_HOST_NODE_PARAMS_st* _pvt_ptr @@ -1310,6 +1332,7 @@ cdef class CUDA_HOST_NODE_PARAMS_v2_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_HOST_NODE_PARAMS_v2_st _pvt_val cdef cydriver.CUDA_HOST_NODE_PARAMS_v2_st* _pvt_ptr @@ -1370,6 +1393,7 @@ cdef class CUDA_CONDITIONAL_NODE_PARAMS: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_CONDITIONAL_NODE_PARAMS _pvt_val cdef cydriver.CUDA_CONDITIONAL_NODE_PARAMS* _pvt_ptr @@ -1425,6 +1449,7 @@ cdef class CUgraphEdgeData_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUgraphEdgeData_st _pvt_val cdef cydriver.CUgraphEdgeData_st* _pvt_ptr @@ -1456,6 +1481,7 @@ cdef class CUDA_GRAPH_INSTANTIATE_PARAMS_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_GRAPH_INSTANTIATE_PARAMS_st _pvt_val cdef cydriver.CUDA_GRAPH_INSTANTIATE_PARAMS_st* _pvt_ptr @@ -1494,6 +1520,7 @@ cdef class CUlaunchMemSyncDomainMap_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUlaunchMemSyncDomainMap_st _pvt_val cdef cydriver.CUlaunchMemSyncDomainMap_st* _pvt_ptr @@ -1519,6 +1546,7 @@ cdef class anon_struct1: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUlaunchAttributeValue_union* _pvt_ptr cdef class anon_struct2: @@ -1543,6 +1571,7 @@ cdef class anon_struct2: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUlaunchAttributeValue_union* _pvt_ptr cdef CUevent _event @@ -1566,6 +1595,7 @@ cdef class anon_struct3: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUlaunchAttributeValue_union* _pvt_ptr cdef CUevent _event @@ -1593,6 +1623,7 @@ cdef class anon_struct4: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUlaunchAttributeValue_union* _pvt_ptr cdef class anon_struct5: @@ -1613,6 +1644,7 @@ cdef class anon_struct5: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUlaunchAttributeValue_union* _pvt_ptr cdef CUgraphDeviceNode _devNode @@ -1731,6 +1763,7 @@ cdef class CUlaunchAttributeValue_union: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUlaunchAttributeValue_union _pvt_val cdef cydriver.CUlaunchAttributeValue_union* _pvt_ptr @@ -1775,6 +1808,7 @@ cdef class CUlaunchAttribute_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUlaunchAttribute_st _pvt_val cdef cydriver.CUlaunchAttribute_st* _pvt_ptr @@ -1833,6 +1867,7 @@ cdef class CUlaunchConfig_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUlaunchConfig_st _pvt_val cdef cydriver.CUlaunchConfig_st* _pvt_ptr @@ -1859,6 +1894,7 @@ cdef class CUexecAffinitySmCount_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUexecAffinitySmCount_st _pvt_val cdef cydriver.CUexecAffinitySmCount_st* _pvt_ptr @@ -1876,6 +1912,7 @@ cdef class anon_union3: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUexecAffinityParam_st* _pvt_ptr cdef CUexecAffinitySmCount _smCount @@ -1901,6 +1938,7 @@ cdef class CUexecAffinityParam_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUexecAffinityParam_st* _val_ptr cdef cydriver.CUexecAffinityParam_st* _pvt_ptr @@ -1927,6 +1965,7 @@ cdef class CUctxCigParam_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUctxCigParam_st _pvt_val cdef cydriver.CUctxCigParam_st* _pvt_ptr @@ -1958,6 +1997,7 @@ cdef class CUctxCreateParams_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUctxCreateParams_st _pvt_val cdef cydriver.CUctxCreateParams_st* _pvt_ptr @@ -1995,6 +2035,7 @@ cdef class CUlibraryHostUniversalFunctionAndDataTable_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUlibraryHostUniversalFunctionAndDataTable_st _pvt_val cdef cydriver.CUlibraryHostUniversalFunctionAndDataTable_st* _pvt_ptr @@ -2080,6 +2121,7 @@ cdef class CUDA_MEMCPY2D_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_MEMCPY2D_st _pvt_val cdef cydriver.CUDA_MEMCPY2D_st* _pvt_ptr @@ -2206,6 +2248,7 @@ cdef class CUDA_MEMCPY3D_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_MEMCPY3D_st _pvt_val cdef cydriver.CUDA_MEMCPY3D_st* _pvt_ptr @@ -2341,6 +2384,7 @@ cdef class CUDA_MEMCPY3D_PEER_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_MEMCPY3D_PEER_st _pvt_val cdef cydriver.CUDA_MEMCPY3D_PEER_st* _pvt_ptr @@ -2392,6 +2436,7 @@ cdef class CUDA_MEMCPY_NODE_PARAMS_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_MEMCPY_NODE_PARAMS_st _pvt_val cdef cydriver.CUDA_MEMCPY_NODE_PARAMS_st* _pvt_ptr @@ -2429,6 +2474,7 @@ cdef class CUDA_ARRAY_DESCRIPTOR_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_ARRAY_DESCRIPTOR_st _pvt_val cdef cydriver.CUDA_ARRAY_DESCRIPTOR_st* _pvt_ptr @@ -2468,6 +2514,7 @@ cdef class CUDA_ARRAY3D_DESCRIPTOR_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_ARRAY3D_DESCRIPTOR_st _pvt_val cdef cydriver.CUDA_ARRAY3D_DESCRIPTOR_st* _pvt_ptr @@ -2493,6 +2540,7 @@ cdef class anon_struct6: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_ARRAY_SPARSE_PROPERTIES_st* _pvt_ptr cdef class CUDA_ARRAY_SPARSE_PROPERTIES_st: @@ -2524,6 +2572,7 @@ cdef class CUDA_ARRAY_SPARSE_PROPERTIES_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_ARRAY_SPARSE_PROPERTIES_st _pvt_val cdef cydriver.CUDA_ARRAY_SPARSE_PROPERTIES_st* _pvt_ptr @@ -2550,6 +2599,7 @@ cdef class CUDA_ARRAY_MEMORY_REQUIREMENTS_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_ARRAY_MEMORY_REQUIREMENTS_st _pvt_val cdef cydriver.CUDA_ARRAY_MEMORY_REQUIREMENTS_st* _pvt_ptr @@ -2567,6 +2617,7 @@ cdef class anon_struct7: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_RESOURCE_DESC_st* _pvt_ptr cdef CUarray _hArray @@ -2586,6 +2637,7 @@ cdef class anon_struct8: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_RESOURCE_DESC_st* _pvt_ptr cdef CUmipmappedArray _hMipmappedArray @@ -2617,6 +2669,7 @@ cdef class anon_struct9: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_RESOURCE_DESC_st* _pvt_ptr cdef CUdeviceptr _devPtr @@ -2656,6 +2709,7 @@ cdef class anon_struct10: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_RESOURCE_DESC_st* _pvt_ptr cdef CUdeviceptr _devPtr @@ -2668,6 +2722,7 @@ cdef class anon_struct11: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_RESOURCE_DESC_st* _pvt_ptr cdef class anon_union4: @@ -2696,6 +2751,7 @@ cdef class anon_union4: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_RESOURCE_DESC_st* _pvt_ptr cdef anon_struct7 _array @@ -2734,6 +2790,7 @@ cdef class CUDA_RESOURCE_DESC_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_RESOURCE_DESC_st* _val_ptr cdef cydriver.CUDA_RESOURCE_DESC_st* _pvt_ptr @@ -2788,6 +2845,7 @@ cdef class CUDA_TEXTURE_DESC_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_TEXTURE_DESC_st _pvt_val cdef cydriver.CUDA_TEXTURE_DESC_st* _pvt_ptr @@ -2835,6 +2893,7 @@ cdef class CUDA_RESOURCE_VIEW_DESC_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_RESOURCE_VIEW_DESC_st _pvt_val cdef cydriver.CUDA_RESOURCE_VIEW_DESC_st* _pvt_ptr @@ -2855,6 +2914,7 @@ cdef class CUtensorMap_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUtensorMap_st _pvt_val cdef cydriver.CUtensorMap_st* _pvt_ptr @@ -2878,6 +2938,7 @@ cdef class CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st _pvt_val cdef cydriver.CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st* _pvt_ptr @@ -2933,6 +2994,7 @@ cdef class CUDA_LAUNCH_PARAMS_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_LAUNCH_PARAMS_st _pvt_val cdef cydriver.CUDA_LAUNCH_PARAMS_st* _pvt_ptr @@ -2963,6 +3025,7 @@ cdef class anon_struct12: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st* _pvt_ptr cdef _HelperInputVoidPtr _cyhandle @@ -2993,6 +3056,7 @@ cdef class anon_union5: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st* _pvt_ptr cdef anon_struct12 _win32 @@ -3029,6 +3093,7 @@ cdef class CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st* _val_ptr cdef cydriver.CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st* _pvt_ptr @@ -3059,6 +3124,7 @@ cdef class CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st _pvt_val cdef cydriver.CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st* _pvt_ptr @@ -3087,6 +3153,7 @@ cdef class CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st _pvt_val cdef cydriver.CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st* _pvt_ptr @@ -3111,6 +3178,7 @@ cdef class anon_struct13: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st* _pvt_ptr cdef _HelperInputVoidPtr _cyhandle @@ -3141,6 +3209,7 @@ cdef class anon_union6: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st* _pvt_ptr cdef anon_struct13 _win32 @@ -3173,6 +3242,7 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st* _val_ptr cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st* _pvt_ptr @@ -3193,6 +3263,7 @@ cdef class anon_struct14: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st* _pvt_ptr cdef class anon_union7: @@ -3209,6 +3280,7 @@ cdef class anon_union7: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st* _pvt_ptr cdef _HelperInputVoidPtr _cyfence @@ -3228,6 +3300,7 @@ cdef class anon_struct15: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st* _pvt_ptr cdef class anon_struct16: @@ -3252,6 +3325,7 @@ cdef class anon_struct16: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st* _pvt_ptr cdef anon_struct14 _fence @@ -3290,6 +3364,7 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st _pvt_val cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st* _pvt_ptr @@ -3310,6 +3385,7 @@ cdef class anon_struct17: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st* _pvt_ptr cdef class anon_union8: @@ -3326,6 +3402,7 @@ cdef class anon_union8: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st* _pvt_ptr cdef _HelperInputVoidPtr _cyfence @@ -3349,6 +3426,7 @@ cdef class anon_struct18: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st* _pvt_ptr cdef class anon_struct19: @@ -3373,6 +3451,7 @@ cdef class anon_struct19: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st* _pvt_ptr cdef anon_struct17 _fence @@ -3411,6 +3490,7 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st _pvt_val cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st* _pvt_ptr @@ -3442,6 +3522,7 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st _pvt_val cdef cydriver.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st* _pvt_ptr @@ -3478,6 +3559,7 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st _pvt_val cdef cydriver.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st* _pvt_ptr @@ -3514,6 +3596,7 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_EXT_SEM_WAIT_NODE_PARAMS_st _pvt_val cdef cydriver.CUDA_EXT_SEM_WAIT_NODE_PARAMS_st* _pvt_ptr @@ -3550,6 +3633,7 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st _pvt_val cdef cydriver.CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st* _pvt_ptr @@ -3579,6 +3663,7 @@ cdef class anon_union9: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUarrayMapInfo_st* _pvt_ptr cdef CUmipmappedArray _mipmap @@ -3629,6 +3714,7 @@ cdef class anon_struct20: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUarrayMapInfo_st* _pvt_ptr cdef class anon_struct21: @@ -3653,6 +3739,7 @@ cdef class anon_struct21: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUarrayMapInfo_st* _pvt_ptr cdef class anon_union10: @@ -3673,6 +3760,7 @@ cdef class anon_union10: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUarrayMapInfo_st* _pvt_ptr cdef anon_struct20 _sparseLevel @@ -3695,6 +3783,7 @@ cdef class anon_union11: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUarrayMapInfo_st* _pvt_ptr cdef CUmemGenericAllocationHandle _memHandle @@ -3753,6 +3842,7 @@ cdef class CUarrayMapInfo_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUarrayMapInfo_st* _val_ptr cdef cydriver.CUarrayMapInfo_st* _pvt_ptr @@ -3785,6 +3875,7 @@ cdef class CUmemLocation_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUmemLocation_st _pvt_val cdef cydriver.CUmemLocation_st* _pvt_ptr @@ -3810,6 +3901,7 @@ cdef class anon_struct22: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUmemAllocationProp_st* _pvt_ptr cdef class CUmemAllocationProp_st: @@ -3848,6 +3940,7 @@ cdef class CUmemAllocationProp_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUmemAllocationProp_st _pvt_val cdef cydriver.CUmemAllocationProp_st* _pvt_ptr @@ -3891,6 +3984,7 @@ cdef class CUmulticastObjectProp_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUmulticastObjectProp_st _pvt_val cdef cydriver.CUmulticastObjectProp_st* _pvt_ptr @@ -3914,6 +4008,7 @@ cdef class CUmemAccessDesc_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUmemAccessDesc_st _pvt_val cdef cydriver.CUmemAccessDesc_st* _pvt_ptr @@ -3947,6 +4042,7 @@ cdef class CUgraphExecUpdateResultInfo_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUgraphExecUpdateResultInfo_st _pvt_val cdef cydriver.CUgraphExecUpdateResultInfo_st* _pvt_ptr @@ -3998,6 +4094,7 @@ cdef class CUmemPoolProps_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUmemPoolProps_st _pvt_val cdef cydriver.CUmemPoolProps_st* _pvt_ptr @@ -4016,6 +4113,7 @@ cdef class CUmemPoolPtrExportData_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUmemPoolPtrExportData_st _pvt_val cdef cydriver.CUmemPoolPtrExportData_st* _pvt_ptr @@ -4051,6 +4149,7 @@ cdef class CUmemcpyAttributes_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUmemcpyAttributes_st _pvt_val cdef cydriver.CUmemcpyAttributes_st* _pvt_ptr @@ -4084,6 +4183,7 @@ cdef class CUoffset3D_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUoffset3D_st _pvt_val cdef cydriver.CUoffset3D_st* _pvt_ptr @@ -4111,6 +4211,7 @@ cdef class CUextent3D_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUextent3D_st _pvt_val cdef cydriver.CUextent3D_st* _pvt_ptr @@ -4140,6 +4241,7 @@ cdef class anon_struct23: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUmemcpy3DOperand_st* _pvt_ptr cdef CUdeviceptr _ptr @@ -4166,6 +4268,7 @@ cdef class anon_struct24: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUmemcpy3DOperand_st* _pvt_ptr cdef CUarray _array @@ -4192,6 +4295,7 @@ cdef class anon_union12: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUmemcpy3DOperand_st* _pvt_ptr cdef anon_struct23 _ptr @@ -4220,6 +4324,7 @@ cdef class CUmemcpy3DOperand_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUmemcpy3DOperand_st* _val_ptr cdef cydriver.CUmemcpy3DOperand_st* _pvt_ptr @@ -4257,6 +4362,7 @@ cdef class CUDA_MEMCPY3D_BATCH_OP_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_MEMCPY3D_BATCH_OP_st _pvt_val cdef cydriver.CUDA_MEMCPY3D_BATCH_OP_st* _pvt_ptr @@ -4305,6 +4411,7 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v1_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_MEM_ALLOC_NODE_PARAMS_v1_st _pvt_val cdef cydriver.CUDA_MEM_ALLOC_NODE_PARAMS_v1_st* _pvt_ptr @@ -4354,6 +4461,7 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v2_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_MEM_ALLOC_NODE_PARAMS_v2_st _pvt_val cdef cydriver.CUDA_MEM_ALLOC_NODE_PARAMS_v2_st* _pvt_ptr @@ -4383,6 +4491,7 @@ cdef class CUDA_MEM_FREE_NODE_PARAMS_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_MEM_FREE_NODE_PARAMS_st _pvt_val cdef cydriver.CUDA_MEM_FREE_NODE_PARAMS_st* _pvt_ptr @@ -4413,6 +4522,7 @@ cdef class CUDA_CHILD_GRAPH_NODE_PARAMS_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_CHILD_GRAPH_NODE_PARAMS_st _pvt_val cdef cydriver.CUDA_CHILD_GRAPH_NODE_PARAMS_st* _pvt_ptr @@ -4435,6 +4545,7 @@ cdef class CUDA_EVENT_RECORD_NODE_PARAMS_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_EVENT_RECORD_NODE_PARAMS_st _pvt_val cdef cydriver.CUDA_EVENT_RECORD_NODE_PARAMS_st* _pvt_ptr @@ -4457,6 +4568,7 @@ cdef class CUDA_EVENT_WAIT_NODE_PARAMS_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUDA_EVENT_WAIT_NODE_PARAMS_st _pvt_val cdef cydriver.CUDA_EVENT_WAIT_NODE_PARAMS_st* _pvt_ptr @@ -4531,6 +4643,7 @@ cdef class CUgraphNodeParams_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUgraphNodeParams_st* _val_ptr cdef cydriver.CUgraphNodeParams_st* _pvt_ptr @@ -4590,6 +4703,7 @@ cdef class CUcheckpointLockArgs_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUcheckpointLockArgs_st _pvt_val cdef cydriver.CUcheckpointLockArgs_st* _pvt_ptr @@ -4602,6 +4716,7 @@ cdef class CUcheckpointCheckpointArgs_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUcheckpointCheckpointArgs_st _pvt_val cdef cydriver.CUcheckpointCheckpointArgs_st* _pvt_ptr @@ -4614,6 +4729,7 @@ cdef class CUcheckpointRestoreArgs_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUcheckpointRestoreArgs_st _pvt_val cdef cydriver.CUcheckpointRestoreArgs_st* _pvt_ptr @@ -4626,6 +4742,7 @@ cdef class CUcheckpointUnlockArgs_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUcheckpointUnlockArgs_st _pvt_val cdef cydriver.CUcheckpointUnlockArgs_st* _pvt_ptr @@ -4675,9 +4792,14 @@ cdef class CUmemDecompressParams_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUmemDecompressParams_st _pvt_val cdef cydriver.CUmemDecompressParams_st* _pvt_ptr + cdef size_t _dstActBytes_length + cdef cydriver.cuuint32_t* _dstActBytes + + cdef _HelperInputVoidPtr _cysrc @@ -4699,6 +4821,7 @@ cdef class CUdevSmResource_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUdevSmResource_st _pvt_val cdef cydriver.CUdevSmResource_st* _pvt_ptr @@ -4728,6 +4851,7 @@ cdef class CUdevResource_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUdevResource_st* _val_ptr cdef cydriver.CUdevResource_st* _pvt_ptr @@ -4752,6 +4876,7 @@ cdef class anon_union15: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUeglFrame_st* _pvt_ptr cdef class CUeglFrame_st: @@ -4808,6 +4933,7 @@ cdef class CUeglFrame_st: getPtr() Get memory address of class instance """ + cdef object _owner cdef cydriver.CUeglFrame_st* _val_ptr cdef cydriver.CUeglFrame_st* _pvt_ptr diff --git a/cuda_bindings_12/cuda/bindings/driver.pyx b/cuda_bindings_12/cuda/bindings/driver.pyx index 251f5c481cd3..c625773b0384 100644 --- a/cuda_bindings_12/cuda/bindings/driver.pyx +++ b/cuda_bindings_12/cuda/bindings/driver.pyx @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # This code was automatically generated with version 12.9.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=7bd998915de52155f2e27696c9a4d514071b9c721d94e05f0a00c7a07394a961 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=67ecc286b7f346fb9026fcdb8fb0914b5d44e31a61570a0f9733513db0a4c81a from typing import Any, Optional import cython import ctypes @@ -8978,19 +8978,10 @@ cdef class CUstreamMemOpWaitValueParams_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - self._address = CUdeviceptr(_ptr=&self._pvt_ptr[0].waitValue.address) - - self._value = cuuint32_t(_ptr=&self._pvt_ptr[0].waitValue.value) - - self._value64 = cuuint64_t(_ptr=&self._pvt_ptr[0].waitValue.value64) - - self._alias = CUdeviceptr(_ptr=&self._pvt_ptr[0].waitValue.alias) - def __dealloc__(self): pass def getPtr(self): @@ -9164,19 +9155,10 @@ cdef class CUstreamMemOpWriteValueParams_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - self._address = CUdeviceptr(_ptr=&self._pvt_ptr[0].writeValue.address) - - self._value = cuuint32_t(_ptr=&self._pvt_ptr[0].writeValue.value) - - self._value64 = cuuint64_t(_ptr=&self._pvt_ptr[0].writeValue.value64) - - self._alias = CUdeviceptr(_ptr=&self._pvt_ptr[0].writeValue.alias) - def __dealloc__(self): pass def getPtr(self): @@ -9478,21 +9460,19 @@ cdef class CUstreamBatchMemOpParams_union: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._waitValue = CUstreamMemOpWaitValueParams_st(_ptr=self._pvt_ptr) - - + self._waitValue._owner = self self._writeValue = CUstreamMemOpWriteValueParams_st(_ptr=self._pvt_ptr) - - + self._writeValue._owner = self self._flushRemoteWrites = CUstreamMemOpFlushRemoteWritesParams_st(_ptr=self._pvt_ptr) - - + self._flushRemoteWrites._owner = self self._memoryBarrier = CUstreamMemOpMemoryBarrierParams_st(_ptr=self._pvt_ptr) - + self._memoryBarrier._owner = self def __dealloc__(self): - pass + self._waitValue = None + self._writeValue = None + self._flushRemoteWrites = None + self._memoryBarrier = None def getPtr(self): return self._pvt_ptr def __repr__(self): @@ -9619,16 +9599,11 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._ctx = CUcontext(_ptr=&self._pvt_ptr[0].ctx) - def __dealloc__(self): - if self._paramArray is not NULL: free(self._paramArray) self._pvt_ptr[0].paramArray = NULL - def getPtr(self): return self._pvt_ptr def __repr__(self): @@ -9689,8 +9664,12 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st: @property def paramArray(self): - arrs = [self._pvt_ptr[0].paramArray + x*sizeof(cydriver.CUstreamBatchMemOpParams) for x in range(self._paramArray_length)] - return [CUstreamBatchMemOpParams(_ptr=arr) for arr in arrs] + if self._pvt_ptr[0].paramArray == NULL: + return [] + out_paramArray = [CUstreamBatchMemOpParams() for _idx in range(self._paramArray_length)] + for _idx in range(len(out_paramArray)): + string.memcpy(out_paramArray[_idx].getPtr(), &self._pvt_ptr[0].paramArray[_idx], sizeof(cydriver.CUstreamBatchMemOpParams)) + return out_paramArray @paramArray.setter def paramArray(self, val): cdef cydriver.CUstreamBatchMemOpParams* _paramArray_new @@ -9701,10 +9680,6 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st: self._pvt_ptr[0].paramArray = NULL else: if self._paramArray_length != len(val): - # Allocate and fill a new buffer before touching the - # live state so a failure leaves this object unchanged - # (strong exception guarantee); the old buffer is only - # freed once the resize is known to succeed. _paramArray_new = calloc(len(val), sizeof(cydriver.CUstreamBatchMemOpParams)) if _paramArray_new is NULL: raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cydriver.CUstreamBatchMemOpParams))) @@ -9719,7 +9694,6 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st: string.memcpy(&self._paramArray[idx], (val[idx])._pvt_ptr, sizeof(cydriver.CUstreamBatchMemOpParams)) - @property def flags(self): return self._pvt_ptr[0].flags @@ -9762,16 +9736,11 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._ctx = CUcontext(_ptr=&self._pvt_ptr[0].ctx) - def __dealloc__(self): - if self._paramArray is not NULL: free(self._paramArray) self._pvt_ptr[0].paramArray = NULL - def getPtr(self): return self._pvt_ptr def __repr__(self): @@ -9832,8 +9801,12 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st: @property def paramArray(self): - arrs = [self._pvt_ptr[0].paramArray + x*sizeof(cydriver.CUstreamBatchMemOpParams) for x in range(self._paramArray_length)] - return [CUstreamBatchMemOpParams(_ptr=arr) for arr in arrs] + if self._pvt_ptr[0].paramArray == NULL: + return [] + out_paramArray = [CUstreamBatchMemOpParams() for _idx in range(self._paramArray_length)] + for _idx in range(len(out_paramArray)): + string.memcpy(out_paramArray[_idx].getPtr(), &self._pvt_ptr[0].paramArray[_idx], sizeof(cydriver.CUstreamBatchMemOpParams)) + return out_paramArray @paramArray.setter def paramArray(self, val): cdef cydriver.CUstreamBatchMemOpParams* _paramArray_new @@ -9844,10 +9817,6 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st: self._pvt_ptr[0].paramArray = NULL else: if self._paramArray_length != len(val): - # Allocate and fill a new buffer before touching the - # live state so a failure leaves this object unchanged - # (strong exception guarantee); the old buffer is only - # freed once the resize is known to succeed. _paramArray_new = calloc(len(val), sizeof(cydriver.CUstreamBatchMemOpParams)) if _paramArray_new is NULL: raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cydriver.CUstreamBatchMemOpParams))) @@ -9862,7 +9831,6 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st: string.memcpy(&self._paramArray[idx], (val[idx])._pvt_ptr, sizeof(cydriver.CUstreamBatchMemOpParams)) - @property def flags(self): return self._pvt_ptr[0].flags @@ -9933,12 +9901,10 @@ cdef class anon_union2: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - self._overBudget = anon_struct0(_ptr=self._pvt_ptr) - + self._overBudget._owner = self def __dealloc__(self): - pass + self._overBudget = None def getPtr(self): return &self._pvt_ptr[0].info def __repr__(self): @@ -9990,11 +9956,10 @@ cdef class CUasyncNotificationInfo_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._info = anon_union2(_ptr=self._pvt_ptr) - + self._info._owner = self def __dealloc__(self): + self._info = None if self._val_ptr is not NULL: free(self._val_ptr) def getPtr(self): @@ -10435,10 +10400,7 @@ cdef class CUDA_KERNEL_NODE_PARAMS_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._func = CUfunction(_ptr=&self._pvt_ptr[0].func) - def __dealloc__(self): pass def getPtr(self): @@ -10668,16 +10630,9 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v2_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._func = CUfunction(_ptr=&self._pvt_ptr[0].func) - - self._kern = CUkernel(_ptr=&self._pvt_ptr[0].kern) - - self._ctx = CUcontext(_ptr=&self._pvt_ptr[0].ctx) - def __dealloc__(self): pass def getPtr(self): @@ -10953,16 +10908,9 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v3_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._func = CUfunction(_ptr=&self._pvt_ptr[0].func) - - self._kern = CUkernel(_ptr=&self._pvt_ptr[0].kern) - - self._ctx = CUcontext(_ptr=&self._pvt_ptr[0].ctx) - def __dealloc__(self): pass def getPtr(self): @@ -11212,10 +11160,7 @@ cdef class CUDA_MEMSET_NODE_PARAMS_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._dst = CUdeviceptr(_ptr=&self._pvt_ptr[0].dst) - def __dealloc__(self): pass def getPtr(self): @@ -11367,13 +11312,8 @@ cdef class CUDA_MEMSET_NODE_PARAMS_v2_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._dst = CUdeviceptr(_ptr=&self._pvt_ptr[0].dst) - - self._ctx = CUcontext(_ptr=&self._pvt_ptr[0].ctx) - def __dealloc__(self): pass def getPtr(self): @@ -11528,10 +11468,7 @@ cdef class CUDA_HOST_NODE_PARAMS_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._fn = CUhostFn(_ptr=&self._pvt_ptr[0].fn) - def __dealloc__(self): pass def getPtr(self): @@ -11607,10 +11544,7 @@ cdef class CUDA_HOST_NODE_PARAMS_v2_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._fn = CUhostFn(_ptr=&self._pvt_ptr[0].fn) - def __dealloc__(self): pass def getPtr(self): @@ -11717,13 +11651,8 @@ cdef class CUDA_CONDITIONAL_NODE_PARAMS: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._handle = CUgraphConditionalHandle(_ptr=&self._pvt_ptr[0].handle) - - self._ctx = CUcontext(_ptr=&self._pvt_ptr[0].ctx) - def __dealloc__(self): pass def getPtr(self): @@ -11958,16 +11887,9 @@ cdef class CUDA_GRAPH_INSTANTIATE_PARAMS_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._flags = cuuint64_t(_ptr=&self._pvt_ptr[0].flags) - - self._hUploadStream = CUstream(_ptr=&self._pvt_ptr[0].hUploadStream) - - self._hErrNode_out = CUgraphNode(_ptr=&self._pvt_ptr[0].hErrNode_out) - def __dealloc__(self): pass def getPtr(self): @@ -12241,10 +12163,7 @@ cdef class anon_struct2: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - self._event = CUevent(_ptr=&self._pvt_ptr[0].programmaticEvent.event) - def __dealloc__(self): pass def getPtr(self): @@ -12329,10 +12248,7 @@ cdef class anon_struct3: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - self._event = CUevent(_ptr=&self._pvt_ptr[0].launchCompletionEvent.event) - def __dealloc__(self): pass def getPtr(self): @@ -12483,10 +12399,7 @@ cdef class anon_struct5: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - self._devNode = CUgraphDeviceNode(_ptr=&self._pvt_ptr[0].deviceUpdatableKernelNode.devNode) - def __dealloc__(self): pass def getPtr(self): @@ -12654,30 +12567,28 @@ cdef class CUlaunchAttributeValue_union: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._accessPolicyWindow = CUaccessPolicyWindow(_ptr=&self._pvt_ptr[0].accessPolicyWindow) - - + self._accessPolicyWindow._owner = self self._clusterDim = anon_struct1(_ptr=self._pvt_ptr) - - + self._clusterDim._owner = self self._programmaticEvent = anon_struct2(_ptr=self._pvt_ptr) - - + self._programmaticEvent._owner = self self._launchCompletionEvent = anon_struct3(_ptr=self._pvt_ptr) - - + self._launchCompletionEvent._owner = self self._memSyncDomainMap = CUlaunchMemSyncDomainMap(_ptr=&self._pvt_ptr[0].memSyncDomainMap) - - + self._memSyncDomainMap._owner = self self._preferredClusterDim = anon_struct4(_ptr=self._pvt_ptr) - - + self._preferredClusterDim._owner = self self._deviceUpdatableKernelNode = anon_struct5(_ptr=self._pvt_ptr) - + self._deviceUpdatableKernelNode._owner = self def __dealloc__(self): - pass + self._accessPolicyWindow = None + self._clusterDim = None + self._programmaticEvent = None + self._launchCompletionEvent = None + self._memSyncDomainMap = None + self._preferredClusterDim = None + self._deviceUpdatableKernelNode = None def getPtr(self): return self._pvt_ptr def __repr__(self): @@ -12934,12 +12845,10 @@ cdef class CUlaunchAttribute_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._value = CUlaunchAttributeValue(_ptr=&self._pvt_ptr[0].value) - + self._value._owner = self def __dealloc__(self): - pass + self._value = None def getPtr(self): return self._pvt_ptr def __repr__(self): @@ -13035,16 +12944,11 @@ cdef class CUlaunchConfig_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._hStream = CUstream(_ptr=&self._pvt_ptr[0].hStream) - def __dealloc__(self): - if self._attrs is not NULL: free(self._attrs) self._pvt_ptr[0].attrs = NULL - def getPtr(self): return self._pvt_ptr def __repr__(self): @@ -13189,8 +13093,12 @@ cdef class CUlaunchConfig_st: @property def attrs(self): - arrs = [self._pvt_ptr[0].attrs + x*sizeof(cydriver.CUlaunchAttribute) for x in range(self._attrs_length)] - return [CUlaunchAttribute(_ptr=arr) for arr in arrs] + if self._pvt_ptr[0].attrs == NULL: + return [] + out_attrs = [CUlaunchAttribute() for _idx in range(self._attrs_length)] + for _idx in range(len(out_attrs)): + string.memcpy(out_attrs[_idx].getPtr(), &self._pvt_ptr[0].attrs[_idx], sizeof(cydriver.CUlaunchAttribute)) + return out_attrs @attrs.setter def attrs(self, val): cdef cydriver.CUlaunchAttribute* _attrs_new @@ -13201,10 +13109,6 @@ cdef class CUlaunchConfig_st: self._pvt_ptr[0].attrs = NULL else: if self._attrs_length != len(val): - # Allocate and fill a new buffer before touching the - # live state so a failure leaves this object unchanged - # (strong exception guarantee); the old buffer is only - # freed once the resize is known to succeed. _attrs_new = calloc(len(val), sizeof(cydriver.CUlaunchAttribute)) if _attrs_new is NULL: raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cydriver.CUlaunchAttribute))) @@ -13219,7 +13123,6 @@ cdef class CUlaunchConfig_st: string.memcpy(&self._attrs[idx], (val[idx])._pvt_ptr, sizeof(cydriver.CUlaunchAttribute)) - @property def numAttrs(self): return self._pvt_ptr[0].numAttrs @@ -13294,12 +13197,10 @@ cdef class anon_union3: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - self._smCount = CUexecAffinitySmCount(_ptr=&self._pvt_ptr[0].param.smCount) - + self._smCount._owner = self def __dealloc__(self): - pass + self._smCount = None def getPtr(self): return &self._pvt_ptr[0].param def __repr__(self): @@ -13350,11 +13251,10 @@ cdef class CUexecAffinityParam_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._param = anon_union3(_ptr=self._pvt_ptr) - + self._param._owner = self def __dealloc__(self): + self._param = None if self._val_ptr is not NULL: free(self._val_ptr) def getPtr(self): @@ -13494,16 +13394,12 @@ cdef class CUctxCreateParams_st: def __init__(self, void_ptr _ptr = 0): pass def __dealloc__(self): - if self._execAffinityParams is not NULL: free(self._execAffinityParams) self._pvt_ptr[0].execAffinityParams = NULL - - if self._cigParams is not NULL: free(self._cigParams) self._pvt_ptr[0].cigParams = NULL - def getPtr(self): return self._pvt_ptr def __repr__(self): @@ -13533,8 +13429,12 @@ cdef class CUctxCreateParams_st: @property def execAffinityParams(self): - arrs = [self._pvt_ptr[0].execAffinityParams + x*sizeof(cydriver.CUexecAffinityParam) for x in range(self._execAffinityParams_length)] - return [CUexecAffinityParam(_ptr=arr) for arr in arrs] + if self._pvt_ptr[0].execAffinityParams == NULL: + return [] + out_execAffinityParams = [CUexecAffinityParam() for _idx in range(self._execAffinityParams_length)] + for _idx in range(len(out_execAffinityParams)): + string.memcpy(out_execAffinityParams[_idx].getPtr(), &self._pvt_ptr[0].execAffinityParams[_idx], sizeof(cydriver.CUexecAffinityParam)) + return out_execAffinityParams @execAffinityParams.setter def execAffinityParams(self, val): cdef cydriver.CUexecAffinityParam* _execAffinityParams_new @@ -13545,10 +13445,6 @@ cdef class CUctxCreateParams_st: self._pvt_ptr[0].execAffinityParams = NULL else: if self._execAffinityParams_length != len(val): - # Allocate and fill a new buffer before touching the - # live state so a failure leaves this object unchanged - # (strong exception guarantee); the old buffer is only - # freed once the resize is known to succeed. _execAffinityParams_new = calloc(len(val), sizeof(cydriver.CUexecAffinityParam)) if _execAffinityParams_new is NULL: raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cydriver.CUexecAffinityParam))) @@ -13563,7 +13459,6 @@ cdef class CUctxCreateParams_st: string.memcpy(&self._execAffinityParams[idx], (val[idx])._pvt_ptr, sizeof(cydriver.CUexecAffinityParam)) - @property def numExecAffinityParams(self): return self._pvt_ptr[0].numExecAffinityParams @@ -13574,8 +13469,12 @@ cdef class CUctxCreateParams_st: @property def cigParams(self): - arrs = [self._pvt_ptr[0].cigParams + x*sizeof(cydriver.CUctxCigParam) for x in range(self._cigParams_length)] - return [CUctxCigParam(_ptr=arr) for arr in arrs] + if self._pvt_ptr[0].cigParams == NULL: + return [] + out_cigParams = [CUctxCigParam() for _idx in range(self._cigParams_length)] + for _idx in range(len(out_cigParams)): + string.memcpy(out_cigParams[_idx].getPtr(), &self._pvt_ptr[0].cigParams[_idx], sizeof(cydriver.CUctxCigParam)) + return out_cigParams @cigParams.setter def cigParams(self, val): cdef cydriver.CUctxCigParam* _cigParams_new @@ -13586,10 +13485,6 @@ cdef class CUctxCreateParams_st: self._pvt_ptr[0].cigParams = NULL else: if self._cigParams_length != len(val): - # Allocate and fill a new buffer before touching the - # live state so a failure leaves this object unchanged - # (strong exception guarantee); the old buffer is only - # freed once the resize is known to succeed. _cigParams_new = calloc(len(val), sizeof(cydriver.CUctxCigParam)) if _cigParams_new is NULL: raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cydriver.CUctxCigParam))) @@ -13604,7 +13499,6 @@ cdef class CUctxCreateParams_st: string.memcpy(&self._cigParams[idx], (val[idx])._pvt_ptr, sizeof(cydriver.CUctxCigParam)) - cdef class CUlibraryHostUniversalFunctionAndDataTable_st: """ Attributes @@ -13789,19 +13683,10 @@ cdef class CUDA_MEMCPY2D_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._srcDevice = CUdeviceptr(_ptr=&self._pvt_ptr[0].srcDevice) - - self._srcArray = CUarray(_ptr=&self._pvt_ptr[0].srcArray) - - self._dstDevice = CUdeviceptr(_ptr=&self._pvt_ptr[0].dstDevice) - - self._dstArray = CUarray(_ptr=&self._pvt_ptr[0].dstArray) - def __dealloc__(self): pass def getPtr(self): @@ -14188,19 +14073,10 @@ cdef class CUDA_MEMCPY3D_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._srcDevice = CUdeviceptr(_ptr=&self._pvt_ptr[0].srcDevice) - - self._srcArray = CUarray(_ptr=&self._pvt_ptr[0].srcArray) - - self._dstDevice = CUdeviceptr(_ptr=&self._pvt_ptr[0].dstDevice) - - self._dstArray = CUarray(_ptr=&self._pvt_ptr[0].dstArray) - def __dealloc__(self): pass def getPtr(self): @@ -14694,25 +14570,12 @@ cdef class CUDA_MEMCPY3D_PEER_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._srcDevice = CUdeviceptr(_ptr=&self._pvt_ptr[0].srcDevice) - - self._srcArray = CUarray(_ptr=&self._pvt_ptr[0].srcArray) - - self._srcContext = CUcontext(_ptr=&self._pvt_ptr[0].srcContext) - - self._dstDevice = CUdeviceptr(_ptr=&self._pvt_ptr[0].dstDevice) - - self._dstArray = CUarray(_ptr=&self._pvt_ptr[0].dstArray) - - self._dstContext = CUcontext(_ptr=&self._pvt_ptr[0].dstContext) - def __dealloc__(self): pass def getPtr(self): @@ -15162,15 +15025,11 @@ cdef class CUDA_MEMCPY_NODE_PARAMS_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._copyCtx = CUcontext(_ptr=&self._pvt_ptr[0].copyCtx) - - self._copyParams = CUDA_MEMCPY3D(_ptr=&self._pvt_ptr[0].copyParams) - + self._copyParams._owner = self def __dealloc__(self): - pass + self._copyParams = None def getPtr(self): return self._pvt_ptr def __repr__(self): @@ -15586,12 +15445,10 @@ cdef class CUDA_ARRAY_SPARSE_PROPERTIES_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._tileExtent = anon_struct6(_ptr=self._pvt_ptr) - + self._tileExtent._owner = self def __dealloc__(self): - pass + self._tileExtent = None def getPtr(self): return self._pvt_ptr def __repr__(self): @@ -15741,10 +15598,7 @@ cdef class anon_struct7: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - self._hArray = CUarray(_ptr=&self._pvt_ptr[0].res.array.hArray) - def __dealloc__(self): pass def getPtr(self): @@ -15797,10 +15651,7 @@ cdef class anon_struct8: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - self._hMipmappedArray = CUmipmappedArray(_ptr=&self._pvt_ptr[0].res.mipmap.hMipmappedArray) - def __dealloc__(self): pass def getPtr(self): @@ -15865,10 +15716,7 @@ cdef class anon_struct9: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - self._devPtr = CUdeviceptr(_ptr=&self._pvt_ptr[0].res.linear.devPtr) - def __dealloc__(self): pass def getPtr(self): @@ -15984,10 +15832,7 @@ cdef class anon_struct10: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - self._devPtr = CUdeviceptr(_ptr=&self._pvt_ptr[0].res.pitch2D.devPtr) - def __dealloc__(self): pass def getPtr(self): @@ -16147,21 +15992,19 @@ cdef class anon_union4: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - self._array = anon_struct7(_ptr=self._pvt_ptr) - - + self._array._owner = self self._mipmap = anon_struct8(_ptr=self._pvt_ptr) - - + self._mipmap._owner = self self._linear = anon_struct9(_ptr=self._pvt_ptr) - - + self._linear._owner = self self._pitch2D = anon_struct10(_ptr=self._pvt_ptr) - + self._pitch2D._owner = self def __dealloc__(self): - pass + self._array = None + self._mipmap = None + self._linear = None + self._pitch2D = None def getPtr(self): return &self._pvt_ptr[0].res def __repr__(self): @@ -16258,11 +16101,10 @@ cdef class CUDA_RESOURCE_DESC_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._res = anon_union4(_ptr=self._pvt_ptr) - + self._res._owner = self def __dealloc__(self): + self._res = None if self._val_ptr is not NULL: free(self._val_ptr) def getPtr(self): @@ -16856,13 +16698,8 @@ cdef class CUDA_LAUNCH_PARAMS_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._function = CUfunction(_ptr=&self._pvt_ptr[0].function) - - self._hStream = CUstream(_ptr=&self._pvt_ptr[0].hStream) - def __dealloc__(self): pass def getPtr(self): @@ -17123,12 +16960,10 @@ cdef class anon_union5: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - self._win32 = anon_struct12(_ptr=self._pvt_ptr) - + self._win32._owner = self def __dealloc__(self): - pass + self._win32 = None def getPtr(self): return &self._pvt_ptr[0].handle def __repr__(self): @@ -17216,11 +17051,10 @@ cdef class CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._handle = anon_union5(_ptr=self._pvt_ptr) - + self._handle._owner = self def __dealloc__(self): + self._handle = None if self._val_ptr is not NULL: free(self._val_ptr) def getPtr(self): @@ -17403,12 +17237,10 @@ cdef class CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._arrayDesc = CUDA_ARRAY3D_DESCRIPTOR(_ptr=&self._pvt_ptr[0].arrayDesc) - + self._arrayDesc._owner = self def __dealloc__(self): - pass + self._arrayDesc = None def getPtr(self): return self._pvt_ptr def __repr__(self): @@ -17550,12 +17382,10 @@ cdef class anon_union6: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - self._win32 = anon_struct13(_ptr=self._pvt_ptr) - + self._win32._owner = self def __dealloc__(self): - pass + self._win32 = None def getPtr(self): return &self._pvt_ptr[0].handle def __repr__(self): @@ -17639,11 +17469,10 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._handle = anon_union6(_ptr=self._pvt_ptr) - + self._handle._owner = self def __dealloc__(self): + self._handle = None if self._val_ptr is not NULL: free(self._val_ptr) def getPtr(self): @@ -17856,18 +17685,16 @@ cdef class anon_struct16: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - self._fence = anon_struct14(_ptr=self._pvt_ptr) - - + self._fence._owner = self self._nvSciSync = anon_union7(_ptr=self._pvt_ptr) - - + self._nvSciSync._owner = self self._keyedMutex = anon_struct15(_ptr=self._pvt_ptr) - + self._keyedMutex._owner = self def __dealloc__(self): - pass + self._fence = None + self._nvSciSync = None + self._keyedMutex = None def getPtr(self): return &self._pvt_ptr[0].params def __repr__(self): @@ -17952,12 +17779,10 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._params = anon_struct16(_ptr=self._pvt_ptr) - + self._params._owner = self def __dealloc__(self): - pass + self._params = None def getPtr(self): return self._pvt_ptr def __repr__(self): @@ -18172,18 +17997,16 @@ cdef class anon_struct19: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - self._fence = anon_struct17(_ptr=self._pvt_ptr) - - + self._fence._owner = self self._nvSciSync = anon_union8(_ptr=self._pvt_ptr) - - + self._nvSciSync._owner = self self._keyedMutex = anon_struct18(_ptr=self._pvt_ptr) - + self._keyedMutex._owner = self def __dealloc__(self): - pass + self._fence = None + self._nvSciSync = None + self._keyedMutex = None def getPtr(self): return &self._pvt_ptr[0].params def __repr__(self): @@ -18268,12 +18091,10 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._params = anon_struct19(_ptr=self._pvt_ptr) - + self._params._owner = self def __dealloc__(self): - pass + self._params = None def getPtr(self): return self._pvt_ptr def __repr__(self): @@ -18344,16 +18165,12 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st: def __init__(self, void_ptr _ptr = 0): pass def __dealloc__(self): - if self._extSemArray is not NULL: free(self._extSemArray) self._pvt_ptr[0].extSemArray = NULL - - if self._paramsArray is not NULL: free(self._paramsArray) self._pvt_ptr[0].paramsArray = NULL - def getPtr(self): return self._pvt_ptr def __repr__(self): @@ -18407,8 +18224,12 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st: @property def paramsArray(self): - arrs = [self._pvt_ptr[0].paramsArray + x*sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS) for x in range(self._paramsArray_length)] - return [CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS(_ptr=arr) for arr in arrs] + if self._pvt_ptr[0].paramsArray == NULL: + return [] + out_paramsArray = [CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS() for _idx in range(self._paramsArray_length)] + for _idx in range(len(out_paramsArray)): + string.memcpy(out_paramsArray[_idx].getPtr(), &self._pvt_ptr[0].paramsArray[_idx], sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS)) + return out_paramsArray @paramsArray.setter def paramsArray(self, val): cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS* _paramsArray_new @@ -18419,10 +18240,6 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st: self._pvt_ptr[0].paramsArray = NULL else: if self._paramsArray_length != len(val): - # Allocate and fill a new buffer before touching the - # live state so a failure leaves this object unchanged - # (strong exception guarantee); the old buffer is only - # freed once the resize is known to succeed. _paramsArray_new = calloc(len(val), sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS)) if _paramsArray_new is NULL: raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS))) @@ -18437,7 +18254,6 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st: string.memcpy(&self._paramsArray[idx], (val[idx])._pvt_ptr, sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS)) - @property def numExtSems(self): return self._pvt_ptr[0].numExtSems @@ -18479,16 +18295,12 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st: def __init__(self, void_ptr _ptr = 0): pass def __dealloc__(self): - if self._extSemArray is not NULL: free(self._extSemArray) self._pvt_ptr[0].extSemArray = NULL - - if self._paramsArray is not NULL: free(self._paramsArray) self._pvt_ptr[0].paramsArray = NULL - def getPtr(self): return self._pvt_ptr def __repr__(self): @@ -18542,8 +18354,12 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st: @property def paramsArray(self): - arrs = [self._pvt_ptr[0].paramsArray + x*sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS) for x in range(self._paramsArray_length)] - return [CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS(_ptr=arr) for arr in arrs] + if self._pvt_ptr[0].paramsArray == NULL: + return [] + out_paramsArray = [CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS() for _idx in range(self._paramsArray_length)] + for _idx in range(len(out_paramsArray)): + string.memcpy(out_paramsArray[_idx].getPtr(), &self._pvt_ptr[0].paramsArray[_idx], sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS)) + return out_paramsArray @paramsArray.setter def paramsArray(self, val): cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS* _paramsArray_new @@ -18554,10 +18370,6 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st: self._pvt_ptr[0].paramsArray = NULL else: if self._paramsArray_length != len(val): - # Allocate and fill a new buffer before touching the - # live state so a failure leaves this object unchanged - # (strong exception guarantee); the old buffer is only - # freed once the resize is known to succeed. _paramsArray_new = calloc(len(val), sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS)) if _paramsArray_new is NULL: raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS))) @@ -18572,7 +18384,6 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st: string.memcpy(&self._paramsArray[idx], (val[idx])._pvt_ptr, sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS)) - @property def numExtSems(self): return self._pvt_ptr[0].numExtSems @@ -18614,16 +18425,12 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_st: def __init__(self, void_ptr _ptr = 0): pass def __dealloc__(self): - if self._extSemArray is not NULL: free(self._extSemArray) self._pvt_ptr[0].extSemArray = NULL - - if self._paramsArray is not NULL: free(self._paramsArray) self._pvt_ptr[0].paramsArray = NULL - def getPtr(self): return self._pvt_ptr def __repr__(self): @@ -18677,8 +18484,12 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_st: @property def paramsArray(self): - arrs = [self._pvt_ptr[0].paramsArray + x*sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS) for x in range(self._paramsArray_length)] - return [CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS(_ptr=arr) for arr in arrs] + if self._pvt_ptr[0].paramsArray == NULL: + return [] + out_paramsArray = [CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS() for _idx in range(self._paramsArray_length)] + for _idx in range(len(out_paramsArray)): + string.memcpy(out_paramsArray[_idx].getPtr(), &self._pvt_ptr[0].paramsArray[_idx], sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS)) + return out_paramsArray @paramsArray.setter def paramsArray(self, val): cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS* _paramsArray_new @@ -18689,10 +18500,6 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_st: self._pvt_ptr[0].paramsArray = NULL else: if self._paramsArray_length != len(val): - # Allocate and fill a new buffer before touching the - # live state so a failure leaves this object unchanged - # (strong exception guarantee); the old buffer is only - # freed once the resize is known to succeed. _paramsArray_new = calloc(len(val), sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS)) if _paramsArray_new is NULL: raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS))) @@ -18707,7 +18514,6 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_st: string.memcpy(&self._paramsArray[idx], (val[idx])._pvt_ptr, sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS)) - @property def numExtSems(self): return self._pvt_ptr[0].numExtSems @@ -18749,16 +18555,12 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st: def __init__(self, void_ptr _ptr = 0): pass def __dealloc__(self): - if self._extSemArray is not NULL: free(self._extSemArray) self._pvt_ptr[0].extSemArray = NULL - - if self._paramsArray is not NULL: free(self._paramsArray) self._pvt_ptr[0].paramsArray = NULL - def getPtr(self): return self._pvt_ptr def __repr__(self): @@ -18812,8 +18614,12 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st: @property def paramsArray(self): - arrs = [self._pvt_ptr[0].paramsArray + x*sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS) for x in range(self._paramsArray_length)] - return [CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS(_ptr=arr) for arr in arrs] + if self._pvt_ptr[0].paramsArray == NULL: + return [] + out_paramsArray = [CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS() for _idx in range(self._paramsArray_length)] + for _idx in range(len(out_paramsArray)): + string.memcpy(out_paramsArray[_idx].getPtr(), &self._pvt_ptr[0].paramsArray[_idx], sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS)) + return out_paramsArray @paramsArray.setter def paramsArray(self, val): cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS* _paramsArray_new @@ -18824,10 +18630,6 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st: self._pvt_ptr[0].paramsArray = NULL else: if self._paramsArray_length != len(val): - # Allocate and fill a new buffer before touching the - # live state so a failure leaves this object unchanged - # (strong exception guarantee); the old buffer is only - # freed once the resize is known to succeed. _paramsArray_new = calloc(len(val), sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS)) if _paramsArray_new is NULL: raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS))) @@ -18842,7 +18644,6 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st: string.memcpy(&self._paramsArray[idx], (val[idx])._pvt_ptr, sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS)) - @property def numExtSems(self): return self._pvt_ptr[0].numExtSems @@ -18873,13 +18674,8 @@ cdef class anon_union9: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - self._mipmap = CUmipmappedArray(_ptr=&self._pvt_ptr[0].resource.mipmap) - - self._array = CUarray(_ptr=&self._pvt_ptr[0].resource.array) - def __dealloc__(self): pass def getPtr(self): @@ -19209,15 +19005,13 @@ cdef class anon_union10: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - self._sparseLevel = anon_struct20(_ptr=self._pvt_ptr) - - + self._sparseLevel._owner = self self._miptail = anon_struct21(_ptr=self._pvt_ptr) - + self._miptail._owner = self def __dealloc__(self): - pass + self._sparseLevel = None + self._miptail = None def getPtr(self): return &self._pvt_ptr[0].subresource def __repr__(self): @@ -19273,10 +19067,7 @@ cdef class anon_union11: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - self._memHandle = CUmemGenericAllocationHandle(_ptr=&self._pvt_ptr[0].memHandle.memHandle) - def __dealloc__(self): pass def getPtr(self): @@ -19372,17 +19163,16 @@ cdef class CUarrayMapInfo_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._resource = anon_union9(_ptr=self._pvt_ptr) - - + self._resource._owner = self self._subresource = anon_union10(_ptr=self._pvt_ptr) - - + self._subresource._owner = self self._memHandle = anon_union11(_ptr=self._pvt_ptr) - + self._memHandle._owner = self def __dealloc__(self): + self._resource = None + self._subresource = None + self._memHandle = None if self._val_ptr is not NULL: free(self._val_ptr) def getPtr(self): @@ -19722,15 +19512,13 @@ cdef class CUmemAllocationProp_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._location = CUmemLocation(_ptr=&self._pvt_ptr[0].location) - - + self._location._owner = self self._allocFlags = anon_struct22(_ptr=self._pvt_ptr) - + self._allocFlags._owner = self def __dealloc__(self): - pass + self._location = None + self._allocFlags = None def getPtr(self): return self._pvt_ptr def __repr__(self): @@ -19942,12 +19730,10 @@ cdef class CUmemAccessDesc_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._location = CUmemLocation(_ptr=&self._pvt_ptr[0].location) - + self._location._owner = self def __dealloc__(self): - pass + self._location = None def getPtr(self): return self._pvt_ptr def __repr__(self): @@ -20018,13 +19804,8 @@ cdef class CUgraphExecUpdateResultInfo_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._errorNode = CUgraphNode(_ptr=&self._pvt_ptr[0].errorNode) - - self._errorFromNode = CUgraphNode(_ptr=&self._pvt_ptr[0].errorFromNode) - def __dealloc__(self): pass def getPtr(self): @@ -20144,12 +19925,10 @@ cdef class CUmemPoolProps_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._location = CUmemLocation(_ptr=&self._pvt_ptr[0].location) - + self._location._owner = self def __dealloc__(self): - pass + self._location = None def getPtr(self): return self._pvt_ptr def __repr__(self): @@ -20310,15 +20089,13 @@ cdef class CUmemcpyAttributes_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._srcLocHint = CUmemLocation(_ptr=&self._pvt_ptr[0].srcLocHint) - - + self._srcLocHint._owner = self self._dstLocHint = CUmemLocation(_ptr=&self._pvt_ptr[0].dstLocHint) - + self._dstLocHint._owner = self def __dealloc__(self): - pass + self._srcLocHint = None + self._dstLocHint = None def getPtr(self): return self._pvt_ptr def __repr__(self): @@ -20582,15 +20359,11 @@ cdef class anon_struct23: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - self._ptr = CUdeviceptr(_ptr=&self._pvt_ptr[0].op.ptr.ptr) - - self._locHint = CUmemLocation(_ptr=&self._pvt_ptr[0].op.ptr.locHint) - + self._locHint._owner = self def __dealloc__(self): - pass + self._locHint = None def getPtr(self): return &self._pvt_ptr[0].op.ptr def __repr__(self): @@ -20688,15 +20461,11 @@ cdef class anon_struct24: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - self._array = CUarray(_ptr=&self._pvt_ptr[0].op.array.array) - - self._offset = CUoffset3D(_ptr=&self._pvt_ptr[0].op.array.offset) - + self._offset._owner = self def __dealloc__(self): - pass + self._offset = None def getPtr(self): return &self._pvt_ptr[0].op.array def __repr__(self): @@ -20765,15 +20534,13 @@ cdef class anon_union12: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - self._ptr = anon_struct23(_ptr=self._pvt_ptr) - - + self._ptr._owner = self self._array = anon_struct24(_ptr=self._pvt_ptr) - + self._array._owner = self def __dealloc__(self): - pass + self._ptr = None + self._array = None def getPtr(self): return &self._pvt_ptr[0].op def __repr__(self): @@ -20838,11 +20605,10 @@ cdef class CUmemcpy3DOperand_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._op = anon_union12(_ptr=self._pvt_ptr) - + self._op._owner = self def __dealloc__(self): + self._op = None if self._val_ptr is not NULL: free(self._val_ptr) def getPtr(self): @@ -20919,18 +20685,16 @@ cdef class CUDA_MEMCPY3D_BATCH_OP_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._src = CUmemcpy3DOperand(_ptr=&self._pvt_ptr[0].src) - - + self._src._owner = self self._dst = CUmemcpy3DOperand(_ptr=&self._pvt_ptr[0].dst) - - + self._dst._owner = self self._extent = CUextent3D(_ptr=&self._pvt_ptr[0].extent) - + self._extent._owner = self def __dealloc__(self): - pass + self._src = None + self._dst = None + self._extent = None def getPtr(self): return self._pvt_ptr def __repr__(self): @@ -21052,19 +20816,14 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v1_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._poolProps = CUmemPoolProps(_ptr=&self._pvt_ptr[0].poolProps) - - + self._poolProps._owner = self self._dptr = CUdeviceptr(_ptr=&self._pvt_ptr[0].dptr) - def __dealloc__(self): - + self._poolProps = None if self._accessDescs is not NULL: free(self._accessDescs) self._pvt_ptr[0].accessDescs = NULL - def getPtr(self): return self._pvt_ptr def __repr__(self): @@ -21114,8 +20873,12 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v1_st: @property def accessDescs(self): - arrs = [self._pvt_ptr[0].accessDescs + x*sizeof(cydriver.CUmemAccessDesc) for x in range(self._accessDescs_length)] - return [CUmemAccessDesc(_ptr=arr) for arr in arrs] + if self._pvt_ptr[0].accessDescs == NULL: + return [] + out_accessDescs = [CUmemAccessDesc() for _idx in range(self._accessDescs_length)] + for _idx in range(len(out_accessDescs)): + string.memcpy(out_accessDescs[_idx].getPtr(), &self._pvt_ptr[0].accessDescs[_idx], sizeof(cydriver.CUmemAccessDesc)) + return out_accessDescs @accessDescs.setter def accessDescs(self, val): cdef cydriver.CUmemAccessDesc* _accessDescs_new @@ -21126,10 +20889,6 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v1_st: self._pvt_ptr[0].accessDescs = NULL else: if self._accessDescs_length != len(val): - # Allocate and fill a new buffer before touching the - # live state so a failure leaves this object unchanged - # (strong exception guarantee); the old buffer is only - # freed once the resize is known to succeed. _accessDescs_new = calloc(len(val), sizeof(cydriver.CUmemAccessDesc)) if _accessDescs_new is NULL: raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cydriver.CUmemAccessDesc))) @@ -21144,7 +20903,6 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v1_st: string.memcpy(&self._accessDescs[idx], (val[idx])._pvt_ptr, sizeof(cydriver.CUmemAccessDesc)) - @property def accessDescCount(self): return self._pvt_ptr[0].accessDescCount @@ -21221,19 +20979,14 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v2_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._poolProps = CUmemPoolProps(_ptr=&self._pvt_ptr[0].poolProps) - - + self._poolProps._owner = self self._dptr = CUdeviceptr(_ptr=&self._pvt_ptr[0].dptr) - def __dealloc__(self): - + self._poolProps = None if self._accessDescs is not NULL: free(self._accessDescs) self._pvt_ptr[0].accessDescs = NULL - def getPtr(self): return self._pvt_ptr def __repr__(self): @@ -21283,8 +21036,12 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v2_st: @property def accessDescs(self): - arrs = [self._pvt_ptr[0].accessDescs + x*sizeof(cydriver.CUmemAccessDesc) for x in range(self._accessDescs_length)] - return [CUmemAccessDesc(_ptr=arr) for arr in arrs] + if self._pvt_ptr[0].accessDescs == NULL: + return [] + out_accessDescs = [CUmemAccessDesc() for _idx in range(self._accessDescs_length)] + for _idx in range(len(out_accessDescs)): + string.memcpy(out_accessDescs[_idx].getPtr(), &self._pvt_ptr[0].accessDescs[_idx], sizeof(cydriver.CUmemAccessDesc)) + return out_accessDescs @accessDescs.setter def accessDescs(self, val): cdef cydriver.CUmemAccessDesc* _accessDescs_new @@ -21295,10 +21052,6 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v2_st: self._pvt_ptr[0].accessDescs = NULL else: if self._accessDescs_length != len(val): - # Allocate and fill a new buffer before touching the - # live state so a failure leaves this object unchanged - # (strong exception guarantee); the old buffer is only - # freed once the resize is known to succeed. _accessDescs_new = calloc(len(val), sizeof(cydriver.CUmemAccessDesc)) if _accessDescs_new is NULL: raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cydriver.CUmemAccessDesc))) @@ -21313,7 +21066,6 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v2_st: string.memcpy(&self._accessDescs[idx], (val[idx])._pvt_ptr, sizeof(cydriver.CUmemAccessDesc)) - @property def accessDescCount(self): return self._pvt_ptr[0].accessDescCount @@ -21370,10 +21122,7 @@ cdef class CUDA_MEM_FREE_NODE_PARAMS_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._dptr = CUdeviceptr(_ptr=&self._pvt_ptr[0].dptr) - def __dealloc__(self): pass def getPtr(self): @@ -21439,10 +21188,7 @@ cdef class CUDA_CHILD_GRAPH_NODE_PARAMS_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._graph = CUgraph(_ptr=&self._pvt_ptr[0].graph) - def __dealloc__(self): pass def getPtr(self): @@ -21513,10 +21259,7 @@ cdef class CUDA_EVENT_RECORD_NODE_PARAMS_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._event = CUevent(_ptr=&self._pvt_ptr[0].event) - def __dealloc__(self): pass def getPtr(self): @@ -21573,10 +21316,7 @@ cdef class CUDA_EVENT_WAIT_NODE_PARAMS_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._event = CUevent(_ptr=&self._pvt_ptr[0].event) - def __dealloc__(self): pass def getPtr(self): @@ -21686,47 +21426,46 @@ cdef class CUgraphNodeParams_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._kernel = CUDA_KERNEL_NODE_PARAMS_v3(_ptr=&self._pvt_ptr[0].kernel) - - + self._kernel._owner = self self._memcpy = CUDA_MEMCPY_NODE_PARAMS(_ptr=&self._pvt_ptr[0].memcpy) - - + self._memcpy._owner = self self._memset = CUDA_MEMSET_NODE_PARAMS_v2(_ptr=&self._pvt_ptr[0].memset) - - + self._memset._owner = self self._host = CUDA_HOST_NODE_PARAMS_v2(_ptr=&self._pvt_ptr[0].host) - - + self._host._owner = self self._graph = CUDA_CHILD_GRAPH_NODE_PARAMS(_ptr=&self._pvt_ptr[0].graph) - - + self._graph._owner = self self._eventWait = CUDA_EVENT_WAIT_NODE_PARAMS(_ptr=&self._pvt_ptr[0].eventWait) - - + self._eventWait._owner = self self._eventRecord = CUDA_EVENT_RECORD_NODE_PARAMS(_ptr=&self._pvt_ptr[0].eventRecord) - - + self._eventRecord._owner = self self._extSemSignal = CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2(_ptr=&self._pvt_ptr[0].extSemSignal) - - + self._extSemSignal._owner = self self._extSemWait = CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2(_ptr=&self._pvt_ptr[0].extSemWait) - - + self._extSemWait._owner = self self._alloc = CUDA_MEM_ALLOC_NODE_PARAMS_v2(_ptr=&self._pvt_ptr[0].alloc) - - + self._alloc._owner = self self._free = CUDA_MEM_FREE_NODE_PARAMS(_ptr=&self._pvt_ptr[0].free) - - + self._free._owner = self self._memOp = CUDA_BATCH_MEM_OP_NODE_PARAMS_v2(_ptr=&self._pvt_ptr[0].memOp) - - + self._memOp._owner = self self._conditional = CUDA_CONDITIONAL_NODE_PARAMS(_ptr=&self._pvt_ptr[0].conditional) - + self._conditional._owner = self def __dealloc__(self): + self._kernel = None + self._memcpy = None + self._memset = None + self._host = None + self._graph = None + self._eventWait = None + self._eventRecord = None + self._extSemSignal = None + self._extSemWait = None + self._alloc = None + self._free = None + self._memOp = None + self._conditional = None if self._val_ptr is not NULL: free(self._val_ptr) def getPtr(self): @@ -22294,11 +22033,10 @@ cdef class CUdevResource_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._sm = CUdevSmResource(_ptr=&self._pvt_ptr[0].sm) - + self._sm._owner = self def __dealloc__(self): + self._sm = None if self._val_ptr is not NULL: free(self._val_ptr) def getPtr(self): @@ -22504,11 +22242,10 @@ cdef class CUeglFrame_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - self._frame = anon_union15(_ptr=self._pvt_ptr) - + self._frame._owner = self def __dealloc__(self): + self._frame = None if self._val_ptr is not NULL: free(self._val_ptr) def getPtr(self): @@ -24010,9 +23747,9 @@ def cuDeviceSetMemPool(dev, pool): Parameters ---------- dev : :py:obj:`~.CUdevice` - None + Device to set the current memory pool for pool : :py:obj:`~.CUmemoryPool` or :py:obj:`~.cudaMemPool_t` - None + Memory pool to use as the device's current memory pool Returns ------- @@ -24060,14 +23797,14 @@ def cuDeviceGetMemPool(dev): Parameters ---------- dev : :py:obj:`~.CUdevice` - None + Device for which to query the current memory pool Returns ------- CUresult :py:obj:`~.CUDA_SUCCESS`, :py:obj:`~.CUDA_ERROR_INVALID_VALUE` pool : :py:obj:`~.CUmemoryPool` - None + Returned current memory pool of the device See Also -------- @@ -24098,14 +23835,14 @@ def cuDeviceGetDefaultMemPool(dev): Parameters ---------- dev : :py:obj:`~.CUdevice` - None + Device for which to query the default memory pool Returns ------- CUresult :py:obj:`~.CUDA_SUCCESS`, :py:obj:`~.CUDA_ERROR_DEINITIALIZED` :py:obj:`~.CUDA_ERROR_NOT_INITIALIZED`, :py:obj:`~.CUDA_ERROR_INVALID_VALUE`, :py:obj:`~.CUDA_ERROR_INVALID_DEVICE`, :py:obj:`~.CUDA_ERROR_NOT_SUPPORTED` pool_out : :py:obj:`~.CUmemoryPool` - None + Returned default memory pool of the device See Also -------- @@ -28650,7 +28387,7 @@ def cuDeviceRegisterAsyncNotification(device, callbackFunc, userData): if err != cydriver.CUDA_SUCCESS: free(cbData) else: - m_global._allocated[int(callback)] = cbData + m_global._insert(int(callback), cbData) _helper_input_void_ptr_free(&cyuserDataHelper) if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) @@ -28699,8 +28436,7 @@ def cuDeviceUnregisterAsyncNotification(device, callback): with nogil: err = cydriver.cuDeviceUnregisterAsyncNotification(cydevice, cycallback) if err == cydriver.CUDA_SUCCESS: - free(m_global._allocated[pcallback]) - m_global._allocated.erase(pcallback) + free(m_global._take(pcallback)) return (_CUresult(err),) @cython.embedsignature(True) @@ -33859,14 +33595,14 @@ def cuMemPoolCreate(poolProps : Optional[CUmemPoolProps]): Parameters ---------- poolProps : :py:obj:`~.CUmemPoolProps` - None + Memory pool properties Returns ------- CUresult :py:obj:`~.CUDA_SUCCESS`, :py:obj:`~.CUDA_ERROR_NOT_INITIALIZED`, :py:obj:`~.CUDA_ERROR_INVALID_VALUE`, :py:obj:`~.CUDA_ERROR_OUT_OF_MEMORY`, :py:obj:`~.CUDA_ERROR_NOT_PERMITTED`, :py:obj:`~.CUDA_ERROR_NOT_SUPPORTED` pool : :py:obj:`~.CUmemoryPool` - None + Returned memory pool See Also -------- @@ -33900,7 +33636,7 @@ def cuMemPoolDestroy(pool): Parameters ---------- pool : :py:obj:`~.CUmemoryPool` or :py:obj:`~.cudaMemPool_t` - None + Memory pool to destroy Returns ------- @@ -51019,7 +50755,7 @@ def cuLogsRegisterCallback(callbackFunc, userData): if err != cydriver.CUDA_SUCCESS: free(cbData) else: - m_global._allocated[int(callback_out)] = cbData + m_global._insert(int(callback_out), cbData) _helper_input_void_ptr_free(&cyuserDataHelper) if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) @@ -51050,8 +50786,7 @@ def cuLogsUnregisterCallback(callback): with nogil: err = cydriver.cuLogsUnregisterCallback(cycallback) if err == cydriver.CUDA_SUCCESS: - free(m_global._allocated[pcallback]) - m_global._allocated.erase(pcallback) + free(m_global._take(pcallback)) return (_CUresult(err),) @cython.embedsignature(True) @@ -52490,6 +52225,19 @@ def cuGraphicsVDPAURegisterOutputSurface(vdpSurface, unsigned int flags): cdef class cudaBindingsDriverGlobal: cdef map[void_ptr, void*] _allocated + cdef cython.pymutex _lock + + cdef void _insert(self, void_ptr key, void* value) noexcept: + with self._lock: + self._allocated[key] = value + + cdef void* _take(self, void_ptr key) noexcept: + cdef void* value = NULL + with self._lock: + if self._allocated.count(key) != 0: + value = self._allocated[key] + self._allocated.erase(key) + return value def __dealloc__(self): for item in self._allocated: diff --git a/cuda_bindings_12/cuda/bindings/nvfatbin.pxd b/cuda_bindings_12/cuda/bindings/nvfatbin.pxd index 192e7f55fde7..12e6c38d1dfb 100644 --- a/cuda_bindings_12/cuda/bindings/nvfatbin.pxd +++ b/cuda_bindings_12/cuda/bindings/nvfatbin.pxd @@ -2,8 +2,8 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.4.1 to 13.4.1. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=9ead77b928fe2009e92249025e5b38bf079a25fc0d9737aafd3cbeddb5c86661 +# This code was automatically generated across versions from 12.4.1 to 13.5.0. Do not modify it directly. +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=c1a61d7e60d106e2b062762175699e550da7b75d60b40ac6254edfdfe6c2a448 diff --git a/cuda_bindings_12/cuda/bindings/nvfatbin.pyx b/cuda_bindings_12/cuda/bindings/nvfatbin.pyx index be8b01f3db4c..ecd067d4ceed 100644 --- a/cuda_bindings_12/cuda/bindings/nvfatbin.pyx +++ b/cuda_bindings_12/cuda/bindings/nvfatbin.pyx @@ -2,13 +2,17 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.4.1 to 13.4.1. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=a7028b3fc77724f1ea7c5c49302cfe8524b85554b73eaf754231ac9bfc26c0f7 +# This code was automatically generated across versions from 12.4.1 to 13.5.0. Do not modify it directly. +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=5017cbd422315ed05d8c8d89fcf7ee2efa806dbccab0e7cc58a646a037f8053a # <<<< PREAMBLE CONTENT >>>> cimport cpython as _cyb_cpython +from cuda.bindings._internal.utils cimport ( + get_nested_resource_ptr as _cyb_get_nested_resource_ptr, + nested_resource as _cyb_nested_resource, +) from libc.stdint cimport intptr_t from cuda.bindings._internal._fast_enum import FastEnum as _cyb_FastEnum @@ -29,13 +33,12 @@ cdef intptr_t _cyb_get_buffer_pointer(buf, Py_ssize_t size, readonly=True) excep status = _cyb_cpython.PyObject_GetBuffer(buf, &view, flags) if size != -1: assert view.len == size - assert view.ndim == 1 except Exception as e: adj = "writable " if not readonly else "" raise ValueError( "buf must be None, a Python int representing the pointer " - f"address to a valid buffer, or a 1D contiguous {adj}" - f"buffer, of size {size}" + f"address to a valid buffer, or a contiguous {adj}" + f"buffer (a ctypes object, NumPy array, bytes, ...), of size {size}" ) from e else: ptr = view.buf @@ -165,8 +168,8 @@ cpdef intptr_t create(options, size_t options_count) except -1: .. seealso:: `nvFatbinCreate` """ - cdef nested_resource[ char ] _options_ - get_nested_resource_ptr[char](_options_, options, NULL) + cdef _cyb_nested_resource[ char ] _options_ + _cyb_get_nested_resource_ptr[char](_options_, options, NULL) cdef Handle handle_indirect with nogil: __status__ = nvFatbinCreate(&handle_indirect, (_options_.ptrs.data()), options_count) diff --git a/cuda_bindings_12/cuda/bindings/nvjitlink.pxd b/cuda_bindings_12/cuda/bindings/nvjitlink.pxd index b383554eacae..aa8cddb813bc 100644 --- a/cuda_bindings_12/cuda/bindings/nvjitlink.pxd +++ b/cuda_bindings_12/cuda/bindings/nvjitlink.pxd @@ -2,8 +2,8 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.0.1 to 13.4.1. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=bdd807ca03377f36b064e28eaa2421255316987c009a65a55f05fbc1a22e2bf3 +# This code was automatically generated across versions from 12.0.1 to 13.5.0. Do not modify it directly. +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=b8da74da1aaf2e6632bc7082a3b22ed9009e9a30b3e532cee48884ee08bac7af diff --git a/cuda_bindings_12/cuda/bindings/nvjitlink.pyx b/cuda_bindings_12/cuda/bindings/nvjitlink.pyx index 475f48dcd987..2726a5cc9b92 100644 --- a/cuda_bindings_12/cuda/bindings/nvjitlink.pyx +++ b/cuda_bindings_12/cuda/bindings/nvjitlink.pyx @@ -2,13 +2,17 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.0.1 to 13.4.1. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=d783bc46a513ae0becbc9385c3be40ba64809b0fd834e5ed3189b94bd287436d +# This code was automatically generated across versions from 12.0.1 to 13.5.0. Do not modify it directly. +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=9fa17f14f752f454a8a5050362f6a420cc053eb063de1bdb72b49f2ee76b0658 # <<<< PREAMBLE CONTENT >>>> cimport cpython as _cyb_cpython +from cuda.bindings._internal.utils cimport ( + get_nested_resource_ptr as _cyb_get_nested_resource_ptr, + nested_resource as _cyb_nested_resource, +) from libc.stdint cimport ( intptr_t, uint32_t, @@ -32,13 +36,12 @@ cdef intptr_t _cyb_get_buffer_pointer(buf, Py_ssize_t size, readonly=True) excep status = _cyb_cpython.PyObject_GetBuffer(buf, &view, flags) if size != -1: assert view.len == size - assert view.ndim == 1 except Exception as e: adj = "writable " if not readonly else "" raise ValueError( "buf must be None, a Python int representing the pointer " - f"address to a valid buffer, or a 1D contiguous {adj}" - f"buffer, of size {size}" + f"address to a valid buffer, or a contiguous {adj}" + f"buffer (a ctypes object, NumPy array, bytes, ...), of size {size}" ) from e else: ptr = view.buf @@ -168,8 +171,8 @@ cpdef intptr_t create(uint32_t num_options, options) except -1: .. seealso:: `nvJitLinkCreate` """ - cdef nested_resource[ char ] _options_ - get_nested_resource_ptr[char](_options_, options, NULL) + cdef _cyb_nested_resource[ char ] _options_ + _cyb_get_nested_resource_ptr[char](_options_, options, NULL) cdef Handle handle with nogil: __status__ = nvJitLinkCreate(&handle, num_options, (_options_.ptrs.data())) diff --git a/cuda_bindings_12/cuda/bindings/nvml.pxd b/cuda_bindings_12/cuda/bindings/nvml.pxd index cfda90b966a4..dcde7b1ccfcd 100644 --- a/cuda_bindings_12/cuda/bindings/nvml.pxd +++ b/cuda_bindings_12/cuda/bindings/nvml.pxd @@ -2,8 +2,8 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.9.1 to 13.4.1. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=8d1afafeb9369977927ce07c70187f6f0927eb5f556b6f4e3569d6ce58980e7a +# This code was automatically generated across versions from 12.9.1 to 13.5.0. Do not modify it directly. +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=1a1a93143a45c1317fad32c5836bb153412cd49748d57bac998f8a9fc00e1bef @@ -464,3 +464,11 @@ cpdef object device_get_nv_link_telemetry_samples_v1(intptr_t device) cpdef event_set_register_gpu_operational_events_v1(intptr_t event_set, config) cpdef object event_set_get_context_count_v1(intptr_t set) cpdef object device_get_bank_remapper_status_v1(intptr_t device) +cpdef object device_get_gpu_uptime_v1(intptr_t device) +cpdef object system_get_conf_compute_settings_v2() +cpdef object device_get_nvlink_info_v3(intptr_t device) +cpdef object device_get_nvlink_remap_table_info_v1(intptr_t device) +cpdef device_set_nvlink_nvle_ready_v1(intptr_t device, set_nvle_ready) +cpdef device_lock_nvlink_remap_table_v1(intptr_t device, remap_table_lock_info) +cpdef device_setup_nvlink_nvle_encryption_key_v1(intptr_t device, encryption_key) +cpdef object device_get_nvlink_nvle_private_info_v1(intptr_t device) diff --git a/cuda_bindings_12/cuda/bindings/nvml.pyx b/cuda_bindings_12/cuda/bindings/nvml.pyx index a713a667e076..402428b5e6f3 100644 --- a/cuda_bindings_12/cuda/bindings/nvml.pyx +++ b/cuda_bindings_12/cuda/bindings/nvml.pyx @@ -2,8 +2,8 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.9.1 to 13.4.1. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=11827bb18f0653afd95163d1d140a0ec529d3d025b1ca1da61f96ee88f48d948 +# This code was automatically generated across versions from 12.9.1 to 13.5.0. Do not modify it directly. +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=41c2a2147ee34ceed11d38eb00faa851b5c1d5f10c215a0df65f85b22a41757c # <<<< PREAMBLE CONTENT >>>> @@ -17,11 +17,6 @@ from cpython.buffer cimport ( Py_buffer as _cyb_Py_buffer, ) cimport cpython.memoryview as _cyb_cpython_memoryview -from cpython.object cimport PyObject as _cyb_PyObject -from cpython.ref cimport ( - Py_CLEAR as _cyb_Py_CLEAR, - Py_XINCREF as _cyb_Py_XINCREF, -) from cython cimport view as _cyb_view from libc.stdint cimport intptr_t from libc.stdlib cimport ( @@ -52,6 +47,14 @@ cdef _cyb___getbuffer(object self, _cyb_cpython.Py_buffer *buffer, void *ptr, in buffer.strides = &buffer.itemsize buffer.suboffsets = NULL +cdef inline intptr_t _cyb_array_ptr(object arr) except? 0: + cdef _cyb_cpython.Py_buffer view + cdef intptr_t ptr + _cyb_cpython.PyObject_GetBuffer(arr, &view, _cyb_cpython_buffer.PyBUF_STRIDES) + ptr = view.buf + _cyb_cpython.PyBuffer_Release(&view) + return ptr + cdef _cyb_from_buffer(buffer, size, lowpp_type): cdef _cyb_cpython.Py_buffer view if _cyb_cpython.PyObject_GetBuffer(buffer, &view, _cyb_cpython_buffer.PyBUF_SIMPLE) != 0: @@ -309,14 +312,14 @@ class ValueType(_cyb_FastEnum): See `nvmlValueType_t`. """ - DOUBLE = NVML_VALUE_TYPE_DOUBLE - UNSIGNED_INT = NVML_VALUE_TYPE_UNSIGNED_INT - UNSIGNED_LONG = NVML_VALUE_TYPE_UNSIGNED_LONG - UNSIGNED_LONG_LONG = NVML_VALUE_TYPE_UNSIGNED_LONG_LONG - SIGNED_LONG_LONG = NVML_VALUE_TYPE_SIGNED_LONG_LONG - SIGNED_INT = NVML_VALUE_TYPE_SIGNED_INT - UNSIGNED_SHORT = NVML_VALUE_TYPE_UNSIGNED_SHORT - COUNT = NVML_VALUE_TYPE_COUNT + DOUBLE = (NVML_VALUE_TYPE_DOUBLE, 'Double-precision floating-point value.') + UNSIGNED_INT = (NVML_VALUE_TYPE_UNSIGNED_INT, 'Unsigned 32-bit integer value.') + UNSIGNED_LONG = (NVML_VALUE_TYPE_UNSIGNED_LONG, 'Unsigned long integer value.') + UNSIGNED_LONG_LONG = (NVML_VALUE_TYPE_UNSIGNED_LONG_LONG, 'Unsigned 64-bit integer value.') + SIGNED_LONG_LONG = (NVML_VALUE_TYPE_SIGNED_LONG_LONG, 'Signed 64-bit integer value.') + SIGNED_INT = (NVML_VALUE_TYPE_SIGNED_INT, 'Signed 32-bit integer value.') + UNSIGNED_SHORT = (NVML_VALUE_TYPE_UNSIGNED_SHORT, 'Unsigned 16-bit integer value.') + COUNT = (NVML_VALUE_TYPE_COUNT, 'Maximum value above +1.') class PerfPolicyType(_cyb_FastEnum): """ @@ -483,10 +486,10 @@ class BrandType(_cyb_FastEnum): BRAND_TITAN_RTX = TITAN_RTX # backward-compat alias NVIDIA_DLA = NVML_BRAND_NVIDIA_DLA BRAND_NVIDIA_DLA = NVIDIA_DLA # backward-compat alias - NVIDIA_VGAMEDEV = NVML_BRAND_NVIDIA_VGAMEDEV - BRAND_NVIDIA_VGAMEDEV = NVIDIA_VGAMEDEV # backward-compat alias NVIDIA_NPU = NVML_BRAND_NVIDIA_NPU BRAND_NVIDIA_NPU = NVIDIA_NPU # backward-compat alias + NVIDIA_VGAMEDEV = NVML_BRAND_NVIDIA_VGAMEDEV + BRAND_NVIDIA_VGAMEDEV = NVIDIA_VGAMEDEV # backward-compat alias COUNT = NVML_BRAND_COUNT BRAND_COUNT = COUNT # backward-compat alias @@ -720,7 +723,7 @@ class Return(_cyb_FastEnum): ERROR_CORRUPTED_INFOROM = (NVML_ERROR_CORRUPTED_INFOROM, 'infoROM is corrupted') ERROR_GPU_IS_LOST = (NVML_ERROR_GPU_IS_LOST, 'The GPU has fallen off the bus or has otherwise become inaccessible.') ERROR_RESET_REQUIRED = (NVML_ERROR_RESET_REQUIRED, 'The GPU requires a reset before it can be used again.') - ERROR_OPERATING_SYSTEM = (NVML_ERROR_OPERATING_SYSTEM, 'The GPU control device has been blocked by the operating system/cgroups.') + ERROR_OPERATING_SYSTEM = (NVML_ERROR_OPERATING_SYSTEM, 'A generic operating system error occurred.') ERROR_LIB_RM_VERSION_MISMATCH = (NVML_ERROR_LIB_RM_VERSION_MISMATCH, 'RM detects a driver/library version mismatch.') ERROR_IN_USE = (NVML_ERROR_IN_USE, 'An operation cannot be performed because the GPU is currently in use.') ERROR_MEMORY = (NVML_ERROR_MEMORY, 'Insufficient memory.') @@ -1943,6 +1946,8 @@ class GpmMetricId(_cyb_FastEnum): class PowerProfileType(_cyb_FastEnum): """ + Workload power profile identifiers. + See `nvmlPowerProfileType_t`. """ MAX_P = NVML_POWER_PROFILE_MAX_P @@ -2965,7 +2970,7 @@ class InsufficientPowerError(NvmlError): pass class DriverNotLoadedError(NvmlError): pass -class TimeoutError(NvmlError): +class NvmlTimeoutError(NvmlError): pass class IrqIssueError(NvmlError): pass @@ -2985,7 +2990,7 @@ class LibRmVersionMismatchError(NvmlError): pass class InUseError(NvmlError): pass -class MemoryError(NvmlError): +class NvmlMemoryError(NvmlError): pass class NoDataError(NvmlError): pass @@ -3030,7 +3035,7 @@ cdef object _nvml_error_factory(int status): elif status == 9: return DriverNotLoadedError(pystatus) elif status == 10: - return TimeoutError(pystatus) + return NvmlTimeoutError(pystatus) elif status == 11: return IrqIssueError(pystatus) elif status == 12: @@ -3050,7 +3055,7 @@ cdef object _nvml_error_factory(int status): elif status == 19: return InUseError(pystatus) elif status == 20: - return MemoryError(pystatus) + return NvmlMemoryError(pystatus) elif status == 21: return NoDataError(pystatus) elif status == 22: @@ -3348,24 +3353,24 @@ cdef class PciInfo: """ cdef: nvmlPciInfo_t *_ptr - _cyb_PyObject *_owner + object _owner + bint _owns_ptr bint _readonly def __init__(self): self._ptr = _cyb_calloc(1, sizeof(nvmlPciInfo_t)) if self._ptr == NULL: raise MemoryError("Error allocating PciInfo") - self._owner = NULL + self._owns_ptr = True + self._owner = None self._readonly = False def __dealloc__(self): cdef nvmlPciInfo_t *ptr - if self._owner == NULL and self._ptr != NULL: + if self._owns_ptr and self._ptr != NULL: ptr = self._ptr self._ptr = NULL _cyb_free(ptr) - _cyb_Py_CLEAR(self._owner) - self._owner = NULL def __repr__(self): return f"<{__name__}.PciInfo object at {hex(id(self))}>" @@ -3528,11 +3533,12 @@ cdef class PciInfo: if obj._ptr == NULL: raise MemoryError("Error allocating PciInfo") _cyb_memcpy((obj._ptr), ptr, sizeof(nvmlPciInfo_t)) - obj._owner = NULL + obj._owns_ptr = True + obj._owner = None else: obj._ptr = ptr - obj._owner = <_cyb_PyObject *>owner - _cyb_Py_XINCREF(obj._owner) + obj._owns_ptr = False + obj._owner = owner obj._readonly = readonly return obj @@ -4160,6 +4166,7 @@ cdef _get_process_info_dtype_offsets(): }) process_info_dtype = _get_process_info_dtype_offsets() +cdef object process_info_dtype_record = _numpy.dtype((_numpy.record, process_info_dtype)) cdef class ProcessInfo: """Empty-initialize an array of `nvmlProcessInfo_t`. @@ -4176,8 +4183,7 @@ cdef class ProcessInfo: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=process_info_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=process_info_dtype_record) assert self._data.itemsize == sizeof(nvmlProcessInfo_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlProcessInfo_t) }" @@ -4190,17 +4196,17 @@ cdef class ProcessInfo: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -4221,49 +4227,58 @@ cdef class ProcessInfo: def pid(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.pid[0]) - return self._data.pid + return int(self._data["pid"][0]) + return self._data["pid"] @pid.setter def pid(self, val): - self._data.pid = val + if not self._data.flags.writeable: + raise ValueError("This ProcessInfo instance is read-only") + self._data["pid"] = val @property def used_gpu_memory(self): """Union[~_numpy.uint64, int]: """ if self._data.size == 1: - return int(self._data.used_gpu_memory[0]) - return self._data.used_gpu_memory + return int(self._data["used_gpu_memory"][0]) + return self._data["used_gpu_memory"] @used_gpu_memory.setter def used_gpu_memory(self, val): - self._data.used_gpu_memory = val + if not self._data.flags.writeable: + raise ValueError("This ProcessInfo instance is read-only") + self._data["used_gpu_memory"] = val @property def gpu_instance_id(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.gpu_instance_id[0]) - return self._data.gpu_instance_id + return int(self._data["gpu_instance_id"][0]) + return self._data["gpu_instance_id"] @gpu_instance_id.setter def gpu_instance_id(self, val): - self._data.gpu_instance_id = val + if not self._data.flags.writeable: + raise ValueError("This ProcessInfo instance is read-only") + self._data["gpu_instance_id"] = val @property def compute_instance_id(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.compute_instance_id[0]) - return self._data.compute_instance_id + return int(self._data["compute_instance_id"][0]) + return self._data["compute_instance_id"] @compute_instance_id.setter def compute_instance_id(self, val): - self._data.compute_instance_id = val + if not self._data.flags.writeable: + raise ValueError("This ProcessInfo instance is read-only") + self._data["compute_instance_id"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef ProcessInfo obj if isinstance(key, int): key_ = key size = self._data.size @@ -4271,10 +4286,18 @@ cdef class ProcessInfo: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return ProcessInfo.from_data(self._data[key_:key_+1]) + obj = ProcessInfo.__new__(ProcessInfo) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == process_info_dtype: - return ProcessInfo.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == process_info_dtype: + obj = ProcessInfo.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -4299,8 +4322,7 @@ cdef class ProcessInfo: raise ValueError("data array must be 1D") if data.dtype != process_info_dtype: raise ValueError("data array must be of dtype process_info_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=process_info_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -4320,10 +4342,8 @@ cdef class ProcessInfo: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlProcessInfo_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=process_info_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=process_info_dtype_record) obj._owner = owner - return obj @@ -4343,6 +4363,7 @@ cdef _get_process_detail_v1_dtype_offsets(): }) process_detail_v1_dtype = _get_process_detail_v1_dtype_offsets() +cdef object process_detail_v1_dtype_record = _numpy.dtype((_numpy.record, process_detail_v1_dtype)) cdef class ProcessDetail_v1: """Empty-initialize an array of `nvmlProcessDetail_v1_t`. @@ -4359,8 +4380,7 @@ cdef class ProcessDetail_v1: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=process_detail_v1_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=process_detail_v1_dtype_record) assert self._data.itemsize == sizeof(nvmlProcessDetail_v1_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlProcessDetail_v1_t) }" @@ -4373,17 +4393,17 @@ cdef class ProcessDetail_v1: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -4404,60 +4424,71 @@ cdef class ProcessDetail_v1: def pid(self): """Union[~_numpy.uint32, int]: Process ID.""" if self._data.size == 1: - return int(self._data.pid[0]) - return self._data.pid + return int(self._data["pid"][0]) + return self._data["pid"] @pid.setter def pid(self, val): - self._data.pid = val + if not self._data.flags.writeable: + raise ValueError("This ProcessDetail_v1 instance is read-only") + self._data["pid"] = val @property def used_gpu_memory(self): """Union[~_numpy.uint64, int]: Amount of used GPU memory in bytes. Under WDDM, NVML_VALUE_NOT_AVAILABLE is always reported because Windows KMD manages all the memory and not the NVIDIA driver""" if self._data.size == 1: - return int(self._data.used_gpu_memory[0]) - return self._data.used_gpu_memory + return int(self._data["used_gpu_memory"][0]) + return self._data["used_gpu_memory"] @used_gpu_memory.setter def used_gpu_memory(self, val): - self._data.used_gpu_memory = val + if not self._data.flags.writeable: + raise ValueError("This ProcessDetail_v1 instance is read-only") + self._data["used_gpu_memory"] = val @property def gpu_instance_id(self): """Union[~_numpy.uint32, int]: If MIG is enabled, stores a valid GPU instance ID. gpuInstanceId is.""" if self._data.size == 1: - return int(self._data.gpu_instance_id[0]) - return self._data.gpu_instance_id + return int(self._data["gpu_instance_id"][0]) + return self._data["gpu_instance_id"] @gpu_instance_id.setter def gpu_instance_id(self, val): - self._data.gpu_instance_id = val + if not self._data.flags.writeable: + raise ValueError("This ProcessDetail_v1 instance is read-only") + self._data["gpu_instance_id"] = val @property def compute_instance_id(self): """Union[~_numpy.uint32, int]: If MIG is enabled, stores a valid compute instance ID. computeInstanceId.""" if self._data.size == 1: - return int(self._data.compute_instance_id[0]) - return self._data.compute_instance_id + return int(self._data["compute_instance_id"][0]) + return self._data["compute_instance_id"] @compute_instance_id.setter def compute_instance_id(self, val): - self._data.compute_instance_id = val + if not self._data.flags.writeable: + raise ValueError("This ProcessDetail_v1 instance is read-only") + self._data["compute_instance_id"] = val @property def used_gpu_cc_protected_memory(self): """Union[~_numpy.uint64, int]: Amount of used GPU conf compute protected memory in bytes.""" if self._data.size == 1: - return int(self._data.used_gpu_cc_protected_memory[0]) - return self._data.used_gpu_cc_protected_memory + return int(self._data["used_gpu_cc_protected_memory"][0]) + return self._data["used_gpu_cc_protected_memory"] @used_gpu_cc_protected_memory.setter def used_gpu_cc_protected_memory(self, val): - self._data.used_gpu_cc_protected_memory = val + if not self._data.flags.writeable: + raise ValueError("This ProcessDetail_v1 instance is read-only") + self._data["used_gpu_cc_protected_memory"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef ProcessDetail_v1 obj if isinstance(key, int): key_ = key size = self._data.size @@ -4465,10 +4496,18 @@ cdef class ProcessDetail_v1: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return ProcessDetail_v1.from_data(self._data[key_:key_+1]) + obj = ProcessDetail_v1.__new__(ProcessDetail_v1) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == process_detail_v1_dtype: - return ProcessDetail_v1.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == process_detail_v1_dtype: + obj = ProcessDetail_v1.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -4493,8 +4532,7 @@ cdef class ProcessDetail_v1: raise ValueError("data array must be 1D") if data.dtype != process_detail_v1_dtype: raise ValueError("data array must be of dtype process_detail_v1_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=process_detail_v1_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -4514,10 +4552,8 @@ cdef class ProcessDetail_v1: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlProcessDetail_v1_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=process_detail_v1_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=process_detail_v1_dtype_record) obj._owner = owner - return obj @@ -5053,6 +5089,7 @@ cdef _get_bridge_chip_info_dtype_offsets(): }) bridge_chip_info_dtype = _get_bridge_chip_info_dtype_offsets() +cdef object bridge_chip_info_dtype_record = _numpy.dtype((_numpy.record, bridge_chip_info_dtype)) cdef class BridgeChipInfo: """Empty-initialize an array of `nvmlBridgeChipInfo_t`. @@ -5069,8 +5106,7 @@ cdef class BridgeChipInfo: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=bridge_chip_info_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=bridge_chip_info_dtype_record) assert self._data.itemsize == sizeof(nvmlBridgeChipInfo_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlBridgeChipInfo_t) }" @@ -5083,17 +5119,17 @@ cdef class BridgeChipInfo: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -5114,27 +5150,32 @@ cdef class BridgeChipInfo: def type(self): """Union[~_numpy.int32, int]: """ if self._data.size == 1: - return int(self._data.type[0]) - return self._data.type + return int(self._data["type"][0]) + return self._data["type"] @type.setter def type(self, val): - self._data.type = val + if not self._data.flags.writeable: + raise ValueError("This BridgeChipInfo instance is read-only") + self._data["type"] = val @property def fw_version(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.fw_version[0]) - return self._data.fw_version + return int(self._data["fw_version"][0]) + return self._data["fw_version"] @fw_version.setter def fw_version(self, val): - self._data.fw_version = val + if not self._data.flags.writeable: + raise ValueError("This BridgeChipInfo instance is read-only") + self._data["fw_version"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef BridgeChipInfo obj if isinstance(key, int): key_ = key size = self._data.size @@ -5142,10 +5183,18 @@ cdef class BridgeChipInfo: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return BridgeChipInfo.from_data(self._data[key_:key_+1]) + obj = BridgeChipInfo.__new__(BridgeChipInfo) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == bridge_chip_info_dtype: - return BridgeChipInfo.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == bridge_chip_info_dtype: + obj = BridgeChipInfo.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -5170,8 +5219,7 @@ cdef class BridgeChipInfo: raise ValueError("data array must be 1D") if data.dtype != bridge_chip_info_dtype: raise ValueError("data array must be of dtype bridge_chip_info_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=bridge_chip_info_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -5191,10 +5239,8 @@ cdef class BridgeChipInfo: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlBridgeChipInfo_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=bridge_chip_info_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=bridge_chip_info_dtype_record) obj._owner = owner - return obj @@ -5225,24 +5271,24 @@ cdef class Value: """ cdef: nvmlValue_t *_ptr - _cyb_PyObject *_owner + object _owner + bint _owns_ptr bint _readonly def __init__(self): self._ptr = _cyb_calloc(1, sizeof(nvmlValue_t)) if self._ptr == NULL: raise MemoryError("Error allocating Value") - self._owner = NULL + self._owns_ptr = True + self._owner = None self._readonly = False def __dealloc__(self): cdef nvmlValue_t *ptr - if self._owner == NULL and self._ptr != NULL: + if self._owns_ptr and self._ptr != NULL: ptr = self._ptr self._ptr = NULL _cyb_free(ptr) - _cyb_Py_CLEAR(self._owner) - self._owner = NULL def __repr__(self): return f"<{__name__}.Value object at {hex(id(self))}>" @@ -5397,11 +5443,12 @@ cdef class Value: if obj._ptr == NULL: raise MemoryError("Error allocating Value") _cyb_memcpy((obj._ptr), ptr, sizeof(nvmlValue_t)) - obj._owner = NULL + obj._owns_ptr = True + obj._owner = None else: obj._ptr = ptr - obj._owner = <_cyb_PyObject *>owner - _cyb_Py_XINCREF(obj._owner) + obj._owns_ptr = False + obj._owner = owner obj._readonly = readonly return obj @@ -5422,6 +5469,7 @@ cdef _get__py_anon_pod0_dtype_offsets(): }) _py_anon_pod0_dtype = _get__py_anon_pod0_dtype_offsets() +cdef object _py_anon_pod0_dtype_record = _numpy.dtype((_numpy.record, _py_anon_pod0_dtype)) cdef class _py_anon_pod0: """Empty-initialize an array of `cuda_bindings_nvml__anon_pod0`. @@ -5438,8 +5486,7 @@ cdef class _py_anon_pod0: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=_py_anon_pod0_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=_py_anon_pod0_dtype_record) assert self._data.itemsize == sizeof(cuda_bindings_nvml__anon_pod0), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(cuda_bindings_nvml__anon_pod0) }" @@ -5452,17 +5499,17 @@ cdef class _py_anon_pod0: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -5483,60 +5530,71 @@ cdef class _py_anon_pod0: def controller(self): """Union[~_numpy.int32, int]: """ if self._data.size == 1: - return int(self._data.controller[0]) - return self._data.controller + return int(self._data["controller"][0]) + return self._data["controller"] @controller.setter def controller(self, val): - self._data.controller = val + if not self._data.flags.writeable: + raise ValueError("This _py_anon_pod0 instance is read-only") + self._data["controller"] = val @property def default_min_temp(self): """Union[~_numpy.int32, int]: """ if self._data.size == 1: - return int(self._data.default_min_temp[0]) - return self._data.default_min_temp + return int(self._data["default_min_temp"][0]) + return self._data["default_min_temp"] @default_min_temp.setter def default_min_temp(self, val): - self._data.default_min_temp = val + if not self._data.flags.writeable: + raise ValueError("This _py_anon_pod0 instance is read-only") + self._data["default_min_temp"] = val @property def default_max_temp(self): """Union[~_numpy.int32, int]: """ if self._data.size == 1: - return int(self._data.default_max_temp[0]) - return self._data.default_max_temp + return int(self._data["default_max_temp"][0]) + return self._data["default_max_temp"] @default_max_temp.setter def default_max_temp(self, val): - self._data.default_max_temp = val + if not self._data.flags.writeable: + raise ValueError("This _py_anon_pod0 instance is read-only") + self._data["default_max_temp"] = val @property def current_temp(self): """Union[~_numpy.int32, int]: """ if self._data.size == 1: - return int(self._data.current_temp[0]) - return self._data.current_temp + return int(self._data["current_temp"][0]) + return self._data["current_temp"] @current_temp.setter def current_temp(self, val): - self._data.current_temp = val + if not self._data.flags.writeable: + raise ValueError("This _py_anon_pod0 instance is read-only") + self._data["current_temp"] = val @property def target(self): """Union[~_numpy.int32, int]: """ if self._data.size == 1: - return int(self._data.target[0]) - return self._data.target + return int(self._data["target"][0]) + return self._data["target"] @target.setter def target(self, val): - self._data.target = val + if not self._data.flags.writeable: + raise ValueError("This _py_anon_pod0 instance is read-only") + self._data["target"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef _py_anon_pod0 obj if isinstance(key, int): key_ = key size = self._data.size @@ -5544,10 +5602,18 @@ cdef class _py_anon_pod0: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return _py_anon_pod0.from_data(self._data[key_:key_+1]) + obj = _py_anon_pod0.__new__(_py_anon_pod0) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == _py_anon_pod0_dtype: - return _py_anon_pod0.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == _py_anon_pod0_dtype: + obj = _py_anon_pod0.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -5572,8 +5638,7 @@ cdef class _py_anon_pod0: raise ValueError("data array must be 1D") if data.dtype != _py_anon_pod0_dtype: raise ValueError("data array must be of dtype _py_anon_pod0_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=_py_anon_pod0_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -5593,10 +5658,8 @@ cdef class _py_anon_pod0: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(cuda_bindings_nvml__anon_pod0) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=_py_anon_pod0_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=_py_anon_pod0_dtype_record) obj._owner = owner - return obj @@ -5774,6 +5837,7 @@ cdef _get_clk_mon_fault_info_dtype_offsets(): }) clk_mon_fault_info_dtype = _get_clk_mon_fault_info_dtype_offsets() +cdef object clk_mon_fault_info_dtype_record = _numpy.dtype((_numpy.record, clk_mon_fault_info_dtype)) cdef class ClkMonFaultInfo: """Empty-initialize an array of `nvmlClkMonFaultInfo_t`. @@ -5790,8 +5854,7 @@ cdef class ClkMonFaultInfo: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=clk_mon_fault_info_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=clk_mon_fault_info_dtype_record) assert self._data.itemsize == sizeof(nvmlClkMonFaultInfo_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlClkMonFaultInfo_t) }" @@ -5804,17 +5867,17 @@ cdef class ClkMonFaultInfo: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -5835,27 +5898,32 @@ cdef class ClkMonFaultInfo: def clk_api_domain(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.clk_api_domain[0]) - return self._data.clk_api_domain + return int(self._data["clk_api_domain"][0]) + return self._data["clk_api_domain"] @clk_api_domain.setter def clk_api_domain(self, val): - self._data.clk_api_domain = val + if not self._data.flags.writeable: + raise ValueError("This ClkMonFaultInfo instance is read-only") + self._data["clk_api_domain"] = val @property def clk_domain_fault_mask(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.clk_domain_fault_mask[0]) - return self._data.clk_domain_fault_mask + return int(self._data["clk_domain_fault_mask"][0]) + return self._data["clk_domain_fault_mask"] @clk_domain_fault_mask.setter def clk_domain_fault_mask(self, val): - self._data.clk_domain_fault_mask = val + if not self._data.flags.writeable: + raise ValueError("This ClkMonFaultInfo instance is read-only") + self._data["clk_domain_fault_mask"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef ClkMonFaultInfo obj if isinstance(key, int): key_ = key size = self._data.size @@ -5863,10 +5931,18 @@ cdef class ClkMonFaultInfo: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return ClkMonFaultInfo.from_data(self._data[key_:key_+1]) + obj = ClkMonFaultInfo.__new__(ClkMonFaultInfo) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == clk_mon_fault_info_dtype: - return ClkMonFaultInfo.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == clk_mon_fault_info_dtype: + obj = ClkMonFaultInfo.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -5891,8 +5967,7 @@ cdef class ClkMonFaultInfo: raise ValueError("data array must be 1D") if data.dtype != clk_mon_fault_info_dtype: raise ValueError("data array must be of dtype clk_mon_fault_info_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=clk_mon_fault_info_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -5912,10 +5987,8 @@ cdef class ClkMonFaultInfo: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlClkMonFaultInfo_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=clk_mon_fault_info_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=clk_mon_fault_info_dtype_record) obj._owner = owner - return obj @@ -6121,6 +6194,7 @@ cdef _get_process_utilization_sample_dtype_offsets(): }) process_utilization_sample_dtype = _get_process_utilization_sample_dtype_offsets() +cdef object process_utilization_sample_dtype_record = _numpy.dtype((_numpy.record, process_utilization_sample_dtype)) cdef class ProcessUtilizationSample: """Empty-initialize an array of `nvmlProcessUtilizationSample_t`. @@ -6137,8 +6211,7 @@ cdef class ProcessUtilizationSample: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=process_utilization_sample_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=process_utilization_sample_dtype_record) assert self._data.itemsize == sizeof(nvmlProcessUtilizationSample_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlProcessUtilizationSample_t) }" @@ -6151,17 +6224,17 @@ cdef class ProcessUtilizationSample: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -6182,71 +6255,84 @@ cdef class ProcessUtilizationSample: def pid(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.pid[0]) - return self._data.pid + return int(self._data["pid"][0]) + return self._data["pid"] @pid.setter def pid(self, val): - self._data.pid = val + if not self._data.flags.writeable: + raise ValueError("This ProcessUtilizationSample instance is read-only") + self._data["pid"] = val @property def time_stamp(self): """Union[~_numpy.uint64, int]: """ if self._data.size == 1: - return int(self._data.time_stamp[0]) - return self._data.time_stamp + return int(self._data["time_stamp"][0]) + return self._data["time_stamp"] @time_stamp.setter def time_stamp(self, val): - self._data.time_stamp = val + if not self._data.flags.writeable: + raise ValueError("This ProcessUtilizationSample instance is read-only") + self._data["time_stamp"] = val @property def sm_util(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.sm_util[0]) - return self._data.sm_util + return int(self._data["sm_util"][0]) + return self._data["sm_util"] @sm_util.setter def sm_util(self, val): - self._data.sm_util = val + if not self._data.flags.writeable: + raise ValueError("This ProcessUtilizationSample instance is read-only") + self._data["sm_util"] = val @property def mem_util(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.mem_util[0]) - return self._data.mem_util + return int(self._data["mem_util"][0]) + return self._data["mem_util"] @mem_util.setter def mem_util(self, val): - self._data.mem_util = val + if not self._data.flags.writeable: + raise ValueError("This ProcessUtilizationSample instance is read-only") + self._data["mem_util"] = val @property def enc_util(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.enc_util[0]) - return self._data.enc_util + return int(self._data["enc_util"][0]) + return self._data["enc_util"] @enc_util.setter def enc_util(self, val): - self._data.enc_util = val + if not self._data.flags.writeable: + raise ValueError("This ProcessUtilizationSample instance is read-only") + self._data["enc_util"] = val @property def dec_util(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.dec_util[0]) - return self._data.dec_util + return int(self._data["dec_util"][0]) + return self._data["dec_util"] @dec_util.setter def dec_util(self, val): - self._data.dec_util = val + if not self._data.flags.writeable: + raise ValueError("This ProcessUtilizationSample instance is read-only") + self._data["dec_util"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef ProcessUtilizationSample obj if isinstance(key, int): key_ = key size = self._data.size @@ -6254,10 +6340,18 @@ cdef class ProcessUtilizationSample: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return ProcessUtilizationSample.from_data(self._data[key_:key_+1]) + obj = ProcessUtilizationSample.__new__(ProcessUtilizationSample) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == process_utilization_sample_dtype: - return ProcessUtilizationSample.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == process_utilization_sample_dtype: + obj = ProcessUtilizationSample.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -6282,8 +6376,7 @@ cdef class ProcessUtilizationSample: raise ValueError("data array must be 1D") if data.dtype != process_utilization_sample_dtype: raise ValueError("data array must be of dtype process_utilization_sample_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=process_utilization_sample_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -6303,10 +6396,8 @@ cdef class ProcessUtilizationSample: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlProcessUtilizationSample_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=process_utilization_sample_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=process_utilization_sample_dtype_record) obj._owner = owner - return obj @@ -6329,6 +6420,7 @@ cdef _get_process_utilization_info_v1_dtype_offsets(): }) process_utilization_info_v1_dtype = _get_process_utilization_info_v1_dtype_offsets() +cdef object process_utilization_info_v1_dtype_record = _numpy.dtype((_numpy.record, process_utilization_info_v1_dtype)) cdef class ProcessUtilizationInfo_v1: """Empty-initialize an array of `nvmlProcessUtilizationInfo_v1_t`. @@ -6345,8 +6437,7 @@ cdef class ProcessUtilizationInfo_v1: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=process_utilization_info_v1_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=process_utilization_info_v1_dtype_record) assert self._data.itemsize == sizeof(nvmlProcessUtilizationInfo_v1_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlProcessUtilizationInfo_v1_t) }" @@ -6359,17 +6450,17 @@ cdef class ProcessUtilizationInfo_v1: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -6390,93 +6481,110 @@ cdef class ProcessUtilizationInfo_v1: def time_stamp(self): """Union[~_numpy.uint64, int]: CPU Timestamp in microseconds.""" if self._data.size == 1: - return int(self._data.time_stamp[0]) - return self._data.time_stamp + return int(self._data["time_stamp"][0]) + return self._data["time_stamp"] @time_stamp.setter def time_stamp(self, val): - self._data.time_stamp = val + if not self._data.flags.writeable: + raise ValueError("This ProcessUtilizationInfo_v1 instance is read-only") + self._data["time_stamp"] = val @property def pid(self): """Union[~_numpy.uint32, int]: PID of process.""" if self._data.size == 1: - return int(self._data.pid[0]) - return self._data.pid + return int(self._data["pid"][0]) + return self._data["pid"] @pid.setter def pid(self, val): - self._data.pid = val + if not self._data.flags.writeable: + raise ValueError("This ProcessUtilizationInfo_v1 instance is read-only") + self._data["pid"] = val @property def sm_util(self): """Union[~_numpy.uint32, int]: SM (3D/Compute) Util Value.""" if self._data.size == 1: - return int(self._data.sm_util[0]) - return self._data.sm_util + return int(self._data["sm_util"][0]) + return self._data["sm_util"] @sm_util.setter def sm_util(self, val): - self._data.sm_util = val + if not self._data.flags.writeable: + raise ValueError("This ProcessUtilizationInfo_v1 instance is read-only") + self._data["sm_util"] = val @property def mem_util(self): """Union[~_numpy.uint32, int]: Frame Buffer Memory Util Value.""" if self._data.size == 1: - return int(self._data.mem_util[0]) - return self._data.mem_util + return int(self._data["mem_util"][0]) + return self._data["mem_util"] @mem_util.setter def mem_util(self, val): - self._data.mem_util = val + if not self._data.flags.writeable: + raise ValueError("This ProcessUtilizationInfo_v1 instance is read-only") + self._data["mem_util"] = val @property def enc_util(self): """Union[~_numpy.uint32, int]: Encoder Util Value.""" if self._data.size == 1: - return int(self._data.enc_util[0]) - return self._data.enc_util + return int(self._data["enc_util"][0]) + return self._data["enc_util"] @enc_util.setter def enc_util(self, val): - self._data.enc_util = val + if not self._data.flags.writeable: + raise ValueError("This ProcessUtilizationInfo_v1 instance is read-only") + self._data["enc_util"] = val @property def dec_util(self): """Union[~_numpy.uint32, int]: Decoder Util Value.""" if self._data.size == 1: - return int(self._data.dec_util[0]) - return self._data.dec_util + return int(self._data["dec_util"][0]) + return self._data["dec_util"] @dec_util.setter def dec_util(self, val): - self._data.dec_util = val + if not self._data.flags.writeable: + raise ValueError("This ProcessUtilizationInfo_v1 instance is read-only") + self._data["dec_util"] = val @property def jpg_util(self): """Union[~_numpy.uint32, int]: Jpeg Util Value.""" if self._data.size == 1: - return int(self._data.jpg_util[0]) - return self._data.jpg_util + return int(self._data["jpg_util"][0]) + return self._data["jpg_util"] @jpg_util.setter def jpg_util(self, val): - self._data.jpg_util = val + if not self._data.flags.writeable: + raise ValueError("This ProcessUtilizationInfo_v1 instance is read-only") + self._data["jpg_util"] = val @property def ofa_util(self): """Union[~_numpy.uint32, int]: Ofa Util Value.""" if self._data.size == 1: - return int(self._data.ofa_util[0]) - return self._data.ofa_util + return int(self._data["ofa_util"][0]) + return self._data["ofa_util"] @ofa_util.setter def ofa_util(self, val): - self._data.ofa_util = val + if not self._data.flags.writeable: + raise ValueError("This ProcessUtilizationInfo_v1 instance is read-only") + self._data["ofa_util"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef ProcessUtilizationInfo_v1 obj if isinstance(key, int): key_ = key size = self._data.size @@ -6484,10 +6592,18 @@ cdef class ProcessUtilizationInfo_v1: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return ProcessUtilizationInfo_v1.from_data(self._data[key_:key_+1]) + obj = ProcessUtilizationInfo_v1.__new__(ProcessUtilizationInfo_v1) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == process_utilization_info_v1_dtype: - return ProcessUtilizationInfo_v1.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == process_utilization_info_v1_dtype: + obj = ProcessUtilizationInfo_v1.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -6512,8 +6628,7 @@ cdef class ProcessUtilizationInfo_v1: raise ValueError("data array must be 1D") if data.dtype != process_utilization_info_v1_dtype: raise ValueError("data array must be of dtype process_utilization_info_v1_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=process_utilization_info_v1_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -6533,10 +6648,8 @@ cdef class ProcessUtilizationInfo_v1: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlProcessUtilizationInfo_v1_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=process_utilization_info_v1_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=process_utilization_info_v1_dtype_record) obj._owner = owner - return obj @@ -7266,6 +7379,7 @@ cdef _get__py_anon_pod1_dtype_offsets(): }) _py_anon_pod1_dtype = _get__py_anon_pod1_dtype_offsets() +cdef object _py_anon_pod1_dtype_record = _numpy.dtype((_numpy.record, _py_anon_pod1_dtype)) cdef class _py_anon_pod1: """Empty-initialize an array of `cuda_bindings_nvml__anon_pod1`. @@ -7282,8 +7396,7 @@ cdef class _py_anon_pod1: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=_py_anon_pod1_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=_py_anon_pod1_dtype_record) assert self._data.itemsize == sizeof(cuda_bindings_nvml__anon_pod1), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(cuda_bindings_nvml__anon_pod1) }" @@ -7296,17 +7409,17 @@ cdef class _py_anon_pod1: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -7327,49 +7440,58 @@ cdef class _py_anon_pod1: def b_is_present(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.b_is_present[0]) - return self._data.b_is_present + return int(self._data["b_is_present"][0]) + return self._data["b_is_present"] @b_is_present.setter def b_is_present(self, val): - self._data.b_is_present = val + if not self._data.flags.writeable: + raise ValueError("This _py_anon_pod1 instance is read-only") + self._data["b_is_present"] = val @property def percentage(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.percentage[0]) - return self._data.percentage + return int(self._data["percentage"][0]) + return self._data["percentage"] @percentage.setter def percentage(self, val): - self._data.percentage = val + if not self._data.flags.writeable: + raise ValueError("This _py_anon_pod1 instance is read-only") + self._data["percentage"] = val @property def inc_threshold(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.inc_threshold[0]) - return self._data.inc_threshold + return int(self._data["inc_threshold"][0]) + return self._data["inc_threshold"] @inc_threshold.setter def inc_threshold(self, val): - self._data.inc_threshold = val + if not self._data.flags.writeable: + raise ValueError("This _py_anon_pod1 instance is read-only") + self._data["inc_threshold"] = val @property def dec_threshold(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.dec_threshold[0]) - return self._data.dec_threshold + return int(self._data["dec_threshold"][0]) + return self._data["dec_threshold"] @dec_threshold.setter def dec_threshold(self, val): - self._data.dec_threshold = val + if not self._data.flags.writeable: + raise ValueError("This _py_anon_pod1 instance is read-only") + self._data["dec_threshold"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef _py_anon_pod1 obj if isinstance(key, int): key_ = key size = self._data.size @@ -7377,10 +7499,18 @@ cdef class _py_anon_pod1: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return _py_anon_pod1.from_data(self._data[key_:key_+1]) + obj = _py_anon_pod1.__new__(_py_anon_pod1) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == _py_anon_pod1_dtype: - return _py_anon_pod1.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == _py_anon_pod1_dtype: + obj = _py_anon_pod1.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -7405,8 +7535,7 @@ cdef class _py_anon_pod1: raise ValueError("data array must be 1D") if data.dtype != _py_anon_pod1_dtype: raise ValueError("data array must be of dtype _py_anon_pod1_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=_py_anon_pod1_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -7426,10 +7555,8 @@ cdef class _py_anon_pod1: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(cuda_bindings_nvml__anon_pod1) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=_py_anon_pod1_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=_py_anon_pod1_dtype_record) obj._owner = owner - return obj @@ -7762,6 +7889,7 @@ cdef _get_vgpu_process_utilization_sample_dtype_offsets(): }) vgpu_process_utilization_sample_dtype = _get_vgpu_process_utilization_sample_dtype_offsets() +cdef object vgpu_process_utilization_sample_dtype_record = _numpy.dtype((_numpy.record, vgpu_process_utilization_sample_dtype)) cdef class VgpuProcessUtilizationSample: """Empty-initialize an array of `nvmlVgpuProcessUtilizationSample_t`. @@ -7778,8 +7906,7 @@ cdef class VgpuProcessUtilizationSample: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=vgpu_process_utilization_sample_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=vgpu_process_utilization_sample_dtype_record) assert self._data.itemsize == sizeof(nvmlVgpuProcessUtilizationSample_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlVgpuProcessUtilizationSample_t) }" @@ -7792,17 +7919,17 @@ cdef class VgpuProcessUtilizationSample: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -7823,91 +7950,108 @@ cdef class VgpuProcessUtilizationSample: def vgpu_instance(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.vgpu_instance[0]) - return self._data.vgpu_instance + return int(self._data["vgpu_instance"][0]) + return self._data["vgpu_instance"] @vgpu_instance.setter def vgpu_instance(self, val): - self._data.vgpu_instance = val + if not self._data.flags.writeable: + raise ValueError("This VgpuProcessUtilizationSample instance is read-only") + self._data["vgpu_instance"] = val @property def pid(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.pid[0]) - return self._data.pid + return int(self._data["pid"][0]) + return self._data["pid"] @pid.setter def pid(self, val): - self._data.pid = val + if not self._data.flags.writeable: + raise ValueError("This VgpuProcessUtilizationSample instance is read-only") + self._data["pid"] = val @property def process_name(self): """~_numpy.int8: (array of length 64).""" - return self._data.process_name + return self._data["process_name"] @process_name.setter def process_name(self, val): - self._data.process_name = val + if not self._data.flags.writeable: + raise ValueError("This VgpuProcessUtilizationSample instance is read-only") + self._data["process_name"] = val @property def time_stamp(self): """Union[~_numpy.uint64, int]: """ if self._data.size == 1: - return int(self._data.time_stamp[0]) - return self._data.time_stamp + return int(self._data["time_stamp"][0]) + return self._data["time_stamp"] @time_stamp.setter def time_stamp(self, val): - self._data.time_stamp = val + if not self._data.flags.writeable: + raise ValueError("This VgpuProcessUtilizationSample instance is read-only") + self._data["time_stamp"] = val @property def sm_util(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.sm_util[0]) - return self._data.sm_util + return int(self._data["sm_util"][0]) + return self._data["sm_util"] @sm_util.setter def sm_util(self, val): - self._data.sm_util = val + if not self._data.flags.writeable: + raise ValueError("This VgpuProcessUtilizationSample instance is read-only") + self._data["sm_util"] = val @property def mem_util(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.mem_util[0]) - return self._data.mem_util + return int(self._data["mem_util"][0]) + return self._data["mem_util"] @mem_util.setter def mem_util(self, val): - self._data.mem_util = val + if not self._data.flags.writeable: + raise ValueError("This VgpuProcessUtilizationSample instance is read-only") + self._data["mem_util"] = val @property def enc_util(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.enc_util[0]) - return self._data.enc_util + return int(self._data["enc_util"][0]) + return self._data["enc_util"] @enc_util.setter def enc_util(self, val): - self._data.enc_util = val + if not self._data.flags.writeable: + raise ValueError("This VgpuProcessUtilizationSample instance is read-only") + self._data["enc_util"] = val @property def dec_util(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.dec_util[0]) - return self._data.dec_util + return int(self._data["dec_util"][0]) + return self._data["dec_util"] @dec_util.setter def dec_util(self, val): - self._data.dec_util = val + if not self._data.flags.writeable: + raise ValueError("This VgpuProcessUtilizationSample instance is read-only") + self._data["dec_util"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef VgpuProcessUtilizationSample obj if isinstance(key, int): key_ = key size = self._data.size @@ -7915,10 +8059,18 @@ cdef class VgpuProcessUtilizationSample: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return VgpuProcessUtilizationSample.from_data(self._data[key_:key_+1]) + obj = VgpuProcessUtilizationSample.__new__(VgpuProcessUtilizationSample) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == vgpu_process_utilization_sample_dtype: - return VgpuProcessUtilizationSample.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == vgpu_process_utilization_sample_dtype: + obj = VgpuProcessUtilizationSample.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -7943,8 +8095,7 @@ cdef class VgpuProcessUtilizationSample: raise ValueError("data array must be 1D") if data.dtype != vgpu_process_utilization_sample_dtype: raise ValueError("data array must be of dtype vgpu_process_utilization_sample_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=vgpu_process_utilization_sample_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -7964,10 +8115,8 @@ cdef class VgpuProcessUtilizationSample: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlVgpuProcessUtilizationSample_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=vgpu_process_utilization_sample_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=vgpu_process_utilization_sample_dtype_record) obj._owner = owner - return obj @@ -7992,6 +8141,7 @@ cdef _get_vgpu_process_utilization_info_v1_dtype_offsets(): }) vgpu_process_utilization_info_v1_dtype = _get_vgpu_process_utilization_info_v1_dtype_offsets() +cdef object vgpu_process_utilization_info_v1_dtype_record = _numpy.dtype((_numpy.record, vgpu_process_utilization_info_v1_dtype)) cdef class VgpuProcessUtilizationInfo_v1: """Empty-initialize an array of `nvmlVgpuProcessUtilizationInfo_v1_t`. @@ -8008,8 +8158,7 @@ cdef class VgpuProcessUtilizationInfo_v1: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=vgpu_process_utilization_info_v1_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=vgpu_process_utilization_info_v1_dtype_record) assert self._data.itemsize == sizeof(nvmlVgpuProcessUtilizationInfo_v1_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlVgpuProcessUtilizationInfo_v1_t) }" @@ -8022,17 +8171,17 @@ cdef class VgpuProcessUtilizationInfo_v1: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -8052,114 +8201,135 @@ cdef class VgpuProcessUtilizationInfo_v1: @property def process_name(self): """~_numpy.int8: (array of length 64).Name of process running within the vGPU VM.""" - return self._data.process_name + return self._data["process_name"] @process_name.setter def process_name(self, val): - self._data.process_name = val + if not self._data.flags.writeable: + raise ValueError("This VgpuProcessUtilizationInfo_v1 instance is read-only") + self._data["process_name"] = val @property def time_stamp(self): """Union[~_numpy.uint64, int]: CPU Timestamp in microseconds.""" if self._data.size == 1: - return int(self._data.time_stamp[0]) - return self._data.time_stamp + return int(self._data["time_stamp"][0]) + return self._data["time_stamp"] @time_stamp.setter def time_stamp(self, val): - self._data.time_stamp = val + if not self._data.flags.writeable: + raise ValueError("This VgpuProcessUtilizationInfo_v1 instance is read-only") + self._data["time_stamp"] = val @property def vgpu_instance(self): """Union[~_numpy.uint32, int]: vGPU Instance""" if self._data.size == 1: - return int(self._data.vgpu_instance[0]) - return self._data.vgpu_instance + return int(self._data["vgpu_instance"][0]) + return self._data["vgpu_instance"] @vgpu_instance.setter def vgpu_instance(self, val): - self._data.vgpu_instance = val + if not self._data.flags.writeable: + raise ValueError("This VgpuProcessUtilizationInfo_v1 instance is read-only") + self._data["vgpu_instance"] = val @property def pid(self): """Union[~_numpy.uint32, int]: PID of process running within the vGPU VM.""" if self._data.size == 1: - return int(self._data.pid[0]) - return self._data.pid + return int(self._data["pid"][0]) + return self._data["pid"] @pid.setter def pid(self, val): - self._data.pid = val + if not self._data.flags.writeable: + raise ValueError("This VgpuProcessUtilizationInfo_v1 instance is read-only") + self._data["pid"] = val @property def sm_util(self): """Union[~_numpy.uint32, int]: SM (3D/Compute) Util Value.""" if self._data.size == 1: - return int(self._data.sm_util[0]) - return self._data.sm_util + return int(self._data["sm_util"][0]) + return self._data["sm_util"] @sm_util.setter def sm_util(self, val): - self._data.sm_util = val + if not self._data.flags.writeable: + raise ValueError("This VgpuProcessUtilizationInfo_v1 instance is read-only") + self._data["sm_util"] = val @property def mem_util(self): """Union[~_numpy.uint32, int]: Frame Buffer Memory Util Value.""" if self._data.size == 1: - return int(self._data.mem_util[0]) - return self._data.mem_util + return int(self._data["mem_util"][0]) + return self._data["mem_util"] @mem_util.setter def mem_util(self, val): - self._data.mem_util = val + if not self._data.flags.writeable: + raise ValueError("This VgpuProcessUtilizationInfo_v1 instance is read-only") + self._data["mem_util"] = val @property def enc_util(self): """Union[~_numpy.uint32, int]: Encoder Util Value.""" if self._data.size == 1: - return int(self._data.enc_util[0]) - return self._data.enc_util + return int(self._data["enc_util"][0]) + return self._data["enc_util"] @enc_util.setter def enc_util(self, val): - self._data.enc_util = val + if not self._data.flags.writeable: + raise ValueError("This VgpuProcessUtilizationInfo_v1 instance is read-only") + self._data["enc_util"] = val @property def dec_util(self): """Union[~_numpy.uint32, int]: Decoder Util Value.""" if self._data.size == 1: - return int(self._data.dec_util[0]) - return self._data.dec_util + return int(self._data["dec_util"][0]) + return self._data["dec_util"] @dec_util.setter def dec_util(self, val): - self._data.dec_util = val + if not self._data.flags.writeable: + raise ValueError("This VgpuProcessUtilizationInfo_v1 instance is read-only") + self._data["dec_util"] = val @property def jpg_util(self): """Union[~_numpy.uint32, int]: Jpeg Util Value.""" if self._data.size == 1: - return int(self._data.jpg_util[0]) - return self._data.jpg_util + return int(self._data["jpg_util"][0]) + return self._data["jpg_util"] @jpg_util.setter def jpg_util(self, val): - self._data.jpg_util = val + if not self._data.flags.writeable: + raise ValueError("This VgpuProcessUtilizationInfo_v1 instance is read-only") + self._data["jpg_util"] = val @property def ofa_util(self): """Union[~_numpy.uint32, int]: Ofa Util Value.""" if self._data.size == 1: - return int(self._data.ofa_util[0]) - return self._data.ofa_util + return int(self._data["ofa_util"][0]) + return self._data["ofa_util"] @ofa_util.setter def ofa_util(self, val): - self._data.ofa_util = val + if not self._data.flags.writeable: + raise ValueError("This VgpuProcessUtilizationInfo_v1 instance is read-only") + self._data["ofa_util"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef VgpuProcessUtilizationInfo_v1 obj if isinstance(key, int): key_ = key size = self._data.size @@ -8167,10 +8337,18 @@ cdef class VgpuProcessUtilizationInfo_v1: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return VgpuProcessUtilizationInfo_v1.from_data(self._data[key_:key_+1]) + obj = VgpuProcessUtilizationInfo_v1.__new__(VgpuProcessUtilizationInfo_v1) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == vgpu_process_utilization_info_v1_dtype: - return VgpuProcessUtilizationInfo_v1.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == vgpu_process_utilization_info_v1_dtype: + obj = VgpuProcessUtilizationInfo_v1.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -8195,8 +8373,7 @@ cdef class VgpuProcessUtilizationInfo_v1: raise ValueError("data array must be 1D") if data.dtype != vgpu_process_utilization_info_v1_dtype: raise ValueError("data array must be of dtype vgpu_process_utilization_info_v1_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=vgpu_process_utilization_info_v1_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -8216,10 +8393,8 @@ cdef class VgpuProcessUtilizationInfo_v1: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlVgpuProcessUtilizationInfo_v1_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=vgpu_process_utilization_info_v1_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=vgpu_process_utilization_info_v1_dtype_record) obj._owner = owner - return obj @@ -8245,24 +8420,24 @@ cdef class _py_anon_pod2: """ cdef: cuda_bindings_nvml__anon_pod2 *_ptr - _cyb_PyObject *_owner + object _owner + bint _owns_ptr bint _readonly def __init__(self): self._ptr = _cyb_calloc(1, sizeof(cuda_bindings_nvml__anon_pod2)) if self._ptr == NULL: raise MemoryError("Error allocating _py_anon_pod2") - self._owner = NULL + self._owns_ptr = True + self._owner = None self._readonly = False def __dealloc__(self): cdef cuda_bindings_nvml__anon_pod2 *ptr - if self._owner == NULL and self._ptr != NULL: + if self._owns_ptr and self._ptr != NULL: ptr = self._ptr self._ptr = NULL _cyb_free(ptr) - _cyb_Py_CLEAR(self._owner) - self._owner = NULL def __repr__(self): return f"<{__name__}._py_anon_pod2 object at {hex(id(self))}>" @@ -8362,11 +8537,12 @@ cdef class _py_anon_pod2: if obj._ptr == NULL: raise MemoryError("Error allocating _py_anon_pod2") _cyb_memcpy((obj._ptr), ptr, sizeof(cuda_bindings_nvml__anon_pod2)) - obj._owner = NULL + obj._owns_ptr = True + obj._owner = None else: obj._ptr = ptr - obj._owner = <_cyb_PyObject *>owner - _cyb_Py_XINCREF(obj._owner) + obj._owns_ptr = False + obj._owner = owner obj._readonly = readonly return obj @@ -8392,24 +8568,24 @@ cdef class _py_anon_pod3: """ cdef: cuda_bindings_nvml__anon_pod3 *_ptr - _cyb_PyObject *_owner + object _owner + bint _owns_ptr bint _readonly def __init__(self): self._ptr = _cyb_calloc(1, sizeof(cuda_bindings_nvml__anon_pod3)) if self._ptr == NULL: raise MemoryError("Error allocating _py_anon_pod3") - self._owner = NULL + self._owns_ptr = True + self._owner = None self._readonly = False def __dealloc__(self): cdef cuda_bindings_nvml__anon_pod3 *ptr - if self._owner == NULL and self._ptr != NULL: + if self._owns_ptr and self._ptr != NULL: ptr = self._ptr self._ptr = NULL _cyb_free(ptr) - _cyb_Py_CLEAR(self._owner) - self._owner = NULL def __repr__(self): return f"<{__name__}._py_anon_pod3 object at {hex(id(self))}>" @@ -8498,11 +8674,12 @@ cdef class _py_anon_pod3: if obj._ptr == NULL: raise MemoryError("Error allocating _py_anon_pod3") _cyb_memcpy((obj._ptr), ptr, sizeof(cuda_bindings_nvml__anon_pod3)) - obj._owner = NULL + obj._owns_ptr = True + obj._owner = None else: obj._ptr = ptr - obj._owner = <_cyb_PyObject *>owner - _cyb_Py_XINCREF(obj._owner) + obj._owns_ptr = False + obj._owner = owner obj._readonly = readonly return obj @@ -8524,6 +8701,7 @@ cdef _get_vgpu_scheduler_log_entry_dtype_offsets(): }) vgpu_scheduler_log_entry_dtype = _get_vgpu_scheduler_log_entry_dtype_offsets() +cdef object vgpu_scheduler_log_entry_dtype_record = _numpy.dtype((_numpy.record, vgpu_scheduler_log_entry_dtype)) cdef class VgpuSchedulerLogEntry: """Empty-initialize an array of `nvmlVgpuSchedulerLogEntry_t`. @@ -8540,8 +8718,7 @@ cdef class VgpuSchedulerLogEntry: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=vgpu_scheduler_log_entry_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=vgpu_scheduler_log_entry_dtype_record) assert self._data.itemsize == sizeof(nvmlVgpuSchedulerLogEntry_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlVgpuSchedulerLogEntry_t) }" @@ -8554,17 +8731,17 @@ cdef class VgpuSchedulerLogEntry: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -8585,71 +8762,84 @@ cdef class VgpuSchedulerLogEntry: def timestamp(self): """Union[~_numpy.uint64, int]: """ if self._data.size == 1: - return int(self._data.timestamp[0]) - return self._data.timestamp + return int(self._data["timestamp"][0]) + return self._data["timestamp"] @timestamp.setter def timestamp(self, val): - self._data.timestamp = val + if not self._data.flags.writeable: + raise ValueError("This VgpuSchedulerLogEntry instance is read-only") + self._data["timestamp"] = val @property def time_run_total(self): """Union[~_numpy.uint64, int]: """ if self._data.size == 1: - return int(self._data.time_run_total[0]) - return self._data.time_run_total + return int(self._data["time_run_total"][0]) + return self._data["time_run_total"] @time_run_total.setter def time_run_total(self, val): - self._data.time_run_total = val + if not self._data.flags.writeable: + raise ValueError("This VgpuSchedulerLogEntry instance is read-only") + self._data["time_run_total"] = val @property def time_run(self): """Union[~_numpy.uint64, int]: """ if self._data.size == 1: - return int(self._data.time_run[0]) - return self._data.time_run + return int(self._data["time_run"][0]) + return self._data["time_run"] @time_run.setter def time_run(self, val): - self._data.time_run = val + if not self._data.flags.writeable: + raise ValueError("This VgpuSchedulerLogEntry instance is read-only") + self._data["time_run"] = val @property def sw_runlist_id(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.sw_runlist_id[0]) - return self._data.sw_runlist_id + return int(self._data["sw_runlist_id"][0]) + return self._data["sw_runlist_id"] @sw_runlist_id.setter def sw_runlist_id(self, val): - self._data.sw_runlist_id = val + if not self._data.flags.writeable: + raise ValueError("This VgpuSchedulerLogEntry instance is read-only") + self._data["sw_runlist_id"] = val @property def target_time_slice(self): """Union[~_numpy.uint64, int]: """ if self._data.size == 1: - return int(self._data.target_time_slice[0]) - return self._data.target_time_slice + return int(self._data["target_time_slice"][0]) + return self._data["target_time_slice"] @target_time_slice.setter def target_time_slice(self, val): - self._data.target_time_slice = val + if not self._data.flags.writeable: + raise ValueError("This VgpuSchedulerLogEntry instance is read-only") + self._data["target_time_slice"] = val @property def cumulative_preemption_time(self): """Union[~_numpy.uint64, int]: """ if self._data.size == 1: - return int(self._data.cumulative_preemption_time[0]) - return self._data.cumulative_preemption_time + return int(self._data["cumulative_preemption_time"][0]) + return self._data["cumulative_preemption_time"] @cumulative_preemption_time.setter def cumulative_preemption_time(self, val): - self._data.cumulative_preemption_time = val + if not self._data.flags.writeable: + raise ValueError("This VgpuSchedulerLogEntry instance is read-only") + self._data["cumulative_preemption_time"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef VgpuSchedulerLogEntry obj if isinstance(key, int): key_ = key size = self._data.size @@ -8657,10 +8847,18 @@ cdef class VgpuSchedulerLogEntry: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return VgpuSchedulerLogEntry.from_data(self._data[key_:key_+1]) + obj = VgpuSchedulerLogEntry.__new__(VgpuSchedulerLogEntry) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == vgpu_scheduler_log_entry_dtype: - return VgpuSchedulerLogEntry.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == vgpu_scheduler_log_entry_dtype: + obj = VgpuSchedulerLogEntry.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -8685,8 +8883,7 @@ cdef class VgpuSchedulerLogEntry: raise ValueError("data array must be 1D") if data.dtype != vgpu_scheduler_log_entry_dtype: raise ValueError("data array must be of dtype vgpu_scheduler_log_entry_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=vgpu_scheduler_log_entry_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -8706,10 +8903,8 @@ cdef class VgpuSchedulerLogEntry: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlVgpuSchedulerLogEntry_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=vgpu_scheduler_log_entry_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=vgpu_scheduler_log_entry_dtype_record) obj._owner = owner - return obj @@ -8735,24 +8930,24 @@ cdef class _py_anon_pod4: """ cdef: cuda_bindings_nvml__anon_pod4 *_ptr - _cyb_PyObject *_owner + object _owner + bint _owns_ptr bint _readonly def __init__(self): self._ptr = _cyb_calloc(1, sizeof(cuda_bindings_nvml__anon_pod4)) if self._ptr == NULL: raise MemoryError("Error allocating _py_anon_pod4") - self._owner = NULL + self._owns_ptr = True + self._owner = None self._readonly = False def __dealloc__(self): cdef cuda_bindings_nvml__anon_pod4 *ptr - if self._owner == NULL and self._ptr != NULL: + if self._owns_ptr and self._ptr != NULL: ptr = self._ptr self._ptr = NULL _cyb_free(ptr) - _cyb_Py_CLEAR(self._owner) - self._owner = NULL def __repr__(self): return f"<{__name__}._py_anon_pod4 object at {hex(id(self))}>" @@ -8852,11 +9047,12 @@ cdef class _py_anon_pod4: if obj._ptr == NULL: raise MemoryError("Error allocating _py_anon_pod4") _cyb_memcpy((obj._ptr), ptr, sizeof(cuda_bindings_nvml__anon_pod4)) - obj._owner = NULL + obj._owns_ptr = True + obj._owner = None else: obj._ptr = ptr - obj._owner = <_cyb_PyObject *>owner - _cyb_Py_XINCREF(obj._owner) + obj._owns_ptr = False + obj._owner = owner obj._readonly = readonly return obj @@ -8882,24 +9078,24 @@ cdef class _py_anon_pod5: """ cdef: cuda_bindings_nvml__anon_pod5 *_ptr - _cyb_PyObject *_owner + object _owner + bint _owns_ptr bint _readonly def __init__(self): self._ptr = _cyb_calloc(1, sizeof(cuda_bindings_nvml__anon_pod5)) if self._ptr == NULL: raise MemoryError("Error allocating _py_anon_pod5") - self._owner = NULL + self._owns_ptr = True + self._owner = None self._readonly = False def __dealloc__(self): cdef cuda_bindings_nvml__anon_pod5 *ptr - if self._owner == NULL and self._ptr != NULL: + if self._owns_ptr and self._ptr != NULL: ptr = self._ptr self._ptr = NULL _cyb_free(ptr) - _cyb_Py_CLEAR(self._owner) - self._owner = NULL def __repr__(self): return f"<{__name__}._py_anon_pod5 object at {hex(id(self))}>" @@ -8988,11 +9184,12 @@ cdef class _py_anon_pod5: if obj._ptr == NULL: raise MemoryError("Error allocating _py_anon_pod5") _cyb_memcpy((obj._ptr), ptr, sizeof(cuda_bindings_nvml__anon_pod5)) - obj._owner = NULL + obj._owns_ptr = True + obj._owner = None else: obj._ptr = ptr - obj._owner = <_cyb_PyObject *>owner - _cyb_Py_XINCREF(obj._owner) + obj._owns_ptr = False + obj._owner = owner obj._readonly = readonly return obj @@ -9239,24 +9436,24 @@ cdef class VgpuLicenseExpiry: """ cdef: nvmlVgpuLicenseExpiry_t *_ptr - _cyb_PyObject *_owner + object _owner + bint _owns_ptr bint _readonly def __init__(self): self._ptr = _cyb_calloc(1, sizeof(nvmlVgpuLicenseExpiry_t)) if self._ptr == NULL: raise MemoryError("Error allocating VgpuLicenseExpiry") - self._owner = NULL + self._owns_ptr = True + self._owner = None self._readonly = False def __dealloc__(self): cdef nvmlVgpuLicenseExpiry_t *ptr - if self._owner == NULL and self._ptr != NULL: + if self._owns_ptr and self._ptr != NULL: ptr = self._ptr self._ptr = NULL _cyb_free(ptr) - _cyb_Py_CLEAR(self._owner) - self._owner = NULL def __repr__(self): return f"<{__name__}.VgpuLicenseExpiry object at {hex(id(self))}>" @@ -9411,11 +9608,12 @@ cdef class VgpuLicenseExpiry: if obj._ptr == NULL: raise MemoryError("Error allocating VgpuLicenseExpiry") _cyb_memcpy((obj._ptr), ptr, sizeof(nvmlVgpuLicenseExpiry_t)) - obj._owner = NULL + obj._owns_ptr = True + obj._owner = None else: obj._ptr = ptr - obj._owner = <_cyb_PyObject *>owner - _cyb_Py_XINCREF(obj._owner) + obj._owns_ptr = False + obj._owner = owner obj._readonly = readonly return obj @@ -9447,24 +9645,24 @@ cdef class GridLicenseExpiry: """ cdef: nvmlGridLicenseExpiry_t *_ptr - _cyb_PyObject *_owner + object _owner + bint _owns_ptr bint _readonly def __init__(self): self._ptr = _cyb_calloc(1, sizeof(nvmlGridLicenseExpiry_t)) if self._ptr == NULL: raise MemoryError("Error allocating GridLicenseExpiry") - self._owner = NULL + self._owns_ptr = True + self._owner = None self._readonly = False def __dealloc__(self): cdef nvmlGridLicenseExpiry_t *ptr - if self._owner == NULL and self._ptr != NULL: + if self._owns_ptr and self._ptr != NULL: ptr = self._ptr self._ptr = NULL _cyb_free(ptr) - _cyb_Py_CLEAR(self._owner) - self._owner = NULL def __repr__(self): return f"<{__name__}.GridLicenseExpiry object at {hex(id(self))}>" @@ -9619,11 +9817,12 @@ cdef class GridLicenseExpiry: if obj._ptr == NULL: raise MemoryError("Error allocating GridLicenseExpiry") _cyb_memcpy((obj._ptr), ptr, sizeof(nvmlGridLicenseExpiry_t)) - obj._owner = NULL + obj._owns_ptr = True + obj._owner = None else: obj._ptr = ptr - obj._owner = <_cyb_PyObject *>owner - _cyb_Py_XINCREF(obj._owner) + obj._owns_ptr = False + obj._owner = owner obj._readonly = readonly return obj @@ -10112,6 +10311,7 @@ cdef _get_hwbc_entry_dtype_offsets(): }) hwbc_entry_dtype = _get_hwbc_entry_dtype_offsets() +cdef object hwbc_entry_dtype_record = _numpy.dtype((_numpy.record, hwbc_entry_dtype)) cdef class HwbcEntry: """Empty-initialize an array of `nvmlHwbcEntry_t`. @@ -10128,8 +10328,7 @@ cdef class HwbcEntry: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=hwbc_entry_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=hwbc_entry_dtype_record) assert self._data.itemsize == sizeof(nvmlHwbcEntry_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlHwbcEntry_t) }" @@ -10142,17 +10341,17 @@ cdef class HwbcEntry: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -10173,25 +10372,30 @@ cdef class HwbcEntry: def hwbc_id(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.hwbc_id[0]) - return self._data.hwbc_id + return int(self._data["hwbc_id"][0]) + return self._data["hwbc_id"] @hwbc_id.setter def hwbc_id(self, val): - self._data.hwbc_id = val + if not self._data.flags.writeable: + raise ValueError("This HwbcEntry instance is read-only") + self._data["hwbc_id"] = val @property def firmware_version(self): """~_numpy.int8: (array of length 32).""" - return self._data.firmware_version + return self._data["firmware_version"] @firmware_version.setter def firmware_version(self, val): - self._data.firmware_version = val + if not self._data.flags.writeable: + raise ValueError("This HwbcEntry instance is read-only") + self._data["firmware_version"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef HwbcEntry obj if isinstance(key, int): key_ = key size = self._data.size @@ -10199,10 +10403,18 @@ cdef class HwbcEntry: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return HwbcEntry.from_data(self._data[key_:key_+1]) + obj = HwbcEntry.__new__(HwbcEntry) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == hwbc_entry_dtype: - return HwbcEntry.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == hwbc_entry_dtype: + obj = HwbcEntry.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -10227,8 +10439,7 @@ cdef class HwbcEntry: raise ValueError("data array must be 1D") if data.dtype != hwbc_entry_dtype: raise ValueError("data array must be of dtype hwbc_entry_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=hwbc_entry_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -10248,10 +10459,8 @@ cdef class HwbcEntry: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlHwbcEntry_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=hwbc_entry_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=hwbc_entry_dtype_record) obj._owner = owner - return obj @@ -10751,6 +10960,7 @@ cdef _get_unit_fan_info_dtype_offsets(): }) unit_fan_info_dtype = _get_unit_fan_info_dtype_offsets() +cdef object unit_fan_info_dtype_record = _numpy.dtype((_numpy.record, unit_fan_info_dtype)) cdef class UnitFanInfo: """Empty-initialize an array of `nvmlUnitFanInfo_t`. @@ -10767,8 +10977,7 @@ cdef class UnitFanInfo: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=unit_fan_info_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=unit_fan_info_dtype_record) assert self._data.itemsize == sizeof(nvmlUnitFanInfo_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlUnitFanInfo_t) }" @@ -10781,17 +10990,17 @@ cdef class UnitFanInfo: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -10812,27 +11021,32 @@ cdef class UnitFanInfo: def speed(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.speed[0]) - return self._data.speed + return int(self._data["speed"][0]) + return self._data["speed"] @speed.setter def speed(self, val): - self._data.speed = val + if not self._data.flags.writeable: + raise ValueError("This UnitFanInfo instance is read-only") + self._data["speed"] = val @property def state(self): """Union[~_numpy.int32, int]: """ if self._data.size == 1: - return int(self._data.state[0]) - return self._data.state + return int(self._data["state"][0]) + return self._data["state"] @state.setter def state(self, val): - self._data.state = val + if not self._data.flags.writeable: + raise ValueError("This UnitFanInfo instance is read-only") + self._data["state"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef UnitFanInfo obj if isinstance(key, int): key_ = key size = self._data.size @@ -10840,10 +11054,18 @@ cdef class UnitFanInfo: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return UnitFanInfo.from_data(self._data[key_:key_+1]) + obj = UnitFanInfo.__new__(UnitFanInfo) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == unit_fan_info_dtype: - return UnitFanInfo.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == unit_fan_info_dtype: + obj = UnitFanInfo.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -10868,8 +11090,7 @@ cdef class UnitFanInfo: raise ValueError("data array must be 1D") if data.dtype != unit_fan_info_dtype: raise ValueError("data array must be of dtype unit_fan_info_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=unit_fan_info_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -10889,10 +11110,8 @@ cdef class UnitFanInfo: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlUnitFanInfo_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=unit_fan_info_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=unit_fan_info_dtype_record) obj._owner = owner - return obj @@ -11082,6 +11301,7 @@ cdef _get_system_event_data_v1_dtype_offsets(): }) system_event_data_v1_dtype = _get_system_event_data_v1_dtype_offsets() +cdef object system_event_data_v1_dtype_record = _numpy.dtype((_numpy.record, system_event_data_v1_dtype)) cdef class SystemEventData_v1: """Empty-initialize an array of `nvmlSystemEventData_v1_t`. @@ -11098,8 +11318,7 @@ cdef class SystemEventData_v1: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=system_event_data_v1_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=system_event_data_v1_dtype_record) assert self._data.itemsize == sizeof(nvmlSystemEventData_v1_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlSystemEventData_v1_t) }" @@ -11112,17 +11331,17 @@ cdef class SystemEventData_v1: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -11143,27 +11362,32 @@ cdef class SystemEventData_v1: def event_type(self): """Union[~_numpy.uint64, int]: Information about what specific system event occurred.""" if self._data.size == 1: - return int(self._data.event_type[0]) - return self._data.event_type + return int(self._data["event_type"][0]) + return self._data["event_type"] @event_type.setter def event_type(self, val): - self._data.event_type = val + if not self._data.flags.writeable: + raise ValueError("This SystemEventData_v1 instance is read-only") + self._data["event_type"] = val @property def gpu_id(self): """Union[~_numpy.uint32, int]: gpuId in PCI format""" if self._data.size == 1: - return int(self._data.gpu_id[0]) - return self._data.gpu_id + return int(self._data["gpu_id"][0]) + return self._data["gpu_id"] @gpu_id.setter def gpu_id(self, val): - self._data.gpu_id = val + if not self._data.flags.writeable: + raise ValueError("This SystemEventData_v1 instance is read-only") + self._data["gpu_id"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef SystemEventData_v1 obj if isinstance(key, int): key_ = key size = self._data.size @@ -11171,10 +11395,18 @@ cdef class SystemEventData_v1: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return SystemEventData_v1.from_data(self._data[key_:key_+1]) + obj = SystemEventData_v1.__new__(SystemEventData_v1) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == system_event_data_v1_dtype: - return SystemEventData_v1.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == system_event_data_v1_dtype: + obj = SystemEventData_v1.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -11199,8 +11431,7 @@ cdef class SystemEventData_v1: raise ValueError("data array must be 1D") if data.dtype != system_event_data_v1_dtype: raise ValueError("data array must be of dtype system_event_data_v1_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=system_event_data_v1_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -11220,10 +11451,8 @@ cdef class SystemEventData_v1: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlSystemEventData_v1_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=system_event_data_v1_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=system_event_data_v1_dtype_record) obj._owner = owner - return obj @@ -11432,6 +11661,7 @@ cdef _get_encoder_session_info_dtype_offsets(): }) encoder_session_info_dtype = _get_encoder_session_info_dtype_offsets() +cdef object encoder_session_info_dtype_record = _numpy.dtype((_numpy.record, encoder_session_info_dtype)) cdef class EncoderSessionInfo: """Empty-initialize an array of `nvmlEncoderSessionInfo_t`. @@ -11448,8 +11678,7 @@ cdef class EncoderSessionInfo: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=encoder_session_info_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=encoder_session_info_dtype_record) assert self._data.itemsize == sizeof(nvmlEncoderSessionInfo_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlEncoderSessionInfo_t) }" @@ -11462,17 +11691,17 @@ cdef class EncoderSessionInfo: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -11493,93 +11722,110 @@ cdef class EncoderSessionInfo: def session_id(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.session_id[0]) - return self._data.session_id + return int(self._data["session_id"][0]) + return self._data["session_id"] @session_id.setter def session_id(self, val): - self._data.session_id = val + if not self._data.flags.writeable: + raise ValueError("This EncoderSessionInfo instance is read-only") + self._data["session_id"] = val @property def pid(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.pid[0]) - return self._data.pid + return int(self._data["pid"][0]) + return self._data["pid"] @pid.setter def pid(self, val): - self._data.pid = val + if not self._data.flags.writeable: + raise ValueError("This EncoderSessionInfo instance is read-only") + self._data["pid"] = val @property def vgpu_instance(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.vgpu_instance[0]) - return self._data.vgpu_instance + return int(self._data["vgpu_instance"][0]) + return self._data["vgpu_instance"] @vgpu_instance.setter def vgpu_instance(self, val): - self._data.vgpu_instance = val + if not self._data.flags.writeable: + raise ValueError("This EncoderSessionInfo instance is read-only") + self._data["vgpu_instance"] = val @property def codec_type(self): """Union[~_numpy.int32, int]: """ if self._data.size == 1: - return int(self._data.codec_type[0]) - return self._data.codec_type + return int(self._data["codec_type"][0]) + return self._data["codec_type"] @codec_type.setter def codec_type(self, val): - self._data.codec_type = val + if not self._data.flags.writeable: + raise ValueError("This EncoderSessionInfo instance is read-only") + self._data["codec_type"] = val @property def h_resolution(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.h_resolution[0]) - return self._data.h_resolution + return int(self._data["h_resolution"][0]) + return self._data["h_resolution"] @h_resolution.setter def h_resolution(self, val): - self._data.h_resolution = val + if not self._data.flags.writeable: + raise ValueError("This EncoderSessionInfo instance is read-only") + self._data["h_resolution"] = val @property def v_resolution(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.v_resolution[0]) - return self._data.v_resolution + return int(self._data["v_resolution"][0]) + return self._data["v_resolution"] @v_resolution.setter def v_resolution(self, val): - self._data.v_resolution = val + if not self._data.flags.writeable: + raise ValueError("This EncoderSessionInfo instance is read-only") + self._data["v_resolution"] = val @property def average_fps(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.average_fps[0]) - return self._data.average_fps + return int(self._data["average_fps"][0]) + return self._data["average_fps"] @average_fps.setter def average_fps(self, val): - self._data.average_fps = val + if not self._data.flags.writeable: + raise ValueError("This EncoderSessionInfo instance is read-only") + self._data["average_fps"] = val @property def average_latency(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.average_latency[0]) - return self._data.average_latency + return int(self._data["average_latency"][0]) + return self._data["average_latency"] @average_latency.setter def average_latency(self, val): - self._data.average_latency = val + if not self._data.flags.writeable: + raise ValueError("This EncoderSessionInfo instance is read-only") + self._data["average_latency"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef EncoderSessionInfo obj if isinstance(key, int): key_ = key size = self._data.size @@ -11587,10 +11833,18 @@ cdef class EncoderSessionInfo: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return EncoderSessionInfo.from_data(self._data[key_:key_+1]) + obj = EncoderSessionInfo.__new__(EncoderSessionInfo) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == encoder_session_info_dtype: - return EncoderSessionInfo.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == encoder_session_info_dtype: + obj = EncoderSessionInfo.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -11615,8 +11869,7 @@ cdef class EncoderSessionInfo: raise ValueError("data array must be 1D") if data.dtype != encoder_session_info_dtype: raise ValueError("data array must be of dtype encoder_session_info_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=encoder_session_info_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -11636,10 +11889,8 @@ cdef class EncoderSessionInfo: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlEncoderSessionInfo_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=encoder_session_info_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=encoder_session_info_dtype_record) obj._owner = owner - return obj @@ -11815,6 +12066,7 @@ cdef _get_fbc_session_info_dtype_offsets(): }) fbc_session_info_dtype = _get_fbc_session_info_dtype_offsets() +cdef object fbc_session_info_dtype_record = _numpy.dtype((_numpy.record, fbc_session_info_dtype)) cdef class FBCSessionInfo: """Empty-initialize an array of `nvmlFBCSessionInfo_t`. @@ -11831,8 +12083,7 @@ cdef class FBCSessionInfo: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=fbc_session_info_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=fbc_session_info_dtype_record) assert self._data.itemsize == sizeof(nvmlFBCSessionInfo_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlFBCSessionInfo_t) }" @@ -11845,17 +12096,17 @@ cdef class FBCSessionInfo: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -11876,137 +12127,162 @@ cdef class FBCSessionInfo: def session_id(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.session_id[0]) - return self._data.session_id + return int(self._data["session_id"][0]) + return self._data["session_id"] @session_id.setter def session_id(self, val): - self._data.session_id = val + if not self._data.flags.writeable: + raise ValueError("This FBCSessionInfo instance is read-only") + self._data["session_id"] = val @property def pid(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.pid[0]) - return self._data.pid + return int(self._data["pid"][0]) + return self._data["pid"] @pid.setter def pid(self, val): - self._data.pid = val + if not self._data.flags.writeable: + raise ValueError("This FBCSessionInfo instance is read-only") + self._data["pid"] = val @property def vgpu_instance(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.vgpu_instance[0]) - return self._data.vgpu_instance + return int(self._data["vgpu_instance"][0]) + return self._data["vgpu_instance"] @vgpu_instance.setter def vgpu_instance(self, val): - self._data.vgpu_instance = val + if not self._data.flags.writeable: + raise ValueError("This FBCSessionInfo instance is read-only") + self._data["vgpu_instance"] = val @property def display_ordinal(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.display_ordinal[0]) - return self._data.display_ordinal + return int(self._data["display_ordinal"][0]) + return self._data["display_ordinal"] @display_ordinal.setter def display_ordinal(self, val): - self._data.display_ordinal = val + if not self._data.flags.writeable: + raise ValueError("This FBCSessionInfo instance is read-only") + self._data["display_ordinal"] = val @property def session_type(self): """Union[~_numpy.int32, int]: """ if self._data.size == 1: - return int(self._data.session_type[0]) - return self._data.session_type + return int(self._data["session_type"][0]) + return self._data["session_type"] @session_type.setter def session_type(self, val): - self._data.session_type = val + if not self._data.flags.writeable: + raise ValueError("This FBCSessionInfo instance is read-only") + self._data["session_type"] = val @property def session_flags(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.session_flags[0]) - return self._data.session_flags + return int(self._data["session_flags"][0]) + return self._data["session_flags"] @session_flags.setter def session_flags(self, val): - self._data.session_flags = val + if not self._data.flags.writeable: + raise ValueError("This FBCSessionInfo instance is read-only") + self._data["session_flags"] = val @property def h_max_resolution(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.h_max_resolution[0]) - return self._data.h_max_resolution + return int(self._data["h_max_resolution"][0]) + return self._data["h_max_resolution"] @h_max_resolution.setter def h_max_resolution(self, val): - self._data.h_max_resolution = val + if not self._data.flags.writeable: + raise ValueError("This FBCSessionInfo instance is read-only") + self._data["h_max_resolution"] = val @property def v_max_resolution(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.v_max_resolution[0]) - return self._data.v_max_resolution + return int(self._data["v_max_resolution"][0]) + return self._data["v_max_resolution"] @v_max_resolution.setter def v_max_resolution(self, val): - self._data.v_max_resolution = val + if not self._data.flags.writeable: + raise ValueError("This FBCSessionInfo instance is read-only") + self._data["v_max_resolution"] = val @property def h_resolution(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.h_resolution[0]) - return self._data.h_resolution + return int(self._data["h_resolution"][0]) + return self._data["h_resolution"] @h_resolution.setter def h_resolution(self, val): - self._data.h_resolution = val + if not self._data.flags.writeable: + raise ValueError("This FBCSessionInfo instance is read-only") + self._data["h_resolution"] = val @property def v_resolution(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.v_resolution[0]) - return self._data.v_resolution + return int(self._data["v_resolution"][0]) + return self._data["v_resolution"] @v_resolution.setter def v_resolution(self, val): - self._data.v_resolution = val + if not self._data.flags.writeable: + raise ValueError("This FBCSessionInfo instance is read-only") + self._data["v_resolution"] = val @property def average_fps(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.average_fps[0]) - return self._data.average_fps + return int(self._data["average_fps"][0]) + return self._data["average_fps"] @average_fps.setter def average_fps(self, val): - self._data.average_fps = val + if not self._data.flags.writeable: + raise ValueError("This FBCSessionInfo instance is read-only") + self._data["average_fps"] = val @property def average_latency(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.average_latency[0]) - return self._data.average_latency + return int(self._data["average_latency"][0]) + return self._data["average_latency"] @average_latency.setter def average_latency(self, val): - self._data.average_latency = val + if not self._data.flags.writeable: + raise ValueError("This FBCSessionInfo instance is read-only") + self._data["average_latency"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef FBCSessionInfo obj if isinstance(key, int): key_ = key size = self._data.size @@ -12014,10 +12290,18 @@ cdef class FBCSessionInfo: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return FBCSessionInfo.from_data(self._data[key_:key_+1]) + obj = FBCSessionInfo.__new__(FBCSessionInfo) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == fbc_session_info_dtype: - return FBCSessionInfo.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == fbc_session_info_dtype: + obj = FBCSessionInfo.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -12042,8 +12326,7 @@ cdef class FBCSessionInfo: raise ValueError("data array must be 1D") if data.dtype != fbc_session_info_dtype: raise ValueError("data array must be of dtype fbc_session_info_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=fbc_session_info_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -12063,10 +12346,8 @@ cdef class FBCSessionInfo: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlFBCSessionInfo_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=fbc_session_info_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=fbc_session_info_dtype_record) obj._owner = owner - return obj @@ -13678,24 +13959,24 @@ cdef class VgpuVersion: """ cdef: nvmlVgpuVersion_t *_ptr - _cyb_PyObject *_owner + object _owner + bint _owns_ptr bint _readonly def __init__(self): self._ptr = _cyb_calloc(1, sizeof(nvmlVgpuVersion_t)) if self._ptr == NULL: raise MemoryError("Error allocating VgpuVersion") - self._owner = NULL + self._owns_ptr = True + self._owner = None self._readonly = False def __dealloc__(self): cdef nvmlVgpuVersion_t *ptr - if self._owner == NULL and self._ptr != NULL: + if self._owns_ptr and self._ptr != NULL: ptr = self._ptr self._ptr = NULL _cyb_free(ptr) - _cyb_Py_CLEAR(self._owner) - self._owner = NULL def __repr__(self): return f"<{__name__}.VgpuVersion object at {hex(id(self))}>" @@ -13795,11 +14076,12 @@ cdef class VgpuVersion: if obj._ptr == NULL: raise MemoryError("Error allocating VgpuVersion") _cyb_memcpy((obj._ptr), ptr, sizeof(nvmlVgpuVersion_t)) - obj._owner = NULL + obj._owns_ptr = True + obj._owner = None else: obj._ptr = ptr - obj._owner = <_cyb_PyObject *>owner - _cyb_Py_XINCREF(obj._owner) + obj._owns_ptr = False + obj._owner = owner obj._readonly = readonly return obj @@ -14188,6 +14470,7 @@ cdef _get_gpu_instance_placement_dtype_offsets(): }) gpu_instance_placement_dtype = _get_gpu_instance_placement_dtype_offsets() +cdef object gpu_instance_placement_dtype_record = _numpy.dtype((_numpy.record, gpu_instance_placement_dtype)) cdef class GpuInstancePlacement: """Empty-initialize an array of `nvmlGpuInstancePlacement_t`. @@ -14204,8 +14487,7 @@ cdef class GpuInstancePlacement: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=gpu_instance_placement_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=gpu_instance_placement_dtype_record) assert self._data.itemsize == sizeof(nvmlGpuInstancePlacement_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlGpuInstancePlacement_t) }" @@ -14218,17 +14500,17 @@ cdef class GpuInstancePlacement: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -14249,27 +14531,32 @@ cdef class GpuInstancePlacement: def start(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.start[0]) - return self._data.start + return int(self._data["start"][0]) + return self._data["start"] @start.setter def start(self, val): - self._data.start = val + if not self._data.flags.writeable: + raise ValueError("This GpuInstancePlacement instance is read-only") + self._data["start"] = val @property def size_(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.size_[0]) - return self._data.size_ + return int(self._data["size_"][0]) + return self._data["size_"] @size_.setter def size_(self, val): - self._data.size_ = val + if not self._data.flags.writeable: + raise ValueError("This GpuInstancePlacement instance is read-only") + self._data["size_"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef GpuInstancePlacement obj if isinstance(key, int): key_ = key size = self._data.size @@ -14277,10 +14564,18 @@ cdef class GpuInstancePlacement: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return GpuInstancePlacement.from_data(self._data[key_:key_+1]) + obj = GpuInstancePlacement.__new__(GpuInstancePlacement) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == gpu_instance_placement_dtype: - return GpuInstancePlacement.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == gpu_instance_placement_dtype: + obj = GpuInstancePlacement.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -14305,8 +14600,7 @@ cdef class GpuInstancePlacement: raise ValueError("data array must be 1D") if data.dtype != gpu_instance_placement_dtype: raise ValueError("data array must be of dtype gpu_instance_placement_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=gpu_instance_placement_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -14326,10 +14620,8 @@ cdef class GpuInstancePlacement: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlGpuInstancePlacement_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=gpu_instance_placement_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=gpu_instance_placement_dtype_record) obj._owner = owner - return obj @@ -14619,6 +14911,7 @@ cdef _get_compute_instance_placement_dtype_offsets(): }) compute_instance_placement_dtype = _get_compute_instance_placement_dtype_offsets() +cdef object compute_instance_placement_dtype_record = _numpy.dtype((_numpy.record, compute_instance_placement_dtype)) cdef class ComputeInstancePlacement: """Empty-initialize an array of `nvmlComputeInstancePlacement_t`. @@ -14635,8 +14928,7 @@ cdef class ComputeInstancePlacement: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=compute_instance_placement_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=compute_instance_placement_dtype_record) assert self._data.itemsize == sizeof(nvmlComputeInstancePlacement_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlComputeInstancePlacement_t) }" @@ -14649,17 +14941,17 @@ cdef class ComputeInstancePlacement: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -14680,27 +14972,32 @@ cdef class ComputeInstancePlacement: def start(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.start[0]) - return self._data.start + return int(self._data["start"][0]) + return self._data["start"] @start.setter def start(self, val): - self._data.start = val + if not self._data.flags.writeable: + raise ValueError("This ComputeInstancePlacement instance is read-only") + self._data["start"] = val @property def size_(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.size_[0]) - return self._data.size_ + return int(self._data["size_"][0]) + return self._data["size_"] @size_.setter def size_(self, val): - self._data.size_ = val + if not self._data.flags.writeable: + raise ValueError("This ComputeInstancePlacement instance is read-only") + self._data["size_"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef ComputeInstancePlacement obj if isinstance(key, int): key_ = key size = self._data.size @@ -14708,10 +15005,18 @@ cdef class ComputeInstancePlacement: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return ComputeInstancePlacement.from_data(self._data[key_:key_+1]) + obj = ComputeInstancePlacement.__new__(ComputeInstancePlacement) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == compute_instance_placement_dtype: - return ComputeInstancePlacement.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == compute_instance_placement_dtype: + obj = ComputeInstancePlacement.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -14736,8 +15041,7 @@ cdef class ComputeInstancePlacement: raise ValueError("data array must be 1D") if data.dtype != compute_instance_placement_dtype: raise ValueError("data array must be of dtype compute_instance_placement_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=compute_instance_placement_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -14757,10 +15061,8 @@ cdef class ComputeInstancePlacement: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlComputeInstancePlacement_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=compute_instance_placement_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=compute_instance_placement_dtype_record) obj._owner = owner - return obj @@ -15727,6 +16029,7 @@ cdef _get_ecc_sram_unique_uncorrected_error_entry_v1_dtype_offsets(): }) ecc_sram_unique_uncorrected_error_entry_v1_dtype = _get_ecc_sram_unique_uncorrected_error_entry_v1_dtype_offsets() +cdef object ecc_sram_unique_uncorrected_error_entry_v1_dtype_record = _numpy.dtype((_numpy.record, ecc_sram_unique_uncorrected_error_entry_v1_dtype)) cdef class EccSramUniqueUncorrectedErrorEntry_v1: """Empty-initialize an array of `nvmlEccSramUniqueUncorrectedErrorEntry_v1_t`. @@ -15743,8 +16046,7 @@ cdef class EccSramUniqueUncorrectedErrorEntry_v1: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=ecc_sram_unique_uncorrected_error_entry_v1_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=ecc_sram_unique_uncorrected_error_entry_v1_dtype_record) assert self._data.itemsize == sizeof(nvmlEccSramUniqueUncorrectedErrorEntry_v1_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlEccSramUniqueUncorrectedErrorEntry_v1_t) }" @@ -15757,17 +16059,17 @@ cdef class EccSramUniqueUncorrectedErrorEntry_v1: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -15788,82 +16090,97 @@ cdef class EccSramUniqueUncorrectedErrorEntry_v1: def unit(self): """Union[~_numpy.uint32, int]: the SRAM unit index""" if self._data.size == 1: - return int(self._data.unit[0]) - return self._data.unit + return int(self._data["unit"][0]) + return self._data["unit"] @unit.setter def unit(self, val): - self._data.unit = val + if not self._data.flags.writeable: + raise ValueError("This EccSramUniqueUncorrectedErrorEntry_v1 instance is read-only") + self._data["unit"] = val @property def location(self): """Union[~_numpy.uint32, int]: the error location within the SRAM unit""" if self._data.size == 1: - return int(self._data.location[0]) - return self._data.location + return int(self._data["location"][0]) + return self._data["location"] @location.setter def location(self, val): - self._data.location = val + if not self._data.flags.writeable: + raise ValueError("This EccSramUniqueUncorrectedErrorEntry_v1 instance is read-only") + self._data["location"] = val @property def sublocation(self): """Union[~_numpy.uint32, int]: the error sublocation within the SRAM unit""" if self._data.size == 1: - return int(self._data.sublocation[0]) - return self._data.sublocation + return int(self._data["sublocation"][0]) + return self._data["sublocation"] @sublocation.setter def sublocation(self, val): - self._data.sublocation = val + if not self._data.flags.writeable: + raise ValueError("This EccSramUniqueUncorrectedErrorEntry_v1 instance is read-only") + self._data["sublocation"] = val @property def extlocation(self): """Union[~_numpy.uint32, int]: the error extlocation within the SRAM unit""" if self._data.size == 1: - return int(self._data.extlocation[0]) - return self._data.extlocation + return int(self._data["extlocation"][0]) + return self._data["extlocation"] @extlocation.setter def extlocation(self, val): - self._data.extlocation = val + if not self._data.flags.writeable: + raise ValueError("This EccSramUniqueUncorrectedErrorEntry_v1 instance is read-only") + self._data["extlocation"] = val @property def address(self): """Union[~_numpy.uint32, int]: the error address within the SRAM unit""" if self._data.size == 1: - return int(self._data.address[0]) - return self._data.address + return int(self._data["address"][0]) + return self._data["address"] @address.setter def address(self, val): - self._data.address = val + if not self._data.flags.writeable: + raise ValueError("This EccSramUniqueUncorrectedErrorEntry_v1 instance is read-only") + self._data["address"] = val @property def is_parity(self): """Union[~_numpy.uint32, int]: if the SRAM error is parity or not""" if self._data.size == 1: - return int(self._data.is_parity[0]) - return self._data.is_parity + return int(self._data["is_parity"][0]) + return self._data["is_parity"] @is_parity.setter def is_parity(self, val): - self._data.is_parity = val + if not self._data.flags.writeable: + raise ValueError("This EccSramUniqueUncorrectedErrorEntry_v1 instance is read-only") + self._data["is_parity"] = val @property def count(self): """Union[~_numpy.uint32, int]: the error count at the same SRAM address""" if self._data.size == 1: - return int(self._data.count[0]) - return self._data.count + return int(self._data["count"][0]) + return self._data["count"] @count.setter def count(self, val): - self._data.count = val + if not self._data.flags.writeable: + raise ValueError("This EccSramUniqueUncorrectedErrorEntry_v1 instance is read-only") + self._data["count"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef EccSramUniqueUncorrectedErrorEntry_v1 obj if isinstance(key, int): key_ = key size = self._data.size @@ -15871,10 +16188,18 @@ cdef class EccSramUniqueUncorrectedErrorEntry_v1: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return EccSramUniqueUncorrectedErrorEntry_v1.from_data(self._data[key_:key_+1]) + obj = EccSramUniqueUncorrectedErrorEntry_v1.__new__(EccSramUniqueUncorrectedErrorEntry_v1) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == ecc_sram_unique_uncorrected_error_entry_v1_dtype: - return EccSramUniqueUncorrectedErrorEntry_v1.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == ecc_sram_unique_uncorrected_error_entry_v1_dtype: + obj = EccSramUniqueUncorrectedErrorEntry_v1.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -15899,8 +16224,7 @@ cdef class EccSramUniqueUncorrectedErrorEntry_v1: raise ValueError("data array must be 1D") if data.dtype != ecc_sram_unique_uncorrected_error_entry_v1_dtype: raise ValueError("data array must be of dtype ecc_sram_unique_uncorrected_error_entry_v1_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=ecc_sram_unique_uncorrected_error_entry_v1_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -15920,10 +16244,8 @@ cdef class EccSramUniqueUncorrectedErrorEntry_v1: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlEccSramUniqueUncorrectedErrorEntry_v1_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=ecc_sram_unique_uncorrected_error_entry_v1_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=ecc_sram_unique_uncorrected_error_entry_v1_dtype_record) obj._owner = owner - return obj @@ -16282,6 +16604,7 @@ cdef _get_nvlink_firmware_version_dtype_offsets(): }) nvlink_firmware_version_dtype = _get_nvlink_firmware_version_dtype_offsets() +cdef object nvlink_firmware_version_dtype_record = _numpy.dtype((_numpy.record, nvlink_firmware_version_dtype)) cdef class NvlinkFirmwareVersion: """Empty-initialize an array of `nvmlNvlinkFirmwareVersion_t`. @@ -16298,8 +16621,7 @@ cdef class NvlinkFirmwareVersion: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=nvlink_firmware_version_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=nvlink_firmware_version_dtype_record) assert self._data.itemsize == sizeof(nvmlNvlinkFirmwareVersion_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlNvlinkFirmwareVersion_t) }" @@ -16312,17 +16634,17 @@ cdef class NvlinkFirmwareVersion: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -16343,49 +16665,58 @@ cdef class NvlinkFirmwareVersion: def ucode_type(self): """Union[~_numpy.uint8, int]: """ if self._data.size == 1: - return int(self._data.ucode_type[0]) - return self._data.ucode_type + return int(self._data["ucode_type"][0]) + return self._data["ucode_type"] @ucode_type.setter def ucode_type(self, val): - self._data.ucode_type = val + if not self._data.flags.writeable: + raise ValueError("This NvlinkFirmwareVersion instance is read-only") + self._data["ucode_type"] = val @property def major(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.major[0]) - return self._data.major + return int(self._data["major"][0]) + return self._data["major"] @major.setter def major(self, val): - self._data.major = val + if not self._data.flags.writeable: + raise ValueError("This NvlinkFirmwareVersion instance is read-only") + self._data["major"] = val @property def minor(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.minor[0]) - return self._data.minor + return int(self._data["minor"][0]) + return self._data["minor"] @minor.setter def minor(self, val): - self._data.minor = val + if not self._data.flags.writeable: + raise ValueError("This NvlinkFirmwareVersion instance is read-only") + self._data["minor"] = val @property def sub_minor(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.sub_minor[0]) - return self._data.sub_minor + return int(self._data["sub_minor"][0]) + return self._data["sub_minor"] @sub_minor.setter def sub_minor(self, val): - self._data.sub_minor = val + if not self._data.flags.writeable: + raise ValueError("This NvlinkFirmwareVersion instance is read-only") + self._data["sub_minor"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef NvlinkFirmwareVersion obj if isinstance(key, int): key_ = key size = self._data.size @@ -16393,10 +16724,18 @@ cdef class NvlinkFirmwareVersion: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return NvlinkFirmwareVersion.from_data(self._data[key_:key_+1]) + obj = NvlinkFirmwareVersion.__new__(NvlinkFirmwareVersion) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == nvlink_firmware_version_dtype: - return NvlinkFirmwareVersion.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == nvlink_firmware_version_dtype: + obj = NvlinkFirmwareVersion.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -16421,8 +16760,7 @@ cdef class NvlinkFirmwareVersion: raise ValueError("data array must be 1D") if data.dtype != nvlink_firmware_version_dtype: raise ValueError("data array must be of dtype nvlink_firmware_version_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=nvlink_firmware_version_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -16442,10 +16780,8 @@ cdef class NvlinkFirmwareVersion: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlNvlinkFirmwareVersion_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=nvlink_firmware_version_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=nvlink_firmware_version_dtype_record) obj._owner = owner - return obj @@ -16470,24 +16806,24 @@ cdef class PRMCounterInput_v1: """ cdef: nvmlPRMCounterInput_v1_t *_ptr - _cyb_PyObject *_owner + object _owner + bint _owns_ptr bint _readonly def __init__(self): self._ptr = _cyb_calloc(1, sizeof(nvmlPRMCounterInput_v1_t)) if self._ptr == NULL: raise MemoryError("Error allocating PRMCounterInput_v1") - self._owner = NULL + self._owns_ptr = True + self._owner = None self._readonly = False def __dealloc__(self): cdef nvmlPRMCounterInput_v1_t *ptr - if self._owner == NULL and self._ptr != NULL: + if self._owns_ptr and self._ptr != NULL: ptr = self._ptr self._ptr = NULL _cyb_free(ptr) - _cyb_Py_CLEAR(self._owner) - self._owner = NULL def __repr__(self): return f"<{__name__}.PRMCounterInput_v1 object at {hex(id(self))}>" @@ -16576,11 +16912,12 @@ cdef class PRMCounterInput_v1: if obj._ptr == NULL: raise MemoryError("Error allocating PRMCounterInput_v1") _cyb_memcpy((obj._ptr), ptr, sizeof(nvmlPRMCounterInput_v1_t)) - obj._owner = NULL + obj._owns_ptr = True + obj._owner = None else: obj._ptr = ptr - obj._owner = <_cyb_PyObject *>owner - _cyb_Py_XINCREF(obj._owner) + obj._owns_ptr = False + obj._owner = owner obj._readonly = readonly return obj @@ -16764,6 +17101,7 @@ cdef _get_vgpu_scheduler_log_entry_v2_dtype_offsets(): }) vgpu_scheduler_log_entry_v2_dtype = _get_vgpu_scheduler_log_entry_v2_dtype_offsets() +cdef object vgpu_scheduler_log_entry_v2_dtype_record = _numpy.dtype((_numpy.record, vgpu_scheduler_log_entry_v2_dtype)) cdef class VgpuSchedulerLogEntry_v2: """Empty-initialize an array of `nvmlVgpuSchedulerLogEntry_v2_t`. @@ -16780,8 +17118,7 @@ cdef class VgpuSchedulerLogEntry_v2: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=vgpu_scheduler_log_entry_v2_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=vgpu_scheduler_log_entry_v2_dtype_record) assert self._data.itemsize == sizeof(nvmlVgpuSchedulerLogEntry_v2_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlVgpuSchedulerLogEntry_v2_t) }" @@ -16794,17 +17131,17 @@ cdef class VgpuSchedulerLogEntry_v2: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -16825,82 +17162,97 @@ cdef class VgpuSchedulerLogEntry_v2: def timestamp(self): """Union[~_numpy.uint64, int]: OUT: Timestamp in ns when this software runlist was preeempted.""" if self._data.size == 1: - return int(self._data.timestamp[0]) - return self._data.timestamp + return int(self._data["timestamp"][0]) + return self._data["timestamp"] @timestamp.setter def timestamp(self, val): - self._data.timestamp = val + if not self._data.flags.writeable: + raise ValueError("This VgpuSchedulerLogEntry_v2 instance is read-only") + self._data["timestamp"] = val @property def time_run_total(self): """Union[~_numpy.uint64, int]: OUT: Total time in ns this software runlist has run.""" if self._data.size == 1: - return int(self._data.time_run_total[0]) - return self._data.time_run_total + return int(self._data["time_run_total"][0]) + return self._data["time_run_total"] @time_run_total.setter def time_run_total(self, val): - self._data.time_run_total = val + if not self._data.flags.writeable: + raise ValueError("This VgpuSchedulerLogEntry_v2 instance is read-only") + self._data["time_run_total"] = val @property def time_run(self): """Union[~_numpy.uint64, int]: OUT: Time in ns this software runlist ran before preemption.""" if self._data.size == 1: - return int(self._data.time_run[0]) - return self._data.time_run + return int(self._data["time_run"][0]) + return self._data["time_run"] @time_run.setter def time_run(self, val): - self._data.time_run = val + if not self._data.flags.writeable: + raise ValueError("This VgpuSchedulerLogEntry_v2 instance is read-only") + self._data["time_run"] = val @property def sw_runlist_id(self): """Union[~_numpy.uint32, int]: OUT: Software runlist Id.""" if self._data.size == 1: - return int(self._data.sw_runlist_id[0]) - return self._data.sw_runlist_id + return int(self._data["sw_runlist_id"][0]) + return self._data["sw_runlist_id"] @sw_runlist_id.setter def sw_runlist_id(self, val): - self._data.sw_runlist_id = val + if not self._data.flags.writeable: + raise ValueError("This VgpuSchedulerLogEntry_v2 instance is read-only") + self._data["sw_runlist_id"] = val @property def target_time_slice(self): """Union[~_numpy.uint64, int]: OUT: The actual timeslice after deduction.""" if self._data.size == 1: - return int(self._data.target_time_slice[0]) - return self._data.target_time_slice + return int(self._data["target_time_slice"][0]) + return self._data["target_time_slice"] @target_time_slice.setter def target_time_slice(self, val): - self._data.target_time_slice = val + if not self._data.flags.writeable: + raise ValueError("This VgpuSchedulerLogEntry_v2 instance is read-only") + self._data["target_time_slice"] = val @property def cumulative_preemption_time(self): """Union[~_numpy.uint64, int]: OUT: Preemption time in ns for this SW runlist.""" if self._data.size == 1: - return int(self._data.cumulative_preemption_time[0]) - return self._data.cumulative_preemption_time + return int(self._data["cumulative_preemption_time"][0]) + return self._data["cumulative_preemption_time"] @cumulative_preemption_time.setter def cumulative_preemption_time(self, val): - self._data.cumulative_preemption_time = val + if not self._data.flags.writeable: + raise ValueError("This VgpuSchedulerLogEntry_v2 instance is read-only") + self._data["cumulative_preemption_time"] = val @property def weight(self): """Union[~_numpy.uint32, int]: OUT: Current weight of this SW runlist.""" if self._data.size == 1: - return int(self._data.weight[0]) - return self._data.weight + return int(self._data["weight"][0]) + return self._data["weight"] @weight.setter def weight(self, val): - self._data.weight = val + if not self._data.flags.writeable: + raise ValueError("This VgpuSchedulerLogEntry_v2 instance is read-only") + self._data["weight"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef VgpuSchedulerLogEntry_v2 obj if isinstance(key, int): key_ = key size = self._data.size @@ -16908,10 +17260,18 @@ cdef class VgpuSchedulerLogEntry_v2: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return VgpuSchedulerLogEntry_v2.from_data(self._data[key_:key_+1]) + obj = VgpuSchedulerLogEntry_v2.__new__(VgpuSchedulerLogEntry_v2) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == vgpu_scheduler_log_entry_v2_dtype: - return VgpuSchedulerLogEntry_v2.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == vgpu_scheduler_log_entry_v2_dtype: + obj = VgpuSchedulerLogEntry_v2.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -16936,8 +17296,7 @@ cdef class VgpuSchedulerLogEntry_v2: raise ValueError("data array must be 1D") if data.dtype != vgpu_scheduler_log_entry_v2_dtype: raise ValueError("data array must be of dtype vgpu_scheduler_log_entry_v2_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=vgpu_scheduler_log_entry_v2_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -16957,10 +17316,8 @@ cdef class VgpuSchedulerLogEntry_v2: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlVgpuSchedulerLogEntry_v2_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=vgpu_scheduler_log_entry_v2_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=vgpu_scheduler_log_entry_v2_dtype_record) obj._owner = owner - return obj @@ -17691,24 +18048,24 @@ cdef class CPERCursor_v1: """ cdef: nvmlCPERCursor_v1_t *_ptr - _cyb_PyObject *_owner + object _owner + bint _owns_ptr bint _readonly def __init__(self): self._ptr = _cyb_calloc(1, sizeof(nvmlCPERCursor_v1_t)) if self._ptr == NULL: raise MemoryError("Error allocating CPERCursor_v1") - self._owner = NULL + self._owns_ptr = True + self._owner = None self._readonly = False def __dealloc__(self): cdef nvmlCPERCursor_v1_t *ptr - if self._owner == NULL and self._ptr != NULL: + if self._owns_ptr and self._ptr != NULL: ptr = self._ptr self._ptr = NULL _cyb_free(ptr) - _cyb_Py_CLEAR(self._owner) - self._owner = NULL def __repr__(self): return f"<{__name__}.CPERCursor_v1 object at {hex(id(self))}>" @@ -17823,11 +18180,12 @@ cdef class CPERCursor_v1: if obj._ptr == NULL: raise MemoryError("Error allocating CPERCursor_v1") _cyb_memcpy((obj._ptr), ptr, sizeof(nvmlCPERCursor_v1_t)) - obj._owner = NULL + obj._owns_ptr = True + obj._owner = None else: obj._ptr = ptr - obj._owner = <_cyb_PyObject *>owner - _cyb_Py_XINCREF(obj._owner) + obj._owns_ptr = False + obj._owner = owner obj._readonly = readonly return obj @@ -18172,6 +18530,7 @@ cdef _get_pmgr_pwr_tuple_dtype_offsets(): }) pmgr_pwr_tuple_dtype = _get_pmgr_pwr_tuple_dtype_offsets() +cdef object pmgr_pwr_tuple_dtype_record = _numpy.dtype((_numpy.record, pmgr_pwr_tuple_dtype)) cdef class PmgrPwrTuple: """Empty-initialize an array of `nvmlPmgrPwrTuple_t`. @@ -18188,8 +18547,7 @@ cdef class PmgrPwrTuple: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=pmgr_pwr_tuple_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=pmgr_pwr_tuple_dtype_record) assert self._data.itemsize == sizeof(nvmlPmgrPwrTuple_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlPmgrPwrTuple_t) }" @@ -18202,17 +18560,17 @@ cdef class PmgrPwrTuple: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -18233,16 +18591,19 @@ cdef class PmgrPwrTuple: def pwrm_w(self): """Union[~_numpy.uint32, int]: Power consumption in milliwatts.""" if self._data.size == 1: - return int(self._data.pwrm_w[0]) - return self._data.pwrm_w + return int(self._data["pwrm_w"][0]) + return self._data["pwrm_w"] @pwrm_w.setter def pwrm_w(self, val): - self._data.pwrm_w = val + if not self._data.flags.writeable: + raise ValueError("This PmgrPwrTuple instance is read-only") + self._data["pwrm_w"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef PmgrPwrTuple obj if isinstance(key, int): key_ = key size = self._data.size @@ -18250,10 +18611,18 @@ cdef class PmgrPwrTuple: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return PmgrPwrTuple.from_data(self._data[key_:key_+1]) + obj = PmgrPwrTuple.__new__(PmgrPwrTuple) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == pmgr_pwr_tuple_dtype: - return PmgrPwrTuple.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == pmgr_pwr_tuple_dtype: + obj = PmgrPwrTuple.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -18278,8 +18647,7 @@ cdef class PmgrPwrTuple: raise ValueError("data array must be 1D") if data.dtype != pmgr_pwr_tuple_dtype: raise ValueError("data array must be of dtype pmgr_pwr_tuple_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=pmgr_pwr_tuple_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -18299,10 +18667,8 @@ cdef class PmgrPwrTuple: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlPmgrPwrTuple_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=pmgr_pwr_tuple_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=pmgr_pwr_tuple_dtype_record) obj._owner = owner - return obj @@ -18319,6 +18685,7 @@ cdef _get_rail_metrics_dtype_offsets(): }) rail_metrics_dtype = _get_rail_metrics_dtype_offsets() +cdef object rail_metrics_dtype_record = _numpy.dtype((_numpy.record, rail_metrics_dtype)) cdef class RailMetrics: """Empty-initialize an array of `nvmlRailMetrics_t`. @@ -18335,8 +18702,7 @@ cdef class RailMetrics: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=rail_metrics_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=rail_metrics_dtype_record) assert self._data.itemsize == sizeof(nvmlRailMetrics_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlRailMetrics_t) }" @@ -18349,17 +18715,17 @@ cdef class RailMetrics: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -18380,27 +18746,32 @@ cdef class RailMetrics: def freqk_hz(self): """Union[~_numpy.uint32, int]: Frequency in kilohertz.""" if self._data.size == 1: - return int(self._data.freqk_hz[0]) - return self._data.freqk_hz + return int(self._data["freqk_hz"][0]) + return self._data["freqk_hz"] @freqk_hz.setter def freqk_hz(self, val): - self._data.freqk_hz = val + if not self._data.flags.writeable: + raise ValueError("This RailMetrics instance is read-only") + self._data["freqk_hz"] = val @property def util_pct(self): """Union[~_numpy.uint64, int]: Utilization percentage (fixed-point).""" if self._data.size == 1: - return int(self._data.util_pct[0]) - return self._data.util_pct + return int(self._data["util_pct"][0]) + return self._data["util_pct"] @util_pct.setter def util_pct(self, val): - self._data.util_pct = val + if not self._data.flags.writeable: + raise ValueError("This RailMetrics instance is read-only") + self._data["util_pct"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef RailMetrics obj if isinstance(key, int): key_ = key size = self._data.size @@ -18408,10 +18779,18 @@ cdef class RailMetrics: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return RailMetrics.from_data(self._data[key_:key_+1]) + obj = RailMetrics.__new__(RailMetrics) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == rail_metrics_dtype: - return RailMetrics.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == rail_metrics_dtype: + obj = RailMetrics.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -18436,8 +18815,7 @@ cdef class RailMetrics: raise ValueError("data array must be 1D") if data.dtype != rail_metrics_dtype: raise ValueError("data array must be of dtype rail_metrics_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=rail_metrics_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -18457,10 +18835,8 @@ cdef class RailMetrics: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlRailMetrics_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=rail_metrics_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=rail_metrics_dtype_record) obj._owner = owner - return obj @@ -18476,6 +18852,7 @@ cdef _get_pwr_model_metrics_dlppm1x_perf_dtype_offsets(): }) pwr_model_metrics_dlppm1x_perf_dtype = _get_pwr_model_metrics_dlppm1x_perf_dtype_offsets() +cdef object pwr_model_metrics_dlppm1x_perf_dtype_record = _numpy.dtype((_numpy.record, pwr_model_metrics_dlppm1x_perf_dtype)) cdef class PwrModelMetricsDlppm1xPerf: """Empty-initialize an array of `nvmlPwrModelMetricsDlppm1xPerf_t`. @@ -18492,8 +18869,7 @@ cdef class PwrModelMetricsDlppm1xPerf: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=pwr_model_metrics_dlppm1x_perf_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=pwr_model_metrics_dlppm1x_perf_dtype_record) assert self._data.itemsize == sizeof(nvmlPwrModelMetricsDlppm1xPerf_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlPwrModelMetricsDlppm1xPerf_t) }" @@ -18506,17 +18882,17 @@ cdef class PwrModelMetricsDlppm1xPerf: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -18537,16 +18913,19 @@ cdef class PwrModelMetricsDlppm1xPerf: def perfms(self): """Union[~_numpy.uint32, int]: Performance metric in milliseconds.""" if self._data.size == 1: - return int(self._data.perfms[0]) - return self._data.perfms + return int(self._data["perfms"][0]) + return self._data["perfms"] @perfms.setter def perfms(self, val): - self._data.perfms = val + if not self._data.flags.writeable: + raise ValueError("This PwrModelMetricsDlppm1xPerf instance is read-only") + self._data["perfms"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef PwrModelMetricsDlppm1xPerf obj if isinstance(key, int): key_ = key size = self._data.size @@ -18554,10 +18933,18 @@ cdef class PwrModelMetricsDlppm1xPerf: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return PwrModelMetricsDlppm1xPerf.from_data(self._data[key_:key_+1]) + obj = PwrModelMetricsDlppm1xPerf.__new__(PwrModelMetricsDlppm1xPerf) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == pwr_model_metrics_dlppm1x_perf_dtype: - return PwrModelMetricsDlppm1xPerf.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == pwr_model_metrics_dlppm1x_perf_dtype: + obj = PwrModelMetricsDlppm1xPerf.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -18582,8 +18969,7 @@ cdef class PwrModelMetricsDlppm1xPerf: raise ValueError("data array must be 1D") if data.dtype != pwr_model_metrics_dlppm1x_perf_dtype: raise ValueError("data array must be of dtype pwr_model_metrics_dlppm1x_perf_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=pwr_model_metrics_dlppm1x_perf_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -18603,10 +18989,8 @@ cdef class PwrModelMetricsDlppm1xPerf: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlPwrModelMetricsDlppm1xPerf_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=pwr_model_metrics_dlppm1x_perf_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=pwr_model_metrics_dlppm1x_perf_dtype_record) obj._owner = owner - return obj @@ -18623,6 +19007,7 @@ cdef _get_pwr_model_metrics_sample_pfpp1x_dtype_offsets(): }) pwr_model_metrics_sample_pfpp1x_dtype = _get_pwr_model_metrics_sample_pfpp1x_dtype_offsets() +cdef object pwr_model_metrics_sample_pfpp1x_dtype_record = _numpy.dtype((_numpy.record, pwr_model_metrics_sample_pfpp1x_dtype)) cdef class PwrModelMetricsSamplePfpp1x: """Empty-initialize an array of `nvmlPwrModelMetricsSamplePfpp1x_t`. @@ -18639,8 +19024,7 @@ cdef class PwrModelMetricsSamplePfpp1x: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=pwr_model_metrics_sample_pfpp1x_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=pwr_model_metrics_sample_pfpp1x_dtype_record) assert self._data.itemsize == sizeof(nvmlPwrModelMetricsSamplePfpp1x_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlPwrModelMetricsSamplePfpp1x_t) }" @@ -18653,17 +19037,17 @@ cdef class PwrModelMetricsSamplePfpp1x: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -18683,26 +19067,31 @@ cdef class PwrModelMetricsSamplePfpp1x: @property def freqk_hz(self): """~_numpy.uint32: (array of length 16).Array of input frequencies in kilohertz for each domain.""" - return self._data.freqk_hz + return self._data["freqk_hz"] @freqk_hz.setter def freqk_hz(self, val): - self._data.freqk_hz = val + if not self._data.flags.writeable: + raise ValueError("This PwrModelMetricsSamplePfpp1x instance is read-only") + self._data["freqk_hz"] = val @property def est_tgp_pwrm_w(self): """Union[~_numpy.uint32, int]: Estimated Total Graphics Power in milliwatts.""" if self._data.size == 1: - return int(self._data.est_tgp_pwrm_w[0]) - return self._data.est_tgp_pwrm_w + return int(self._data["est_tgp_pwrm_w"][0]) + return self._data["est_tgp_pwrm_w"] @est_tgp_pwrm_w.setter def est_tgp_pwrm_w(self, val): - self._data.est_tgp_pwrm_w = val + if not self._data.flags.writeable: + raise ValueError("This PwrModelMetricsSamplePfpp1x instance is read-only") + self._data["est_tgp_pwrm_w"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef PwrModelMetricsSamplePfpp1x obj if isinstance(key, int): key_ = key size = self._data.size @@ -18710,10 +19099,18 @@ cdef class PwrModelMetricsSamplePfpp1x: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return PwrModelMetricsSamplePfpp1x.from_data(self._data[key_:key_+1]) + obj = PwrModelMetricsSamplePfpp1x.__new__(PwrModelMetricsSamplePfpp1x) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == pwr_model_metrics_sample_pfpp1x_dtype: - return PwrModelMetricsSamplePfpp1x.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == pwr_model_metrics_sample_pfpp1x_dtype: + obj = PwrModelMetricsSamplePfpp1x.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -18738,8 +19135,7 @@ cdef class PwrModelMetricsSamplePfpp1x: raise ValueError("data array must be 1D") if data.dtype != pwr_model_metrics_sample_pfpp1x_dtype: raise ValueError("data array must be of dtype pwr_model_metrics_sample_pfpp1x_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=pwr_model_metrics_sample_pfpp1x_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -18759,10 +19155,8 @@ cdef class PwrModelMetricsSamplePfpp1x: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlPwrModelMetricsSamplePfpp1x_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=pwr_model_metrics_sample_pfpp1x_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=pwr_model_metrics_sample_pfpp1x_dtype_record) obj._owner = owner - return obj @@ -18779,6 +19173,7 @@ cdef _get_pwr_model_operating_point_pfpp1x_dtype_offsets(): }) pwr_model_operating_point_pfpp1x_dtype = _get_pwr_model_operating_point_pfpp1x_dtype_offsets() +cdef object pwr_model_operating_point_pfpp1x_dtype_record = _numpy.dtype((_numpy.record, pwr_model_operating_point_pfpp1x_dtype)) cdef class PwrModelOperatingPointPfpp1x: """Empty-initialize an array of `nvmlPwrModelOperatingPointPfpp1x_t`. @@ -18795,8 +19190,7 @@ cdef class PwrModelOperatingPointPfpp1x: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=pwr_model_operating_point_pfpp1x_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=pwr_model_operating_point_pfpp1x_dtype_record) assert self._data.itemsize == sizeof(nvmlPwrModelOperatingPointPfpp1x_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlPwrModelOperatingPointPfpp1x_t) }" @@ -18809,17 +19203,17 @@ cdef class PwrModelOperatingPointPfpp1x: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -18840,27 +19234,32 @@ cdef class PwrModelOperatingPointPfpp1x: def freqk_hz(self): """Union[~_numpy.uint32, int]: Operating frequency in kilohertz.""" if self._data.size == 1: - return int(self._data.freqk_hz[0]) - return self._data.freqk_hz + return int(self._data["freqk_hz"][0]) + return self._data["freqk_hz"] @freqk_hz.setter def freqk_hz(self, val): - self._data.freqk_hz = val + if not self._data.flags.writeable: + raise ValueError("This PwrModelOperatingPointPfpp1x instance is read-only") + self._data["freqk_hz"] = val @property def pwrm_w(self): """Union[~_numpy.uint32, int]: Power consumption at this frequency in milliwatts.""" if self._data.size == 1: - return int(self._data.pwrm_w[0]) - return self._data.pwrm_w + return int(self._data["pwrm_w"][0]) + return self._data["pwrm_w"] @pwrm_w.setter def pwrm_w(self, val): - self._data.pwrm_w = val + if not self._data.flags.writeable: + raise ValueError("This PwrModelOperatingPointPfpp1x instance is read-only") + self._data["pwrm_w"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef PwrModelOperatingPointPfpp1x obj if isinstance(key, int): key_ = key size = self._data.size @@ -18868,10 +19267,18 @@ cdef class PwrModelOperatingPointPfpp1x: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return PwrModelOperatingPointPfpp1x.from_data(self._data[key_:key_+1]) + obj = PwrModelOperatingPointPfpp1x.__new__(PwrModelOperatingPointPfpp1x) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == pwr_model_operating_point_pfpp1x_dtype: - return PwrModelOperatingPointPfpp1x.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == pwr_model_operating_point_pfpp1x_dtype: + obj = PwrModelOperatingPointPfpp1x.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -18896,8 +19303,7 @@ cdef class PwrModelOperatingPointPfpp1x: raise ValueError("data array must be 1D") if data.dtype != pwr_model_operating_point_pfpp1x_dtype: raise ValueError("data array must be of dtype pwr_model_operating_point_pfpp1x_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=pwr_model_operating_point_pfpp1x_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -18917,10 +19323,8 @@ cdef class PwrModelOperatingPointPfpp1x: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlPwrModelOperatingPointPfpp1x_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=pwr_model_operating_point_pfpp1x_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=pwr_model_operating_point_pfpp1x_dtype_record) obj._owner = owner - return obj @@ -19554,24 +19958,24 @@ cdef class GpuFabricClique_v1: """ cdef: nvmlGpuFabricClique_v1_t *_ptr - _cyb_PyObject *_owner + object _owner + bint _owns_ptr bint _readonly def __init__(self): self._ptr = _cyb_calloc(1, sizeof(nvmlGpuFabricClique_v1_t)) if self._ptr == NULL: raise MemoryError("Error allocating GpuFabricClique_v1") - self._owner = NULL + self._owns_ptr = True + self._owner = None self._readonly = False def __dealloc__(self): cdef nvmlGpuFabricClique_v1_t *ptr - if self._owner == NULL and self._ptr != NULL: + if self._owns_ptr and self._ptr != NULL: ptr = self._ptr self._ptr = NULL _cyb_free(ptr) - _cyb_Py_CLEAR(self._owner) - self._owner = NULL def __repr__(self): return f"<{__name__}.GpuFabricClique_v1 object at {hex(id(self))}>" @@ -19671,11 +20075,12 @@ cdef class GpuFabricClique_v1: if obj._ptr == NULL: raise MemoryError("Error allocating GpuFabricClique_v1") _cyb_memcpy((obj._ptr), ptr, sizeof(nvmlGpuFabricClique_v1_t)) - obj._owner = NULL + obj._owns_ptr = True + obj._owner = None else: obj._ptr = ptr - obj._owner = <_cyb_PyObject *>owner - _cyb_Py_XINCREF(obj._owner) + obj._owns_ptr = False + obj._owner = owner obj._readonly = readonly return obj @@ -20164,7 +20569,7 @@ cdef class EventSetWait_v3: @property def attributes(self): - """int: [out] Bitmask of `NVML_OPERATIONAL_EVENT_ATTR_*` values for structured events. May contain newer bits not named in this header. 0 for NVML event-bit events. May include `NVML_OPERATIONAL_EVENT_ATTR_OVERFLOW` if events or associated payloads were dropped.""" + """int: [out] Bitmask of `NVML_OPERATIONAL_EVENT_ATTR_*` values for structured events. May contain newer bits not named in this header. 0 for NVML event-bit events.""" return self._ptr[0].attributes @attributes.setter @@ -20419,6 +20824,7 @@ cdef _get_nvlink_telemetry_sample_v1_dtype_offsets(): }) nvlink_telemetry_sample_v1_dtype = _get_nvlink_telemetry_sample_v1_dtype_offsets() +cdef object nvlink_telemetry_sample_v1_dtype_record = _numpy.dtype((_numpy.record, nvlink_telemetry_sample_v1_dtype)) cdef class NvlinkTelemetrySample_v1: """Empty-initialize an array of `nvmlNvlinkTelemetrySample_v1_t`. @@ -20435,8 +20841,7 @@ cdef class NvlinkTelemetrySample_v1: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=nvlink_telemetry_sample_v1_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=nvlink_telemetry_sample_v1_dtype_record) assert self._data.itemsize == sizeof(nvmlNvlinkTelemetrySample_v1_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlNvlinkTelemetrySample_v1_t) }" @@ -20449,17 +20854,17 @@ cdef class NvlinkTelemetrySample_v1: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -20480,60 +20885,71 @@ cdef class NvlinkTelemetrySample_v1: def link_id(self): """Union[~_numpy.uint32, int]: [in] LinkId""" if self._data.size == 1: - return int(self._data.link_id[0]) - return self._data.link_id + return int(self._data["link_id"][0]) + return self._data["link_id"] @link_id.setter def link_id(self, val): - self._data.link_id = val + if not self._data.flags.writeable: + raise ValueError("This NvlinkTelemetrySample_v1 instance is read-only") + self._data["link_id"] = val @property def sample_type(self): """Union[~_numpy.uint32, int]: [in] Type of telemetry to sample, specified by `nvmlNvlinkTelemetrySampleType_t`""" if self._data.size == 1: - return int(self._data.sample_type[0]) - return self._data.sample_type + return int(self._data["sample_type"][0]) + return self._data["sample_type"] @sample_type.setter def sample_type(self, val): - self._data.sample_type = val + if not self._data.flags.writeable: + raise ValueError("This NvlinkTelemetrySample_v1 instance is read-only") + self._data["sample_type"] = val @property def sample_count(self): """Union[~_numpy.uint32, int]: [in,out]: Number of samples users need to allocate. If set to 0, will return max supported count of samples without touching the ``samples`` pointer.""" if self._data.size == 1: - return int(self._data.sample_count[0]) - return self._data.sample_count + return int(self._data["sample_count"][0]) + return self._data["sample_count"] @sample_count.setter def sample_count(self, val): - self._data.sample_count = val + if not self._data.flags.writeable: + raise ValueError("This NvlinkTelemetrySample_v1 instance is read-only") + self._data["sample_count"] = val @property def samples(self): """Union[~_numpy.intp, int]: [in,out]: Array of samples allocated by the user. Can be set to NULL when getting count""" if self._data.size == 1: - return int(self._data.samples[0]) - return self._data.samples + return int(self._data["samples"][0]) + return self._data["samples"] @samples.setter def samples(self, val): - self._data.samples = val + if not self._data.flags.writeable: + raise ValueError("This NvlinkTelemetrySample_v1 instance is read-only") + self._data["samples"] = val @property def nvml_return(self): """Union[~_numpy.int32, int]: [out]: Return code for retrieving this sample. This must be checked by the client before looking at any output values, as they are invalid if ``nvmlReturn != NVML_SUCCESS``.""" if self._data.size == 1: - return int(self._data.nvml_return[0]) - return self._data.nvml_return + return int(self._data["nvml_return"][0]) + return self._data["nvml_return"] @nvml_return.setter def nvml_return(self, val): - self._data.nvml_return = val + if not self._data.flags.writeable: + raise ValueError("This NvlinkTelemetrySample_v1 instance is read-only") + self._data["nvml_return"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef NvlinkTelemetrySample_v1 obj if isinstance(key, int): key_ = key size = self._data.size @@ -20541,10 +20957,18 @@ cdef class NvlinkTelemetrySample_v1: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return NvlinkTelemetrySample_v1.from_data(self._data[key_:key_+1]) + obj = NvlinkTelemetrySample_v1.__new__(NvlinkTelemetrySample_v1) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == nvlink_telemetry_sample_v1_dtype: - return NvlinkTelemetrySample_v1.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == nvlink_telemetry_sample_v1_dtype: + obj = NvlinkTelemetrySample_v1.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -20569,8 +20993,7 @@ cdef class NvlinkTelemetrySample_v1: raise ValueError("data array must be 1D") if data.dtype != nvlink_telemetry_sample_v1_dtype: raise ValueError("data array must be of dtype nvlink_telemetry_sample_v1_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=nvlink_telemetry_sample_v1_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -20590,10 +21013,8 @@ cdef class NvlinkTelemetrySample_v1: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlNvlinkTelemetrySample_v1_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=nvlink_telemetry_sample_v1_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=nvlink_telemetry_sample_v1_dtype_record) obj._owner = owner - return obj @@ -20619,24 +21040,24 @@ cdef class EccBankRemapperHistogram_v1: """ cdef: nvmlEccBankRemapperHistogram_v1_t *_ptr - _cyb_PyObject *_owner + object _owner + bint _owns_ptr bint _readonly def __init__(self): self._ptr = _cyb_calloc(1, sizeof(nvmlEccBankRemapperHistogram_v1_t)) if self._ptr == NULL: raise MemoryError("Error allocating EccBankRemapperHistogram_v1") - self._owner = NULL + self._owns_ptr = True + self._owner = None self._readonly = False def __dealloc__(self): cdef nvmlEccBankRemapperHistogram_v1_t *ptr - if self._owner == NULL and self._ptr != NULL: + if self._owns_ptr and self._ptr != NULL: ptr = self._ptr self._ptr = NULL _cyb_free(ptr) - _cyb_Py_CLEAR(self._owner) - self._owner = NULL def __repr__(self): return f"<{__name__}.EccBankRemapperHistogram_v1 object at {hex(id(self))}>" @@ -20736,11 +21157,905 @@ cdef class EccBankRemapperHistogram_v1: if obj._ptr == NULL: raise MemoryError("Error allocating EccBankRemapperHistogram_v1") _cyb_memcpy((obj._ptr), ptr, sizeof(nvmlEccBankRemapperHistogram_v1_t)) - obj._owner = NULL + obj._owns_ptr = True + obj._owner = None else: obj._ptr = ptr - obj._owner = <_cyb_PyObject *>owner - _cyb_Py_XINCREF(obj._owner) + obj._owns_ptr = False + obj._owner = owner + obj._readonly = readonly + return obj + + +cdef _get_gpu_uptime_v1_dtype_offsets(): + cdef nvmlGpuUptime_v1_t pod + return _numpy.dtype({ + 'names': ['uptime'], + 'formats': [_numpy.uint32], + 'offsets': [ + (&(pod.uptime)) - (&pod), + ], + 'itemsize': sizeof(nvmlGpuUptime_v1_t), + }) + +gpu_uptime_v1_dtype = _get_gpu_uptime_v1_dtype_offsets() + +cdef class GpuUptime_v1: + """Empty-initialize an instance of `nvmlGpuUptime_v1_t`. + + + .. seealso:: `nvmlGpuUptime_v1_t` + """ + cdef: + nvmlGpuUptime_v1_t _data + nvmlGpuUptime_v1_t *_ptr + object _owner + bint _readonly + + def __init__(self): + self._ptr = &self._data + self._owner = None + self._readonly = False + + def __repr__(self): + return f"<{__name__}.GpuUptime_v1 object at {hex(id(self))}>" + + @property + def ptr(self): + """Get the pointer address to the data as Python :class:`int`.""" + return (self._ptr) + + cdef intptr_t _get_ptr(self): + return (self._ptr) + + def __int__(self): + return (self._ptr) + + def __eq__(self, other): + cdef GpuUptime_v1 other_ + if not isinstance(other, GpuUptime_v1): + return False + other_ = other + return (_cyb_memcmp((self._ptr), (other_._ptr), sizeof(nvmlGpuUptime_v1_t)) == 0) + + def __getbuffer__(self, _cyb_cpython.Py_buffer *buffer, int flags): + _cyb___getbuffer(self, buffer, self._ptr, sizeof(nvmlGpuUptime_v1_t), self._readonly) + + def __releasebuffer__(self, Py_buffer *buffer): + pass + + def __setitem__(self, key, val): + cdef _cyb_Py_buffer view + if key == 0: + if self._readonly: + raise ValueError("This GpuUptime_v1 instance is read-only") + _cyb_PyObject_GetBuffer(val, &view, _cyb_PyBUF_SIMPLE) + try: + if view.len < sizeof(nvmlGpuUptime_v1_t): + raise ValueError( + "source buffer too small: expected at least %d bytes, got %d" % (sizeof(nvmlGpuUptime_v1_t), view.len) + ) + _cyb_memmove(&self._data, view.buf, sizeof(nvmlGpuUptime_v1_t)) + self._ptr = &self._data + self._owner = None + self._readonly = view.readonly != 0 + finally: + _cyb_PyBuffer_Release(&view) + else: + setattr(self, key, val) + + @property + def uptime(self): + """int: [out] Number of seconds the GPU has been up since it was initialized by the driver""" + return self._ptr[0].uptime + + @uptime.setter + def uptime(self, val): + if self._readonly: + raise ValueError("This GpuUptime_v1 instance is read-only") + self._ptr[0].uptime = val + + @staticmethod + def from_buffer(buffer): + """Create an GpuUptime_v1 instance with the memory from the given buffer.""" + return _cyb_from_buffer(buffer, sizeof(nvmlGpuUptime_v1_t), GpuUptime_v1) + + @staticmethod + def from_data(data): + """Create an GpuUptime_v1 instance wrapping the given NumPy array. + + Args: + data (_numpy.ndarray): a single-element array of dtype `gpu_uptime_v1_dtype` holding the data. + """ + return _cyb_from_data(data, "gpu_uptime_v1_dtype", gpu_uptime_v1_dtype, GpuUptime_v1) + + @staticmethod + def from_ptr(intptr_t ptr, bint readonly=False, object owner=None): + """Create an GpuUptime_v1 instance wrapping the given pointer. + + Args: + ptr (intptr_t): pointer address as Python :class:`int` to the data. + owner (object): The Python object that owns the pointer. If not provided, data will be copied. + readonly (bool): whether the data is read-only (to the user). default is `False`. + """ + if ptr == 0: + raise ValueError("ptr must not be null (0)") + cdef GpuUptime_v1 obj = GpuUptime_v1.__new__(GpuUptime_v1) + if owner is None: + _cyb_memcpy(&obj._data, ptr, sizeof(nvmlGpuUptime_v1_t)) + obj._ptr = &obj._data + obj._owner = None + else: + obj._ptr = ptr + obj._owner = owner + obj._readonly = readonly + return obj + + +cdef _get_system_conf_compute_settings_v2_dtype_offsets(): + cdef nvmlSystemConfComputeSettings_v2_t pod + return _numpy.dtype({ + 'names': ['version', 'environment', 'cc_feature', 'dev_tools_mode', 'multi_gpu_mode', 'tdisp_state'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.version)) - (&pod), + (&(pod.environment)) - (&pod), + (&(pod.ccFeature)) - (&pod), + (&(pod.devToolsMode)) - (&pod), + (&(pod.multiGpuMode)) - (&pod), + (&(pod.tdispState)) - (&pod), + ], + 'itemsize': sizeof(nvmlSystemConfComputeSettings_v2_t), + }) + +system_conf_compute_settings_v2_dtype = _get_system_conf_compute_settings_v2_dtype_offsets() + +cdef class SystemConfComputeSettings_v2: + """Empty-initialize an instance of `nvmlSystemConfComputeSettings_v2_t`. + + + .. seealso:: `nvmlSystemConfComputeSettings_v2_t` + """ + cdef: + nvmlSystemConfComputeSettings_v2_t _data + nvmlSystemConfComputeSettings_v2_t *_ptr + object _owner + bint _readonly + + def __init__(self): + self._ptr = &self._data + self._owner = None + self._readonly = False + + def __repr__(self): + return f"<{__name__}.SystemConfComputeSettings_v2 object at {hex(id(self))}>" + + @property + def ptr(self): + """Get the pointer address to the data as Python :class:`int`.""" + return (self._ptr) + + cdef intptr_t _get_ptr(self): + return (self._ptr) + + def __int__(self): + return (self._ptr) + + def __eq__(self, other): + cdef SystemConfComputeSettings_v2 other_ + if not isinstance(other, SystemConfComputeSettings_v2): + return False + other_ = other + return (_cyb_memcmp((self._ptr), (other_._ptr), sizeof(nvmlSystemConfComputeSettings_v2_t)) == 0) + + def __getbuffer__(self, _cyb_cpython.Py_buffer *buffer, int flags): + _cyb___getbuffer(self, buffer, self._ptr, sizeof(nvmlSystemConfComputeSettings_v2_t), self._readonly) + + def __releasebuffer__(self, Py_buffer *buffer): + pass + + def __setitem__(self, key, val): + cdef _cyb_Py_buffer view + if key == 0: + if self._readonly: + raise ValueError("This SystemConfComputeSettings_v2 instance is read-only") + _cyb_PyObject_GetBuffer(val, &view, _cyb_PyBUF_SIMPLE) + try: + if view.len < sizeof(nvmlSystemConfComputeSettings_v2_t): + raise ValueError( + "source buffer too small: expected at least %d bytes, got %d" % (sizeof(nvmlSystemConfComputeSettings_v2_t), view.len) + ) + _cyb_memmove(&self._data, view.buf, sizeof(nvmlSystemConfComputeSettings_v2_t)) + self._ptr = &self._data + self._owner = None + self._readonly = view.readonly != 0 + finally: + _cyb_PyBuffer_Release(&view) + else: + setattr(self, key, val) + + @property + def version(self): + """int: """ + return self._ptr[0].version + + @version.setter + def version(self, val): + if self._readonly: + raise ValueError("This SystemConfComputeSettings_v2 instance is read-only") + self._ptr[0].version = val + + @property + def environment(self): + """int: """ + return self._ptr[0].environment + + @environment.setter + def environment(self, val): + if self._readonly: + raise ValueError("This SystemConfComputeSettings_v2 instance is read-only") + self._ptr[0].environment = val + + @property + def cc_feature(self): + """int: """ + return self._ptr[0].ccFeature + + @cc_feature.setter + def cc_feature(self, val): + if self._readonly: + raise ValueError("This SystemConfComputeSettings_v2 instance is read-only") + self._ptr[0].ccFeature = val + + @property + def dev_tools_mode(self): + """int: """ + return self._ptr[0].devToolsMode + + @dev_tools_mode.setter + def dev_tools_mode(self, val): + if self._readonly: + raise ValueError("This SystemConfComputeSettings_v2 instance is read-only") + self._ptr[0].devToolsMode = val + + @property + def multi_gpu_mode(self): + """int: """ + return self._ptr[0].multiGpuMode + + @multi_gpu_mode.setter + def multi_gpu_mode(self, val): + if self._readonly: + raise ValueError("This SystemConfComputeSettings_v2 instance is read-only") + self._ptr[0].multiGpuMode = val + + @property + def tdisp_state(self): + """int: """ + return self._ptr[0].tdispState + + @tdisp_state.setter + def tdisp_state(self, val): + if self._readonly: + raise ValueError("This SystemConfComputeSettings_v2 instance is read-only") + self._ptr[0].tdispState = val + + @staticmethod + def from_buffer(buffer): + """Create an SystemConfComputeSettings_v2 instance with the memory from the given buffer.""" + return _cyb_from_buffer(buffer, sizeof(nvmlSystemConfComputeSettings_v2_t), SystemConfComputeSettings_v2) + + @staticmethod + def from_data(data): + """Create an SystemConfComputeSettings_v2 instance wrapping the given NumPy array. + + Args: + data (_numpy.ndarray): a single-element array of dtype `system_conf_compute_settings_v2_dtype` holding the data. + """ + return _cyb_from_data(data, "system_conf_compute_settings_v2_dtype", system_conf_compute_settings_v2_dtype, SystemConfComputeSettings_v2) + + @staticmethod + def from_ptr(intptr_t ptr, bint readonly=False, object owner=None): + """Create an SystemConfComputeSettings_v2 instance wrapping the given pointer. + + Args: + ptr (intptr_t): pointer address as Python :class:`int` to the data. + owner (object): The Python object that owns the pointer. If not provided, data will be copied. + readonly (bool): whether the data is read-only (to the user). default is `False`. + """ + if ptr == 0: + raise ValueError("ptr must not be null (0)") + cdef SystemConfComputeSettings_v2 obj = SystemConfComputeSettings_v2.__new__(SystemConfComputeSettings_v2) + if owner is None: + _cyb_memcpy(&obj._data, ptr, sizeof(nvmlSystemConfComputeSettings_v2_t)) + obj._ptr = &obj._data + obj._owner = None + else: + obj._ptr = ptr + obj._owner = owner + obj._readonly = readonly + return obj + + +cdef _get_nvlink_get_remap_table_info_v1_dtype_offsets(): + cdef nvmlNvlinkGetRemapTableInfo_v1_t pod + return _numpy.dtype({ + 'names': ['alid', 'fla_remap_tab_addr', 'gpa_remap_tab_addr', 'remap_tab_size'], + 'formats': [_numpy.uint32, (_numpy.uint32, 4096), (_numpy.uint32, 4096), _numpy.uint32], + 'offsets': [ + (&(pod.alid)) - (&pod), + (&(pod.flaRemapTabAddr)) - (&pod), + (&(pod.gpaRemapTabAddr)) - (&pod), + (&(pod.remapTabSize)) - (&pod), + ], + 'itemsize': sizeof(nvmlNvlinkGetRemapTableInfo_v1_t), + }) + +nvlink_get_remap_table_info_v1_dtype = _get_nvlink_get_remap_table_info_v1_dtype_offsets() + +cdef class NvlinkGetRemapTableInfo_v1: + """Empty-initialize an instance of `nvmlNvlinkGetRemapTableInfo_v1_t`. + + + .. seealso:: `nvmlNvlinkGetRemapTableInfo_v1_t` + """ + cdef: + nvmlNvlinkGetRemapTableInfo_v1_t _data + nvmlNvlinkGetRemapTableInfo_v1_t *_ptr + object _owner + bint _readonly + + def __init__(self): + self._ptr = &self._data + self._owner = None + self._readonly = False + + def __repr__(self): + return f"<{__name__}.NvlinkGetRemapTableInfo_v1 object at {hex(id(self))}>" + + @property + def ptr(self): + """Get the pointer address to the data as Python :class:`int`.""" + return (self._ptr) + + cdef intptr_t _get_ptr(self): + return (self._ptr) + + def __int__(self): + return (self._ptr) + + def __eq__(self, other): + cdef NvlinkGetRemapTableInfo_v1 other_ + if not isinstance(other, NvlinkGetRemapTableInfo_v1): + return False + other_ = other + return (_cyb_memcmp((self._ptr), (other_._ptr), sizeof(nvmlNvlinkGetRemapTableInfo_v1_t)) == 0) + + def __getbuffer__(self, _cyb_cpython.Py_buffer *buffer, int flags): + _cyb___getbuffer(self, buffer, self._ptr, sizeof(nvmlNvlinkGetRemapTableInfo_v1_t), self._readonly) + + def __releasebuffer__(self, Py_buffer *buffer): + pass + + def __setitem__(self, key, val): + cdef _cyb_Py_buffer view + if key == 0: + if self._readonly: + raise ValueError("This NvlinkGetRemapTableInfo_v1 instance is read-only") + _cyb_PyObject_GetBuffer(val, &view, _cyb_PyBUF_SIMPLE) + try: + if view.len < sizeof(nvmlNvlinkGetRemapTableInfo_v1_t): + raise ValueError( + "source buffer too small: expected at least %d bytes, got %d" % (sizeof(nvmlNvlinkGetRemapTableInfo_v1_t), view.len) + ) + _cyb_memmove(&self._data, view.buf, sizeof(nvmlNvlinkGetRemapTableInfo_v1_t)) + self._ptr = &self._data + self._owner = None + self._readonly = view.readonly != 0 + finally: + _cyb_PyBuffer_Release(&view) + else: + setattr(self, key, val) + + @property + def alid(self): + """int: ALID of the GPU.""" + return self._ptr[0].alid + + @alid.setter + def alid(self, val): + if self._readonly: + raise ValueError("This NvlinkGetRemapTableInfo_v1 instance is read-only") + self._ptr[0].alid = val + + @property + def fla_remap_tab_addr(self): + """~_numpy.uint32: (array of length 4096).FLA remap table addrs for all the remap table entries.""" + if self._ptr[0].remapTabSize == 0: + return _numpy.array([]) + cdef _cyb_view.array arr = _cyb_view.array(shape=(self._ptr[0].remapTabSize,), itemsize=sizeof(unsigned int), format="I", mode="c", allocate_buffer=False) + arr.data = (&(self._ptr[0].flaRemapTabAddr)) + return _numpy.asarray(arr) + + @fla_remap_tab_addr.setter + def fla_remap_tab_addr(self, val): + if self._readonly: + raise ValueError("This NvlinkGetRemapTableInfo_v1 instance is read-only") + if len(val) > 4096: + raise ValueError(f"Too many elements for field fla_remap_tab_addr, max is 4096, got {len(val)}") + self._ptr[0].remapTabSize = len(val) + if len(val) == 0: + return + cdef _cyb_view.array arr = _cyb_view.array(shape=(self._ptr[0].remapTabSize,), itemsize=sizeof(unsigned int), format="I", mode="c") + arr[:] = _numpy.asarray(val, dtype=_numpy.uint32) + _cyb_memcpy((&(self._ptr[0].flaRemapTabAddr)), (arr.data), sizeof(unsigned int) * len(val)) + + @property + def gpa_remap_tab_addr(self): + """~_numpy.uint32: (array of length 4096).SPA/GPA remap table addrs for all the remap table entries.""" + if self._ptr[0].remapTabSize == 0: + return _numpy.array([]) + cdef _cyb_view.array arr = _cyb_view.array(shape=(self._ptr[0].remapTabSize,), itemsize=sizeof(unsigned int), format="I", mode="c", allocate_buffer=False) + arr.data = (&(self._ptr[0].gpaRemapTabAddr)) + return _numpy.asarray(arr) + + @gpa_remap_tab_addr.setter + def gpa_remap_tab_addr(self, val): + if self._readonly: + raise ValueError("This NvlinkGetRemapTableInfo_v1 instance is read-only") + if len(val) > 4096: + raise ValueError(f"Too many elements for field gpa_remap_tab_addr, max is 4096, got {len(val)}") + self._ptr[0].remapTabSize = len(val) + if len(val) == 0: + return + cdef _cyb_view.array arr = _cyb_view.array(shape=(self._ptr[0].remapTabSize,), itemsize=sizeof(unsigned int), format="I", mode="c") + arr[:] = _numpy.asarray(val, dtype=_numpy.uint32) + _cyb_memcpy((&(self._ptr[0].gpaRemapTabAddr)), (arr.data), sizeof(unsigned int) * len(val)) + + @staticmethod + def from_buffer(buffer): + """Create an NvlinkGetRemapTableInfo_v1 instance with the memory from the given buffer.""" + return _cyb_from_buffer(buffer, sizeof(nvmlNvlinkGetRemapTableInfo_v1_t), NvlinkGetRemapTableInfo_v1) + + @staticmethod + def from_data(data): + """Create an NvlinkGetRemapTableInfo_v1 instance wrapping the given NumPy array. + + Args: + data (_numpy.ndarray): a single-element array of dtype `nvlink_get_remap_table_info_v1_dtype` holding the data. + """ + return _cyb_from_data(data, "nvlink_get_remap_table_info_v1_dtype", nvlink_get_remap_table_info_v1_dtype, NvlinkGetRemapTableInfo_v1) + + @staticmethod + def from_ptr(intptr_t ptr, bint readonly=False, object owner=None): + """Create an NvlinkGetRemapTableInfo_v1 instance wrapping the given pointer. + + Args: + ptr (intptr_t): pointer address as Python :class:`int` to the data. + owner (object): The Python object that owns the pointer. If not provided, data will be copied. + readonly (bool): whether the data is read-only (to the user). default is `False`. + """ + if ptr == 0: + raise ValueError("ptr must not be null (0)") + cdef NvlinkGetRemapTableInfo_v1 obj = NvlinkGetRemapTableInfo_v1.__new__(NvlinkGetRemapTableInfo_v1) + if owner is None: + _cyb_memcpy(&obj._data, ptr, sizeof(nvmlNvlinkGetRemapTableInfo_v1_t)) + obj._ptr = &obj._data + obj._owner = None + else: + obj._ptr = ptr + obj._owner = owner + obj._readonly = readonly + return obj + + +cdef _get_nvlink_set_nvle_ready_v1_dtype_offsets(): + cdef nvmlNvlinkSetNvleReady_v1_t pod + return _numpy.dtype({ + 'names': ['b_nvle_ready'], + 'formats': [_numpy.uint8], + 'offsets': [ + (&(pod.bNvleReady)) - (&pod), + ], + 'itemsize': sizeof(nvmlNvlinkSetNvleReady_v1_t), + }) + +nvlink_set_nvle_ready_v1_dtype = _get_nvlink_set_nvle_ready_v1_dtype_offsets() + +cdef class NvlinkSetNvleReady_v1: + """Empty-initialize an instance of `nvmlNvlinkSetNvleReady_v1_t`. + + + .. seealso:: `nvmlNvlinkSetNvleReady_v1_t` + """ + cdef: + nvmlNvlinkSetNvleReady_v1_t _data + nvmlNvlinkSetNvleReady_v1_t *_ptr + object _owner + bint _readonly + + def __init__(self): + self._ptr = &self._data + self._owner = None + self._readonly = False + + def __repr__(self): + return f"<{__name__}.NvlinkSetNvleReady_v1 object at {hex(id(self))}>" + + @property + def ptr(self): + """Get the pointer address to the data as Python :class:`int`.""" + return (self._ptr) + + cdef intptr_t _get_ptr(self): + return (self._ptr) + + def __int__(self): + return (self._ptr) + + def __eq__(self, other): + cdef NvlinkSetNvleReady_v1 other_ + if not isinstance(other, NvlinkSetNvleReady_v1): + return False + other_ = other + return (_cyb_memcmp((self._ptr), (other_._ptr), sizeof(nvmlNvlinkSetNvleReady_v1_t)) == 0) + + def __getbuffer__(self, _cyb_cpython.Py_buffer *buffer, int flags): + _cyb___getbuffer(self, buffer, self._ptr, sizeof(nvmlNvlinkSetNvleReady_v1_t), self._readonly) + + def __releasebuffer__(self, Py_buffer *buffer): + pass + + def __setitem__(self, key, val): + cdef _cyb_Py_buffer view + if key == 0: + if self._readonly: + raise ValueError("This NvlinkSetNvleReady_v1 instance is read-only") + _cyb_PyObject_GetBuffer(val, &view, _cyb_PyBUF_SIMPLE) + try: + if view.len < sizeof(nvmlNvlinkSetNvleReady_v1_t): + raise ValueError( + "source buffer too small: expected at least %d bytes, got %d" % (sizeof(nvmlNvlinkSetNvleReady_v1_t), view.len) + ) + _cyb_memmove(&self._data, view.buf, sizeof(nvmlNvlinkSetNvleReady_v1_t)) + self._ptr = &self._data + self._owner = None + self._readonly = view.readonly != 0 + finally: + _cyb_PyBuffer_Release(&view) + else: + setattr(self, key, val) + + @property + def b_nvle_ready(self): + """int: Whether NVLE is ready on the GPU.""" + return self._ptr[0].bNvleReady + + @b_nvle_ready.setter + def b_nvle_ready(self, val): + if self._readonly: + raise ValueError("This NvlinkSetNvleReady_v1 instance is read-only") + self._ptr[0].bNvleReady = val + + @staticmethod + def from_buffer(buffer): + """Create an NvlinkSetNvleReady_v1 instance with the memory from the given buffer.""" + return _cyb_from_buffer(buffer, sizeof(nvmlNvlinkSetNvleReady_v1_t), NvlinkSetNvleReady_v1) + + @staticmethod + def from_data(data): + """Create an NvlinkSetNvleReady_v1 instance wrapping the given NumPy array. + + Args: + data (_numpy.ndarray): a single-element array of dtype `nvlink_set_nvle_ready_v1_dtype` holding the data. + """ + return _cyb_from_data(data, "nvlink_set_nvle_ready_v1_dtype", nvlink_set_nvle_ready_v1_dtype, NvlinkSetNvleReady_v1) + + @staticmethod + def from_ptr(intptr_t ptr, bint readonly=False, object owner=None): + """Create an NvlinkSetNvleReady_v1 instance wrapping the given pointer. + + Args: + ptr (intptr_t): pointer address as Python :class:`int` to the data. + owner (object): The Python object that owns the pointer. If not provided, data will be copied. + readonly (bool): whether the data is read-only (to the user). default is `False`. + """ + if ptr == 0: + raise ValueError("ptr must not be null (0)") + cdef NvlinkSetNvleReady_v1 obj = NvlinkSetNvleReady_v1.__new__(NvlinkSetNvleReady_v1) + if owner is None: + _cyb_memcpy(&obj._data, ptr, sizeof(nvmlNvlinkSetNvleReady_v1_t)) + obj._ptr = &obj._data + obj._owner = None + else: + obj._ptr = ptr + obj._owner = owner + obj._readonly = readonly + return obj + + +cdef _get_nvlink_lock_remap_table_v1_dtype_offsets(): + cdef nvmlNvlinkLockRemapTable_v1_t pod + return _numpy.dtype({ + 'names': ['b_remap_table_locked', 'b_remap_table_lock_disabled'], + 'formats': [_numpy.uint8, _numpy.uint8], + 'offsets': [ + (&(pod.bRemapTableLocked)) - (&pod), + (&(pod.bRemapTableLockDisabled)) - (&pod), + ], + 'itemsize': sizeof(nvmlNvlinkLockRemapTable_v1_t), + }) + +nvlink_lock_remap_table_v1_dtype = _get_nvlink_lock_remap_table_v1_dtype_offsets() + +cdef class NvlinkLockRemapTable_v1: + """Empty-initialize an instance of `nvmlNvlinkLockRemapTable_v1_t`. + + + .. seealso:: `nvmlNvlinkLockRemapTable_v1_t` + """ + cdef: + nvmlNvlinkLockRemapTable_v1_t _data + nvmlNvlinkLockRemapTable_v1_t *_ptr + object _owner + bint _readonly + + def __init__(self): + self._ptr = &self._data + self._owner = None + self._readonly = False + + def __repr__(self): + return f"<{__name__}.NvlinkLockRemapTable_v1 object at {hex(id(self))}>" + + @property + def ptr(self): + """Get the pointer address to the data as Python :class:`int`.""" + return (self._ptr) + + cdef intptr_t _get_ptr(self): + return (self._ptr) + + def __int__(self): + return (self._ptr) + + def __eq__(self, other): + cdef NvlinkLockRemapTable_v1 other_ + if not isinstance(other, NvlinkLockRemapTable_v1): + return False + other_ = other + return (_cyb_memcmp((self._ptr), (other_._ptr), sizeof(nvmlNvlinkLockRemapTable_v1_t)) == 0) + + def __getbuffer__(self, _cyb_cpython.Py_buffer *buffer, int flags): + _cyb___getbuffer(self, buffer, self._ptr, sizeof(nvmlNvlinkLockRemapTable_v1_t), self._readonly) + + def __releasebuffer__(self, Py_buffer *buffer): + pass + + def __setitem__(self, key, val): + cdef _cyb_Py_buffer view + if key == 0: + if self._readonly: + raise ValueError("This NvlinkLockRemapTable_v1 instance is read-only") + _cyb_PyObject_GetBuffer(val, &view, _cyb_PyBUF_SIMPLE) + try: + if view.len < sizeof(nvmlNvlinkLockRemapTable_v1_t): + raise ValueError( + "source buffer too small: expected at least %d bytes, got %d" % (sizeof(nvmlNvlinkLockRemapTable_v1_t), view.len) + ) + _cyb_memmove(&self._data, view.buf, sizeof(nvmlNvlinkLockRemapTable_v1_t)) + self._ptr = &self._data + self._owner = None + self._readonly = view.readonly != 0 + finally: + _cyb_PyBuffer_Release(&view) + else: + setattr(self, key, val) + + @property + def b_remap_table_locked(self): + """int: Whether the remap table of the GPU is locked.""" + return self._ptr[0].bRemapTableLocked + + @b_remap_table_locked.setter + def b_remap_table_locked(self, val): + if self._readonly: + raise ValueError("This NvlinkLockRemapTable_v1 instance is read-only") + self._ptr[0].bRemapTableLocked = val + + @property + def b_remap_table_lock_disabled(self): + """int: Whether locking of the remap table is disabled.""" + return self._ptr[0].bRemapTableLockDisabled + + @b_remap_table_lock_disabled.setter + def b_remap_table_lock_disabled(self, val): + if self._readonly: + raise ValueError("This NvlinkLockRemapTable_v1 instance is read-only") + self._ptr[0].bRemapTableLockDisabled = val + + @staticmethod + def from_buffer(buffer): + """Create an NvlinkLockRemapTable_v1 instance with the memory from the given buffer.""" + return _cyb_from_buffer(buffer, sizeof(nvmlNvlinkLockRemapTable_v1_t), NvlinkLockRemapTable_v1) + + @staticmethod + def from_data(data): + """Create an NvlinkLockRemapTable_v1 instance wrapping the given NumPy array. + + Args: + data (_numpy.ndarray): a single-element array of dtype `nvlink_lock_remap_table_v1_dtype` holding the data. + """ + return _cyb_from_data(data, "nvlink_lock_remap_table_v1_dtype", nvlink_lock_remap_table_v1_dtype, NvlinkLockRemapTable_v1) + + @staticmethod + def from_ptr(intptr_t ptr, bint readonly=False, object owner=None): + """Create an NvlinkLockRemapTable_v1 instance wrapping the given pointer. + + Args: + ptr (intptr_t): pointer address as Python :class:`int` to the data. + owner (object): The Python object that owns the pointer. If not provided, data will be copied. + readonly (bool): whether the data is read-only (to the user). default is `False`. + """ + if ptr == 0: + raise ValueError("ptr must not be null (0)") + cdef NvlinkLockRemapTable_v1 obj = NvlinkLockRemapTable_v1.__new__(NvlinkLockRemapTable_v1) + if owner is None: + _cyb_memcpy(&obj._data, ptr, sizeof(nvmlNvlinkLockRemapTable_v1_t)) + obj._ptr = &obj._data + obj._owner = None + else: + obj._ptr = ptr + obj._owner = owner + obj._readonly = readonly + return obj + + +cdef _get_nvlink_nvle_private_info_v1_dtype_offsets(): + cdef nvmlNvlinkNvlePrivateInfo_v1_t pod + return _numpy.dtype({ + 'names': ['data_', 'size_'], + 'formats': [(_numpy.uint8, 256), _numpy.uint32], + 'offsets': [ + (&(pod.data)) - (&pod), + (&(pod.size)) - (&pod), + ], + 'itemsize': sizeof(nvmlNvlinkNvlePrivateInfo_v1_t), + }) + +nvlink_nvle_private_info_v1_dtype = _get_nvlink_nvle_private_info_v1_dtype_offsets() + +cdef class NvlinkNvlePrivateInfo_v1: + """Empty-initialize an instance of `nvmlNvlinkNvlePrivateInfo_v1_t`. + + + .. seealso:: `nvmlNvlinkNvlePrivateInfo_v1_t` + """ + cdef: + nvmlNvlinkNvlePrivateInfo_v1_t *_ptr + object _owner + bint _owns_ptr + bint _readonly + + def __init__(self): + self._ptr = _cyb_calloc(1, sizeof(nvmlNvlinkNvlePrivateInfo_v1_t)) + if self._ptr == NULL: + raise MemoryError("Error allocating NvlinkNvlePrivateInfo_v1") + self._owns_ptr = True + self._owner = None + self._readonly = False + + def __dealloc__(self): + cdef nvmlNvlinkNvlePrivateInfo_v1_t *ptr + if self._owns_ptr and self._ptr != NULL: + ptr = self._ptr + self._ptr = NULL + _cyb_free(ptr) + + def __repr__(self): + return f"<{__name__}.NvlinkNvlePrivateInfo_v1 object at {hex(id(self))}>" + + @property + def ptr(self): + """Get the pointer address to the data as Python :class:`int`.""" + return (self._ptr) + + cdef intptr_t _get_ptr(self): + return (self._ptr) + + def __int__(self): + return (self._ptr) + + def __eq__(self, other): + cdef NvlinkNvlePrivateInfo_v1 other_ + if not isinstance(other, NvlinkNvlePrivateInfo_v1): + return False + other_ = other + return (_cyb_memcmp((self._ptr), (other_._ptr), sizeof(nvmlNvlinkNvlePrivateInfo_v1_t)) == 0) + + def __getbuffer__(self, _cyb_cpython.Py_buffer *buffer, int flags): + _cyb___getbuffer(self, buffer, self._ptr, sizeof(nvmlNvlinkNvlePrivateInfo_v1_t), self._readonly) + + def __releasebuffer__(self, Py_buffer *buffer): + pass + + def __setitem__(self, key, val): + cdef _cyb_Py_buffer view + if key == 0: + if self._readonly: + raise ValueError("This NvlinkNvlePrivateInfo_v1 instance is read-only") + _cyb_PyObject_GetBuffer(val, &view, _cyb_PyBUF_SIMPLE) + try: + if view.len < sizeof(nvmlNvlinkNvlePrivateInfo_v1_t): + raise ValueError( + "source buffer too small: expected at least %d bytes, got %d" % (sizeof(nvmlNvlinkNvlePrivateInfo_v1_t), view.len) + ) + _cyb_memmove(self._ptr, view.buf, sizeof(nvmlNvlinkNvlePrivateInfo_v1_t)) + self._readonly = view.readonly != 0 + finally: + _cyb_PyBuffer_Release(&view) + else: + setattr(self, key, val) + + @property + def data_(self): + """~_numpy.uint8: (array of length 256).Buffer that receives the opaque private info blob.""" + if self._ptr[0].size == 0: + return _numpy.array([]) + cdef _cyb_view.array arr = _cyb_view.array(shape=(self._ptr[0].size,), itemsize=sizeof(unsigned char), format="B", mode="c", allocate_buffer=False) + arr.data = (&(self._ptr[0].data)) + return _numpy.asarray(arr) + + @data_.setter + def data_(self, val): + if self._readonly: + raise ValueError("This NvlinkNvlePrivateInfo_v1 instance is read-only") + if len(val) > 256: + raise ValueError(f"Too many elements for field data_, max is 256, got {len(val)}") + self._ptr[0].size = len(val) + if len(val) == 0: + return + cdef _cyb_view.array arr = _cyb_view.array(shape=(self._ptr[0].size,), itemsize=sizeof(unsigned char), format="B", mode="c") + arr[:] = _numpy.asarray(val, dtype=_numpy.uint8) + _cyb_memcpy((&(self._ptr[0].data)), (arr.data), sizeof(unsigned char) * len(val)) + + @staticmethod + def from_buffer(buffer): + """Create an NvlinkNvlePrivateInfo_v1 instance with the memory from the given buffer.""" + return _cyb_from_buffer(buffer, sizeof(nvmlNvlinkNvlePrivateInfo_v1_t), NvlinkNvlePrivateInfo_v1) + + @staticmethod + def from_data(data): + """Create an NvlinkNvlePrivateInfo_v1 instance wrapping the given NumPy array. + + Args: + data (_numpy.ndarray): a single-element array of dtype `nvlink_nvle_private_info_v1_dtype` holding the data. + """ + return _cyb_from_data(data, "nvlink_nvle_private_info_v1_dtype", nvlink_nvle_private_info_v1_dtype, NvlinkNvlePrivateInfo_v1) + + @staticmethod + def from_ptr(intptr_t ptr, bint readonly=False, object owner=None): + """Create an NvlinkNvlePrivateInfo_v1 instance wrapping the given pointer. + + Args: + ptr (intptr_t): pointer address as Python :class:`int` to the data. + owner (object): The Python object that owns the pointer. If not provided, data will be copied. + readonly (bool): whether the data is read-only (to the user). default is `False`. + """ + if ptr == 0: + raise ValueError("ptr must not be null (0)") + cdef NvlinkNvlePrivateInfo_v1 obj = NvlinkNvlePrivateInfo_v1.__new__(NvlinkNvlePrivateInfo_v1) + if owner is None: + obj._ptr = _cyb_malloc(sizeof(nvmlNvlinkNvlePrivateInfo_v1_t)) + if obj._ptr == NULL: + raise MemoryError("Error allocating NvlinkNvlePrivateInfo_v1") + _cyb_memcpy((obj._ptr), ptr, sizeof(nvmlNvlinkNvlePrivateInfo_v1_t)) + obj._owns_ptr = True + obj._owner = None + else: + obj._ptr = ptr + obj._owns_ptr = False + obj._owner = owner obj._readonly = readonly return obj @@ -21204,6 +22519,7 @@ cdef _get_sample_dtype_offsets(): }) sample_dtype = _get_sample_dtype_offsets() +cdef object sample_dtype_record = _numpy.dtype((_numpy.record, sample_dtype)) cdef class Sample: """Empty-initialize an array of `nvmlSample_t`. @@ -21220,8 +22536,7 @@ cdef class Sample: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=sample_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=sample_dtype_record) assert self._data.itemsize == sizeof(nvmlSample_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlSample_t) }" @@ -21234,17 +22549,17 @@ cdef class Sample: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -21265,25 +22580,30 @@ cdef class Sample: def time_stamp(self): """Union[~_numpy.uint64, int]: """ if self._data.size == 1: - return int(self._data.time_stamp[0]) - return self._data.time_stamp + return int(self._data["time_stamp"][0]) + return self._data["time_stamp"] @time_stamp.setter def time_stamp(self, val): - self._data.time_stamp = val + if not self._data.flags.writeable: + raise ValueError("This Sample instance is read-only") + self._data["time_stamp"] = val @property def sample_value(self): """value_dtype: """ - return self._data.sample_value + return self._data["sample_value"].view(_numpy.recarray) @sample_value.setter def sample_value(self, val): - self._data.sample_value = val + if not self._data.flags.writeable: + raise ValueError("This Sample instance is read-only") + self._data["sample_value"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef Sample obj if isinstance(key, int): key_ = key size = self._data.size @@ -21291,10 +22611,18 @@ cdef class Sample: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return Sample.from_data(self._data[key_:key_+1]) + obj = Sample.__new__(Sample) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == sample_dtype: - return Sample.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == sample_dtype: + obj = Sample.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -21319,8 +22647,7 @@ cdef class Sample: raise ValueError("data array must be 1D") if data.dtype != sample_dtype: raise ValueError("data array must be of dtype sample_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=sample_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -21340,10 +22667,8 @@ cdef class Sample: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlSample_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=sample_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=sample_dtype_record) obj._owner = owner - return obj @@ -21364,6 +22689,7 @@ cdef _get_vgpu_instance_utilization_sample_dtype_offsets(): }) vgpu_instance_utilization_sample_dtype = _get_vgpu_instance_utilization_sample_dtype_offsets() +cdef object vgpu_instance_utilization_sample_dtype_record = _numpy.dtype((_numpy.record, vgpu_instance_utilization_sample_dtype)) cdef class VgpuInstanceUtilizationSample: """Empty-initialize an array of `nvmlVgpuInstanceUtilizationSample_t`. @@ -21380,8 +22706,7 @@ cdef class VgpuInstanceUtilizationSample: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=vgpu_instance_utilization_sample_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=vgpu_instance_utilization_sample_dtype_record) assert self._data.itemsize == sizeof(nvmlVgpuInstanceUtilizationSample_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlVgpuInstanceUtilizationSample_t) }" @@ -21394,17 +22719,17 @@ cdef class VgpuInstanceUtilizationSample: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -21425,63 +22750,76 @@ cdef class VgpuInstanceUtilizationSample: def vgpu_instance(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.vgpu_instance[0]) - return self._data.vgpu_instance + return int(self._data["vgpu_instance"][0]) + return self._data["vgpu_instance"] @vgpu_instance.setter def vgpu_instance(self, val): - self._data.vgpu_instance = val + if not self._data.flags.writeable: + raise ValueError("This VgpuInstanceUtilizationSample instance is read-only") + self._data["vgpu_instance"] = val @property def time_stamp(self): """Union[~_numpy.uint64, int]: """ if self._data.size == 1: - return int(self._data.time_stamp[0]) - return self._data.time_stamp + return int(self._data["time_stamp"][0]) + return self._data["time_stamp"] @time_stamp.setter def time_stamp(self, val): - self._data.time_stamp = val + if not self._data.flags.writeable: + raise ValueError("This VgpuInstanceUtilizationSample instance is read-only") + self._data["time_stamp"] = val @property def sm_util(self): """value_dtype: """ - return self._data.sm_util + return self._data["sm_util"].view(_numpy.recarray) @sm_util.setter def sm_util(self, val): - self._data.sm_util = val + if not self._data.flags.writeable: + raise ValueError("This VgpuInstanceUtilizationSample instance is read-only") + self._data["sm_util"] = val @property def mem_util(self): """value_dtype: """ - return self._data.mem_util + return self._data["mem_util"].view(_numpy.recarray) @mem_util.setter def mem_util(self, val): - self._data.mem_util = val + if not self._data.flags.writeable: + raise ValueError("This VgpuInstanceUtilizationSample instance is read-only") + self._data["mem_util"] = val @property def enc_util(self): """value_dtype: """ - return self._data.enc_util + return self._data["enc_util"].view(_numpy.recarray) @enc_util.setter def enc_util(self, val): - self._data.enc_util = val + if not self._data.flags.writeable: + raise ValueError("This VgpuInstanceUtilizationSample instance is read-only") + self._data["enc_util"] = val @property def dec_util(self): """value_dtype: """ - return self._data.dec_util + return self._data["dec_util"].view(_numpy.recarray) @dec_util.setter def dec_util(self, val): - self._data.dec_util = val + if not self._data.flags.writeable: + raise ValueError("This VgpuInstanceUtilizationSample instance is read-only") + self._data["dec_util"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef VgpuInstanceUtilizationSample obj if isinstance(key, int): key_ = key size = self._data.size @@ -21489,10 +22827,18 @@ cdef class VgpuInstanceUtilizationSample: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return VgpuInstanceUtilizationSample.from_data(self._data[key_:key_+1]) + obj = VgpuInstanceUtilizationSample.__new__(VgpuInstanceUtilizationSample) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == vgpu_instance_utilization_sample_dtype: - return VgpuInstanceUtilizationSample.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == vgpu_instance_utilization_sample_dtype: + obj = VgpuInstanceUtilizationSample.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -21517,8 +22863,7 @@ cdef class VgpuInstanceUtilizationSample: raise ValueError("data array must be 1D") if data.dtype != vgpu_instance_utilization_sample_dtype: raise ValueError("data array must be of dtype vgpu_instance_utilization_sample_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=vgpu_instance_utilization_sample_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -21538,10 +22883,8 @@ cdef class VgpuInstanceUtilizationSample: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlVgpuInstanceUtilizationSample_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=vgpu_instance_utilization_sample_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=vgpu_instance_utilization_sample_dtype_record) obj._owner = owner - return obj @@ -21564,6 +22907,7 @@ cdef _get_vgpu_instance_utilization_info_v1_dtype_offsets(): }) vgpu_instance_utilization_info_v1_dtype = _get_vgpu_instance_utilization_info_v1_dtype_offsets() +cdef object vgpu_instance_utilization_info_v1_dtype_record = _numpy.dtype((_numpy.record, vgpu_instance_utilization_info_v1_dtype)) cdef class VgpuInstanceUtilizationInfo_v1: """Empty-initialize an array of `nvmlVgpuInstanceUtilizationInfo_v1_t`. @@ -21580,8 +22924,7 @@ cdef class VgpuInstanceUtilizationInfo_v1: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=vgpu_instance_utilization_info_v1_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=vgpu_instance_utilization_info_v1_dtype_record) assert self._data.itemsize == sizeof(nvmlVgpuInstanceUtilizationInfo_v1_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlVgpuInstanceUtilizationInfo_v1_t) }" @@ -21594,17 +22937,17 @@ cdef class VgpuInstanceUtilizationInfo_v1: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -21625,81 +22968,98 @@ cdef class VgpuInstanceUtilizationInfo_v1: def time_stamp(self): """Union[~_numpy.uint64, int]: CPU Timestamp in microseconds.""" if self._data.size == 1: - return int(self._data.time_stamp[0]) - return self._data.time_stamp + return int(self._data["time_stamp"][0]) + return self._data["time_stamp"] @time_stamp.setter def time_stamp(self, val): - self._data.time_stamp = val + if not self._data.flags.writeable: + raise ValueError("This VgpuInstanceUtilizationInfo_v1 instance is read-only") + self._data["time_stamp"] = val @property def vgpu_instance(self): """Union[~_numpy.uint32, int]: vGPU Instance""" if self._data.size == 1: - return int(self._data.vgpu_instance[0]) - return self._data.vgpu_instance + return int(self._data["vgpu_instance"][0]) + return self._data["vgpu_instance"] @vgpu_instance.setter def vgpu_instance(self, val): - self._data.vgpu_instance = val + if not self._data.flags.writeable: + raise ValueError("This VgpuInstanceUtilizationInfo_v1 instance is read-only") + self._data["vgpu_instance"] = val @property def sm_util(self): """value_dtype: SM (3D/Compute) Util Value.""" - return self._data.sm_util + return self._data["sm_util"].view(_numpy.recarray) @sm_util.setter def sm_util(self, val): - self._data.sm_util = val + if not self._data.flags.writeable: + raise ValueError("This VgpuInstanceUtilizationInfo_v1 instance is read-only") + self._data["sm_util"] = val @property def mem_util(self): """value_dtype: Frame Buffer Memory Util Value.""" - return self._data.mem_util + return self._data["mem_util"].view(_numpy.recarray) @mem_util.setter def mem_util(self, val): - self._data.mem_util = val + if not self._data.flags.writeable: + raise ValueError("This VgpuInstanceUtilizationInfo_v1 instance is read-only") + self._data["mem_util"] = val @property def enc_util(self): """value_dtype: Encoder Util Value.""" - return self._data.enc_util + return self._data["enc_util"].view(_numpy.recarray) @enc_util.setter def enc_util(self, val): - self._data.enc_util = val + if not self._data.flags.writeable: + raise ValueError("This VgpuInstanceUtilizationInfo_v1 instance is read-only") + self._data["enc_util"] = val @property def dec_util(self): """value_dtype: Decoder Util Value.""" - return self._data.dec_util + return self._data["dec_util"].view(_numpy.recarray) @dec_util.setter def dec_util(self, val): - self._data.dec_util = val + if not self._data.flags.writeable: + raise ValueError("This VgpuInstanceUtilizationInfo_v1 instance is read-only") + self._data["dec_util"] = val @property def jpg_util(self): """value_dtype: Jpeg Util Value.""" - return self._data.jpg_util + return self._data["jpg_util"].view(_numpy.recarray) @jpg_util.setter def jpg_util(self, val): - self._data.jpg_util = val + if not self._data.flags.writeable: + raise ValueError("This VgpuInstanceUtilizationInfo_v1 instance is read-only") + self._data["jpg_util"] = val @property def ofa_util(self): """value_dtype: Ofa Util Value.""" - return self._data.ofa_util + return self._data["ofa_util"].view(_numpy.recarray) @ofa_util.setter def ofa_util(self, val): - self._data.ofa_util = val + if not self._data.flags.writeable: + raise ValueError("This VgpuInstanceUtilizationInfo_v1 instance is read-only") + self._data["ofa_util"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef VgpuInstanceUtilizationInfo_v1 obj if isinstance(key, int): key_ = key size = self._data.size @@ -21707,10 +23067,18 @@ cdef class VgpuInstanceUtilizationInfo_v1: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return VgpuInstanceUtilizationInfo_v1.from_data(self._data[key_:key_+1]) + obj = VgpuInstanceUtilizationInfo_v1.__new__(VgpuInstanceUtilizationInfo_v1) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == vgpu_instance_utilization_info_v1_dtype: - return VgpuInstanceUtilizationInfo_v1.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == vgpu_instance_utilization_info_v1_dtype: + obj = VgpuInstanceUtilizationInfo_v1.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -21735,8 +23103,7 @@ cdef class VgpuInstanceUtilizationInfo_v1: raise ValueError("data array must be 1D") if data.dtype != vgpu_instance_utilization_info_v1_dtype: raise ValueError("data array must be of dtype vgpu_instance_utilization_info_v1_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=vgpu_instance_utilization_info_v1_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -21756,10 +23123,8 @@ cdef class VgpuInstanceUtilizationInfo_v1: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlVgpuInstanceUtilizationInfo_v1_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=vgpu_instance_utilization_info_v1_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=vgpu_instance_utilization_info_v1_dtype_record) obj._owner = owner - return obj @@ -21781,6 +23146,7 @@ cdef _get_field_value_dtype_offsets(): }) field_value_dtype = _get_field_value_dtype_offsets() +cdef object field_value_dtype_record = _numpy.dtype((_numpy.record, field_value_dtype)) cdef class FieldValue: """Empty-initialize an array of `nvmlFieldValue_t`. @@ -21797,8 +23163,7 @@ cdef class FieldValue: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=field_value_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=field_value_dtype_record) assert self._data.itemsize == sizeof(nvmlFieldValue_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlFieldValue_t) }" @@ -21811,17 +23176,17 @@ cdef class FieldValue: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -21842,80 +23207,95 @@ cdef class FieldValue: def field_id(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.field_id[0]) - return self._data.field_id + return int(self._data["field_id"][0]) + return self._data["field_id"] @field_id.setter def field_id(self, val): - self._data.field_id = val + if not self._data.flags.writeable: + raise ValueError("This FieldValue instance is read-only") + self._data["field_id"] = val @property def scope_id(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.scope_id[0]) - return self._data.scope_id + return int(self._data["scope_id"][0]) + return self._data["scope_id"] @scope_id.setter def scope_id(self, val): - self._data.scope_id = val + if not self._data.flags.writeable: + raise ValueError("This FieldValue instance is read-only") + self._data["scope_id"] = val @property def timestamp(self): """Union[~_numpy.int64, int]: """ if self._data.size == 1: - return int(self._data.timestamp[0]) - return self._data.timestamp + return int(self._data["timestamp"][0]) + return self._data["timestamp"] @timestamp.setter def timestamp(self, val): - self._data.timestamp = val + if not self._data.flags.writeable: + raise ValueError("This FieldValue instance is read-only") + self._data["timestamp"] = val @property def latency_usec(self): """Union[~_numpy.int64, int]: """ if self._data.size == 1: - return int(self._data.latency_usec[0]) - return self._data.latency_usec + return int(self._data["latency_usec"][0]) + return self._data["latency_usec"] @latency_usec.setter def latency_usec(self, val): - self._data.latency_usec = val + if not self._data.flags.writeable: + raise ValueError("This FieldValue instance is read-only") + self._data["latency_usec"] = val @property def value_type(self): """Union[~_numpy.int32, int]: """ if self._data.size == 1: - return int(self._data.value_type[0]) - return self._data.value_type + return int(self._data["value_type"][0]) + return self._data["value_type"] @value_type.setter def value_type(self, val): - self._data.value_type = val + if not self._data.flags.writeable: + raise ValueError("This FieldValue instance is read-only") + self._data["value_type"] = val @property def nvml_return(self): """Union[~_numpy.int32, int]: """ if self._data.size == 1: - return int(self._data.nvml_return[0]) - return self._data.nvml_return + return int(self._data["nvml_return"][0]) + return self._data["nvml_return"] @nvml_return.setter def nvml_return(self, val): - self._data.nvml_return = val + if not self._data.flags.writeable: + raise ValueError("This FieldValue instance is read-only") + self._data["nvml_return"] = val @property def value(self): """value_dtype: """ - return self._data.value + return self._data["value"].view(_numpy.recarray) @value.setter def value(self, val): - self._data.value = val + if not self._data.flags.writeable: + raise ValueError("This FieldValue instance is read-only") + self._data["value"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef FieldValue obj if isinstance(key, int): key_ = key size = self._data.size @@ -21923,10 +23303,18 @@ cdef class FieldValue: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return FieldValue.from_data(self._data[key_:key_+1]) + obj = FieldValue.__new__(FieldValue) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == field_value_dtype: - return FieldValue.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == field_value_dtype: + obj = FieldValue.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -21951,8 +23339,7 @@ cdef class FieldValue: raise ValueError("data array must be 1D") if data.dtype != field_value_dtype: raise ValueError("data array must be of dtype field_value_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=field_value_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -21972,10 +23359,8 @@ cdef class FieldValue: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlFieldValue_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=field_value_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=field_value_dtype_record) obj._owner = owner - return obj @@ -22002,24 +23387,24 @@ cdef class PRMCounterValue_v1: """ cdef: nvmlPRMCounterValue_v1_t *_ptr - _cyb_PyObject *_owner + object _owner + bint _owns_ptr bint _readonly def __init__(self): self._ptr = _cyb_calloc(1, sizeof(nvmlPRMCounterValue_v1_t)) if self._ptr == NULL: raise MemoryError("Error allocating PRMCounterValue_v1") - self._owner = NULL + self._owns_ptr = True + self._owner = None self._readonly = False def __dealloc__(self): cdef nvmlPRMCounterValue_v1_t *ptr - if self._owner == NULL and self._ptr != NULL: + if self._owns_ptr and self._ptr != NULL: ptr = self._ptr self._ptr = NULL _cyb_free(ptr) - _cyb_Py_CLEAR(self._owner) - self._owner = NULL def __repr__(self): return f"<{__name__}.PRMCounterValue_v1 object at {hex(id(self))}>" @@ -22135,11 +23520,12 @@ cdef class PRMCounterValue_v1: if obj._ptr == NULL: raise MemoryError("Error allocating PRMCounterValue_v1") _cyb_memcpy((obj._ptr), ptr, sizeof(nvmlPRMCounterValue_v1_t)) - obj._owner = NULL + obj._owns_ptr = True + obj._owner = None else: obj._ptr = ptr - obj._owner = <_cyb_PyObject *>owner - _cyb_Py_XINCREF(obj._owner) + obj._owns_ptr = False + obj._owner = owner obj._readonly = readonly return obj @@ -22931,24 +24317,24 @@ cdef class VgpuSchedulerParams: """ cdef: nvmlVgpuSchedulerParams_t *_ptr - _cyb_PyObject *_owner + object _owner + bint _owns_ptr bint _readonly def __init__(self): self._ptr = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerParams_t)) if self._ptr == NULL: raise MemoryError("Error allocating VgpuSchedulerParams") - self._owner = NULL + self._owns_ptr = True + self._owner = None self._readonly = False def __dealloc__(self): cdef nvmlVgpuSchedulerParams_t *ptr - if self._owner == NULL and self._ptr != NULL: + if self._owns_ptr and self._ptr != NULL: ptr = self._ptr self._ptr = NULL _cyb_free(ptr) - _cyb_Py_CLEAR(self._owner) - self._owner = NULL def __repr__(self): return f"<{__name__}.VgpuSchedulerParams object at {hex(id(self))}>" @@ -23058,11 +24444,12 @@ cdef class VgpuSchedulerParams: if obj._ptr == NULL: raise MemoryError("Error allocating VgpuSchedulerParams") _cyb_memcpy((obj._ptr), ptr, sizeof(nvmlVgpuSchedulerParams_t)) - obj._owner = NULL + obj._owns_ptr = True + obj._owner = None else: obj._ptr = ptr - obj._owner = <_cyb_PyObject *>owner - _cyb_Py_XINCREF(obj._owner) + obj._owns_ptr = False + obj._owner = owner obj._readonly = readonly return obj @@ -23089,24 +24476,24 @@ cdef class VgpuSchedulerSetParams: """ cdef: nvmlVgpuSchedulerSetParams_t *_ptr - _cyb_PyObject *_owner + object _owner + bint _owns_ptr bint _readonly def __init__(self): self._ptr = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerSetParams_t)) if self._ptr == NULL: raise MemoryError("Error allocating VgpuSchedulerSetParams") - self._owner = NULL + self._owns_ptr = True + self._owner = None self._readonly = False def __dealloc__(self): cdef nvmlVgpuSchedulerSetParams_t *ptr - if self._owner == NULL and self._ptr != NULL: + if self._owns_ptr and self._ptr != NULL: ptr = self._ptr self._ptr = NULL _cyb_free(ptr) - _cyb_Py_CLEAR(self._owner) - self._owner = NULL def __repr__(self): return f"<{__name__}.VgpuSchedulerSetParams object at {hex(id(self))}>" @@ -23216,11 +24603,12 @@ cdef class VgpuSchedulerSetParams: if obj._ptr == NULL: raise MemoryError("Error allocating VgpuSchedulerSetParams") _cyb_memcpy((obj._ptr), ptr, sizeof(nvmlVgpuSchedulerSetParams_t)) - obj._owner = NULL + obj._owns_ptr = True + obj._owner = None else: obj._ptr = ptr - obj._owner = <_cyb_PyObject *>owner - _cyb_Py_XINCREF(obj._owner) + obj._owns_ptr = False + obj._owner = owner obj._readonly = readonly return obj @@ -23396,6 +24784,7 @@ cdef _get_grid_licensable_feature_dtype_offsets(): }) grid_licensable_feature_dtype = _get_grid_licensable_feature_dtype_offsets() +cdef object grid_licensable_feature_dtype_record = _numpy.dtype((_numpy.record, grid_licensable_feature_dtype)) cdef class GridLicensableFeature: """Empty-initialize an array of `nvmlGridLicensableFeature_t`. @@ -23412,8 +24801,7 @@ cdef class GridLicensableFeature: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=grid_licensable_feature_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=grid_licensable_feature_dtype_record) assert self._data.itemsize == sizeof(nvmlGridLicensableFeature_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlGridLicensableFeature_t) }" @@ -23426,17 +24814,17 @@ cdef class GridLicensableFeature: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -23457,65 +24845,78 @@ cdef class GridLicensableFeature: def feature_code(self): """Union[~_numpy.int32, int]: """ if self._data.size == 1: - return int(self._data.feature_code[0]) - return self._data.feature_code + return int(self._data["feature_code"][0]) + return self._data["feature_code"] @feature_code.setter def feature_code(self, val): - self._data.feature_code = val + if not self._data.flags.writeable: + raise ValueError("This GridLicensableFeature instance is read-only") + self._data["feature_code"] = val @property def feature_state(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.feature_state[0]) - return self._data.feature_state + return int(self._data["feature_state"][0]) + return self._data["feature_state"] @feature_state.setter def feature_state(self, val): - self._data.feature_state = val + if not self._data.flags.writeable: + raise ValueError("This GridLicensableFeature instance is read-only") + self._data["feature_state"] = val @property def license_info(self): """~_numpy.int8: (array of length 128).""" - return self._data.license_info + return self._data["license_info"] @license_info.setter def license_info(self, val): - self._data.license_info = val + if not self._data.flags.writeable: + raise ValueError("This GridLicensableFeature instance is read-only") + self._data["license_info"] = val @property def product_name(self): """~_numpy.int8: (array of length 128).""" - return self._data.product_name + return self._data["product_name"] @product_name.setter def product_name(self, val): - self._data.product_name = val + if not self._data.flags.writeable: + raise ValueError("This GridLicensableFeature instance is read-only") + self._data["product_name"] = val @property def feature_enabled(self): """Union[~_numpy.uint32, int]: """ if self._data.size == 1: - return int(self._data.feature_enabled[0]) - return self._data.feature_enabled + return int(self._data["feature_enabled"][0]) + return self._data["feature_enabled"] @feature_enabled.setter def feature_enabled(self, val): - self._data.feature_enabled = val + if not self._data.flags.writeable: + raise ValueError("This GridLicensableFeature instance is read-only") + self._data["feature_enabled"] = val @property def license_expiry(self): """grid_license_expiry_dtype: """ - return self._data.license_expiry + return self._data["license_expiry"].view(_numpy.recarray) @license_expiry.setter def license_expiry(self, val): - self._data.license_expiry = val + if not self._data.flags.writeable: + raise ValueError("This GridLicensableFeature instance is read-only") + self._data["license_expiry"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef GridLicensableFeature obj if isinstance(key, int): key_ = key size = self._data.size @@ -23523,10 +24924,18 @@ cdef class GridLicensableFeature: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return GridLicensableFeature.from_data(self._data[key_:key_+1]) + obj = GridLicensableFeature.__new__(GridLicensableFeature) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == grid_licensable_feature_dtype: - return GridLicensableFeature.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == grid_licensable_feature_dtype: + obj = GridLicensableFeature.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -23551,8 +24960,7 @@ cdef class GridLicensableFeature: raise ValueError("data array must be 1D") if data.dtype != grid_licensable_feature_dtype: raise ValueError("data array must be of dtype grid_licensable_feature_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=grid_licensable_feature_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -23572,10 +24980,8 @@ cdef class GridLicensableFeature: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlGridLicensableFeature_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=grid_licensable_feature_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=grid_licensable_feature_dtype_record) obj._owner = owner - return obj @@ -24454,24 +25860,24 @@ cdef class NvlinkFirmwareInfo: """ cdef: nvmlNvlinkFirmwareInfo_t *_ptr - _cyb_PyObject *_owner + object _owner + bint _owns_ptr bint _readonly def __init__(self): self._ptr = _cyb_calloc(1, sizeof(nvmlNvlinkFirmwareInfo_t)) if self._ptr == NULL: raise MemoryError("Error allocating NvlinkFirmwareInfo") - self._owner = NULL + self._owns_ptr = True + self._owner = None self._readonly = False def __dealloc__(self): cdef nvmlNvlinkFirmwareInfo_t *ptr - if self._owner == NULL and self._ptr != NULL: + if self._owns_ptr and self._ptr != NULL: ptr = self._ptr self._ptr = NULL _cyb_free(ptr) - _cyb_Py_CLEAR(self._owner) - self._owner = NULL def __repr__(self): return f"<{__name__}.NvlinkFirmwareInfo object at {hex(id(self))}>" @@ -24523,7 +25929,7 @@ cdef class NvlinkFirmwareInfo: """NvlinkFirmwareVersion: OUT - NVLINK firmware version.""" return NvlinkFirmwareVersion.from_ptr( &(self._ptr[0].firmwareVersion), - 100, + self._ptr[0].numValidEntries, readonly=self._readonly, owner=self, ) @@ -24533,20 +25939,12 @@ cdef class NvlinkFirmwareInfo: if self._readonly: raise ValueError("This NvlinkFirmwareInfo instance is read-only") cdef NvlinkFirmwareVersion val_ = val - if len(val) != 100: - raise ValueError(f"Expected length { 100 } for field firmware_version, got {len(val)}") - _cyb_memcpy(&(self._ptr[0].firmwareVersion), (val_._get_ptr()), sizeof(nvmlNvlinkFirmwareVersion_t) * 100) - - @property - def num_valid_entries(self): - """int: OUT - Number of valid firmware entries.""" - return self._ptr[0].numValidEntries - - @num_valid_entries.setter - def num_valid_entries(self, val): - if self._readonly: - raise ValueError("This NvlinkFirmwareInfo instance is read-only") - self._ptr[0].numValidEntries = val + if len(val) > 100: + raise ValueError(f"Expected length < 100 for field firmware_version, got {len(val)}") + self._ptr[0].numValidEntries = len(val) + if len(val) == 0: + return + _cyb_memcpy(&(self._ptr[0].firmwareVersion), (val_._get_ptr()), sizeof(nvmlNvlinkFirmwareVersion_t) * self._ptr[0].numValidEntries) @staticmethod def from_buffer(buffer): @@ -24579,11 +25977,12 @@ cdef class NvlinkFirmwareInfo: if obj._ptr == NULL: raise MemoryError("Error allocating NvlinkFirmwareInfo") _cyb_memcpy((obj._ptr), ptr, sizeof(nvmlNvlinkFirmwareInfo_t)) - obj._owner = NULL + obj._owns_ptr = True + obj._owner = None else: obj._ptr = ptr - obj._owner = <_cyb_PyObject *>owner - _cyb_Py_XINCREF(obj._owner) + obj._owns_ptr = False + obj._owner = owner obj._readonly = readonly return obj @@ -24947,6 +26346,7 @@ cdef _get_core_rail_metrics_dtype_offsets(): }) core_rail_metrics_dtype = _get_core_rail_metrics_dtype_offsets() +cdef object core_rail_metrics_dtype_record = _numpy.dtype((_numpy.record, core_rail_metrics_dtype)) cdef class CoreRailMetrics: """Empty-initialize an array of `nvmlCoreRailMetrics_t`. @@ -24963,8 +26363,7 @@ cdef class CoreRailMetrics: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=core_rail_metrics_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=core_rail_metrics_dtype_record) assert self._data.itemsize == sizeof(nvmlCoreRailMetrics_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlCoreRailMetrics_t) }" @@ -24977,17 +26376,17 @@ cdef class CoreRailMetrics: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -25007,15 +26406,18 @@ cdef class CoreRailMetrics: @property def rails(self): """rail_metrics_dtype: (array of length 2).Array of core rail metrics.""" - return self._data.rails + return self._data["rails"].view(_numpy.recarray) @rails.setter def rails(self, val): - self._data.rails = val + if not self._data.flags.writeable: + raise ValueError("This CoreRailMetrics instance is read-only") + self._data["rails"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef CoreRailMetrics obj if isinstance(key, int): key_ = key size = self._data.size @@ -25023,10 +26425,18 @@ cdef class CoreRailMetrics: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return CoreRailMetrics.from_data(self._data[key_:key_+1]) + obj = CoreRailMetrics.__new__(CoreRailMetrics) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == core_rail_metrics_dtype: - return CoreRailMetrics.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == core_rail_metrics_dtype: + obj = CoreRailMetrics.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -25051,8 +26461,7 @@ cdef class CoreRailMetrics: raise ValueError("data array must be 1D") if data.dtype != core_rail_metrics_dtype: raise ValueError("data array must be of dtype core_rail_metrics_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=core_rail_metrics_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -25072,10 +26481,8 @@ cdef class CoreRailMetrics: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlCoreRailMetrics_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=core_rail_metrics_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=core_rail_metrics_dtype_record) obj._owner = owner - return obj @@ -25096,6 +26503,7 @@ cdef _get_pwr_model_metrics_pfpp1x_dtype_offsets(): }) pwr_model_metrics_pfpp1x_dtype = _get_pwr_model_metrics_pfpp1x_dtype_offsets() +cdef object pwr_model_metrics_pfpp1x_dtype_record = _numpy.dtype((_numpy.record, pwr_model_metrics_pfpp1x_dtype)) cdef class PwrModelMetricsPfpp1x: """Empty-initialize an array of `nvmlPwrModelMetricsPfpp1x_t`. @@ -25113,8 +26521,7 @@ cdef class PwrModelMetricsPfpp1x: readonly tuple _estimated_metrics def __init__(self, size=1): - arr = _numpy.empty(size, dtype=pwr_model_metrics_pfpp1x_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=pwr_model_metrics_pfpp1x_dtype_record) assert self._data.itemsize == sizeof(nvmlPwrModelMetricsPfpp1x_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlPwrModelMetricsPfpp1x_t) }" @@ -25127,17 +26534,17 @@ cdef class PwrModelMetricsPfpp1x: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -25157,6 +26564,19 @@ cdef class PwrModelMetricsPfpp1x: @property def estimated_metrics(self): """PwrModelMetricsSamplePfpp1x: Array of estimated metrics for different operating points.""" + if self._estimated_metrics is None: + estimated_metrics_list = list() + estimated_metrics_base = _cyb_array_ptr(self._data) + estimated_metrics_offset = pwr_model_metrics_pfpp1x_dtype.fields["estimated_metrics"][1] + estimated_metrics_stride = self._data.strides[0] + estimated_metrics_readonly = not self._data.flags.writeable + estimated_metrics_sizes = self._data["num_vf_points"] + for i in range(self._data.size): + addr = estimated_metrics_base + i * estimated_metrics_stride + estimated_metrics_offset + n = int(estimated_metrics_sizes[i]) + estimated_metrics_obj = PwrModelMetricsSamplePfpp1x.from_ptr(addr, n, owner=self, readonly=estimated_metrics_readonly) + estimated_metrics_list.append(estimated_metrics_obj) + self._estimated_metrics = tuple(estimated_metrics_list) if self._data.size == 1: return self._estimated_metrics[0] return self._estimated_metrics @@ -25165,45 +26585,54 @@ cdef class PwrModelMetricsPfpp1x: def b_valid(self): """Union[~_numpy.uint8, int]: Validity flag: non-zero if metrics are valid.""" if self._data.size == 1: - return int(self._data.b_valid[0]) - return self._data.b_valid + return int(self._data["b_valid"][0]) + return self._data["b_valid"] @b_valid.setter def b_valid(self, val): - self._data.b_valid = val + if not self._data.flags.writeable: + raise ValueError("This PwrModelMetricsPfpp1x instance is read-only") + self._data["b_valid"] = val @property def max_perf_per_watt_point(self): """pwr_model_operating_point_pfpp1x_dtype: Operating point with maximum performance per watt.""" - return self._data.max_perf_per_watt_point + return self._data["max_perf_per_watt_point"].view(_numpy.recarray) @max_perf_per_watt_point.setter def max_perf_per_watt_point(self, val): - self._data.max_perf_per_watt_point = val + if not self._data.flags.writeable: + raise ValueError("This PwrModelMetricsPfpp1x instance is read-only") + self._data["max_perf_per_watt_point"] = val @property def fmax_at_vmax_point(self): """pwr_model_operating_point_pfpp1x_dtype: Operating point at maximum frequency and voltage.""" - return self._data.fmax_at_vmax_point + return self._data["fmax_at_vmax_point"].view(_numpy.recarray) @fmax_at_vmax_point.setter def fmax_at_vmax_point(self, val): - self._data.fmax_at_vmax_point = val + if not self._data.flags.writeable: + raise ValueError("This PwrModelMetricsPfpp1x instance is read-only") + self._data["fmax_at_vmax_point"] = val @property def tgp_headroomm_w(self): """Union[~_numpy.uint32, int]: TGP headroom in milliwatts.""" if self._data.size == 1: - return int(self._data.tgp_headroomm_w[0]) - return self._data.tgp_headroomm_w + return int(self._data["tgp_headroomm_w"][0]) + return self._data["tgp_headroomm_w"] @tgp_headroomm_w.setter def tgp_headroomm_w(self, val): - self._data.tgp_headroomm_w = val + if not self._data.flags.writeable: + raise ValueError("This PwrModelMetricsPfpp1x instance is read-only") + self._data["tgp_headroomm_w"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef PwrModelMetricsPfpp1x obj if isinstance(key, int): key_ = key size = self._data.size @@ -25211,10 +26640,18 @@ cdef class PwrModelMetricsPfpp1x: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return PwrModelMetricsPfpp1x.from_data(self._data[key_:key_+1]) + obj = PwrModelMetricsPfpp1x.__new__(PwrModelMetricsPfpp1x) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == pwr_model_metrics_pfpp1x_dtype: - return PwrModelMetricsPfpp1x.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == pwr_model_metrics_pfpp1x_dtype: + obj = PwrModelMetricsPfpp1x.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -25239,15 +26676,7 @@ cdef class PwrModelMetricsPfpp1x: raise ValueError("data array must be 1D") if data.dtype != pwr_model_metrics_pfpp1x_dtype: raise ValueError("data array must be of dtype pwr_model_metrics_pfpp1x_dtype") - obj._data = data.view(_numpy.recarray) - - estimatedMetrics_list = list() - for i in range(obj._data.size): - addr = obj._data.estimatedMetrics[i].__array_interface__['data'][0] - n = int(obj._data.num_vf_points[i]) - estimatedMetrics_obj = PwrModelMetricsSamplePfpp1x.from_ptr(addr, n, owner=obj, readonly=False) - estimatedMetrics_list.append(estimatedMetrics_obj) - obj._estimatedMetrics = tuple(estimatedMetrics_list) + obj._data = data.view(dtype=pwr_model_metrics_pfpp1x_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -25267,17 +26696,8 @@ cdef class PwrModelMetricsPfpp1x: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlPwrModelMetricsPfpp1x_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=pwr_model_metrics_pfpp1x_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=pwr_model_metrics_pfpp1x_dtype_record) obj._owner = owner - - estimatedMetrics_list = list() - for i in range(obj._data.size): - addr = obj._data.estimatedMetrics[i].__array_interface__['data'][0] - n = int(obj._data.num_vf_points[i]) - estimatedMetrics_obj = PwrModelMetricsSamplePfpp1x.from_ptr(addr, n, owner=obj, readonly=readonly) - estimatedMetrics_list.append(estimatedMetrics_obj) - obj._estimatedMetrics = tuple(estimatedMetrics_list) return obj @@ -25796,6 +27216,195 @@ cdef class EccBankRemapperStatus_v1: return obj +cdef _get_nvlink_setup_nvle_encryption_key_v1_dtype_offsets(): + cdef nvmlNvlinkSetupNvleEncryptionKey_v1_t pod + return _numpy.dtype({ + 'names': ['nvle_key', 'local_gpu_alid', 'remote_gpu_alid', 'local_gpu_nvle_private_info', 'remote_gpu_nvle_private_info'], + 'formats': [(_numpy.uint8, 32), _numpy.uint32, _numpy.uint32, nvlink_nvle_private_info_v1_dtype, nvlink_nvle_private_info_v1_dtype], + 'offsets': [ + (&(pod.nvleKey)) - (&pod), + (&(pod.localGpuAlid)) - (&pod), + (&(pod.remoteGpuAlid)) - (&pod), + (&(pod.localGpuNvlePrivateInfo)) - (&pod), + (&(pod.remoteGpuNvlePrivateInfo)) - (&pod), + ], + 'itemsize': sizeof(nvmlNvlinkSetupNvleEncryptionKey_v1_t), + }) + +nvlink_setup_nvle_encryption_key_v1_dtype = _get_nvlink_setup_nvle_encryption_key_v1_dtype_offsets() + +cdef class NvlinkSetupNvleEncryptionKey_v1: + """Empty-initialize an instance of `nvmlNvlinkSetupNvleEncryptionKey_v1_t`. + + + .. seealso:: `nvmlNvlinkSetupNvleEncryptionKey_v1_t` + """ + cdef: + nvmlNvlinkSetupNvleEncryptionKey_v1_t _data + nvmlNvlinkSetupNvleEncryptionKey_v1_t *_ptr + object _owner + bint _readonly + + def __init__(self): + self._ptr = &self._data + self._owner = None + self._readonly = False + + def __repr__(self): + return f"<{__name__}.NvlinkSetupNvleEncryptionKey_v1 object at {hex(id(self))}>" + + @property + def ptr(self): + """Get the pointer address to the data as Python :class:`int`.""" + return (self._ptr) + + cdef intptr_t _get_ptr(self): + return (self._ptr) + + def __int__(self): + return (self._ptr) + + def __eq__(self, other): + cdef NvlinkSetupNvleEncryptionKey_v1 other_ + if not isinstance(other, NvlinkSetupNvleEncryptionKey_v1): + return False + other_ = other + return (_cyb_memcmp((self._ptr), (other_._ptr), sizeof(nvmlNvlinkSetupNvleEncryptionKey_v1_t)) == 0) + + def __getbuffer__(self, _cyb_cpython.Py_buffer *buffer, int flags): + _cyb___getbuffer(self, buffer, self._ptr, sizeof(nvmlNvlinkSetupNvleEncryptionKey_v1_t), self._readonly) + + def __releasebuffer__(self, Py_buffer *buffer): + pass + + def __setitem__(self, key, val): + cdef _cyb_Py_buffer view + if key == 0: + if self._readonly: + raise ValueError("This NvlinkSetupNvleEncryptionKey_v1 instance is read-only") + _cyb_PyObject_GetBuffer(val, &view, _cyb_PyBUF_SIMPLE) + try: + if view.len < sizeof(nvmlNvlinkSetupNvleEncryptionKey_v1_t): + raise ValueError( + "source buffer too small: expected at least %d bytes, got %d" % (sizeof(nvmlNvlinkSetupNvleEncryptionKey_v1_t), view.len) + ) + _cyb_memmove(&self._data, view.buf, sizeof(nvmlNvlinkSetupNvleEncryptionKey_v1_t)) + self._ptr = &self._data + self._owner = None + self._readonly = view.readonly != 0 + finally: + _cyb_PyBuffer_Release(&view) + else: + setattr(self, key, val) + + @property + def local_gpu_nvle_private_info(self): + """NvlinkNvlePrivateInfo_v1: NVLE private info of the local GPU.""" + return NvlinkNvlePrivateInfo_v1.from_ptr( + &(self._ptr[0].localGpuNvlePrivateInfo), + readonly=self._readonly, + owner=self, + ) + + @local_gpu_nvle_private_info.setter + def local_gpu_nvle_private_info(self, val): + if self._readonly: + raise ValueError("This NvlinkSetupNvleEncryptionKey_v1 instance is read-only") + cdef NvlinkNvlePrivateInfo_v1 val_ = val + _cyb_memcpy(&(self._ptr[0].localGpuNvlePrivateInfo), (val_._get_ptr()), sizeof(nvmlNvlinkNvlePrivateInfo_v1_t) * 1) + + @property + def remote_gpu_nvle_private_info(self): + """NvlinkNvlePrivateInfo_v1: NVLE private info of the remote GPU.""" + return NvlinkNvlePrivateInfo_v1.from_ptr( + &(self._ptr[0].remoteGpuNvlePrivateInfo), + readonly=self._readonly, + owner=self, + ) + + @remote_gpu_nvle_private_info.setter + def remote_gpu_nvle_private_info(self, val): + if self._readonly: + raise ValueError("This NvlinkSetupNvleEncryptionKey_v1 instance is read-only") + cdef NvlinkNvlePrivateInfo_v1 val_ = val + _cyb_memcpy(&(self._ptr[0].remoteGpuNvlePrivateInfo), (val_._get_ptr()), sizeof(nvmlNvlinkNvlePrivateInfo_v1_t) * 1) + + @property + def nvle_key(self): + """~_numpy.uint8: (array of length 32).Key secret from which keyMgr will derive the key.""" + cdef _cyb_view.array arr = _cyb_view.array(shape=(32,), itemsize=sizeof(unsigned char), format="B", mode="c", allocate_buffer=False) + arr.data = (&(self._ptr[0].nvleKey)) + return _numpy.asarray(arr) + + @nvle_key.setter + def nvle_key(self, val): + if self._readonly: + raise ValueError("This NvlinkSetupNvleEncryptionKey_v1 instance is read-only") + if len(val) != 32: + raise ValueError(f"Expected length { 32 } for field nvle_key, got {len(val)}") + cdef _cyb_view.array arr = _cyb_view.array(shape=(32,), itemsize=sizeof(unsigned char), format="B", mode="c") + arr[:] = _numpy.asarray(val, dtype=_numpy.uint8) + _cyb_memcpy((&(self._ptr[0].nvleKey)), (arr.data), sizeof(unsigned char) * len(val)) + + @property + def local_gpu_alid(self): + """int: ALID of the local GPU.""" + return self._ptr[0].localGpuAlid + + @local_gpu_alid.setter + def local_gpu_alid(self, val): + if self._readonly: + raise ValueError("This NvlinkSetupNvleEncryptionKey_v1 instance is read-only") + self._ptr[0].localGpuAlid = val + + @property + def remote_gpu_alid(self): + """int: ALID of the remote GPU.""" + return self._ptr[0].remoteGpuAlid + + @remote_gpu_alid.setter + def remote_gpu_alid(self, val): + if self._readonly: + raise ValueError("This NvlinkSetupNvleEncryptionKey_v1 instance is read-only") + self._ptr[0].remoteGpuAlid = val + + @staticmethod + def from_buffer(buffer): + """Create an NvlinkSetupNvleEncryptionKey_v1 instance with the memory from the given buffer.""" + return _cyb_from_buffer(buffer, sizeof(nvmlNvlinkSetupNvleEncryptionKey_v1_t), NvlinkSetupNvleEncryptionKey_v1) + + @staticmethod + def from_data(data): + """Create an NvlinkSetupNvleEncryptionKey_v1 instance wrapping the given NumPy array. + + Args: + data (_numpy.ndarray): a single-element array of dtype `nvlink_setup_nvle_encryption_key_v1_dtype` holding the data. + """ + return _cyb_from_data(data, "nvlink_setup_nvle_encryption_key_v1_dtype", nvlink_setup_nvle_encryption_key_v1_dtype, NvlinkSetupNvleEncryptionKey_v1) + + @staticmethod + def from_ptr(intptr_t ptr, bint readonly=False, object owner=None): + """Create an NvlinkSetupNvleEncryptionKey_v1 instance wrapping the given pointer. + + Args: + ptr (intptr_t): pointer address as Python :class:`int` to the data. + owner (object): The Python object that owns the pointer. If not provided, data will be copied. + readonly (bool): whether the data is read-only (to the user). default is `False`. + """ + if ptr == 0: + raise ValueError("ptr must not be null (0)") + cdef NvlinkSetupNvleEncryptionKey_v1 obj = NvlinkSetupNvleEncryptionKey_v1.__new__(NvlinkSetupNvleEncryptionKey_v1) + if owner is None: + _cyb_memcpy(&obj._data, ptr, sizeof(nvmlNvlinkSetupNvleEncryptionKey_v1_t)) + obj._ptr = &obj._data + obj._owner = None + else: + obj._ptr = ptr + obj._owner = owner + obj._readonly = readonly + return obj + + cdef _get_vgpu_instances_utilization_info_v1_dtype_offsets(): cdef nvmlVgpuInstancesUtilizationInfo_v1_t pod return _numpy.dtype({ @@ -25985,6 +27594,7 @@ cdef _get_prm_counter_v1_dtype_offsets(): }) prm_counter_v1_dtype = _get_prm_counter_v1_dtype_offsets() +cdef object prm_counter_v1_dtype_record = _numpy.dtype((_numpy.record, prm_counter_v1_dtype)) cdef class PRMCounter_v1: """Empty-initialize an array of `nvmlPRMCounter_v1_t`. @@ -26001,8 +27611,7 @@ cdef class PRMCounter_v1: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=prm_counter_v1_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=prm_counter_v1_dtype_record) assert self._data.itemsize == sizeof(nvmlPRMCounter_v1_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlPRMCounter_v1_t) }" @@ -26015,17 +27624,17 @@ cdef class PRMCounter_v1: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -26046,34 +27655,41 @@ cdef class PRMCounter_v1: def counter_id(self): """Union[~_numpy.uint32, int]: Counter ID, one of `nvmlPRMCounterId_t`.""" if self._data.size == 1: - return int(self._data.counter_id[0]) - return self._data.counter_id + return int(self._data["counter_id"][0]) + return self._data["counter_id"] @counter_id.setter def counter_id(self, val): - self._data.counter_id = val + if not self._data.flags.writeable: + raise ValueError("This PRMCounter_v1 instance is read-only") + self._data["counter_id"] = val @property def in_data(self): """prm_counter_input_v1_dtype: PRM input values.""" - return self._data.in_data + return self._data["in_data"].view(_numpy.recarray) @in_data.setter def in_data(self, val): - self._data.in_data = val + if not self._data.flags.writeable: + raise ValueError("This PRMCounter_v1 instance is read-only") + self._data["in_data"] = val @property def counter_value(self): """prm_counter_value_v1_dtype: Counter value.""" - return self._data.counter_value + return self._data["counter_value"].view(_numpy.recarray) @counter_value.setter def counter_value(self, val): - self._data.counter_value = val + if not self._data.flags.writeable: + raise ValueError("This PRMCounter_v1 instance is read-only") + self._data["counter_value"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef PRMCounter_v1 obj if isinstance(key, int): key_ = key size = self._data.size @@ -26081,10 +27697,18 @@ cdef class PRMCounter_v1: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return PRMCounter_v1.from_data(self._data[key_:key_+1]) + obj = PRMCounter_v1.__new__(PRMCounter_v1) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == prm_counter_v1_dtype: - return PRMCounter_v1.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == prm_counter_v1_dtype: + obj = PRMCounter_v1.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -26109,8 +27733,7 @@ cdef class PRMCounter_v1: raise ValueError("data array must be 1D") if data.dtype != prm_counter_v1_dtype: raise ValueError("data array must be of dtype prm_counter_v1_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=prm_counter_v1_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -26130,10 +27753,8 @@ cdef class PRMCounter_v1: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlPRMCounter_v1_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=prm_counter_v1_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=prm_counter_v1_dtype_record) obj._owner = owner - return obj @@ -27358,6 +28979,160 @@ cdef class NvLinkInfo_v2: return obj +cdef _get_nv_link_info_v3_dtype_offsets(): + cdef nvmlNvLinkInfo_v3_t pod + return _numpy.dtype({ + 'names': ['is_nvle_enabled', 'firmware_info', 'is_nvle_ready'], + 'formats': [_numpy.uint32, nvlink_firmware_info_dtype, _numpy.uint32], + 'offsets': [ + (&(pod.isNvleEnabled)) - (&pod), + (&(pod.firmwareInfo)) - (&pod), + (&(pod.isNvleReady)) - (&pod), + ], + 'itemsize': sizeof(nvmlNvLinkInfo_v3_t), + }) + +nv_link_info_v3_dtype = _get_nv_link_info_v3_dtype_offsets() + +cdef class NvLinkInfo_v3: + """Empty-initialize an instance of `nvmlNvLinkInfo_v3_t`. + + + .. seealso:: `nvmlNvLinkInfo_v3_t` + """ + cdef: + nvmlNvLinkInfo_v3_t _data + nvmlNvLinkInfo_v3_t *_ptr + object _owner + bint _readonly + + def __init__(self): + self._ptr = &self._data + self._owner = None + self._readonly = False + + def __repr__(self): + return f"<{__name__}.NvLinkInfo_v3 object at {hex(id(self))}>" + + @property + def ptr(self): + """Get the pointer address to the data as Python :class:`int`.""" + return (self._ptr) + + cdef intptr_t _get_ptr(self): + return (self._ptr) + + def __int__(self): + return (self._ptr) + + def __eq__(self, other): + cdef NvLinkInfo_v3 other_ + if not isinstance(other, NvLinkInfo_v3): + return False + other_ = other + return (_cyb_memcmp((self._ptr), (other_._ptr), sizeof(nvmlNvLinkInfo_v3_t)) == 0) + + def __getbuffer__(self, _cyb_cpython.Py_buffer *buffer, int flags): + _cyb___getbuffer(self, buffer, self._ptr, sizeof(nvmlNvLinkInfo_v3_t), self._readonly) + + def __releasebuffer__(self, Py_buffer *buffer): + pass + + def __setitem__(self, key, val): + cdef _cyb_Py_buffer view + if key == 0: + if self._readonly: + raise ValueError("This NvLinkInfo_v3 instance is read-only") + _cyb_PyObject_GetBuffer(val, &view, _cyb_PyBUF_SIMPLE) + try: + if view.len < sizeof(nvmlNvLinkInfo_v3_t): + raise ValueError( + "source buffer too small: expected at least %d bytes, got %d" % (sizeof(nvmlNvLinkInfo_v3_t), view.len) + ) + _cyb_memmove(&self._data, view.buf, sizeof(nvmlNvLinkInfo_v3_t)) + self._ptr = &self._data + self._owner = None + self._readonly = view.readonly != 0 + finally: + _cyb_PyBuffer_Release(&view) + else: + setattr(self, key, val) + + @property + def firmware_info(self): + """NvlinkFirmwareInfo: OUT - NVLINK Firmware info.""" + return NvlinkFirmwareInfo.from_ptr( + &(self._ptr[0].firmwareInfo), + readonly=self._readonly, + owner=self, + ) + + @firmware_info.setter + def firmware_info(self, val): + if self._readonly: + raise ValueError("This NvLinkInfo_v3 instance is read-only") + cdef NvlinkFirmwareInfo val_ = val + _cyb_memcpy(&(self._ptr[0].firmwareInfo), (val_._get_ptr()), sizeof(nvmlNvlinkFirmwareInfo_t) * 1) + + @property + def is_nvle_enabled(self): + """int: OUT - NVLINK encryption enablement.""" + return self._ptr[0].isNvleEnabled + + @is_nvle_enabled.setter + def is_nvle_enabled(self, val): + if self._readonly: + raise ValueError("This NvLinkInfo_v3 instance is read-only") + self._ptr[0].isNvleEnabled = val + + @property + def is_nvle_ready(self): + """int: OUT - Whether NVLE is ready on the GPU.""" + return self._ptr[0].isNvleReady + + @is_nvle_ready.setter + def is_nvle_ready(self, val): + if self._readonly: + raise ValueError("This NvLinkInfo_v3 instance is read-only") + self._ptr[0].isNvleReady = val + + @staticmethod + def from_buffer(buffer): + """Create an NvLinkInfo_v3 instance with the memory from the given buffer.""" + return _cyb_from_buffer(buffer, sizeof(nvmlNvLinkInfo_v3_t), NvLinkInfo_v3) + + @staticmethod + def from_data(data): + """Create an NvLinkInfo_v3 instance wrapping the given NumPy array. + + Args: + data (_numpy.ndarray): a single-element array of dtype `nv_link_info_v3_dtype` holding the data. + """ + return _cyb_from_data(data, "nv_link_info_v3_dtype", nv_link_info_v3_dtype, NvLinkInfo_v3) + + @staticmethod + def from_ptr(intptr_t ptr, bint readonly=False, object owner=None): + """Create an NvLinkInfo_v3 instance wrapping the given pointer. + + Args: + ptr (intptr_t): pointer address as Python :class:`int` to the data. + owner (object): The Python object that owns the pointer. If not provided, data will be copied. + readonly (bool): whether the data is read-only (to the user). default is `False`. + """ + if ptr == 0: + raise ValueError("ptr must not be null (0)") + cdef NvLinkInfo_v3 obj = NvLinkInfo_v3.__new__(NvLinkInfo_v3) + if owner is None: + _cyb_memcpy(&obj._data, ptr, sizeof(nvmlNvLinkInfo_v3_t)) + obj._ptr = &obj._data + obj._owner = None + else: + obj._ptr = ptr + obj._owner = owner + obj._readonly = readonly + return obj + + cdef _get_pwr_model_metrics_dlppm1x_dtype_offsets(): cdef nvmlPwrModelMetricsDlppm1x_t pod return _numpy.dtype({ @@ -27374,6 +29149,7 @@ cdef _get_pwr_model_metrics_dlppm1x_dtype_offsets(): }) pwr_model_metrics_dlppm1x_dtype = _get_pwr_model_metrics_dlppm1x_dtype_offsets() +cdef object pwr_model_metrics_dlppm1x_dtype_record = _numpy.dtype((_numpy.record, pwr_model_metrics_dlppm1x_dtype)) cdef class PwrModelMetricsDlppm1x: """Empty-initialize an array of `nvmlPwrModelMetricsDlppm1x_t`. @@ -27390,8 +29166,7 @@ cdef class PwrModelMetricsDlppm1x: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=pwr_model_metrics_dlppm1x_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=pwr_model_metrics_dlppm1x_dtype_record) assert self._data.itemsize == sizeof(nvmlPwrModelMetricsDlppm1x_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlPwrModelMetricsDlppm1x_t) }" @@ -27404,17 +29179,17 @@ cdef class PwrModelMetricsDlppm1x: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -27435,52 +29210,63 @@ cdef class PwrModelMetricsDlppm1x: def b_valid(self): """Union[~_numpy.uint8, int]: Validity flag: non-zero if metrics are valid.""" if self._data.size == 1: - return int(self._data.b_valid[0]) - return self._data.b_valid + return int(self._data["b_valid"][0]) + return self._data["b_valid"] @b_valid.setter def b_valid(self, val): - self._data.b_valid = val + if not self._data.flags.writeable: + raise ValueError("This PwrModelMetricsDlppm1x instance is read-only") + self._data["b_valid"] = val @property def core_rail(self): """core_rail_metrics_dtype: Core rail metrics.""" - return self._data.core_rail + return self._data["core_rail"].view(_numpy.recarray) @core_rail.setter def core_rail(self, val): - self._data.core_rail = val + if not self._data.flags.writeable: + raise ValueError("This PwrModelMetricsDlppm1x instance is read-only") + self._data["core_rail"] = val @property def fb_rail(self): """rail_metrics_dtype: Fb rail metrics.""" - return self._data.fb_rail + return self._data["fb_rail"].view(_numpy.recarray) @fb_rail.setter def fb_rail(self, val): - self._data.fb_rail = val + if not self._data.flags.writeable: + raise ValueError("This PwrModelMetricsDlppm1x instance is read-only") + self._data["fb_rail"] = val @property def tgp_pwr_tuple(self): """pmgr_pwr_tuple_dtype: Total Graphics Power (TGP) in milliwatts.""" - return self._data.tgp_pwr_tuple + return self._data["tgp_pwr_tuple"].view(_numpy.recarray) @tgp_pwr_tuple.setter def tgp_pwr_tuple(self, val): - self._data.tgp_pwr_tuple = val + if not self._data.flags.writeable: + raise ValueError("This PwrModelMetricsDlppm1x instance is read-only") + self._data["tgp_pwr_tuple"] = val @property def perf_metrics(self): """pwr_model_metrics_dlppm1x_perf_dtype: Performance metrics.""" - return self._data.perf_metrics + return self._data["perf_metrics"].view(_numpy.recarray) @perf_metrics.setter def perf_metrics(self, val): - self._data.perf_metrics = val + if not self._data.flags.writeable: + raise ValueError("This PwrModelMetricsDlppm1x instance is read-only") + self._data["perf_metrics"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef PwrModelMetricsDlppm1x obj if isinstance(key, int): key_ = key size = self._data.size @@ -27488,10 +29274,18 @@ cdef class PwrModelMetricsDlppm1x: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return PwrModelMetricsDlppm1x.from_data(self._data[key_:key_+1]) + obj = PwrModelMetricsDlppm1x.__new__(PwrModelMetricsDlppm1x) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == pwr_model_metrics_dlppm1x_dtype: - return PwrModelMetricsDlppm1x.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == pwr_model_metrics_dlppm1x_dtype: + obj = PwrModelMetricsDlppm1x.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -27516,8 +29310,7 @@ cdef class PwrModelMetricsDlppm1x: raise ValueError("data array must be 1D") if data.dtype != pwr_model_metrics_dlppm1x_dtype: raise ValueError("data array must be of dtype pwr_model_metrics_dlppm1x_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=pwr_model_metrics_dlppm1x_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -27537,10 +29330,8 @@ cdef class PwrModelMetricsDlppm1x: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlPwrModelMetricsDlppm1x_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=pwr_model_metrics_dlppm1x_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=pwr_model_metrics_dlppm1x_dtype_record) obj._owner = owner - return obj @@ -27556,6 +29347,7 @@ cdef _get_perf_metrics_pfpp1x_sample_dtype_offsets(): }) perf_metrics_pfpp1x_sample_dtype = _get_perf_metrics_pfpp1x_sample_dtype_offsets() +cdef object perf_metrics_pfpp1x_sample_dtype_record = _numpy.dtype((_numpy.record, perf_metrics_pfpp1x_sample_dtype)) cdef class PerfMetricsPfpp1xSample: """Empty-initialize an array of `nvmlPerfMetricsPfpp1xSample_t`. @@ -27572,8 +29364,7 @@ cdef class PerfMetricsPfpp1xSample: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=perf_metrics_pfpp1x_sample_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=perf_metrics_pfpp1x_sample_dtype_record) assert self._data.itemsize == sizeof(nvmlPerfMetricsPfpp1xSample_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlPerfMetricsPfpp1xSample_t) }" @@ -27586,17 +29377,17 @@ cdef class PerfMetricsPfpp1xSample: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -27616,15 +29407,18 @@ cdef class PerfMetricsPfpp1xSample: @property def estimated_metrics(self): """pwr_model_metrics_pfpp1x_dtype: Estimated metrics from the PFPP 1x controller.""" - return self._data.estimated_metrics + return self._data["estimated_metrics"].view(_numpy.recarray) @estimated_metrics.setter def estimated_metrics(self, val): - self._data.estimated_metrics = val + if not self._data.flags.writeable: + raise ValueError("This PerfMetricsPfpp1xSample instance is read-only") + self._data["estimated_metrics"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef PerfMetricsPfpp1xSample obj if isinstance(key, int): key_ = key size = self._data.size @@ -27632,10 +29426,18 @@ cdef class PerfMetricsPfpp1xSample: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return PerfMetricsPfpp1xSample.from_data(self._data[key_:key_+1]) + obj = PerfMetricsPfpp1xSample.__new__(PerfMetricsPfpp1xSample) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == perf_metrics_pfpp1x_sample_dtype: - return PerfMetricsPfpp1xSample.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == perf_metrics_pfpp1x_sample_dtype: + obj = PerfMetricsPfpp1xSample.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -27660,8 +29462,7 @@ cdef class PerfMetricsPfpp1xSample: raise ValueError("data array must be 1D") if data.dtype != perf_metrics_pfpp1x_sample_dtype: raise ValueError("data array must be of dtype perf_metrics_pfpp1x_sample_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=perf_metrics_pfpp1x_sample_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -27681,10 +29482,8 @@ cdef class PerfMetricsPfpp1xSample: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlPerfMetricsPfpp1xSample_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=perf_metrics_pfpp1x_sample_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=perf_metrics_pfpp1x_sample_dtype_record) obj._owner = owner - return obj @@ -27701,6 +29500,7 @@ cdef _get_pwr_model_metrics_dlppm1x_dramclk_estimates_dtype_offsets(): }) pwr_model_metrics_dlppm1x_dramclk_estimates_dtype = _get_pwr_model_metrics_dlppm1x_dramclk_estimates_dtype_offsets() +cdef object pwr_model_metrics_dlppm1x_dramclk_estimates_dtype_record = _numpy.dtype((_numpy.record, pwr_model_metrics_dlppm1x_dramclk_estimates_dtype)) cdef class PwrModelMetricsDlppm1xDramclkEstimates: """Empty-initialize an array of `nvmlPwrModelMetricsDlppm1xDramclkEstimates_t`. @@ -27718,8 +29518,7 @@ cdef class PwrModelMetricsDlppm1xDramclkEstimates: readonly tuple _estimated_metrics def __init__(self, size=1): - arr = _numpy.empty(size, dtype=pwr_model_metrics_dlppm1x_dramclk_estimates_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=pwr_model_metrics_dlppm1x_dramclk_estimates_dtype_record) assert self._data.itemsize == sizeof(nvmlPwrModelMetricsDlppm1xDramclkEstimates_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlPwrModelMetricsDlppm1xDramclkEstimates_t) }" @@ -27732,17 +29531,17 @@ cdef class PwrModelMetricsDlppm1xDramclkEstimates: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -27762,6 +29561,19 @@ cdef class PwrModelMetricsDlppm1xDramclkEstimates: @property def estimated_metrics(self): """PwrModelMetricsDlppm1x: Array of estimated metrics for each inference loop.""" + if self._estimated_metrics is None: + estimated_metrics_list = list() + estimated_metrics_base = _cyb_array_ptr(self._data) + estimated_metrics_offset = pwr_model_metrics_dlppm1x_dramclk_estimates_dtype.fields["estimated_metrics"][1] + estimated_metrics_stride = self._data.strides[0] + estimated_metrics_readonly = not self._data.flags.writeable + estimated_metrics_sizes = self._data["num_estimated_metrics"] + for i in range(self._data.size): + addr = estimated_metrics_base + i * estimated_metrics_stride + estimated_metrics_offset + n = int(estimated_metrics_sizes[i]) + estimated_metrics_obj = PwrModelMetricsDlppm1x.from_ptr(addr, n, owner=self, readonly=estimated_metrics_readonly) + estimated_metrics_list.append(estimated_metrics_obj) + self._estimated_metrics = tuple(estimated_metrics_list) if self._data.size == 1: return self._estimated_metrics[0] return self._estimated_metrics @@ -27769,6 +29581,7 @@ cdef class PwrModelMetricsDlppm1xDramclkEstimates: def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef PwrModelMetricsDlppm1xDramclkEstimates obj if isinstance(key, int): key_ = key size = self._data.size @@ -27776,10 +29589,18 @@ cdef class PwrModelMetricsDlppm1xDramclkEstimates: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return PwrModelMetricsDlppm1xDramclkEstimates.from_data(self._data[key_:key_+1]) + obj = PwrModelMetricsDlppm1xDramclkEstimates.__new__(PwrModelMetricsDlppm1xDramclkEstimates) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == pwr_model_metrics_dlppm1x_dramclk_estimates_dtype: - return PwrModelMetricsDlppm1xDramclkEstimates.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == pwr_model_metrics_dlppm1x_dramclk_estimates_dtype: + obj = PwrModelMetricsDlppm1xDramclkEstimates.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -27804,15 +29625,7 @@ cdef class PwrModelMetricsDlppm1xDramclkEstimates: raise ValueError("data array must be 1D") if data.dtype != pwr_model_metrics_dlppm1x_dramclk_estimates_dtype: raise ValueError("data array must be of dtype pwr_model_metrics_dlppm1x_dramclk_estimates_dtype") - obj._data = data.view(_numpy.recarray) - - estimatedMetrics_list = list() - for i in range(obj._data.size): - addr = obj._data.estimatedMetrics[i].__array_interface__['data'][0] - n = int(obj._data.num_estimated_metrics[i]) - estimatedMetrics_obj = PwrModelMetricsDlppm1x.from_ptr(addr, n, owner=obj, readonly=False) - estimatedMetrics_list.append(estimatedMetrics_obj) - obj._estimatedMetrics = tuple(estimatedMetrics_list) + obj._data = data.view(dtype=pwr_model_metrics_dlppm1x_dramclk_estimates_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -27832,17 +29645,8 @@ cdef class PwrModelMetricsDlppm1xDramclkEstimates: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlPwrModelMetricsDlppm1xDramclkEstimates_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=pwr_model_metrics_dlppm1x_dramclk_estimates_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=pwr_model_metrics_dlppm1x_dramclk_estimates_dtype_record) obj._owner = owner - - estimatedMetrics_list = list() - for i in range(obj._data.size): - addr = obj._data.estimatedMetrics[i].__array_interface__['data'][0] - n = int(obj._data.num_estimated_metrics[i]) - estimatedMetrics_obj = PwrModelMetricsDlppm1x.from_ptr(addr, n, owner=obj, readonly=readonly) - estimatedMetrics_list.append(estimatedMetrics_obj) - obj._estimatedMetrics = tuple(estimatedMetrics_list) return obj @@ -27863,6 +29667,7 @@ cdef _get_observed_metrics_dtype_offsets(): }) observed_metrics_dtype = _get_observed_metrics_dtype_offsets() +cdef object observed_metrics_dtype_record = _numpy.dtype((_numpy.record, observed_metrics_dtype)) cdef class ObservedMetrics: """Empty-initialize an array of `nvmlObservedMetrics_t`. @@ -27879,8 +29684,7 @@ cdef class ObservedMetrics: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=observed_metrics_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=observed_metrics_dtype_record) assert self._data.itemsize == sizeof(nvmlObservedMetrics_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlObservedMetrics_t) }" @@ -27893,17 +29697,17 @@ cdef class ObservedMetrics: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -27923,62 +29727,75 @@ cdef class ObservedMetrics: @property def initial_dramclk_est(self): """pwr_model_metrics_dlppm1x_dramclk_estimates_dtype: (array of length 3).Initial DRAMCLK estimates for different scenarios.""" - return self._data.initial_dramclk_est + return self._data["initial_dramclk_est"].view(_numpy.recarray) @initial_dramclk_est.setter def initial_dramclk_est(self, val): - self._data.initial_dramclk_est = val + if not self._data.flags.writeable: + raise ValueError("This ObservedMetrics instance is read-only") + self._data["initial_dramclk_est"] = val @property def b_valid(self): """Union[~_numpy.uint8, int]: Validity flag: non-zero if observed metrics are valid.""" if self._data.size == 1: - return int(self._data.b_valid[0]) - return self._data.b_valid + return int(self._data["b_valid"][0]) + return self._data["b_valid"] @b_valid.setter def b_valid(self, val): - self._data.b_valid = val + if not self._data.flags.writeable: + raise ValueError("This ObservedMetrics instance is read-only") + self._data["b_valid"] = val @property def core_rail(self): """core_rail_metrics_dtype: Observed core rail metrics.""" - return self._data.core_rail + return self._data["core_rail"].view(_numpy.recarray) @core_rail.setter def core_rail(self, val): - self._data.core_rail = val + if not self._data.flags.writeable: + raise ValueError("This ObservedMetrics instance is read-only") + self._data["core_rail"] = val @property def fb_rail(self): """rail_metrics_dtype: Observed fb rail metrics.""" - return self._data.fb_rail + return self._data["fb_rail"].view(_numpy.recarray) @fb_rail.setter def fb_rail(self, val): - self._data.fb_rail = val + if not self._data.flags.writeable: + raise ValueError("This ObservedMetrics instance is read-only") + self._data["fb_rail"] = val @property def tgp_pwr_tuple(self): """pmgr_pwr_tuple_dtype: Observed Total Graphics Power (TGP) in milliwatts.""" - return self._data.tgp_pwr_tuple + return self._data["tgp_pwr_tuple"].view(_numpy.recarray) @tgp_pwr_tuple.setter def tgp_pwr_tuple(self, val): - self._data.tgp_pwr_tuple = val + if not self._data.flags.writeable: + raise ValueError("This ObservedMetrics instance is read-only") + self._data["tgp_pwr_tuple"] = val @property def perf_metrics(self): """pwr_model_metrics_dlppm1x_perf_dtype: Observed performance metrics.""" - return self._data.perf_metrics + return self._data["perf_metrics"].view(_numpy.recarray) @perf_metrics.setter def perf_metrics(self, val): - self._data.perf_metrics = val + if not self._data.flags.writeable: + raise ValueError("This ObservedMetrics instance is read-only") + self._data["perf_metrics"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef ObservedMetrics obj if isinstance(key, int): key_ = key size = self._data.size @@ -27986,10 +29803,18 @@ cdef class ObservedMetrics: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return ObservedMetrics.from_data(self._data[key_:key_+1]) + obj = ObservedMetrics.__new__(ObservedMetrics) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == observed_metrics_dtype: - return ObservedMetrics.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == observed_metrics_dtype: + obj = ObservedMetrics.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -28014,8 +29839,7 @@ cdef class ObservedMetrics: raise ValueError("data array must be 1D") if data.dtype != observed_metrics_dtype: raise ValueError("data array must be of dtype observed_metrics_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=observed_metrics_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -28035,10 +29859,8 @@ cdef class ObservedMetrics: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlObservedMetrics_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=observed_metrics_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=observed_metrics_dtype_record) obj._owner = owner - return obj @@ -28054,6 +29876,7 @@ cdef _get_perf_metrics_dlppc2x_sample_dtype_offsets(): }) perf_metrics_dlppc2x_sample_dtype = _get_perf_metrics_dlppc2x_sample_dtype_offsets() +cdef object perf_metrics_dlppc2x_sample_dtype_record = _numpy.dtype((_numpy.record, perf_metrics_dlppc2x_sample_dtype)) cdef class PerfMetricsDlppc2xSample: """Empty-initialize an array of `nvmlPerfMetricsDlppc2xSample_t`. @@ -28070,8 +29893,7 @@ cdef class PerfMetricsDlppc2xSample: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=perf_metrics_dlppc2x_sample_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=perf_metrics_dlppc2x_sample_dtype_record) assert self._data.itemsize == sizeof(nvmlPerfMetricsDlppc2xSample_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlPerfMetricsDlppc2xSample_t) }" @@ -28084,17 +29906,17 @@ cdef class PerfMetricsDlppc2xSample: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -28114,15 +29936,18 @@ cdef class PerfMetricsDlppc2xSample: @property def observed_metrics(self): """observed_metrics_dtype: Observed metrics from the DLPPC 2x controller.""" - return self._data.observed_metrics + return self._data["observed_metrics"].view(_numpy.recarray) @observed_metrics.setter def observed_metrics(self, val): - self._data.observed_metrics = val + if not self._data.flags.writeable: + raise ValueError("This PerfMetricsDlppc2xSample instance is read-only") + self._data["observed_metrics"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef PerfMetricsDlppc2xSample obj if isinstance(key, int): key_ = key size = self._data.size @@ -28130,10 +29955,18 @@ cdef class PerfMetricsDlppc2xSample: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return PerfMetricsDlppc2xSample.from_data(self._data[key_:key_+1]) + obj = PerfMetricsDlppc2xSample.__new__(PerfMetricsDlppc2xSample) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == perf_metrics_dlppc2x_sample_dtype: - return PerfMetricsDlppc2xSample.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == perf_metrics_dlppc2x_sample_dtype: + obj = PerfMetricsDlppc2xSample.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -28158,8 +29991,7 @@ cdef class PerfMetricsDlppc2xSample: raise ValueError("data array must be 1D") if data.dtype != perf_metrics_dlppc2x_sample_dtype: raise ValueError("data array must be of dtype perf_metrics_dlppc2x_sample_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=perf_metrics_dlppc2x_sample_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -28179,10 +30011,8 @@ cdef class PerfMetricsDlppc2xSample: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlPerfMetricsDlppc2xSample_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=perf_metrics_dlppc2x_sample_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=perf_metrics_dlppc2x_sample_dtype_record) obj._owner = owner - return obj @@ -28208,24 +30038,24 @@ cdef class _py_anon_pod8: """ cdef: cuda_bindings_nvml__anon_pod8 *_ptr - _cyb_PyObject *_owner + object _owner + bint _owns_ptr bint _readonly def __init__(self): self._ptr = _cyb_calloc(1, sizeof(cuda_bindings_nvml__anon_pod8)) if self._ptr == NULL: raise MemoryError("Error allocating _py_anon_pod8") - self._owner = NULL + self._owns_ptr = True + self._owner = None self._readonly = False def __dealloc__(self): cdef cuda_bindings_nvml__anon_pod8 *ptr - if self._owner == NULL and self._ptr != NULL: + if self._owns_ptr and self._ptr != NULL: ptr = self._ptr self._ptr = NULL _cyb_free(ptr) - _cyb_Py_CLEAR(self._owner) - self._owner = NULL def __repr__(self): return f"<{__name__}._py_anon_pod8 object at {hex(id(self))}>" @@ -28337,11 +30167,12 @@ cdef class _py_anon_pod8: if obj._ptr == NULL: raise MemoryError("Error allocating _py_anon_pod8") _cyb_memcpy((obj._ptr), ptr, sizeof(cuda_bindings_nvml__anon_pod8)) - obj._owner = NULL + obj._owns_ptr = True + obj._owner = None else: obj._ptr = ptr - obj._owner = <_cyb_PyObject *>owner - _cyb_Py_XINCREF(obj._owner) + obj._owns_ptr = False + obj._owner = owner obj._readonly = readonly return obj @@ -28359,6 +30190,7 @@ cdef _get_perf_metric_controller_sample_dtype_offsets(): }) perf_metric_controller_sample_dtype = _get_perf_metric_controller_sample_dtype_offsets() +cdef object perf_metric_controller_sample_dtype_record = _numpy.dtype((_numpy.record, perf_metric_controller_sample_dtype)) cdef class PerfMetricControllerSample: """Empty-initialize an array of `nvmlPerfMetricControllerSample_t`. @@ -28375,8 +30207,7 @@ cdef class PerfMetricControllerSample: object _owner def __init__(self, size=1): - arr = _numpy.empty(size, dtype=perf_metric_controller_sample_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=perf_metric_controller_sample_dtype_record) assert self._data.itemsize == sizeof(nvmlPerfMetricControllerSample_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlPerfMetricControllerSample_t) }" @@ -28389,17 +30220,17 @@ cdef class PerfMetricControllerSample: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -28420,25 +30251,30 @@ cdef class PerfMetricControllerSample: def controller_type(self): """Union[~_numpy.uint32, int]: Controller type: NVML_PERF_METRICS_CONTROLLER_TYPE_DLPPC_2X or NVML_PERF_METRICS_CONTROLLER_TYPE_PFPP_1X.""" if self._data.size == 1: - return int(self._data.controller_type[0]) - return self._data.controller_type + return int(self._data["controller_type"][0]) + return self._data["controller_type"] @controller_type.setter def controller_type(self, val): - self._data.controller_type = val + if not self._data.flags.writeable: + raise ValueError("This PerfMetricControllerSample instance is read-only") + self._data["controller_type"] = val @property def data_(self): """_py_anon_pod8_dtype: Union containing controller-specific data.""" - return self._data.data_ + return self._data["data_"].view(_numpy.recarray) @data_.setter def data_(self, val): - self._data.data_ = val + if not self._data.flags.writeable: + raise ValueError("This PerfMetricControllerSample instance is read-only") + self._data["data_"] = val def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef PerfMetricControllerSample obj if isinstance(key, int): key_ = key size = self._data.size @@ -28446,10 +30282,18 @@ cdef class PerfMetricControllerSample: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return PerfMetricControllerSample.from_data(self._data[key_:key_+1]) + obj = PerfMetricControllerSample.__new__(PerfMetricControllerSample) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == perf_metric_controller_sample_dtype: - return PerfMetricControllerSample.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == perf_metric_controller_sample_dtype: + obj = PerfMetricControllerSample.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -28474,8 +30318,7 @@ cdef class PerfMetricControllerSample: raise ValueError("data array must be 1D") if data.dtype != perf_metric_controller_sample_dtype: raise ValueError("data array must be of dtype perf_metric_controller_sample_dtype") - obj._data = data.view(_numpy.recarray) - + obj._data = data.view(dtype=perf_metric_controller_sample_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -28495,10 +30338,8 @@ cdef class PerfMetricControllerSample: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlPerfMetricControllerSample_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=perf_metric_controller_sample_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=perf_metric_controller_sample_dtype_record) obj._owner = owner - return obj @@ -28515,6 +30356,7 @@ cdef _get_perf_metrics_sample_dtype_offsets(): }) perf_metrics_sample_dtype = _get_perf_metrics_sample_dtype_offsets() +cdef object perf_metrics_sample_dtype_record = _numpy.dtype((_numpy.record, perf_metrics_sample_dtype)) cdef class PerfMetricsSample: """Empty-initialize an array of `nvmlPerfMetricsSample_t`. @@ -28532,8 +30374,7 @@ cdef class PerfMetricsSample: readonly tuple _controller_data def __init__(self, size=1): - arr = _numpy.empty(size, dtype=perf_metrics_sample_dtype) - self._data = arr.view(_numpy.recarray) + self._data = _numpy.zeros(size, dtype=perf_metrics_sample_dtype_record) assert self._data.itemsize == sizeof(nvmlPerfMetricsSample_t), \ f"itemsize {self._data.itemsize} mismatches struct size { sizeof(nvmlPerfMetricsSample_t) }" @@ -28546,17 +30387,17 @@ cdef class PerfMetricsSample: @property def ptr(self): """Get the pointer address to the data as Python :class:`int`.""" - return self._data.ctypes.data + return _cyb_array_ptr(self._data) cdef intptr_t _get_ptr(self): - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __int__(self): if self._data.size > 1 and not self._data.flags["C_CONTIGUOUS"]: raise TypeError("int() argument must be a bytes-like object of size 1, or a " "C-contiguous array. To get the pointer address of a " "non-contiguous array, use .ptr") - return self._data.ctypes.data + return _cyb_array_ptr(self._data) def __len__(self): return self._data.size @@ -28576,6 +30417,19 @@ cdef class PerfMetricsSample: @property def controller_data(self): """PerfMetricControllerSample: Array of controller samples.""" + if self._controller_data is None: + controller_data_list = list() + controller_data_base = _cyb_array_ptr(self._data) + controller_data_offset = perf_metrics_sample_dtype.fields["controller_data"][1] + controller_data_stride = self._data.strides[0] + controller_data_readonly = not self._data.flags.writeable + controller_data_sizes = self._data["num_controller_data"] + for i in range(self._data.size): + addr = controller_data_base + i * controller_data_stride + controller_data_offset + n = int(controller_data_sizes[i]) + controller_data_obj = PerfMetricControllerSample.from_ptr(addr, n, owner=self, readonly=controller_data_readonly) + controller_data_list.append(controller_data_obj) + self._controller_data = tuple(controller_data_list) if self._data.size == 1: return self._controller_data[0] return self._controller_data @@ -28583,6 +30437,7 @@ cdef class PerfMetricsSample: def __getitem__(self, key): cdef ssize_t key_ cdef ssize_t size + cdef PerfMetricsSample obj if isinstance(key, int): key_ = key size = self._data.size @@ -28590,10 +30445,18 @@ cdef class PerfMetricsSample: raise IndexError("index is out of bounds") if key_ < 0: key_ += size - return PerfMetricsSample.from_data(self._data[key_:key_+1]) + obj = PerfMetricsSample.__new__(PerfMetricsSample) + obj._data = self._data[key_:key_+1] + obj._owner = self._owner + return obj out = self._data[key] - if isinstance(out, _numpy.recarray) and out.dtype == perf_metrics_sample_dtype: - return PerfMetricsSample.from_data(out) + if isinstance(out, _numpy.ndarray): + if out.dtype == perf_metrics_sample_dtype: + obj = PerfMetricsSample.from_data(out) + obj._owner = self._owner + return obj + if out.dtype.names is not None: + return out.view(_numpy.recarray) return out def __setitem__(self, key, val): @@ -28618,15 +30481,7 @@ cdef class PerfMetricsSample: raise ValueError("data array must be 1D") if data.dtype != perf_metrics_sample_dtype: raise ValueError("data array must be of dtype perf_metrics_sample_dtype") - obj._data = data.view(_numpy.recarray) - - controllerData_list = list() - for i in range(obj._data.size): - addr = obj._data.controllerData[i].__array_interface__['data'][0] - n = int(obj._data.num_controller_data[i]) - controllerData_obj = PerfMetricControllerSample.from_ptr(addr, n, owner=obj, readonly=False) - controllerData_list.append(controllerData_obj) - obj._controllerData = tuple(controllerData_list) + obj._data = data.view(dtype=perf_metrics_sample_dtype_record, type=_numpy.ndarray) return obj @staticmethod @@ -28646,17 +30501,8 @@ cdef class PerfMetricsSample: cdef flag = _cyb_cpython_buffer.PyBUF_READ if readonly else _cyb_cpython_buffer.PyBUF_WRITE cdef object buf = _cyb_cpython_memoryview.PyMemoryView_FromMemory( ptr, sizeof(nvmlPerfMetricsSample_t) * size, flag) - data = _numpy.ndarray(size, buffer=buf, dtype=perf_metrics_sample_dtype) - obj._data = data.view(_numpy.recarray) + obj._data = _numpy.ndarray(size, buffer=buf, dtype=perf_metrics_sample_dtype_record) obj._owner = owner - - controllerData_list = list() - for i in range(obj._data.size): - addr = obj._data.controllerData[i].__array_interface__['data'][0] - n = int(obj._data.num_controller_data[i]) - controllerData_obj = PerfMetricControllerSample.from_ptr(addr, n, owner=obj, readonly=readonly) - controllerData_list.append(controllerData_obj) - obj._controllerData = tuple(controllerData_list) return obj @@ -28807,6 +30653,10 @@ cpdef init_v2(): This method needs to be called once before any usage of NVML Library APIs. For all products. + .. note:: + With the environment variable ``NVML_MPS_DEVICE_ENUMERATION`` set to 1, this + API selects the MPS locality-domain view described in ``MPS Locality Domain + Device Enumeration``. .. note:: A reference count of the number of initializations is maintained, and a corresponding call to :func:`shutdown` needs to be issued once usage of the @@ -28835,6 +30685,10 @@ cpdef init_with_flags(unsigned int flags): flags (unsigned int): NVML_INIT_FLAG_* flags that can modify NVML Init behavior. + .. note:: + With the environment variable ``NVML_MPS_DEVICE_ENUMERATION`` set to 1, this + API selects the MPS locality-domain view. ``NVML_INIT_FLAG_NO_ATTACH`` is not + supported in that view. See ``MPS Locality Domain Device Enumeration``. .. note:: A reference count of the number of initializations is maintained, and a corresponding call to :func:`shutdown` needs to be issued once usage of the @@ -28859,6 +30713,9 @@ cpdef shutdown(): times than :func:`init_v2` or :func:`init_with_flags`. For all products. + .. note:: + The final matching shutdown releases the process-local MPS locality-domain view + described in ``MPS Locality Domain Device Enumeration``. .. seealso:: `nvmlShutdown` """ with nogil: @@ -28874,6 +30731,9 @@ cpdef str error_string(int result): Args: result (Return): NVML error code to convert. + .. note:: + This helper is available in the MPS locality-domain view described in ``MPS + Locality Domain Device Enumeration``. .. seealso:: `nvmlErrorString` """ cdef const char *_output_cstr_ @@ -28893,7 +30753,7 @@ cpdef str system_get_driver_version(): nvmlConstants::NVML_SYSTEM_DRIVER_VERSION_BUFFER_SIZE. Returns: - char: Reference in which to return the version identifier. + str: Reference in which to return the version identifier. .. seealso:: `nvmlSystemGetDriverVersion` """ @@ -28909,13 +30769,15 @@ cpdef str system_get_nvml_version(): """Retrieves the version of the NVML library. For all products. - The version identifier is an alphanumeric string. It will not exceed 80 - characters in length (including the NULL terminator). See - nvmlConstants::NVML_SYSTEM_NVML_VERSION_BUFFER_SIZE. Returns: - char: Reference in which to return the version identifier. + str: Reference in which to return the version identifier. + .. note:: + This query is available in the MPS locality-domain view described in ``MPS + Locality Domain Device Enumeration``. The version identifier is an alphanumeric + string. It will not exceed 80 characters in length (including the NULL + terminator). See nvmlConstants::NVML_SYSTEM_NVML_VERSION_BUFFER_SIZE. .. seealso:: `nvmlSystemGetNVMLVersion` """ cdef unsigned int length = 80 @@ -28930,7 +30792,7 @@ cpdef int system_get_cuda_driver_version() except *: """Retrieves the version of the CUDA driver. For all products. - The CUDA driver version returned will be retreived from the currently installed + The CUDA driver version returned will be retrieved from the currently installed version of CUDA. If the cuda library is not found, this function will return a known supported version number. @@ -28975,7 +30837,7 @@ cpdef str system_get_process_name(unsigned int pid): pid (unsigned int): The identifier of the process. Returns: - char: Reference in which to return the process name. + str: Reference in which to return the process name. .. seealso:: `nvmlSystemGetProcessName` """ @@ -29242,6 +31104,10 @@ cpdef unsigned int device_get_count_v2() except? 0: unsigned int: Reference in which to return the number of accessible devices. + .. note:: + In the MPS locality-domain view, this API returns the number of MPS-reported + device entries. Each locality domain has its own NVML index and + ``nvmlDevice_t`` handle. See ``MPS Locality Domain Device Enumeration``. .. seealso:: `nvmlDeviceGetCount_v2` """ cdef unsigned int device_count @@ -29311,6 +31177,9 @@ cpdef intptr_t device_get_handle_by_index_v2(unsigned int index) except? 0: Returns: intptr_t: Reference in which to return the device handle. + .. note:: + In the MPS locality-domain view, this API returns the locality-domain handle + associated with ``index``. See ``MPS Locality Domain Device Enumeration``. .. seealso:: `nvmlDeviceGetHandleByIndex_v2` """ cdef Device device @@ -29363,6 +31232,10 @@ cpdef intptr_t device_get_handle_by_uuid(uuid) except? 0: intptr_t: Reference in which to return the device handle or MIG device handle. + .. note:: + In the MPS locality-domain view, this API returns the locality-domain handle + whose MPS-provided UUID matches ``uuid``. See ``MPS Locality Domain Device + Enumeration``. .. seealso:: `nvmlDeviceGetHandleByUUID` """ if not isinstance(uuid, str): @@ -29399,6 +31272,11 @@ cpdef intptr_t device_get_handle_by_pci_bus_id_v2(pci_bus_id) except? 0: .. note:: NVML 4.304 and older version of nvmlDeviceGetHandleByPciBusId"_v1" returns NVML_ERROR_NOT_FOUND instead of NVML_ERROR_NO_PERMISSION. + .. note:: + In the MPS locality-domain view, multiple locality domains can share a PCI bus + ID. This API returns the first matching handle in NVML enumeration order. Use + UUID or index to select a specific locality domain. See ``MPS Locality Domain + Device Enumeration``. .. seealso:: `nvmlDeviceGetHandleByPciBusId_v2` """ if not isinstance(pci_bus_id, str): @@ -29426,8 +31304,11 @@ cpdef str device_get_name(intptr_t device): device (intptr_t): The identifier of the target device. Returns: - char: Reference in which to return the product name. + str: Reference in which to return the product name. + .. note:: + In the MPS locality-domain view, this API returns the name supplied by MPS for + the locality domain. See ``MPS Locality Domain Device Enumeration``. .. seealso:: `nvmlDeviceGetName` """ cdef unsigned int length = 96 @@ -29483,6 +31364,9 @@ cpdef unsigned int device_get_index(intptr_t device) except? 0: unsigned int: Reference in which to return the NVML index of the device. + .. note:: + In the MPS locality-domain view, this API returns the NVML index of the + locality-domain handle. See ``MPS Locality Domain Device Enumeration``. .. seealso:: `nvmlDeviceGetIndex` """ cdef unsigned int index @@ -29505,7 +31389,7 @@ cpdef str device_get_serial(intptr_t device): device (intptr_t): The identifier of the target device. Returns: - char: Reference in which to return the board/module serial number. + str: Reference in which to return the board/module serial number. .. seealso:: `nvmlDeviceGetSerial` """ @@ -29636,6 +31520,10 @@ cpdef object device_get_cpu_affinity(intptr_t device, unsigned int cpu_set_size) CPUs, 64 CPUs per unsigned long on 64-bit machines, 32 on 32-bit machines. + .. note:: + In the MPS locality-domain view, this API returns the CPU affinity of the + physical parent associated with the locality-domain handle. See ``MPS Locality + Domain Device Enumeration``. .. seealso:: `nvmlDeviceGetCpuAffinity` """ cdef _cyb_view.array _cpu_set_alloc_ = _cyb_view.array(shape=(max(cpu_set_size, 1),), itemsize=sizeof(unsigned long), format="L", mode="c") @@ -29687,6 +31575,9 @@ cpdef unsigned int device_get_numa_node_id(intptr_t device) except? 0: Returns: unsigned int: NUMA node ID of the device. + .. note:: + In the MPS locality-domain view, this API returns the NUMA node supplied by MPS + for the locality domain. See ``MPS Locality Domain Device Enumeration``. .. seealso:: `nvmlDeviceGetNumaNodeId` """ cdef unsigned int node @@ -29758,6 +31649,10 @@ cpdef int device_get_p2p_status(intptr_t device1, intptr_t device2, int p2p_inde int: Reference in which to return the status of the ``p2p_index`` between ``device1`` and ``device2``. + .. note:: + In the MPS locality-domain view, this API returns the directed P2P status + supplied by MPS for the two locality-domain handles. See ``MPS Locality Domain + Device Enumeration``. .. seealso:: `nvmlDeviceGetP2PStatus` """ cdef _GpuP2PStatus p2p_status @@ -29783,8 +31678,11 @@ cpdef str device_get_uuid(intptr_t device): device (intptr_t): The identifier of the target device. Returns: - char: Reference in which to return the GPU UUID. + str: Reference in which to return the GPU UUID. + .. note:: + In the MPS locality-domain view, this API returns the UUID supplied by MPS for + the locality domain. See ``MPS Locality Domain Device Enumeration``. .. seealso:: `nvmlDeviceGetUUID` """ cdef unsigned int length = 96 @@ -29825,7 +31723,7 @@ cpdef str device_get_board_part_number(intptr_t device): device (intptr_t): Identifier of the target device. Returns: - char: Reference to the buffer to return. + str: Reference to the buffer to return. .. seealso:: `nvmlDeviceGetBoardPartNumber` """ @@ -29853,7 +31751,7 @@ cpdef str device_get_inforom_version(intptr_t device, int object): object (InforomObject): The target infoROM object. Returns: - char: Reference in which to return the infoROM version. + str: Reference in which to return the infoROM version. .. seealso:: `nvmlDeviceGetInforomVersion` """ @@ -29879,7 +31777,7 @@ cpdef str device_get_inforom_image_version(intptr_t device): device (intptr_t): The identifier of the target device. Returns: - char: Reference in which to return the infoROM image version. + str: Reference in which to return the infoROM image version. .. seealso:: `nvmlDeviceGetInforomImageVersion` """ @@ -30061,6 +31959,11 @@ cpdef object device_get_pci_info_v3(intptr_t device): Returns: nvmlPciInfo_t: Reference in which to return the PCI info. + .. note:: + In the MPS locality-domain view, this API and its v1 and v2 variants return the + PCI attributes supplied by MPS. Multiple locality domains can report the same + physical parent's PCI attributes. See ``MPS Locality Domain Device + Enumeration``. .. seealso:: `nvmlDeviceGetPciInfo_v3` """ cdef PciInfo pci_py = PciInfo() @@ -30853,7 +32756,7 @@ cpdef device_set_clock_offsets(intptr_t device, info): .. seealso:: `nvmlDeviceSetClockOffsets` """ - cdef intptr_t _info_ptr_ = int(info) + cdef intptr_t _info_ptr_ = 0 if info is None else int(info) with nogil: __status__ = nvmlDeviceSetClockOffsets(device, _info_ptr_) check_status(__status__) @@ -31064,6 +32967,10 @@ cpdef object device_get_memory_info_v2(intptr_t device): On certain SOC platforms, the integrated GPU (iGPU) does not use a dedicated framebuffer but instead shares memory with the system. As a result, ``NVML_ERROR_NOT_SUPPORTED`` will be returned in this case. + .. note:: + In the MPS locality-domain view, this API returns MPS-provided total, used, + free, and reserved memory for the locality domain. See ``MPS Locality Domain + Device Enumeration``. .. seealso:: `nvmlDeviceGetMemoryInfo_v2` """ cdef Memory_v2 memory_py = Memory_v2() @@ -31119,6 +33026,10 @@ cpdef tuple device_get_cuda_compute_capability(intptr_t device): - int: Reference in which to return the minor CUDA compute capability. + .. note:: + In the MPS locality-domain view, this API returns the compute capability + supplied by MPS for the locality domain. See ``MPS Locality Domain Device + Enumeration``. .. seealso:: `nvmlDeviceGetCudaComputeCapability` """ cdef int major @@ -31619,7 +33530,7 @@ cpdef str device_get_vbios_version(intptr_t device): device (intptr_t): The identifier of the target device. Returns: - char: Reference to which to return the VBIOS version. + str: Reference to which to return the VBIOS version. .. seealso:: `nvmlDeviceGetVbiosVersion` """ @@ -32058,7 +33969,7 @@ cpdef unsigned int device_get_bus_type(intptr_t device) except? 0: return. - - ``NVML_SUCCESS`` if the bus ``type`` is successfully retreived. + - ``NVML_SUCCESS`` if the bus ``type`` is successfully retrieved. - ``NVML_ERROR_UNINITIALIZED`` if the library has not been successfully initialized. - ``NVML_ERROR_INVALID_ARGUMENT`` if ``device`` is invalid or ``type`` is NULL. @@ -32358,6 +34269,10 @@ cpdef int device_get_accounting_mode(intptr_t device) except? -1: Returns: int: Reference in which to return the current accounting mode. + .. note:: + In the MPS locality-domain view, this API returns the physical parent's + accounting mode as reported by MPS. See ``MPS Locality Domain Device + Enumeration``. .. seealso:: `nvmlDeviceGetAccountingMode` """ cdef _EnableState mode @@ -33402,7 +35317,7 @@ cpdef device_set_nvlink_bw_mode(intptr_t device, set_bw_mode): .. seealso:: `nvmlDeviceSetNvlinkBwMode` """ - cdef intptr_t _set_bw_mode_ptr_ = int(set_bw_mode) + cdef intptr_t _set_bw_mode_ptr_ = 0 if set_bw_mode is None else int(set_bw_mode) set_bw_mode.version = NVML_VERSION_STRUCT(sizeof(nvmlNvlinkSetBwMode_v1_t), 1) with nogil: __status__ = nvmlDeviceSetNvlinkBwMode(device, _set_bw_mode_ptr_) @@ -33545,7 +35460,7 @@ cpdef device_modify_drain_state(pci_info, int new_state): .. seealso:: `nvmlDeviceModifyDrainState` """ - cdef intptr_t _pci_info_ptr_ = int(pci_info) + cdef intptr_t _pci_info_ptr_ = 0 if pci_info is None else int(pci_info) with nogil: __status__ = nvmlDeviceModifyDrainState(_pci_info_ptr_, <_EnableState>new_state) check_status(__status__) @@ -33566,7 +35481,7 @@ cpdef int device_query_drain_state(pci_info) except? -1: .. seealso:: `nvmlDeviceQueryDrainState` """ - cdef intptr_t _pci_info_ptr_ = int(pci_info) + cdef intptr_t _pci_info_ptr_ = 0 if pci_info is None else int(pci_info) cdef _EnableState current_state with nogil: __status__ = nvmlDeviceQueryDrainState(_pci_info_ptr_, ¤t_state) @@ -33593,7 +35508,7 @@ cpdef device_remove_gpu_v2(pci_info, int gpu_state, int link_state): .. seealso:: `nvmlDeviceRemoveGpu_v2` """ - cdef intptr_t _pci_info_ptr_ = int(pci_info) + cdef intptr_t _pci_info_ptr_ = 0 if pci_info is None else int(pci_info) with nogil: __status__ = nvmlDeviceRemoveGpu_v2(_pci_info_ptr_, <_DetachGpuState>gpu_state, <_PcieLinkState>link_state) check_status(__status__) @@ -33614,7 +35529,7 @@ cpdef device_discover_gpus(pci_info): .. seealso:: `nvmlDeviceDiscoverGpus` """ - cdef intptr_t _pci_info_ptr_ = int(pci_info) + cdef intptr_t _pci_info_ptr_ = 0 if pci_info is None else int(pci_info) with nogil: __status__ = nvmlDeviceDiscoverGpus(_pci_info_ptr_) check_status(__status__) @@ -33904,7 +35819,7 @@ cpdef str vgpu_type_get_class(unsigned int vgpu_type_id): vgpu_type_id (unsigned int): Handle to vGPU type. Returns: - char: Pointer to string array to return class in. + str: Pointer to string array to return class in. .. seealso:: `nvmlVgpuTypeGetClass` """ @@ -34047,7 +35962,7 @@ cpdef str vgpu_type_get_license(unsigned int vgpu_type_id): vgpu_type_id (unsigned int): Handle to vGPU type. Returns: - char: Pointer to buffer to return license info. + str: Pointer to buffer to return license info. .. seealso:: `nvmlVgpuTypeGetLicense` """ @@ -34199,7 +36114,7 @@ cpdef tuple vgpu_instance_get_vm_id(unsigned int vgpu_instance): Returns: A 2-tuple containing: - - char: Pointer to caller-supplied buffer to hold VM ID. + - str: Pointer to caller-supplied buffer to hold VM ID. - int: Pointer to hold VM ID type. .. seealso:: `nvmlVgpuInstanceGetVmID` @@ -34227,7 +36142,7 @@ cpdef str vgpu_instance_get_uuid(unsigned int vgpu_instance): instance. Returns: - char: Pointer to caller-supplied buffer to hold vGPU UUID. + str: Pointer to caller-supplied buffer to hold vGPU UUID. .. seealso:: `nvmlVgpuInstanceGetUUID` """ @@ -34257,7 +36172,7 @@ cpdef str vgpu_instance_get_vm_driver_version(unsigned int vgpu_instance): instance. Returns: - char: Caller-supplied buffer to return driver version string. + str: Caller-supplied buffer to return driver version string. .. seealso:: `nvmlVgpuInstanceGetVmDriverVersion` """ @@ -34584,7 +36499,7 @@ cpdef str vgpu_instance_get_gpu_pci_id(unsigned int vgpu_instance): instance. Returns: - char: Caller-supplied buffer to return vGPU PCI Id string. + str: Caller-supplied buffer to return vGPU PCI Id string. .. seealso:: `nvmlVgpuInstanceGetGpuPciId` """ @@ -34638,7 +36553,7 @@ cpdef str vgpu_instance_get_mdev_uuid(unsigned int vgpu_instance): instance. Returns: - char: Pointer to caller-supplied buffer to hold MDEV UUID. + str: Pointer to caller-supplied buffer to hold MDEV UUID. .. seealso:: `nvmlVgpuInstanceGetMdevUUID` """ @@ -34668,7 +36583,9 @@ cpdef gpu_instance_set_vgpu_scheduler_state(intptr_t gpu_instance, p_scheduler): .. seealso:: `nvmlGpuInstanceSetVgpuSchedulerState` """ - cdef intptr_t _p_scheduler_ptr_ = int(p_scheduler) + cdef intptr_t _p_scheduler_ptr_ = 0 if p_scheduler is None else int(p_scheduler) + if _p_scheduler_ptr_ == 0: + raise ValueError("p_scheduler must not be None") (_p_scheduler_ptr_).version = NVML_VERSION_STRUCT(sizeof(nvmlVgpuSchedulerState_v1_t), 1) with nogil: __status__ = nvmlGpuInstanceSetVgpuSchedulerState(gpu_instance, _p_scheduler_ptr_) @@ -34734,7 +36651,7 @@ cpdef str device_get_pgpu_metadata_string(intptr_t device): device (intptr_t): The identifier of the target device. Returns: - char: Pointer to caller-supplied buffer into which + str: Pointer to caller-supplied buffer into which ``pgpu_metadata`` is written. .. seealso:: `nvmlDeviceGetPgpuMetadataString` @@ -34894,7 +36811,7 @@ cpdef set_vgpu_version(vgpu_version): the NVIDIA vGPU Manager supports. Otherwise, an error is returned. .. seealso:: `nvmlSetVgpuVersion` """ - cdef intptr_t _vgpu_version_ptr_ = int(vgpu_version) + cdef intptr_t _vgpu_version_ptr_ = 0 if vgpu_version is None else int(vgpu_version) with nogil: __status__ = nvmlSetVgpuVersion(_vgpu_version_ptr_) check_status(__status__) @@ -35377,7 +37294,7 @@ cpdef intptr_t device_create_gpu_instance_with_placement(intptr_t device, unsign .. seealso:: `nvmlDeviceCreateGpuInstanceWithPlacement` """ - cdef intptr_t _placement_ptr_ = int(placement) + cdef intptr_t _placement_ptr_ = 0 if placement is None else int(placement) cdef GpuInstance gpu_instance with nogil: __status__ = nvmlDeviceCreateGpuInstanceWithPlacement(device, profile_id, _placement_ptr_, &gpu_instance) @@ -35585,7 +37502,7 @@ cpdef intptr_t gpu_instance_create_compute_instance_with_placement(intptr_t gpu_ .. seealso:: `nvmlGpuInstanceCreateComputeInstanceWithPlacement` """ - cdef intptr_t _placement_ptr_ = int(placement) + cdef intptr_t _placement_ptr_ = 0 if placement is None else int(placement) cdef ComputeInstance compute_instance with nogil: __status__ = nvmlGpuInstanceCreateComputeInstanceWithPlacement(gpu_instance, profile_id, _placement_ptr_, &compute_instance) @@ -35926,7 +37843,7 @@ cpdef device_set_power_mizer_mode_v1(intptr_t device, power_mizer_mode): .. seealso:: `nvmlDeviceSetPowerMizerMode_v1` """ - cdef intptr_t _power_mizer_mode_ptr_ = int(power_mizer_mode) + cdef intptr_t _power_mizer_mode_ptr_ = 0 if power_mizer_mode is None else int(power_mizer_mode) with nogil: __status__ = nvmlDeviceSetPowerMizerMode_v1(device, _power_mizer_mode_ptr_) check_status(__status__) @@ -36059,7 +37976,7 @@ cpdef device_set_vgpu_scheduler_state_v2(intptr_t device, p_scheduler_state): .. seealso:: `nvmlDeviceSetVgpuSchedulerState_v2` """ - cdef intptr_t _p_scheduler_state_ptr_ = int(p_scheduler_state) + cdef intptr_t _p_scheduler_state_ptr_ = 0 if p_scheduler_state is None else int(p_scheduler_state) with nogil: __status__ = nvmlDeviceSetVgpuSchedulerState_v2(device, _p_scheduler_state_ptr_) check_status(__status__) @@ -36081,7 +37998,7 @@ cpdef gpu_instance_set_vgpu_scheduler_state_v2(intptr_t gpu_instance, p_schedule .. seealso:: `nvmlGpuInstanceSetVgpuSchedulerState_v2` """ - cdef intptr_t _p_scheduler_state_ptr_ = int(p_scheduler_state) + cdef intptr_t _p_scheduler_state_ptr_ = 0 if p_scheduler_state is None else int(p_scheduler_state) with nogil: __status__ = nvmlGpuInstanceSetVgpuSchedulerState_v2(gpu_instance, _p_scheduler_state_ptr_) check_status(__status__) @@ -36274,7 +38191,7 @@ cpdef device_set_memory_limits_v1(intptr_t device, limits): MIG handles are not supported. .. seealso:: `nvmlDeviceSetMemoryLimits_v1` """ - cdef intptr_t _limits_ptr_ = int(limits) + cdef intptr_t _limits_ptr_ = 0 if limits is None else int(limits) with nogil: __status__ = nvmlDeviceSetMemoryLimits_v1(device, _limits_ptr_) check_status(__status__) @@ -36435,7 +38352,7 @@ cpdef event_set_register_gpu_operational_events_v1(intptr_t event_set, config): .. seealso:: `nvmlEventSetRegisterGpuOperationalEvents_v1` """ - cdef intptr_t _config_ptr_ = int(config) + cdef intptr_t _config_ptr_ = 0 if config is None else int(config) with nogil: __status__ = nvmlEventSetRegisterGpuOperationalEvents_v1(event_set, _config_ptr_) check_status(__status__) @@ -36478,7 +38395,7 @@ cpdef object device_get_bank_remapper_status_v1(intptr_t device): Returns: nvmlEccBankRemapperStatus_v1_t: Reference to - ``nvmlEccBankRemapperStatus_t``. + ``nvmlEccBankRemapperStatus_v1_t``. .. seealso:: `nvmlDeviceGetBankRemapperStatus_v1` """ @@ -36490,6 +38407,174 @@ cpdef object device_get_bank_remapper_status_v1(intptr_t device): return p_bank_remapper_status_py +cpdef object device_get_gpu_uptime_v1(intptr_t device): + """Retrieves the GPU uptime. The uptime denotes the number of seconds elapsed since the GPU was initialized by the driver. The uptime resets to zero on a host reboot, driver unload/reload, or a GPU reset. + + For MIG device handles, the parent GPU uptime is returned. + + Args: + device (intptr_t): The identifier of the target device. + + Returns: + nvmlGpuUptime_v1_t: Reference in which to return the GPU uptime. + + .. seealso:: `nvmlDeviceGetGpuUptime_v1` + """ + cdef GpuUptime_v1 uptime_py = GpuUptime_v1() + cdef nvmlGpuUptime_v1_t *uptime = (uptime_py._get_ptr()) + with nogil: + __status__ = nvmlDeviceGetGpuUptime_v1(device, uptime) + check_status(__status__) + return uptime_py + + +cpdef object system_get_conf_compute_settings_v2(): + """Get Conf Computing System Settings, version 2. + + Returns everything ``nvmlSystemGetConfComputeSettings`` reports, plus the TDISP + state of the GPUs in ``tdispState``. + All GPUs, and therefore all TDIs, are expected to be in the same state. If they + are not, the system level state is ambiguous and NVML_ERROR_UNKNOWN is + returned. + For Hopper ™️ or newer fully supported devices. Supported on Linux, Windows + TCC. + + Returns: + nvmlSystemConfComputeSettings_v2_t: System CC settings. + + .. seealso:: `nvmlSystemGetConfComputeSettings_v2` + """ + cdef SystemConfComputeSettings_v2 settings_py = SystemConfComputeSettings_v2() + cdef nvmlSystemConfComputeSettings_v2_t *settings = (settings_py._get_ptr()) + settings.version = NVML_VERSION_STRUCT(sizeof(nvmlSystemConfComputeSettings_v2_t), 2) + with nogil: + __status__ = nvmlSystemGetConfComputeSettings_v2(settings) + check_status(__status__) + return settings_py + + +cpdef object device_get_nvlink_info_v3(intptr_t device): + """Query NVLINK information associated with this device (v3). + + + Args: + device (intptr_t): The identifier of the target device. + + Returns: + nvmlNvLinkInfo_v3_t: Reference to ``nvmlNvLinkInfo_v3_t``. + + .. seealso:: `nvmlDeviceGetNvLinkInfo_v3` + """ + cdef NvLinkInfo_v3 info_py = NvLinkInfo_v3() + cdef nvmlNvLinkInfo_v3_t *info = (info_py._get_ptr()) + with nogil: + __status__ = nvmlDeviceGetNvLinkInfo_v3(device, info) + check_status(__status__) + return info_py + + +cpdef object device_get_nvlink_remap_table_info_v1(intptr_t device): + """Get the NVLink remap table information. + + This API returns the remap table addresses for all the entries in the FLA and + SPA/GPA remap tables. + + Args: + device (intptr_t): The identifier of the target device. + + Returns: + nvmlNvlinkGetRemapTableInfo_v1_t: Reference to + ``nvmlNvlinkGetRemapTableInfo_v1_t`` struct. + + .. seealso:: `nvmlDeviceGetNvlinkRemapTableInfo_v1` + """ + cdef NvlinkGetRemapTableInfo_v1 remap_table_info_py = NvlinkGetRemapTableInfo_v1() + cdef nvmlNvlinkGetRemapTableInfo_v1_t *remap_table_info = (remap_table_info_py._get_ptr()) + with nogil: + __status__ = nvmlDeviceGetNvlinkRemapTableInfo_v1(device, remap_table_info) + check_status(__status__) + return remap_table_info_py + + +cpdef device_set_nvlink_nvle_ready_v1(intptr_t device, set_nvle_ready): + """Set the NVLink NVLE ready state. + + This API signals whether NVLE (NVLink Encryption) is ready on the given device. + + Args: + device (intptr_t): The identifier of the target device. + set_nvle_ready (intptr_t): Reference to + ``nvmlNvlinkSetNvleReady_v1_t`` struct. + + .. seealso:: `nvmlDeviceSetNvlinkNvleReady_v1` + """ + cdef intptr_t _set_nvle_ready_ptr_ = 0 if set_nvle_ready is None else int(set_nvle_ready) + with nogil: + __status__ = nvmlDeviceSetNvlinkNvleReady_v1(device, _set_nvle_ready_ptr_) + check_status(__status__) + + +cpdef device_lock_nvlink_remap_table_v1(intptr_t device, remap_table_lock_info): + """Lock the NVLink remap table to prevent MSE from making further updates. + + This API requests to lock the remap table to prevent MSE (Multi-Socket Engine) + from making any further updates to the remap table for the given links. + + Args: + device (intptr_t): The identifier of the target device. + remap_table_lock_info (intptr_t): Reference to + ``nvmlNvlinkLockRemapTable_v1_t`` struct. + + .. seealso:: `nvmlDeviceLockNvlinkRemapTable_v1` + """ + cdef intptr_t _remap_table_lock_info_ptr_ = 0 if remap_table_lock_info is None else int(remap_table_lock_info) + with nogil: + __status__ = nvmlDeviceLockNvlinkRemapTable_v1(device, _remap_table_lock_info_ptr_) + check_status(__status__) + + +cpdef device_setup_nvlink_nvle_encryption_key_v1(intptr_t device, encryption_key): + """Setup the NVLink NVLE encryption key. + + This API sets the NVLE encryption key between GPUs with the given ALIDs. + + Args: + device (intptr_t): The identifier of the target device. + encryption_key (intptr_t): Reference to + ``nvmlNvlinkSetupNvleEncryptionKey_v1_t`` struct. + + .. seealso:: `nvmlDeviceSetupNvlinkNvleEncryptionKey_v1` + """ + cdef intptr_t _encryption_key_ptr_ = 0 if encryption_key is None else int(encryption_key) + with nogil: + __status__ = nvmlDeviceSetupNvlinkNvleEncryptionKey_v1(device, _encryption_key_ptr_) + check_status(__status__) + + +cpdef object device_get_nvlink_nvle_private_info_v1(intptr_t device): + """Get NVLink NVLE private (opaque) information. + + This API retrieves opaque NVLE private information for the given device and + copies it into the ``data`` buffer, setting ``size`` to the number of bytes + written. + + Args: + device (intptr_t): The identifier of the target device. + + Returns: + nvmlNvlinkNvlePrivateInfo_v1_t: Reference to + ``nvmlNvlinkNvlePrivateInfo_v1_t`` struct. + + .. seealso:: `nvmlDeviceGetNvlinkNvlePrivateInfo_v1` + """ + cdef NvlinkNvlePrivateInfo_v1 private_info_py = NvlinkNvlePrivateInfo_v1() + cdef nvmlNvlinkNvlePrivateInfo_v1_t *private_info = (private_info_py._get_ptr()) + with nogil: + __status__ = nvmlDeviceGetNvlinkNvlePrivateInfo_v1(device, private_info) + check_status(__status__) + return private_info_py + + cpdef str system_get_driver_branch(): """Retrieves the driver branch of the NVIDIA driver installed on the system. @@ -36674,6 +38759,7 @@ cdef FieldValue _cast_field_values(values): values_[i].scope_id = v[1] elif isinstance(v, int): values_[i].field_id = v + values_[i].scope_id = 0 else: raise ValueError("Each entry must be an integer field ID, or a tuple of (field ID, scope ID)") return values_ @@ -36686,6 +38772,8 @@ cpdef object device_get_field_values(intptr_t device, values): device (intptr_t): The device handle of the GPU to request field values for. values (FieldValue): Array of FieldValue specifying what to retrieve. + Entries left unpopulated by NVML report ``ERROR_UNKNOWN`` in ``nvml_return``. + .. seealso:: `nvmlDeviceGetFieldValues` """ cdef FieldValue values_ = _cast_field_values(values) @@ -36696,6 +38784,10 @@ cpdef object device_get_field_values(intptr_t device, values): if valuesCount == 0: return values_ + # nvbug 6952048: native NVML can return success without populating an entry. + # Reset every query so untouched entries cannot retain stale success statuses. + values_.nvml_return = NVML_ERROR_UNKNOWN + with nogil: __status__ = nvmlDeviceGetFieldValues(device, valuesCount, ptr) check_status(__status__) @@ -38017,4 +40109,8 @@ cpdef bytes event_set_get_context_data_v1(intptr_t set, unsigned int index): __status__ = nvmlEventSetGetContextData_v1(set, ¶ms) check_status(__status__) return data + + +TimeoutError = NvmlTimeoutError +MemoryError = NvmlMemoryError del _cyb_FastEnum diff --git a/cuda_bindings_12/cuda/bindings/nvvm.pxd b/cuda_bindings_12/cuda/bindings/nvvm.pxd index 9e78ece80690..462554983aed 100644 --- a/cuda_bindings_12/cuda/bindings/nvvm.pxd +++ b/cuda_bindings_12/cuda/bindings/nvvm.pxd @@ -2,8 +2,8 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.0.1 to 13.4.1. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=ee88a87ab53668207e31e3b38c1593a3cd3724e02300ebea7574aafb509bb3b6 +# This code was automatically generated across versions from 12.0.1 to 13.5.0. Do not modify it directly. +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=c341fd657c24cae3a752cced6d66767bf5531d2938ba215ad0cd782ac6c79b7c diff --git a/cuda_bindings_12/cuda/bindings/nvvm.pyx b/cuda_bindings_12/cuda/bindings/nvvm.pyx index e1d0bb39087a..52bfa173b5f7 100644 --- a/cuda_bindings_12/cuda/bindings/nvvm.pyx +++ b/cuda_bindings_12/cuda/bindings/nvvm.pyx @@ -2,13 +2,17 @@ # # SPDX-License-Identifier: Apache-2.0 # -# This code was automatically generated across versions from 12.0.1 to 13.4.1. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=92a06aa55bccfabc1d5bb1216489bb147dfb71d6e628480128fee207b8f3794f +# This code was automatically generated across versions from 12.0.1 to 13.5.0. Do not modify it directly. +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=737e7153c4954ec8a2b0dedd50729ee160589ccef13b0e3f512b6c7645d83f62 # <<<< PREAMBLE CONTENT >>>> cimport cpython as _cyb_cpython +from cuda.bindings._internal.utils cimport ( + get_nested_resource_ptr as _cyb_get_nested_resource_ptr, + nested_resource as _cyb_nested_resource, +) from libc.stdint cimport intptr_t from cuda.bindings._internal._fast_enum import FastEnum as _cyb_FastEnum @@ -29,13 +33,12 @@ cdef intptr_t _cyb_get_buffer_pointer(buf, Py_ssize_t size, readonly=True) excep status = _cyb_cpython.PyObject_GetBuffer(buf, &view, flags) if size != -1: assert view.len == size - assert view.ndim == 1 except Exception as e: adj = "writable " if not readonly else "" raise ValueError( "buf must be None, a Python int representing the pointer " - f"address to a valid buffer, or a 1D contiguous {adj}" - f"buffer, of size {size}" + f"address to a valid buffer, or a contiguous {adj}" + f"buffer (a ctypes object, NumPy array, bytes, ...), of size {size}" ) from e else: ptr = view.buf @@ -320,6 +323,9 @@ cpdef compile_program(intptr_t prog, int num_options, options): architectures (compute capability compute_100 or greater). Using this option implies that the operations in incoming ``prog`` are compliant with targeted PTX version. If not set, highest available PTX version is used. + - -nvvm-latest Use the most recent LLVM-based NVVM release. Previews this newer + NVVM on all GPU architectures. No-op for Blackwell and later where it is + already the default. Args: prog (intptr_t): NVVM program. @@ -333,8 +339,8 @@ cpdef compile_program(intptr_t prog, int num_options, options): .. seealso:: `nvvmCompileProgram` """ - cdef nested_resource[ char ] _options_ - get_nested_resource_ptr[char](_options_, options, NULL) + cdef _cyb_nested_resource[ char ] _options_ + _cyb_get_nested_resource_ptr[char](_options_, options, NULL) with nogil: __status__ = nvvmCompileProgram(prog, num_options, (_options_.ptrs.data())) check_status(__status__) @@ -358,8 +364,8 @@ cpdef verify_program(intptr_t prog, int num_options, options): .. seealso:: `nvvmVerifyProgram` """ - cdef nested_resource[ char ] _options_ - get_nested_resource_ptr[char](_options_, options, NULL) + cdef _cyb_nested_resource[ char ] _options_ + _cyb_get_nested_resource_ptr[char](_options_, options, NULL) with nogil: __status__ = nvvmVerifyProgram(prog, num_options, (_options_.ptrs.data())) check_status(__status__) @@ -450,7 +456,7 @@ cpdef int llvm_version(arch) except? 0: arch (str): Architecture string. Returns: - int: IR version number. + int: LLVM IR version number. .. seealso:: `nvvmLLVMVersion` """ diff --git a/cuda_bindings_12/cuda/bindings/runtime.pxd.in b/cuda_bindings_12/cuda/bindings/runtime.pxd similarity index 61% rename from cuda_bindings_12/cuda/bindings/runtime.pxd.in rename to cuda_bindings_12/cuda/bindings/runtime.pxd index 29c9a2472a39..4bfa9688b9a7 100644 --- a/cuda_bindings_12/cuda/bindings/runtime.pxd.in +++ b/cuda_bindings_12/cuda/bindings/runtime.pxd @@ -2,14 +2,12 @@ # SPDX-License-Identifier: Apache-2.0 # This code was automatically generated with version 12.9.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=fa9703419c5938342fe7ed6612dc66da6924bcdb308a2c975c3c476268a9757a +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=e37caaa1e8ae8cd3cacfe6435e9bfb594046a60a2bc58562dc66534aae3786eb cimport cuda.bindings.cyruntime as cyruntime include "_lib/utils.pxd" cimport cuda.bindings.driver as driver -{{if 'cudaArray_t' in found_types}} - cdef class cudaArray_t: """ @@ -23,9 +21,6 @@ cdef class cudaArray_t: """ cdef cyruntime.cudaArray_t _pvt_val cdef cyruntime.cudaArray_t* _pvt_ptr -{{endif}} - -{{if 'cudaArray_const_t' in found_types}} cdef class cudaArray_const_t: """ @@ -40,9 +35,6 @@ cdef class cudaArray_const_t: """ cdef cyruntime.cudaArray_const_t _pvt_val cdef cyruntime.cudaArray_const_t* _pvt_ptr -{{endif}} - -{{if 'cudaMipmappedArray_t' in found_types}} cdef class cudaMipmappedArray_t: """ @@ -57,9 +49,6 @@ cdef class cudaMipmappedArray_t: """ cdef cyruntime.cudaMipmappedArray_t _pvt_val cdef cyruntime.cudaMipmappedArray_t* _pvt_ptr -{{endif}} - -{{if 'cudaMipmappedArray_const_t' in found_types}} cdef class cudaMipmappedArray_const_t: """ @@ -74,9 +63,6 @@ cdef class cudaMipmappedArray_const_t: """ cdef cyruntime.cudaMipmappedArray_const_t _pvt_val cdef cyruntime.cudaMipmappedArray_const_t* _pvt_ptr -{{endif}} - -{{if 'cudaGraphicsResource_t' in found_types}} cdef class cudaGraphicsResource_t: """ @@ -91,9 +77,6 @@ cdef class cudaGraphicsResource_t: """ cdef cyruntime.cudaGraphicsResource_t _pvt_val cdef cyruntime.cudaGraphicsResource_t* _pvt_ptr -{{endif}} - -{{if 'cudaExternalMemory_t' in found_types}} cdef class cudaExternalMemory_t: """ @@ -108,9 +91,6 @@ cdef class cudaExternalMemory_t: """ cdef cyruntime.cudaExternalMemory_t _pvt_val cdef cyruntime.cudaExternalMemory_t* _pvt_ptr -{{endif}} - -{{if 'cudaExternalSemaphore_t' in found_types}} cdef class cudaExternalSemaphore_t: """ @@ -125,9 +105,6 @@ cdef class cudaExternalSemaphore_t: """ cdef cyruntime.cudaExternalSemaphore_t _pvt_val cdef cyruntime.cudaExternalSemaphore_t* _pvt_ptr -{{endif}} - -{{if 'cudaKernel_t' in found_types}} cdef class cudaKernel_t: """ @@ -142,9 +119,6 @@ cdef class cudaKernel_t: """ cdef cyruntime.cudaKernel_t _pvt_val cdef cyruntime.cudaKernel_t* _pvt_ptr -{{endif}} - -{{if 'cudaLibrary_t' in found_types}} cdef class cudaLibrary_t: """ @@ -159,9 +133,6 @@ cdef class cudaLibrary_t: """ cdef cyruntime.cudaLibrary_t _pvt_val cdef cyruntime.cudaLibrary_t* _pvt_ptr -{{endif}} - -{{if 'cudaGraphDeviceNode_t' in found_types}} cdef class cudaGraphDeviceNode_t: """ @@ -176,9 +147,6 @@ cdef class cudaGraphDeviceNode_t: """ cdef cyruntime.cudaGraphDeviceNode_t _pvt_val cdef cyruntime.cudaGraphDeviceNode_t* _pvt_ptr -{{endif}} - -{{if 'cudaAsyncCallbackHandle_t' in found_types}} cdef class cudaAsyncCallbackHandle_t: """ @@ -193,9 +161,6 @@ cdef class cudaAsyncCallbackHandle_t: """ cdef cyruntime.cudaAsyncCallbackHandle_t _pvt_val cdef cyruntime.cudaAsyncCallbackHandle_t* _pvt_ptr -{{endif}} - -{{if True}} cdef class EGLImageKHR: """ @@ -208,9 +173,6 @@ cdef class EGLImageKHR: """ cdef cyruntime.EGLImageKHR _pvt_val cdef cyruntime.EGLImageKHR* _pvt_ptr -{{endif}} - -{{if True}} cdef class EGLStreamKHR: """ @@ -223,9 +185,6 @@ cdef class EGLStreamKHR: """ cdef cyruntime.EGLStreamKHR _pvt_val cdef cyruntime.EGLStreamKHR* _pvt_ptr -{{endif}} - -{{if True}} cdef class EGLSyncKHR: """ @@ -238,9 +197,6 @@ cdef class EGLSyncKHR: """ cdef cyruntime.EGLSyncKHR _pvt_val cdef cyruntime.EGLSyncKHR* _pvt_ptr -{{endif}} - -{{if 'cudaHostFn_t' in found_types}} cdef class cudaHostFn_t: """ @@ -253,9 +209,6 @@ cdef class cudaHostFn_t: """ cdef cyruntime.cudaHostFn_t _pvt_val cdef cyruntime.cudaHostFn_t* _pvt_ptr -{{endif}} - -{{if 'cudaAsyncCallback' in found_types}} cdef class cudaAsyncCallback: """ @@ -268,9 +221,6 @@ cdef class cudaAsyncCallback: """ cdef cyruntime.cudaAsyncCallback _pvt_val cdef cyruntime.cudaAsyncCallback* _pvt_ptr -{{endif}} - -{{if 'cudaStreamCallback_t' in found_types}} cdef class cudaStreamCallback_t: """ @@ -283,36 +233,32 @@ cdef class cudaStreamCallback_t: """ cdef cyruntime.cudaStreamCallback_t _pvt_val cdef cyruntime.cudaStreamCallback_t* _pvt_ptr -{{endif}} - -{{if 'dim3' in found_struct}} cdef class dim3: """ Attributes ---------- - {{if 'dim3.x' in found_struct}} + x : unsigned int - {{endif}} - {{if 'dim3.y' in found_struct}} + + y : unsigned int - {{endif}} - {{if 'dim3.z' in found_struct}} + + z : unsigned int - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.dim3 _pvt_val cdef cyruntime.dim3* _pvt_ptr -{{endif}} -{{if 'cudaChannelFormatDesc' in found_struct}} cdef class cudaChannelFormatDesc: """ @@ -320,62 +266,60 @@ cdef class cudaChannelFormatDesc: Attributes ---------- - {{if 'cudaChannelFormatDesc.x' in found_struct}} + x : int x - {{endif}} - {{if 'cudaChannelFormatDesc.y' in found_struct}} + + y : int y - {{endif}} - {{if 'cudaChannelFormatDesc.z' in found_struct}} + + z : int z - {{endif}} - {{if 'cudaChannelFormatDesc.w' in found_struct}} + + w : int w - {{endif}} - {{if 'cudaChannelFormatDesc.f' in found_struct}} + + f : cudaChannelFormatKind Channel format kind - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaChannelFormatDesc _pvt_val cdef cyruntime.cudaChannelFormatDesc* _pvt_ptr -{{endif}} -{{if 'cudaArraySparseProperties.tileExtent' in found_struct}} cdef class anon_struct0: """ Attributes ---------- - {{if 'cudaArraySparseProperties.tileExtent.width' in found_struct}} + width : unsigned int - {{endif}} - {{if 'cudaArraySparseProperties.tileExtent.height' in found_struct}} + + height : unsigned int - {{endif}} - {{if 'cudaArraySparseProperties.tileExtent.depth' in found_struct}} + + depth : unsigned int - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaArraySparseProperties* _pvt_ptr -{{endif}} -{{if 'cudaArraySparseProperties' in found_struct}} cdef class cudaArraySparseProperties: """ @@ -383,39 +327,34 @@ cdef class cudaArraySparseProperties: Attributes ---------- - {{if 'cudaArraySparseProperties.tileExtent' in found_struct}} + tileExtent : anon_struct0 - {{endif}} - {{if 'cudaArraySparseProperties.miptailFirstLevel' in found_struct}} + + miptailFirstLevel : unsigned int First mip level at which the mip tail begins - {{endif}} - {{if 'cudaArraySparseProperties.miptailSize' in found_struct}} + + miptailSize : unsigned long long Total size of the mip tail. - {{endif}} - {{if 'cudaArraySparseProperties.flags' in found_struct}} + + flags : unsigned int Flags will either be zero or cudaArraySparsePropertiesSingleMipTail - {{endif}} - {{if 'cudaArraySparseProperties.reserved' in found_struct}} - reserved : list[unsigned int] - {{endif}} Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaArraySparseProperties _pvt_val cdef cyruntime.cudaArraySparseProperties* _pvt_ptr - {{if 'cudaArraySparseProperties.tileExtent' in found_struct}} + cdef anon_struct0 _tileExtent - {{endif}} -{{endif}} -{{if 'cudaArrayMemoryRequirements' in found_struct}} + cdef class cudaArrayMemoryRequirements: """ @@ -423,28 +362,23 @@ cdef class cudaArrayMemoryRequirements: Attributes ---------- - {{if 'cudaArrayMemoryRequirements.size' in found_struct}} + size : size_t Total size of the array. - {{endif}} - {{if 'cudaArrayMemoryRequirements.alignment' in found_struct}} + + alignment : size_t Alignment necessary for mapping the array. - {{endif}} - {{if 'cudaArrayMemoryRequirements.reserved' in found_struct}} - reserved : list[unsigned int] - {{endif}} Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaArrayMemoryRequirements _pvt_val cdef cyruntime.cudaArrayMemoryRequirements* _pvt_ptr -{{endif}} -{{if 'cudaPitchedPtr' in found_struct}} cdef class cudaPitchedPtr: """ @@ -452,35 +386,34 @@ cdef class cudaPitchedPtr: Attributes ---------- - {{if 'cudaPitchedPtr.ptr' in found_struct}} + ptr : Any Pointer to allocated memory - {{endif}} - {{if 'cudaPitchedPtr.pitch' in found_struct}} + + pitch : size_t Pitch of allocated memory in bytes - {{endif}} - {{if 'cudaPitchedPtr.xsize' in found_struct}} + + xsize : size_t Logical width of allocation in elements - {{endif}} - {{if 'cudaPitchedPtr.ysize' in found_struct}} + + ysize : size_t Logical height of allocation in elements - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaPitchedPtr _pvt_val cdef cyruntime.cudaPitchedPtr* _pvt_ptr - {{if 'cudaPitchedPtr.ptr' in found_struct}} + cdef _HelperInputVoidPtr _cyptr - {{endif}} -{{endif}} -{{if 'cudaExtent' in found_struct}} + cdef class cudaExtent: """ @@ -488,29 +421,28 @@ cdef class cudaExtent: Attributes ---------- - {{if 'cudaExtent.width' in found_struct}} + width : size_t Width in elements when referring to array memory, in bytes when referring to linear memory - {{endif}} - {{if 'cudaExtent.height' in found_struct}} + + height : size_t Height in elements - {{endif}} - {{if 'cudaExtent.depth' in found_struct}} + + depth : size_t Depth in elements - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaExtent _pvt_val cdef cyruntime.cudaExtent* _pvt_ptr -{{endif}} -{{if 'cudaPos' in found_struct}} cdef class cudaPos: """ @@ -518,28 +450,27 @@ cdef class cudaPos: Attributes ---------- - {{if 'cudaPos.x' in found_struct}} + x : size_t x - {{endif}} - {{if 'cudaPos.y' in found_struct}} + + y : size_t y - {{endif}} - {{if 'cudaPos.z' in found_struct}} + + z : size_t z - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaPos _pvt_val cdef cyruntime.cudaPos* _pvt_ptr -{{endif}} -{{if 'cudaMemcpy3DParms' in found_struct}} cdef class cudaMemcpy3DParms: """ @@ -547,69 +478,68 @@ cdef class cudaMemcpy3DParms: Attributes ---------- - {{if 'cudaMemcpy3DParms.srcArray' in found_struct}} + srcArray : cudaArray_t Source memory address - {{endif}} - {{if 'cudaMemcpy3DParms.srcPos' in found_struct}} + + srcPos : cudaPos Source position offset - {{endif}} - {{if 'cudaMemcpy3DParms.srcPtr' in found_struct}} + + srcPtr : cudaPitchedPtr Pitched source memory address - {{endif}} - {{if 'cudaMemcpy3DParms.dstArray' in found_struct}} + + dstArray : cudaArray_t Destination memory address - {{endif}} - {{if 'cudaMemcpy3DParms.dstPos' in found_struct}} + + dstPos : cudaPos Destination position offset - {{endif}} - {{if 'cudaMemcpy3DParms.dstPtr' in found_struct}} + + dstPtr : cudaPitchedPtr Pitched destination memory address - {{endif}} - {{if 'cudaMemcpy3DParms.extent' in found_struct}} + + extent : cudaExtent Requested memory copy size - {{endif}} - {{if 'cudaMemcpy3DParms.kind' in found_struct}} + + kind : cudaMemcpyKind Type of transfer - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaMemcpy3DParms _pvt_val cdef cyruntime.cudaMemcpy3DParms* _pvt_ptr - {{if 'cudaMemcpy3DParms.srcArray' in found_struct}} + cdef cudaArray_t _srcArray - {{endif}} - {{if 'cudaMemcpy3DParms.srcPos' in found_struct}} + + cdef cudaPos _srcPos - {{endif}} - {{if 'cudaMemcpy3DParms.srcPtr' in found_struct}} + + cdef cudaPitchedPtr _srcPtr - {{endif}} - {{if 'cudaMemcpy3DParms.dstArray' in found_struct}} + + cdef cudaArray_t _dstArray - {{endif}} - {{if 'cudaMemcpy3DParms.dstPos' in found_struct}} + + cdef cudaPos _dstPos - {{endif}} - {{if 'cudaMemcpy3DParms.dstPtr' in found_struct}} + + cdef cudaPitchedPtr _dstPtr - {{endif}} - {{if 'cudaMemcpy3DParms.extent' in found_struct}} + + cdef cudaExtent _extent - {{endif}} -{{endif}} -{{if 'cudaMemcpyNodeParams' in found_struct}} + cdef class cudaMemcpyNodeParams: """ @@ -617,31 +547,26 @@ cdef class cudaMemcpyNodeParams: Attributes ---------- - {{if 'cudaMemcpyNodeParams.flags' in found_struct}} + flags : int Must be zero - {{endif}} - {{if 'cudaMemcpyNodeParams.reserved' in found_struct}} - reserved : list[int] - Must be zero - {{endif}} - {{if 'cudaMemcpyNodeParams.copyParams' in found_struct}} + + copyParams : cudaMemcpy3DParms Parameters for the memory copy - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaMemcpyNodeParams _pvt_val cdef cyruntime.cudaMemcpyNodeParams* _pvt_ptr - {{if 'cudaMemcpyNodeParams.copyParams' in found_struct}} + cdef cudaMemcpy3DParms _copyParams - {{endif}} -{{endif}} -{{if 'cudaMemcpy3DPeerParms' in found_struct}} + cdef class cudaMemcpy3DPeerParms: """ @@ -649,73 +574,72 @@ cdef class cudaMemcpy3DPeerParms: Attributes ---------- - {{if 'cudaMemcpy3DPeerParms.srcArray' in found_struct}} + srcArray : cudaArray_t Source memory address - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcPos' in found_struct}} + + srcPos : cudaPos Source position offset - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcPtr' in found_struct}} + + srcPtr : cudaPitchedPtr Pitched source memory address - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcDevice' in found_struct}} + + srcDevice : int Source device - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstArray' in found_struct}} + + dstArray : cudaArray_t Destination memory address - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstPos' in found_struct}} + + dstPos : cudaPos Destination position offset - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstPtr' in found_struct}} + + dstPtr : cudaPitchedPtr Pitched destination memory address - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstDevice' in found_struct}} + + dstDevice : int Destination device - {{endif}} - {{if 'cudaMemcpy3DPeerParms.extent' in found_struct}} + + extent : cudaExtent Requested memory copy size - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaMemcpy3DPeerParms _pvt_val cdef cyruntime.cudaMemcpy3DPeerParms* _pvt_ptr - {{if 'cudaMemcpy3DPeerParms.srcArray' in found_struct}} + cdef cudaArray_t _srcArray - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcPos' in found_struct}} + + cdef cudaPos _srcPos - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcPtr' in found_struct}} + + cdef cudaPitchedPtr _srcPtr - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstArray' in found_struct}} + + cdef cudaArray_t _dstArray - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstPos' in found_struct}} + + cdef cudaPos _dstPos - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstPtr' in found_struct}} + + cdef cudaPitchedPtr _dstPtr - {{endif}} - {{if 'cudaMemcpy3DPeerParms.extent' in found_struct}} + + cdef cudaExtent _extent - {{endif}} -{{endif}} -{{if 'cudaMemsetParams' in found_struct}} + cdef class cudaMemsetParams: """ @@ -723,43 +647,42 @@ cdef class cudaMemsetParams: Attributes ---------- - {{if 'cudaMemsetParams.dst' in found_struct}} + dst : Any Destination device pointer - {{endif}} - {{if 'cudaMemsetParams.pitch' in found_struct}} + + pitch : size_t Pitch of destination device pointer. Unused if height is 1 - {{endif}} - {{if 'cudaMemsetParams.value' in found_struct}} + + value : unsigned int Value to be set - {{endif}} - {{if 'cudaMemsetParams.elementSize' in found_struct}} + + elementSize : unsigned int Size of each element in bytes. Must be 1, 2, or 4. - {{endif}} - {{if 'cudaMemsetParams.width' in found_struct}} + + width : size_t Width of the row in elements - {{endif}} - {{if 'cudaMemsetParams.height' in found_struct}} + + height : size_t Number of rows - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaMemsetParams _pvt_val cdef cyruntime.cudaMemsetParams* _pvt_ptr - {{if 'cudaMemsetParams.dst' in found_struct}} + cdef _HelperInputVoidPtr _cydst - {{endif}} -{{endif}} -{{if 'cudaMemsetParamsV2' in found_struct}} + cdef class cudaMemsetParamsV2: """ @@ -767,43 +690,42 @@ cdef class cudaMemsetParamsV2: Attributes ---------- - {{if 'cudaMemsetParamsV2.dst' in found_struct}} + dst : Any Destination device pointer - {{endif}} - {{if 'cudaMemsetParamsV2.pitch' in found_struct}} + + pitch : size_t Pitch of destination device pointer. Unused if height is 1 - {{endif}} - {{if 'cudaMemsetParamsV2.value' in found_struct}} + + value : unsigned int Value to be set - {{endif}} - {{if 'cudaMemsetParamsV2.elementSize' in found_struct}} + + elementSize : unsigned int Size of each element in bytes. Must be 1, 2, or 4. - {{endif}} - {{if 'cudaMemsetParamsV2.width' in found_struct}} + + width : size_t Width of the row in elements - {{endif}} - {{if 'cudaMemsetParamsV2.height' in found_struct}} + + height : size_t Number of rows - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaMemsetParamsV2 _pvt_val cdef cyruntime.cudaMemsetParamsV2* _pvt_ptr - {{if 'cudaMemsetParamsV2.dst' in found_struct}} + cdef _HelperInputVoidPtr _cydst - {{endif}} -{{endif}} -{{if 'cudaAccessPolicyWindow' in found_struct}} + cdef class cudaAccessPolicyWindow: """ @@ -818,43 +740,42 @@ cdef class cudaAccessPolicyWindow: Attributes ---------- - {{if 'cudaAccessPolicyWindow.base_ptr' in found_struct}} + base_ptr : Any Starting address of the access policy window. CUDA driver may align it. - {{endif}} - {{if 'cudaAccessPolicyWindow.num_bytes' in found_struct}} + + num_bytes : size_t Size in bytes of the window policy. CUDA driver may restrict the maximum size and alignment. - {{endif}} - {{if 'cudaAccessPolicyWindow.hitRatio' in found_struct}} + + hitRatio : float hitRatio specifies percentage of lines assigned hitProp, rest are assigned missProp. - {{endif}} - {{if 'cudaAccessPolicyWindow.hitProp' in found_struct}} + + hitProp : cudaAccessProperty ::CUaccessProperty set for hit. - {{endif}} - {{if 'cudaAccessPolicyWindow.missProp' in found_struct}} + + missProp : cudaAccessProperty ::CUaccessProperty set for miss. Must be either NORMAL or STREAMING. - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaAccessPolicyWindow _pvt_val cdef cyruntime.cudaAccessPolicyWindow* _pvt_ptr - {{if 'cudaAccessPolicyWindow.base_ptr' in found_struct}} + cdef _HelperInputVoidPtr _cybase_ptr - {{endif}} -{{endif}} -{{if 'cudaHostNodeParams' in found_struct}} + cdef class cudaHostNodeParams: """ @@ -862,30 +783,29 @@ cdef class cudaHostNodeParams: Attributes ---------- - {{if 'cudaHostNodeParams.fn' in found_struct}} + fn : cudaHostFn_t The function to call when the node executes - {{endif}} - {{if 'cudaHostNodeParams.userData' in found_struct}} + + userData : Any Argument to pass to the function - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaHostNodeParams _pvt_val cdef cyruntime.cudaHostNodeParams* _pvt_ptr - {{if 'cudaHostNodeParams.fn' in found_struct}} + cdef cudaHostFn_t _fn - {{endif}} - {{if 'cudaHostNodeParams.userData' in found_struct}} + + cdef _HelperInputVoidPtr _cyuserData - {{endif}} -{{endif}} -{{if 'cudaHostNodeParamsV2' in found_struct}} + cdef class cudaHostNodeParamsV2: """ @@ -893,186 +813,180 @@ cdef class cudaHostNodeParamsV2: Attributes ---------- - {{if 'cudaHostNodeParamsV2.fn' in found_struct}} + fn : cudaHostFn_t The function to call when the node executes - {{endif}} - {{if 'cudaHostNodeParamsV2.userData' in found_struct}} + + userData : Any Argument to pass to the function - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaHostNodeParamsV2 _pvt_val cdef cyruntime.cudaHostNodeParamsV2* _pvt_ptr - {{if 'cudaHostNodeParamsV2.fn' in found_struct}} + cdef cudaHostFn_t _fn - {{endif}} - {{if 'cudaHostNodeParamsV2.userData' in found_struct}} + + cdef _HelperInputVoidPtr _cyuserData - {{endif}} -{{endif}} -{{if 'cudaResourceDesc.res.array' in found_struct}} + cdef class anon_struct1: """ Attributes ---------- - {{if 'cudaResourceDesc.res.array.array' in found_struct}} + array : cudaArray_t - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaResourceDesc* _pvt_ptr - {{if 'cudaResourceDesc.res.array.array' in found_struct}} + cdef cudaArray_t _array - {{endif}} -{{endif}} -{{if 'cudaResourceDesc.res.mipmap' in found_struct}} + cdef class anon_struct2: """ Attributes ---------- - {{if 'cudaResourceDesc.res.mipmap.mipmap' in found_struct}} + mipmap : cudaMipmappedArray_t - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaResourceDesc* _pvt_ptr - {{if 'cudaResourceDesc.res.mipmap.mipmap' in found_struct}} + cdef cudaMipmappedArray_t _mipmap - {{endif}} -{{endif}} -{{if 'cudaResourceDesc.res.linear' in found_struct}} + cdef class anon_struct3: """ Attributes ---------- - {{if 'cudaResourceDesc.res.linear.devPtr' in found_struct}} + devPtr : Any - {{endif}} - {{if 'cudaResourceDesc.res.linear.desc' in found_struct}} + + desc : cudaChannelFormatDesc - {{endif}} - {{if 'cudaResourceDesc.res.linear.sizeInBytes' in found_struct}} + + sizeInBytes : size_t - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaResourceDesc* _pvt_ptr - {{if 'cudaResourceDesc.res.linear.devPtr' in found_struct}} + cdef _HelperInputVoidPtr _cydevPtr - {{endif}} - {{if 'cudaResourceDesc.res.linear.desc' in found_struct}} + + cdef cudaChannelFormatDesc _desc - {{endif}} -{{endif}} -{{if 'cudaResourceDesc.res.pitch2D' in found_struct}} + cdef class anon_struct4: """ Attributes ---------- - {{if 'cudaResourceDesc.res.pitch2D.devPtr' in found_struct}} + devPtr : Any - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.desc' in found_struct}} + + desc : cudaChannelFormatDesc - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.width' in found_struct}} + + width : size_t - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.height' in found_struct}} + + height : size_t - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.pitchInBytes' in found_struct}} + + pitchInBytes : size_t - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaResourceDesc* _pvt_ptr - {{if 'cudaResourceDesc.res.pitch2D.devPtr' in found_struct}} + cdef _HelperInputVoidPtr _cydevPtr - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.desc' in found_struct}} + + cdef cudaChannelFormatDesc _desc - {{endif}} -{{endif}} -{{if 'cudaResourceDesc.res' in found_struct}} + cdef class anon_union0: """ Attributes ---------- - {{if 'cudaResourceDesc.res.array' in found_struct}} + array : anon_struct1 - {{endif}} - {{if 'cudaResourceDesc.res.mipmap' in found_struct}} + + mipmap : anon_struct2 - {{endif}} - {{if 'cudaResourceDesc.res.linear' in found_struct}} + + linear : anon_struct3 - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D' in found_struct}} + + pitch2D : anon_struct4 - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaResourceDesc* _pvt_ptr - {{if 'cudaResourceDesc.res.array' in found_struct}} + cdef anon_struct1 _array - {{endif}} - {{if 'cudaResourceDesc.res.mipmap' in found_struct}} + + cdef anon_struct2 _mipmap - {{endif}} - {{if 'cudaResourceDesc.res.linear' in found_struct}} + + cdef anon_struct3 _linear - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D' in found_struct}} + + cdef anon_struct4 _pitch2D - {{endif}} -{{endif}} -{{if 'cudaResourceDesc' in found_struct}} + cdef class cudaResourceDesc: """ @@ -1080,27 +994,26 @@ cdef class cudaResourceDesc: Attributes ---------- - {{if 'cudaResourceDesc.resType' in found_struct}} + resType : cudaResourceType Resource type - {{endif}} - {{if 'cudaResourceDesc.res' in found_struct}} + + res : anon_union0 - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaResourceDesc* _val_ptr cdef cyruntime.cudaResourceDesc* _pvt_ptr - {{if 'cudaResourceDesc.res' in found_struct}} + cdef anon_union0 _res - {{endif}} -{{endif}} -{{if 'cudaResourceViewDesc' in found_struct}} + cdef class cudaResourceViewDesc: """ @@ -1108,48 +1021,47 @@ cdef class cudaResourceViewDesc: Attributes ---------- - {{if 'cudaResourceViewDesc.format' in found_struct}} + format : cudaResourceViewFormat Resource view format - {{endif}} - {{if 'cudaResourceViewDesc.width' in found_struct}} + + width : size_t Width of the resource view - {{endif}} - {{if 'cudaResourceViewDesc.height' in found_struct}} + + height : size_t Height of the resource view - {{endif}} - {{if 'cudaResourceViewDesc.depth' in found_struct}} + + depth : size_t Depth of the resource view - {{endif}} - {{if 'cudaResourceViewDesc.firstMipmapLevel' in found_struct}} + + firstMipmapLevel : unsigned int First defined mipmap level - {{endif}} - {{if 'cudaResourceViewDesc.lastMipmapLevel' in found_struct}} + + lastMipmapLevel : unsigned int Last defined mipmap level - {{endif}} - {{if 'cudaResourceViewDesc.firstLayer' in found_struct}} + + firstLayer : unsigned int First layer index - {{endif}} - {{if 'cudaResourceViewDesc.lastLayer' in found_struct}} + + lastLayer : unsigned int Last layer index - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaResourceViewDesc _pvt_val cdef cyruntime.cudaResourceViewDesc* _pvt_ptr -{{endif}} -{{if 'cudaPointerAttributes' in found_struct}} cdef class cudaPointerAttributes: """ @@ -1157,12 +1069,12 @@ cdef class cudaPointerAttributes: Attributes ---------- - {{if 'cudaPointerAttributes.type' in found_struct}} + type : cudaMemoryType The type of memory - cudaMemoryTypeUnregistered, cudaMemoryTypeHost, cudaMemoryTypeDevice or cudaMemoryTypeManaged. - {{endif}} - {{if 'cudaPointerAttributes.device' in found_struct}} + + device : int The device against which the memory was allocated or registered. If the memory type is cudaMemoryTypeDevice then this identifies the @@ -1171,35 +1083,34 @@ cdef class cudaPointerAttributes: this identifies the device which was current when the memory was allocated or registered (and if that device is deinitialized then this allocation will vanish with that device's state). - {{endif}} - {{if 'cudaPointerAttributes.devicePointer' in found_struct}} + + devicePointer : Any The address which may be dereferenced on the current device to access the memory or NULL if no such address exists. - {{endif}} - {{if 'cudaPointerAttributes.hostPointer' in found_struct}} + + hostPointer : Any The address which may be dereferenced on the host to access the memory or NULL if no such address exists. CUDA doesn't check if unregistered memory is allocated so this field may contain invalid pointer if an invalid pointer has been passed to CUDA. - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaPointerAttributes _pvt_val cdef cyruntime.cudaPointerAttributes* _pvt_ptr - {{if 'cudaPointerAttributes.devicePointer' in found_struct}} + cdef _HelperInputVoidPtr _cydevicePointer - {{endif}} - {{if 'cudaPointerAttributes.hostPointer' in found_struct}} + + cdef _HelperInputVoidPtr _cyhostPointer - {{endif}} -{{endif}} -{{if 'cudaFuncAttributes' in found_struct}} + cdef class cudaFuncAttributes: """ @@ -1207,57 +1118,57 @@ cdef class cudaFuncAttributes: Attributes ---------- - {{if 'cudaFuncAttributes.sharedSizeBytes' in found_struct}} + sharedSizeBytes : size_t The size in bytes of statically-allocated shared memory per block required by this function. This does not include dynamically- allocated shared memory requested by the user at runtime. - {{endif}} - {{if 'cudaFuncAttributes.constSizeBytes' in found_struct}} + + constSizeBytes : size_t The size in bytes of user-allocated constant memory required by this function. - {{endif}} - {{if 'cudaFuncAttributes.localSizeBytes' in found_struct}} + + localSizeBytes : size_t The size in bytes of local memory used by each thread of this function. - {{endif}} - {{if 'cudaFuncAttributes.maxThreadsPerBlock' in found_struct}} + + maxThreadsPerBlock : int The maximum number of threads per block, beyond which a launch of the function would fail. This number depends on both the function and the device on which the function is currently loaded. - {{endif}} - {{if 'cudaFuncAttributes.numRegs' in found_struct}} + + numRegs : int The number of registers used by each thread of this function. - {{endif}} - {{if 'cudaFuncAttributes.ptxVersion' in found_struct}} + + ptxVersion : int The PTX virtual architecture version for which the function was compiled. This value is the major PTX version * 10 + the minor PTX version, so a PTX version 1.3 function would return the value 13. - {{endif}} - {{if 'cudaFuncAttributes.binaryVersion' in found_struct}} + + binaryVersion : int The binary architecture version for which the function was compiled. This value is the major binary version * 10 + the minor binary version, so a binary version 1.3 function would return the value 13. - {{endif}} - {{if 'cudaFuncAttributes.cacheModeCA' in found_struct}} + + cacheModeCA : int The attribute to indicate whether the function has been compiled with user specified option "-Xptxas --dlcm=ca" set. - {{endif}} - {{if 'cudaFuncAttributes.maxDynamicSharedSizeBytes' in found_struct}} + + maxDynamicSharedSizeBytes : int The maximum size in bytes of dynamic shared memory per block for this function. Any launch must have a dynamic shared memory size smaller than this value. - {{endif}} - {{if 'cudaFuncAttributes.preferredShmemCarveout' in found_struct}} + + preferredShmemCarveout : int On devices where the L1 cache and shared memory use the same hardware resources, this sets the shared memory carveout @@ -1265,13 +1176,13 @@ cdef class cudaFuncAttributes: cudaDevAttrMaxSharedMemoryPerMultiprocessor. This is only a hint, and the driver can choose a different ratio if required to execute the function. See cudaFuncSetAttribute - {{endif}} - {{if 'cudaFuncAttributes.clusterDimMustBeSet' in found_struct}} + + clusterDimMustBeSet : int If this attribute is set, the kernel must launch with a valid cluster dimension specified. - {{endif}} - {{if 'cudaFuncAttributes.requiredClusterWidth' in found_struct}} + + requiredClusterWidth : int The required cluster width/height/depth in blocks. The values must either all be 0 or all be positive. The validity of the cluster @@ -1279,20 +1190,20 @@ cdef class cudaFuncAttributes: set during compile time, it cannot be set at runtime. Setting it at runtime should return cudaErrorNotPermitted. See cudaFuncSetAttribute - {{endif}} - {{if 'cudaFuncAttributes.requiredClusterHeight' in found_struct}} + + requiredClusterHeight : int - {{endif}} - {{if 'cudaFuncAttributes.requiredClusterDepth' in found_struct}} + + requiredClusterDepth : int - {{endif}} - {{if 'cudaFuncAttributes.clusterSchedulingPolicyPreference' in found_struct}} + + clusterSchedulingPolicyPreference : int The block scheduling policy of a function. See cudaFuncSetAttribute - {{endif}} - {{if 'cudaFuncAttributes.nonPortableClusterSizeAllowed' in found_struct}} + + nonPortableClusterSizeAllowed : int Whether the function can be launched with non-portable cluster size. 1 is allowed, 0 is disallowed. A non-portable cluster size @@ -1307,21 +1218,16 @@ cdef class cudaFuncAttributes: compute capabilities. The specific hardware unit may support higher cluster sizes that’s not guaranteed to be portable. See cudaFuncSetAttribute - {{endif}} - {{if 'cudaFuncAttributes.reserved' in found_struct}} - reserved : list[int] - Reserved for future use. - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaFuncAttributes _pvt_val cdef cyruntime.cudaFuncAttributes* _pvt_ptr -{{endif}} -{{if 'cudaMemLocation' in found_struct}} cdef class cudaMemLocation: """ @@ -1332,24 +1238,23 @@ cdef class cudaMemLocation: Attributes ---------- - {{if 'cudaMemLocation.type' in found_struct}} + type : cudaMemLocationType Specifies the location type, which modifies the meaning of id. - {{endif}} - {{if 'cudaMemLocation.id' in found_struct}} + + id : int identifier for a given this location's ::CUmemLocationType. - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaMemLocation _pvt_val cdef cyruntime.cudaMemLocation* _pvt_ptr -{{endif}} -{{if 'cudaMemAccessDesc' in found_struct}} cdef class cudaMemAccessDesc: """ @@ -1357,27 +1262,26 @@ cdef class cudaMemAccessDesc: Attributes ---------- - {{if 'cudaMemAccessDesc.location' in found_struct}} + location : cudaMemLocation Location on which the request is to change it's accessibility - {{endif}} - {{if 'cudaMemAccessDesc.flags' in found_struct}} + + flags : cudaMemAccessFlags ::CUmemProt accessibility flags to set on the request - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaMemAccessDesc _pvt_val cdef cyruntime.cudaMemAccessDesc* _pvt_ptr - {{if 'cudaMemAccessDesc.location' in found_struct}} + cdef cudaMemLocation _location - {{endif}} -{{endif}} -{{if 'cudaMemPoolProps' in found_struct}} + cdef class cudaMemPoolProps: """ @@ -1385,77 +1289,64 @@ cdef class cudaMemPoolProps: Attributes ---------- - {{if 'cudaMemPoolProps.allocType' in found_struct}} + allocType : cudaMemAllocationType Allocation type. Currently must be specified as cudaMemAllocationTypePinned - {{endif}} - {{if 'cudaMemPoolProps.handleTypes' in found_struct}} + + handleTypes : cudaMemAllocationHandleType Handle types that will be supported by allocations from the pool. - {{endif}} - {{if 'cudaMemPoolProps.location' in found_struct}} + + location : cudaMemLocation Location allocations should reside. - {{endif}} - {{if 'cudaMemPoolProps.win32SecurityAttributes' in found_struct}} + + win32SecurityAttributes : Any Windows-specific LPSECURITYATTRIBUTES required when cudaMemHandleTypeWin32 is specified. This security attribute defines the scope of which exported allocations may be tranferred to other processes. In all other cases, this field is required to be zero. - {{endif}} - {{if 'cudaMemPoolProps.maxSize' in found_struct}} + + maxSize : size_t Maximum pool size. When set to 0, defaults to a system dependent value. - {{endif}} - {{if 'cudaMemPoolProps.usage' in found_struct}} + + usage : unsigned short Bitmask indicating intended usage for the pool. - {{endif}} - {{if 'cudaMemPoolProps.reserved' in found_struct}} - reserved : bytes - reserved for future use, must be 0 - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaMemPoolProps _pvt_val cdef cyruntime.cudaMemPoolProps* _pvt_ptr - {{if 'cudaMemPoolProps.location' in found_struct}} + cdef cudaMemLocation _location - {{endif}} - {{if 'cudaMemPoolProps.win32SecurityAttributes' in found_struct}} + + cdef _HelperInputVoidPtr _cywin32SecurityAttributes - {{endif}} -{{endif}} -{{if 'cudaMemPoolPtrExportData' in found_struct}} + cdef class cudaMemPoolPtrExportData: """ Opaque data for exporting a pool allocation - Attributes - ---------- - {{if 'cudaMemPoolPtrExportData.reserved' in found_struct}} - reserved : bytes - - {{endif}} - Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaMemPoolPtrExportData _pvt_val cdef cyruntime.cudaMemPoolPtrExportData* _pvt_ptr -{{endif}} -{{if 'cudaMemAllocNodeParams' in found_struct}} cdef class cudaMemAllocNodeParams: """ @@ -1463,50 +1354,49 @@ cdef class cudaMemAllocNodeParams: Attributes ---------- - {{if 'cudaMemAllocNodeParams.poolProps' in found_struct}} + poolProps : cudaMemPoolProps in: location where the allocation should reside (specified in ::location). ::handleTypes must be cudaMemHandleTypeNone. IPC is not supported. in: array of memory access descriptors. Used to describe peer GPU access - {{endif}} - {{if 'cudaMemAllocNodeParams.accessDescs' in found_struct}} + + accessDescs : cudaMemAccessDesc in: number of memory access descriptors. Must not exceed the number of GPUs. - {{endif}} - {{if 'cudaMemAllocNodeParams.accessDescCount' in found_struct}} + + accessDescCount : size_t in: Number of `accessDescs`s - {{endif}} - {{if 'cudaMemAllocNodeParams.bytesize' in found_struct}} + + bytesize : size_t in: size in bytes of the requested allocation - {{endif}} - {{if 'cudaMemAllocNodeParams.dptr' in found_struct}} + + dptr : Any out: address of the allocation returned by CUDA - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaMemAllocNodeParams _pvt_val cdef cyruntime.cudaMemAllocNodeParams* _pvt_ptr - {{if 'cudaMemAllocNodeParams.poolProps' in found_struct}} + cdef cudaMemPoolProps _poolProps - {{endif}} - {{if 'cudaMemAllocNodeParams.accessDescs' in found_struct}} + + cdef size_t _accessDescs_length cdef cyruntime.cudaMemAccessDesc* _accessDescs - {{endif}} - {{if 'cudaMemAllocNodeParams.dptr' in found_struct}} + + cdef _HelperInputVoidPtr _cydptr - {{endif}} -{{endif}} -{{if 'cudaMemAllocNodeParamsV2' in found_struct}} + cdef class cudaMemAllocNodeParamsV2: """ @@ -1514,50 +1404,49 @@ cdef class cudaMemAllocNodeParamsV2: Attributes ---------- - {{if 'cudaMemAllocNodeParamsV2.poolProps' in found_struct}} + poolProps : cudaMemPoolProps in: location where the allocation should reside (specified in ::location). ::handleTypes must be cudaMemHandleTypeNone. IPC is not supported. in: array of memory access descriptors. Used to describe peer GPU access - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.accessDescs' in found_struct}} + + accessDescs : cudaMemAccessDesc in: number of memory access descriptors. Must not exceed the number of GPUs. - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.accessDescCount' in found_struct}} + + accessDescCount : size_t in: Number of `accessDescs`s - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.bytesize' in found_struct}} + + bytesize : size_t in: size in bytes of the requested allocation - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.dptr' in found_struct}} + + dptr : Any out: address of the allocation returned by CUDA - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaMemAllocNodeParamsV2 _pvt_val cdef cyruntime.cudaMemAllocNodeParamsV2* _pvt_ptr - {{if 'cudaMemAllocNodeParamsV2.poolProps' in found_struct}} + cdef cudaMemPoolProps _poolProps - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.accessDescs' in found_struct}} + + cdef size_t _accessDescs_length cdef cyruntime.cudaMemAccessDesc* _accessDescs - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.dptr' in found_struct}} + + cdef _HelperInputVoidPtr _cydptr - {{endif}} -{{endif}} -{{if 'cudaMemFreeNodeParams' in found_struct}} + cdef class cudaMemFreeNodeParams: """ @@ -1565,23 +1454,22 @@ cdef class cudaMemFreeNodeParams: Attributes ---------- - {{if 'cudaMemFreeNodeParams.dptr' in found_struct}} + dptr : Any in: the pointer to free - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaMemFreeNodeParams _pvt_val cdef cyruntime.cudaMemFreeNodeParams* _pvt_ptr - {{if 'cudaMemFreeNodeParams.dptr' in found_struct}} + cdef _HelperInputVoidPtr _cydptr - {{endif}} -{{endif}} -{{if 'cudaMemcpyAttributes' in found_struct}} + cdef class cudaMemcpyAttributes: """ @@ -1590,42 +1478,41 @@ cdef class cudaMemcpyAttributes: Attributes ---------- - {{if 'cudaMemcpyAttributes.srcAccessOrder' in found_struct}} + srcAccessOrder : cudaMemcpySrcAccessOrder Source access ordering to be observed for copies with this attribute. - {{endif}} - {{if 'cudaMemcpyAttributes.srcLocHint' in found_struct}} + + srcLocHint : cudaMemLocation Hint location for the source operand. Ignored when the pointers are not managed memory or memory allocated outside CUDA. - {{endif}} - {{if 'cudaMemcpyAttributes.dstLocHint' in found_struct}} + + dstLocHint : cudaMemLocation Hint location for the destination operand. Ignored when the pointers are not managed memory or memory allocated outside CUDA. - {{endif}} - {{if 'cudaMemcpyAttributes.flags' in found_struct}} + + flags : unsigned int Additional flags for copies with this attribute. See cudaMemcpyFlags. - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaMemcpyAttributes _pvt_val cdef cyruntime.cudaMemcpyAttributes* _pvt_ptr - {{if 'cudaMemcpyAttributes.srcLocHint' in found_struct}} + cdef cudaMemLocation _srcLocHint - {{endif}} - {{if 'cudaMemcpyAttributes.dstLocHint' in found_struct}} + + cdef cudaMemLocation _dstLocHint - {{endif}} -{{endif}} -{{if 'cudaOffset3D' in found_struct}} + cdef class cudaOffset3D: """ @@ -1633,120 +1520,116 @@ cdef class cudaOffset3D: Attributes ---------- - {{if 'cudaOffset3D.x' in found_struct}} + x : size_t - {{endif}} - {{if 'cudaOffset3D.y' in found_struct}} + + y : size_t - {{endif}} - {{if 'cudaOffset3D.z' in found_struct}} + + z : size_t - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaOffset3D _pvt_val cdef cyruntime.cudaOffset3D* _pvt_ptr -{{endif}} -{{if 'cudaMemcpy3DOperand.op.ptr' in found_struct}} cdef class anon_struct5: """ Attributes ---------- - {{if 'cudaMemcpy3DOperand.op.ptr.ptr' in found_struct}} + ptr : Any - {{endif}} - {{if 'cudaMemcpy3DOperand.op.ptr.rowLength' in found_struct}} + + rowLength : size_t - {{endif}} - {{if 'cudaMemcpy3DOperand.op.ptr.layerHeight' in found_struct}} + + layerHeight : size_t - {{endif}} - {{if 'cudaMemcpy3DOperand.op.ptr.locHint' in found_struct}} + + locHint : cudaMemLocation - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaMemcpy3DOperand* _pvt_ptr - {{if 'cudaMemcpy3DOperand.op.ptr.ptr' in found_struct}} + cdef _HelperInputVoidPtr _cyptr - {{endif}} - {{if 'cudaMemcpy3DOperand.op.ptr.locHint' in found_struct}} + + cdef cudaMemLocation _locHint - {{endif}} -{{endif}} -{{if 'cudaMemcpy3DOperand.op.array' in found_struct}} + cdef class anon_struct6: """ Attributes ---------- - {{if 'cudaMemcpy3DOperand.op.array.array' in found_struct}} + array : cudaArray_t - {{endif}} - {{if 'cudaMemcpy3DOperand.op.array.offset' in found_struct}} + + offset : cudaOffset3D - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaMemcpy3DOperand* _pvt_ptr - {{if 'cudaMemcpy3DOperand.op.array.array' in found_struct}} + cdef cudaArray_t _array - {{endif}} - {{if 'cudaMemcpy3DOperand.op.array.offset' in found_struct}} + + cdef cudaOffset3D _offset - {{endif}} -{{endif}} -{{if 'cudaMemcpy3DOperand.op' in found_struct}} + cdef class anon_union1: """ Attributes ---------- - {{if 'cudaMemcpy3DOperand.op.ptr' in found_struct}} + ptr : anon_struct5 - {{endif}} - {{if 'cudaMemcpy3DOperand.op.array' in found_struct}} + + array : anon_struct6 - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaMemcpy3DOperand* _pvt_ptr - {{if 'cudaMemcpy3DOperand.op.ptr' in found_struct}} + cdef anon_struct5 _ptr - {{endif}} - {{if 'cudaMemcpy3DOperand.op.array' in found_struct}} + + cdef anon_struct6 _array - {{endif}} -{{endif}} -{{if 'cudaMemcpy3DOperand' in found_struct}} + cdef class cudaMemcpy3DOperand: """ @@ -1754,91 +1637,88 @@ cdef class cudaMemcpy3DOperand: Attributes ---------- - {{if 'cudaMemcpy3DOperand.type' in found_struct}} + type : cudaMemcpy3DOperandType - {{endif}} - {{if 'cudaMemcpy3DOperand.op' in found_struct}} + + op : anon_union1 - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaMemcpy3DOperand* _val_ptr cdef cyruntime.cudaMemcpy3DOperand* _pvt_ptr - {{if 'cudaMemcpy3DOperand.op' in found_struct}} + cdef anon_union1 _op - {{endif}} -{{endif}} -{{if 'cudaMemcpy3DBatchOp' in found_struct}} + cdef class cudaMemcpy3DBatchOp: """ Attributes ---------- - {{if 'cudaMemcpy3DBatchOp.src' in found_struct}} + src : cudaMemcpy3DOperand Source memcpy operand. - {{endif}} - {{if 'cudaMemcpy3DBatchOp.dst' in found_struct}} + + dst : cudaMemcpy3DOperand Destination memcpy operand. - {{endif}} - {{if 'cudaMemcpy3DBatchOp.extent' in found_struct}} + + extent : cudaExtent Extents of the memcpy between src and dst. The width, height and depth components must not be 0. - {{endif}} - {{if 'cudaMemcpy3DBatchOp.srcAccessOrder' in found_struct}} + + srcAccessOrder : cudaMemcpySrcAccessOrder Source access ordering to be observed for copy from src to dst. - {{endif}} - {{if 'cudaMemcpy3DBatchOp.flags' in found_struct}} + + flags : unsigned int Additional flags for copy from src to dst. See cudaMemcpyFlags. - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaMemcpy3DBatchOp _pvt_val cdef cyruntime.cudaMemcpy3DBatchOp* _pvt_ptr - {{if 'cudaMemcpy3DBatchOp.src' in found_struct}} + cdef cudaMemcpy3DOperand _src - {{endif}} - {{if 'cudaMemcpy3DBatchOp.dst' in found_struct}} + + cdef cudaMemcpy3DOperand _dst - {{endif}} - {{if 'cudaMemcpy3DBatchOp.extent' in found_struct}} + + cdef cudaExtent _extent - {{endif}} -{{endif}} -{{if 'CUuuid_st' in found_struct}} + cdef class CUuuid_st: """ Attributes ---------- - {{if 'CUuuid_st.bytes' in found_struct}} + bytes : bytes < CUDA definition of UUID - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.CUuuid_st _pvt_val cdef cyruntime.CUuuid_st* _pvt_ptr -{{endif}} -{{if 'cudaDeviceProp' in found_struct}} cdef class cudaDeviceProp: """ @@ -1846,538 +1726,507 @@ cdef class cudaDeviceProp: Attributes ---------- - {{if 'cudaDeviceProp.name' in found_struct}} + name : bytes ASCII string identifying device - {{endif}} - {{if 'cudaDeviceProp.uuid' in found_struct}} + + uuid : cudaUUID_t 16-byte unique identifier - {{endif}} - {{if 'cudaDeviceProp.luid' in found_struct}} + + luid : bytes 8-byte locally unique identifier. Value is undefined on TCC and non-Windows platforms - {{endif}} - {{if 'cudaDeviceProp.luidDeviceNodeMask' in found_struct}} + + luidDeviceNodeMask : unsigned int LUID device node mask. Value is undefined on TCC and non-Windows platforms - {{endif}} - {{if 'cudaDeviceProp.totalGlobalMem' in found_struct}} + + totalGlobalMem : size_t Global memory available on device in bytes - {{endif}} - {{if 'cudaDeviceProp.sharedMemPerBlock' in found_struct}} + + sharedMemPerBlock : size_t Shared memory available per block in bytes - {{endif}} - {{if 'cudaDeviceProp.regsPerBlock' in found_struct}} + + regsPerBlock : int 32-bit registers available per block - {{endif}} - {{if 'cudaDeviceProp.warpSize' in found_struct}} + + warpSize : int Warp size in threads - {{endif}} - {{if 'cudaDeviceProp.memPitch' in found_struct}} + + memPitch : size_t Maximum pitch in bytes allowed by memory copies - {{endif}} - {{if 'cudaDeviceProp.maxThreadsPerBlock' in found_struct}} + + maxThreadsPerBlock : int Maximum number of threads per block - {{endif}} - {{if 'cudaDeviceProp.maxThreadsDim' in found_struct}} + + maxThreadsDim : list[int] Maximum size of each dimension of a block - {{endif}} - {{if 'cudaDeviceProp.maxGridSize' in found_struct}} + + maxGridSize : list[int] Maximum size of each dimension of a grid - {{endif}} - {{if 'cudaDeviceProp.clockRate' in found_struct}} + + clockRate : int Deprecated, Clock frequency in kilohertz - {{endif}} - {{if 'cudaDeviceProp.totalConstMem' in found_struct}} + + totalConstMem : size_t Constant memory available on device in bytes - {{endif}} - {{if 'cudaDeviceProp.major' in found_struct}} + + major : int Major compute capability - {{endif}} - {{if 'cudaDeviceProp.minor' in found_struct}} + + minor : int Minor compute capability - {{endif}} - {{if 'cudaDeviceProp.textureAlignment' in found_struct}} + + textureAlignment : size_t Alignment requirement for textures - {{endif}} - {{if 'cudaDeviceProp.texturePitchAlignment' in found_struct}} + + texturePitchAlignment : size_t Pitch alignment requirement for texture references bound to pitched memory - {{endif}} - {{if 'cudaDeviceProp.deviceOverlap' in found_struct}} + + deviceOverlap : int Device can concurrently copy memory and execute a kernel. Deprecated. Use instead asyncEngineCount. - {{endif}} - {{if 'cudaDeviceProp.multiProcessorCount' in found_struct}} + + multiProcessorCount : int Number of multiprocessors on device - {{endif}} - {{if 'cudaDeviceProp.kernelExecTimeoutEnabled' in found_struct}} + + kernelExecTimeoutEnabled : int Deprecated, Specified whether there is a run time limit on kernels - {{endif}} - {{if 'cudaDeviceProp.integrated' in found_struct}} + + integrated : int Device is integrated as opposed to discrete - {{endif}} - {{if 'cudaDeviceProp.canMapHostMemory' in found_struct}} + + canMapHostMemory : int Device can map host memory with cudaHostAlloc/cudaHostGetDevicePointer - {{endif}} - {{if 'cudaDeviceProp.computeMode' in found_struct}} + + computeMode : int Deprecated, Compute mode (See cudaComputeMode) - {{endif}} - {{if 'cudaDeviceProp.maxTexture1D' in found_struct}} + + maxTexture1D : int Maximum 1D texture size - {{endif}} - {{if 'cudaDeviceProp.maxTexture1DMipmap' in found_struct}} + + maxTexture1DMipmap : int Maximum 1D mipmapped texture size - {{endif}} - {{if 'cudaDeviceProp.maxTexture1DLinear' in found_struct}} + + maxTexture1DLinear : int Deprecated, do not use. Use cudaDeviceGetTexture1DLinearMaxWidth() or cuDeviceGetTexture1DLinearMaxWidth() instead. - {{endif}} - {{if 'cudaDeviceProp.maxTexture2D' in found_struct}} + + maxTexture2D : list[int] Maximum 2D texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DMipmap' in found_struct}} + + maxTexture2DMipmap : list[int] Maximum 2D mipmapped texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DLinear' in found_struct}} + + maxTexture2DLinear : list[int] Maximum dimensions (width, height, pitch) for 2D textures bound to pitched memory - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DGather' in found_struct}} + + maxTexture2DGather : list[int] Maximum 2D texture dimensions if texture gather operations have to be performed - {{endif}} - {{if 'cudaDeviceProp.maxTexture3D' in found_struct}} + + maxTexture3D : list[int] Maximum 3D texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTexture3DAlt' in found_struct}} + + maxTexture3DAlt : list[int] Maximum alternate 3D texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTextureCubemap' in found_struct}} + + maxTextureCubemap : int Maximum Cubemap texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTexture1DLayered' in found_struct}} + + maxTexture1DLayered : list[int] Maximum 1D layered texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DLayered' in found_struct}} + + maxTexture2DLayered : list[int] Maximum 2D layered texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTextureCubemapLayered' in found_struct}} + + maxTextureCubemapLayered : list[int] Maximum Cubemap layered texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxSurface1D' in found_struct}} + + maxSurface1D : int Maximum 1D surface size - {{endif}} - {{if 'cudaDeviceProp.maxSurface2D' in found_struct}} + + maxSurface2D : list[int] Maximum 2D surface dimensions - {{endif}} - {{if 'cudaDeviceProp.maxSurface3D' in found_struct}} + + maxSurface3D : list[int] Maximum 3D surface dimensions - {{endif}} - {{if 'cudaDeviceProp.maxSurface1DLayered' in found_struct}} + + maxSurface1DLayered : list[int] Maximum 1D layered surface dimensions - {{endif}} - {{if 'cudaDeviceProp.maxSurface2DLayered' in found_struct}} + + maxSurface2DLayered : list[int] Maximum 2D layered surface dimensions - {{endif}} - {{if 'cudaDeviceProp.maxSurfaceCubemap' in found_struct}} + + maxSurfaceCubemap : int Maximum Cubemap surface dimensions - {{endif}} - {{if 'cudaDeviceProp.maxSurfaceCubemapLayered' in found_struct}} + + maxSurfaceCubemapLayered : list[int] Maximum Cubemap layered surface dimensions - {{endif}} - {{if 'cudaDeviceProp.surfaceAlignment' in found_struct}} + + surfaceAlignment : size_t Alignment requirements for surfaces - {{endif}} - {{if 'cudaDeviceProp.concurrentKernels' in found_struct}} + + concurrentKernels : int Device can possibly execute multiple kernels concurrently - {{endif}} - {{if 'cudaDeviceProp.ECCEnabled' in found_struct}} + + ECCEnabled : int Device has ECC support enabled - {{endif}} - {{if 'cudaDeviceProp.pciBusID' in found_struct}} + + pciBusID : int PCI bus ID of the device - {{endif}} - {{if 'cudaDeviceProp.pciDeviceID' in found_struct}} + + pciDeviceID : int PCI device ID of the device - {{endif}} - {{if 'cudaDeviceProp.pciDomainID' in found_struct}} + + pciDomainID : int PCI domain ID of the device - {{endif}} - {{if 'cudaDeviceProp.tccDriver' in found_struct}} + + tccDriver : int 1 if device is a Tesla device using TCC driver, 0 otherwise - {{endif}} - {{if 'cudaDeviceProp.asyncEngineCount' in found_struct}} + + asyncEngineCount : int Number of asynchronous engines - {{endif}} - {{if 'cudaDeviceProp.unifiedAddressing' in found_struct}} + + unifiedAddressing : int Device shares a unified address space with the host - {{endif}} - {{if 'cudaDeviceProp.memoryClockRate' in found_struct}} + + memoryClockRate : int Deprecated, Peak memory clock frequency in kilohertz - {{endif}} - {{if 'cudaDeviceProp.memoryBusWidth' in found_struct}} + + memoryBusWidth : int Global memory bus width in bits - {{endif}} - {{if 'cudaDeviceProp.l2CacheSize' in found_struct}} + + l2CacheSize : int Size of L2 cache in bytes - {{endif}} - {{if 'cudaDeviceProp.persistingL2CacheMaxSize' in found_struct}} + + persistingL2CacheMaxSize : int Device's maximum l2 persisting lines capacity setting in bytes - {{endif}} - {{if 'cudaDeviceProp.maxThreadsPerMultiProcessor' in found_struct}} + + maxThreadsPerMultiProcessor : int Maximum resident threads per multiprocessor - {{endif}} - {{if 'cudaDeviceProp.streamPrioritiesSupported' in found_struct}} + + streamPrioritiesSupported : int Device supports stream priorities - {{endif}} - {{if 'cudaDeviceProp.globalL1CacheSupported' in found_struct}} + + globalL1CacheSupported : int Device supports caching globals in L1 - {{endif}} - {{if 'cudaDeviceProp.localL1CacheSupported' in found_struct}} + + localL1CacheSupported : int Device supports caching locals in L1 - {{endif}} - {{if 'cudaDeviceProp.sharedMemPerMultiprocessor' in found_struct}} + + sharedMemPerMultiprocessor : size_t Shared memory available per multiprocessor in bytes - {{endif}} - {{if 'cudaDeviceProp.regsPerMultiprocessor' in found_struct}} + + regsPerMultiprocessor : int 32-bit registers available per multiprocessor - {{endif}} - {{if 'cudaDeviceProp.managedMemory' in found_struct}} + + managedMemory : int Device supports allocating managed memory on this system - {{endif}} - {{if 'cudaDeviceProp.isMultiGpuBoard' in found_struct}} + + isMultiGpuBoard : int Device is on a multi-GPU board - {{endif}} - {{if 'cudaDeviceProp.multiGpuBoardGroupID' in found_struct}} + + multiGpuBoardGroupID : int Unique identifier for a group of devices on the same multi-GPU board - {{endif}} - {{if 'cudaDeviceProp.hostNativeAtomicSupported' in found_struct}} + + hostNativeAtomicSupported : int Link between the device and the host supports native atomic operations - {{endif}} - {{if 'cudaDeviceProp.singleToDoublePrecisionPerfRatio' in found_struct}} + + singleToDoublePrecisionPerfRatio : int Deprecated, Ratio of single precision performance (in floating- point operations per second) to double precision performance - {{endif}} - {{if 'cudaDeviceProp.pageableMemoryAccess' in found_struct}} + + pageableMemoryAccess : int Device supports coherently accessing pageable memory without calling cudaHostRegister on it - {{endif}} - {{if 'cudaDeviceProp.concurrentManagedAccess' in found_struct}} + + concurrentManagedAccess : int Device can coherently access managed memory concurrently with the CPU - {{endif}} - {{if 'cudaDeviceProp.computePreemptionSupported' in found_struct}} + + computePreemptionSupported : int Device supports Compute Preemption - {{endif}} - {{if 'cudaDeviceProp.canUseHostPointerForRegisteredMem' in found_struct}} + + canUseHostPointerForRegisteredMem : int Device can access host registered memory at the same virtual address as the CPU - {{endif}} - {{if 'cudaDeviceProp.cooperativeLaunch' in found_struct}} + + cooperativeLaunch : int Device supports launching cooperative kernels via cudaLaunchCooperativeKernel - {{endif}} - {{if 'cudaDeviceProp.cooperativeMultiDeviceLaunch' in found_struct}} + + cooperativeMultiDeviceLaunch : int Deprecated, cudaLaunchCooperativeKernelMultiDevice is deprecated. - {{endif}} - {{if 'cudaDeviceProp.sharedMemPerBlockOptin' in found_struct}} + + sharedMemPerBlockOptin : size_t Per device maximum shared memory per block usable by special opt in - {{endif}} - {{if 'cudaDeviceProp.pageableMemoryAccessUsesHostPageTables' in found_struct}} + + pageableMemoryAccessUsesHostPageTables : int Device accesses pageable memory via the host's page tables - {{endif}} - {{if 'cudaDeviceProp.directManagedMemAccessFromHost' in found_struct}} + + directManagedMemAccessFromHost : int Host can directly access managed memory on the device without migration. - {{endif}} - {{if 'cudaDeviceProp.maxBlocksPerMultiProcessor' in found_struct}} + + maxBlocksPerMultiProcessor : int Maximum number of resident blocks per multiprocessor - {{endif}} - {{if 'cudaDeviceProp.accessPolicyMaxWindowSize' in found_struct}} + + accessPolicyMaxWindowSize : int The maximum value of cudaAccessPolicyWindow::num_bytes. - {{endif}} - {{if 'cudaDeviceProp.reservedSharedMemPerBlock' in found_struct}} + + reservedSharedMemPerBlock : size_t Shared memory reserved by CUDA driver per block in bytes - {{endif}} - {{if 'cudaDeviceProp.hostRegisterSupported' in found_struct}} + + hostRegisterSupported : int Device supports host memory registration via cudaHostRegister. - {{endif}} - {{if 'cudaDeviceProp.sparseCudaArraySupported' in found_struct}} + + sparseCudaArraySupported : int 1 if the device supports sparse CUDA arrays and sparse CUDA mipmapped arrays, 0 otherwise - {{endif}} - {{if 'cudaDeviceProp.hostRegisterReadOnlySupported' in found_struct}} + + hostRegisterReadOnlySupported : int Device supports using the cudaHostRegister flag cudaHostRegisterReadOnly to register memory that must be mapped as read-only to the GPU - {{endif}} - {{if 'cudaDeviceProp.timelineSemaphoreInteropSupported' in found_struct}} + + timelineSemaphoreInteropSupported : int External timeline semaphore interop is supported on the device - {{endif}} - {{if 'cudaDeviceProp.memoryPoolsSupported' in found_struct}} + + memoryPoolsSupported : int 1 if the device supports using the cudaMallocAsync and cudaMemPool family of APIs, 0 otherwise - {{endif}} - {{if 'cudaDeviceProp.gpuDirectRDMASupported' in found_struct}} + + gpuDirectRDMASupported : int 1 if the device supports GPUDirect RDMA APIs, 0 otherwise - {{endif}} - {{if 'cudaDeviceProp.gpuDirectRDMAFlushWritesOptions' in found_struct}} + + gpuDirectRDMAFlushWritesOptions : unsigned int Bitmask to be interpreted according to the cudaFlushGPUDirectRDMAWritesOptions enum - {{endif}} - {{if 'cudaDeviceProp.gpuDirectRDMAWritesOrdering' in found_struct}} + + gpuDirectRDMAWritesOrdering : int See the cudaGPUDirectRDMAWritesOrdering enum for numerical values - {{endif}} - {{if 'cudaDeviceProp.memoryPoolSupportedHandleTypes' in found_struct}} + + memoryPoolSupportedHandleTypes : unsigned int Bitmask of handle types supported with mempool-based IPC - {{endif}} - {{if 'cudaDeviceProp.deferredMappingCudaArraySupported' in found_struct}} + + deferredMappingCudaArraySupported : int 1 if the device supports deferred mapping CUDA arrays and CUDA mipmapped arrays - {{endif}} - {{if 'cudaDeviceProp.ipcEventSupported' in found_struct}} + + ipcEventSupported : int Device supports IPC Events. - {{endif}} - {{if 'cudaDeviceProp.clusterLaunch' in found_struct}} + + clusterLaunch : int Indicates device supports cluster launch - {{endif}} - {{if 'cudaDeviceProp.unifiedFunctionPointers' in found_struct}} + + unifiedFunctionPointers : int Indicates device supports unified pointers - {{endif}} - {{if 'cudaDeviceProp.reserved' in found_struct}} - reserved : list[int] - Reserved for future use - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaDeviceProp _pvt_val cdef cyruntime.cudaDeviceProp* _pvt_ptr - {{if 'cudaDeviceProp.uuid' in found_struct}} + cdef cudaUUID_t _uuid - {{endif}} -{{endif}} -{{if 'cudaIpcEventHandle_st' in found_struct}} + cdef class cudaIpcEventHandle_st: """ CUDA IPC event handle - Attributes - ---------- - {{if 'cudaIpcEventHandle_st.reserved' in found_struct}} - reserved : bytes - - {{endif}} - Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaIpcEventHandle_st _pvt_val cdef cyruntime.cudaIpcEventHandle_st* _pvt_ptr -{{endif}} -{{if 'cudaIpcMemHandle_st' in found_struct}} cdef class cudaIpcMemHandle_st: """ CUDA IPC memory handle - Attributes - ---------- - {{if 'cudaIpcMemHandle_st.reserved' in found_struct}} - reserved : bytes - - {{endif}} - Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaIpcMemHandle_st _pvt_val cdef cyruntime.cudaIpcMemHandle_st* _pvt_ptr -{{endif}} -{{if 'cudaMemFabricHandle_st' in found_struct}} cdef class cudaMemFabricHandle_st: """ - Attributes - ---------- - {{if 'cudaMemFabricHandle_st.reserved' in found_struct}} - reserved : bytes - - {{endif}} - Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaMemFabricHandle_st _pvt_val cdef cyruntime.cudaMemFabricHandle_st* _pvt_ptr -{{endif}} -{{if 'cudaExternalMemoryHandleDesc.handle.win32' in found_struct}} cdef class anon_struct7: """ Attributes ---------- - {{if 'cudaExternalMemoryHandleDesc.handle.win32.handle' in found_struct}} + handle : Any - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.win32.name' in found_struct}} + + name : Any - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaExternalMemoryHandleDesc* _pvt_ptr - {{if 'cudaExternalMemoryHandleDesc.handle.win32.handle' in found_struct}} + cdef _HelperInputVoidPtr _cyhandle - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.win32.name' in found_struct}} + + cdef _HelperInputVoidPtr _cyname - {{endif}} -{{endif}} -{{if 'cudaExternalMemoryHandleDesc.handle' in found_struct}} + cdef class anon_union2: """ Attributes ---------- - {{if 'cudaExternalMemoryHandleDesc.handle.fd' in found_struct}} + fd : int - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.win32' in found_struct}} + + win32 : anon_struct7 - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.nvSciBufObject' in found_struct}} + + nvSciBufObject : Any - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaExternalMemoryHandleDesc* _pvt_ptr - {{if 'cudaExternalMemoryHandleDesc.handle.win32' in found_struct}} + cdef anon_struct7 _win32 - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.nvSciBufObject' in found_struct}} + + cdef _HelperInputVoidPtr _cynvSciBufObject - {{endif}} -{{endif}} -{{if 'cudaExternalMemoryHandleDesc' in found_struct}} + cdef class cudaExternalMemoryHandleDesc: """ @@ -2385,35 +2234,34 @@ cdef class cudaExternalMemoryHandleDesc: Attributes ---------- - {{if 'cudaExternalMemoryHandleDesc.type' in found_struct}} + type : cudaExternalMemoryHandleType Type of the handle - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle' in found_struct}} + + handle : anon_union2 - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.size' in found_struct}} + + size : unsigned long long Size of the memory allocation - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.flags' in found_struct}} + + flags : unsigned int Flags must either be zero or cudaExternalMemoryDedicated - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaExternalMemoryHandleDesc* _val_ptr cdef cyruntime.cudaExternalMemoryHandleDesc* _pvt_ptr - {{if 'cudaExternalMemoryHandleDesc.handle' in found_struct}} + cdef anon_union2 _handle - {{endif}} -{{endif}} -{{if 'cudaExternalMemoryBufferDesc' in found_struct}} + cdef class cudaExternalMemoryBufferDesc: """ @@ -2421,28 +2269,27 @@ cdef class cudaExternalMemoryBufferDesc: Attributes ---------- - {{if 'cudaExternalMemoryBufferDesc.offset' in found_struct}} + offset : unsigned long long Offset into the memory object where the buffer's base is - {{endif}} - {{if 'cudaExternalMemoryBufferDesc.size' in found_struct}} + + size : unsigned long long Size of the buffer - {{endif}} - {{if 'cudaExternalMemoryBufferDesc.flags' in found_struct}} + + flags : unsigned int Flags reserved for future use. Must be zero. - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaExternalMemoryBufferDesc _pvt_val cdef cyruntime.cudaExternalMemoryBufferDesc* _pvt_ptr -{{endif}} -{{if 'cudaExternalMemoryMipmappedArrayDesc' in found_struct}} cdef class cudaExternalMemoryMipmappedArrayDesc: """ @@ -2450,104 +2297,101 @@ cdef class cudaExternalMemoryMipmappedArrayDesc: Attributes ---------- - {{if 'cudaExternalMemoryMipmappedArrayDesc.offset' in found_struct}} + offset : unsigned long long Offset into the memory object where the base level of the mipmap chain is. - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.formatDesc' in found_struct}} + + formatDesc : cudaChannelFormatDesc Format of base level of the mipmap chain - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.extent' in found_struct}} + + extent : cudaExtent Dimensions of base level of the mipmap chain - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.flags' in found_struct}} + + flags : unsigned int Flags associated with CUDA mipmapped arrays. See cudaMallocMipmappedArray - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.numLevels' in found_struct}} + + numLevels : unsigned int Total number of levels in the mipmap chain - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaExternalMemoryMipmappedArrayDesc _pvt_val cdef cyruntime.cudaExternalMemoryMipmappedArrayDesc* _pvt_ptr - {{if 'cudaExternalMemoryMipmappedArrayDesc.formatDesc' in found_struct}} + cdef cudaChannelFormatDesc _formatDesc - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.extent' in found_struct}} + + cdef cudaExtent _extent - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreHandleDesc.handle.win32' in found_struct}} + cdef class anon_struct8: """ Attributes ---------- - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32.handle' in found_struct}} + handle : Any - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32.name' in found_struct}} + + name : Any - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaExternalSemaphoreHandleDesc* _pvt_ptr - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32.handle' in found_struct}} + cdef _HelperInputVoidPtr _cyhandle - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32.name' in found_struct}} + + cdef _HelperInputVoidPtr _cyname - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreHandleDesc.handle' in found_struct}} + cdef class anon_union3: """ Attributes ---------- - {{if 'cudaExternalSemaphoreHandleDesc.handle.fd' in found_struct}} + fd : int - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32' in found_struct}} + + win32 : anon_struct8 - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.nvSciSyncObj' in found_struct}} + + nvSciSyncObj : Any - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaExternalSemaphoreHandleDesc* _pvt_ptr - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32' in found_struct}} + cdef anon_struct8 _win32 - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.nvSciSyncObj' in found_struct}} + + cdef _HelperInputVoidPtr _cynvSciSyncObj - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreHandleDesc' in found_struct}} + cdef class cudaExternalSemaphoreHandleDesc: """ @@ -2555,131 +2399,118 @@ cdef class cudaExternalSemaphoreHandleDesc: Attributes ---------- - {{if 'cudaExternalSemaphoreHandleDesc.type' in found_struct}} + type : cudaExternalSemaphoreHandleType Type of the handle - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle' in found_struct}} + + handle : anon_union3 - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.flags' in found_struct}} + + flags : unsigned int Flags reserved for the future. Must be zero. - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaExternalSemaphoreHandleDesc* _val_ptr cdef cyruntime.cudaExternalSemaphoreHandleDesc* _pvt_ptr - {{if 'cudaExternalSemaphoreHandleDesc.handle' in found_struct}} + cdef anon_union3 _handle - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreSignalParams.params.fence' in found_struct}} + cdef class anon_struct15: """ Attributes ---------- - {{if 'cudaExternalSemaphoreSignalParams.params.fence.value' in found_struct}} + value : unsigned long long - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaExternalSemaphoreSignalParams* _pvt_ptr -{{endif}} -{{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync' in found_struct}} cdef class anon_union6: """ Attributes ---------- - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync.fence' in found_struct}} + fence : Any - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync.reserved' in found_struct}} - reserved : unsigned long long - {{endif}} Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaExternalSemaphoreSignalParams* _pvt_ptr - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync.fence' in found_struct}} + cdef _HelperInputVoidPtr _cyfence - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreSignalParams.params.keyedMutex' in found_struct}} + cdef class anon_struct16: """ Attributes ---------- - {{if 'cudaExternalSemaphoreSignalParams.params.keyedMutex.key' in found_struct}} + key : unsigned long long - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaExternalSemaphoreSignalParams* _pvt_ptr -{{endif}} -{{if 'cudaExternalSemaphoreSignalParams.params' in found_struct}} cdef class anon_struct17: """ Attributes ---------- - {{if 'cudaExternalSemaphoreSignalParams.params.fence' in found_struct}} + fence : anon_struct15 - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync' in found_struct}} + + nvSciSync : anon_union6 - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.keyedMutex' in found_struct}} + + keyedMutex : anon_struct16 - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.reserved' in found_struct}} - reserved : list[unsigned int] - {{endif}} Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaExternalSemaphoreSignalParams* _pvt_ptr - {{if 'cudaExternalSemaphoreSignalParams.params.fence' in found_struct}} + cdef anon_struct15 _fence - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync' in found_struct}} + + cdef anon_union6 _nvSciSync - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.keyedMutex' in found_struct}} + + cdef anon_struct16 _keyedMutex - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreSignalParams' in found_struct}} + cdef class cudaExternalSemaphoreSignalParams: """ @@ -2687,11 +2518,11 @@ cdef class cudaExternalSemaphoreSignalParams: Attributes ---------- - {{if 'cudaExternalSemaphoreSignalParams.params' in found_struct}} + params : anon_struct17 - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.flags' in found_struct}} + + flags : unsigned int Only when cudaExternalSemaphoreSignalParams is used to signal a cudaExternalSemaphore_t of type @@ -2701,128 +2532,111 @@ cdef class cudaExternalSemaphoreSignalParams: synchronization operations should be performed for any external memory object imported as cudaExternalMemoryHandleTypeNvSciBuf. For all other types of cudaExternalSemaphore_t, flags must be zero. - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.reserved' in found_struct}} - reserved : list[unsigned int] - {{endif}} Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaExternalSemaphoreSignalParams _pvt_val cdef cyruntime.cudaExternalSemaphoreSignalParams* _pvt_ptr - {{if 'cudaExternalSemaphoreSignalParams.params' in found_struct}} + cdef anon_struct17 _params - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreWaitParams.params.fence' in found_struct}} + cdef class anon_struct18: """ Attributes ---------- - {{if 'cudaExternalSemaphoreWaitParams.params.fence.value' in found_struct}} + value : unsigned long long - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaExternalSemaphoreWaitParams* _pvt_ptr -{{endif}} -{{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync' in found_struct}} cdef class anon_union7: """ Attributes ---------- - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync.fence' in found_struct}} + fence : Any - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync.reserved' in found_struct}} - reserved : unsigned long long - {{endif}} Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaExternalSemaphoreWaitParams* _pvt_ptr - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync.fence' in found_struct}} + cdef _HelperInputVoidPtr _cyfence - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex' in found_struct}} + cdef class anon_struct19: """ Attributes ---------- - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex.key' in found_struct}} + key : unsigned long long - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex.timeoutMs' in found_struct}} + + timeoutMs : unsigned int - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaExternalSemaphoreWaitParams* _pvt_ptr -{{endif}} -{{if 'cudaExternalSemaphoreWaitParams.params' in found_struct}} cdef class anon_struct20: """ Attributes ---------- - {{if 'cudaExternalSemaphoreWaitParams.params.fence' in found_struct}} + fence : anon_struct18 - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync' in found_struct}} + + nvSciSync : anon_union7 - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex' in found_struct}} + + keyedMutex : anon_struct19 - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.reserved' in found_struct}} - reserved : list[unsigned int] - {{endif}} Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaExternalSemaphoreWaitParams* _pvt_ptr - {{if 'cudaExternalSemaphoreWaitParams.params.fence' in found_struct}} + cdef anon_struct18 _fence - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync' in found_struct}} + + cdef anon_union7 _nvSciSync - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex' in found_struct}} + + cdef anon_struct19 _keyedMutex - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreWaitParams' in found_struct}} + cdef class cudaExternalSemaphoreWaitParams: """ @@ -2830,11 +2644,11 @@ cdef class cudaExternalSemaphoreWaitParams: Attributes ---------- - {{if 'cudaExternalSemaphoreWaitParams.params' in found_struct}} + params : anon_struct20 - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.flags' in found_struct}} + + flags : unsigned int Only when cudaExternalSemaphoreSignalParams is used to signal a cudaExternalSemaphore_t of type @@ -2844,61 +2658,55 @@ cdef class cudaExternalSemaphoreWaitParams: synchronization operations should be performed for any external memory object imported as cudaExternalMemoryHandleTypeNvSciBuf. For all other types of cudaExternalSemaphore_t, flags must be zero. - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.reserved' in found_struct}} - reserved : list[unsigned int] - {{endif}} Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaExternalSemaphoreWaitParams _pvt_val cdef cyruntime.cudaExternalSemaphoreWaitParams* _pvt_ptr - {{if 'cudaExternalSemaphoreWaitParams.params' in found_struct}} + cdef anon_struct20 _params - {{endif}} -{{endif}} -{{if 'cudalibraryHostUniversalFunctionAndDataTable' in found_struct}} + cdef class cudalibraryHostUniversalFunctionAndDataTable: """ Attributes ---------- - {{if 'cudalibraryHostUniversalFunctionAndDataTable.functionTable' in found_struct}} + functionTable : Any - {{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable.functionWindowSize' in found_struct}} + + functionWindowSize : size_t - {{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable.dataTable' in found_struct}} + + dataTable : Any - {{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable.dataWindowSize' in found_struct}} + + dataWindowSize : size_t - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudalibraryHostUniversalFunctionAndDataTable _pvt_val cdef cyruntime.cudalibraryHostUniversalFunctionAndDataTable* _pvt_ptr - {{if 'cudalibraryHostUniversalFunctionAndDataTable.functionTable' in found_struct}} + cdef _HelperInputVoidPtr _cyfunctionTable - {{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable.dataTable' in found_struct}} + + cdef _HelperInputVoidPtr _cydataTable - {{endif}} -{{endif}} -{{if 'cudaKernelNodeParams' in found_struct}} + cdef class cudaKernelNodeParams: """ @@ -2906,52 +2714,51 @@ cdef class cudaKernelNodeParams: Attributes ---------- - {{if 'cudaKernelNodeParams.func' in found_struct}} + func : Any Kernel to launch - {{endif}} - {{if 'cudaKernelNodeParams.gridDim' in found_struct}} + + gridDim : dim3 Grid dimensions - {{endif}} - {{if 'cudaKernelNodeParams.blockDim' in found_struct}} + + blockDim : dim3 Block dimensions - {{endif}} - {{if 'cudaKernelNodeParams.sharedMemBytes' in found_struct}} + + sharedMemBytes : unsigned int Dynamic shared-memory size per thread block in bytes - {{endif}} - {{if 'cudaKernelNodeParams.kernelParams' in found_struct}} + + kernelParams : Any Array of pointers to individual kernel arguments - {{endif}} - {{if 'cudaKernelNodeParams.extra' in found_struct}} + + extra : Any Pointer to kernel arguments in the "extra" format - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaKernelNodeParams _pvt_val cdef cyruntime.cudaKernelNodeParams* _pvt_ptr - {{if 'cudaKernelNodeParams.func' in found_struct}} + cdef _HelperInputVoidPtr _cyfunc - {{endif}} - {{if 'cudaKernelNodeParams.gridDim' in found_struct}} + + cdef dim3 _gridDim - {{endif}} - {{if 'cudaKernelNodeParams.blockDim' in found_struct}} + + cdef dim3 _blockDim - {{endif}} - {{if 'cudaKernelNodeParams.kernelParams' in found_struct}} + + cdef _HelperKernelParams _cykernelParams - {{endif}} -{{endif}} -{{if 'cudaKernelNodeParamsV2' in found_struct}} + cdef class cudaKernelNodeParamsV2: """ @@ -2959,52 +2766,51 @@ cdef class cudaKernelNodeParamsV2: Attributes ---------- - {{if 'cudaKernelNodeParamsV2.func' in found_struct}} + func : Any Kernel to launch - {{endif}} - {{if 'cudaKernelNodeParamsV2.gridDim' in found_struct}} + + gridDim : dim3 Grid dimensions - {{endif}} - {{if 'cudaKernelNodeParamsV2.blockDim' in found_struct}} + + blockDim : dim3 Block dimensions - {{endif}} - {{if 'cudaKernelNodeParamsV2.sharedMemBytes' in found_struct}} + + sharedMemBytes : unsigned int Dynamic shared-memory size per thread block in bytes - {{endif}} - {{if 'cudaKernelNodeParamsV2.kernelParams' in found_struct}} + + kernelParams : Any Array of pointers to individual kernel arguments - {{endif}} - {{if 'cudaKernelNodeParamsV2.extra' in found_struct}} + + extra : Any Pointer to kernel arguments in the "extra" format - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaKernelNodeParamsV2 _pvt_val cdef cyruntime.cudaKernelNodeParamsV2* _pvt_ptr - {{if 'cudaKernelNodeParamsV2.func' in found_struct}} + cdef _HelperInputVoidPtr _cyfunc - {{endif}} - {{if 'cudaKernelNodeParamsV2.gridDim' in found_struct}} + + cdef dim3 _gridDim - {{endif}} - {{if 'cudaKernelNodeParamsV2.blockDim' in found_struct}} + + cdef dim3 _blockDim - {{endif}} - {{if 'cudaKernelNodeParamsV2.kernelParams' in found_struct}} + + cdef _HelperKernelParams _cykernelParams - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreSignalNodeParams' in found_struct}} + cdef class cudaExternalSemaphoreSignalNodeParams: """ @@ -3012,37 +2818,36 @@ cdef class cudaExternalSemaphoreSignalNodeParams: Attributes ---------- - {{if 'cudaExternalSemaphoreSignalNodeParams.extSemArray' in found_struct}} + extSemArray : cudaExternalSemaphore_t Array of external semaphore handles. - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParams.paramsArray' in found_struct}} + + paramsArray : cudaExternalSemaphoreSignalParams Array of external semaphore signal parameters. - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParams.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaExternalSemaphoreSignalNodeParams _pvt_val cdef cyruntime.cudaExternalSemaphoreSignalNodeParams* _pvt_ptr - {{if 'cudaExternalSemaphoreSignalNodeParams.extSemArray' in found_struct}} + cdef size_t _extSemArray_length cdef cyruntime.cudaExternalSemaphore_t* _extSemArray - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParams.paramsArray' in found_struct}} + + cdef size_t _paramsArray_length cdef cyruntime.cudaExternalSemaphoreSignalParams* _paramsArray - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreSignalNodeParamsV2' in found_struct}} + cdef class cudaExternalSemaphoreSignalNodeParamsV2: """ @@ -3050,37 +2855,36 @@ cdef class cudaExternalSemaphoreSignalNodeParamsV2: Attributes ---------- - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.extSemArray' in found_struct}} + extSemArray : cudaExternalSemaphore_t Array of external semaphore handles. - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.paramsArray' in found_struct}} + + paramsArray : cudaExternalSemaphoreSignalParams Array of external semaphore signal parameters. - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaExternalSemaphoreSignalNodeParamsV2 _pvt_val cdef cyruntime.cudaExternalSemaphoreSignalNodeParamsV2* _pvt_ptr - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.extSemArray' in found_struct}} + cdef size_t _extSemArray_length cdef cyruntime.cudaExternalSemaphore_t* _extSemArray - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.paramsArray' in found_struct}} + + cdef size_t _paramsArray_length cdef cyruntime.cudaExternalSemaphoreSignalParams* _paramsArray - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreWaitNodeParams' in found_struct}} + cdef class cudaExternalSemaphoreWaitNodeParams: """ @@ -3088,37 +2892,36 @@ cdef class cudaExternalSemaphoreWaitNodeParams: Attributes ---------- - {{if 'cudaExternalSemaphoreWaitNodeParams.extSemArray' in found_struct}} + extSemArray : cudaExternalSemaphore_t Array of external semaphore handles. - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParams.paramsArray' in found_struct}} + + paramsArray : cudaExternalSemaphoreWaitParams Array of external semaphore wait parameters. - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParams.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaExternalSemaphoreWaitNodeParams _pvt_val cdef cyruntime.cudaExternalSemaphoreWaitNodeParams* _pvt_ptr - {{if 'cudaExternalSemaphoreWaitNodeParams.extSemArray' in found_struct}} + cdef size_t _extSemArray_length cdef cyruntime.cudaExternalSemaphore_t* _extSemArray - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParams.paramsArray' in found_struct}} + + cdef size_t _paramsArray_length cdef cyruntime.cudaExternalSemaphoreWaitParams* _paramsArray - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreWaitNodeParamsV2' in found_struct}} + cdef class cudaExternalSemaphoreWaitNodeParamsV2: """ @@ -3126,37 +2929,36 @@ cdef class cudaExternalSemaphoreWaitNodeParamsV2: Attributes ---------- - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.extSemArray' in found_struct}} + extSemArray : cudaExternalSemaphore_t Array of external semaphore handles. - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.paramsArray' in found_struct}} + + paramsArray : cudaExternalSemaphoreWaitParams Array of external semaphore wait parameters. - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaExternalSemaphoreWaitNodeParamsV2 _pvt_val cdef cyruntime.cudaExternalSemaphoreWaitNodeParamsV2* _pvt_ptr - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.extSemArray' in found_struct}} + cdef size_t _extSemArray_length cdef cyruntime.cudaExternalSemaphore_t* _extSemArray - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.paramsArray' in found_struct}} + + cdef size_t _paramsArray_length cdef cyruntime.cudaExternalSemaphoreWaitParams* _paramsArray - {{endif}} -{{endif}} -{{if 'cudaConditionalNodeParams' in found_struct}} + cdef class cudaConditionalNodeParams: """ @@ -3164,22 +2966,22 @@ cdef class cudaConditionalNodeParams: Attributes ---------- - {{if 'cudaConditionalNodeParams.handle' in found_struct}} + handle : cudaGraphConditionalHandle Conditional node handle. Handles must be created in advance of creating the node using cudaGraphConditionalHandleCreate. - {{endif}} - {{if 'cudaConditionalNodeParams.type' in found_struct}} + + type : cudaGraphConditionalNodeType Type of conditional node. - {{endif}} - {{if 'cudaConditionalNodeParams.size' in found_struct}} + + size : unsigned int Size of graph output array. Allowed values are 1 for cudaGraphCondTypeWhile, 1 or 2 for cudaGraphCondTypeWhile, or any value greater than zero for cudaGraphCondTypeSwitch. - {{endif}} - {{if 'cudaConditionalNodeParams.phGraph_out' in found_struct}} + + phGraph_out : cudaGraph_t CUDA-owned array populated with conditional node child graphs during creation of the node. Valid for the lifetime of the @@ -3197,24 +2999,23 @@ cdef class cudaConditionalNodeParams: condition is non-zero. cudaGraphCondTypeSwitch: phGraph_out[n] is executed when the condition is equal to n. If the condition >= `size`, no body graph is executed. - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaConditionalNodeParams _pvt_val cdef cyruntime.cudaConditionalNodeParams* _pvt_ptr - {{if 'cudaConditionalNodeParams.handle' in found_struct}} + cdef cudaGraphConditionalHandle _handle - {{endif}} - {{if 'cudaConditionalNodeParams.phGraph_out' in found_struct}} + + cdef size_t _phGraph_out_length cdef cyruntime.cudaGraph_t* _phGraph_out - {{endif}} -{{endif}} -{{if 'cudaChildGraphNodeParams' in found_struct}} + cdef class cudaChildGraphNodeParams: """ @@ -3222,31 +3023,30 @@ cdef class cudaChildGraphNodeParams: Attributes ---------- - {{if 'cudaChildGraphNodeParams.graph' in found_struct}} + graph : cudaGraph_t The child graph to clone into the node for node creation, or a handle to the graph owned by the node for node query. The graph must not contain conditional nodes. Graphs containing memory allocation or memory free nodes must set the ownership to be moved to the parent. - {{endif}} - {{if 'cudaChildGraphNodeParams.ownership' in found_struct}} + + ownership : cudaGraphChildGraphNodeOwnership The ownership relationship of the child graph node. - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaChildGraphNodeParams _pvt_val cdef cyruntime.cudaChildGraphNodeParams* _pvt_ptr - {{if 'cudaChildGraphNodeParams.graph' in found_struct}} + cdef cudaGraph_t _graph - {{endif}} -{{endif}} -{{if 'cudaEventRecordNodeParams' in found_struct}} + cdef class cudaEventRecordNodeParams: """ @@ -3254,23 +3054,22 @@ cdef class cudaEventRecordNodeParams: Attributes ---------- - {{if 'cudaEventRecordNodeParams.event' in found_struct}} + event : cudaEvent_t The event to record when the node executes - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaEventRecordNodeParams _pvt_val cdef cyruntime.cudaEventRecordNodeParams* _pvt_ptr - {{if 'cudaEventRecordNodeParams.event' in found_struct}} + cdef cudaEvent_t _event - {{endif}} -{{endif}} -{{if 'cudaEventWaitNodeParams' in found_struct}} + cdef class cudaEventWaitNodeParams: """ @@ -3278,23 +3077,22 @@ cdef class cudaEventWaitNodeParams: Attributes ---------- - {{if 'cudaEventWaitNodeParams.event' in found_struct}} + event : cudaEvent_t The event to wait on from the node - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaEventWaitNodeParams _pvt_val cdef cyruntime.cudaEventWaitNodeParams* _pvt_ptr - {{if 'cudaEventWaitNodeParams.event' in found_struct}} + cdef cudaEvent_t _event - {{endif}} -{{endif}} -{{if 'cudaGraphNodeParams' in found_struct}} + cdef class cudaGraphNodeParams: """ @@ -3302,116 +3100,103 @@ cdef class cudaGraphNodeParams: Attributes ---------- - {{if 'cudaGraphNodeParams.type' in found_struct}} + type : cudaGraphNodeType Type of the node - {{endif}} - {{if 'cudaGraphNodeParams.reserved0' in found_struct}} - reserved0 : list[int] - Reserved. Must be zero. - {{endif}} - {{if 'cudaGraphNodeParams.reserved1' in found_struct}} - reserved1 : list[long long] - Padding. Unused bytes must be zero. - {{endif}} - {{if 'cudaGraphNodeParams.kernel' in found_struct}} + + kernel : cudaKernelNodeParamsV2 Kernel node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.memcpy' in found_struct}} + + memcpy : cudaMemcpyNodeParams Memcpy node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.memset' in found_struct}} + + memset : cudaMemsetParamsV2 Memset node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.host' in found_struct}} + + host : cudaHostNodeParamsV2 Host node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.graph' in found_struct}} + + graph : cudaChildGraphNodeParams Child graph node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.eventWait' in found_struct}} + + eventWait : cudaEventWaitNodeParams Event wait node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.eventRecord' in found_struct}} + + eventRecord : cudaEventRecordNodeParams Event record node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.extSemSignal' in found_struct}} + + extSemSignal : cudaExternalSemaphoreSignalNodeParamsV2 External semaphore signal node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.extSemWait' in found_struct}} + + extSemWait : cudaExternalSemaphoreWaitNodeParamsV2 External semaphore wait node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.alloc' in found_struct}} + + alloc : cudaMemAllocNodeParamsV2 Memory allocation node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.free' in found_struct}} + + free : cudaMemFreeNodeParams Memory free node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.conditional' in found_struct}} + + conditional : cudaConditionalNodeParams Conditional node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.reserved2' in found_struct}} - reserved2 : long long - Reserved bytes. Must be zero. - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaGraphNodeParams* _val_ptr cdef cyruntime.cudaGraphNodeParams* _pvt_ptr - {{if 'cudaGraphNodeParams.kernel' in found_struct}} + cdef cudaKernelNodeParamsV2 _kernel - {{endif}} - {{if 'cudaGraphNodeParams.memcpy' in found_struct}} + + cdef cudaMemcpyNodeParams _memcpy - {{endif}} - {{if 'cudaGraphNodeParams.memset' in found_struct}} + + cdef cudaMemsetParamsV2 _memset - {{endif}} - {{if 'cudaGraphNodeParams.host' in found_struct}} + + cdef cudaHostNodeParamsV2 _host - {{endif}} - {{if 'cudaGraphNodeParams.graph' in found_struct}} + + cdef cudaChildGraphNodeParams _graph - {{endif}} - {{if 'cudaGraphNodeParams.eventWait' in found_struct}} + + cdef cudaEventWaitNodeParams _eventWait - {{endif}} - {{if 'cudaGraphNodeParams.eventRecord' in found_struct}} + + cdef cudaEventRecordNodeParams _eventRecord - {{endif}} - {{if 'cudaGraphNodeParams.extSemSignal' in found_struct}} + + cdef cudaExternalSemaphoreSignalNodeParamsV2 _extSemSignal - {{endif}} - {{if 'cudaGraphNodeParams.extSemWait' in found_struct}} + + cdef cudaExternalSemaphoreWaitNodeParamsV2 _extSemWait - {{endif}} - {{if 'cudaGraphNodeParams.alloc' in found_struct}} + + cdef cudaMemAllocNodeParamsV2 _alloc - {{endif}} - {{if 'cudaGraphNodeParams.free' in found_struct}} + + cdef cudaMemFreeNodeParams _free - {{endif}} - {{if 'cudaGraphNodeParams.conditional' in found_struct}} + + cdef cudaConditionalNodeParams _conditional - {{endif}} -{{endif}} -{{if 'cudaGraphEdgeData_st' in found_struct}} + cdef class cudaGraphEdgeData_st: """ @@ -3422,7 +3207,7 @@ cdef class cudaGraphEdgeData_st: Attributes ---------- - {{if 'cudaGraphEdgeData_st.from_port' in found_struct}} + from_port : bytes This indicates when the dependency is triggered from the upstream node on the edge. The meaning is specfic to the node type. A value @@ -3433,8 +3218,8 @@ cdef class cudaGraphEdgeData_st: cudaGraphKernelNodePortDefault, cudaGraphKernelNodePortProgrammatic, or cudaGraphKernelNodePortLaunchCompletion. - {{endif}} - {{if 'cudaGraphEdgeData_st.to_port' in found_struct}} + + to_port : bytes This indicates what portion of the downstream node is dependent on the upstream node or portion thereof (indicated by `from_port`). @@ -3442,28 +3227,22 @@ cdef class cudaGraphEdgeData_st: means the entirety of the downstream node is dependent on the upstream work. Currently no node types define non-zero ports. Accordingly, this field must be set to zero. - {{endif}} - {{if 'cudaGraphEdgeData_st.type' in found_struct}} + + type : bytes This should be populated with a value from cudaGraphDependencyType. (It is typed as char due to compiler-specific layout of bitfields.) See cudaGraphDependencyType. - {{endif}} - {{if 'cudaGraphEdgeData_st.reserved' in found_struct}} - reserved : bytes - These bytes are unused and must be zeroed. This ensures - compatibility if additional fields are added in the future. - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaGraphEdgeData_st _pvt_val cdef cyruntime.cudaGraphEdgeData_st* _pvt_ptr -{{endif}} -{{if 'cudaGraphInstantiateParams_st' in found_struct}} cdef class cudaGraphInstantiateParams_st: """ @@ -3471,38 +3250,37 @@ cdef class cudaGraphInstantiateParams_st: Attributes ---------- - {{if 'cudaGraphInstantiateParams_st.flags' in found_struct}} + flags : unsigned long long Instantiation flags - {{endif}} - {{if 'cudaGraphInstantiateParams_st.uploadStream' in found_struct}} + + uploadStream : cudaStream_t Upload stream - {{endif}} - {{if 'cudaGraphInstantiateParams_st.errNode_out' in found_struct}} + + errNode_out : cudaGraphNode_t The node which caused instantiation to fail, if any - {{endif}} - {{if 'cudaGraphInstantiateParams_st.result_out' in found_struct}} + + result_out : cudaGraphInstantiateResult Whether instantiation was successful. If it failed, the reason why - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaGraphInstantiateParams_st _pvt_val cdef cyruntime.cudaGraphInstantiateParams_st* _pvt_ptr - {{if 'cudaGraphInstantiateParams_st.uploadStream' in found_struct}} + cdef cudaStream_t _uploadStream - {{endif}} - {{if 'cudaGraphInstantiateParams_st.errNode_out' in found_struct}} + + cdef cudaGraphNode_t _errNode_out - {{endif}} -{{endif}} -{{if 'cudaGraphExecUpdateResultInfo_st' in found_struct}} + cdef class cudaGraphExecUpdateResultInfo_st: """ @@ -3510,98 +3288,95 @@ cdef class cudaGraphExecUpdateResultInfo_st: Attributes ---------- - {{if 'cudaGraphExecUpdateResultInfo_st.result' in found_struct}} + result : cudaGraphExecUpdateResult Gives more specific detail when a cuda graph update fails. - {{endif}} - {{if 'cudaGraphExecUpdateResultInfo_st.errorNode' in found_struct}} + + errorNode : cudaGraphNode_t The "to node" of the error edge when the topologies do not match. The error node when the error is associated with a specific node. NULL when the error is generic. - {{endif}} - {{if 'cudaGraphExecUpdateResultInfo_st.errorFromNode' in found_struct}} + + errorFromNode : cudaGraphNode_t The from node of error edge when the topologies do not match. Otherwise NULL. - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaGraphExecUpdateResultInfo_st _pvt_val cdef cyruntime.cudaGraphExecUpdateResultInfo_st* _pvt_ptr - {{if 'cudaGraphExecUpdateResultInfo_st.errorNode' in found_struct}} + cdef cudaGraphNode_t _errorNode - {{endif}} - {{if 'cudaGraphExecUpdateResultInfo_st.errorFromNode' in found_struct}} + + cdef cudaGraphNode_t _errorFromNode - {{endif}} -{{endif}} -{{if 'cudaGraphKernelNodeUpdate.updateData.param' in found_struct}} + cdef class anon_struct21: """ Attributes ---------- - {{if 'cudaGraphKernelNodeUpdate.updateData.param.pValue' in found_struct}} + pValue : Any - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param.offset' in found_struct}} + + offset : size_t - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param.size' in found_struct}} + + size : size_t - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaGraphKernelNodeUpdate* _pvt_ptr - {{if 'cudaGraphKernelNodeUpdate.updateData.param.pValue' in found_struct}} + cdef _HelperInputVoidPtr _cypValue - {{endif}} -{{endif}} -{{if 'cudaGraphKernelNodeUpdate.updateData' in found_struct}} + cdef class anon_union9: """ Attributes ---------- - {{if 'cudaGraphKernelNodeUpdate.updateData.gridDim' in found_struct}} + gridDim : dim3 - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param' in found_struct}} + + param : anon_struct21 - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.isEnabled' in found_struct}} + + isEnabled : unsigned int - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaGraphKernelNodeUpdate* _pvt_ptr - {{if 'cudaGraphKernelNodeUpdate.updateData.gridDim' in found_struct}} + cdef dim3 _gridDim - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param' in found_struct}} + + cdef anon_struct21 _param - {{endif}} -{{endif}} -{{if 'cudaGraphKernelNodeUpdate' in found_struct}} + cdef class cudaGraphKernelNodeUpdate: """ @@ -3610,35 +3385,34 @@ cdef class cudaGraphKernelNodeUpdate: Attributes ---------- - {{if 'cudaGraphKernelNodeUpdate.node' in found_struct}} + node : cudaGraphDeviceNode_t Node to update - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.field' in found_struct}} + + field : cudaGraphKernelNodeField Which type of update to apply. Determines how updateData is interpreted - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData' in found_struct}} + + updateData : anon_union9 Update data to apply. Which field is used depends on field's value - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaGraphKernelNodeUpdate* _val_ptr cdef cyruntime.cudaGraphKernelNodeUpdate* _pvt_ptr - {{if 'cudaGraphKernelNodeUpdate.node' in found_struct}} + cdef cudaGraphDeviceNode_t _node - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData' in found_struct}} + + cdef anon_union9 _updateData - {{endif}} -{{endif}} -{{if 'cudaLaunchMemSyncDomainMap_st' in found_struct}} + cdef class cudaLaunchMemSyncDomainMap_st: """ @@ -3652,155 +3426,149 @@ cdef class cudaLaunchMemSyncDomainMap_st: Attributes ---------- - {{if 'cudaLaunchMemSyncDomainMap_st.default_' in found_struct}} + default_ : bytes The default domain ID to use for designated kernels - {{endif}} - {{if 'cudaLaunchMemSyncDomainMap_st.remote' in found_struct}} + + remote : bytes The remote domain ID to use for designated kernels - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaLaunchMemSyncDomainMap_st _pvt_val cdef cyruntime.cudaLaunchMemSyncDomainMap_st* _pvt_ptr -{{endif}} -{{if 'cudaLaunchAttributeValue.clusterDim' in found_struct}} cdef class anon_struct22: """ Attributes ---------- - {{if 'cudaLaunchAttributeValue.clusterDim.x' in found_struct}} + x : unsigned int - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim.y' in found_struct}} + + y : unsigned int - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim.z' in found_struct}} + + z : unsigned int - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaLaunchAttributeValue* _pvt_ptr -{{endif}} -{{if 'cudaLaunchAttributeValue.programmaticEvent' in found_struct}} cdef class anon_struct23: """ Attributes ---------- - {{if 'cudaLaunchAttributeValue.programmaticEvent.event' in found_struct}} + event : cudaEvent_t - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent.flags' in found_struct}} + + flags : int - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent.triggerAtBlockStart' in found_struct}} + + triggerAtBlockStart : int - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaLaunchAttributeValue* _pvt_ptr - {{if 'cudaLaunchAttributeValue.programmaticEvent.event' in found_struct}} + cdef cudaEvent_t _event - {{endif}} -{{endif}} -{{if 'cudaLaunchAttributeValue.preferredClusterDim' in found_struct}} + cdef class anon_struct24: """ Attributes ---------- - {{if 'cudaLaunchAttributeValue.preferredClusterDim.x' in found_struct}} + x : unsigned int - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim.y' in found_struct}} + + y : unsigned int - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim.z' in found_struct}} + + z : unsigned int - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaLaunchAttributeValue* _pvt_ptr -{{endif}} -{{if 'cudaLaunchAttributeValue.launchCompletionEvent' in found_struct}} cdef class anon_struct25: """ Attributes ---------- - {{if 'cudaLaunchAttributeValue.launchCompletionEvent.event' in found_struct}} + event : cudaEvent_t - {{endif}} - {{if 'cudaLaunchAttributeValue.launchCompletionEvent.flags' in found_struct}} + + flags : int - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaLaunchAttributeValue* _pvt_ptr - {{if 'cudaLaunchAttributeValue.launchCompletionEvent.event' in found_struct}} + cdef cudaEvent_t _event - {{endif}} -{{endif}} -{{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode' in found_struct}} + cdef class anon_struct26: """ Attributes ---------- - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode.deviceUpdatable' in found_struct}} + deviceUpdatable : int - {{endif}} - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode.devNode' in found_struct}} + + devNode : cudaGraphDeviceNode_t - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaLaunchAttributeValue* _pvt_ptr - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode.devNode' in found_struct}} + cdef cudaGraphDeviceNode_t _devNode - {{endif}} -{{endif}} -{{if 'cudaLaunchAttributeValue' in found_struct}} + cdef class cudaLaunchAttributeValue: """ @@ -3808,25 +3576,25 @@ cdef class cudaLaunchAttributeValue: Attributes ---------- - {{if 'cudaLaunchAttributeValue.pad' in found_struct}} + pad : bytes - {{endif}} - {{if 'cudaLaunchAttributeValue.accessPolicyWindow' in found_struct}} + + accessPolicyWindow : cudaAccessPolicyWindow Value of launch attribute cudaLaunchAttributeAccessPolicyWindow. - {{endif}} - {{if 'cudaLaunchAttributeValue.cooperative' in found_struct}} + + cooperative : int Value of launch attribute cudaLaunchAttributeCooperative. Nonzero indicates a cooperative kernel (see cudaLaunchCooperativeKernel). - {{endif}} - {{if 'cudaLaunchAttributeValue.syncPolicy' in found_struct}} + + syncPolicy : cudaSynchronizationPolicy Value of launch attribute cudaLaunchAttributeSynchronizationPolicy. cudaSynchronizationPolicy for work queued up in this stream. - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim' in found_struct}} + + clusterDim : anon_struct22 Value of launch attribute cudaLaunchAttributeClusterDimension that represents the desired cluster dimensions for the kernel. Opaque @@ -3835,19 +3603,19 @@ cdef class cudaLaunchAttributeValue: `y` - The Y dimension of the cluster, in blocks. Must be a divisor of the grid Y dimension. - `z` - The Z dimension of the cluster, in blocks. Must be a divisor of the grid Z dimension. - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterSchedulingPolicyPreference' in found_struct}} + + clusterSchedulingPolicyPreference : cudaClusterSchedulingPolicy Value of launch attribute cudaLaunchAttributeClusterSchedulingPolicyPreference. Cluster scheduling policy preference for the kernel. - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticStreamSerializationAllowed' in found_struct}} + + programmaticStreamSerializationAllowed : int Value of launch attribute cudaLaunchAttributeProgrammaticStreamSerialization. - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent' in found_struct}} + + programmaticEvent : anon_struct23 Value of launch attribute cudaLaunchAttributeProgrammaticEvent with the following fields: - `cudaEvent_t` event - Event to fire when @@ -3855,23 +3623,23 @@ cdef class cudaLaunchAttributeValue: cudaEventRecordWithFlags. Does not accept cudaEventRecordExternal. - `int` triggerAtBlockStart - If this is set to non-0, each block launch will automatically trigger the event. - {{endif}} - {{if 'cudaLaunchAttributeValue.priority' in found_struct}} + + priority : int Value of launch attribute cudaLaunchAttributePriority. Execution priority of the kernel. - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomainMap' in found_struct}} + + memSyncDomainMap : cudaLaunchMemSyncDomainMap Value of launch attribute cudaLaunchAttributeMemSyncDomainMap. See cudaLaunchMemSyncDomainMap. - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomain' in found_struct}} + + memSyncDomain : cudaLaunchMemSyncDomain Value of launch attribute cudaLaunchAttributeMemSyncDomain. See cudaLaunchMemSyncDomain. - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim' in found_struct}} + + preferredClusterDim : anon_struct24 Value of launch attribute cudaLaunchAttributePreferredClusterDimension that represents the @@ -3879,22 +3647,22 @@ cdef class cudaLaunchAttributeValue: with the following fields: - `x` - The X dimension of the preferred cluster, in blocks. Must be a divisor of the grid X dimension, and must be a multiple of the `x` field of - ::cudaLaunchAttributeValue::clusterDim. - `y` - The Y dimension - of the preferred cluster, in blocks. Must be a divisor of the grid - Y dimension, and must be a multiple of the `y` field of - ::cudaLaunchAttributeValue::clusterDim. - `z` - The Z dimension - of the preferred cluster, in blocks. Must be equal to the `z` field - of ::cudaLaunchAttributeValue::clusterDim. - {{endif}} - {{if 'cudaLaunchAttributeValue.launchCompletionEvent' in found_struct}} + cudaLaunchAttributeValue::clusterDim. - `y` - The Y dimension of + the preferred cluster, in blocks. Must be a divisor of the grid Y + dimension, and must be a multiple of the `y` field of + cudaLaunchAttributeValue::clusterDim. - `z` - The Z dimension of + the preferred cluster, in blocks. Must be equal to the `z` field of + cudaLaunchAttributeValue::clusterDim. + + launchCompletionEvent : anon_struct25 Value of launch attribute cudaLaunchAttributeLaunchCompletionEvent with the following fields: - `cudaEvent_t` event - Event to fire when the last block launches. - `int` flags - Event record flags, see cudaEventRecordWithFlags. Does not accept cudaEventRecordExternal. - {{endif}} - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode' in found_struct}} + + deviceUpdatableKernelNode : anon_struct26 Value of launch attribute cudaLaunchAttributeDeviceUpdatableKernelNode with the following @@ -3902,43 +3670,42 @@ cdef class cudaLaunchAttributeValue: kernel node should be device-updatable. - `cudaGraphDeviceNode_t` devNode - Returns a handle to pass to the various device-side update functions. - {{endif}} - {{if 'cudaLaunchAttributeValue.sharedMemCarveout' in found_struct}} + + sharedMemCarveout : unsigned int Value of launch attribute cudaLaunchAttributePreferredSharedMemoryCarveout. - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaLaunchAttributeValue _pvt_val cdef cyruntime.cudaLaunchAttributeValue* _pvt_ptr - {{if 'cudaLaunchAttributeValue.accessPolicyWindow' in found_struct}} + cdef cudaAccessPolicyWindow _accessPolicyWindow - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim' in found_struct}} + + cdef anon_struct22 _clusterDim - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent' in found_struct}} + + cdef anon_struct23 _programmaticEvent - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomainMap' in found_struct}} + + cdef cudaLaunchMemSyncDomainMap _memSyncDomainMap - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim' in found_struct}} + + cdef anon_struct24 _preferredClusterDim - {{endif}} - {{if 'cudaLaunchAttributeValue.launchCompletionEvent' in found_struct}} + + cdef anon_struct25 _launchCompletionEvent - {{endif}} - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode' in found_struct}} + + cdef anon_struct26 _deviceUpdatableKernelNode - {{endif}} -{{endif}} -{{if 'cudaLaunchAttribute_st' in found_struct}} + cdef class cudaLaunchAttribute_st: """ @@ -3946,66 +3713,63 @@ cdef class cudaLaunchAttribute_st: Attributes ---------- - {{if 'cudaLaunchAttribute_st.id' in found_struct}} + id : cudaLaunchAttributeID Attribute to set - {{endif}} - {{if 'cudaLaunchAttribute_st.val' in found_struct}} + + val : cudaLaunchAttributeValue Value of the attribute - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaLaunchAttribute_st _pvt_val cdef cyruntime.cudaLaunchAttribute_st* _pvt_ptr - {{if 'cudaLaunchAttribute_st.val' in found_struct}} + cdef cudaLaunchAttributeValue _val - {{endif}} -{{endif}} -{{if 'cudaAsyncNotificationInfo.info.overBudget' in found_struct}} + cdef class anon_struct27: """ Attributes ---------- - {{if 'cudaAsyncNotificationInfo.info.overBudget.bytesOverBudget' in found_struct}} + bytesOverBudget : unsigned long long - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaAsyncNotificationInfo* _pvt_ptr -{{endif}} -{{if 'cudaAsyncNotificationInfo.info' in found_struct}} cdef class anon_union10: """ Attributes ---------- - {{if 'cudaAsyncNotificationInfo.info.overBudget' in found_struct}} + overBudget : anon_struct27 - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaAsyncNotificationInfo* _pvt_ptr - {{if 'cudaAsyncNotificationInfo.info.overBudget' in found_struct}} + cdef anon_struct27 _overBudget - {{endif}} -{{endif}} -{{if 'cudaAsyncNotificationInfo' in found_struct}} + cdef class cudaAsyncNotificationInfo: """ @@ -4013,28 +3777,27 @@ cdef class cudaAsyncNotificationInfo: Attributes ---------- - {{if 'cudaAsyncNotificationInfo.type' in found_struct}} + type : cudaAsyncNotificationType The type of notification being sent - {{endif}} - {{if 'cudaAsyncNotificationInfo.info' in found_struct}} + + info : anon_union10 Information about the notification. `typename` must be checked in order to interpret this field. - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaAsyncNotificationInfo* _val_ptr cdef cyruntime.cudaAsyncNotificationInfo* _pvt_ptr - {{if 'cudaAsyncNotificationInfo.info' in found_struct}} + cdef anon_union10 _info - {{endif}} -{{endif}} -{{if 'cudaTextureDesc' in found_struct}} + cdef class cudaTextureDesc: """ @@ -4042,68 +3805,67 @@ cdef class cudaTextureDesc: Attributes ---------- - {{if 'cudaTextureDesc.addressMode' in found_struct}} + addressMode : list[cudaTextureAddressMode] Texture address mode for up to 3 dimensions - {{endif}} - {{if 'cudaTextureDesc.filterMode' in found_struct}} + + filterMode : cudaTextureFilterMode Texture filter mode - {{endif}} - {{if 'cudaTextureDesc.readMode' in found_struct}} + + readMode : cudaTextureReadMode Texture read mode - {{endif}} - {{if 'cudaTextureDesc.sRGB' in found_struct}} + + sRGB : int Perform sRGB->linear conversion during texture read - {{endif}} - {{if 'cudaTextureDesc.borderColor' in found_struct}} + + borderColor : list[float] Texture Border Color - {{endif}} - {{if 'cudaTextureDesc.normalizedCoords' in found_struct}} + + normalizedCoords : int Indicates whether texture reads are normalized or not - {{endif}} - {{if 'cudaTextureDesc.maxAnisotropy' in found_struct}} + + maxAnisotropy : unsigned int Limit to the anisotropy ratio - {{endif}} - {{if 'cudaTextureDesc.mipmapFilterMode' in found_struct}} + + mipmapFilterMode : cudaTextureFilterMode Mipmap filter mode - {{endif}} - {{if 'cudaTextureDesc.mipmapLevelBias' in found_struct}} + + mipmapLevelBias : float Offset applied to the supplied mipmap level - {{endif}} - {{if 'cudaTextureDesc.minMipmapLevelClamp' in found_struct}} + + minMipmapLevelClamp : float Lower end of the mipmap level range to clamp access to - {{endif}} - {{if 'cudaTextureDesc.maxMipmapLevelClamp' in found_struct}} + + maxMipmapLevelClamp : float Upper end of the mipmap level range to clamp access to - {{endif}} - {{if 'cudaTextureDesc.disableTrilinearOptimization' in found_struct}} + + disableTrilinearOptimization : int Disable any trilinear filtering optimizations. - {{endif}} - {{if 'cudaTextureDesc.seamlessCubemap' in found_struct}} + + seamlessCubemap : int Enable seamless cube map filtering. - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaTextureDesc _pvt_val cdef cyruntime.cudaTextureDesc* _pvt_ptr -{{endif}} -{{if True}} cdef class cudaEglPlaneDesc_st: """ @@ -4112,69 +3874,63 @@ cdef class cudaEglPlaneDesc_st: Attributes ---------- - {{if True}} + width : unsigned int Width of plane - {{endif}} - {{if True}} + + height : unsigned int Height of plane - {{endif}} - {{if True}} + + depth : unsigned int Depth of plane - {{endif}} - {{if True}} + + pitch : unsigned int Pitch of plane - {{endif}} - {{if True}} + + numChannels : unsigned int Number of channels for the plane - {{endif}} - {{if True}} + + channelDesc : cudaChannelFormatDesc Channel Format Descriptor - {{endif}} - {{if True}} - reserved : list[unsigned int] - Reserved for future use - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaEglPlaneDesc_st _pvt_val cdef cyruntime.cudaEglPlaneDesc_st* _pvt_ptr - {{if True}} + cdef cudaChannelFormatDesc _channelDesc - {{endif}} -{{endif}} -{{if True}} + cdef class anon_union11: """ Attributes ---------- - {{if True}} + pArray : list[cudaArray_t] - {{endif}} - {{if True}} + + pPitch : list[cudaPitchedPtr] - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaEglFrame_st* _pvt_ptr -{{endif}} -{{if True}} cdef class cudaEglFrame_st: """ @@ -4189,48 +3945,47 @@ cdef class cudaEglFrame_st: Attributes ---------- - {{if True}} + frame : anon_union11 - {{endif}} - {{if True}} + + planeDesc : list[cudaEglPlaneDesc] CUDA EGL Plane Descriptor cudaEglPlaneDesc - {{endif}} - {{if True}} + + planeCount : unsigned int Number of planes - {{endif}} - {{if True}} + + frameType : cudaEglFrameType Array or Pitch - {{endif}} - {{if True}} + + eglColorFormat : cudaEglColorFormat CUDA EGL Color Format - {{endif}} + Methods ------- getPtr() Get memory address of class instance """ + cdef object _owner cdef cyruntime.cudaEglFrame_st* _val_ptr cdef cyruntime.cudaEglFrame_st* _pvt_ptr - {{if True}} + cdef anon_union11 _frame - {{endif}} -{{endif}} -{{if 'CUuuid' in found_types}} + cdef class CUuuid(CUuuid_st): """ Attributes ---------- - {{if 'CUuuid_st.bytes' in found_struct}} + bytes : bytes < CUDA definition of UUID - {{endif}} + Methods ------- @@ -4238,17 +3993,15 @@ cdef class CUuuid(CUuuid_st): Get memory address of class instance """ pass -{{endif}} -{{if 'cudaUUID_t' in found_types}} cdef class cudaUUID_t(CUuuid_st): """ Attributes ---------- - {{if 'CUuuid_st.bytes' in found_struct}} + bytes : bytes < CUDA definition of UUID - {{endif}} + Methods ------- @@ -4256,66 +4009,37 @@ cdef class cudaUUID_t(CUuuid_st): Get memory address of class instance """ pass -{{endif}} -{{if 'cudaIpcEventHandle_t' in found_types}} cdef class cudaIpcEventHandle_t(cudaIpcEventHandle_st): """ CUDA IPC event handle - Attributes - ---------- - {{if 'cudaIpcEventHandle_st.reserved' in found_struct}} - reserved : bytes - - {{endif}} - Methods ------- getPtr() Get memory address of class instance """ pass -{{endif}} -{{if 'cudaIpcMemHandle_t' in found_types}} cdef class cudaIpcMemHandle_t(cudaIpcMemHandle_st): """ CUDA IPC memory handle - Attributes - ---------- - {{if 'cudaIpcMemHandle_st.reserved' in found_struct}} - reserved : bytes - - {{endif}} - Methods ------- getPtr() Get memory address of class instance """ pass -{{endif}} -{{if 'cudaMemFabricHandle_t' in found_types}} cdef class cudaMemFabricHandle_t(cudaMemFabricHandle_st): """ - Attributes - ---------- - {{if 'cudaMemFabricHandle_st.reserved' in found_struct}} - reserved : bytes - - {{endif}} - Methods ------- getPtr() Get memory address of class instance """ pass -{{endif}} -{{if 'cudaGraphEdgeData' in found_types}} cdef class cudaGraphEdgeData(cudaGraphEdgeData_st): """ @@ -4326,7 +4050,7 @@ cdef class cudaGraphEdgeData(cudaGraphEdgeData_st): Attributes ---------- - {{if 'cudaGraphEdgeData_st.from_port' in found_struct}} + from_port : bytes This indicates when the dependency is triggered from the upstream node on the edge. The meaning is specfic to the node type. A value @@ -4337,8 +4061,8 @@ cdef class cudaGraphEdgeData(cudaGraphEdgeData_st): cudaGraphKernelNodePortDefault, cudaGraphKernelNodePortProgrammatic, or cudaGraphKernelNodePortLaunchCompletion. - {{endif}} - {{if 'cudaGraphEdgeData_st.to_port' in found_struct}} + + to_port : bytes This indicates what portion of the downstream node is dependent on the upstream node or portion thereof (indicated by `from_port`). @@ -4346,18 +4070,13 @@ cdef class cudaGraphEdgeData(cudaGraphEdgeData_st): means the entirety of the downstream node is dependent on the upstream work. Currently no node types define non-zero ports. Accordingly, this field must be set to zero. - {{endif}} - {{if 'cudaGraphEdgeData_st.type' in found_struct}} + + type : bytes This should be populated with a value from cudaGraphDependencyType. (It is typed as char due to compiler-specific layout of bitfields.) See cudaGraphDependencyType. - {{endif}} - {{if 'cudaGraphEdgeData_st.reserved' in found_struct}} - reserved : bytes - These bytes are unused and must be zeroed. This ensures - compatibility if additional fields are added in the future. - {{endif}} + Methods ------- @@ -4365,8 +4084,6 @@ cdef class cudaGraphEdgeData(cudaGraphEdgeData_st): Get memory address of class instance """ pass -{{endif}} -{{if 'cudaGraphInstantiateParams' in found_types}} cdef class cudaGraphInstantiateParams(cudaGraphInstantiateParams_st): """ @@ -4374,22 +4091,22 @@ cdef class cudaGraphInstantiateParams(cudaGraphInstantiateParams_st): Attributes ---------- - {{if 'cudaGraphInstantiateParams_st.flags' in found_struct}} + flags : unsigned long long Instantiation flags - {{endif}} - {{if 'cudaGraphInstantiateParams_st.uploadStream' in found_struct}} + + uploadStream : cudaStream_t Upload stream - {{endif}} - {{if 'cudaGraphInstantiateParams_st.errNode_out' in found_struct}} + + errNode_out : cudaGraphNode_t The node which caused instantiation to fail, if any - {{endif}} - {{if 'cudaGraphInstantiateParams_st.result_out' in found_struct}} + + result_out : cudaGraphInstantiateResult Whether instantiation was successful. If it failed, the reason why - {{endif}} + Methods ------- @@ -4397,8 +4114,6 @@ cdef class cudaGraphInstantiateParams(cudaGraphInstantiateParams_st): Get memory address of class instance """ pass -{{endif}} -{{if 'cudaGraphExecUpdateResultInfo' in found_types}} cdef class cudaGraphExecUpdateResultInfo(cudaGraphExecUpdateResultInfo_st): """ @@ -4406,21 +4121,21 @@ cdef class cudaGraphExecUpdateResultInfo(cudaGraphExecUpdateResultInfo_st): Attributes ---------- - {{if 'cudaGraphExecUpdateResultInfo_st.result' in found_struct}} + result : cudaGraphExecUpdateResult Gives more specific detail when a cuda graph update fails. - {{endif}} - {{if 'cudaGraphExecUpdateResultInfo_st.errorNode' in found_struct}} + + errorNode : cudaGraphNode_t The "to node" of the error edge when the topologies do not match. The error node when the error is associated with a specific node. NULL when the error is generic. - {{endif}} - {{if 'cudaGraphExecUpdateResultInfo_st.errorFromNode' in found_struct}} + + errorFromNode : cudaGraphNode_t The from node of error edge when the topologies do not match. Otherwise NULL. - {{endif}} + Methods ------- @@ -4428,8 +4143,6 @@ cdef class cudaGraphExecUpdateResultInfo(cudaGraphExecUpdateResultInfo_st): Get memory address of class instance """ pass -{{endif}} -{{if 'cudaLaunchMemSyncDomainMap' in found_types}} cdef class cudaLaunchMemSyncDomainMap(cudaLaunchMemSyncDomainMap_st): """ @@ -4443,14 +4156,14 @@ cdef class cudaLaunchMemSyncDomainMap(cudaLaunchMemSyncDomainMap_st): Attributes ---------- - {{if 'cudaLaunchMemSyncDomainMap_st.default_' in found_struct}} + default_ : bytes The default domain ID to use for designated kernels - {{endif}} - {{if 'cudaLaunchMemSyncDomainMap_st.remote' in found_struct}} + + remote : bytes The remote domain ID to use for designated kernels - {{endif}} + Methods ------- @@ -4458,8 +4171,6 @@ cdef class cudaLaunchMemSyncDomainMap(cudaLaunchMemSyncDomainMap_st): Get memory address of class instance """ pass -{{endif}} -{{if 'cudaLaunchAttribute' in found_types}} cdef class cudaLaunchAttribute(cudaLaunchAttribute_st): """ @@ -4467,14 +4178,14 @@ cdef class cudaLaunchAttribute(cudaLaunchAttribute_st): Attributes ---------- - {{if 'cudaLaunchAttribute_st.id' in found_struct}} + id : cudaLaunchAttributeID Attribute to set - {{endif}} - {{if 'cudaLaunchAttribute_st.val' in found_struct}} + + val : cudaLaunchAttributeValue Value of the attribute - {{endif}} + Methods ------- @@ -4482,8 +4193,6 @@ cdef class cudaLaunchAttribute(cudaLaunchAttribute_st): Get memory address of class instance """ pass -{{endif}} -{{if 'cudaAsyncNotificationInfo_t' in found_types}} cdef class cudaAsyncNotificationInfo_t(cudaAsyncNotificationInfo): """ @@ -4491,15 +4200,15 @@ cdef class cudaAsyncNotificationInfo_t(cudaAsyncNotificationInfo): Attributes ---------- - {{if 'cudaAsyncNotificationInfo.type' in found_struct}} + type : cudaAsyncNotificationType The type of notification being sent - {{endif}} - {{if 'cudaAsyncNotificationInfo.info' in found_struct}} + + info : anon_union10 Information about the notification. `typename` must be checked in order to interpret this field. - {{endif}} + Methods ------- @@ -4507,8 +4216,6 @@ cdef class cudaAsyncNotificationInfo_t(cudaAsyncNotificationInfo): Get memory address of class instance """ pass -{{endif}} -{{if True}} cdef class cudaStreamAttrValue(cudaLaunchAttributeValue): """ @@ -4516,25 +4223,25 @@ cdef class cudaStreamAttrValue(cudaLaunchAttributeValue): Attributes ---------- - {{if 'cudaLaunchAttributeValue.pad' in found_struct}} + pad : bytes - {{endif}} - {{if 'cudaLaunchAttributeValue.accessPolicyWindow' in found_struct}} + + accessPolicyWindow : cudaAccessPolicyWindow Value of launch attribute cudaLaunchAttributeAccessPolicyWindow. - {{endif}} - {{if 'cudaLaunchAttributeValue.cooperative' in found_struct}} + + cooperative : int Value of launch attribute cudaLaunchAttributeCooperative. Nonzero indicates a cooperative kernel (see cudaLaunchCooperativeKernel). - {{endif}} - {{if 'cudaLaunchAttributeValue.syncPolicy' in found_struct}} + + syncPolicy : cudaSynchronizationPolicy Value of launch attribute cudaLaunchAttributeSynchronizationPolicy. cudaSynchronizationPolicy for work queued up in this stream. - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim' in found_struct}} + + clusterDim : anon_struct22 Value of launch attribute cudaLaunchAttributeClusterDimension that represents the desired cluster dimensions for the kernel. Opaque @@ -4543,19 +4250,19 @@ cdef class cudaStreamAttrValue(cudaLaunchAttributeValue): `y` - The Y dimension of the cluster, in blocks. Must be a divisor of the grid Y dimension. - `z` - The Z dimension of the cluster, in blocks. Must be a divisor of the grid Z dimension. - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterSchedulingPolicyPreference' in found_struct}} + + clusterSchedulingPolicyPreference : cudaClusterSchedulingPolicy Value of launch attribute cudaLaunchAttributeClusterSchedulingPolicyPreference. Cluster scheduling policy preference for the kernel. - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticStreamSerializationAllowed' in found_struct}} + + programmaticStreamSerializationAllowed : int Value of launch attribute cudaLaunchAttributeProgrammaticStreamSerialization. - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent' in found_struct}} + + programmaticEvent : anon_struct23 Value of launch attribute cudaLaunchAttributeProgrammaticEvent with the following fields: - `cudaEvent_t` event - Event to fire when @@ -4563,23 +4270,23 @@ cdef class cudaStreamAttrValue(cudaLaunchAttributeValue): cudaEventRecordWithFlags. Does not accept cudaEventRecordExternal. - `int` triggerAtBlockStart - If this is set to non-0, each block launch will automatically trigger the event. - {{endif}} - {{if 'cudaLaunchAttributeValue.priority' in found_struct}} + + priority : int Value of launch attribute cudaLaunchAttributePriority. Execution priority of the kernel. - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomainMap' in found_struct}} + + memSyncDomainMap : cudaLaunchMemSyncDomainMap Value of launch attribute cudaLaunchAttributeMemSyncDomainMap. See cudaLaunchMemSyncDomainMap. - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomain' in found_struct}} + + memSyncDomain : cudaLaunchMemSyncDomain Value of launch attribute cudaLaunchAttributeMemSyncDomain. See cudaLaunchMemSyncDomain. - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim' in found_struct}} + + preferredClusterDim : anon_struct24 Value of launch attribute cudaLaunchAttributePreferredClusterDimension that represents the @@ -4587,22 +4294,22 @@ cdef class cudaStreamAttrValue(cudaLaunchAttributeValue): with the following fields: - `x` - The X dimension of the preferred cluster, in blocks. Must be a divisor of the grid X dimension, and must be a multiple of the `x` field of - ::cudaLaunchAttributeValue::clusterDim. - `y` - The Y dimension - of the preferred cluster, in blocks. Must be a divisor of the grid - Y dimension, and must be a multiple of the `y` field of - ::cudaLaunchAttributeValue::clusterDim. - `z` - The Z dimension - of the preferred cluster, in blocks. Must be equal to the `z` field - of ::cudaLaunchAttributeValue::clusterDim. - {{endif}} - {{if 'cudaLaunchAttributeValue.launchCompletionEvent' in found_struct}} + cudaLaunchAttributeValue::clusterDim. - `y` - The Y dimension of + the preferred cluster, in blocks. Must be a divisor of the grid Y + dimension, and must be a multiple of the `y` field of + cudaLaunchAttributeValue::clusterDim. - `z` - The Z dimension of + the preferred cluster, in blocks. Must be equal to the `z` field of + cudaLaunchAttributeValue::clusterDim. + + launchCompletionEvent : anon_struct25 Value of launch attribute cudaLaunchAttributeLaunchCompletionEvent with the following fields: - `cudaEvent_t` event - Event to fire when the last block launches. - `int` flags - Event record flags, see cudaEventRecordWithFlags. Does not accept cudaEventRecordExternal. - {{endif}} - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode' in found_struct}} + + deviceUpdatableKernelNode : anon_struct26 Value of launch attribute cudaLaunchAttributeDeviceUpdatableKernelNode with the following @@ -4610,12 +4317,12 @@ cdef class cudaStreamAttrValue(cudaLaunchAttributeValue): kernel node should be device-updatable. - `cudaGraphDeviceNode_t` devNode - Returns a handle to pass to the various device-side update functions. - {{endif}} - {{if 'cudaLaunchAttributeValue.sharedMemCarveout' in found_struct}} + + sharedMemCarveout : unsigned int Value of launch attribute cudaLaunchAttributePreferredSharedMemoryCarveout. - {{endif}} + Methods ------- @@ -4623,8 +4330,6 @@ cdef class cudaStreamAttrValue(cudaLaunchAttributeValue): Get memory address of class instance """ pass -{{endif}} -{{if True}} cdef class cudaKernelNodeAttrValue(cudaLaunchAttributeValue): """ @@ -4632,25 +4337,25 @@ cdef class cudaKernelNodeAttrValue(cudaLaunchAttributeValue): Attributes ---------- - {{if 'cudaLaunchAttributeValue.pad' in found_struct}} + pad : bytes - {{endif}} - {{if 'cudaLaunchAttributeValue.accessPolicyWindow' in found_struct}} + + accessPolicyWindow : cudaAccessPolicyWindow Value of launch attribute cudaLaunchAttributeAccessPolicyWindow. - {{endif}} - {{if 'cudaLaunchAttributeValue.cooperative' in found_struct}} + + cooperative : int Value of launch attribute cudaLaunchAttributeCooperative. Nonzero indicates a cooperative kernel (see cudaLaunchCooperativeKernel). - {{endif}} - {{if 'cudaLaunchAttributeValue.syncPolicy' in found_struct}} + + syncPolicy : cudaSynchronizationPolicy Value of launch attribute cudaLaunchAttributeSynchronizationPolicy. cudaSynchronizationPolicy for work queued up in this stream. - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim' in found_struct}} + + clusterDim : anon_struct22 Value of launch attribute cudaLaunchAttributeClusterDimension that represents the desired cluster dimensions for the kernel. Opaque @@ -4659,19 +4364,19 @@ cdef class cudaKernelNodeAttrValue(cudaLaunchAttributeValue): `y` - The Y dimension of the cluster, in blocks. Must be a divisor of the grid Y dimension. - `z` - The Z dimension of the cluster, in blocks. Must be a divisor of the grid Z dimension. - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterSchedulingPolicyPreference' in found_struct}} + + clusterSchedulingPolicyPreference : cudaClusterSchedulingPolicy Value of launch attribute cudaLaunchAttributeClusterSchedulingPolicyPreference. Cluster scheduling policy preference for the kernel. - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticStreamSerializationAllowed' in found_struct}} + + programmaticStreamSerializationAllowed : int Value of launch attribute cudaLaunchAttributeProgrammaticStreamSerialization. - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent' in found_struct}} + + programmaticEvent : anon_struct23 Value of launch attribute cudaLaunchAttributeProgrammaticEvent with the following fields: - `cudaEvent_t` event - Event to fire when @@ -4679,23 +4384,23 @@ cdef class cudaKernelNodeAttrValue(cudaLaunchAttributeValue): cudaEventRecordWithFlags. Does not accept cudaEventRecordExternal. - `int` triggerAtBlockStart - If this is set to non-0, each block launch will automatically trigger the event. - {{endif}} - {{if 'cudaLaunchAttributeValue.priority' in found_struct}} + + priority : int Value of launch attribute cudaLaunchAttributePriority. Execution priority of the kernel. - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomainMap' in found_struct}} + + memSyncDomainMap : cudaLaunchMemSyncDomainMap Value of launch attribute cudaLaunchAttributeMemSyncDomainMap. See cudaLaunchMemSyncDomainMap. - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomain' in found_struct}} + + memSyncDomain : cudaLaunchMemSyncDomain Value of launch attribute cudaLaunchAttributeMemSyncDomain. See cudaLaunchMemSyncDomain. - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim' in found_struct}} + + preferredClusterDim : anon_struct24 Value of launch attribute cudaLaunchAttributePreferredClusterDimension that represents the @@ -4703,22 +4408,22 @@ cdef class cudaKernelNodeAttrValue(cudaLaunchAttributeValue): with the following fields: - `x` - The X dimension of the preferred cluster, in blocks. Must be a divisor of the grid X dimension, and must be a multiple of the `x` field of - ::cudaLaunchAttributeValue::clusterDim. - `y` - The Y dimension - of the preferred cluster, in blocks. Must be a divisor of the grid - Y dimension, and must be a multiple of the `y` field of - ::cudaLaunchAttributeValue::clusterDim. - `z` - The Z dimension - of the preferred cluster, in blocks. Must be equal to the `z` field - of ::cudaLaunchAttributeValue::clusterDim. - {{endif}} - {{if 'cudaLaunchAttributeValue.launchCompletionEvent' in found_struct}} + cudaLaunchAttributeValue::clusterDim. - `y` - The Y dimension of + the preferred cluster, in blocks. Must be a divisor of the grid Y + dimension, and must be a multiple of the `y` field of + cudaLaunchAttributeValue::clusterDim. - `z` - The Z dimension of + the preferred cluster, in blocks. Must be equal to the `z` field of + cudaLaunchAttributeValue::clusterDim. + + launchCompletionEvent : anon_struct25 Value of launch attribute cudaLaunchAttributeLaunchCompletionEvent with the following fields: - `cudaEvent_t` event - Event to fire when the last block launches. - `int` flags - Event record flags, see cudaEventRecordWithFlags. Does not accept cudaEventRecordExternal. - {{endif}} - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode' in found_struct}} + + deviceUpdatableKernelNode : anon_struct26 Value of launch attribute cudaLaunchAttributeDeviceUpdatableKernelNode with the following @@ -4726,12 +4431,12 @@ cdef class cudaKernelNodeAttrValue(cudaLaunchAttributeValue): kernel node should be device-updatable. - `cudaGraphDeviceNode_t` devNode - Returns a handle to pass to the various device-side update functions. - {{endif}} - {{if 'cudaLaunchAttributeValue.sharedMemCarveout' in found_struct}} + + sharedMemCarveout : unsigned int Value of launch attribute cudaLaunchAttributePreferredSharedMemoryCarveout. - {{endif}} + Methods ------- @@ -4739,8 +4444,6 @@ cdef class cudaKernelNodeAttrValue(cudaLaunchAttributeValue): Get memory address of class instance """ pass -{{endif}} -{{if True}} cdef class cudaEglPlaneDesc(cudaEglPlaneDesc_st): """ @@ -4749,34 +4452,30 @@ cdef class cudaEglPlaneDesc(cudaEglPlaneDesc_st): Attributes ---------- - {{if True}} + width : unsigned int Width of plane - {{endif}} - {{if True}} + + height : unsigned int Height of plane - {{endif}} - {{if True}} + + depth : unsigned int Depth of plane - {{endif}} - {{if True}} + + pitch : unsigned int Pitch of plane - {{endif}} - {{if True}} + + numChannels : unsigned int Number of channels for the plane - {{endif}} - {{if True}} + + channelDesc : cudaChannelFormatDesc Channel Format Descriptor - {{endif}} - {{if True}} - reserved : list[unsigned int] - Reserved for future use - {{endif}} + Methods ------- @@ -4784,8 +4483,6 @@ cdef class cudaEglPlaneDesc(cudaEglPlaneDesc_st): Get memory address of class instance """ pass -{{endif}} -{{if True}} cdef class cudaEglFrame(cudaEglFrame_st): """ @@ -4800,26 +4497,26 @@ cdef class cudaEglFrame(cudaEglFrame_st): Attributes ---------- - {{if True}} + frame : anon_union11 - {{endif}} - {{if True}} + + planeDesc : list[cudaEglPlaneDesc] CUDA EGL Plane Descriptor cudaEglPlaneDesc - {{endif}} - {{if True}} + + planeCount : unsigned int Number of planes - {{endif}} - {{if True}} + + frameType : cudaEglFrameType Array or Pitch - {{endif}} - {{if True}} + + eglColorFormat : cudaEglColorFormat CUDA EGL Color Format - {{endif}} + Methods ------- @@ -4827,8 +4524,6 @@ cdef class cudaEglFrame(cudaEglFrame_st): Get memory address of class instance """ pass -{{endif}} -{{if 'cudaStream_t' in found_types}} cdef class cudaStream_t(driver.CUstream): """ @@ -4842,9 +4537,6 @@ cdef class cudaStream_t(driver.CUstream): """ pass -{{endif}} - -{{if 'cudaEvent_t' in found_types}} cdef class cudaEvent_t(driver.CUevent): """ @@ -4858,9 +4550,6 @@ cdef class cudaEvent_t(driver.CUevent): """ pass -{{endif}} - -{{if 'cudaGraph_t' in found_types}} cdef class cudaGraph_t(driver.CUgraph): """ @@ -4874,9 +4563,6 @@ cdef class cudaGraph_t(driver.CUgraph): """ pass -{{endif}} - -{{if 'cudaGraphNode_t' in found_types}} cdef class cudaGraphNode_t(driver.CUgraphNode): """ @@ -4890,9 +4576,6 @@ cdef class cudaGraphNode_t(driver.CUgraphNode): """ pass -{{endif}} - -{{if 'cudaUserObject_t' in found_types}} cdef class cudaUserObject_t(driver.CUuserObject): """ @@ -4906,9 +4589,6 @@ cdef class cudaUserObject_t(driver.CUuserObject): """ pass -{{endif}} - -{{if 'cudaFunction_t' in found_types}} cdef class cudaFunction_t(driver.CUfunction): """ @@ -4922,9 +4602,6 @@ cdef class cudaFunction_t(driver.CUfunction): """ pass -{{endif}} - -{{if 'cudaMemPool_t' in found_types}} cdef class cudaMemPool_t(driver.CUmemoryPool): """ @@ -4938,9 +4615,6 @@ cdef class cudaMemPool_t(driver.CUmemoryPool): """ pass -{{endif}} - -{{if 'cudaGraphExec_t' in found_types}} cdef class cudaGraphExec_t(driver.CUgraphExec): """ @@ -4954,9 +4628,6 @@ cdef class cudaGraphExec_t(driver.CUgraphExec): """ pass -{{endif}} - -{{if True}} cdef class cudaEglStreamConnection(driver.CUeglStreamConnection): """ @@ -4970,9 +4641,6 @@ cdef class cudaEglStreamConnection(driver.CUeglStreamConnection): """ pass -{{endif}} - -{{if 'cudaGraphConditionalHandle' in found_types}} cdef class cudaGraphConditionalHandle: """ @@ -4987,9 +4655,6 @@ cdef class cudaGraphConditionalHandle: """ cdef cyruntime.cudaGraphConditionalHandle _pvt_val cdef cyruntime.cudaGraphConditionalHandle* _pvt_ptr -{{endif}} - -{{if 'cudaSurfaceObject_t' in found_types}} cdef class cudaSurfaceObject_t: """ @@ -5004,9 +4669,6 @@ cdef class cudaSurfaceObject_t: """ cdef cyruntime.cudaSurfaceObject_t _pvt_val cdef cyruntime.cudaSurfaceObject_t* _pvt_ptr -{{endif}} - -{{if 'cudaTextureObject_t' in found_types}} cdef class cudaTextureObject_t: """ @@ -5021,9 +4683,6 @@ cdef class cudaTextureObject_t: """ cdef cyruntime.cudaTextureObject_t _pvt_val cdef cyruntime.cudaTextureObject_t* _pvt_ptr -{{endif}} - -{{if True}} cdef class GLenum: """ @@ -5036,9 +4695,6 @@ cdef class GLenum: """ cdef cyruntime.GLenum _pvt_val cdef cyruntime.GLenum* _pvt_ptr -{{endif}} - -{{if True}} cdef class GLuint: """ @@ -5051,9 +4707,6 @@ cdef class GLuint: """ cdef cyruntime.GLuint _pvt_val cdef cyruntime.GLuint* _pvt_ptr -{{endif}} - -{{if True}} cdef class EGLint: """ @@ -5066,9 +4719,6 @@ cdef class EGLint: """ cdef cyruntime.EGLint _pvt_val cdef cyruntime.EGLint* _pvt_ptr -{{endif}} - -{{if True}} cdef class VdpDevice: """ @@ -5081,9 +4731,6 @@ cdef class VdpDevice: """ cdef cyruntime.VdpDevice _pvt_val cdef cyruntime.VdpDevice* _pvt_ptr -{{endif}} - -{{if True}} cdef class VdpGetProcAddress: """ @@ -5096,9 +4743,6 @@ cdef class VdpGetProcAddress: """ cdef cyruntime.VdpGetProcAddress _pvt_val cdef cyruntime.VdpGetProcAddress* _pvt_ptr -{{endif}} - -{{if True}} cdef class VdpVideoSurface: """ @@ -5111,9 +4755,6 @@ cdef class VdpVideoSurface: """ cdef cyruntime.VdpVideoSurface _pvt_val cdef cyruntime.VdpVideoSurface* _pvt_ptr -{{endif}} - -{{if True}} cdef class VdpOutputSurface: """ @@ -5126,4 +4767,3 @@ cdef class VdpOutputSurface: """ cdef cyruntime.VdpOutputSurface _pvt_val cdef cyruntime.VdpOutputSurface* _pvt_ptr -{{endif}} diff --git a/cuda_bindings_12/cuda/bindings/runtime.pyx.in b/cuda_bindings_12/cuda/bindings/runtime.pyx similarity index 85% rename from cuda_bindings_12/cuda/bindings/runtime.pyx.in rename to cuda_bindings_12/cuda/bindings/runtime.pyx index 284e5f91e13a..65463e6cecef 100644 --- a/cuda_bindings_12/cuda/bindings/runtime.pyx.in +++ b/cuda_bindings_12/cuda/bindings/runtime.pyx @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # This code was automatically generated with version 12.9.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=e8e09d2b9dc5c50f5e7a6d85f94bd57c0c0776668393328be79deebdefce1c11 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=756f2405020fb6cc7847ccf6966b5246e1b1d6a247d0e34a64428f069dc3f603 from typing import Any, Optional import cython import ctypes @@ -349,76 +349,74 @@ __CUDART_API_VERSION = cyruntime.__CUDART_API_VERSION #: Maximum number of planes per frame CUDA_EGL_MAX_PLANES = cyruntime.CUDA_EGL_MAX_PLANES -{{if 'cudaError' in found_types}} - class cudaError_t(_FastEnum): """ impl_private CUDA error types """ - {{if 'cudaSuccess' in found_values}} + cudaSuccess = ( cyruntime.cudaError.cudaSuccess, 'The API call returned with no errors. In the case of query calls, this also\n' 'means that the operation being queried is complete (see\n' ':py:obj:`~.cudaEventQuery()` and :py:obj:`~.cudaStreamQuery()`).\n' - ){{endif}} - {{if 'cudaErrorInvalidValue' in found_values}} + ) + cudaErrorInvalidValue = ( cyruntime.cudaError.cudaErrorInvalidValue, 'This indicates that one or more of the parameters passed to the API call is\n' 'not within an acceptable range of values.\n' - ){{endif}} - {{if 'cudaErrorMemoryAllocation' in found_values}} + ) + cudaErrorMemoryAllocation = ( cyruntime.cudaError.cudaErrorMemoryAllocation, 'The API call failed because it was unable to allocate enough memory or\n' 'other resources to perform the requested operation.\n' - ){{endif}} - {{if 'cudaErrorInitializationError' in found_values}} + ) + cudaErrorInitializationError = ( cyruntime.cudaError.cudaErrorInitializationError, 'The API call failed because the CUDA driver and runtime could not be\n' 'initialized.\n' - ){{endif}} - {{if 'cudaErrorCudartUnloading' in found_values}} + ) + cudaErrorCudartUnloading = ( cyruntime.cudaError.cudaErrorCudartUnloading, 'This indicates that a CUDA Runtime API call cannot be executed because it\n' 'is being called during process shut down, at a point in time after CUDA\n' 'driver has been unloaded.\n' - ){{endif}} - {{if 'cudaErrorProfilerDisabled' in found_values}} + ) + cudaErrorProfilerDisabled = ( cyruntime.cudaError.cudaErrorProfilerDisabled, 'This indicates profiler is not initialized for this run. This can happen\n' 'when the application is running with external profiling tools like visual\n' 'profiler.\n' - ){{endif}} - {{if 'cudaErrorProfilerNotInitialized' in found_values}} + ) + cudaErrorProfilerNotInitialized = ( cyruntime.cudaError.cudaErrorProfilerNotInitialized, '[Deprecated]\n' - ){{endif}} - {{if 'cudaErrorProfilerAlreadyStarted' in found_values}} + ) + cudaErrorProfilerAlreadyStarted = ( cyruntime.cudaError.cudaErrorProfilerAlreadyStarted, '[Deprecated]\n' - ){{endif}} - {{if 'cudaErrorProfilerAlreadyStopped' in found_values}} + ) + cudaErrorProfilerAlreadyStopped = ( cyruntime.cudaError.cudaErrorProfilerAlreadyStopped, '[Deprecated]\n' - ){{endif}} - {{if 'cudaErrorInvalidConfiguration' in found_values}} + ) + cudaErrorInvalidConfiguration = ( cyruntime.cudaError.cudaErrorInvalidConfiguration, @@ -427,188 +425,188 @@ class cudaError_t(_FastEnum): 'than the device supports will trigger this error, as will requesting too\n' 'many threads or blocks. See :py:obj:`~.cudaDeviceProp` for more device\n' 'limitations.\n' - ){{endif}} - {{if 'cudaErrorInvalidPitchValue' in found_values}} + ) + cudaErrorInvalidPitchValue = ( cyruntime.cudaError.cudaErrorInvalidPitchValue, 'This indicates that one or more of the pitch-related parameters passed to\n' 'the API call is not within the acceptable range for pitch.\n' - ){{endif}} - {{if 'cudaErrorInvalidSymbol' in found_values}} + ) + cudaErrorInvalidSymbol = ( cyruntime.cudaError.cudaErrorInvalidSymbol, 'This indicates that the symbol name/identifier passed to the API call is\n' 'not a valid name or identifier.\n' - ){{endif}} - {{if 'cudaErrorInvalidHostPointer' in found_values}} + ) + cudaErrorInvalidHostPointer = ( cyruntime.cudaError.cudaErrorInvalidHostPointer, 'This indicates that at least one host pointer passed to the API call is not\n' 'a valid host pointer.\n' '[Deprecated]\n' - ){{endif}} - {{if 'cudaErrorInvalidDevicePointer' in found_values}} + ) + cudaErrorInvalidDevicePointer = ( cyruntime.cudaError.cudaErrorInvalidDevicePointer, 'This indicates that at least one device pointer passed to the API call is\n' 'not a valid device pointer.\n' '[Deprecated]\n' - ){{endif}} - {{if 'cudaErrorInvalidTexture' in found_values}} + ) + cudaErrorInvalidTexture = ( cyruntime.cudaError.cudaErrorInvalidTexture, 'This indicates that the texture passed to the API call is not a valid\n' 'texture.\n' - ){{endif}} - {{if 'cudaErrorInvalidTextureBinding' in found_values}} + ) + cudaErrorInvalidTextureBinding = ( cyruntime.cudaError.cudaErrorInvalidTextureBinding, 'This indicates that the texture binding is not valid. This occurs if you\n' 'call :py:obj:`~.cudaGetTextureAlignmentOffset()` with an unbound texture.\n' - ){{endif}} - {{if 'cudaErrorInvalidChannelDescriptor' in found_values}} + ) + cudaErrorInvalidChannelDescriptor = ( cyruntime.cudaError.cudaErrorInvalidChannelDescriptor, 'This indicates that the channel descriptor passed to the API call is not\n' 'valid. This occurs if the format is not one of the formats specified by\n' ':py:obj:`~.cudaChannelFormatKind`, or if one of the dimensions is invalid.\n' - ){{endif}} - {{if 'cudaErrorInvalidMemcpyDirection' in found_values}} + ) + cudaErrorInvalidMemcpyDirection = ( cyruntime.cudaError.cudaErrorInvalidMemcpyDirection, 'This indicates that the direction of the memcpy passed to the API call is\n' 'not one of the types specified by :py:obj:`~.cudaMemcpyKind`.\n' - ){{endif}} - {{if 'cudaErrorAddressOfConstant' in found_values}} + ) + cudaErrorAddressOfConstant = ( cyruntime.cudaError.cudaErrorAddressOfConstant, 'This indicated that the user has taken the address of a constant variable,\n' 'which was forbidden up until the CUDA 3.1 release.\n' '[Deprecated]\n' - ){{endif}} - {{if 'cudaErrorTextureFetchFailed' in found_values}} + ) + cudaErrorTextureFetchFailed = ( cyruntime.cudaError.cudaErrorTextureFetchFailed, 'This indicated that a texture fetch was not able to be performed. This was\n' 'previously used for device emulation of texture operations.\n' '[Deprecated]\n' - ){{endif}} - {{if 'cudaErrorTextureNotBound' in found_values}} + ) + cudaErrorTextureNotBound = ( cyruntime.cudaError.cudaErrorTextureNotBound, 'This indicated that a texture was not bound for access. This was previously\n' 'used for device emulation of texture operations.\n' '[Deprecated]\n' - ){{endif}} - {{if 'cudaErrorSynchronizationError' in found_values}} + ) + cudaErrorSynchronizationError = ( cyruntime.cudaError.cudaErrorSynchronizationError, 'This indicated that a synchronization operation had failed. This was\n' 'previously used for some device emulation functions.\n' '[Deprecated]\n' - ){{endif}} - {{if 'cudaErrorInvalidFilterSetting' in found_values}} + ) + cudaErrorInvalidFilterSetting = ( cyruntime.cudaError.cudaErrorInvalidFilterSetting, 'This indicates that a non-float texture was being accessed with linear\n' 'filtering. This is not supported by CUDA.\n' - ){{endif}} - {{if 'cudaErrorInvalidNormSetting' in found_values}} + ) + cudaErrorInvalidNormSetting = ( cyruntime.cudaError.cudaErrorInvalidNormSetting, 'This indicates that an attempt was made to read an unsupported data type as\n' 'a normalized float. This is not supported by CUDA.\n' - ){{endif}} - {{if 'cudaErrorMixedDeviceExecution' in found_values}} + ) + cudaErrorMixedDeviceExecution = ( cyruntime.cudaError.cudaErrorMixedDeviceExecution, 'Mixing of device and device emulation code was not allowed.\n' '[Deprecated]\n' - ){{endif}} - {{if 'cudaErrorNotYetImplemented' in found_values}} + ) + cudaErrorNotYetImplemented = ( cyruntime.cudaError.cudaErrorNotYetImplemented, 'This indicates that the API call is not yet implemented. Production\n' 'releases of CUDA will never return this error.\n' '[Deprecated]\n' - ){{endif}} - {{if 'cudaErrorMemoryValueTooLarge' in found_values}} + ) + cudaErrorMemoryValueTooLarge = ( cyruntime.cudaError.cudaErrorMemoryValueTooLarge, 'This indicated that an emulated device pointer exceeded the 32-bit address\n' 'range.\n' '[Deprecated]\n' - ){{endif}} - {{if 'cudaErrorStubLibrary' in found_values}} + ) + cudaErrorStubLibrary = ( cyruntime.cudaError.cudaErrorStubLibrary, 'This indicates that the CUDA driver that the application has loaded is a\n' 'stub library. Applications that run with the stub rather than a real driver\n' 'loaded will result in CUDA API returning this error.\n' - ){{endif}} - {{if 'cudaErrorInsufficientDriver' in found_values}} + ) + cudaErrorInsufficientDriver = ( cyruntime.cudaError.cudaErrorInsufficientDriver, 'This indicates that the installed NVIDIA CUDA driver is older than the CUDA\n' 'runtime library. This is not a supported configuration. Users should\n' 'install an updated NVIDIA display driver to allow the application to run.\n' - ){{endif}} - {{if 'cudaErrorCallRequiresNewerDriver' in found_values}} + ) + cudaErrorCallRequiresNewerDriver = ( cyruntime.cudaError.cudaErrorCallRequiresNewerDriver, 'This indicates that the API call requires a newer CUDA driver than the one\n' 'currently installed. Users should install an updated NVIDIA CUDA driver to\n' 'allow the API call to succeed.\n' - ){{endif}} - {{if 'cudaErrorInvalidSurface' in found_values}} + ) + cudaErrorInvalidSurface = ( cyruntime.cudaError.cudaErrorInvalidSurface, 'This indicates that the surface passed to the API call is not a valid\n' 'surface.\n' - ){{endif}} - {{if 'cudaErrorDuplicateVariableName' in found_values}} + ) + cudaErrorDuplicateVariableName = ( cyruntime.cudaError.cudaErrorDuplicateVariableName, 'This indicates that multiple global or constant variables (across separate\n' 'CUDA source files in the application) share the same string name.\n' - ){{endif}} - {{if 'cudaErrorDuplicateTextureName' in found_values}} + ) + cudaErrorDuplicateTextureName = ( cyruntime.cudaError.cudaErrorDuplicateTextureName, 'This indicates that multiple textures (across separate CUDA source files in\n' 'the application) share the same string name.\n' - ){{endif}} - {{if 'cudaErrorDuplicateSurfaceName' in found_values}} + ) + cudaErrorDuplicateSurfaceName = ( cyruntime.cudaError.cudaErrorDuplicateSurfaceName, 'This indicates that multiple surfaces (across separate CUDA source files in\n' 'the application) share the same string name.\n' - ){{endif}} - {{if 'cudaErrorDevicesUnavailable' in found_values}} + ) + cudaErrorDevicesUnavailable = ( cyruntime.cudaError.cudaErrorDevicesUnavailable, @@ -619,8 +617,8 @@ class cudaError_t(_FastEnum): 'kernels have filled up the GPU and are blocking new work from starting.\n' 'They can also be unavailable due to memory constraints on a device that\n' 'already has active CUDA work being performed.\n' - ){{endif}} - {{if 'cudaErrorIncompatibleDriverContext' in found_values}} + ) + cudaErrorIncompatibleDriverContext = ( cyruntime.cudaError.cudaErrorIncompatibleDriverContext, @@ -632,32 +630,32 @@ class cudaError_t(_FastEnum): 'Runtime API call expects a primary driver context and the Driver context is\n' 'not primary, or because the Driver context has been destroyed. Please see\n' ':py:obj:`~.Interactions with the CUDA Driver API` for more information.\n' - ){{endif}} - {{if 'cudaErrorMissingConfiguration' in found_values}} + ) + cudaErrorMissingConfiguration = ( cyruntime.cudaError.cudaErrorMissingConfiguration, 'The device function being invoked (usually via\n' ':py:obj:`~.cudaLaunchKernel()`) was not previously configured via the\n' ':py:obj:`~.cudaConfigureCall()` function.\n' - ){{endif}} - {{if 'cudaErrorPriorLaunchFailure' in found_values}} + ) + cudaErrorPriorLaunchFailure = ( cyruntime.cudaError.cudaErrorPriorLaunchFailure, 'This indicated that a previous kernel launch failed. This was previously\n' 'used for device emulation of kernel launches.\n' '[Deprecated]\n' - ){{endif}} - {{if 'cudaErrorLaunchMaxDepthExceeded' in found_values}} + ) + cudaErrorLaunchMaxDepthExceeded = ( cyruntime.cudaError.cudaErrorLaunchMaxDepthExceeded, 'This error indicates that a device runtime grid launch did not occur\n' 'because the depth of the child grid would exceed the maximum supported\n' 'number of nested grid launches.\n' - ){{endif}} - {{if 'cudaErrorLaunchFileScopedTex' in found_values}} + ) + cudaErrorLaunchFileScopedTex = ( cyruntime.cudaError.cudaErrorLaunchFileScopedTex, @@ -665,8 +663,8 @@ class cudaError_t(_FastEnum): 'uses file-scoped textures which are unsupported by the device runtime.\n' 'Kernels launched via the device runtime only support textures created with\n' "the Texture Object API's.\n" - ){{endif}} - {{if 'cudaErrorLaunchFileScopedSurf' in found_values}} + ) + cudaErrorLaunchFileScopedSurf = ( cyruntime.cudaError.cudaErrorLaunchFileScopedSurf, @@ -674,8 +672,8 @@ class cudaError_t(_FastEnum): 'uses file-scoped surfaces which are unsupported by the device runtime.\n' 'Kernels launched via the device runtime only support surfaces created with\n' "the Surface Object API's.\n" - ){{endif}} - {{if 'cudaErrorSyncDepthExceeded' in found_values}} + ) + cudaErrorSyncDepthExceeded = ( cyruntime.cudaError.cudaErrorSyncDepthExceeded, @@ -692,8 +690,8 @@ class cudaError_t(_FastEnum): 'be used for user allocations. Note that :py:obj:`~.cudaDeviceSynchronize`\n' 'made from device runtime is only supported on devices of compute capability\n' '< 9.0.\n' - ){{endif}} - {{if 'cudaErrorLaunchPendingCountExceeded' in found_values}} + ) + cudaErrorLaunchPendingCountExceeded = ( cyruntime.cudaError.cudaErrorLaunchPendingCountExceeded, @@ -706,36 +704,36 @@ class cudaError_t(_FastEnum): 'runtime. Keep in mind that raising the limit of pending device runtime\n' 'launches will require the runtime to reserve device memory that cannot be\n' 'used for user allocations.\n' - ){{endif}} - {{if 'cudaErrorInvalidDeviceFunction' in found_values}} + ) + cudaErrorInvalidDeviceFunction = ( cyruntime.cudaError.cudaErrorInvalidDeviceFunction, 'The requested device function does not exist or is not compiled for the\n' 'proper device architecture.\n' - ){{endif}} - {{if 'cudaErrorNoDevice' in found_values}} + ) + cudaErrorNoDevice = ( cyruntime.cudaError.cudaErrorNoDevice, 'This indicates that no CUDA-capable devices were detected by the installed\n' 'CUDA driver.\n' - ){{endif}} - {{if 'cudaErrorInvalidDevice' in found_values}} + ) + cudaErrorInvalidDevice = ( cyruntime.cudaError.cudaErrorInvalidDevice, 'This indicates that the device ordinal supplied by the user does not\n' 'correspond to a valid CUDA device or that the action requested is invalid\n' 'for the specified device.\n' - ){{endif}} - {{if 'cudaErrorDeviceNotLicensed' in found_values}} + ) + cudaErrorDeviceNotLicensed = ( cyruntime.cudaError.cudaErrorDeviceNotLicensed, "This indicates that the device doesn't have a valid Grid License.\n" - ){{endif}} - {{if 'cudaErrorSoftwareValidityNotEstablished' in found_values}} + ) + cudaErrorSoftwareValidityNotEstablished = ( cyruntime.cudaError.cudaErrorSoftwareValidityNotEstablished, @@ -744,20 +742,20 @@ class cudaError_t(_FastEnum): 'CUDA 11.2, this error return indicates that at least one of these tests has\n' 'failed and the validity of either the runtime or the driver could not be\n' 'established.\n' - ){{endif}} - {{if 'cudaErrorStartupFailure' in found_values}} + ) + cudaErrorStartupFailure = ( cyruntime.cudaError.cudaErrorStartupFailure, 'This indicates an internal startup failure in the CUDA runtime.\n' - ){{endif}} - {{if 'cudaErrorInvalidKernelImage' in found_values}} + ) + cudaErrorInvalidKernelImage = ( cyruntime.cudaError.cudaErrorInvalidKernelImage, 'This indicates that the device kernel image is invalid.\n' - ){{endif}} - {{if 'cudaErrorDeviceUninitialized' in found_values}} + ) + cudaErrorDeviceUninitialized = ( cyruntime.cudaError.cudaErrorDeviceUninitialized, @@ -767,33 +765,33 @@ class cudaError_t(_FastEnum): ':py:obj:`~.cuCtxDestroy()` invoked on it). This can also be returned if a\n' 'user mixes different API versions (i.e. 3010 context with 3020 API calls).\n' 'See :py:obj:`~.cuCtxGetApiVersion()` for more details.\n' - ){{endif}} - {{if 'cudaErrorMapBufferObjectFailed' in found_values}} + ) + cudaErrorMapBufferObjectFailed = ( cyruntime.cudaError.cudaErrorMapBufferObjectFailed, 'This indicates that the buffer object could not be mapped.\n' - ){{endif}} - {{if 'cudaErrorUnmapBufferObjectFailed' in found_values}} + ) + cudaErrorUnmapBufferObjectFailed = ( cyruntime.cudaError.cudaErrorUnmapBufferObjectFailed, 'This indicates that the buffer object could not be unmapped.\n' - ){{endif}} - {{if 'cudaErrorArrayIsMapped' in found_values}} + ) + cudaErrorArrayIsMapped = ( cyruntime.cudaError.cudaErrorArrayIsMapped, 'This indicates that the specified array is currently mapped and thus cannot\n' 'be destroyed.\n' - ){{endif}} - {{if 'cudaErrorAlreadyMapped' in found_values}} + ) + cudaErrorAlreadyMapped = ( cyruntime.cudaError.cudaErrorAlreadyMapped, 'This indicates that the resource is already mapped.\n' - ){{endif}} - {{if 'cudaErrorNoKernelImageForDevice' in found_values}} + ) + cudaErrorNoKernelImageForDevice = ( cyruntime.cudaError.cudaErrorNoKernelImageForDevice, @@ -801,82 +799,82 @@ class cudaError_t(_FastEnum): 'the device. This can occur when a user specifies code generation options\n' 'for a particular CUDA source file that do not include the corresponding\n' 'device configuration.\n' - ){{endif}} - {{if 'cudaErrorAlreadyAcquired' in found_values}} + ) + cudaErrorAlreadyAcquired = ( cyruntime.cudaError.cudaErrorAlreadyAcquired, 'This indicates that a resource has already been acquired.\n' - ){{endif}} - {{if 'cudaErrorNotMapped' in found_values}} + ) + cudaErrorNotMapped = ( cyruntime.cudaError.cudaErrorNotMapped, 'This indicates that a resource is not mapped.\n' - ){{endif}} - {{if 'cudaErrorNotMappedAsArray' in found_values}} + ) + cudaErrorNotMappedAsArray = ( cyruntime.cudaError.cudaErrorNotMappedAsArray, 'This indicates that a mapped resource is not available for access as an\n' 'array.\n' - ){{endif}} - {{if 'cudaErrorNotMappedAsPointer' in found_values}} + ) + cudaErrorNotMappedAsPointer = ( cyruntime.cudaError.cudaErrorNotMappedAsPointer, 'This indicates that a mapped resource is not available for access as a\n' 'pointer.\n' - ){{endif}} - {{if 'cudaErrorECCUncorrectable' in found_values}} + ) + cudaErrorECCUncorrectable = ( cyruntime.cudaError.cudaErrorECCUncorrectable, 'This indicates that an uncorrectable ECC error was detected during\n' 'execution.\n' - ){{endif}} - {{if 'cudaErrorUnsupportedLimit' in found_values}} + ) + cudaErrorUnsupportedLimit = ( cyruntime.cudaError.cudaErrorUnsupportedLimit, 'This indicates that the :py:obj:`~.cudaLimit` passed to the API call is not\n' 'supported by the active device.\n' - ){{endif}} - {{if 'cudaErrorDeviceAlreadyInUse' in found_values}} + ) + cudaErrorDeviceAlreadyInUse = ( cyruntime.cudaError.cudaErrorDeviceAlreadyInUse, 'This indicates that a call tried to access an exclusive-thread device that\n' 'is already in use by a different thread.\n' - ){{endif}} - {{if 'cudaErrorPeerAccessUnsupported' in found_values}} + ) + cudaErrorPeerAccessUnsupported = ( cyruntime.cudaError.cudaErrorPeerAccessUnsupported, 'This error indicates that P2P access is not supported across the given\n' 'devices.\n' - ){{endif}} - {{if 'cudaErrorInvalidPtx' in found_values}} + ) + cudaErrorInvalidPtx = ( cyruntime.cudaError.cudaErrorInvalidPtx, 'A PTX compilation failed. The runtime may fall back to compiling PTX if an\n' 'application does not contain a suitable binary for the current device.\n' - ){{endif}} - {{if 'cudaErrorInvalidGraphicsContext' in found_values}} + ) + cudaErrorInvalidGraphicsContext = ( cyruntime.cudaError.cudaErrorInvalidGraphicsContext, 'This indicates an error with the OpenGL or DirectX context.\n' - ){{endif}} - {{if 'cudaErrorNvlinkUncorrectable' in found_values}} + ) + cudaErrorNvlinkUncorrectable = ( cyruntime.cudaError.cudaErrorNvlinkUncorrectable, 'This indicates that an uncorrectable NVLink error was detected during the\n' 'execution.\n' - ){{endif}} - {{if 'cudaErrorJitCompilerNotFound' in found_values}} + ) + cudaErrorJitCompilerNotFound = ( cyruntime.cudaError.cudaErrorJitCompilerNotFound, @@ -884,8 +882,8 @@ class cudaError_t(_FastEnum): 'Compiler library is used for PTX compilation. The runtime may fall back to\n' 'compiling PTX if an application does not contain a suitable binary for the\n' 'current device.\n' - ){{endif}} - {{if 'cudaErrorUnsupportedPtxVersion' in found_values}} + ) + cudaErrorUnsupportedPtxVersion = ( cyruntime.cudaError.cudaErrorUnsupportedPtxVersion, @@ -893,30 +891,30 @@ class cudaError_t(_FastEnum): 'toolchain. The most common reason for this, is the PTX was generated by a\n' 'compiler newer than what is supported by the CUDA driver and PTX JIT\n' 'compiler.\n' - ){{endif}} - {{if 'cudaErrorJitCompilationDisabled' in found_values}} + ) + cudaErrorJitCompilationDisabled = ( cyruntime.cudaError.cudaErrorJitCompilationDisabled, 'This indicates that the JIT compilation was disabled. The JIT compilation\n' 'compiles PTX. The runtime may fall back to compiling PTX if an application\n' 'does not contain a suitable binary for the current device.\n' - ){{endif}} - {{if 'cudaErrorUnsupportedExecAffinity' in found_values}} + ) + cudaErrorUnsupportedExecAffinity = ( cyruntime.cudaError.cudaErrorUnsupportedExecAffinity, 'This indicates that the provided execution affinity is not supported by the\n' 'device.\n' - ){{endif}} - {{if 'cudaErrorUnsupportedDevSideSync' in found_values}} + ) + cudaErrorUnsupportedDevSideSync = ( cyruntime.cudaError.cudaErrorUnsupportedDevSideSync, 'This indicates that the code to be compiled by the PTX JIT contains\n' 'unsupported call to cudaDeviceSynchronize.\n' - ){{endif}} - {{if 'cudaErrorContained' in found_values}} + ) + cudaErrorContained = ( cyruntime.cudaError.cudaErrorContained, @@ -926,53 +924,53 @@ class cudaError_t(_FastEnum): 'classes of hardware errors This leaves the process in an inconsistent state\n' 'and any further CUDA work will return the same error. To continue using\n' 'CUDA, the process must be terminated and relaunched.\n' - ){{endif}} - {{if 'cudaErrorInvalidSource' in found_values}} + ) + cudaErrorInvalidSource = ( cyruntime.cudaError.cudaErrorInvalidSource, 'This indicates that the device kernel source is invalid.\n' - ){{endif}} - {{if 'cudaErrorFileNotFound' in found_values}} + ) + cudaErrorFileNotFound = ( cyruntime.cudaError.cudaErrorFileNotFound, 'This indicates that the file specified was not found.\n' - ){{endif}} - {{if 'cudaErrorSharedObjectSymbolNotFound' in found_values}} + ) + cudaErrorSharedObjectSymbolNotFound = ( cyruntime.cudaError.cudaErrorSharedObjectSymbolNotFound, 'This indicates that a link to a shared object failed to resolve.\n' - ){{endif}} - {{if 'cudaErrorSharedObjectInitFailed' in found_values}} + ) + cudaErrorSharedObjectInitFailed = ( cyruntime.cudaError.cudaErrorSharedObjectInitFailed, 'This indicates that initialization of a shared object failed.\n' - ){{endif}} - {{if 'cudaErrorOperatingSystem' in found_values}} + ) + cudaErrorOperatingSystem = ( cyruntime.cudaError.cudaErrorOperatingSystem, 'This error indicates that an OS call failed.\n' - ){{endif}} - {{if 'cudaErrorInvalidResourceHandle' in found_values}} + ) + cudaErrorInvalidResourceHandle = ( cyruntime.cudaError.cudaErrorInvalidResourceHandle, 'This indicates that a resource handle passed to the API call was not valid.\n' 'Resource handles are opaque types like :py:obj:`~.cudaStream_t` and\n' ':py:obj:`~.cudaEvent_t`.\n' - ){{endif}} - {{if 'cudaErrorIllegalState' in found_values}} + ) + cudaErrorIllegalState = ( cyruntime.cudaError.cudaErrorIllegalState, 'This indicates that a resource required by the API call is not in a valid\n' 'state to perform the requested operation.\n' - ){{endif}} - {{if 'cudaErrorLossyQuery' in found_values}} + ) + cudaErrorLossyQuery = ( cyruntime.cudaError.cudaErrorLossyQuery, @@ -980,16 +978,16 @@ class cudaError_t(_FastEnum): 'would discard semantically important information. This is either due to the\n' 'object using funtionality newer than the API version used to introspect it\n' 'or omission of optional return arguments.\n' - ){{endif}} - {{if 'cudaErrorSymbolNotFound' in found_values}} + ) + cudaErrorSymbolNotFound = ( cyruntime.cudaError.cudaErrorSymbolNotFound, 'This indicates that a named symbol was not found. Examples of symbols are\n' 'global/constant variable names, driver function names, texture names, and\n' 'surface names.\n' - ){{endif}} - {{if 'cudaErrorNotReady' in found_values}} + ) + cudaErrorNotReady = ( cyruntime.cudaError.cudaErrorNotReady, @@ -998,8 +996,8 @@ class cudaError_t(_FastEnum): 'differently than :py:obj:`~.cudaSuccess` (which indicates completion).\n' 'Calls that may return this value include :py:obj:`~.cudaEventQuery()` and\n' ':py:obj:`~.cudaStreamQuery()`.\n' - ){{endif}} - {{if 'cudaErrorIllegalAddress' in found_values}} + ) + cudaErrorIllegalAddress = ( cyruntime.cudaError.cudaErrorIllegalAddress, @@ -1007,8 +1005,8 @@ class cudaError_t(_FastEnum): 'address. This leaves the process in an inconsistent state and any further\n' 'CUDA work will return the same error. To continue using CUDA, the process\n' 'must be terminated and relaunched.\n' - ){{endif}} - {{if 'cudaErrorLaunchOutOfResources' in found_values}} + ) + cudaErrorLaunchOutOfResources = ( cyruntime.cudaError.cudaErrorLaunchOutOfResources, @@ -1018,8 +1016,8 @@ class cudaError_t(_FastEnum): 'that the user has attempted to pass too many arguments to the device\n' "kernel, or the kernel launch specifies too many threads for the kernel's\n" 'register count.\n' - ){{endif}} - {{if 'cudaErrorLaunchTimeout' in found_values}} + ) + cudaErrorLaunchTimeout = ( cyruntime.cudaError.cudaErrorLaunchTimeout, @@ -1029,31 +1027,31 @@ class cudaError_t(_FastEnum): 'process in an inconsistent state and any further CUDA work will return the\n' 'same error. To continue using CUDA, the process must be terminated and\n' 'relaunched.\n' - ){{endif}} - {{if 'cudaErrorLaunchIncompatibleTexturing' in found_values}} + ) + cudaErrorLaunchIncompatibleTexturing = ( cyruntime.cudaError.cudaErrorLaunchIncompatibleTexturing, 'This error indicates a kernel launch that uses an incompatible texturing\n' 'mode.\n' - ){{endif}} - {{if 'cudaErrorPeerAccessAlreadyEnabled' in found_values}} + ) + cudaErrorPeerAccessAlreadyEnabled = ( cyruntime.cudaError.cudaErrorPeerAccessAlreadyEnabled, 'This error indicates that a call to\n' ':py:obj:`~.cudaDeviceEnablePeerAccess()` is trying to re-enable peer\n' 'addressing on from a context which has already had peer addressing enabled.\n' - ){{endif}} - {{if 'cudaErrorPeerAccessNotEnabled' in found_values}} + ) + cudaErrorPeerAccessNotEnabled = ( cyruntime.cudaError.cudaErrorPeerAccessNotEnabled, 'This error indicates that :py:obj:`~.cudaDeviceDisablePeerAccess()` is\n' 'trying to disable peer addressing which has not been enabled yet via\n' ':py:obj:`~.cudaDeviceEnablePeerAccess()`.\n' - ){{endif}} - {{if 'cudaErrorSetOnActiveProcess' in found_values}} + ) + cudaErrorSetOnActiveProcess = ( cyruntime.cudaError.cudaErrorSetOnActiveProcess, @@ -1066,47 +1064,47 @@ class cudaError_t(_FastEnum): 'launching kernels are examples of non-device management operations). This\n' 'error can also be returned if using runtime/driver interoperability and\n' 'there is an existing :py:obj:`~.CUcontext` active on the host thread.\n' - ){{endif}} - {{if 'cudaErrorContextIsDestroyed' in found_values}} + ) + cudaErrorContextIsDestroyed = ( cyruntime.cudaError.cudaErrorContextIsDestroyed, 'This error indicates that the context current to the calling thread has\n' 'been destroyed using :py:obj:`~.cuCtxDestroy`, or is a primary context\n' 'which has not yet been initialized.\n' - ){{endif}} - {{if 'cudaErrorAssert' in found_values}} + ) + cudaErrorAssert = ( cyruntime.cudaError.cudaErrorAssert, 'An assert triggered in device code during kernel execution. The device\n' 'cannot be used again. All existing allocations are invalid. To continue\n' 'using CUDA, the process must be terminated and relaunched.\n' - ){{endif}} - {{if 'cudaErrorTooManyPeers' in found_values}} + ) + cudaErrorTooManyPeers = ( cyruntime.cudaError.cudaErrorTooManyPeers, 'This error indicates that the hardware resources required to enable peer\n' 'access have been exhausted for one or more of the devices passed to\n' ':py:obj:`~.cudaEnablePeerAccess()`.\n' - ){{endif}} - {{if 'cudaErrorHostMemoryAlreadyRegistered' in found_values}} + ) + cudaErrorHostMemoryAlreadyRegistered = ( cyruntime.cudaError.cudaErrorHostMemoryAlreadyRegistered, 'This error indicates that the memory range passed to\n' ':py:obj:`~.cudaHostRegister()` has already been registered.\n' - ){{endif}} - {{if 'cudaErrorHostMemoryNotRegistered' in found_values}} + ) + cudaErrorHostMemoryNotRegistered = ( cyruntime.cudaError.cudaErrorHostMemoryNotRegistered, 'This error indicates that the pointer passed to\n' ':py:obj:`~.cudaHostUnregister()` does not correspond to any currently\n' 'registered memory region.\n' - ){{endif}} - {{if 'cudaErrorHardwareStackError' in found_values}} + ) + cudaErrorHardwareStackError = ( cyruntime.cudaError.cudaErrorHardwareStackError, @@ -1115,8 +1113,8 @@ class cudaError_t(_FastEnum): 'leaves the process in an inconsistent state and any further CUDA work will\n' 'return the same error. To continue using CUDA, the process must be\n' 'terminated and relaunched.\n' - ){{endif}} - {{if 'cudaErrorIllegalInstruction' in found_values}} + ) + cudaErrorIllegalInstruction = ( cyruntime.cudaError.cudaErrorIllegalInstruction, @@ -1124,8 +1122,8 @@ class cudaError_t(_FastEnum): 'leaves the process in an inconsistent state and any further CUDA work will\n' 'return the same error. To continue using CUDA, the process must be\n' 'terminated and relaunched.\n' - ){{endif}} - {{if 'cudaErrorMisalignedAddress' in found_values}} + ) + cudaErrorMisalignedAddress = ( cyruntime.cudaError.cudaErrorMisalignedAddress, @@ -1133,8 +1131,8 @@ class cudaError_t(_FastEnum): 'which is not aligned. This leaves the process in an inconsistent state and\n' 'any further CUDA work will return the same error. To continue using CUDA,\n' 'the process must be terminated and relaunched.\n' - ){{endif}} - {{if 'cudaErrorInvalidAddressSpace' in found_values}} + ) + cudaErrorInvalidAddressSpace = ( cyruntime.cudaError.cudaErrorInvalidAddressSpace, @@ -1144,8 +1142,8 @@ class cudaError_t(_FastEnum): 'address space. This leaves the process in an inconsistent state and any\n' 'further CUDA work will return the same error. To continue using CUDA, the\n' 'process must be terminated and relaunched.\n' - ){{endif}} - {{if 'cudaErrorInvalidPc' in found_values}} + ) + cudaErrorInvalidPc = ( cyruntime.cudaError.cudaErrorInvalidPc, @@ -1153,8 +1151,8 @@ class cudaError_t(_FastEnum): 'in an inconsistent state and any further CUDA work will return the same\n' 'error. To continue using CUDA, the process must be terminated and\n' 'relaunched.\n' - ){{endif}} - {{if 'cudaErrorLaunchFailure' in found_values}} + ) + cudaErrorLaunchFailure = ( cyruntime.cudaError.cudaErrorLaunchFailure, @@ -1165,8 +1163,8 @@ class cudaError_t(_FastEnum): 'leaves the process in an inconsistent state and any further CUDA work will\n' 'return the same error. To continue using CUDA, the process must be\n' 'terminated and relaunched.\n' - ){{endif}} - {{if 'cudaErrorCooperativeLaunchTooLarge' in found_values}} + ) + cudaErrorCooperativeLaunchTooLarge = ( cyruntime.cudaError.cudaErrorCooperativeLaunchTooLarge, @@ -1178,8 +1176,8 @@ class cudaError_t(_FastEnum): ':py:obj:`~.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags` times\n' 'the number of multiprocessors as specified by the device attribute\n' ':py:obj:`~.cudaDevAttrMultiProcessorCount`.\n' - ){{endif}} - {{if 'cudaErrorTensorMemoryLeak' in found_values}} + ) + cudaErrorTensorMemoryLeak = ( cyruntime.cudaError.cudaErrorTensorMemoryLeak, @@ -1188,21 +1186,21 @@ class cudaError_t(_FastEnum): 'process in an inconsistent state and any further CUDA work will return the\n' 'same error. To continue using CUDA, the process must be terminated and\n' 'relaunched.\n' - ){{endif}} - {{if 'cudaErrorNotPermitted' in found_values}} + ) + cudaErrorNotPermitted = ( cyruntime.cudaError.cudaErrorNotPermitted, 'This error indicates the attempted operation is not permitted.\n' - ){{endif}} - {{if 'cudaErrorNotSupported' in found_values}} + ) + cudaErrorNotSupported = ( cyruntime.cudaError.cudaErrorNotSupported, 'This error indicates the attempted operation is not supported on the\n' 'current system or device.\n' - ){{endif}} - {{if 'cudaErrorSystemNotReady' in found_values}} + ) + cudaErrorSystemNotReady = ( cyruntime.cudaError.cudaErrorSystemNotReady, @@ -1211,16 +1209,16 @@ class cudaError_t(_FastEnum): 'state and all required driver daemons are actively running. More\n' 'information about this error can be found in the system specific user\n' 'guide.\n' - ){{endif}} - {{if 'cudaErrorSystemDriverMismatch' in found_values}} + ) + cudaErrorSystemDriverMismatch = ( cyruntime.cudaError.cudaErrorSystemDriverMismatch, 'This error indicates that there is a mismatch between the versions of the\n' 'display driver and the CUDA driver. Refer to the compatibility\n' 'documentation for supported versions.\n' - ){{endif}} - {{if 'cudaErrorCompatNotSupportedOnDevice' in found_values}} + ) + cudaErrorCompatNotSupportedOnDevice = ( cyruntime.cudaError.cudaErrorCompatNotSupportedOnDevice, @@ -1229,120 +1227,120 @@ class cudaError_t(_FastEnum): 'this configuration. Refer to the compatibility documentation for the\n' 'supported hardware matrix or ensure that only supported hardware is visible\n' 'during initialization via the CUDA_VISIBLE_DEVICES environment variable.\n' - ){{endif}} - {{if 'cudaErrorMpsConnectionFailed' in found_values}} + ) + cudaErrorMpsConnectionFailed = ( cyruntime.cudaError.cudaErrorMpsConnectionFailed, 'This error indicates that the MPS client failed to connect to the MPS\n' 'control daemon or the MPS server.\n' - ){{endif}} - {{if 'cudaErrorMpsRpcFailure' in found_values}} + ) + cudaErrorMpsRpcFailure = ( cyruntime.cudaError.cudaErrorMpsRpcFailure, 'This error indicates that the remote procedural call between the MPS server\n' 'and the MPS client failed.\n' - ){{endif}} - {{if 'cudaErrorMpsServerNotReady' in found_values}} + ) + cudaErrorMpsServerNotReady = ( cyruntime.cudaError.cudaErrorMpsServerNotReady, 'This error indicates that the MPS server is not ready to accept new MPS\n' 'client requests. This error can be returned when the MPS server is in the\n' 'process of recovering from a fatal failure.\n' - ){{endif}} - {{if 'cudaErrorMpsMaxClientsReached' in found_values}} + ) + cudaErrorMpsMaxClientsReached = ( cyruntime.cudaError.cudaErrorMpsMaxClientsReached, 'This error indicates that the hardware resources required to create MPS\n' 'client have been exhausted.\n' - ){{endif}} - {{if 'cudaErrorMpsMaxConnectionsReached' in found_values}} + ) + cudaErrorMpsMaxConnectionsReached = ( cyruntime.cudaError.cudaErrorMpsMaxConnectionsReached, 'This error indicates the the hardware resources required to device\n' 'connections have been exhausted.\n' - ){{endif}} - {{if 'cudaErrorMpsClientTerminated' in found_values}} + ) + cudaErrorMpsClientTerminated = ( cyruntime.cudaError.cudaErrorMpsClientTerminated, 'This error indicates that the MPS client has been terminated by the server.\n' 'To continue using CUDA, the process must be terminated and relaunched.\n' - ){{endif}} - {{if 'cudaErrorCdpNotSupported' in found_values}} + ) + cudaErrorCdpNotSupported = ( cyruntime.cudaError.cudaErrorCdpNotSupported, 'This error indicates, that the program is using CUDA Dynamic Parallelism,\n' 'but the current configuration, like MPS, does not support it.\n' - ){{endif}} - {{if 'cudaErrorCdpVersionMismatch' in found_values}} + ) + cudaErrorCdpVersionMismatch = ( cyruntime.cudaError.cudaErrorCdpVersionMismatch, 'This error indicates, that the program contains an unsupported interaction\n' 'between different versions of CUDA Dynamic Parallelism.\n' - ){{endif}} - {{if 'cudaErrorStreamCaptureUnsupported' in found_values}} + ) + cudaErrorStreamCaptureUnsupported = ( cyruntime.cudaError.cudaErrorStreamCaptureUnsupported, 'The operation is not permitted when the stream is capturing.\n' - ){{endif}} - {{if 'cudaErrorStreamCaptureInvalidated' in found_values}} + ) + cudaErrorStreamCaptureInvalidated = ( cyruntime.cudaError.cudaErrorStreamCaptureInvalidated, 'The current capture sequence on the stream has been invalidated due to a\n' 'previous error.\n' - ){{endif}} - {{if 'cudaErrorStreamCaptureMerge' in found_values}} + ) + cudaErrorStreamCaptureMerge = ( cyruntime.cudaError.cudaErrorStreamCaptureMerge, 'The operation would have resulted in a merge of two independent capture\n' 'sequences.\n' - ){{endif}} - {{if 'cudaErrorStreamCaptureUnmatched' in found_values}} + ) + cudaErrorStreamCaptureUnmatched = ( cyruntime.cudaError.cudaErrorStreamCaptureUnmatched, 'The capture was not initiated in this stream.\n' - ){{endif}} - {{if 'cudaErrorStreamCaptureUnjoined' in found_values}} + ) + cudaErrorStreamCaptureUnjoined = ( cyruntime.cudaError.cudaErrorStreamCaptureUnjoined, 'The capture sequence contains a fork that was not joined to the primary\n' 'stream.\n' - ){{endif}} - {{if 'cudaErrorStreamCaptureIsolation' in found_values}} + ) + cudaErrorStreamCaptureIsolation = ( cyruntime.cudaError.cudaErrorStreamCaptureIsolation, 'A dependency would have been created which crosses the capture sequence\n' 'boundary. Only implicit in-stream ordering dependencies are allowed to\n' 'cross the boundary.\n' - ){{endif}} - {{if 'cudaErrorStreamCaptureImplicit' in found_values}} + ) + cudaErrorStreamCaptureImplicit = ( cyruntime.cudaError.cudaErrorStreamCaptureImplicit, 'The operation would have resulted in a disallowed implicit dependency on a\n' 'current capture sequence from cudaStreamLegacy.\n' - ){{endif}} - {{if 'cudaErrorCapturedEvent' in found_values}} + ) + cudaErrorCapturedEvent = ( cyruntime.cudaError.cudaErrorCapturedEvent, 'The operation is not permitted on an event which was last recorded in a\n' 'capturing stream.\n' - ){{endif}} - {{if 'cudaErrorStreamCaptureWrongThread' in found_values}} + ) + cudaErrorStreamCaptureWrongThread = ( cyruntime.cudaError.cudaErrorStreamCaptureWrongThread, @@ -1350,22 +1348,22 @@ class cudaError_t(_FastEnum): ':py:obj:`~.cudaStreamCaptureModeRelaxed` argument to\n' ':py:obj:`~.cudaStreamBeginCapture` was passed to\n' ':py:obj:`~.cudaStreamEndCapture` in a different thread.\n' - ){{endif}} - {{if 'cudaErrorTimeout' in found_values}} + ) + cudaErrorTimeout = ( cyruntime.cudaError.cudaErrorTimeout, 'This indicates that the wait operation has timed out.\n' - ){{endif}} - {{if 'cudaErrorGraphExecUpdateFailure' in found_values}} + ) + cudaErrorGraphExecUpdateFailure = ( cyruntime.cudaError.cudaErrorGraphExecUpdateFailure, 'This error indicates that the graph update was not performed because it\n' 'included changes which violated constraints specific to instantiated graph\n' 'update.\n' - ){{endif}} - {{if 'cudaErrorExternalDevice' in found_values}} + ) + cudaErrorExternalDevice = ( cyruntime.cudaError.cudaErrorExternalDevice, @@ -1375,59 +1373,56 @@ class cudaError_t(_FastEnum): 'is not valid for consumption. This leaves the process in an inconsistent\n' 'state and any further CUDA work will return the same error. To continue\n' 'using CUDA, the process must be terminated and relaunched.\n' - ){{endif}} - {{if 'cudaErrorInvalidClusterSize' in found_values}} + ) + cudaErrorInvalidClusterSize = ( cyruntime.cudaError.cudaErrorInvalidClusterSize, 'This indicates that a kernel launch error has occurred due to cluster\n' 'misconfiguration.\n' - ){{endif}} - {{if 'cudaErrorFunctionNotLoaded' in found_values}} + ) + cudaErrorFunctionNotLoaded = ( cyruntime.cudaError.cudaErrorFunctionNotLoaded, 'Indiciates a function handle is not loaded when calling an API that\n' 'requires a loaded function.\n' - ){{endif}} - {{if 'cudaErrorInvalidResourceType' in found_values}} + ) + cudaErrorInvalidResourceType = ( cyruntime.cudaError.cudaErrorInvalidResourceType, 'This error indicates one or more resources passed in are not valid resource\n' 'types for the operation.\n' - ){{endif}} - {{if 'cudaErrorInvalidResourceConfiguration' in found_values}} + ) + cudaErrorInvalidResourceConfiguration = ( cyruntime.cudaError.cudaErrorInvalidResourceConfiguration, 'This error indicates one or more resources are insufficient or non-\n' 'applicable for the operation.\n' - ){{endif}} - {{if 'cudaErrorUnknown' in found_values}} + ) + cudaErrorUnknown = ( cyruntime.cudaError.cudaErrorUnknown, 'This indicates that an unknown internal error has occurred.\n' - ){{endif}} - {{if 'cudaErrorApiFailureBase' in found_values}} - cudaErrorApiFailureBase = cyruntime.cudaError.cudaErrorApiFailureBase{{endif}} + ) -{{endif}} -{{if 'cudaGraphDependencyType_enum' in found_types}} + cudaErrorApiFailureBase = cyruntime.cudaError.cudaErrorApiFailureBase class cudaGraphDependencyType(_FastEnum): """ Type annotations that can be applied to graph edges as part of :py:obj:`~.cudaGraphEdgeData`. """ - {{if 'cudaGraphDependencyTypeDefault' in found_values}} + cudaGraphDependencyTypeDefault = ( cyruntime.cudaGraphDependencyType_enum.cudaGraphDependencyTypeDefault, 'This is an ordinary dependency.\n' - ){{endif}} - {{if 'cudaGraphDependencyTypeProgrammatic' in found_values}} + ) + cudaGraphDependencyTypeProgrammatic = ( cyruntime.cudaGraphDependencyType_enum.cudaGraphDependencyTypeProgrammatic, @@ -1436,57 +1431,51 @@ class cudaGraphDependencyType(_FastEnum): 'nodes, and must be used with either the\n' ':py:obj:`~.cudaGraphKernelNodePortProgrammatic` or\n' ':py:obj:`~.cudaGraphKernelNodePortLaunchCompletion` outgoing port.\n' - ){{endif}} - -{{endif}} -{{if 'cudaGraphInstantiateResult' in found_types}} + ) class cudaGraphInstantiateResult(_FastEnum): """ Graph instantiation results """ - {{if 'cudaGraphInstantiateSuccess' in found_values}} + cudaGraphInstantiateSuccess = ( cyruntime.cudaGraphInstantiateResult.cudaGraphInstantiateSuccess, 'Instantiation succeeded\n' - ){{endif}} - {{if 'cudaGraphInstantiateError' in found_values}} + ) + cudaGraphInstantiateError = ( cyruntime.cudaGraphInstantiateResult.cudaGraphInstantiateError, 'Instantiation failed for an unexpected reason which is described in the\n' 'return value of the function\n' - ){{endif}} - {{if 'cudaGraphInstantiateInvalidStructure' in found_values}} + ) + cudaGraphInstantiateInvalidStructure = ( cyruntime.cudaGraphInstantiateResult.cudaGraphInstantiateInvalidStructure, 'Instantiation failed due to invalid structure, such as cycles\n' - ){{endif}} - {{if 'cudaGraphInstantiateNodeOperationNotSupported' in found_values}} + ) + cudaGraphInstantiateNodeOperationNotSupported = ( cyruntime.cudaGraphInstantiateResult.cudaGraphInstantiateNodeOperationNotSupported, 'Instantiation for device launch failed because the graph contained an\n' 'unsupported operation\n' - ){{endif}} - {{if 'cudaGraphInstantiateMultipleDevicesNotSupported' in found_values}} + ) + cudaGraphInstantiateMultipleDevicesNotSupported = ( cyruntime.cudaGraphInstantiateResult.cudaGraphInstantiateMultipleDevicesNotSupported, 'Instantiation for device launch failed due to the nodes belonging to\n' 'different contexts\n' - ){{endif}} - {{if 'cudaGraphInstantiateConditionalHandleUnused' in found_values}} + ) + cudaGraphInstantiateConditionalHandleUnused = ( cyruntime.cudaGraphInstantiateResult.cudaGraphInstantiateConditionalHandleUnused, 'One or more conditional handles are not associated with conditional nodes\n' - ){{endif}} - -{{endif}} -{{if 'cudaLaunchMemSyncDomain' in found_types}} + ) class cudaLaunchMemSyncDomain(_FastEnum): """ @@ -1509,68 +1498,65 @@ class cudaLaunchMemSyncDomain(_FastEnum): by kernels in another memory synchronization domain even if they are on the same GPU. """ - {{if 'cudaLaunchMemSyncDomainDefault' in found_values}} + cudaLaunchMemSyncDomainDefault = ( cyruntime.cudaLaunchMemSyncDomain.cudaLaunchMemSyncDomainDefault, 'Launch kernels in the default domain\n' - ){{endif}} - {{if 'cudaLaunchMemSyncDomainRemote' in found_values}} + ) + cudaLaunchMemSyncDomainRemote = ( cyruntime.cudaLaunchMemSyncDomain.cudaLaunchMemSyncDomainRemote, 'Launch kernels in the remote domain\n' - ){{endif}} - -{{endif}} -{{if 'cudaLaunchAttributeID' in found_types}} + ) class cudaLaunchAttributeID(_FastEnum): """ Launch attributes enum; used as id field of :py:obj:`~.cudaLaunchAttribute` """ - {{if 'cudaLaunchAttributeIgnore' in found_values}} + cudaLaunchAttributeIgnore = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeIgnore, 'Ignored entry, for convenient composition\n' - ){{endif}} - {{if 'cudaLaunchAttributeAccessPolicyWindow' in found_values}} + ) + cudaLaunchAttributeAccessPolicyWindow = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeAccessPolicyWindow, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.accessPolicyWindow`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeCooperative' in found_values}} + ) + cudaLaunchAttributeCooperative = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeCooperative, 'Valid for graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.cooperative`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeSynchronizationPolicy' in found_values}} + ) + cudaLaunchAttributeSynchronizationPolicy = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeSynchronizationPolicy, 'Valid for streams. See :py:obj:`~.cudaLaunchAttributeValue.syncPolicy`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeClusterDimension' in found_values}} + ) + cudaLaunchAttributeClusterDimension = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeClusterDimension, 'Valid for graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.clusterDim`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeClusterSchedulingPolicyPreference' in found_values}} + ) + cudaLaunchAttributeClusterSchedulingPolicyPreference = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeClusterSchedulingPolicyPreference, 'Valid for graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.clusterSchedulingPolicyPreference`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeProgrammaticStreamSerialization' in found_values}} + ) + cudaLaunchAttributeProgrammaticStreamSerialization = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeProgrammaticStreamSerialization, @@ -1582,8 +1568,8 @@ class cudaLaunchAttributeID(_FastEnum): 'that kernel requests the overlap. The dependent launches can choose to wait\n' 'on the dependency using the programmatic sync\n' '(cudaGridDependencySynchronize() or equivalent PTX instructions).\n' - ){{endif}} - {{if 'cudaLaunchAttributeProgrammaticEvent' in found_values}} + ) + cudaLaunchAttributeProgrammaticEvent = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeProgrammaticEvent, @@ -1607,29 +1593,29 @@ class cudaLaunchAttributeID(_FastEnum): ' The event supplied must not be an interprocess or interop event. The event\n' 'must disable timing (i.e. must be created with the\n' ':py:obj:`~.cudaEventDisableTiming` flag set).\n' - ){{endif}} - {{if 'cudaLaunchAttributePriority' in found_values}} + ) + cudaLaunchAttributePriority = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePriority, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.priority`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeMemSyncDomainMap' in found_values}} + ) + cudaLaunchAttributeMemSyncDomainMap = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeMemSyncDomainMap, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.memSyncDomainMap`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeMemSyncDomain' in found_values}} + ) + cudaLaunchAttributeMemSyncDomain = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeMemSyncDomain, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.memSyncDomain`.\n' - ){{endif}} - {{if 'cudaLaunchAttributePreferredClusterDimension' in found_values}} + ) + cudaLaunchAttributePreferredClusterDimension = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePreferredClusterDimension, @@ -1662,8 +1648,8 @@ class cudaLaunchAttributeID(_FastEnum): 'than the maximum value the driver can support. Otherwise, setting this\n' 'attribute to a value physically unable to fit on any particular device is\n' 'permitted.\n' - ){{endif}} - {{if 'cudaLaunchAttributeLaunchCompletionEvent' in found_values}} + ) + cudaLaunchAttributeLaunchCompletionEvent = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeLaunchCompletionEvent, @@ -1684,15 +1670,15 @@ class cudaLaunchAttributeID(_FastEnum): ' The event supplied must not be an interprocess or interop event. The event\n' 'must disable timing (i.e. must be created with the\n' ':py:obj:`~.cudaEventDisableTiming` flag set).\n' - ){{endif}} - {{if 'cudaLaunchAttributeDeviceUpdatableKernelNode' in found_values}} + ) + cudaLaunchAttributeDeviceUpdatableKernelNode = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeDeviceUpdatableKernelNode, 'Valid for graph nodes, launches. This attribute is graphs-only, and passing\n' 'it to a launch in a non-capturing stream will result in an error.\n' - ' :cudaLaunchAttributeValue::deviceUpdatableKernelNode::deviceUpdatable can\n' - 'only be set to 0 or 1. Setting the field to 1 indicates that the\n' + ':py:obj:`~.cudaLaunchAttributeValue.deviceUpdatableKernelNode.deviceUpdatable`\n' + 'can only be set to 0 or 1. Setting the field to 1 indicates that the\n' 'corresponding kernel node should be device-updatable. On success, a handle\n' 'will be returned via\n' ':py:obj:`~.cudaLaunchAttributeValue.deviceUpdatableKernelNode.devNode`\n' @@ -1716,8 +1702,8 @@ class cudaLaunchAttributeID(_FastEnum): ':py:obj:`~.cuGraphUpload` before it is launched. For such a graph, if host-\n' 'side executable graph updates are made to the device-updatable nodes, the\n' 'graph must be uploaded before it is launched again.\n' - ){{endif}} - {{if 'cudaLaunchAttributePreferredSharedMemoryCarveout' in found_values}} + ) + cudaLaunchAttributePreferredSharedMemoryCarveout = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePreferredSharedMemoryCarveout, @@ -1729,136 +1715,121 @@ class cudaLaunchAttributeID(_FastEnum): 'precedence over :py:obj:`~.cudaFuncAttributePreferredSharedMemoryCarveout`.\n' 'This is only a hint, and the driver can choose a different configuration if\n' 'required for the launch.\n' - ){{endif}} - -{{endif}} -{{if 'cudaAsyncNotificationType_enum' in found_types}} + ) class cudaAsyncNotificationType(_FastEnum): """ Types of async notification that can occur """ - {{if 'cudaAsyncNotificationTypeOverBudget' in found_values}} + cudaAsyncNotificationTypeOverBudget = ( cyruntime.cudaAsyncNotificationType_enum.cudaAsyncNotificationTypeOverBudget, 'Sent when the process has exceeded its device memory budget\n' - ){{endif}} - -{{endif}} -{{if 'cudaDataType_t' in found_types}} + ) class cudaDataType(_FastEnum): """ """ - {{if 'CUDA_R_32F' in found_values}} - CUDA_R_32F = cyruntime.cudaDataType_t.CUDA_R_32F{{endif}} - {{if 'CUDA_R_64F' in found_values}} - CUDA_R_64F = cyruntime.cudaDataType_t.CUDA_R_64F{{endif}} - {{if 'CUDA_R_16F' in found_values}} - CUDA_R_16F = cyruntime.cudaDataType_t.CUDA_R_16F{{endif}} - {{if 'CUDA_R_8I' in found_values}} - CUDA_R_8I = cyruntime.cudaDataType_t.CUDA_R_8I{{endif}} - {{if 'CUDA_C_32F' in found_values}} - CUDA_C_32F = cyruntime.cudaDataType_t.CUDA_C_32F{{endif}} - {{if 'CUDA_C_64F' in found_values}} - CUDA_C_64F = cyruntime.cudaDataType_t.CUDA_C_64F{{endif}} - {{if 'CUDA_C_16F' in found_values}} - CUDA_C_16F = cyruntime.cudaDataType_t.CUDA_C_16F{{endif}} - {{if 'CUDA_C_8I' in found_values}} - CUDA_C_8I = cyruntime.cudaDataType_t.CUDA_C_8I{{endif}} - {{if 'CUDA_R_8U' in found_values}} - CUDA_R_8U = cyruntime.cudaDataType_t.CUDA_R_8U{{endif}} - {{if 'CUDA_C_8U' in found_values}} - CUDA_C_8U = cyruntime.cudaDataType_t.CUDA_C_8U{{endif}} - {{if 'CUDA_R_32I' in found_values}} - CUDA_R_32I = cyruntime.cudaDataType_t.CUDA_R_32I{{endif}} - {{if 'CUDA_C_32I' in found_values}} - CUDA_C_32I = cyruntime.cudaDataType_t.CUDA_C_32I{{endif}} - {{if 'CUDA_R_32U' in found_values}} - CUDA_R_32U = cyruntime.cudaDataType_t.CUDA_R_32U{{endif}} - {{if 'CUDA_C_32U' in found_values}} - CUDA_C_32U = cyruntime.cudaDataType_t.CUDA_C_32U{{endif}} - {{if 'CUDA_R_16BF' in found_values}} - CUDA_R_16BF = cyruntime.cudaDataType_t.CUDA_R_16BF{{endif}} - {{if 'CUDA_C_16BF' in found_values}} - CUDA_C_16BF = cyruntime.cudaDataType_t.CUDA_C_16BF{{endif}} - {{if 'CUDA_R_4I' in found_values}} - CUDA_R_4I = cyruntime.cudaDataType_t.CUDA_R_4I{{endif}} - {{if 'CUDA_C_4I' in found_values}} - CUDA_C_4I = cyruntime.cudaDataType_t.CUDA_C_4I{{endif}} - {{if 'CUDA_R_4U' in found_values}} - CUDA_R_4U = cyruntime.cudaDataType_t.CUDA_R_4U{{endif}} - {{if 'CUDA_C_4U' in found_values}} - CUDA_C_4U = cyruntime.cudaDataType_t.CUDA_C_4U{{endif}} - {{if 'CUDA_R_16I' in found_values}} - CUDA_R_16I = cyruntime.cudaDataType_t.CUDA_R_16I{{endif}} - {{if 'CUDA_C_16I' in found_values}} - CUDA_C_16I = cyruntime.cudaDataType_t.CUDA_C_16I{{endif}} - {{if 'CUDA_R_16U' in found_values}} - CUDA_R_16U = cyruntime.cudaDataType_t.CUDA_R_16U{{endif}} - {{if 'CUDA_C_16U' in found_values}} - CUDA_C_16U = cyruntime.cudaDataType_t.CUDA_C_16U{{endif}} - {{if 'CUDA_R_64I' in found_values}} - CUDA_R_64I = cyruntime.cudaDataType_t.CUDA_R_64I{{endif}} - {{if 'CUDA_C_64I' in found_values}} - CUDA_C_64I = cyruntime.cudaDataType_t.CUDA_C_64I{{endif}} - {{if 'CUDA_R_64U' in found_values}} - CUDA_R_64U = cyruntime.cudaDataType_t.CUDA_R_64U{{endif}} - {{if 'CUDA_C_64U' in found_values}} - CUDA_C_64U = cyruntime.cudaDataType_t.CUDA_C_64U{{endif}} - {{if 'CUDA_R_8F_E4M3' in found_values}} - CUDA_R_8F_E4M3 = cyruntime.cudaDataType_t.CUDA_R_8F_E4M3{{endif}} - {{if 'CUDA_R_8F_UE4M3' in found_values}} - CUDA_R_8F_UE4M3 = cyruntime.cudaDataType_t.CUDA_R_8F_UE4M3{{endif}} - {{if 'CUDA_R_8F_E5M2' in found_values}} - CUDA_R_8F_E5M2 = cyruntime.cudaDataType_t.CUDA_R_8F_E5M2{{endif}} - {{if 'CUDA_R_8F_UE8M0' in found_values}} - CUDA_R_8F_UE8M0 = cyruntime.cudaDataType_t.CUDA_R_8F_UE8M0{{endif}} - {{if 'CUDA_R_6F_E2M3' in found_values}} - CUDA_R_6F_E2M3 = cyruntime.cudaDataType_t.CUDA_R_6F_E2M3{{endif}} - {{if 'CUDA_R_6F_E3M2' in found_values}} - CUDA_R_6F_E3M2 = cyruntime.cudaDataType_t.CUDA_R_6F_E3M2{{endif}} - {{if 'CUDA_R_4F_E2M1' in found_values}} - CUDA_R_4F_E2M1 = cyruntime.cudaDataType_t.CUDA_R_4F_E2M1{{endif}} - -{{endif}} -{{if 'libraryPropertyType_t' in found_types}} + + CUDA_R_32F = cyruntime.cudaDataType_t.CUDA_R_32F + + CUDA_R_64F = cyruntime.cudaDataType_t.CUDA_R_64F + + CUDA_R_16F = cyruntime.cudaDataType_t.CUDA_R_16F + + CUDA_R_8I = cyruntime.cudaDataType_t.CUDA_R_8I + + CUDA_C_32F = cyruntime.cudaDataType_t.CUDA_C_32F + + CUDA_C_64F = cyruntime.cudaDataType_t.CUDA_C_64F + + CUDA_C_16F = cyruntime.cudaDataType_t.CUDA_C_16F + + CUDA_C_8I = cyruntime.cudaDataType_t.CUDA_C_8I + + CUDA_R_8U = cyruntime.cudaDataType_t.CUDA_R_8U + + CUDA_C_8U = cyruntime.cudaDataType_t.CUDA_C_8U + + CUDA_R_32I = cyruntime.cudaDataType_t.CUDA_R_32I + + CUDA_C_32I = cyruntime.cudaDataType_t.CUDA_C_32I + + CUDA_R_32U = cyruntime.cudaDataType_t.CUDA_R_32U + + CUDA_C_32U = cyruntime.cudaDataType_t.CUDA_C_32U + + CUDA_R_16BF = cyruntime.cudaDataType_t.CUDA_R_16BF + + CUDA_C_16BF = cyruntime.cudaDataType_t.CUDA_C_16BF + + CUDA_R_4I = cyruntime.cudaDataType_t.CUDA_R_4I + + CUDA_C_4I = cyruntime.cudaDataType_t.CUDA_C_4I + + CUDA_R_4U = cyruntime.cudaDataType_t.CUDA_R_4U + + CUDA_C_4U = cyruntime.cudaDataType_t.CUDA_C_4U + + CUDA_R_16I = cyruntime.cudaDataType_t.CUDA_R_16I + + CUDA_C_16I = cyruntime.cudaDataType_t.CUDA_C_16I + + CUDA_R_16U = cyruntime.cudaDataType_t.CUDA_R_16U + + CUDA_C_16U = cyruntime.cudaDataType_t.CUDA_C_16U + + CUDA_R_64I = cyruntime.cudaDataType_t.CUDA_R_64I + + CUDA_C_64I = cyruntime.cudaDataType_t.CUDA_C_64I + + CUDA_R_64U = cyruntime.cudaDataType_t.CUDA_R_64U + + CUDA_C_64U = cyruntime.cudaDataType_t.CUDA_C_64U + + CUDA_R_8F_E4M3 = cyruntime.cudaDataType_t.CUDA_R_8F_E4M3 + + CUDA_R_8F_UE4M3 = cyruntime.cudaDataType_t.CUDA_R_8F_UE4M3 + + CUDA_R_8F_E5M2 = cyruntime.cudaDataType_t.CUDA_R_8F_E5M2 + + CUDA_R_8F_UE8M0 = cyruntime.cudaDataType_t.CUDA_R_8F_UE8M0 + + CUDA_R_6F_E2M3 = cyruntime.cudaDataType_t.CUDA_R_6F_E2M3 + + CUDA_R_6F_E3M2 = cyruntime.cudaDataType_t.CUDA_R_6F_E3M2 + + CUDA_R_4F_E2M1 = cyruntime.cudaDataType_t.CUDA_R_4F_E2M1 class libraryPropertyType(_FastEnum): """ """ - {{if 'MAJOR_VERSION' in found_values}} - MAJOR_VERSION = cyruntime.libraryPropertyType_t.MAJOR_VERSION{{endif}} - {{if 'MINOR_VERSION' in found_values}} - MINOR_VERSION = cyruntime.libraryPropertyType_t.MINOR_VERSION{{endif}} - {{if 'PATCH_LEVEL' in found_values}} - PATCH_LEVEL = cyruntime.libraryPropertyType_t.PATCH_LEVEL{{endif}} -{{endif}} -{{if True}} + MAJOR_VERSION = cyruntime.libraryPropertyType_t.MAJOR_VERSION + + MINOR_VERSION = cyruntime.libraryPropertyType_t.MINOR_VERSION + + PATCH_LEVEL = cyruntime.libraryPropertyType_t.PATCH_LEVEL class cudaEglFrameType(_FastEnum): """ CUDA EglFrame type - array or pointer """ - {{if True}} + cudaEglFrameTypeArray = ( cyruntime.cudaEglFrameType_enum.cudaEglFrameTypeArray, 'Frame type CUDA array\n' - ){{endif}} - {{if True}} + ) + cudaEglFrameTypePitch = ( cyruntime.cudaEglFrameType_enum.cudaEglFrameTypePitch, 'Frame type CUDA pointer\n' - ){{endif}} - -{{endif}} -{{if True}} + ) class cudaEglResourceLocationFlags(_FastEnum): """ @@ -1874,1115 +1845,1094 @@ class cudaEglResourceLocationFlags(_FastEnum): CUDA. There may be an additional latency due to new allocation and data migration, if the frame is produced on a different memory. """ - {{if True}} + cudaEglResourceLocationSysmem = ( cyruntime.cudaEglResourceLocationFlags_enum.cudaEglResourceLocationSysmem, 'Resource location sysmem\n' - ){{endif}} - {{if True}} + ) + cudaEglResourceLocationVidmem = ( cyruntime.cudaEglResourceLocationFlags_enum.cudaEglResourceLocationVidmem, 'Resource location vidmem\n' - ){{endif}} - -{{endif}} -{{if True}} + ) class cudaEglColorFormat(_FastEnum): """ CUDA EGL Color Format - The different planar and multiplanar formats currently supported for CUDA_EGL interops. """ - {{if True}} + cudaEglColorFormatYUV420Planar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV420Planar, 'Y, U, V in three surfaces, each in a separate surface, U/V width = 1/2 Y\n' 'width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV420SemiPlanar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV420SemiPlanar, 'Y, UV in two surfaces (UV as one surface) with VU byte ordering, width,\n' 'height ratio same as YUV420Planar.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV422Planar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV422Planar, 'Y, U, V each in a separate surface, U/V width = 1/2 Y width, U/V height = Y\n' 'height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV422SemiPlanar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV422SemiPlanar, 'Y, UV in two surfaces with VU byte ordering, width, height ratio same as\n' 'YUV422Planar.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatARGB = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatARGB, 'R/G/B/A four channels in one surface with BGRA byte ordering.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatRGBA = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatRGBA, 'R/G/B/A four channels in one surface with ABGR byte ordering.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatL = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatL, 'single luminance channel in one surface.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatR = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatR, 'single color channel in one surface.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV444Planar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV444Planar, 'Y, U, V in three surfaces, each in a separate surface, U/V width = Y width,\n' 'U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV444SemiPlanar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV444SemiPlanar, 'Y, UV in two surfaces (UV as one surface) with VU byte ordering, width,\n' 'height ratio same as YUV444Planar.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUYV422 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUYV422, 'Y, U, V in one surface, interleaved as UYVY in one channel.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatUYVY422 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatUYVY422, 'Y, U, V in one surface, interleaved as YUYV in one channel.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatABGR = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatABGR, 'R/G/B/A four channels in one surface with RGBA byte ordering.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBGRA = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBGRA, 'R/G/B/A four channels in one surface with ARGB byte ordering.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatA = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatA, 'Alpha color format - one channel in one surface.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatRG = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatRG, 'R/G color format - two channels in one surface with GR byte ordering\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatAYUV = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatAYUV, 'Y, U, V, A four channels in one surface, interleaved as VUYA.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU444SemiPlanar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU444SemiPlanar, 'Y, VU in two surfaces (VU as one surface) with UV byte ordering, U/V width\n' '= Y width, U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU422SemiPlanar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU422SemiPlanar, 'Y, VU in two surfaces (VU as one surface) with UV byte ordering, U/V width\n' '= 1/2 Y width, U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU420SemiPlanar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU420SemiPlanar, 'Y, VU in two surfaces (VU as one surface) with UV byte ordering, U/V width\n' '= 1/2 Y width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY10V10U10_444SemiPlanar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_444SemiPlanar, 'Y10, V10U10 in two surfaces (VU as one surface) with UV byte ordering, U/V\n' 'width = Y width, U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY10V10U10_420SemiPlanar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_420SemiPlanar, 'Y10, V10U10 in two surfaces (VU as one surface) with UV byte ordering, U/V\n' 'width = 1/2 Y width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY12V12U12_444SemiPlanar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY12V12U12_444SemiPlanar, 'Y12, V12U12 in two surfaces (VU as one surface) with UV byte ordering, U/V\n' 'width = Y width, U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY12V12U12_420SemiPlanar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY12V12U12_420SemiPlanar, 'Y12, V12U12 in two surfaces (VU as one surface) with UV byte ordering, U/V\n' 'width = 1/2 Y width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatVYUY_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatVYUY_ER, 'Extended Range Y, U, V in one surface, interleaved as YVYU in one channel.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatUYVY_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatUYVY_ER, 'Extended Range Y, U, V in one surface, interleaved as YUYV in one channel.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUYV_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUYV_ER, 'Extended Range Y, U, V in one surface, interleaved as UYVY in one channel.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVYU_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVYU_ER, 'Extended Range Y, U, V in one surface, interleaved as VYUY in one channel.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUVA_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUVA_ER, 'Extended Range Y, U, V, A four channels in one surface, interleaved as\n' 'AVUY.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatAYUV_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatAYUV_ER, 'Extended Range Y, U, V, A four channels in one surface, interleaved as\n' 'VUYA.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV444Planar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV444Planar_ER, 'Extended Range Y, U, V in three surfaces, U/V width = Y width, U/V height =\n' 'Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV422Planar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV422Planar_ER, 'Extended Range Y, U, V in three surfaces, U/V width = 1/2 Y width, U/V\n' 'height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV420Planar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV420Planar_ER, 'Extended Range Y, U, V in three surfaces, U/V width = 1/2 Y width, U/V\n' 'height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV444SemiPlanar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV444SemiPlanar_ER, 'Extended Range Y, UV in two surfaces (UV as one surface) with VU byte\n' 'ordering, U/V width = Y width, U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV422SemiPlanar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV422SemiPlanar_ER, 'Extended Range Y, UV in two surfaces (UV as one surface) with VU byte\n' 'ordering, U/V width = 1/2 Y width, U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV420SemiPlanar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV420SemiPlanar_ER, 'Extended Range Y, UV in two surfaces (UV as one surface) with VU byte\n' 'ordering, U/V width = 1/2 Y width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU444Planar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU444Planar_ER, 'Extended Range Y, V, U in three surfaces, U/V width = Y width, U/V height =\n' 'Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU422Planar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU422Planar_ER, 'Extended Range Y, V, U in three surfaces, U/V width = 1/2 Y width, U/V\n' 'height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU420Planar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU420Planar_ER, 'Extended Range Y, V, U in three surfaces, U/V width = 1/2 Y width, U/V\n' 'height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU444SemiPlanar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU444SemiPlanar_ER, 'Extended Range Y, VU in two surfaces (VU as one surface) with UV byte\n' 'ordering, U/V width = Y width, U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU422SemiPlanar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU422SemiPlanar_ER, 'Extended Range Y, VU in two surfaces (VU as one surface) with UV byte\n' 'ordering, U/V width = 1/2 Y width, U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU420SemiPlanar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU420SemiPlanar_ER, 'Extended Range Y, VU in two surfaces (VU as one surface) with UV byte\n' 'ordering, U/V width = 1/2 Y width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayerRGGB = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerRGGB, 'Bayer format - one channel in one surface with interleaved RGGB ordering.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayerBGGR = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerBGGR, 'Bayer format - one channel in one surface with interleaved BGGR ordering.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayerGRBG = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerGRBG, 'Bayer format - one channel in one surface with interleaved GRBG ordering.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayerGBRG = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerGBRG, 'Bayer format - one channel in one surface with interleaved GBRG ordering.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer10RGGB = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer10RGGB, 'Bayer10 format - one channel in one surface with interleaved RGGB ordering.\n' 'Out of 16 bits, 10 bits used 6 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer10BGGR = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer10BGGR, 'Bayer10 format - one channel in one surface with interleaved BGGR ordering.\n' 'Out of 16 bits, 10 bits used 6 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer10GRBG = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer10GRBG, 'Bayer10 format - one channel in one surface with interleaved GRBG ordering.\n' 'Out of 16 bits, 10 bits used 6 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer10GBRG = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer10GBRG, 'Bayer10 format - one channel in one surface with interleaved GBRG ordering.\n' 'Out of 16 bits, 10 bits used 6 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer12RGGB = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer12RGGB, 'Bayer12 format - one channel in one surface with interleaved RGGB ordering.\n' 'Out of 16 bits, 12 bits used 4 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer12BGGR = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer12BGGR, 'Bayer12 format - one channel in one surface with interleaved BGGR ordering.\n' 'Out of 16 bits, 12 bits used 4 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer12GRBG = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer12GRBG, 'Bayer12 format - one channel in one surface with interleaved GRBG ordering.\n' 'Out of 16 bits, 12 bits used 4 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer12GBRG = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer12GBRG, 'Bayer12 format - one channel in one surface with interleaved GBRG ordering.\n' 'Out of 16 bits, 12 bits used 4 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer14RGGB = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer14RGGB, 'Bayer14 format - one channel in one surface with interleaved RGGB ordering.\n' 'Out of 16 bits, 14 bits used 2 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer14BGGR = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer14BGGR, 'Bayer14 format - one channel in one surface with interleaved BGGR ordering.\n' 'Out of 16 bits, 14 bits used 2 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer14GRBG = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer14GRBG, 'Bayer14 format - one channel in one surface with interleaved GRBG ordering.\n' 'Out of 16 bits, 14 bits used 2 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer14GBRG = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer14GBRG, 'Bayer14 format - one channel in one surface with interleaved GBRG ordering.\n' 'Out of 16 bits, 14 bits used 2 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer20RGGB = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer20RGGB, 'Bayer20 format - one channel in one surface with interleaved RGGB ordering.\n' 'Out of 32 bits, 20 bits used 12 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer20BGGR = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer20BGGR, 'Bayer20 format - one channel in one surface with interleaved BGGR ordering.\n' 'Out of 32 bits, 20 bits used 12 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer20GRBG = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer20GRBG, 'Bayer20 format - one channel in one surface with interleaved GRBG ordering.\n' 'Out of 32 bits, 20 bits used 12 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer20GBRG = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer20GBRG, 'Bayer20 format - one channel in one surface with interleaved GBRG ordering.\n' 'Out of 32 bits, 20 bits used 12 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU444Planar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU444Planar, 'Y, V, U in three surfaces, each in a separate surface, U/V width = Y width,\n' 'U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU422Planar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU422Planar, 'Y, V, U in three surfaces, each in a separate surface, U/V width = 1/2 Y\n' 'width, U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU420Planar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU420Planar, 'Y, V, U in three surfaces, each in a separate surface, U/V width = 1/2 Y\n' 'width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayerIspRGGB = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerIspRGGB, 'Nvidia proprietary Bayer ISP format - one channel in one surface with\n' 'interleaved RGGB ordering and mapped to opaque integer datatype.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayerIspBGGR = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerIspBGGR, 'Nvidia proprietary Bayer ISP format - one channel in one surface with\n' 'interleaved BGGR ordering and mapped to opaque integer datatype.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayerIspGRBG = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerIspGRBG, 'Nvidia proprietary Bayer ISP format - one channel in one surface with\n' 'interleaved GRBG ordering and mapped to opaque integer datatype.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayerIspGBRG = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerIspGBRG, 'Nvidia proprietary Bayer ISP format - one channel in one surface with\n' 'interleaved GBRG ordering and mapped to opaque integer datatype.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayerBCCR = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerBCCR, 'Bayer format - one channel in one surface with interleaved BCCR ordering.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayerRCCB = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerRCCB, 'Bayer format - one channel in one surface with interleaved RCCB ordering.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayerCRBC = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerCRBC, 'Bayer format - one channel in one surface with interleaved CRBC ordering.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayerCBRC = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerCBRC, 'Bayer format - one channel in one surface with interleaved CBRC ordering.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer10CCCC = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer10CCCC, 'Bayer10 format - one channel in one surface with interleaved CCCC ordering.\n' 'Out of 16 bits, 10 bits used 6 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer12BCCR = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer12BCCR, 'Bayer12 format - one channel in one surface with interleaved BCCR ordering.\n' 'Out of 16 bits, 12 bits used 4 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer12RCCB = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer12RCCB, 'Bayer12 format - one channel in one surface with interleaved RCCB ordering.\n' 'Out of 16 bits, 12 bits used 4 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer12CRBC = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer12CRBC, 'Bayer12 format - one channel in one surface with interleaved CRBC ordering.\n' 'Out of 16 bits, 12 bits used 4 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer12CBRC = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer12CBRC, 'Bayer12 format - one channel in one surface with interleaved CBRC ordering.\n' 'Out of 16 bits, 12 bits used 4 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer12CCCC = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer12CCCC, 'Bayer12 format - one channel in one surface with interleaved CCCC ordering.\n' 'Out of 16 bits, 12 bits used 4 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY, 'Color format for single Y plane.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV420SemiPlanar_2020 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV420SemiPlanar_2020, 'Y, UV in two surfaces (UV as one surface) U/V width = 1/2 Y width, U/V\n' 'height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU420SemiPlanar_2020 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU420SemiPlanar_2020, 'Y, VU in two surfaces (VU as one surface) U/V width = 1/2 Y width, U/V\n' 'height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV420Planar_2020 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV420Planar_2020, 'Y, U, V in three surfaces, each in a separate surface, U/V width = 1/2 Y\n' 'width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU420Planar_2020 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU420Planar_2020, 'Y, V, U in three surfaces, each in a separate surface, U/V width = 1/2 Y\n' 'width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV420SemiPlanar_709 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV420SemiPlanar_709, 'Y, UV in two surfaces (UV as one surface) U/V width = 1/2 Y width, U/V\n' 'height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU420SemiPlanar_709 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU420SemiPlanar_709, 'Y, VU in two surfaces (VU as one surface) U/V width = 1/2 Y width, U/V\n' 'height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV420Planar_709 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV420Planar_709, 'Y, U, V in three surfaces, each in a separate surface, U/V width = 1/2 Y\n' 'width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU420Planar_709 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU420Planar_709, 'Y, V, U in three surfaces, each in a separate surface, U/V width = 1/2 Y\n' 'width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY10V10U10_420SemiPlanar_709 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_420SemiPlanar_709, 'Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y width,\n' 'U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY10V10U10_420SemiPlanar_2020 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_420SemiPlanar_2020, 'Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y width,\n' 'U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY10V10U10_422SemiPlanar_2020 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_422SemiPlanar_2020, 'Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y width,\n' 'U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY10V10U10_422SemiPlanar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_422SemiPlanar, 'Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y width,\n' 'U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY10V10U10_422SemiPlanar_709 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_422SemiPlanar_709, 'Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y width,\n' 'U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY_ER, 'Extended Range Color format for single Y plane.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY_709_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY_709_ER, 'Extended Range Color format for single Y plane.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY10_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10_ER, 'Extended Range Color format for single Y10 plane.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY10_709_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10_709_ER, 'Extended Range Color format for single Y10 plane.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY12_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY12_ER, 'Extended Range Color format for single Y12 plane.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY12_709_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY12_709_ER, 'Extended Range Color format for single Y12 plane.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUVA = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUVA, 'Y, U, V, A four channels in one surface, interleaved as AVUY.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVYU = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVYU, 'Y, U, V in one surface, interleaved as YVYU in one channel.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatVYUY = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatVYUY, 'Y, U, V in one surface, interleaved as VYUY in one channel.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY10V10U10_420SemiPlanar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_420SemiPlanar_ER, 'Extended Range Y10, V10U10 in two surfaces (VU as one surface) U/V width =\n' '1/2 Y width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY10V10U10_420SemiPlanar_709_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_420SemiPlanar_709_ER, 'Extended Range Y10, V10U10 in two surfaces (VU as one surface) U/V width =\n' '1/2 Y width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY10V10U10_444SemiPlanar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_444SemiPlanar_ER, 'Extended Range Y10, V10U10 in two surfaces (VU as one surface) U/V width =\n' 'Y width, U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY10V10U10_444SemiPlanar_709_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_444SemiPlanar_709_ER, 'Extended Range Y10, V10U10 in two surfaces (VU as one surface) U/V width =\n' 'Y width, U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY12V12U12_420SemiPlanar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY12V12U12_420SemiPlanar_ER, 'Extended Range Y12, V12U12 in two surfaces (VU as one surface) U/V width =\n' '1/2 Y width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY12V12U12_420SemiPlanar_709_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY12V12U12_420SemiPlanar_709_ER, 'Extended Range Y12, V12U12 in two surfaces (VU as one surface) U/V width =\n' '1/2 Y width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY12V12U12_444SemiPlanar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY12V12U12_444SemiPlanar_ER, 'Extended Range Y12, V12U12 in two surfaces (VU as one surface) U/V width =\n' 'Y width, U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER, 'Extended Range Y12, V12U12 in two surfaces (VU as one surface) U/V width =\n' 'Y width, U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatUYVY709 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatUYVY709, 'Y, U, V in one surface, interleaved as UYVY in one channel.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatUYVY709_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatUYVY709_ER, 'Extended Range Y, U, V in one surface, interleaved as UYVY in one channel.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatUYVY2020 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatUYVY2020, 'Y, U, V in one surface, interleaved as UYVY in one channel.\n' - ){{endif}} - -{{endif}} -{{if 'cudaChannelFormatKind' in found_types}} + ) class cudaChannelFormatKind(_FastEnum): """ Channel format kind """ - {{if 'cudaChannelFormatKindSigned' in found_values}} + cudaChannelFormatKindSigned = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSigned, 'Signed channel format\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsigned' in found_values}} + ) + cudaChannelFormatKindUnsigned = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsigned, 'Unsigned channel format\n' - ){{endif}} - {{if 'cudaChannelFormatKindFloat' in found_values}} + ) + cudaChannelFormatKindFloat = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindFloat, 'Float channel format\n' - ){{endif}} - {{if 'cudaChannelFormatKindNone' in found_values}} + ) + cudaChannelFormatKindNone = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindNone, 'No channel format\n' - ){{endif}} - {{if 'cudaChannelFormatKindNV12' in found_values}} + ) + cudaChannelFormatKindNV12 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindNV12, 'Unsigned 8-bit integers, planar 4:2:0 YUV format\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedNormalized8X1' in found_values}} + ) + cudaChannelFormatKindUnsignedNormalized8X1 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized8X1, '1 channel unsigned 8-bit normalized integer\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedNormalized8X2' in found_values}} + ) + cudaChannelFormatKindUnsignedNormalized8X2 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized8X2, '2 channel unsigned 8-bit normalized integer\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedNormalized8X4' in found_values}} + ) + cudaChannelFormatKindUnsignedNormalized8X4 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized8X4, '4 channel unsigned 8-bit normalized integer\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedNormalized16X1' in found_values}} + ) + cudaChannelFormatKindUnsignedNormalized16X1 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized16X1, '1 channel unsigned 16-bit normalized integer\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedNormalized16X2' in found_values}} + ) + cudaChannelFormatKindUnsignedNormalized16X2 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized16X2, '2 channel unsigned 16-bit normalized integer\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedNormalized16X4' in found_values}} + ) + cudaChannelFormatKindUnsignedNormalized16X4 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized16X4, '4 channel unsigned 16-bit normalized integer\n' - ){{endif}} - {{if 'cudaChannelFormatKindSignedNormalized8X1' in found_values}} + ) + cudaChannelFormatKindSignedNormalized8X1 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSignedNormalized8X1, '1 channel signed 8-bit normalized integer\n' - ){{endif}} - {{if 'cudaChannelFormatKindSignedNormalized8X2' in found_values}} + ) + cudaChannelFormatKindSignedNormalized8X2 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSignedNormalized8X2, '2 channel signed 8-bit normalized integer\n' - ){{endif}} - {{if 'cudaChannelFormatKindSignedNormalized8X4' in found_values}} + ) + cudaChannelFormatKindSignedNormalized8X4 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSignedNormalized8X4, '4 channel signed 8-bit normalized integer\n' - ){{endif}} - {{if 'cudaChannelFormatKindSignedNormalized16X1' in found_values}} + ) + cudaChannelFormatKindSignedNormalized16X1 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSignedNormalized16X1, '1 channel signed 16-bit normalized integer\n' - ){{endif}} - {{if 'cudaChannelFormatKindSignedNormalized16X2' in found_values}} + ) + cudaChannelFormatKindSignedNormalized16X2 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSignedNormalized16X2, '2 channel signed 16-bit normalized integer\n' - ){{endif}} - {{if 'cudaChannelFormatKindSignedNormalized16X4' in found_values}} + ) + cudaChannelFormatKindSignedNormalized16X4 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSignedNormalized16X4, '4 channel signed 16-bit normalized integer\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedBlockCompressed1' in found_values}} + ) + cudaChannelFormatKindUnsignedBlockCompressed1 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed1, '4 channel unsigned normalized block-compressed (BC1 compression) format\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedBlockCompressed1SRGB' in found_values}} + ) + cudaChannelFormatKindUnsignedBlockCompressed1SRGB = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed1SRGB, '4 channel unsigned normalized block-compressed (BC1 compression) format\n' 'with sRGB encoding\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedBlockCompressed2' in found_values}} + ) + cudaChannelFormatKindUnsignedBlockCompressed2 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed2, '4 channel unsigned normalized block-compressed (BC2 compression) format\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedBlockCompressed2SRGB' in found_values}} + ) + cudaChannelFormatKindUnsignedBlockCompressed2SRGB = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed2SRGB, '4 channel unsigned normalized block-compressed (BC2 compression) format\n' 'with sRGB encoding\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedBlockCompressed3' in found_values}} + ) + cudaChannelFormatKindUnsignedBlockCompressed3 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed3, '4 channel unsigned normalized block-compressed (BC3 compression) format\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedBlockCompressed3SRGB' in found_values}} + ) + cudaChannelFormatKindUnsignedBlockCompressed3SRGB = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed3SRGB, '4 channel unsigned normalized block-compressed (BC3 compression) format\n' 'with sRGB encoding\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedBlockCompressed4' in found_values}} + ) + cudaChannelFormatKindUnsignedBlockCompressed4 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed4, '1 channel unsigned normalized block-compressed (BC4 compression) format\n' - ){{endif}} - {{if 'cudaChannelFormatKindSignedBlockCompressed4' in found_values}} + ) + cudaChannelFormatKindSignedBlockCompressed4 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSignedBlockCompressed4, '1 channel signed normalized block-compressed (BC4 compression) format\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedBlockCompressed5' in found_values}} + ) + cudaChannelFormatKindUnsignedBlockCompressed5 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed5, '2 channel unsigned normalized block-compressed (BC5 compression) format\n' - ){{endif}} - {{if 'cudaChannelFormatKindSignedBlockCompressed5' in found_values}} + ) + cudaChannelFormatKindSignedBlockCompressed5 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSignedBlockCompressed5, '2 channel signed normalized block-compressed (BC5 compression) format\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedBlockCompressed6H' in found_values}} + ) + cudaChannelFormatKindUnsignedBlockCompressed6H = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed6H, '3 channel unsigned half-float block-compressed (BC6H compression) format\n' - ){{endif}} - {{if 'cudaChannelFormatKindSignedBlockCompressed6H' in found_values}} + ) + cudaChannelFormatKindSignedBlockCompressed6H = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSignedBlockCompressed6H, '3 channel signed half-float block-compressed (BC6H compression) format\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedBlockCompressed7' in found_values}} + ) + cudaChannelFormatKindUnsignedBlockCompressed7 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed7, '4 channel unsigned normalized block-compressed (BC7 compression) format\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedBlockCompressed7SRGB' in found_values}} + ) + cudaChannelFormatKindUnsignedBlockCompressed7SRGB = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed7SRGB, '4 channel unsigned normalized block-compressed (BC7 compression) format\n' 'with sRGB encoding\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedNormalized1010102' in found_values}} + ) + cudaChannelFormatKindUnsignedNormalized1010102 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized1010102, '4 channel unsigned normalized (10-bit, 10-bit, 10-bit, 2-bit) format\n' - ){{endif}} - -{{endif}} -{{if 'cudaMemoryType' in found_types}} + ) class cudaMemoryType(_FastEnum): """ CUDA memory types """ - {{if 'cudaMemoryTypeUnregistered' in found_values}} + cudaMemoryTypeUnregistered = ( cyruntime.cudaMemoryType.cudaMemoryTypeUnregistered, 'Unregistered memory\n' - ){{endif}} - {{if 'cudaMemoryTypeHost' in found_values}} + ) + cudaMemoryTypeHost = ( cyruntime.cudaMemoryType.cudaMemoryTypeHost, 'Host memory\n' - ){{endif}} - {{if 'cudaMemoryTypeDevice' in found_values}} + ) + cudaMemoryTypeDevice = ( cyruntime.cudaMemoryType.cudaMemoryTypeDevice, 'Device memory\n' - ){{endif}} - {{if 'cudaMemoryTypeManaged' in found_values}} + ) + cudaMemoryTypeManaged = ( cyruntime.cudaMemoryType.cudaMemoryTypeManaged, 'Managed memory\n' - ){{endif}} - -{{endif}} -{{if 'cudaMemcpyKind' in found_types}} + ) class cudaMemcpyKind(_FastEnum): """ CUDA memory copy types """ - {{if 'cudaMemcpyHostToHost' in found_values}} + cudaMemcpyHostToHost = ( cyruntime.cudaMemcpyKind.cudaMemcpyHostToHost, 'Host -> Host\n' - ){{endif}} - {{if 'cudaMemcpyHostToDevice' in found_values}} + ) + cudaMemcpyHostToDevice = ( cyruntime.cudaMemcpyKind.cudaMemcpyHostToDevice, 'Host -> Device\n' - ){{endif}} - {{if 'cudaMemcpyDeviceToHost' in found_values}} + ) + cudaMemcpyDeviceToHost = ( cyruntime.cudaMemcpyKind.cudaMemcpyDeviceToHost, 'Device -> Host\n' - ){{endif}} - {{if 'cudaMemcpyDeviceToDevice' in found_values}} + ) + cudaMemcpyDeviceToDevice = ( cyruntime.cudaMemcpyKind.cudaMemcpyDeviceToDevice, 'Device -> Device\n' - ){{endif}} - {{if 'cudaMemcpyDefault' in found_values}} + ) + cudaMemcpyDefault = ( cyruntime.cudaMemcpyKind.cudaMemcpyDefault, 'Direction of the transfer is inferred from the pointer values. Requires\n' 'unified virtual addressing\n' - ){{endif}} - -{{endif}} -{{if 'cudaAccessProperty' in found_types}} + ) class cudaAccessProperty(_FastEnum): """ Specifies performance hint with :py:obj:`~.cudaAccessPolicyWindow` for hitProp and missProp members. """ - {{if 'cudaAccessPropertyNormal' in found_values}} + cudaAccessPropertyNormal = ( cyruntime.cudaAccessProperty.cudaAccessPropertyNormal, 'Normal cache persistence.\n' - ){{endif}} - {{if 'cudaAccessPropertyStreaming' in found_values}} + ) + cudaAccessPropertyStreaming = ( cyruntime.cudaAccessProperty.cudaAccessPropertyStreaming, 'Streaming access is less likely to persit from cache.\n' - ){{endif}} - {{if 'cudaAccessPropertyPersisting' in found_values}} + ) + cudaAccessPropertyPersisting = ( cyruntime.cudaAccessProperty.cudaAccessPropertyPersisting, 'Persisting access is more likely to persist in cache.\n' - ){{endif}} - -{{endif}} -{{if 'cudaStreamCaptureStatus' in found_types}} + ) class cudaStreamCaptureStatus(_FastEnum): """ Possible stream capture statuses returned by :py:obj:`~.cudaStreamIsCapturing` """ - {{if 'cudaStreamCaptureStatusNone' in found_values}} + cudaStreamCaptureStatusNone = ( cyruntime.cudaStreamCaptureStatus.cudaStreamCaptureStatusNone, 'Stream is not capturing\n' - ){{endif}} - {{if 'cudaStreamCaptureStatusActive' in found_values}} + ) + cudaStreamCaptureStatusActive = ( cyruntime.cudaStreamCaptureStatus.cudaStreamCaptureStatusActive, 'Stream is actively capturing\n' - ){{endif}} - {{if 'cudaStreamCaptureStatusInvalidated' in found_values}} + ) + cudaStreamCaptureStatusInvalidated = ( cyruntime.cudaStreamCaptureStatus.cudaStreamCaptureStatusInvalidated, 'Stream is part of a capture sequence that has been invalidated, but not\n' 'terminated\n' - ){{endif}} - -{{endif}} -{{if 'cudaStreamCaptureMode' in found_types}} + ) class cudaStreamCaptureMode(_FastEnum): """ @@ -2990,1546 +2940,1477 @@ class cudaStreamCaptureMode(_FastEnum): details see :py:obj:`~.cudaStreamBeginCapture` and :py:obj:`~.cudaThreadExchangeStreamCaptureMode` """ - {{if 'cudaStreamCaptureModeGlobal' in found_values}} - cudaStreamCaptureModeGlobal = cyruntime.cudaStreamCaptureMode.cudaStreamCaptureModeGlobal{{endif}} - {{if 'cudaStreamCaptureModeThreadLocal' in found_values}} - cudaStreamCaptureModeThreadLocal = cyruntime.cudaStreamCaptureMode.cudaStreamCaptureModeThreadLocal{{endif}} - {{if 'cudaStreamCaptureModeRelaxed' in found_values}} - cudaStreamCaptureModeRelaxed = cyruntime.cudaStreamCaptureMode.cudaStreamCaptureModeRelaxed{{endif}} -{{endif}} -{{if 'cudaSynchronizationPolicy' in found_types}} + cudaStreamCaptureModeGlobal = cyruntime.cudaStreamCaptureMode.cudaStreamCaptureModeGlobal + + cudaStreamCaptureModeThreadLocal = cyruntime.cudaStreamCaptureMode.cudaStreamCaptureModeThreadLocal + + cudaStreamCaptureModeRelaxed = cyruntime.cudaStreamCaptureMode.cudaStreamCaptureModeRelaxed class cudaSynchronizationPolicy(_FastEnum): """ """ - {{if 'cudaSyncPolicyAuto' in found_values}} - cudaSyncPolicyAuto = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicyAuto{{endif}} - {{if 'cudaSyncPolicySpin' in found_values}} - cudaSyncPolicySpin = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicySpin{{endif}} - {{if 'cudaSyncPolicyYield' in found_values}} - cudaSyncPolicyYield = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicyYield{{endif}} - {{if 'cudaSyncPolicyBlockingSync' in found_values}} - cudaSyncPolicyBlockingSync = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicyBlockingSync{{endif}} -{{endif}} -{{if 'cudaClusterSchedulingPolicy' in found_types}} + cudaSyncPolicyAuto = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicyAuto + + cudaSyncPolicySpin = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicySpin + + cudaSyncPolicyYield = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicyYield + + cudaSyncPolicyBlockingSync = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicyBlockingSync class cudaClusterSchedulingPolicy(_FastEnum): """ Cluster scheduling policies. These may be passed to :py:obj:`~.cudaFuncSetAttribute` """ - {{if 'cudaClusterSchedulingPolicyDefault' in found_values}} + cudaClusterSchedulingPolicyDefault = ( cyruntime.cudaClusterSchedulingPolicy.cudaClusterSchedulingPolicyDefault, 'the default policy\n' - ){{endif}} - {{if 'cudaClusterSchedulingPolicySpread' in found_values}} + ) + cudaClusterSchedulingPolicySpread = ( cyruntime.cudaClusterSchedulingPolicy.cudaClusterSchedulingPolicySpread, 'spread the blocks within a cluster to the SMs\n' - ){{endif}} - {{if 'cudaClusterSchedulingPolicyLoadBalancing' in found_values}} + ) + cudaClusterSchedulingPolicyLoadBalancing = ( cyruntime.cudaClusterSchedulingPolicy.cudaClusterSchedulingPolicyLoadBalancing, 'allow the hardware to load-balance the blocks in a cluster to the SMs\n' - ){{endif}} - -{{endif}} -{{if 'cudaStreamUpdateCaptureDependenciesFlags' in found_types}} + ) class cudaStreamUpdateCaptureDependenciesFlags(_FastEnum): """ Flags for :py:obj:`~.cudaStreamUpdateCaptureDependencies` """ - {{if 'cudaStreamAddCaptureDependencies' in found_values}} + cudaStreamAddCaptureDependencies = ( cyruntime.cudaStreamUpdateCaptureDependenciesFlags.cudaStreamAddCaptureDependencies, 'Add new nodes to the dependency set\n' - ){{endif}} - {{if 'cudaStreamSetCaptureDependencies' in found_values}} + ) + cudaStreamSetCaptureDependencies = ( cyruntime.cudaStreamUpdateCaptureDependenciesFlags.cudaStreamSetCaptureDependencies, 'Replace the dependency set with the new nodes\n' - ){{endif}} - -{{endif}} -{{if 'cudaUserObjectFlags' in found_types}} + ) class cudaUserObjectFlags(_FastEnum): """ Flags for user objects for graphs """ - {{if 'cudaUserObjectNoDestructorSync' in found_values}} + cudaUserObjectNoDestructorSync = ( cyruntime.cudaUserObjectFlags.cudaUserObjectNoDestructorSync, 'Indicates the destructor execution is not synchronized by any CUDA handle.\n' - ){{endif}} - -{{endif}} -{{if 'cudaUserObjectRetainFlags' in found_types}} + ) class cudaUserObjectRetainFlags(_FastEnum): """ Flags for retaining user object references for graphs """ - {{if 'cudaGraphUserObjectMove' in found_values}} + cudaGraphUserObjectMove = ( cyruntime.cudaUserObjectRetainFlags.cudaGraphUserObjectMove, 'Transfer references from the caller rather than creating new references.\n' - ){{endif}} - -{{endif}} -{{if 'cudaGraphicsRegisterFlags' in found_types}} + ) class cudaGraphicsRegisterFlags(_FastEnum): """ CUDA graphics interop register flags """ - {{if 'cudaGraphicsRegisterFlagsNone' in found_values}} + cudaGraphicsRegisterFlagsNone = ( cyruntime.cudaGraphicsRegisterFlags.cudaGraphicsRegisterFlagsNone, 'Default\n' - ){{endif}} - {{if 'cudaGraphicsRegisterFlagsReadOnly' in found_values}} + ) + cudaGraphicsRegisterFlagsReadOnly = ( cyruntime.cudaGraphicsRegisterFlags.cudaGraphicsRegisterFlagsReadOnly, 'CUDA will not write to this resource\n' - ){{endif}} - {{if 'cudaGraphicsRegisterFlagsWriteDiscard' in found_values}} + ) + cudaGraphicsRegisterFlagsWriteDiscard = ( cyruntime.cudaGraphicsRegisterFlags.cudaGraphicsRegisterFlagsWriteDiscard, 'CUDA will only write to and will not read from this resource\n' - ){{endif}} - {{if 'cudaGraphicsRegisterFlagsSurfaceLoadStore' in found_values}} + ) + cudaGraphicsRegisterFlagsSurfaceLoadStore = ( cyruntime.cudaGraphicsRegisterFlags.cudaGraphicsRegisterFlagsSurfaceLoadStore, 'CUDA will bind this resource to a surface reference\n' - ){{endif}} - {{if 'cudaGraphicsRegisterFlagsTextureGather' in found_values}} + ) + cudaGraphicsRegisterFlagsTextureGather = ( cyruntime.cudaGraphicsRegisterFlags.cudaGraphicsRegisterFlagsTextureGather, 'CUDA will perform texture gather operations on this resource\n' - ){{endif}} - -{{endif}} -{{if 'cudaGraphicsMapFlags' in found_types}} + ) class cudaGraphicsMapFlags(_FastEnum): """ CUDA graphics interop map flags """ - {{if 'cudaGraphicsMapFlagsNone' in found_values}} + cudaGraphicsMapFlagsNone = ( cyruntime.cudaGraphicsMapFlags.cudaGraphicsMapFlagsNone, 'Default; Assume resource can be read/written\n' - ){{endif}} - {{if 'cudaGraphicsMapFlagsReadOnly' in found_values}} + ) + cudaGraphicsMapFlagsReadOnly = ( cyruntime.cudaGraphicsMapFlags.cudaGraphicsMapFlagsReadOnly, 'CUDA will not write to this resource\n' - ){{endif}} - {{if 'cudaGraphicsMapFlagsWriteDiscard' in found_values}} + ) + cudaGraphicsMapFlagsWriteDiscard = ( cyruntime.cudaGraphicsMapFlags.cudaGraphicsMapFlagsWriteDiscard, 'CUDA will only write to and will not read from this resource\n' - ){{endif}} - -{{endif}} -{{if 'cudaGraphicsCubeFace' in found_types}} + ) class cudaGraphicsCubeFace(_FastEnum): """ CUDA graphics interop array indices for cube maps """ - {{if 'cudaGraphicsCubeFacePositiveX' in found_values}} + cudaGraphicsCubeFacePositiveX = ( cyruntime.cudaGraphicsCubeFace.cudaGraphicsCubeFacePositiveX, 'Positive X face of cubemap\n' - ){{endif}} - {{if 'cudaGraphicsCubeFaceNegativeX' in found_values}} + ) + cudaGraphicsCubeFaceNegativeX = ( cyruntime.cudaGraphicsCubeFace.cudaGraphicsCubeFaceNegativeX, 'Negative X face of cubemap\n' - ){{endif}} - {{if 'cudaGraphicsCubeFacePositiveY' in found_values}} + ) + cudaGraphicsCubeFacePositiveY = ( cyruntime.cudaGraphicsCubeFace.cudaGraphicsCubeFacePositiveY, 'Positive Y face of cubemap\n' - ){{endif}} - {{if 'cudaGraphicsCubeFaceNegativeY' in found_values}} + ) + cudaGraphicsCubeFaceNegativeY = ( cyruntime.cudaGraphicsCubeFace.cudaGraphicsCubeFaceNegativeY, 'Negative Y face of cubemap\n' - ){{endif}} - {{if 'cudaGraphicsCubeFacePositiveZ' in found_values}} + ) + cudaGraphicsCubeFacePositiveZ = ( cyruntime.cudaGraphicsCubeFace.cudaGraphicsCubeFacePositiveZ, 'Positive Z face of cubemap\n' - ){{endif}} - {{if 'cudaGraphicsCubeFaceNegativeZ' in found_values}} + ) + cudaGraphicsCubeFaceNegativeZ = ( cyruntime.cudaGraphicsCubeFace.cudaGraphicsCubeFaceNegativeZ, 'Negative Z face of cubemap\n' - ){{endif}} - -{{endif}} -{{if 'cudaResourceType' in found_types}} + ) class cudaResourceType(_FastEnum): """ CUDA resource types """ - {{if 'cudaResourceTypeArray' in found_values}} + cudaResourceTypeArray = ( cyruntime.cudaResourceType.cudaResourceTypeArray, 'Array resource\n' - ){{endif}} - {{if 'cudaResourceTypeMipmappedArray' in found_values}} + ) + cudaResourceTypeMipmappedArray = ( cyruntime.cudaResourceType.cudaResourceTypeMipmappedArray, 'Mipmapped array resource\n' - ){{endif}} - {{if 'cudaResourceTypeLinear' in found_values}} + ) + cudaResourceTypeLinear = ( cyruntime.cudaResourceType.cudaResourceTypeLinear, 'Linear resource\n' - ){{endif}} - {{if 'cudaResourceTypePitch2D' in found_values}} + ) + cudaResourceTypePitch2D = ( cyruntime.cudaResourceType.cudaResourceTypePitch2D, 'Pitch 2D resource\n' - ){{endif}} - -{{endif}} -{{if 'cudaResourceViewFormat' in found_types}} + ) class cudaResourceViewFormat(_FastEnum): """ CUDA texture resource view formats """ - {{if 'cudaResViewFormatNone' in found_values}} + cudaResViewFormatNone = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatNone, 'No resource view format (use underlying resource format)\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedChar1' in found_values}} + ) + cudaResViewFormatUnsignedChar1 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedChar1, '1 channel unsigned 8-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedChar2' in found_values}} + ) + cudaResViewFormatUnsignedChar2 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedChar2, '2 channel unsigned 8-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedChar4' in found_values}} + ) + cudaResViewFormatUnsignedChar4 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedChar4, '4 channel unsigned 8-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatSignedChar1' in found_values}} + ) + cudaResViewFormatSignedChar1 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedChar1, '1 channel signed 8-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatSignedChar2' in found_values}} + ) + cudaResViewFormatSignedChar2 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedChar2, '2 channel signed 8-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatSignedChar4' in found_values}} + ) + cudaResViewFormatSignedChar4 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedChar4, '4 channel signed 8-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedShort1' in found_values}} + ) + cudaResViewFormatUnsignedShort1 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedShort1, '1 channel unsigned 16-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedShort2' in found_values}} + ) + cudaResViewFormatUnsignedShort2 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedShort2, '2 channel unsigned 16-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedShort4' in found_values}} + ) + cudaResViewFormatUnsignedShort4 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedShort4, '4 channel unsigned 16-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatSignedShort1' in found_values}} + ) + cudaResViewFormatSignedShort1 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedShort1, '1 channel signed 16-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatSignedShort2' in found_values}} + ) + cudaResViewFormatSignedShort2 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedShort2, '2 channel signed 16-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatSignedShort4' in found_values}} + ) + cudaResViewFormatSignedShort4 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedShort4, '4 channel signed 16-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedInt1' in found_values}} + ) + cudaResViewFormatUnsignedInt1 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedInt1, '1 channel unsigned 32-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedInt2' in found_values}} + ) + cudaResViewFormatUnsignedInt2 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedInt2, '2 channel unsigned 32-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedInt4' in found_values}} + ) + cudaResViewFormatUnsignedInt4 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedInt4, '4 channel unsigned 32-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatSignedInt1' in found_values}} + ) + cudaResViewFormatSignedInt1 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedInt1, '1 channel signed 32-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatSignedInt2' in found_values}} + ) + cudaResViewFormatSignedInt2 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedInt2, '2 channel signed 32-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatSignedInt4' in found_values}} + ) + cudaResViewFormatSignedInt4 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedInt4, '4 channel signed 32-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatHalf1' in found_values}} + ) + cudaResViewFormatHalf1 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatHalf1, '1 channel 16-bit floating point\n' - ){{endif}} - {{if 'cudaResViewFormatHalf2' in found_values}} + ) + cudaResViewFormatHalf2 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatHalf2, '2 channel 16-bit floating point\n' - ){{endif}} - {{if 'cudaResViewFormatHalf4' in found_values}} + ) + cudaResViewFormatHalf4 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatHalf4, '4 channel 16-bit floating point\n' - ){{endif}} - {{if 'cudaResViewFormatFloat1' in found_values}} + ) + cudaResViewFormatFloat1 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatFloat1, '1 channel 32-bit floating point\n' - ){{endif}} - {{if 'cudaResViewFormatFloat2' in found_values}} + ) + cudaResViewFormatFloat2 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatFloat2, '2 channel 32-bit floating point\n' - ){{endif}} - {{if 'cudaResViewFormatFloat4' in found_values}} + ) + cudaResViewFormatFloat4 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatFloat4, '4 channel 32-bit floating point\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedBlockCompressed1' in found_values}} + ) + cudaResViewFormatUnsignedBlockCompressed1 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed1, 'Block compressed 1\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedBlockCompressed2' in found_values}} + ) + cudaResViewFormatUnsignedBlockCompressed2 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed2, 'Block compressed 2\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedBlockCompressed3' in found_values}} + ) + cudaResViewFormatUnsignedBlockCompressed3 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed3, 'Block compressed 3\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedBlockCompressed4' in found_values}} + ) + cudaResViewFormatUnsignedBlockCompressed4 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed4, 'Block compressed 4 unsigned\n' - ){{endif}} - {{if 'cudaResViewFormatSignedBlockCompressed4' in found_values}} + ) + cudaResViewFormatSignedBlockCompressed4 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedBlockCompressed4, 'Block compressed 4 signed\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedBlockCompressed5' in found_values}} + ) + cudaResViewFormatUnsignedBlockCompressed5 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed5, 'Block compressed 5 unsigned\n' - ){{endif}} - {{if 'cudaResViewFormatSignedBlockCompressed5' in found_values}} + ) + cudaResViewFormatSignedBlockCompressed5 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedBlockCompressed5, 'Block compressed 5 signed\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedBlockCompressed6H' in found_values}} + ) + cudaResViewFormatUnsignedBlockCompressed6H = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed6H, 'Block compressed 6 unsigned half-float\n' - ){{endif}} - {{if 'cudaResViewFormatSignedBlockCompressed6H' in found_values}} + ) + cudaResViewFormatSignedBlockCompressed6H = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedBlockCompressed6H, 'Block compressed 6 signed half-float\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedBlockCompressed7' in found_values}} + ) + cudaResViewFormatUnsignedBlockCompressed7 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed7, 'Block compressed 7\n' - ){{endif}} - -{{endif}} -{{if 'cudaFuncAttribute' in found_types}} + ) class cudaFuncAttribute(_FastEnum): """ CUDA function attributes that can be set using :py:obj:`~.cudaFuncSetAttribute` """ - {{if 'cudaFuncAttributeMaxDynamicSharedMemorySize' in found_values}} + cudaFuncAttributeMaxDynamicSharedMemorySize = ( cyruntime.cudaFuncAttribute.cudaFuncAttributeMaxDynamicSharedMemorySize, 'Maximum dynamic shared memory size\n' - ){{endif}} - {{if 'cudaFuncAttributePreferredSharedMemoryCarveout' in found_values}} + ) + cudaFuncAttributePreferredSharedMemoryCarveout = ( cyruntime.cudaFuncAttribute.cudaFuncAttributePreferredSharedMemoryCarveout, 'Preferred shared memory-L1 cache split\n' - ){{endif}} - {{if 'cudaFuncAttributeClusterDimMustBeSet' in found_values}} + ) + cudaFuncAttributeClusterDimMustBeSet = ( cyruntime.cudaFuncAttribute.cudaFuncAttributeClusterDimMustBeSet, 'Indicator to enforce valid cluster dimension specification on kernel launch\n' - ){{endif}} - {{if 'cudaFuncAttributeRequiredClusterWidth' in found_values}} + ) + cudaFuncAttributeRequiredClusterWidth = ( cyruntime.cudaFuncAttribute.cudaFuncAttributeRequiredClusterWidth, 'Required cluster width\n' - ){{endif}} - {{if 'cudaFuncAttributeRequiredClusterHeight' in found_values}} + ) + cudaFuncAttributeRequiredClusterHeight = ( cyruntime.cudaFuncAttribute.cudaFuncAttributeRequiredClusterHeight, 'Required cluster height\n' - ){{endif}} - {{if 'cudaFuncAttributeRequiredClusterDepth' in found_values}} + ) + cudaFuncAttributeRequiredClusterDepth = ( cyruntime.cudaFuncAttribute.cudaFuncAttributeRequiredClusterDepth, 'Required cluster depth\n' - ){{endif}} - {{if 'cudaFuncAttributeNonPortableClusterSizeAllowed' in found_values}} + ) + cudaFuncAttributeNonPortableClusterSizeAllowed = ( cyruntime.cudaFuncAttribute.cudaFuncAttributeNonPortableClusterSizeAllowed, 'Whether non-portable cluster scheduling policy is supported\n' - ){{endif}} - {{if 'cudaFuncAttributeClusterSchedulingPolicyPreference' in found_values}} + ) + cudaFuncAttributeClusterSchedulingPolicyPreference = ( cyruntime.cudaFuncAttribute.cudaFuncAttributeClusterSchedulingPolicyPreference, 'Required cluster scheduling policy preference\n' - ){{endif}} - {{if 'cudaFuncAttributeMax' in found_values}} - cudaFuncAttributeMax = cyruntime.cudaFuncAttribute.cudaFuncAttributeMax{{endif}} + ) -{{endif}} -{{if 'cudaFuncCache' in found_types}} + cudaFuncAttributeMax = cyruntime.cudaFuncAttribute.cudaFuncAttributeMax class cudaFuncCache(_FastEnum): """ CUDA function cache configurations """ - {{if 'cudaFuncCachePreferNone' in found_values}} + cudaFuncCachePreferNone = ( cyruntime.cudaFuncCache.cudaFuncCachePreferNone, 'Default function cache configuration, no preference\n' - ){{endif}} - {{if 'cudaFuncCachePreferShared' in found_values}} + ) + cudaFuncCachePreferShared = ( cyruntime.cudaFuncCache.cudaFuncCachePreferShared, 'Prefer larger shared memory and smaller L1 cache\n' - ){{endif}} - {{if 'cudaFuncCachePreferL1' in found_values}} + ) + cudaFuncCachePreferL1 = ( cyruntime.cudaFuncCache.cudaFuncCachePreferL1, 'Prefer larger L1 cache and smaller shared memory\n' - ){{endif}} - {{if 'cudaFuncCachePreferEqual' in found_values}} + ) + cudaFuncCachePreferEqual = ( cyruntime.cudaFuncCache.cudaFuncCachePreferEqual, 'Prefer equal size L1 cache and shared memory\n' - ){{endif}} - -{{endif}} -{{if 'cudaSharedMemConfig' in found_types}} + ) class cudaSharedMemConfig(_FastEnum): """ CUDA shared memory configuration [Deprecated] """ - {{if 'cudaSharedMemBankSizeDefault' in found_values}} - cudaSharedMemBankSizeDefault = cyruntime.cudaSharedMemConfig.cudaSharedMemBankSizeDefault{{endif}} - {{if 'cudaSharedMemBankSizeFourByte' in found_values}} - cudaSharedMemBankSizeFourByte = cyruntime.cudaSharedMemConfig.cudaSharedMemBankSizeFourByte{{endif}} - {{if 'cudaSharedMemBankSizeEightByte' in found_values}} - cudaSharedMemBankSizeEightByte = cyruntime.cudaSharedMemConfig.cudaSharedMemBankSizeEightByte{{endif}} -{{endif}} -{{if 'cudaSharedCarveout' in found_types}} + cudaSharedMemBankSizeDefault = cyruntime.cudaSharedMemConfig.cudaSharedMemBankSizeDefault + + cudaSharedMemBankSizeFourByte = cyruntime.cudaSharedMemConfig.cudaSharedMemBankSizeFourByte + + cudaSharedMemBankSizeEightByte = cyruntime.cudaSharedMemConfig.cudaSharedMemBankSizeEightByte class cudaSharedCarveout(_FastEnum): """ Shared memory carveout configurations. These may be passed to cudaFuncSetAttribute """ - {{if 'cudaSharedmemCarveoutDefault' in found_values}} + cudaSharedmemCarveoutDefault = ( cyruntime.cudaSharedCarveout.cudaSharedmemCarveoutDefault, 'No preference for shared memory or L1 (default)\n' - ){{endif}} - {{if 'cudaSharedmemCarveoutMaxL1' in found_values}} + ) + cudaSharedmemCarveoutMaxL1 = ( cyruntime.cudaSharedCarveout.cudaSharedmemCarveoutMaxL1, 'Prefer maximum available L1 cache, minimum shared memory\n' - ){{endif}} - {{if 'cudaSharedmemCarveoutMaxShared' in found_values}} + ) + cudaSharedmemCarveoutMaxShared = ( cyruntime.cudaSharedCarveout.cudaSharedmemCarveoutMaxShared, 'Prefer maximum available shared memory, minimum L1 cache\n' - ){{endif}} - -{{endif}} -{{if 'cudaComputeMode' in found_types}} + ) class cudaComputeMode(_FastEnum): """ CUDA device compute modes """ - {{if 'cudaComputeModeDefault' in found_values}} + cudaComputeModeDefault = ( cyruntime.cudaComputeMode.cudaComputeModeDefault, 'Default compute mode (Multiple threads can use :py:obj:`~.cudaSetDevice()`\n' 'with this device)\n' - ){{endif}} - {{if 'cudaComputeModeExclusive' in found_values}} + ) + cudaComputeModeExclusive = ( cyruntime.cudaComputeMode.cudaComputeModeExclusive, 'Compute-exclusive-thread mode (Only one thread in one process will be able\n' 'to use :py:obj:`~.cudaSetDevice()` with this device)\n' - ){{endif}} - {{if 'cudaComputeModeProhibited' in found_values}} + ) + cudaComputeModeProhibited = ( cyruntime.cudaComputeMode.cudaComputeModeProhibited, 'Compute-prohibited mode (No threads can use :py:obj:`~.cudaSetDevice()`\n' 'with this device)\n' - ){{endif}} - {{if 'cudaComputeModeExclusiveProcess' in found_values}} + ) + cudaComputeModeExclusiveProcess = ( cyruntime.cudaComputeMode.cudaComputeModeExclusiveProcess, 'Compute-exclusive-process mode (Many threads in one process will be able to\n' 'use :py:obj:`~.cudaSetDevice()` with this device)\n' - ){{endif}} - -{{endif}} -{{if 'cudaLimit' in found_types}} + ) class cudaLimit(_FastEnum): """ CUDA Limits """ - {{if 'cudaLimitStackSize' in found_values}} + cudaLimitStackSize = ( cyruntime.cudaLimit.cudaLimitStackSize, 'GPU thread stack size\n' - ){{endif}} - {{if 'cudaLimitPrintfFifoSize' in found_values}} + ) + cudaLimitPrintfFifoSize = ( cyruntime.cudaLimit.cudaLimitPrintfFifoSize, 'GPU printf FIFO size\n' - ){{endif}} - {{if 'cudaLimitMallocHeapSize' in found_values}} + ) + cudaLimitMallocHeapSize = ( cyruntime.cudaLimit.cudaLimitMallocHeapSize, 'GPU malloc heap size\n' - ){{endif}} - {{if 'cudaLimitDevRuntimeSyncDepth' in found_values}} + ) + cudaLimitDevRuntimeSyncDepth = ( cyruntime.cudaLimit.cudaLimitDevRuntimeSyncDepth, 'GPU device runtime synchronize depth\n' - ){{endif}} - {{if 'cudaLimitDevRuntimePendingLaunchCount' in found_values}} + ) + cudaLimitDevRuntimePendingLaunchCount = ( cyruntime.cudaLimit.cudaLimitDevRuntimePendingLaunchCount, 'GPU device runtime pending launch count\n' - ){{endif}} - {{if 'cudaLimitMaxL2FetchGranularity' in found_values}} + ) + cudaLimitMaxL2FetchGranularity = ( cyruntime.cudaLimit.cudaLimitMaxL2FetchGranularity, 'A value between 0 and 128 that indicates the maximum fetch granularity of\n' 'L2 (in Bytes). This is a hint\n' - ){{endif}} - {{if 'cudaLimitPersistingL2CacheSize' in found_values}} + ) + cudaLimitPersistingL2CacheSize = ( cyruntime.cudaLimit.cudaLimitPersistingL2CacheSize, 'A size in bytes for L2 persisting lines cache size\n' - ){{endif}} - -{{endif}} -{{if 'cudaMemoryAdvise' in found_types}} + ) class cudaMemoryAdvise(_FastEnum): """ CUDA Memory Advise values """ - {{if 'cudaMemAdviseSetReadMostly' in found_values}} + cudaMemAdviseSetReadMostly = ( cyruntime.cudaMemoryAdvise.cudaMemAdviseSetReadMostly, 'Data will mostly be read and only occassionally be written to\n' - ){{endif}} - {{if 'cudaMemAdviseUnsetReadMostly' in found_values}} + ) + cudaMemAdviseUnsetReadMostly = ( cyruntime.cudaMemoryAdvise.cudaMemAdviseUnsetReadMostly, 'Undo the effect of :py:obj:`~.cudaMemAdviseSetReadMostly`\n' - ){{endif}} - {{if 'cudaMemAdviseSetPreferredLocation' in found_values}} + ) + cudaMemAdviseSetPreferredLocation = ( cyruntime.cudaMemoryAdvise.cudaMemAdviseSetPreferredLocation, 'Set the preferred location for the data as the specified device\n' - ){{endif}} - {{if 'cudaMemAdviseUnsetPreferredLocation' in found_values}} + ) + cudaMemAdviseUnsetPreferredLocation = ( cyruntime.cudaMemoryAdvise.cudaMemAdviseUnsetPreferredLocation, 'Clear the preferred location for the data\n' - ){{endif}} - {{if 'cudaMemAdviseSetAccessedBy' in found_values}} + ) + cudaMemAdviseSetAccessedBy = ( cyruntime.cudaMemoryAdvise.cudaMemAdviseSetAccessedBy, 'Data will be accessed by the specified device, so prevent page faults as\n' 'much as possible\n' - ){{endif}} - {{if 'cudaMemAdviseUnsetAccessedBy' in found_values}} + ) + cudaMemAdviseUnsetAccessedBy = ( cyruntime.cudaMemoryAdvise.cudaMemAdviseUnsetAccessedBy, 'Let the Unified Memory subsystem decide on the page faulting policy for the\n' 'specified device\n' - ){{endif}} - -{{endif}} -{{if 'cudaMemRangeAttribute' in found_types}} + ) class cudaMemRangeAttribute(_FastEnum): """ CUDA range attributes """ - {{if 'cudaMemRangeAttributeReadMostly' in found_values}} + cudaMemRangeAttributeReadMostly = ( cyruntime.cudaMemRangeAttribute.cudaMemRangeAttributeReadMostly, 'Whether the range will mostly be read and only occassionally be written to\n' - ){{endif}} - {{if 'cudaMemRangeAttributePreferredLocation' in found_values}} + ) + cudaMemRangeAttributePreferredLocation = ( cyruntime.cudaMemRangeAttribute.cudaMemRangeAttributePreferredLocation, 'The preferred location of the range\n' - ){{endif}} - {{if 'cudaMemRangeAttributeAccessedBy' in found_values}} + ) + cudaMemRangeAttributeAccessedBy = ( cyruntime.cudaMemRangeAttribute.cudaMemRangeAttributeAccessedBy, 'Memory range has :py:obj:`~.cudaMemAdviseSetAccessedBy` set for specified\n' 'device\n' - ){{endif}} - {{if 'cudaMemRangeAttributeLastPrefetchLocation' in found_values}} + ) + cudaMemRangeAttributeLastPrefetchLocation = ( cyruntime.cudaMemRangeAttribute.cudaMemRangeAttributeLastPrefetchLocation, 'The last location to which the range was prefetched\n' - ){{endif}} - {{if 'cudaMemRangeAttributePreferredLocationType' in found_values}} + ) + cudaMemRangeAttributePreferredLocationType = ( cyruntime.cudaMemRangeAttribute.cudaMemRangeAttributePreferredLocationType, 'The preferred location type of the range\n' - ){{endif}} - {{if 'cudaMemRangeAttributePreferredLocationId' in found_values}} + ) + cudaMemRangeAttributePreferredLocationId = ( cyruntime.cudaMemRangeAttribute.cudaMemRangeAttributePreferredLocationId, 'The preferred location id of the range\n' - ){{endif}} - {{if 'cudaMemRangeAttributeLastPrefetchLocationType' in found_values}} + ) + cudaMemRangeAttributeLastPrefetchLocationType = ( cyruntime.cudaMemRangeAttribute.cudaMemRangeAttributeLastPrefetchLocationType, 'The last location type to which the range was prefetched\n' - ){{endif}} - {{if 'cudaMemRangeAttributeLastPrefetchLocationId' in found_values}} + ) + cudaMemRangeAttributeLastPrefetchLocationId = ( cyruntime.cudaMemRangeAttribute.cudaMemRangeAttributeLastPrefetchLocationId, 'The last location id to which the range was prefetched\n' - ){{endif}} - -{{endif}} -{{if 'cudaFlushGPUDirectRDMAWritesOptions' in found_types}} + ) class cudaFlushGPUDirectRDMAWritesOptions(_FastEnum): """ CUDA GPUDirect RDMA flush writes APIs supported on the device """ - {{if 'cudaFlushGPUDirectRDMAWritesOptionHost' in found_values}} + cudaFlushGPUDirectRDMAWritesOptionHost = ( cyruntime.cudaFlushGPUDirectRDMAWritesOptions.cudaFlushGPUDirectRDMAWritesOptionHost, ':py:obj:`~.cudaDeviceFlushGPUDirectRDMAWrites()` and its CUDA Driver API\n' 'counterpart are supported on the device.\n' - ){{endif}} - {{if 'cudaFlushGPUDirectRDMAWritesOptionMemOps' in found_values}} + ) + cudaFlushGPUDirectRDMAWritesOptionMemOps = ( cyruntime.cudaFlushGPUDirectRDMAWritesOptions.cudaFlushGPUDirectRDMAWritesOptionMemOps, 'The :py:obj:`~.CU_STREAM_WAIT_VALUE_FLUSH` flag and the\n' ':py:obj:`~.CU_STREAM_MEM_OP_FLUSH_REMOTE_WRITES` MemOp are supported on the\n' 'CUDA device.\n' - ){{endif}} - -{{endif}} -{{if 'cudaGPUDirectRDMAWritesOrdering' in found_types}} + ) class cudaGPUDirectRDMAWritesOrdering(_FastEnum): """ CUDA GPUDirect RDMA flush writes ordering features of the device """ - {{if 'cudaGPUDirectRDMAWritesOrderingNone' in found_values}} + cudaGPUDirectRDMAWritesOrderingNone = ( cyruntime.cudaGPUDirectRDMAWritesOrdering.cudaGPUDirectRDMAWritesOrderingNone, 'The device does not natively support ordering of GPUDirect RDMA writes.\n' ':py:obj:`~.cudaFlushGPUDirectRDMAWrites()` can be leveraged if supported.\n' - ){{endif}} - {{if 'cudaGPUDirectRDMAWritesOrderingOwner' in found_values}} + ) + cudaGPUDirectRDMAWritesOrderingOwner = ( cyruntime.cudaGPUDirectRDMAWritesOrdering.cudaGPUDirectRDMAWritesOrderingOwner, 'Natively, the device can consistently consume GPUDirect RDMA writes,\n' 'although other CUDA devices may not.\n' - ){{endif}} - {{if 'cudaGPUDirectRDMAWritesOrderingAllDevices' in found_values}} + ) + cudaGPUDirectRDMAWritesOrderingAllDevices = ( cyruntime.cudaGPUDirectRDMAWritesOrdering.cudaGPUDirectRDMAWritesOrderingAllDevices, 'Any CUDA device in the system can consistently consume GPUDirect RDMA\n' 'writes to this device.\n' - ){{endif}} - -{{endif}} -{{if 'cudaFlushGPUDirectRDMAWritesScope' in found_types}} + ) class cudaFlushGPUDirectRDMAWritesScope(_FastEnum): """ CUDA GPUDirect RDMA flush writes scopes """ - {{if 'cudaFlushGPUDirectRDMAWritesToOwner' in found_values}} + cudaFlushGPUDirectRDMAWritesToOwner = ( cyruntime.cudaFlushGPUDirectRDMAWritesScope.cudaFlushGPUDirectRDMAWritesToOwner, 'Blocks until remote writes are visible to the CUDA device context owning\n' 'the data.\n' - ){{endif}} - {{if 'cudaFlushGPUDirectRDMAWritesToAllDevices' in found_values}} + ) + cudaFlushGPUDirectRDMAWritesToAllDevices = ( cyruntime.cudaFlushGPUDirectRDMAWritesScope.cudaFlushGPUDirectRDMAWritesToAllDevices, 'Blocks until remote writes are visible to all CUDA device contexts.\n' - ){{endif}} - -{{endif}} -{{if 'cudaFlushGPUDirectRDMAWritesTarget' in found_types}} + ) class cudaFlushGPUDirectRDMAWritesTarget(_FastEnum): """ CUDA GPUDirect RDMA flush writes targets """ - {{if 'cudaFlushGPUDirectRDMAWritesTargetCurrentDevice' in found_values}} + cudaFlushGPUDirectRDMAWritesTargetCurrentDevice = ( cyruntime.cudaFlushGPUDirectRDMAWritesTarget.cudaFlushGPUDirectRDMAWritesTargetCurrentDevice, 'Sets the target for :py:obj:`~.cudaDeviceFlushGPUDirectRDMAWrites()` to the\n' 'currently active CUDA device context.\n' - ){{endif}} - -{{endif}} -{{if 'cudaDeviceAttr' in found_types}} + ) class cudaDeviceAttr(_FastEnum): """ CUDA device attributes """ - {{if 'cudaDevAttrMaxThreadsPerBlock' in found_values}} + cudaDevAttrMaxThreadsPerBlock = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxThreadsPerBlock, 'Maximum number of threads per block\n' - ){{endif}} - {{if 'cudaDevAttrMaxBlockDimX' in found_values}} + ) + cudaDevAttrMaxBlockDimX = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxBlockDimX, 'Maximum block dimension X\n' - ){{endif}} - {{if 'cudaDevAttrMaxBlockDimY' in found_values}} + ) + cudaDevAttrMaxBlockDimY = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxBlockDimY, 'Maximum block dimension Y\n' - ){{endif}} - {{if 'cudaDevAttrMaxBlockDimZ' in found_values}} + ) + cudaDevAttrMaxBlockDimZ = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxBlockDimZ, 'Maximum block dimension Z\n' - ){{endif}} - {{if 'cudaDevAttrMaxGridDimX' in found_values}} + ) + cudaDevAttrMaxGridDimX = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxGridDimX, 'Maximum grid dimension X\n' - ){{endif}} - {{if 'cudaDevAttrMaxGridDimY' in found_values}} + ) + cudaDevAttrMaxGridDimY = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxGridDimY, 'Maximum grid dimension Y\n' - ){{endif}} - {{if 'cudaDevAttrMaxGridDimZ' in found_values}} + ) + cudaDevAttrMaxGridDimZ = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxGridDimZ, 'Maximum grid dimension Z\n' - ){{endif}} - {{if 'cudaDevAttrMaxSharedMemoryPerBlock' in found_values}} + ) + cudaDevAttrMaxSharedMemoryPerBlock = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSharedMemoryPerBlock, 'Maximum shared memory available per block in bytes\n' - ){{endif}} - {{if 'cudaDevAttrTotalConstantMemory' in found_values}} + ) + cudaDevAttrTotalConstantMemory = ( cyruntime.cudaDeviceAttr.cudaDevAttrTotalConstantMemory, 'Memory available on device for constant variables in a CUDA C kernel in\n' 'bytes\n' - ){{endif}} - {{if 'cudaDevAttrWarpSize' in found_values}} + ) + cudaDevAttrWarpSize = ( cyruntime.cudaDeviceAttr.cudaDevAttrWarpSize, 'Warp size in threads\n' - ){{endif}} - {{if 'cudaDevAttrMaxPitch' in found_values}} + ) + cudaDevAttrMaxPitch = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxPitch, 'Maximum pitch in bytes allowed by memory copies\n' - ){{endif}} - {{if 'cudaDevAttrMaxRegistersPerBlock' in found_values}} + ) + cudaDevAttrMaxRegistersPerBlock = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxRegistersPerBlock, 'Maximum number of 32-bit registers available per block\n' - ){{endif}} - {{if 'cudaDevAttrClockRate' in found_values}} + ) + cudaDevAttrClockRate = ( cyruntime.cudaDeviceAttr.cudaDevAttrClockRate, 'Peak clock frequency in kilohertz\n' - ){{endif}} - {{if 'cudaDevAttrTextureAlignment' in found_values}} + ) + cudaDevAttrTextureAlignment = ( cyruntime.cudaDeviceAttr.cudaDevAttrTextureAlignment, 'Alignment requirement for textures\n' - ){{endif}} - {{if 'cudaDevAttrGpuOverlap' in found_values}} + ) + cudaDevAttrGpuOverlap = ( cyruntime.cudaDeviceAttr.cudaDevAttrGpuOverlap, 'Device can possibly copy memory and execute a kernel concurrently\n' - ){{endif}} - {{if 'cudaDevAttrMultiProcessorCount' in found_values}} + ) + cudaDevAttrMultiProcessorCount = ( cyruntime.cudaDeviceAttr.cudaDevAttrMultiProcessorCount, 'Number of multiprocessors on device\n' - ){{endif}} - {{if 'cudaDevAttrKernelExecTimeout' in found_values}} + ) + cudaDevAttrKernelExecTimeout = ( cyruntime.cudaDeviceAttr.cudaDevAttrKernelExecTimeout, 'Specifies whether there is a run time limit on kernels\n' - ){{endif}} - {{if 'cudaDevAttrIntegrated' in found_values}} + ) + cudaDevAttrIntegrated = ( cyruntime.cudaDeviceAttr.cudaDevAttrIntegrated, 'Device is integrated with host memory\n' - ){{endif}} - {{if 'cudaDevAttrCanMapHostMemory' in found_values}} + ) + cudaDevAttrCanMapHostMemory = ( cyruntime.cudaDeviceAttr.cudaDevAttrCanMapHostMemory, 'Device can map host memory into CUDA address space\n' - ){{endif}} - {{if 'cudaDevAttrComputeMode' in found_values}} + ) + cudaDevAttrComputeMode = ( cyruntime.cudaDeviceAttr.cudaDevAttrComputeMode, 'Compute mode (See :py:obj:`~.cudaComputeMode` for details)\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture1DWidth' in found_values}} + ) + cudaDevAttrMaxTexture1DWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture1DWidth, 'Maximum 1D texture width\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture2DWidth' in found_values}} + ) + cudaDevAttrMaxTexture2DWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DWidth, 'Maximum 2D texture width\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture2DHeight' in found_values}} + ) + cudaDevAttrMaxTexture2DHeight = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DHeight, 'Maximum 2D texture height\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture3DWidth' in found_values}} + ) + cudaDevAttrMaxTexture3DWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture3DWidth, 'Maximum 3D texture width\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture3DHeight' in found_values}} + ) + cudaDevAttrMaxTexture3DHeight = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture3DHeight, 'Maximum 3D texture height\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture3DDepth' in found_values}} + ) + cudaDevAttrMaxTexture3DDepth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture3DDepth, 'Maximum 3D texture depth\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture2DLayeredWidth' in found_values}} + ) + cudaDevAttrMaxTexture2DLayeredWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DLayeredWidth, 'Maximum 2D layered texture width\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture2DLayeredHeight' in found_values}} + ) + cudaDevAttrMaxTexture2DLayeredHeight = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DLayeredHeight, 'Maximum 2D layered texture height\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture2DLayeredLayers' in found_values}} + ) + cudaDevAttrMaxTexture2DLayeredLayers = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DLayeredLayers, 'Maximum layers in a 2D layered texture\n' - ){{endif}} - {{if 'cudaDevAttrSurfaceAlignment' in found_values}} + ) + cudaDevAttrSurfaceAlignment = ( cyruntime.cudaDeviceAttr.cudaDevAttrSurfaceAlignment, 'Alignment requirement for surfaces\n' - ){{endif}} - {{if 'cudaDevAttrConcurrentKernels' in found_values}} + ) + cudaDevAttrConcurrentKernels = ( cyruntime.cudaDeviceAttr.cudaDevAttrConcurrentKernels, 'Device can possibly execute multiple kernels concurrently\n' - ){{endif}} - {{if 'cudaDevAttrEccEnabled' in found_values}} + ) + cudaDevAttrEccEnabled = ( cyruntime.cudaDeviceAttr.cudaDevAttrEccEnabled, 'Device has ECC support enabled\n' - ){{endif}} - {{if 'cudaDevAttrPciBusId' in found_values}} + ) + cudaDevAttrPciBusId = ( cyruntime.cudaDeviceAttr.cudaDevAttrPciBusId, 'PCI bus ID of the device\n' - ){{endif}} - {{if 'cudaDevAttrPciDeviceId' in found_values}} + ) + cudaDevAttrPciDeviceId = ( cyruntime.cudaDeviceAttr.cudaDevAttrPciDeviceId, 'PCI device ID of the device\n' - ){{endif}} - {{if 'cudaDevAttrTccDriver' in found_values}} + ) + cudaDevAttrTccDriver = ( cyruntime.cudaDeviceAttr.cudaDevAttrTccDriver, 'Device is using TCC driver model\n' - ){{endif}} - {{if 'cudaDevAttrMemoryClockRate' in found_values}} + ) + cudaDevAttrMemoryClockRate = ( cyruntime.cudaDeviceAttr.cudaDevAttrMemoryClockRate, 'Peak memory clock frequency in kilohertz\n' - ){{endif}} - {{if 'cudaDevAttrGlobalMemoryBusWidth' in found_values}} + ) + cudaDevAttrGlobalMemoryBusWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrGlobalMemoryBusWidth, 'Global memory bus width in bits\n' - ){{endif}} - {{if 'cudaDevAttrL2CacheSize' in found_values}} + ) + cudaDevAttrL2CacheSize = ( cyruntime.cudaDeviceAttr.cudaDevAttrL2CacheSize, 'Size of L2 cache in bytes\n' - ){{endif}} - {{if 'cudaDevAttrMaxThreadsPerMultiProcessor' in found_values}} + ) + cudaDevAttrMaxThreadsPerMultiProcessor = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxThreadsPerMultiProcessor, 'Maximum resident threads per multiprocessor\n' - ){{endif}} - {{if 'cudaDevAttrAsyncEngineCount' in found_values}} + ) + cudaDevAttrAsyncEngineCount = ( cyruntime.cudaDeviceAttr.cudaDevAttrAsyncEngineCount, 'Number of asynchronous engines\n' - ){{endif}} - {{if 'cudaDevAttrUnifiedAddressing' in found_values}} + ) + cudaDevAttrUnifiedAddressing = ( cyruntime.cudaDeviceAttr.cudaDevAttrUnifiedAddressing, 'Device shares a unified address space with the host\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture1DLayeredWidth' in found_values}} + ) + cudaDevAttrMaxTexture1DLayeredWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture1DLayeredWidth, 'Maximum 1D layered texture width\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture1DLayeredLayers' in found_values}} + ) + cudaDevAttrMaxTexture1DLayeredLayers = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture1DLayeredLayers, 'Maximum layers in a 1D layered texture\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture2DGatherWidth' in found_values}} + ) + cudaDevAttrMaxTexture2DGatherWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DGatherWidth, 'Maximum 2D texture width if cudaArrayTextureGather is set\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture2DGatherHeight' in found_values}} + ) + cudaDevAttrMaxTexture2DGatherHeight = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DGatherHeight, 'Maximum 2D texture height if cudaArrayTextureGather is set\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture3DWidthAlt' in found_values}} + ) + cudaDevAttrMaxTexture3DWidthAlt = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture3DWidthAlt, 'Alternate maximum 3D texture width\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture3DHeightAlt' in found_values}} + ) + cudaDevAttrMaxTexture3DHeightAlt = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture3DHeightAlt, 'Alternate maximum 3D texture height\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture3DDepthAlt' in found_values}} + ) + cudaDevAttrMaxTexture3DDepthAlt = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture3DDepthAlt, 'Alternate maximum 3D texture depth\n' - ){{endif}} - {{if 'cudaDevAttrPciDomainId' in found_values}} + ) + cudaDevAttrPciDomainId = ( cyruntime.cudaDeviceAttr.cudaDevAttrPciDomainId, 'PCI domain ID of the device\n' - ){{endif}} - {{if 'cudaDevAttrTexturePitchAlignment' in found_values}} + ) + cudaDevAttrTexturePitchAlignment = ( cyruntime.cudaDeviceAttr.cudaDevAttrTexturePitchAlignment, 'Pitch alignment requirement for textures\n' - ){{endif}} - {{if 'cudaDevAttrMaxTextureCubemapWidth' in found_values}} + ) + cudaDevAttrMaxTextureCubemapWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTextureCubemapWidth, 'Maximum cubemap texture width/height\n' - ){{endif}} - {{if 'cudaDevAttrMaxTextureCubemapLayeredWidth' in found_values}} + ) + cudaDevAttrMaxTextureCubemapLayeredWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTextureCubemapLayeredWidth, 'Maximum cubemap layered texture width/height\n' - ){{endif}} - {{if 'cudaDevAttrMaxTextureCubemapLayeredLayers' in found_values}} + ) + cudaDevAttrMaxTextureCubemapLayeredLayers = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTextureCubemapLayeredLayers, 'Maximum layers in a cubemap layered texture\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurface1DWidth' in found_values}} + ) + cudaDevAttrMaxSurface1DWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface1DWidth, 'Maximum 1D surface width\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurface2DWidth' in found_values}} + ) + cudaDevAttrMaxSurface2DWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface2DWidth, 'Maximum 2D surface width\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurface2DHeight' in found_values}} + ) + cudaDevAttrMaxSurface2DHeight = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface2DHeight, 'Maximum 2D surface height\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurface3DWidth' in found_values}} + ) + cudaDevAttrMaxSurface3DWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface3DWidth, 'Maximum 3D surface width\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurface3DHeight' in found_values}} + ) + cudaDevAttrMaxSurface3DHeight = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface3DHeight, 'Maximum 3D surface height\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurface3DDepth' in found_values}} + ) + cudaDevAttrMaxSurface3DDepth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface3DDepth, 'Maximum 3D surface depth\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurface1DLayeredWidth' in found_values}} + ) + cudaDevAttrMaxSurface1DLayeredWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface1DLayeredWidth, 'Maximum 1D layered surface width\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurface1DLayeredLayers' in found_values}} + ) + cudaDevAttrMaxSurface1DLayeredLayers = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface1DLayeredLayers, 'Maximum layers in a 1D layered surface\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurface2DLayeredWidth' in found_values}} + ) + cudaDevAttrMaxSurface2DLayeredWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface2DLayeredWidth, 'Maximum 2D layered surface width\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurface2DLayeredHeight' in found_values}} + ) + cudaDevAttrMaxSurface2DLayeredHeight = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface2DLayeredHeight, 'Maximum 2D layered surface height\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurface2DLayeredLayers' in found_values}} + ) + cudaDevAttrMaxSurface2DLayeredLayers = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface2DLayeredLayers, 'Maximum layers in a 2D layered surface\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurfaceCubemapWidth' in found_values}} + ) + cudaDevAttrMaxSurfaceCubemapWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurfaceCubemapWidth, 'Maximum cubemap surface width\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurfaceCubemapLayeredWidth' in found_values}} + ) + cudaDevAttrMaxSurfaceCubemapLayeredWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurfaceCubemapLayeredWidth, 'Maximum cubemap layered surface width\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurfaceCubemapLayeredLayers' in found_values}} + ) + cudaDevAttrMaxSurfaceCubemapLayeredLayers = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurfaceCubemapLayeredLayers, 'Maximum layers in a cubemap layered surface\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture1DLinearWidth' in found_values}} + ) + cudaDevAttrMaxTexture1DLinearWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture1DLinearWidth, 'Maximum 1D linear texture width\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture2DLinearWidth' in found_values}} + ) + cudaDevAttrMaxTexture2DLinearWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DLinearWidth, 'Maximum 2D linear texture width\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture2DLinearHeight' in found_values}} + ) + cudaDevAttrMaxTexture2DLinearHeight = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DLinearHeight, 'Maximum 2D linear texture height\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture2DLinearPitch' in found_values}} + ) + cudaDevAttrMaxTexture2DLinearPitch = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DLinearPitch, 'Maximum 2D linear texture pitch in bytes\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture2DMipmappedWidth' in found_values}} + ) + cudaDevAttrMaxTexture2DMipmappedWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DMipmappedWidth, 'Maximum mipmapped 2D texture width\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture2DMipmappedHeight' in found_values}} + ) + cudaDevAttrMaxTexture2DMipmappedHeight = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DMipmappedHeight, 'Maximum mipmapped 2D texture height\n' - ){{endif}} - {{if 'cudaDevAttrComputeCapabilityMajor' in found_values}} + ) + cudaDevAttrComputeCapabilityMajor = ( cyruntime.cudaDeviceAttr.cudaDevAttrComputeCapabilityMajor, 'Major compute capability version number\n' - ){{endif}} - {{if 'cudaDevAttrComputeCapabilityMinor' in found_values}} + ) + cudaDevAttrComputeCapabilityMinor = ( cyruntime.cudaDeviceAttr.cudaDevAttrComputeCapabilityMinor, 'Minor compute capability version number\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture1DMipmappedWidth' in found_values}} + ) + cudaDevAttrMaxTexture1DMipmappedWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture1DMipmappedWidth, 'Maximum mipmapped 1D texture width\n' - ){{endif}} - {{if 'cudaDevAttrStreamPrioritiesSupported' in found_values}} + ) + cudaDevAttrStreamPrioritiesSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrStreamPrioritiesSupported, 'Device supports stream priorities\n' - ){{endif}} - {{if 'cudaDevAttrGlobalL1CacheSupported' in found_values}} + ) + cudaDevAttrGlobalL1CacheSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrGlobalL1CacheSupported, 'Device supports caching globals in L1\n' - ){{endif}} - {{if 'cudaDevAttrLocalL1CacheSupported' in found_values}} + ) + cudaDevAttrLocalL1CacheSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrLocalL1CacheSupported, 'Device supports caching locals in L1\n' - ){{endif}} - {{if 'cudaDevAttrMaxSharedMemoryPerMultiprocessor' in found_values}} + ) + cudaDevAttrMaxSharedMemoryPerMultiprocessor = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSharedMemoryPerMultiprocessor, 'Maximum shared memory available per multiprocessor in bytes\n' - ){{endif}} - {{if 'cudaDevAttrMaxRegistersPerMultiprocessor' in found_values}} + ) + cudaDevAttrMaxRegistersPerMultiprocessor = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxRegistersPerMultiprocessor, 'Maximum number of 32-bit registers available per multiprocessor\n' - ){{endif}} - {{if 'cudaDevAttrManagedMemory' in found_values}} + ) + cudaDevAttrManagedMemory = ( cyruntime.cudaDeviceAttr.cudaDevAttrManagedMemory, 'Device can allocate managed memory on this system\n' - ){{endif}} - {{if 'cudaDevAttrIsMultiGpuBoard' in found_values}} + ) + cudaDevAttrIsMultiGpuBoard = ( cyruntime.cudaDeviceAttr.cudaDevAttrIsMultiGpuBoard, 'Device is on a multi-GPU board\n' - ){{endif}} - {{if 'cudaDevAttrMultiGpuBoardGroupID' in found_values}} + ) + cudaDevAttrMultiGpuBoardGroupID = ( cyruntime.cudaDeviceAttr.cudaDevAttrMultiGpuBoardGroupID, 'Unique identifier for a group of devices on the same multi-GPU board\n' - ){{endif}} - {{if 'cudaDevAttrHostNativeAtomicSupported' in found_values}} + ) + cudaDevAttrHostNativeAtomicSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrHostNativeAtomicSupported, 'Link between the device and the host supports native atomic operations\n' - ){{endif}} - {{if 'cudaDevAttrSingleToDoublePrecisionPerfRatio' in found_values}} + ) + cudaDevAttrSingleToDoublePrecisionPerfRatio = ( cyruntime.cudaDeviceAttr.cudaDevAttrSingleToDoublePrecisionPerfRatio, 'Ratio of single precision performance (in floating-point operations per\n' 'second) to double precision performance\n' - ){{endif}} - {{if 'cudaDevAttrPageableMemoryAccess' in found_values}} + ) + cudaDevAttrPageableMemoryAccess = ( cyruntime.cudaDeviceAttr.cudaDevAttrPageableMemoryAccess, 'Device supports coherently accessing pageable memory without calling\n' 'cudaHostRegister on it\n' - ){{endif}} - {{if 'cudaDevAttrConcurrentManagedAccess' in found_values}} + ) + cudaDevAttrConcurrentManagedAccess = ( cyruntime.cudaDeviceAttr.cudaDevAttrConcurrentManagedAccess, 'Device can coherently access managed memory concurrently with the CPU\n' - ){{endif}} - {{if 'cudaDevAttrComputePreemptionSupported' in found_values}} + ) + cudaDevAttrComputePreemptionSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrComputePreemptionSupported, 'Device supports Compute Preemption\n' - ){{endif}} - {{if 'cudaDevAttrCanUseHostPointerForRegisteredMem' in found_values}} + ) + cudaDevAttrCanUseHostPointerForRegisteredMem = ( cyruntime.cudaDeviceAttr.cudaDevAttrCanUseHostPointerForRegisteredMem, 'Device can access host registered memory at the same virtual address as the\n' 'CPU\n' - ){{endif}} - {{if 'cudaDevAttrReserved92' in found_values}} - cudaDevAttrReserved92 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved92{{endif}} - {{if 'cudaDevAttrReserved93' in found_values}} - cudaDevAttrReserved93 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved93{{endif}} - {{if 'cudaDevAttrReserved94' in found_values}} - cudaDevAttrReserved94 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved94{{endif}} - {{if 'cudaDevAttrCooperativeLaunch' in found_values}} + ) + + cudaDevAttrReserved92 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved92 + + cudaDevAttrReserved93 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved93 + + cudaDevAttrReserved94 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved94 + cudaDevAttrCooperativeLaunch = ( cyruntime.cudaDeviceAttr.cudaDevAttrCooperativeLaunch, 'Device supports launching cooperative kernels via\n' ':py:obj:`~.cudaLaunchCooperativeKernel`\n' - ){{endif}} - {{if 'cudaDevAttrCooperativeMultiDeviceLaunch' in found_values}} + ) + cudaDevAttrCooperativeMultiDeviceLaunch = ( cyruntime.cudaDeviceAttr.cudaDevAttrCooperativeMultiDeviceLaunch, 'Deprecated, cudaLaunchCooperativeKernelMultiDevice is deprecated.\n' - ){{endif}} - {{if 'cudaDevAttrMaxSharedMemoryPerBlockOptin' in found_values}} + ) + cudaDevAttrMaxSharedMemoryPerBlockOptin = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSharedMemoryPerBlockOptin, 'The maximum optin shared memory per block. This value may vary by chip. See\n' ':py:obj:`~.cudaFuncSetAttribute`\n' - ){{endif}} - {{if 'cudaDevAttrCanFlushRemoteWrites' in found_values}} + ) + cudaDevAttrCanFlushRemoteWrites = ( cyruntime.cudaDeviceAttr.cudaDevAttrCanFlushRemoteWrites, 'Device supports flushing of outstanding remote writes.\n' - ){{endif}} - {{if 'cudaDevAttrHostRegisterSupported' in found_values}} + ) + cudaDevAttrHostRegisterSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrHostRegisterSupported, 'Device supports host memory registration via :py:obj:`~.cudaHostRegister`.\n' - ){{endif}} - {{if 'cudaDevAttrPageableMemoryAccessUsesHostPageTables' in found_values}} + ) + cudaDevAttrPageableMemoryAccessUsesHostPageTables = ( cyruntime.cudaDeviceAttr.cudaDevAttrPageableMemoryAccessUsesHostPageTables, "Device accesses pageable memory via the host's page tables.\n" - ){{endif}} - {{if 'cudaDevAttrDirectManagedMemAccessFromHost' in found_values}} + ) + cudaDevAttrDirectManagedMemAccessFromHost = ( cyruntime.cudaDeviceAttr.cudaDevAttrDirectManagedMemAccessFromHost, 'Host can directly access managed memory on the device without migration.\n' - ){{endif}} - {{if 'cudaDevAttrMaxBlocksPerMultiprocessor' in found_values}} + ) + cudaDevAttrMaxBlocksPerMultiprocessor = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxBlocksPerMultiprocessor, 'Maximum number of blocks per multiprocessor\n' - ){{endif}} - {{if 'cudaDevAttrMaxPersistingL2CacheSize' in found_values}} + ) + cudaDevAttrMaxPersistingL2CacheSize = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxPersistingL2CacheSize, 'Maximum L2 persisting lines capacity setting in bytes.\n' - ){{endif}} - {{if 'cudaDevAttrMaxAccessPolicyWindowSize' in found_values}} + ) + cudaDevAttrMaxAccessPolicyWindowSize = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxAccessPolicyWindowSize, 'Maximum value of :py:obj:`~.cudaAccessPolicyWindow.num_bytes`.\n' - ){{endif}} - {{if 'cudaDevAttrReservedSharedMemoryPerBlock' in found_values}} + ) + cudaDevAttrReservedSharedMemoryPerBlock = ( cyruntime.cudaDeviceAttr.cudaDevAttrReservedSharedMemoryPerBlock, 'Shared memory reserved by CUDA driver per block in bytes\n' - ){{endif}} - {{if 'cudaDevAttrSparseCudaArraySupported' in found_values}} + ) + cudaDevAttrSparseCudaArraySupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrSparseCudaArraySupported, 'Device supports sparse CUDA arrays and sparse CUDA mipmapped arrays\n' - ){{endif}} - {{if 'cudaDevAttrHostRegisterReadOnlySupported' in found_values}} + ) + cudaDevAttrHostRegisterReadOnlySupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrHostRegisterReadOnlySupported, 'Device supports using the :py:obj:`~.cudaHostRegister` flag\n' 'cudaHostRegisterReadOnly to register memory that must be mapped as read-\n' 'only to the GPU\n' - ){{endif}} - {{if 'cudaDevAttrTimelineSemaphoreInteropSupported' in found_values}} + ) + cudaDevAttrTimelineSemaphoreInteropSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrTimelineSemaphoreInteropSupported, 'External timeline semaphore interop is supported on the device\n' - ){{endif}} - {{if 'cudaDevAttrMaxTimelineSemaphoreInteropSupported' in found_values}} + ) + cudaDevAttrMaxTimelineSemaphoreInteropSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTimelineSemaphoreInteropSupported, 'Deprecated, External timeline semaphore interop is supported on the device\n' - ){{endif}} - {{if 'cudaDevAttrMemoryPoolsSupported' in found_values}} + ) + cudaDevAttrMemoryPoolsSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrMemoryPoolsSupported, 'Device supports using the :py:obj:`~.cudaMallocAsync` and\n' ':py:obj:`~.cudaMemPool` family of APIs\n' - ){{endif}} - {{if 'cudaDevAttrGPUDirectRDMASupported' in found_values}} + ) + cudaDevAttrGPUDirectRDMASupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrGPUDirectRDMASupported, 'Device supports GPUDirect RDMA APIs, like nvidia_p2p_get_pages (see\n' 'https://docs.nvidia.com/cuda/gpudirect-rdma for more information)\n' - ){{endif}} - {{if 'cudaDevAttrGPUDirectRDMAFlushWritesOptions' in found_values}} + ) + cudaDevAttrGPUDirectRDMAFlushWritesOptions = ( cyruntime.cudaDeviceAttr.cudaDevAttrGPUDirectRDMAFlushWritesOptions, 'The returned attribute shall be interpreted as a bitmask, where the\n' 'individual bits are listed in the\n' ':py:obj:`~.cudaFlushGPUDirectRDMAWritesOptions` enum\n' - ){{endif}} - {{if 'cudaDevAttrGPUDirectRDMAWritesOrdering' in found_values}} + ) + cudaDevAttrGPUDirectRDMAWritesOrdering = ( cyruntime.cudaDeviceAttr.cudaDevAttrGPUDirectRDMAWritesOrdering, @@ -4537,127 +4418,124 @@ class cudaDeviceAttr(_FastEnum): 'within the scope indicated by the returned attribute. See\n' ':py:obj:`~.cudaGPUDirectRDMAWritesOrdering` for the numerical values\n' 'returned here.\n' - ){{endif}} - {{if 'cudaDevAttrMemoryPoolSupportedHandleTypes' in found_values}} + ) + cudaDevAttrMemoryPoolSupportedHandleTypes = ( cyruntime.cudaDeviceAttr.cudaDevAttrMemoryPoolSupportedHandleTypes, 'Handle types supported with mempool based IPC\n' - ){{endif}} - {{if 'cudaDevAttrClusterLaunch' in found_values}} + ) + cudaDevAttrClusterLaunch = ( cyruntime.cudaDeviceAttr.cudaDevAttrClusterLaunch, 'Indicates device supports cluster launch\n' - ){{endif}} - {{if 'cudaDevAttrDeferredMappingCudaArraySupported' in found_values}} + ) + cudaDevAttrDeferredMappingCudaArraySupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrDeferredMappingCudaArraySupported, 'Device supports deferred mapping CUDA arrays and CUDA mipmapped arrays\n' - ){{endif}} - {{if 'cudaDevAttrReserved122' in found_values}} - cudaDevAttrReserved122 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved122{{endif}} - {{if 'cudaDevAttrReserved123' in found_values}} - cudaDevAttrReserved123 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved123{{endif}} - {{if 'cudaDevAttrReserved124' in found_values}} - cudaDevAttrReserved124 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved124{{endif}} - {{if 'cudaDevAttrIpcEventSupport' in found_values}} + ) + + cudaDevAttrReserved122 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved122 + + cudaDevAttrReserved123 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved123 + + cudaDevAttrReserved124 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved124 + cudaDevAttrIpcEventSupport = ( cyruntime.cudaDeviceAttr.cudaDevAttrIpcEventSupport, 'Device supports IPC Events.\n' - ){{endif}} - {{if 'cudaDevAttrMemSyncDomainCount' in found_values}} + ) + cudaDevAttrMemSyncDomainCount = ( cyruntime.cudaDeviceAttr.cudaDevAttrMemSyncDomainCount, 'Number of memory synchronization domains the device supports.\n' - ){{endif}} - {{if 'cudaDevAttrReserved127' in found_values}} - cudaDevAttrReserved127 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved127{{endif}} - {{if 'cudaDevAttrReserved128' in found_values}} - cudaDevAttrReserved128 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved128{{endif}} - {{if 'cudaDevAttrReserved129' in found_values}} - cudaDevAttrReserved129 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved129{{endif}} - {{if 'cudaDevAttrNumaConfig' in found_values}} + ) + + cudaDevAttrReserved127 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved127 + + cudaDevAttrReserved128 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved128 + + cudaDevAttrReserved129 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved129 + cudaDevAttrNumaConfig = ( cyruntime.cudaDeviceAttr.cudaDevAttrNumaConfig, 'NUMA configuration of a device: value is of type\n' ':py:obj:`~.cudaDeviceNumaConfig` enum\n' - ){{endif}} - {{if 'cudaDevAttrNumaId' in found_values}} + ) + cudaDevAttrNumaId = ( cyruntime.cudaDeviceAttr.cudaDevAttrNumaId, 'NUMA node ID of the GPU memory\n' - ){{endif}} - {{if 'cudaDevAttrReserved132' in found_values}} - cudaDevAttrReserved132 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved132{{endif}} - {{if 'cudaDevAttrMpsEnabled' in found_values}} + ) + + cudaDevAttrReserved132 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved132 + cudaDevAttrMpsEnabled = ( cyruntime.cudaDeviceAttr.cudaDevAttrMpsEnabled, 'Contexts created on this device will be shared via MPS\n' - ){{endif}} - {{if 'cudaDevAttrHostNumaId' in found_values}} + ) + cudaDevAttrHostNumaId = ( cyruntime.cudaDeviceAttr.cudaDevAttrHostNumaId, 'NUMA ID of the host node closest to the device or -1 when system does not\n' 'support NUMA\n' - ){{endif}} - {{if 'cudaDevAttrD3D12CigSupported' in found_values}} + ) + cudaDevAttrD3D12CigSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrD3D12CigSupported, 'Device supports CIG with D3D12.\n' - ){{endif}} - {{if 'cudaDevAttrVulkanCigSupported' in found_values}} + ) + cudaDevAttrVulkanCigSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrVulkanCigSupported, 'Device supports CIG with Vulkan.\n' - ){{endif}} - {{if 'cudaDevAttrGpuPciDeviceId' in found_values}} + ) + cudaDevAttrGpuPciDeviceId = ( cyruntime.cudaDeviceAttr.cudaDevAttrGpuPciDeviceId, 'The combined 16-bit PCI device ID and 16-bit PCI vendor ID.\n' - ){{endif}} - {{if 'cudaDevAttrGpuPciSubsystemId' in found_values}} + ) + cudaDevAttrGpuPciSubsystemId = ( cyruntime.cudaDeviceAttr.cudaDevAttrGpuPciSubsystemId, 'The combined 16-bit PCI subsystem ID and 16-bit PCI subsystem vendor ID.\n' - ){{endif}} - {{if 'cudaDevAttrReserved141' in found_values}} - cudaDevAttrReserved141 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved141{{endif}} - {{if 'cudaDevAttrHostNumaMemoryPoolsSupported' in found_values}} + ) + + cudaDevAttrReserved141 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved141 + cudaDevAttrHostNumaMemoryPoolsSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrHostNumaMemoryPoolsSupported, 'Device supports HOST_NUMA location with the :py:obj:`~.cudaMallocAsync` and\n' ':py:obj:`~.cudaMemPool` family of APIs\n' - ){{endif}} - {{if 'cudaDevAttrHostNumaMultinodeIpcSupported' in found_values}} + ) + cudaDevAttrHostNumaMultinodeIpcSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrHostNumaMultinodeIpcSupported, 'Device supports HostNuma location IPC between nodes in a multi-node system.\n' - ){{endif}} - {{if 'cudaDevAttrMax' in found_values}} - cudaDevAttrMax = cyruntime.cudaDeviceAttr.cudaDevAttrMax{{endif}} + ) -{{endif}} -{{if 'cudaMemPoolAttr' in found_types}} + cudaDevAttrMax = cyruntime.cudaDeviceAttr.cudaDevAttrMax class cudaMemPoolAttr(_FastEnum): """ CUDA memory pool attributes """ - {{if 'cudaMemPoolReuseFollowEventDependencies' in found_values}} + cudaMemPoolReuseFollowEventDependencies = ( cyruntime.cudaMemPoolAttr.cudaMemPoolReuseFollowEventDependencies, @@ -4666,23 +4544,23 @@ class cudaMemPoolAttr(_FastEnum): 'allocating stream on the free action exists. Cuda events and null stream\n' 'interactions can create the required stream ordered dependencies. (default\n' 'enabled)\n' - ){{endif}} - {{if 'cudaMemPoolReuseAllowOpportunistic' in found_values}} + ) + cudaMemPoolReuseAllowOpportunistic = ( cyruntime.cudaMemPoolAttr.cudaMemPoolReuseAllowOpportunistic, '(value type = int) Allow reuse of already completed frees when there is no\n' 'dependency between the free and allocation. (default enabled)\n' - ){{endif}} - {{if 'cudaMemPoolReuseAllowInternalDependencies' in found_values}} + ) + cudaMemPoolReuseAllowInternalDependencies = ( cyruntime.cudaMemPoolAttr.cudaMemPoolReuseAllowInternalDependencies, '(value type = int) Allow cuMemAllocAsync to insert new stream dependencies\n' 'in order to establish the stream ordering required to reuse a piece of\n' 'memory released by cuFreeAsync (default enabled).\n' - ){{endif}} - {{if 'cudaMemPoolAttrReleaseThreshold' in found_values}} + ) + cudaMemPoolAttrReleaseThreshold = ( cyruntime.cudaMemPoolAttr.cudaMemPoolAttrReleaseThreshold, @@ -4691,233 +4569,212 @@ class cudaMemPoolAttr(_FastEnum): 'threshold bytes of memory are held by the memory pool, the allocator will\n' 'try to release memory back to the OS on the next call to stream, event or\n' 'context synchronize. (default 0)\n' - ){{endif}} - {{if 'cudaMemPoolAttrReservedMemCurrent' in found_values}} + ) + cudaMemPoolAttrReservedMemCurrent = ( cyruntime.cudaMemPoolAttr.cudaMemPoolAttrReservedMemCurrent, '(value type = cuuint64_t) Amount of backing memory currently allocated for\n' 'the mempool.\n' - ){{endif}} - {{if 'cudaMemPoolAttrReservedMemHigh' in found_values}} + ) + cudaMemPoolAttrReservedMemHigh = ( cyruntime.cudaMemPoolAttr.cudaMemPoolAttrReservedMemHigh, '(value type = cuuint64_t) High watermark of backing memory allocated for\n' 'the mempool since the last time it was reset. High watermark can only be\n' 'reset to zero.\n' - ){{endif}} - {{if 'cudaMemPoolAttrUsedMemCurrent' in found_values}} + ) + cudaMemPoolAttrUsedMemCurrent = ( cyruntime.cudaMemPoolAttr.cudaMemPoolAttrUsedMemCurrent, '(value type = cuuint64_t) Amount of memory from the pool that is currently\n' 'in use by the application.\n' - ){{endif}} - {{if 'cudaMemPoolAttrUsedMemHigh' in found_values}} + ) + cudaMemPoolAttrUsedMemHigh = ( cyruntime.cudaMemPoolAttr.cudaMemPoolAttrUsedMemHigh, '(value type = cuuint64_t) High watermark of the amount of memory from the\n' 'pool that was in use by the application since the last time it was reset.\n' 'High watermark can only be reset to zero.\n' - ){{endif}} - -{{endif}} -{{if 'cudaMemLocationType' in found_types}} + ) class cudaMemLocationType(_FastEnum): """ Specifies the type of location """ - {{if 'cudaMemLocationTypeInvalid' in found_values}} - cudaMemLocationTypeInvalid = cyruntime.cudaMemLocationType.cudaMemLocationTypeInvalid{{endif}} - {{if 'cudaMemLocationTypeDevice' in found_values}} + + cudaMemLocationTypeInvalid = cyruntime.cudaMemLocationType.cudaMemLocationTypeInvalid + cudaMemLocationTypeDevice = ( cyruntime.cudaMemLocationType.cudaMemLocationTypeDevice, 'Location is a device location, thus id is a device ordinal\n' - ){{endif}} - {{if 'cudaMemLocationTypeHost' in found_values}} + ) + cudaMemLocationTypeHost = ( cyruntime.cudaMemLocationType.cudaMemLocationTypeHost, 'Location is host, id is ignored\n' - ){{endif}} - {{if 'cudaMemLocationTypeHostNuma' in found_values}} + ) + cudaMemLocationTypeHostNuma = ( cyruntime.cudaMemLocationType.cudaMemLocationTypeHostNuma, 'Location is a host NUMA node, thus id is a host NUMA node id\n' - ){{endif}} - {{if 'cudaMemLocationTypeHostNumaCurrent' in found_values}} + ) + cudaMemLocationTypeHostNumaCurrent = ( cyruntime.cudaMemLocationType.cudaMemLocationTypeHostNumaCurrent, "Location is the host NUMA node closest to the current thread's CPU, id is\n" 'ignored\n' - ){{endif}} - -{{endif}} -{{if 'cudaMemAccessFlags' in found_types}} + ) class cudaMemAccessFlags(_FastEnum): """ Specifies the memory protection flags for mapping. """ - {{if 'cudaMemAccessFlagsProtNone' in found_values}} + cudaMemAccessFlagsProtNone = ( cyruntime.cudaMemAccessFlags.cudaMemAccessFlagsProtNone, 'Default, make the address range not accessible\n' - ){{endif}} - {{if 'cudaMemAccessFlagsProtRead' in found_values}} + ) + cudaMemAccessFlagsProtRead = ( cyruntime.cudaMemAccessFlags.cudaMemAccessFlagsProtRead, 'Make the address range read accessible\n' - ){{endif}} - {{if 'cudaMemAccessFlagsProtReadWrite' in found_values}} + ) + cudaMemAccessFlagsProtReadWrite = ( cyruntime.cudaMemAccessFlags.cudaMemAccessFlagsProtReadWrite, 'Make the address range read-write accessible\n' - ){{endif}} - -{{endif}} -{{if 'cudaMemAllocationType' in found_types}} + ) class cudaMemAllocationType(_FastEnum): """ Defines the allocation types available """ - {{if 'cudaMemAllocationTypeInvalid' in found_values}} - cudaMemAllocationTypeInvalid = cyruntime.cudaMemAllocationType.cudaMemAllocationTypeInvalid{{endif}} - {{if 'cudaMemAllocationTypePinned' in found_values}} + + cudaMemAllocationTypeInvalid = cyruntime.cudaMemAllocationType.cudaMemAllocationTypeInvalid + cudaMemAllocationTypePinned = ( cyruntime.cudaMemAllocationType.cudaMemAllocationTypePinned, "This allocation type is 'pinned', i.e. cannot migrate from its current\n" 'location while the application is actively using it\n' - ){{endif}} - {{if 'cudaMemAllocationTypeMax' in found_values}} - cudaMemAllocationTypeMax = cyruntime.cudaMemAllocationType.cudaMemAllocationTypeMax{{endif}} + ) -{{endif}} -{{if 'cudaMemAllocationHandleType' in found_types}} + cudaMemAllocationTypeMax = cyruntime.cudaMemAllocationType.cudaMemAllocationTypeMax class cudaMemAllocationHandleType(_FastEnum): """ Flags for specifying particular handle types """ - {{if 'cudaMemHandleTypeNone' in found_values}} + cudaMemHandleTypeNone = ( cyruntime.cudaMemAllocationHandleType.cudaMemHandleTypeNone, 'Does not allow any export mechanism. >\n' - ){{endif}} - {{if 'cudaMemHandleTypePosixFileDescriptor' in found_values}} + ) + cudaMemHandleTypePosixFileDescriptor = ( cyruntime.cudaMemAllocationHandleType.cudaMemHandleTypePosixFileDescriptor, 'Allows a file descriptor to be used for exporting. Permitted only on POSIX\n' 'systems. (int)\n' - ){{endif}} - {{if 'cudaMemHandleTypeWin32' in found_values}} + ) + cudaMemHandleTypeWin32 = ( cyruntime.cudaMemAllocationHandleType.cudaMemHandleTypeWin32, 'Allows a Win32 NT handle to be used for exporting. (HANDLE)\n' - ){{endif}} - {{if 'cudaMemHandleTypeWin32Kmt' in found_values}} + ) + cudaMemHandleTypeWin32Kmt = ( cyruntime.cudaMemAllocationHandleType.cudaMemHandleTypeWin32Kmt, 'Allows a Win32 KMT handle to be used for exporting. (D3DKMT_HANDLE)\n' - ){{endif}} - {{if 'cudaMemHandleTypeFabric' in found_values}} + ) + cudaMemHandleTypeFabric = ( cyruntime.cudaMemAllocationHandleType.cudaMemHandleTypeFabric, 'Allows a fabric handle to be used for exporting.\n' '(:py:obj:`~.cudaMemFabricHandle_t`)\n' - ){{endif}} - -{{endif}} -{{if 'cudaGraphMemAttributeType' in found_types}} + ) class cudaGraphMemAttributeType(_FastEnum): """ Graph memory attributes """ - {{if 'cudaGraphMemAttrUsedMemCurrent' in found_values}} + cudaGraphMemAttrUsedMemCurrent = ( cyruntime.cudaGraphMemAttributeType.cudaGraphMemAttrUsedMemCurrent, '(value type = cuuint64_t) Amount of memory, in bytes, currently associated\n' 'with graphs.\n' - ){{endif}} - {{if 'cudaGraphMemAttrUsedMemHigh' in found_values}} + ) + cudaGraphMemAttrUsedMemHigh = ( cyruntime.cudaGraphMemAttributeType.cudaGraphMemAttrUsedMemHigh, '(value type = cuuint64_t) High watermark of memory, in bytes, associated\n' 'with graphs since the last time it was reset. High watermark can only be\n' 'reset to zero.\n' - ){{endif}} - {{if 'cudaGraphMemAttrReservedMemCurrent' in found_values}} + ) + cudaGraphMemAttrReservedMemCurrent = ( cyruntime.cudaGraphMemAttributeType.cudaGraphMemAttrReservedMemCurrent, '(value type = cuuint64_t) Amount of memory, in bytes, currently allocated\n' 'for use by the CUDA graphs asynchronous allocator.\n' - ){{endif}} - {{if 'cudaGraphMemAttrReservedMemHigh' in found_values}} + ) + cudaGraphMemAttrReservedMemHigh = ( cyruntime.cudaGraphMemAttributeType.cudaGraphMemAttrReservedMemHigh, '(value type = cuuint64_t) High watermark of memory, in bytes, currently\n' 'allocated for use by the CUDA graphs asynchronous allocator.\n' - ){{endif}} - -{{endif}} -{{if 'cudaMemcpyFlags' in found_types}} + ) class cudaMemcpyFlags(_FastEnum): """ Flags to specify for copies within a batch. For more details see :py:obj:`~.cudaMemcpyBatchAsync`. """ - {{if 'cudaMemcpyFlagDefault' in found_values}} - cudaMemcpyFlagDefault = cyruntime.cudaMemcpyFlags.cudaMemcpyFlagDefault{{endif}} - {{if 'cudaMemcpyFlagPreferOverlapWithCompute' in found_values}} + + cudaMemcpyFlagDefault = cyruntime.cudaMemcpyFlags.cudaMemcpyFlagDefault + cudaMemcpyFlagPreferOverlapWithCompute = ( cyruntime.cudaMemcpyFlags.cudaMemcpyFlagPreferOverlapWithCompute, 'Hint to the driver to try and overlap the copy with compute work on the\n' 'SMs.\n' - ){{endif}} - -{{endif}} -{{if 'cudaMemcpySrcAccessOrder' in found_types}} + ) class cudaMemcpySrcAccessOrder(_FastEnum): """ """ - {{if 'cudaMemcpySrcAccessOrderInvalid' in found_values}} + cudaMemcpySrcAccessOrderInvalid = ( cyruntime.cudaMemcpySrcAccessOrder.cudaMemcpySrcAccessOrderInvalid, 'Default invalid.\n' - ){{endif}} - {{if 'cudaMemcpySrcAccessOrderStream' in found_values}} + ) + cudaMemcpySrcAccessOrderStream = ( cyruntime.cudaMemcpySrcAccessOrder.cudaMemcpySrcAccessOrderStream, 'Indicates that access to the source pointer must be in stream order.\n' - ){{endif}} - {{if 'cudaMemcpySrcAccessOrderDuringApiCall' in found_values}} + ) + cudaMemcpySrcAccessOrderDuringApiCall = ( cyruntime.cudaMemcpySrcAccessOrder.cudaMemcpySrcAccessOrderDuringApiCall, @@ -4929,8 +4786,8 @@ class cudaMemcpySrcAccessOrder(_FastEnum): 'was declared in. Specifying this flag allows the driver to optimize the\n' 'copy and removes the need for the user to synchronize the stream after the\n' 'API call.\n' - ){{endif}} - {{if 'cudaMemcpySrcAccessOrderAny' in found_values}} + ) + cudaMemcpySrcAccessOrderAny = ( cyruntime.cudaMemcpySrcAccessOrder.cudaMemcpySrcAccessOrderAny, @@ -4940,205 +4797,190 @@ class cudaMemcpySrcAccessOrder(_FastEnum): 'known that no prior operations in the stream can be accessing the memory.\n' 'Specifying this flag allows the driver to optimize the copy on certain\n' 'platforms.\n' - ){{endif}} - {{if 'cudaMemcpySrcAccessOrderMax' in found_values}} - cudaMemcpySrcAccessOrderMax = cyruntime.cudaMemcpySrcAccessOrder.cudaMemcpySrcAccessOrderMax{{endif}} + ) -{{endif}} -{{if 'cudaMemcpy3DOperandType' in found_types}} + cudaMemcpySrcAccessOrderMax = cyruntime.cudaMemcpySrcAccessOrder.cudaMemcpySrcAccessOrderMax class cudaMemcpy3DOperandType(_FastEnum): """ These flags allow applications to convey the operand type for individual copies specified in :py:obj:`~.cudaMemcpy3DBatchAsync`. """ - {{if 'cudaMemcpyOperandTypePointer' in found_values}} + cudaMemcpyOperandTypePointer = ( cyruntime.cudaMemcpy3DOperandType.cudaMemcpyOperandTypePointer, 'Memcpy operand is a valid pointer.\n' - ){{endif}} - {{if 'cudaMemcpyOperandTypeArray' in found_values}} + ) + cudaMemcpyOperandTypeArray = ( cyruntime.cudaMemcpy3DOperandType.cudaMemcpyOperandTypeArray, 'Memcpy operand is a CUarray.\n' - ){{endif}} - {{if 'cudaMemcpyOperandTypeMax' in found_values}} - cudaMemcpyOperandTypeMax = cyruntime.cudaMemcpy3DOperandType.cudaMemcpyOperandTypeMax{{endif}} + ) -{{endif}} -{{if 'cudaDeviceP2PAttr' in found_types}} + cudaMemcpyOperandTypeMax = cyruntime.cudaMemcpy3DOperandType.cudaMemcpyOperandTypeMax class cudaDeviceP2PAttr(_FastEnum): """ CUDA device P2P attributes """ - {{if 'cudaDevP2PAttrPerformanceRank' in found_values}} + cudaDevP2PAttrPerformanceRank = ( cyruntime.cudaDeviceP2PAttr.cudaDevP2PAttrPerformanceRank, 'A relative value indicating the performance of the link between two devices\n' - ){{endif}} - {{if 'cudaDevP2PAttrAccessSupported' in found_values}} + ) + cudaDevP2PAttrAccessSupported = ( cyruntime.cudaDeviceP2PAttr.cudaDevP2PAttrAccessSupported, 'Peer access is enabled\n' - ){{endif}} - {{if 'cudaDevP2PAttrNativeAtomicSupported' in found_values}} + ) + cudaDevP2PAttrNativeAtomicSupported = ( cyruntime.cudaDeviceP2PAttr.cudaDevP2PAttrNativeAtomicSupported, 'Native atomic operation over the link supported\n' - ){{endif}} - {{if 'cudaDevP2PAttrCudaArrayAccessSupported' in found_values}} + ) + cudaDevP2PAttrCudaArrayAccessSupported = ( cyruntime.cudaDeviceP2PAttr.cudaDevP2PAttrCudaArrayAccessSupported, 'Accessing CUDA arrays over the link supported\n' - ){{endif}} - -{{endif}} -{{if 'cudaExternalMemoryHandleType' in found_types}} + ) class cudaExternalMemoryHandleType(_FastEnum): """ External memory handle types """ - {{if 'cudaExternalMemoryHandleTypeOpaqueFd' in found_values}} + cudaExternalMemoryHandleTypeOpaqueFd = ( cyruntime.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeOpaqueFd, 'Handle is an opaque file descriptor\n' - ){{endif}} - {{if 'cudaExternalMemoryHandleTypeOpaqueWin32' in found_values}} + ) + cudaExternalMemoryHandleTypeOpaqueWin32 = ( cyruntime.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeOpaqueWin32, 'Handle is an opaque shared NT handle\n' - ){{endif}} - {{if 'cudaExternalMemoryHandleTypeOpaqueWin32Kmt' in found_values}} + ) + cudaExternalMemoryHandleTypeOpaqueWin32Kmt = ( cyruntime.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeOpaqueWin32Kmt, 'Handle is an opaque, globally shared handle\n' - ){{endif}} - {{if 'cudaExternalMemoryHandleTypeD3D12Heap' in found_values}} + ) + cudaExternalMemoryHandleTypeD3D12Heap = ( cyruntime.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeD3D12Heap, 'Handle is a D3D12 heap object\n' - ){{endif}} - {{if 'cudaExternalMemoryHandleTypeD3D12Resource' in found_values}} + ) + cudaExternalMemoryHandleTypeD3D12Resource = ( cyruntime.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeD3D12Resource, 'Handle is a D3D12 committed resource\n' - ){{endif}} - {{if 'cudaExternalMemoryHandleTypeD3D11Resource' in found_values}} + ) + cudaExternalMemoryHandleTypeD3D11Resource = ( cyruntime.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeD3D11Resource, 'Handle is a shared NT handle to a D3D11 resource\n' - ){{endif}} - {{if 'cudaExternalMemoryHandleTypeD3D11ResourceKmt' in found_values}} + ) + cudaExternalMemoryHandleTypeD3D11ResourceKmt = ( cyruntime.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeD3D11ResourceKmt, 'Handle is a globally shared handle to a D3D11 resource\n' - ){{endif}} - {{if 'cudaExternalMemoryHandleTypeNvSciBuf' in found_values}} + ) + cudaExternalMemoryHandleTypeNvSciBuf = ( cyruntime.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeNvSciBuf, 'Handle is an NvSciBuf object\n' - ){{endif}} - -{{endif}} -{{if 'cudaExternalSemaphoreHandleType' in found_types}} + ) class cudaExternalSemaphoreHandleType(_FastEnum): """ External semaphore handle types """ - {{if 'cudaExternalSemaphoreHandleTypeOpaqueFd' in found_values}} + cudaExternalSemaphoreHandleTypeOpaqueFd = ( cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeOpaqueFd, 'Handle is an opaque file descriptor\n' - ){{endif}} - {{if 'cudaExternalSemaphoreHandleTypeOpaqueWin32' in found_values}} + ) + cudaExternalSemaphoreHandleTypeOpaqueWin32 = ( cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeOpaqueWin32, 'Handle is an opaque shared NT handle\n' - ){{endif}} - {{if 'cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt' in found_values}} + ) + cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt = ( cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt, 'Handle is an opaque, globally shared handle\n' - ){{endif}} - {{if 'cudaExternalSemaphoreHandleTypeD3D12Fence' in found_values}} + ) + cudaExternalSemaphoreHandleTypeD3D12Fence = ( cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeD3D12Fence, 'Handle is a shared NT handle referencing a D3D12 fence object\n' - ){{endif}} - {{if 'cudaExternalSemaphoreHandleTypeD3D11Fence' in found_values}} + ) + cudaExternalSemaphoreHandleTypeD3D11Fence = ( cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeD3D11Fence, 'Handle is a shared NT handle referencing a D3D11 fence object\n' - ){{endif}} - {{if 'cudaExternalSemaphoreHandleTypeNvSciSync' in found_values}} + ) + cudaExternalSemaphoreHandleTypeNvSciSync = ( cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeNvSciSync, 'Opaque handle to NvSciSync Object\n' - ){{endif}} - {{if 'cudaExternalSemaphoreHandleTypeKeyedMutex' in found_values}} + ) + cudaExternalSemaphoreHandleTypeKeyedMutex = ( cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeKeyedMutex, 'Handle is a shared NT handle referencing a D3D11 keyed mutex object\n' - ){{endif}} - {{if 'cudaExternalSemaphoreHandleTypeKeyedMutexKmt' in found_values}} + ) + cudaExternalSemaphoreHandleTypeKeyedMutexKmt = ( cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeKeyedMutexKmt, 'Handle is a shared KMT handle referencing a D3D11 keyed mutex object\n' - ){{endif}} - {{if 'cudaExternalSemaphoreHandleTypeTimelineSemaphoreFd' in found_values}} + ) + cudaExternalSemaphoreHandleTypeTimelineSemaphoreFd = ( cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeTimelineSemaphoreFd, 'Handle is an opaque handle file descriptor referencing a timeline semaphore\n' - ){{endif}} - {{if 'cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32' in found_values}} + ) + cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32 = ( cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32, 'Handle is an opaque handle file descriptor referencing a timeline semaphore\n' - ){{endif}} - -{{endif}} -{{if 'cudaJitOption' in found_types}} + ) class cudaJitOption(_FastEnum): """ Online compiler and linker options """ - {{if 'cudaJitMaxRegisters' in found_values}} + cudaJitMaxRegisters = ( cyruntime.cudaJitOption.cudaJitMaxRegisters, 'Max number of registers that a thread may use.\n' 'Option type: unsigned int\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'cudaJitThreadsPerBlock' in found_values}} + ) + cudaJitThreadsPerBlock = ( cyruntime.cudaJitOption.cudaJitThreadsPerBlock, @@ -5151,8 +4993,8 @@ class cudaJitOption(_FastEnum): 'utilization.\n' 'Option type: unsigned int\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'cudaJitWallTime' in found_values}} + ) + cudaJitWallTime = ( cyruntime.cudaJitOption.cudaJitWallTime, @@ -5160,8 +5002,8 @@ class cudaJitOption(_FastEnum): 'milliseconds, spent in the compiler and linker\n' 'Option type: float\n' 'Applies to: compiler and linker\n' - ){{endif}} - {{if 'cudaJitInfoLogBuffer' in found_values}} + ) + cudaJitInfoLogBuffer = ( cyruntime.cudaJitOption.cudaJitInfoLogBuffer, @@ -5170,8 +5012,8 @@ class cudaJitOption(_FastEnum): ':py:obj:`~.cudaJitInfoLogBufferSizeBytes`)\n' 'Option type: char *\n' 'Applies to: compiler and linker\n' - ){{endif}} - {{if 'cudaJitInfoLogBufferSizeBytes' in found_values}} + ) + cudaJitInfoLogBufferSizeBytes = ( cyruntime.cudaJitOption.cudaJitInfoLogBufferSizeBytes, @@ -5180,8 +5022,8 @@ class cudaJitOption(_FastEnum): 'OUT: Amount of log buffer filled with messages\n' 'Option type: unsigned int\n' 'Applies to: compiler and linker\n' - ){{endif}} - {{if 'cudaJitErrorLogBuffer' in found_values}} + ) + cudaJitErrorLogBuffer = ( cyruntime.cudaJitOption.cudaJitErrorLogBuffer, @@ -5190,8 +5032,8 @@ class cudaJitOption(_FastEnum): ':py:obj:`~.cudaJitErrorLogBufferSizeBytes`)\n' 'Option type: char *\n' 'Applies to: compiler and linker\n' - ){{endif}} - {{if 'cudaJitErrorLogBufferSizeBytes' in found_values}} + ) + cudaJitErrorLogBufferSizeBytes = ( cyruntime.cudaJitOption.cudaJitErrorLogBufferSizeBytes, @@ -5200,8 +5042,8 @@ class cudaJitOption(_FastEnum): 'OUT: Amount of log buffer filled with messages\n' 'Option type: unsigned int\n' 'Applies to: compiler and linker\n' - ){{endif}} - {{if 'cudaJitOptimizationLevel' in found_values}} + ) + cudaJitOptimizationLevel = ( cyruntime.cudaJitOption.cudaJitOptimizationLevel, @@ -5209,8 +5051,8 @@ class cudaJitOption(_FastEnum): 'default and highest level of optimizations.\n' 'Option type: unsigned int\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'cudaJitFallbackStrategy' in found_values}} + ) + cudaJitFallbackStrategy = ( cyruntime.cudaJitOption.cudaJitFallbackStrategy, @@ -5218,8 +5060,8 @@ class cudaJitOption(_FastEnum): 'Choice is based on supplied :py:obj:`~.cudaJit_Fallback`. Option type:\n' 'unsigned int for enumerated type :py:obj:`~.cudaJit_Fallback`\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'cudaJitGenerateDebugInfo' in found_values}} + ) + cudaJitGenerateDebugInfo = ( cyruntime.cudaJitOption.cudaJitGenerateDebugInfo, @@ -5227,24 +5069,24 @@ class cudaJitOption(_FastEnum): 'default)\n' 'Option type: int\n' 'Applies to: compiler and linker\n' - ){{endif}} - {{if 'cudaJitLogVerbose' in found_values}} + ) + cudaJitLogVerbose = ( cyruntime.cudaJitOption.cudaJitLogVerbose, 'Generate verbose log messages (0: false, default)\n' 'Option type: int\n' 'Applies to: compiler and linker\n' - ){{endif}} - {{if 'cudaJitGenerateLineInfo' in found_values}} + ) + cudaJitGenerateLineInfo = ( cyruntime.cudaJitOption.cudaJitGenerateLineInfo, 'Generate line number information (-lineinfo) (0: false, default)\n' 'Option type: int\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'cudaJitCacheMode' in found_values}} + ) + cudaJitCacheMode = ( cyruntime.cudaJitOption.cudaJitCacheMode, @@ -5252,16 +5094,16 @@ class cudaJitOption(_FastEnum): 'Choice is based on supplied :py:obj:`~.cudaJit_CacheMode`.\n' 'Option type: unsigned int for enumerated type :py:obj:`~.cudaJit_CacheMode`\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'cudaJitPositionIndependentCode' in found_values}} + ) + cudaJitPositionIndependentCode = ( cyruntime.cudaJitOption.cudaJitPositionIndependentCode, 'Generate position independent code (0: false)\n' 'Option type: int\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'cudaJitMinCtaPerSm' in found_values}} + ) + cudaJitMinCtaPerSm = ( cyruntime.cudaJitOption.cudaJitMinCtaPerSm, @@ -5274,8 +5116,8 @@ class cudaJitOption(_FastEnum): 'default. Use :py:obj:`~.cudaJitOverrideDirectiveValues` to let this option\n' 'take precedence over the PTX directive. Option type: unsigned int\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'cudaJitMaxThreadsPerBlock' in found_values}} + ) + cudaJitMaxThreadsPerBlock = ( cyruntime.cudaJitOption.cudaJitMaxThreadsPerBlock, @@ -5287,8 +5129,8 @@ class cudaJitOption(_FastEnum): 'be ignored by default. Use :py:obj:`~.cudaJitOverrideDirectiveValues` to\n' 'let this option take precedence over the PTX directive. Option type: int\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'cudaJitOverrideDirectiveValues' in found_values}} + ) + cudaJitOverrideDirectiveValues = ( cyruntime.cudaJitOption.cudaJitOverrideDirectiveValues, @@ -5298,10 +5140,7 @@ class cudaJitOption(_FastEnum): 'take precedence over any PTX directives. (0: Disable, default; 1: Enable)\n' 'Option type: int\n' 'Applies to: compiler only\n' - ){{endif}} - -{{endif}} -{{if 'cudaLibraryOption' in found_types}} + ) class cudaLibraryOption(_FastEnum): """ @@ -5309,9 +5148,9 @@ class cudaLibraryOption(_FastEnum): :py:obj:`~.cudaLibraryLoadData()` or :py:obj:`~.cudaLibraryLoadFromFile()` """ - {{if 'cudaLibraryHostUniversalFunctionAndDataTable' in found_values}} - cudaLibraryHostUniversalFunctionAndDataTable = cyruntime.cudaLibraryOption.cudaLibraryHostUniversalFunctionAndDataTable{{endif}} - {{if 'cudaLibraryBinaryIsPreserved' in found_values}} + + cudaLibraryHostUniversalFunctionAndDataTable = cyruntime.cudaLibraryOption.cudaLibraryHostUniversalFunctionAndDataTable + cudaLibraryBinaryIsPreserved = ( cyruntime.cudaLibraryOption.cudaLibraryBinaryIsPreserved, @@ -5323,205 +5162,187 @@ class cudaLibraryOption(_FastEnum): 'memory usage optimization hint and the driver can choose to ignore it if\n' 'required. Specifying this option with :py:obj:`~.cudaLibraryLoadFromFile()`\n' 'is invalid and will return :py:obj:`~.cudaErrorInvalidValue`.\n' - ){{endif}} - -{{endif}} -{{if 'cudaJit_CacheMode' in found_types}} + ) class cudaJit_CacheMode(_FastEnum): """ Caching modes for dlcm """ - {{if 'cudaJitCacheOptionNone' in found_values}} + cudaJitCacheOptionNone = ( cyruntime.cudaJit_CacheMode.cudaJitCacheOptionNone, 'Compile with no -dlcm flag specified\n' - ){{endif}} - {{if 'cudaJitCacheOptionCG' in found_values}} + ) + cudaJitCacheOptionCG = ( cyruntime.cudaJit_CacheMode.cudaJitCacheOptionCG, 'Compile with L1 cache disabled\n' - ){{endif}} - {{if 'cudaJitCacheOptionCA' in found_values}} + ) + cudaJitCacheOptionCA = ( cyruntime.cudaJit_CacheMode.cudaJitCacheOptionCA, 'Compile with L1 cache enabled\n' - ){{endif}} - -{{endif}} -{{if 'cudaJit_Fallback' in found_types}} + ) class cudaJit_Fallback(_FastEnum): """ Cubin matching fallback strategies """ - {{if 'cudaPreferPtx' in found_values}} + cudaPreferPtx = ( cyruntime.cudaJit_Fallback.cudaPreferPtx, 'Prefer to compile ptx if exact binary match not found\n' - ){{endif}} - {{if 'cudaPreferBinary' in found_values}} + ) + cudaPreferBinary = ( cyruntime.cudaJit_Fallback.cudaPreferBinary, 'Prefer to fall back to compatible binary code if exact match not found\n' - ){{endif}} - -{{endif}} -{{if 'cudaCGScope' in found_types}} + ) class cudaCGScope(_FastEnum): """ CUDA cooperative group scope """ - {{if 'cudaCGScopeInvalid' in found_values}} + cudaCGScopeInvalid = ( cyruntime.cudaCGScope.cudaCGScopeInvalid, 'Invalid cooperative group scope\n' - ){{endif}} - {{if 'cudaCGScopeGrid' in found_values}} + ) + cudaCGScopeGrid = ( cyruntime.cudaCGScope.cudaCGScopeGrid, 'Scope represented by a grid_group\n' - ){{endif}} - {{if 'cudaCGScopeMultiGrid' in found_values}} + ) + cudaCGScopeMultiGrid = ( cyruntime.cudaCGScope.cudaCGScopeMultiGrid, 'Scope represented by a multi_grid_group\n' - ){{endif}} - -{{endif}} -{{if 'cudaGraphConditionalHandleFlags' in found_types}} + ) class cudaGraphConditionalHandleFlags(_FastEnum): """ """ - {{if 'cudaGraphCondAssignDefault' in found_values}} + cudaGraphCondAssignDefault = ( cyruntime.cudaGraphConditionalHandleFlags.cudaGraphCondAssignDefault, 'Apply default handle value when graph is launched.\n' - ){{endif}} - -{{endif}} -{{if 'cudaGraphConditionalNodeType' in found_types}} + ) class cudaGraphConditionalNodeType(_FastEnum): """ CUDA conditional node types """ - {{if 'cudaGraphCondTypeIf' in found_values}} + cudaGraphCondTypeIf = ( cyruntime.cudaGraphConditionalNodeType.cudaGraphCondTypeIf, "Conditional 'if/else' Node. Body[0] executed if condition is non-zero. If\n" '`size` == 2, an optional ELSE graph is created and this is executed if the\n' 'condition is zero.\n' - ){{endif}} - {{if 'cudaGraphCondTypeWhile' in found_values}} + ) + cudaGraphCondTypeWhile = ( cyruntime.cudaGraphConditionalNodeType.cudaGraphCondTypeWhile, "Conditional 'while' Node. Body executed repeatedly while condition value is\n" 'non-zero.\n' - ){{endif}} - {{if 'cudaGraphCondTypeSwitch' in found_values}} + ) + cudaGraphCondTypeSwitch = ( cyruntime.cudaGraphConditionalNodeType.cudaGraphCondTypeSwitch, "Conditional 'switch' Node. Body[n] is executed once, where 'n' is the value\n" 'of the condition. If the condition does not match a body index, no body is\n' 'launched.\n' - ){{endif}} - -{{endif}} -{{if 'cudaGraphNodeType' in found_types}} + ) class cudaGraphNodeType(_FastEnum): """ CUDA Graph node types """ - {{if 'cudaGraphNodeTypeKernel' in found_values}} + cudaGraphNodeTypeKernel = ( cyruntime.cudaGraphNodeType.cudaGraphNodeTypeKernel, 'GPU kernel node\n' - ){{endif}} - {{if 'cudaGraphNodeTypeMemcpy' in found_values}} + ) + cudaGraphNodeTypeMemcpy = ( cyruntime.cudaGraphNodeType.cudaGraphNodeTypeMemcpy, 'Memcpy node\n' - ){{endif}} - {{if 'cudaGraphNodeTypeMemset' in found_values}} + ) + cudaGraphNodeTypeMemset = ( cyruntime.cudaGraphNodeType.cudaGraphNodeTypeMemset, 'Memset node\n' - ){{endif}} - {{if 'cudaGraphNodeTypeHost' in found_values}} + ) + cudaGraphNodeTypeHost = ( cyruntime.cudaGraphNodeType.cudaGraphNodeTypeHost, 'Host (executable) node\n' - ){{endif}} - {{if 'cudaGraphNodeTypeGraph' in found_values}} + ) + cudaGraphNodeTypeGraph = ( cyruntime.cudaGraphNodeType.cudaGraphNodeTypeGraph, 'Node which executes an embedded graph\n' - ){{endif}} - {{if 'cudaGraphNodeTypeEmpty' in found_values}} + ) + cudaGraphNodeTypeEmpty = ( cyruntime.cudaGraphNodeType.cudaGraphNodeTypeEmpty, 'Empty (no-op) node\n' - ){{endif}} - {{if 'cudaGraphNodeTypeWaitEvent' in found_values}} + ) + cudaGraphNodeTypeWaitEvent = ( cyruntime.cudaGraphNodeType.cudaGraphNodeTypeWaitEvent, 'External event wait node\n' - ){{endif}} - {{if 'cudaGraphNodeTypeEventRecord' in found_values}} + ) + cudaGraphNodeTypeEventRecord = ( cyruntime.cudaGraphNodeType.cudaGraphNodeTypeEventRecord, 'External event record node\n' - ){{endif}} - {{if 'cudaGraphNodeTypeExtSemaphoreSignal' in found_values}} + ) + cudaGraphNodeTypeExtSemaphoreSignal = ( cyruntime.cudaGraphNodeType.cudaGraphNodeTypeExtSemaphoreSignal, 'External semaphore signal node\n' - ){{endif}} - {{if 'cudaGraphNodeTypeExtSemaphoreWait' in found_values}} + ) + cudaGraphNodeTypeExtSemaphoreWait = ( cyruntime.cudaGraphNodeType.cudaGraphNodeTypeExtSemaphoreWait, 'External semaphore wait node\n' - ){{endif}} - {{if 'cudaGraphNodeTypeMemAlloc' in found_values}} + ) + cudaGraphNodeTypeMemAlloc = ( cyruntime.cudaGraphNodeType.cudaGraphNodeTypeMemAlloc, 'Memory allocation node\n' - ){{endif}} - {{if 'cudaGraphNodeTypeMemFree' in found_values}} + ) + cudaGraphNodeTypeMemFree = ( cyruntime.cudaGraphNodeType.cudaGraphNodeTypeMemFree, 'Memory free node\n' - ){{endif}} - {{if 'cudaGraphNodeTypeConditional' in found_values}} + ) + cudaGraphNodeTypeConditional = ( cyruntime.cudaGraphNodeType.cudaGraphNodeTypeConditional, @@ -5547,26 +5368,23 @@ class cudaGraphNodeType(_FastEnum): 'default value when creating the handle and/or\n' ' call :py:obj:`~.cudaGraphSetConditional`\n' 'from device code.\n' - ){{endif}} - {{if 'cudaGraphNodeTypeCount' in found_values}} - cudaGraphNodeTypeCount = cyruntime.cudaGraphNodeType.cudaGraphNodeTypeCount{{endif}} + ) -{{endif}} -{{if 'cudaGraphChildGraphNodeOwnership' in found_types}} + cudaGraphNodeTypeCount = cyruntime.cudaGraphNodeType.cudaGraphNodeTypeCount class cudaGraphChildGraphNodeOwnership(_FastEnum): """ Child graph node ownership """ - {{if 'cudaGraphChildGraphOwnershipClone' in found_values}} + cudaGraphChildGraphOwnershipClone = ( cyruntime.cudaGraphChildGraphNodeOwnership.cudaGraphChildGraphOwnershipClone, 'Default behavior for a child graph node. Child graph is cloned into the\n' "parent and memory allocation/free nodes can't be present in the child\n" 'graph.\n' - ){{endif}} - {{if 'cudaGraphChildGraphOwnershipMove' in found_values}} + ) + cudaGraphChildGraphOwnershipMove = ( cyruntime.cudaGraphChildGraphNodeOwnership.cudaGraphChildGraphOwnershipMove, @@ -5577,110 +5395,101 @@ class cudaGraphChildGraphNodeOwnership(_FastEnum): 'as a child graph of a separate parent graph; Cannot be used as an argument\n' 'to cudaGraphExecUpdate; Cannot have additional memory allocation or free\n' 'nodes added.\n' - ){{endif}} - -{{endif}} -{{if 'cudaGraphExecUpdateResult' in found_types}} + ) class cudaGraphExecUpdateResult(_FastEnum): """ CUDA Graph Update error types """ - {{if 'cudaGraphExecUpdateSuccess' in found_values}} + cudaGraphExecUpdateSuccess = ( cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateSuccess, 'The update succeeded\n' - ){{endif}} - {{if 'cudaGraphExecUpdateError' in found_values}} + ) + cudaGraphExecUpdateError = ( cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateError, 'The update failed for an unexpected reason which is described in the return\n' 'value of the function\n' - ){{endif}} - {{if 'cudaGraphExecUpdateErrorTopologyChanged' in found_values}} + ) + cudaGraphExecUpdateErrorTopologyChanged = ( cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorTopologyChanged, 'The update failed because the topology changed\n' - ){{endif}} - {{if 'cudaGraphExecUpdateErrorNodeTypeChanged' in found_values}} + ) + cudaGraphExecUpdateErrorNodeTypeChanged = ( cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorNodeTypeChanged, 'The update failed because a node type changed\n' - ){{endif}} - {{if 'cudaGraphExecUpdateErrorFunctionChanged' in found_values}} + ) + cudaGraphExecUpdateErrorFunctionChanged = ( cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorFunctionChanged, 'The update failed because the function of a kernel node changed (CUDA\n' 'driver < 11.2)\n' - ){{endif}} - {{if 'cudaGraphExecUpdateErrorParametersChanged' in found_values}} + ) + cudaGraphExecUpdateErrorParametersChanged = ( cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorParametersChanged, 'The update failed because the parameters changed in a way that is not\n' 'supported\n' - ){{endif}} - {{if 'cudaGraphExecUpdateErrorNotSupported' in found_values}} + ) + cudaGraphExecUpdateErrorNotSupported = ( cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorNotSupported, 'The update failed because something about the node is not supported\n' - ){{endif}} - {{if 'cudaGraphExecUpdateErrorUnsupportedFunctionChange' in found_values}} + ) + cudaGraphExecUpdateErrorUnsupportedFunctionChange = ( cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorUnsupportedFunctionChange, 'The update failed because the function of a kernel node changed in an\n' 'unsupported way\n' - ){{endif}} - {{if 'cudaGraphExecUpdateErrorAttributesChanged' in found_values}} + ) + cudaGraphExecUpdateErrorAttributesChanged = ( cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorAttributesChanged, 'The update failed because the node attributes changed in a way that is not\n' 'supported\n' - ){{endif}} - -{{endif}} -{{if 'cudaGraphKernelNodeField' in found_types}} + ) class cudaGraphKernelNodeField(_FastEnum): """ Specifies the field to update when performing multiple node updates from the device """ - {{if 'cudaGraphKernelNodeFieldInvalid' in found_values}} + cudaGraphKernelNodeFieldInvalid = ( cyruntime.cudaGraphKernelNodeField.cudaGraphKernelNodeFieldInvalid, 'Invalid field\n' - ){{endif}} - {{if 'cudaGraphKernelNodeFieldGridDim' in found_values}} + ) + cudaGraphKernelNodeFieldGridDim = ( cyruntime.cudaGraphKernelNodeField.cudaGraphKernelNodeFieldGridDim, 'Grid dimension update\n' - ){{endif}} - {{if 'cudaGraphKernelNodeFieldParam' in found_values}} + ) + cudaGraphKernelNodeFieldParam = ( cyruntime.cudaGraphKernelNodeField.cudaGraphKernelNodeFieldParam, 'Kernel parameter update\n' - ){{endif}} - {{if 'cudaGraphKernelNodeFieldEnabled' in found_values}} + ) + cudaGraphKernelNodeFieldEnabled = ( cyruntime.cudaGraphKernelNodeField.cudaGraphKernelNodeFieldEnabled, 'Node enable/disable\n' - ){{endif}} - -{{endif}} -{{if 'cudaGetDriverEntryPointFlags' in found_types}} + ) class cudaGetDriverEntryPointFlags(_FastEnum): """ @@ -5688,140 +5497,131 @@ class cudaGetDriverEntryPointFlags(_FastEnum): :py:obj:`~.cudaGetDriverEntryPoint` For more details see :py:obj:`~.cuGetProcAddress` """ - {{if 'cudaEnableDefault' in found_values}} + cudaEnableDefault = ( cyruntime.cudaGetDriverEntryPointFlags.cudaEnableDefault, 'Default search mode for driver symbols.\n' - ){{endif}} - {{if 'cudaEnableLegacyStream' in found_values}} + ) + cudaEnableLegacyStream = ( cyruntime.cudaGetDriverEntryPointFlags.cudaEnableLegacyStream, 'Search for legacy versions of driver symbols.\n' - ){{endif}} - {{if 'cudaEnablePerThreadDefaultStream' in found_values}} + ) + cudaEnablePerThreadDefaultStream = ( cyruntime.cudaGetDriverEntryPointFlags.cudaEnablePerThreadDefaultStream, 'Search for per-thread versions of driver symbols.\n' - ){{endif}} - -{{endif}} -{{if 'cudaDriverEntryPointQueryResult' in found_types}} + ) class cudaDriverEntryPointQueryResult(_FastEnum): """ Enum for status from obtaining driver entry points, used with :py:obj:`~.cudaApiGetDriverEntryPoint` """ - {{if 'cudaDriverEntryPointSuccess' in found_values}} + cudaDriverEntryPointSuccess = ( cyruntime.cudaDriverEntryPointQueryResult.cudaDriverEntryPointSuccess, 'Search for symbol found a match\n' - ){{endif}} - {{if 'cudaDriverEntryPointSymbolNotFound' in found_values}} + ) + cudaDriverEntryPointSymbolNotFound = ( cyruntime.cudaDriverEntryPointQueryResult.cudaDriverEntryPointSymbolNotFound, 'Search for symbol was not found\n' - ){{endif}} - {{if 'cudaDriverEntryPointVersionNotSufficent' in found_values}} + ) + cudaDriverEntryPointVersionNotSufficent = ( cyruntime.cudaDriverEntryPointQueryResult.cudaDriverEntryPointVersionNotSufficent, "Search for symbol was found but version wasn't great enough\n" - ){{endif}} - -{{endif}} -{{if 'cudaGraphDebugDotFlags' in found_types}} + ) class cudaGraphDebugDotFlags(_FastEnum): """ CUDA Graph debug write options """ - {{if 'cudaGraphDebugDotFlagsVerbose' in found_values}} + cudaGraphDebugDotFlagsVerbose = ( cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsVerbose, 'Output all debug data as if every debug flag is enabled\n' - ){{endif}} - {{if 'cudaGraphDebugDotFlagsKernelNodeParams' in found_values}} + ) + cudaGraphDebugDotFlagsKernelNodeParams = ( cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsKernelNodeParams, 'Adds :py:obj:`~.cudaKernelNodeParams` to output\n' - ){{endif}} - {{if 'cudaGraphDebugDotFlagsMemcpyNodeParams' in found_values}} + ) + cudaGraphDebugDotFlagsMemcpyNodeParams = ( cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsMemcpyNodeParams, 'Adds :py:obj:`~.cudaMemcpy3DParms` to output\n' - ){{endif}} - {{if 'cudaGraphDebugDotFlagsMemsetNodeParams' in found_values}} + ) + cudaGraphDebugDotFlagsMemsetNodeParams = ( cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsMemsetNodeParams, 'Adds :py:obj:`~.cudaMemsetParams` to output\n' - ){{endif}} - {{if 'cudaGraphDebugDotFlagsHostNodeParams' in found_values}} + ) + cudaGraphDebugDotFlagsHostNodeParams = ( cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsHostNodeParams, 'Adds :py:obj:`~.cudaHostNodeParams` to output\n' - ){{endif}} - {{if 'cudaGraphDebugDotFlagsEventNodeParams' in found_values}} + ) + cudaGraphDebugDotFlagsEventNodeParams = ( cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsEventNodeParams, 'Adds :py:obj:`~.cudaEvent_t` handle from record and wait nodes to output\n' - ){{endif}} - {{if 'cudaGraphDebugDotFlagsExtSemasSignalNodeParams' in found_values}} + ) + cudaGraphDebugDotFlagsExtSemasSignalNodeParams = ( cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsExtSemasSignalNodeParams, 'Adds :py:obj:`~.cudaExternalSemaphoreSignalNodeParams` values to output\n' - ){{endif}} - {{if 'cudaGraphDebugDotFlagsExtSemasWaitNodeParams' in found_values}} + ) + cudaGraphDebugDotFlagsExtSemasWaitNodeParams = ( cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsExtSemasWaitNodeParams, 'Adds :py:obj:`~.cudaExternalSemaphoreWaitNodeParams` to output\n' - ){{endif}} - {{if 'cudaGraphDebugDotFlagsKernelNodeAttributes' in found_values}} + ) + cudaGraphDebugDotFlagsKernelNodeAttributes = ( cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsKernelNodeAttributes, 'Adds cudaKernelNodeAttrID values to output\n' - ){{endif}} - {{if 'cudaGraphDebugDotFlagsHandles' in found_values}} + ) + cudaGraphDebugDotFlagsHandles = ( cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsHandles, 'Adds node handles and every kernel function handle to output\n' - ){{endif}} - {{if 'cudaGraphDebugDotFlagsConditionalNodeParams' in found_values}} + ) + cudaGraphDebugDotFlagsConditionalNodeParams = ( cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsConditionalNodeParams, 'Adds :py:obj:`~.cudaConditionalNodeParams` to output\n' - ){{endif}} - -{{endif}} -{{if 'cudaGraphInstantiateFlags' in found_types}} + ) class cudaGraphInstantiateFlags(_FastEnum): """ Flags for instantiating a graph """ - {{if 'cudaGraphInstantiateFlagAutoFreeOnLaunch' in found_values}} + cudaGraphInstantiateFlagAutoFreeOnLaunch = ( cyruntime.cudaGraphInstantiateFlags.cudaGraphInstantiateFlagAutoFreeOnLaunch, 'Automatically free memory allocated in a graph before relaunching.\n' - ){{endif}} - {{if 'cudaGraphInstantiateFlagUpload' in found_values}} + ) + cudaGraphInstantiateFlagUpload = ( cyruntime.cudaGraphInstantiateFlags.cudaGraphInstantiateFlagUpload, @@ -5829,286 +5629,253 @@ class cudaGraphInstantiateFlags(_FastEnum): ' :py:obj:`~.cudaGraphInstantiateWithParams`. The upload will be performed\n' 'using the\n' ' stream provided in `instantiateParams`.\n' - ){{endif}} - {{if 'cudaGraphInstantiateFlagDeviceLaunch' in found_values}} + ) + cudaGraphInstantiateFlagDeviceLaunch = ( cyruntime.cudaGraphInstantiateFlags.cudaGraphInstantiateFlagDeviceLaunch, 'Instantiate the graph to be launchable from the device. This flag can only\n' ' be used on platforms which support unified addressing. This flag cannot be\n' ' used in conjunction with cudaGraphInstantiateFlagAutoFreeOnLaunch.\n' - ){{endif}} - {{if 'cudaGraphInstantiateFlagUseNodePriority' in found_values}} + ) + cudaGraphInstantiateFlagUseNodePriority = ( cyruntime.cudaGraphInstantiateFlags.cudaGraphInstantiateFlagUseNodePriority, 'Run the graph using the per-node priority attributes rather than the\n' 'priority of the stream it is launched into.\n' - ){{endif}} - -{{endif}} -{{if 'cudaDeviceNumaConfig' in found_types}} + ) class cudaDeviceNumaConfig(_FastEnum): """ CUDA device NUMA config """ - {{if 'cudaDeviceNumaConfigNone' in found_values}} + cudaDeviceNumaConfigNone = ( cyruntime.cudaDeviceNumaConfig.cudaDeviceNumaConfigNone, 'The GPU is not a NUMA node\n' - ){{endif}} - {{if 'cudaDeviceNumaConfigNumaNode' in found_values}} + ) + cudaDeviceNumaConfigNumaNode = ( cyruntime.cudaDeviceNumaConfig.cudaDeviceNumaConfigNumaNode, 'The GPU is a NUMA node, cudaDevAttrNumaId contains its NUMA ID\n' - ){{endif}} - -{{endif}} -{{if 'cudaSurfaceBoundaryMode' in found_types}} + ) class cudaSurfaceBoundaryMode(_FastEnum): """ CUDA Surface boundary modes """ - {{if 'cudaBoundaryModeZero' in found_values}} + cudaBoundaryModeZero = ( cyruntime.cudaSurfaceBoundaryMode.cudaBoundaryModeZero, 'Zero boundary mode\n' - ){{endif}} - {{if 'cudaBoundaryModeClamp' in found_values}} + ) + cudaBoundaryModeClamp = ( cyruntime.cudaSurfaceBoundaryMode.cudaBoundaryModeClamp, 'Clamp boundary mode\n' - ){{endif}} - {{if 'cudaBoundaryModeTrap' in found_values}} + ) + cudaBoundaryModeTrap = ( cyruntime.cudaSurfaceBoundaryMode.cudaBoundaryModeTrap, 'Trap boundary mode\n' - ){{endif}} - -{{endif}} -{{if 'cudaSurfaceFormatMode' in found_types}} + ) class cudaSurfaceFormatMode(_FastEnum): """ CUDA Surface format modes """ - {{if 'cudaFormatModeForced' in found_values}} + cudaFormatModeForced = ( cyruntime.cudaSurfaceFormatMode.cudaFormatModeForced, 'Forced format mode\n' - ){{endif}} - {{if 'cudaFormatModeAuto' in found_values}} + ) + cudaFormatModeAuto = ( cyruntime.cudaSurfaceFormatMode.cudaFormatModeAuto, 'Auto format mode\n' - ){{endif}} - -{{endif}} -{{if 'cudaTextureAddressMode' in found_types}} + ) class cudaTextureAddressMode(_FastEnum): """ CUDA texture address modes """ - {{if 'cudaAddressModeWrap' in found_values}} + cudaAddressModeWrap = ( cyruntime.cudaTextureAddressMode.cudaAddressModeWrap, 'Wrapping address mode\n' - ){{endif}} - {{if 'cudaAddressModeClamp' in found_values}} + ) + cudaAddressModeClamp = ( cyruntime.cudaTextureAddressMode.cudaAddressModeClamp, 'Clamp to edge address mode\n' - ){{endif}} - {{if 'cudaAddressModeMirror' in found_values}} + ) + cudaAddressModeMirror = ( cyruntime.cudaTextureAddressMode.cudaAddressModeMirror, 'Mirror address mode\n' - ){{endif}} - {{if 'cudaAddressModeBorder' in found_values}} + ) + cudaAddressModeBorder = ( cyruntime.cudaTextureAddressMode.cudaAddressModeBorder, 'Border address mode\n' - ){{endif}} - -{{endif}} -{{if 'cudaTextureFilterMode' in found_types}} + ) class cudaTextureFilterMode(_FastEnum): """ CUDA texture filter modes """ - {{if 'cudaFilterModePoint' in found_values}} + cudaFilterModePoint = ( cyruntime.cudaTextureFilterMode.cudaFilterModePoint, 'Point filter mode\n' - ){{endif}} - {{if 'cudaFilterModeLinear' in found_values}} + ) + cudaFilterModeLinear = ( cyruntime.cudaTextureFilterMode.cudaFilterModeLinear, 'Linear filter mode\n' - ){{endif}} - -{{endif}} -{{if 'cudaTextureReadMode' in found_types}} + ) class cudaTextureReadMode(_FastEnum): """ CUDA texture read modes """ - {{if 'cudaReadModeElementType' in found_values}} + cudaReadModeElementType = ( cyruntime.cudaTextureReadMode.cudaReadModeElementType, 'Read texture as specified element type\n' - ){{endif}} - {{if 'cudaReadModeNormalizedFloat' in found_values}} + ) + cudaReadModeNormalizedFloat = ( cyruntime.cudaTextureReadMode.cudaReadModeNormalizedFloat, 'Read texture as normalized float\n' - ){{endif}} - -{{endif}} -{{if 'cudaRoundMode' in found_types}} + ) class cudaRoundMode(_FastEnum): """ """ - {{if 'cudaRoundNearest' in found_values}} - cudaRoundNearest = cyruntime.cudaRoundMode.cudaRoundNearest{{endif}} - {{if 'cudaRoundZero' in found_values}} - cudaRoundZero = cyruntime.cudaRoundMode.cudaRoundZero{{endif}} - {{if 'cudaRoundPosInf' in found_values}} - cudaRoundPosInf = cyruntime.cudaRoundMode.cudaRoundPosInf{{endif}} - {{if 'cudaRoundMinInf' in found_values}} - cudaRoundMinInf = cyruntime.cudaRoundMode.cudaRoundMinInf{{endif}} -{{endif}} -{{if True}} + cudaRoundNearest = cyruntime.cudaRoundMode.cudaRoundNearest + + cudaRoundZero = cyruntime.cudaRoundMode.cudaRoundZero + + cudaRoundPosInf = cyruntime.cudaRoundMode.cudaRoundPosInf + + cudaRoundMinInf = cyruntime.cudaRoundMode.cudaRoundMinInf class cudaGLDeviceList(_FastEnum): """ CUDA devices corresponding to the current OpenGL context """ - {{if True}} + cudaGLDeviceListAll = ( cyruntime.cudaGLDeviceList.cudaGLDeviceListAll, 'The CUDA devices for all GPUs used by the current OpenGL context\n' - ){{endif}} - {{if True}} + ) + cudaGLDeviceListCurrentFrame = ( cyruntime.cudaGLDeviceList.cudaGLDeviceListCurrentFrame, 'The CUDA devices for the GPUs used by the current OpenGL context in its\n' 'currently rendering frame\n' - ){{endif}} - {{if True}} + ) + cudaGLDeviceListNextFrame = ( cyruntime.cudaGLDeviceList.cudaGLDeviceListNextFrame, 'The CUDA devices for the GPUs to be used by the current OpenGL context in\n' 'the next frame\n' - ){{endif}} - -{{endif}} -{{if True}} + ) class cudaGLMapFlags(_FastEnum): """ CUDA GL Map Flags """ - {{if True}} + cudaGLMapFlagsNone = ( cyruntime.cudaGLMapFlags.cudaGLMapFlagsNone, 'Default; Assume resource can be read/written\n' - ){{endif}} - {{if True}} + ) + cudaGLMapFlagsReadOnly = ( cyruntime.cudaGLMapFlags.cudaGLMapFlagsReadOnly, 'CUDA kernels will not write to this resource\n' - ){{endif}} - {{if True}} + ) + cudaGLMapFlagsWriteDiscard = ( cyruntime.cudaGLMapFlags.cudaGLMapFlagsWriteDiscard, 'CUDA kernels will only write to and will not read from this resource\n' - ){{endif}} - -{{endif}} + ) cdef object _cudaError_t = cudaError_t cdef object _cudaError_t_SUCCESS = cudaError_t.cudaSuccess - - -{{if 'cudaLaunchAttributeID' in found_types}} - class cudaStreamAttrID(_FastEnum): """ Launch attributes enum; used as id field of :py:obj:`~.cudaLaunchAttribute` """ - {{if 'cudaLaunchAttributeIgnore' in found_values}} + cudaLaunchAttributeIgnore = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeIgnore, 'Ignored entry, for convenient composition\n' - ){{endif}} - {{if 'cudaLaunchAttributeAccessPolicyWindow' in found_values}} + ) + cudaLaunchAttributeAccessPolicyWindow = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeAccessPolicyWindow, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.accessPolicyWindow`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeCooperative' in found_values}} + ) + cudaLaunchAttributeCooperative = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeCooperative, 'Valid for graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.cooperative`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeSynchronizationPolicy' in found_values}} + ) + cudaLaunchAttributeSynchronizationPolicy = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeSynchronizationPolicy, 'Valid for streams. See :py:obj:`~.cudaLaunchAttributeValue.syncPolicy`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeClusterDimension' in found_values}} + ) + cudaLaunchAttributeClusterDimension = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeClusterDimension, 'Valid for graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.clusterDim`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeClusterSchedulingPolicyPreference' in found_values}} + ) + cudaLaunchAttributeClusterSchedulingPolicyPreference = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeClusterSchedulingPolicyPreference, 'Valid for graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.clusterSchedulingPolicyPreference`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeProgrammaticStreamSerialization' in found_values}} + ) + cudaLaunchAttributeProgrammaticStreamSerialization = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeProgrammaticStreamSerialization, @@ -6120,8 +5887,8 @@ class cudaStreamAttrID(_FastEnum): 'that kernel requests the overlap. The dependent launches can choose to wait\n' 'on the dependency using the programmatic sync\n' '(cudaGridDependencySynchronize() or equivalent PTX instructions).\n' - ){{endif}} - {{if 'cudaLaunchAttributeProgrammaticEvent' in found_values}} + ) + cudaLaunchAttributeProgrammaticEvent = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeProgrammaticEvent, @@ -6145,29 +5912,29 @@ class cudaStreamAttrID(_FastEnum): ' The event supplied must not be an interprocess or interop event. The event\n' 'must disable timing (i.e. must be created with the\n' ':py:obj:`~.cudaEventDisableTiming` flag set).\n' - ){{endif}} - {{if 'cudaLaunchAttributePriority' in found_values}} + ) + cudaLaunchAttributePriority = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePriority, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.priority`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeMemSyncDomainMap' in found_values}} + ) + cudaLaunchAttributeMemSyncDomainMap = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeMemSyncDomainMap, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.memSyncDomainMap`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeMemSyncDomain' in found_values}} + ) + cudaLaunchAttributeMemSyncDomain = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeMemSyncDomain, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.memSyncDomain`.\n' - ){{endif}} - {{if 'cudaLaunchAttributePreferredClusterDimension' in found_values}} + ) + cudaLaunchAttributePreferredClusterDimension = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePreferredClusterDimension, @@ -6200,8 +5967,8 @@ class cudaStreamAttrID(_FastEnum): 'than the maximum value the driver can support. Otherwise, setting this\n' 'attribute to a value physically unable to fit on any particular device is\n' 'permitted.\n' - ){{endif}} - {{if 'cudaLaunchAttributeLaunchCompletionEvent' in found_values}} + ) + cudaLaunchAttributeLaunchCompletionEvent = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeLaunchCompletionEvent, @@ -6222,15 +5989,15 @@ class cudaStreamAttrID(_FastEnum): ' The event supplied must not be an interprocess or interop event. The event\n' 'must disable timing (i.e. must be created with the\n' ':py:obj:`~.cudaEventDisableTiming` flag set).\n' - ){{endif}} - {{if 'cudaLaunchAttributeDeviceUpdatableKernelNode' in found_values}} + ) + cudaLaunchAttributeDeviceUpdatableKernelNode = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeDeviceUpdatableKernelNode, 'Valid for graph nodes, launches. This attribute is graphs-only, and passing\n' 'it to a launch in a non-capturing stream will result in an error.\n' - ' :cudaLaunchAttributeValue::deviceUpdatableKernelNode::deviceUpdatable can\n' - 'only be set to 0 or 1. Setting the field to 1 indicates that the\n' + ':py:obj:`~.cudaLaunchAttributeValue.deviceUpdatableKernelNode.deviceUpdatable`\n' + 'can only be set to 0 or 1. Setting the field to 1 indicates that the\n' 'corresponding kernel node should be device-updatable. On success, a handle\n' 'will be returned via\n' ':py:obj:`~.cudaLaunchAttributeValue.deviceUpdatableKernelNode.devNode`\n' @@ -6254,8 +6021,8 @@ class cudaStreamAttrID(_FastEnum): ':py:obj:`~.cuGraphUpload` before it is launched. For such a graph, if host-\n' 'side executable graph updates are made to the device-updatable nodes, the\n' 'graph must be uploaded before it is launched again.\n' - ){{endif}} - {{if 'cudaLaunchAttributePreferredSharedMemoryCarveout' in found_values}} + ) + cudaLaunchAttributePreferredSharedMemoryCarveout = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePreferredSharedMemoryCarveout, @@ -6267,57 +6034,54 @@ class cudaStreamAttrID(_FastEnum): 'precedence over :py:obj:`~.cudaFuncAttributePreferredSharedMemoryCarveout`.\n' 'This is only a hint, and the driver can choose a different configuration if\n' 'required for the launch.\n' - ){{endif}} - -{{endif}} -{{if 'cudaLaunchAttributeID' in found_types}} + ) class cudaKernelNodeAttrID(_FastEnum): """ Launch attributes enum; used as id field of :py:obj:`~.cudaLaunchAttribute` """ - {{if 'cudaLaunchAttributeIgnore' in found_values}} + cudaLaunchAttributeIgnore = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeIgnore, 'Ignored entry, for convenient composition\n' - ){{endif}} - {{if 'cudaLaunchAttributeAccessPolicyWindow' in found_values}} + ) + cudaLaunchAttributeAccessPolicyWindow = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeAccessPolicyWindow, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.accessPolicyWindow`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeCooperative' in found_values}} + ) + cudaLaunchAttributeCooperative = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeCooperative, 'Valid for graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.cooperative`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeSynchronizationPolicy' in found_values}} + ) + cudaLaunchAttributeSynchronizationPolicy = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeSynchronizationPolicy, 'Valid for streams. See :py:obj:`~.cudaLaunchAttributeValue.syncPolicy`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeClusterDimension' in found_values}} + ) + cudaLaunchAttributeClusterDimension = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeClusterDimension, 'Valid for graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.clusterDim`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeClusterSchedulingPolicyPreference' in found_values}} + ) + cudaLaunchAttributeClusterSchedulingPolicyPreference = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeClusterSchedulingPolicyPreference, 'Valid for graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.clusterSchedulingPolicyPreference`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeProgrammaticStreamSerialization' in found_values}} + ) + cudaLaunchAttributeProgrammaticStreamSerialization = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeProgrammaticStreamSerialization, @@ -6329,8 +6093,8 @@ class cudaKernelNodeAttrID(_FastEnum): 'that kernel requests the overlap. The dependent launches can choose to wait\n' 'on the dependency using the programmatic sync\n' '(cudaGridDependencySynchronize() or equivalent PTX instructions).\n' - ){{endif}} - {{if 'cudaLaunchAttributeProgrammaticEvent' in found_values}} + ) + cudaLaunchAttributeProgrammaticEvent = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeProgrammaticEvent, @@ -6354,29 +6118,29 @@ class cudaKernelNodeAttrID(_FastEnum): ' The event supplied must not be an interprocess or interop event. The event\n' 'must disable timing (i.e. must be created with the\n' ':py:obj:`~.cudaEventDisableTiming` flag set).\n' - ){{endif}} - {{if 'cudaLaunchAttributePriority' in found_values}} + ) + cudaLaunchAttributePriority = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePriority, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.priority`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeMemSyncDomainMap' in found_values}} + ) + cudaLaunchAttributeMemSyncDomainMap = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeMemSyncDomainMap, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.memSyncDomainMap`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeMemSyncDomain' in found_values}} + ) + cudaLaunchAttributeMemSyncDomain = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeMemSyncDomain, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.memSyncDomain`.\n' - ){{endif}} - {{if 'cudaLaunchAttributePreferredClusterDimension' in found_values}} + ) + cudaLaunchAttributePreferredClusterDimension = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePreferredClusterDimension, @@ -6409,8 +6173,8 @@ class cudaKernelNodeAttrID(_FastEnum): 'than the maximum value the driver can support. Otherwise, setting this\n' 'attribute to a value physically unable to fit on any particular device is\n' 'permitted.\n' - ){{endif}} - {{if 'cudaLaunchAttributeLaunchCompletionEvent' in found_values}} + ) + cudaLaunchAttributeLaunchCompletionEvent = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeLaunchCompletionEvent, @@ -6431,15 +6195,15 @@ class cudaKernelNodeAttrID(_FastEnum): ' The event supplied must not be an interprocess or interop event. The event\n' 'must disable timing (i.e. must be created with the\n' ':py:obj:`~.cudaEventDisableTiming` flag set).\n' - ){{endif}} - {{if 'cudaLaunchAttributeDeviceUpdatableKernelNode' in found_values}} + ) + cudaLaunchAttributeDeviceUpdatableKernelNode = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeDeviceUpdatableKernelNode, 'Valid for graph nodes, launches. This attribute is graphs-only, and passing\n' 'it to a launch in a non-capturing stream will result in an error.\n' - ' :cudaLaunchAttributeValue::deviceUpdatableKernelNode::deviceUpdatable can\n' - 'only be set to 0 or 1. Setting the field to 1 indicates that the\n' + ':py:obj:`~.cudaLaunchAttributeValue.deviceUpdatableKernelNode.deviceUpdatable`\n' + 'can only be set to 0 or 1. Setting the field to 1 indicates that the\n' 'corresponding kernel node should be device-updatable. On success, a handle\n' 'will be returned via\n' ':py:obj:`~.cudaLaunchAttributeValue.deviceUpdatableKernelNode.devNode`\n' @@ -6463,8 +6227,8 @@ class cudaKernelNodeAttrID(_FastEnum): ':py:obj:`~.cuGraphUpload` before it is launched. For such a graph, if host-\n' 'side executable graph updates are made to the device-updatable nodes, the\n' 'graph must be uploaded before it is launched again.\n' - ){{endif}} - {{if 'cudaLaunchAttributePreferredSharedMemoryCarveout' in found_values}} + ) + cudaLaunchAttributePreferredSharedMemoryCarveout = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePreferredSharedMemoryCarveout, @@ -6476,10 +6240,7 @@ class cudaKernelNodeAttrID(_FastEnum): 'precedence over :py:obj:`~.cudaFuncAttributePreferredSharedMemoryCarveout`.\n' 'This is only a hint, and the driver can choose a different configuration if\n' 'required for the launch.\n' - ){{endif}} - -{{endif}} -{{if 'cudaArray_t' in found_types}} + ) cdef class cudaArray_t: """ @@ -6514,9 +6275,6 @@ cdef class cudaArray_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaArray_const_t' in found_types}} cdef class cudaArray_const_t: """ @@ -6551,9 +6309,6 @@ cdef class cudaArray_const_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaMipmappedArray_t' in found_types}} cdef class cudaMipmappedArray_t: """ @@ -6588,9 +6343,6 @@ cdef class cudaMipmappedArray_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaMipmappedArray_const_t' in found_types}} cdef class cudaMipmappedArray_const_t: """ @@ -6625,9 +6377,6 @@ cdef class cudaMipmappedArray_const_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaGraphicsResource_t' in found_types}} cdef class cudaGraphicsResource_t: """ @@ -6662,9 +6411,6 @@ cdef class cudaGraphicsResource_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaExternalMemory_t' in found_types}} cdef class cudaExternalMemory_t: """ @@ -6699,9 +6445,6 @@ cdef class cudaExternalMemory_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaExternalSemaphore_t' in found_types}} cdef class cudaExternalSemaphore_t: """ @@ -6736,9 +6479,6 @@ cdef class cudaExternalSemaphore_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaKernel_t' in found_types}} cdef class cudaKernel_t: """ @@ -6773,9 +6513,6 @@ cdef class cudaKernel_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaLibrary_t' in found_types}} cdef class cudaLibrary_t: """ @@ -6810,9 +6547,6 @@ cdef class cudaLibrary_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaGraphDeviceNode_t' in found_types}} cdef class cudaGraphDeviceNode_t: """ @@ -6847,9 +6581,6 @@ cdef class cudaGraphDeviceNode_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaAsyncCallbackHandle_t' in found_types}} cdef class cudaAsyncCallbackHandle_t: """ @@ -6884,9 +6615,6 @@ cdef class cudaAsyncCallbackHandle_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class EGLImageKHR: """ @@ -6919,9 +6647,6 @@ cdef class EGLImageKHR: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class EGLStreamKHR: """ @@ -6954,9 +6679,6 @@ cdef class EGLStreamKHR: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class EGLSyncKHR: """ @@ -6989,9 +6711,6 @@ cdef class EGLSyncKHR: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaHostFn_t' in found_types}} cdef class cudaHostFn_t: """ @@ -7018,9 +6737,6 @@ cdef class cudaHostFn_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaAsyncCallback' in found_types}} cdef class cudaAsyncCallback: """ @@ -7047,9 +6763,6 @@ cdef class cudaAsyncCallback: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaStreamCallback_t' in found_types}} cdef class cudaStreamCallback_t: """ @@ -7076,26 +6789,23 @@ cdef class cudaStreamCallback_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'dim3' in found_struct}} cdef class dim3: """ Attributes ---------- - {{if 'dim3.x' in found_struct}} + x : unsigned int - {{endif}} - {{if 'dim3.y' in found_struct}} + + y : unsigned int - {{endif}} - {{if 'dim3.z' in found_struct}} + + z : unsigned int - {{endif}} + Methods ------- @@ -7116,53 +6826,51 @@ cdef class dim3: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'dim3.x' in found_struct}} + try: str_list += ['x : ' + str(self.x)] except ValueError: str_list += ['x : '] - {{endif}} - {{if 'dim3.y' in found_struct}} + + try: str_list += ['y : ' + str(self.y)] except ValueError: str_list += ['y : '] - {{endif}} - {{if 'dim3.z' in found_struct}} + + try: str_list += ['z : ' + str(self.z)] except ValueError: str_list += ['z : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'dim3.x' in found_struct}} + @property def x(self): return self._pvt_ptr[0].x @x.setter def x(self, unsigned int x): self._pvt_ptr[0].x = x - {{endif}} - {{if 'dim3.y' in found_struct}} + + @property def y(self): return self._pvt_ptr[0].y @y.setter def y(self, unsigned int y): self._pvt_ptr[0].y = y - {{endif}} - {{if 'dim3.z' in found_struct}} + + @property def z(self): return self._pvt_ptr[0].z @z.setter def z(self, unsigned int z): self._pvt_ptr[0].z = z - {{endif}} -{{endif}} -{{if 'cudaChannelFormatDesc' in found_struct}} + cdef class cudaChannelFormatDesc: """ @@ -7170,26 +6878,26 @@ cdef class cudaChannelFormatDesc: Attributes ---------- - {{if 'cudaChannelFormatDesc.x' in found_struct}} + x : int x - {{endif}} - {{if 'cudaChannelFormatDesc.y' in found_struct}} + + y : int y - {{endif}} - {{if 'cudaChannelFormatDesc.z' in found_struct}} + + z : int z - {{endif}} - {{if 'cudaChannelFormatDesc.w' in found_struct}} + + w : int w - {{endif}} - {{if 'cudaChannelFormatDesc.f' in found_struct}} + + f : cudaChannelFormatKind Channel format kind - {{endif}} + Methods ------- @@ -7210,98 +6918,96 @@ cdef class cudaChannelFormatDesc: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaChannelFormatDesc.x' in found_struct}} + try: str_list += ['x : ' + str(self.x)] except ValueError: str_list += ['x : '] - {{endif}} - {{if 'cudaChannelFormatDesc.y' in found_struct}} + + try: str_list += ['y : ' + str(self.y)] except ValueError: str_list += ['y : '] - {{endif}} - {{if 'cudaChannelFormatDesc.z' in found_struct}} + + try: str_list += ['z : ' + str(self.z)] except ValueError: str_list += ['z : '] - {{endif}} - {{if 'cudaChannelFormatDesc.w' in found_struct}} + + try: str_list += ['w : ' + str(self.w)] except ValueError: str_list += ['w : '] - {{endif}} - {{if 'cudaChannelFormatDesc.f' in found_struct}} + + try: str_list += ['f : ' + str(self.f)] except ValueError: str_list += ['f : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaChannelFormatDesc.x' in found_struct}} + @property def x(self): return self._pvt_ptr[0].x @x.setter def x(self, int x): self._pvt_ptr[0].x = x - {{endif}} - {{if 'cudaChannelFormatDesc.y' in found_struct}} + + @property def y(self): return self._pvt_ptr[0].y @y.setter def y(self, int y): self._pvt_ptr[0].y = y - {{endif}} - {{if 'cudaChannelFormatDesc.z' in found_struct}} + + @property def z(self): return self._pvt_ptr[0].z @z.setter def z(self, int z): self._pvt_ptr[0].z = z - {{endif}} - {{if 'cudaChannelFormatDesc.w' in found_struct}} + + @property def w(self): return self._pvt_ptr[0].w @w.setter def w(self, int w): self._pvt_ptr[0].w = w - {{endif}} - {{if 'cudaChannelFormatDesc.f' in found_struct}} + + @property def f(self): return cudaChannelFormatKind(self._pvt_ptr[0].f) @f.setter def f(self, f not None : cudaChannelFormatKind): - self._pvt_ptr[0].f = int(f) - {{endif}} -{{endif}} -{{if 'cudaArraySparseProperties.tileExtent' in found_struct}} + self._pvt_ptr[0].f = int(f) + cdef class anon_struct0: """ Attributes ---------- - {{if 'cudaArraySparseProperties.tileExtent.width' in found_struct}} + width : unsigned int - {{endif}} - {{if 'cudaArraySparseProperties.tileExtent.height' in found_struct}} + + height : unsigned int - {{endif}} - {{if 'cudaArraySparseProperties.tileExtent.depth' in found_struct}} + + depth : unsigned int - {{endif}} + Methods ------- @@ -7320,53 +7026,51 @@ cdef class anon_struct0: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaArraySparseProperties.tileExtent.width' in found_struct}} + try: str_list += ['width : ' + str(self.width)] except ValueError: str_list += ['width : '] - {{endif}} - {{if 'cudaArraySparseProperties.tileExtent.height' in found_struct}} + + try: str_list += ['height : ' + str(self.height)] except ValueError: str_list += ['height : '] - {{endif}} - {{if 'cudaArraySparseProperties.tileExtent.depth' in found_struct}} + + try: str_list += ['depth : ' + str(self.depth)] except ValueError: str_list += ['depth : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaArraySparseProperties.tileExtent.width' in found_struct}} + @property def width(self): return self._pvt_ptr[0].tileExtent.width @width.setter def width(self, unsigned int width): self._pvt_ptr[0].tileExtent.width = width - {{endif}} - {{if 'cudaArraySparseProperties.tileExtent.height' in found_struct}} + + @property def height(self): return self._pvt_ptr[0].tileExtent.height @height.setter def height(self, unsigned int height): self._pvt_ptr[0].tileExtent.height = height - {{endif}} - {{if 'cudaArraySparseProperties.tileExtent.depth' in found_struct}} + + @property def depth(self): return self._pvt_ptr[0].tileExtent.depth @depth.setter def depth(self, unsigned int depth): self._pvt_ptr[0].tileExtent.depth = depth - {{endif}} -{{endif}} -{{if 'cudaArraySparseProperties' in found_struct}} + cdef class cudaArraySparseProperties: """ @@ -7374,26 +7078,22 @@ cdef class cudaArraySparseProperties: Attributes ---------- - {{if 'cudaArraySparseProperties.tileExtent' in found_struct}} + tileExtent : anon_struct0 - {{endif}} - {{if 'cudaArraySparseProperties.miptailFirstLevel' in found_struct}} + + miptailFirstLevel : unsigned int First mip level at which the mip tail begins - {{endif}} - {{if 'cudaArraySparseProperties.miptailSize' in found_struct}} + + miptailSize : unsigned long long Total size of the mip tail. - {{endif}} - {{if 'cudaArraySparseProperties.flags' in found_struct}} + + flags : unsigned int Flags will either be zero or cudaArraySparsePropertiesSingleMipTail - {{endif}} - {{if 'cudaArraySparseProperties.reserved' in found_struct}} - reserved : list[unsigned int] - {{endif}} Methods ------- @@ -7406,92 +7106,74 @@ cdef class cudaArraySparseProperties: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaArraySparseProperties.tileExtent' in found_struct}} self._tileExtent = anon_struct0(_ptr=self._pvt_ptr) - {{endif}} + self._tileExtent._owner = self def __dealloc__(self): - pass + self._tileExtent = None def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaArraySparseProperties.tileExtent' in found_struct}} + try: str_list += ['tileExtent :\n' + '\n'.join([' ' + line for line in str(self.tileExtent).splitlines()])] except ValueError: str_list += ['tileExtent : '] - {{endif}} - {{if 'cudaArraySparseProperties.miptailFirstLevel' in found_struct}} + + try: str_list += ['miptailFirstLevel : ' + str(self.miptailFirstLevel)] except ValueError: str_list += ['miptailFirstLevel : '] - {{endif}} - {{if 'cudaArraySparseProperties.miptailSize' in found_struct}} + + try: str_list += ['miptailSize : ' + str(self.miptailSize)] except ValueError: str_list += ['miptailSize : '] - {{endif}} - {{if 'cudaArraySparseProperties.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'cudaArraySparseProperties.reserved' in found_struct}} - try: - str_list += ['reserved : ' + str(self.reserved)] - except ValueError: - str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaArraySparseProperties.tileExtent' in found_struct}} + @property def tileExtent(self): return self._tileExtent @tileExtent.setter def tileExtent(self, tileExtent not None : anon_struct0): string.memcpy(&self._pvt_ptr[0].tileExtent, tileExtent.getPtr(), sizeof(self._pvt_ptr[0].tileExtent)) - {{endif}} - {{if 'cudaArraySparseProperties.miptailFirstLevel' in found_struct}} + + @property def miptailFirstLevel(self): return self._pvt_ptr[0].miptailFirstLevel @miptailFirstLevel.setter def miptailFirstLevel(self, unsigned int miptailFirstLevel): self._pvt_ptr[0].miptailFirstLevel = miptailFirstLevel - {{endif}} - {{if 'cudaArraySparseProperties.miptailSize' in found_struct}} + + @property def miptailSize(self): return self._pvt_ptr[0].miptailSize @miptailSize.setter def miptailSize(self, unsigned long long miptailSize): self._pvt_ptr[0].miptailSize = miptailSize - {{endif}} - {{if 'cudaArraySparseProperties.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].flags @flags.setter def flags(self, unsigned int flags): self._pvt_ptr[0].flags = flags - {{endif}} - {{if 'cudaArraySparseProperties.reserved' in found_struct}} - @property - def reserved(self): - return self._pvt_ptr[0].reserved - @reserved.setter - def reserved(self, reserved): - self._pvt_ptr[0].reserved = reserved - {{endif}} -{{endif}} -{{if 'cudaArrayMemoryRequirements' in found_struct}} + cdef class cudaArrayMemoryRequirements: """ @@ -7499,18 +7181,14 @@ cdef class cudaArrayMemoryRequirements: Attributes ---------- - {{if 'cudaArrayMemoryRequirements.size' in found_struct}} + size : size_t Total size of the array. - {{endif}} - {{if 'cudaArrayMemoryRequirements.alignment' in found_struct}} + + alignment : size_t Alignment necessary for mapping the array. - {{endif}} - {{if 'cudaArrayMemoryRequirements.reserved' in found_struct}} - reserved : list[unsigned int] - {{endif}} Methods ------- @@ -7531,53 +7209,37 @@ cdef class cudaArrayMemoryRequirements: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaArrayMemoryRequirements.size' in found_struct}} + try: str_list += ['size : ' + str(self.size)] except ValueError: str_list += ['size : '] - {{endif}} - {{if 'cudaArrayMemoryRequirements.alignment' in found_struct}} + + try: str_list += ['alignment : ' + str(self.alignment)] except ValueError: str_list += ['alignment : '] - {{endif}} - {{if 'cudaArrayMemoryRequirements.reserved' in found_struct}} - try: - str_list += ['reserved : ' + str(self.reserved)] - except ValueError: - str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaArrayMemoryRequirements.size' in found_struct}} + @property def size(self): return self._pvt_ptr[0].size @size.setter def size(self, size_t size): self._pvt_ptr[0].size = size - {{endif}} - {{if 'cudaArrayMemoryRequirements.alignment' in found_struct}} + + @property def alignment(self): return self._pvt_ptr[0].alignment @alignment.setter def alignment(self, size_t alignment): self._pvt_ptr[0].alignment = alignment - {{endif}} - {{if 'cudaArrayMemoryRequirements.reserved' in found_struct}} - @property - def reserved(self): - return self._pvt_ptr[0].reserved - @reserved.setter - def reserved(self, reserved): - self._pvt_ptr[0].reserved = reserved - {{endif}} -{{endif}} -{{if 'cudaPitchedPtr' in found_struct}} + cdef class cudaPitchedPtr: """ @@ -7585,22 +7247,22 @@ cdef class cudaPitchedPtr: Attributes ---------- - {{if 'cudaPitchedPtr.ptr' in found_struct}} + ptr : Any Pointer to allocated memory - {{endif}} - {{if 'cudaPitchedPtr.pitch' in found_struct}} + + pitch : size_t Pitch of allocated memory in bytes - {{endif}} - {{if 'cudaPitchedPtr.xsize' in found_struct}} + + xsize : size_t Logical width of allocation in elements - {{endif}} - {{if 'cudaPitchedPtr.ysize' in found_struct}} + + ysize : size_t Logical height of allocation in elements - {{endif}} + Methods ------- @@ -7621,34 +7283,34 @@ cdef class cudaPitchedPtr: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaPitchedPtr.ptr' in found_struct}} + try: str_list += ['ptr : ' + hex(self.ptr)] except ValueError: str_list += ['ptr : '] - {{endif}} - {{if 'cudaPitchedPtr.pitch' in found_struct}} + + try: str_list += ['pitch : ' + str(self.pitch)] except ValueError: str_list += ['pitch : '] - {{endif}} - {{if 'cudaPitchedPtr.xsize' in found_struct}} + + try: str_list += ['xsize : ' + str(self.xsize)] except ValueError: str_list += ['xsize : '] - {{endif}} - {{if 'cudaPitchedPtr.ysize' in found_struct}} + + try: str_list += ['ysize : ' + str(self.ysize)] except ValueError: str_list += ['ysize : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaPitchedPtr.ptr' in found_struct}} + @property def ptr(self): return self._pvt_ptr[0].ptr @@ -7656,33 +7318,31 @@ cdef class cudaPitchedPtr: def ptr(self, ptr): self._cyptr = _HelperInputVoidPtr(ptr) self._pvt_ptr[0].ptr = self._cyptr.cptr - {{endif}} - {{if 'cudaPitchedPtr.pitch' in found_struct}} + + @property def pitch(self): return self._pvt_ptr[0].pitch @pitch.setter def pitch(self, size_t pitch): self._pvt_ptr[0].pitch = pitch - {{endif}} - {{if 'cudaPitchedPtr.xsize' in found_struct}} + + @property def xsize(self): return self._pvt_ptr[0].xsize @xsize.setter def xsize(self, size_t xsize): self._pvt_ptr[0].xsize = xsize - {{endif}} - {{if 'cudaPitchedPtr.ysize' in found_struct}} + + @property def ysize(self): return self._pvt_ptr[0].ysize @ysize.setter def ysize(self, size_t ysize): self._pvt_ptr[0].ysize = ysize - {{endif}} -{{endif}} -{{if 'cudaExtent' in found_struct}} + cdef class cudaExtent: """ @@ -7690,19 +7350,19 @@ cdef class cudaExtent: Attributes ---------- - {{if 'cudaExtent.width' in found_struct}} + width : size_t Width in elements when referring to array memory, in bytes when referring to linear memory - {{endif}} - {{if 'cudaExtent.height' in found_struct}} + + height : size_t Height in elements - {{endif}} - {{if 'cudaExtent.depth' in found_struct}} + + depth : size_t Depth in elements - {{endif}} + Methods ------- @@ -7723,53 +7383,51 @@ cdef class cudaExtent: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExtent.width' in found_struct}} + try: str_list += ['width : ' + str(self.width)] except ValueError: str_list += ['width : '] - {{endif}} - {{if 'cudaExtent.height' in found_struct}} + + try: str_list += ['height : ' + str(self.height)] except ValueError: str_list += ['height : '] - {{endif}} - {{if 'cudaExtent.depth' in found_struct}} + + try: str_list += ['depth : ' + str(self.depth)] except ValueError: str_list += ['depth : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExtent.width' in found_struct}} + @property def width(self): return self._pvt_ptr[0].width @width.setter def width(self, size_t width): self._pvt_ptr[0].width = width - {{endif}} - {{if 'cudaExtent.height' in found_struct}} + + @property def height(self): return self._pvt_ptr[0].height @height.setter def height(self, size_t height): self._pvt_ptr[0].height = height - {{endif}} - {{if 'cudaExtent.depth' in found_struct}} + + @property def depth(self): return self._pvt_ptr[0].depth @depth.setter def depth(self, size_t depth): self._pvt_ptr[0].depth = depth - {{endif}} -{{endif}} -{{if 'cudaPos' in found_struct}} + cdef class cudaPos: """ @@ -7777,18 +7435,18 @@ cdef class cudaPos: Attributes ---------- - {{if 'cudaPos.x' in found_struct}} + x : size_t x - {{endif}} - {{if 'cudaPos.y' in found_struct}} + + y : size_t y - {{endif}} - {{if 'cudaPos.z' in found_struct}} + + z : size_t z - {{endif}} + Methods ------- @@ -7809,53 +7467,51 @@ cdef class cudaPos: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaPos.x' in found_struct}} + try: str_list += ['x : ' + str(self.x)] except ValueError: str_list += ['x : '] - {{endif}} - {{if 'cudaPos.y' in found_struct}} + + try: str_list += ['y : ' + str(self.y)] except ValueError: str_list += ['y : '] - {{endif}} - {{if 'cudaPos.z' in found_struct}} + + try: str_list += ['z : ' + str(self.z)] except ValueError: str_list += ['z : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaPos.x' in found_struct}} + @property def x(self): return self._pvt_ptr[0].x @x.setter def x(self, size_t x): self._pvt_ptr[0].x = x - {{endif}} - {{if 'cudaPos.y' in found_struct}} + + @property def y(self): return self._pvt_ptr[0].y @y.setter def y(self, size_t y): self._pvt_ptr[0].y = y - {{endif}} - {{if 'cudaPos.z' in found_struct}} + + @property def z(self): return self._pvt_ptr[0].z @z.setter def z(self, size_t z): self._pvt_ptr[0].z = z - {{endif}} -{{endif}} -{{if 'cudaMemcpy3DParms' in found_struct}} + cdef class cudaMemcpy3DParms: """ @@ -7863,38 +7519,38 @@ cdef class cudaMemcpy3DParms: Attributes ---------- - {{if 'cudaMemcpy3DParms.srcArray' in found_struct}} + srcArray : cudaArray_t Source memory address - {{endif}} - {{if 'cudaMemcpy3DParms.srcPos' in found_struct}} + + srcPos : cudaPos Source position offset - {{endif}} - {{if 'cudaMemcpy3DParms.srcPtr' in found_struct}} + + srcPtr : cudaPitchedPtr Pitched source memory address - {{endif}} - {{if 'cudaMemcpy3DParms.dstArray' in found_struct}} + + dstArray : cudaArray_t Destination memory address - {{endif}} - {{if 'cudaMemcpy3DParms.dstPos' in found_struct}} + + dstPos : cudaPos Destination position offset - {{endif}} - {{if 'cudaMemcpy3DParms.dstPtr' in found_struct}} + + dstPtr : cudaPitchedPtr Pitched destination memory address - {{endif}} - {{if 'cudaMemcpy3DParms.extent' in found_struct}} + + extent : cudaExtent Requested memory copy size - {{endif}} - {{if 'cudaMemcpy3DParms.kind' in found_struct}} + + kind : cudaMemcpyKind Type of transfer - {{endif}} + Methods ------- @@ -7907,87 +7563,81 @@ cdef class cudaMemcpy3DParms: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaMemcpy3DParms.srcArray' in found_struct}} self._srcArray = cudaArray_t(_ptr=&self._pvt_ptr[0].srcArray) - {{endif}} - {{if 'cudaMemcpy3DParms.srcPos' in found_struct}} self._srcPos = cudaPos(_ptr=&self._pvt_ptr[0].srcPos) - {{endif}} - {{if 'cudaMemcpy3DParms.srcPtr' in found_struct}} + self._srcPos._owner = self self._srcPtr = cudaPitchedPtr(_ptr=&self._pvt_ptr[0].srcPtr) - {{endif}} - {{if 'cudaMemcpy3DParms.dstArray' in found_struct}} + self._srcPtr._owner = self self._dstArray = cudaArray_t(_ptr=&self._pvt_ptr[0].dstArray) - {{endif}} - {{if 'cudaMemcpy3DParms.dstPos' in found_struct}} self._dstPos = cudaPos(_ptr=&self._pvt_ptr[0].dstPos) - {{endif}} - {{if 'cudaMemcpy3DParms.dstPtr' in found_struct}} + self._dstPos._owner = self self._dstPtr = cudaPitchedPtr(_ptr=&self._pvt_ptr[0].dstPtr) - {{endif}} - {{if 'cudaMemcpy3DParms.extent' in found_struct}} + self._dstPtr._owner = self self._extent = cudaExtent(_ptr=&self._pvt_ptr[0].extent) - {{endif}} + self._extent._owner = self def __dealloc__(self): - pass + self._srcPos = None + self._srcPtr = None + self._dstPos = None + self._dstPtr = None + self._extent = None def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemcpy3DParms.srcArray' in found_struct}} + try: str_list += ['srcArray : ' + str(self.srcArray)] except ValueError: str_list += ['srcArray : '] - {{endif}} - {{if 'cudaMemcpy3DParms.srcPos' in found_struct}} + + try: str_list += ['srcPos :\n' + '\n'.join([' ' + line for line in str(self.srcPos).splitlines()])] except ValueError: str_list += ['srcPos : '] - {{endif}} - {{if 'cudaMemcpy3DParms.srcPtr' in found_struct}} + + try: str_list += ['srcPtr :\n' + '\n'.join([' ' + line for line in str(self.srcPtr).splitlines()])] except ValueError: str_list += ['srcPtr : '] - {{endif}} - {{if 'cudaMemcpy3DParms.dstArray' in found_struct}} + + try: str_list += ['dstArray : ' + str(self.dstArray)] except ValueError: str_list += ['dstArray : '] - {{endif}} - {{if 'cudaMemcpy3DParms.dstPos' in found_struct}} + + try: str_list += ['dstPos :\n' + '\n'.join([' ' + line for line in str(self.dstPos).splitlines()])] except ValueError: str_list += ['dstPos : '] - {{endif}} - {{if 'cudaMemcpy3DParms.dstPtr' in found_struct}} + + try: str_list += ['dstPtr :\n' + '\n'.join([' ' + line for line in str(self.dstPtr).splitlines()])] except ValueError: str_list += ['dstPtr : '] - {{endif}} - {{if 'cudaMemcpy3DParms.extent' in found_struct}} + + try: str_list += ['extent :\n' + '\n'.join([' ' + line for line in str(self.extent).splitlines()])] except ValueError: str_list += ['extent : '] - {{endif}} - {{if 'cudaMemcpy3DParms.kind' in found_struct}} + + try: str_list += ['kind : ' + str(self.kind)] except ValueError: str_list += ['kind : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemcpy3DParms.srcArray' in found_struct}} + @property def srcArray(self): return self._srcArray @@ -8003,24 +7653,24 @@ cdef class cudaMemcpy3DParms: psrcArray = int(cudaArray_t(srcArray)) cysrcArray = psrcArray self._srcArray._pvt_ptr[0] = cysrcArray - {{endif}} - {{if 'cudaMemcpy3DParms.srcPos' in found_struct}} + + @property def srcPos(self): return self._srcPos @srcPos.setter def srcPos(self, srcPos not None : cudaPos): string.memcpy(&self._pvt_ptr[0].srcPos, srcPos.getPtr(), sizeof(self._pvt_ptr[0].srcPos)) - {{endif}} - {{if 'cudaMemcpy3DParms.srcPtr' in found_struct}} + + @property def srcPtr(self): return self._srcPtr @srcPtr.setter def srcPtr(self, srcPtr not None : cudaPitchedPtr): string.memcpy(&self._pvt_ptr[0].srcPtr, srcPtr.getPtr(), sizeof(self._pvt_ptr[0].srcPtr)) - {{endif}} - {{if 'cudaMemcpy3DParms.dstArray' in found_struct}} + + @property def dstArray(self): return self._dstArray @@ -8036,41 +7686,39 @@ cdef class cudaMemcpy3DParms: pdstArray = int(cudaArray_t(dstArray)) cydstArray = pdstArray self._dstArray._pvt_ptr[0] = cydstArray - {{endif}} - {{if 'cudaMemcpy3DParms.dstPos' in found_struct}} + + @property def dstPos(self): return self._dstPos @dstPos.setter def dstPos(self, dstPos not None : cudaPos): string.memcpy(&self._pvt_ptr[0].dstPos, dstPos.getPtr(), sizeof(self._pvt_ptr[0].dstPos)) - {{endif}} - {{if 'cudaMemcpy3DParms.dstPtr' in found_struct}} + + @property def dstPtr(self): return self._dstPtr @dstPtr.setter def dstPtr(self, dstPtr not None : cudaPitchedPtr): string.memcpy(&self._pvt_ptr[0].dstPtr, dstPtr.getPtr(), sizeof(self._pvt_ptr[0].dstPtr)) - {{endif}} - {{if 'cudaMemcpy3DParms.extent' in found_struct}} + + @property def extent(self): return self._extent @extent.setter def extent(self, extent not None : cudaExtent): string.memcpy(&self._pvt_ptr[0].extent, extent.getPtr(), sizeof(self._pvt_ptr[0].extent)) - {{endif}} - {{if 'cudaMemcpy3DParms.kind' in found_struct}} + + @property def kind(self): return cudaMemcpyKind(self._pvt_ptr[0].kind) @kind.setter def kind(self, kind not None : cudaMemcpyKind): - self._pvt_ptr[0].kind = int(kind) - {{endif}} -{{endif}} -{{if 'cudaMemcpyNodeParams' in found_struct}} + self._pvt_ptr[0].kind = int(kind) + cdef class cudaMemcpyNodeParams: """ @@ -8078,18 +7726,14 @@ cdef class cudaMemcpyNodeParams: Attributes ---------- - {{if 'cudaMemcpyNodeParams.flags' in found_struct}} + flags : int Must be zero - {{endif}} - {{if 'cudaMemcpyNodeParams.reserved' in found_struct}} - reserved : list[int] - Must be zero - {{endif}} - {{if 'cudaMemcpyNodeParams.copyParams' in found_struct}} + + copyParams : cudaMemcpy3DParms Parameters for the memory copy - {{endif}} + Methods ------- @@ -8102,64 +7746,46 @@ cdef class cudaMemcpyNodeParams: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaMemcpyNodeParams.copyParams' in found_struct}} self._copyParams = cudaMemcpy3DParms(_ptr=&self._pvt_ptr[0].copyParams) - {{endif}} + self._copyParams._owner = self def __dealloc__(self): - pass + self._copyParams = None def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemcpyNodeParams.flags' in found_struct}} + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'cudaMemcpyNodeParams.reserved' in found_struct}} - try: - str_list += ['reserved : ' + str(self.reserved)] - except ValueError: - str_list += ['reserved : '] - {{endif}} - {{if 'cudaMemcpyNodeParams.copyParams' in found_struct}} + + try: str_list += ['copyParams :\n' + '\n'.join([' ' + line for line in str(self.copyParams).splitlines()])] except ValueError: str_list += ['copyParams : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemcpyNodeParams.flags' in found_struct}} + @property def flags(self): return self._pvt_ptr[0].flags @flags.setter def flags(self, int flags): self._pvt_ptr[0].flags = flags - {{endif}} - {{if 'cudaMemcpyNodeParams.reserved' in found_struct}} - @property - def reserved(self): - return self._pvt_ptr[0].reserved - @reserved.setter - def reserved(self, reserved): - self._pvt_ptr[0].reserved = reserved - {{endif}} - {{if 'cudaMemcpyNodeParams.copyParams' in found_struct}} + + @property def copyParams(self): return self._copyParams @copyParams.setter def copyParams(self, copyParams not None : cudaMemcpy3DParms): string.memcpy(&self._pvt_ptr[0].copyParams, copyParams.getPtr(), sizeof(self._pvt_ptr[0].copyParams)) - {{endif}} -{{endif}} -{{if 'cudaMemcpy3DPeerParms' in found_struct}} + cdef class cudaMemcpy3DPeerParms: """ @@ -8167,42 +7793,42 @@ cdef class cudaMemcpy3DPeerParms: Attributes ---------- - {{if 'cudaMemcpy3DPeerParms.srcArray' in found_struct}} + srcArray : cudaArray_t Source memory address - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcPos' in found_struct}} + + srcPos : cudaPos Source position offset - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcPtr' in found_struct}} + + srcPtr : cudaPitchedPtr Pitched source memory address - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcDevice' in found_struct}} + + srcDevice : int Source device - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstArray' in found_struct}} + + dstArray : cudaArray_t Destination memory address - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstPos' in found_struct}} + + dstPos : cudaPos Destination position offset - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstPtr' in found_struct}} + + dstPtr : cudaPitchedPtr Pitched destination memory address - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstDevice' in found_struct}} + + dstDevice : int Destination device - {{endif}} - {{if 'cudaMemcpy3DPeerParms.extent' in found_struct}} + + extent : cudaExtent Requested memory copy size - {{endif}} + Methods ------- @@ -8215,93 +7841,87 @@ cdef class cudaMemcpy3DPeerParms: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaMemcpy3DPeerParms.srcArray' in found_struct}} self._srcArray = cudaArray_t(_ptr=&self._pvt_ptr[0].srcArray) - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcPos' in found_struct}} self._srcPos = cudaPos(_ptr=&self._pvt_ptr[0].srcPos) - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcPtr' in found_struct}} + self._srcPos._owner = self self._srcPtr = cudaPitchedPtr(_ptr=&self._pvt_ptr[0].srcPtr) - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstArray' in found_struct}} + self._srcPtr._owner = self self._dstArray = cudaArray_t(_ptr=&self._pvt_ptr[0].dstArray) - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstPos' in found_struct}} self._dstPos = cudaPos(_ptr=&self._pvt_ptr[0].dstPos) - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstPtr' in found_struct}} + self._dstPos._owner = self self._dstPtr = cudaPitchedPtr(_ptr=&self._pvt_ptr[0].dstPtr) - {{endif}} - {{if 'cudaMemcpy3DPeerParms.extent' in found_struct}} + self._dstPtr._owner = self self._extent = cudaExtent(_ptr=&self._pvt_ptr[0].extent) - {{endif}} + self._extent._owner = self def __dealloc__(self): - pass + self._srcPos = None + self._srcPtr = None + self._dstPos = None + self._dstPtr = None + self._extent = None def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemcpy3DPeerParms.srcArray' in found_struct}} + try: str_list += ['srcArray : ' + str(self.srcArray)] except ValueError: str_list += ['srcArray : '] - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcPos' in found_struct}} + + try: str_list += ['srcPos :\n' + '\n'.join([' ' + line for line in str(self.srcPos).splitlines()])] except ValueError: str_list += ['srcPos : '] - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcPtr' in found_struct}} + + try: str_list += ['srcPtr :\n' + '\n'.join([' ' + line for line in str(self.srcPtr).splitlines()])] except ValueError: str_list += ['srcPtr : '] - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcDevice' in found_struct}} + + try: str_list += ['srcDevice : ' + str(self.srcDevice)] except ValueError: str_list += ['srcDevice : '] - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstArray' in found_struct}} + + try: str_list += ['dstArray : ' + str(self.dstArray)] except ValueError: str_list += ['dstArray : '] - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstPos' in found_struct}} + + try: str_list += ['dstPos :\n' + '\n'.join([' ' + line for line in str(self.dstPos).splitlines()])] except ValueError: str_list += ['dstPos : '] - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstPtr' in found_struct}} + + try: str_list += ['dstPtr :\n' + '\n'.join([' ' + line for line in str(self.dstPtr).splitlines()])] except ValueError: str_list += ['dstPtr : '] - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstDevice' in found_struct}} + + try: str_list += ['dstDevice : ' + str(self.dstDevice)] except ValueError: str_list += ['dstDevice : '] - {{endif}} - {{if 'cudaMemcpy3DPeerParms.extent' in found_struct}} + + try: str_list += ['extent :\n' + '\n'.join([' ' + line for line in str(self.extent).splitlines()])] except ValueError: str_list += ['extent : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemcpy3DPeerParms.srcArray' in found_struct}} + @property def srcArray(self): return self._srcArray @@ -8317,32 +7937,32 @@ cdef class cudaMemcpy3DPeerParms: psrcArray = int(cudaArray_t(srcArray)) cysrcArray = psrcArray self._srcArray._pvt_ptr[0] = cysrcArray - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcPos' in found_struct}} + + @property def srcPos(self): return self._srcPos @srcPos.setter def srcPos(self, srcPos not None : cudaPos): string.memcpy(&self._pvt_ptr[0].srcPos, srcPos.getPtr(), sizeof(self._pvt_ptr[0].srcPos)) - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcPtr' in found_struct}} + + @property def srcPtr(self): return self._srcPtr @srcPtr.setter def srcPtr(self, srcPtr not None : cudaPitchedPtr): string.memcpy(&self._pvt_ptr[0].srcPtr, srcPtr.getPtr(), sizeof(self._pvt_ptr[0].srcPtr)) - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcDevice' in found_struct}} + + @property def srcDevice(self): return self._pvt_ptr[0].srcDevice @srcDevice.setter def srcDevice(self, int srcDevice): self._pvt_ptr[0].srcDevice = srcDevice - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstArray' in found_struct}} + + @property def dstArray(self): return self._dstArray @@ -8358,41 +7978,39 @@ cdef class cudaMemcpy3DPeerParms: pdstArray = int(cudaArray_t(dstArray)) cydstArray = pdstArray self._dstArray._pvt_ptr[0] = cydstArray - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstPos' in found_struct}} + + @property def dstPos(self): return self._dstPos @dstPos.setter def dstPos(self, dstPos not None : cudaPos): string.memcpy(&self._pvt_ptr[0].dstPos, dstPos.getPtr(), sizeof(self._pvt_ptr[0].dstPos)) - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstPtr' in found_struct}} + + @property def dstPtr(self): return self._dstPtr @dstPtr.setter def dstPtr(self, dstPtr not None : cudaPitchedPtr): string.memcpy(&self._pvt_ptr[0].dstPtr, dstPtr.getPtr(), sizeof(self._pvt_ptr[0].dstPtr)) - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstDevice' in found_struct}} + + @property def dstDevice(self): return self._pvt_ptr[0].dstDevice @dstDevice.setter def dstDevice(self, int dstDevice): self._pvt_ptr[0].dstDevice = dstDevice - {{endif}} - {{if 'cudaMemcpy3DPeerParms.extent' in found_struct}} + + @property def extent(self): return self._extent @extent.setter def extent(self, extent not None : cudaExtent): string.memcpy(&self._pvt_ptr[0].extent, extent.getPtr(), sizeof(self._pvt_ptr[0].extent)) - {{endif}} -{{endif}} -{{if 'cudaMemsetParams' in found_struct}} + cdef class cudaMemsetParams: """ @@ -8400,30 +8018,30 @@ cdef class cudaMemsetParams: Attributes ---------- - {{if 'cudaMemsetParams.dst' in found_struct}} + dst : Any Destination device pointer - {{endif}} - {{if 'cudaMemsetParams.pitch' in found_struct}} + + pitch : size_t Pitch of destination device pointer. Unused if height is 1 - {{endif}} - {{if 'cudaMemsetParams.value' in found_struct}} + + value : unsigned int Value to be set - {{endif}} - {{if 'cudaMemsetParams.elementSize' in found_struct}} + + elementSize : unsigned int Size of each element in bytes. Must be 1, 2, or 4. - {{endif}} - {{if 'cudaMemsetParams.width' in found_struct}} + + width : size_t Width of the row in elements - {{endif}} - {{if 'cudaMemsetParams.height' in found_struct}} + + height : size_t Number of rows - {{endif}} + Methods ------- @@ -8444,46 +8062,46 @@ cdef class cudaMemsetParams: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemsetParams.dst' in found_struct}} + try: str_list += ['dst : ' + hex(self.dst)] except ValueError: str_list += ['dst : '] - {{endif}} - {{if 'cudaMemsetParams.pitch' in found_struct}} + + try: str_list += ['pitch : ' + str(self.pitch)] except ValueError: str_list += ['pitch : '] - {{endif}} - {{if 'cudaMemsetParams.value' in found_struct}} + + try: str_list += ['value : ' + str(self.value)] except ValueError: str_list += ['value : '] - {{endif}} - {{if 'cudaMemsetParams.elementSize' in found_struct}} + + try: str_list += ['elementSize : ' + str(self.elementSize)] except ValueError: str_list += ['elementSize : '] - {{endif}} - {{if 'cudaMemsetParams.width' in found_struct}} + + try: str_list += ['width : ' + str(self.width)] except ValueError: str_list += ['width : '] - {{endif}} - {{if 'cudaMemsetParams.height' in found_struct}} + + try: str_list += ['height : ' + str(self.height)] except ValueError: str_list += ['height : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemsetParams.dst' in found_struct}} + @property def dst(self): return self._pvt_ptr[0].dst @@ -8491,49 +8109,47 @@ cdef class cudaMemsetParams: def dst(self, dst): self._cydst = _HelperInputVoidPtr(dst) self._pvt_ptr[0].dst = self._cydst.cptr - {{endif}} - {{if 'cudaMemsetParams.pitch' in found_struct}} + + @property def pitch(self): return self._pvt_ptr[0].pitch @pitch.setter def pitch(self, size_t pitch): self._pvt_ptr[0].pitch = pitch - {{endif}} - {{if 'cudaMemsetParams.value' in found_struct}} + + @property def value(self): return self._pvt_ptr[0].value @value.setter def value(self, unsigned int value): self._pvt_ptr[0].value = value - {{endif}} - {{if 'cudaMemsetParams.elementSize' in found_struct}} + + @property def elementSize(self): return self._pvt_ptr[0].elementSize @elementSize.setter def elementSize(self, unsigned int elementSize): self._pvt_ptr[0].elementSize = elementSize - {{endif}} - {{if 'cudaMemsetParams.width' in found_struct}} + + @property def width(self): return self._pvt_ptr[0].width @width.setter def width(self, size_t width): self._pvt_ptr[0].width = width - {{endif}} - {{if 'cudaMemsetParams.height' in found_struct}} + + @property def height(self): return self._pvt_ptr[0].height @height.setter def height(self, size_t height): self._pvt_ptr[0].height = height - {{endif}} -{{endif}} -{{if 'cudaMemsetParamsV2' in found_struct}} + cdef class cudaMemsetParamsV2: """ @@ -8541,30 +8157,30 @@ cdef class cudaMemsetParamsV2: Attributes ---------- - {{if 'cudaMemsetParamsV2.dst' in found_struct}} + dst : Any Destination device pointer - {{endif}} - {{if 'cudaMemsetParamsV2.pitch' in found_struct}} + + pitch : size_t Pitch of destination device pointer. Unused if height is 1 - {{endif}} - {{if 'cudaMemsetParamsV2.value' in found_struct}} + + value : unsigned int Value to be set - {{endif}} - {{if 'cudaMemsetParamsV2.elementSize' in found_struct}} + + elementSize : unsigned int Size of each element in bytes. Must be 1, 2, or 4. - {{endif}} - {{if 'cudaMemsetParamsV2.width' in found_struct}} + + width : size_t Width of the row in elements - {{endif}} - {{if 'cudaMemsetParamsV2.height' in found_struct}} + + height : size_t Number of rows - {{endif}} + Methods ------- @@ -8585,46 +8201,46 @@ cdef class cudaMemsetParamsV2: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemsetParamsV2.dst' in found_struct}} + try: str_list += ['dst : ' + hex(self.dst)] except ValueError: str_list += ['dst : '] - {{endif}} - {{if 'cudaMemsetParamsV2.pitch' in found_struct}} + + try: str_list += ['pitch : ' + str(self.pitch)] except ValueError: str_list += ['pitch : '] - {{endif}} - {{if 'cudaMemsetParamsV2.value' in found_struct}} + + try: str_list += ['value : ' + str(self.value)] except ValueError: str_list += ['value : '] - {{endif}} - {{if 'cudaMemsetParamsV2.elementSize' in found_struct}} + + try: str_list += ['elementSize : ' + str(self.elementSize)] except ValueError: str_list += ['elementSize : '] - {{endif}} - {{if 'cudaMemsetParamsV2.width' in found_struct}} + + try: str_list += ['width : ' + str(self.width)] except ValueError: str_list += ['width : '] - {{endif}} - {{if 'cudaMemsetParamsV2.height' in found_struct}} + + try: str_list += ['height : ' + str(self.height)] except ValueError: str_list += ['height : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemsetParamsV2.dst' in found_struct}} + @property def dst(self): return self._pvt_ptr[0].dst @@ -8632,49 +8248,47 @@ cdef class cudaMemsetParamsV2: def dst(self, dst): self._cydst = _HelperInputVoidPtr(dst) self._pvt_ptr[0].dst = self._cydst.cptr - {{endif}} - {{if 'cudaMemsetParamsV2.pitch' in found_struct}} + + @property def pitch(self): return self._pvt_ptr[0].pitch @pitch.setter def pitch(self, size_t pitch): self._pvt_ptr[0].pitch = pitch - {{endif}} - {{if 'cudaMemsetParamsV2.value' in found_struct}} + + @property def value(self): return self._pvt_ptr[0].value @value.setter def value(self, unsigned int value): self._pvt_ptr[0].value = value - {{endif}} - {{if 'cudaMemsetParamsV2.elementSize' in found_struct}} + + @property def elementSize(self): return self._pvt_ptr[0].elementSize @elementSize.setter def elementSize(self, unsigned int elementSize): self._pvt_ptr[0].elementSize = elementSize - {{endif}} - {{if 'cudaMemsetParamsV2.width' in found_struct}} + + @property def width(self): return self._pvt_ptr[0].width @width.setter def width(self, size_t width): self._pvt_ptr[0].width = width - {{endif}} - {{if 'cudaMemsetParamsV2.height' in found_struct}} + + @property def height(self): return self._pvt_ptr[0].height @height.setter def height(self, size_t height): self._pvt_ptr[0].height = height - {{endif}} -{{endif}} -{{if 'cudaAccessPolicyWindow' in found_struct}} + cdef class cudaAccessPolicyWindow: """ @@ -8689,30 +8303,30 @@ cdef class cudaAccessPolicyWindow: Attributes ---------- - {{if 'cudaAccessPolicyWindow.base_ptr' in found_struct}} + base_ptr : Any Starting address of the access policy window. CUDA driver may align it. - {{endif}} - {{if 'cudaAccessPolicyWindow.num_bytes' in found_struct}} + + num_bytes : size_t Size in bytes of the window policy. CUDA driver may restrict the maximum size and alignment. - {{endif}} - {{if 'cudaAccessPolicyWindow.hitRatio' in found_struct}} + + hitRatio : float hitRatio specifies percentage of lines assigned hitProp, rest are assigned missProp. - {{endif}} - {{if 'cudaAccessPolicyWindow.hitProp' in found_struct}} + + hitProp : cudaAccessProperty ::CUaccessProperty set for hit. - {{endif}} - {{if 'cudaAccessPolicyWindow.missProp' in found_struct}} + + missProp : cudaAccessProperty ::CUaccessProperty set for miss. Must be either NORMAL or STREAMING. - {{endif}} + Methods ------- @@ -8733,40 +8347,40 @@ cdef class cudaAccessPolicyWindow: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaAccessPolicyWindow.base_ptr' in found_struct}} + try: str_list += ['base_ptr : ' + hex(self.base_ptr)] except ValueError: str_list += ['base_ptr : '] - {{endif}} - {{if 'cudaAccessPolicyWindow.num_bytes' in found_struct}} + + try: str_list += ['num_bytes : ' + str(self.num_bytes)] except ValueError: str_list += ['num_bytes : '] - {{endif}} - {{if 'cudaAccessPolicyWindow.hitRatio' in found_struct}} + + try: str_list += ['hitRatio : ' + str(self.hitRatio)] except ValueError: str_list += ['hitRatio : '] - {{endif}} - {{if 'cudaAccessPolicyWindow.hitProp' in found_struct}} + + try: str_list += ['hitProp : ' + str(self.hitProp)] except ValueError: str_list += ['hitProp : '] - {{endif}} - {{if 'cudaAccessPolicyWindow.missProp' in found_struct}} + + try: str_list += ['missProp : ' + str(self.missProp)] except ValueError: str_list += ['missProp : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaAccessPolicyWindow.base_ptr' in found_struct}} + @property def base_ptr(self): return self._pvt_ptr[0].base_ptr @@ -8774,41 +8388,39 @@ cdef class cudaAccessPolicyWindow: def base_ptr(self, base_ptr): self._cybase_ptr = _HelperInputVoidPtr(base_ptr) self._pvt_ptr[0].base_ptr = self._cybase_ptr.cptr - {{endif}} - {{if 'cudaAccessPolicyWindow.num_bytes' in found_struct}} + + @property def num_bytes(self): return self._pvt_ptr[0].num_bytes @num_bytes.setter def num_bytes(self, size_t num_bytes): self._pvt_ptr[0].num_bytes = num_bytes - {{endif}} - {{if 'cudaAccessPolicyWindow.hitRatio' in found_struct}} + + @property def hitRatio(self): return self._pvt_ptr[0].hitRatio @hitRatio.setter def hitRatio(self, float hitRatio): self._pvt_ptr[0].hitRatio = hitRatio - {{endif}} - {{if 'cudaAccessPolicyWindow.hitProp' in found_struct}} + + @property def hitProp(self): return cudaAccessProperty(self._pvt_ptr[0].hitProp) @hitProp.setter def hitProp(self, hitProp not None : cudaAccessProperty): - self._pvt_ptr[0].hitProp = int(hitProp) - {{endif}} - {{if 'cudaAccessPolicyWindow.missProp' in found_struct}} + self._pvt_ptr[0].hitProp = int(hitProp) + + @property def missProp(self): return cudaAccessProperty(self._pvt_ptr[0].missProp) @missProp.setter def missProp(self, missProp not None : cudaAccessProperty): - self._pvt_ptr[0].missProp = int(missProp) - {{endif}} -{{endif}} -{{if 'cudaHostNodeParams' in found_struct}} + self._pvt_ptr[0].missProp = int(missProp) + cdef class cudaHostNodeParams: """ @@ -8816,14 +8428,14 @@ cdef class cudaHostNodeParams: Attributes ---------- - {{if 'cudaHostNodeParams.fn' in found_struct}} + fn : cudaHostFn_t The function to call when the node executes - {{endif}} - {{if 'cudaHostNodeParams.userData' in found_struct}} + + userData : Any Argument to pass to the function - {{endif}} + Methods ------- @@ -8836,10 +8448,7 @@ cdef class cudaHostNodeParams: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaHostNodeParams.fn' in found_struct}} self._fn = cudaHostFn_t(_ptr=&self._pvt_ptr[0].fn) - {{endif}} def __dealloc__(self): pass def getPtr(self): @@ -8847,22 +8456,22 @@ cdef class cudaHostNodeParams: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaHostNodeParams.fn' in found_struct}} + try: str_list += ['fn : ' + str(self.fn)] except ValueError: str_list += ['fn : '] - {{endif}} - {{if 'cudaHostNodeParams.userData' in found_struct}} + + try: str_list += ['userData : ' + hex(self.userData)] except ValueError: str_list += ['userData : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaHostNodeParams.fn' in found_struct}} + @property def fn(self): return self._fn @@ -8878,8 +8487,8 @@ cdef class cudaHostNodeParams: pfn = int(cudaHostFn_t(fn)) cyfn = pfn self._fn._pvt_ptr[0] = cyfn - {{endif}} - {{if 'cudaHostNodeParams.userData' in found_struct}} + + @property def userData(self): return self._pvt_ptr[0].userData @@ -8887,9 +8496,7 @@ cdef class cudaHostNodeParams: def userData(self, userData): self._cyuserData = _HelperInputVoidPtr(userData) self._pvt_ptr[0].userData = self._cyuserData.cptr - {{endif}} -{{endif}} -{{if 'cudaHostNodeParamsV2' in found_struct}} + cdef class cudaHostNodeParamsV2: """ @@ -8897,14 +8504,14 @@ cdef class cudaHostNodeParamsV2: Attributes ---------- - {{if 'cudaHostNodeParamsV2.fn' in found_struct}} + fn : cudaHostFn_t The function to call when the node executes - {{endif}} - {{if 'cudaHostNodeParamsV2.userData' in found_struct}} + + userData : Any Argument to pass to the function - {{endif}} + Methods ------- @@ -8917,10 +8524,7 @@ cdef class cudaHostNodeParamsV2: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaHostNodeParamsV2.fn' in found_struct}} self._fn = cudaHostFn_t(_ptr=&self._pvt_ptr[0].fn) - {{endif}} def __dealloc__(self): pass def getPtr(self): @@ -8928,22 +8532,22 @@ cdef class cudaHostNodeParamsV2: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaHostNodeParamsV2.fn' in found_struct}} + try: str_list += ['fn : ' + str(self.fn)] except ValueError: str_list += ['fn : '] - {{endif}} - {{if 'cudaHostNodeParamsV2.userData' in found_struct}} + + try: str_list += ['userData : ' + hex(self.userData)] except ValueError: str_list += ['userData : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaHostNodeParamsV2.fn' in found_struct}} + @property def fn(self): return self._fn @@ -8959,8 +8563,8 @@ cdef class cudaHostNodeParamsV2: pfn = int(cudaHostFn_t(fn)) cyfn = pfn self._fn._pvt_ptr[0] = cyfn - {{endif}} - {{if 'cudaHostNodeParamsV2.userData' in found_struct}} + + @property def userData(self): return self._pvt_ptr[0].userData @@ -8968,18 +8572,16 @@ cdef class cudaHostNodeParamsV2: def userData(self, userData): self._cyuserData = _HelperInputVoidPtr(userData) self._pvt_ptr[0].userData = self._cyuserData.cptr - {{endif}} -{{endif}} -{{if 'cudaResourceDesc.res.array' in found_struct}} + cdef class anon_struct1: """ Attributes ---------- - {{if 'cudaResourceDesc.res.array.array' in found_struct}} + array : cudaArray_t - {{endif}} + Methods ------- @@ -8990,10 +8592,7 @@ cdef class anon_struct1: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - {{if 'cudaResourceDesc.res.array.array' in found_struct}} self._array = cudaArray_t(_ptr=&self._pvt_ptr[0].res.array.array) - {{endif}} def __dealloc__(self): pass def getPtr(self): @@ -9001,16 +8600,16 @@ cdef class anon_struct1: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaResourceDesc.res.array.array' in found_struct}} + try: str_list += ['array : ' + str(self.array)] except ValueError: str_list += ['array : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaResourceDesc.res.array.array' in found_struct}} + @property def array(self): return self._array @@ -9026,18 +8625,16 @@ cdef class anon_struct1: parray = int(cudaArray_t(array)) cyarray = parray self._array._pvt_ptr[0] = cyarray - {{endif}} -{{endif}} -{{if 'cudaResourceDesc.res.mipmap' in found_struct}} + cdef class anon_struct2: """ Attributes ---------- - {{if 'cudaResourceDesc.res.mipmap.mipmap' in found_struct}} + mipmap : cudaMipmappedArray_t - {{endif}} + Methods ------- @@ -9048,10 +8645,7 @@ cdef class anon_struct2: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - {{if 'cudaResourceDesc.res.mipmap.mipmap' in found_struct}} self._mipmap = cudaMipmappedArray_t(_ptr=&self._pvt_ptr[0].res.mipmap.mipmap) - {{endif}} def __dealloc__(self): pass def getPtr(self): @@ -9059,16 +8653,16 @@ cdef class anon_struct2: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaResourceDesc.res.mipmap.mipmap' in found_struct}} + try: str_list += ['mipmap : ' + str(self.mipmap)] except ValueError: str_list += ['mipmap : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaResourceDesc.res.mipmap.mipmap' in found_struct}} + @property def mipmap(self): return self._mipmap @@ -9084,26 +8678,24 @@ cdef class anon_struct2: pmipmap = int(cudaMipmappedArray_t(mipmap)) cymipmap = pmipmap self._mipmap._pvt_ptr[0] = cymipmap - {{endif}} -{{endif}} -{{if 'cudaResourceDesc.res.linear' in found_struct}} + cdef class anon_struct3: """ Attributes ---------- - {{if 'cudaResourceDesc.res.linear.devPtr' in found_struct}} + devPtr : Any - {{endif}} - {{if 'cudaResourceDesc.res.linear.desc' in found_struct}} + + desc : cudaChannelFormatDesc - {{endif}} - {{if 'cudaResourceDesc.res.linear.sizeInBytes' in found_struct}} + + sizeInBytes : size_t - {{endif}} + Methods ------- @@ -9114,39 +8706,37 @@ cdef class anon_struct3: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - {{if 'cudaResourceDesc.res.linear.desc' in found_struct}} self._desc = cudaChannelFormatDesc(_ptr=&self._pvt_ptr[0].res.linear.desc) - {{endif}} + self._desc._owner = self def __dealloc__(self): - pass + self._desc = None def getPtr(self): return &self._pvt_ptr[0].res.linear def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaResourceDesc.res.linear.devPtr' in found_struct}} + try: str_list += ['devPtr : ' + hex(self.devPtr)] except ValueError: str_list += ['devPtr : '] - {{endif}} - {{if 'cudaResourceDesc.res.linear.desc' in found_struct}} + + try: str_list += ['desc :\n' + '\n'.join([' ' + line for line in str(self.desc).splitlines()])] except ValueError: str_list += ['desc : '] - {{endif}} - {{if 'cudaResourceDesc.res.linear.sizeInBytes' in found_struct}} + + try: str_list += ['sizeInBytes : ' + str(self.sizeInBytes)] except ValueError: str_list += ['sizeInBytes : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaResourceDesc.res.linear.devPtr' in found_struct}} + @property def devPtr(self): return self._pvt_ptr[0].res.linear.devPtr @@ -9154,50 +8744,48 @@ cdef class anon_struct3: def devPtr(self, devPtr): self._cydevPtr = _HelperInputVoidPtr(devPtr) self._pvt_ptr[0].res.linear.devPtr = self._cydevPtr.cptr - {{endif}} - {{if 'cudaResourceDesc.res.linear.desc' in found_struct}} + + @property def desc(self): return self._desc @desc.setter def desc(self, desc not None : cudaChannelFormatDesc): string.memcpy(&self._pvt_ptr[0].res.linear.desc, desc.getPtr(), sizeof(self._pvt_ptr[0].res.linear.desc)) - {{endif}} - {{if 'cudaResourceDesc.res.linear.sizeInBytes' in found_struct}} + + @property def sizeInBytes(self): return self._pvt_ptr[0].res.linear.sizeInBytes @sizeInBytes.setter def sizeInBytes(self, size_t sizeInBytes): self._pvt_ptr[0].res.linear.sizeInBytes = sizeInBytes - {{endif}} -{{endif}} -{{if 'cudaResourceDesc.res.pitch2D' in found_struct}} + cdef class anon_struct4: """ Attributes ---------- - {{if 'cudaResourceDesc.res.pitch2D.devPtr' in found_struct}} + devPtr : Any - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.desc' in found_struct}} + + desc : cudaChannelFormatDesc - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.width' in found_struct}} + + width : size_t - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.height' in found_struct}} + + height : size_t - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.pitchInBytes' in found_struct}} + + pitchInBytes : size_t - {{endif}} + Methods ------- @@ -9208,51 +8796,49 @@ cdef class anon_struct4: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - {{if 'cudaResourceDesc.res.pitch2D.desc' in found_struct}} self._desc = cudaChannelFormatDesc(_ptr=&self._pvt_ptr[0].res.pitch2D.desc) - {{endif}} + self._desc._owner = self def __dealloc__(self): - pass + self._desc = None def getPtr(self): return &self._pvt_ptr[0].res.pitch2D def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaResourceDesc.res.pitch2D.devPtr' in found_struct}} + try: str_list += ['devPtr : ' + hex(self.devPtr)] except ValueError: str_list += ['devPtr : '] - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.desc' in found_struct}} + + try: str_list += ['desc :\n' + '\n'.join([' ' + line for line in str(self.desc).splitlines()])] except ValueError: str_list += ['desc : '] - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.width' in found_struct}} + + try: str_list += ['width : ' + str(self.width)] except ValueError: str_list += ['width : '] - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.height' in found_struct}} + + try: str_list += ['height : ' + str(self.height)] except ValueError: str_list += ['height : '] - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.pitchInBytes' in found_struct}} + + try: str_list += ['pitchInBytes : ' + str(self.pitchInBytes)] except ValueError: str_list += ['pitchInBytes : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaResourceDesc.res.pitch2D.devPtr' in found_struct}} + @property def devPtr(self): return self._pvt_ptr[0].res.pitch2D.devPtr @@ -9260,62 +8846,60 @@ cdef class anon_struct4: def devPtr(self, devPtr): self._cydevPtr = _HelperInputVoidPtr(devPtr) self._pvt_ptr[0].res.pitch2D.devPtr = self._cydevPtr.cptr - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.desc' in found_struct}} + + @property def desc(self): return self._desc @desc.setter def desc(self, desc not None : cudaChannelFormatDesc): string.memcpy(&self._pvt_ptr[0].res.pitch2D.desc, desc.getPtr(), sizeof(self._pvt_ptr[0].res.pitch2D.desc)) - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.width' in found_struct}} + + @property def width(self): return self._pvt_ptr[0].res.pitch2D.width @width.setter def width(self, size_t width): self._pvt_ptr[0].res.pitch2D.width = width - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.height' in found_struct}} + + @property def height(self): return self._pvt_ptr[0].res.pitch2D.height @height.setter def height(self, size_t height): self._pvt_ptr[0].res.pitch2D.height = height - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.pitchInBytes' in found_struct}} + + @property def pitchInBytes(self): return self._pvt_ptr[0].res.pitch2D.pitchInBytes @pitchInBytes.setter def pitchInBytes(self, size_t pitchInBytes): self._pvt_ptr[0].res.pitch2D.pitchInBytes = pitchInBytes - {{endif}} -{{endif}} -{{if 'cudaResourceDesc.res' in found_struct}} + cdef class anon_union0: """ Attributes ---------- - {{if 'cudaResourceDesc.res.array' in found_struct}} + array : anon_struct1 - {{endif}} - {{if 'cudaResourceDesc.res.mipmap' in found_struct}} + + mipmap : anon_struct2 - {{endif}} - {{if 'cudaResourceDesc.res.linear' in found_struct}} + + linear : anon_struct3 - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D' in found_struct}} + + pitch2D : anon_struct4 - {{endif}} + Methods ------- @@ -9326,87 +8910,83 @@ cdef class anon_union0: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - {{if 'cudaResourceDesc.res.array' in found_struct}} self._array = anon_struct1(_ptr=self._pvt_ptr) - {{endif}} - {{if 'cudaResourceDesc.res.mipmap' in found_struct}} + self._array._owner = self self._mipmap = anon_struct2(_ptr=self._pvt_ptr) - {{endif}} - {{if 'cudaResourceDesc.res.linear' in found_struct}} + self._mipmap._owner = self self._linear = anon_struct3(_ptr=self._pvt_ptr) - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D' in found_struct}} + self._linear._owner = self self._pitch2D = anon_struct4(_ptr=self._pvt_ptr) - {{endif}} + self._pitch2D._owner = self def __dealloc__(self): - pass + self._array = None + self._mipmap = None + self._linear = None + self._pitch2D = None def getPtr(self): return &self._pvt_ptr[0].res def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaResourceDesc.res.array' in found_struct}} + try: str_list += ['array :\n' + '\n'.join([' ' + line for line in str(self.array).splitlines()])] except ValueError: str_list += ['array : '] - {{endif}} - {{if 'cudaResourceDesc.res.mipmap' in found_struct}} + + try: str_list += ['mipmap :\n' + '\n'.join([' ' + line for line in str(self.mipmap).splitlines()])] except ValueError: str_list += ['mipmap : '] - {{endif}} - {{if 'cudaResourceDesc.res.linear' in found_struct}} + + try: str_list += ['linear :\n' + '\n'.join([' ' + line for line in str(self.linear).splitlines()])] except ValueError: str_list += ['linear : '] - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D' in found_struct}} + + try: str_list += ['pitch2D :\n' + '\n'.join([' ' + line for line in str(self.pitch2D).splitlines()])] except ValueError: str_list += ['pitch2D : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaResourceDesc.res.array' in found_struct}} + @property def array(self): return self._array @array.setter def array(self, array not None : anon_struct1): string.memcpy(&self._pvt_ptr[0].res.array, array.getPtr(), sizeof(self._pvt_ptr[0].res.array)) - {{endif}} - {{if 'cudaResourceDesc.res.mipmap' in found_struct}} + + @property def mipmap(self): return self._mipmap @mipmap.setter def mipmap(self, mipmap not None : anon_struct2): string.memcpy(&self._pvt_ptr[0].res.mipmap, mipmap.getPtr(), sizeof(self._pvt_ptr[0].res.mipmap)) - {{endif}} - {{if 'cudaResourceDesc.res.linear' in found_struct}} + + @property def linear(self): return self._linear @linear.setter def linear(self, linear not None : anon_struct3): string.memcpy(&self._pvt_ptr[0].res.linear, linear.getPtr(), sizeof(self._pvt_ptr[0].res.linear)) - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D' in found_struct}} + + @property def pitch2D(self): return self._pitch2D @pitch2D.setter def pitch2D(self, pitch2D not None : anon_struct4): string.memcpy(&self._pvt_ptr[0].res.pitch2D, pitch2D.getPtr(), sizeof(self._pvt_ptr[0].res.pitch2D)) - {{endif}} -{{endif}} -{{if 'cudaResourceDesc' in found_struct}} + cdef class cudaResourceDesc: """ @@ -9414,14 +8994,14 @@ cdef class cudaResourceDesc: Attributes ---------- - {{if 'cudaResourceDesc.resType' in found_struct}} + resType : cudaResourceType Resource type - {{endif}} - {{if 'cudaResourceDesc.res' in found_struct}} + + res : anon_union0 - {{endif}} + Methods ------- @@ -9435,11 +9015,10 @@ cdef class cudaResourceDesc: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaResourceDesc.res' in found_struct}} self._res = anon_union0(_ptr=self._pvt_ptr) - {{endif}} + self._res._owner = self def __dealloc__(self): + self._res = None if self._val_ptr is not NULL: free(self._val_ptr) def getPtr(self): @@ -9447,39 +9026,37 @@ cdef class cudaResourceDesc: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaResourceDesc.resType' in found_struct}} + try: str_list += ['resType : ' + str(self.resType)] except ValueError: str_list += ['resType : '] - {{endif}} - {{if 'cudaResourceDesc.res' in found_struct}} + + try: str_list += ['res :\n' + '\n'.join([' ' + line for line in str(self.res).splitlines()])] except ValueError: str_list += ['res : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaResourceDesc.resType' in found_struct}} + @property def resType(self): return cudaResourceType(self._pvt_ptr[0].resType) @resType.setter def resType(self, resType not None : cudaResourceType): - self._pvt_ptr[0].resType = int(resType) - {{endif}} - {{if 'cudaResourceDesc.res' in found_struct}} + self._pvt_ptr[0].resType = int(resType) + + @property def res(self): return self._res @res.setter def res(self, res not None : anon_union0): string.memcpy(&self._pvt_ptr[0].res, res.getPtr(), sizeof(self._pvt_ptr[0].res)) - {{endif}} -{{endif}} -{{if 'cudaResourceViewDesc' in found_struct}} + cdef class cudaResourceViewDesc: """ @@ -9487,38 +9064,38 @@ cdef class cudaResourceViewDesc: Attributes ---------- - {{if 'cudaResourceViewDesc.format' in found_struct}} + format : cudaResourceViewFormat Resource view format - {{endif}} - {{if 'cudaResourceViewDesc.width' in found_struct}} + + width : size_t Width of the resource view - {{endif}} - {{if 'cudaResourceViewDesc.height' in found_struct}} + + height : size_t Height of the resource view - {{endif}} - {{if 'cudaResourceViewDesc.depth' in found_struct}} + + depth : size_t Depth of the resource view - {{endif}} - {{if 'cudaResourceViewDesc.firstMipmapLevel' in found_struct}} + + firstMipmapLevel : unsigned int First defined mipmap level - {{endif}} - {{if 'cudaResourceViewDesc.lastMipmapLevel' in found_struct}} + + lastMipmapLevel : unsigned int Last defined mipmap level - {{endif}} - {{if 'cudaResourceViewDesc.firstLayer' in found_struct}} + + firstLayer : unsigned int First layer index - {{endif}} - {{if 'cudaResourceViewDesc.lastLayer' in found_struct}} + + lastLayer : unsigned int Last layer index - {{endif}} + Methods ------- @@ -9539,123 +9116,121 @@ cdef class cudaResourceViewDesc: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaResourceViewDesc.format' in found_struct}} + try: str_list += ['format : ' + str(self.format)] except ValueError: str_list += ['format : '] - {{endif}} - {{if 'cudaResourceViewDesc.width' in found_struct}} + + try: str_list += ['width : ' + str(self.width)] except ValueError: str_list += ['width : '] - {{endif}} - {{if 'cudaResourceViewDesc.height' in found_struct}} + + try: str_list += ['height : ' + str(self.height)] except ValueError: str_list += ['height : '] - {{endif}} - {{if 'cudaResourceViewDesc.depth' in found_struct}} + + try: str_list += ['depth : ' + str(self.depth)] except ValueError: str_list += ['depth : '] - {{endif}} - {{if 'cudaResourceViewDesc.firstMipmapLevel' in found_struct}} + + try: str_list += ['firstMipmapLevel : ' + str(self.firstMipmapLevel)] except ValueError: str_list += ['firstMipmapLevel : '] - {{endif}} - {{if 'cudaResourceViewDesc.lastMipmapLevel' in found_struct}} + + try: str_list += ['lastMipmapLevel : ' + str(self.lastMipmapLevel)] except ValueError: str_list += ['lastMipmapLevel : '] - {{endif}} - {{if 'cudaResourceViewDesc.firstLayer' in found_struct}} + + try: str_list += ['firstLayer : ' + str(self.firstLayer)] except ValueError: str_list += ['firstLayer : '] - {{endif}} - {{if 'cudaResourceViewDesc.lastLayer' in found_struct}} + + try: str_list += ['lastLayer : ' + str(self.lastLayer)] except ValueError: str_list += ['lastLayer : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaResourceViewDesc.format' in found_struct}} + @property def format(self): return cudaResourceViewFormat(self._pvt_ptr[0].format) @format.setter def format(self, format not None : cudaResourceViewFormat): - self._pvt_ptr[0].format = int(format) - {{endif}} - {{if 'cudaResourceViewDesc.width' in found_struct}} + self._pvt_ptr[0].format = int(format) + + @property def width(self): return self._pvt_ptr[0].width @width.setter def width(self, size_t width): self._pvt_ptr[0].width = width - {{endif}} - {{if 'cudaResourceViewDesc.height' in found_struct}} + + @property def height(self): return self._pvt_ptr[0].height @height.setter def height(self, size_t height): self._pvt_ptr[0].height = height - {{endif}} - {{if 'cudaResourceViewDesc.depth' in found_struct}} + + @property def depth(self): return self._pvt_ptr[0].depth @depth.setter def depth(self, size_t depth): self._pvt_ptr[0].depth = depth - {{endif}} - {{if 'cudaResourceViewDesc.firstMipmapLevel' in found_struct}} + + @property def firstMipmapLevel(self): return self._pvt_ptr[0].firstMipmapLevel @firstMipmapLevel.setter def firstMipmapLevel(self, unsigned int firstMipmapLevel): self._pvt_ptr[0].firstMipmapLevel = firstMipmapLevel - {{endif}} - {{if 'cudaResourceViewDesc.lastMipmapLevel' in found_struct}} + + @property def lastMipmapLevel(self): return self._pvt_ptr[0].lastMipmapLevel @lastMipmapLevel.setter def lastMipmapLevel(self, unsigned int lastMipmapLevel): self._pvt_ptr[0].lastMipmapLevel = lastMipmapLevel - {{endif}} - {{if 'cudaResourceViewDesc.firstLayer' in found_struct}} + + @property def firstLayer(self): return self._pvt_ptr[0].firstLayer @firstLayer.setter def firstLayer(self, unsigned int firstLayer): self._pvt_ptr[0].firstLayer = firstLayer - {{endif}} - {{if 'cudaResourceViewDesc.lastLayer' in found_struct}} + + @property def lastLayer(self): return self._pvt_ptr[0].lastLayer @lastLayer.setter def lastLayer(self, unsigned int lastLayer): self._pvt_ptr[0].lastLayer = lastLayer - {{endif}} -{{endif}} -{{if 'cudaPointerAttributes' in found_struct}} + cdef class cudaPointerAttributes: """ @@ -9663,12 +9238,12 @@ cdef class cudaPointerAttributes: Attributes ---------- - {{if 'cudaPointerAttributes.type' in found_struct}} + type : cudaMemoryType The type of memory - cudaMemoryTypeUnregistered, cudaMemoryTypeHost, cudaMemoryTypeDevice or cudaMemoryTypeManaged. - {{endif}} - {{if 'cudaPointerAttributes.device' in found_struct}} + + device : int The device against which the memory was allocated or registered. If the memory type is cudaMemoryTypeDevice then this identifies the @@ -9677,19 +9252,19 @@ cdef class cudaPointerAttributes: this identifies the device which was current when the memory was allocated or registered (and if that device is deinitialized then this allocation will vanish with that device's state). - {{endif}} - {{if 'cudaPointerAttributes.devicePointer' in found_struct}} + + devicePointer : Any The address which may be dereferenced on the current device to access the memory or NULL if no such address exists. - {{endif}} - {{if 'cudaPointerAttributes.hostPointer' in found_struct}} + + hostPointer : Any The address which may be dereferenced on the host to access the memory or NULL if no such address exists. CUDA doesn't check if unregistered memory is allocated so this field may contain invalid pointer if an invalid pointer has been passed to CUDA. - {{endif}} + Methods ------- @@ -9710,50 +9285,50 @@ cdef class cudaPointerAttributes: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaPointerAttributes.type' in found_struct}} + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'cudaPointerAttributes.device' in found_struct}} + + try: str_list += ['device : ' + str(self.device)] except ValueError: str_list += ['device : '] - {{endif}} - {{if 'cudaPointerAttributes.devicePointer' in found_struct}} + + try: str_list += ['devicePointer : ' + hex(self.devicePointer)] except ValueError: str_list += ['devicePointer : '] - {{endif}} - {{if 'cudaPointerAttributes.hostPointer' in found_struct}} + + try: str_list += ['hostPointer : ' + hex(self.hostPointer)] except ValueError: str_list += ['hostPointer : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaPointerAttributes.type' in found_struct}} + @property def type(self): return cudaMemoryType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : cudaMemoryType): - self._pvt_ptr[0].type = int(type) - {{endif}} - {{if 'cudaPointerAttributes.device' in found_struct}} + self._pvt_ptr[0].type = int(type) + + @property def device(self): return self._pvt_ptr[0].device @device.setter def device(self, int device): self._pvt_ptr[0].device = device - {{endif}} - {{if 'cudaPointerAttributes.devicePointer' in found_struct}} + + @property def devicePointer(self): return self._pvt_ptr[0].devicePointer @@ -9761,8 +9336,8 @@ cdef class cudaPointerAttributes: def devicePointer(self, devicePointer): self._cydevicePointer = _HelperInputVoidPtr(devicePointer) self._pvt_ptr[0].devicePointer = self._cydevicePointer.cptr - {{endif}} - {{if 'cudaPointerAttributes.hostPointer' in found_struct}} + + @property def hostPointer(self): return self._pvt_ptr[0].hostPointer @@ -9770,9 +9345,7 @@ cdef class cudaPointerAttributes: def hostPointer(self, hostPointer): self._cyhostPointer = _HelperInputVoidPtr(hostPointer) self._pvt_ptr[0].hostPointer = self._cyhostPointer.cptr - {{endif}} -{{endif}} -{{if 'cudaFuncAttributes' in found_struct}} + cdef class cudaFuncAttributes: """ @@ -9780,57 +9353,57 @@ cdef class cudaFuncAttributes: Attributes ---------- - {{if 'cudaFuncAttributes.sharedSizeBytes' in found_struct}} + sharedSizeBytes : size_t The size in bytes of statically-allocated shared memory per block required by this function. This does not include dynamically- allocated shared memory requested by the user at runtime. - {{endif}} - {{if 'cudaFuncAttributes.constSizeBytes' in found_struct}} + + constSizeBytes : size_t The size in bytes of user-allocated constant memory required by this function. - {{endif}} - {{if 'cudaFuncAttributes.localSizeBytes' in found_struct}} + + localSizeBytes : size_t The size in bytes of local memory used by each thread of this function. - {{endif}} - {{if 'cudaFuncAttributes.maxThreadsPerBlock' in found_struct}} + + maxThreadsPerBlock : int The maximum number of threads per block, beyond which a launch of the function would fail. This number depends on both the function and the device on which the function is currently loaded. - {{endif}} - {{if 'cudaFuncAttributes.numRegs' in found_struct}} + + numRegs : int The number of registers used by each thread of this function. - {{endif}} - {{if 'cudaFuncAttributes.ptxVersion' in found_struct}} + + ptxVersion : int The PTX virtual architecture version for which the function was compiled. This value is the major PTX version * 10 + the minor PTX version, so a PTX version 1.3 function would return the value 13. - {{endif}} - {{if 'cudaFuncAttributes.binaryVersion' in found_struct}} + + binaryVersion : int The binary architecture version for which the function was compiled. This value is the major binary version * 10 + the minor binary version, so a binary version 1.3 function would return the value 13. - {{endif}} - {{if 'cudaFuncAttributes.cacheModeCA' in found_struct}} + + cacheModeCA : int The attribute to indicate whether the function has been compiled with user specified option "-Xptxas --dlcm=ca" set. - {{endif}} - {{if 'cudaFuncAttributes.maxDynamicSharedSizeBytes' in found_struct}} + + maxDynamicSharedSizeBytes : int The maximum size in bytes of dynamic shared memory per block for this function. Any launch must have a dynamic shared memory size smaller than this value. - {{endif}} - {{if 'cudaFuncAttributes.preferredShmemCarveout' in found_struct}} + + preferredShmemCarveout : int On devices where the L1 cache and shared memory use the same hardware resources, this sets the shared memory carveout @@ -9838,13 +9411,13 @@ cdef class cudaFuncAttributes: cudaDevAttrMaxSharedMemoryPerMultiprocessor. This is only a hint, and the driver can choose a different ratio if required to execute the function. See cudaFuncSetAttribute - {{endif}} - {{if 'cudaFuncAttributes.clusterDimMustBeSet' in found_struct}} + + clusterDimMustBeSet : int If this attribute is set, the kernel must launch with a valid cluster dimension specified. - {{endif}} - {{if 'cudaFuncAttributes.requiredClusterWidth' in found_struct}} + + requiredClusterWidth : int The required cluster width/height/depth in blocks. The values must either all be 0 or all be positive. The validity of the cluster @@ -9852,20 +9425,20 @@ cdef class cudaFuncAttributes: set during compile time, it cannot be set at runtime. Setting it at runtime should return cudaErrorNotPermitted. See cudaFuncSetAttribute - {{endif}} - {{if 'cudaFuncAttributes.requiredClusterHeight' in found_struct}} + + requiredClusterHeight : int - {{endif}} - {{if 'cudaFuncAttributes.requiredClusterDepth' in found_struct}} + + requiredClusterDepth : int - {{endif}} - {{if 'cudaFuncAttributes.clusterSchedulingPolicyPreference' in found_struct}} + + clusterSchedulingPolicyPreference : int The block scheduling policy of a function. See cudaFuncSetAttribute - {{endif}} - {{if 'cudaFuncAttributes.nonPortableClusterSizeAllowed' in found_struct}} + + nonPortableClusterSizeAllowed : int Whether the function can be launched with non-portable cluster size. 1 is allowed, 0 is disallowed. A non-portable cluster size @@ -9880,11 +9453,7 @@ cdef class cudaFuncAttributes: compute capabilities. The specific hardware unit may support higher cluster sizes that’s not guaranteed to be portable. See cudaFuncSetAttribute - {{endif}} - {{if 'cudaFuncAttributes.reserved' in found_struct}} - reserved : list[int] - Reserved for future use. - {{endif}} + Methods ------- @@ -9905,249 +9474,233 @@ cdef class cudaFuncAttributes: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaFuncAttributes.sharedSizeBytes' in found_struct}} + try: str_list += ['sharedSizeBytes : ' + str(self.sharedSizeBytes)] except ValueError: str_list += ['sharedSizeBytes : '] - {{endif}} - {{if 'cudaFuncAttributes.constSizeBytes' in found_struct}} + + try: str_list += ['constSizeBytes : ' + str(self.constSizeBytes)] except ValueError: str_list += ['constSizeBytes : '] - {{endif}} - {{if 'cudaFuncAttributes.localSizeBytes' in found_struct}} + + try: str_list += ['localSizeBytes : ' + str(self.localSizeBytes)] except ValueError: str_list += ['localSizeBytes : '] - {{endif}} - {{if 'cudaFuncAttributes.maxThreadsPerBlock' in found_struct}} + + try: str_list += ['maxThreadsPerBlock : ' + str(self.maxThreadsPerBlock)] except ValueError: str_list += ['maxThreadsPerBlock : '] - {{endif}} - {{if 'cudaFuncAttributes.numRegs' in found_struct}} + + try: str_list += ['numRegs : ' + str(self.numRegs)] except ValueError: str_list += ['numRegs : '] - {{endif}} - {{if 'cudaFuncAttributes.ptxVersion' in found_struct}} + + try: str_list += ['ptxVersion : ' + str(self.ptxVersion)] except ValueError: str_list += ['ptxVersion : '] - {{endif}} - {{if 'cudaFuncAttributes.binaryVersion' in found_struct}} + + try: str_list += ['binaryVersion : ' + str(self.binaryVersion)] except ValueError: str_list += ['binaryVersion : '] - {{endif}} - {{if 'cudaFuncAttributes.cacheModeCA' in found_struct}} + + try: str_list += ['cacheModeCA : ' + str(self.cacheModeCA)] except ValueError: str_list += ['cacheModeCA : '] - {{endif}} - {{if 'cudaFuncAttributes.maxDynamicSharedSizeBytes' in found_struct}} + + try: str_list += ['maxDynamicSharedSizeBytes : ' + str(self.maxDynamicSharedSizeBytes)] except ValueError: str_list += ['maxDynamicSharedSizeBytes : '] - {{endif}} - {{if 'cudaFuncAttributes.preferredShmemCarveout' in found_struct}} + + try: str_list += ['preferredShmemCarveout : ' + str(self.preferredShmemCarveout)] except ValueError: str_list += ['preferredShmemCarveout : '] - {{endif}} - {{if 'cudaFuncAttributes.clusterDimMustBeSet' in found_struct}} + + try: str_list += ['clusterDimMustBeSet : ' + str(self.clusterDimMustBeSet)] except ValueError: str_list += ['clusterDimMustBeSet : '] - {{endif}} - {{if 'cudaFuncAttributes.requiredClusterWidth' in found_struct}} + + try: str_list += ['requiredClusterWidth : ' + str(self.requiredClusterWidth)] except ValueError: str_list += ['requiredClusterWidth : '] - {{endif}} - {{if 'cudaFuncAttributes.requiredClusterHeight' in found_struct}} + + try: str_list += ['requiredClusterHeight : ' + str(self.requiredClusterHeight)] except ValueError: str_list += ['requiredClusterHeight : '] - {{endif}} - {{if 'cudaFuncAttributes.requiredClusterDepth' in found_struct}} + + try: str_list += ['requiredClusterDepth : ' + str(self.requiredClusterDepth)] except ValueError: str_list += ['requiredClusterDepth : '] - {{endif}} - {{if 'cudaFuncAttributes.clusterSchedulingPolicyPreference' in found_struct}} + + try: str_list += ['clusterSchedulingPolicyPreference : ' + str(self.clusterSchedulingPolicyPreference)] except ValueError: str_list += ['clusterSchedulingPolicyPreference : '] - {{endif}} - {{if 'cudaFuncAttributes.nonPortableClusterSizeAllowed' in found_struct}} + + try: str_list += ['nonPortableClusterSizeAllowed : ' + str(self.nonPortableClusterSizeAllowed)] except ValueError: str_list += ['nonPortableClusterSizeAllowed : '] - {{endif}} - {{if 'cudaFuncAttributes.reserved' in found_struct}} - try: - str_list += ['reserved : ' + str(self.reserved)] - except ValueError: - str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaFuncAttributes.sharedSizeBytes' in found_struct}} + @property def sharedSizeBytes(self): return self._pvt_ptr[0].sharedSizeBytes @sharedSizeBytes.setter def sharedSizeBytes(self, size_t sharedSizeBytes): self._pvt_ptr[0].sharedSizeBytes = sharedSizeBytes - {{endif}} - {{if 'cudaFuncAttributes.constSizeBytes' in found_struct}} + + @property def constSizeBytes(self): return self._pvt_ptr[0].constSizeBytes @constSizeBytes.setter def constSizeBytes(self, size_t constSizeBytes): self._pvt_ptr[0].constSizeBytes = constSizeBytes - {{endif}} - {{if 'cudaFuncAttributes.localSizeBytes' in found_struct}} + + @property def localSizeBytes(self): return self._pvt_ptr[0].localSizeBytes @localSizeBytes.setter def localSizeBytes(self, size_t localSizeBytes): self._pvt_ptr[0].localSizeBytes = localSizeBytes - {{endif}} - {{if 'cudaFuncAttributes.maxThreadsPerBlock' in found_struct}} + + @property def maxThreadsPerBlock(self): return self._pvt_ptr[0].maxThreadsPerBlock @maxThreadsPerBlock.setter def maxThreadsPerBlock(self, int maxThreadsPerBlock): self._pvt_ptr[0].maxThreadsPerBlock = maxThreadsPerBlock - {{endif}} - {{if 'cudaFuncAttributes.numRegs' in found_struct}} + + @property def numRegs(self): return self._pvt_ptr[0].numRegs @numRegs.setter def numRegs(self, int numRegs): self._pvt_ptr[0].numRegs = numRegs - {{endif}} - {{if 'cudaFuncAttributes.ptxVersion' in found_struct}} + + @property def ptxVersion(self): return self._pvt_ptr[0].ptxVersion @ptxVersion.setter def ptxVersion(self, int ptxVersion): self._pvt_ptr[0].ptxVersion = ptxVersion - {{endif}} - {{if 'cudaFuncAttributes.binaryVersion' in found_struct}} + + @property def binaryVersion(self): return self._pvt_ptr[0].binaryVersion @binaryVersion.setter def binaryVersion(self, int binaryVersion): self._pvt_ptr[0].binaryVersion = binaryVersion - {{endif}} - {{if 'cudaFuncAttributes.cacheModeCA' in found_struct}} + + @property def cacheModeCA(self): return self._pvt_ptr[0].cacheModeCA @cacheModeCA.setter def cacheModeCA(self, int cacheModeCA): self._pvt_ptr[0].cacheModeCA = cacheModeCA - {{endif}} - {{if 'cudaFuncAttributes.maxDynamicSharedSizeBytes' in found_struct}} + + @property def maxDynamicSharedSizeBytes(self): return self._pvt_ptr[0].maxDynamicSharedSizeBytes @maxDynamicSharedSizeBytes.setter def maxDynamicSharedSizeBytes(self, int maxDynamicSharedSizeBytes): self._pvt_ptr[0].maxDynamicSharedSizeBytes = maxDynamicSharedSizeBytes - {{endif}} - {{if 'cudaFuncAttributes.preferredShmemCarveout' in found_struct}} + + @property def preferredShmemCarveout(self): return self._pvt_ptr[0].preferredShmemCarveout @preferredShmemCarveout.setter def preferredShmemCarveout(self, int preferredShmemCarveout): self._pvt_ptr[0].preferredShmemCarveout = preferredShmemCarveout - {{endif}} - {{if 'cudaFuncAttributes.clusterDimMustBeSet' in found_struct}} + + @property def clusterDimMustBeSet(self): return self._pvt_ptr[0].clusterDimMustBeSet @clusterDimMustBeSet.setter def clusterDimMustBeSet(self, int clusterDimMustBeSet): self._pvt_ptr[0].clusterDimMustBeSet = clusterDimMustBeSet - {{endif}} - {{if 'cudaFuncAttributes.requiredClusterWidth' in found_struct}} + + @property def requiredClusterWidth(self): return self._pvt_ptr[0].requiredClusterWidth @requiredClusterWidth.setter def requiredClusterWidth(self, int requiredClusterWidth): self._pvt_ptr[0].requiredClusterWidth = requiredClusterWidth - {{endif}} - {{if 'cudaFuncAttributes.requiredClusterHeight' in found_struct}} + + @property def requiredClusterHeight(self): return self._pvt_ptr[0].requiredClusterHeight @requiredClusterHeight.setter def requiredClusterHeight(self, int requiredClusterHeight): self._pvt_ptr[0].requiredClusterHeight = requiredClusterHeight - {{endif}} - {{if 'cudaFuncAttributes.requiredClusterDepth' in found_struct}} + + @property def requiredClusterDepth(self): return self._pvt_ptr[0].requiredClusterDepth @requiredClusterDepth.setter def requiredClusterDepth(self, int requiredClusterDepth): self._pvt_ptr[0].requiredClusterDepth = requiredClusterDepth - {{endif}} - {{if 'cudaFuncAttributes.clusterSchedulingPolicyPreference' in found_struct}} + + @property def clusterSchedulingPolicyPreference(self): return self._pvt_ptr[0].clusterSchedulingPolicyPreference @clusterSchedulingPolicyPreference.setter def clusterSchedulingPolicyPreference(self, int clusterSchedulingPolicyPreference): self._pvt_ptr[0].clusterSchedulingPolicyPreference = clusterSchedulingPolicyPreference - {{endif}} - {{if 'cudaFuncAttributes.nonPortableClusterSizeAllowed' in found_struct}} + + @property def nonPortableClusterSizeAllowed(self): return self._pvt_ptr[0].nonPortableClusterSizeAllowed @nonPortableClusterSizeAllowed.setter def nonPortableClusterSizeAllowed(self, int nonPortableClusterSizeAllowed): self._pvt_ptr[0].nonPortableClusterSizeAllowed = nonPortableClusterSizeAllowed - {{endif}} - {{if 'cudaFuncAttributes.reserved' in found_struct}} - @property - def reserved(self): - return self._pvt_ptr[0].reserved - @reserved.setter - def reserved(self, reserved): - self._pvt_ptr[0].reserved = reserved - {{endif}} -{{endif}} -{{if 'cudaMemLocation' in found_struct}} + cdef class cudaMemLocation: """ @@ -10158,14 +9711,14 @@ cdef class cudaMemLocation: Attributes ---------- - {{if 'cudaMemLocation.type' in found_struct}} + type : cudaMemLocationType Specifies the location type, which modifies the meaning of id. - {{endif}} - {{if 'cudaMemLocation.id' in found_struct}} + + id : int identifier for a given this location's ::CUmemLocationType. - {{endif}} + Methods ------- @@ -10186,39 +9739,37 @@ cdef class cudaMemLocation: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemLocation.type' in found_struct}} + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'cudaMemLocation.id' in found_struct}} + + try: str_list += ['id : ' + str(self.id)] except ValueError: str_list += ['id : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemLocation.type' in found_struct}} + @property def type(self): return cudaMemLocationType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : cudaMemLocationType): - self._pvt_ptr[0].type = int(type) - {{endif}} - {{if 'cudaMemLocation.id' in found_struct}} + self._pvt_ptr[0].type = int(type) + + @property def id(self): return self._pvt_ptr[0].id @id.setter def id(self, int id): self._pvt_ptr[0].id = id - {{endif}} -{{endif}} -{{if 'cudaMemAccessDesc' in found_struct}} + cdef class cudaMemAccessDesc: """ @@ -10226,14 +9777,14 @@ cdef class cudaMemAccessDesc: Attributes ---------- - {{if 'cudaMemAccessDesc.location' in found_struct}} + location : cudaMemLocation Location on which the request is to change it's accessibility - {{endif}} - {{if 'cudaMemAccessDesc.flags' in found_struct}} + + flags : cudaMemAccessFlags ::CUmemProt accessibility flags to set on the request - {{endif}} + Methods ------- @@ -10246,50 +9797,46 @@ cdef class cudaMemAccessDesc: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaMemAccessDesc.location' in found_struct}} self._location = cudaMemLocation(_ptr=&self._pvt_ptr[0].location) - {{endif}} + self._location._owner = self def __dealloc__(self): - pass + self._location = None def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemAccessDesc.location' in found_struct}} + try: str_list += ['location :\n' + '\n'.join([' ' + line for line in str(self.location).splitlines()])] except ValueError: str_list += ['location : '] - {{endif}} - {{if 'cudaMemAccessDesc.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemAccessDesc.location' in found_struct}} + @property def location(self): return self._location @location.setter def location(self, location not None : cudaMemLocation): string.memcpy(&self._pvt_ptr[0].location, location.getPtr(), sizeof(self._pvt_ptr[0].location)) - {{endif}} - {{if 'cudaMemAccessDesc.flags' in found_struct}} + + @property def flags(self): return cudaMemAccessFlags(self._pvt_ptr[0].flags) @flags.setter def flags(self, flags not None : cudaMemAccessFlags): - self._pvt_ptr[0].flags = int(flags) - {{endif}} -{{endif}} -{{if 'cudaMemPoolProps' in found_struct}} + self._pvt_ptr[0].flags = int(flags) + cdef class cudaMemPoolProps: """ @@ -10297,40 +9844,36 @@ cdef class cudaMemPoolProps: Attributes ---------- - {{if 'cudaMemPoolProps.allocType' in found_struct}} + allocType : cudaMemAllocationType Allocation type. Currently must be specified as cudaMemAllocationTypePinned - {{endif}} - {{if 'cudaMemPoolProps.handleTypes' in found_struct}} + + handleTypes : cudaMemAllocationHandleType Handle types that will be supported by allocations from the pool. - {{endif}} - {{if 'cudaMemPoolProps.location' in found_struct}} + + location : cudaMemLocation Location allocations should reside. - {{endif}} - {{if 'cudaMemPoolProps.win32SecurityAttributes' in found_struct}} + + win32SecurityAttributes : Any Windows-specific LPSECURITYATTRIBUTES required when cudaMemHandleTypeWin32 is specified. This security attribute defines the scope of which exported allocations may be tranferred to other processes. In all other cases, this field is required to be zero. - {{endif}} - {{if 'cudaMemPoolProps.maxSize' in found_struct}} + + maxSize : size_t Maximum pool size. When set to 0, defaults to a system dependent value. - {{endif}} - {{if 'cudaMemPoolProps.usage' in found_struct}} + + usage : unsigned short Bitmask indicating intended usage for the pool. - {{endif}} - {{if 'cudaMemPoolProps.reserved' in found_struct}} - reserved : bytes - reserved for future use, must be 0 - {{endif}} + Methods ------- @@ -10343,87 +9886,79 @@ cdef class cudaMemPoolProps: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaMemPoolProps.location' in found_struct}} self._location = cudaMemLocation(_ptr=&self._pvt_ptr[0].location) - {{endif}} + self._location._owner = self def __dealloc__(self): - pass + self._location = None def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemPoolProps.allocType' in found_struct}} + try: str_list += ['allocType : ' + str(self.allocType)] except ValueError: str_list += ['allocType : '] - {{endif}} - {{if 'cudaMemPoolProps.handleTypes' in found_struct}} + + try: str_list += ['handleTypes : ' + str(self.handleTypes)] except ValueError: str_list += ['handleTypes : '] - {{endif}} - {{if 'cudaMemPoolProps.location' in found_struct}} + + try: str_list += ['location :\n' + '\n'.join([' ' + line for line in str(self.location).splitlines()])] except ValueError: str_list += ['location : '] - {{endif}} - {{if 'cudaMemPoolProps.win32SecurityAttributes' in found_struct}} + + try: str_list += ['win32SecurityAttributes : ' + hex(self.win32SecurityAttributes)] except ValueError: str_list += ['win32SecurityAttributes : '] - {{endif}} - {{if 'cudaMemPoolProps.maxSize' in found_struct}} + + try: str_list += ['maxSize : ' + str(self.maxSize)] except ValueError: str_list += ['maxSize : '] - {{endif}} - {{if 'cudaMemPoolProps.usage' in found_struct}} + + try: str_list += ['usage : ' + str(self.usage)] except ValueError: str_list += ['usage : '] - {{endif}} - {{if 'cudaMemPoolProps.reserved' in found_struct}} - try: - str_list += ['reserved : ' + str(self.reserved)] - except ValueError: - str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemPoolProps.allocType' in found_struct}} + @property def allocType(self): return cudaMemAllocationType(self._pvt_ptr[0].allocType) @allocType.setter def allocType(self, allocType not None : cudaMemAllocationType): - self._pvt_ptr[0].allocType = int(allocType) - {{endif}} - {{if 'cudaMemPoolProps.handleTypes' in found_struct}} + self._pvt_ptr[0].allocType = int(allocType) + + @property def handleTypes(self): return cudaMemAllocationHandleType(self._pvt_ptr[0].handleTypes) @handleTypes.setter def handleTypes(self, handleTypes not None : cudaMemAllocationHandleType): - self._pvt_ptr[0].handleTypes = int(handleTypes) - {{endif}} - {{if 'cudaMemPoolProps.location' in found_struct}} + self._pvt_ptr[0].handleTypes = int(handleTypes) + + @property def location(self): return self._location @location.setter def location(self, location not None : cudaMemLocation): string.memcpy(&self._pvt_ptr[0].location, location.getPtr(), sizeof(self._pvt_ptr[0].location)) - {{endif}} - {{if 'cudaMemPoolProps.win32SecurityAttributes' in found_struct}} + + @property def win32SecurityAttributes(self): return self._pvt_ptr[0].win32SecurityAttributes @@ -10431,48 +9966,28 @@ cdef class cudaMemPoolProps: def win32SecurityAttributes(self, win32SecurityAttributes): self._cywin32SecurityAttributes = _HelperInputVoidPtr(win32SecurityAttributes) self._pvt_ptr[0].win32SecurityAttributes = self._cywin32SecurityAttributes.cptr - {{endif}} - {{if 'cudaMemPoolProps.maxSize' in found_struct}} + + @property def maxSize(self): return self._pvt_ptr[0].maxSize @maxSize.setter def maxSize(self, size_t maxSize): self._pvt_ptr[0].maxSize = maxSize - {{endif}} - {{if 'cudaMemPoolProps.usage' in found_struct}} + + @property def usage(self): return self._pvt_ptr[0].usage @usage.setter def usage(self, unsigned short usage): self._pvt_ptr[0].usage = usage - {{endif}} - {{if 'cudaMemPoolProps.reserved' in found_struct}} - @property - def reserved(self): - return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 54) - @reserved.setter - def reserved(self, reserved): - if len(reserved) != 54: - raise ValueError("reserved length must be 54, is " + str(len(reserved))) - for i, b in enumerate(reserved): - self._pvt_ptr[0].reserved[i] = b - {{endif}} -{{endif}} -{{if 'cudaMemPoolPtrExportData' in found_struct}} + cdef class cudaMemPoolPtrExportData: """ Opaque data for exporting a pool allocation - Attributes - ---------- - {{if 'cudaMemPoolPtrExportData.reserved' in found_struct}} - reserved : bytes - - {{endif}} - Methods ------- getPtr() @@ -10492,28 +10007,10 @@ cdef class cudaMemPoolPtrExportData: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemPoolPtrExportData.reserved' in found_struct}} - try: - str_list += ['reserved : ' + str(self.reserved)] - except ValueError: - str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemPoolPtrExportData.reserved' in found_struct}} - @property - def reserved(self): - return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 64) - @reserved.setter - def reserved(self, reserved): - if len(reserved) != 64: - raise ValueError("reserved length must be 64, is " + str(len(reserved))) - for i, b in enumerate(reserved): - self._pvt_ptr[0].reserved[i] = b - {{endif}} -{{endif}} -{{if 'cudaMemAllocNodeParams' in found_struct}} cdef class cudaMemAllocNodeParams: """ @@ -10521,30 +10018,30 @@ cdef class cudaMemAllocNodeParams: Attributes ---------- - {{if 'cudaMemAllocNodeParams.poolProps' in found_struct}} + poolProps : cudaMemPoolProps in: location where the allocation should reside (specified in ::location). ::handleTypes must be cudaMemHandleTypeNone. IPC is not supported. in: array of memory access descriptors. Used to describe peer GPU access - {{endif}} - {{if 'cudaMemAllocNodeParams.accessDescs' in found_struct}} + + accessDescs : cudaMemAccessDesc in: number of memory access descriptors. Must not exceed the number of GPUs. - {{endif}} - {{if 'cudaMemAllocNodeParams.accessDescCount' in found_struct}} + + accessDescCount : size_t in: Number of `accessDescs`s - {{endif}} - {{if 'cudaMemAllocNodeParams.bytesize' in found_struct}} + + bytesize : size_t in: size in bytes of the requested allocation - {{endif}} - {{if 'cudaMemAllocNodeParams.dptr' in found_struct}} + + dptr : Any out: address of the allocation returned by CUDA - {{endif}} + Methods ------- @@ -10557,70 +10054,71 @@ cdef class cudaMemAllocNodeParams: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaMemAllocNodeParams.poolProps' in found_struct}} self._poolProps = cudaMemPoolProps(_ptr=&self._pvt_ptr[0].poolProps) - {{endif}} + self._poolProps._owner = self def __dealloc__(self): - pass - {{if 'cudaMemAllocNodeParams.accessDescs' in found_struct}} + self._poolProps = None if self._accessDescs is not NULL: free(self._accessDescs) self._pvt_ptr[0].accessDescs = NULL - {{endif}} def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemAllocNodeParams.poolProps' in found_struct}} + try: str_list += ['poolProps :\n' + '\n'.join([' ' + line for line in str(self.poolProps).splitlines()])] except ValueError: str_list += ['poolProps : '] - {{endif}} - {{if 'cudaMemAllocNodeParams.accessDescs' in found_struct}} + + try: str_list += ['accessDescs : ' + str(self.accessDescs)] except ValueError: str_list += ['accessDescs : '] - {{endif}} - {{if 'cudaMemAllocNodeParams.accessDescCount' in found_struct}} + + try: str_list += ['accessDescCount : ' + str(self.accessDescCount)] except ValueError: str_list += ['accessDescCount : '] - {{endif}} - {{if 'cudaMemAllocNodeParams.bytesize' in found_struct}} + + try: str_list += ['bytesize : ' + str(self.bytesize)] except ValueError: str_list += ['bytesize : '] - {{endif}} - {{if 'cudaMemAllocNodeParams.dptr' in found_struct}} + + try: str_list += ['dptr : ' + hex(self.dptr)] except ValueError: str_list += ['dptr : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemAllocNodeParams.poolProps' in found_struct}} + @property def poolProps(self): return self._poolProps @poolProps.setter def poolProps(self, poolProps not None : cudaMemPoolProps): string.memcpy(&self._pvt_ptr[0].poolProps, poolProps.getPtr(), sizeof(self._pvt_ptr[0].poolProps)) - {{endif}} - {{if 'cudaMemAllocNodeParams.accessDescs' in found_struct}} + + @property def accessDescs(self): - arrs = [self._pvt_ptr[0].accessDescs + x*sizeof(cyruntime.cudaMemAccessDesc) for x in range(self._accessDescs_length)] - return [cudaMemAccessDesc(_ptr=arr) for arr in arrs] + if self._pvt_ptr[0].accessDescs == NULL: + return [] + out_accessDescs = [cudaMemAccessDesc() for _idx in range(self._accessDescs_length)] + for _idx in range(len(out_accessDescs)): + string.memcpy(out_accessDescs[_idx].getPtr(), &self._pvt_ptr[0].accessDescs[_idx], sizeof(cyruntime.cudaMemAccessDesc)) + return out_accessDescs @accessDescs.setter def accessDescs(self, val): + cdef cyruntime.cudaMemAccessDesc* _accessDescs_new if len(val) == 0: free(self._accessDescs) self._accessDescs = NULL @@ -10628,33 +10126,36 @@ cdef class cudaMemAllocNodeParams: self._pvt_ptr[0].accessDescs = NULL else: if self._accessDescs_length != len(val): - free(self._accessDescs) - self._accessDescs = calloc(len(val), sizeof(cyruntime.cudaMemAccessDesc)) - if self._accessDescs is NULL: + _accessDescs_new = calloc(len(val), sizeof(cyruntime.cudaMemAccessDesc)) + if _accessDescs_new is NULL: raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaMemAccessDesc))) + for idx in range(len(val)): + string.memcpy(&_accessDescs_new[idx], (val[idx])._pvt_ptr, sizeof(cyruntime.cudaMemAccessDesc)) + free(self._accessDescs) + self._accessDescs = _accessDescs_new self._accessDescs_length = len(val) - self._pvt_ptr[0].accessDescs = self._accessDescs - for idx in range(len(val)): - string.memcpy(&self._accessDescs[idx], (val[idx])._pvt_ptr, sizeof(cyruntime.cudaMemAccessDesc)) + self._pvt_ptr[0].accessDescs = _accessDescs_new + else: + for idx in range(len(val)): + string.memcpy(&self._accessDescs[idx], (val[idx])._pvt_ptr, sizeof(cyruntime.cudaMemAccessDesc)) + - {{endif}} - {{if 'cudaMemAllocNodeParams.accessDescCount' in found_struct}} @property def accessDescCount(self): return self._pvt_ptr[0].accessDescCount @accessDescCount.setter def accessDescCount(self, size_t accessDescCount): self._pvt_ptr[0].accessDescCount = accessDescCount - {{endif}} - {{if 'cudaMemAllocNodeParams.bytesize' in found_struct}} + + @property def bytesize(self): return self._pvt_ptr[0].bytesize @bytesize.setter def bytesize(self, size_t bytesize): self._pvt_ptr[0].bytesize = bytesize - {{endif}} - {{if 'cudaMemAllocNodeParams.dptr' in found_struct}} + + @property def dptr(self): return self._pvt_ptr[0].dptr @@ -10662,9 +10163,7 @@ cdef class cudaMemAllocNodeParams: def dptr(self, dptr): self._cydptr = _HelperInputVoidPtr(dptr) self._pvt_ptr[0].dptr = self._cydptr.cptr - {{endif}} -{{endif}} -{{if 'cudaMemAllocNodeParamsV2' in found_struct}} + cdef class cudaMemAllocNodeParamsV2: """ @@ -10672,30 +10171,30 @@ cdef class cudaMemAllocNodeParamsV2: Attributes ---------- - {{if 'cudaMemAllocNodeParamsV2.poolProps' in found_struct}} + poolProps : cudaMemPoolProps in: location where the allocation should reside (specified in ::location). ::handleTypes must be cudaMemHandleTypeNone. IPC is not supported. in: array of memory access descriptors. Used to describe peer GPU access - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.accessDescs' in found_struct}} + + accessDescs : cudaMemAccessDesc in: number of memory access descriptors. Must not exceed the number of GPUs. - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.accessDescCount' in found_struct}} + + accessDescCount : size_t in: Number of `accessDescs`s - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.bytesize' in found_struct}} + + bytesize : size_t in: size in bytes of the requested allocation - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.dptr' in found_struct}} + + dptr : Any out: address of the allocation returned by CUDA - {{endif}} + Methods ------- @@ -10708,70 +10207,71 @@ cdef class cudaMemAllocNodeParamsV2: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaMemAllocNodeParamsV2.poolProps' in found_struct}} self._poolProps = cudaMemPoolProps(_ptr=&self._pvt_ptr[0].poolProps) - {{endif}} + self._poolProps._owner = self def __dealloc__(self): - pass - {{if 'cudaMemAllocNodeParamsV2.accessDescs' in found_struct}} + self._poolProps = None if self._accessDescs is not NULL: free(self._accessDescs) self._pvt_ptr[0].accessDescs = NULL - {{endif}} def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemAllocNodeParamsV2.poolProps' in found_struct}} + try: str_list += ['poolProps :\n' + '\n'.join([' ' + line for line in str(self.poolProps).splitlines()])] except ValueError: str_list += ['poolProps : '] - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.accessDescs' in found_struct}} + + try: str_list += ['accessDescs : ' + str(self.accessDescs)] except ValueError: str_list += ['accessDescs : '] - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.accessDescCount' in found_struct}} + + try: str_list += ['accessDescCount : ' + str(self.accessDescCount)] except ValueError: str_list += ['accessDescCount : '] - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.bytesize' in found_struct}} + + try: str_list += ['bytesize : ' + str(self.bytesize)] except ValueError: str_list += ['bytesize : '] - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.dptr' in found_struct}} + + try: str_list += ['dptr : ' + hex(self.dptr)] except ValueError: str_list += ['dptr : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemAllocNodeParamsV2.poolProps' in found_struct}} + @property def poolProps(self): return self._poolProps @poolProps.setter def poolProps(self, poolProps not None : cudaMemPoolProps): string.memcpy(&self._pvt_ptr[0].poolProps, poolProps.getPtr(), sizeof(self._pvt_ptr[0].poolProps)) - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.accessDescs' in found_struct}} + + @property def accessDescs(self): - arrs = [self._pvt_ptr[0].accessDescs + x*sizeof(cyruntime.cudaMemAccessDesc) for x in range(self._accessDescs_length)] - return [cudaMemAccessDesc(_ptr=arr) for arr in arrs] + if self._pvt_ptr[0].accessDescs == NULL: + return [] + out_accessDescs = [cudaMemAccessDesc() for _idx in range(self._accessDescs_length)] + for _idx in range(len(out_accessDescs)): + string.memcpy(out_accessDescs[_idx].getPtr(), &self._pvt_ptr[0].accessDescs[_idx], sizeof(cyruntime.cudaMemAccessDesc)) + return out_accessDescs @accessDescs.setter def accessDescs(self, val): + cdef cyruntime.cudaMemAccessDesc* _accessDescs_new if len(val) == 0: free(self._accessDescs) self._accessDescs = NULL @@ -10779,33 +10279,36 @@ cdef class cudaMemAllocNodeParamsV2: self._pvt_ptr[0].accessDescs = NULL else: if self._accessDescs_length != len(val): - free(self._accessDescs) - self._accessDescs = calloc(len(val), sizeof(cyruntime.cudaMemAccessDesc)) - if self._accessDescs is NULL: + _accessDescs_new = calloc(len(val), sizeof(cyruntime.cudaMemAccessDesc)) + if _accessDescs_new is NULL: raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaMemAccessDesc))) + for idx in range(len(val)): + string.memcpy(&_accessDescs_new[idx], (val[idx])._pvt_ptr, sizeof(cyruntime.cudaMemAccessDesc)) + free(self._accessDescs) + self._accessDescs = _accessDescs_new self._accessDescs_length = len(val) - self._pvt_ptr[0].accessDescs = self._accessDescs - for idx in range(len(val)): - string.memcpy(&self._accessDescs[idx], (val[idx])._pvt_ptr, sizeof(cyruntime.cudaMemAccessDesc)) + self._pvt_ptr[0].accessDescs = _accessDescs_new + else: + for idx in range(len(val)): + string.memcpy(&self._accessDescs[idx], (val[idx])._pvt_ptr, sizeof(cyruntime.cudaMemAccessDesc)) + - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.accessDescCount' in found_struct}} @property def accessDescCount(self): return self._pvt_ptr[0].accessDescCount @accessDescCount.setter def accessDescCount(self, size_t accessDescCount): self._pvt_ptr[0].accessDescCount = accessDescCount - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.bytesize' in found_struct}} + + @property def bytesize(self): return self._pvt_ptr[0].bytesize @bytesize.setter def bytesize(self, size_t bytesize): self._pvt_ptr[0].bytesize = bytesize - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.dptr' in found_struct}} + + @property def dptr(self): return self._pvt_ptr[0].dptr @@ -10813,9 +10316,7 @@ cdef class cudaMemAllocNodeParamsV2: def dptr(self, dptr): self._cydptr = _HelperInputVoidPtr(dptr) self._pvt_ptr[0].dptr = self._cydptr.cptr - {{endif}} -{{endif}} -{{if 'cudaMemFreeNodeParams' in found_struct}} + cdef class cudaMemFreeNodeParams: """ @@ -10823,10 +10324,10 @@ cdef class cudaMemFreeNodeParams: Attributes ---------- - {{if 'cudaMemFreeNodeParams.dptr' in found_struct}} + dptr : Any in: the pointer to free - {{endif}} + Methods ------- @@ -10847,16 +10348,16 @@ cdef class cudaMemFreeNodeParams: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemFreeNodeParams.dptr' in found_struct}} + try: str_list += ['dptr : ' + hex(self.dptr)] except ValueError: str_list += ['dptr : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemFreeNodeParams.dptr' in found_struct}} + @property def dptr(self): return self._pvt_ptr[0].dptr @@ -10864,9 +10365,7 @@ cdef class cudaMemFreeNodeParams: def dptr(self, dptr): self._cydptr = _HelperInputVoidPtr(dptr) self._pvt_ptr[0].dptr = self._cydptr.cptr - {{endif}} -{{endif}} -{{if 'cudaMemcpyAttributes' in found_struct}} + cdef class cudaMemcpyAttributes: """ @@ -10875,26 +10374,26 @@ cdef class cudaMemcpyAttributes: Attributes ---------- - {{if 'cudaMemcpyAttributes.srcAccessOrder' in found_struct}} + srcAccessOrder : cudaMemcpySrcAccessOrder Source access ordering to be observed for copies with this attribute. - {{endif}} - {{if 'cudaMemcpyAttributes.srcLocHint' in found_struct}} + + srcLocHint : cudaMemLocation Hint location for the source operand. Ignored when the pointers are not managed memory or memory allocated outside CUDA. - {{endif}} - {{if 'cudaMemcpyAttributes.dstLocHint' in found_struct}} + + dstLocHint : cudaMemLocation Hint location for the destination operand. Ignored when the pointers are not managed memory or memory allocated outside CUDA. - {{endif}} - {{if 'cudaMemcpyAttributes.flags' in found_struct}} + + flags : unsigned int Additional flags for copies with this attribute. See cudaMemcpyFlags. - {{endif}} + Methods ------- @@ -10907,81 +10406,77 @@ cdef class cudaMemcpyAttributes: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaMemcpyAttributes.srcLocHint' in found_struct}} self._srcLocHint = cudaMemLocation(_ptr=&self._pvt_ptr[0].srcLocHint) - {{endif}} - {{if 'cudaMemcpyAttributes.dstLocHint' in found_struct}} + self._srcLocHint._owner = self self._dstLocHint = cudaMemLocation(_ptr=&self._pvt_ptr[0].dstLocHint) - {{endif}} + self._dstLocHint._owner = self def __dealloc__(self): - pass + self._srcLocHint = None + self._dstLocHint = None def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemcpyAttributes.srcAccessOrder' in found_struct}} + try: str_list += ['srcAccessOrder : ' + str(self.srcAccessOrder)] except ValueError: str_list += ['srcAccessOrder : '] - {{endif}} - {{if 'cudaMemcpyAttributes.srcLocHint' in found_struct}} + + try: str_list += ['srcLocHint :\n' + '\n'.join([' ' + line for line in str(self.srcLocHint).splitlines()])] except ValueError: str_list += ['srcLocHint : '] - {{endif}} - {{if 'cudaMemcpyAttributes.dstLocHint' in found_struct}} + + try: str_list += ['dstLocHint :\n' + '\n'.join([' ' + line for line in str(self.dstLocHint).splitlines()])] except ValueError: str_list += ['dstLocHint : '] - {{endif}} - {{if 'cudaMemcpyAttributes.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemcpyAttributes.srcAccessOrder' in found_struct}} + @property def srcAccessOrder(self): return cudaMemcpySrcAccessOrder(self._pvt_ptr[0].srcAccessOrder) @srcAccessOrder.setter def srcAccessOrder(self, srcAccessOrder not None : cudaMemcpySrcAccessOrder): - self._pvt_ptr[0].srcAccessOrder = int(srcAccessOrder) - {{endif}} - {{if 'cudaMemcpyAttributes.srcLocHint' in found_struct}} + self._pvt_ptr[0].srcAccessOrder = int(srcAccessOrder) + + @property def srcLocHint(self): return self._srcLocHint @srcLocHint.setter def srcLocHint(self, srcLocHint not None : cudaMemLocation): string.memcpy(&self._pvt_ptr[0].srcLocHint, srcLocHint.getPtr(), sizeof(self._pvt_ptr[0].srcLocHint)) - {{endif}} - {{if 'cudaMemcpyAttributes.dstLocHint' in found_struct}} + + @property def dstLocHint(self): return self._dstLocHint @dstLocHint.setter def dstLocHint(self, dstLocHint not None : cudaMemLocation): string.memcpy(&self._pvt_ptr[0].dstLocHint, dstLocHint.getPtr(), sizeof(self._pvt_ptr[0].dstLocHint)) - {{endif}} - {{if 'cudaMemcpyAttributes.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].flags @flags.setter def flags(self, unsigned int flags): self._pvt_ptr[0].flags = flags - {{endif}} -{{endif}} -{{if 'cudaOffset3D' in found_struct}} + cdef class cudaOffset3D: """ @@ -10989,18 +10484,18 @@ cdef class cudaOffset3D: Attributes ---------- - {{if 'cudaOffset3D.x' in found_struct}} + x : size_t - {{endif}} - {{if 'cudaOffset3D.y' in found_struct}} + + y : size_t - {{endif}} - {{if 'cudaOffset3D.z' in found_struct}} + + z : size_t - {{endif}} + Methods ------- @@ -11021,74 +10516,72 @@ cdef class cudaOffset3D: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaOffset3D.x' in found_struct}} + try: str_list += ['x : ' + str(self.x)] except ValueError: str_list += ['x : '] - {{endif}} - {{if 'cudaOffset3D.y' in found_struct}} + + try: str_list += ['y : ' + str(self.y)] except ValueError: str_list += ['y : '] - {{endif}} - {{if 'cudaOffset3D.z' in found_struct}} + + try: str_list += ['z : ' + str(self.z)] except ValueError: str_list += ['z : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaOffset3D.x' in found_struct}} + @property def x(self): return self._pvt_ptr[0].x @x.setter def x(self, size_t x): self._pvt_ptr[0].x = x - {{endif}} - {{if 'cudaOffset3D.y' in found_struct}} + + @property def y(self): return self._pvt_ptr[0].y @y.setter def y(self, size_t y): self._pvt_ptr[0].y = y - {{endif}} - {{if 'cudaOffset3D.z' in found_struct}} + + @property def z(self): return self._pvt_ptr[0].z @z.setter def z(self, size_t z): self._pvt_ptr[0].z = z - {{endif}} -{{endif}} -{{if 'cudaMemcpy3DOperand.op.ptr' in found_struct}} + cdef class anon_struct5: """ Attributes ---------- - {{if 'cudaMemcpy3DOperand.op.ptr.ptr' in found_struct}} + ptr : Any - {{endif}} - {{if 'cudaMemcpy3DOperand.op.ptr.rowLength' in found_struct}} + + rowLength : size_t - {{endif}} - {{if 'cudaMemcpy3DOperand.op.ptr.layerHeight' in found_struct}} + + layerHeight : size_t - {{endif}} - {{if 'cudaMemcpy3DOperand.op.ptr.locHint' in found_struct}} + + locHint : cudaMemLocation - {{endif}} + Methods ------- @@ -11099,45 +10592,43 @@ cdef class anon_struct5: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - {{if 'cudaMemcpy3DOperand.op.ptr.locHint' in found_struct}} self._locHint = cudaMemLocation(_ptr=&self._pvt_ptr[0].op.ptr.locHint) - {{endif}} + self._locHint._owner = self def __dealloc__(self): - pass + self._locHint = None def getPtr(self): return &self._pvt_ptr[0].op.ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemcpy3DOperand.op.ptr.ptr' in found_struct}} + try: str_list += ['ptr : ' + hex(self.ptr)] except ValueError: str_list += ['ptr : '] - {{endif}} - {{if 'cudaMemcpy3DOperand.op.ptr.rowLength' in found_struct}} + + try: str_list += ['rowLength : ' + str(self.rowLength)] except ValueError: str_list += ['rowLength : '] - {{endif}} - {{if 'cudaMemcpy3DOperand.op.ptr.layerHeight' in found_struct}} + + try: str_list += ['layerHeight : ' + str(self.layerHeight)] except ValueError: str_list += ['layerHeight : '] - {{endif}} - {{if 'cudaMemcpy3DOperand.op.ptr.locHint' in found_struct}} + + try: str_list += ['locHint :\n' + '\n'.join([' ' + line for line in str(self.locHint).splitlines()])] except ValueError: str_list += ['locHint : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemcpy3DOperand.op.ptr.ptr' in found_struct}} + @property def ptr(self): return self._pvt_ptr[0].op.ptr.ptr @@ -11145,46 +10636,44 @@ cdef class anon_struct5: def ptr(self, ptr): self._cyptr = _HelperInputVoidPtr(ptr) self._pvt_ptr[0].op.ptr.ptr = self._cyptr.cptr - {{endif}} - {{if 'cudaMemcpy3DOperand.op.ptr.rowLength' in found_struct}} + + @property def rowLength(self): return self._pvt_ptr[0].op.ptr.rowLength @rowLength.setter def rowLength(self, size_t rowLength): self._pvt_ptr[0].op.ptr.rowLength = rowLength - {{endif}} - {{if 'cudaMemcpy3DOperand.op.ptr.layerHeight' in found_struct}} + + @property def layerHeight(self): return self._pvt_ptr[0].op.ptr.layerHeight @layerHeight.setter def layerHeight(self, size_t layerHeight): self._pvt_ptr[0].op.ptr.layerHeight = layerHeight - {{endif}} - {{if 'cudaMemcpy3DOperand.op.ptr.locHint' in found_struct}} + + @property def locHint(self): return self._locHint @locHint.setter def locHint(self, locHint not None : cudaMemLocation): string.memcpy(&self._pvt_ptr[0].op.ptr.locHint, locHint.getPtr(), sizeof(self._pvt_ptr[0].op.ptr.locHint)) - {{endif}} -{{endif}} -{{if 'cudaMemcpy3DOperand.op.array' in found_struct}} + cdef class anon_struct6: """ Attributes ---------- - {{if 'cudaMemcpy3DOperand.op.array.array' in found_struct}} + array : cudaArray_t - {{endif}} - {{if 'cudaMemcpy3DOperand.op.array.offset' in found_struct}} + + offset : cudaOffset3D - {{endif}} + Methods ------- @@ -11195,36 +10684,32 @@ cdef class anon_struct6: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - {{if 'cudaMemcpy3DOperand.op.array.array' in found_struct}} self._array = cudaArray_t(_ptr=&self._pvt_ptr[0].op.array.array) - {{endif}} - {{if 'cudaMemcpy3DOperand.op.array.offset' in found_struct}} self._offset = cudaOffset3D(_ptr=&self._pvt_ptr[0].op.array.offset) - {{endif}} + self._offset._owner = self def __dealloc__(self): - pass + self._offset = None def getPtr(self): return &self._pvt_ptr[0].op.array def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemcpy3DOperand.op.array.array' in found_struct}} + try: str_list += ['array : ' + str(self.array)] except ValueError: str_list += ['array : '] - {{endif}} - {{if 'cudaMemcpy3DOperand.op.array.offset' in found_struct}} + + try: str_list += ['offset :\n' + '\n'.join([' ' + line for line in str(self.offset).splitlines()])] except ValueError: str_list += ['offset : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemcpy3DOperand.op.array.array' in found_struct}} + @property def array(self): return self._array @@ -11240,30 +10725,28 @@ cdef class anon_struct6: parray = int(cudaArray_t(array)) cyarray = parray self._array._pvt_ptr[0] = cyarray - {{endif}} - {{if 'cudaMemcpy3DOperand.op.array.offset' in found_struct}} + + @property def offset(self): return self._offset @offset.setter def offset(self, offset not None : cudaOffset3D): string.memcpy(&self._pvt_ptr[0].op.array.offset, offset.getPtr(), sizeof(self._pvt_ptr[0].op.array.offset)) - {{endif}} -{{endif}} -{{if 'cudaMemcpy3DOperand.op' in found_struct}} + cdef class anon_union1: """ Attributes ---------- - {{if 'cudaMemcpy3DOperand.op.ptr' in found_struct}} + ptr : anon_struct5 - {{endif}} - {{if 'cudaMemcpy3DOperand.op.array' in found_struct}} + + array : anon_struct6 - {{endif}} + Methods ------- @@ -11274,53 +10757,49 @@ cdef class anon_union1: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - {{if 'cudaMemcpy3DOperand.op.ptr' in found_struct}} self._ptr = anon_struct5(_ptr=self._pvt_ptr) - {{endif}} - {{if 'cudaMemcpy3DOperand.op.array' in found_struct}} + self._ptr._owner = self self._array = anon_struct6(_ptr=self._pvt_ptr) - {{endif}} + self._array._owner = self def __dealloc__(self): - pass + self._ptr = None + self._array = None def getPtr(self): return &self._pvt_ptr[0].op def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemcpy3DOperand.op.ptr' in found_struct}} + try: str_list += ['ptr :\n' + '\n'.join([' ' + line for line in str(self.ptr).splitlines()])] except ValueError: str_list += ['ptr : '] - {{endif}} - {{if 'cudaMemcpy3DOperand.op.array' in found_struct}} + + try: str_list += ['array :\n' + '\n'.join([' ' + line for line in str(self.array).splitlines()])] except ValueError: str_list += ['array : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemcpy3DOperand.op.ptr' in found_struct}} + @property def ptr(self): return self._ptr @ptr.setter def ptr(self, ptr not None : anon_struct5): string.memcpy(&self._pvt_ptr[0].op.ptr, ptr.getPtr(), sizeof(self._pvt_ptr[0].op.ptr)) - {{endif}} - {{if 'cudaMemcpy3DOperand.op.array' in found_struct}} + + @property def array(self): return self._array @array.setter def array(self, array not None : anon_struct6): string.memcpy(&self._pvt_ptr[0].op.array, array.getPtr(), sizeof(self._pvt_ptr[0].op.array)) - {{endif}} -{{endif}} -{{if 'cudaMemcpy3DOperand' in found_struct}} + cdef class cudaMemcpy3DOperand: """ @@ -11328,14 +10807,14 @@ cdef class cudaMemcpy3DOperand: Attributes ---------- - {{if 'cudaMemcpy3DOperand.type' in found_struct}} + type : cudaMemcpy3DOperandType - {{endif}} - {{if 'cudaMemcpy3DOperand.op' in found_struct}} + + op : anon_union1 - {{endif}} + Methods ------- @@ -11349,11 +10828,10 @@ cdef class cudaMemcpy3DOperand: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaMemcpy3DOperand.op' in found_struct}} self._op = anon_union1(_ptr=self._pvt_ptr) - {{endif}} + self._op._owner = self def __dealloc__(self): + self._op = None if self._val_ptr is not NULL: free(self._val_ptr) def getPtr(self): @@ -11361,65 +10839,63 @@ cdef class cudaMemcpy3DOperand: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemcpy3DOperand.type' in found_struct}} + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'cudaMemcpy3DOperand.op' in found_struct}} + + try: str_list += ['op :\n' + '\n'.join([' ' + line for line in str(self.op).splitlines()])] except ValueError: str_list += ['op : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemcpy3DOperand.type' in found_struct}} + @property def type(self): return cudaMemcpy3DOperandType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : cudaMemcpy3DOperandType): - self._pvt_ptr[0].type = int(type) - {{endif}} - {{if 'cudaMemcpy3DOperand.op' in found_struct}} + self._pvt_ptr[0].type = int(type) + + @property def op(self): return self._op @op.setter def op(self, op not None : anon_union1): string.memcpy(&self._pvt_ptr[0].op, op.getPtr(), sizeof(self._pvt_ptr[0].op)) - {{endif}} -{{endif}} -{{if 'cudaMemcpy3DBatchOp' in found_struct}} + cdef class cudaMemcpy3DBatchOp: """ Attributes ---------- - {{if 'cudaMemcpy3DBatchOp.src' in found_struct}} + src : cudaMemcpy3DOperand Source memcpy operand. - {{endif}} - {{if 'cudaMemcpy3DBatchOp.dst' in found_struct}} + + dst : cudaMemcpy3DOperand Destination memcpy operand. - {{endif}} - {{if 'cudaMemcpy3DBatchOp.extent' in found_struct}} + + extent : cudaExtent Extents of the memcpy between src and dst. The width, height and depth components must not be 0. - {{endif}} - {{if 'cudaMemcpy3DBatchOp.srcAccessOrder' in found_struct}} + + srcAccessOrder : cudaMemcpySrcAccessOrder Source access ordering to be observed for copy from src to dst. - {{endif}} - {{if 'cudaMemcpy3DBatchOp.flags' in found_struct}} + + flags : unsigned int Additional flags for copy from src to dst. See cudaMemcpyFlags. - {{endif}} + Methods ------- @@ -11432,107 +10908,103 @@ cdef class cudaMemcpy3DBatchOp: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaMemcpy3DBatchOp.src' in found_struct}} self._src = cudaMemcpy3DOperand(_ptr=&self._pvt_ptr[0].src) - {{endif}} - {{if 'cudaMemcpy3DBatchOp.dst' in found_struct}} + self._src._owner = self self._dst = cudaMemcpy3DOperand(_ptr=&self._pvt_ptr[0].dst) - {{endif}} - {{if 'cudaMemcpy3DBatchOp.extent' in found_struct}} + self._dst._owner = self self._extent = cudaExtent(_ptr=&self._pvt_ptr[0].extent) - {{endif}} + self._extent._owner = self def __dealloc__(self): - pass + self._src = None + self._dst = None + self._extent = None def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemcpy3DBatchOp.src' in found_struct}} + try: str_list += ['src :\n' + '\n'.join([' ' + line for line in str(self.src).splitlines()])] except ValueError: str_list += ['src : '] - {{endif}} - {{if 'cudaMemcpy3DBatchOp.dst' in found_struct}} + + try: str_list += ['dst :\n' + '\n'.join([' ' + line for line in str(self.dst).splitlines()])] except ValueError: str_list += ['dst : '] - {{endif}} - {{if 'cudaMemcpy3DBatchOp.extent' in found_struct}} + + try: str_list += ['extent :\n' + '\n'.join([' ' + line for line in str(self.extent).splitlines()])] except ValueError: str_list += ['extent : '] - {{endif}} - {{if 'cudaMemcpy3DBatchOp.srcAccessOrder' in found_struct}} + + try: str_list += ['srcAccessOrder : ' + str(self.srcAccessOrder)] except ValueError: str_list += ['srcAccessOrder : '] - {{endif}} - {{if 'cudaMemcpy3DBatchOp.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemcpy3DBatchOp.src' in found_struct}} + @property def src(self): return self._src @src.setter def src(self, src not None : cudaMemcpy3DOperand): string.memcpy(&self._pvt_ptr[0].src, src.getPtr(), sizeof(self._pvt_ptr[0].src)) - {{endif}} - {{if 'cudaMemcpy3DBatchOp.dst' in found_struct}} + + @property def dst(self): return self._dst @dst.setter def dst(self, dst not None : cudaMemcpy3DOperand): string.memcpy(&self._pvt_ptr[0].dst, dst.getPtr(), sizeof(self._pvt_ptr[0].dst)) - {{endif}} - {{if 'cudaMemcpy3DBatchOp.extent' in found_struct}} + + @property def extent(self): return self._extent @extent.setter def extent(self, extent not None : cudaExtent): string.memcpy(&self._pvt_ptr[0].extent, extent.getPtr(), sizeof(self._pvt_ptr[0].extent)) - {{endif}} - {{if 'cudaMemcpy3DBatchOp.srcAccessOrder' in found_struct}} + + @property def srcAccessOrder(self): return cudaMemcpySrcAccessOrder(self._pvt_ptr[0].srcAccessOrder) @srcAccessOrder.setter def srcAccessOrder(self, srcAccessOrder not None : cudaMemcpySrcAccessOrder): - self._pvt_ptr[0].srcAccessOrder = int(srcAccessOrder) - {{endif}} - {{if 'cudaMemcpy3DBatchOp.flags' in found_struct}} + self._pvt_ptr[0].srcAccessOrder = int(srcAccessOrder) + + @property def flags(self): return self._pvt_ptr[0].flags @flags.setter def flags(self, unsigned int flags): self._pvt_ptr[0].flags = flags - {{endif}} -{{endif}} -{{if 'CUuuid_st' in found_struct}} + cdef class CUuuid_st: """ Attributes ---------- - {{if 'CUuuid_st.bytes' in found_struct}} + bytes : bytes < CUDA definition of UUID - {{endif}} + Methods ------- @@ -11553,22 +11025,20 @@ cdef class CUuuid_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUuuid_st.bytes' in found_struct}} + try: str_list += ['bytes : ' + str(self.bytes.hex())] except ValueError: str_list += ['bytes : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUuuid_st.bytes' in found_struct}} + @property def bytes(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0].bytes, 16) - {{endif}} -{{endif}} -{{if 'cudaDeviceProp' in found_struct}} + cdef class cudaDeviceProp: """ @@ -11576,404 +11046,400 @@ cdef class cudaDeviceProp: Attributes ---------- - {{if 'cudaDeviceProp.name' in found_struct}} + name : bytes ASCII string identifying device - {{endif}} - {{if 'cudaDeviceProp.uuid' in found_struct}} + + uuid : cudaUUID_t 16-byte unique identifier - {{endif}} - {{if 'cudaDeviceProp.luid' in found_struct}} + + luid : bytes 8-byte locally unique identifier. Value is undefined on TCC and non-Windows platforms - {{endif}} - {{if 'cudaDeviceProp.luidDeviceNodeMask' in found_struct}} + + luidDeviceNodeMask : unsigned int LUID device node mask. Value is undefined on TCC and non-Windows platforms - {{endif}} - {{if 'cudaDeviceProp.totalGlobalMem' in found_struct}} + + totalGlobalMem : size_t Global memory available on device in bytes - {{endif}} - {{if 'cudaDeviceProp.sharedMemPerBlock' in found_struct}} + + sharedMemPerBlock : size_t Shared memory available per block in bytes - {{endif}} - {{if 'cudaDeviceProp.regsPerBlock' in found_struct}} + + regsPerBlock : int 32-bit registers available per block - {{endif}} - {{if 'cudaDeviceProp.warpSize' in found_struct}} + + warpSize : int Warp size in threads - {{endif}} - {{if 'cudaDeviceProp.memPitch' in found_struct}} + + memPitch : size_t Maximum pitch in bytes allowed by memory copies - {{endif}} - {{if 'cudaDeviceProp.maxThreadsPerBlock' in found_struct}} + + maxThreadsPerBlock : int Maximum number of threads per block - {{endif}} - {{if 'cudaDeviceProp.maxThreadsDim' in found_struct}} + + maxThreadsDim : list[int] Maximum size of each dimension of a block - {{endif}} - {{if 'cudaDeviceProp.maxGridSize' in found_struct}} + + maxGridSize : list[int] Maximum size of each dimension of a grid - {{endif}} - {{if 'cudaDeviceProp.clockRate' in found_struct}} + + clockRate : int Deprecated, Clock frequency in kilohertz - {{endif}} - {{if 'cudaDeviceProp.totalConstMem' in found_struct}} + + totalConstMem : size_t Constant memory available on device in bytes - {{endif}} - {{if 'cudaDeviceProp.major' in found_struct}} + + major : int Major compute capability - {{endif}} - {{if 'cudaDeviceProp.minor' in found_struct}} + + minor : int Minor compute capability - {{endif}} - {{if 'cudaDeviceProp.textureAlignment' in found_struct}} + + textureAlignment : size_t Alignment requirement for textures - {{endif}} - {{if 'cudaDeviceProp.texturePitchAlignment' in found_struct}} + + texturePitchAlignment : size_t Pitch alignment requirement for texture references bound to pitched memory - {{endif}} - {{if 'cudaDeviceProp.deviceOverlap' in found_struct}} + + deviceOverlap : int Device can concurrently copy memory and execute a kernel. Deprecated. Use instead asyncEngineCount. - {{endif}} - {{if 'cudaDeviceProp.multiProcessorCount' in found_struct}} + + multiProcessorCount : int Number of multiprocessors on device - {{endif}} - {{if 'cudaDeviceProp.kernelExecTimeoutEnabled' in found_struct}} + + kernelExecTimeoutEnabled : int Deprecated, Specified whether there is a run time limit on kernels - {{endif}} - {{if 'cudaDeviceProp.integrated' in found_struct}} + + integrated : int Device is integrated as opposed to discrete - {{endif}} - {{if 'cudaDeviceProp.canMapHostMemory' in found_struct}} + + canMapHostMemory : int Device can map host memory with cudaHostAlloc/cudaHostGetDevicePointer - {{endif}} - {{if 'cudaDeviceProp.computeMode' in found_struct}} + + computeMode : int Deprecated, Compute mode (See cudaComputeMode) - {{endif}} - {{if 'cudaDeviceProp.maxTexture1D' in found_struct}} + + maxTexture1D : int Maximum 1D texture size - {{endif}} - {{if 'cudaDeviceProp.maxTexture1DMipmap' in found_struct}} + + maxTexture1DMipmap : int Maximum 1D mipmapped texture size - {{endif}} - {{if 'cudaDeviceProp.maxTexture1DLinear' in found_struct}} + + maxTexture1DLinear : int Deprecated, do not use. Use cudaDeviceGetTexture1DLinearMaxWidth() or cuDeviceGetTexture1DLinearMaxWidth() instead. - {{endif}} - {{if 'cudaDeviceProp.maxTexture2D' in found_struct}} + + maxTexture2D : list[int] Maximum 2D texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DMipmap' in found_struct}} + + maxTexture2DMipmap : list[int] Maximum 2D mipmapped texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DLinear' in found_struct}} + + maxTexture2DLinear : list[int] Maximum dimensions (width, height, pitch) for 2D textures bound to pitched memory - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DGather' in found_struct}} + + maxTexture2DGather : list[int] Maximum 2D texture dimensions if texture gather operations have to be performed - {{endif}} - {{if 'cudaDeviceProp.maxTexture3D' in found_struct}} + + maxTexture3D : list[int] Maximum 3D texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTexture3DAlt' in found_struct}} + + maxTexture3DAlt : list[int] Maximum alternate 3D texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTextureCubemap' in found_struct}} + + maxTextureCubemap : int Maximum Cubemap texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTexture1DLayered' in found_struct}} + + maxTexture1DLayered : list[int] Maximum 1D layered texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DLayered' in found_struct}} + + maxTexture2DLayered : list[int] Maximum 2D layered texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTextureCubemapLayered' in found_struct}} + + maxTextureCubemapLayered : list[int] Maximum Cubemap layered texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxSurface1D' in found_struct}} + + maxSurface1D : int Maximum 1D surface size - {{endif}} - {{if 'cudaDeviceProp.maxSurface2D' in found_struct}} + + maxSurface2D : list[int] Maximum 2D surface dimensions - {{endif}} - {{if 'cudaDeviceProp.maxSurface3D' in found_struct}} + + maxSurface3D : list[int] Maximum 3D surface dimensions - {{endif}} - {{if 'cudaDeviceProp.maxSurface1DLayered' in found_struct}} + + maxSurface1DLayered : list[int] Maximum 1D layered surface dimensions - {{endif}} - {{if 'cudaDeviceProp.maxSurface2DLayered' in found_struct}} + + maxSurface2DLayered : list[int] Maximum 2D layered surface dimensions - {{endif}} - {{if 'cudaDeviceProp.maxSurfaceCubemap' in found_struct}} + + maxSurfaceCubemap : int Maximum Cubemap surface dimensions - {{endif}} - {{if 'cudaDeviceProp.maxSurfaceCubemapLayered' in found_struct}} + + maxSurfaceCubemapLayered : list[int] Maximum Cubemap layered surface dimensions - {{endif}} - {{if 'cudaDeviceProp.surfaceAlignment' in found_struct}} + + surfaceAlignment : size_t Alignment requirements for surfaces - {{endif}} - {{if 'cudaDeviceProp.concurrentKernels' in found_struct}} + + concurrentKernels : int Device can possibly execute multiple kernels concurrently - {{endif}} - {{if 'cudaDeviceProp.ECCEnabled' in found_struct}} + + ECCEnabled : int Device has ECC support enabled - {{endif}} - {{if 'cudaDeviceProp.pciBusID' in found_struct}} + + pciBusID : int PCI bus ID of the device - {{endif}} - {{if 'cudaDeviceProp.pciDeviceID' in found_struct}} + + pciDeviceID : int PCI device ID of the device - {{endif}} - {{if 'cudaDeviceProp.pciDomainID' in found_struct}} + + pciDomainID : int PCI domain ID of the device - {{endif}} - {{if 'cudaDeviceProp.tccDriver' in found_struct}} + + tccDriver : int 1 if device is a Tesla device using TCC driver, 0 otherwise - {{endif}} - {{if 'cudaDeviceProp.asyncEngineCount' in found_struct}} + + asyncEngineCount : int Number of asynchronous engines - {{endif}} - {{if 'cudaDeviceProp.unifiedAddressing' in found_struct}} + + unifiedAddressing : int Device shares a unified address space with the host - {{endif}} - {{if 'cudaDeviceProp.memoryClockRate' in found_struct}} + + memoryClockRate : int Deprecated, Peak memory clock frequency in kilohertz - {{endif}} - {{if 'cudaDeviceProp.memoryBusWidth' in found_struct}} + + memoryBusWidth : int Global memory bus width in bits - {{endif}} - {{if 'cudaDeviceProp.l2CacheSize' in found_struct}} + + l2CacheSize : int Size of L2 cache in bytes - {{endif}} - {{if 'cudaDeviceProp.persistingL2CacheMaxSize' in found_struct}} + + persistingL2CacheMaxSize : int Device's maximum l2 persisting lines capacity setting in bytes - {{endif}} - {{if 'cudaDeviceProp.maxThreadsPerMultiProcessor' in found_struct}} + + maxThreadsPerMultiProcessor : int Maximum resident threads per multiprocessor - {{endif}} - {{if 'cudaDeviceProp.streamPrioritiesSupported' in found_struct}} + + streamPrioritiesSupported : int Device supports stream priorities - {{endif}} - {{if 'cudaDeviceProp.globalL1CacheSupported' in found_struct}} + + globalL1CacheSupported : int Device supports caching globals in L1 - {{endif}} - {{if 'cudaDeviceProp.localL1CacheSupported' in found_struct}} + + localL1CacheSupported : int Device supports caching locals in L1 - {{endif}} - {{if 'cudaDeviceProp.sharedMemPerMultiprocessor' in found_struct}} + + sharedMemPerMultiprocessor : size_t Shared memory available per multiprocessor in bytes - {{endif}} - {{if 'cudaDeviceProp.regsPerMultiprocessor' in found_struct}} + + regsPerMultiprocessor : int 32-bit registers available per multiprocessor - {{endif}} - {{if 'cudaDeviceProp.managedMemory' in found_struct}} + + managedMemory : int Device supports allocating managed memory on this system - {{endif}} - {{if 'cudaDeviceProp.isMultiGpuBoard' in found_struct}} + + isMultiGpuBoard : int Device is on a multi-GPU board - {{endif}} - {{if 'cudaDeviceProp.multiGpuBoardGroupID' in found_struct}} + + multiGpuBoardGroupID : int Unique identifier for a group of devices on the same multi-GPU board - {{endif}} - {{if 'cudaDeviceProp.hostNativeAtomicSupported' in found_struct}} + + hostNativeAtomicSupported : int Link between the device and the host supports native atomic operations - {{endif}} - {{if 'cudaDeviceProp.singleToDoublePrecisionPerfRatio' in found_struct}} + + singleToDoublePrecisionPerfRatio : int Deprecated, Ratio of single precision performance (in floating- point operations per second) to double precision performance - {{endif}} - {{if 'cudaDeviceProp.pageableMemoryAccess' in found_struct}} + + pageableMemoryAccess : int Device supports coherently accessing pageable memory without calling cudaHostRegister on it - {{endif}} - {{if 'cudaDeviceProp.concurrentManagedAccess' in found_struct}} + + concurrentManagedAccess : int Device can coherently access managed memory concurrently with the CPU - {{endif}} - {{if 'cudaDeviceProp.computePreemptionSupported' in found_struct}} + + computePreemptionSupported : int Device supports Compute Preemption - {{endif}} - {{if 'cudaDeviceProp.canUseHostPointerForRegisteredMem' in found_struct}} + + canUseHostPointerForRegisteredMem : int Device can access host registered memory at the same virtual address as the CPU - {{endif}} - {{if 'cudaDeviceProp.cooperativeLaunch' in found_struct}} + + cooperativeLaunch : int Device supports launching cooperative kernels via cudaLaunchCooperativeKernel - {{endif}} - {{if 'cudaDeviceProp.cooperativeMultiDeviceLaunch' in found_struct}} + + cooperativeMultiDeviceLaunch : int Deprecated, cudaLaunchCooperativeKernelMultiDevice is deprecated. - {{endif}} - {{if 'cudaDeviceProp.sharedMemPerBlockOptin' in found_struct}} + + sharedMemPerBlockOptin : size_t Per device maximum shared memory per block usable by special opt in - {{endif}} - {{if 'cudaDeviceProp.pageableMemoryAccessUsesHostPageTables' in found_struct}} + + pageableMemoryAccessUsesHostPageTables : int Device accesses pageable memory via the host's page tables - {{endif}} - {{if 'cudaDeviceProp.directManagedMemAccessFromHost' in found_struct}} + + directManagedMemAccessFromHost : int Host can directly access managed memory on the device without migration. - {{endif}} - {{if 'cudaDeviceProp.maxBlocksPerMultiProcessor' in found_struct}} + + maxBlocksPerMultiProcessor : int Maximum number of resident blocks per multiprocessor - {{endif}} - {{if 'cudaDeviceProp.accessPolicyMaxWindowSize' in found_struct}} + + accessPolicyMaxWindowSize : int The maximum value of cudaAccessPolicyWindow::num_bytes. - {{endif}} - {{if 'cudaDeviceProp.reservedSharedMemPerBlock' in found_struct}} + + reservedSharedMemPerBlock : size_t Shared memory reserved by CUDA driver per block in bytes - {{endif}} - {{if 'cudaDeviceProp.hostRegisterSupported' in found_struct}} + + hostRegisterSupported : int Device supports host memory registration via cudaHostRegister. - {{endif}} - {{if 'cudaDeviceProp.sparseCudaArraySupported' in found_struct}} + + sparseCudaArraySupported : int 1 if the device supports sparse CUDA arrays and sparse CUDA mipmapped arrays, 0 otherwise - {{endif}} - {{if 'cudaDeviceProp.hostRegisterReadOnlySupported' in found_struct}} + + hostRegisterReadOnlySupported : int Device supports using the cudaHostRegister flag cudaHostRegisterReadOnly to register memory that must be mapped as read-only to the GPU - {{endif}} - {{if 'cudaDeviceProp.timelineSemaphoreInteropSupported' in found_struct}} + + timelineSemaphoreInteropSupported : int External timeline semaphore interop is supported on the device - {{endif}} - {{if 'cudaDeviceProp.memoryPoolsSupported' in found_struct}} + + memoryPoolsSupported : int 1 if the device supports using the cudaMallocAsync and cudaMemPool family of APIs, 0 otherwise - {{endif}} - {{if 'cudaDeviceProp.gpuDirectRDMASupported' in found_struct}} + + gpuDirectRDMASupported : int 1 if the device supports GPUDirect RDMA APIs, 0 otherwise - {{endif}} - {{if 'cudaDeviceProp.gpuDirectRDMAFlushWritesOptions' in found_struct}} + + gpuDirectRDMAFlushWritesOptions : unsigned int Bitmask to be interpreted according to the cudaFlushGPUDirectRDMAWritesOptions enum - {{endif}} - {{if 'cudaDeviceProp.gpuDirectRDMAWritesOrdering' in found_struct}} + + gpuDirectRDMAWritesOrdering : int See the cudaGPUDirectRDMAWritesOrdering enum for numerical values - {{endif}} - {{if 'cudaDeviceProp.memoryPoolSupportedHandleTypes' in found_struct}} + + memoryPoolSupportedHandleTypes : unsigned int Bitmask of handle types supported with mempool-based IPC - {{endif}} - {{if 'cudaDeviceProp.deferredMappingCudaArraySupported' in found_struct}} + + deferredMappingCudaArraySupported : int 1 if the device supports deferred mapping CUDA arrays and CUDA mipmapped arrays - {{endif}} - {{if 'cudaDeviceProp.ipcEventSupported' in found_struct}} + + ipcEventSupported : int Device supports IPC Events. - {{endif}} - {{if 'cudaDeviceProp.clusterLaunch' in found_struct}} + + clusterLaunch : int Indicates device supports cluster launch - {{endif}} - {{if 'cudaDeviceProp.unifiedFunctionPointers' in found_struct}} + + unifiedFunctionPointers : int Indicates device supports unified pointers - {{endif}} - {{if 'cudaDeviceProp.reserved' in found_struct}} - reserved : list[int] - Reserved for future use - {{endif}} + Methods ------- @@ -11986,585 +11452,577 @@ cdef class cudaDeviceProp: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaDeviceProp.uuid' in found_struct}} self._uuid = cudaUUID_t(_ptr=&self._pvt_ptr[0].uuid) - {{endif}} + self._uuid._owner = self def __dealloc__(self): - pass + self._uuid = None def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaDeviceProp.name' in found_struct}} + try: str_list += ['name : ' + self.name.decode('utf-8')] except ValueError: str_list += ['name : '] - {{endif}} - {{if 'cudaDeviceProp.uuid' in found_struct}} + + try: str_list += ['uuid :\n' + '\n'.join([' ' + line for line in str(self.uuid).splitlines()])] except ValueError: str_list += ['uuid : '] - {{endif}} - {{if 'cudaDeviceProp.luid' in found_struct}} + + try: str_list += ['luid : ' + self.luid.hex()] except ValueError: str_list += ['luid : '] - {{endif}} - {{if 'cudaDeviceProp.luidDeviceNodeMask' in found_struct}} + + try: str_list += ['luidDeviceNodeMask : ' + str(self.luidDeviceNodeMask)] except ValueError: str_list += ['luidDeviceNodeMask : '] - {{endif}} - {{if 'cudaDeviceProp.totalGlobalMem' in found_struct}} + + try: str_list += ['totalGlobalMem : ' + str(self.totalGlobalMem)] except ValueError: str_list += ['totalGlobalMem : '] - {{endif}} - {{if 'cudaDeviceProp.sharedMemPerBlock' in found_struct}} + + try: str_list += ['sharedMemPerBlock : ' + str(self.sharedMemPerBlock)] except ValueError: str_list += ['sharedMemPerBlock : '] - {{endif}} - {{if 'cudaDeviceProp.regsPerBlock' in found_struct}} + + try: str_list += ['regsPerBlock : ' + str(self.regsPerBlock)] except ValueError: str_list += ['regsPerBlock : '] - {{endif}} - {{if 'cudaDeviceProp.warpSize' in found_struct}} + + try: str_list += ['warpSize : ' + str(self.warpSize)] except ValueError: str_list += ['warpSize : '] - {{endif}} - {{if 'cudaDeviceProp.memPitch' in found_struct}} + + try: str_list += ['memPitch : ' + str(self.memPitch)] except ValueError: str_list += ['memPitch : '] - {{endif}} - {{if 'cudaDeviceProp.maxThreadsPerBlock' in found_struct}} + + try: str_list += ['maxThreadsPerBlock : ' + str(self.maxThreadsPerBlock)] except ValueError: str_list += ['maxThreadsPerBlock : '] - {{endif}} - {{if 'cudaDeviceProp.maxThreadsDim' in found_struct}} + + try: str_list += ['maxThreadsDim : ' + str(self.maxThreadsDim)] except ValueError: str_list += ['maxThreadsDim : '] - {{endif}} - {{if 'cudaDeviceProp.maxGridSize' in found_struct}} + + try: str_list += ['maxGridSize : ' + str(self.maxGridSize)] except ValueError: str_list += ['maxGridSize : '] - {{endif}} - {{if 'cudaDeviceProp.clockRate' in found_struct}} + + try: str_list += ['clockRate : ' + str(self.clockRate)] except ValueError: str_list += ['clockRate : '] - {{endif}} - {{if 'cudaDeviceProp.totalConstMem' in found_struct}} + + try: str_list += ['totalConstMem : ' + str(self.totalConstMem)] except ValueError: str_list += ['totalConstMem : '] - {{endif}} - {{if 'cudaDeviceProp.major' in found_struct}} + + try: str_list += ['major : ' + str(self.major)] except ValueError: str_list += ['major : '] - {{endif}} - {{if 'cudaDeviceProp.minor' in found_struct}} + + try: str_list += ['minor : ' + str(self.minor)] except ValueError: str_list += ['minor : '] - {{endif}} - {{if 'cudaDeviceProp.textureAlignment' in found_struct}} + + try: str_list += ['textureAlignment : ' + str(self.textureAlignment)] except ValueError: str_list += ['textureAlignment : '] - {{endif}} - {{if 'cudaDeviceProp.texturePitchAlignment' in found_struct}} + + try: str_list += ['texturePitchAlignment : ' + str(self.texturePitchAlignment)] except ValueError: str_list += ['texturePitchAlignment : '] - {{endif}} - {{if 'cudaDeviceProp.deviceOverlap' in found_struct}} + + try: str_list += ['deviceOverlap : ' + str(self.deviceOverlap)] except ValueError: str_list += ['deviceOverlap : '] - {{endif}} - {{if 'cudaDeviceProp.multiProcessorCount' in found_struct}} + + try: str_list += ['multiProcessorCount : ' + str(self.multiProcessorCount)] except ValueError: str_list += ['multiProcessorCount : '] - {{endif}} - {{if 'cudaDeviceProp.kernelExecTimeoutEnabled' in found_struct}} + + try: str_list += ['kernelExecTimeoutEnabled : ' + str(self.kernelExecTimeoutEnabled)] except ValueError: str_list += ['kernelExecTimeoutEnabled : '] - {{endif}} - {{if 'cudaDeviceProp.integrated' in found_struct}} + + try: str_list += ['integrated : ' + str(self.integrated)] except ValueError: str_list += ['integrated : '] - {{endif}} - {{if 'cudaDeviceProp.canMapHostMemory' in found_struct}} + + try: str_list += ['canMapHostMemory : ' + str(self.canMapHostMemory)] except ValueError: str_list += ['canMapHostMemory : '] - {{endif}} - {{if 'cudaDeviceProp.computeMode' in found_struct}} + + try: str_list += ['computeMode : ' + str(self.computeMode)] except ValueError: str_list += ['computeMode : '] - {{endif}} - {{if 'cudaDeviceProp.maxTexture1D' in found_struct}} + + try: str_list += ['maxTexture1D : ' + str(self.maxTexture1D)] except ValueError: str_list += ['maxTexture1D : '] - {{endif}} - {{if 'cudaDeviceProp.maxTexture1DMipmap' in found_struct}} + + try: str_list += ['maxTexture1DMipmap : ' + str(self.maxTexture1DMipmap)] except ValueError: str_list += ['maxTexture1DMipmap : '] - {{endif}} - {{if 'cudaDeviceProp.maxTexture1DLinear' in found_struct}} + + try: str_list += ['maxTexture1DLinear : ' + str(self.maxTexture1DLinear)] except ValueError: str_list += ['maxTexture1DLinear : '] - {{endif}} - {{if 'cudaDeviceProp.maxTexture2D' in found_struct}} + + try: str_list += ['maxTexture2D : ' + str(self.maxTexture2D)] except ValueError: str_list += ['maxTexture2D : '] - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DMipmap' in found_struct}} + + try: str_list += ['maxTexture2DMipmap : ' + str(self.maxTexture2DMipmap)] except ValueError: str_list += ['maxTexture2DMipmap : '] - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DLinear' in found_struct}} + + try: str_list += ['maxTexture2DLinear : ' + str(self.maxTexture2DLinear)] except ValueError: str_list += ['maxTexture2DLinear : '] - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DGather' in found_struct}} + + try: str_list += ['maxTexture2DGather : ' + str(self.maxTexture2DGather)] except ValueError: str_list += ['maxTexture2DGather : '] - {{endif}} - {{if 'cudaDeviceProp.maxTexture3D' in found_struct}} + + try: str_list += ['maxTexture3D : ' + str(self.maxTexture3D)] except ValueError: str_list += ['maxTexture3D : '] - {{endif}} - {{if 'cudaDeviceProp.maxTexture3DAlt' in found_struct}} + + try: str_list += ['maxTexture3DAlt : ' + str(self.maxTexture3DAlt)] except ValueError: str_list += ['maxTexture3DAlt : '] - {{endif}} - {{if 'cudaDeviceProp.maxTextureCubemap' in found_struct}} + + try: str_list += ['maxTextureCubemap : ' + str(self.maxTextureCubemap)] except ValueError: str_list += ['maxTextureCubemap : '] - {{endif}} - {{if 'cudaDeviceProp.maxTexture1DLayered' in found_struct}} + + try: str_list += ['maxTexture1DLayered : ' + str(self.maxTexture1DLayered)] except ValueError: str_list += ['maxTexture1DLayered : '] - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DLayered' in found_struct}} + + try: str_list += ['maxTexture2DLayered : ' + str(self.maxTexture2DLayered)] except ValueError: str_list += ['maxTexture2DLayered : '] - {{endif}} - {{if 'cudaDeviceProp.maxTextureCubemapLayered' in found_struct}} + + try: str_list += ['maxTextureCubemapLayered : ' + str(self.maxTextureCubemapLayered)] except ValueError: str_list += ['maxTextureCubemapLayered : '] - {{endif}} - {{if 'cudaDeviceProp.maxSurface1D' in found_struct}} + + try: str_list += ['maxSurface1D : ' + str(self.maxSurface1D)] except ValueError: str_list += ['maxSurface1D : '] - {{endif}} - {{if 'cudaDeviceProp.maxSurface2D' in found_struct}} + + try: str_list += ['maxSurface2D : ' + str(self.maxSurface2D)] except ValueError: str_list += ['maxSurface2D : '] - {{endif}} - {{if 'cudaDeviceProp.maxSurface3D' in found_struct}} + + try: str_list += ['maxSurface3D : ' + str(self.maxSurface3D)] except ValueError: str_list += ['maxSurface3D : '] - {{endif}} - {{if 'cudaDeviceProp.maxSurface1DLayered' in found_struct}} + + try: str_list += ['maxSurface1DLayered : ' + str(self.maxSurface1DLayered)] except ValueError: str_list += ['maxSurface1DLayered : '] - {{endif}} - {{if 'cudaDeviceProp.maxSurface2DLayered' in found_struct}} + + try: str_list += ['maxSurface2DLayered : ' + str(self.maxSurface2DLayered)] except ValueError: str_list += ['maxSurface2DLayered : '] - {{endif}} - {{if 'cudaDeviceProp.maxSurfaceCubemap' in found_struct}} + + try: str_list += ['maxSurfaceCubemap : ' + str(self.maxSurfaceCubemap)] except ValueError: str_list += ['maxSurfaceCubemap : '] - {{endif}} - {{if 'cudaDeviceProp.maxSurfaceCubemapLayered' in found_struct}} + + try: str_list += ['maxSurfaceCubemapLayered : ' + str(self.maxSurfaceCubemapLayered)] except ValueError: str_list += ['maxSurfaceCubemapLayered : '] - {{endif}} - {{if 'cudaDeviceProp.surfaceAlignment' in found_struct}} + + try: str_list += ['surfaceAlignment : ' + str(self.surfaceAlignment)] except ValueError: str_list += ['surfaceAlignment : '] - {{endif}} - {{if 'cudaDeviceProp.concurrentKernels' in found_struct}} + + try: str_list += ['concurrentKernels : ' + str(self.concurrentKernels)] except ValueError: str_list += ['concurrentKernels : '] - {{endif}} - {{if 'cudaDeviceProp.ECCEnabled' in found_struct}} + + try: str_list += ['ECCEnabled : ' + str(self.ECCEnabled)] except ValueError: str_list += ['ECCEnabled : '] - {{endif}} - {{if 'cudaDeviceProp.pciBusID' in found_struct}} + + try: str_list += ['pciBusID : ' + str(self.pciBusID)] except ValueError: str_list += ['pciBusID : '] - {{endif}} - {{if 'cudaDeviceProp.pciDeviceID' in found_struct}} + + try: str_list += ['pciDeviceID : ' + str(self.pciDeviceID)] except ValueError: str_list += ['pciDeviceID : '] - {{endif}} - {{if 'cudaDeviceProp.pciDomainID' in found_struct}} + + try: str_list += ['pciDomainID : ' + str(self.pciDomainID)] except ValueError: str_list += ['pciDomainID : '] - {{endif}} - {{if 'cudaDeviceProp.tccDriver' in found_struct}} + + try: str_list += ['tccDriver : ' + str(self.tccDriver)] except ValueError: str_list += ['tccDriver : '] - {{endif}} - {{if 'cudaDeviceProp.asyncEngineCount' in found_struct}} + + try: str_list += ['asyncEngineCount : ' + str(self.asyncEngineCount)] except ValueError: str_list += ['asyncEngineCount : '] - {{endif}} - {{if 'cudaDeviceProp.unifiedAddressing' in found_struct}} + + try: str_list += ['unifiedAddressing : ' + str(self.unifiedAddressing)] except ValueError: str_list += ['unifiedAddressing : '] - {{endif}} - {{if 'cudaDeviceProp.memoryClockRate' in found_struct}} + + try: str_list += ['memoryClockRate : ' + str(self.memoryClockRate)] except ValueError: str_list += ['memoryClockRate : '] - {{endif}} - {{if 'cudaDeviceProp.memoryBusWidth' in found_struct}} + + try: str_list += ['memoryBusWidth : ' + str(self.memoryBusWidth)] except ValueError: str_list += ['memoryBusWidth : '] - {{endif}} - {{if 'cudaDeviceProp.l2CacheSize' in found_struct}} + + try: str_list += ['l2CacheSize : ' + str(self.l2CacheSize)] except ValueError: str_list += ['l2CacheSize : '] - {{endif}} - {{if 'cudaDeviceProp.persistingL2CacheMaxSize' in found_struct}} + + try: str_list += ['persistingL2CacheMaxSize : ' + str(self.persistingL2CacheMaxSize)] except ValueError: str_list += ['persistingL2CacheMaxSize : '] - {{endif}} - {{if 'cudaDeviceProp.maxThreadsPerMultiProcessor' in found_struct}} + + try: str_list += ['maxThreadsPerMultiProcessor : ' + str(self.maxThreadsPerMultiProcessor)] except ValueError: str_list += ['maxThreadsPerMultiProcessor : '] - {{endif}} - {{if 'cudaDeviceProp.streamPrioritiesSupported' in found_struct}} + + try: str_list += ['streamPrioritiesSupported : ' + str(self.streamPrioritiesSupported)] except ValueError: str_list += ['streamPrioritiesSupported : '] - {{endif}} - {{if 'cudaDeviceProp.globalL1CacheSupported' in found_struct}} + + try: str_list += ['globalL1CacheSupported : ' + str(self.globalL1CacheSupported)] except ValueError: str_list += ['globalL1CacheSupported : '] - {{endif}} - {{if 'cudaDeviceProp.localL1CacheSupported' in found_struct}} + + try: str_list += ['localL1CacheSupported : ' + str(self.localL1CacheSupported)] except ValueError: str_list += ['localL1CacheSupported : '] - {{endif}} - {{if 'cudaDeviceProp.sharedMemPerMultiprocessor' in found_struct}} + + try: str_list += ['sharedMemPerMultiprocessor : ' + str(self.sharedMemPerMultiprocessor)] except ValueError: str_list += ['sharedMemPerMultiprocessor : '] - {{endif}} - {{if 'cudaDeviceProp.regsPerMultiprocessor' in found_struct}} + + try: str_list += ['regsPerMultiprocessor : ' + str(self.regsPerMultiprocessor)] except ValueError: str_list += ['regsPerMultiprocessor : '] - {{endif}} - {{if 'cudaDeviceProp.managedMemory' in found_struct}} + + try: str_list += ['managedMemory : ' + str(self.managedMemory)] except ValueError: str_list += ['managedMemory : '] - {{endif}} - {{if 'cudaDeviceProp.isMultiGpuBoard' in found_struct}} + + try: str_list += ['isMultiGpuBoard : ' + str(self.isMultiGpuBoard)] except ValueError: str_list += ['isMultiGpuBoard : '] - {{endif}} - {{if 'cudaDeviceProp.multiGpuBoardGroupID' in found_struct}} + + try: str_list += ['multiGpuBoardGroupID : ' + str(self.multiGpuBoardGroupID)] except ValueError: str_list += ['multiGpuBoardGroupID : '] - {{endif}} - {{if 'cudaDeviceProp.hostNativeAtomicSupported' in found_struct}} + + try: str_list += ['hostNativeAtomicSupported : ' + str(self.hostNativeAtomicSupported)] except ValueError: str_list += ['hostNativeAtomicSupported : '] - {{endif}} - {{if 'cudaDeviceProp.singleToDoublePrecisionPerfRatio' in found_struct}} + + try: str_list += ['singleToDoublePrecisionPerfRatio : ' + str(self.singleToDoublePrecisionPerfRatio)] except ValueError: str_list += ['singleToDoublePrecisionPerfRatio : '] - {{endif}} - {{if 'cudaDeviceProp.pageableMemoryAccess' in found_struct}} + + try: str_list += ['pageableMemoryAccess : ' + str(self.pageableMemoryAccess)] except ValueError: str_list += ['pageableMemoryAccess : '] - {{endif}} - {{if 'cudaDeviceProp.concurrentManagedAccess' in found_struct}} + + try: str_list += ['concurrentManagedAccess : ' + str(self.concurrentManagedAccess)] except ValueError: str_list += ['concurrentManagedAccess : '] - {{endif}} - {{if 'cudaDeviceProp.computePreemptionSupported' in found_struct}} + + try: str_list += ['computePreemptionSupported : ' + str(self.computePreemptionSupported)] except ValueError: str_list += ['computePreemptionSupported : '] - {{endif}} - {{if 'cudaDeviceProp.canUseHostPointerForRegisteredMem' in found_struct}} + + try: str_list += ['canUseHostPointerForRegisteredMem : ' + str(self.canUseHostPointerForRegisteredMem)] except ValueError: str_list += ['canUseHostPointerForRegisteredMem : '] - {{endif}} - {{if 'cudaDeviceProp.cooperativeLaunch' in found_struct}} + + try: str_list += ['cooperativeLaunch : ' + str(self.cooperativeLaunch)] except ValueError: str_list += ['cooperativeLaunch : '] - {{endif}} - {{if 'cudaDeviceProp.cooperativeMultiDeviceLaunch' in found_struct}} + + try: str_list += ['cooperativeMultiDeviceLaunch : ' + str(self.cooperativeMultiDeviceLaunch)] except ValueError: str_list += ['cooperativeMultiDeviceLaunch : '] - {{endif}} - {{if 'cudaDeviceProp.sharedMemPerBlockOptin' in found_struct}} + + try: str_list += ['sharedMemPerBlockOptin : ' + str(self.sharedMemPerBlockOptin)] except ValueError: str_list += ['sharedMemPerBlockOptin : '] - {{endif}} - {{if 'cudaDeviceProp.pageableMemoryAccessUsesHostPageTables' in found_struct}} + + try: str_list += ['pageableMemoryAccessUsesHostPageTables : ' + str(self.pageableMemoryAccessUsesHostPageTables)] except ValueError: str_list += ['pageableMemoryAccessUsesHostPageTables : '] - {{endif}} - {{if 'cudaDeviceProp.directManagedMemAccessFromHost' in found_struct}} + + try: str_list += ['directManagedMemAccessFromHost : ' + str(self.directManagedMemAccessFromHost)] except ValueError: str_list += ['directManagedMemAccessFromHost : '] - {{endif}} - {{if 'cudaDeviceProp.maxBlocksPerMultiProcessor' in found_struct}} + + try: str_list += ['maxBlocksPerMultiProcessor : ' + str(self.maxBlocksPerMultiProcessor)] except ValueError: str_list += ['maxBlocksPerMultiProcessor : '] - {{endif}} - {{if 'cudaDeviceProp.accessPolicyMaxWindowSize' in found_struct}} + + try: str_list += ['accessPolicyMaxWindowSize : ' + str(self.accessPolicyMaxWindowSize)] except ValueError: str_list += ['accessPolicyMaxWindowSize : '] - {{endif}} - {{if 'cudaDeviceProp.reservedSharedMemPerBlock' in found_struct}} + + try: str_list += ['reservedSharedMemPerBlock : ' + str(self.reservedSharedMemPerBlock)] except ValueError: str_list += ['reservedSharedMemPerBlock : '] - {{endif}} - {{if 'cudaDeviceProp.hostRegisterSupported' in found_struct}} + + try: str_list += ['hostRegisterSupported : ' + str(self.hostRegisterSupported)] except ValueError: str_list += ['hostRegisterSupported : '] - {{endif}} - {{if 'cudaDeviceProp.sparseCudaArraySupported' in found_struct}} + + try: str_list += ['sparseCudaArraySupported : ' + str(self.sparseCudaArraySupported)] except ValueError: str_list += ['sparseCudaArraySupported : '] - {{endif}} - {{if 'cudaDeviceProp.hostRegisterReadOnlySupported' in found_struct}} + + try: str_list += ['hostRegisterReadOnlySupported : ' + str(self.hostRegisterReadOnlySupported)] except ValueError: str_list += ['hostRegisterReadOnlySupported : '] - {{endif}} - {{if 'cudaDeviceProp.timelineSemaphoreInteropSupported' in found_struct}} + + try: str_list += ['timelineSemaphoreInteropSupported : ' + str(self.timelineSemaphoreInteropSupported)] except ValueError: str_list += ['timelineSemaphoreInteropSupported : '] - {{endif}} - {{if 'cudaDeviceProp.memoryPoolsSupported' in found_struct}} + + try: str_list += ['memoryPoolsSupported : ' + str(self.memoryPoolsSupported)] except ValueError: str_list += ['memoryPoolsSupported : '] - {{endif}} - {{if 'cudaDeviceProp.gpuDirectRDMASupported' in found_struct}} + + try: str_list += ['gpuDirectRDMASupported : ' + str(self.gpuDirectRDMASupported)] except ValueError: str_list += ['gpuDirectRDMASupported : '] - {{endif}} - {{if 'cudaDeviceProp.gpuDirectRDMAFlushWritesOptions' in found_struct}} + + try: str_list += ['gpuDirectRDMAFlushWritesOptions : ' + str(self.gpuDirectRDMAFlushWritesOptions)] except ValueError: str_list += ['gpuDirectRDMAFlushWritesOptions : '] - {{endif}} - {{if 'cudaDeviceProp.gpuDirectRDMAWritesOrdering' in found_struct}} + + try: str_list += ['gpuDirectRDMAWritesOrdering : ' + str(self.gpuDirectRDMAWritesOrdering)] except ValueError: str_list += ['gpuDirectRDMAWritesOrdering : '] - {{endif}} - {{if 'cudaDeviceProp.memoryPoolSupportedHandleTypes' in found_struct}} + + try: str_list += ['memoryPoolSupportedHandleTypes : ' + str(self.memoryPoolSupportedHandleTypes)] except ValueError: str_list += ['memoryPoolSupportedHandleTypes : '] - {{endif}} - {{if 'cudaDeviceProp.deferredMappingCudaArraySupported' in found_struct}} + + try: str_list += ['deferredMappingCudaArraySupported : ' + str(self.deferredMappingCudaArraySupported)] except ValueError: str_list += ['deferredMappingCudaArraySupported : '] - {{endif}} - {{if 'cudaDeviceProp.ipcEventSupported' in found_struct}} + + try: str_list += ['ipcEventSupported : ' + str(self.ipcEventSupported)] except ValueError: str_list += ['ipcEventSupported : '] - {{endif}} - {{if 'cudaDeviceProp.clusterLaunch' in found_struct}} + + try: str_list += ['clusterLaunch : ' + str(self.clusterLaunch)] except ValueError: str_list += ['clusterLaunch : '] - {{endif}} - {{if 'cudaDeviceProp.unifiedFunctionPointers' in found_struct}} + + try: str_list += ['unifiedFunctionPointers : ' + str(self.unifiedFunctionPointers)] except ValueError: str_list += ['unifiedFunctionPointers : '] - {{endif}} - {{if 'cudaDeviceProp.reserved' in found_struct}} - try: - str_list += ['reserved : ' + str(self.reserved)] - except ValueError: - str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaDeviceProp.name' in found_struct}} + @property def name(self): return self._pvt_ptr[0].name @@ -12572,16 +12030,16 @@ cdef class cudaDeviceProp: def name(self, name): pass self._pvt_ptr[0].name = name - {{endif}} - {{if 'cudaDeviceProp.uuid' in found_struct}} + + @property def uuid(self): return self._uuid @uuid.setter def uuid(self, uuid not None : cudaUUID_t): string.memcpy(&self._pvt_ptr[0].uuid, uuid.getPtr(), sizeof(self._pvt_ptr[0].uuid)) - {{endif}} - {{if 'cudaDeviceProp.luid' in found_struct}} + + @property def luid(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0].luid, 8) @@ -12599,749 +12057,732 @@ cdef class cudaDeviceProp: if b > 127 and b < 256: b = b - 256 self._pvt_ptr[0].luid[i] = b - {{endif}} - {{if 'cudaDeviceProp.luidDeviceNodeMask' in found_struct}} + + @property def luidDeviceNodeMask(self): return self._pvt_ptr[0].luidDeviceNodeMask @luidDeviceNodeMask.setter def luidDeviceNodeMask(self, unsigned int luidDeviceNodeMask): self._pvt_ptr[0].luidDeviceNodeMask = luidDeviceNodeMask - {{endif}} - {{if 'cudaDeviceProp.totalGlobalMem' in found_struct}} + + @property def totalGlobalMem(self): return self._pvt_ptr[0].totalGlobalMem @totalGlobalMem.setter def totalGlobalMem(self, size_t totalGlobalMem): self._pvt_ptr[0].totalGlobalMem = totalGlobalMem - {{endif}} - {{if 'cudaDeviceProp.sharedMemPerBlock' in found_struct}} + + @property def sharedMemPerBlock(self): return self._pvt_ptr[0].sharedMemPerBlock @sharedMemPerBlock.setter def sharedMemPerBlock(self, size_t sharedMemPerBlock): self._pvt_ptr[0].sharedMemPerBlock = sharedMemPerBlock - {{endif}} - {{if 'cudaDeviceProp.regsPerBlock' in found_struct}} + + @property def regsPerBlock(self): return self._pvt_ptr[0].regsPerBlock @regsPerBlock.setter def regsPerBlock(self, int regsPerBlock): self._pvt_ptr[0].regsPerBlock = regsPerBlock - {{endif}} - {{if 'cudaDeviceProp.warpSize' in found_struct}} + + @property def warpSize(self): return self._pvt_ptr[0].warpSize @warpSize.setter def warpSize(self, int warpSize): self._pvt_ptr[0].warpSize = warpSize - {{endif}} - {{if 'cudaDeviceProp.memPitch' in found_struct}} + + @property def memPitch(self): return self._pvt_ptr[0].memPitch @memPitch.setter def memPitch(self, size_t memPitch): self._pvt_ptr[0].memPitch = memPitch - {{endif}} - {{if 'cudaDeviceProp.maxThreadsPerBlock' in found_struct}} + + @property def maxThreadsPerBlock(self): return self._pvt_ptr[0].maxThreadsPerBlock @maxThreadsPerBlock.setter def maxThreadsPerBlock(self, int maxThreadsPerBlock): self._pvt_ptr[0].maxThreadsPerBlock = maxThreadsPerBlock - {{endif}} - {{if 'cudaDeviceProp.maxThreadsDim' in found_struct}} + + @property def maxThreadsDim(self): return self._pvt_ptr[0].maxThreadsDim @maxThreadsDim.setter def maxThreadsDim(self, maxThreadsDim): self._pvt_ptr[0].maxThreadsDim = maxThreadsDim - {{endif}} - {{if 'cudaDeviceProp.maxGridSize' in found_struct}} + + @property def maxGridSize(self): return self._pvt_ptr[0].maxGridSize @maxGridSize.setter def maxGridSize(self, maxGridSize): self._pvt_ptr[0].maxGridSize = maxGridSize - {{endif}} - {{if 'cudaDeviceProp.clockRate' in found_struct}} + + @property def clockRate(self): return self._pvt_ptr[0].clockRate @clockRate.setter def clockRate(self, int clockRate): self._pvt_ptr[0].clockRate = clockRate - {{endif}} - {{if 'cudaDeviceProp.totalConstMem' in found_struct}} + + @property def totalConstMem(self): return self._pvt_ptr[0].totalConstMem @totalConstMem.setter def totalConstMem(self, size_t totalConstMem): self._pvt_ptr[0].totalConstMem = totalConstMem - {{endif}} - {{if 'cudaDeviceProp.major' in found_struct}} + + @property def major(self): return self._pvt_ptr[0].major @major.setter def major(self, int major): self._pvt_ptr[0].major = major - {{endif}} - {{if 'cudaDeviceProp.minor' in found_struct}} + + @property def minor(self): return self._pvt_ptr[0].minor @minor.setter def minor(self, int minor): self._pvt_ptr[0].minor = minor - {{endif}} - {{if 'cudaDeviceProp.textureAlignment' in found_struct}} + + @property def textureAlignment(self): return self._pvt_ptr[0].textureAlignment @textureAlignment.setter def textureAlignment(self, size_t textureAlignment): self._pvt_ptr[0].textureAlignment = textureAlignment - {{endif}} - {{if 'cudaDeviceProp.texturePitchAlignment' in found_struct}} + + @property def texturePitchAlignment(self): return self._pvt_ptr[0].texturePitchAlignment @texturePitchAlignment.setter def texturePitchAlignment(self, size_t texturePitchAlignment): self._pvt_ptr[0].texturePitchAlignment = texturePitchAlignment - {{endif}} - {{if 'cudaDeviceProp.deviceOverlap' in found_struct}} + + @property def deviceOverlap(self): return self._pvt_ptr[0].deviceOverlap @deviceOverlap.setter def deviceOverlap(self, int deviceOverlap): self._pvt_ptr[0].deviceOverlap = deviceOverlap - {{endif}} - {{if 'cudaDeviceProp.multiProcessorCount' in found_struct}} + + @property def multiProcessorCount(self): return self._pvt_ptr[0].multiProcessorCount @multiProcessorCount.setter def multiProcessorCount(self, int multiProcessorCount): self._pvt_ptr[0].multiProcessorCount = multiProcessorCount - {{endif}} - {{if 'cudaDeviceProp.kernelExecTimeoutEnabled' in found_struct}} + + @property def kernelExecTimeoutEnabled(self): return self._pvt_ptr[0].kernelExecTimeoutEnabled @kernelExecTimeoutEnabled.setter def kernelExecTimeoutEnabled(self, int kernelExecTimeoutEnabled): self._pvt_ptr[0].kernelExecTimeoutEnabled = kernelExecTimeoutEnabled - {{endif}} - {{if 'cudaDeviceProp.integrated' in found_struct}} + + @property def integrated(self): return self._pvt_ptr[0].integrated @integrated.setter def integrated(self, int integrated): self._pvt_ptr[0].integrated = integrated - {{endif}} - {{if 'cudaDeviceProp.canMapHostMemory' in found_struct}} + + @property def canMapHostMemory(self): return self._pvt_ptr[0].canMapHostMemory @canMapHostMemory.setter def canMapHostMemory(self, int canMapHostMemory): self._pvt_ptr[0].canMapHostMemory = canMapHostMemory - {{endif}} - {{if 'cudaDeviceProp.computeMode' in found_struct}} + + @property def computeMode(self): return self._pvt_ptr[0].computeMode @computeMode.setter def computeMode(self, int computeMode): self._pvt_ptr[0].computeMode = computeMode - {{endif}} - {{if 'cudaDeviceProp.maxTexture1D' in found_struct}} + + @property def maxTexture1D(self): return self._pvt_ptr[0].maxTexture1D @maxTexture1D.setter def maxTexture1D(self, int maxTexture1D): self._pvt_ptr[0].maxTexture1D = maxTexture1D - {{endif}} - {{if 'cudaDeviceProp.maxTexture1DMipmap' in found_struct}} + + @property def maxTexture1DMipmap(self): return self._pvt_ptr[0].maxTexture1DMipmap @maxTexture1DMipmap.setter def maxTexture1DMipmap(self, int maxTexture1DMipmap): self._pvt_ptr[0].maxTexture1DMipmap = maxTexture1DMipmap - {{endif}} - {{if 'cudaDeviceProp.maxTexture1DLinear' in found_struct}} + + @property def maxTexture1DLinear(self): return self._pvt_ptr[0].maxTexture1DLinear @maxTexture1DLinear.setter def maxTexture1DLinear(self, int maxTexture1DLinear): self._pvt_ptr[0].maxTexture1DLinear = maxTexture1DLinear - {{endif}} - {{if 'cudaDeviceProp.maxTexture2D' in found_struct}} + + @property def maxTexture2D(self): return self._pvt_ptr[0].maxTexture2D @maxTexture2D.setter def maxTexture2D(self, maxTexture2D): self._pvt_ptr[0].maxTexture2D = maxTexture2D - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DMipmap' in found_struct}} + + @property def maxTexture2DMipmap(self): return self._pvt_ptr[0].maxTexture2DMipmap @maxTexture2DMipmap.setter def maxTexture2DMipmap(self, maxTexture2DMipmap): self._pvt_ptr[0].maxTexture2DMipmap = maxTexture2DMipmap - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DLinear' in found_struct}} + + @property def maxTexture2DLinear(self): return self._pvt_ptr[0].maxTexture2DLinear @maxTexture2DLinear.setter def maxTexture2DLinear(self, maxTexture2DLinear): self._pvt_ptr[0].maxTexture2DLinear = maxTexture2DLinear - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DGather' in found_struct}} + + @property def maxTexture2DGather(self): return self._pvt_ptr[0].maxTexture2DGather @maxTexture2DGather.setter def maxTexture2DGather(self, maxTexture2DGather): self._pvt_ptr[0].maxTexture2DGather = maxTexture2DGather - {{endif}} - {{if 'cudaDeviceProp.maxTexture3D' in found_struct}} + + @property def maxTexture3D(self): return self._pvt_ptr[0].maxTexture3D @maxTexture3D.setter def maxTexture3D(self, maxTexture3D): self._pvt_ptr[0].maxTexture3D = maxTexture3D - {{endif}} - {{if 'cudaDeviceProp.maxTexture3DAlt' in found_struct}} + + @property def maxTexture3DAlt(self): return self._pvt_ptr[0].maxTexture3DAlt @maxTexture3DAlt.setter def maxTexture3DAlt(self, maxTexture3DAlt): self._pvt_ptr[0].maxTexture3DAlt = maxTexture3DAlt - {{endif}} - {{if 'cudaDeviceProp.maxTextureCubemap' in found_struct}} + + @property def maxTextureCubemap(self): return self._pvt_ptr[0].maxTextureCubemap @maxTextureCubemap.setter def maxTextureCubemap(self, int maxTextureCubemap): self._pvt_ptr[0].maxTextureCubemap = maxTextureCubemap - {{endif}} - {{if 'cudaDeviceProp.maxTexture1DLayered' in found_struct}} + + @property def maxTexture1DLayered(self): return self._pvt_ptr[0].maxTexture1DLayered @maxTexture1DLayered.setter def maxTexture1DLayered(self, maxTexture1DLayered): self._pvt_ptr[0].maxTexture1DLayered = maxTexture1DLayered - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DLayered' in found_struct}} + + @property def maxTexture2DLayered(self): return self._pvt_ptr[0].maxTexture2DLayered @maxTexture2DLayered.setter def maxTexture2DLayered(self, maxTexture2DLayered): self._pvt_ptr[0].maxTexture2DLayered = maxTexture2DLayered - {{endif}} - {{if 'cudaDeviceProp.maxTextureCubemapLayered' in found_struct}} + + @property def maxTextureCubemapLayered(self): return self._pvt_ptr[0].maxTextureCubemapLayered @maxTextureCubemapLayered.setter def maxTextureCubemapLayered(self, maxTextureCubemapLayered): self._pvt_ptr[0].maxTextureCubemapLayered = maxTextureCubemapLayered - {{endif}} - {{if 'cudaDeviceProp.maxSurface1D' in found_struct}} + + @property def maxSurface1D(self): return self._pvt_ptr[0].maxSurface1D @maxSurface1D.setter def maxSurface1D(self, int maxSurface1D): self._pvt_ptr[0].maxSurface1D = maxSurface1D - {{endif}} - {{if 'cudaDeviceProp.maxSurface2D' in found_struct}} + + @property def maxSurface2D(self): return self._pvt_ptr[0].maxSurface2D @maxSurface2D.setter def maxSurface2D(self, maxSurface2D): self._pvt_ptr[0].maxSurface2D = maxSurface2D - {{endif}} - {{if 'cudaDeviceProp.maxSurface3D' in found_struct}} + + @property def maxSurface3D(self): return self._pvt_ptr[0].maxSurface3D @maxSurface3D.setter def maxSurface3D(self, maxSurface3D): self._pvt_ptr[0].maxSurface3D = maxSurface3D - {{endif}} - {{if 'cudaDeviceProp.maxSurface1DLayered' in found_struct}} + + @property def maxSurface1DLayered(self): return self._pvt_ptr[0].maxSurface1DLayered @maxSurface1DLayered.setter def maxSurface1DLayered(self, maxSurface1DLayered): self._pvt_ptr[0].maxSurface1DLayered = maxSurface1DLayered - {{endif}} - {{if 'cudaDeviceProp.maxSurface2DLayered' in found_struct}} + + @property def maxSurface2DLayered(self): return self._pvt_ptr[0].maxSurface2DLayered @maxSurface2DLayered.setter def maxSurface2DLayered(self, maxSurface2DLayered): self._pvt_ptr[0].maxSurface2DLayered = maxSurface2DLayered - {{endif}} - {{if 'cudaDeviceProp.maxSurfaceCubemap' in found_struct}} + + @property def maxSurfaceCubemap(self): return self._pvt_ptr[0].maxSurfaceCubemap @maxSurfaceCubemap.setter def maxSurfaceCubemap(self, int maxSurfaceCubemap): self._pvt_ptr[0].maxSurfaceCubemap = maxSurfaceCubemap - {{endif}} - {{if 'cudaDeviceProp.maxSurfaceCubemapLayered' in found_struct}} + + @property def maxSurfaceCubemapLayered(self): return self._pvt_ptr[0].maxSurfaceCubemapLayered @maxSurfaceCubemapLayered.setter def maxSurfaceCubemapLayered(self, maxSurfaceCubemapLayered): self._pvt_ptr[0].maxSurfaceCubemapLayered = maxSurfaceCubemapLayered - {{endif}} - {{if 'cudaDeviceProp.surfaceAlignment' in found_struct}} + + @property def surfaceAlignment(self): return self._pvt_ptr[0].surfaceAlignment @surfaceAlignment.setter def surfaceAlignment(self, size_t surfaceAlignment): self._pvt_ptr[0].surfaceAlignment = surfaceAlignment - {{endif}} - {{if 'cudaDeviceProp.concurrentKernels' in found_struct}} + + @property def concurrentKernels(self): return self._pvt_ptr[0].concurrentKernels @concurrentKernels.setter def concurrentKernels(self, int concurrentKernels): self._pvt_ptr[0].concurrentKernels = concurrentKernels - {{endif}} - {{if 'cudaDeviceProp.ECCEnabled' in found_struct}} + + @property def ECCEnabled(self): return self._pvt_ptr[0].ECCEnabled @ECCEnabled.setter def ECCEnabled(self, int ECCEnabled): self._pvt_ptr[0].ECCEnabled = ECCEnabled - {{endif}} - {{if 'cudaDeviceProp.pciBusID' in found_struct}} + + @property def pciBusID(self): return self._pvt_ptr[0].pciBusID @pciBusID.setter def pciBusID(self, int pciBusID): self._pvt_ptr[0].pciBusID = pciBusID - {{endif}} - {{if 'cudaDeviceProp.pciDeviceID' in found_struct}} + + @property def pciDeviceID(self): return self._pvt_ptr[0].pciDeviceID @pciDeviceID.setter def pciDeviceID(self, int pciDeviceID): self._pvt_ptr[0].pciDeviceID = pciDeviceID - {{endif}} - {{if 'cudaDeviceProp.pciDomainID' in found_struct}} + + @property def pciDomainID(self): return self._pvt_ptr[0].pciDomainID @pciDomainID.setter def pciDomainID(self, int pciDomainID): self._pvt_ptr[0].pciDomainID = pciDomainID - {{endif}} - {{if 'cudaDeviceProp.tccDriver' in found_struct}} + + @property def tccDriver(self): return self._pvt_ptr[0].tccDriver @tccDriver.setter def tccDriver(self, int tccDriver): self._pvt_ptr[0].tccDriver = tccDriver - {{endif}} - {{if 'cudaDeviceProp.asyncEngineCount' in found_struct}} + + @property def asyncEngineCount(self): return self._pvt_ptr[0].asyncEngineCount @asyncEngineCount.setter def asyncEngineCount(self, int asyncEngineCount): self._pvt_ptr[0].asyncEngineCount = asyncEngineCount - {{endif}} - {{if 'cudaDeviceProp.unifiedAddressing' in found_struct}} + + @property def unifiedAddressing(self): return self._pvt_ptr[0].unifiedAddressing @unifiedAddressing.setter def unifiedAddressing(self, int unifiedAddressing): self._pvt_ptr[0].unifiedAddressing = unifiedAddressing - {{endif}} - {{if 'cudaDeviceProp.memoryClockRate' in found_struct}} + + @property def memoryClockRate(self): return self._pvt_ptr[0].memoryClockRate @memoryClockRate.setter def memoryClockRate(self, int memoryClockRate): self._pvt_ptr[0].memoryClockRate = memoryClockRate - {{endif}} - {{if 'cudaDeviceProp.memoryBusWidth' in found_struct}} + + @property def memoryBusWidth(self): return self._pvt_ptr[0].memoryBusWidth @memoryBusWidth.setter def memoryBusWidth(self, int memoryBusWidth): self._pvt_ptr[0].memoryBusWidth = memoryBusWidth - {{endif}} - {{if 'cudaDeviceProp.l2CacheSize' in found_struct}} + + @property def l2CacheSize(self): return self._pvt_ptr[0].l2CacheSize @l2CacheSize.setter def l2CacheSize(self, int l2CacheSize): self._pvt_ptr[0].l2CacheSize = l2CacheSize - {{endif}} - {{if 'cudaDeviceProp.persistingL2CacheMaxSize' in found_struct}} + + @property def persistingL2CacheMaxSize(self): return self._pvt_ptr[0].persistingL2CacheMaxSize @persistingL2CacheMaxSize.setter def persistingL2CacheMaxSize(self, int persistingL2CacheMaxSize): self._pvt_ptr[0].persistingL2CacheMaxSize = persistingL2CacheMaxSize - {{endif}} - {{if 'cudaDeviceProp.maxThreadsPerMultiProcessor' in found_struct}} + + @property def maxThreadsPerMultiProcessor(self): return self._pvt_ptr[0].maxThreadsPerMultiProcessor @maxThreadsPerMultiProcessor.setter def maxThreadsPerMultiProcessor(self, int maxThreadsPerMultiProcessor): self._pvt_ptr[0].maxThreadsPerMultiProcessor = maxThreadsPerMultiProcessor - {{endif}} - {{if 'cudaDeviceProp.streamPrioritiesSupported' in found_struct}} + + @property def streamPrioritiesSupported(self): return self._pvt_ptr[0].streamPrioritiesSupported @streamPrioritiesSupported.setter def streamPrioritiesSupported(self, int streamPrioritiesSupported): self._pvt_ptr[0].streamPrioritiesSupported = streamPrioritiesSupported - {{endif}} - {{if 'cudaDeviceProp.globalL1CacheSupported' in found_struct}} + + @property def globalL1CacheSupported(self): return self._pvt_ptr[0].globalL1CacheSupported @globalL1CacheSupported.setter def globalL1CacheSupported(self, int globalL1CacheSupported): self._pvt_ptr[0].globalL1CacheSupported = globalL1CacheSupported - {{endif}} - {{if 'cudaDeviceProp.localL1CacheSupported' in found_struct}} + + @property def localL1CacheSupported(self): return self._pvt_ptr[0].localL1CacheSupported @localL1CacheSupported.setter def localL1CacheSupported(self, int localL1CacheSupported): self._pvt_ptr[0].localL1CacheSupported = localL1CacheSupported - {{endif}} - {{if 'cudaDeviceProp.sharedMemPerMultiprocessor' in found_struct}} + + @property def sharedMemPerMultiprocessor(self): return self._pvt_ptr[0].sharedMemPerMultiprocessor @sharedMemPerMultiprocessor.setter def sharedMemPerMultiprocessor(self, size_t sharedMemPerMultiprocessor): self._pvt_ptr[0].sharedMemPerMultiprocessor = sharedMemPerMultiprocessor - {{endif}} - {{if 'cudaDeviceProp.regsPerMultiprocessor' in found_struct}} + + @property def regsPerMultiprocessor(self): return self._pvt_ptr[0].regsPerMultiprocessor @regsPerMultiprocessor.setter def regsPerMultiprocessor(self, int regsPerMultiprocessor): self._pvt_ptr[0].regsPerMultiprocessor = regsPerMultiprocessor - {{endif}} - {{if 'cudaDeviceProp.managedMemory' in found_struct}} + + @property def managedMemory(self): return self._pvt_ptr[0].managedMemory @managedMemory.setter def managedMemory(self, int managedMemory): self._pvt_ptr[0].managedMemory = managedMemory - {{endif}} - {{if 'cudaDeviceProp.isMultiGpuBoard' in found_struct}} + + @property def isMultiGpuBoard(self): return self._pvt_ptr[0].isMultiGpuBoard @isMultiGpuBoard.setter def isMultiGpuBoard(self, int isMultiGpuBoard): self._pvt_ptr[0].isMultiGpuBoard = isMultiGpuBoard - {{endif}} - {{if 'cudaDeviceProp.multiGpuBoardGroupID' in found_struct}} + + @property def multiGpuBoardGroupID(self): return self._pvt_ptr[0].multiGpuBoardGroupID @multiGpuBoardGroupID.setter def multiGpuBoardGroupID(self, int multiGpuBoardGroupID): self._pvt_ptr[0].multiGpuBoardGroupID = multiGpuBoardGroupID - {{endif}} - {{if 'cudaDeviceProp.hostNativeAtomicSupported' in found_struct}} + + @property def hostNativeAtomicSupported(self): return self._pvt_ptr[0].hostNativeAtomicSupported @hostNativeAtomicSupported.setter def hostNativeAtomicSupported(self, int hostNativeAtomicSupported): self._pvt_ptr[0].hostNativeAtomicSupported = hostNativeAtomicSupported - {{endif}} - {{if 'cudaDeviceProp.singleToDoublePrecisionPerfRatio' in found_struct}} + + @property def singleToDoublePrecisionPerfRatio(self): return self._pvt_ptr[0].singleToDoublePrecisionPerfRatio @singleToDoublePrecisionPerfRatio.setter def singleToDoublePrecisionPerfRatio(self, int singleToDoublePrecisionPerfRatio): self._pvt_ptr[0].singleToDoublePrecisionPerfRatio = singleToDoublePrecisionPerfRatio - {{endif}} - {{if 'cudaDeviceProp.pageableMemoryAccess' in found_struct}} + + @property def pageableMemoryAccess(self): return self._pvt_ptr[0].pageableMemoryAccess @pageableMemoryAccess.setter def pageableMemoryAccess(self, int pageableMemoryAccess): self._pvt_ptr[0].pageableMemoryAccess = pageableMemoryAccess - {{endif}} - {{if 'cudaDeviceProp.concurrentManagedAccess' in found_struct}} + + @property def concurrentManagedAccess(self): return self._pvt_ptr[0].concurrentManagedAccess @concurrentManagedAccess.setter def concurrentManagedAccess(self, int concurrentManagedAccess): self._pvt_ptr[0].concurrentManagedAccess = concurrentManagedAccess - {{endif}} - {{if 'cudaDeviceProp.computePreemptionSupported' in found_struct}} + + @property def computePreemptionSupported(self): return self._pvt_ptr[0].computePreemptionSupported @computePreemptionSupported.setter def computePreemptionSupported(self, int computePreemptionSupported): self._pvt_ptr[0].computePreemptionSupported = computePreemptionSupported - {{endif}} - {{if 'cudaDeviceProp.canUseHostPointerForRegisteredMem' in found_struct}} + + @property def canUseHostPointerForRegisteredMem(self): return self._pvt_ptr[0].canUseHostPointerForRegisteredMem @canUseHostPointerForRegisteredMem.setter def canUseHostPointerForRegisteredMem(self, int canUseHostPointerForRegisteredMem): self._pvt_ptr[0].canUseHostPointerForRegisteredMem = canUseHostPointerForRegisteredMem - {{endif}} - {{if 'cudaDeviceProp.cooperativeLaunch' in found_struct}} + + @property def cooperativeLaunch(self): return self._pvt_ptr[0].cooperativeLaunch @cooperativeLaunch.setter def cooperativeLaunch(self, int cooperativeLaunch): self._pvt_ptr[0].cooperativeLaunch = cooperativeLaunch - {{endif}} - {{if 'cudaDeviceProp.cooperativeMultiDeviceLaunch' in found_struct}} + + @property def cooperativeMultiDeviceLaunch(self): return self._pvt_ptr[0].cooperativeMultiDeviceLaunch @cooperativeMultiDeviceLaunch.setter def cooperativeMultiDeviceLaunch(self, int cooperativeMultiDeviceLaunch): self._pvt_ptr[0].cooperativeMultiDeviceLaunch = cooperativeMultiDeviceLaunch - {{endif}} - {{if 'cudaDeviceProp.sharedMemPerBlockOptin' in found_struct}} + + @property def sharedMemPerBlockOptin(self): return self._pvt_ptr[0].sharedMemPerBlockOptin @sharedMemPerBlockOptin.setter def sharedMemPerBlockOptin(self, size_t sharedMemPerBlockOptin): self._pvt_ptr[0].sharedMemPerBlockOptin = sharedMemPerBlockOptin - {{endif}} - {{if 'cudaDeviceProp.pageableMemoryAccessUsesHostPageTables' in found_struct}} + + @property def pageableMemoryAccessUsesHostPageTables(self): return self._pvt_ptr[0].pageableMemoryAccessUsesHostPageTables @pageableMemoryAccessUsesHostPageTables.setter def pageableMemoryAccessUsesHostPageTables(self, int pageableMemoryAccessUsesHostPageTables): self._pvt_ptr[0].pageableMemoryAccessUsesHostPageTables = pageableMemoryAccessUsesHostPageTables - {{endif}} - {{if 'cudaDeviceProp.directManagedMemAccessFromHost' in found_struct}} + + @property def directManagedMemAccessFromHost(self): return self._pvt_ptr[0].directManagedMemAccessFromHost @directManagedMemAccessFromHost.setter def directManagedMemAccessFromHost(self, int directManagedMemAccessFromHost): self._pvt_ptr[0].directManagedMemAccessFromHost = directManagedMemAccessFromHost - {{endif}} - {{if 'cudaDeviceProp.maxBlocksPerMultiProcessor' in found_struct}} + + @property def maxBlocksPerMultiProcessor(self): return self._pvt_ptr[0].maxBlocksPerMultiProcessor @maxBlocksPerMultiProcessor.setter def maxBlocksPerMultiProcessor(self, int maxBlocksPerMultiProcessor): self._pvt_ptr[0].maxBlocksPerMultiProcessor = maxBlocksPerMultiProcessor - {{endif}} - {{if 'cudaDeviceProp.accessPolicyMaxWindowSize' in found_struct}} + + @property def accessPolicyMaxWindowSize(self): return self._pvt_ptr[0].accessPolicyMaxWindowSize @accessPolicyMaxWindowSize.setter def accessPolicyMaxWindowSize(self, int accessPolicyMaxWindowSize): self._pvt_ptr[0].accessPolicyMaxWindowSize = accessPolicyMaxWindowSize - {{endif}} - {{if 'cudaDeviceProp.reservedSharedMemPerBlock' in found_struct}} + + @property def reservedSharedMemPerBlock(self): return self._pvt_ptr[0].reservedSharedMemPerBlock @reservedSharedMemPerBlock.setter def reservedSharedMemPerBlock(self, size_t reservedSharedMemPerBlock): self._pvt_ptr[0].reservedSharedMemPerBlock = reservedSharedMemPerBlock - {{endif}} - {{if 'cudaDeviceProp.hostRegisterSupported' in found_struct}} + + @property def hostRegisterSupported(self): return self._pvt_ptr[0].hostRegisterSupported @hostRegisterSupported.setter def hostRegisterSupported(self, int hostRegisterSupported): self._pvt_ptr[0].hostRegisterSupported = hostRegisterSupported - {{endif}} - {{if 'cudaDeviceProp.sparseCudaArraySupported' in found_struct}} + + @property def sparseCudaArraySupported(self): return self._pvt_ptr[0].sparseCudaArraySupported @sparseCudaArraySupported.setter def sparseCudaArraySupported(self, int sparseCudaArraySupported): self._pvt_ptr[0].sparseCudaArraySupported = sparseCudaArraySupported - {{endif}} - {{if 'cudaDeviceProp.hostRegisterReadOnlySupported' in found_struct}} + + @property def hostRegisterReadOnlySupported(self): return self._pvt_ptr[0].hostRegisterReadOnlySupported @hostRegisterReadOnlySupported.setter def hostRegisterReadOnlySupported(self, int hostRegisterReadOnlySupported): self._pvt_ptr[0].hostRegisterReadOnlySupported = hostRegisterReadOnlySupported - {{endif}} - {{if 'cudaDeviceProp.timelineSemaphoreInteropSupported' in found_struct}} + + @property def timelineSemaphoreInteropSupported(self): return self._pvt_ptr[0].timelineSemaphoreInteropSupported @timelineSemaphoreInteropSupported.setter def timelineSemaphoreInteropSupported(self, int timelineSemaphoreInteropSupported): self._pvt_ptr[0].timelineSemaphoreInteropSupported = timelineSemaphoreInteropSupported - {{endif}} - {{if 'cudaDeviceProp.memoryPoolsSupported' in found_struct}} + + @property def memoryPoolsSupported(self): return self._pvt_ptr[0].memoryPoolsSupported @memoryPoolsSupported.setter def memoryPoolsSupported(self, int memoryPoolsSupported): self._pvt_ptr[0].memoryPoolsSupported = memoryPoolsSupported - {{endif}} - {{if 'cudaDeviceProp.gpuDirectRDMASupported' in found_struct}} + + @property def gpuDirectRDMASupported(self): return self._pvt_ptr[0].gpuDirectRDMASupported @gpuDirectRDMASupported.setter def gpuDirectRDMASupported(self, int gpuDirectRDMASupported): self._pvt_ptr[0].gpuDirectRDMASupported = gpuDirectRDMASupported - {{endif}} - {{if 'cudaDeviceProp.gpuDirectRDMAFlushWritesOptions' in found_struct}} + + @property def gpuDirectRDMAFlushWritesOptions(self): return self._pvt_ptr[0].gpuDirectRDMAFlushWritesOptions @gpuDirectRDMAFlushWritesOptions.setter def gpuDirectRDMAFlushWritesOptions(self, unsigned int gpuDirectRDMAFlushWritesOptions): self._pvt_ptr[0].gpuDirectRDMAFlushWritesOptions = gpuDirectRDMAFlushWritesOptions - {{endif}} - {{if 'cudaDeviceProp.gpuDirectRDMAWritesOrdering' in found_struct}} + + @property def gpuDirectRDMAWritesOrdering(self): return self._pvt_ptr[0].gpuDirectRDMAWritesOrdering @gpuDirectRDMAWritesOrdering.setter def gpuDirectRDMAWritesOrdering(self, int gpuDirectRDMAWritesOrdering): self._pvt_ptr[0].gpuDirectRDMAWritesOrdering = gpuDirectRDMAWritesOrdering - {{endif}} - {{if 'cudaDeviceProp.memoryPoolSupportedHandleTypes' in found_struct}} + + @property def memoryPoolSupportedHandleTypes(self): return self._pvt_ptr[0].memoryPoolSupportedHandleTypes @memoryPoolSupportedHandleTypes.setter def memoryPoolSupportedHandleTypes(self, unsigned int memoryPoolSupportedHandleTypes): self._pvt_ptr[0].memoryPoolSupportedHandleTypes = memoryPoolSupportedHandleTypes - {{endif}} - {{if 'cudaDeviceProp.deferredMappingCudaArraySupported' in found_struct}} + + @property def deferredMappingCudaArraySupported(self): return self._pvt_ptr[0].deferredMappingCudaArraySupported @deferredMappingCudaArraySupported.setter def deferredMappingCudaArraySupported(self, int deferredMappingCudaArraySupported): self._pvt_ptr[0].deferredMappingCudaArraySupported = deferredMappingCudaArraySupported - {{endif}} - {{if 'cudaDeviceProp.ipcEventSupported' in found_struct}} + + @property def ipcEventSupported(self): return self._pvt_ptr[0].ipcEventSupported @ipcEventSupported.setter def ipcEventSupported(self, int ipcEventSupported): self._pvt_ptr[0].ipcEventSupported = ipcEventSupported - {{endif}} - {{if 'cudaDeviceProp.clusterLaunch' in found_struct}} + + @property def clusterLaunch(self): return self._pvt_ptr[0].clusterLaunch @clusterLaunch.setter def clusterLaunch(self, int clusterLaunch): self._pvt_ptr[0].clusterLaunch = clusterLaunch - {{endif}} - {{if 'cudaDeviceProp.unifiedFunctionPointers' in found_struct}} + + @property def unifiedFunctionPointers(self): return self._pvt_ptr[0].unifiedFunctionPointers @unifiedFunctionPointers.setter def unifiedFunctionPointers(self, int unifiedFunctionPointers): self._pvt_ptr[0].unifiedFunctionPointers = unifiedFunctionPointers - {{endif}} - {{if 'cudaDeviceProp.reserved' in found_struct}} - @property - def reserved(self): - return self._pvt_ptr[0].reserved - @reserved.setter - def reserved(self, reserved): - self._pvt_ptr[0].reserved = reserved - {{endif}} -{{endif}} -{{if 'cudaIpcEventHandle_st' in found_struct}} + cdef class cudaIpcEventHandle_st: """ CUDA IPC event handle - Attributes - ---------- - {{if 'cudaIpcEventHandle_st.reserved' in found_struct}} - reserved : bytes - - {{endif}} - Methods ------- getPtr() @@ -13361,48 +12802,15 @@ cdef class cudaIpcEventHandle_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaIpcEventHandle_st.reserved' in found_struct}} - try: - str_list += ['reserved : ' + str(self.reserved)] - except ValueError: - str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaIpcEventHandle_st.reserved' in found_struct}} - @property - def reserved(self): - return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 64) - @reserved.setter - def reserved(self, reserved): - if len(reserved) != 64: - raise ValueError("reserved length must be 64, is " + str(len(reserved))) - if CHAR_MIN == 0: - for i, b in enumerate(reserved): - if b < 0 and b > -129: - b = b + 256 - self._pvt_ptr[0].reserved[i] = b - else: - for i, b in enumerate(reserved): - if b > 127 and b < 256: - b = b - 256 - self._pvt_ptr[0].reserved[i] = b - {{endif}} -{{endif}} -{{if 'cudaIpcMemHandle_st' in found_struct}} cdef class cudaIpcMemHandle_st: """ CUDA IPC memory handle - Attributes - ---------- - {{if 'cudaIpcMemHandle_st.reserved' in found_struct}} - reserved : bytes - - {{endif}} - Methods ------- getPtr() @@ -13422,46 +12830,13 @@ cdef class cudaIpcMemHandle_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaIpcMemHandle_st.reserved' in found_struct}} - try: - str_list += ['reserved : ' + str(self.reserved)] - except ValueError: - str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaIpcMemHandle_st.reserved' in found_struct}} - @property - def reserved(self): - return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 64) - @reserved.setter - def reserved(self, reserved): - if len(reserved) != 64: - raise ValueError("reserved length must be 64, is " + str(len(reserved))) - if CHAR_MIN == 0: - for i, b in enumerate(reserved): - if b < 0 and b > -129: - b = b + 256 - self._pvt_ptr[0].reserved[i] = b - else: - for i, b in enumerate(reserved): - if b > 127 and b < 256: - b = b - 256 - self._pvt_ptr[0].reserved[i] = b - {{endif}} -{{endif}} -{{if 'cudaMemFabricHandle_st' in found_struct}} cdef class cudaMemFabricHandle_st: """ - Attributes - ---------- - {{if 'cudaMemFabricHandle_st.reserved' in found_struct}} - reserved : bytes - - {{endif}} - Methods ------- getPtr() @@ -13481,49 +12856,23 @@ cdef class cudaMemFabricHandle_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemFabricHandle_st.reserved' in found_struct}} - try: - str_list += ['reserved : ' + str(self.reserved)] - except ValueError: - str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemFabricHandle_st.reserved' in found_struct}} - @property - def reserved(self): - return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 64) - @reserved.setter - def reserved(self, reserved): - if len(reserved) != 64: - raise ValueError("reserved length must be 64, is " + str(len(reserved))) - if CHAR_MIN == 0: - for i, b in enumerate(reserved): - if b < 0 and b > -129: - b = b + 256 - self._pvt_ptr[0].reserved[i] = b - else: - for i, b in enumerate(reserved): - if b > 127 and b < 256: - b = b - 256 - self._pvt_ptr[0].reserved[i] = b - {{endif}} -{{endif}} -{{if 'cudaExternalMemoryHandleDesc.handle.win32' in found_struct}} cdef class anon_struct7: """ Attributes ---------- - {{if 'cudaExternalMemoryHandleDesc.handle.win32.handle' in found_struct}} + handle : Any - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.win32.name' in found_struct}} + + name : Any - {{endif}} + Methods ------- @@ -13542,22 +12891,22 @@ cdef class anon_struct7: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalMemoryHandleDesc.handle.win32.handle' in found_struct}} + try: str_list += ['handle : ' + hex(self.handle)] except ValueError: str_list += ['handle : '] - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.win32.name' in found_struct}} + + try: str_list += ['name : ' + hex(self.name)] except ValueError: str_list += ['name : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalMemoryHandleDesc.handle.win32.handle' in found_struct}} + @property def handle(self): return self._pvt_ptr[0].handle.win32.handle @@ -13565,8 +12914,8 @@ cdef class anon_struct7: def handle(self, handle): self._cyhandle = _HelperInputVoidPtr(handle) self._pvt_ptr[0].handle.win32.handle = self._cyhandle.cptr - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.win32.name' in found_struct}} + + @property def name(self): return self._pvt_ptr[0].handle.win32.name @@ -13574,26 +12923,24 @@ cdef class anon_struct7: def name(self, name): self._cyname = _HelperInputVoidPtr(name) self._pvt_ptr[0].handle.win32.name = self._cyname.cptr - {{endif}} -{{endif}} -{{if 'cudaExternalMemoryHandleDesc.handle' in found_struct}} + cdef class anon_union2: """ Attributes ---------- - {{if 'cudaExternalMemoryHandleDesc.handle.fd' in found_struct}} + fd : int - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.win32' in found_struct}} + + win32 : anon_struct7 - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.nvSciBufObject' in found_struct}} + + nvSciBufObject : Any - {{endif}} + Methods ------- @@ -13604,55 +12951,53 @@ cdef class anon_union2: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - {{if 'cudaExternalMemoryHandleDesc.handle.win32' in found_struct}} self._win32 = anon_struct7(_ptr=self._pvt_ptr) - {{endif}} + self._win32._owner = self def __dealloc__(self): - pass + self._win32 = None def getPtr(self): return &self._pvt_ptr[0].handle def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalMemoryHandleDesc.handle.fd' in found_struct}} + try: str_list += ['fd : ' + str(self.fd)] except ValueError: str_list += ['fd : '] - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.win32' in found_struct}} + + try: str_list += ['win32 :\n' + '\n'.join([' ' + line for line in str(self.win32).splitlines()])] except ValueError: str_list += ['win32 : '] - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.nvSciBufObject' in found_struct}} + + try: str_list += ['nvSciBufObject : ' + hex(self.nvSciBufObject)] except ValueError: str_list += ['nvSciBufObject : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalMemoryHandleDesc.handle.fd' in found_struct}} + @property def fd(self): return self._pvt_ptr[0].handle.fd @fd.setter def fd(self, int fd): self._pvt_ptr[0].handle.fd = fd - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.win32' in found_struct}} + + @property def win32(self): return self._win32 @win32.setter def win32(self, win32 not None : anon_struct7): string.memcpy(&self._pvt_ptr[0].handle.win32, win32.getPtr(), sizeof(self._pvt_ptr[0].handle.win32)) - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.nvSciBufObject' in found_struct}} + + @property def nvSciBufObject(self): return self._pvt_ptr[0].handle.nvSciBufObject @@ -13660,9 +13005,7 @@ cdef class anon_union2: def nvSciBufObject(self, nvSciBufObject): self._cynvSciBufObject = _HelperInputVoidPtr(nvSciBufObject) self._pvt_ptr[0].handle.nvSciBufObject = self._cynvSciBufObject.cptr - {{endif}} -{{endif}} -{{if 'cudaExternalMemoryHandleDesc' in found_struct}} + cdef class cudaExternalMemoryHandleDesc: """ @@ -13670,22 +13013,22 @@ cdef class cudaExternalMemoryHandleDesc: Attributes ---------- - {{if 'cudaExternalMemoryHandleDesc.type' in found_struct}} + type : cudaExternalMemoryHandleType Type of the handle - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle' in found_struct}} + + handle : anon_union2 - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.size' in found_struct}} + + size : unsigned long long Size of the memory allocation - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.flags' in found_struct}} + + flags : unsigned int Flags must either be zero or cudaExternalMemoryDedicated - {{endif}} + Methods ------- @@ -13699,11 +13042,10 @@ cdef class cudaExternalMemoryHandleDesc: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaExternalMemoryHandleDesc.handle' in found_struct}} self._handle = anon_union2(_ptr=self._pvt_ptr) - {{endif}} + self._handle._owner = self def __dealloc__(self): + self._handle = None if self._val_ptr is not NULL: free(self._val_ptr) def getPtr(self): @@ -13711,67 +13053,65 @@ cdef class cudaExternalMemoryHandleDesc: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalMemoryHandleDesc.type' in found_struct}} + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle' in found_struct}} + + try: str_list += ['handle :\n' + '\n'.join([' ' + line for line in str(self.handle).splitlines()])] except ValueError: str_list += ['handle : '] - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.size' in found_struct}} + + try: str_list += ['size : ' + str(self.size)] except ValueError: str_list += ['size : '] - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalMemoryHandleDesc.type' in found_struct}} + @property def type(self): return cudaExternalMemoryHandleType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : cudaExternalMemoryHandleType): - self._pvt_ptr[0].type = int(type) - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle' in found_struct}} + self._pvt_ptr[0].type = int(type) + + @property def handle(self): return self._handle @handle.setter def handle(self, handle not None : anon_union2): string.memcpy(&self._pvt_ptr[0].handle, handle.getPtr(), sizeof(self._pvt_ptr[0].handle)) - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.size' in found_struct}} + + @property def size(self): return self._pvt_ptr[0].size @size.setter def size(self, unsigned long long size): self._pvt_ptr[0].size = size - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].flags @flags.setter def flags(self, unsigned int flags): self._pvt_ptr[0].flags = flags - {{endif}} -{{endif}} -{{if 'cudaExternalMemoryBufferDesc' in found_struct}} + cdef class cudaExternalMemoryBufferDesc: """ @@ -13779,18 +13119,18 @@ cdef class cudaExternalMemoryBufferDesc: Attributes ---------- - {{if 'cudaExternalMemoryBufferDesc.offset' in found_struct}} + offset : unsigned long long Offset into the memory object where the buffer's base is - {{endif}} - {{if 'cudaExternalMemoryBufferDesc.size' in found_struct}} + + size : unsigned long long Size of the buffer - {{endif}} - {{if 'cudaExternalMemoryBufferDesc.flags' in found_struct}} + + flags : unsigned int Flags reserved for future use. Must be zero. - {{endif}} + Methods ------- @@ -13811,53 +13151,51 @@ cdef class cudaExternalMemoryBufferDesc: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalMemoryBufferDesc.offset' in found_struct}} + try: str_list += ['offset : ' + str(self.offset)] except ValueError: str_list += ['offset : '] - {{endif}} - {{if 'cudaExternalMemoryBufferDesc.size' in found_struct}} + + try: str_list += ['size : ' + str(self.size)] except ValueError: str_list += ['size : '] - {{endif}} - {{if 'cudaExternalMemoryBufferDesc.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalMemoryBufferDesc.offset' in found_struct}} + @property def offset(self): return self._pvt_ptr[0].offset @offset.setter def offset(self, unsigned long long offset): self._pvt_ptr[0].offset = offset - {{endif}} - {{if 'cudaExternalMemoryBufferDesc.size' in found_struct}} + + @property def size(self): return self._pvt_ptr[0].size @size.setter def size(self, unsigned long long size): self._pvt_ptr[0].size = size - {{endif}} - {{if 'cudaExternalMemoryBufferDesc.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].flags @flags.setter def flags(self, unsigned int flags): self._pvt_ptr[0].flags = flags - {{endif}} -{{endif}} -{{if 'cudaExternalMemoryMipmappedArrayDesc' in found_struct}} + cdef class cudaExternalMemoryMipmappedArrayDesc: """ @@ -13865,28 +13203,28 @@ cdef class cudaExternalMemoryMipmappedArrayDesc: Attributes ---------- - {{if 'cudaExternalMemoryMipmappedArrayDesc.offset' in found_struct}} + offset : unsigned long long Offset into the memory object where the base level of the mipmap chain is. - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.formatDesc' in found_struct}} + + formatDesc : cudaChannelFormatDesc Format of base level of the mipmap chain - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.extent' in found_struct}} + + extent : cudaExtent Dimensions of base level of the mipmap chain - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.flags' in found_struct}} + + flags : unsigned int Flags associated with CUDA mipmapped arrays. See cudaMallocMipmappedArray - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.numLevels' in found_struct}} + + numLevels : unsigned int Total number of levels in the mipmap chain - {{endif}} + Methods ------- @@ -13899,108 +13237,104 @@ cdef class cudaExternalMemoryMipmappedArrayDesc: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaExternalMemoryMipmappedArrayDesc.formatDesc' in found_struct}} self._formatDesc = cudaChannelFormatDesc(_ptr=&self._pvt_ptr[0].formatDesc) - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.extent' in found_struct}} + self._formatDesc._owner = self self._extent = cudaExtent(_ptr=&self._pvt_ptr[0].extent) - {{endif}} + self._extent._owner = self def __dealloc__(self): - pass + self._formatDesc = None + self._extent = None def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalMemoryMipmappedArrayDesc.offset' in found_struct}} + try: str_list += ['offset : ' + str(self.offset)] except ValueError: str_list += ['offset : '] - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.formatDesc' in found_struct}} + + try: str_list += ['formatDesc :\n' + '\n'.join([' ' + line for line in str(self.formatDesc).splitlines()])] except ValueError: str_list += ['formatDesc : '] - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.extent' in found_struct}} + + try: str_list += ['extent :\n' + '\n'.join([' ' + line for line in str(self.extent).splitlines()])] except ValueError: str_list += ['extent : '] - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.numLevels' in found_struct}} + + try: str_list += ['numLevels : ' + str(self.numLevels)] except ValueError: str_list += ['numLevels : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalMemoryMipmappedArrayDesc.offset' in found_struct}} + @property def offset(self): return self._pvt_ptr[0].offset @offset.setter def offset(self, unsigned long long offset): self._pvt_ptr[0].offset = offset - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.formatDesc' in found_struct}} + + @property def formatDesc(self): return self._formatDesc @formatDesc.setter def formatDesc(self, formatDesc not None : cudaChannelFormatDesc): string.memcpy(&self._pvt_ptr[0].formatDesc, formatDesc.getPtr(), sizeof(self._pvt_ptr[0].formatDesc)) - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.extent' in found_struct}} + + @property def extent(self): return self._extent @extent.setter def extent(self, extent not None : cudaExtent): string.memcpy(&self._pvt_ptr[0].extent, extent.getPtr(), sizeof(self._pvt_ptr[0].extent)) - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].flags @flags.setter def flags(self, unsigned int flags): self._pvt_ptr[0].flags = flags - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.numLevels' in found_struct}} + + @property def numLevels(self): return self._pvt_ptr[0].numLevels @numLevels.setter def numLevels(self, unsigned int numLevels): self._pvt_ptr[0].numLevels = numLevels - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreHandleDesc.handle.win32' in found_struct}} + cdef class anon_struct8: """ Attributes ---------- - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32.handle' in found_struct}} + handle : Any - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32.name' in found_struct}} + + name : Any - {{endif}} + Methods ------- @@ -14019,22 +13353,22 @@ cdef class anon_struct8: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32.handle' in found_struct}} + try: str_list += ['handle : ' + hex(self.handle)] except ValueError: str_list += ['handle : '] - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32.name' in found_struct}} + + try: str_list += ['name : ' + hex(self.name)] except ValueError: str_list += ['name : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32.handle' in found_struct}} + @property def handle(self): return self._pvt_ptr[0].handle.win32.handle @@ -14042,8 +13376,8 @@ cdef class anon_struct8: def handle(self, handle): self._cyhandle = _HelperInputVoidPtr(handle) self._pvt_ptr[0].handle.win32.handle = self._cyhandle.cptr - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32.name' in found_struct}} + + @property def name(self): return self._pvt_ptr[0].handle.win32.name @@ -14051,26 +13385,24 @@ cdef class anon_struct8: def name(self, name): self._cyname = _HelperInputVoidPtr(name) self._pvt_ptr[0].handle.win32.name = self._cyname.cptr - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreHandleDesc.handle' in found_struct}} + cdef class anon_union3: """ Attributes ---------- - {{if 'cudaExternalSemaphoreHandleDesc.handle.fd' in found_struct}} + fd : int - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32' in found_struct}} + + win32 : anon_struct8 - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.nvSciSyncObj' in found_struct}} + + nvSciSyncObj : Any - {{endif}} + Methods ------- @@ -14081,55 +13413,53 @@ cdef class anon_union3: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32' in found_struct}} self._win32 = anon_struct8(_ptr=self._pvt_ptr) - {{endif}} + self._win32._owner = self def __dealloc__(self): - pass + self._win32 = None def getPtr(self): return &self._pvt_ptr[0].handle def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreHandleDesc.handle.fd' in found_struct}} + try: str_list += ['fd : ' + str(self.fd)] except ValueError: str_list += ['fd : '] - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32' in found_struct}} + + try: str_list += ['win32 :\n' + '\n'.join([' ' + line for line in str(self.win32).splitlines()])] except ValueError: str_list += ['win32 : '] - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.nvSciSyncObj' in found_struct}} + + try: str_list += ['nvSciSyncObj : ' + hex(self.nvSciSyncObj)] except ValueError: str_list += ['nvSciSyncObj : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreHandleDesc.handle.fd' in found_struct}} + @property def fd(self): return self._pvt_ptr[0].handle.fd @fd.setter def fd(self, int fd): self._pvt_ptr[0].handle.fd = fd - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32' in found_struct}} + + @property def win32(self): return self._win32 @win32.setter def win32(self, win32 not None : anon_struct8): string.memcpy(&self._pvt_ptr[0].handle.win32, win32.getPtr(), sizeof(self._pvt_ptr[0].handle.win32)) - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.nvSciSyncObj' in found_struct}} + + @property def nvSciSyncObj(self): return self._pvt_ptr[0].handle.nvSciSyncObj @@ -14137,9 +13467,7 @@ cdef class anon_union3: def nvSciSyncObj(self, nvSciSyncObj): self._cynvSciSyncObj = _HelperInputVoidPtr(nvSciSyncObj) self._pvt_ptr[0].handle.nvSciSyncObj = self._cynvSciSyncObj.cptr - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreHandleDesc' in found_struct}} + cdef class cudaExternalSemaphoreHandleDesc: """ @@ -14147,18 +13475,18 @@ cdef class cudaExternalSemaphoreHandleDesc: Attributes ---------- - {{if 'cudaExternalSemaphoreHandleDesc.type' in found_struct}} + type : cudaExternalSemaphoreHandleType Type of the handle - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle' in found_struct}} + + handle : anon_union3 - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.flags' in found_struct}} + + flags : unsigned int Flags reserved for the future. Must be zero. - {{endif}} + Methods ------- @@ -14172,11 +13500,10 @@ cdef class cudaExternalSemaphoreHandleDesc: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaExternalSemaphoreHandleDesc.handle' in found_struct}} self._handle = anon_union3(_ptr=self._pvt_ptr) - {{endif}} + self._handle._owner = self def __dealloc__(self): + self._handle = None if self._val_ptr is not NULL: free(self._val_ptr) def getPtr(self): @@ -14184,62 +13511,60 @@ cdef class cudaExternalSemaphoreHandleDesc: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreHandleDesc.type' in found_struct}} + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle' in found_struct}} + + try: str_list += ['handle :\n' + '\n'.join([' ' + line for line in str(self.handle).splitlines()])] except ValueError: str_list += ['handle : '] - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreHandleDesc.type' in found_struct}} + @property def type(self): return cudaExternalSemaphoreHandleType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : cudaExternalSemaphoreHandleType): - self._pvt_ptr[0].type = int(type) - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle' in found_struct}} + self._pvt_ptr[0].type = int(type) + + @property def handle(self): return self._handle @handle.setter def handle(self, handle not None : anon_union3): string.memcpy(&self._pvt_ptr[0].handle, handle.getPtr(), sizeof(self._pvt_ptr[0].handle)) - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].flags @flags.setter def flags(self, unsigned int flags): self._pvt_ptr[0].flags = flags - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreSignalParams.params.fence' in found_struct}} + cdef class anon_struct15: """ Attributes ---------- - {{if 'cudaExternalSemaphoreSignalParams.params.fence.value' in found_struct}} + value : unsigned long long - {{endif}} + Methods ------- @@ -14258,38 +13583,32 @@ cdef class anon_struct15: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreSignalParams.params.fence.value' in found_struct}} + try: str_list += ['value : ' + str(self.value)] except ValueError: str_list += ['value : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreSignalParams.params.fence.value' in found_struct}} + @property def value(self): return self._pvt_ptr[0].params.fence.value @value.setter def value(self, unsigned long long value): self._pvt_ptr[0].params.fence.value = value - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync' in found_struct}} + cdef class anon_union6: """ Attributes ---------- - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync.fence' in found_struct}} + fence : Any - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync.reserved' in found_struct}} - reserved : unsigned long long - {{endif}} Methods ------- @@ -14308,22 +13627,16 @@ cdef class anon_union6: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync.fence' in found_struct}} + try: str_list += ['fence : ' + hex(self.fence)] except ValueError: str_list += ['fence : '] - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync.reserved' in found_struct}} - try: - str_list += ['reserved : ' + str(self.reserved)] - except ValueError: - str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync.fence' in found_struct}} + @property def fence(self): return self._pvt_ptr[0].params.nvSciSync.fence @@ -14331,26 +13644,16 @@ cdef class anon_union6: def fence(self, fence): self._cyfence = _HelperInputVoidPtr(fence) self._pvt_ptr[0].params.nvSciSync.fence = self._cyfence.cptr - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync.reserved' in found_struct}} - @property - def reserved(self): - return self._pvt_ptr[0].params.nvSciSync.reserved - @reserved.setter - def reserved(self, unsigned long long reserved): - self._pvt_ptr[0].params.nvSciSync.reserved = reserved - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreSignalParams.params.keyedMutex' in found_struct}} + cdef class anon_struct16: """ Attributes ---------- - {{if 'cudaExternalSemaphoreSignalParams.params.keyedMutex.key' in found_struct}} + key : unsigned long long - {{endif}} + Methods ------- @@ -14369,46 +13672,40 @@ cdef class anon_struct16: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreSignalParams.params.keyedMutex.key' in found_struct}} + try: str_list += ['key : ' + str(self.key)] except ValueError: str_list += ['key : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreSignalParams.params.keyedMutex.key' in found_struct}} + @property def key(self): return self._pvt_ptr[0].params.keyedMutex.key @key.setter def key(self, unsigned long long key): self._pvt_ptr[0].params.keyedMutex.key = key - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreSignalParams.params' in found_struct}} + cdef class anon_struct17: """ Attributes ---------- - {{if 'cudaExternalSemaphoreSignalParams.params.fence' in found_struct}} + fence : anon_struct15 - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync' in found_struct}} + + nvSciSync : anon_union6 - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.keyedMutex' in found_struct}} + + keyedMutex : anon_struct16 - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.reserved' in found_struct}} - reserved : list[unsigned int] - {{endif}} Methods ------- @@ -14419,84 +13716,66 @@ cdef class anon_struct17: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - {{if 'cudaExternalSemaphoreSignalParams.params.fence' in found_struct}} self._fence = anon_struct15(_ptr=self._pvt_ptr) - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync' in found_struct}} + self._fence._owner = self self._nvSciSync = anon_union6(_ptr=self._pvt_ptr) - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.keyedMutex' in found_struct}} + self._nvSciSync._owner = self self._keyedMutex = anon_struct16(_ptr=self._pvt_ptr) - {{endif}} + self._keyedMutex._owner = self def __dealloc__(self): - pass + self._fence = None + self._nvSciSync = None + self._keyedMutex = None def getPtr(self): return &self._pvt_ptr[0].params def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreSignalParams.params.fence' in found_struct}} + try: str_list += ['fence :\n' + '\n'.join([' ' + line for line in str(self.fence).splitlines()])] except ValueError: str_list += ['fence : '] - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync' in found_struct}} + + try: str_list += ['nvSciSync :\n' + '\n'.join([' ' + line for line in str(self.nvSciSync).splitlines()])] except ValueError: str_list += ['nvSciSync : '] - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.keyedMutex' in found_struct}} + + try: str_list += ['keyedMutex :\n' + '\n'.join([' ' + line for line in str(self.keyedMutex).splitlines()])] except ValueError: str_list += ['keyedMutex : '] - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.reserved' in found_struct}} - try: - str_list += ['reserved : ' + str(self.reserved)] - except ValueError: - str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreSignalParams.params.fence' in found_struct}} + @property def fence(self): return self._fence @fence.setter def fence(self, fence not None : anon_struct15): string.memcpy(&self._pvt_ptr[0].params.fence, fence.getPtr(), sizeof(self._pvt_ptr[0].params.fence)) - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync' in found_struct}} + + @property def nvSciSync(self): return self._nvSciSync @nvSciSync.setter def nvSciSync(self, nvSciSync not None : anon_union6): string.memcpy(&self._pvt_ptr[0].params.nvSciSync, nvSciSync.getPtr(), sizeof(self._pvt_ptr[0].params.nvSciSync)) - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.keyedMutex' in found_struct}} + + @property def keyedMutex(self): return self._keyedMutex @keyedMutex.setter def keyedMutex(self, keyedMutex not None : anon_struct16): string.memcpy(&self._pvt_ptr[0].params.keyedMutex, keyedMutex.getPtr(), sizeof(self._pvt_ptr[0].params.keyedMutex)) - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.reserved' in found_struct}} - @property - def reserved(self): - return self._pvt_ptr[0].params.reserved - @reserved.setter - def reserved(self, reserved): - self._pvt_ptr[0].params.reserved = reserved - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreSignalParams' in found_struct}} + cdef class cudaExternalSemaphoreSignalParams: """ @@ -14504,11 +13783,11 @@ cdef class cudaExternalSemaphoreSignalParams: Attributes ---------- - {{if 'cudaExternalSemaphoreSignalParams.params' in found_struct}} + params : anon_struct17 - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.flags' in found_struct}} + + flags : unsigned int Only when cudaExternalSemaphoreSignalParams is used to signal a cudaExternalSemaphore_t of type @@ -14518,11 +13797,7 @@ cdef class cudaExternalSemaphoreSignalParams: synchronization operations should be performed for any external memory object imported as cudaExternalMemoryHandleTypeNvSciBuf. For all other types of cudaExternalSemaphore_t, flags must be zero. - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.reserved' in found_struct}} - reserved : list[unsigned int] - {{endif}} Methods ------- @@ -14535,73 +13810,55 @@ cdef class cudaExternalSemaphoreSignalParams: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaExternalSemaphoreSignalParams.params' in found_struct}} self._params = anon_struct17(_ptr=self._pvt_ptr) - {{endif}} + self._params._owner = self def __dealloc__(self): - pass + self._params = None def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreSignalParams.params' in found_struct}} + try: str_list += ['params :\n' + '\n'.join([' ' + line for line in str(self.params).splitlines()])] except ValueError: str_list += ['params : '] - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.reserved' in found_struct}} - try: - str_list += ['reserved : ' + str(self.reserved)] - except ValueError: - str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreSignalParams.params' in found_struct}} + @property def params(self): return self._params @params.setter def params(self, params not None : anon_struct17): string.memcpy(&self._pvt_ptr[0].params, params.getPtr(), sizeof(self._pvt_ptr[0].params)) - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].flags @flags.setter def flags(self, unsigned int flags): self._pvt_ptr[0].flags = flags - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.reserved' in found_struct}} - @property - def reserved(self): - return self._pvt_ptr[0].reserved - @reserved.setter - def reserved(self, reserved): - self._pvt_ptr[0].reserved = reserved - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreWaitParams.params.fence' in found_struct}} + cdef class anon_struct18: """ Attributes ---------- - {{if 'cudaExternalSemaphoreWaitParams.params.fence.value' in found_struct}} + value : unsigned long long - {{endif}} + Methods ------- @@ -14620,38 +13877,32 @@ cdef class anon_struct18: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreWaitParams.params.fence.value' in found_struct}} + try: str_list += ['value : ' + str(self.value)] except ValueError: str_list += ['value : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreWaitParams.params.fence.value' in found_struct}} + @property def value(self): return self._pvt_ptr[0].params.fence.value @value.setter def value(self, unsigned long long value): self._pvt_ptr[0].params.fence.value = value - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync' in found_struct}} + cdef class anon_union7: """ Attributes ---------- - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync.fence' in found_struct}} + fence : Any - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync.reserved' in found_struct}} - reserved : unsigned long long - {{endif}} Methods ------- @@ -14670,22 +13921,16 @@ cdef class anon_union7: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync.fence' in found_struct}} + try: str_list += ['fence : ' + hex(self.fence)] except ValueError: str_list += ['fence : '] - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync.reserved' in found_struct}} - try: - str_list += ['reserved : ' + str(self.reserved)] - except ValueError: - str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync.fence' in found_struct}} + @property def fence(self): return self._pvt_ptr[0].params.nvSciSync.fence @@ -14693,30 +13938,20 @@ cdef class anon_union7: def fence(self, fence): self._cyfence = _HelperInputVoidPtr(fence) self._pvt_ptr[0].params.nvSciSync.fence = self._cyfence.cptr - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync.reserved' in found_struct}} - @property - def reserved(self): - return self._pvt_ptr[0].params.nvSciSync.reserved - @reserved.setter - def reserved(self, unsigned long long reserved): - self._pvt_ptr[0].params.nvSciSync.reserved = reserved - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex' in found_struct}} + cdef class anon_struct19: """ Attributes ---------- - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex.key' in found_struct}} + key : unsigned long long - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex.timeoutMs' in found_struct}} + + timeoutMs : unsigned int - {{endif}} + Methods ------- @@ -14735,60 +13970,54 @@ cdef class anon_struct19: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex.key' in found_struct}} + try: str_list += ['key : ' + str(self.key)] except ValueError: str_list += ['key : '] - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex.timeoutMs' in found_struct}} + + try: str_list += ['timeoutMs : ' + str(self.timeoutMs)] except ValueError: str_list += ['timeoutMs : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex.key' in found_struct}} + @property def key(self): return self._pvt_ptr[0].params.keyedMutex.key @key.setter def key(self, unsigned long long key): self._pvt_ptr[0].params.keyedMutex.key = key - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex.timeoutMs' in found_struct}} + + @property def timeoutMs(self): return self._pvt_ptr[0].params.keyedMutex.timeoutMs @timeoutMs.setter def timeoutMs(self, unsigned int timeoutMs): self._pvt_ptr[0].params.keyedMutex.timeoutMs = timeoutMs - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreWaitParams.params' in found_struct}} + cdef class anon_struct20: """ Attributes ---------- - {{if 'cudaExternalSemaphoreWaitParams.params.fence' in found_struct}} + fence : anon_struct18 - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync' in found_struct}} + + nvSciSync : anon_union7 - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex' in found_struct}} + + keyedMutex : anon_struct19 - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.reserved' in found_struct}} - reserved : list[unsigned int] - {{endif}} Methods ------- @@ -14799,84 +14028,66 @@ cdef class anon_struct20: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - {{if 'cudaExternalSemaphoreWaitParams.params.fence' in found_struct}} self._fence = anon_struct18(_ptr=self._pvt_ptr) - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync' in found_struct}} + self._fence._owner = self self._nvSciSync = anon_union7(_ptr=self._pvt_ptr) - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex' in found_struct}} + self._nvSciSync._owner = self self._keyedMutex = anon_struct19(_ptr=self._pvt_ptr) - {{endif}} + self._keyedMutex._owner = self def __dealloc__(self): - pass + self._fence = None + self._nvSciSync = None + self._keyedMutex = None def getPtr(self): return &self._pvt_ptr[0].params def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreWaitParams.params.fence' in found_struct}} + try: str_list += ['fence :\n' + '\n'.join([' ' + line for line in str(self.fence).splitlines()])] except ValueError: str_list += ['fence : '] - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync' in found_struct}} + + try: str_list += ['nvSciSync :\n' + '\n'.join([' ' + line for line in str(self.nvSciSync).splitlines()])] except ValueError: str_list += ['nvSciSync : '] - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex' in found_struct}} + + try: str_list += ['keyedMutex :\n' + '\n'.join([' ' + line for line in str(self.keyedMutex).splitlines()])] except ValueError: str_list += ['keyedMutex : '] - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.reserved' in found_struct}} - try: - str_list += ['reserved : ' + str(self.reserved)] - except ValueError: - str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreWaitParams.params.fence' in found_struct}} + @property def fence(self): return self._fence @fence.setter def fence(self, fence not None : anon_struct18): string.memcpy(&self._pvt_ptr[0].params.fence, fence.getPtr(), sizeof(self._pvt_ptr[0].params.fence)) - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync' in found_struct}} + + @property def nvSciSync(self): return self._nvSciSync @nvSciSync.setter def nvSciSync(self, nvSciSync not None : anon_union7): string.memcpy(&self._pvt_ptr[0].params.nvSciSync, nvSciSync.getPtr(), sizeof(self._pvt_ptr[0].params.nvSciSync)) - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex' in found_struct}} + + @property def keyedMutex(self): return self._keyedMutex @keyedMutex.setter def keyedMutex(self, keyedMutex not None : anon_struct19): string.memcpy(&self._pvt_ptr[0].params.keyedMutex, keyedMutex.getPtr(), sizeof(self._pvt_ptr[0].params.keyedMutex)) - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.reserved' in found_struct}} - @property - def reserved(self): - return self._pvt_ptr[0].params.reserved - @reserved.setter - def reserved(self, reserved): - self._pvt_ptr[0].params.reserved = reserved - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreWaitParams' in found_struct}} + cdef class cudaExternalSemaphoreWaitParams: """ @@ -14884,11 +14095,11 @@ cdef class cudaExternalSemaphoreWaitParams: Attributes ---------- - {{if 'cudaExternalSemaphoreWaitParams.params' in found_struct}} + params : anon_struct20 - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.flags' in found_struct}} + + flags : unsigned int Only when cudaExternalSemaphoreSignalParams is used to signal a cudaExternalSemaphore_t of type @@ -14898,11 +14109,7 @@ cdef class cudaExternalSemaphoreWaitParams: synchronization operations should be performed for any external memory object imported as cudaExternalMemoryHandleTypeNvSciBuf. For all other types of cudaExternalSemaphore_t, flags must be zero. - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.reserved' in found_struct}} - reserved : list[unsigned int] - {{endif}} Methods ------- @@ -14915,85 +14122,67 @@ cdef class cudaExternalSemaphoreWaitParams: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaExternalSemaphoreWaitParams.params' in found_struct}} self._params = anon_struct20(_ptr=self._pvt_ptr) - {{endif}} + self._params._owner = self def __dealloc__(self): - pass + self._params = None def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreWaitParams.params' in found_struct}} + try: str_list += ['params :\n' + '\n'.join([' ' + line for line in str(self.params).splitlines()])] except ValueError: str_list += ['params : '] - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.reserved' in found_struct}} - try: - str_list += ['reserved : ' + str(self.reserved)] - except ValueError: - str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreWaitParams.params' in found_struct}} + @property def params(self): return self._params @params.setter def params(self, params not None : anon_struct20): string.memcpy(&self._pvt_ptr[0].params, params.getPtr(), sizeof(self._pvt_ptr[0].params)) - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].flags @flags.setter def flags(self, unsigned int flags): self._pvt_ptr[0].flags = flags - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.reserved' in found_struct}} - @property - def reserved(self): - return self._pvt_ptr[0].reserved - @reserved.setter - def reserved(self, reserved): - self._pvt_ptr[0].reserved = reserved - {{endif}} -{{endif}} -{{if 'cudalibraryHostUniversalFunctionAndDataTable' in found_struct}} + cdef class cudalibraryHostUniversalFunctionAndDataTable: """ Attributes ---------- - {{if 'cudalibraryHostUniversalFunctionAndDataTable.functionTable' in found_struct}} + functionTable : Any - {{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable.functionWindowSize' in found_struct}} + + functionWindowSize : size_t - {{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable.dataTable' in found_struct}} + + dataTable : Any - {{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable.dataWindowSize' in found_struct}} + + dataWindowSize : size_t - {{endif}} + Methods ------- @@ -15014,34 +14203,34 @@ cdef class cudalibraryHostUniversalFunctionAndDataTable: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudalibraryHostUniversalFunctionAndDataTable.functionTable' in found_struct}} + try: str_list += ['functionTable : ' + hex(self.functionTable)] except ValueError: str_list += ['functionTable : '] - {{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable.functionWindowSize' in found_struct}} + + try: str_list += ['functionWindowSize : ' + str(self.functionWindowSize)] except ValueError: str_list += ['functionWindowSize : '] - {{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable.dataTable' in found_struct}} + + try: str_list += ['dataTable : ' + hex(self.dataTable)] except ValueError: str_list += ['dataTable : '] - {{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable.dataWindowSize' in found_struct}} + + try: str_list += ['dataWindowSize : ' + str(self.dataWindowSize)] except ValueError: str_list += ['dataWindowSize : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudalibraryHostUniversalFunctionAndDataTable.functionTable' in found_struct}} + @property def functionTable(self): return self._pvt_ptr[0].functionTable @@ -15049,16 +14238,16 @@ cdef class cudalibraryHostUniversalFunctionAndDataTable: def functionTable(self, functionTable): self._cyfunctionTable = _HelperInputVoidPtr(functionTable) self._pvt_ptr[0].functionTable = self._cyfunctionTable.cptr - {{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable.functionWindowSize' in found_struct}} + + @property def functionWindowSize(self): return self._pvt_ptr[0].functionWindowSize @functionWindowSize.setter def functionWindowSize(self, size_t functionWindowSize): self._pvt_ptr[0].functionWindowSize = functionWindowSize - {{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable.dataTable' in found_struct}} + + @property def dataTable(self): return self._pvt_ptr[0].dataTable @@ -15066,17 +14255,15 @@ cdef class cudalibraryHostUniversalFunctionAndDataTable: def dataTable(self, dataTable): self._cydataTable = _HelperInputVoidPtr(dataTable) self._pvt_ptr[0].dataTable = self._cydataTable.cptr - {{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable.dataWindowSize' in found_struct}} + + @property def dataWindowSize(self): return self._pvt_ptr[0].dataWindowSize @dataWindowSize.setter def dataWindowSize(self, size_t dataWindowSize): self._pvt_ptr[0].dataWindowSize = dataWindowSize - {{endif}} -{{endif}} -{{if 'cudaKernelNodeParams' in found_struct}} + cdef class cudaKernelNodeParams: """ @@ -15084,30 +14271,30 @@ cdef class cudaKernelNodeParams: Attributes ---------- - {{if 'cudaKernelNodeParams.func' in found_struct}} + func : Any Kernel to launch - {{endif}} - {{if 'cudaKernelNodeParams.gridDim' in found_struct}} + + gridDim : dim3 Grid dimensions - {{endif}} - {{if 'cudaKernelNodeParams.blockDim' in found_struct}} + + blockDim : dim3 Block dimensions - {{endif}} - {{if 'cudaKernelNodeParams.sharedMemBytes' in found_struct}} + + sharedMemBytes : unsigned int Dynamic shared-memory size per thread block in bytes - {{endif}} - {{if 'cudaKernelNodeParams.kernelParams' in found_struct}} + + kernelParams : Any Array of pointers to individual kernel arguments - {{endif}} - {{if 'cudaKernelNodeParams.extra' in found_struct}} + + extra : Any Pointer to kernel arguments in the "extra" format - {{endif}} + Methods ------- @@ -15120,60 +14307,58 @@ cdef class cudaKernelNodeParams: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaKernelNodeParams.gridDim' in found_struct}} self._gridDim = dim3(_ptr=&self._pvt_ptr[0].gridDim) - {{endif}} - {{if 'cudaKernelNodeParams.blockDim' in found_struct}} + self._gridDim._owner = self self._blockDim = dim3(_ptr=&self._pvt_ptr[0].blockDim) - {{endif}} + self._blockDim._owner = self def __dealloc__(self): - pass + self._gridDim = None + self._blockDim = None def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaKernelNodeParams.func' in found_struct}} + try: str_list += ['func : ' + hex(self.func)] except ValueError: str_list += ['func : '] - {{endif}} - {{if 'cudaKernelNodeParams.gridDim' in found_struct}} + + try: str_list += ['gridDim :\n' + '\n'.join([' ' + line for line in str(self.gridDim).splitlines()])] except ValueError: str_list += ['gridDim : '] - {{endif}} - {{if 'cudaKernelNodeParams.blockDim' in found_struct}} + + try: str_list += ['blockDim :\n' + '\n'.join([' ' + line for line in str(self.blockDim).splitlines()])] except ValueError: str_list += ['blockDim : '] - {{endif}} - {{if 'cudaKernelNodeParams.sharedMemBytes' in found_struct}} + + try: str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)] except ValueError: str_list += ['sharedMemBytes : '] - {{endif}} - {{if 'cudaKernelNodeParams.kernelParams' in found_struct}} + + try: str_list += ['kernelParams : ' + str(self.kernelParams)] except ValueError: str_list += ['kernelParams : '] - {{endif}} - {{if 'cudaKernelNodeParams.extra' in found_struct}} + + try: str_list += ['extra : ' + str(self.extra)] except ValueError: str_list += ['extra : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaKernelNodeParams.func' in found_struct}} + @property def func(self): return self._pvt_ptr[0].func @@ -15181,32 +14366,32 @@ cdef class cudaKernelNodeParams: def func(self, func): self._cyfunc = _HelperInputVoidPtr(func) self._pvt_ptr[0].func = self._cyfunc.cptr - {{endif}} - {{if 'cudaKernelNodeParams.gridDim' in found_struct}} + + @property def gridDim(self): return self._gridDim @gridDim.setter def gridDim(self, gridDim not None : dim3): string.memcpy(&self._pvt_ptr[0].gridDim, gridDim.getPtr(), sizeof(self._pvt_ptr[0].gridDim)) - {{endif}} - {{if 'cudaKernelNodeParams.blockDim' in found_struct}} + + @property def blockDim(self): return self._blockDim @blockDim.setter def blockDim(self, blockDim not None : dim3): string.memcpy(&self._pvt_ptr[0].blockDim, blockDim.getPtr(), sizeof(self._pvt_ptr[0].blockDim)) - {{endif}} - {{if 'cudaKernelNodeParams.sharedMemBytes' in found_struct}} + + @property def sharedMemBytes(self): return self._pvt_ptr[0].sharedMemBytes @sharedMemBytes.setter def sharedMemBytes(self, unsigned int sharedMemBytes): self._pvt_ptr[0].sharedMemBytes = sharedMemBytes - {{endif}} - {{if 'cudaKernelNodeParams.kernelParams' in found_struct}} + + @property def kernelParams(self): return self._pvt_ptr[0].kernelParams @@ -15214,17 +14399,15 @@ cdef class cudaKernelNodeParams: def kernelParams(self, kernelParams): self._cykernelParams = _HelperKernelParams(kernelParams) self._pvt_ptr[0].kernelParams = self._cykernelParams.ckernelParams - {{endif}} - {{if 'cudaKernelNodeParams.extra' in found_struct}} + + @property def extra(self): return self._pvt_ptr[0].extra @extra.setter def extra(self, void_ptr extra): self._pvt_ptr[0].extra = extra - {{endif}} -{{endif}} -{{if 'cudaKernelNodeParamsV2' in found_struct}} + cdef class cudaKernelNodeParamsV2: """ @@ -15232,30 +14415,30 @@ cdef class cudaKernelNodeParamsV2: Attributes ---------- - {{if 'cudaKernelNodeParamsV2.func' in found_struct}} + func : Any Kernel to launch - {{endif}} - {{if 'cudaKernelNodeParamsV2.gridDim' in found_struct}} + + gridDim : dim3 Grid dimensions - {{endif}} - {{if 'cudaKernelNodeParamsV2.blockDim' in found_struct}} + + blockDim : dim3 Block dimensions - {{endif}} - {{if 'cudaKernelNodeParamsV2.sharedMemBytes' in found_struct}} + + sharedMemBytes : unsigned int Dynamic shared-memory size per thread block in bytes - {{endif}} - {{if 'cudaKernelNodeParamsV2.kernelParams' in found_struct}} + + kernelParams : Any Array of pointers to individual kernel arguments - {{endif}} - {{if 'cudaKernelNodeParamsV2.extra' in found_struct}} + + extra : Any Pointer to kernel arguments in the "extra" format - {{endif}} + Methods ------- @@ -15268,60 +14451,58 @@ cdef class cudaKernelNodeParamsV2: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaKernelNodeParamsV2.gridDim' in found_struct}} self._gridDim = dim3(_ptr=&self._pvt_ptr[0].gridDim) - {{endif}} - {{if 'cudaKernelNodeParamsV2.blockDim' in found_struct}} + self._gridDim._owner = self self._blockDim = dim3(_ptr=&self._pvt_ptr[0].blockDim) - {{endif}} + self._blockDim._owner = self def __dealloc__(self): - pass + self._gridDim = None + self._blockDim = None def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaKernelNodeParamsV2.func' in found_struct}} + try: str_list += ['func : ' + hex(self.func)] except ValueError: str_list += ['func : '] - {{endif}} - {{if 'cudaKernelNodeParamsV2.gridDim' in found_struct}} + + try: str_list += ['gridDim :\n' + '\n'.join([' ' + line for line in str(self.gridDim).splitlines()])] except ValueError: str_list += ['gridDim : '] - {{endif}} - {{if 'cudaKernelNodeParamsV2.blockDim' in found_struct}} + + try: str_list += ['blockDim :\n' + '\n'.join([' ' + line for line in str(self.blockDim).splitlines()])] except ValueError: str_list += ['blockDim : '] - {{endif}} - {{if 'cudaKernelNodeParamsV2.sharedMemBytes' in found_struct}} + + try: str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)] except ValueError: str_list += ['sharedMemBytes : '] - {{endif}} - {{if 'cudaKernelNodeParamsV2.kernelParams' in found_struct}} + + try: str_list += ['kernelParams : ' + str(self.kernelParams)] except ValueError: str_list += ['kernelParams : '] - {{endif}} - {{if 'cudaKernelNodeParamsV2.extra' in found_struct}} + + try: str_list += ['extra : ' + str(self.extra)] except ValueError: str_list += ['extra : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaKernelNodeParamsV2.func' in found_struct}} + @property def func(self): return self._pvt_ptr[0].func @@ -15329,32 +14510,32 @@ cdef class cudaKernelNodeParamsV2: def func(self, func): self._cyfunc = _HelperInputVoidPtr(func) self._pvt_ptr[0].func = self._cyfunc.cptr - {{endif}} - {{if 'cudaKernelNodeParamsV2.gridDim' in found_struct}} + + @property def gridDim(self): return self._gridDim @gridDim.setter def gridDim(self, gridDim not None : dim3): string.memcpy(&self._pvt_ptr[0].gridDim, gridDim.getPtr(), sizeof(self._pvt_ptr[0].gridDim)) - {{endif}} - {{if 'cudaKernelNodeParamsV2.blockDim' in found_struct}} + + @property def blockDim(self): return self._blockDim @blockDim.setter def blockDim(self, blockDim not None : dim3): string.memcpy(&self._pvt_ptr[0].blockDim, blockDim.getPtr(), sizeof(self._pvt_ptr[0].blockDim)) - {{endif}} - {{if 'cudaKernelNodeParamsV2.sharedMemBytes' in found_struct}} + + @property def sharedMemBytes(self): return self._pvt_ptr[0].sharedMemBytes @sharedMemBytes.setter def sharedMemBytes(self, unsigned int sharedMemBytes): self._pvt_ptr[0].sharedMemBytes = sharedMemBytes - {{endif}} - {{if 'cudaKernelNodeParamsV2.kernelParams' in found_struct}} + + @property def kernelParams(self): return self._pvt_ptr[0].kernelParams @@ -15362,17 +14543,15 @@ cdef class cudaKernelNodeParamsV2: def kernelParams(self, kernelParams): self._cykernelParams = _HelperKernelParams(kernelParams) self._pvt_ptr[0].kernelParams = self._cykernelParams.ckernelParams - {{endif}} - {{if 'cudaKernelNodeParamsV2.extra' in found_struct}} + + @property def extra(self): return self._pvt_ptr[0].extra @extra.setter def extra(self, void_ptr extra): self._pvt_ptr[0].extra = extra - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreSignalNodeParams' in found_struct}} + cdef class cudaExternalSemaphoreSignalNodeParams: """ @@ -15380,19 +14559,19 @@ cdef class cudaExternalSemaphoreSignalNodeParams: Attributes ---------- - {{if 'cudaExternalSemaphoreSignalNodeParams.extSemArray' in found_struct}} + extSemArray : cudaExternalSemaphore_t Array of external semaphore handles. - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParams.paramsArray' in found_struct}} + + paramsArray : cudaExternalSemaphoreSignalParams Array of external semaphore signal parameters. - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParams.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- @@ -15407,44 +14586,39 @@ cdef class cudaExternalSemaphoreSignalNodeParams: def __init__(self, void_ptr _ptr = 0): pass def __dealloc__(self): - pass - {{if 'cudaExternalSemaphoreSignalNodeParams.extSemArray' in found_struct}} if self._extSemArray is not NULL: free(self._extSemArray) self._pvt_ptr[0].extSemArray = NULL - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParams.paramsArray' in found_struct}} if self._paramsArray is not NULL: free(self._paramsArray) self._pvt_ptr[0].paramsArray = NULL - {{endif}} def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreSignalNodeParams.extSemArray' in found_struct}} + try: str_list += ['extSemArray : ' + str(self.extSemArray)] except ValueError: str_list += ['extSemArray : '] - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParams.paramsArray' in found_struct}} + + try: str_list += ['paramsArray : ' + str(self.paramsArray)] except ValueError: str_list += ['paramsArray : '] - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParams.numExtSems' in found_struct}} + + try: str_list += ['numExtSems : ' + str(self.numExtSems)] except ValueError: str_list += ['numExtSems : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreSignalNodeParams.extSemArray' in found_struct}} + @property def extSemArray(self): arrs = [self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)] @@ -15467,14 +14641,19 @@ cdef class cudaExternalSemaphoreSignalNodeParams: for idx in range(len(val)): self._extSemArray[idx] = (val[idx])._pvt_ptr[0] - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParams.paramsArray' in found_struct}} + + @property def paramsArray(self): - arrs = [self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreSignalParams) for x in range(self._paramsArray_length)] - return [cudaExternalSemaphoreSignalParams(_ptr=arr) for arr in arrs] + if self._pvt_ptr[0].paramsArray == NULL: + return [] + out_paramsArray = [cudaExternalSemaphoreSignalParams() for _idx in range(self._paramsArray_length)] + for _idx in range(len(out_paramsArray)): + string.memcpy(out_paramsArray[_idx].getPtr(), &self._pvt_ptr[0].paramsArray[_idx], sizeof(cyruntime.cudaExternalSemaphoreSignalParams)) + return out_paramsArray @paramsArray.setter def paramsArray(self, val): + cdef cyruntime.cudaExternalSemaphoreSignalParams* _paramsArray_new if len(val) == 0: free(self._paramsArray) self._paramsArray = NULL @@ -15482,26 +14661,27 @@ cdef class cudaExternalSemaphoreSignalNodeParams: self._pvt_ptr[0].paramsArray = NULL else: if self._paramsArray_length != len(val): - free(self._paramsArray) - self._paramsArray = calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreSignalParams)) - if self._paramsArray is NULL: + _paramsArray_new = calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreSignalParams)) + if _paramsArray_new is NULL: raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreSignalParams))) + for idx in range(len(val)): + string.memcpy(&_paramsArray_new[idx], (val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreSignalParams)) + free(self._paramsArray) + self._paramsArray = _paramsArray_new self._paramsArray_length = len(val) - self._pvt_ptr[0].paramsArray = self._paramsArray - for idx in range(len(val)): - string.memcpy(&self._paramsArray[idx], (val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreSignalParams)) + self._pvt_ptr[0].paramsArray = _paramsArray_new + else: + for idx in range(len(val)): + string.memcpy(&self._paramsArray[idx], (val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreSignalParams)) + - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParams.numExtSems' in found_struct}} @property def numExtSems(self): return self._pvt_ptr[0].numExtSems @numExtSems.setter def numExtSems(self, unsigned int numExtSems): self._pvt_ptr[0].numExtSems = numExtSems - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreSignalNodeParamsV2' in found_struct}} + cdef class cudaExternalSemaphoreSignalNodeParamsV2: """ @@ -15509,19 +14689,19 @@ cdef class cudaExternalSemaphoreSignalNodeParamsV2: Attributes ---------- - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.extSemArray' in found_struct}} + extSemArray : cudaExternalSemaphore_t Array of external semaphore handles. - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.paramsArray' in found_struct}} + + paramsArray : cudaExternalSemaphoreSignalParams Array of external semaphore signal parameters. - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- @@ -15536,44 +14716,39 @@ cdef class cudaExternalSemaphoreSignalNodeParamsV2: def __init__(self, void_ptr _ptr = 0): pass def __dealloc__(self): - pass - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.extSemArray' in found_struct}} if self._extSemArray is not NULL: free(self._extSemArray) self._pvt_ptr[0].extSemArray = NULL - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.paramsArray' in found_struct}} if self._paramsArray is not NULL: free(self._paramsArray) self._pvt_ptr[0].paramsArray = NULL - {{endif}} def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.extSemArray' in found_struct}} + try: str_list += ['extSemArray : ' + str(self.extSemArray)] except ValueError: str_list += ['extSemArray : '] - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.paramsArray' in found_struct}} + + try: str_list += ['paramsArray : ' + str(self.paramsArray)] except ValueError: str_list += ['paramsArray : '] - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.numExtSems' in found_struct}} + + try: str_list += ['numExtSems : ' + str(self.numExtSems)] except ValueError: str_list += ['numExtSems : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.extSemArray' in found_struct}} + @property def extSemArray(self): arrs = [self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)] @@ -15596,14 +14771,19 @@ cdef class cudaExternalSemaphoreSignalNodeParamsV2: for idx in range(len(val)): self._extSemArray[idx] = (val[idx])._pvt_ptr[0] - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.paramsArray' in found_struct}} + + @property def paramsArray(self): - arrs = [self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreSignalParams) for x in range(self._paramsArray_length)] - return [cudaExternalSemaphoreSignalParams(_ptr=arr) for arr in arrs] + if self._pvt_ptr[0].paramsArray == NULL: + return [] + out_paramsArray = [cudaExternalSemaphoreSignalParams() for _idx in range(self._paramsArray_length)] + for _idx in range(len(out_paramsArray)): + string.memcpy(out_paramsArray[_idx].getPtr(), &self._pvt_ptr[0].paramsArray[_idx], sizeof(cyruntime.cudaExternalSemaphoreSignalParams)) + return out_paramsArray @paramsArray.setter def paramsArray(self, val): + cdef cyruntime.cudaExternalSemaphoreSignalParams* _paramsArray_new if len(val) == 0: free(self._paramsArray) self._paramsArray = NULL @@ -15611,26 +14791,27 @@ cdef class cudaExternalSemaphoreSignalNodeParamsV2: self._pvt_ptr[0].paramsArray = NULL else: if self._paramsArray_length != len(val): - free(self._paramsArray) - self._paramsArray = calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreSignalParams)) - if self._paramsArray is NULL: + _paramsArray_new = calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreSignalParams)) + if _paramsArray_new is NULL: raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreSignalParams))) + for idx in range(len(val)): + string.memcpy(&_paramsArray_new[idx], (val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreSignalParams)) + free(self._paramsArray) + self._paramsArray = _paramsArray_new self._paramsArray_length = len(val) - self._pvt_ptr[0].paramsArray = self._paramsArray - for idx in range(len(val)): - string.memcpy(&self._paramsArray[idx], (val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreSignalParams)) + self._pvt_ptr[0].paramsArray = _paramsArray_new + else: + for idx in range(len(val)): + string.memcpy(&self._paramsArray[idx], (val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreSignalParams)) + - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.numExtSems' in found_struct}} @property def numExtSems(self): return self._pvt_ptr[0].numExtSems @numExtSems.setter def numExtSems(self, unsigned int numExtSems): self._pvt_ptr[0].numExtSems = numExtSems - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreWaitNodeParams' in found_struct}} + cdef class cudaExternalSemaphoreWaitNodeParams: """ @@ -15638,19 +14819,19 @@ cdef class cudaExternalSemaphoreWaitNodeParams: Attributes ---------- - {{if 'cudaExternalSemaphoreWaitNodeParams.extSemArray' in found_struct}} + extSemArray : cudaExternalSemaphore_t Array of external semaphore handles. - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParams.paramsArray' in found_struct}} + + paramsArray : cudaExternalSemaphoreWaitParams Array of external semaphore wait parameters. - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParams.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- @@ -15665,44 +14846,39 @@ cdef class cudaExternalSemaphoreWaitNodeParams: def __init__(self, void_ptr _ptr = 0): pass def __dealloc__(self): - pass - {{if 'cudaExternalSemaphoreWaitNodeParams.extSemArray' in found_struct}} if self._extSemArray is not NULL: free(self._extSemArray) self._pvt_ptr[0].extSemArray = NULL - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParams.paramsArray' in found_struct}} if self._paramsArray is not NULL: free(self._paramsArray) self._pvt_ptr[0].paramsArray = NULL - {{endif}} def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreWaitNodeParams.extSemArray' in found_struct}} + try: str_list += ['extSemArray : ' + str(self.extSemArray)] except ValueError: str_list += ['extSemArray : '] - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParams.paramsArray' in found_struct}} + + try: str_list += ['paramsArray : ' + str(self.paramsArray)] except ValueError: str_list += ['paramsArray : '] - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParams.numExtSems' in found_struct}} + + try: str_list += ['numExtSems : ' + str(self.numExtSems)] except ValueError: str_list += ['numExtSems : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreWaitNodeParams.extSemArray' in found_struct}} + @property def extSemArray(self): arrs = [self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)] @@ -15725,14 +14901,19 @@ cdef class cudaExternalSemaphoreWaitNodeParams: for idx in range(len(val)): self._extSemArray[idx] = (val[idx])._pvt_ptr[0] - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParams.paramsArray' in found_struct}} + + @property def paramsArray(self): - arrs = [self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreWaitParams) for x in range(self._paramsArray_length)] - return [cudaExternalSemaphoreWaitParams(_ptr=arr) for arr in arrs] + if self._pvt_ptr[0].paramsArray == NULL: + return [] + out_paramsArray = [cudaExternalSemaphoreWaitParams() for _idx in range(self._paramsArray_length)] + for _idx in range(len(out_paramsArray)): + string.memcpy(out_paramsArray[_idx].getPtr(), &self._pvt_ptr[0].paramsArray[_idx], sizeof(cyruntime.cudaExternalSemaphoreWaitParams)) + return out_paramsArray @paramsArray.setter def paramsArray(self, val): + cdef cyruntime.cudaExternalSemaphoreWaitParams* _paramsArray_new if len(val) == 0: free(self._paramsArray) self._paramsArray = NULL @@ -15740,26 +14921,27 @@ cdef class cudaExternalSemaphoreWaitNodeParams: self._pvt_ptr[0].paramsArray = NULL else: if self._paramsArray_length != len(val): - free(self._paramsArray) - self._paramsArray = calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreWaitParams)) - if self._paramsArray is NULL: + _paramsArray_new = calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreWaitParams)) + if _paramsArray_new is NULL: raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreWaitParams))) + for idx in range(len(val)): + string.memcpy(&_paramsArray_new[idx], (val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreWaitParams)) + free(self._paramsArray) + self._paramsArray = _paramsArray_new self._paramsArray_length = len(val) - self._pvt_ptr[0].paramsArray = self._paramsArray - for idx in range(len(val)): - string.memcpy(&self._paramsArray[idx], (val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreWaitParams)) + self._pvt_ptr[0].paramsArray = _paramsArray_new + else: + for idx in range(len(val)): + string.memcpy(&self._paramsArray[idx], (val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreWaitParams)) + - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParams.numExtSems' in found_struct}} @property def numExtSems(self): return self._pvt_ptr[0].numExtSems @numExtSems.setter def numExtSems(self, unsigned int numExtSems): self._pvt_ptr[0].numExtSems = numExtSems - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreWaitNodeParamsV2' in found_struct}} + cdef class cudaExternalSemaphoreWaitNodeParamsV2: """ @@ -15767,19 +14949,19 @@ cdef class cudaExternalSemaphoreWaitNodeParamsV2: Attributes ---------- - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.extSemArray' in found_struct}} + extSemArray : cudaExternalSemaphore_t Array of external semaphore handles. - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.paramsArray' in found_struct}} + + paramsArray : cudaExternalSemaphoreWaitParams Array of external semaphore wait parameters. - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- @@ -15794,44 +14976,39 @@ cdef class cudaExternalSemaphoreWaitNodeParamsV2: def __init__(self, void_ptr _ptr = 0): pass def __dealloc__(self): - pass - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.extSemArray' in found_struct}} if self._extSemArray is not NULL: free(self._extSemArray) self._pvt_ptr[0].extSemArray = NULL - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.paramsArray' in found_struct}} if self._paramsArray is not NULL: free(self._paramsArray) self._pvt_ptr[0].paramsArray = NULL - {{endif}} def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.extSemArray' in found_struct}} + try: str_list += ['extSemArray : ' + str(self.extSemArray)] except ValueError: str_list += ['extSemArray : '] - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.paramsArray' in found_struct}} + + try: str_list += ['paramsArray : ' + str(self.paramsArray)] except ValueError: str_list += ['paramsArray : '] - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.numExtSems' in found_struct}} + + try: str_list += ['numExtSems : ' + str(self.numExtSems)] except ValueError: str_list += ['numExtSems : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.extSemArray' in found_struct}} + @property def extSemArray(self): arrs = [self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)] @@ -15854,14 +15031,19 @@ cdef class cudaExternalSemaphoreWaitNodeParamsV2: for idx in range(len(val)): self._extSemArray[idx] = (val[idx])._pvt_ptr[0] - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.paramsArray' in found_struct}} + + @property def paramsArray(self): - arrs = [self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreWaitParams) for x in range(self._paramsArray_length)] - return [cudaExternalSemaphoreWaitParams(_ptr=arr) for arr in arrs] + if self._pvt_ptr[0].paramsArray == NULL: + return [] + out_paramsArray = [cudaExternalSemaphoreWaitParams() for _idx in range(self._paramsArray_length)] + for _idx in range(len(out_paramsArray)): + string.memcpy(out_paramsArray[_idx].getPtr(), &self._pvt_ptr[0].paramsArray[_idx], sizeof(cyruntime.cudaExternalSemaphoreWaitParams)) + return out_paramsArray @paramsArray.setter def paramsArray(self, val): + cdef cyruntime.cudaExternalSemaphoreWaitParams* _paramsArray_new if len(val) == 0: free(self._paramsArray) self._paramsArray = NULL @@ -15869,26 +15051,27 @@ cdef class cudaExternalSemaphoreWaitNodeParamsV2: self._pvt_ptr[0].paramsArray = NULL else: if self._paramsArray_length != len(val): - free(self._paramsArray) - self._paramsArray = calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreWaitParams)) - if self._paramsArray is NULL: + _paramsArray_new = calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreWaitParams)) + if _paramsArray_new is NULL: raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreWaitParams))) + for idx in range(len(val)): + string.memcpy(&_paramsArray_new[idx], (val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreWaitParams)) + free(self._paramsArray) + self._paramsArray = _paramsArray_new self._paramsArray_length = len(val) - self._pvt_ptr[0].paramsArray = self._paramsArray - for idx in range(len(val)): - string.memcpy(&self._paramsArray[idx], (val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreWaitParams)) + self._pvt_ptr[0].paramsArray = _paramsArray_new + else: + for idx in range(len(val)): + string.memcpy(&self._paramsArray[idx], (val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreWaitParams)) + - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.numExtSems' in found_struct}} @property def numExtSems(self): return self._pvt_ptr[0].numExtSems @numExtSems.setter def numExtSems(self, unsigned int numExtSems): self._pvt_ptr[0].numExtSems = numExtSems - {{endif}} -{{endif}} -{{if 'cudaConditionalNodeParams' in found_struct}} + cdef class cudaConditionalNodeParams: """ @@ -15896,22 +15079,22 @@ cdef class cudaConditionalNodeParams: Attributes ---------- - {{if 'cudaConditionalNodeParams.handle' in found_struct}} + handle : cudaGraphConditionalHandle Conditional node handle. Handles must be created in advance of creating the node using cudaGraphConditionalHandleCreate. - {{endif}} - {{if 'cudaConditionalNodeParams.type' in found_struct}} + + type : cudaGraphConditionalNodeType Type of conditional node. - {{endif}} - {{if 'cudaConditionalNodeParams.size' in found_struct}} + + size : unsigned int Size of graph output array. Allowed values are 1 for cudaGraphCondTypeWhile, 1 or 2 for cudaGraphCondTypeWhile, or any value greater than zero for cudaGraphCondTypeSwitch. - {{endif}} - {{if 'cudaConditionalNodeParams.phGraph_out' in found_struct}} + + phGraph_out : cudaGraph_t CUDA-owned array populated with conditional node child graphs during creation of the node. Valid for the lifetime of the @@ -15929,7 +15112,7 @@ cdef class cudaConditionalNodeParams: condition is non-zero. cudaGraphCondTypeSwitch: phGraph_out[n] is executed when the condition is equal to n. If the condition >= `size`, no body graph is executed. - {{endif}} + Methods ------- @@ -15942,10 +15125,7 @@ cdef class cudaConditionalNodeParams: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaConditionalNodeParams.handle' in found_struct}} self._handle = cudaGraphConditionalHandle(_ptr=&self._pvt_ptr[0].handle) - {{endif}} def __dealloc__(self): pass def getPtr(self): @@ -15953,34 +15133,34 @@ cdef class cudaConditionalNodeParams: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaConditionalNodeParams.handle' in found_struct}} + try: str_list += ['handle : ' + str(self.handle)] except ValueError: str_list += ['handle : '] - {{endif}} - {{if 'cudaConditionalNodeParams.type' in found_struct}} + + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'cudaConditionalNodeParams.size' in found_struct}} + + try: str_list += ['size : ' + str(self.size)] except ValueError: str_list += ['size : '] - {{endif}} - {{if 'cudaConditionalNodeParams.phGraph_out' in found_struct}} + + try: str_list += ['phGraph_out : ' + str(self.phGraph_out)] except ValueError: str_list += ['phGraph_out : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaConditionalNodeParams.handle' in found_struct}} + @property def handle(self): return self._handle @@ -15997,31 +15177,29 @@ cdef class cudaConditionalNodeParams: cyhandle = phandle self._handle._pvt_ptr[0] = cyhandle - {{endif}} - {{if 'cudaConditionalNodeParams.type' in found_struct}} + + @property def type(self): return cudaGraphConditionalNodeType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : cudaGraphConditionalNodeType): - self._pvt_ptr[0].type = int(type) - {{endif}} - {{if 'cudaConditionalNodeParams.size' in found_struct}} + self._pvt_ptr[0].type = int(type) + + @property def size(self): return self._pvt_ptr[0].size @size.setter def size(self, unsigned int size): self._pvt_ptr[0].size = size - {{endif}} - {{if 'cudaConditionalNodeParams.phGraph_out' in found_struct}} + + @property def phGraph_out(self): arrs = [self._pvt_ptr[0].phGraph_out + x*sizeof(cyruntime.cudaGraph_t) for x in range(self.size)] return [cudaGraph_t(_ptr=arr) for arr in arrs] - {{endif}} -{{endif}} -{{if 'cudaChildGraphNodeParams' in found_struct}} + cdef class cudaChildGraphNodeParams: """ @@ -16029,18 +15207,18 @@ cdef class cudaChildGraphNodeParams: Attributes ---------- - {{if 'cudaChildGraphNodeParams.graph' in found_struct}} + graph : cudaGraph_t The child graph to clone into the node for node creation, or a handle to the graph owned by the node for node query. The graph must not contain conditional nodes. Graphs containing memory allocation or memory free nodes must set the ownership to be moved to the parent. - {{endif}} - {{if 'cudaChildGraphNodeParams.ownership' in found_struct}} + + ownership : cudaGraphChildGraphNodeOwnership The ownership relationship of the child graph node. - {{endif}} + Methods ------- @@ -16053,10 +15231,7 @@ cdef class cudaChildGraphNodeParams: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaChildGraphNodeParams.graph' in found_struct}} self._graph = cudaGraph_t(_ptr=&self._pvt_ptr[0].graph) - {{endif}} def __dealloc__(self): pass def getPtr(self): @@ -16064,22 +15239,22 @@ cdef class cudaChildGraphNodeParams: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaChildGraphNodeParams.graph' in found_struct}} + try: str_list += ['graph : ' + str(self.graph)] except ValueError: str_list += ['graph : '] - {{endif}} - {{if 'cudaChildGraphNodeParams.ownership' in found_struct}} + + try: str_list += ['ownership : ' + str(self.ownership)] except ValueError: str_list += ['ownership : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaChildGraphNodeParams.graph' in found_struct}} + @property def graph(self): return self._graph @@ -16095,17 +15270,15 @@ cdef class cudaChildGraphNodeParams: pgraph = int(cudaGraph_t(graph)) cygraph = pgraph self._graph._pvt_ptr[0] = cygraph - {{endif}} - {{if 'cudaChildGraphNodeParams.ownership' in found_struct}} + + @property def ownership(self): return cudaGraphChildGraphNodeOwnership(self._pvt_ptr[0].ownership) @ownership.setter def ownership(self, ownership not None : cudaGraphChildGraphNodeOwnership): - self._pvt_ptr[0].ownership = int(ownership) - {{endif}} -{{endif}} -{{if 'cudaEventRecordNodeParams' in found_struct}} + self._pvt_ptr[0].ownership = int(ownership) + cdef class cudaEventRecordNodeParams: """ @@ -16113,10 +15286,10 @@ cdef class cudaEventRecordNodeParams: Attributes ---------- - {{if 'cudaEventRecordNodeParams.event' in found_struct}} + event : cudaEvent_t The event to record when the node executes - {{endif}} + Methods ------- @@ -16129,10 +15302,7 @@ cdef class cudaEventRecordNodeParams: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaEventRecordNodeParams.event' in found_struct}} self._event = cudaEvent_t(_ptr=&self._pvt_ptr[0].event) - {{endif}} def __dealloc__(self): pass def getPtr(self): @@ -16140,16 +15310,16 @@ cdef class cudaEventRecordNodeParams: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaEventRecordNodeParams.event' in found_struct}} + try: str_list += ['event : ' + str(self.event)] except ValueError: str_list += ['event : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaEventRecordNodeParams.event' in found_struct}} + @property def event(self): return self._event @@ -16165,9 +15335,7 @@ cdef class cudaEventRecordNodeParams: pevent = int(cudaEvent_t(event)) cyevent = pevent self._event._pvt_ptr[0] = cyevent - {{endif}} -{{endif}} -{{if 'cudaEventWaitNodeParams' in found_struct}} + cdef class cudaEventWaitNodeParams: """ @@ -16175,10 +15343,10 @@ cdef class cudaEventWaitNodeParams: Attributes ---------- - {{if 'cudaEventWaitNodeParams.event' in found_struct}} + event : cudaEvent_t The event to wait on from the node - {{endif}} + Methods ------- @@ -16191,10 +15359,7 @@ cdef class cudaEventWaitNodeParams: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaEventWaitNodeParams.event' in found_struct}} self._event = cudaEvent_t(_ptr=&self._pvt_ptr[0].event) - {{endif}} def __dealloc__(self): pass def getPtr(self): @@ -16202,16 +15367,16 @@ cdef class cudaEventWaitNodeParams: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaEventWaitNodeParams.event' in found_struct}} + try: str_list += ['event : ' + str(self.event)] except ValueError: str_list += ['event : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaEventWaitNodeParams.event' in found_struct}} + @property def event(self): return self._event @@ -16227,9 +15392,7 @@ cdef class cudaEventWaitNodeParams: pevent = int(cudaEvent_t(event)) cyevent = pevent self._event._pvt_ptr[0] = cyevent - {{endif}} -{{endif}} -{{if 'cudaGraphNodeParams' in found_struct}} + cdef class cudaGraphNodeParams: """ @@ -16237,70 +15400,58 @@ cdef class cudaGraphNodeParams: Attributes ---------- - {{if 'cudaGraphNodeParams.type' in found_struct}} + type : cudaGraphNodeType Type of the node - {{endif}} - {{if 'cudaGraphNodeParams.reserved0' in found_struct}} - reserved0 : list[int] - Reserved. Must be zero. - {{endif}} - {{if 'cudaGraphNodeParams.reserved1' in found_struct}} - reserved1 : list[long long] - Padding. Unused bytes must be zero. - {{endif}} - {{if 'cudaGraphNodeParams.kernel' in found_struct}} + + kernel : cudaKernelNodeParamsV2 Kernel node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.memcpy' in found_struct}} + + memcpy : cudaMemcpyNodeParams Memcpy node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.memset' in found_struct}} + + memset : cudaMemsetParamsV2 Memset node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.host' in found_struct}} + + host : cudaHostNodeParamsV2 Host node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.graph' in found_struct}} + + graph : cudaChildGraphNodeParams Child graph node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.eventWait' in found_struct}} + + eventWait : cudaEventWaitNodeParams Event wait node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.eventRecord' in found_struct}} + + eventRecord : cudaEventRecordNodeParams Event record node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.extSemSignal' in found_struct}} + + extSemSignal : cudaExternalSemaphoreSignalNodeParamsV2 External semaphore signal node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.extSemWait' in found_struct}} + + extSemWait : cudaExternalSemaphoreWaitNodeParamsV2 External semaphore wait node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.alloc' in found_struct}} + + alloc : cudaMemAllocNodeParamsV2 Memory allocation node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.free' in found_struct}} + + free : cudaMemFreeNodeParams Memory free node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.conditional' in found_struct}} + + conditional : cudaConditionalNodeParams Conditional node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.reserved2' in found_struct}} - reserved2 : long long - Reserved bytes. Must be zero. - {{endif}} + Methods ------- @@ -16314,44 +15465,43 @@ cdef class cudaGraphNodeParams: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaGraphNodeParams.kernel' in found_struct}} self._kernel = cudaKernelNodeParamsV2(_ptr=&self._pvt_ptr[0].kernel) - {{endif}} - {{if 'cudaGraphNodeParams.memcpy' in found_struct}} + self._kernel._owner = self self._memcpy = cudaMemcpyNodeParams(_ptr=&self._pvt_ptr[0].memcpy) - {{endif}} - {{if 'cudaGraphNodeParams.memset' in found_struct}} + self._memcpy._owner = self self._memset = cudaMemsetParamsV2(_ptr=&self._pvt_ptr[0].memset) - {{endif}} - {{if 'cudaGraphNodeParams.host' in found_struct}} + self._memset._owner = self self._host = cudaHostNodeParamsV2(_ptr=&self._pvt_ptr[0].host) - {{endif}} - {{if 'cudaGraphNodeParams.graph' in found_struct}} + self._host._owner = self self._graph = cudaChildGraphNodeParams(_ptr=&self._pvt_ptr[0].graph) - {{endif}} - {{if 'cudaGraphNodeParams.eventWait' in found_struct}} + self._graph._owner = self self._eventWait = cudaEventWaitNodeParams(_ptr=&self._pvt_ptr[0].eventWait) - {{endif}} - {{if 'cudaGraphNodeParams.eventRecord' in found_struct}} + self._eventWait._owner = self self._eventRecord = cudaEventRecordNodeParams(_ptr=&self._pvt_ptr[0].eventRecord) - {{endif}} - {{if 'cudaGraphNodeParams.extSemSignal' in found_struct}} + self._eventRecord._owner = self self._extSemSignal = cudaExternalSemaphoreSignalNodeParamsV2(_ptr=&self._pvt_ptr[0].extSemSignal) - {{endif}} - {{if 'cudaGraphNodeParams.extSemWait' in found_struct}} + self._extSemSignal._owner = self self._extSemWait = cudaExternalSemaphoreWaitNodeParamsV2(_ptr=&self._pvt_ptr[0].extSemWait) - {{endif}} - {{if 'cudaGraphNodeParams.alloc' in found_struct}} + self._extSemWait._owner = self self._alloc = cudaMemAllocNodeParamsV2(_ptr=&self._pvt_ptr[0].alloc) - {{endif}} - {{if 'cudaGraphNodeParams.free' in found_struct}} + self._alloc._owner = self self._free = cudaMemFreeNodeParams(_ptr=&self._pvt_ptr[0].free) - {{endif}} - {{if 'cudaGraphNodeParams.conditional' in found_struct}} + self._free._owner = self self._conditional = cudaConditionalNodeParams(_ptr=&self._pvt_ptr[0].conditional) - {{endif}} + self._conditional._owner = self def __dealloc__(self): + self._kernel = None + self._memcpy = None + self._memset = None + self._host = None + self._graph = None + self._eventWait = None + self._eventRecord = None + self._extSemSignal = None + self._extSemWait = None + self._alloc = None + self._free = None + self._conditional = None if self._val_ptr is not NULL: free(self._val_ptr) def getPtr(self): @@ -16359,235 +15509,191 @@ cdef class cudaGraphNodeParams: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaGraphNodeParams.type' in found_struct}} + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'cudaGraphNodeParams.reserved0' in found_struct}} - try: - str_list += ['reserved0 : ' + str(self.reserved0)] - except ValueError: - str_list += ['reserved0 : '] - {{endif}} - {{if 'cudaGraphNodeParams.reserved1' in found_struct}} - try: - str_list += ['reserved1 : ' + str(self.reserved1)] - except ValueError: - str_list += ['reserved1 : '] - {{endif}} - {{if 'cudaGraphNodeParams.kernel' in found_struct}} + + try: str_list += ['kernel :\n' + '\n'.join([' ' + line for line in str(self.kernel).splitlines()])] except ValueError: str_list += ['kernel : '] - {{endif}} - {{if 'cudaGraphNodeParams.memcpy' in found_struct}} + + try: str_list += ['memcpy :\n' + '\n'.join([' ' + line for line in str(self.memcpy).splitlines()])] except ValueError: str_list += ['memcpy : '] - {{endif}} - {{if 'cudaGraphNodeParams.memset' in found_struct}} + + try: str_list += ['memset :\n' + '\n'.join([' ' + line for line in str(self.memset).splitlines()])] except ValueError: str_list += ['memset : '] - {{endif}} - {{if 'cudaGraphNodeParams.host' in found_struct}} + + try: str_list += ['host :\n' + '\n'.join([' ' + line for line in str(self.host).splitlines()])] except ValueError: str_list += ['host : '] - {{endif}} - {{if 'cudaGraphNodeParams.graph' in found_struct}} + + try: str_list += ['graph :\n' + '\n'.join([' ' + line for line in str(self.graph).splitlines()])] except ValueError: str_list += ['graph : '] - {{endif}} - {{if 'cudaGraphNodeParams.eventWait' in found_struct}} + + try: str_list += ['eventWait :\n' + '\n'.join([' ' + line for line in str(self.eventWait).splitlines()])] except ValueError: str_list += ['eventWait : '] - {{endif}} - {{if 'cudaGraphNodeParams.eventRecord' in found_struct}} + + try: str_list += ['eventRecord :\n' + '\n'.join([' ' + line for line in str(self.eventRecord).splitlines()])] except ValueError: str_list += ['eventRecord : '] - {{endif}} - {{if 'cudaGraphNodeParams.extSemSignal' in found_struct}} + + try: str_list += ['extSemSignal :\n' + '\n'.join([' ' + line for line in str(self.extSemSignal).splitlines()])] except ValueError: str_list += ['extSemSignal : '] - {{endif}} - {{if 'cudaGraphNodeParams.extSemWait' in found_struct}} + + try: str_list += ['extSemWait :\n' + '\n'.join([' ' + line for line in str(self.extSemWait).splitlines()])] except ValueError: str_list += ['extSemWait : '] - {{endif}} - {{if 'cudaGraphNodeParams.alloc' in found_struct}} + + try: str_list += ['alloc :\n' + '\n'.join([' ' + line for line in str(self.alloc).splitlines()])] except ValueError: str_list += ['alloc : '] - {{endif}} - {{if 'cudaGraphNodeParams.free' in found_struct}} + + try: str_list += ['free :\n' + '\n'.join([' ' + line for line in str(self.free).splitlines()])] except ValueError: str_list += ['free : '] - {{endif}} - {{if 'cudaGraphNodeParams.conditional' in found_struct}} + + try: str_list += ['conditional :\n' + '\n'.join([' ' + line for line in str(self.conditional).splitlines()])] except ValueError: str_list += ['conditional : '] - {{endif}} - {{if 'cudaGraphNodeParams.reserved2' in found_struct}} - try: - str_list += ['reserved2 : ' + str(self.reserved2)] - except ValueError: - str_list += ['reserved2 : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaGraphNodeParams.type' in found_struct}} + @property def type(self): return cudaGraphNodeType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : cudaGraphNodeType): - self._pvt_ptr[0].type = int(type) - {{endif}} - {{if 'cudaGraphNodeParams.reserved0' in found_struct}} - @property - def reserved0(self): - return self._pvt_ptr[0].reserved0 - @reserved0.setter - def reserved0(self, reserved0): - self._pvt_ptr[0].reserved0 = reserved0 - {{endif}} - {{if 'cudaGraphNodeParams.reserved1' in found_struct}} - @property - def reserved1(self): - return self._pvt_ptr[0].reserved1 - @reserved1.setter - def reserved1(self, reserved1): - self._pvt_ptr[0].reserved1 = reserved1 - {{endif}} - {{if 'cudaGraphNodeParams.kernel' in found_struct}} + self._pvt_ptr[0].type = int(type) + + @property def kernel(self): return self._kernel @kernel.setter def kernel(self, kernel not None : cudaKernelNodeParamsV2): string.memcpy(&self._pvt_ptr[0].kernel, kernel.getPtr(), sizeof(self._pvt_ptr[0].kernel)) - {{endif}} - {{if 'cudaGraphNodeParams.memcpy' in found_struct}} + + @property def memcpy(self): return self._memcpy @memcpy.setter def memcpy(self, memcpy not None : cudaMemcpyNodeParams): string.memcpy(&self._pvt_ptr[0].memcpy, memcpy.getPtr(), sizeof(self._pvt_ptr[0].memcpy)) - {{endif}} - {{if 'cudaGraphNodeParams.memset' in found_struct}} + + @property def memset(self): return self._memset @memset.setter def memset(self, memset not None : cudaMemsetParamsV2): string.memcpy(&self._pvt_ptr[0].memset, memset.getPtr(), sizeof(self._pvt_ptr[0].memset)) - {{endif}} - {{if 'cudaGraphNodeParams.host' in found_struct}} + + @property def host(self): return self._host @host.setter def host(self, host not None : cudaHostNodeParamsV2): string.memcpy(&self._pvt_ptr[0].host, host.getPtr(), sizeof(self._pvt_ptr[0].host)) - {{endif}} - {{if 'cudaGraphNodeParams.graph' in found_struct}} + + @property def graph(self): return self._graph @graph.setter def graph(self, graph not None : cudaChildGraphNodeParams): string.memcpy(&self._pvt_ptr[0].graph, graph.getPtr(), sizeof(self._pvt_ptr[0].graph)) - {{endif}} - {{if 'cudaGraphNodeParams.eventWait' in found_struct}} + + @property def eventWait(self): return self._eventWait @eventWait.setter def eventWait(self, eventWait not None : cudaEventWaitNodeParams): string.memcpy(&self._pvt_ptr[0].eventWait, eventWait.getPtr(), sizeof(self._pvt_ptr[0].eventWait)) - {{endif}} - {{if 'cudaGraphNodeParams.eventRecord' in found_struct}} + + @property def eventRecord(self): return self._eventRecord @eventRecord.setter def eventRecord(self, eventRecord not None : cudaEventRecordNodeParams): string.memcpy(&self._pvt_ptr[0].eventRecord, eventRecord.getPtr(), sizeof(self._pvt_ptr[0].eventRecord)) - {{endif}} - {{if 'cudaGraphNodeParams.extSemSignal' in found_struct}} + + @property def extSemSignal(self): return self._extSemSignal @extSemSignal.setter def extSemSignal(self, extSemSignal not None : cudaExternalSemaphoreSignalNodeParamsV2): string.memcpy(&self._pvt_ptr[0].extSemSignal, extSemSignal.getPtr(), sizeof(self._pvt_ptr[0].extSemSignal)) - {{endif}} - {{if 'cudaGraphNodeParams.extSemWait' in found_struct}} + + @property def extSemWait(self): return self._extSemWait @extSemWait.setter def extSemWait(self, extSemWait not None : cudaExternalSemaphoreWaitNodeParamsV2): string.memcpy(&self._pvt_ptr[0].extSemWait, extSemWait.getPtr(), sizeof(self._pvt_ptr[0].extSemWait)) - {{endif}} - {{if 'cudaGraphNodeParams.alloc' in found_struct}} + + @property def alloc(self): return self._alloc @alloc.setter def alloc(self, alloc not None : cudaMemAllocNodeParamsV2): string.memcpy(&self._pvt_ptr[0].alloc, alloc.getPtr(), sizeof(self._pvt_ptr[0].alloc)) - {{endif}} - {{if 'cudaGraphNodeParams.free' in found_struct}} + + @property def free(self): return self._free @free.setter def free(self, free not None : cudaMemFreeNodeParams): string.memcpy(&self._pvt_ptr[0].free, free.getPtr(), sizeof(self._pvt_ptr[0].free)) - {{endif}} - {{if 'cudaGraphNodeParams.conditional' in found_struct}} + + @property def conditional(self): return self._conditional @conditional.setter def conditional(self, conditional not None : cudaConditionalNodeParams): string.memcpy(&self._pvt_ptr[0].conditional, conditional.getPtr(), sizeof(self._pvt_ptr[0].conditional)) - {{endif}} - {{if 'cudaGraphNodeParams.reserved2' in found_struct}} - @property - def reserved2(self): - return self._pvt_ptr[0].reserved2 - @reserved2.setter - def reserved2(self, long long reserved2): - self._pvt_ptr[0].reserved2 = reserved2 - {{endif}} -{{endif}} -{{if 'cudaGraphEdgeData_st' in found_struct}} + cdef class cudaGraphEdgeData_st: """ @@ -16598,7 +15704,7 @@ cdef class cudaGraphEdgeData_st: Attributes ---------- - {{if 'cudaGraphEdgeData_st.from_port' in found_struct}} + from_port : bytes This indicates when the dependency is triggered from the upstream node on the edge. The meaning is specfic to the node type. A value @@ -16609,8 +15715,8 @@ cdef class cudaGraphEdgeData_st: cudaGraphKernelNodePortDefault, cudaGraphKernelNodePortProgrammatic, or cudaGraphKernelNodePortLaunchCompletion. - {{endif}} - {{if 'cudaGraphEdgeData_st.to_port' in found_struct}} + + to_port : bytes This indicates what portion of the downstream node is dependent on the upstream node or portion thereof (indicated by `from_port`). @@ -16618,18 +15724,13 @@ cdef class cudaGraphEdgeData_st: means the entirety of the downstream node is dependent on the upstream work. Currently no node types define non-zero ports. Accordingly, this field must be set to zero. - {{endif}} - {{if 'cudaGraphEdgeData_st.type' in found_struct}} + + type : bytes This should be populated with a value from cudaGraphDependencyType. (It is typed as char due to compiler-specific layout of bitfields.) See cudaGraphDependencyType. - {{endif}} - {{if 'cudaGraphEdgeData_st.reserved' in found_struct}} - reserved : bytes - These bytes are unused and must be zeroed. This ensures - compatibility if additional fields are added in the future. - {{endif}} + Methods ------- @@ -16650,70 +15751,51 @@ cdef class cudaGraphEdgeData_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaGraphEdgeData_st.from_port' in found_struct}} + try: str_list += ['from_port : ' + str(self.from_port)] except ValueError: str_list += ['from_port : '] - {{endif}} - {{if 'cudaGraphEdgeData_st.to_port' in found_struct}} + + try: str_list += ['to_port : ' + str(self.to_port)] except ValueError: str_list += ['to_port : '] - {{endif}} - {{if 'cudaGraphEdgeData_st.type' in found_struct}} + + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'cudaGraphEdgeData_st.reserved' in found_struct}} - try: - str_list += ['reserved : ' + str(self.reserved)] - except ValueError: - str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaGraphEdgeData_st.from_port' in found_struct}} + @property def from_port(self): return self._pvt_ptr[0].from_port @from_port.setter def from_port(self, unsigned char from_port): self._pvt_ptr[0].from_port = from_port - {{endif}} - {{if 'cudaGraphEdgeData_st.to_port' in found_struct}} + + @property def to_port(self): return self._pvt_ptr[0].to_port @to_port.setter def to_port(self, unsigned char to_port): self._pvt_ptr[0].to_port = to_port - {{endif}} - {{if 'cudaGraphEdgeData_st.type' in found_struct}} + + @property def type(self): return self._pvt_ptr[0].type @type.setter def type(self, unsigned char type): self._pvt_ptr[0].type = type - {{endif}} - {{if 'cudaGraphEdgeData_st.reserved' in found_struct}} - @property - def reserved(self): - return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 5) - @reserved.setter - def reserved(self, reserved): - if len(reserved) != 5: - raise ValueError("reserved length must be 5, is " + str(len(reserved))) - for i, b in enumerate(reserved): - self._pvt_ptr[0].reserved[i] = b - {{endif}} -{{endif}} -{{if 'cudaGraphInstantiateParams_st' in found_struct}} + cdef class cudaGraphInstantiateParams_st: """ @@ -16721,22 +15803,22 @@ cdef class cudaGraphInstantiateParams_st: Attributes ---------- - {{if 'cudaGraphInstantiateParams_st.flags' in found_struct}} + flags : unsigned long long Instantiation flags - {{endif}} - {{if 'cudaGraphInstantiateParams_st.uploadStream' in found_struct}} + + uploadStream : cudaStream_t Upload stream - {{endif}} - {{if 'cudaGraphInstantiateParams_st.errNode_out' in found_struct}} + + errNode_out : cudaGraphNode_t The node which caused instantiation to fail, if any - {{endif}} - {{if 'cudaGraphInstantiateParams_st.result_out' in found_struct}} + + result_out : cudaGraphInstantiateResult Whether instantiation was successful. If it failed, the reason why - {{endif}} + Methods ------- @@ -16749,13 +15831,8 @@ cdef class cudaGraphInstantiateParams_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaGraphInstantiateParams_st.uploadStream' in found_struct}} self._uploadStream = cudaStream_t(_ptr=&self._pvt_ptr[0].uploadStream) - {{endif}} - {{if 'cudaGraphInstantiateParams_st.errNode_out' in found_struct}} self._errNode_out = cudaGraphNode_t(_ptr=&self._pvt_ptr[0].errNode_out) - {{endif}} def __dealloc__(self): pass def getPtr(self): @@ -16763,42 +15840,42 @@ cdef class cudaGraphInstantiateParams_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaGraphInstantiateParams_st.flags' in found_struct}} + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'cudaGraphInstantiateParams_st.uploadStream' in found_struct}} + + try: str_list += ['uploadStream : ' + str(self.uploadStream)] except ValueError: str_list += ['uploadStream : '] - {{endif}} - {{if 'cudaGraphInstantiateParams_st.errNode_out' in found_struct}} + + try: str_list += ['errNode_out : ' + str(self.errNode_out)] except ValueError: str_list += ['errNode_out : '] - {{endif}} - {{if 'cudaGraphInstantiateParams_st.result_out' in found_struct}} + + try: str_list += ['result_out : ' + str(self.result_out)] except ValueError: str_list += ['result_out : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaGraphInstantiateParams_st.flags' in found_struct}} + @property def flags(self): return self._pvt_ptr[0].flags @flags.setter def flags(self, unsigned long long flags): self._pvt_ptr[0].flags = flags - {{endif}} - {{if 'cudaGraphInstantiateParams_st.uploadStream' in found_struct}} + + @property def uploadStream(self): return self._uploadStream @@ -16814,8 +15891,8 @@ cdef class cudaGraphInstantiateParams_st: puploadStream = int(cudaStream_t(uploadStream)) cyuploadStream = puploadStream self._uploadStream._pvt_ptr[0] = cyuploadStream - {{endif}} - {{if 'cudaGraphInstantiateParams_st.errNode_out' in found_struct}} + + @property def errNode_out(self): return self._errNode_out @@ -16831,17 +15908,15 @@ cdef class cudaGraphInstantiateParams_st: perrNode_out = int(cudaGraphNode_t(errNode_out)) cyerrNode_out = perrNode_out self._errNode_out._pvt_ptr[0] = cyerrNode_out - {{endif}} - {{if 'cudaGraphInstantiateParams_st.result_out' in found_struct}} + + @property def result_out(self): return cudaGraphInstantiateResult(self._pvt_ptr[0].result_out) @result_out.setter def result_out(self, result_out not None : cudaGraphInstantiateResult): - self._pvt_ptr[0].result_out = int(result_out) - {{endif}} -{{endif}} -{{if 'cudaGraphExecUpdateResultInfo_st' in found_struct}} + self._pvt_ptr[0].result_out = int(result_out) + cdef class cudaGraphExecUpdateResultInfo_st: """ @@ -16849,21 +15924,21 @@ cdef class cudaGraphExecUpdateResultInfo_st: Attributes ---------- - {{if 'cudaGraphExecUpdateResultInfo_st.result' in found_struct}} + result : cudaGraphExecUpdateResult Gives more specific detail when a cuda graph update fails. - {{endif}} - {{if 'cudaGraphExecUpdateResultInfo_st.errorNode' in found_struct}} + + errorNode : cudaGraphNode_t The "to node" of the error edge when the topologies do not match. The error node when the error is associated with a specific node. NULL when the error is generic. - {{endif}} - {{if 'cudaGraphExecUpdateResultInfo_st.errorFromNode' in found_struct}} + + errorFromNode : cudaGraphNode_t The from node of error edge when the topologies do not match. Otherwise NULL. - {{endif}} + Methods ------- @@ -16876,13 +15951,8 @@ cdef class cudaGraphExecUpdateResultInfo_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaGraphExecUpdateResultInfo_st.errorNode' in found_struct}} self._errorNode = cudaGraphNode_t(_ptr=&self._pvt_ptr[0].errorNode) - {{endif}} - {{if 'cudaGraphExecUpdateResultInfo_st.errorFromNode' in found_struct}} self._errorFromNode = cudaGraphNode_t(_ptr=&self._pvt_ptr[0].errorFromNode) - {{endif}} def __dealloc__(self): pass def getPtr(self): @@ -16890,36 +15960,36 @@ cdef class cudaGraphExecUpdateResultInfo_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaGraphExecUpdateResultInfo_st.result' in found_struct}} + try: str_list += ['result : ' + str(self.result)] except ValueError: str_list += ['result : '] - {{endif}} - {{if 'cudaGraphExecUpdateResultInfo_st.errorNode' in found_struct}} + + try: str_list += ['errorNode : ' + str(self.errorNode)] except ValueError: str_list += ['errorNode : '] - {{endif}} - {{if 'cudaGraphExecUpdateResultInfo_st.errorFromNode' in found_struct}} + + try: str_list += ['errorFromNode : ' + str(self.errorFromNode)] except ValueError: str_list += ['errorFromNode : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaGraphExecUpdateResultInfo_st.result' in found_struct}} + @property def result(self): return cudaGraphExecUpdateResult(self._pvt_ptr[0].result) @result.setter def result(self, result not None : cudaGraphExecUpdateResult): - self._pvt_ptr[0].result = int(result) - {{endif}} - {{if 'cudaGraphExecUpdateResultInfo_st.errorNode' in found_struct}} + self._pvt_ptr[0].result = int(result) + + @property def errorNode(self): return self._errorNode @@ -16935,8 +16005,8 @@ cdef class cudaGraphExecUpdateResultInfo_st: perrorNode = int(cudaGraphNode_t(errorNode)) cyerrorNode = perrorNode self._errorNode._pvt_ptr[0] = cyerrorNode - {{endif}} - {{if 'cudaGraphExecUpdateResultInfo_st.errorFromNode' in found_struct}} + + @property def errorFromNode(self): return self._errorFromNode @@ -16952,26 +16022,24 @@ cdef class cudaGraphExecUpdateResultInfo_st: perrorFromNode = int(cudaGraphNode_t(errorFromNode)) cyerrorFromNode = perrorFromNode self._errorFromNode._pvt_ptr[0] = cyerrorFromNode - {{endif}} -{{endif}} -{{if 'cudaGraphKernelNodeUpdate.updateData.param' in found_struct}} + cdef class anon_struct21: """ Attributes ---------- - {{if 'cudaGraphKernelNodeUpdate.updateData.param.pValue' in found_struct}} + pValue : Any - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param.offset' in found_struct}} + + offset : size_t - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param.size' in found_struct}} + + size : size_t - {{endif}} + Methods ------- @@ -16990,28 +16058,28 @@ cdef class anon_struct21: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaGraphKernelNodeUpdate.updateData.param.pValue' in found_struct}} + try: str_list += ['pValue : ' + hex(self.pValue)] except ValueError: str_list += ['pValue : '] - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param.offset' in found_struct}} + + try: str_list += ['offset : ' + str(self.offset)] except ValueError: str_list += ['offset : '] - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param.size' in found_struct}} + + try: str_list += ['size : ' + str(self.size)] except ValueError: str_list += ['size : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaGraphKernelNodeUpdate.updateData.param.pValue' in found_struct}} + @property def pValue(self): return self._pvt_ptr[0].updateData.param.pValue @@ -17019,42 +16087,40 @@ cdef class anon_struct21: def pValue(self, pValue): self._cypValue = _HelperInputVoidPtr(pValue) self._pvt_ptr[0].updateData.param.pValue = self._cypValue.cptr - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param.offset' in found_struct}} + + @property def offset(self): return self._pvt_ptr[0].updateData.param.offset @offset.setter def offset(self, size_t offset): self._pvt_ptr[0].updateData.param.offset = offset - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param.size' in found_struct}} + + @property def size(self): return self._pvt_ptr[0].updateData.param.size @size.setter def size(self, size_t size): self._pvt_ptr[0].updateData.param.size = size - {{endif}} -{{endif}} -{{if 'cudaGraphKernelNodeUpdate.updateData' in found_struct}} + cdef class anon_union9: """ Attributes ---------- - {{if 'cudaGraphKernelNodeUpdate.updateData.gridDim' in found_struct}} + gridDim : dim3 - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param' in found_struct}} + + param : anon_struct21 - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.isEnabled' in found_struct}} + + isEnabled : unsigned int - {{endif}} + Methods ------- @@ -17065,67 +16131,63 @@ cdef class anon_union9: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - {{if 'cudaGraphKernelNodeUpdate.updateData.gridDim' in found_struct}} self._gridDim = dim3(_ptr=&self._pvt_ptr[0].updateData.gridDim) - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param' in found_struct}} + self._gridDim._owner = self self._param = anon_struct21(_ptr=self._pvt_ptr) - {{endif}} + self._param._owner = self def __dealloc__(self): - pass + self._gridDim = None + self._param = None def getPtr(self): return &self._pvt_ptr[0].updateData def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaGraphKernelNodeUpdate.updateData.gridDim' in found_struct}} + try: str_list += ['gridDim :\n' + '\n'.join([' ' + line for line in str(self.gridDim).splitlines()])] except ValueError: str_list += ['gridDim : '] - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param' in found_struct}} + + try: str_list += ['param :\n' + '\n'.join([' ' + line for line in str(self.param).splitlines()])] except ValueError: str_list += ['param : '] - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.isEnabled' in found_struct}} + + try: str_list += ['isEnabled : ' + str(self.isEnabled)] except ValueError: str_list += ['isEnabled : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaGraphKernelNodeUpdate.updateData.gridDim' in found_struct}} + @property def gridDim(self): return self._gridDim @gridDim.setter def gridDim(self, gridDim not None : dim3): string.memcpy(&self._pvt_ptr[0].updateData.gridDim, gridDim.getPtr(), sizeof(self._pvt_ptr[0].updateData.gridDim)) - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param' in found_struct}} + + @property def param(self): return self._param @param.setter def param(self, param not None : anon_struct21): string.memcpy(&self._pvt_ptr[0].updateData.param, param.getPtr(), sizeof(self._pvt_ptr[0].updateData.param)) - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.isEnabled' in found_struct}} + + @property def isEnabled(self): return self._pvt_ptr[0].updateData.isEnabled @isEnabled.setter def isEnabled(self, unsigned int isEnabled): self._pvt_ptr[0].updateData.isEnabled = isEnabled - {{endif}} -{{endif}} -{{if 'cudaGraphKernelNodeUpdate' in found_struct}} + cdef class cudaGraphKernelNodeUpdate: """ @@ -17134,19 +16196,19 @@ cdef class cudaGraphKernelNodeUpdate: Attributes ---------- - {{if 'cudaGraphKernelNodeUpdate.node' in found_struct}} + node : cudaGraphDeviceNode_t Node to update - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.field' in found_struct}} + + field : cudaGraphKernelNodeField Which type of update to apply. Determines how updateData is interpreted - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData' in found_struct}} + + updateData : anon_union9 Update data to apply. Which field is used depends on field's value - {{endif}} + Methods ------- @@ -17160,14 +16222,11 @@ cdef class cudaGraphKernelNodeUpdate: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaGraphKernelNodeUpdate.node' in found_struct}} self._node = cudaGraphDeviceNode_t(_ptr=&self._pvt_ptr[0].node) - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData' in found_struct}} self._updateData = anon_union9(_ptr=self._pvt_ptr) - {{endif}} + self._updateData._owner = self def __dealloc__(self): + self._updateData = None if self._val_ptr is not NULL: free(self._val_ptr) def getPtr(self): @@ -17175,28 +16234,28 @@ cdef class cudaGraphKernelNodeUpdate: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaGraphKernelNodeUpdate.node' in found_struct}} + try: str_list += ['node : ' + str(self.node)] except ValueError: str_list += ['node : '] - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.field' in found_struct}} + + try: str_list += ['field : ' + str(self.field)] except ValueError: str_list += ['field : '] - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData' in found_struct}} + + try: str_list += ['updateData :\n' + '\n'.join([' ' + line for line in str(self.updateData).splitlines()])] except ValueError: str_list += ['updateData : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaGraphKernelNodeUpdate.node' in found_struct}} + @property def node(self): return self._node @@ -17212,25 +16271,23 @@ cdef class cudaGraphKernelNodeUpdate: pnode = int(cudaGraphDeviceNode_t(node)) cynode = pnode self._node._pvt_ptr[0] = cynode - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.field' in found_struct}} + + @property def field(self): return cudaGraphKernelNodeField(self._pvt_ptr[0].field) @field.setter def field(self, field not None : cudaGraphKernelNodeField): - self._pvt_ptr[0].field = int(field) - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData' in found_struct}} + self._pvt_ptr[0].field = int(field) + + @property def updateData(self): return self._updateData @updateData.setter def updateData(self, updateData not None : anon_union9): string.memcpy(&self._pvt_ptr[0].updateData, updateData.getPtr(), sizeof(self._pvt_ptr[0].updateData)) - {{endif}} -{{endif}} -{{if 'cudaLaunchMemSyncDomainMap_st' in found_struct}} + cdef class cudaLaunchMemSyncDomainMap_st: """ @@ -17244,14 +16301,14 @@ cdef class cudaLaunchMemSyncDomainMap_st: Attributes ---------- - {{if 'cudaLaunchMemSyncDomainMap_st.default_' in found_struct}} + default_ : bytes The default domain ID to use for designated kernels - {{endif}} - {{if 'cudaLaunchMemSyncDomainMap_st.remote' in found_struct}} + + remote : bytes The remote domain ID to use for designated kernels - {{endif}} + Methods ------- @@ -17272,56 +16329,54 @@ cdef class cudaLaunchMemSyncDomainMap_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaLaunchMemSyncDomainMap_st.default_' in found_struct}} + try: str_list += ['default_ : ' + str(self.default_)] except ValueError: str_list += ['default_ : '] - {{endif}} - {{if 'cudaLaunchMemSyncDomainMap_st.remote' in found_struct}} + + try: str_list += ['remote : ' + str(self.remote)] except ValueError: str_list += ['remote : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaLaunchMemSyncDomainMap_st.default_' in found_struct}} + @property def default_(self): return self._pvt_ptr[0].default_ @default_.setter def default_(self, unsigned char default_): self._pvt_ptr[0].default_ = default_ - {{endif}} - {{if 'cudaLaunchMemSyncDomainMap_st.remote' in found_struct}} + + @property def remote(self): return self._pvt_ptr[0].remote @remote.setter def remote(self, unsigned char remote): self._pvt_ptr[0].remote = remote - {{endif}} -{{endif}} -{{if 'cudaLaunchAttributeValue.clusterDim' in found_struct}} + cdef class anon_struct22: """ Attributes ---------- - {{if 'cudaLaunchAttributeValue.clusterDim.x' in found_struct}} + x : unsigned int - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim.y' in found_struct}} + + y : unsigned int - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim.z' in found_struct}} + + z : unsigned int - {{endif}} + Methods ------- @@ -17340,70 +16395,68 @@ cdef class anon_struct22: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaLaunchAttributeValue.clusterDim.x' in found_struct}} + try: str_list += ['x : ' + str(self.x)] except ValueError: str_list += ['x : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim.y' in found_struct}} + + try: str_list += ['y : ' + str(self.y)] except ValueError: str_list += ['y : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim.z' in found_struct}} + + try: str_list += ['z : ' + str(self.z)] except ValueError: str_list += ['z : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaLaunchAttributeValue.clusterDim.x' in found_struct}} + @property def x(self): return self._pvt_ptr[0].clusterDim.x @x.setter def x(self, unsigned int x): self._pvt_ptr[0].clusterDim.x = x - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim.y' in found_struct}} + + @property def y(self): return self._pvt_ptr[0].clusterDim.y @y.setter def y(self, unsigned int y): self._pvt_ptr[0].clusterDim.y = y - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim.z' in found_struct}} + + @property def z(self): return self._pvt_ptr[0].clusterDim.z @z.setter def z(self, unsigned int z): self._pvt_ptr[0].clusterDim.z = z - {{endif}} -{{endif}} -{{if 'cudaLaunchAttributeValue.programmaticEvent' in found_struct}} + cdef class anon_struct23: """ Attributes ---------- - {{if 'cudaLaunchAttributeValue.programmaticEvent.event' in found_struct}} + event : cudaEvent_t - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent.flags' in found_struct}} + + flags : int - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent.triggerAtBlockStart' in found_struct}} + + triggerAtBlockStart : int - {{endif}} + Methods ------- @@ -17414,10 +16467,7 @@ cdef class anon_struct23: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - {{if 'cudaLaunchAttributeValue.programmaticEvent.event' in found_struct}} self._event = cudaEvent_t(_ptr=&self._pvt_ptr[0].programmaticEvent.event) - {{endif}} def __dealloc__(self): pass def getPtr(self): @@ -17425,28 +16475,28 @@ cdef class anon_struct23: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaLaunchAttributeValue.programmaticEvent.event' in found_struct}} + try: str_list += ['event : ' + str(self.event)] except ValueError: str_list += ['event : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent.triggerAtBlockStart' in found_struct}} + + try: str_list += ['triggerAtBlockStart : ' + str(self.triggerAtBlockStart)] except ValueError: str_list += ['triggerAtBlockStart : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaLaunchAttributeValue.programmaticEvent.event' in found_struct}} + @property def event(self): return self._event @@ -17462,42 +16512,40 @@ cdef class anon_struct23: pevent = int(cudaEvent_t(event)) cyevent = pevent self._event._pvt_ptr[0] = cyevent - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].programmaticEvent.flags @flags.setter def flags(self, int flags): self._pvt_ptr[0].programmaticEvent.flags = flags - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent.triggerAtBlockStart' in found_struct}} + + @property def triggerAtBlockStart(self): return self._pvt_ptr[0].programmaticEvent.triggerAtBlockStart @triggerAtBlockStart.setter def triggerAtBlockStart(self, int triggerAtBlockStart): self._pvt_ptr[0].programmaticEvent.triggerAtBlockStart = triggerAtBlockStart - {{endif}} -{{endif}} -{{if 'cudaLaunchAttributeValue.preferredClusterDim' in found_struct}} + cdef class anon_struct24: """ Attributes ---------- - {{if 'cudaLaunchAttributeValue.preferredClusterDim.x' in found_struct}} + x : unsigned int - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim.y' in found_struct}} + + y : unsigned int - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim.z' in found_struct}} + + z : unsigned int - {{endif}} + Methods ------- @@ -17516,66 +16564,64 @@ cdef class anon_struct24: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaLaunchAttributeValue.preferredClusterDim.x' in found_struct}} + try: str_list += ['x : ' + str(self.x)] except ValueError: str_list += ['x : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim.y' in found_struct}} + + try: str_list += ['y : ' + str(self.y)] except ValueError: str_list += ['y : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim.z' in found_struct}} + + try: str_list += ['z : ' + str(self.z)] except ValueError: str_list += ['z : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaLaunchAttributeValue.preferredClusterDim.x' in found_struct}} + @property def x(self): return self._pvt_ptr[0].preferredClusterDim.x @x.setter def x(self, unsigned int x): self._pvt_ptr[0].preferredClusterDim.x = x - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim.y' in found_struct}} + + @property def y(self): return self._pvt_ptr[0].preferredClusterDim.y @y.setter def y(self, unsigned int y): self._pvt_ptr[0].preferredClusterDim.y = y - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim.z' in found_struct}} + + @property def z(self): return self._pvt_ptr[0].preferredClusterDim.z @z.setter def z(self, unsigned int z): self._pvt_ptr[0].preferredClusterDim.z = z - {{endif}} -{{endif}} -{{if 'cudaLaunchAttributeValue.launchCompletionEvent' in found_struct}} + cdef class anon_struct25: """ Attributes ---------- - {{if 'cudaLaunchAttributeValue.launchCompletionEvent.event' in found_struct}} + event : cudaEvent_t - {{endif}} - {{if 'cudaLaunchAttributeValue.launchCompletionEvent.flags' in found_struct}} + + flags : int - {{endif}} + Methods ------- @@ -17586,10 +16632,7 @@ cdef class anon_struct25: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - {{if 'cudaLaunchAttributeValue.launchCompletionEvent.event' in found_struct}} self._event = cudaEvent_t(_ptr=&self._pvt_ptr[0].launchCompletionEvent.event) - {{endif}} def __dealloc__(self): pass def getPtr(self): @@ -17597,22 +16640,22 @@ cdef class anon_struct25: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaLaunchAttributeValue.launchCompletionEvent.event' in found_struct}} + try: str_list += ['event : ' + str(self.event)] except ValueError: str_list += ['event : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.launchCompletionEvent.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaLaunchAttributeValue.launchCompletionEvent.event' in found_struct}} + @property def event(self): return self._event @@ -17628,30 +16671,28 @@ cdef class anon_struct25: pevent = int(cudaEvent_t(event)) cyevent = pevent self._event._pvt_ptr[0] = cyevent - {{endif}} - {{if 'cudaLaunchAttributeValue.launchCompletionEvent.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].launchCompletionEvent.flags @flags.setter def flags(self, int flags): self._pvt_ptr[0].launchCompletionEvent.flags = flags - {{endif}} -{{endif}} -{{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode' in found_struct}} + cdef class anon_struct26: """ Attributes ---------- - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode.deviceUpdatable' in found_struct}} + deviceUpdatable : int - {{endif}} - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode.devNode' in found_struct}} + + devNode : cudaGraphDeviceNode_t - {{endif}} + Methods ------- @@ -17662,10 +16703,7 @@ cdef class anon_struct26: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode.devNode' in found_struct}} self._devNode = cudaGraphDeviceNode_t(_ptr=&self._pvt_ptr[0].deviceUpdatableKernelNode.devNode) - {{endif}} def __dealloc__(self): pass def getPtr(self): @@ -17673,30 +16711,30 @@ cdef class anon_struct26: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode.deviceUpdatable' in found_struct}} + try: str_list += ['deviceUpdatable : ' + str(self.deviceUpdatable)] except ValueError: str_list += ['deviceUpdatable : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode.devNode' in found_struct}} + + try: str_list += ['devNode : ' + str(self.devNode)] except ValueError: str_list += ['devNode : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode.deviceUpdatable' in found_struct}} + @property def deviceUpdatable(self): return self._pvt_ptr[0].deviceUpdatableKernelNode.deviceUpdatable @deviceUpdatable.setter def deviceUpdatable(self, int deviceUpdatable): self._pvt_ptr[0].deviceUpdatableKernelNode.deviceUpdatable = deviceUpdatable - {{endif}} - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode.devNode' in found_struct}} + + @property def devNode(self): return self._devNode @@ -17712,9 +16750,7 @@ cdef class anon_struct26: pdevNode = int(cudaGraphDeviceNode_t(devNode)) cydevNode = pdevNode self._devNode._pvt_ptr[0] = cydevNode - {{endif}} -{{endif}} -{{if 'cudaLaunchAttributeValue' in found_struct}} + cdef class cudaLaunchAttributeValue: """ @@ -17722,25 +16758,25 @@ cdef class cudaLaunchAttributeValue: Attributes ---------- - {{if 'cudaLaunchAttributeValue.pad' in found_struct}} + pad : bytes - {{endif}} - {{if 'cudaLaunchAttributeValue.accessPolicyWindow' in found_struct}} + + accessPolicyWindow : cudaAccessPolicyWindow Value of launch attribute cudaLaunchAttributeAccessPolicyWindow. - {{endif}} - {{if 'cudaLaunchAttributeValue.cooperative' in found_struct}} + + cooperative : int Value of launch attribute cudaLaunchAttributeCooperative. Nonzero indicates a cooperative kernel (see cudaLaunchCooperativeKernel). - {{endif}} - {{if 'cudaLaunchAttributeValue.syncPolicy' in found_struct}} + + syncPolicy : cudaSynchronizationPolicy Value of launch attribute cudaLaunchAttributeSynchronizationPolicy. cudaSynchronizationPolicy for work queued up in this stream. - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim' in found_struct}} + + clusterDim : anon_struct22 Value of launch attribute cudaLaunchAttributeClusterDimension that represents the desired cluster dimensions for the kernel. Opaque @@ -17749,19 +16785,19 @@ cdef class cudaLaunchAttributeValue: `y` - The Y dimension of the cluster, in blocks. Must be a divisor of the grid Y dimension. - `z` - The Z dimension of the cluster, in blocks. Must be a divisor of the grid Z dimension. - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterSchedulingPolicyPreference' in found_struct}} + + clusterSchedulingPolicyPreference : cudaClusterSchedulingPolicy Value of launch attribute cudaLaunchAttributeClusterSchedulingPolicyPreference. Cluster scheduling policy preference for the kernel. - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticStreamSerializationAllowed' in found_struct}} + + programmaticStreamSerializationAllowed : int Value of launch attribute cudaLaunchAttributeProgrammaticStreamSerialization. - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent' in found_struct}} + + programmaticEvent : anon_struct23 Value of launch attribute cudaLaunchAttributeProgrammaticEvent with the following fields: - `cudaEvent_t` event - Event to fire when @@ -17769,23 +16805,23 @@ cdef class cudaLaunchAttributeValue: cudaEventRecordWithFlags. Does not accept cudaEventRecordExternal. - `int` triggerAtBlockStart - If this is set to non-0, each block launch will automatically trigger the event. - {{endif}} - {{if 'cudaLaunchAttributeValue.priority' in found_struct}} + + priority : int Value of launch attribute cudaLaunchAttributePriority. Execution priority of the kernel. - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomainMap' in found_struct}} + + memSyncDomainMap : cudaLaunchMemSyncDomainMap Value of launch attribute cudaLaunchAttributeMemSyncDomainMap. See cudaLaunchMemSyncDomainMap. - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomain' in found_struct}} + + memSyncDomain : cudaLaunchMemSyncDomain Value of launch attribute cudaLaunchAttributeMemSyncDomain. See cudaLaunchMemSyncDomain. - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim' in found_struct}} + + preferredClusterDim : anon_struct24 Value of launch attribute cudaLaunchAttributePreferredClusterDimension that represents the @@ -17793,22 +16829,22 @@ cdef class cudaLaunchAttributeValue: with the following fields: - `x` - The X dimension of the preferred cluster, in blocks. Must be a divisor of the grid X dimension, and must be a multiple of the `x` field of - ::cudaLaunchAttributeValue::clusterDim. - `y` - The Y dimension - of the preferred cluster, in blocks. Must be a divisor of the grid - Y dimension, and must be a multiple of the `y` field of - ::cudaLaunchAttributeValue::clusterDim. - `z` - The Z dimension - of the preferred cluster, in blocks. Must be equal to the `z` field - of ::cudaLaunchAttributeValue::clusterDim. - {{endif}} - {{if 'cudaLaunchAttributeValue.launchCompletionEvent' in found_struct}} + cudaLaunchAttributeValue::clusterDim. - `y` - The Y dimension of + the preferred cluster, in blocks. Must be a divisor of the grid Y + dimension, and must be a multiple of the `y` field of + cudaLaunchAttributeValue::clusterDim. - `z` - The Z dimension of + the preferred cluster, in blocks. Must be equal to the `z` field of + cudaLaunchAttributeValue::clusterDim. + + launchCompletionEvent : anon_struct25 Value of launch attribute cudaLaunchAttributeLaunchCompletionEvent with the following fields: - `cudaEvent_t` event - Event to fire when the last block launches. - `int` flags - Event record flags, see cudaEventRecordWithFlags. Does not accept cudaEventRecordExternal. - {{endif}} - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode' in found_struct}} + + deviceUpdatableKernelNode : anon_struct26 Value of launch attribute cudaLaunchAttributeDeviceUpdatableKernelNode with the following @@ -17816,12 +16852,12 @@ cdef class cudaLaunchAttributeValue: kernel node should be device-updatable. - `cudaGraphDeviceNode_t` devNode - Returns a handle to pass to the various device-side update functions. - {{endif}} - {{if 'cudaLaunchAttributeValue.sharedMemCarveout' in found_struct}} + + sharedMemCarveout : unsigned int Value of launch attribute cudaLaunchAttributePreferredSharedMemoryCarveout. - {{endif}} + Methods ------- @@ -17834,129 +16870,127 @@ cdef class cudaLaunchAttributeValue: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaLaunchAttributeValue.accessPolicyWindow' in found_struct}} self._accessPolicyWindow = cudaAccessPolicyWindow(_ptr=&self._pvt_ptr[0].accessPolicyWindow) - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim' in found_struct}} + self._accessPolicyWindow._owner = self self._clusterDim = anon_struct22(_ptr=self._pvt_ptr) - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent' in found_struct}} + self._clusterDim._owner = self self._programmaticEvent = anon_struct23(_ptr=self._pvt_ptr) - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomainMap' in found_struct}} + self._programmaticEvent._owner = self self._memSyncDomainMap = cudaLaunchMemSyncDomainMap(_ptr=&self._pvt_ptr[0].memSyncDomainMap) - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim' in found_struct}} + self._memSyncDomainMap._owner = self self._preferredClusterDim = anon_struct24(_ptr=self._pvt_ptr) - {{endif}} - {{if 'cudaLaunchAttributeValue.launchCompletionEvent' in found_struct}} + self._preferredClusterDim._owner = self self._launchCompletionEvent = anon_struct25(_ptr=self._pvt_ptr) - {{endif}} - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode' in found_struct}} + self._launchCompletionEvent._owner = self self._deviceUpdatableKernelNode = anon_struct26(_ptr=self._pvt_ptr) - {{endif}} + self._deviceUpdatableKernelNode._owner = self def __dealloc__(self): - pass + self._accessPolicyWindow = None + self._clusterDim = None + self._programmaticEvent = None + self._memSyncDomainMap = None + self._preferredClusterDim = None + self._launchCompletionEvent = None + self._deviceUpdatableKernelNode = None def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaLaunchAttributeValue.pad' in found_struct}} + try: str_list += ['pad : ' + str(self.pad)] except ValueError: str_list += ['pad : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.accessPolicyWindow' in found_struct}} + + try: str_list += ['accessPolicyWindow :\n' + '\n'.join([' ' + line for line in str(self.accessPolicyWindow).splitlines()])] except ValueError: str_list += ['accessPolicyWindow : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.cooperative' in found_struct}} + + try: str_list += ['cooperative : ' + str(self.cooperative)] except ValueError: str_list += ['cooperative : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.syncPolicy' in found_struct}} + + try: str_list += ['syncPolicy : ' + str(self.syncPolicy)] except ValueError: str_list += ['syncPolicy : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim' in found_struct}} + + try: str_list += ['clusterDim :\n' + '\n'.join([' ' + line for line in str(self.clusterDim).splitlines()])] except ValueError: str_list += ['clusterDim : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterSchedulingPolicyPreference' in found_struct}} + + try: str_list += ['clusterSchedulingPolicyPreference : ' + str(self.clusterSchedulingPolicyPreference)] except ValueError: str_list += ['clusterSchedulingPolicyPreference : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticStreamSerializationAllowed' in found_struct}} + + try: str_list += ['programmaticStreamSerializationAllowed : ' + str(self.programmaticStreamSerializationAllowed)] except ValueError: str_list += ['programmaticStreamSerializationAllowed : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent' in found_struct}} + + try: str_list += ['programmaticEvent :\n' + '\n'.join([' ' + line for line in str(self.programmaticEvent).splitlines()])] except ValueError: str_list += ['programmaticEvent : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.priority' in found_struct}} + + try: str_list += ['priority : ' + str(self.priority)] except ValueError: str_list += ['priority : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomainMap' in found_struct}} + + try: str_list += ['memSyncDomainMap :\n' + '\n'.join([' ' + line for line in str(self.memSyncDomainMap).splitlines()])] except ValueError: str_list += ['memSyncDomainMap : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomain' in found_struct}} + + try: str_list += ['memSyncDomain : ' + str(self.memSyncDomain)] except ValueError: str_list += ['memSyncDomain : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim' in found_struct}} + + try: str_list += ['preferredClusterDim :\n' + '\n'.join([' ' + line for line in str(self.preferredClusterDim).splitlines()])] except ValueError: str_list += ['preferredClusterDim : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.launchCompletionEvent' in found_struct}} + + try: str_list += ['launchCompletionEvent :\n' + '\n'.join([' ' + line for line in str(self.launchCompletionEvent).splitlines()])] except ValueError: str_list += ['launchCompletionEvent : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode' in found_struct}} + + try: str_list += ['deviceUpdatableKernelNode :\n' + '\n'.join([' ' + line for line in str(self.deviceUpdatableKernelNode).splitlines()])] except ValueError: str_list += ['deviceUpdatableKernelNode : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.sharedMemCarveout' in found_struct}} + + try: str_list += ['sharedMemCarveout : ' + str(self.sharedMemCarveout)] except ValueError: str_list += ['sharedMemCarveout : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaLaunchAttributeValue.pad' in found_struct}} + @property def pad(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0].pad, 64) @@ -17974,121 +17008,119 @@ cdef class cudaLaunchAttributeValue: if b > 127 and b < 256: b = b - 256 self._pvt_ptr[0].pad[i] = b - {{endif}} - {{if 'cudaLaunchAttributeValue.accessPolicyWindow' in found_struct}} + + @property def accessPolicyWindow(self): return self._accessPolicyWindow @accessPolicyWindow.setter def accessPolicyWindow(self, accessPolicyWindow not None : cudaAccessPolicyWindow): string.memcpy(&self._pvt_ptr[0].accessPolicyWindow, accessPolicyWindow.getPtr(), sizeof(self._pvt_ptr[0].accessPolicyWindow)) - {{endif}} - {{if 'cudaLaunchAttributeValue.cooperative' in found_struct}} + + @property def cooperative(self): return self._pvt_ptr[0].cooperative @cooperative.setter def cooperative(self, int cooperative): self._pvt_ptr[0].cooperative = cooperative - {{endif}} - {{if 'cudaLaunchAttributeValue.syncPolicy' in found_struct}} + + @property def syncPolicy(self): return cudaSynchronizationPolicy(self._pvt_ptr[0].syncPolicy) @syncPolicy.setter def syncPolicy(self, syncPolicy not None : cudaSynchronizationPolicy): - self._pvt_ptr[0].syncPolicy = int(syncPolicy) - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim' in found_struct}} + self._pvt_ptr[0].syncPolicy = int(syncPolicy) + + @property def clusterDim(self): return self._clusterDim @clusterDim.setter def clusterDim(self, clusterDim not None : anon_struct22): string.memcpy(&self._pvt_ptr[0].clusterDim, clusterDim.getPtr(), sizeof(self._pvt_ptr[0].clusterDim)) - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterSchedulingPolicyPreference' in found_struct}} + + @property def clusterSchedulingPolicyPreference(self): return cudaClusterSchedulingPolicy(self._pvt_ptr[0].clusterSchedulingPolicyPreference) @clusterSchedulingPolicyPreference.setter def clusterSchedulingPolicyPreference(self, clusterSchedulingPolicyPreference not None : cudaClusterSchedulingPolicy): - self._pvt_ptr[0].clusterSchedulingPolicyPreference = int(clusterSchedulingPolicyPreference) - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticStreamSerializationAllowed' in found_struct}} + self._pvt_ptr[0].clusterSchedulingPolicyPreference = int(clusterSchedulingPolicyPreference) + + @property def programmaticStreamSerializationAllowed(self): return self._pvt_ptr[0].programmaticStreamSerializationAllowed @programmaticStreamSerializationAllowed.setter def programmaticStreamSerializationAllowed(self, int programmaticStreamSerializationAllowed): self._pvt_ptr[0].programmaticStreamSerializationAllowed = programmaticStreamSerializationAllowed - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent' in found_struct}} + + @property def programmaticEvent(self): return self._programmaticEvent @programmaticEvent.setter def programmaticEvent(self, programmaticEvent not None : anon_struct23): string.memcpy(&self._pvt_ptr[0].programmaticEvent, programmaticEvent.getPtr(), sizeof(self._pvt_ptr[0].programmaticEvent)) - {{endif}} - {{if 'cudaLaunchAttributeValue.priority' in found_struct}} + + @property def priority(self): return self._pvt_ptr[0].priority @priority.setter def priority(self, int priority): self._pvt_ptr[0].priority = priority - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomainMap' in found_struct}} + + @property def memSyncDomainMap(self): return self._memSyncDomainMap @memSyncDomainMap.setter def memSyncDomainMap(self, memSyncDomainMap not None : cudaLaunchMemSyncDomainMap): string.memcpy(&self._pvt_ptr[0].memSyncDomainMap, memSyncDomainMap.getPtr(), sizeof(self._pvt_ptr[0].memSyncDomainMap)) - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomain' in found_struct}} + + @property def memSyncDomain(self): return cudaLaunchMemSyncDomain(self._pvt_ptr[0].memSyncDomain) @memSyncDomain.setter def memSyncDomain(self, memSyncDomain not None : cudaLaunchMemSyncDomain): - self._pvt_ptr[0].memSyncDomain = int(memSyncDomain) - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim' in found_struct}} + self._pvt_ptr[0].memSyncDomain = int(memSyncDomain) + + @property def preferredClusterDim(self): return self._preferredClusterDim @preferredClusterDim.setter def preferredClusterDim(self, preferredClusterDim not None : anon_struct24): string.memcpy(&self._pvt_ptr[0].preferredClusterDim, preferredClusterDim.getPtr(), sizeof(self._pvt_ptr[0].preferredClusterDim)) - {{endif}} - {{if 'cudaLaunchAttributeValue.launchCompletionEvent' in found_struct}} + + @property def launchCompletionEvent(self): return self._launchCompletionEvent @launchCompletionEvent.setter def launchCompletionEvent(self, launchCompletionEvent not None : anon_struct25): string.memcpy(&self._pvt_ptr[0].launchCompletionEvent, launchCompletionEvent.getPtr(), sizeof(self._pvt_ptr[0].launchCompletionEvent)) - {{endif}} - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode' in found_struct}} + + @property def deviceUpdatableKernelNode(self): return self._deviceUpdatableKernelNode @deviceUpdatableKernelNode.setter def deviceUpdatableKernelNode(self, deviceUpdatableKernelNode not None : anon_struct26): string.memcpy(&self._pvt_ptr[0].deviceUpdatableKernelNode, deviceUpdatableKernelNode.getPtr(), sizeof(self._pvt_ptr[0].deviceUpdatableKernelNode)) - {{endif}} - {{if 'cudaLaunchAttributeValue.sharedMemCarveout' in found_struct}} + + @property def sharedMemCarveout(self): return self._pvt_ptr[0].sharedMemCarveout @sharedMemCarveout.setter def sharedMemCarveout(self, unsigned int sharedMemCarveout): self._pvt_ptr[0].sharedMemCarveout = sharedMemCarveout - {{endif}} -{{endif}} -{{if 'cudaLaunchAttribute_st' in found_struct}} + cdef class cudaLaunchAttribute_st: """ @@ -18096,14 +17128,14 @@ cdef class cudaLaunchAttribute_st: Attributes ---------- - {{if 'cudaLaunchAttribute_st.id' in found_struct}} + id : cudaLaunchAttributeID Attribute to set - {{endif}} - {{if 'cudaLaunchAttribute_st.val' in found_struct}} + + val : cudaLaunchAttributeValue Value of the attribute - {{endif}} + Methods ------- @@ -18116,59 +17148,55 @@ cdef class cudaLaunchAttribute_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaLaunchAttribute_st.val' in found_struct}} self._val = cudaLaunchAttributeValue(_ptr=&self._pvt_ptr[0].val) - {{endif}} + self._val._owner = self def __dealloc__(self): - pass + self._val = None def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaLaunchAttribute_st.id' in found_struct}} + try: str_list += ['id : ' + str(self.id)] except ValueError: str_list += ['id : '] - {{endif}} - {{if 'cudaLaunchAttribute_st.val' in found_struct}} + + try: str_list += ['val :\n' + '\n'.join([' ' + line for line in str(self.val).splitlines()])] except ValueError: str_list += ['val : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaLaunchAttribute_st.id' in found_struct}} + @property def id(self): return cudaLaunchAttributeID(self._pvt_ptr[0].id) @id.setter def id(self, id not None : cudaLaunchAttributeID): - self._pvt_ptr[0].id = int(id) - {{endif}} - {{if 'cudaLaunchAttribute_st.val' in found_struct}} + self._pvt_ptr[0].id = int(id) + + @property def val(self): return self._val @val.setter def val(self, val not None : cudaLaunchAttributeValue): string.memcpy(&self._pvt_ptr[0].val, val.getPtr(), sizeof(self._pvt_ptr[0].val)) - {{endif}} -{{endif}} -{{if 'cudaAsyncNotificationInfo.info.overBudget' in found_struct}} + cdef class anon_struct27: """ Attributes ---------- - {{if 'cudaAsyncNotificationInfo.info.overBudget.bytesOverBudget' in found_struct}} + bytesOverBudget : unsigned long long - {{endif}} + Methods ------- @@ -18187,34 +17215,32 @@ cdef class anon_struct27: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaAsyncNotificationInfo.info.overBudget.bytesOverBudget' in found_struct}} + try: str_list += ['bytesOverBudget : ' + str(self.bytesOverBudget)] except ValueError: str_list += ['bytesOverBudget : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaAsyncNotificationInfo.info.overBudget.bytesOverBudget' in found_struct}} + @property def bytesOverBudget(self): return self._pvt_ptr[0].info.overBudget.bytesOverBudget @bytesOverBudget.setter def bytesOverBudget(self, unsigned long long bytesOverBudget): self._pvt_ptr[0].info.overBudget.bytesOverBudget = bytesOverBudget - {{endif}} -{{endif}} -{{if 'cudaAsyncNotificationInfo.info' in found_struct}} + cdef class anon_union10: """ Attributes ---------- - {{if 'cudaAsyncNotificationInfo.info.overBudget' in found_struct}} + overBudget : anon_struct27 - {{endif}} + Methods ------- @@ -18225,36 +17251,32 @@ cdef class anon_union10: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr): - pass - {{if 'cudaAsyncNotificationInfo.info.overBudget' in found_struct}} self._overBudget = anon_struct27(_ptr=self._pvt_ptr) - {{endif}} + self._overBudget._owner = self def __dealloc__(self): - pass + self._overBudget = None def getPtr(self): return &self._pvt_ptr[0].info def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaAsyncNotificationInfo.info.overBudget' in found_struct}} + try: str_list += ['overBudget :\n' + '\n'.join([' ' + line for line in str(self.overBudget).splitlines()])] except ValueError: str_list += ['overBudget : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaAsyncNotificationInfo.info.overBudget' in found_struct}} + @property def overBudget(self): return self._overBudget @overBudget.setter def overBudget(self, overBudget not None : anon_struct27): string.memcpy(&self._pvt_ptr[0].info.overBudget, overBudget.getPtr(), sizeof(self._pvt_ptr[0].info.overBudget)) - {{endif}} -{{endif}} -{{if 'cudaAsyncNotificationInfo' in found_struct}} + cdef class cudaAsyncNotificationInfo: """ @@ -18262,15 +17284,15 @@ cdef class cudaAsyncNotificationInfo: Attributes ---------- - {{if 'cudaAsyncNotificationInfo.type' in found_struct}} + type : cudaAsyncNotificationType The type of notification being sent - {{endif}} - {{if 'cudaAsyncNotificationInfo.info' in found_struct}} + + info : anon_union10 Information about the notification. `typename` must be checked in order to interpret this field. - {{endif}} + Methods ------- @@ -18284,11 +17306,10 @@ cdef class cudaAsyncNotificationInfo: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if 'cudaAsyncNotificationInfo.info' in found_struct}} self._info = anon_union10(_ptr=self._pvt_ptr) - {{endif}} + self._info._owner = self def __dealloc__(self): + self._info = None if self._val_ptr is not NULL: free(self._val_ptr) def getPtr(self): @@ -18296,39 +17317,37 @@ cdef class cudaAsyncNotificationInfo: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaAsyncNotificationInfo.type' in found_struct}} + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'cudaAsyncNotificationInfo.info' in found_struct}} + + try: str_list += ['info :\n' + '\n'.join([' ' + line for line in str(self.info).splitlines()])] except ValueError: str_list += ['info : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaAsyncNotificationInfo.type' in found_struct}} + @property def type(self): return cudaAsyncNotificationType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : cudaAsyncNotificationType): - self._pvt_ptr[0].type = int(type) - {{endif}} - {{if 'cudaAsyncNotificationInfo.info' in found_struct}} + self._pvt_ptr[0].type = int(type) + + @property def info(self): return self._info @info.setter def info(self, info not None : anon_union10): string.memcpy(&self._pvt_ptr[0].info, info.getPtr(), sizeof(self._pvt_ptr[0].info)) - {{endif}} -{{endif}} -{{if 'cudaTextureDesc' in found_struct}} + cdef class cudaTextureDesc: """ @@ -18336,58 +17355,58 @@ cdef class cudaTextureDesc: Attributes ---------- - {{if 'cudaTextureDesc.addressMode' in found_struct}} + addressMode : list[cudaTextureAddressMode] Texture address mode for up to 3 dimensions - {{endif}} - {{if 'cudaTextureDesc.filterMode' in found_struct}} + + filterMode : cudaTextureFilterMode Texture filter mode - {{endif}} - {{if 'cudaTextureDesc.readMode' in found_struct}} + + readMode : cudaTextureReadMode Texture read mode - {{endif}} - {{if 'cudaTextureDesc.sRGB' in found_struct}} + + sRGB : int Perform sRGB->linear conversion during texture read - {{endif}} - {{if 'cudaTextureDesc.borderColor' in found_struct}} + + borderColor : list[float] Texture Border Color - {{endif}} - {{if 'cudaTextureDesc.normalizedCoords' in found_struct}} + + normalizedCoords : int Indicates whether texture reads are normalized or not - {{endif}} - {{if 'cudaTextureDesc.maxAnisotropy' in found_struct}} + + maxAnisotropy : unsigned int Limit to the anisotropy ratio - {{endif}} - {{if 'cudaTextureDesc.mipmapFilterMode' in found_struct}} + + mipmapFilterMode : cudaTextureFilterMode Mipmap filter mode - {{endif}} - {{if 'cudaTextureDesc.mipmapLevelBias' in found_struct}} + + mipmapLevelBias : float Offset applied to the supplied mipmap level - {{endif}} - {{if 'cudaTextureDesc.minMipmapLevelClamp' in found_struct}} + + minMipmapLevelClamp : float Lower end of the mipmap level range to clamp access to - {{endif}} - {{if 'cudaTextureDesc.maxMipmapLevelClamp' in found_struct}} + + maxMipmapLevelClamp : float Upper end of the mipmap level range to clamp access to - {{endif}} - {{if 'cudaTextureDesc.disableTrilinearOptimization' in found_struct}} + + disableTrilinearOptimization : int Disable any trilinear filtering optimizations. - {{endif}} - {{if 'cudaTextureDesc.seamlessCubemap' in found_struct}} + + seamlessCubemap : int Enable seamless cube map filtering. - {{endif}} + Methods ------- @@ -18408,193 +17427,191 @@ cdef class cudaTextureDesc: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaTextureDesc.addressMode' in found_struct}} + try: str_list += ['addressMode : ' + str(self.addressMode)] except ValueError: str_list += ['addressMode : '] - {{endif}} - {{if 'cudaTextureDesc.filterMode' in found_struct}} + + try: str_list += ['filterMode : ' + str(self.filterMode)] except ValueError: str_list += ['filterMode : '] - {{endif}} - {{if 'cudaTextureDesc.readMode' in found_struct}} + + try: str_list += ['readMode : ' + str(self.readMode)] except ValueError: str_list += ['readMode : '] - {{endif}} - {{if 'cudaTextureDesc.sRGB' in found_struct}} + + try: str_list += ['sRGB : ' + str(self.sRGB)] except ValueError: str_list += ['sRGB : '] - {{endif}} - {{if 'cudaTextureDesc.borderColor' in found_struct}} + + try: str_list += ['borderColor : ' + str(self.borderColor)] except ValueError: str_list += ['borderColor : '] - {{endif}} - {{if 'cudaTextureDesc.normalizedCoords' in found_struct}} + + try: str_list += ['normalizedCoords : ' + str(self.normalizedCoords)] except ValueError: str_list += ['normalizedCoords : '] - {{endif}} - {{if 'cudaTextureDesc.maxAnisotropy' in found_struct}} + + try: str_list += ['maxAnisotropy : ' + str(self.maxAnisotropy)] except ValueError: str_list += ['maxAnisotropy : '] - {{endif}} - {{if 'cudaTextureDesc.mipmapFilterMode' in found_struct}} + + try: str_list += ['mipmapFilterMode : ' + str(self.mipmapFilterMode)] except ValueError: str_list += ['mipmapFilterMode : '] - {{endif}} - {{if 'cudaTextureDesc.mipmapLevelBias' in found_struct}} + + try: str_list += ['mipmapLevelBias : ' + str(self.mipmapLevelBias)] except ValueError: str_list += ['mipmapLevelBias : '] - {{endif}} - {{if 'cudaTextureDesc.minMipmapLevelClamp' in found_struct}} + + try: str_list += ['minMipmapLevelClamp : ' + str(self.minMipmapLevelClamp)] except ValueError: str_list += ['minMipmapLevelClamp : '] - {{endif}} - {{if 'cudaTextureDesc.maxMipmapLevelClamp' in found_struct}} + + try: str_list += ['maxMipmapLevelClamp : ' + str(self.maxMipmapLevelClamp)] except ValueError: str_list += ['maxMipmapLevelClamp : '] - {{endif}} - {{if 'cudaTextureDesc.disableTrilinearOptimization' in found_struct}} + + try: str_list += ['disableTrilinearOptimization : ' + str(self.disableTrilinearOptimization)] except ValueError: str_list += ['disableTrilinearOptimization : '] - {{endif}} - {{if 'cudaTextureDesc.seamlessCubemap' in found_struct}} + + try: str_list += ['seamlessCubemap : ' + str(self.seamlessCubemap)] except ValueError: str_list += ['seamlessCubemap : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaTextureDesc.addressMode' in found_struct}} + @property def addressMode(self): return [cudaTextureAddressMode(_x) for _x in list(self._pvt_ptr[0].addressMode)] @addressMode.setter def addressMode(self, addressMode): self._pvt_ptr[0].addressMode = [int(_x) for _x in addressMode] - {{endif}} - {{if 'cudaTextureDesc.filterMode' in found_struct}} + + @property def filterMode(self): return cudaTextureFilterMode(self._pvt_ptr[0].filterMode) @filterMode.setter def filterMode(self, filterMode not None : cudaTextureFilterMode): - self._pvt_ptr[0].filterMode = int(filterMode) - {{endif}} - {{if 'cudaTextureDesc.readMode' in found_struct}} + self._pvt_ptr[0].filterMode = int(filterMode) + + @property def readMode(self): return cudaTextureReadMode(self._pvt_ptr[0].readMode) @readMode.setter def readMode(self, readMode not None : cudaTextureReadMode): - self._pvt_ptr[0].readMode = int(readMode) - {{endif}} - {{if 'cudaTextureDesc.sRGB' in found_struct}} + self._pvt_ptr[0].readMode = int(readMode) + + @property def sRGB(self): return self._pvt_ptr[0].sRGB @sRGB.setter def sRGB(self, int sRGB): self._pvt_ptr[0].sRGB = sRGB - {{endif}} - {{if 'cudaTextureDesc.borderColor' in found_struct}} + + @property def borderColor(self): return self._pvt_ptr[0].borderColor @borderColor.setter def borderColor(self, borderColor): self._pvt_ptr[0].borderColor = borderColor - {{endif}} - {{if 'cudaTextureDesc.normalizedCoords' in found_struct}} + + @property def normalizedCoords(self): return self._pvt_ptr[0].normalizedCoords @normalizedCoords.setter def normalizedCoords(self, int normalizedCoords): self._pvt_ptr[0].normalizedCoords = normalizedCoords - {{endif}} - {{if 'cudaTextureDesc.maxAnisotropy' in found_struct}} + + @property def maxAnisotropy(self): return self._pvt_ptr[0].maxAnisotropy @maxAnisotropy.setter def maxAnisotropy(self, unsigned int maxAnisotropy): self._pvt_ptr[0].maxAnisotropy = maxAnisotropy - {{endif}} - {{if 'cudaTextureDesc.mipmapFilterMode' in found_struct}} + + @property def mipmapFilterMode(self): return cudaTextureFilterMode(self._pvt_ptr[0].mipmapFilterMode) @mipmapFilterMode.setter def mipmapFilterMode(self, mipmapFilterMode not None : cudaTextureFilterMode): - self._pvt_ptr[0].mipmapFilterMode = int(mipmapFilterMode) - {{endif}} - {{if 'cudaTextureDesc.mipmapLevelBias' in found_struct}} + self._pvt_ptr[0].mipmapFilterMode = int(mipmapFilterMode) + + @property def mipmapLevelBias(self): return self._pvt_ptr[0].mipmapLevelBias @mipmapLevelBias.setter def mipmapLevelBias(self, float mipmapLevelBias): self._pvt_ptr[0].mipmapLevelBias = mipmapLevelBias - {{endif}} - {{if 'cudaTextureDesc.minMipmapLevelClamp' in found_struct}} + + @property def minMipmapLevelClamp(self): return self._pvt_ptr[0].minMipmapLevelClamp @minMipmapLevelClamp.setter def minMipmapLevelClamp(self, float minMipmapLevelClamp): self._pvt_ptr[0].minMipmapLevelClamp = minMipmapLevelClamp - {{endif}} - {{if 'cudaTextureDesc.maxMipmapLevelClamp' in found_struct}} + + @property def maxMipmapLevelClamp(self): return self._pvt_ptr[0].maxMipmapLevelClamp @maxMipmapLevelClamp.setter def maxMipmapLevelClamp(self, float maxMipmapLevelClamp): self._pvt_ptr[0].maxMipmapLevelClamp = maxMipmapLevelClamp - {{endif}} - {{if 'cudaTextureDesc.disableTrilinearOptimization' in found_struct}} + + @property def disableTrilinearOptimization(self): return self._pvt_ptr[0].disableTrilinearOptimization @disableTrilinearOptimization.setter def disableTrilinearOptimization(self, int disableTrilinearOptimization): self._pvt_ptr[0].disableTrilinearOptimization = disableTrilinearOptimization - {{endif}} - {{if 'cudaTextureDesc.seamlessCubemap' in found_struct}} + + @property def seamlessCubemap(self): return self._pvt_ptr[0].seamlessCubemap @seamlessCubemap.setter def seamlessCubemap(self, int seamlessCubemap): self._pvt_ptr[0].seamlessCubemap = seamlessCubemap - {{endif}} -{{endif}} -{{if True}} + cdef class cudaEglPlaneDesc_st: """ @@ -18603,34 +17620,30 @@ cdef class cudaEglPlaneDesc_st: Attributes ---------- - {{if True}} + width : unsigned int Width of plane - {{endif}} - {{if True}} + + height : unsigned int Height of plane - {{endif}} - {{if True}} + + depth : unsigned int Depth of plane - {{endif}} - {{if True}} + + pitch : unsigned int Pitch of plane - {{endif}} - {{if True}} + + numChannels : unsigned int Number of channels for the plane - {{endif}} - {{if True}} + + channelDesc : cudaChannelFormatDesc Channel Format Descriptor - {{endif}} - {{if True}} - reserved : list[unsigned int] - Reserved for future use - {{endif}} + Methods ------- @@ -18643,133 +17656,115 @@ cdef class cudaEglPlaneDesc_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if True}} self._channelDesc = cudaChannelFormatDesc(_ptr=&self._pvt_ptr[0].channelDesc) - {{endif}} + self._channelDesc._owner = self def __dealloc__(self): - pass + self._channelDesc = None def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if True}} + try: str_list += ['width : ' + str(self.width)] except ValueError: str_list += ['width : '] - {{endif}} - {{if True}} + + try: str_list += ['height : ' + str(self.height)] except ValueError: str_list += ['height : '] - {{endif}} - {{if True}} + + try: str_list += ['depth : ' + str(self.depth)] except ValueError: str_list += ['depth : '] - {{endif}} - {{if True}} + + try: str_list += ['pitch : ' + str(self.pitch)] except ValueError: str_list += ['pitch : '] - {{endif}} - {{if True}} + + try: str_list += ['numChannels : ' + str(self.numChannels)] except ValueError: str_list += ['numChannels : '] - {{endif}} - {{if True}} + + try: str_list += ['channelDesc :\n' + '\n'.join([' ' + line for line in str(self.channelDesc).splitlines()])] except ValueError: str_list += ['channelDesc : '] - {{endif}} - {{if True}} - try: - str_list += ['reserved : ' + str(self.reserved)] - except ValueError: - str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if True}} + @property def width(self): return self._pvt_ptr[0].width @width.setter def width(self, unsigned int width): self._pvt_ptr[0].width = width - {{endif}} - {{if True}} + + @property def height(self): return self._pvt_ptr[0].height @height.setter def height(self, unsigned int height): self._pvt_ptr[0].height = height - {{endif}} - {{if True}} + + @property def depth(self): return self._pvt_ptr[0].depth @depth.setter def depth(self, unsigned int depth): self._pvt_ptr[0].depth = depth - {{endif}} - {{if True}} + + @property def pitch(self): return self._pvt_ptr[0].pitch @pitch.setter def pitch(self, unsigned int pitch): self._pvt_ptr[0].pitch = pitch - {{endif}} - {{if True}} + + @property def numChannels(self): return self._pvt_ptr[0].numChannels @numChannels.setter def numChannels(self, unsigned int numChannels): self._pvt_ptr[0].numChannels = numChannels - {{endif}} - {{if True}} + + @property def channelDesc(self): return self._channelDesc @channelDesc.setter def channelDesc(self, channelDesc not None : cudaChannelFormatDesc): string.memcpy(&self._pvt_ptr[0].channelDesc, channelDesc.getPtr(), sizeof(self._pvt_ptr[0].channelDesc)) - {{endif}} - {{if True}} - @property - def reserved(self): - return self._pvt_ptr[0].reserved - @reserved.setter - def reserved(self, reserved): - self._pvt_ptr[0].reserved = reserved - {{endif}} -{{endif}} -{{if True}} + cdef class anon_union11: """ Attributes ---------- - {{if True}} + pArray : list[cudaArray_t] - {{endif}} - {{if True}} + + pPitch : list[cudaPitchedPtr] - {{endif}} + Methods ------- @@ -18788,22 +17783,22 @@ cdef class anon_union11: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if True}} + try: str_list += ['pArray : ' + str(self.pArray)] except ValueError: str_list += ['pArray : '] - {{endif}} - {{if True}} + + try: str_list += ['pPitch :\n' + '\n'.join([' ' + line for line in str(self.pPitch).splitlines()])] except ValueError: str_list += ['pPitch : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if True}} + @property def pArray(self): return [cudaArray_t(init_value=_pArray) for _pArray in self._pvt_ptr[0].frame.pArray] @@ -18815,8 +17810,8 @@ cdef class anon_union11: for _idx, _pArray in enumerate(pArray): self._pvt_ptr[0].frame.pArray[_idx] = _pArray - {{endif}} - {{if True}} + + @property def pPitch(self): out_pPitch = [cudaPitchedPtr() for _pPitch in self._pvt_ptr[0].frame.pPitch] @@ -18830,9 +17825,7 @@ cdef class anon_union11: for _idx in range(len(pPitch)): string.memcpy(&self._pvt_ptr[0].frame.pPitch[_idx], pPitch[_idx].getPtr(), sizeof(cyruntime.cudaPitchedPtr)) - {{endif}} -{{endif}} -{{if True}} + cdef class cudaEglFrame_st: """ @@ -18847,26 +17840,26 @@ cdef class cudaEglFrame_st: Attributes ---------- - {{if True}} + frame : anon_union11 - {{endif}} - {{if True}} + + planeDesc : list[cudaEglPlaneDesc] CUDA EGL Plane Descriptor cudaEglPlaneDesc - {{endif}} - {{if True}} + + planeCount : unsigned int Number of planes - {{endif}} - {{if True}} + + frameType : cudaEglFrameType Array or Pitch - {{endif}} - {{if True}} + + eglColorFormat : cudaEglColorFormat CUDA EGL Color Format - {{endif}} + Methods ------- @@ -18880,11 +17873,10 @@ cdef class cudaEglFrame_st: else: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): - pass - {{if True}} self._frame = anon_union11(_ptr=self._pvt_ptr) - {{endif}} + self._frame._owner = self def __dealloc__(self): + self._frame = None if self._val_ptr is not NULL: free(self._val_ptr) def getPtr(self): @@ -18892,48 +17884,48 @@ cdef class cudaEglFrame_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if True}} + try: str_list += ['frame :\n' + '\n'.join([' ' + line for line in str(self.frame).splitlines()])] except ValueError: str_list += ['frame : '] - {{endif}} - {{if True}} + + try: str_list += ['planeDesc :\n' + '\n'.join([' ' + line for line in str(self.planeDesc).splitlines()])] except ValueError: str_list += ['planeDesc : '] - {{endif}} - {{if True}} + + try: str_list += ['planeCount : ' + str(self.planeCount)] except ValueError: str_list += ['planeCount : '] - {{endif}} - {{if True}} + + try: str_list += ['frameType : ' + str(self.frameType)] except ValueError: str_list += ['frameType : '] - {{endif}} - {{if True}} + + try: str_list += ['eglColorFormat : ' + str(self.eglColorFormat)] except ValueError: str_list += ['eglColorFormat : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if True}} + @property def frame(self): return self._frame @frame.setter def frame(self, frame not None : anon_union11): string.memcpy(&self._pvt_ptr[0].frame, frame.getPtr(), sizeof(self._pvt_ptr[0].frame)) - {{endif}} - {{if True}} + + @property def planeDesc(self): out_planeDesc = [cudaEglPlaneDesc() for _planeDesc in self._pvt_ptr[0].planeDesc] @@ -18947,33 +17939,31 @@ cdef class cudaEglFrame_st: for _idx in range(len(planeDesc)): string.memcpy(&self._pvt_ptr[0].planeDesc[_idx], planeDesc[_idx].getPtr(), sizeof(cyruntime.cudaEglPlaneDesc)) - {{endif}} - {{if True}} + + @property def planeCount(self): return self._pvt_ptr[0].planeCount @planeCount.setter def planeCount(self, unsigned int planeCount): self._pvt_ptr[0].planeCount = planeCount - {{endif}} - {{if True}} + + @property def frameType(self): return cudaEglFrameType(self._pvt_ptr[0].frameType) @frameType.setter def frameType(self, frameType not None : cudaEglFrameType): - self._pvt_ptr[0].frameType = int(frameType) - {{endif}} - {{if True}} + self._pvt_ptr[0].frameType = int(frameType) + + @property def eglColorFormat(self): return cudaEglColorFormat(self._pvt_ptr[0].eglColorFormat) @eglColorFormat.setter def eglColorFormat(self, eglColorFormat not None : cudaEglColorFormat): - self._pvt_ptr[0].eglColorFormat = int(eglColorFormat) - {{endif}} -{{endif}} -{{if 'cudaGraphConditionalHandle' in found_types}} + self._pvt_ptr[0].eglColorFormat = int(eglColorFormat) + cdef class cudaGraphConditionalHandle: """ @@ -19001,9 +17991,6 @@ cdef class cudaGraphConditionalHandle: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaSurfaceObject_t' in found_types}} cdef class cudaSurfaceObject_t: """ @@ -19031,9 +18018,6 @@ cdef class cudaSurfaceObject_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaTextureObject_t' in found_types}} cdef class cudaTextureObject_t: """ @@ -19061,9 +18045,6 @@ cdef class cudaTextureObject_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class GLenum: """ @@ -19089,9 +18070,6 @@ cdef class GLenum: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class GLuint: """ @@ -19117,9 +18095,6 @@ cdef class GLuint: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class EGLint: """ @@ -19145,9 +18120,6 @@ cdef class EGLint: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class VdpDevice: """ @@ -19173,9 +18145,6 @@ cdef class VdpDevice: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class VdpGetProcAddress: """ @@ -19201,9 +18170,6 @@ cdef class VdpGetProcAddress: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class VdpVideoSurface: """ @@ -19229,9 +18195,6 @@ cdef class VdpVideoSurface: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class VdpOutputSurface: """ @@ -19257,9 +18220,6 @@ cdef class VdpOutputSurface: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaDeviceReset' in found_functions}} @cython.embedsignature(True) def cudaDeviceReset(): @@ -19304,9 +18264,6 @@ def cudaDeviceReset(): with nogil: err = cyruntime.cudaDeviceReset() return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaDeviceSynchronize' in found_functions}} @cython.embedsignature(True) def cudaDeviceSynchronize(): @@ -19331,9 +18288,6 @@ def cudaDeviceSynchronize(): with nogil: err = cyruntime.cudaDeviceSynchronize() return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaDeviceSetLimit' in found_functions}} @cython.embedsignature(True) def cudaDeviceSetLimit(limit not None : cudaLimit, size_t value): @@ -19434,9 +18388,6 @@ def cudaDeviceSetLimit(limit not None : cudaLimit, size_t value): with nogil: err = cyruntime.cudaDeviceSetLimit(cylimit, value) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaDeviceGetLimit' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetLimit(limit not None : cudaLimit): @@ -19494,9 +18445,6 @@ def cudaDeviceGetLimit(limit not None : cudaLimit): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pValue) -{{endif}} - -{{if 'cudaDeviceGetTexture1DLinearMaxWidth' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetTexture1DLinearMaxWidth(fmtDesc : Optional[cudaChannelFormatDesc], int device): @@ -19532,9 +18480,6 @@ def cudaDeviceGetTexture1DLinearMaxWidth(fmtDesc : Optional[cudaChannelFormatDes if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, maxWidthInElements) -{{endif}} - -{{if 'cudaDeviceGetCacheConfig' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetCacheConfig(): @@ -19582,9 +18527,6 @@ def cudaDeviceGetCacheConfig(): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, cudaFuncCache(pCacheConfig)) -{{endif}} - -{{if 'cudaDeviceGetStreamPriorityRange' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetStreamPriorityRange(): @@ -19629,9 +18571,6 @@ def cudaDeviceGetStreamPriorityRange(): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None) return (_cudaError_t_SUCCESS, leastPriority, greatestPriority) -{{endif}} - -{{if 'cudaDeviceSetCacheConfig' in found_functions}} @cython.embedsignature(True) def cudaDeviceSetCacheConfig(cacheConfig not None : cudaFuncCache): @@ -19687,9 +18626,6 @@ def cudaDeviceSetCacheConfig(cacheConfig not None : cudaFuncCache): with nogil: err = cyruntime.cudaDeviceSetCacheConfig(cycacheConfig) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaDeviceGetByPCIBusId' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetByPCIBusId(char* pciBusId): @@ -19722,9 +18658,6 @@ def cudaDeviceGetByPCIBusId(char* pciBusId): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, device) -{{endif}} - -{{if 'cudaDeviceGetPCIBusId' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetPCIBusId(int length, int device): @@ -19763,9 +18696,6 @@ def cudaDeviceGetPCIBusId(int length, int device): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pypciBusId) -{{endif}} - -{{if 'cudaIpcGetEventHandle' in found_functions}} @cython.embedsignature(True) def cudaIpcGetEventHandle(event): @@ -19824,9 +18754,6 @@ def cudaIpcGetEventHandle(event): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, handle) -{{endif}} - -{{if 'cudaIpcOpenEventHandle' in found_functions}} @cython.embedsignature(True) def cudaIpcOpenEventHandle(handle not None : cudaIpcEventHandle_t): @@ -19871,9 +18798,6 @@ def cudaIpcOpenEventHandle(handle not None : cudaIpcEventHandle_t): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, event) -{{endif}} - -{{if 'cudaIpcGetMemHandle' in found_functions}} @cython.embedsignature(True) def cudaIpcGetMemHandle(devPtr): @@ -19922,9 +18846,6 @@ def cudaIpcGetMemHandle(devPtr): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, handle) -{{endif}} - -{{if 'cudaIpcOpenMemHandle' in found_functions}} @cython.embedsignature(True) def cudaIpcOpenMemHandle(handle not None : cudaIpcMemHandle_t, unsigned int flags): @@ -19986,7 +18907,7 @@ def cudaIpcOpenMemHandle(handle not None : cudaIpcMemHandle_t, unsigned int flag Notes ----- - No guarantees are made about the address returned in `*devPtr`. + No guarantees are made about the address returned in `*devPtr`. In particular, multiple processes may not receive the same address for the same `handle`. """ cdef void_ptr devPtr = 0 @@ -19995,9 +18916,6 @@ def cudaIpcOpenMemHandle(handle not None : cudaIpcMemHandle_t, unsigned int flag if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, devPtr) -{{endif}} - -{{if 'cudaIpcCloseMemHandle' in found_functions}} @cython.embedsignature(True) def cudaIpcCloseMemHandle(devPtr): @@ -20039,9 +18957,6 @@ def cudaIpcCloseMemHandle(devPtr): err = cyruntime.cudaIpcCloseMemHandle(cydevPtr) _helper_input_void_ptr_free(&cydevPtrHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaDeviceFlushGPUDirectRDMAWrites' in found_functions}} @cython.embedsignature(True) def cudaDeviceFlushGPUDirectRDMAWrites(target not None : cudaFlushGPUDirectRDMAWritesTarget, scope not None : cudaFlushGPUDirectRDMAWritesScope): @@ -20084,9 +18999,6 @@ def cudaDeviceFlushGPUDirectRDMAWrites(target not None : cudaFlushGPUDirectRDMAW with nogil: err = cyruntime.cudaDeviceFlushGPUDirectRDMAWrites(cytarget, cyscope) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaDeviceRegisterAsyncNotification' in found_functions}} ctypedef struct cudaAsyncCallbackData_st: cyruntime.cudaAsyncCallback callback @@ -20167,15 +19079,12 @@ def cudaDeviceRegisterAsyncNotification(int device, callbackFunc, userData): if err != cyruntime.cudaSuccess: free(cbData) else: - m_global._allocated[int(callback)] = cbData + m_global._insert(int(callback), cbData) _helper_input_void_ptr_free(&cyuserDataHelper) if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, callback) -{{endif}} - -{{if 'cudaDeviceUnregisterAsyncNotification' in found_functions}} @cython.embedsignature(True) def cudaDeviceUnregisterAsyncNotification(int device, callback): @@ -20212,12 +19121,8 @@ def cudaDeviceUnregisterAsyncNotification(int device, callback): with nogil: err = cyruntime.cudaDeviceUnregisterAsyncNotification(device, cycallback) if err == cyruntime.cudaSuccess: - free(m_global._allocated[pcallback]) - m_global._allocated.erase(pcallback) + free(m_global._take(pcallback)) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaDeviceGetSharedMemConfig' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetSharedMemConfig(): @@ -20259,9 +19164,6 @@ def cudaDeviceGetSharedMemConfig(): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, cudaSharedMemConfig(pConfig)) -{{endif}} - -{{if 'cudaDeviceSetSharedMemConfig' in found_functions}} @cython.embedsignature(True) def cudaDeviceSetSharedMemConfig(config not None : cudaSharedMemConfig): @@ -20316,9 +19218,6 @@ def cudaDeviceSetSharedMemConfig(config not None : cudaSharedMemConfig): with nogil: err = cyruntime.cudaDeviceSetSharedMemConfig(cyconfig) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGetLastError' in found_functions}} @cython.embedsignature(True) def cudaGetLastError(): @@ -20344,9 +19243,6 @@ def cudaGetLastError(): with nogil: err = cyruntime.cudaGetLastError() return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaPeekAtLastError' in found_functions}} @cython.embedsignature(True) def cudaPeekAtLastError(): @@ -20373,9 +19269,6 @@ def cudaPeekAtLastError(): with nogil: err = cyruntime.cudaPeekAtLastError() return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGetErrorName' in found_functions}} @cython.embedsignature(True) def cudaGetErrorName(error not None : cudaError_t): @@ -20405,9 +19298,6 @@ def cudaGetErrorName(error not None : cudaError_t): with nogil: err = cyruntime.cudaGetErrorName(cyerror) return (cudaError_t.cudaSuccess, err) -{{endif}} - -{{if 'cudaGetErrorString' in found_functions}} @cython.embedsignature(True) def cudaGetErrorString(error not None : cudaError_t): @@ -20436,9 +19326,6 @@ def cudaGetErrorString(error not None : cudaError_t): with nogil: err = cyruntime.cudaGetErrorString(cyerror) return (cudaError_t.cudaSuccess, err) -{{endif}} - -{{if 'cudaGetDeviceCount' in found_functions}} @cython.embedsignature(True) def cudaGetDeviceCount(): @@ -20465,9 +19352,6 @@ def cudaGetDeviceCount(): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, count) -{{endif}} - -{{if 'cudaGetDeviceProperties_v2' in found_functions}} @cython.embedsignature(True) def cudaGetDeviceProperties(int device): @@ -20779,14 +19663,18 @@ def cudaGetDeviceProperties(int device): Parameters ---------- device : int - None + Device number to get properties for Returns ------- cudaError_t - + :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice` prop : :py:obj:`~.cudaDeviceProp` - None + Properties for the specified device + + See Also + -------- + :py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cudaDeviceGetAttribute`, :py:obj:`~.cudaInitDevice`, :py:obj:`~.cuDeviceGetAttribute`, :py:obj:`~.cuDeviceGetName` """ cdef cudaDeviceProp prop = cudaDeviceProp() with nogil: @@ -20794,9 +19682,6 @@ def cudaGetDeviceProperties(int device): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, prop) -{{endif}} - -{{if 'cudaDeviceGetAttribute' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetAttribute(attr not None : cudaDeviceAttr, int device): @@ -21173,9 +20058,6 @@ def cudaDeviceGetAttribute(attr not None : cudaDeviceAttr, int device): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, value) -{{endif}} - -{{if 'cudaDeviceGetDefaultMemPool' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetDefaultMemPool(int device): @@ -21206,9 +20088,6 @@ def cudaDeviceGetDefaultMemPool(int device): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, memPool) -{{endif}} - -{{if 'cudaDeviceSetMemPool' in found_functions}} @cython.embedsignature(True) def cudaDeviceSetMemPool(int device, memPool): @@ -21251,9 +20130,6 @@ def cudaDeviceSetMemPool(int device, memPool): with nogil: err = cyruntime.cudaDeviceSetMemPool(device, cymemPool) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaDeviceGetMemPool' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetMemPool(int device): @@ -21288,9 +20164,6 @@ def cudaDeviceGetMemPool(int device): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, memPool) -{{endif}} - -{{if 'cudaDeviceGetNvSciSyncAttributes' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, int device, int flags): @@ -21364,7 +20237,6 @@ def cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, int device, int flags): ------- cudaError_t - See Also -------- :py:obj:`~.cudaImportExternalSemaphore`, :py:obj:`~.cudaDestroyExternalSemaphore`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`, :py:obj:`~.cudaWaitExternalSemaphoresAsync` @@ -21375,9 +20247,6 @@ def cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, int device, int flags): err = cyruntime.cudaDeviceGetNvSciSyncAttributes(cynvSciSyncAttrList, device, flags) _helper_input_void_ptr_free(&cynvSciSyncAttrListHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaDeviceGetP2PAttribute' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetP2PAttribute(attr not None : cudaDeviceP2PAttr, int srcDevice, int dstDevice): @@ -21435,9 +20304,6 @@ def cudaDeviceGetP2PAttribute(attr not None : cudaDeviceP2PAttr, int srcDevice, if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, value) -{{endif}} - -{{if 'cudaChooseDevice' in found_functions}} @cython.embedsignature(True) def cudaChooseDevice(prop : Optional[cudaDeviceProp]): @@ -21469,9 +20335,6 @@ def cudaChooseDevice(prop : Optional[cudaDeviceProp]): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, device) -{{endif}} - -{{if 'cudaInitDevice' in found_functions}} @cython.embedsignature(True) def cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags): @@ -21512,9 +20375,6 @@ def cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags): with nogil: err = cyruntime.cudaInitDevice(device, deviceFlags, flags) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaSetDevice' in found_functions}} @cython.embedsignature(True) def cudaSetDevice(int device): @@ -21568,9 +20428,6 @@ def cudaSetDevice(int device): with nogil: err = cyruntime.cudaSetDevice(device) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGetDevice' in found_functions}} @cython.embedsignature(True) def cudaGetDevice(): @@ -21596,9 +20453,6 @@ def cudaGetDevice(): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, device) -{{endif}} - -{{if 'cudaSetDeviceFlags' in found_functions}} @cython.embedsignature(True) def cudaSetDeviceFlags(unsigned int flags): @@ -21683,9 +20537,6 @@ def cudaSetDeviceFlags(unsigned int flags): with nogil: err = cyruntime.cudaSetDeviceFlags(flags) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGetDeviceFlags' in found_functions}} @cython.embedsignature(True) def cudaGetDeviceFlags(): @@ -21733,9 +20584,6 @@ def cudaGetDeviceFlags(): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, flags) -{{endif}} - -{{if 'cudaStreamCreate' in found_functions}} @cython.embedsignature(True) def cudaStreamCreate(): @@ -21763,9 +20611,6 @@ def cudaStreamCreate(): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pStream) -{{endif}} - -{{if 'cudaStreamCreateWithFlags' in found_functions}} @cython.embedsignature(True) def cudaStreamCreateWithFlags(unsigned int flags): @@ -21807,9 +20652,6 @@ def cudaStreamCreateWithFlags(unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pStream) -{{endif}} - -{{if 'cudaStreamCreateWithPriority' in found_functions}} @cython.embedsignature(True) def cudaStreamCreateWithPriority(unsigned int flags, int priority): @@ -21868,9 +20710,6 @@ def cudaStreamCreateWithPriority(unsigned int flags, int priority): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pStream) -{{endif}} - -{{if 'cudaStreamGetPriority' in found_functions}} @cython.embedsignature(True) def cudaStreamGetPriority(hStream): @@ -21914,9 +20753,6 @@ def cudaStreamGetPriority(hStream): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, priority) -{{endif}} - -{{if 'cudaStreamGetFlags' in found_functions}} @cython.embedsignature(True) def cudaStreamGetFlags(hStream): @@ -21956,9 +20792,6 @@ def cudaStreamGetFlags(hStream): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, flags) -{{endif}} - -{{if 'cudaStreamGetId' in found_functions}} @cython.embedsignature(True) def cudaStreamGetId(hStream): @@ -22012,9 +20845,6 @@ def cudaStreamGetId(hStream): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, streamId) -{{endif}} - -{{if 'cudaStreamGetDevice' in found_functions}} @cython.embedsignature(True) def cudaStreamGetDevice(hStream): @@ -22052,9 +20882,6 @@ def cudaStreamGetDevice(hStream): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, device) -{{endif}} - -{{if 'cudaCtxResetPersistingL2Cache' in found_functions}} @cython.embedsignature(True) def cudaCtxResetPersistingL2Cache(): @@ -22075,9 +20902,6 @@ def cudaCtxResetPersistingL2Cache(): with nogil: err = cyruntime.cudaCtxResetPersistingL2Cache() return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaStreamCopyAttributes' in found_functions}} @cython.embedsignature(True) def cudaStreamCopyAttributes(dst, src): @@ -22121,9 +20945,6 @@ def cudaStreamCopyAttributes(dst, src): with nogil: err = cyruntime.cudaStreamCopyAttributes(cydst, cysrc) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaStreamGetAttribute' in found_functions}} @cython.embedsignature(True) def cudaStreamGetAttribute(hStream, attr not None : cudaStreamAttrID): @@ -22138,14 +20959,12 @@ def cudaStreamGetAttribute(hStream, attr not None : cudaStreamAttrID): attr : :py:obj:`~.cudaStreamAttrID` - Returns ------- cudaError_t :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle` value_out : :py:obj:`~.cudaStreamAttrValue` - See Also -------- :py:obj:`~.cudaAccessPolicyWindow` @@ -22165,9 +20984,6 @@ def cudaStreamGetAttribute(hStream, attr not None : cudaStreamAttrID): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, value_out) -{{endif}} - -{{if 'cudaStreamSetAttribute' in found_functions}} @cython.embedsignature(True) def cudaStreamSetAttribute(hStream, attr not None : cudaStreamAttrID, value : Optional[cudaStreamAttrValue]): @@ -22185,7 +21001,6 @@ def cudaStreamSetAttribute(hStream, attr not None : cudaStreamAttrID, value : Op value : :py:obj:`~.cudaStreamAttrValue` - Returns ------- cudaError_t @@ -22208,9 +21023,6 @@ def cudaStreamSetAttribute(hStream, attr not None : cudaStreamAttrID, value : Op with nogil: err = cyruntime.cudaStreamSetAttribute(cyhStream, cyattr, cyvalue_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaStreamDestroy' in found_functions}} @cython.embedsignature(True) def cudaStreamDestroy(stream): @@ -22248,9 +21060,6 @@ def cudaStreamDestroy(stream): with nogil: err = cyruntime.cudaStreamDestroy(cystream) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaStreamWaitEvent' in found_functions}} @cython.embedsignature(True) def cudaStreamWaitEvent(stream, event, unsigned int flags): @@ -22306,9 +21115,6 @@ def cudaStreamWaitEvent(stream, event, unsigned int flags): with nogil: err = cyruntime.cudaStreamWaitEvent(cystream, cyevent, flags) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaStreamAddCallback' in found_functions}} ctypedef struct cudaStreamCallbackData_st: cyruntime.cudaStreamCallback_t callback @@ -22425,9 +21231,6 @@ def cudaStreamAddCallback(stream, callback, userData, unsigned int flags): _helper_input_void_ptr_free(&cyuserDataHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaStreamSynchronize' in found_functions}} @cython.embedsignature(True) def cudaStreamSynchronize(stream): @@ -22463,9 +21266,6 @@ def cudaStreamSynchronize(stream): with nogil: err = cyruntime.cudaStreamSynchronize(cystream) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaStreamQuery' in found_functions}} @cython.embedsignature(True) def cudaStreamQuery(stream): @@ -22503,9 +21303,6 @@ def cudaStreamQuery(stream): with nogil: err = cyruntime.cudaStreamQuery(cystream) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaStreamAttachMemAsync' in found_functions}} @cython.embedsignature(True) def cudaStreamAttachMemAsync(stream, devPtr, size_t length, unsigned int flags): @@ -22615,9 +21412,6 @@ def cudaStreamAttachMemAsync(stream, devPtr, size_t length, unsigned int flags): err = cyruntime.cudaStreamAttachMemAsync(cystream, cydevPtr, length, flags) _helper_input_void_ptr_free(&cydevPtrHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaStreamBeginCapture' in found_functions}} @cython.embedsignature(True) def cudaStreamBeginCapture(stream, mode not None : cudaStreamCaptureMode): @@ -22672,9 +21466,6 @@ def cudaStreamBeginCapture(stream, mode not None : cudaStreamCaptureMode): with nogil: err = cyruntime.cudaStreamBeginCapture(cystream, cymode) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaStreamBeginCaptureToGraph' in found_functions}} @cython.embedsignature(True) def cudaStreamBeginCaptureToGraph(stream, graph, dependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], dependencyData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies, mode not None : cudaStreamCaptureMode): @@ -22777,9 +21568,6 @@ def cudaStreamBeginCaptureToGraph(stream, graph, dependencies : Optional[tuple[c if len(dependencyData) > 1 and cydependencyData is not NULL: free(cydependencyData) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaThreadExchangeStreamCaptureMode' in found_functions}} @cython.embedsignature(True) def cudaThreadExchangeStreamCaptureMode(mode not None : cudaStreamCaptureMode): @@ -22851,9 +21639,6 @@ def cudaThreadExchangeStreamCaptureMode(mode not None : cudaStreamCaptureMode): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, cudaStreamCaptureMode(cymode)) -{{endif}} - -{{if 'cudaStreamEndCapture' in found_functions}} @cython.embedsignature(True) def cudaStreamEndCapture(stream): @@ -22899,9 +21684,6 @@ def cudaStreamEndCapture(stream): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraph) -{{endif}} - -{{if 'cudaStreamIsCapturing' in found_functions}} @cython.embedsignature(True) def cudaStreamIsCapturing(stream): @@ -22961,9 +21743,6 @@ def cudaStreamIsCapturing(stream): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, cudaStreamCaptureStatus(pCaptureStatus)) -{{endif}} - -{{if 'cudaStreamGetCaptureInfo_v2' in found_functions}} @cython.embedsignature(True) def cudaStreamGetCaptureInfo(stream): @@ -23047,9 +21826,6 @@ def cudaStreamGetCaptureInfo(stream): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None, None, None, None) return (_cudaError_t_SUCCESS, cudaStreamCaptureStatus(captureStatus_out), id_out, graph_out, pydependencies_out, numDependencies_out) -{{endif}} - -{{if 'cudaStreamGetCaptureInfo_v3' in found_functions}} @cython.embedsignature(True) def cudaStreamGetCaptureInfo_v3(stream): @@ -23151,9 +21927,6 @@ def cudaStreamGetCaptureInfo_v3(stream): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None, None, None, None, None) return (_cudaError_t_SUCCESS, cudaStreamCaptureStatus(captureStatus_out), id_out, graph_out, pydependencies_out, pyedgeData_out, numDependencies_out) -{{endif}} - -{{if 'cudaStreamUpdateCaptureDependencies' in found_functions}} @cython.embedsignature(True) def cudaStreamUpdateCaptureDependencies(stream, dependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, unsigned int flags): @@ -23227,9 +22000,6 @@ def cudaStreamUpdateCaptureDependencies(stream, dependencies : Optional[tuple[cu if len(dependencies) > 1 and cydependencies is not NULL: free(cydependencies) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaStreamUpdateCaptureDependencies_v2' in found_functions}} @cython.embedsignature(True) def cudaStreamUpdateCaptureDependencies_v2(stream, dependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], dependencyData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies, unsigned int flags): @@ -23314,9 +22084,6 @@ def cudaStreamUpdateCaptureDependencies_v2(stream, dependencies : Optional[tuple if len(dependencyData) > 1 and cydependencyData is not NULL: free(cydependencyData) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaEventCreate' in found_functions}} @cython.embedsignature(True) def cudaEventCreate(): @@ -23342,9 +22109,6 @@ def cudaEventCreate(): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, event) -{{endif}} - -{{if 'cudaEventCreateWithFlags' in found_functions}} @cython.embedsignature(True) def cudaEventCreateWithFlags(unsigned int flags): @@ -23394,9 +22158,6 @@ def cudaEventCreateWithFlags(unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, event) -{{endif}} - -{{if 'cudaEventRecord' in found_functions}} @cython.embedsignature(True) def cudaEventRecord(event, stream): @@ -23453,9 +22214,6 @@ def cudaEventRecord(event, stream): with nogil: err = cyruntime.cudaEventRecord(cyevent, cystream) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaEventRecordWithFlags' in found_functions}} @cython.embedsignature(True) def cudaEventRecordWithFlags(event, stream, unsigned int flags): @@ -23521,9 +22279,6 @@ def cudaEventRecordWithFlags(event, stream, unsigned int flags): with nogil: err = cyruntime.cudaEventRecordWithFlags(cyevent, cystream, flags) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaEventQuery' in found_functions}} @cython.embedsignature(True) def cudaEventQuery(event): @@ -23566,9 +22321,6 @@ def cudaEventQuery(event): with nogil: err = cyruntime.cudaEventQuery(cyevent) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaEventSynchronize' in found_functions}} @cython.embedsignature(True) def cudaEventSynchronize(event): @@ -23610,9 +22362,6 @@ def cudaEventSynchronize(event): with nogil: err = cyruntime.cudaEventSynchronize(cyevent) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaEventDestroy' in found_functions}} @cython.embedsignature(True) def cudaEventDestroy(event): @@ -23651,9 +22400,6 @@ def cudaEventDestroy(event): with nogil: err = cyruntime.cudaEventDestroy(cyevent) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaEventElapsedTime' in found_functions}} @cython.embedsignature(True) def cudaEventElapsedTime(start, end): @@ -23720,9 +22466,6 @@ def cudaEventElapsedTime(start, end): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, ms) -{{endif}} - -{{if 'cudaEventElapsedTime_v2' in found_functions}} @cython.embedsignature(True) def cudaEventElapsedTime_v2(start, end): @@ -23793,9 +22536,6 @@ def cudaEventElapsedTime_v2(start, end): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, ms) -{{endif}} - -{{if 'cudaImportExternalMemory' in found_functions}} @cython.embedsignature(True) def cudaImportExternalMemory(memHandleDesc : Optional[cudaExternalMemoryHandleDesc]): @@ -23942,9 +22682,6 @@ def cudaImportExternalMemory(memHandleDesc : Optional[cudaExternalMemoryHandleDe if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, extMem_out) -{{endif}} - -{{if 'cudaExternalMemoryGetMappedBuffer' in found_functions}} @cython.embedsignature(True) def cudaExternalMemoryGetMappedBuffer(extMem, bufferDesc : Optional[cudaExternalMemoryBufferDesc]): @@ -24010,9 +22747,6 @@ def cudaExternalMemoryGetMappedBuffer(extMem, bufferDesc : Optional[cudaExternal if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, devPtr) -{{endif}} - -{{if 'cudaExternalMemoryGetMappedMipmappedArray' in found_functions}} @cython.embedsignature(True) def cudaExternalMemoryGetMappedMipmappedArray(extMem, mipmapDesc : Optional[cudaExternalMemoryMipmappedArrayDesc]): @@ -24082,9 +22816,6 @@ def cudaExternalMemoryGetMappedMipmappedArray(extMem, mipmapDesc : Optional[cuda if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, mipmap) -{{endif}} - -{{if 'cudaDestroyExternalMemory' in found_functions}} @cython.embedsignature(True) def cudaDestroyExternalMemory(extMem): @@ -24120,9 +22851,6 @@ def cudaDestroyExternalMemory(extMem): with nogil: err = cyruntime.cudaDestroyExternalMemory(cyextMem) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaImportExternalSemaphore' in found_functions}} @cython.embedsignature(True) def cudaImportExternalSemaphore(semHandleDesc : Optional[cudaExternalSemaphoreHandleDesc]): @@ -24267,9 +22995,6 @@ def cudaImportExternalSemaphore(semHandleDesc : Optional[cudaExternalSemaphoreHa if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, extSem_out) -{{endif}} - -{{if 'cudaSignalExternalSemaphoresAsync_v2' in found_functions}} @cython.embedsignature(True) def cudaSignalExternalSemaphoresAsync(extSemArray : Optional[tuple[cudaExternalSemaphore_t] | list[cudaExternalSemaphore_t]], paramsArray : Optional[tuple[cudaExternalSemaphoreSignalParams] | list[cudaExternalSemaphoreSignalParams]], unsigned int numExtSems, stream): @@ -24407,9 +23132,6 @@ def cudaSignalExternalSemaphoresAsync(extSemArray : Optional[tuple[cudaExternalS if len(paramsArray) > 1 and cyparamsArray is not NULL: free(cyparamsArray) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaWaitExternalSemaphoresAsync_v2' in found_functions}} @cython.embedsignature(True) def cudaWaitExternalSemaphoresAsync(extSemArray : Optional[tuple[cudaExternalSemaphore_t] | list[cudaExternalSemaphore_t]], paramsArray : Optional[tuple[cudaExternalSemaphoreWaitParams] | list[cudaExternalSemaphoreWaitParams]], unsigned int numExtSems, stream): @@ -24535,9 +23257,6 @@ def cudaWaitExternalSemaphoresAsync(extSemArray : Optional[tuple[cudaExternalSem if len(paramsArray) > 1 and cyparamsArray is not NULL: free(cyparamsArray) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaDestroyExternalSemaphore' in found_functions}} @cython.embedsignature(True) def cudaDestroyExternalSemaphore(extSem): @@ -24572,9 +23291,6 @@ def cudaDestroyExternalSemaphore(extSem): with nogil: err = cyruntime.cudaDestroyExternalSemaphore(cyextSem) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaFuncSetCacheConfig' in found_functions}} @cython.embedsignature(True) def cudaFuncSetCacheConfig(func, cacheConfig not None : cudaFuncCache): @@ -24640,9 +23356,6 @@ def cudaFuncSetCacheConfig(func, cacheConfig not None : cudaFuncCache): err = cyruntime.cudaFuncSetCacheConfig(cyfunc, cycacheConfig) _helper_input_void_ptr_free(&cyfuncHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaFuncGetAttributes' in found_functions}} @cython.embedsignature(True) def cudaFuncGetAttributes(func): @@ -24685,9 +23398,6 @@ def cudaFuncGetAttributes(func): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, attr) -{{endif}} - -{{if 'cudaFuncSetAttribute' in found_functions}} @cython.embedsignature(True) def cudaFuncSetAttribute(func, attr not None : cudaFuncAttribute, int value): @@ -24772,9 +23482,6 @@ def cudaFuncSetAttribute(func, attr not None : cudaFuncAttribute, int value): err = cyruntime.cudaFuncSetAttribute(cyfunc, cyattr, value) _helper_input_void_ptr_free(&cyfuncHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaLaunchHostFunc' in found_functions}} @cython.embedsignature(True) def cudaLaunchHostFunc(stream, fn, userData): @@ -24860,9 +23567,6 @@ def cudaLaunchHostFunc(stream, fn, userData): err = cyruntime.cudaLaunchHostFunc(cystream, cyfn, cyuserData) _helper_input_void_ptr_free(&cyuserDataHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaFuncSetSharedMemConfig' in found_functions}} @cython.embedsignature(True) def cudaFuncSetSharedMemConfig(func, config not None : cudaSharedMemConfig): @@ -24929,9 +23633,6 @@ def cudaFuncSetSharedMemConfig(func, config not None : cudaSharedMemConfig): err = cyruntime.cudaFuncSetSharedMemConfig(cyfunc, cyconfig) _helper_input_void_ptr_free(&cyfuncHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}} @cython.embedsignature(True) def cudaOccupancyMaxActiveBlocksPerMultiprocessor(func, int blockSize, size_t dynamicSMemSize): @@ -24969,9 +23670,6 @@ def cudaOccupancyMaxActiveBlocksPerMultiprocessor(func, int blockSize, size_t dy if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, numBlocks) -{{endif}} - -{{if 'cudaOccupancyAvailableDynamicSMemPerBlock' in found_functions}} @cython.embedsignature(True) def cudaOccupancyAvailableDynamicSMemPerBlock(func, int numBlocks, int blockSize): @@ -25009,9 +23707,6 @@ def cudaOccupancyAvailableDynamicSMemPerBlock(func, int numBlocks, int blockSize if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, dynamicSmemSize) -{{endif}} - -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}} @cython.embedsignature(True) def cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(func, int blockSize, size_t dynamicSMemSize, unsigned int flags): @@ -25066,9 +23761,6 @@ def cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(func, int blockSize, if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, numBlocks) -{{endif}} - -{{if 'cudaMallocManaged' in found_functions}} @cython.embedsignature(True) def cudaMallocManaged(size_t size, unsigned int flags): @@ -25200,9 +23892,6 @@ def cudaMallocManaged(size_t size, unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, devPtr) -{{endif}} - -{{if 'cudaMalloc' in found_functions}} @cython.embedsignature(True) def cudaMalloc(size_t size): @@ -25239,9 +23928,6 @@ def cudaMalloc(size_t size): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, devPtr) -{{endif}} - -{{if 'cudaMallocHost' in found_functions}} @cython.embedsignature(True) def cudaMallocHost(size_t size): @@ -25287,9 +23973,6 @@ def cudaMallocHost(size_t size): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, ptr) -{{endif}} - -{{if 'cudaMallocPitch' in found_functions}} @cython.embedsignature(True) def cudaMallocPitch(size_t width, size_t height): @@ -25343,9 +24026,6 @@ def cudaMallocPitch(size_t width, size_t height): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None) return (_cudaError_t_SUCCESS, devPtr, pitch) -{{endif}} - -{{if 'cudaMallocArray' in found_functions}} @cython.embedsignature(True) def cudaMallocArray(desc : Optional[cudaChannelFormatDesc], size_t width, size_t height, unsigned int flags): @@ -25420,9 +24100,6 @@ def cudaMallocArray(desc : Optional[cudaChannelFormatDesc], size_t width, size_t if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, array) -{{endif}} - -{{if 'cudaFree' in found_functions}} @cython.embedsignature(True) def cudaFree(devPtr): @@ -25471,9 +24148,6 @@ def cudaFree(devPtr): err = cyruntime.cudaFree(cydevPtr) _helper_input_void_ptr_free(&cydevPtrHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaFreeHost' in found_functions}} @cython.embedsignature(True) def cudaFreeHost(ptr): @@ -25503,9 +24177,6 @@ def cudaFreeHost(ptr): err = cyruntime.cudaFreeHost(cyptr) _helper_input_void_ptr_free(&cyptrHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaFreeArray' in found_functions}} @cython.embedsignature(True) def cudaFreeArray(array): @@ -25540,9 +24211,6 @@ def cudaFreeArray(array): with nogil: err = cyruntime.cudaFreeArray(cyarray) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaFreeMipmappedArray' in found_functions}} @cython.embedsignature(True) def cudaFreeMipmappedArray(mipmappedArray): @@ -25577,9 +24245,6 @@ def cudaFreeMipmappedArray(mipmappedArray): with nogil: err = cyruntime.cudaFreeMipmappedArray(cymipmappedArray) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaHostAlloc' in found_functions}} @cython.embedsignature(True) def cudaHostAlloc(size_t size, unsigned int flags): @@ -25662,9 +24327,6 @@ def cudaHostAlloc(size_t size, unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pHost) -{{endif}} - -{{if 'cudaHostRegister' in found_functions}} @cython.embedsignature(True) def cudaHostRegister(ptr, size_t size, unsigned int flags): @@ -25780,9 +24442,6 @@ def cudaHostRegister(ptr, size_t size, unsigned int flags): err = cyruntime.cudaHostRegister(cyptr, size, flags) _helper_input_void_ptr_free(&cyptrHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaHostUnregister' in found_functions}} @cython.embedsignature(True) def cudaHostUnregister(ptr): @@ -25814,9 +24473,6 @@ def cudaHostUnregister(ptr): err = cyruntime.cudaHostUnregister(cyptr) _helper_input_void_ptr_free(&cyptrHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaHostGetDevicePointer' in found_functions}} @cython.embedsignature(True) def cudaHostGetDevicePointer(pHost, unsigned int flags): @@ -25877,9 +24533,6 @@ def cudaHostGetDevicePointer(pHost, unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pDevice) -{{endif}} - -{{if 'cudaHostGetFlags' in found_functions}} @cython.embedsignature(True) def cudaHostGetFlags(pHost): @@ -25913,9 +24566,6 @@ def cudaHostGetFlags(pHost): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pFlags) -{{endif}} - -{{if 'cudaMalloc3D' in found_functions}} @cython.embedsignature(True) def cudaMalloc3D(extent not None : cudaExtent): @@ -25962,9 +24612,6 @@ def cudaMalloc3D(extent not None : cudaExtent): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pitchedDevPtr) -{{endif}} - -{{if 'cudaMalloc3DArray' in found_functions}} @cython.embedsignature(True) def cudaMalloc3DArray(desc : Optional[cudaChannelFormatDesc], extent not None : cudaExtent, unsigned int flags): @@ -26085,9 +24732,6 @@ def cudaMalloc3DArray(desc : Optional[cudaChannelFormatDesc], extent not None : if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, array) -{{endif}} - -{{if 'cudaMallocMipmappedArray' in found_functions}} @cython.embedsignature(True) def cudaMallocMipmappedArray(desc : Optional[cudaChannelFormatDesc], extent not None : cudaExtent, unsigned int numLevels, unsigned int flags): @@ -26211,9 +24855,6 @@ def cudaMallocMipmappedArray(desc : Optional[cudaChannelFormatDesc], extent not if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, mipmappedArray) -{{endif}} - -{{if 'cudaGetMipmappedArrayLevel' in found_functions}} @cython.embedsignature(True) def cudaGetMipmappedArrayLevel(mipmappedArray, unsigned int level): @@ -26260,9 +24901,6 @@ def cudaGetMipmappedArrayLevel(mipmappedArray, unsigned int level): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, levelArray) -{{endif}} - -{{if 'cudaMemcpy3D' in found_functions}} @cython.embedsignature(True) def cudaMemcpy3D(p : Optional[cudaMemcpy3DParms]): @@ -26344,9 +24982,6 @@ def cudaMemcpy3D(p : Optional[cudaMemcpy3DParms]): with nogil: err = cyruntime.cudaMemcpy3D(cyp_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpy3DPeer' in found_functions}} @cython.embedsignature(True) def cudaMemcpy3DPeer(p : Optional[cudaMemcpy3DPeerParms]): @@ -26381,9 +25016,6 @@ def cudaMemcpy3DPeer(p : Optional[cudaMemcpy3DPeerParms]): with nogil: err = cyruntime.cudaMemcpy3DPeer(cyp_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpy3DAsync' in found_functions}} @cython.embedsignature(True) def cudaMemcpy3DAsync(p : Optional[cudaMemcpy3DParms], stream): @@ -26486,9 +25118,6 @@ def cudaMemcpy3DAsync(p : Optional[cudaMemcpy3DParms], stream): with nogil: err = cyruntime.cudaMemcpy3DAsync(cyp_ptr, cystream) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpy3DPeerAsync' in found_functions}} @cython.embedsignature(True) def cudaMemcpy3DPeerAsync(p : Optional[cudaMemcpy3DPeerParms], stream): @@ -26526,9 +25155,6 @@ def cudaMemcpy3DPeerAsync(p : Optional[cudaMemcpy3DPeerParms], stream): with nogil: err = cyruntime.cudaMemcpy3DPeerAsync(cyp_ptr, cystream) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemGetInfo' in found_functions}} @cython.embedsignature(True) def cudaMemGetInfo(): @@ -26571,9 +25197,6 @@ def cudaMemGetInfo(): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None) return (_cudaError_t_SUCCESS, free, total) -{{endif}} - -{{if 'cudaArrayGetInfo' in found_functions}} @cython.embedsignature(True) def cudaArrayGetInfo(array): @@ -26620,9 +25243,6 @@ def cudaArrayGetInfo(array): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None, None) return (_cudaError_t_SUCCESS, desc, extent, flags) -{{endif}} - -{{if 'cudaArrayGetPlane' in found_functions}} @cython.embedsignature(True) def cudaArrayGetPlane(hArray, unsigned int planeIdx): @@ -26676,9 +25296,6 @@ def cudaArrayGetPlane(hArray, unsigned int planeIdx): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pPlaneArray) -{{endif}} - -{{if 'cudaArrayGetMemoryRequirements' in found_functions}} @cython.embedsignature(True) def cudaArrayGetMemoryRequirements(array, int device): @@ -26726,9 +25343,6 @@ def cudaArrayGetMemoryRequirements(array, int device): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, memoryRequirements) -{{endif}} - -{{if 'cudaMipmappedArrayGetMemoryRequirements' in found_functions}} @cython.embedsignature(True) def cudaMipmappedArrayGetMemoryRequirements(mipmap, int device): @@ -26776,9 +25390,6 @@ def cudaMipmappedArrayGetMemoryRequirements(mipmap, int device): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, memoryRequirements) -{{endif}} - -{{if 'cudaArrayGetSparseProperties' in found_functions}} @cython.embedsignature(True) def cudaArrayGetSparseProperties(array): @@ -26832,9 +25443,6 @@ def cudaArrayGetSparseProperties(array): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, sparseProperties) -{{endif}} - -{{if 'cudaMipmappedArrayGetSparseProperties' in found_functions}} @cython.embedsignature(True) def cudaMipmappedArrayGetSparseProperties(mipmap): @@ -26888,9 +25496,6 @@ def cudaMipmappedArrayGetSparseProperties(mipmap): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, sparseProperties) -{{endif}} - -{{if 'cudaMemcpy' in found_functions}} @cython.embedsignature(True) def cudaMemcpy(dst, src, size_t count, kind not None : cudaMemcpyKind): @@ -26940,9 +25545,6 @@ def cudaMemcpy(dst, src, size_t count, kind not None : cudaMemcpyKind): _helper_input_void_ptr_free(&cydstHelper) _helper_input_void_ptr_free(&cysrcHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpyPeer' in found_functions}} @cython.embedsignature(True) def cudaMemcpyPeer(dst, int dstDevice, src, int srcDevice, size_t count): @@ -26990,9 +25592,6 @@ def cudaMemcpyPeer(dst, int dstDevice, src, int srcDevice, size_t count): _helper_input_void_ptr_free(&cydstHelper) _helper_input_void_ptr_free(&cysrcHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpy2D' in found_functions}} @cython.embedsignature(True) def cudaMemcpy2D(dst, size_t dpitch, src, size_t spitch, size_t width, size_t height, kind not None : cudaMemcpyKind): @@ -27052,9 +25651,6 @@ def cudaMemcpy2D(dst, size_t dpitch, src, size_t spitch, size_t width, size_t he _helper_input_void_ptr_free(&cydstHelper) _helper_input_void_ptr_free(&cysrcHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpy2DToArray' in found_functions}} @cython.embedsignature(True) def cudaMemcpy2DToArray(dst, size_t wOffset, size_t hOffset, src, size_t spitch, size_t width, size_t height, kind not None : cudaMemcpyKind): @@ -27120,9 +25716,6 @@ def cudaMemcpy2DToArray(dst, size_t wOffset, size_t hOffset, src, size_t spitch, err = cyruntime.cudaMemcpy2DToArray(cydst, wOffset, hOffset, cysrc, spitch, width, height, cykind) _helper_input_void_ptr_free(&cysrcHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpy2DFromArray' in found_functions}} @cython.embedsignature(True) def cudaMemcpy2DFromArray(dst, size_t dpitch, src, size_t wOffset, size_t hOffset, size_t width, size_t height, kind not None : cudaMemcpyKind): @@ -27188,9 +25781,6 @@ def cudaMemcpy2DFromArray(dst, size_t dpitch, src, size_t wOffset, size_t hOffse err = cyruntime.cudaMemcpy2DFromArray(cydst, dpitch, cysrc, wOffset, hOffset, width, height, cykind) _helper_input_void_ptr_free(&cydstHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpy2DArrayToArray' in found_functions}} @cython.embedsignature(True) def cudaMemcpy2DArrayToArray(dst, size_t wOffsetDst, size_t hOffsetDst, src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, kind not None : cudaMemcpyKind): @@ -27261,9 +25851,6 @@ def cudaMemcpy2DArrayToArray(dst, size_t wOffsetDst, size_t hOffsetDst, src, siz with nogil: err = cyruntime.cudaMemcpy2DArrayToArray(cydst, wOffsetDst, hOffsetDst, cysrc, wOffsetSrc, hOffsetSrc, width, height, cykind) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpyAsync' in found_functions}} @cython.embedsignature(True) def cudaMemcpyAsync(dst, src, size_t count, kind not None : cudaMemcpyKind, stream): @@ -27333,9 +25920,6 @@ def cudaMemcpyAsync(dst, src, size_t count, kind not None : cudaMemcpyKind, stre _helper_input_void_ptr_free(&cydstHelper) _helper_input_void_ptr_free(&cysrcHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpyPeerAsync' in found_functions}} @cython.embedsignature(True) def cudaMemcpyPeerAsync(dst, int dstDevice, src, int srcDevice, size_t count, stream): @@ -27391,9 +25975,6 @@ def cudaMemcpyPeerAsync(dst, int dstDevice, src, int srcDevice, size_t count, st _helper_input_void_ptr_free(&cydstHelper) _helper_input_void_ptr_free(&cysrcHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpyBatchAsync' in found_functions}} @cython.embedsignature(True) def cudaMemcpyBatchAsync(dsts : Optional[tuple[Any] | list[Any]], srcs : Optional[tuple[Any] | list[Any]], sizes : tuple[int] | list[int], size_t count, attrs : Optional[tuple[cudaMemcpyAttributes] | list[cudaMemcpyAttributes]], attrsIdxs : tuple[int] | list[int], size_t numAttrs, stream): @@ -27524,7 +26105,7 @@ def cudaMemcpyBatchAsync(dsts : Optional[tuple[Any] | list[Any]], srcs : Optiona dsts = [] if dsts is None else dsts pylist = [_HelperInputVoidPtr(pydsts) for pydsts in dsts] cdef _InputVoidPtrPtrHelper voidStarHelperdsts = _InputVoidPtrPtrHelper(pylist) - cdef void** cydsts_ptr = voidStarHelperdsts.cptr + cdef const void** cydsts_ptr = voidStarHelperdsts.cptr pylist = [_HelperInputVoidPtr(pysrcs) for pysrcs in srcs] cdef _InputVoidPtrPtrHelper voidStarHelpersrcs = _InputVoidPtrPtrHelper(pylist) cdef void** cysrcs_ptr = voidStarHelpersrcs.cptr @@ -27552,9 +26133,6 @@ def cudaMemcpyBatchAsync(dsts : Optional[tuple[Any] | list[Any]], srcs : Optiona if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, failIdx) -{{endif}} - -{{if 'cudaMemcpy3DBatchAsync' in found_functions}} @cython.embedsignature(True) def cudaMemcpy3DBatchAsync(size_t numOps, opList : Optional[tuple[cudaMemcpy3DBatchOp] | list[cudaMemcpy3DBatchOp]], unsigned long long flags, stream): @@ -27693,9 +26271,6 @@ def cudaMemcpy3DBatchAsync(size_t numOps, opList : Optional[tuple[cudaMemcpy3DBa if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, failIdx) -{{endif}} - -{{if 'cudaMemcpy2DAsync' in found_functions}} @cython.embedsignature(True) def cudaMemcpy2DAsync(dst, size_t dpitch, src, size_t spitch, size_t width, size_t height, kind not None : cudaMemcpyKind, stream): @@ -27776,9 +26351,6 @@ def cudaMemcpy2DAsync(dst, size_t dpitch, src, size_t spitch, size_t width, size _helper_input_void_ptr_free(&cydstHelper) _helper_input_void_ptr_free(&cysrcHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpy2DToArrayAsync' in found_functions}} @cython.embedsignature(True) def cudaMemcpy2DToArrayAsync(dst, size_t wOffset, size_t hOffset, src, size_t spitch, size_t width, size_t height, kind not None : cudaMemcpyKind, stream): @@ -27865,9 +26437,6 @@ def cudaMemcpy2DToArrayAsync(dst, size_t wOffset, size_t hOffset, src, size_t sp err = cyruntime.cudaMemcpy2DToArrayAsync(cydst, wOffset, hOffset, cysrc, spitch, width, height, cykind, cystream) _helper_input_void_ptr_free(&cysrcHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpy2DFromArrayAsync' in found_functions}} @cython.embedsignature(True) def cudaMemcpy2DFromArrayAsync(dst, size_t dpitch, src, size_t wOffset, size_t hOffset, size_t width, size_t height, kind not None : cudaMemcpyKind, stream): @@ -27953,9 +26522,6 @@ def cudaMemcpy2DFromArrayAsync(dst, size_t dpitch, src, size_t wOffset, size_t h err = cyruntime.cudaMemcpy2DFromArrayAsync(cydst, dpitch, cysrc, wOffset, hOffset, width, height, cykind, cystream) _helper_input_void_ptr_free(&cydstHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemset' in found_functions}} @cython.embedsignature(True) def cudaMemset(devPtr, int value, size_t count): @@ -27991,9 +26557,6 @@ def cudaMemset(devPtr, int value, size_t count): err = cyruntime.cudaMemset(cydevPtr, value, count) _helper_input_void_ptr_free(&cydevPtrHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemset2D' in found_functions}} @cython.embedsignature(True) def cudaMemset2D(devPtr, size_t pitch, int value, size_t width, size_t height): @@ -28036,9 +26599,6 @@ def cudaMemset2D(devPtr, size_t pitch, int value, size_t width, size_t height): err = cyruntime.cudaMemset2D(cydevPtr, pitch, value, width, height) _helper_input_void_ptr_free(&cydevPtrHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemset3D' in found_functions}} @cython.embedsignature(True) def cudaMemset3D(pitchedDevPtr not None : cudaPitchedPtr, int value, extent not None : cudaExtent): @@ -28090,9 +26650,6 @@ def cudaMemset3D(pitchedDevPtr not None : cudaPitchedPtr, int value, extent not with nogil: err = cyruntime.cudaMemset3D(pitchedDevPtr._pvt_ptr[0], value, extent._pvt_ptr[0]) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemsetAsync' in found_functions}} @cython.embedsignature(True) def cudaMemsetAsync(devPtr, int value, size_t count, stream): @@ -28144,9 +26701,6 @@ def cudaMemsetAsync(devPtr, int value, size_t count, stream): err = cyruntime.cudaMemsetAsync(cydevPtr, value, count, cystream) _helper_input_void_ptr_free(&cydevPtrHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemset2DAsync' in found_functions}} @cython.embedsignature(True) def cudaMemset2DAsync(devPtr, size_t pitch, int value, size_t width, size_t height, stream): @@ -28205,9 +26759,6 @@ def cudaMemset2DAsync(devPtr, size_t pitch, int value, size_t width, size_t heig err = cyruntime.cudaMemset2DAsync(cydevPtr, pitch, value, width, height, cystream) _helper_input_void_ptr_free(&cydevPtrHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemset3DAsync' in found_functions}} @cython.embedsignature(True) def cudaMemset3DAsync(pitchedDevPtr not None : cudaPitchedPtr, int value, extent not None : cudaExtent, stream): @@ -28275,9 +26826,6 @@ def cudaMemset3DAsync(pitchedDevPtr not None : cudaPitchedPtr, int value, extent with nogil: err = cyruntime.cudaMemset3DAsync(pitchedDevPtr._pvt_ptr[0], value, extent._pvt_ptr[0], cystream) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemPrefetchAsync' in found_functions}} @cython.embedsignature(True) def cudaMemPrefetchAsync(devPtr, size_t count, int dstDevice, stream): @@ -28375,9 +26923,6 @@ def cudaMemPrefetchAsync(devPtr, size_t count, int dstDevice, stream): err = cyruntime.cudaMemPrefetchAsync(cydevPtr, count, dstDevice, cystream) _helper_input_void_ptr_free(&cydevPtrHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemPrefetchAsync_v2' in found_functions}} @cython.embedsignature(True) def cudaMemPrefetchAsync_v2(devPtr, size_t count, location not None : cudaMemLocation, unsigned int flags, stream): @@ -28493,9 +27038,6 @@ def cudaMemPrefetchAsync_v2(devPtr, size_t count, location not None : cudaMemLoc err = cyruntime.cudaMemPrefetchAsync_v2(cydevPtr, count, location._pvt_ptr[0], flags, cystream) _helper_input_void_ptr_free(&cydevPtrHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemAdvise' in found_functions}} @cython.embedsignature(True) def cudaMemAdvise(devPtr, size_t count, advice not None : cudaMemoryAdvise, int device): @@ -28660,9 +27202,6 @@ def cudaMemAdvise(devPtr, size_t count, advice not None : cudaMemoryAdvise, int err = cyruntime.cudaMemAdvise(cydevPtr, count, cyadvice, device) _helper_input_void_ptr_free(&cydevPtrHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemAdvise_v2' in found_functions}} @cython.embedsignature(True) def cudaMemAdvise_v2(devPtr, size_t count, advice not None : cudaMemoryAdvise, location not None : cudaMemLocation): @@ -28858,9 +27397,6 @@ def cudaMemAdvise_v2(devPtr, size_t count, advice not None : cudaMemoryAdvise, l err = cyruntime.cudaMemAdvise_v2(cydevPtr, count, cyadvice, location._pvt_ptr[0]) _helper_input_void_ptr_free(&cydevPtrHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemRangeGetAttribute' in found_functions}} @cython.embedsignature(True) def cudaMemRangeGetAttribute(size_t dataSize, attribute not None : cudaMemRangeAttribute, devPtr, size_t count): @@ -29009,9 +27545,6 @@ def cudaMemRangeGetAttribute(size_t dataSize, attribute not None : cudaMemRangeA if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, cydata.pyObj()) -{{endif}} - -{{if 'cudaMemRangeGetAttributes' in found_functions}} @cython.embedsignature(True) def cudaMemRangeGetAttributes(dataSizes : tuple[int] | list[int], attributes : Optional[tuple[cudaMemRangeAttribute] | list[cudaMemRangeAttribute]], size_t numAttributes, devPtr, size_t count): @@ -29091,9 +27624,6 @@ def cudaMemRangeGetAttributes(dataSizes : tuple[int] | list[int], attributes : O if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, [obj.pyObj() for obj in pylist]) -{{endif}} - -{{if 'cudaMemcpyToArray' in found_functions}} @cython.embedsignature(True) def cudaMemcpyToArray(dst, size_t wOffset, size_t hOffset, src, size_t count, kind not None : cudaMemcpyKind): @@ -29151,9 +27681,6 @@ def cudaMemcpyToArray(dst, size_t wOffset, size_t hOffset, src, size_t count, ki err = cyruntime.cudaMemcpyToArray(cydst, wOffset, hOffset, cysrc, count, cykind) _helper_input_void_ptr_free(&cysrcHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpyFromArray' in found_functions}} @cython.embedsignature(True) def cudaMemcpyFromArray(dst, src, size_t wOffset, size_t hOffset, size_t count, kind not None : cudaMemcpyKind): @@ -29211,9 +27738,6 @@ def cudaMemcpyFromArray(dst, src, size_t wOffset, size_t hOffset, size_t count, err = cyruntime.cudaMemcpyFromArray(cydst, cysrc, wOffset, hOffset, count, cykind) _helper_input_void_ptr_free(&cydstHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpyArrayToArray' in found_functions}} @cython.embedsignature(True) def cudaMemcpyArrayToArray(dst, size_t wOffsetDst, size_t hOffsetDst, src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, kind not None : cudaMemcpyKind): @@ -29281,9 +27805,6 @@ def cudaMemcpyArrayToArray(dst, size_t wOffsetDst, size_t hOffsetDst, src, size_ with nogil: err = cyruntime.cudaMemcpyArrayToArray(cydst, wOffsetDst, hOffsetDst, cysrc, wOffsetSrc, hOffsetSrc, count, cykind) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpyToArrayAsync' in found_functions}} @cython.embedsignature(True) def cudaMemcpyToArrayAsync(dst, size_t wOffset, size_t hOffset, src, size_t count, kind not None : cudaMemcpyKind, stream): @@ -29358,9 +27879,6 @@ def cudaMemcpyToArrayAsync(dst, size_t wOffset, size_t hOffset, src, size_t coun err = cyruntime.cudaMemcpyToArrayAsync(cydst, wOffset, hOffset, cysrc, count, cykind, cystream) _helper_input_void_ptr_free(&cysrcHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpyFromArrayAsync' in found_functions}} @cython.embedsignature(True) def cudaMemcpyFromArrayAsync(dst, src, size_t wOffset, size_t hOffset, size_t count, kind not None : cudaMemcpyKind, stream): @@ -29435,9 +27953,6 @@ def cudaMemcpyFromArrayAsync(dst, src, size_t wOffset, size_t hOffset, size_t co err = cyruntime.cudaMemcpyFromArrayAsync(cydst, cysrc, wOffset, hOffset, count, cykind, cystream) _helper_input_void_ptr_free(&cydstHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMallocAsync' in found_functions}} @cython.embedsignature(True) def cudaMallocAsync(size_t size, hStream): @@ -29490,9 +28005,6 @@ def cudaMallocAsync(size_t size, hStream): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, devPtr) -{{endif}} - -{{if 'cudaFreeAsync' in found_functions}} @cython.embedsignature(True) def cudaFreeAsync(devPtr, hStream): @@ -29537,9 +28049,6 @@ def cudaFreeAsync(devPtr, hStream): err = cyruntime.cudaFreeAsync(cydevPtr, cyhStream) _helper_input_void_ptr_free(&cydevPtrHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemPoolTrimTo' in found_functions}} @cython.embedsignature(True) def cudaMemPoolTrimTo(memPool, size_t minBytesToKeep): @@ -29587,9 +28096,6 @@ def cudaMemPoolTrimTo(memPool, size_t minBytesToKeep): with nogil: err = cyruntime.cudaMemPoolTrimTo(cymemPool, minBytesToKeep) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemPoolSetAttribute' in found_functions}} @cython.embedsignature(True) def cudaMemPoolSetAttribute(memPool, attr not None : cudaMemPoolAttr, value): @@ -29663,9 +28169,6 @@ def cudaMemPoolSetAttribute(memPool, attr not None : cudaMemPoolAttr, value): with nogil: err = cyruntime.cudaMemPoolSetAttribute(cymemPool, cyattr, cyvalue_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemPoolGetAttribute' in found_functions}} @cython.embedsignature(True) def cudaMemPoolGetAttribute(memPool, attr not None : cudaMemPoolAttr): @@ -29747,9 +28250,6 @@ def cudaMemPoolGetAttribute(memPool, attr not None : cudaMemPoolAttr): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, cyvalue.pyObj()) -{{endif}} - -{{if 'cudaMemPoolSetAccess' in found_functions}} @cython.embedsignature(True) def cudaMemPoolSetAccess(memPool, descList : Optional[tuple[cudaMemAccessDesc] | list[cudaMemAccessDesc]], size_t count): @@ -29800,9 +28300,6 @@ def cudaMemPoolSetAccess(memPool, descList : Optional[tuple[cudaMemAccessDesc] | if len(descList) > 1 and cydescList is not NULL: free(cydescList) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemPoolGetAccess' in found_functions}} @cython.embedsignature(True) def cudaMemPoolGetAccess(memPool, location : Optional[cudaMemLocation]): @@ -29844,9 +28341,6 @@ def cudaMemPoolGetAccess(memPool, location : Optional[cudaMemLocation]): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, cudaMemAccessFlags(flags)) -{{endif}} - -{{if 'cudaMemPoolCreate' in found_functions}} @cython.embedsignature(True) def cudaMemPoolCreate(poolProps : Optional[cudaMemPoolProps]): @@ -29919,9 +28413,6 @@ def cudaMemPoolCreate(poolProps : Optional[cudaMemPoolProps]): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, memPool) -{{endif}} - -{{if 'cudaMemPoolDestroy' in found_functions}} @cython.embedsignature(True) def cudaMemPoolDestroy(memPool): @@ -29965,9 +28456,6 @@ def cudaMemPoolDestroy(memPool): with nogil: err = cyruntime.cudaMemPoolDestroy(cymemPool) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMallocFromPoolAsync' in found_functions}} @cython.embedsignature(True) def cudaMallocFromPoolAsync(size_t size, memPool, stream): @@ -30024,9 +28512,6 @@ def cudaMallocFromPoolAsync(size_t size, memPool, stream): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, ptr) -{{endif}} - -{{if 'cudaMemPoolExportToShareableHandle' in found_functions}} @cython.embedsignature(True) def cudaMemPoolExportToShareableHandle(memPool, handleType not None : cudaMemAllocationHandleType, unsigned int flags): @@ -30081,9 +28566,6 @@ def cudaMemPoolExportToShareableHandle(memPool, handleType not None : cudaMemAll if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, cyshareableHandle.pyObj()) -{{endif}} - -{{if 'cudaMemPoolImportFromShareableHandle' in found_functions}} @cython.embedsignature(True) def cudaMemPoolImportFromShareableHandle(shareableHandle, handleType not None : cudaMemAllocationHandleType, unsigned int flags): @@ -30126,9 +28608,6 @@ def cudaMemPoolImportFromShareableHandle(shareableHandle, handleType not None : if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, memPool) -{{endif}} - -{{if 'cudaMemPoolExportPointer' in found_functions}} @cython.embedsignature(True) def cudaMemPoolExportPointer(ptr): @@ -30164,9 +28643,6 @@ def cudaMemPoolExportPointer(ptr): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, exportData) -{{endif}} - -{{if 'cudaMemPoolImportPointer' in found_functions}} @cython.embedsignature(True) def cudaMemPoolImportPointer(memPool, exportData : Optional[cudaMemPoolPtrExportData]): @@ -30217,9 +28693,6 @@ def cudaMemPoolImportPointer(memPool, exportData : Optional[cudaMemPoolPtrExport if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, ptr) -{{endif}} - -{{if 'cudaPointerGetAttributes' in found_functions}} @cython.embedsignature(True) def cudaPointerGetAttributes(ptr): @@ -30290,9 +28763,6 @@ def cudaPointerGetAttributes(ptr): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, attributes) -{{endif}} - -{{if 'cudaDeviceCanAccessPeer' in found_functions}} @cython.embedsignature(True) def cudaDeviceCanAccessPeer(int device, int peerDevice): @@ -30329,9 +28799,6 @@ def cudaDeviceCanAccessPeer(int device, int peerDevice): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, canAccessPeer) -{{endif}} - -{{if 'cudaDeviceEnablePeerAccess' in found_functions}} @cython.embedsignature(True) def cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags): @@ -30380,9 +28847,6 @@ def cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags): with nogil: err = cyruntime.cudaDeviceEnablePeerAccess(peerDevice, flags) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaDeviceDisablePeerAccess' in found_functions}} @cython.embedsignature(True) def cudaDeviceDisablePeerAccess(int peerDevice): @@ -30409,9 +28873,6 @@ def cudaDeviceDisablePeerAccess(int peerDevice): with nogil: err = cyruntime.cudaDeviceDisablePeerAccess(peerDevice) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphicsUnregisterResource' in found_functions}} @cython.embedsignature(True) def cudaGraphicsUnregisterResource(resource): @@ -30448,9 +28909,6 @@ def cudaGraphicsUnregisterResource(resource): with nogil: err = cyruntime.cudaGraphicsUnregisterResource(cyresource) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphicsResourceSetMapFlags' in found_functions}} @cython.embedsignature(True) def cudaGraphicsResourceSetMapFlags(resource, unsigned int flags): @@ -30504,9 +28962,6 @@ def cudaGraphicsResourceSetMapFlags(resource, unsigned int flags): with nogil: err = cyruntime.cudaGraphicsResourceSetMapFlags(cyresource, flags) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphicsMapResources' in found_functions}} @cython.embedsignature(True) def cudaGraphicsMapResources(int count, resources, stream): @@ -30567,9 +29022,6 @@ def cudaGraphicsMapResources(int count, resources, stream): with nogil: err = cyruntime.cudaGraphicsMapResources(count, cyresources, cystream) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphicsUnmapResources' in found_functions}} @cython.embedsignature(True) def cudaGraphicsUnmapResources(int count, resources, stream): @@ -30628,9 +29080,6 @@ def cudaGraphicsUnmapResources(int count, resources, stream): with nogil: err = cyruntime.cudaGraphicsUnmapResources(count, cyresources, cystream) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphicsResourceGetMappedPointer' in found_functions}} @cython.embedsignature(True) def cudaGraphicsResourceGetMappedPointer(resource): @@ -30648,16 +29097,20 @@ def cudaGraphicsResourceGetMappedPointer(resource): Parameters ---------- resource : :py:obj:`~.cudaGraphicsResource_t` - None + Mapped resource to access Returns ------- cudaError_t - + :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorUnknown` devPtr : Any - None + Returned pointer through which `resource` may be accessed size : int - None + Returned size of the buffer accessible starting at `*devPtr` + + See Also + -------- + :py:obj:`~.cudaGraphicsMapResources`, :py:obj:`~.cudaGraphicsSubResourceGetMappedArray`, :py:obj:`~.cuGraphicsResourceGetMappedPointer` """ cdef cyruntime.cudaGraphicsResource_t cyresource if resource is None: @@ -30674,9 +29127,6 @@ def cudaGraphicsResourceGetMappedPointer(resource): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None) return (_cudaError_t_SUCCESS, devPtr, size) -{{endif}} - -{{if 'cudaGraphicsSubResourceGetMappedArray' in found_functions}} @cython.embedsignature(True) def cudaGraphicsSubResourceGetMappedArray(resource, unsigned int arrayIndex, unsigned int mipLevel): @@ -30731,9 +29181,6 @@ def cudaGraphicsSubResourceGetMappedArray(resource, unsigned int arrayIndex, uns if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, array) -{{endif}} - -{{if 'cudaGraphicsResourceGetMappedMipmappedArray' in found_functions}} @cython.embedsignature(True) def cudaGraphicsResourceGetMappedMipmappedArray(resource): @@ -30777,9 +29224,6 @@ def cudaGraphicsResourceGetMappedMipmappedArray(resource): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, mipmappedArray) -{{endif}} - -{{if 'cudaGetChannelDesc' in found_functions}} @cython.embedsignature(True) def cudaGetChannelDesc(array): @@ -30817,9 +29261,6 @@ def cudaGetChannelDesc(array): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, desc) -{{endif}} - -{{if 'cudaCreateChannelDesc' in found_functions}} @cython.embedsignature(True) def cudaCreateChannelDesc(int x, int y, int z, int w, f not None : cudaChannelFormatKind): @@ -30866,9 +29307,6 @@ def cudaCreateChannelDesc(int x, int y, int z, int w, f not None : cudaChannelFo cdef cudaChannelFormatDesc wrapper = cudaChannelFormatDesc() wrapper._pvt_ptr[0] = err return (cudaError_t.cudaSuccess, wrapper) -{{endif}} - -{{if 'cudaCreateTextureObject' in found_functions}} @cython.embedsignature(True) def cudaCreateTextureObject(pResDesc : Optional[cudaResourceDesc], pTexDesc : Optional[cudaTextureDesc], pResViewDesc : Optional[cudaResourceViewDesc]): @@ -31111,9 +29549,6 @@ def cudaCreateTextureObject(pResDesc : Optional[cudaResourceDesc], pTexDesc : Op if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pTexObject) -{{endif}} - -{{if 'cudaDestroyTextureObject' in found_functions}} @cython.embedsignature(True) def cudaDestroyTextureObject(texObject): @@ -31146,9 +29581,6 @@ def cudaDestroyTextureObject(texObject): with nogil: err = cyruntime.cudaDestroyTextureObject(cytexObject) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGetTextureObjectResourceDesc' in found_functions}} @cython.embedsignature(True) def cudaGetTextureObjectResourceDesc(texObject): @@ -31187,9 +29619,6 @@ def cudaGetTextureObjectResourceDesc(texObject): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pResDesc) -{{endif}} - -{{if 'cudaGetTextureObjectTextureDesc' in found_functions}} @cython.embedsignature(True) def cudaGetTextureObjectTextureDesc(texObject): @@ -31228,9 +29657,6 @@ def cudaGetTextureObjectTextureDesc(texObject): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pTexDesc) -{{endif}} - -{{if 'cudaGetTextureObjectResourceViewDesc' in found_functions}} @cython.embedsignature(True) def cudaGetTextureObjectResourceViewDesc(texObject): @@ -31270,9 +29696,6 @@ def cudaGetTextureObjectResourceViewDesc(texObject): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pResViewDesc) -{{endif}} - -{{if 'cudaCreateSurfaceObject' in found_functions}} @cython.embedsignature(True) def cudaCreateSurfaceObject(pResDesc : Optional[cudaResourceDesc]): @@ -31312,9 +29735,6 @@ def cudaCreateSurfaceObject(pResDesc : Optional[cudaResourceDesc]): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pSurfObject) -{{endif}} - -{{if 'cudaDestroySurfaceObject' in found_functions}} @cython.embedsignature(True) def cudaDestroySurfaceObject(surfObject): @@ -31347,9 +29767,6 @@ def cudaDestroySurfaceObject(surfObject): with nogil: err = cyruntime.cudaDestroySurfaceObject(cysurfObject) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGetSurfaceObjectResourceDesc' in found_functions}} @cython.embedsignature(True) def cudaGetSurfaceObjectResourceDesc(surfObject): @@ -31385,9 +29802,6 @@ def cudaGetSurfaceObjectResourceDesc(surfObject): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pResDesc) -{{endif}} - -{{if 'cudaDriverGetVersion' in found_functions}} @cython.embedsignature(True) def cudaDriverGetVersion(): @@ -31418,9 +29832,6 @@ def cudaDriverGetVersion(): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, driverVersion) -{{endif}} - -{{if 'cudaRuntimeGetVersion' in found_functions}} @cython.embedsignature(True) def cudaRuntimeGetVersion(): @@ -31454,9 +29865,6 @@ def cudaRuntimeGetVersion(): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, runtimeVersion) -{{endif}} - -{{if 'cudaGraphCreate' in found_functions}} @cython.embedsignature(True) def cudaGraphCreate(unsigned int flags): @@ -31486,9 +29894,6 @@ def cudaGraphCreate(unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraph) -{{endif}} - -{{if 'cudaGraphAddKernelNode' in found_functions}} @cython.embedsignature(True) def cudaGraphAddKernelNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, pNodeParams : Optional[cudaKernelNodeParams]): @@ -31608,9 +30013,6 @@ def cudaGraphAddKernelNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphKernelNodeGetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphKernelNodeGetParams(node): @@ -31657,9 +30059,6 @@ def cudaGraphKernelNodeGetParams(node): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pNodeParams) -{{endif}} - -{{if 'cudaGraphKernelNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphKernelNodeSetParams(node, pNodeParams : Optional[cudaKernelNodeParams]): @@ -31695,9 +30094,6 @@ def cudaGraphKernelNodeSetParams(node, pNodeParams : Optional[cudaKernelNodePara with nogil: err = cyruntime.cudaGraphKernelNodeSetParams(cynode, cypNodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphKernelNodeCopyAttributes' in found_functions}} @cython.embedsignature(True) def cudaGraphKernelNodeCopyAttributes(hSrc, hDst): @@ -31742,9 +30138,6 @@ def cudaGraphKernelNodeCopyAttributes(hSrc, hDst): with nogil: err = cyruntime.cudaGraphKernelNodeCopyAttributes(cyhSrc, cyhDst) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphKernelNodeGetAttribute' in found_functions}} @cython.embedsignature(True) def cudaGraphKernelNodeGetAttribute(hNode, attr not None : cudaKernelNodeAttrID): @@ -31759,14 +30152,12 @@ def cudaGraphKernelNodeGetAttribute(hNode, attr not None : cudaKernelNodeAttrID) attr : :py:obj:`~.cudaKernelNodeAttrID` - Returns ------- cudaError_t :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle` value_out : :py:obj:`~.cudaKernelNodeAttrValue` - See Also -------- :py:obj:`~.cudaAccessPolicyWindow` @@ -31786,9 +30177,6 @@ def cudaGraphKernelNodeGetAttribute(hNode, attr not None : cudaKernelNodeAttrID) if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, value_out) -{{endif}} - -{{if 'cudaGraphKernelNodeSetAttribute' in found_functions}} @cython.embedsignature(True) def cudaGraphKernelNodeSetAttribute(hNode, attr not None : cudaKernelNodeAttrID, value : Optional[cudaKernelNodeAttrValue]): @@ -31805,7 +30193,6 @@ def cudaGraphKernelNodeSetAttribute(hNode, attr not None : cudaKernelNodeAttrID, value : :py:obj:`~.cudaKernelNodeAttrValue` - Returns ------- cudaError_t @@ -31828,9 +30215,6 @@ def cudaGraphKernelNodeSetAttribute(hNode, attr not None : cudaKernelNodeAttrID, with nogil: err = cyruntime.cudaGraphKernelNodeSetAttribute(cyhNode, cyattr, cyvalue_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphAddMemcpyNode' in found_functions}} @cython.embedsignature(True) def cudaGraphAddMemcpyNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, pCopyParams : Optional[cudaMemcpy3DParms]): @@ -31904,9 +30288,6 @@ def cudaGraphAddMemcpyNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphAddMemcpyNode1D' in found_functions}} @cython.embedsignature(True) def cudaGraphAddMemcpyNode1D(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, dst, src, size_t count, kind not None : cudaMemcpyKind): @@ -32001,9 +30382,6 @@ def cudaGraphAddMemcpyNode1D(graph, pDependencies : Optional[tuple[cudaGraphNode if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphMemcpyNodeGetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphMemcpyNodeGetParams(node): @@ -32041,9 +30419,6 @@ def cudaGraphMemcpyNodeGetParams(node): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pNodeParams) -{{endif}} - -{{if 'cudaGraphMemcpyNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphMemcpyNodeSetParams(node, pNodeParams : Optional[cudaMemcpy3DParms]): @@ -32079,9 +30454,6 @@ def cudaGraphMemcpyNodeSetParams(node, pNodeParams : Optional[cudaMemcpy3DParms] with nogil: err = cyruntime.cudaGraphMemcpyNodeSetParams(cynode, cypNodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphMemcpyNodeSetParams1D' in found_functions}} @cython.embedsignature(True) def cudaGraphMemcpyNodeSetParams1D(node, dst, src, size_t count, kind not None : cudaMemcpyKind): @@ -32143,9 +30515,6 @@ def cudaGraphMemcpyNodeSetParams1D(node, dst, src, size_t count, kind not None : _helper_input_void_ptr_free(&cydstHelper) _helper_input_void_ptr_free(&cysrcHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphAddMemsetNode' in found_functions}} @cython.embedsignature(True) def cudaGraphAddMemsetNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, pMemsetParams : Optional[cudaMemsetParams]): @@ -32213,9 +30582,6 @@ def cudaGraphAddMemsetNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphMemsetNodeGetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphMemsetNodeGetParams(node): @@ -32253,9 +30619,6 @@ def cudaGraphMemsetNodeGetParams(node): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pNodeParams) -{{endif}} - -{{if 'cudaGraphMemsetNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphMemsetNodeSetParams(node, pNodeParams : Optional[cudaMemsetParams]): @@ -32291,9 +30654,6 @@ def cudaGraphMemsetNodeSetParams(node, pNodeParams : Optional[cudaMemsetParams]) with nogil: err = cyruntime.cudaGraphMemsetNodeSetParams(cynode, cypNodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphAddHostNode' in found_functions}} @cython.embedsignature(True) def cudaGraphAddHostNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, pNodeParams : Optional[cudaHostNodeParams]): @@ -32362,9 +30722,6 @@ def cudaGraphAddHostNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphHostNodeGetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphHostNodeGetParams(node): @@ -32402,9 +30759,6 @@ def cudaGraphHostNodeGetParams(node): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pNodeParams) -{{endif}} - -{{if 'cudaGraphHostNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphHostNodeSetParams(node, pNodeParams : Optional[cudaHostNodeParams]): @@ -32440,9 +30794,6 @@ def cudaGraphHostNodeSetParams(node, pNodeParams : Optional[cudaHostNodeParams]) with nogil: err = cyruntime.cudaGraphHostNodeSetParams(cynode, cypNodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphAddChildGraphNode' in found_functions}} @cython.embedsignature(True) def cudaGraphAddChildGraphNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, childGraph): @@ -32521,9 +30872,6 @@ def cudaGraphAddChildGraphNode(graph, pDependencies : Optional[tuple[cudaGraphNo if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphChildGraphNodeGetGraph' in found_functions}} @cython.embedsignature(True) def cudaGraphChildGraphNodeGetGraph(node): @@ -32566,9 +30914,6 @@ def cudaGraphChildGraphNodeGetGraph(node): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraph) -{{endif}} - -{{if 'cudaGraphAddEmptyNode' in found_functions}} @cython.embedsignature(True) def cudaGraphAddEmptyNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies): @@ -32637,9 +30982,6 @@ def cudaGraphAddEmptyNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphAddEventRecordNode' in found_functions}} @cython.embedsignature(True) def cudaGraphAddEventRecordNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, event): @@ -32717,9 +31059,6 @@ def cudaGraphAddEventRecordNode(graph, pDependencies : Optional[tuple[cudaGraphN if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphEventRecordNodeGetEvent' in found_functions}} @cython.embedsignature(True) def cudaGraphEventRecordNodeGetEvent(node): @@ -32757,9 +31096,6 @@ def cudaGraphEventRecordNodeGetEvent(node): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, event_out) -{{endif}} - -{{if 'cudaGraphEventRecordNodeSetEvent' in found_functions}} @cython.embedsignature(True) def cudaGraphEventRecordNodeSetEvent(node, event): @@ -32802,9 +31138,6 @@ def cudaGraphEventRecordNodeSetEvent(node, event): with nogil: err = cyruntime.cudaGraphEventRecordNodeSetEvent(cynode, cyevent) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphAddEventWaitNode' in found_functions}} @cython.embedsignature(True) def cudaGraphAddEventWaitNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, event): @@ -32885,9 +31218,6 @@ def cudaGraphAddEventWaitNode(graph, pDependencies : Optional[tuple[cudaGraphNod if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphEventWaitNodeGetEvent' in found_functions}} @cython.embedsignature(True) def cudaGraphEventWaitNodeGetEvent(node): @@ -32925,9 +31255,6 @@ def cudaGraphEventWaitNodeGetEvent(node): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, event_out) -{{endif}} - -{{if 'cudaGraphEventWaitNodeSetEvent' in found_functions}} @cython.embedsignature(True) def cudaGraphEventWaitNodeSetEvent(node, event): @@ -32970,9 +31297,6 @@ def cudaGraphEventWaitNodeSetEvent(node, event): with nogil: err = cyruntime.cudaGraphEventWaitNodeSetEvent(cynode, cyevent) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphAddExternalSemaphoresSignalNode' in found_functions}} @cython.embedsignature(True) def cudaGraphAddExternalSemaphoresSignalNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, nodeParams : Optional[cudaExternalSemaphoreSignalNodeParams]): @@ -33042,9 +31366,6 @@ def cudaGraphAddExternalSemaphoresSignalNode(graph, pDependencies : Optional[tup if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphExternalSemaphoresSignalNodeGetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphExternalSemaphoresSignalNodeGetParams(hNode): @@ -33088,9 +31409,6 @@ def cudaGraphExternalSemaphoresSignalNodeGetParams(hNode): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, params_out) -{{endif}} - -{{if 'cudaGraphExternalSemaphoresSignalNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams : Optional[cudaExternalSemaphoreSignalNodeParams]): @@ -33127,9 +31445,6 @@ def cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams : Optional[ with nogil: err = cyruntime.cudaGraphExternalSemaphoresSignalNodeSetParams(cyhNode, cynodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphAddExternalSemaphoresWaitNode' in found_functions}} @cython.embedsignature(True) def cudaGraphAddExternalSemaphoresWaitNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, nodeParams : Optional[cudaExternalSemaphoreWaitNodeParams]): @@ -33199,9 +31514,6 @@ def cudaGraphAddExternalSemaphoresWaitNode(graph, pDependencies : Optional[tuple if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphExternalSemaphoresWaitNodeGetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphExternalSemaphoresWaitNodeGetParams(hNode): @@ -33245,9 +31557,6 @@ def cudaGraphExternalSemaphoresWaitNodeGetParams(hNode): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, params_out) -{{endif}} - -{{if 'cudaGraphExternalSemaphoresWaitNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams : Optional[cudaExternalSemaphoreWaitNodeParams]): @@ -33284,9 +31593,6 @@ def cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams : Optional[cu with nogil: err = cyruntime.cudaGraphExternalSemaphoresWaitNodeSetParams(cyhNode, cynodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphAddMemAllocNode' in found_functions}} @cython.embedsignature(True) def cudaGraphAddMemAllocNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, nodeParams : Optional[cudaMemAllocNodeParams]): @@ -33395,9 +31701,6 @@ def cudaGraphAddMemAllocNode(graph, pDependencies : Optional[tuple[cudaGraphNode if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphMemAllocNodeGetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphMemAllocNodeGetParams(node): @@ -33438,9 +31741,6 @@ def cudaGraphMemAllocNodeGetParams(node): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, params_out) -{{endif}} - -{{if 'cudaGraphAddMemFreeNode' in found_functions}} @cython.embedsignature(True) def cudaGraphAddMemFreeNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, dptr): @@ -33529,9 +31829,6 @@ def cudaGraphAddMemFreeNode(graph, pDependencies : Optional[tuple[cudaGraphNode_ if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphMemFreeNodeGetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphMemFreeNodeGetParams(node): @@ -33570,9 +31867,6 @@ def cudaGraphMemFreeNodeGetParams(node): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, dptr_out) -{{endif}} - -{{if 'cudaDeviceGraphMemTrim' in found_functions}} @cython.embedsignature(True) def cudaDeviceGraphMemTrim(int device): @@ -33599,9 +31893,6 @@ def cudaDeviceGraphMemTrim(int device): with nogil: err = cyruntime.cudaDeviceGraphMemTrim(device) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaDeviceGetGraphMemAttribute' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetGraphMemAttribute(int device, attr not None : cudaGraphMemAttributeType): @@ -33650,9 +31941,6 @@ def cudaDeviceGetGraphMemAttribute(int device, attr not None : cudaGraphMemAttri if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, cyvalue.pyObj()) -{{endif}} - -{{if 'cudaDeviceSetGraphMemAttribute' in found_functions}} @cython.embedsignature(True) def cudaDeviceSetGraphMemAttribute(int device, attr not None : cudaGraphMemAttributeType, value): @@ -33692,9 +31980,6 @@ def cudaDeviceSetGraphMemAttribute(int device, attr not None : cudaGraphMemAttri with nogil: err = cyruntime.cudaDeviceSetGraphMemAttribute(device, cyattr, cyvalue_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphClone' in found_functions}} @cython.embedsignature(True) def cudaGraphClone(originalGraph): @@ -33742,9 +32027,6 @@ def cudaGraphClone(originalGraph): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphClone) -{{endif}} - -{{if 'cudaGraphNodeFindInClone' in found_functions}} @cython.embedsignature(True) def cudaGraphNodeFindInClone(originalNode, clonedGraph): @@ -33799,9 +32081,6 @@ def cudaGraphNodeFindInClone(originalNode, clonedGraph): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pNode) -{{endif}} - -{{if 'cudaGraphNodeGetType' in found_functions}} @cython.embedsignature(True) def cudaGraphNodeGetType(node): @@ -33839,9 +32118,6 @@ def cudaGraphNodeGetType(node): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, cudaGraphNodeType(pType)) -{{endif}} - -{{if 'cudaGraphGetNodes' in found_functions}} @cython.embedsignature(True) def cudaGraphGetNodes(graph, size_t numNodes = 0): @@ -33900,9 +32176,6 @@ def cudaGraphGetNodes(graph, size_t numNodes = 0): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None) return (_cudaError_t_SUCCESS, pynodes, numNodes) -{{endif}} - -{{if 'cudaGraphGetRootNodes' in found_functions}} @cython.embedsignature(True) def cudaGraphGetRootNodes(graph, size_t pNumRootNodes = 0): @@ -33961,9 +32234,6 @@ def cudaGraphGetRootNodes(graph, size_t pNumRootNodes = 0): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None) return (_cudaError_t_SUCCESS, pypRootNodes, pNumRootNodes) -{{endif}} - -{{if 'cudaGraphGetEdges' in found_functions}} @cython.embedsignature(True) def cudaGraphGetEdges(graph, size_t numEdges = 0): @@ -34038,9 +32308,6 @@ def cudaGraphGetEdges(graph, size_t numEdges = 0): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None, None) return (_cudaError_t_SUCCESS, pyfrom_, pyto, numEdges) -{{endif}} - -{{if 'cudaGraphGetEdges_v2' in found_functions}} @cython.embedsignature(True) def cudaGraphGetEdges_v2(graph, size_t numEdges = 0): @@ -34134,9 +32401,6 @@ def cudaGraphGetEdges_v2(graph, size_t numEdges = 0): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None, None, None) return (_cudaError_t_SUCCESS, pyfrom_, pyto, pyedgeData, numEdges) -{{endif}} - -{{if 'cudaGraphNodeGetDependencies' in found_functions}} @cython.embedsignature(True) def cudaGraphNodeGetDependencies(node, size_t pNumDependencies = 0): @@ -34196,9 +32460,6 @@ def cudaGraphNodeGetDependencies(node, size_t pNumDependencies = 0): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None) return (_cudaError_t_SUCCESS, pypDependencies, pNumDependencies) -{{endif}} - -{{if 'cudaGraphNodeGetDependencies_v2' in found_functions}} @cython.embedsignature(True) def cudaGraphNodeGetDependencies_v2(node, size_t pNumDependencies = 0): @@ -34277,9 +32538,6 @@ def cudaGraphNodeGetDependencies_v2(node, size_t pNumDependencies = 0): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None, None) return (_cudaError_t_SUCCESS, pypDependencies, pyedgeData, pNumDependencies) -{{endif}} - -{{if 'cudaGraphNodeGetDependentNodes' in found_functions}} @cython.embedsignature(True) def cudaGraphNodeGetDependentNodes(node, size_t pNumDependentNodes = 0): @@ -34339,9 +32597,6 @@ def cudaGraphNodeGetDependentNodes(node, size_t pNumDependentNodes = 0): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None) return (_cudaError_t_SUCCESS, pypDependentNodes, pNumDependentNodes) -{{endif}} - -{{if 'cudaGraphNodeGetDependentNodes_v2' in found_functions}} @cython.embedsignature(True) def cudaGraphNodeGetDependentNodes_v2(node, size_t pNumDependentNodes = 0): @@ -34420,9 +32675,6 @@ def cudaGraphNodeGetDependentNodes_v2(node, size_t pNumDependentNodes = 0): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None, None) return (_cudaError_t_SUCCESS, pypDependentNodes, pyedgeData, pNumDependentNodes) -{{endif}} - -{{if 'cudaGraphAddDependencies' in found_functions}} @cython.embedsignature(True) def cudaGraphAddDependencies(graph, from_ : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], to : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies): @@ -34498,9 +32750,6 @@ def cudaGraphAddDependencies(graph, from_ : Optional[tuple[cudaGraphNode_t] | li if len(to) > 1 and cyto is not NULL: free(cyto) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphAddDependencies_v2' in found_functions}} @cython.embedsignature(True) def cudaGraphAddDependencies_v2(graph, from_ : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], to : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], edgeData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies): @@ -34591,9 +32840,6 @@ def cudaGraphAddDependencies_v2(graph, from_ : Optional[tuple[cudaGraphNode_t] | if len(edgeData) > 1 and cyedgeData is not NULL: free(cyedgeData) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphRemoveDependencies' in found_functions}} @cython.embedsignature(True) def cudaGraphRemoveDependencies(graph, from_ : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], to : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies): @@ -34670,9 +32916,6 @@ def cudaGraphRemoveDependencies(graph, from_ : Optional[tuple[cudaGraphNode_t] | if len(to) > 1 and cyto is not NULL: free(cyto) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphRemoveDependencies_v2' in found_functions}} @cython.embedsignature(True) def cudaGraphRemoveDependencies_v2(graph, from_ : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], to : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], edgeData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies): @@ -34766,9 +33009,6 @@ def cudaGraphRemoveDependencies_v2(graph, from_ : Optional[tuple[cudaGraphNode_t if len(edgeData) > 1 and cyedgeData is not NULL: free(cyedgeData) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphDestroyNode' in found_functions}} @cython.embedsignature(True) def cudaGraphDestroyNode(node): @@ -34805,9 +33045,6 @@ def cudaGraphDestroyNode(node): with nogil: err = cyruntime.cudaGraphDestroyNode(cynode) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphInstantiate' in found_functions}} @cython.embedsignature(True) def cudaGraphInstantiate(graph, unsigned long long flags): @@ -34909,9 +33146,6 @@ def cudaGraphInstantiate(graph, unsigned long long flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphExec) -{{endif}} - -{{if 'cudaGraphInstantiateWithFlags' in found_functions}} @cython.embedsignature(True) def cudaGraphInstantiateWithFlags(graph, unsigned long long flags): @@ -35015,9 +33249,6 @@ def cudaGraphInstantiateWithFlags(graph, unsigned long long flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphExec) -{{endif}} - -{{if 'cudaGraphInstantiateWithParams' in found_functions}} @cython.embedsignature(True) def cudaGraphInstantiateWithParams(graph, instantiateParams : Optional[cudaGraphInstantiateParams]): @@ -35162,9 +33393,6 @@ def cudaGraphInstantiateWithParams(graph, instantiateParams : Optional[cudaGraph if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphExec) -{{endif}} - -{{if 'cudaGraphExecGetFlags' in found_functions}} @cython.embedsignature(True) def cudaGraphExecGetFlags(graphExec): @@ -35205,9 +33433,6 @@ def cudaGraphExecGetFlags(graphExec): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, flags) -{{endif}} - -{{if 'cudaGraphExecKernelNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams : Optional[cudaKernelNodeParams]): @@ -35287,9 +33512,6 @@ def cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams : Optional[cu with nogil: err = cyruntime.cudaGraphExecKernelNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphExecMemcpyNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams : Optional[cudaMemcpy3DParms]): @@ -35352,9 +33574,6 @@ def cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams : Optional[cu with nogil: err = cyruntime.cudaGraphExecMemcpyNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphExecMemcpyNodeSetParams1D' in found_functions}} @cython.embedsignature(True) def cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, size_t count, kind not None : cudaMemcpyKind): @@ -35427,9 +33646,6 @@ def cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, size_t count, _helper_input_void_ptr_free(&cydstHelper) _helper_input_void_ptr_free(&cysrcHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphExecMemsetNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams : Optional[cudaMemsetParams]): @@ -35497,9 +33713,6 @@ def cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams : Optional[cu with nogil: err = cyruntime.cudaGraphExecMemsetNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphExecHostNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams : Optional[cudaHostNodeParams]): @@ -35552,9 +33765,6 @@ def cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams : Optional[cuda with nogil: err = cyruntime.cudaGraphExecHostNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphExecChildGraphNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph): @@ -35622,9 +33832,6 @@ def cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph): with nogil: err = cyruntime.cudaGraphExecChildGraphNodeSetParams(cyhGraphExec, cynode, cychildGraph) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphExecEventRecordNodeSetEvent' in found_functions}} @cython.embedsignature(True) def cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event): @@ -35685,9 +33892,6 @@ def cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event): with nogil: err = cyruntime.cudaGraphExecEventRecordNodeSetEvent(cyhGraphExec, cyhNode, cyevent) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphExecEventWaitNodeSetEvent' in found_functions}} @cython.embedsignature(True) def cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event): @@ -35748,9 +33952,6 @@ def cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event): with nogil: err = cyruntime.cudaGraphExecEventWaitNodeSetEvent(cyhGraphExec, cyhNode, cyevent) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams : Optional[cudaExternalSemaphoreSignalNodeParams]): @@ -35808,9 +34009,6 @@ def cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodePa with nogil: err = cyruntime.cudaGraphExecExternalSemaphoresSignalNodeSetParams(cyhGraphExec, cyhNode, cynodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams : Optional[cudaExternalSemaphoreWaitNodeParams]): @@ -35868,9 +34066,6 @@ def cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodePara with nogil: err = cyruntime.cudaGraphExecExternalSemaphoresWaitNodeSetParams(cyhGraphExec, cyhNode, cynodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphNodeSetEnabled' in found_functions}} @cython.embedsignature(True) def cudaGraphNodeSetEnabled(hGraphExec, hNode, unsigned int isEnabled): @@ -35931,9 +34126,6 @@ def cudaGraphNodeSetEnabled(hGraphExec, hNode, unsigned int isEnabled): with nogil: err = cyruntime.cudaGraphNodeSetEnabled(cyhGraphExec, cyhNode, isEnabled) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphNodeGetEnabled' in found_functions}} @cython.embedsignature(True) def cudaGraphNodeGetEnabled(hGraphExec, hNode): @@ -35990,9 +34182,6 @@ def cudaGraphNodeGetEnabled(hGraphExec, hNode): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, isEnabled) -{{endif}} - -{{if 'cudaGraphExecUpdate' in found_functions}} @cython.embedsignature(True) def cudaGraphExecUpdate(hGraphExec, hGraph): @@ -36166,9 +34355,6 @@ def cudaGraphExecUpdate(hGraphExec, hGraph): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, resultInfo) -{{endif}} - -{{if 'cudaGraphUpload' in found_functions}} @cython.embedsignature(True) def cudaGraphUpload(graphExec, stream): @@ -36215,9 +34401,6 @@ def cudaGraphUpload(graphExec, stream): with nogil: err = cyruntime.cudaGraphUpload(cygraphExec, cystream) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphLaunch' in found_functions}} @cython.embedsignature(True) def cudaGraphLaunch(graphExec, stream): @@ -36269,9 +34452,6 @@ def cudaGraphLaunch(graphExec, stream): with nogil: err = cyruntime.cudaGraphLaunch(cygraphExec, cystream) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphExecDestroy' in found_functions}} @cython.embedsignature(True) def cudaGraphExecDestroy(graphExec): @@ -36304,9 +34484,6 @@ def cudaGraphExecDestroy(graphExec): with nogil: err = cyruntime.cudaGraphExecDestroy(cygraphExec) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphDestroy' in found_functions}} @cython.embedsignature(True) def cudaGraphDestroy(graph): @@ -36339,9 +34516,6 @@ def cudaGraphDestroy(graph): with nogil: err = cyruntime.cudaGraphDestroy(cygraph) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphDebugDotPrint' in found_functions}} @cython.embedsignature(True) def cudaGraphDebugDotPrint(graph, char* path, unsigned int flags): @@ -36379,9 +34553,6 @@ def cudaGraphDebugDotPrint(graph, char* path, unsigned int flags): with nogil: err = cyruntime.cudaGraphDebugDotPrint(cygraph, path, flags) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaUserObjectCreate' in found_functions}} @cython.embedsignature(True) def cudaUserObjectCreate(ptr, destroy, unsigned int initialRefcount, unsigned int flags): @@ -36442,9 +34613,6 @@ def cudaUserObjectCreate(ptr, destroy, unsigned int initialRefcount, unsigned in if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, object_out) -{{endif}} - -{{if 'cudaUserObjectRetain' in found_functions}} @cython.embedsignature(True) def cudaUserObjectRetain(object, unsigned int count): @@ -36484,9 +34652,6 @@ def cudaUserObjectRetain(object, unsigned int count): with nogil: err = cyruntime.cudaUserObjectRetain(cyobject, count) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaUserObjectRelease' in found_functions}} @cython.embedsignature(True) def cudaUserObjectRelease(object, unsigned int count): @@ -36529,9 +34694,6 @@ def cudaUserObjectRelease(object, unsigned int count): with nogil: err = cyruntime.cudaUserObjectRelease(cyobject, count) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphRetainUserObject' in found_functions}} @cython.embedsignature(True) def cudaGraphRetainUserObject(graph, object, unsigned int count, unsigned int flags): @@ -36585,9 +34747,6 @@ def cudaGraphRetainUserObject(graph, object, unsigned int count, unsigned int fl with nogil: err = cyruntime.cudaGraphRetainUserObject(cygraph, cyobject, count, flags) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphReleaseUserObject' in found_functions}} @cython.embedsignature(True) def cudaGraphReleaseUserObject(graph, object, unsigned int count): @@ -36636,9 +34795,6 @@ def cudaGraphReleaseUserObject(graph, object, unsigned int count): with nogil: err = cyruntime.cudaGraphReleaseUserObject(cygraph, cyobject, count) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphAddNode' in found_functions}} @cython.embedsignature(True) def cudaGraphAddNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, nodeParams : Optional[cudaGraphNodeParams]): @@ -36716,9 +34872,6 @@ def cudaGraphAddNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | li if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphAddNode_v2' in found_functions}} @cython.embedsignature(True) def cudaGraphAddNode_v2(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], dependencyData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies, nodeParams : Optional[cudaGraphNodeParams]): @@ -36814,9 +34967,6 @@ def cudaGraphAddNode_v2(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphNodeSetParams(node, nodeParams : Optional[cudaGraphNodeParams]): @@ -36858,9 +35008,6 @@ def cudaGraphNodeSetParams(node, nodeParams : Optional[cudaGraphNodeParams]): with nogil: err = cyruntime.cudaGraphNodeSetParams(cynode, cynodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphExecNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphExecNodeSetParams(graphExec, node, nodeParams : Optional[cudaGraphNodeParams]): @@ -36918,9 +35065,6 @@ def cudaGraphExecNodeSetParams(graphExec, node, nodeParams : Optional[cudaGraphN with nogil: err = cyruntime.cudaGraphExecNodeSetParams(cygraphExec, cynode, cynodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphConditionalHandleCreate' in found_functions}} @cython.embedsignature(True) def cudaGraphConditionalHandleCreate(graph, unsigned int defaultLaunchValue, unsigned int flags): @@ -36970,9 +35114,6 @@ def cudaGraphConditionalHandleCreate(graph, unsigned int defaultLaunchValue, uns if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pHandle_out) -{{endif}} - -{{if 'cudaGetDriverEntryPoint' in found_functions}} @cython.embedsignature(True) def cudaGetDriverEntryPoint(char* symbol, unsigned long long flags): @@ -37068,9 +35209,6 @@ def cudaGetDriverEntryPoint(char* symbol, unsigned long long flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None) return (_cudaError_t_SUCCESS, funcPtr, cudaDriverEntryPointQueryResult(driverStatus)) -{{endif}} - -{{if 'cudaGetDriverEntryPointByVersion' in found_functions}} @cython.embedsignature(True) def cudaGetDriverEntryPointByVersion(char* symbol, unsigned int cudaVersion, unsigned long long flags): @@ -37174,9 +35312,6 @@ def cudaGetDriverEntryPointByVersion(char* symbol, unsigned int cudaVersion, uns if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None) return (_cudaError_t_SUCCESS, funcPtr, cudaDriverEntryPointQueryResult(driverStatus)) -{{endif}} - -{{if 'cudaLibraryLoadData' in found_functions}} @cython.embedsignature(True) def cudaLibraryLoadData(code, jitOptions : Optional[tuple[cudaJitOption] | list[cudaJitOption]], jitOptionsValues : Optional[tuple[Any] | list[Any]], unsigned int numJitOptions, libraryOptions : Optional[tuple[cudaLibraryOption] | list[cudaLibraryOption]], libraryOptionValues : Optional[tuple[Any] | list[Any]], unsigned int numLibraryOptions): @@ -37274,9 +35409,6 @@ def cudaLibraryLoadData(code, jitOptions : Optional[tuple[cudaJitOption] | list[ if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, library) -{{endif}} - -{{if 'cudaLibraryLoadFromFile' in found_functions}} @cython.embedsignature(True) def cudaLibraryLoadFromFile(char* fileName, jitOptions : Optional[tuple[cudaJitOption] | list[cudaJitOption]], jitOptionsValues : Optional[tuple[Any] | list[Any]], unsigned int numJitOptions, libraryOptions : Optional[tuple[cudaLibraryOption] | list[cudaLibraryOption]], libraryOptionValues : Optional[tuple[Any] | list[Any]], unsigned int numLibraryOptions): @@ -37371,9 +35503,6 @@ def cudaLibraryLoadFromFile(char* fileName, jitOptions : Optional[tuple[cudaJitO if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, library) -{{endif}} - -{{if 'cudaLibraryUnload' in found_functions}} @cython.embedsignature(True) def cudaLibraryUnload(library): @@ -37406,9 +35535,6 @@ def cudaLibraryUnload(library): with nogil: err = cyruntime.cudaLibraryUnload(cylibrary) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaLibraryGetKernel' in found_functions}} @cython.embedsignature(True) def cudaLibraryGetKernel(library, char* name): @@ -37450,9 +35576,6 @@ def cudaLibraryGetKernel(library, char* name): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pKernel) -{{endif}} - -{{if 'cudaLibraryGetGlobal' in found_functions}} @cython.embedsignature(True) def cudaLibraryGetGlobal(library, char* name): @@ -37502,9 +35625,6 @@ def cudaLibraryGetGlobal(library, char* name): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None) return (_cudaError_t_SUCCESS, dptr, numbytes) -{{endif}} - -{{if 'cudaLibraryGetManaged' in found_functions}} @cython.embedsignature(True) def cudaLibraryGetManaged(library, char* name): @@ -37556,9 +35676,6 @@ def cudaLibraryGetManaged(library, char* name): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None) return (_cudaError_t_SUCCESS, dptr, numbytes) -{{endif}} - -{{if 'cudaLibraryGetUnifiedFunction' in found_functions}} @cython.embedsignature(True) def cudaLibraryGetUnifiedFunction(library, char* symbol): @@ -37602,9 +35719,6 @@ def cudaLibraryGetUnifiedFunction(library, char* symbol): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, fptr) -{{endif}} - -{{if 'cudaLibraryGetKernelCount' in found_functions}} @cython.embedsignature(True) def cudaLibraryGetKernelCount(lib): @@ -37642,9 +35756,6 @@ def cudaLibraryGetKernelCount(lib): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, count) -{{endif}} - -{{if 'cudaLibraryEnumerateKernels' in found_functions}} @cython.embedsignature(True) def cudaLibraryEnumerateKernels(unsigned int numKernels, lib): @@ -37695,9 +35806,6 @@ def cudaLibraryEnumerateKernels(unsigned int numKernels, lib): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pykernels) -{{endif}} - -{{if 'cudaKernelSetAttributeForDevice' in found_functions}} @cython.embedsignature(True) def cudaKernelSetAttributeForDevice(kernel, attr not None : cudaFuncAttribute, int value, int device): @@ -37801,9 +35909,6 @@ def cudaKernelSetAttributeForDevice(kernel, attr not None : cudaFuncAttribute, i with nogil: err = cyruntime.cudaKernelSetAttributeForDevice(cykernel, cyattr, value, device) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGetExportTable' in found_functions}} @cython.embedsignature(True) def cudaGetExportTable(pExportTableId : Optional[cudaUUID_t]): @@ -37815,9 +35920,6 @@ def cudaGetExportTable(pExportTableId : Optional[cudaUUID_t]): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, ppExportTable) -{{endif}} - -{{if 'cudaGetKernel' in found_functions}} @cython.embedsignature(True) def cudaGetKernel(entryFuncAddr): @@ -37860,9 +35962,6 @@ def cudaGetKernel(entryFuncAddr): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, kernelPtr) -{{endif}} - -{{if 'make_cudaPitchedPtr' in found_functions}} @cython.embedsignature(True) def make_cudaPitchedPtr(d, size_t p, size_t xsz, size_t ysz): @@ -37901,9 +36000,6 @@ def make_cudaPitchedPtr(d, size_t p, size_t xsz, size_t ysz): cdef cudaPitchedPtr wrapper = cudaPitchedPtr() wrapper._pvt_ptr[0] = err return wrapper -{{endif}} - -{{if 'make_cudaPos' in found_functions}} @cython.embedsignature(True) def make_cudaPos(size_t x, size_t y, size_t z): @@ -37937,9 +36033,6 @@ def make_cudaPos(size_t x, size_t y, size_t z): cdef cudaPos wrapper = cudaPos() wrapper._pvt_ptr[0] = err return wrapper -{{endif}} - -{{if 'make_cudaExtent' in found_functions}} @cython.embedsignature(True) def make_cudaExtent(size_t w, size_t h, size_t d): @@ -37974,19 +36067,17 @@ def make_cudaExtent(size_t w, size_t h, size_t d): cdef cudaExtent wrapper = cudaExtent() wrapper._pvt_ptr[0] = err return wrapper -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaGraphicsEGLRegisterImage(image, unsigned int flags): """ Registers an EGL image. - Registers the EGLImageKHR specified by `image` for access by CUDA. A - handle to the registered object is returned as `pCudaResource`. - Additional Mapping/Unmapping is not required for the registered - resource and :py:obj:`~.cudaGraphicsResourceGetMappedEglFrame` can be - directly called on the `pCudaResource`. + Registers the :py:obj:`~.EGLImageKHR` specified by `image` for access + by CUDA. A handle to the registered object is returned as + `pCudaResource`. Additional Mapping/Unmapping is not required for the + registered resource and + :py:obj:`~.cudaGraphicsResourceGetMappedEglFrame` can be directly + called on the `pCudaResource`. The application will be responsible for synchronizing access to shared objects. The application must ensure that any pending operation which @@ -38014,14 +36105,15 @@ def cudaGraphicsEGLRegisterImage(image, unsigned int flags): contents of the resource, so none of the data previously stored in the resource will be preserved. - The EGLImageKHR is an object which can be used to create EGLImage - target resource. It is defined as a void pointer. typedef void* - EGLImageKHR + The :py:obj:`~.EGLImageKHR` is an object which can be used to create + EGLImage target resource. It is defined as a void pointer. typedef + void* :py:obj:`~.EGLImageKHR` Parameters ---------- image : :py:obj:`~.EGLImageKHR` - An EGLImageKHR image which can be used to create target resource. + An :py:obj:`~.EGLImageKHR` image which can be used to create target + resource. flags : unsigned int Map flags @@ -38050,23 +36142,21 @@ def cudaGraphicsEGLRegisterImage(image, unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pCudaResource) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaEGLStreamConsumerConnect(eglStream): """ Connect CUDA to EGLStream as a consumer. - Connect CUDA as a consumer to EGLStreamKHR specified by `eglStream`. + Connect CUDA as a consumer to :py:obj:`~.EGLStreamKHR` specified by + `eglStream`. - The EGLStreamKHR is an EGL object that transfers a sequence of image - frames from one API to another. + The :py:obj:`~.EGLStreamKHR` is an EGL object that transfers a sequence + of image frames from one API to another. Parameters ---------- eglStream : :py:obj:`~.EGLStreamKHR` - EGLStreamKHR handle + :py:obj:`~.EGLStreamKHR` handle Returns ------- @@ -38093,16 +36183,14 @@ def cudaEGLStreamConsumerConnect(eglStream): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, conn) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaEGLStreamConsumerConnectWithFlags(eglStream, unsigned int flags): """ Connect CUDA to EGLStream as a consumer with given flags. - Connect CUDA as a consumer to EGLStreamKHR specified by `stream` with - specified `flags` defined by :py:obj:`~.cudaEglResourceLocationFlags`. + Connect CUDA as a consumer to :py:obj:`~.EGLStreamKHR` specified by + `stream` with specified `flags` defined by + :py:obj:`~.cudaEglResourceLocationFlags`. The flags specify whether the consumer wants to access frames from system memory or video memory. Default is @@ -38111,7 +36199,7 @@ def cudaEGLStreamConsumerConnectWithFlags(eglStream, unsigned int flags): Parameters ---------- eglStream : :py:obj:`~.EGLStreamKHR` - EGLStreamKHR handle + :py:obj:`~.EGLStreamKHR` handle flags : unsigned int Flags denote intended location - system or video. @@ -38140,15 +36228,12 @@ def cudaEGLStreamConsumerConnectWithFlags(eglStream, unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, conn) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaEGLStreamConsumerDisconnect(conn): """ Disconnect CUDA as a consumer to EGLStream . - Disconnect CUDA as a consumer to EGLStreamKHR. + Disconnect CUDA as a consumer to :py:obj:`~.EGLStreamKHR`. Parameters ---------- @@ -38177,15 +36262,12 @@ def cudaEGLStreamConsumerDisconnect(conn): with nogil: err = cyruntime.cudaEGLStreamConsumerDisconnect(cyconn) return (_cudaError_t(err),) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaEGLStreamConsumerAcquireFrame(conn, pCudaResource, pStream, unsigned int timeout): """ Acquire an image frame from the EGLStream with CUDA as a consumer. - Acquire an image frame from EGLStreamKHR. + Acquire an image frame from :py:obj:`~.EGLStreamKHR`. :py:obj:`~.cudaGraphicsResourceGetMappedEglFrame` can be called on `pCudaResource` to get :py:obj:`~.cudaEglFrame`. @@ -38243,16 +36325,13 @@ def cudaEGLStreamConsumerAcquireFrame(conn, pCudaResource, pStream, unsigned int with nogil: err = cyruntime.cudaEGLStreamConsumerAcquireFrame(cyconn, cypCudaResource, cypStream, timeout) return (_cudaError_t(err),) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaEGLStreamConsumerReleaseFrame(conn, pCudaResource, pStream): """ Releases the last frame acquired from the EGLStream. Release the acquired image frame specified by `pCudaResource` to - EGLStreamKHR. + :py:obj:`~.EGLStreamKHR`. Parameters ---------- @@ -38303,23 +36382,21 @@ def cudaEGLStreamConsumerReleaseFrame(conn, pCudaResource, pStream): with nogil: err = cyruntime.cudaEGLStreamConsumerReleaseFrame(cyconn, cypCudaResource, cypStream) return (_cudaError_t(err),) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaEGLStreamProducerConnect(eglStream, width, height): """ Connect CUDA to EGLStream as a producer. - Connect CUDA as a producer to EGLStreamKHR specified by `stream`. + Connect CUDA as a producer to :py:obj:`~.EGLStreamKHR` specified by + `stream`. - The EGLStreamKHR is an EGL object that transfers a sequence of image - frames from one API to another. + The :py:obj:`~.EGLStreamKHR` is an EGL object that transfers a sequence + of image frames from one API to another. Parameters ---------- eglStream : :py:obj:`~.EGLStreamKHR` - EGLStreamKHR handle + :py:obj:`~.EGLStreamKHR` handle width : :py:obj:`~.EGLint` width of the image to be submitted to the stream height : :py:obj:`~.EGLint` @@ -38366,15 +36443,12 @@ def cudaEGLStreamProducerConnect(eglStream, width, height): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, conn) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaEGLStreamProducerDisconnect(conn): """ Disconnect CUDA as a producer to EGLStream . - Disconnect CUDA as a producer to EGLStreamKHR. + Disconnect CUDA as a producer to :py:obj:`~.EGLStreamKHR`. Parameters ---------- @@ -38403,9 +36477,6 @@ def cudaEGLStreamProducerDisconnect(conn): with nogil: err = cyruntime.cudaEGLStreamProducerDisconnect(cyconn) return (_cudaError_t(err),) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaEGLStreamProducerPresentFrame(conn, eglframe not None : cudaEglFrame, pStream): @@ -38463,9 +36534,6 @@ def cudaEGLStreamProducerPresentFrame(conn, eglframe not None : cudaEglFrame, pS with nogil: err = cyruntime.cudaEGLStreamProducerPresentFrame(cyconn, eglframe._pvt_ptr[0], cypStream) return (_cudaError_t(err),) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaEGLStreamProducerReturnFrame(conn, eglframe : Optional[cudaEglFrame], pStream): @@ -38518,9 +36586,6 @@ def cudaEGLStreamProducerReturnFrame(conn, eglframe : Optional[cudaEglFrame], pS with nogil: err = cyruntime.cudaEGLStreamProducerReturnFrame(cyconn, cyeglframe_ptr, cypStream) return (_cudaError_t(err),) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaGraphicsResourceGetMappedEglFrame(resource, unsigned int index, unsigned int mipLevel): @@ -38572,16 +36637,13 @@ def cudaGraphicsResourceGetMappedEglFrame(resource, unsigned int index, unsigned if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, eglFrame) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaEventCreateFromEGLSync(eglSync, unsigned int flags): """ Creates an event from EGLSync object. - Creates an event *phEvent from an EGLSyncKHR eglSync with the flages - specified via `flags`. Valid flags include: + Creates an event *phEvent from an :py:obj:`~.EGLSyncKHR` eglSync with + the flages specified via `flags`. Valid flags include: - :py:obj:`~.cudaEventDefault`: Default event creation flag. @@ -38593,8 +36655,8 @@ def cudaEventCreateFromEGLSync(eglSync, unsigned int flags): :py:obj:`~.cudaEventRecord` and TimingData are not supported for events created from EGLSync. - The EGLSyncKHR is an opaque handle to an EGL sync object. typedef void* - EGLSyncKHR + The :py:obj:`~.EGLSyncKHR` is an opaque handle to an EGL sync object. + typedef void* :py:obj:`~.EGLSyncKHR` Parameters ---------- @@ -38628,9 +36690,6 @@ def cudaEventCreateFromEGLSync(eglSync, unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, phEvent) -{{endif}} - -{{if 'cudaProfilerStart' in found_functions}} @cython.embedsignature(True) def cudaProfilerStart(): @@ -38656,9 +36715,6 @@ def cudaProfilerStart(): with nogil: err = cyruntime.cudaProfilerStart() return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaProfilerStop' in found_functions}} @cython.embedsignature(True) def cudaProfilerStop(): @@ -38684,9 +36740,6 @@ def cudaProfilerStop(): with nogil: err = cyruntime.cudaProfilerStop() return (_cudaError_t(err),) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaGLGetDevices(unsigned int cudaDeviceCount, deviceList not None : cudaGLDeviceList): @@ -38752,9 +36805,6 @@ def cudaGLGetDevices(unsigned int cudaDeviceCount, deviceList not None : cudaGLD if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None) return (_cudaError_t_SUCCESS, pCudaDeviceCount, pypCudaDevices) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaGraphicsGLRegisterImage(image, target, unsigned int flags): @@ -38852,9 +36902,6 @@ def cudaGraphicsGLRegisterImage(image, target, unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, resource) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaGraphicsGLRegisterBuffer(buffer, unsigned int flags): @@ -38909,22 +36956,20 @@ def cudaGraphicsGLRegisterBuffer(buffer, unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, resource) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaVDPAUGetDevice(vdpDevice, vdpGetProcAddress): - """ Gets the CUDA device associated with a VdpDevice. + """ Gets the CUDA device associated with a :py:obj:`~.VdpDevice`. - Returns the CUDA device associated with a VdpDevice, if applicable. + Returns the CUDA device associated with a :py:obj:`~.VdpDevice`, if + applicable. Parameters ---------- vdpDevice : :py:obj:`~.VdpDevice` - A VdpDevice handle + A :py:obj:`~.VdpDevice` handle vdpGetProcAddress : :py:obj:`~.VdpGetProcAddress` - VDPAU's VdpGetProcAddress function pointer + VDPAU's :py:obj:`~.VdpGetProcAddress` function pointer Returns ------- @@ -38962,17 +37007,14 @@ def cudaVDPAUGetDevice(vdpDevice, vdpGetProcAddress): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, device) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaVDPAUSetVDPAUDevice(int device, vdpDevice, vdpGetProcAddress): """ Sets a CUDA device to use VDPAU interoperability. - Records `vdpDevice` as the VdpDevice for VDPAU interoperability with - the CUDA device `device` and sets `device` as the current device for - the calling host thread. + Records `vdpDevice` as the :py:obj:`~.VdpDevice` for VDPAU + interoperability with the CUDA device `device` and sets `device` as the + current device for the calling host thread. This function will immediately initialize the primary context on `device` if needed. @@ -38987,9 +37029,9 @@ def cudaVDPAUSetVDPAUDevice(int device, vdpDevice, vdpGetProcAddress): device : int Device to use for VDPAU interoperability vdpDevice : :py:obj:`~.VdpDevice` - The VdpDevice to interoperate with + The :py:obj:`~.VdpDevice` to interoperate with vdpGetProcAddress : :py:obj:`~.VdpGetProcAddress` - VDPAU's VdpGetProcAddress function pointer + VDPAU's :py:obj:`~.VdpGetProcAddress` function pointer Returns ------- @@ -39021,17 +37063,15 @@ def cudaVDPAUSetVDPAUDevice(int device, vdpDevice, vdpGetProcAddress): with nogil: err = cyruntime.cudaVDPAUSetVDPAUDevice(device, cyvdpDevice, cyvdpGetProcAddress) return (_cudaError_t(err),) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaGraphicsVDPAURegisterVideoSurface(vdpSurface, unsigned int flags): - """ Register a VdpVideoSurface object. + """ Register a :py:obj:`~.VdpVideoSurface` object. - Registers the VdpVideoSurface specified by `vdpSurface` for access by - CUDA. A handle to the registered object is returned as `resource`. The - surface's intended usage is specified using `flags`, as follows: + Registers the :py:obj:`~.VdpVideoSurface` specified by `vdpSurface` for + access by CUDA. A handle to the registered object is returned as + `resource`. The surface's intended usage is specified using `flags`, as + follows: - :py:obj:`~.cudaGraphicsMapFlagsNone`: Specifies no hints about how this resource will be used. It is therefore assumed that this @@ -39078,17 +37118,15 @@ def cudaGraphicsVDPAURegisterVideoSurface(vdpSurface, unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, resource) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaGraphicsVDPAURegisterOutputSurface(vdpSurface, unsigned int flags): - """ Register a VdpOutputSurface object. + """ Register a :py:obj:`~.VdpOutputSurface` object. - Registers the VdpOutputSurface specified by `vdpSurface` for access by - CUDA. A handle to the registered object is returned as `resource`. The - surface's intended usage is specified using `flags`, as follows: + Registers the :py:obj:`~.VdpOutputSurface` specified by `vdpSurface` + for access by CUDA. A handle to the registered object is returned as + `resource`. The surface's intended usage is specified using `flags`, as + follows: - :py:obj:`~.cudaGraphicsMapFlagsNone`: Specifies no hints about how this resource will be used. It is therefore assumed that this @@ -39135,8 +37173,6 @@ def cudaGraphicsVDPAURegisterOutputSurface(vdpSurface, unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, resource) -{{endif}} - @cython.embedsignature(True) def getLocalRuntimeVersion(): @@ -39168,9 +37204,21 @@ def getLocalRuntimeVersion(): err = cyruntime.getLocalRuntimeVersion(&runtimeVersion) return (cudaError_t(err), runtimeVersion) - cdef class cudaBindingsRuntimeGlobal: cdef map[void_ptr, void*] _allocated + cdef cython.pymutex _lock + + cdef void _insert(self, void_ptr key, void* value) noexcept: + with self._lock: + self._allocated[key] = value + + cdef void* _take(self, void_ptr key) noexcept: + cdef void* value = NULL + with self._lock: + if self._allocated.count(key) != 0: + value = self._allocated[key] + self._allocated.erase(key) + return value def __dealloc__(self): for item in self._allocated: @@ -39179,7 +37227,6 @@ cdef class cudaBindingsRuntimeGlobal: cdef cudaBindingsRuntimeGlobal m_global = cudaBindingsRuntimeGlobal() - @cython.embedsignature(True) def sizeof(objType): """ Returns the size of provided CUDA Python structure in bytes @@ -39194,447 +37241,446 @@ def sizeof(objType): lowered_name : int The size of `objType` in bytes """ - {{if 'dim3' in found_struct}} + if objType == dim3: - return sizeof(cyruntime.dim3){{endif}} - {{if 'cudaChannelFormatDesc' in found_struct}} + return sizeof(cyruntime.dim3) + if objType == cudaChannelFormatDesc: - return sizeof(cyruntime.cudaChannelFormatDesc){{endif}} - {{if 'cudaArray_t' in found_types}} + return sizeof(cyruntime.cudaChannelFormatDesc) + if objType == cudaArray_t: - return sizeof(cyruntime.cudaArray_t){{endif}} - {{if 'cudaArray_const_t' in found_types}} + return sizeof(cyruntime.cudaArray_t) + if objType == cudaArray_const_t: - return sizeof(cyruntime.cudaArray_const_t){{endif}} - {{if 'cudaMipmappedArray_t' in found_types}} + return sizeof(cyruntime.cudaArray_const_t) + if objType == cudaMipmappedArray_t: - return sizeof(cyruntime.cudaMipmappedArray_t){{endif}} - {{if 'cudaMipmappedArray_const_t' in found_types}} + return sizeof(cyruntime.cudaMipmappedArray_t) + if objType == cudaMipmappedArray_const_t: - return sizeof(cyruntime.cudaMipmappedArray_const_t){{endif}} - {{if 'cudaArraySparseProperties' in found_struct}} + return sizeof(cyruntime.cudaMipmappedArray_const_t) + if objType == cudaArraySparseProperties: - return sizeof(cyruntime.cudaArraySparseProperties){{endif}} - {{if 'cudaArrayMemoryRequirements' in found_struct}} + return sizeof(cyruntime.cudaArraySparseProperties) + if objType == cudaArrayMemoryRequirements: - return sizeof(cyruntime.cudaArrayMemoryRequirements){{endif}} - {{if 'cudaPitchedPtr' in found_struct}} + return sizeof(cyruntime.cudaArrayMemoryRequirements) + if objType == cudaPitchedPtr: - return sizeof(cyruntime.cudaPitchedPtr){{endif}} - {{if 'cudaExtent' in found_struct}} + return sizeof(cyruntime.cudaPitchedPtr) + if objType == cudaExtent: - return sizeof(cyruntime.cudaExtent){{endif}} - {{if 'cudaPos' in found_struct}} + return sizeof(cyruntime.cudaExtent) + if objType == cudaPos: - return sizeof(cyruntime.cudaPos){{endif}} - {{if 'cudaMemcpy3DParms' in found_struct}} + return sizeof(cyruntime.cudaPos) + if objType == cudaMemcpy3DParms: - return sizeof(cyruntime.cudaMemcpy3DParms){{endif}} - {{if 'cudaMemcpyNodeParams' in found_struct}} + return sizeof(cyruntime.cudaMemcpy3DParms) + if objType == cudaMemcpyNodeParams: - return sizeof(cyruntime.cudaMemcpyNodeParams){{endif}} - {{if 'cudaMemcpy3DPeerParms' in found_struct}} + return sizeof(cyruntime.cudaMemcpyNodeParams) + if objType == cudaMemcpy3DPeerParms: - return sizeof(cyruntime.cudaMemcpy3DPeerParms){{endif}} - {{if 'cudaMemsetParams' in found_struct}} + return sizeof(cyruntime.cudaMemcpy3DPeerParms) + if objType == cudaMemsetParams: - return sizeof(cyruntime.cudaMemsetParams){{endif}} - {{if 'cudaMemsetParamsV2' in found_struct}} + return sizeof(cyruntime.cudaMemsetParams) + if objType == cudaMemsetParamsV2: - return sizeof(cyruntime.cudaMemsetParamsV2){{endif}} - {{if 'cudaAccessPolicyWindow' in found_struct}} + return sizeof(cyruntime.cudaMemsetParamsV2) + if objType == cudaAccessPolicyWindow: - return sizeof(cyruntime.cudaAccessPolicyWindow){{endif}} - {{if 'cudaHostFn_t' in found_types}} + return sizeof(cyruntime.cudaAccessPolicyWindow) + if objType == cudaHostFn_t: - return sizeof(cyruntime.cudaHostFn_t){{endif}} - {{if 'cudaHostNodeParams' in found_struct}} + return sizeof(cyruntime.cudaHostFn_t) + if objType == cudaHostNodeParams: - return sizeof(cyruntime.cudaHostNodeParams){{endif}} - {{if 'cudaHostNodeParamsV2' in found_struct}} + return sizeof(cyruntime.cudaHostNodeParams) + if objType == cudaHostNodeParamsV2: - return sizeof(cyruntime.cudaHostNodeParamsV2){{endif}} - {{if 'cudaResourceDesc' in found_struct}} + return sizeof(cyruntime.cudaHostNodeParamsV2) + if objType == cudaResourceDesc: - return sizeof(cyruntime.cudaResourceDesc){{endif}} - {{if 'cudaResourceViewDesc' in found_struct}} + return sizeof(cyruntime.cudaResourceDesc) + if objType == cudaResourceViewDesc: - return sizeof(cyruntime.cudaResourceViewDesc){{endif}} - {{if 'cudaPointerAttributes' in found_struct}} + return sizeof(cyruntime.cudaResourceViewDesc) + if objType == cudaPointerAttributes: - return sizeof(cyruntime.cudaPointerAttributes){{endif}} - {{if 'cudaFuncAttributes' in found_struct}} + return sizeof(cyruntime.cudaPointerAttributes) + if objType == cudaFuncAttributes: - return sizeof(cyruntime.cudaFuncAttributes){{endif}} - {{if 'cudaMemLocation' in found_struct}} + return sizeof(cyruntime.cudaFuncAttributes) + if objType == cudaMemLocation: - return sizeof(cyruntime.cudaMemLocation){{endif}} - {{if 'cudaMemAccessDesc' in found_struct}} + return sizeof(cyruntime.cudaMemLocation) + if objType == cudaMemAccessDesc: - return sizeof(cyruntime.cudaMemAccessDesc){{endif}} - {{if 'cudaMemPoolProps' in found_struct}} + return sizeof(cyruntime.cudaMemAccessDesc) + if objType == cudaMemPoolProps: - return sizeof(cyruntime.cudaMemPoolProps){{endif}} - {{if 'cudaMemPoolPtrExportData' in found_struct}} + return sizeof(cyruntime.cudaMemPoolProps) + if objType == cudaMemPoolPtrExportData: - return sizeof(cyruntime.cudaMemPoolPtrExportData){{endif}} - {{if 'cudaMemAllocNodeParams' in found_struct}} + return sizeof(cyruntime.cudaMemPoolPtrExportData) + if objType == cudaMemAllocNodeParams: - return sizeof(cyruntime.cudaMemAllocNodeParams){{endif}} - {{if 'cudaMemAllocNodeParamsV2' in found_struct}} + return sizeof(cyruntime.cudaMemAllocNodeParams) + if objType == cudaMemAllocNodeParamsV2: - return sizeof(cyruntime.cudaMemAllocNodeParamsV2){{endif}} - {{if 'cudaMemFreeNodeParams' in found_struct}} + return sizeof(cyruntime.cudaMemAllocNodeParamsV2) + if objType == cudaMemFreeNodeParams: - return sizeof(cyruntime.cudaMemFreeNodeParams){{endif}} - {{if 'cudaMemcpyAttributes' in found_struct}} + return sizeof(cyruntime.cudaMemFreeNodeParams) + if objType == cudaMemcpyAttributes: - return sizeof(cyruntime.cudaMemcpyAttributes){{endif}} - {{if 'cudaOffset3D' in found_struct}} + return sizeof(cyruntime.cudaMemcpyAttributes) + if objType == cudaOffset3D: - return sizeof(cyruntime.cudaOffset3D){{endif}} - {{if 'cudaMemcpy3DOperand' in found_struct}} + return sizeof(cyruntime.cudaOffset3D) + if objType == cudaMemcpy3DOperand: - return sizeof(cyruntime.cudaMemcpy3DOperand){{endif}} - {{if 'cudaMemcpy3DBatchOp' in found_struct}} + return sizeof(cyruntime.cudaMemcpy3DOperand) + if objType == cudaMemcpy3DBatchOp: - return sizeof(cyruntime.cudaMemcpy3DBatchOp){{endif}} - {{if 'CUuuid_st' in found_struct}} + return sizeof(cyruntime.cudaMemcpy3DBatchOp) + if objType == CUuuid_st: - return sizeof(cyruntime.CUuuid_st){{endif}} - {{if 'CUuuid' in found_types}} + return sizeof(cyruntime.CUuuid_st) + if objType == CUuuid: - return sizeof(cyruntime.CUuuid){{endif}} - {{if 'cudaUUID_t' in found_types}} + return sizeof(cyruntime.CUuuid) + if objType == cudaUUID_t: - return sizeof(cyruntime.cudaUUID_t){{endif}} - {{if 'cudaDeviceProp' in found_struct}} + return sizeof(cyruntime.cudaUUID_t) + if objType == cudaDeviceProp: - return sizeof(cyruntime.cudaDeviceProp){{endif}} - {{if 'cudaIpcEventHandle_st' in found_struct}} + return sizeof(cyruntime.cudaDeviceProp) + if objType == cudaIpcEventHandle_st: - return sizeof(cyruntime.cudaIpcEventHandle_st){{endif}} - {{if 'cudaIpcEventHandle_t' in found_types}} + return sizeof(cyruntime.cudaIpcEventHandle_st) + if objType == cudaIpcEventHandle_t: - return sizeof(cyruntime.cudaIpcEventHandle_t){{endif}} - {{if 'cudaIpcMemHandle_st' in found_struct}} + return sizeof(cyruntime.cudaIpcEventHandle_t) + if objType == cudaIpcMemHandle_st: - return sizeof(cyruntime.cudaIpcMemHandle_st){{endif}} - {{if 'cudaIpcMemHandle_t' in found_types}} + return sizeof(cyruntime.cudaIpcMemHandle_st) + if objType == cudaIpcMemHandle_t: - return sizeof(cyruntime.cudaIpcMemHandle_t){{endif}} - {{if 'cudaMemFabricHandle_st' in found_struct}} + return sizeof(cyruntime.cudaIpcMemHandle_t) + if objType == cudaMemFabricHandle_st: - return sizeof(cyruntime.cudaMemFabricHandle_st){{endif}} - {{if 'cudaMemFabricHandle_t' in found_types}} + return sizeof(cyruntime.cudaMemFabricHandle_st) + if objType == cudaMemFabricHandle_t: - return sizeof(cyruntime.cudaMemFabricHandle_t){{endif}} - {{if 'cudaExternalMemoryHandleDesc' in found_struct}} + return sizeof(cyruntime.cudaMemFabricHandle_t) + if objType == cudaExternalMemoryHandleDesc: - return sizeof(cyruntime.cudaExternalMemoryHandleDesc){{endif}} - {{if 'cudaExternalMemoryBufferDesc' in found_struct}} + return sizeof(cyruntime.cudaExternalMemoryHandleDesc) + if objType == cudaExternalMemoryBufferDesc: - return sizeof(cyruntime.cudaExternalMemoryBufferDesc){{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc' in found_struct}} + return sizeof(cyruntime.cudaExternalMemoryBufferDesc) + if objType == cudaExternalMemoryMipmappedArrayDesc: - return sizeof(cyruntime.cudaExternalMemoryMipmappedArrayDesc){{endif}} - {{if 'cudaExternalSemaphoreHandleDesc' in found_struct}} + return sizeof(cyruntime.cudaExternalMemoryMipmappedArrayDesc) + if objType == cudaExternalSemaphoreHandleDesc: - return sizeof(cyruntime.cudaExternalSemaphoreHandleDesc){{endif}} - {{if 'cudaExternalSemaphoreSignalParams' in found_struct}} + return sizeof(cyruntime.cudaExternalSemaphoreHandleDesc) + if objType == cudaExternalSemaphoreSignalParams: - return sizeof(cyruntime.cudaExternalSemaphoreSignalParams){{endif}} - {{if 'cudaExternalSemaphoreWaitParams' in found_struct}} + return sizeof(cyruntime.cudaExternalSemaphoreSignalParams) + if objType == cudaExternalSemaphoreWaitParams: - return sizeof(cyruntime.cudaExternalSemaphoreWaitParams){{endif}} - {{if 'cudaStream_t' in found_types}} + return sizeof(cyruntime.cudaExternalSemaphoreWaitParams) + if objType == cudaStream_t: - return sizeof(cyruntime.cudaStream_t){{endif}} - {{if 'cudaEvent_t' in found_types}} + return sizeof(cyruntime.cudaStream_t) + if objType == cudaEvent_t: - return sizeof(cyruntime.cudaEvent_t){{endif}} - {{if 'cudaGraphicsResource_t' in found_types}} + return sizeof(cyruntime.cudaEvent_t) + if objType == cudaGraphicsResource_t: - return sizeof(cyruntime.cudaGraphicsResource_t){{endif}} - {{if 'cudaExternalMemory_t' in found_types}} + return sizeof(cyruntime.cudaGraphicsResource_t) + if objType == cudaExternalMemory_t: - return sizeof(cyruntime.cudaExternalMemory_t){{endif}} - {{if 'cudaExternalSemaphore_t' in found_types}} + return sizeof(cyruntime.cudaExternalMemory_t) + if objType == cudaExternalSemaphore_t: - return sizeof(cyruntime.cudaExternalSemaphore_t){{endif}} - {{if 'cudaGraph_t' in found_types}} + return sizeof(cyruntime.cudaExternalSemaphore_t) + if objType == cudaGraph_t: - return sizeof(cyruntime.cudaGraph_t){{endif}} - {{if 'cudaGraphNode_t' in found_types}} + return sizeof(cyruntime.cudaGraph_t) + if objType == cudaGraphNode_t: - return sizeof(cyruntime.cudaGraphNode_t){{endif}} - {{if 'cudaUserObject_t' in found_types}} + return sizeof(cyruntime.cudaGraphNode_t) + if objType == cudaUserObject_t: - return sizeof(cyruntime.cudaUserObject_t){{endif}} - {{if 'cudaGraphConditionalHandle' in found_types}} + return sizeof(cyruntime.cudaUserObject_t) + if objType == cudaGraphConditionalHandle: - return sizeof(cyruntime.cudaGraphConditionalHandle){{endif}} - {{if 'cudaFunction_t' in found_types}} + return sizeof(cyruntime.cudaGraphConditionalHandle) + if objType == cudaFunction_t: - return sizeof(cyruntime.cudaFunction_t){{endif}} - {{if 'cudaKernel_t' in found_types}} + return sizeof(cyruntime.cudaFunction_t) + if objType == cudaKernel_t: - return sizeof(cyruntime.cudaKernel_t){{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable' in found_struct}} + return sizeof(cyruntime.cudaKernel_t) + if objType == cudalibraryHostUniversalFunctionAndDataTable: - return sizeof(cyruntime.cudalibraryHostUniversalFunctionAndDataTable){{endif}} - {{if 'cudaLibrary_t' in found_types}} + return sizeof(cyruntime.cudalibraryHostUniversalFunctionAndDataTable) + if objType == cudaLibrary_t: - return sizeof(cyruntime.cudaLibrary_t){{endif}} - {{if 'cudaMemPool_t' in found_types}} + return sizeof(cyruntime.cudaLibrary_t) + if objType == cudaMemPool_t: - return sizeof(cyruntime.cudaMemPool_t){{endif}} - {{if 'cudaKernelNodeParams' in found_struct}} + return sizeof(cyruntime.cudaMemPool_t) + if objType == cudaKernelNodeParams: - return sizeof(cyruntime.cudaKernelNodeParams){{endif}} - {{if 'cudaKernelNodeParamsV2' in found_struct}} + return sizeof(cyruntime.cudaKernelNodeParams) + if objType == cudaKernelNodeParamsV2: - return sizeof(cyruntime.cudaKernelNodeParamsV2){{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParams' in found_struct}} + return sizeof(cyruntime.cudaKernelNodeParamsV2) + if objType == cudaExternalSemaphoreSignalNodeParams: - return sizeof(cyruntime.cudaExternalSemaphoreSignalNodeParams){{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParamsV2' in found_struct}} + return sizeof(cyruntime.cudaExternalSemaphoreSignalNodeParams) + if objType == cudaExternalSemaphoreSignalNodeParamsV2: - return sizeof(cyruntime.cudaExternalSemaphoreSignalNodeParamsV2){{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParams' in found_struct}} + return sizeof(cyruntime.cudaExternalSemaphoreSignalNodeParamsV2) + if objType == cudaExternalSemaphoreWaitNodeParams: - return sizeof(cyruntime.cudaExternalSemaphoreWaitNodeParams){{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParamsV2' in found_struct}} + return sizeof(cyruntime.cudaExternalSemaphoreWaitNodeParams) + if objType == cudaExternalSemaphoreWaitNodeParamsV2: - return sizeof(cyruntime.cudaExternalSemaphoreWaitNodeParamsV2){{endif}} - {{if 'cudaConditionalNodeParams' in found_struct}} + return sizeof(cyruntime.cudaExternalSemaphoreWaitNodeParamsV2) + if objType == cudaConditionalNodeParams: - return sizeof(cyruntime.cudaConditionalNodeParams){{endif}} - {{if 'cudaChildGraphNodeParams' in found_struct}} + return sizeof(cyruntime.cudaConditionalNodeParams) + if objType == cudaChildGraphNodeParams: - return sizeof(cyruntime.cudaChildGraphNodeParams){{endif}} - {{if 'cudaEventRecordNodeParams' in found_struct}} + return sizeof(cyruntime.cudaChildGraphNodeParams) + if objType == cudaEventRecordNodeParams: - return sizeof(cyruntime.cudaEventRecordNodeParams){{endif}} - {{if 'cudaEventWaitNodeParams' in found_struct}} + return sizeof(cyruntime.cudaEventRecordNodeParams) + if objType == cudaEventWaitNodeParams: - return sizeof(cyruntime.cudaEventWaitNodeParams){{endif}} - {{if 'cudaGraphNodeParams' in found_struct}} + return sizeof(cyruntime.cudaEventWaitNodeParams) + if objType == cudaGraphNodeParams: - return sizeof(cyruntime.cudaGraphNodeParams){{endif}} - {{if 'cudaGraphEdgeData_st' in found_struct}} + return sizeof(cyruntime.cudaGraphNodeParams) + if objType == cudaGraphEdgeData_st: - return sizeof(cyruntime.cudaGraphEdgeData_st){{endif}} - {{if 'cudaGraphEdgeData' in found_types}} + return sizeof(cyruntime.cudaGraphEdgeData_st) + if objType == cudaGraphEdgeData: - return sizeof(cyruntime.cudaGraphEdgeData){{endif}} - {{if 'cudaGraphExec_t' in found_types}} + return sizeof(cyruntime.cudaGraphEdgeData) + if objType == cudaGraphExec_t: - return sizeof(cyruntime.cudaGraphExec_t){{endif}} - {{if 'cudaGraphInstantiateParams_st' in found_struct}} + return sizeof(cyruntime.cudaGraphExec_t) + if objType == cudaGraphInstantiateParams_st: - return sizeof(cyruntime.cudaGraphInstantiateParams_st){{endif}} - {{if 'cudaGraphInstantiateParams' in found_types}} + return sizeof(cyruntime.cudaGraphInstantiateParams_st) + if objType == cudaGraphInstantiateParams: - return sizeof(cyruntime.cudaGraphInstantiateParams){{endif}} - {{if 'cudaGraphExecUpdateResultInfo_st' in found_struct}} + return sizeof(cyruntime.cudaGraphInstantiateParams) + if objType == cudaGraphExecUpdateResultInfo_st: - return sizeof(cyruntime.cudaGraphExecUpdateResultInfo_st){{endif}} - {{if 'cudaGraphExecUpdateResultInfo' in found_types}} + return sizeof(cyruntime.cudaGraphExecUpdateResultInfo_st) + if objType == cudaGraphExecUpdateResultInfo: - return sizeof(cyruntime.cudaGraphExecUpdateResultInfo){{endif}} - {{if 'cudaGraphDeviceNode_t' in found_types}} + return sizeof(cyruntime.cudaGraphExecUpdateResultInfo) + if objType == cudaGraphDeviceNode_t: - return sizeof(cyruntime.cudaGraphDeviceNode_t){{endif}} - {{if 'cudaGraphKernelNodeUpdate' in found_struct}} + return sizeof(cyruntime.cudaGraphDeviceNode_t) + if objType == cudaGraphKernelNodeUpdate: - return sizeof(cyruntime.cudaGraphKernelNodeUpdate){{endif}} - {{if 'cudaLaunchMemSyncDomainMap_st' in found_struct}} + return sizeof(cyruntime.cudaGraphKernelNodeUpdate) + if objType == cudaLaunchMemSyncDomainMap_st: - return sizeof(cyruntime.cudaLaunchMemSyncDomainMap_st){{endif}} - {{if 'cudaLaunchMemSyncDomainMap' in found_types}} + return sizeof(cyruntime.cudaLaunchMemSyncDomainMap_st) + if objType == cudaLaunchMemSyncDomainMap: - return sizeof(cyruntime.cudaLaunchMemSyncDomainMap){{endif}} - {{if 'cudaLaunchAttributeValue' in found_struct}} + return sizeof(cyruntime.cudaLaunchMemSyncDomainMap) + if objType == cudaLaunchAttributeValue: - return sizeof(cyruntime.cudaLaunchAttributeValue){{endif}} - {{if 'cudaLaunchAttribute_st' in found_struct}} + return sizeof(cyruntime.cudaLaunchAttributeValue) + if objType == cudaLaunchAttribute_st: - return sizeof(cyruntime.cudaLaunchAttribute_st){{endif}} - {{if 'cudaLaunchAttribute' in found_types}} + return sizeof(cyruntime.cudaLaunchAttribute_st) + if objType == cudaLaunchAttribute: - return sizeof(cyruntime.cudaLaunchAttribute){{endif}} - {{if 'cudaAsyncCallbackHandle_t' in found_types}} + return sizeof(cyruntime.cudaLaunchAttribute) + if objType == cudaAsyncCallbackHandle_t: - return sizeof(cyruntime.cudaAsyncCallbackHandle_t){{endif}} - {{if 'cudaAsyncNotificationInfo' in found_struct}} + return sizeof(cyruntime.cudaAsyncCallbackHandle_t) + if objType == cudaAsyncNotificationInfo: - return sizeof(cyruntime.cudaAsyncNotificationInfo){{endif}} - {{if 'cudaAsyncNotificationInfo_t' in found_types}} + return sizeof(cyruntime.cudaAsyncNotificationInfo) + if objType == cudaAsyncNotificationInfo_t: - return sizeof(cyruntime.cudaAsyncNotificationInfo_t){{endif}} - {{if 'cudaAsyncCallback' in found_types}} + return sizeof(cyruntime.cudaAsyncNotificationInfo_t) + if objType == cudaAsyncCallback: - return sizeof(cyruntime.cudaAsyncCallback){{endif}} - {{if 'cudaSurfaceObject_t' in found_types}} + return sizeof(cyruntime.cudaAsyncCallback) + if objType == cudaSurfaceObject_t: - return sizeof(cyruntime.cudaSurfaceObject_t){{endif}} - {{if 'cudaTextureDesc' in found_struct}} + return sizeof(cyruntime.cudaSurfaceObject_t) + if objType == cudaTextureDesc: - return sizeof(cyruntime.cudaTextureDesc){{endif}} - {{if 'cudaTextureObject_t' in found_types}} + return sizeof(cyruntime.cudaTextureDesc) + if objType == cudaTextureObject_t: - return sizeof(cyruntime.cudaTextureObject_t){{endif}} - {{if 'cudaStreamCallback_t' in found_types}} + return sizeof(cyruntime.cudaTextureObject_t) + if objType == cudaStreamCallback_t: - return sizeof(cyruntime.cudaStreamCallback_t){{endif}} - {{if True}} + return sizeof(cyruntime.cudaStreamCallback_t) + if objType == GLenum: - return sizeof(cyruntime.GLenum){{endif}} - {{if True}} + return sizeof(cyruntime.GLenum) + if objType == GLuint: - return sizeof(cyruntime.GLuint){{endif}} - {{if True}} + return sizeof(cyruntime.GLuint) + if objType == EGLImageKHR: - return sizeof(cyruntime.EGLImageKHR){{endif}} - {{if True}} + return sizeof(cyruntime.EGLImageKHR) + if objType == EGLStreamKHR: - return sizeof(cyruntime.EGLStreamKHR){{endif}} - {{if True}} + return sizeof(cyruntime.EGLStreamKHR) + if objType == EGLint: - return sizeof(cyruntime.EGLint){{endif}} - {{if True}} + return sizeof(cyruntime.EGLint) + if objType == EGLSyncKHR: - return sizeof(cyruntime.EGLSyncKHR){{endif}} - {{if True}} + return sizeof(cyruntime.EGLSyncKHR) + if objType == VdpDevice: - return sizeof(cyruntime.VdpDevice){{endif}} - {{if True}} + return sizeof(cyruntime.VdpDevice) + if objType == VdpGetProcAddress: - return sizeof(cyruntime.VdpGetProcAddress){{endif}} - {{if True}} + return sizeof(cyruntime.VdpGetProcAddress) + if objType == VdpVideoSurface: - return sizeof(cyruntime.VdpVideoSurface){{endif}} - {{if True}} + return sizeof(cyruntime.VdpVideoSurface) + if objType == VdpOutputSurface: - return sizeof(cyruntime.VdpOutputSurface){{endif}} - {{if True}} + return sizeof(cyruntime.VdpOutputSurface) + if objType == cudaStreamAttrValue: - return sizeof(cyruntime.cudaStreamAttrValue){{endif}} - {{if True}} + return sizeof(cyruntime.cudaStreamAttrValue) + if objType == cudaKernelNodeAttrValue: - return sizeof(cyruntime.cudaKernelNodeAttrValue){{endif}} - {{if True}} + return sizeof(cyruntime.cudaKernelNodeAttrValue) + if objType == cudaEglPlaneDesc_st: - return sizeof(cyruntime.cudaEglPlaneDesc_st){{endif}} - {{if True}} + return sizeof(cyruntime.cudaEglPlaneDesc_st) + if objType == cudaEglPlaneDesc: - return sizeof(cyruntime.cudaEglPlaneDesc){{endif}} - {{if True}} + return sizeof(cyruntime.cudaEglPlaneDesc) + if objType == cudaEglFrame_st: - return sizeof(cyruntime.cudaEglFrame_st){{endif}} - {{if True}} + return sizeof(cyruntime.cudaEglFrame_st) + if objType == cudaEglFrame: - return sizeof(cyruntime.cudaEglFrame){{endif}} - {{if True}} + return sizeof(cyruntime.cudaEglFrame) + if objType == cudaEglStreamConnection: - return sizeof(cyruntime.cudaEglStreamConnection){{endif}} + return sizeof(cyruntime.cudaEglStreamConnection) raise TypeError("Unknown type: " + str(objType)) cdef int _add_native_handle_getters() except?-1: from cuda.bindings.utils import _add_cuda_native_handle_getter - {{if 'cudaArray_t' in found_types}} + def cudaArray_t_getter(cudaArray_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaArray_t, cudaArray_t_getter) - {{endif}} - {{if 'cudaArray_const_t' in found_types}} + + def cudaArray_const_t_getter(cudaArray_const_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaArray_const_t, cudaArray_const_t_getter) - {{endif}} - {{if 'cudaMipmappedArray_t' in found_types}} + + def cudaMipmappedArray_t_getter(cudaMipmappedArray_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaMipmappedArray_t, cudaMipmappedArray_t_getter) - {{endif}} - {{if 'cudaMipmappedArray_const_t' in found_types}} + + def cudaMipmappedArray_const_t_getter(cudaMipmappedArray_const_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaMipmappedArray_const_t, cudaMipmappedArray_const_t_getter) - {{endif}} - {{if 'cudaStream_t' in found_types}} + + def cudaStream_t_getter(cudaStream_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaStream_t, cudaStream_t_getter) - {{endif}} - {{if 'cudaEvent_t' in found_types}} + + def cudaEvent_t_getter(cudaEvent_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaEvent_t, cudaEvent_t_getter) - {{endif}} - {{if 'cudaGraphicsResource_t' in found_types}} + + def cudaGraphicsResource_t_getter(cudaGraphicsResource_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaGraphicsResource_t, cudaGraphicsResource_t_getter) - {{endif}} - {{if 'cudaExternalMemory_t' in found_types}} + + def cudaExternalMemory_t_getter(cudaExternalMemory_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaExternalMemory_t, cudaExternalMemory_t_getter) - {{endif}} - {{if 'cudaExternalSemaphore_t' in found_types}} + + def cudaExternalSemaphore_t_getter(cudaExternalSemaphore_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaExternalSemaphore_t, cudaExternalSemaphore_t_getter) - {{endif}} - {{if 'cudaGraph_t' in found_types}} + + def cudaGraph_t_getter(cudaGraph_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaGraph_t, cudaGraph_t_getter) - {{endif}} - {{if 'cudaGraphNode_t' in found_types}} + + def cudaGraphNode_t_getter(cudaGraphNode_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaGraphNode_t, cudaGraphNode_t_getter) - {{endif}} - {{if 'cudaUserObject_t' in found_types}} + + def cudaUserObject_t_getter(cudaUserObject_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaUserObject_t, cudaUserObject_t_getter) - {{endif}} - {{if 'cudaFunction_t' in found_types}} + + def cudaFunction_t_getter(cudaFunction_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaFunction_t, cudaFunction_t_getter) - {{endif}} - {{if 'cudaKernel_t' in found_types}} + + def cudaKernel_t_getter(cudaKernel_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaKernel_t, cudaKernel_t_getter) - {{endif}} - {{if 'cudaLibrary_t' in found_types}} + + def cudaLibrary_t_getter(cudaLibrary_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaLibrary_t, cudaLibrary_t_getter) - {{endif}} - {{if 'cudaMemPool_t' in found_types}} + + def cudaMemPool_t_getter(cudaMemPool_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaMemPool_t, cudaMemPool_t_getter) - {{endif}} - {{if 'cudaGraphExec_t' in found_types}} + + def cudaGraphExec_t_getter(cudaGraphExec_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaGraphExec_t, cudaGraphExec_t_getter) - {{endif}} - {{if 'cudaGraphDeviceNode_t' in found_types}} + + def cudaGraphDeviceNode_t_getter(cudaGraphDeviceNode_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaGraphDeviceNode_t, cudaGraphDeviceNode_t_getter) - {{endif}} - {{if 'cudaAsyncCallbackHandle_t' in found_types}} + + def cudaAsyncCallbackHandle_t_getter(cudaAsyncCallbackHandle_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaAsyncCallbackHandle_t, cudaAsyncCallbackHandle_t_getter) - {{endif}} - {{if True}} + + def EGLImageKHR_getter(EGLImageKHR x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(EGLImageKHR, EGLImageKHR_getter) - {{endif}} - {{if True}} + + def EGLStreamKHR_getter(EGLStreamKHR x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(EGLStreamKHR, EGLStreamKHR_getter) - {{endif}} - {{if True}} + + def EGLSyncKHR_getter(EGLSyncKHR x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(EGLSyncKHR, EGLSyncKHR_getter) - {{endif}} - {{if True}} + + def cudaEglStreamConnection_getter(cudaEglStreamConnection x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaEglStreamConnection, cudaEglStreamConnection_getter) - {{endif}} + return 0 _add_native_handle_getters() - diff --git a/cuda_bindings_12/docs/source/environment_variables.md b/cuda_bindings_12/docs/source/environment_variables.md index 7329e582cf9a..2bbfd42a25fe 100644 --- a/cuda_bindings_12/docs/source/environment_variables.md +++ b/cuda_bindings_12/docs/source/environment_variables.md @@ -4,8 +4,6 @@ - `CUDA_HOME` or `CUDA_PATH`: Specifies the location of the CUDA Toolkit. -- `CUDA_PYTHON_PARSER_CACHING` : bool, toggles the caching of parsed header files during the cuda-bindings build process. If caching is enabled (`CUDA_PYTHON_PARSER_CACHING` is True), the cache path is set to ./cache_, where is derived from the cuda toolkit libraries used to build cuda-bindings. - - `CUDA_PYTHON_PARALLEL_LEVEL` (previously `PARALLEL_LEVEL`) : int, sets the number of threads used in the compilation of extension modules. Not setting it or setting it to 0 would disable parallel builds. ## Runtime Environment Variables diff --git a/cuda_bindings_12/pixi.toml b/cuda_bindings_12/pixi.toml index 7ebdb9db738d..67d351d0cc6c 100644 --- a/cuda_bindings_12/pixi.toml +++ b/cuda_bindings_12/pixi.toml @@ -109,7 +109,6 @@ cuda-version = "12.*" setuptools = ">=80" setuptools-scm = ">=8,!=10.1" cython = ">=3.2.5,<3.3" -pyclibrary = ">=0.1.7" cuda-pathfinder = { path = "../cuda_pathfinder" } cuda-cudart-static = "*" cuda-nvrtc-dev = "*" diff --git a/cuda_bindings_12/pyproject.toml b/cuda_bindings_12/pyproject.toml index 97f24d473b19..81b423eec251 100644 --- a/cuda_bindings_12/pyproject.toml +++ b/cuda_bindings_12/pyproject.toml @@ -7,7 +7,6 @@ requires = [ "setuptools>=80.0.0", "setuptools-scm[simple]>=8,!=10.1", "cython>=3.2.5,<3.3", - "pyclibrary>=0.1.7" ] build-backend = "build_hooks" backend-path = ["."] @@ -54,7 +53,6 @@ build = [ "setuptools>=80.0.0", "setuptools-scm[simple]>=8,!=10.1", "cython>=3.2.5,<3.3", - "pyclibrary>=0.1.7", ] test = [ "cython>=3.2.5,<3.3", diff --git a/cuda_bindings_12/tests/test_build_hooks.py b/cuda_bindings_12/tests/test_build_hooks.py index f4f0f77c2845..39f81d88a493 100644 --- a/cuda_bindings_12/tests/test_build_hooks.py +++ b/cuda_bindings_12/tests/test_build_hooks.py @@ -316,10 +316,9 @@ def test_the_build_checks_the_header_before_it_touches_the_tree(self, tmp_path, monkeypatch.setattr(build_hooks, "_get_cuda_paths", lambda: [cuda_path]) def not_reached(*args): - raise AssertionError("the header check must run before parsing or generating source files") + raise AssertionError("the header check must run before touching the source tree") - monkeypatch.setattr(build_hooks, "_parse_headers", not_reached) - monkeypatch.setattr(build_hooks, "_generate_output", not_reached) + monkeypatch.setattr(build_hooks, "_rename_architecture_specific_files", not_reached) with pytest.raises(RuntimeError, match="source tree needs CUDA .* headers"): build_hooks._build_cuda_bindings() @@ -332,13 +331,16 @@ def test_split_toolkit_checks_first_available_cuda_header(self, tmp_path, monkey cuda_path = _write_cuda_h(header_root, build_hooks._generated_cuda_version()) monkeypatch.setattr(build_hooks, "_get_cuda_paths", lambda: [str(library_root), cuda_path]) - def stop_before_parsing(_required_headers, include_paths): - assert include_paths == [str(library_root / "include"), str(header_root / "include")] - raise RuntimeError("matching header accepted before parsing") + checked_roots = [] - monkeypatch.setattr(build_hooks, "_fetch_header_paths", stop_before_parsing) - with pytest.raises(RuntimeError, match="matching header accepted before parsing"): + def record_and_stop(cuda_path): + checked_roots.append(cuda_path) + raise RuntimeError("matching header accepted") + + monkeypatch.setattr(build_hooks, "_check_cuda_headers", record_and_stop) + with pytest.raises(RuntimeError, match="matching header accepted"): build_hooks._build_cuda_bindings() + assert checked_roots == [cuda_path] @pytest.mark.agent_authored(model="gpt-6") def test_split_toolkit_rejects_mismatched_header_before_later_matching_header(self, tmp_path, monkeypatch): @@ -353,6 +355,6 @@ def test_split_toolkit_rejects_mismatched_header_before_later_matching_header(se def not_reached(*args): raise AssertionError("must reject the first header in compiler search order") - monkeypatch.setattr(build_hooks, "_fetch_header_paths", not_reached) + monkeypatch.setattr(build_hooks, "_rename_architecture_specific_files", not_reached) with pytest.raises(RuntimeError, match="source tree needs CUDA .* headers"): build_hooks._build_cuda_bindings() From 83a34225095969e31b38c619c4b7b7b1ceae16f3 Mon Sep 17 00:00:00 2001 From: Andy Jost Date: Tue, 10 Nov 2026 15:02:55 -0800 Subject: [PATCH 28/85] [doc-only] docs(cuda.core): fix the floor-move wording; advise against pinning cuda-bindings (#3441) * docs(cuda.core): drop the Breaking Changes section name from the floor policy The release notes no longer have a Breaking Changes section for a floor move; 1.3.0 lists it under Highlights. Say only that the release notes list every move. Co-Authored-By: Claude Opus 5.5 * docs(cuda.core): advise against pinning cuda-bindings next to cuda-core Users who pin cuda-bindings themselves can conflict with the floor of a later cuda-core release. Tell them to depend on cuda-core with the cu12 or cu13 extra and let cuda-core choose the cuda-bindings version. Co-Authored-By: Claude Opus 5.5 --------- Co-authored-by: Claude Opus 5.5 --- .github/RELEASE-core.md | 3 +-- cuda_core/AGENTS.md | 6 +++--- cuda_core/docs/source/install.rst | 5 +++++ cuda_core/docs/source/support.rst | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/RELEASE-core.md b/.github/RELEASE-core.md index 45c49461416e..05b058a9813a 100644 --- a/.github/RELEASE-core.md +++ b/.github/RELEASE-core.md @@ -101,8 +101,7 @@ cuda-bindings floor" in `cuda_core/AGENTS.md`. Check the floors instead: `cuda-bindings==`, and no "predates ... headers" line. Standard CI does not install the CUDA 12 floor: its rows use the 12.9.x backport build. -- The release notes list every floor move since the last release under - "Breaking Changes". +- The release notes list every floor move since the last release. Update the `cuda-core` pin in `cuda_python/setup.py` to the new minor series (`cuda-core~=X.Y.0`), and plan a `cuda-python` release right after diff --git a/cuda_core/AGENTS.md b/cuda_core/AGENTS.md index 20295a21dd2a..a97f37edcfad 100644 --- a/cuda_core/AGENTS.md +++ b/cuda_core/AGENTS.md @@ -83,9 +83,9 @@ bump: pre-commit hook `check-cuda-core-bindings-floor` (`toolshed/check_cuda_core_bindings_floor.py`) checks the pins. It also checks that no documentation page spells a floor out by hand. -3. Add to the release notes a "Breaking Changes" entry that names the new - floors. The support-policy table in `docs/source/support.rst` reads the - floors and the release version at docs-build time. It needs no edit. +3. Add to the release notes an entry that names the new floors. The + support-policy table in `docs/source/support.rst` reads the floors and the + release version at docs-build time. It needs no edit. 4. If the pins moved past what the pixi lock files resolve, refresh the lock files. 5. Pin `cuda-bindings` to match in the conda-forge `cuda-core` feedstock. The diff --git a/cuda_core/docs/source/install.rst b/cuda_core/docs/source/install.rst index e2d74063140c..7e67fadad8d5 100644 --- a/cuda_core/docs/source/install.rst +++ b/cuda_core/docs/source/install.rst @@ -59,6 +59,10 @@ If you upgrade ``cuda-core`` alone, the installed ``cuda-bindings`` can be older release requires. ``import cuda.core`` then reports the required version and the ``pip`` command that installs it. +Do not pin ``cuda-bindings`` in your own requirements. Depend on ``cuda-core`` with the ``cu12`` +or ``cu13`` extra, and let ``cuda-core`` choose the ``cuda-bindings`` version. A pin of your own +can conflict with the floor of a later ``cuda-core`` release. + Installing from Conda (conda-forge) ----------------------------------- @@ -73,6 +77,7 @@ and likewise use ``cuda-version=13`` for CUDA 13. The conda-forge package depends on ``cuda-bindings`` of the same CUDA major. The ``cuda-bindings`` floor of the release also applies to it. See :ref:`cuda-core-bindings-floor`. +As with ``pip``, do not pin ``cuda-bindings`` yourself. Let ``cuda-core`` choose it. Development environment diff --git a/cuda_core/docs/source/support.rst b/cuda_core/docs/source/support.rst index 4a83d73f7666..08670da95a12 100644 --- a/cuda_core/docs/source/support.rst +++ b/cuda_core/docs/source/support.rst @@ -107,7 +107,7 @@ all read them from there. A floor moves only for one of two reasons. A ``cuda-core`` release needs a newer ``cuda-bindings`` API or fix, or its wheels are built against a newer CUDA minor version. A new ``cuda-bindings`` release alone does not move a floor, and a ``cuda-core`` release alone does -not. The :doc:`release notes ` list every move under "Breaking Changes". +not. The :doc:`release notes ` list every move. Python Version Support ---------------------- From c6ea09ef49057b8616e2c8290bc8782a70f734a4 Mon Sep 17 00:00:00 2001 From: Ralf Juengling Date: Tue, 10 Nov 2026 15:25:57 -0800 Subject: [PATCH 29/85] [no-ci] CI: verify the Authenticode signature of vc_redist.x64.exe (#3443) * CI: verify the Authenticode signature of vc_redist.x64.exe The nightly PyTorch rows in test-wheel-windows.yml downloaded and silently ran vc_redist.x64.exe without checking its signature or the installer's exit code. Require a valid Microsoft Authenticode signature before running it, fail on installer errors (allowing 1638 and 3010), and download into RUNNER_TEMP. This matches the existing vc_redist.arm64.exe check. Refs #3195 --- .github/workflows/test-wheel-windows.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-wheel-windows.yml b/.github/workflows/test-wheel-windows.yml index a3280b2962ee..739aff661f46 100644 --- a/.github/workflows/test-wheel-windows.yml +++ b/.github/workflows/test-wheel-windows.yml @@ -426,9 +426,21 @@ jobs: - name: Install Visual C++ Redistributable (required by PyTorch on Windows) if: ${{ inputs.test-mode == 'nightly-pytorch' }} run: | - Invoke-WebRequest -Uri "https://aka.ms/vs/17/release/vc_redist.x64.exe" -OutFile "vc_redist.x64.exe" - Start-Process -FilePath ".\vc_redist.x64.exe" -ArgumentList "/install", "/quiet", "/norestart" -Wait - Remove-Item "vc_redist.x64.exe" + $redist = Join-Path $env:RUNNER_TEMP "vc_redist.x64.exe" + Invoke-WebRequest -Uri "https://aka.ms/vs/17/release/vc_redist.x64.exe" -OutFile $redist + $signature = Get-AuthenticodeSignature $redist + if ($signature.Status -ne "Valid") { throw "VC++ runtime signature is not valid: $($signature.Status)" } + # Compare the parsed organization (OID 2.5.4.10); a substring match on Subject also accepts + # e.g. "O=Microsoft Corporation Services Ltd" or a CN containing "O=Microsoft Corporation". + $org = @($signature.SignerCertificate.SubjectName.EnumerateRelativeDistinguishedNames() | + Where-Object { $_.GetSingleElementType().Value -eq "2.5.4.10" } | + ForEach-Object { $_.GetSingleElementValue() }) + if ($org.Count -ne 1 -or $org[0] -cne "Microsoft Corporation") { + throw "VC++ runtime is not signed by Microsoft Corporation: O=$($org -join '|')" + } + $process = Start-Process $redist -ArgumentList "/install", "/quiet", "/norestart" -Wait -PassThru + if ($process.ExitCode -notin 0, 1638, 3010) { throw "VC++ runtime installer failed: $($process.ExitCode)" } + Remove-Item $redist - name: Install cuda-python wheels + PyTorch if: ${{ inputs.test-mode == 'nightly-pytorch' }} From 96fdba69c5ba03165b2ec8b8ffbc0d41d44f1029 Mon Sep 17 00:00:00 2001 From: Andy Jost Date: Tue, 10 Nov 2026 17:33:53 -0800 Subject: [PATCH 30/85] [doc-only] docs(release): tag cuda-core releases on a release branch (#3431) * docs(release): tag cuda-core releases on a release branch Add a "Create the release branch" step to RELEASE-core.md and the release checklist template. Each minor series gets one protected branch, release/cuda-core-vX.Y.x, cut from main after the pre-release PRs merge. Tags go on that branch, and patch releases land there by cherry-pick PRs. Co-Authored-By: Claude Opus 5.5 * docs(release): scope the branch steps to cuda-core; put patch notes on the branch Co-Authored-By: Claude Opus 5.5 --------- Co-authored-by: Claude Opus 5.5 --- .github/ISSUE_TEMPLATE/release_checklist.yml | 3 +- .github/RELEASE-core.md | 34 ++++++++++++++++++-- 2 files changed, 33 insertions(+), 4 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/release_checklist.yml b/.github/ISSUE_TEMPLATE/release_checklist.yml index 12dad6fb7165..83780ebe35f1 100644 --- a/.github/ISSUE_TEMPLATE/release_checklist.yml +++ b/.github/ISSUE_TEMPLATE/release_checklist.yml @@ -23,7 +23,8 @@ body: - label: Sweep deprecations whose stated removal version has arrived (`grep -rn 'deprecated::' cuda_core/cuda`) and remove any that are due - label: "Finalize the doc update, including release notes (\"Note: Touching docstrings/type annotations in code is OK during code freeze, apply your best judgement!\")" - label: Update the docs for the new version - - label: Create a public release tag + - label: "For cuda-core: create the release branch (`release/cuda-core-vX.Y.x`) from `main` for a minor release, or use the existing one for a patch release" + - label: "Create a public release tag (for cuda-core, on the release branch)" - label: Wait for the tag-triggered CI run to complete, and use that run ID for release workflows (this will upload the release to PyPI) - label: Publish the release at https://github.com/NVIDIA/cuda-python/releases (this will trigger the conda package update) - label: Approve the conda-package update PR diff --git a/.github/RELEASE-core.md b/.github/RELEASE-core.md index 05b058a9813a..d3ca740426df 100644 --- a/.github/RELEASE-core.md +++ b/.github/RELEASE-core.md @@ -156,17 +156,45 @@ built and deployed automatically by the release workflow. --- +## Create the release branch + +Each `cuda-core` minor series has one release branch, +`release/cuda-core-vX.Y.x`. Releases are tagged on that branch, not on +`main`. Patch releases of the series land there too. + +For a minor release (`X.Y.0`), create the branch after every pre-release +pull request has merged into `main`. Branch from the `main` commit that +holds the final release notes: + +```bash +git fetch origin main +git push origin origin/main:refs/heads/release/cuda-core-v0.6.x +``` + +For a patch release (`X.Y.Z`), use the existing branch. Changes reach it +through pull requests that cherry-pick the fixes from `main`, with +`(cherry picked from commit ...)` trailers. The release notes for the patch +release must be on the release branch before the tag: the release workflow +checks for them in the tagged tree. Add them to `main` as well, so the docs +switcher and the `latest` docs list them. + +The repository ruleset protects `release/**`: a push to an existing release +branch needs a pull request and passing checks. + +--- + ## Create a public release tag **Warning:** Pushing a tag is a potentially irrevocable action. Be absolutely certain the tag points to the correct commit before pushing. Tags should be GPG-signed. The tag name format is `cuda-core-v` -(e.g. `cuda-core-v0.6.0`). The tag must point to a commit on `main`. +(e.g. `cuda-core-v0.6.0`). The tag must point to a commit on the release +branch. ```bash -git checkout main -git pull origin main +git fetch origin release/cuda-core-v0.6.x +git checkout --detach origin/release/cuda-core-v0.6.x git tag -s cuda-core-v0.6.0 -m "cuda-core v0.6.0" git push origin cuda-core-v0.6.0 ``` From d93a33c04968f3e10a68bda51e0a9f0510e105b7 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Tue, 10 Nov 2026 18:25:01 -0800 Subject: [PATCH 31/85] docs(pathfinder): correct Windows DLL search contract (#3435) * docs(pathfinder): correct Windows DLL search contract Signed-off-by: Ralf W. Grosse-Kunstleve * test(pathfinder): cover native search precedence Signed-off-by: Ralf W. Grosse-Kunstleve * docs(pathfinder): clarify release note and test provenance Signed-off-by: Ralf W. Grosse-Kunstleve * docs(pathfinder): refine canary and Windows search wording --------- Signed-off-by: Ralf W. Grosse-Kunstleve --- .../_dynamic_libs/load_dl_windows.py | 11 ++-- .../_dynamic_libs/load_nvidia_dynamic_lib.py | 36 +++++------ .../pathfinder/_dynamic_libs/search_steps.py | 10 +-- .../docs/source/release/1.4.4-notes.rst | 14 ++++- .../docs/source/release/1.9.0-notes.rst | 11 ++++ cuda_pathfinder/tests/test_load_dl_windows.py | 51 +++++++++++++++ ...st_load_nvidia_dynamic_lib_using_mocker.py | 63 ++++++++++++++++++- 7 files changed, 164 insertions(+), 32 deletions(-) diff --git a/cuda_pathfinder/cuda/pathfinder/_dynamic_libs/load_dl_windows.py b/cuda_pathfinder/cuda/pathfinder/_dynamic_libs/load_dl_windows.py index a659409fc834..e70aa1c42fbe 100644 --- a/cuda_pathfinder/cuda/pathfinder/_dynamic_libs/load_dl_windows.py +++ b/cuda_pathfinder/cuda/pathfinder/_dynamic_libs/load_dl_windows.py @@ -136,11 +136,12 @@ def check_if_already_loaded_from_elsewhere(desc: LibDescriptor) -> LoadedDL | No def load_with_system_search(desc: LibDescriptor) -> LoadedDL | None: """Try to load a DLL using the native Windows process DLL search path. - This calls ``LoadLibraryExW(dll_name, NULL, 0)`` directly. Under Python - 3.8+, CPython configures the process with - ``SetDefaultDllDirectories(LOAD_LIBRARY_SEARCH_DEFAULT_DIRS)``, so this - search does **not** include the system ``PATH``. Directories added via - ``AddDllDirectory()`` still participate. + This calls ``LoadLibraryExW(dll_name, NULL, 0)`` directly. For an ordinary + unpackaged process, native DLL search includes ``PATH`` unless a different + process DLL search policy has been configured. The restricted defaults + used by Python's own loading mechanisms do not override this native call. + Directories added via ``AddDllDirectory()`` participate only if the process + defaults include ``LOAD_LIBRARY_SEARCH_USER_DIRS``. Args: desc: Descriptor for the library to load diff --git a/cuda_pathfinder/cuda/pathfinder/_dynamic_libs/load_nvidia_dynamic_lib.py b/cuda_pathfinder/cuda/pathfinder/_dynamic_libs/load_nvidia_dynamic_lib.py index 2b0761be1a6e..5a9549472462 100644 --- a/cuda_pathfinder/cuda/pathfinder/_dynamic_libs/load_nvidia_dynamic_lib.py +++ b/cuda_pathfinder/cuda/pathfinder/_dynamic_libs/load_nvidia_dynamic_lib.py @@ -259,17 +259,15 @@ def load_nvidia_dynamic_lib(libname: str) -> LoadedDL: - Fall back to the native loader: - - Linux: ``dlopen()`` + - Linux: ``dlopen()``. CUDA Toolkit (CTK) system installs may be + discovered via ``LD_LIBRARY_PATH`` or linker configuration such + as ``/etc/ld.so.conf.d/*cuda*.conf``. - - Windows: ``LoadLibraryExW()`` - - On Linux, CUDA Toolkit (CTK) system installs with system config updates are - usually discovered via ``/etc/ld.so.conf.d/*cuda*.conf``. - - On Windows, under Python 3.8+, CPython configures the process with - ``SetDefaultDllDirectories(LOAD_LIBRARY_SEARCH_DEFAULT_DIRS)``. - As a result, the native DLL search used here does **not** include - the system ``PATH``. + - Windows: ``LoadLibraryExW(dll_name, NULL, 0)``. For an ordinary + unpackaged process, native DLL search includes ``PATH`` unless + a different process DLL search policy has been configured. + Python's restricted defaults for its own loads do not override + this native call. 4. **Environment variables** @@ -277,9 +275,10 @@ def load_nvidia_dynamic_lib(libname: str) -> LoadedDL: such as ``CUDNN_PATH`` and ``NCCL_HOME``, using their platform-specific product layouts. Then use ``CUDA_PATH`` or ``CUDA_HOME`` (in that order). - On Windows, ``CUDA_PATH`` is the typical way system-installed CTK - DLLs are located. Note that the NVIDIA CTK installer automatically - adds ``CUDA_PATH`` to the system-wide environment. + These are fallback discovery locations, not runtime toolkit + selectors: libraries found by earlier steps take precedence. + On Windows, the NVIDIA CTK installer automatically adds + ``CUDA_PATH`` to the system-wide environment. 5. **Windows Program Files (configured libraries only)** @@ -290,11 +289,12 @@ def load_nvidia_dynamic_lib(libname: str) -> LoadedDL: 6. **CTK root canary probe (discoverable libs only)** - For selected libraries whose shared object doesn't reside on the - standard linker path (currently ``nvvm``), attempt to derive CTK - root by system-loading a well-known CTK canary library in a - subprocess and then searching relative to that root. On Windows, - the canary uses the same native ``LoadLibraryExW`` semantics as - step 3, so there is also no ``PATH``-based discovery. + standard linker path (such as ``nvvm`` and ``cupti``), attempt to + derive CTK root by system-loading a well-known CTK canary library + in a subprocess and then searching relative to that root. On Windows, + the canary uses the same native ``LoadLibraryExW(..., 0)`` + semantics as step 3, so it can discover libraries through + ``PATH`` subject to the child process's DLL search policy. **Driver libraries** (``"cuda"``, ``"nvml"``): diff --git a/cuda_pathfinder/cuda/pathfinder/_dynamic_libs/search_steps.py b/cuda_pathfinder/cuda/pathfinder/_dynamic_libs/search_steps.py index 015de5d68e2c..b9731a74ba00 100644 --- a/cuda_pathfinder/cuda/pathfinder/_dynamic_libs/search_steps.py +++ b/cuda_pathfinder/cuda/pathfinder/_dynamic_libs/search_steps.py @@ -227,12 +227,12 @@ def find_in_install_root_env_vars(ctx: SearchContext) -> FindResult | None: def find_in_cuda_path(ctx: SearchContext) -> FindResult | None: - """Search ``$CUDA_PATH`` / ``$CUDA_HOME``. + """Search ``$CUDA_PATH`` / ``$CUDA_HOME`` as fallback toolkit roots. - On Windows, this is the normal fallback for system-installed CTK DLLs when - they are not already discoverable via the native ``LoadLibraryExW(..., 0)`` - path used by :func:`cuda.pathfinder._dynamic_libs.load_dl_windows.load_with_system_search`. - Python 3.8+ does not include ``PATH`` in that native DLL search. + This step runs after native system search on both platforms. On Windows, + native ``LoadLibraryExW(..., 0)`` search can already discover CTK DLLs + through ``PATH``, subject to the process's DLL search policy. These roots + do not override earlier discoveries or pin the runtime toolkit. The returned ``found_via`` is always ``"CUDA_PATH"`` regardless of which environment variable actually provided the value. diff --git a/cuda_pathfinder/docs/source/release/1.4.4-notes.rst b/cuda_pathfinder/docs/source/release/1.4.4-notes.rst index 72621dae1e56..d787dba7ff73 100644 --- a/cuda_pathfinder/docs/source/release/1.4.4-notes.rst +++ b/cuda_pathfinder/docs/source/release/1.4.4-notes.rst @@ -12,7 +12,15 @@ Highlights * Support cusparseLt release 0.9.0 (wheels have new directory structure). (`PR #1806 `_) -* Clarified that Python 3.8+ excludes ``PATH`` from the native Windows DLL - search used by ``load_nvidia_dynamic_lib()``, so CTK installs are typically - found via ``CUDA_PATH``/``CUDA_HOME`` or other explicit search steps instead. +* Updated the Windows DLL search documentation. (`PR #1795 `_) + + .. note:: + + **Correction in 1.9.0:** The 1.4.4 release updated the documentation + to incorrectly state that Python 3.8+ excludes ``PATH`` from the native + Windows DLL search. The direct ``LoadLibraryExW(..., 0)`` call normally + includes ``PATH`` for unpackaged processes, subject to process DLL search + policy. This was a documentation error; the update did not change DLL + loading behavior. + (`Issue #3137 `_) diff --git a/cuda_pathfinder/docs/source/release/1.9.0-notes.rst b/cuda_pathfinder/docs/source/release/1.9.0-notes.rst index 556788803753..19427cccbf43 100644 --- a/cuda_pathfinder/docs/source/release/1.9.0-notes.rst +++ b/cuda_pathfinder/docs/source/release/1.9.0-notes.rst @@ -33,3 +33,14 @@ Bugfixes these roots lexically into a different location. (`Issue #3413 `_, `PR #3418 `_) + +Documentation +------------- + +* Correct the Windows DLL search documentation: native system search normally + includes ``PATH``, subject to process DLL search policy + (`packaged applications have a different default DLL search order + `_). + ``CUDA_PATH`` and ``CUDA_HOME`` remain fallback discovery roots, not runtime + toolkit selectors. Loading behavior and search order are unchanged. + (`Issue #3137 `_) diff --git a/cuda_pathfinder/tests/test_load_dl_windows.py b/cuda_pathfinder/tests/test_load_dl_windows.py index 28a2e51b368a..3f17c6ea22fd 100644 --- a/cuda_pathfinder/tests/test_load_dl_windows.py +++ b/cuda_pathfinder/tests/test_load_dl_windows.py @@ -1,7 +1,13 @@ # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 +import json +import os +import shutil +import subprocess import sys +import uuid +from pathlib import Path import pytest @@ -12,6 +18,51 @@ from cuda.pathfinder._dynamic_libs.lib_descriptor import LIB_DESCRIPTORS +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_system_search_finds_dll_exposed_only_through_path(tmp_path, info_summary_append): + dll_name = f"cuda_pathfinder_probe_{uuid.uuid4().hex}.dll" + dll_dir = tmp_path / "path_only" + dll_dir.mkdir() + dll_path = dll_dir / dll_name + shutil.copyfile(Path(os.environ["SYSTEMROOT"], "System32", "version.dll"), dll_path) + probe = """\ +import json +import sys +from dataclasses import replace + +from cuda.pathfinder._dynamic_libs import load_dl_windows +from cuda.pathfinder._dynamic_libs.lib_descriptor import LIB_DESCRIPTORS + +desc = replace(LIB_DESCRIPTORS["cublasLt"], windows_dlls=(sys.argv[1],)) +loaded = load_dl_windows.load_with_system_search(desc) +print(json.dumps(None if loaded is None else { + "abs_path": loaded.abs_path, + "found_via": loaded.found_via, +})) +""" + + def run_probe(env): + result = subprocess.run( # noqa: S603 - trusted interpreter, test-owned script and DLL filename + [sys.executable, "-c", probe, dll_name], + check=True, + capture_output=True, + text=True, + env=env, + cwd=tmp_path, + timeout=30, + ) + return json.loads(result.stdout) + + env = os.environ.copy() + assert run_probe(env) is None + env["PATH"] = os.pathsep.join((str(dll_dir), env.get("PATH", ""))) + loaded = run_probe(env) + + assert loaded["found_via"] == "system-search" + assert os.path.samefile(loaded["abs_path"], dll_path) + info_summary_append(f"PATH-only DLL: abs_path={loaded['abs_path']!r}") + + @pytest.mark.agent_authored(model="gpt-5.6-sol") def test_already_loaded_library_checks_known_dlls_in_preference_order(mocker): desc = LIB_DESCRIPTORS["cublasLt"] diff --git a/cuda_pathfinder/tests/test_load_nvidia_dynamic_lib_using_mocker.py b/cuda_pathfinder/tests/test_load_nvidia_dynamic_lib_using_mocker.py index 09c8bd3ea612..7c47197fffa8 100644 --- a/cuda_pathfinder/tests/test_load_nvidia_dynamic_lib_using_mocker.py +++ b/cuda_pathfinder/tests/test_load_nvidia_dynamic_lib_using_mocker.py @@ -1,6 +1,8 @@ # SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 +from pathlib import Path + import pytest from cuda.pathfinder._dynamic_libs import load_nvidia_dynamic_lib as load_mod @@ -163,10 +165,69 @@ def _run_find_steps_disabled(ctx, steps): # --------------------------------------------------------------------------- -# Search order tests (Conda-specific, since Conda is not covered by real CI) +# Search order tests # --------------------------------------------------------------------------- +@pytest.mark.parametrize("preferred_source", ("site-packages", "conda", "system-search")) +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_cuda_path_is_a_fallback_to_environment_and_native_search(tmp_path, mocker, monkeypatch, preferred_source): + desc = load_mod.LIB_DESCRIPTORS["cublasLt"] + platform = steps_mod.PLATFORM + filename = desc.windows_dlls[0] if IS_WINDOWS else desc.linux_sonames[0] + + def create_library(root, relative_dir): + path = root / relative_dir / filename + path.parent.mkdir(parents=True, exist_ok=True) + path.touch() + return path + + cuda_root = tmp_path / "toolkit" + create_library(cuda_root, platform.anchor_rel_dirs(desc)[0]) + mocker.patch(f"{_STEPS_MODULE}.get_cuda_path_or_home", return_value=str(cuda_root)) + + conda_root = tmp_path / "conda" + conda_anchor = Path(platform.conda_anchor_point(str(conda_root))) + conda_path = create_library(conda_anchor, platform.anchor_rel_dirs(desc)[0]) + if preferred_source == "system-search": + monkeypatch.delenv("CONDA_PREFIX", raising=False) + else: + monkeypatch.setenv("CONDA_PREFIX", str(conda_root)) + + wheel_root = tmp_path / "wheels" + wheel_path = create_library(wheel_root, platform.site_packages_rel_dirs(desc)[0]) + + def find_wheel_dirs(sub_dirs): + directory = wheel_root.joinpath(*sub_dirs) + return [str(directory)] if preferred_source == "site-packages" and directory.is_dir() else [] + + mocker.patch( + "cuda.pathfinder._dynamic_libs.search_platform.find_sub_dirs_all_sitepackages", + side_effect=find_wheel_dirs, + ) + mocker.patch.object(load_mod.LOADER, "check_if_already_loaded_from_elsewhere", return_value=None) + mocker.patch(f"{_MODULE}.load_dependencies") + native_path = tmp_path / "native" / filename + native_search = mocker.patch.object( + load_mod.LOADER, + "load_with_system_search", + return_value=_make_loaded_dl(str(native_path), "system-search"), + ) + mocker.patch.object( + load_mod.LOADER, + "load_with_abs_path", + side_effect=lambda _desc, path, via: _make_loaded_dl(path, via), + ) + + loaded = _load_lib_no_cache("cublasLt") + + expected_path = {"site-packages": wheel_path, "conda": conda_path, "system-search": native_path}[preferred_source] + assert loaded.found_via == preferred_source + assert loaded.abs_path == str(expected_path) + if preferred_source != "system-search": + native_search.assert_not_called() + + def test_cupti_search_order_conda_before_cuda_home(tmp_path, mocker, monkeypatch): """Test that conda is searched before CUDA_HOME (CTK). From 303fbdace238303d9f3e0b43d246dde161e6b577 Mon Sep 17 00:00:00 2001 From: Ralf Juengling Date: Wed, 11 Nov 2026 01:09:57 -0800 Subject: [PATCH 32/85] ci: install mini-CTK CUPTI under extras/CUPTI and check pathfinder finds it (#3440) * ci: install mini-CTK CUPTI under extras/CUPTI and check pathfinder finds it fetch_ctk unpacked the cuda_cupti redistrib archive into the top-level toolkit tree, so libcupti landed in lib64 (Linux) or lib/ (Windows). The CTK installer and cuda.pathfinder use extras/CUPTI instead, so pathfinder could not find CUPTI through CUDA_PATH. CI only passed because LD_LIBRARY_PATH found it first, and the default pathfinder tests tolerate missing libraries. Unpack cuda_cupti into extras/CUPTI. On Linux, rename its lib to lib64 as for the top-level tree. On Windows, do the same for archives before 13.4, which put the DLLs directly in lib/; later archives already use lib/. Tag the cache key with the layout so old caches are not restored. Add a check to the LOCAL_CTK test jobs that fails unless pathfinder loads NVRTC and CUPTI from under CUDA_PATH. * ci: skip the pathfinder CTK check when the checkout predates it Nightly runs check out the older commit their wheels were built from. That commit may lack both the checker and the mini-CTK layout it expects, so run the check only when the checked-out tree contains it. --------- Co-authored-by: Ralf W. Grosse-Kunstleve --- .github/actions/fetch_ctk/action.yml | 37 +++++++++++++++----- .github/workflows/test-wheel-linux.yml | 6 ++++ .github/workflows/test-wheel-windows.yml | 7 ++++ ci/tools/check_pathfinder_ctk_libs.py | 44 ++++++++++++++++++++++++ 4 files changed, 85 insertions(+), 9 deletions(-) create mode 100644 ci/tools/check_pathfinder_ctk_libs.py diff --git a/.github/actions/fetch_ctk/action.yml b/.github/actions/fetch_ctk/action.yml index 034f3c416f80..e8bac04d0d01 100644 --- a/.github/actions/fetch_ctk/action.yml +++ b/.github/actions/fetch_ctk/action.yml @@ -118,9 +118,11 @@ runs: # prefixes its output line with "\", which would end up in the cache key. MANIFEST_SHA256="$(sha256sum < "$CTK_JSON_FILE" | awk '{print $1}')" HASH=$(echo -n "${CTK_CACHE_COMPONENTS}" | sha256sum | awk '{print $1}') + # Bump the layout tag (l2) whenever the unpacked tree changes shape, so + # caches saved with an older layout are not restored. { - echo "CTK_CACHE_KEY=mini-ctk-${{ inputs.cuda-version }}-${{ inputs.host-platform }}-$HASH-m$MANIFEST_SHA256" - echo "CTK_CACHE_FILENAME=mini-ctk-${{ inputs.cuda-version }}-${{ inputs.host-platform }}-$HASH-m$MANIFEST_SHA256.tar.gz" + echo "CTK_CACHE_KEY=mini-ctk-l2-${{ inputs.cuda-version }}-${{ inputs.host-platform }}-$HASH-m$MANIFEST_SHA256" + echo "CTK_CACHE_FILENAME=mini-ctk-l2-${{ inputs.cuda-version }}-${{ inputs.host-platform }}-$HASH-m$MANIFEST_SHA256.tar.gz" echo "CTK_CACHE_COMPONENTS=${CTK_CACHE_COMPONENTS}" echo "CTK_BASE_URL=${CTK_BASE_URL}" echo "CTK_JSON_FILE=${CTK_JSON_FILE}" @@ -151,16 +153,16 @@ runs: # "Set up CTK cache variable". if [[ "${{ inputs.host-platform }}" == linux* ]]; then function extract() { - tar -xvf $1 -C $CACHE_TMP_DIR --strip-components=1 + tar -xvf $1 -C $2 --strip-components=1 } elif [[ "${{ inputs.host-platform }}" == win* ]]; then function extract() { _TEMP_DIR_=$(mktemp -d) unzip $1 -d $_TEMP_DIR_ - cp -r $_TEMP_DIR_/*/* $CACHE_TMP_DIR + cp -r $_TEMP_DIR_/*/* $2 rm -rf $_TEMP_DIR_ # see commit NVIDIA/cuda-python@69410f1d9228e775845ef6c8b4a9c7f37ffc68a5 - chmod 644 $CACHE_TMP_DIR/LICENSE + chmod 644 $2/LICENSE } fi function populate_cuda_path() { @@ -183,7 +185,14 @@ runs: --component "$CTK_COMPONENT" \ --metadata-path "$CTK_JSON_FILE")" echo "${CTK_COMPONENT_SHA256} ${CTK_COMPONENT_COMPONENT_FILENAME}" | sha256sum --check --strict - - extract $CTK_COMPONENT_COMPONENT_FILENAME + # cuda.pathfinder looks for CUPTI only under extras/CUPTI, the CTK installer + # layout; the redistrib archive itself has a flat include/ + lib/ layout. + CTK_COMPONENT_DEST="$CACHE_TMP_DIR" + if [[ "$CTK_COMPONENT" == cuda_cupti ]]; then + CTK_COMPONENT_DEST="$CACHE_TMP_DIR/extras/CUPTI" + fi + mkdir -p "$CTK_COMPONENT_DEST" + extract $CTK_COMPONENT_COMPONENT_FILENAME "$CTK_COMPONENT_DEST" rm $CTK_COMPONENT_COMPONENT_FILENAME } @@ -191,9 +200,19 @@ runs: for item in $(echo $CTK_CACHE_COMPONENTS | tr ',' ' '); do populate_cuda_path "$item" done - # TODO: check Windows - if [[ "${{ inputs.host-platform }}" == linux* && -d "${CACHE_TMP_DIR}/lib" ]]; then - mv $CACHE_TMP_DIR/lib $CACHE_TMP_DIR/lib64 + CUPTI_DIR="$CACHE_TMP_DIR/extras/CUPTI" + if [[ "${{ inputs.host-platform }}" == linux* ]]; then + for lib_parent in "$CACHE_TMP_DIR" "$CUPTI_DIR"; do + if [[ -d "$lib_parent/lib" ]]; then + mv "$lib_parent/lib" "$lib_parent/lib64" + fi + done + elif [[ "${{ inputs.host-platform }}" == win* ]]; then + # CUPTI archives before 13.4 put the DLLs directly in lib/, where the + # CTK installer uses extras/CUPTI/lib64; later ones use lib/. + if [[ -d "$CUPTI_DIR/lib" && ! -d "$CUPTI_DIR/lib/x64" && ! -d "$CUPTI_DIR/lib/arm64" ]]; then + mv "$CUPTI_DIR/lib" "$CUPTI_DIR/lib64" + fi fi ls -l $CACHE_TMP_DIR diff --git a/.github/workflows/test-wheel-linux.yml b/.github/workflows/test-wheel-linux.yml index 61f969c79421..dcee0920cbd9 100644 --- a/.github/workflows/test-wheel-linux.yml +++ b/.github/workflows/test-wheel-linux.yml @@ -411,6 +411,12 @@ jobs: CUDA_PATHFINDER_TEST_FIND_NVIDIA_BITCODE_LIB_STRICTNESS: see_what_works run: run-tests pathfinder + # The checker and the mini-CTK layout it expects both come from the + # inputs.sha checkout. Nightly runs may check out a commit without them. + - name: Check cuda.pathfinder loads NVRTC and CUPTI from the mini CTK + if: ${{ inputs.test-mode == 'standard' && env.TEST_PATHFINDER == 'true' && matrix.LOCAL_CTK == '1' && hashFiles('ci/tools/check_pathfinder_ctk_libs.py') != '' }} + run: python ci/tools/check_pathfinder_ctk_libs.py nvrtc cupti + - name: Run cuda.bindings tests if: ${{ inputs.test-mode == 'standard' && env.TEST_BINDINGS == 'true' && env.SKIP_CUDA_BINDINGS_TEST == '0' }} env: diff --git a/.github/workflows/test-wheel-windows.yml b/.github/workflows/test-wheel-windows.yml index 739aff661f46..b6f2a2010e7b 100644 --- a/.github/workflows/test-wheel-windows.yml +++ b/.github/workflows/test-wheel-windows.yml @@ -367,6 +367,13 @@ jobs: shell: bash --noprofile --norc -xeuo pipefail {0} run: run-tests pathfinder + # The checker and the mini-CTK layout it expects both come from the + # inputs.sha checkout. Nightly runs may check out a commit without them. + - name: Check cuda.pathfinder loads NVRTC and CUPTI from the mini CTK + if: ${{ inputs.test-mode == 'standard' && env.TEST_PATHFINDER == 'true' && matrix.LOCAL_CTK == '1' && hashFiles('ci/tools/check_pathfinder_ctk_libs.py') != '' }} + shell: bash --noprofile --norc -xeuo pipefail {0} + run: python ci/tools/check_pathfinder_ctk_libs.py nvrtc cupti + - name: Run cuda.bindings tests if: ${{ inputs.test-mode == 'standard' && env.TEST_BINDINGS == 'true' && env.SKIP_CUDA_BINDINGS_TEST == '0' }} env: diff --git a/ci/tools/check_pathfinder_ctk_libs.py b/ci/tools/check_pathfinder_ctk_libs.py new file mode 100644 index 000000000000..353d017fdb08 --- /dev/null +++ b/ci/tools/check_pathfinder_ctk_libs.py @@ -0,0 +1,44 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +"""Check that cuda.pathfinder loads the given libraries from the CTK under CUDA_PATH. + +The default cuda.pathfinder tests tolerate libraries that cannot be found, so a +layout mismatch between the mini CTK and pathfinder's search directories would +otherwise go unnoticed. The library may be found through any search step, as +long as it comes from under CUDA_PATH. + +Usage: python check_pathfinder_ctk_libs.py LIBNAME [LIBNAME ...] +""" + +from __future__ import annotations + +import os +import sys + +from cuda.pathfinder import load_nvidia_dynamic_lib + + +def _canonical(path: str) -> str: + return os.path.normcase(os.path.realpath(path)) + + +def main(libnames: list[str]) -> int: + root = _canonical(os.environ["CUDA_PATH"]) + failed = False + for libname in libnames: + loaded = load_nvidia_dynamic_lib(libname) + if loaded.abs_path is None: + print(f"FATAL: cuda.pathfinder did not report a path for {libname}", file=sys.stderr) + failed = True + continue + path = _canonical(loaded.abs_path) + print(f"{libname}: {path} (found via {loaded.found_via})") + if not path.startswith(root + os.sep): + print(f"FATAL: {libname} was not loaded from CUDA_PATH ({root})", file=sys.stderr) + failed = True + return 1 if failed else 0 + + +if __name__ == "__main__": + sys.exit(main(sys.argv[1:])) From 1a22eec83310d7233c8fd2e4179cf59d50e53314 Mon Sep 17 00:00:00 2001 From: Ralf Juengling Date: Thu, 12 Nov 2026 08:56:26 -0800 Subject: [PATCH 33/85] Mark cuda-gdb source-line test thread_unsafe (#3433) Signed-off-by: Ralf Juengling --- cuda_core/tests/test_program.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cuda_core/tests/test_program.py b/cuda_core/tests/test_program.py index c045aba07862..6dc422c9c467 100644 --- a/cuda_core/tests/test_program.py +++ b/cuda_core/tests/test_program.py @@ -1263,6 +1263,7 @@ def test_nvrtc_debug_keeps_file_the_caller_named(init_cuda, tmp_path, debug): @pytest.mark.agent_authored(model="cursor-grok-4.6") +@pytest.mark.thread_unsafe(reason="concurrent cuda-gdb sessions on one GPU hang with CUDA_ERROR_INVALID_CONTEXT") def test_cuda_gdb_shows_nvrtc_debug_source_lines(init_cuda): import pathlib From e119c3143a8cab7a2af9c600098d9c7192271d95 Mon Sep 17 00:00:00 2001 From: Ralf Juengling Date: Thu, 12 Nov 2026 09:47:02 -0800 Subject: [PATCH 34/85] [no-ci] pathfinder: preload NVRTC builtins for CUDA Toolkits on Linux (#3439) pathfinder: preload NVRTC builtins for CUDA Toolkits on Linux On Linux, NVRTC dlopen()s its builtins by bare SONAME and does not look in its own directory; toolkit builds have no RUNPATH. Preload the matching libnvrtc-builtins.so.. from the same resolved directory when loading a toolkit NVRTC by absolute path. Wheels keep only the existing 13.0 workaround; Conda packages are left unchanged. Also stop exporting LD_LIBRARY_PATH from the fetch_ctk CI action, which was hiding the failure. --- .github/actions/fetch_ctk/action.yml | 1 - .../pathfinder/_dynamic_libs/load_dl_linux.py | 56 ++++--- .../docs/source/release/1.9.0-notes.rst | 7 + .../tests/child_nvrtc_compile_helper.py | 53 +++++++ cuda_pathfinder/tests/test_load_dl_linux.py | 147 ++++++++++++++++++ 5 files changed, 244 insertions(+), 20 deletions(-) create mode 100644 cuda_pathfinder/tests/child_nvrtc_compile_helper.py diff --git a/.github/actions/fetch_ctk/action.yml b/.github/actions/fetch_ctk/action.yml index e8bac04d0d01..d51badde38da 100644 --- a/.github/actions/fetch_ctk/action.yml +++ b/.github/actions/fetch_ctk/action.yml @@ -269,7 +269,6 @@ runs: if [[ "${{ inputs.host-platform }}" == linux* ]]; then CUDA_PATH=$(realpath "${{ inputs.cuda-path }}") echo "${CUDA_PATH}/bin" >> $GITHUB_PATH - echo "LD_LIBRARY_PATH=${CUDA_PATH}/lib64:${LD_LIBRARY_PATH:-}" >> $GITHUB_ENV elif [[ "${{ inputs.host-platform }}" == win* ]]; then function normpath() { echo "$(echo $(cygpath -w $1) | sed 's/\\/\\\\/g')" diff --git a/cuda_pathfinder/cuda/pathfinder/_dynamic_libs/load_dl_linux.py b/cuda_pathfinder/cuda/pathfinder/_dynamic_libs/load_dl_linux.py index d9b6f2d8d9f4..d631267bbe83 100644 --- a/cuda_pathfinder/cuda/pathfinder/_dynamic_libs/load_dl_linux.py +++ b/cuda_pathfinder/cuda/pathfinder/_dynamic_libs/load_dl_linux.py @@ -3,11 +3,11 @@ from __future__ import annotations -import contextlib import ctypes import ctypes.util import os import sys +import warnings from typing import TYPE_CHECKING, cast from cuda.pathfinder._dynamic_libs.load_dl_common import LoadedDL @@ -182,23 +182,40 @@ def load_with_system_search(desc: LibDescriptor) -> LoadedDL | None: return None -def _work_around_known_bugs(libname: str, found_path: str) -> None: - if libname == "nvrtc": - # Work around bug/oversight in - # nvidia_cuda_nvrtc-13.0.48-py3-none-manylinux2010_x86_64.manylinux_2_12_x86_64.whl - # Issue: libnvrtc.so.13 RUNPATH is not set. - # This workaround is highly specific - # - for simplicity. - # - to not mask bugs in future nvidia-cuda-nvrtc releases. - # - because a more general workaround is complicated. - dirname, basename = os.path.split(found_path) - if basename == "libnvrtc.so.13": - dep_basename = "libnvrtc-builtins.so.13.0" - dep_path = os.path.join(dirname, dep_basename) - if os.path.isfile(dep_path): - # In case of failure, defer to primary load, which is almost certain to fail, too. - with contextlib.suppress(OSError): - ctypes.CDLL(dep_path, CDLL_MODE) +def _preload_nvrtc_builtins(found_path: str, found_via: str | None) -> None: + # Let Conda packaging provide sibling lookup through RPATH. + if found_via == "conda": + return + real_path = os.path.realpath(found_path) + version = os.path.basename(real_path).removeprefix("libnvrtc.so.").split(".") + if found_via == "site-packages": + # Retain only the historical 13.0 wheel workaround. + if version[0] != "13": + return + major, minor = 13, 0 + else: + if len(version) < 2 or not (version[0].isdigit() and version[1].isdigit()): + warnings.warn( + f"Cannot determine the NVRTC version from {real_path}; not preloading its builtins", + RuntimeWarning, + stacklevel=2, + ) + return + major, minor = version[0], version[1] + sibling = os.path.join(os.path.dirname(real_path), f"libnvrtc-builtins.so.{major}.{minor}") + if not os.path.isfile(sibling): + if found_via != "site-packages": + warnings.warn(f"NVRTC builtins sibling not found: {sibling}", RuntimeWarning, stacklevel=2) + return + # If preloading fails, NVRTC's own builtins lookup may still succeed. + try: + ctypes.CDLL(sibling, CDLL_MODE) + except OSError as e: + warnings.warn( + f"Failed to preload {sibling} for {found_path}: {e}; NVRTC may fail when it loads its builtins itself", + RuntimeWarning, + stacklevel=2, + ) def load_with_abs_path(desc: LibDescriptor, found_path: str, found_via: str | None = None) -> LoadedDL: @@ -215,9 +232,10 @@ def load_with_abs_path(desc: LibDescriptor, found_path: str, found_via: str | No Raises: RuntimeError: If the library cannot be loaded. """ - _work_around_known_bugs(desc.name, found_path) try: handle = _load_lib(desc, found_path) except OSError as e: raise RuntimeError(f"Failed to dlopen {found_path}: {e}") from e + if desc.name == "nvrtc": + _preload_nvrtc_builtins(found_path, found_via) return LoadedDL(found_path, False, handle._handle, found_via) diff --git a/cuda_pathfinder/docs/source/release/1.9.0-notes.rst b/cuda_pathfinder/docs/source/release/1.9.0-notes.rst index 19427cccbf43..484e55834995 100644 --- a/cuda_pathfinder/docs/source/release/1.9.0-notes.rst +++ b/cuda_pathfinder/docs/source/release/1.9.0-notes.rst @@ -34,6 +34,13 @@ Bugfixes (`Issue #3413 `_, `PR #3418 `_) +* On Linux, preload ``libnvrtc-builtins.so..`` from the same + directory as NVRTC when loading from a CUDA Toolkit install, so that + compilation works without ``LD_LIBRARY_PATH`` or an ``ldconfig`` entry + for the toolkit directory. Wheels keep only the existing NVRTC 13.0 + workaround, and Conda packages are left unchanged. + (`PR #3439 `_) + Documentation ------------- diff --git a/cuda_pathfinder/tests/child_nvrtc_compile_helper.py b/cuda_pathfinder/tests/child_nvrtc_compile_helper.py new file mode 100644 index 000000000000..69db22a03f28 --- /dev/null +++ b/cuda_pathfinder/tests/child_nvrtc_compile_helper.py @@ -0,0 +1,53 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +"""Load NVRTC from the given path via pathfinder, compile a trivial program, +and print a JSON report including where libnvrtc-builtins was mapped from.""" + +import ctypes +import json +import os +import sys + +from cuda.pathfinder._dynamic_libs.lib_descriptor import LIB_DESCRIPTORS +from cuda.pathfinder._dynamic_libs.load_dl_linux import load_with_abs_path + + +def _mapped_paths(basename_prefix: str) -> list[str]: + paths = set() + with open("/proc/self/maps") as maps: + for line in maps: + fields = line.split(maxsplit=5) + if len(fields) == 6 and os.path.basename(fields[5].strip()).startswith(basename_prefix): + paths.add(os.path.realpath(fields[5].strip())) + return sorted(paths) + + +def main(nvrtc_path: str) -> None: + load_with_abs_path(LIB_DESCRIPTORS["nvrtc"], nvrtc_path, "CUDA_PATH") + nvrtc = ctypes.CDLL(nvrtc_path) + + prog = ctypes.c_void_p() + status = nvrtc.nvrtcCreateProgram(ctypes.byref(prog), b"__global__ void k() {}\n", b"k.cu", 0, None, None) + if status != 0: + raise RuntimeError(f"nvrtcCreateProgram failed (status={status})") + compile_status = nvrtc.nvrtcCompileProgram(prog, 0, None) + log_size = ctypes.c_size_t() + nvrtc.nvrtcGetProgramLogSize(prog, ctypes.byref(log_size)) + log = ctypes.create_string_buffer(log_size.value) + nvrtc.nvrtcGetProgramLog(prog, log) + nvrtc.nvrtcDestroyProgram(ctypes.byref(prog)) + + print( + json.dumps( + { + "compile_status": compile_status, + "log": log.value.decode(errors="replace"), + "builtins_paths": _mapped_paths("libnvrtc-builtins"), + } + ) + ) + + +if __name__ == "__main__": + main(sys.argv[1]) diff --git a/cuda_pathfinder/tests/test_load_dl_linux.py b/cuda_pathfinder/tests/test_load_dl_linux.py index df7b1718a1b9..6b36fb7905ff 100644 --- a/cuda_pathfinder/tests/test_load_dl_linux.py +++ b/cuda_pathfinder/tests/test_load_dl_linux.py @@ -1,16 +1,36 @@ # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 +import json import os +import re +import shutil +import subprocess import sys +import warnings +from pathlib import Path +from types import SimpleNamespace import pytest if sys.platform != "linux": pytest.skip("Linux dynamic-loader tests", allow_module_level=True) +from child_load_nvidia_dynamic_lib_helper import ( + LOAD_NVIDIA_DYNAMIC_LIB_SUBPROCESS_CWD, + build_child_process_failed_for_libname_message, + run_load_nvidia_dynamic_lib_in_subprocess, +) + from cuda.pathfinder._dynamic_libs import load_dl_linux from cuda.pathfinder._dynamic_libs.descriptor_catalog import DescriptorSpec +from cuda.pathfinder._dynamic_libs.lib_descriptor import LIB_DESCRIPTORS +from cuda.pathfinder._dynamic_libs.subprocess_protocol import ( + STATUS_NOT_FOUND, + parse_dynamic_lib_subprocess_payload, +) + +_NVRTC_COMPILE_CHILD_SCRIPT = Path(__file__).with_name("child_nvrtc_compile_helper.py") def _descriptor() -> DescriptorSpec: @@ -54,3 +74,130 @@ def load_lib(_desc, soname): assert loaded is None assert queried_sonames == ["libprobe.so.13", "libprobe.so.12"] + + +def _make_nvrtc_dir(tmp_path, nvrtc_file, *builtins_files): + # Mirror real layouts: CTK and Conda name the real file libnvrtc.so. + # behind a libnvrtc.so. symlink; wheels ship a physical libnvrtc.so.. + major = nvrtc_file.split(".")[2] + (tmp_path / nvrtc_file).touch() + soname_path = tmp_path / f"libnvrtc.so.{major}" + if nvrtc_file != soname_path.name: + soname_path.symlink_to(nvrtc_file) + for name in builtins_files: + (tmp_path / name).touch() + return str(soname_path) + + +@pytest.mark.agent_authored(model="claude-opus-5.5") +@pytest.mark.parametrize( + ("found_via", "nvrtc_file", "builtins_file", "expect_preload"), + [ + ("CUDA_PATH", "libnvrtc.so.13.5.37", "libnvrtc-builtins.so.13.5", True), + ("system-ctk-root", "libnvrtc.so.12.9.86", "libnvrtc-builtins.so.12.9", True), + ("site-packages", "libnvrtc.so.13", "libnvrtc-builtins.so.13.0", True), + ("site-packages", "libnvrtc.so.13", "libnvrtc-builtins.so.13.5", False), + ("conda", "libnvrtc.so.13.5.37", "libnvrtc-builtins.so.13.5", False), + ], + ids=["ctk-13.5", "ctk-12.9", "wheel-13.0", "wheel-13.5", "conda-13.5"], +) +def test_preload_nvrtc_builtins_policy(mocker, tmp_path, found_via, nvrtc_file, builtins_file, expect_preload): + nvrtc_path = _make_nvrtc_dir(tmp_path, nvrtc_file, builtins_file) + cdll = mocker.patch.object(load_dl_linux.ctypes, "CDLL") + + with warnings.catch_warnings(): + warnings.simplefilter("error") + load_dl_linux._preload_nvrtc_builtins(nvrtc_path, found_via) + + if expect_preload: + cdll.assert_called_once_with(str(tmp_path / builtins_file), load_dl_linux.CDLL_MODE) + else: + cdll.assert_not_called() + + +@pytest.mark.agent_authored(model="claude-opus-5.5") +@pytest.mark.parametrize( + ("found_via", "nvrtc_file", "builtins_files", "expected_warning"), + [ + ("CUDA_PATH", "libnvrtc.so.13.5.37", (), r"NVRTC builtins sibling not found: .*libnvrtc-builtins\.so\.13\.5$"), + ("site-packages", "libnvrtc.so.13", (), None), + ("CUDA_PATH", "libnvrtc.so.13", ("libnvrtc-builtins.so.13.4",), r"Cannot determine the NVRTC version from "), + ], + ids=["ctk-missing-sibling", "wheel-missing-sibling", "ctk-unversioned-file"], +) +def test_preload_nvrtc_builtins_skips(mocker, tmp_path, found_via, nvrtc_file, builtins_files, expected_warning): + nvrtc_path = _make_nvrtc_dir(tmp_path, nvrtc_file, *builtins_files) + cdll = mocker.patch.object(load_dl_linux.ctypes, "CDLL") + + with warnings.catch_warnings(record=True) as caught: + warnings.simplefilter("always") + load_dl_linux._preload_nvrtc_builtins(nvrtc_path, found_via) + + cdll.assert_not_called() + messages = [str(w.message) for w in caught] + if expected_warning is None: + assert messages == [] + else: + assert len(messages) == 1 + assert re.search(expected_warning, messages[0]), messages[0] + + +@pytest.mark.agent_authored(model="claude-opus-5.5") +def test_load_with_abs_path_warns_and_returns_nvrtc_if_builtins_preload_fails(mocker, tmp_path): + nvrtc_path = _make_nvrtc_dir(tmp_path, "libnvrtc.so.13.5.37", "libnvrtc-builtins.so.13.5") + mocker.patch.object(load_dl_linux, "_load_lib", return_value=SimpleNamespace(_handle=1234)) + mocker.patch.object(load_dl_linux.ctypes, "CDLL", side_effect=OSError("bad ELF")) + + with pytest.warns( + RuntimeWarning, match=r"Failed to preload .*libnvrtc-builtins\.so\.13\.5 for .*libnvrtc\.so\.13: bad ELF" + ): + loaded = load_dl_linux.load_with_abs_path(LIB_DESCRIPTORS["nvrtc"], nvrtc_path, "CUDA_PATH") + + assert loaded.abs_path == nvrtc_path + + +@pytest.mark.agent_authored(model="claude-opus-5.5") +def test_nvrtc_copy_without_loader_path_compiles_using_its_own_builtins(tmp_path): + # Copy NVRTC and its builtins to a directory that is not on any loader + # search path. Asserting where the builtins were mapped from (not only that + # compilation succeeded) keeps the test meaningful on hosts where ldconfig + # also knows a libnvrtc-builtins of the same version. + timeout = 30 + result = run_load_nvidia_dynamic_lib_in_subprocess("nvrtc", timeout=timeout) + assert result.returncode == 0, build_child_process_failed_for_libname_message("nvrtc", result) + payload = parse_dynamic_lib_subprocess_payload( + result.stdout, libname="nvrtc", error_label="Load subprocess child process" + ) + if payload.status == STATUS_NOT_FOUND: + pytest.skip("nvrtc not found") + assert payload.abs_path is not None + src_dir, nvrtc_basename = os.path.split(payload.abs_path) + nvrtc_real_basename = os.path.basename(os.path.realpath(payload.abs_path)) + if not re.fullmatch(r"libnvrtc\.so\.\d+\.\d+.*", nvrtc_real_basename): + pytest.skip(f"Not a CTK-style NVRTC (no versioned real file): {payload.abs_path}") + builtins_basenames = [ + name for name in os.listdir(src_dir) if re.fullmatch(r"libnvrtc-builtins\.so\.\d+\.\d+", name) + ] + if len(builtins_basenames) != 1: + pytest.skip(f"Expected exactly one libnvrtc-builtins.so.. in {src_dir}: {builtins_basenames}") + + lib_dir = tmp_path / "lib" + lib_dir.mkdir() + shutil.copy(os.path.realpath(payload.abs_path), lib_dir / nvrtc_real_basename) + (lib_dir / nvrtc_basename).symlink_to(nvrtc_real_basename) + shutil.copy(os.path.join(src_dir, builtins_basenames[0]), lib_dir / builtins_basenames[0]) + env = {k: v for k, v in os.environ.items() if k not in ("LD_LIBRARY_PATH", "LD_PRELOAD")} + child = subprocess.run( # noqa: S603 - trusted argv: current interpreter + internal test helper script + [sys.executable, str(_NVRTC_COMPILE_CHILD_SCRIPT), str(lib_dir / nvrtc_basename)], + capture_output=True, + text=True, + timeout=timeout, + check=False, + cwd=LOAD_NVIDIA_DYNAMIC_LIB_SUBPROCESS_CWD, + env=env, + ) + assert child.returncode == 0, build_child_process_failed_for_libname_message("nvrtc", child) + + report = json.loads(child.stdout.splitlines()[-1]) + assert report["compile_status"] == 0, report["log"] + assert report["builtins_paths"] == [os.path.realpath(lib_dir / builtins_basenames[0])] From 9bbfb5ccca399ec7428a2f313f807de592a13818 Mon Sep 17 00:00:00 2001 From: Michael Wang <13521008+isVoid@users.noreply.github.com> Date: Thu, 12 Nov 2026 12:27:27 -0800 Subject: [PATCH 35/85] Run WoA dispatch nightly outside the main CI workflow (#3357) Signed-off-by: isVoid <13521008+isVoid@users.noreply.github.com> --- .github/workflows/ci.yml | 19 ------------------- .github/workflows/woa-main-ci.yml | 11 +++-------- 2 files changed, 3 insertions(+), 27 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a816ac5b679e..c2da917fe52c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -483,25 +483,6 @@ jobs: single-cuda-major: ${{ needs.ci-vars.outputs.WINDOWS_ARM64_SINGLE_CUDA_MAJOR == 'true' }} python-versions: ${{ needs.ci-vars.outputs.PYTHON_SUPPORTED }} - woa-main-dispatch: - name: Dispatch WoA integration - needs: - - build-linux-64 - - build-windows-arm64 - if: ${{ github.repository_owner == 'nvidia' && - github.event_name == 'push' && - github.ref == 'refs/heads/main' && - needs.build-linux-64.result == 'success' && - needs.build-windows-arm64.result == 'success' }} - permissions: - actions: read - checks: read - contents: read - uses: ./.github/workflows/woa-main-ci.yml - with: - public_run_id: ${{ github.run_id }} - secrets: inherit - # NOTE: test-sdist jobs are split by platform (mirroring build-* and test-wheel-*) # so platform-specific sources (e.g. cuda_bindings_13/*_windows.pyx selected by # build_hooks.py) are exercised on their target OS. Keep these job definitions diff --git a/.github/workflows/woa-main-ci.yml b/.github/workflows/woa-main-ci.yml index f389430383af..f20c6fc70dee 100644 --- a/.github/workflows/woa-main-ci.yml +++ b/.github/workflows/woa-main-ci.yml @@ -6,14 +6,9 @@ name: "WoA main CI" run-name: "WoA main CI for ${{ inputs.public_run_id || 'latest successful public main CI run' }}" on: - workflow_call: - inputs: - public_run_id: - required: true - type: string - secrets: - CUDA_PYTHON_WOA_XREPO_CI_PRIVATE_APP_PRIVATE_KEY: - required: true + schedule: + # 03:17 UTC daily, offset from the other nightly workflows. + - cron: "17 3 * * *" workflow_dispatch: inputs: public_run_id: From b975a83a98560f47d42ced7b2ba84f7e4dd04455 Mon Sep 17 00:00:00 2001 From: Ralf Juengling Date: Thu, 12 Nov 2026 13:40:13 -0800 Subject: [PATCH 36/85] CI: install gh from a pinned keyring checked into the repo (#3449) CI: install gh from a keyring checked into the repo (#3449) Add a .github/actions/install-gh-cli composite action. It installs gh from the cli.github.com apt repository with signed-by= pointing at the armored public key in the action directory, instead of a keyring downloaded at job time. The file holds only the current key, so apt trusts exactly one key. The README gives the rationale and the key-rotation steps. build-wheel.yml and test-wheel-linux.yml use the action in place of their inline installs. test-wheel-linux.yml loads it with $/ because that job checks out inputs.sha, which can predate the action. --- .github/actions/install-gh-cli/README.md | 68 +++++++++++++++++++ .github/actions/install-gh-cli/action.yml | 22 ++++++ .../githubcli-archive-keyring.asc | 52 ++++++++++++++ .github/workflows/build-wheel.yml | 16 ++--- .github/workflows/test-wheel-linux.yml | 17 ++--- .spdx-ignore | 1 + 6 files changed, 154 insertions(+), 22 deletions(-) create mode 100644 .github/actions/install-gh-cli/README.md create mode 100644 .github/actions/install-gh-cli/action.yml create mode 100644 .github/actions/install-gh-cli/githubcli-archive-keyring.asc diff --git a/.github/actions/install-gh-cli/README.md b/.github/actions/install-gh-cli/README.md new file mode 100644 index 000000000000..102ebc163cf9 --- /dev/null +++ b/.github/actions/install-gh-cli/README.md @@ -0,0 +1,68 @@ +# install-gh-cli + +Installs the GitHub CLI (`gh`) from the `cli.github.com` apt repository on +Linux jobs that don't already have it. If `gh` is already on `PATH` the action +exits immediately. + +## Why the key is checked in + +The standard upstream install instructions download the repository signing key +over HTTPS and trust whatever bytes come back. The security of every `gh` +package installed in CI then rests solely on the TLS trust store of the runner +or container and the integrity of `cli.github.com`. Several workflows supply +`gh` with a `GITHUB_TOKEN`, so a substituted key could place a malicious +binary into those jobs. + +Checking the public key into the repository means apt will only accept packages +signed by a key that was reviewed in a pull request. The file contains exactly +one key, because apt trusts every key listed in a `signed-by=` keyring; a +multi-key file would widen trust unnecessarily. + +Packages from Ubuntu's own repositories don't need this: their signing keys +ship with the OS image in the `ubuntu-keyring` package, so apt checks them +against keys that are already on disk. `cli.github.com` is the only +third-party apt repository in our CI, and this action gives it the same +property: a key present before the job runs, not one fetched during it. + +## Updating the key + +GitHub occasionally rotates the signing key. The previous key (fingerprint +`2C61 0620 1985 B60E 6C7A C873 23F3 D4EA 7571 6059`) expired on 2026-09-05. +The current key (fingerprint `7F38 BBB5 9D06 4DBC B3D8 4D72 5612 B364 6231 +3325`) was created on 2026-04-07 and has no expiry. + +A key rotation shows up in CI as `apt-get update` failing with a `NO_PUBKEY` +or `EXPKEYSIG` error for the `cli.github.com` repository. + +To update the key: + +1. Find the new key's fingerprint in the [GitHub CLI Linux install docs](https://github.com/cli/cli/blob/trunk/docs/install_linux.md); the active fingerprints are listed near the top of the page. The docs are the reference; the key server is not an independent check since step 2 also fetches from the same host. + +2. Download the armored key for the new fingerprint directly from GitHub CLI's + published ASC file and extract only that key: + + ```bash + tmp=$(mktemp -d) + curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.asc \ + | gpg --homedir "$tmp" --batch --import + gpg --homedir "$tmp" --batch --armor --export \ + > .github/actions/install-gh-cli/githubcli-archive-keyring.asc + ``` + +3. Confirm the exported key signs the current repository metadata: + + ```bash + gpg --dearmor < .github/actions/install-gh-cli/githubcli-archive-keyring.asc \ + > "$tmp/key.gpg" + curl -fsSL https://cli.github.com/packages/dists/stable/InRelease \ + | gpgv --keyring "$tmp/key.gpg" - + ``` + + The output must say `Good signature from "GitHub CLI <...>"`. + +4. Update this README: replace the old fingerprint and creation/expiry dates + above with the new key's details. + +5. Open a pull request. Include the new fingerprint, the creation and expiry + dates from `gpg --show-keys`, and the `gpgv` output from step 3 in the PR + description. diff --git a/.github/actions/install-gh-cli/action.yml b/.github/actions/install-gh-cli/action.yml new file mode 100644 index 000000000000..547ccaf15325 --- /dev/null +++ b/.github/actions/install-gh-cli/action.yml @@ -0,0 +1,22 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +name: Install GitHub CLI +description: Install gh from the cli.github.com apt repo, trusting only the pinned signing key checked in next to this action + +runs: + using: composite + steps: + - name: Install gh + shell: bash --noprofile --norc -xeuo pipefail {0} + run: | + if command -v gh >/dev/null 2>&1; then + exit 0 + fi + # See .github/actions/install-gh-cli/README.md for key update instructions. + install -D -m 644 "$GITHUB_ACTION_PATH/githubcli-archive-keyring.asc" \ + /etc/apt/keyrings/githubcli-archive-keyring.asc + echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.asc] https://cli.github.com/packages stable main" \ + > /etc/apt/sources.list.d/github-cli.list + apt-get update -q + apt-get install -y gh diff --git a/.github/actions/install-gh-cli/githubcli-archive-keyring.asc b/.github/actions/install-gh-cli/githubcli-archive-keyring.asc new file mode 100644 index 000000000000..9cbeb35cdf4a --- /dev/null +++ b/.github/actions/install-gh-cli/githubcli-archive-keyring.asc @@ -0,0 +1,52 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBGnU4fgBEADKojfVZQ7H4KY0JLAT5rvRsB7toAsacUzUi/feD9JdEGQb5g18 +9FOB2KCg2Bin6hPwF0DpCMZ7XEhRgt1VK5HkSA1/f+qINN1JEpRyj5fu7yV93ipz +S5ISJV/TaUdg9JIFT9Qo69sIFJB+79epICQuGf0n1uAXLnLHMd+eIM85P1R2J/7V +TwjKMQCnoNjLhQpKdsSiltcEtzXwZ5jknV5+8iRCbvtiYQm8std+IlsxBdL02seK +KstWQziCb2ml73II5k4npaXN5b/1N6rm90M3P+8T645C3EQlbhy2HSc3uuMjMvuX +QIdIy9tjGPyG4eAO0oxuhHWhWdmkhXCs8PS4IxfHH1RMlbmGgUXpDk6qDsIuapOc +nD+uS6tLZhOkSGchfic3VeGN0F13kb//TIzHV+v5IcVTKbcSkXQu2zwtMFHGv2Xc +osxdp1qdCNlbcaO48pTUKMlnT+/2VUPPkTa5fx3EPlQAXiyBWZg9G7AhPWxxdi8J +7W6g/d0COZCZSSUy7zkEh68Wiv0mwfxeS0rZrpucARhwCoa8QYBtOX0OE/yKNxxr +MvoES1+FpbmIrWFJJ5JwESD2cLvnxCEWPjeWnJESubN1A0BsGJTKTZUhO1NPuVvX +HbxKfBzcGDm/Y5zfGlMOLdKnhRNGXJfMX3ZU645RoLEmAG8lXAcvffOIWQARAQAB +tCZHaXRIdWIgQ0xJIDxvcGVuc291cmNlK2NsaUBnaXRodWIuY29tPokCTgQTAQoA +OBYhBH84u7WdBk28s9hNclYSs2RiMTMlBQJp1OH4AhsDBQsJCAcCBhUKCQgLAgQW +AgMBAh4BAheAAAoJEFYSs2RiMTMl5PIP/3bQxn4UVdwO02LGyGJe4NFwUyHlKqz8 +cOTNc3KN9IXvLyN/CO7yZxRcqD6t+wLhxOuyVpAL4pPB+0/SWMXC3HTGerAUvM/d +70qpLUHVotkEzXbpkWefv7jC28bWQNs+UhgRsW//dkTneY6i5S1DXKom2tMz4kSo +f0oILvt488//gBReJ5or9TSvP6xcO/ZpyA4obLTBZuJRlaEJtJXHNCLfSlxUviRx +2o6TbFx5lDMpoCQC0CC9+vn5RwRVHtOe24iAJSN5QmslKwhx0j51pnkzEPpEXJRB +eToYI8K/MukKcf3OP5LTjHBINPM3UTMz/WR0ZdIJX7EA9brLG8M4g4eq5U2nIoDT +WzET4CW/c/4kZ79R0+pIk7I0OoI4sAdH4LpC27PDMFRXRVzreFa5gBp/km8Nmacz +BQEpAed369m8TWQD6pyOon/R1xBXZ+A/6yGyL38FXVl5PwwJa9kj5/MlqgBH03z0 +SD5G6JmhbEzMIuJvVW7ws41oJfFpKt9q5Kp35aChZM4CABfYt3iVd0zM/SYEmoDa +h8qqFtbvv++WSXMVLPE4gT+7GLRlqrYJzFFhhmpXed2oCJEHK1/wakG5ybDchKF/ +MDlhEv3QK2/OlaRo7PldKcNNXw3XtegOpIh/8UDJEG9JXr17GFmh1k025j0i3jjJ +E/LvvkD1OxH5uQINBGnU4fgBEADn2v5hLRHCyK3UT6lxsGQomcWJopda2rkpUiGL +vcNMjJ1AsqiTGhoLcG0Lkb+yiqGIaZG5seS4MhuosGx2OvWmBy16ocTLWSjSKR3d +C5tNbwmuCzENYOfDIJ1vweS+aiRC4yLTcDDBV6Po0sT3EANf4MbKPuqrR8FOCBRQ +mw+NVfmcz6eHS236ekmDTjymivbtWYGJoqoI1f2dQ9MNtpUG0zp5jLfYyDXbKSYP +mNhIXaTEy7AaQqM7JceX2CCUIwzkgVl3YPuenA0whMPhgderL867+w5rqtiOcE+n +FJ5X6ETQT1P5ijkDUtRlR60C4I7Q7MJ+Wsz4YryZdBRCVZHNCe0Q2y6NOLcHNNjd +JYEPP+MU5MOj6wuXzaCQuYgaMayf4sKhvQ3VwssBjMHpiKYYD3+IYSfiKeTcG5jk +hb8BNX6unBSl6u42vyVa6ZrKygt7w/9et/7P2z22tKMBc7b3Mea7OdmzXWcFjftq +HviWfAUxwIXmcYdU4iDPn/f63jLF+C4SD4hPxX2HMTg9vVj8oVRmsyRKFOymuJYv +BF2jnIM5Tz5eNbbDj9+qFN8E4Yh2otJGL73XYYJGLhXa3kF50iJkDEl5V4KLyh41 +N2uRz3d+8m2ywT4fUsCnxDp8o5gfsNrdZ9n8TCxqz6lF7bGcwxHogkvA7PKDX/9A +7DEFfwARAQABiQI2BBgBCgAgFiEEfzi7tZ0GTbyz2E1yVhKzZGIxMyUFAmnU4fgC +GwwACgkQVhKzZGIxMyWGwRAAudgkwZldahscnAV9Xo2kremlOqZE3rQPSZ2hUYPI +QQJEMzNKcWFKJIWzuG5ez25VJveHTUDaYikg/6IUvXBwKenFHDdexiuTcEvVhcpx +2Lgp0ONfxrVR1XxqbY1/21ui7QCOxnB0QUalZSwasww36kCCbeBjsNi7BRmNGHo7 +ChKzFsZuOWOqNc9wdzb9GeqqG99mDTa6Hu364I2QoEJci9eBHwC01mq+5V0CarmD +LIECpPboHmrx5Wi55End2FTFR0Ivb74O1U8cl6RfrnQ2rZw8mDcsFya1JaF7pb5+ +y2Q8pTxGd6s0MEMScZIJ/FePK3+dpYoJiWvPXoIh7HFIMpK5t+gAZqzLOozAdPnJ +49YmiyVO4bTx1yor++FCNyY5EmyKzaVer4DUfpAvTc1cdxmaqWUFsQfeTmL0nl6q +RKylvsJ7DR4s6EfUKxAiB4V4nTpY5nNiAJ0D+tQOjh1AkYydBYAhphb3RAetdz2k +WdcEvrNCOzMBxRU/NmkpTeGA1KqtdskfNuShffX+1p0PJn1hZ4k94S0nSQmJvxi1 +2Ad/JG1uyKduza8+bagVf9Qx2OpX2eNvlJDRPd0zpwfAgbL1WI4lmpWjQaVYa96T +awT/BuyG+L/QXxAiUEgd+r/8DE57aS0sxM/M5i/bwrPWgb1CZQq6lUOG4C34tHvD +LxU= +=VbVd +-----END PGP PUBLIC KEY BLOCK----- diff --git a/.github/workflows/build-wheel.yml b/.github/workflows/build-wheel.yml index e757228cc49e..12809f8d8ae7 100644 --- a/.github/workflows/build-wheel.yml +++ b/.github/workflows/build-wheel.yml @@ -555,24 +555,16 @@ jobs: ${{ env.CUDA_CORE_TEST_BINARIES_DIR }}/*.lib if-no-files-found: error + - name: Install GitHub CLI + if: ${{ !inputs.single-cuda-major && env.BUILD_CORE == 'true' }} + uses: ./.github/actions/install-gh-cli + - name: Look up prior-branch cuda.bindings run ID id: prior-bindings if: ${{ !inputs.single-cuda-major && env.BUILD_CORE == 'true' }} env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - if ! (command -v gh 2>&1 >/dev/null); then - # See https://github.com/cli/cli/blob/trunk/docs/install_linux.md#debian-ubuntu-linux-raspberry-pi-os-apt. - # gh is needed for lookup-run-id, which calls gh api. - mkdir -p -m 755 /etc/apt/keyrings \ - && out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg \ - && cat $out | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \ - && chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \ - && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ - && apt update \ - && apt install gh -y - fi - OLD_BRANCH=$(yq '.backport_branch' ci/versions.yml) OLD_ARTIFACT_PATTERN="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda*-${{ inputs.host-platform }}-*[0-9a-f]" LATEST_PRIOR_RUN_ID=$(./ci/tools/lookup-run-id \ diff --git a/.github/workflows/test-wheel-linux.yml b/.github/workflows/test-wheel-linux.yml index dcee0920cbd9..805deb757e0d 100644 --- a/.github/workflows/test-wheel-linux.yml +++ b/.github/workflows/test-wheel-linux.yml @@ -216,6 +216,13 @@ jobs: run-id: ${{ inputs.run-id || github.run_id }} github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Install GitHub CLI + if: ${{ (env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' || env.TEST_PYTHON == 'true') && + env.BINDINGS_SOURCE == 'backport' }} + # $/ resolves at the workflow's commit. ./ would resolve against the + # inputs.sha checkout, which can predate this action. + uses: $/.github/actions/install-gh-cli + - name: Look up prior-branch artifacts run ID id: prior if: ${{ (env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' || env.TEST_PYTHON == 'true') && @@ -223,16 +230,6 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - # See https://github.com/cli/cli/blob/trunk/docs/install_linux.md#debian-ubuntu-linux-raspberry-pi-os-apt. - # gh is needed for lookup-run-id, which calls gh api. - mkdir -p -m 755 /etc/apt/keyrings \ - && out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg \ - && cat $out | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \ - && chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \ - && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ - && apt update \ - && apt install gh -y - OLD_BRANCH=${{ needs.compute-matrix.outputs.OLD_BRANCH }} OLD_ARTIFACT_PATTERN="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda*-${{ inputs.host-platform }}-*[0-9a-f]" LOOKUP_ARGS=( diff --git a/.spdx-ignore b/.spdx-ignore index 30db6fa24754..044e06e5e4e9 100644 --- a/.spdx-ignore +++ b/.spdx-ignore @@ -1,4 +1,5 @@ LICENSE* +*.asc *.html *.json *.md From b71507831f58d331c57eedc3e57023b4b35e9b05 Mon Sep 17 00:00:00 2001 From: jpascucci-nv Date: Thu, 12 Nov 2026 20:49:43 -0500 Subject: [PATCH 37/85] fix(cuda.core): serialize pinned-memory kernel-access test on Windows (#3436) * fix(cuda.core): serialize pinned-memory kernel-access test on Windows closes #3426 Add @thread_unsafe_on_windows to the pinned-memory kernel-access test. The test accesses host memory while parallel workers may execute GPU work; synchronizing its own stream does not coordinate those workers. This follows the guard used by similar tests on Windows and WSL. Windows CI is needed to confirm it resolves the reported crashes. The separate OOM failures remain under investigation. Validation: Ruff and git diff --check pass. * fix(cuda.core): report CUDA synchronization errors during test teardown Check the cuCtxSynchronize result in init_cuda so asynchronous errors surface during the triggering test's teardown instead of going unnoticed until a later test. Always attempt context cleanup via finally. Related to #3426. * fix(cuda.core): synchronize the bound context during test teardown Use device.sync() because the test wrapper may pop the current context before init_cuda teardown. This avoids spurious INVALID_CONTEXT errors while preserving synchronization error reporting and context cleanup. Add regression coverage for a missing current context and cleanup after synchronization failures. Related to #3426. * fix(cuda.core): serialize memory-pool watermark reset tests Mark test_mempool_watermark_reset thread_unsafe, matching test_mempool_trim. Both exercise the pool teardown and synchronization sequence associated with the suspected driver race in #3350. * fix(cuda.core): bypass access revocation when destroying host pools Skip peer-access revocation for locally created HOST and HOST_NUMA pools to investigate pinned-pool teardown OOMs and crashes. Continue destroying the pools and preserve cleanup for device, managed, and imported pools. This is a diagnostic workaround pending Windows CI validation. Related to #3426. * fix(cuda.core): preserve the first exception during fixture cleanup Keep setup or synchronization failures primary and attach subsequent cleanup failures as exception notes. Always attempt to pop the context. Add regression coverage for combined failures, including interrupts. * fix(cuda.core): limit host-pool cleanup workaround to pinned allocations HOST and HOST_NUMA also describe managed-pool preferences. Check the allocation type so the pinned-memory workaround preserves managed-pool peer-access revocation. Signed-off-by: Ralf W. Grosse-Kunstleve * test(cuda.core): expose pinned allocation OOM and retain its traceback Signed-off-by: Ralf W. Grosse-Kunstleve * ci: diagnose PR3436 pinned pool teardown on Windows Signed-off-by: Ralf W. Grosse-Kunstleve * ci: move watermark investigation out of PR3436 Signed-off-by: Ralf W. Grosse-Kunstleve * test(cuda.core): restore expected pinned allocation OOM handling Signed-off-by: Ralf W. Grosse-Kunstleve * revert(cuda.core): defer pinned host pool cleanup workaround Signed-off-by: Ralf W. Grosse-Kunstleve --------- Signed-off-by: Ralf W. Grosse-Kunstleve Co-authored-by: Ralf W. Grosse-Kunstleve --- cuda_core/tests/conftest.py | 23 +++- .../memory/test_init_cuda_collect_gate.py | 112 +++++++++++++++++- cuda_core/tests/test_memory.py | 2 + 3 files changed, 134 insertions(+), 3 deletions(-) diff --git a/cuda_core/tests/conftest.py b/cuda_core/tests/conftest.py index eeee15dff2ac..b667f862d481 100644 --- a/cuda_core/tests/conftest.py +++ b/cuda_core/tests/conftest.py @@ -244,6 +244,7 @@ def init_cuda(request): # live_at_setup stays None until the setup snapshot is recorded. device.set_current() live_at_setup = None + primary_error = None try: # Set option to avoid spin-waiting on synchronization. if int(os.environ.get("CUDA_CORE_TEST_BLOCKING_SYNC", 0)) != 0: @@ -275,6 +276,9 @@ def init_cuda(request): # not counted, so no cached-default bookkeeping is needed. live_at_setup = _live_resource_counts() yield device + except BaseException as exc: + primary_error = exc + raise finally: # pytest holds fixture values in item.funcargs (a pytest-internal dict) # until all teardown has run; we deliberately drop them so already @@ -298,8 +302,23 @@ def init_cuda(request): # With pytest-run-parallel this runs after worker join. This also runs # when setup raises, so an escalated leftover warning cannot leave the # context current. - driver.cuCtxSynchronize() - _ = _device_unset_current() + # The test wrapper may already have popped the calling thread's + # context; synchronize the fixture device's bound context explicitly. + # Keep the first failure primary; cleanup still runs for interrupts. + try: + device.sync() + except BaseException as exc: + if primary_error is None: + primary_error = exc + raise + primary_error.add_note(f"CUDA fixture synchronization failed: {type(exc).__name__}: {exc}") + finally: + try: + _ = _device_unset_current() + except BaseException as exc: + if primary_error is None: + raise + primary_error.add_note(f"CUDA fixture context pop failed: {type(exc).__name__}: {exc}") # After the cleanup, so an escalated warning cannot skip it. if live_after is not None and any(now < snap for now, snap in zip(live_after, live_at_setup)): released = tuple(s - n for s, n in zip(live_at_setup, live_after)) diff --git a/cuda_core/tests/memory/test_init_cuda_collect_gate.py b/cuda_core/tests/memory/test_init_cuda_collect_gate.py index 3455ee8e21f0..1f7122694e4a 100644 --- a/cuda_core/tests/memory/test_init_cuda_collect_gate.py +++ b/cuda_core/tests/memory/test_init_cuda_collect_gate.py @@ -33,7 +33,8 @@ UnreleasedMemoryResourceWarning, ) -from cuda.core._utils.cuda_utils import driver, handle_return +from cuda.core import Device +from cuda.core._utils.cuda_utils import CUDAError, driver, handle_return class _ScriptedCounts: @@ -250,3 +251,112 @@ def test_teardown_warns_on_baseline_release(request, monkeypatch): pytest.raises(StopIteration), ): next(gen) # teardown: live_after == (0, 0) -> baseline-release warning + + +@_THREAD_UNSAFE_MARKER +@pytest.mark.agent_authored(model="gpt-6") +@pytest.mark.parametrize("clear_current", [False, True]) +def test_teardown_synchronizes_fixture_context(request, monkeypatch, clear_current): + """Teardown works even after the test wrapper has popped the current context.""" + func = _init_cuda_func(request) + _patch_conftest_global(monkeypatch, func, "_mr_expected_live", None) + _patch_conftest_global(monkeypatch, func, "_live_resource_counts", _ScriptedCounts((0, 0))) + + saved = _pop_context_stack() + gen = func(_FakeRequest()) + try: + next(gen) + if clear_current: + handle_return(driver.cuCtxPopCurrent()) + assert current_context_handle() == 0 + _finish_teardown(gen) + assert current_context_handle() == 0 + finally: + gen.close() + _push_context_stack(saved) + + +@_THREAD_UNSAFE_MARKER +@pytest.mark.agent_authored(model="gpt-6") +def test_teardown_sync_failure_still_pops_context(request, monkeypatch): + """A synchronization error propagates without leaving the context current.""" + func = _init_cuda_func(request) + _patch_conftest_global(monkeypatch, func, "_mr_expected_live", None) + _patch_conftest_global(monkeypatch, func, "_live_resource_counts", _ScriptedCounts((0, 0))) + failure = CUDAError("injected synchronization failure") + + class FailingSyncDevice: + device_id = 0 + + def set_current(self): + Device(0).set_current() + + def sync(self): + raise failure + + _patch_conftest_global(monkeypatch, func, "Device", lambda _: FailingSyncDevice()) + saved = _pop_context_stack() + gen = func(_FakeRequest()) + try: + next(gen) + with pytest.raises(CUDAError) as excinfo: + next(gen) + assert excinfo.value is failure + assert current_context_handle() == 0 + finally: + gen.close() + _push_context_stack(saved) + + +@_THREAD_UNSAFE_MARKER +@pytest.mark.agent_authored(model="gpt-6") +@pytest.mark.parametrize( + "fail_setup, fail_sync, fail_pop", + [(True, True, True), (True, False, True), (True, True, False), (False, True, True), (False, False, True)], +) +@pytest.mark.parametrize("error_type", [RuntimeError, KeyboardInterrupt]) +def test_cleanup_preserves_first_failure(request, monkeypatch, fail_setup, fail_sync, fail_pop, error_type): + """Later cleanup errors annotate the first failure, and pop is always attempted.""" + func = _init_cuda_func(request) + _patch_conftest_global(monkeypatch, func, "_mr_expected_live", None) + monkeypatch.setenv("CUDA_CORE_TEST_BLOCKING_SYNC", "0") + setup_error = error_type("injected setup failure") + sync_error = error_type("injected synchronization failure") + pop_error = error_type("injected context pop failure") + state = {"current": False} + + class FakeDevice: + def set_current(self): + state["current"] = True + + def sync(self): + if fail_sync: + raise sync_error + + def counts(): + if fail_setup: + raise setup_error + return (0, 0) + + def pop(): + state["current"] = False + if fail_pop: + raise pop_error + + _patch_conftest_global(monkeypatch, func, "Device", lambda _: FakeDevice()) + _patch_conftest_global(monkeypatch, func, "_live_resource_counts", counts) + _patch_conftest_global(monkeypatch, func, "_device_unset_current", pop) + gen = func(_FakeRequest()) + if not fail_setup: + next(gen) + with pytest.raises(error_type) as excinfo: + next(gen) + expected = setup_error if fail_setup else sync_error if fail_sync else pop_error + assert excinfo.value is expected + assert not state["current"] + notes = getattr(expected, "__notes__", []) + assert len(notes) == int(fail_setup and fail_sync) + int(fail_pop and (fail_setup or fail_sync)) + if fail_setup and fail_sync: + assert any(str(sync_error) in note for note in notes) + if fail_pop and (fail_setup or fail_sync): + assert any(str(pop_error) in note for note in notes) diff --git a/cuda_core/tests/test_memory.py b/cuda_core/tests/test_memory.py index fbafb1b2207d..5d4aab75e420 100644 --- a/cuda_core/tests/test_memory.py +++ b/cuda_core/tests/test_memory.py @@ -1246,6 +1246,7 @@ def test_pinned_memory_resource_initialization(init_cuda): buffer.close() +@thread_unsafe_on_windows @pytest.mark.human_reviewed @pytest.mark.parametrize("pool", ["current", "new", "new_numa"]) def test_pinned_memory_resource_kernel_access(init_cuda, pool): @@ -2972,6 +2973,7 @@ def test_mempool_release_threshold_accepts_index_types(memory_resource_factory, mr.close() +@pytest.mark.thread_unsafe(reason="CUDA legacy-default-stream mempool teardown/sync race (gh-3350)") @pytest.mark.agent_authored(model="claude-opus-5-5") @pytest.mark.parametrize("kind", ["reserved", "used"]) def test_mempool_watermark_reset(memory_resource_factory, kind): From 0ce94362b0643db4e64a2e4113bad7d527d09f22 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Thu, 12 Nov 2026 21:24:56 -0800 Subject: [PATCH 38/85] [no-ci] ci: build and test local CUDA 12 bindings (#3317) * ci: build and test local CUDA 12 bindings Signed-off-by: Ralf W. Grosse-Kunstleve * docs: note the CUDA 12 wheel payload change Signed-off-by: Ralf W. Grosse-Kunstleve * Address migration review: simplify configuration and tooling Signed-off-by: Ralf W. Grosse-Kunstleve * Use retained CUDA 12 milestone for wheel builds Signed-off-by: Ralf W. Grosse-Kunstleve * ci: align maintenance cibuildwheel with the current builder --------- Signed-off-by: Ralf W. Grosse-Kunstleve --- .github/workflows/build-wheel.yml | 54 ++++++++- .github/workflows/ci.yml | 103 ++++++++++++++++++ .github/workflows/test-wheel-linux.yml | 30 ++++- .github/workflows/test-wheel-windows.yml | 30 ++++- ci/tools/env-vars | 19 +++- ci/tools/run-tests | 2 +- .../docs/source/release/12.X.Y-notes.rst | 8 ++ cuda_bindings_12/pyproject.toml | 21 ++++ 8 files changed, 248 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build-wheel.yml b/.github/workflows/build-wheel.yml index 12809f8d8ae7..a527e6b376a9 100644 --- a/.github/workflows/build-wheel.yml +++ b/.github/workflows/build-wheel.yml @@ -88,14 +88,14 @@ jobs: run: echo "::add-matcher::.github/matchers/compiler.json" - name: Install rapidsai/sccache - if: ${{ startsWith(inputs.host-platform, 'linux') && (env.BUILD_BINDINGS == 'true' || env.BUILD_CORE == 'true') }} + if: ${{ startsWith(inputs.host-platform, 'linux') && (env.BUILD_BINDINGS == 'true' || env.BUILD_CORE == 'true' || env.TEST_BINDINGS == 'true') }} uses: ./.github/actions/install-sccache # The runner only exposes these values to actions, not to `run:` steps or # the cibuildwheel container, so re-export them for sccache's GHA backend. # xref: https://github.com/orgs/community/discussions/42856#discussioncomment-7678867 - name: Adding addtional GHA cache-related env vars - if: ${{ env.BUILD_BINDINGS == 'true' || env.BUILD_CORE == 'true' }} + if: ${{ env.BUILD_BINDINGS == 'true' || env.BUILD_CORE == 'true' || env.TEST_BINDINGS == 'true' }} uses: actions/github-script@v9.0.0 with: script: | @@ -149,6 +149,9 @@ jobs: $env:Path += ";$((Get-Location).Path)\\$env:YQ_DIR" yq --version + - name: Install CI tool dependencies + run: python -m pip install -e ./ci + - name: Set environment variables env: CUDA_VER: ${{ inputs.cuda-version }} @@ -200,7 +203,7 @@ jobs: twine check --strict cuda_pathfinder/*.whl - name: Constrain builds to the local cuda.pathfinder wheel - if: ${{ env.BUILD_BINDINGS == 'true' }} + if: ${{ env.BUILD_BINDINGS == 'true' || env.TEST_BINDINGS == 'true' }} run: | pathfinder_wheels=(cuda_pathfinder/cuda_pathfinder-*.whl) test "${#pathfinder_wheels[@]}" -eq 1 @@ -237,7 +240,7 @@ jobs: output-dir: ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }} extras: uv python-path: ${{ steps.host-python.outputs.python-path }} - env: + env: &bindings-wheel-env CIBW_BUILD: ${{ env.CIBW_BUILD }} # build[uv]: same PEP 517 orchestration, with uv instead of pip. # extras: uv puts uv on PATH (required on Windows). @@ -530,7 +533,7 @@ jobs: # Note: This overwrites CUDA_PATH etc - name: Set up mini CTK - if: ${{ !inputs.single-cuda-major && (env.BUILD_CORE == 'true' || env.TEST_CORE == 'true') }} + if: ${{ !inputs.single-cuda-major && (env.BUILD_CORE == 'true' || env.TEST_CORE == 'true' || env.BUILD_BINDINGS == 'true' || env.TEST_BINDINGS == 'true') }} uses: ./.github/actions/fetch_ctk continue-on-error: false with: @@ -559,6 +562,47 @@ jobs: if: ${{ !inputs.single-cuda-major && env.BUILD_CORE == 'true' }} uses: ./.github/actions/install-gh-cli + - name: Build maintenance cuda.bindings wheel + if: ${{ !inputs.single-cuda-major && (env.BUILD_BINDINGS == 'true' || env.TEST_BINDINGS == 'true') }} + uses: pypa/cibuildwheel@f9b966cfadf4109556cadc5bb39ddb72d0ce664e # v4.3.5 + with: + package-dir: ./${{ env.MAINTENANCE_BINDINGS_ROOT }}/ + output-dir: ${{ env.MAINTENANCE_BINDINGS_ARTIFACTS_DIR }} + extras: uv + python-path: ${{ steps.host-python.outputs.python-path }} + env: *bindings-wheel-env + + - name: Check maintenance cuda.bindings wheel + if: ${{ !inputs.single-cuda-major && (env.BUILD_BINDINGS == 'true' || env.TEST_BINDINGS == 'true') }} + run: twine check --strict "${MAINTENANCE_BINDINGS_ARTIFACTS_DIR}"/*.whl + + - name: Upload maintenance cuda.bindings wheel + if: ${{ !inputs.single-cuda-major && (env.BUILD_BINDINGS == 'true' || env.TEST_BINDINGS == 'true') }} + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 + with: + name: ${{ env.MAINTENANCE_BINDINGS_ARTIFACT_NAME }} + path: ${{ env.MAINTENANCE_BINDINGS_ARTIFACTS_DIR }}/*.whl + if-no-files-found: error + + - name: Build maintenance cuda.bindings Cython tests + if: ${{ !inputs.single-cuda-major && env.TEST_BINDINGS == 'true' }} + run: | + pip uninstall -y cuda-bindings + bindings_wheels=("${MAINTENANCE_BINDINGS_ARTIFACTS_DIR}"/*.whl) + test "${#bindings_wheels[@]}" -eq 1 + python -m pip install "${bindings_wheels[0]}" --group "${MAINTENANCE_BINDINGS_ROOT}/pyproject.toml:test" + pushd "${MAINTENANCE_BINDINGS_CYTHON_TESTS_DIR}" + bash build_tests.sh + popd + + - name: Upload maintenance cuda.bindings Cython tests + if: ${{ !inputs.single-cuda-major && env.TEST_BINDINGS == 'true' }} + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 + with: + name: ${{ env.MAINTENANCE_BINDINGS_ARTIFACT_NAME }}-tests + path: ${{ env.MAINTENANCE_BINDINGS_CYTHON_TESTS_DIR }}/test_*${{ env.PY_EXT_SUFFIX }} + if-no-files-found: error + - name: Look up prior-branch cuda.bindings run ID id: prior-bindings if: ${{ !inputs.single-cuda-major && env.BUILD_CORE == 'true' }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c2da917fe52c..732f38df9616 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,14 +36,23 @@ jobs: WINDOWS_ARM64_SUPPORTED: ${{ steps.get-vars.outputs.windows_arm64_supported }} WINDOWS_ARM64_SINGLE_CUDA_MAJOR: ${{ steps.get-vars.outputs.windows_arm64_single_cuda_major }} PYTHON_SUPPORTED: ${{ steps.get-vars.outputs.python_supported }} + BINDINGS_CONFIG: ${{ steps.get-vars.outputs.bindings_config }} steps: - name: Checkout repository uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 1 + - name: Set up Python for CI tools + uses: ./.github/actions/setup-hardened-python + with: + python-version: "3.11" + - name: Install CI tool dependencies + run: python -m pip install -e ./ci - name: Get CUDA build versions id: get-vars run: | + bindings_config=$(python -m ci.tools.bindings_config) + echo "bindings_config=$bindings_config" >> "$GITHUB_OUTPUT" cuda_build_ver=$(yq '.cuda.build.version' ci/versions.yml) echo "cuda_build_ver=$cuda_build_ver" >> $GITHUB_OUTPUT @@ -623,6 +632,86 @@ jobs: nruns: ${{ (github.event_name == 'schedule' && 5) || 1}} workplan: ${{ needs.detect-changes.outputs.workplan }} + test-maintenance-bindings-linux-64: + name: Maintenance bindings (linux-64) + if: ${{ github.repository_owner == 'nvidia' && + !fromJSON(needs.should-skip.outputs.skip) && + !fromJSON(needs.should-skip.outputs.doc-only) && + fromJSON(needs.detect-changes.outputs.workplan).modules.bindings.needs_test && + fromJSON(needs.detect-changes.outputs.workplan).jobs.platforms.linux }} + permissions: + actions: read + contents: read + needs: + - ci-vars + - should-skip + - detect-changes + - build-linux-64 + secrets: inherit + uses: ./.github/workflows/test-wheel-linux.yml + with: + build-type: ${{ startsWith(github.ref_name, 'pull-request/') && 'pull-request' || (github.event_name == 'schedule' && 'nightly' || 'branch') }} + host-platform: linux-64 + build-ctk-ver: ${{ needs.ci-vars.outputs.CUDA_PREV_BUILD_VER }} + bindings-config: ${{ needs.ci-vars.outputs.BINDINGS_CONFIG }} + maintenance-bindings: true + nruns: ${{ (github.event_name == 'schedule' && 5) || 1 }} + workplan: ${{ needs.detect-changes.outputs.workplan }} + + test-maintenance-bindings-linux-aarch64: + name: Maintenance bindings (linux-aarch64) + if: ${{ github.repository_owner == 'nvidia' && + !fromJSON(needs.should-skip.outputs.skip) && + !fromJSON(needs.should-skip.outputs.doc-only) && + fromJSON(needs.detect-changes.outputs.workplan).modules.bindings.needs_test && + fromJSON(needs.detect-changes.outputs.workplan).jobs.platforms.linux }} + permissions: + actions: read + contents: read + needs: + - ci-vars + - should-skip + - detect-changes + - build-linux-64 + - build-linux-aarch64 + secrets: inherit + uses: ./.github/workflows/test-wheel-linux.yml + with: + build-type: ${{ startsWith(github.ref_name, 'pull-request/') && 'pull-request' || (github.event_name == 'schedule' && 'nightly' || 'branch') }} + host-platform: linux-aarch64 + build-ctk-ver: ${{ needs.ci-vars.outputs.CUDA_PREV_BUILD_VER }} + bindings-config: ${{ needs.ci-vars.outputs.BINDINGS_CONFIG }} + maintenance-bindings: true + nruns: ${{ (github.event_name == 'schedule' && 5) || 1 }} + workplan: ${{ needs.detect-changes.outputs.workplan }} + + test-maintenance-bindings-windows: + name: Maintenance bindings (win-64) + if: ${{ github.repository_owner == 'nvidia' && + !fromJSON(needs.should-skip.outputs.skip) && + !fromJSON(needs.should-skip.outputs.doc-only) && + fromJSON(needs.detect-changes.outputs.workplan).modules.bindings.needs_test && + fromJSON(needs.detect-changes.outputs.workplan).jobs.platforms.windows }} + permissions: + actions: read + contents: read + needs: + - ci-vars + - should-skip + - detect-changes + - build-linux-64 + - build-windows + secrets: inherit + uses: ./.github/workflows/test-wheel-windows.yml + with: + build-type: ${{ startsWith(github.ref_name, 'pull-request/') && 'pull-request' || (github.event_name == 'schedule' && 'nightly' || 'branch') }} + host-platform: win-64 + build-ctk-ver: ${{ needs.ci-vars.outputs.CUDA_PREV_BUILD_VER }} + bindings-config: ${{ needs.ci-vars.outputs.BINDINGS_CONFIG }} + maintenance-bindings: true + nruns: ${{ (github.event_name == 'schedule' && 5) || 1 }} + workplan: ${{ needs.detect-changes.outputs.workplan }} + doc: name: Docs if: ${{ github.repository_owner == 'nvidia' }} @@ -657,6 +746,9 @@ jobs: - test-linux-64 - test-linux-aarch64 - test-windows + - test-maintenance-bindings-linux-64 + - test-maintenance-bindings-linux-aarch64 + - test-maintenance-bindings-windows - api-check-core-vs-release - api-check-core-vs-base - doc @@ -684,6 +776,7 @@ jobs: windows_selected="${{ needs.detect-changes.outputs.workplan && fromJSON(needs.detect-changes.outputs.workplan).jobs.platforms.windows || false }}" windows_arm64_supported="${{ needs.ci-vars.outputs.WINDOWS_ARM64_SUPPORTED }}" build_selected="${{ needs.detect-changes.outputs.workplan && fromJSON(needs.detect-changes.outputs.workplan).jobs.sdist_tests || false }}" + maintenance_bindings_selected="${{ needs.detect-changes.outputs.workplan && fromJSON(needs.detect-changes.outputs.workplan).modules.bindings.needs_test || false }}" run_core_api_check="${{ needs.detect-changes.outputs.workplan && fromJSON(needs.detect-changes.outputs.workplan).jobs.core_api_checks || false }}" is_pr="${{ startsWith(github.ref_name, 'pull-request/') }}" status="success" @@ -734,6 +827,16 @@ jobs: check_result "test-linux-aarch64" "$linux_expected" check_result "test-windows" "$windows_expected" + maintenance_linux_expected="skipped" + maintenance_windows_expected="skipped" + if [[ "$maintenance_bindings_selected" == "true" ]]; then + maintenance_linux_expected="$linux_expected" + maintenance_windows_expected="$windows_expected" + fi + check_result "test-maintenance-bindings-linux-64" "$maintenance_linux_expected" + check_result "test-maintenance-bindings-linux-aarch64" "$maintenance_linux_expected" + check_result "test-maintenance-bindings-windows" "$maintenance_windows_expected" + # API compatibility checks run for cuda_core source changes and for # conservative full runs when reusable base artifacts are unavailable. expected="skipped" diff --git a/.github/workflows/test-wheel-linux.yml b/.github/workflows/test-wheel-linux.yml index 805deb757e0d..b77e7e619c6e 100644 --- a/.github/workflows/test-wheel-linux.yml +++ b/.github/workflows/test-wheel-linux.yml @@ -16,6 +16,14 @@ on: build-ctk-ver: type: string required: true + bindings-config: + description: Normalized bindings registry for maintenance-only tests. + type: string + default: '' + maintenance-bindings: + description: Test this run's maintenance bindings wheel and Cython extensions. + type: boolean + default: false matrix_filter: type: string default: "." @@ -55,6 +63,8 @@ jobs: runs-on: ubuntu-latest env: BUILD_TYPE: ${{ inputs.build-type }} + BINDINGS_CONFIG: ${{ inputs.bindings-config }} + BINDINGS_ONLY: ${{ inputs.maintenance-bindings }} ARCH: ${{ (inputs.host-platform == 'linux-64' && 'amd64') || (inputs.host-platform == 'linux-aarch64' && 'arm64') }} outputs: @@ -83,6 +93,14 @@ jobs: # Read base matrix from YAML file for the specific architecture TEST_MATRIX=$(yq -o json ".linux[\"${MATRIX_TYPE}\"] | map(select(.ARCH == \"${ARCH}\"))" ci/test-matrix.yml) + if [[ "$BINDINGS_ONLY" == "true" ]]; then + TEST_MATRIX=$(jq -c --argjson config "$BINDINGS_CONFIG" ' + ($config.package_roots[] | select(.release_status == "maintenance")) as $package + | map(select(.CUDA_VER == $package.toolkit_version) + | . + {BINDINGS_ROOT: $package.package_root}) + ' <<< "$TEST_MATRIX") + fi + # Apply matrix filter; reject custom DRIVER + FLAVOR=wsl (the # in-container driver swap doesn't work under WSL); add a # RUNNER_DRIVER field that maps any custom version back to @@ -99,10 +117,10 @@ jobs: test: env: - TEST_PATHFINDER: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.pathfinder.needs_test }} - TEST_BINDINGS: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.bindings.needs_test }} - TEST_CORE: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.core.needs_test }} - TEST_PYTHON: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.python.needs_test }} + TEST_PATHFINDER: ${{ !inputs.maintenance-bindings && (inputs.workplan == '' || fromJSON(inputs.workplan).modules.pathfinder.needs_test) }} + TEST_BINDINGS: ${{ inputs.maintenance-bindings || inputs.workplan == '' || fromJSON(inputs.workplan).modules.bindings.needs_test }} + TEST_CORE: ${{ !inputs.maintenance-bindings && (inputs.workplan == '' || fromJSON(inputs.workplan).modules.core.needs_test) }} + TEST_PYTHON: ${{ !inputs.maintenance-bindings && (inputs.workplan == '' || fromJSON(inputs.workplan).modules.python.needs_test) }} name: Python ${{ matrix.PY_VER }}, CUDA ${{ matrix.CUDA_VER }} (${{ (matrix.LOCAL_CTK == '1' && 'local') || 'wheels' }}), GPU ${{ matrix.GPU }}${{ matrix.GPU_COUNT != '1' && format(' (x{0})', matrix.GPU_COUNT) || '' }}${{ matrix.FLAVOR && format(', {0}', matrix.FLAVOR) || '' }}${{ matrix.ENV.TORCH_VER && format(', {0}+{1}', matrix.ENV.TORCH_VER, matrix.ENV.TORCH_CUDA) || '' }}${{ matrix.ENV.MODE == 'nightly-numba-cuda' && ', latest' || '' }} timeout-minutes: 60 needs: compute-matrix @@ -173,7 +191,9 @@ jobs: - name: Set environment variables env: - BUILD_CUDA_VER: ${{ inputs.build-ctk-ver }} + BUILD_CUDA_VER: ${{ inputs.maintenance-bindings && matrix.CUDA_VER || inputs.build-ctk-ver }} + CUDA_BINDINGS_ROOT: ${{ matrix.BINDINGS_ROOT || 'cuda_bindings_13' }} + BINDINGS_ARTIFACT_PREFIX: ${{ inputs.maintenance-bindings && 'maintenance-bindings' || 'cuda-bindings' }} CUDA_VER: ${{ matrix.CUDA_VER }} HOST_PLATFORM: ${{ inputs.host-platform }} LOCAL_CTK: ${{ matrix.LOCAL_CTK }} diff --git a/.github/workflows/test-wheel-windows.yml b/.github/workflows/test-wheel-windows.yml index b6f2a2010e7b..61b2f1efb96b 100644 --- a/.github/workflows/test-wheel-windows.yml +++ b/.github/workflows/test-wheel-windows.yml @@ -16,6 +16,14 @@ on: build-ctk-ver: type: string required: true + bindings-config: + description: Normalized bindings registry for maintenance-only tests. + type: string + default: '' + maintenance-bindings: + description: Test this run's maintenance bindings wheel and Cython extensions. + type: boolean + default: false matrix_filter: type: string default: "." @@ -54,6 +62,8 @@ jobs: shell: bash --noprofile --norc -xeuo pipefail {0} env: BUILD_TYPE: ${{ inputs.build-type }} + BINDINGS_CONFIG: ${{ inputs.bindings-config }} + BINDINGS_ONLY: ${{ inputs.maintenance-bindings }} ARCH: ${{ (inputs.host-platform == 'win-64' && 'amd64') }} outputs: MATRIX: ${{ steps.compute-matrix.outputs.MATRIX }} @@ -79,6 +89,14 @@ jobs: # Read base matrix from YAML file for the specific architecture TEST_MATRIX=$(yq -o json ".windows[\"${MATRIX_TYPE}\"] | map(select(.ARCH == \"${ARCH}\"))" ci/test-matrix.yml) + if [[ "$BINDINGS_ONLY" == "true" ]]; then + TEST_MATRIX=$(jq -c --argjson config "$BINDINGS_CONFIG" ' + ($config.package_roots[] | select(.release_status == "maintenance")) as $package + | map(select(.CUDA_VER == $package.toolkit_version) + | . + {BINDINGS_ROOT: $package.package_root}) + ' <<< "$TEST_MATRIX") + fi + # Apply matrix filter; add a RUNNER_DRIVER field that maps any # custom DRIVER version back to 'latest' (install_gpu_driver.ps1 # swaps the driver itself, so the runner must be the one that @@ -89,10 +107,10 @@ jobs: test: env: - TEST_PATHFINDER: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.pathfinder.needs_test }} - TEST_BINDINGS: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.bindings.needs_test }} - TEST_CORE: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.core.needs_test }} - TEST_PYTHON: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.python.needs_test }} + TEST_PATHFINDER: ${{ !inputs.maintenance-bindings && (inputs.workplan == '' || fromJSON(inputs.workplan).modules.pathfinder.needs_test) }} + TEST_BINDINGS: ${{ inputs.maintenance-bindings || inputs.workplan == '' || fromJSON(inputs.workplan).modules.bindings.needs_test }} + TEST_CORE: ${{ !inputs.maintenance-bindings && (inputs.workplan == '' || fromJSON(inputs.workplan).modules.core.needs_test) }} + TEST_PYTHON: ${{ !inputs.maintenance-bindings && (inputs.workplan == '' || fromJSON(inputs.workplan).modules.python.needs_test) }} name: Python ${{ matrix.PY_VER }}, CUDA ${{ matrix.CUDA_VER }} (${{ (matrix.LOCAL_CTK == '1' && 'local') || 'wheels' }}), GPU ${{ matrix.GPU }}${{ matrix.GPU_COUNT != '1' && format(' (x{0})', matrix.GPU_COUNT) || '' }} (${{ matrix.DRIVER_MODE }})${{ matrix.ENV.TORCH_VER && format(', {0}+{1}', matrix.ENV.TORCH_VER, matrix.ENV.TORCH_CUDA) || '' }}${{ matrix.ENV.MODE == 'nightly-numba-cuda' && ', latest' || '' }} timeout-minutes: 60 # The build stage could fail but we want the CI to keep moving. @@ -157,7 +175,9 @@ jobs: - name: Set environment variables env: - BUILD_CUDA_VER: ${{ inputs.build-ctk-ver }} + BUILD_CUDA_VER: ${{ inputs.maintenance-bindings && matrix.CUDA_VER || inputs.build-ctk-ver }} + CUDA_BINDINGS_ROOT: ${{ matrix.BINDINGS_ROOT || 'cuda_bindings_13' }} + BINDINGS_ARTIFACT_PREFIX: ${{ inputs.maintenance-bindings && 'maintenance-bindings' || 'cuda-bindings' }} CUDA_VER: ${{ matrix.CUDA_VER }} HOST_PLATFORM: ${{ inputs.host-platform }} LOCAL_CTK: ${{ matrix.LOCAL_CTK }} diff --git a/ci/tools/env-vars b/ci/tools/env-vars index 9946ad549de4..66b401e88872 100755 --- a/ci/tools/env-vars +++ b/ci/tools/env-vars @@ -16,6 +16,8 @@ if [[ ${#} -ne 1 ]]; then fi PYTHON_VERSION_FORMATTED=$(echo "${PY_VER}" | tr -d '.') +CUDA_BINDINGS_ROOT="${CUDA_BINDINGS_ROOT:-cuda_bindings_13}" +BINDINGS_ARTIFACT_PREFIX="${BINDINGS_ARTIFACT_PREFIX:-cuda-bindings}" if [[ "${HOST_PLATFORM}" == linux* ]]; then REPO_DIR=$(pwd) @@ -56,10 +58,20 @@ if [[ "${1}" == "build" ]]; then echo "BUILD_CUDA_MAJOR=${BUILD_CUDA_MAJOR}" >> $GITHUB_ENV echo "BUILD_PREV_CUDA_MAJOR=$((${BUILD_CUDA_MAJOR} - 1))" >> $GITHUB_ENV CUDA_BINDINGS_ARTIFACT_BASENAME="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda${CUDA_VER}-${HOST_PLATFORM}" + maintenance_package=$(python -m ci.tools.bindings_config --release-status maintenance) + maintenance_root=$(jq -r '.package_root' <<< "$maintenance_package") + maintenance_version=$(jq -r '.toolkit_version' <<< "$maintenance_package") + { + echo "MAINTENANCE_BINDINGS_ROOT=${maintenance_root}" + echo "MAINTENANCE_CUDA_VERSION=${maintenance_version}" + echo "MAINTENANCE_BINDINGS_ARTIFACTS_DIR=$(realpath "${REPO_DIR}/${maintenance_root}/dist")" + echo "MAINTENANCE_BINDINGS_CYTHON_TESTS_DIR=$(realpath "${REPO_DIR}/${maintenance_root}/tests/cython")" + echo "MAINTENANCE_BINDINGS_ARTIFACT_NAME=maintenance-bindings-python${PYTHON_VERSION_FORMATTED}-cuda${maintenance_version}-${HOST_PLATFORM}-${SHA}" + } >> "$GITHUB_ENV" elif [[ "${1}" == "test" ]]; then BUILD_CUDA_MAJOR="$(cut -d '.' -f 1 <<< ${BUILD_CUDA_VER})" TEST_CUDA_MAJOR="$(cut -d '.' -f 1 <<< ${CUDA_VER})" - CUDA_BINDINGS_ARTIFACT_BASENAME="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda${BUILD_CUDA_VER}-${HOST_PLATFORM}" + CUDA_BINDINGS_ARTIFACT_BASENAME="${BINDINGS_ARTIFACT_PREFIX}-python${PYTHON_VERSION_FORMATTED}-cuda${BUILD_CUDA_VER}-${HOST_PLATFORM}" # BINDINGS_SOURCE controls which cuda-bindings to install at test time: # main — use the just-built bindings wheel from this CI run @@ -137,8 +149,9 @@ elif [[ "${1}" == "test" ]]; then fi { + echo "CUDA_BINDINGS_ROOT=${CUDA_BINDINGS_ROOT}" echo "CUDA_BINDINGS_ARTIFACT_BASENAME=${CUDA_BINDINGS_ARTIFACT_BASENAME}" echo "CUDA_BINDINGS_ARTIFACT_NAME=${CUDA_BINDINGS_ARTIFACT_BASENAME}-${SHA}" - echo "CUDA_BINDINGS_ARTIFACTS_DIR=$(realpath "${REPO_DIR}/cuda_bindings_13/dist")" - echo "CUDA_BINDINGS_CYTHON_TESTS_DIR=$(realpath "${REPO_DIR}/cuda_bindings_13/tests/cython")" + echo "CUDA_BINDINGS_ARTIFACTS_DIR=$(realpath "${REPO_DIR}/${CUDA_BINDINGS_ROOT}/dist")" + echo "CUDA_BINDINGS_CYTHON_TESTS_DIR=$(realpath "${REPO_DIR}/${CUDA_BINDINGS_ROOT}/tests/cython")" } >> $GITHUB_ENV diff --git a/ci/tools/run-tests b/ci/tools/run-tests index 68fe5768debf..3b3576b749a0 100755 --- a/ci/tools/run-tests +++ b/ci/tools/run-tests @@ -68,7 +68,7 @@ if [[ "${test_module}" == "pathfinder" ]]; then popd elif [[ "${test_module}" == "bindings" ]]; then echo "Installing bindings wheel" - pushd ./cuda_bindings_13 + pushd "./${CUDA_BINDINGS_ROOT:-cuda_bindings_13}" if [[ "${LOCAL_CTK}" == 1 ]]; then pip install "${CUDA_BINDINGS_ARTIFACTS_DIR}"/*.whl --group test "${TEST_FT_GROUP[@]}" else diff --git a/cuda_bindings_12/docs/source/release/12.X.Y-notes.rst b/cuda_bindings_12/docs/source/release/12.X.Y-notes.rst index 8ab86396290e..74d8eca44239 100644 --- a/cuda_bindings_12/docs/source/release/12.X.Y-notes.rst +++ b/cuda_bindings_12/docs/source/release/12.X.Y-notes.rst @@ -25,3 +25,11 @@ Bug Fixes call and free the buffers allocated for getters. * ``get_cuda_native_handle`` preserves a ``KeyError`` raised inside a registered getter instead of reporting an unknown type. + +Packaging +--------- + +* Wheels omit ``.pyx`` implementation sources and ``.in`` generation templates, + following the CUDA 13 packaging policy. Cython declarations and includes + (``.pxd`` and ``.pxi``), and required headers, remain available for downstream + Cython builds. Source distributions retain the inputs needed to build the package. diff --git a/cuda_bindings_12/pyproject.toml b/cuda_bindings_12/pyproject.toml index 81b423eec251..d281a749b597 100644 --- a/cuda_bindings_12/pyproject.toml +++ b/cuda_bindings_12/pyproject.toml @@ -78,9 +78,30 @@ Documentation = "https://nvidia.github.io/cuda-python/" [tool.setuptools.packages.find] include = ["cuda*"] +# Keep implementation sources and generation templates in sdists, while wheels +# retain Cython declarations/includes and required headers for downstream builds. +[tool.setuptools] +include-package-data = false + +[tool.setuptools.package-data] +"*" = ["*.pxd", "*.pxi"] +"cuda.bindings._bindings" = ["*.h"] +"cuda.bindings._lib" = ["*.h"] + [tool.setuptools.dynamic] readme = { file = ["DESCRIPTION.rst"], content-type = "text/x-rst" } +[tool.cibuildwheel] +skip = "*-musllinux_*" +build-verbosity = 1 + +[tool.cibuildwheel.linux] +archs = "native" + +[tool.cibuildwheel.windows] +archs = "AMD64" +repair-wheel-command = "delvewheel repair --namespace-pkg cuda -w {dest_dir} {wheel}" + [tool.ruff] line-length = 120 From 677bde74d8bc834527d169286c9f2ee82aa6eaa0 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Thu, 12 Nov 2026 21:24:57 -0800 Subject: [PATCH 39/85] [no-ci] ci: use same-run CUDA 12 bindings for Core and metapackages (#3318) * ci: use same-run CUDA 12 bindings for Core and metapackages Signed-off-by: Ralf W. Grosse-Kunstleve * Address migration review: simplify configuration and tooling Signed-off-by: Ralf W. Grosse-Kunstleve * Fix tagged metapackage builds and preserve toolkit patch coverage Signed-off-by: Ralf W. Grosse-Kunstleve * Use retained CUDA 12 milestone for source distributions Signed-off-by: Ralf W. Grosse-Kunstleve --------- Signed-off-by: Ralf W. Grosse-Kunstleve --- .github/workflows/build-wheel.yml | 108 +++++++++++++-------- .github/workflows/ci.yml | 115 ++++------------------- .github/workflows/test-sdist-linux.yml | 23 +++-- .github/workflows/test-sdist-windows.yml | 23 +++-- .github/workflows/test-wheel-linux.yml | 41 ++++---- .github/workflows/test-wheel-windows.yml | 41 ++++---- ci/tools/env-vars | 12 ++- ci/tools/tests/test_bindings_config.py | 8 +- ci/tools/tests/test_cuda_python_setup.py | 71 ++++++++++++++ cuda_core/docs/source/install.rst | 8 +- cuda_python/AGENTS.md | 19 ++-- cuda_python/docs/README.md | 6 +- cuda_python/pyproject.toml | 9 +- cuda_python/setup.py | 73 +++++++++++--- 14 files changed, 333 insertions(+), 224 deletions(-) create mode 100644 ci/tools/tests/test_cuda_python_setup.py diff --git a/.github/workflows/build-wheel.yml b/.github/workflows/build-wheel.yml index a527e6b376a9..84a2022ebacd 100644 --- a/.github/workflows/build-wheel.yml +++ b/.github/workflows/build-wheel.yml @@ -46,6 +46,16 @@ jobs: BUILD_PYTHON: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.python.needs_build }} TEST_BINDINGS: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.bindings.needs_test }} TEST_CORE: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.core.needs_test }} + TEST_PYTHON: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.python.needs_test }} + BUILD_MAINTENANCE_BINDINGS: >- + ${{ !inputs.single-cuda-major && + (inputs.workplan == '' || + fromJSON(inputs.workplan).modules.bindings.needs_build || + fromJSON(inputs.workplan).modules.bindings.needs_test || + fromJSON(inputs.workplan).modules.core.needs_build || + fromJSON(inputs.workplan).modules.core.needs_test || + fromJSON(inputs.workplan).modules.python.needs_build || + fromJSON(inputs.workplan).modules.python.needs_test) }} BASELINE_RUN_ID: ${{ inputs.workplan != '' && fromJSON(inputs.workplan).baseline.run_id || '' }} BASELINE_SHA: ${{ inputs.workplan != '' && fromJSON(inputs.workplan).baseline.sha || '' }} strategy: @@ -88,14 +98,14 @@ jobs: run: echo "::add-matcher::.github/matchers/compiler.json" - name: Install rapidsai/sccache - if: ${{ startsWith(inputs.host-platform, 'linux') && (env.BUILD_BINDINGS == 'true' || env.BUILD_CORE == 'true' || env.TEST_BINDINGS == 'true') }} + if: ${{ startsWith(inputs.host-platform, 'linux') && (env.BUILD_BINDINGS == 'true' || env.BUILD_CORE == 'true' || env.BUILD_MAINTENANCE_BINDINGS == 'true') }} uses: ./.github/actions/install-sccache # The runner only exposes these values to actions, not to `run:` steps or # the cibuildwheel container, so re-export them for sccache's GHA backend. # xref: https://github.com/orgs/community/discussions/42856#discussioncomment-7678867 - name: Adding addtional GHA cache-related env vars - if: ${{ env.BUILD_BINDINGS == 'true' || env.BUILD_CORE == 'true' || env.TEST_BINDINGS == 'true' }} + if: ${{ env.BUILD_BINDINGS == 'true' || env.BUILD_CORE == 'true' || env.BUILD_MAINTENANCE_BINDINGS == 'true' }} uses: actions/github-script@v9.0.0 with: script: | @@ -203,7 +213,7 @@ jobs: twine check --strict cuda_pathfinder/*.whl - name: Constrain builds to the local cuda.pathfinder wheel - if: ${{ env.BUILD_BINDINGS == 'true' || env.TEST_BINDINGS == 'true' }} + if: ${{ env.BUILD_BINDINGS == 'true' || env.BUILD_MAINTENANCE_BINDINGS == 'true' }} run: | pathfinder_wheels=(cuda_pathfinder/cuda_pathfinder-*.whl) test "${#pathfinder_wheels[@]}" -eq 1 @@ -419,6 +429,23 @@ jobs: run-id: ${{ env.BASELINE_RUN_ID }} # We only need/want a single pure python wheel, pick linux-64 index 0. + - name: Build and check maintenance cuda-python wheel + if: ${{ !inputs.single-cuda-major && (env.BUILD_PYTHON == 'true' || env.TEST_PYTHON == 'true') && strategy.job-index == 0 && inputs.host-platform == 'linux-64' }} + run: | + pushd cuda_python + CUDA_PYTHON_BUILD_MAJOR="${MAINTENANCE_CUDA_MAJOR}" \ + pip wheel -v --no-deps --wheel-dir "dist/cu${MAINTENANCE_CUDA_MAJOR}" . + twine check --strict "dist/cu${MAINTENANCE_CUDA_MAJOR}"/*.whl + popd + + - name: Upload maintenance cuda-python wheel + if: ${{ !inputs.single-cuda-major && (env.BUILD_PYTHON == 'true' || env.TEST_PYTHON == 'true') && strategy.job-index == 0 && inputs.host-platform == 'linux-64' }} + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 + with: + name: maintenance-python-wheel + path: cuda_python/dist/cu${{ env.MAINTENANCE_CUDA_MAJOR }}/*.whl + if-no-files-found: error + - name: Build and check cuda-python wheel if: ${{ env.BUILD_PYTHON == 'true' && strategy.job-index == 0 && inputs.host-platform == 'linux-64' }} run: | @@ -533,7 +560,7 @@ jobs: # Note: This overwrites CUDA_PATH etc - name: Set up mini CTK - if: ${{ !inputs.single-cuda-major && (env.BUILD_CORE == 'true' || env.TEST_CORE == 'true' || env.BUILD_BINDINGS == 'true' || env.TEST_BINDINGS == 'true') }} + if: ${{ !inputs.single-cuda-major && (env.BUILD_CORE == 'true' || env.TEST_CORE == 'true' || env.BUILD_MAINTENANCE_BINDINGS == 'true') }} uses: ./.github/actions/fetch_ctk continue-on-error: false with: @@ -558,12 +585,8 @@ jobs: ${{ env.CUDA_CORE_TEST_BINARIES_DIR }}/*.lib if-no-files-found: error - - name: Install GitHub CLI - if: ${{ !inputs.single-cuda-major && env.BUILD_CORE == 'true' }} - uses: ./.github/actions/install-gh-cli - - name: Build maintenance cuda.bindings wheel - if: ${{ !inputs.single-cuda-major && (env.BUILD_BINDINGS == 'true' || env.TEST_BINDINGS == 'true') }} + if: ${{ env.BUILD_MAINTENANCE_BINDINGS == 'true' }} uses: pypa/cibuildwheel@f9b966cfadf4109556cadc5bb39ddb72d0ce664e # v4.3.5 with: package-dir: ./${{ env.MAINTENANCE_BINDINGS_ROOT }}/ @@ -573,11 +596,11 @@ jobs: env: *bindings-wheel-env - name: Check maintenance cuda.bindings wheel - if: ${{ !inputs.single-cuda-major && (env.BUILD_BINDINGS == 'true' || env.TEST_BINDINGS == 'true') }} + if: ${{ env.BUILD_MAINTENANCE_BINDINGS == 'true' }} run: twine check --strict "${MAINTENANCE_BINDINGS_ARTIFACTS_DIR}"/*.whl - name: Upload maintenance cuda.bindings wheel - if: ${{ !inputs.single-cuda-major && (env.BUILD_BINDINGS == 'true' || env.TEST_BINDINGS == 'true') }} + if: ${{ env.BUILD_MAINTENANCE_BINDINGS == 'true' }} uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: ${{ env.MAINTENANCE_BINDINGS_ARTIFACT_NAME }} @@ -603,36 +626,11 @@ jobs: path: ${{ env.MAINTENANCE_BINDINGS_CYTHON_TESTS_DIR }}/test_*${{ env.PY_EXT_SUFFIX }} if-no-files-found: error - - name: Look up prior-branch cuda.bindings run ID - id: prior-bindings - if: ${{ !inputs.single-cuda-major && env.BUILD_CORE == 'true' }} - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - OLD_BRANCH=$(yq '.backport_branch' ci/versions.yml) - OLD_ARTIFACT_PATTERN="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda*-${{ inputs.host-platform }}-*[0-9a-f]" - LATEST_PRIOR_RUN_ID=$(./ci/tools/lookup-run-id \ - --branch "${OLD_BRANCH}" \ - --artifact "${OLD_ARTIFACT_PATTERN}" \ - NVIDIA/cuda-python "CI") - echo "run-id=${LATEST_PRIOR_RUN_ID}" >> "${GITHUB_OUTPUT}" - echo "artifact-pattern=${OLD_ARTIFACT_PATTERN}" >> "${GITHUB_OUTPUT}" - - - name: Download prior-branch cuda.bindings build artifacts - if: ${{ !inputs.single-cuda-major && env.BUILD_CORE == 'true' }} - uses: $/.github/actions/download-artifact-retry - with: - pattern: ${{ steps.prior-bindings.outputs.artifact-pattern }} - merge-multiple: "true" - path: cuda_bindings_13/dist-prev - run-id: ${{ steps.prior-bindings.outputs.run-id }} - github-token: ${{ secrets.GITHUB_TOKEN }} - - - name: Constrain previous cuda.core to the downloaded cuda.bindings wheel + - name: Constrain maintenance cuda.core to the same-run cuda.bindings wheel if: ${{ !inputs.single-cuda-major && env.BUILD_CORE == 'true' }} run: | pathfinder_wheels=(cuda_pathfinder/cuda_pathfinder-*.whl) - bindings_wheels=(cuda_bindings_13/dist-prev/cuda_bindings-"${BUILD_PREV_CUDA_MAJOR}".*.whl) + bindings_wheels=("${MAINTENANCE_BINDINGS_ARTIFACTS_DIR}"/cuda_bindings-"${MAINTENANCE_CUDA_MAJOR}".*.whl) test "${#pathfinder_wheels[@]}" -eq 1 test "${#bindings_wheels[@]}" -eq 1 test -f "${pathfinder_wheels[0]}" @@ -726,6 +724,40 @@ jobs: ls -lahR ${{ env.CUDA_CORE_ARTIFACTS_DIR }} + - name: Build maintenance cuda.core Cython tests + if: ${{ !inputs.single-cuda-major && env.TEST_CORE == 'true' }} + run: | + # The current package's test extensions were built in this same source tree. + # Remove generated outputs so Cython and the compiler cannot reuse them. + find "${{ env.CUDA_CORE_CYTHON_TESTS_DIR }}" -maxdepth 1 -type f \ + \( -name 'test_*.cpp' -o -name 'test_*.so' -o -name 'test_*.pyd' \) -delete + if [[ -d "${{ env.CUDA_CORE_CYTHON_TESTS_DIR }}/build" ]]; then + find "${{ env.CUDA_CORE_CYTHON_TESTS_DIR }}/build" -type f -delete + fi + pip uninstall -y cuda-bindings cuda-core + pip install ${{ env.MAINTENANCE_BINDINGS_ARTIFACTS_DIR }}/*.whl + if ${{ env.BUILD_CORE == 'true' }}; then + core_wheel=$(find "${{ env.CUDA_CORE_ARTIFACTS_DIR }}/cu${MAINTENANCE_CUDA_MAJOR}" -maxdepth 1 -type f -name '*.whl' -print -quit) + else + core_wheel=$(find "${{ env.CUDA_CORE_ARTIFACTS_DIR }}" -maxdepth 1 -type f -name '*.whl' -print -quit) + fi + if [[ -z "${core_wheel}" ]]; then + echo "No cuda.core wheel found" >&2 + exit 1 + fi + pip install "${core_wheel}" --group ./cuda_core/pyproject.toml:test + pushd ${{ env.CUDA_CORE_CYTHON_TESTS_DIR }} + bash build_tests.sh + popd + + - name: Upload maintenance cuda.core Cython tests + if: ${{ !inputs.single-cuda-major && env.TEST_CORE == 'true' }} + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 + with: + name: ${{ env.CUDA_CORE_ARTIFACT_NAME }}-cu${{ env.MAINTENANCE_CUDA_MAJOR }}-tests + path: ${{ env.CUDA_CORE_CYTHON_TESTS_DIR }}/test_*${{ env.PY_EXT_SUFFIX }} + if-no-files-found: error + - name: Merge cuda.core wheels if: ${{ !inputs.single-cuda-major && env.BUILD_CORE == 'true' }} run: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 732f38df9616..a61303cdd82d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -499,6 +499,10 @@ jobs: # - host-platform value # - uses: (test-sdist-linux.yml vs test-sdist-windows.yml) test-sdist-linux: + strategy: + fail-fast: false + matrix: + package: ${{ fromJSON(needs.ci-vars.outputs.BINDINGS_CONFIG).package_roots }} needs: - ci-vars - should-skip @@ -516,11 +520,15 @@ jobs: uses: ./.github/workflows/test-sdist-linux.yml with: host-platform: linux-64 - cuda-version: ${{ needs.ci-vars.outputs.CUDA_BUILD_VER }} + bindings-package: ${{ toJSON(matrix.package) }} workplan: ${{ needs.detect-changes.outputs.workplan }} # See test-sdist-linux for why sdist test jobs are split by platform. test-sdist-windows: + strategy: + fail-fast: false + matrix: + package: ${{ fromJSON(needs.ci-vars.outputs.BINDINGS_CONFIG).package_roots }} needs: - ci-vars - should-skip @@ -539,7 +547,7 @@ jobs: uses: ./.github/workflows/test-sdist-windows.yml with: host-platform: win-64 - cuda-version: ${{ needs.ci-vars.outputs.CUDA_BUILD_VER }} + bindings-package: ${{ toJSON(matrix.package) }} workplan: ${{ needs.detect-changes.outputs.workplan }} # NOTE: Test jobs are split by platform for the same reason as build jobs (see @@ -568,9 +576,10 @@ jobs: secrets: inherit uses: ./.github/workflows/test-wheel-linux.yml with: - build-type: pull-request + build-type: ${{ startsWith(github.ref_name, 'pull-request/') && 'pull-request' || (github.event_name == 'schedule' && 'nightly' || 'branch') }} host-platform: ${{ matrix.host-platform }} build-ctk-ver: ${{ needs.ci-vars.outputs.CUDA_BUILD_VER }} + bindings-config: ${{ needs.ci-vars.outputs.BINDINGS_CONFIG }} nruns: ${{ (github.event_name == 'schedule' && 5) || 1}} workplan: ${{ needs.detect-changes.outputs.workplan }} @@ -597,9 +606,10 @@ jobs: secrets: inherit uses: ./.github/workflows/test-wheel-linux.yml with: - build-type: pull-request + build-type: ${{ startsWith(github.ref_name, 'pull-request/') && 'pull-request' || (github.event_name == 'schedule' && 'nightly' || 'branch') }} host-platform: ${{ matrix.host-platform }} build-ctk-ver: ${{ needs.ci-vars.outputs.CUDA_BUILD_VER }} + bindings-config: ${{ needs.ci-vars.outputs.BINDINGS_CONFIG }} nruns: ${{ (github.event_name == 'schedule' && 5) || 1}} workplan: ${{ needs.detect-changes.outputs.workplan }} @@ -626,90 +636,11 @@ jobs: secrets: inherit uses: ./.github/workflows/test-wheel-windows.yml with: - build-type: pull-request + build-type: ${{ startsWith(github.ref_name, 'pull-request/') && 'pull-request' || (github.event_name == 'schedule' && 'nightly' || 'branch') }} host-platform: ${{ matrix.host-platform }} build-ctk-ver: ${{ needs.ci-vars.outputs.CUDA_BUILD_VER }} - nruns: ${{ (github.event_name == 'schedule' && 5) || 1}} - workplan: ${{ needs.detect-changes.outputs.workplan }} - - test-maintenance-bindings-linux-64: - name: Maintenance bindings (linux-64) - if: ${{ github.repository_owner == 'nvidia' && - !fromJSON(needs.should-skip.outputs.skip) && - !fromJSON(needs.should-skip.outputs.doc-only) && - fromJSON(needs.detect-changes.outputs.workplan).modules.bindings.needs_test && - fromJSON(needs.detect-changes.outputs.workplan).jobs.platforms.linux }} - permissions: - actions: read - contents: read - needs: - - ci-vars - - should-skip - - detect-changes - - build-linux-64 - secrets: inherit - uses: ./.github/workflows/test-wheel-linux.yml - with: - build-type: ${{ startsWith(github.ref_name, 'pull-request/') && 'pull-request' || (github.event_name == 'schedule' && 'nightly' || 'branch') }} - host-platform: linux-64 - build-ctk-ver: ${{ needs.ci-vars.outputs.CUDA_PREV_BUILD_VER }} bindings-config: ${{ needs.ci-vars.outputs.BINDINGS_CONFIG }} - maintenance-bindings: true - nruns: ${{ (github.event_name == 'schedule' && 5) || 1 }} - workplan: ${{ needs.detect-changes.outputs.workplan }} - - test-maintenance-bindings-linux-aarch64: - name: Maintenance bindings (linux-aarch64) - if: ${{ github.repository_owner == 'nvidia' && - !fromJSON(needs.should-skip.outputs.skip) && - !fromJSON(needs.should-skip.outputs.doc-only) && - fromJSON(needs.detect-changes.outputs.workplan).modules.bindings.needs_test && - fromJSON(needs.detect-changes.outputs.workplan).jobs.platforms.linux }} - permissions: - actions: read - contents: read - needs: - - ci-vars - - should-skip - - detect-changes - - build-linux-64 - - build-linux-aarch64 - secrets: inherit - uses: ./.github/workflows/test-wheel-linux.yml - with: - build-type: ${{ startsWith(github.ref_name, 'pull-request/') && 'pull-request' || (github.event_name == 'schedule' && 'nightly' || 'branch') }} - host-platform: linux-aarch64 - build-ctk-ver: ${{ needs.ci-vars.outputs.CUDA_PREV_BUILD_VER }} - bindings-config: ${{ needs.ci-vars.outputs.BINDINGS_CONFIG }} - maintenance-bindings: true - nruns: ${{ (github.event_name == 'schedule' && 5) || 1 }} - workplan: ${{ needs.detect-changes.outputs.workplan }} - - test-maintenance-bindings-windows: - name: Maintenance bindings (win-64) - if: ${{ github.repository_owner == 'nvidia' && - !fromJSON(needs.should-skip.outputs.skip) && - !fromJSON(needs.should-skip.outputs.doc-only) && - fromJSON(needs.detect-changes.outputs.workplan).modules.bindings.needs_test && - fromJSON(needs.detect-changes.outputs.workplan).jobs.platforms.windows }} - permissions: - actions: read - contents: read - needs: - - ci-vars - - should-skip - - detect-changes - - build-linux-64 - - build-windows - secrets: inherit - uses: ./.github/workflows/test-wheel-windows.yml - with: - build-type: ${{ startsWith(github.ref_name, 'pull-request/') && 'pull-request' || (github.event_name == 'schedule' && 'nightly' || 'branch') }} - host-platform: win-64 - build-ctk-ver: ${{ needs.ci-vars.outputs.CUDA_PREV_BUILD_VER }} - bindings-config: ${{ needs.ci-vars.outputs.BINDINGS_CONFIG }} - maintenance-bindings: true - nruns: ${{ (github.event_name == 'schedule' && 5) || 1 }} + nruns: ${{ (github.event_name == 'schedule' && 5) || 1}} workplan: ${{ needs.detect-changes.outputs.workplan }} doc: @@ -746,9 +677,6 @@ jobs: - test-linux-64 - test-linux-aarch64 - test-windows - - test-maintenance-bindings-linux-64 - - test-maintenance-bindings-linux-aarch64 - - test-maintenance-bindings-windows - api-check-core-vs-release - api-check-core-vs-base - doc @@ -776,7 +704,6 @@ jobs: windows_selected="${{ needs.detect-changes.outputs.workplan && fromJSON(needs.detect-changes.outputs.workplan).jobs.platforms.windows || false }}" windows_arm64_supported="${{ needs.ci-vars.outputs.WINDOWS_ARM64_SUPPORTED }}" build_selected="${{ needs.detect-changes.outputs.workplan && fromJSON(needs.detect-changes.outputs.workplan).jobs.sdist_tests || false }}" - maintenance_bindings_selected="${{ needs.detect-changes.outputs.workplan && fromJSON(needs.detect-changes.outputs.workplan).modules.bindings.needs_test || false }}" run_core_api_check="${{ needs.detect-changes.outputs.workplan && fromJSON(needs.detect-changes.outputs.workplan).jobs.core_api_checks || false }}" is_pr="${{ startsWith(github.ref_name, 'pull-request/') }}" status="success" @@ -827,16 +754,6 @@ jobs: check_result "test-linux-aarch64" "$linux_expected" check_result "test-windows" "$windows_expected" - maintenance_linux_expected="skipped" - maintenance_windows_expected="skipped" - if [[ "$maintenance_bindings_selected" == "true" ]]; then - maintenance_linux_expected="$linux_expected" - maintenance_windows_expected="$windows_expected" - fi - check_result "test-maintenance-bindings-linux-64" "$maintenance_linux_expected" - check_result "test-maintenance-bindings-linux-aarch64" "$maintenance_linux_expected" - check_result "test-maintenance-bindings-windows" "$maintenance_windows_expected" - # API compatibility checks run for cuda_core source changes and for # conservative full runs when reusable base artifacts are unavailable. expected="skipped" diff --git a/.github/workflows/test-sdist-linux.yml b/.github/workflows/test-sdist-linux.yml index 542ba2ebc937..dd481a77ab86 100644 --- a/.github/workflows/test-sdist-linux.yml +++ b/.github/workflows/test-sdist-linux.yml @@ -8,7 +8,8 @@ on: host-platform: required: true type: string - cuda-version: + bindings-package: + description: Normalized bindings root and toolkit for this sdist build. required: true type: string workplan: @@ -30,7 +31,9 @@ jobs: name: Test sdist builds if: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).jobs.sdist_tests }} env: - BUILD_PATHFINDER: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.pathfinder.needs_build }} + BINDINGS_ROOT: ${{ fromJSON(inputs.bindings-package).package_root }} + CUDA_PYTHON_BUILD_MAJOR: ${{ fromJSON(inputs.bindings-package).cuda_major }} + BUILD_PATHFINDER: ${{ fromJSON(inputs.bindings-package).release_status == 'current' && (inputs.workplan == '' || fromJSON(inputs.workplan).modules.pathfinder.needs_build) }} BUILD_BINDINGS: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.bindings.needs_build }} BUILD_CORE: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.core.needs_build }} BUILD_PYTHON: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.python.needs_build }} @@ -111,7 +114,7 @@ jobs: continue-on-error: false with: host-platform: ${{ inputs.host-platform }} - cuda-version: ${{ inputs.cuda-version }} + cuda-version: ${{ fromJSON(inputs.bindings-package).toolkit_version }} # cuda_bindings_13/setup.py parses CUDA headers at import time, so CUDA_PATH # (set by fetch_ctk) must be available for both sdist and wheel builds. @@ -123,22 +126,22 @@ jobs: export CXX="sccache c++" export PIP_BUILD_CONSTRAINT="$(pwd)/wheel-constraints/cuda-bindings.txt" export PIP_CONSTRAINT="${PIP_BUILD_CONSTRAINT}" - python -m build --sdist cuda_bindings_13/ - pip wheel --no-deps --wheel-dir cuda_bindings_13/dist cuda_bindings_13/dist/*.tar.gz + python -m build --sdist "${BINDINGS_ROOT}/" + pip wheel --no-deps --wheel-dir "${BINDINGS_ROOT}/dist" "${BINDINGS_ROOT}"/dist/*.tar.gz - name: Download cuda.bindings wheel if: ${{ env.BUILD_BINDINGS != 'true' && env.BUILD_CORE == 'true' }} uses: ./.github/actions/download-artifact-retry with: - name: cuda-bindings-python312-cuda${{ inputs.cuda-version }}-${{ inputs.host-platform }}-${{ github.sha }} - path: cuda_bindings_13/dist + name: ${{ fromJSON(inputs.bindings-package).release_status == 'maintenance' && 'maintenance-bindings' || 'cuda-bindings' }}-python312-cuda${{ fromJSON(inputs.bindings-package).toolkit_version }}-${{ inputs.host-platform }}-${{ github.sha }} + path: ${{ env.BINDINGS_ROOT }}/dist - name: Constrain cuda.core to the local cuda.bindings wheel if: ${{ env.BUILD_CORE == 'true' }} run: | - CUDA_MAJOR="$(echo '${{ inputs.cuda-version }}' | cut -d. -f1)" + CUDA_MAJOR="$(echo '${{ fromJSON(inputs.bindings-package).toolkit_version }}' | cut -d. -f1)" pathfinder_wheels=(cuda_pathfinder/dist/cuda_pathfinder-*.whl) - bindings_wheels=(cuda_bindings_13/dist/cuda_bindings-"${CUDA_MAJOR}".*.whl) + bindings_wheels=("${BINDINGS_ROOT}"/dist/cuda_bindings-"${CUDA_MAJOR}".*.whl) test "${#pathfinder_wheels[@]}" -eq 1 test "${#bindings_wheels[@]}" -eq 1 test -f "${pathfinder_wheels[0]}" @@ -158,7 +161,7 @@ jobs: if: ${{ env.BUILD_CORE == 'true' }} run: | export CUDA_PYTHON_PARALLEL_LEVEL=$(nproc) - export CUDA_CORE_BUILD_MAJOR="$(echo '${{ inputs.cuda-version }}' | cut -d. -f1)" + export CUDA_CORE_BUILD_MAJOR="$(echo '${{ fromJSON(inputs.bindings-package).toolkit_version }}' | cut -d. -f1)" export CC="sccache cc" export CXX="sccache c++" export PIP_BUILD_CONSTRAINT="$(pwd)/wheel-constraints/cuda-core.txt" diff --git a/.github/workflows/test-sdist-windows.yml b/.github/workflows/test-sdist-windows.yml index 0c0563126d1b..d15b747612b2 100644 --- a/.github/workflows/test-sdist-windows.yml +++ b/.github/workflows/test-sdist-windows.yml @@ -14,7 +14,8 @@ on: host-platform: required: true type: string - cuda-version: + bindings-package: + description: Normalized bindings root and toolkit for this sdist build. required: true type: string workplan: @@ -36,7 +37,9 @@ jobs: name: Test sdist builds if: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).jobs.sdist_tests }} env: - BUILD_PATHFINDER: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.pathfinder.needs_build }} + BINDINGS_ROOT: ${{ fromJSON(inputs.bindings-package).package_root }} + CUDA_PYTHON_BUILD_MAJOR: ${{ fromJSON(inputs.bindings-package).cuda_major }} + BUILD_PATHFINDER: ${{ fromJSON(inputs.bindings-package).release_status == 'current' && (inputs.workplan == '' || fromJSON(inputs.workplan).modules.pathfinder.needs_build) }} BUILD_BINDINGS: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.bindings.needs_build }} BUILD_CORE: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.core.needs_build }} BUILD_PYTHON: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.python.needs_build }} @@ -115,7 +118,7 @@ jobs: continue-on-error: false with: host-platform: ${{ inputs.host-platform }} - cuda-version: ${{ inputs.cuda-version }} + cuda-version: ${{ fromJSON(inputs.bindings-package).toolkit_version }} # cuda_bindings_13/setup.py parses CUDA headers at import time, so CUDA_PATH # (set by fetch_ctk) must be available for both sdist and wheel builds. @@ -127,22 +130,22 @@ jobs: export CUDA_PYTHON_PARALLEL_LEVEL=$(nproc) export PIP_BUILD_CONSTRAINT="$(cygpath -w "$(pwd)/wheel-constraints/cuda-bindings.txt")" export PIP_CONSTRAINT="${PIP_BUILD_CONSTRAINT}" - python -m build --sdist cuda_bindings_13/ - pip wheel --no-deps --wheel-dir cuda_bindings_13/dist cuda_bindings_13/dist/*.tar.gz + python -m build --sdist "${BINDINGS_ROOT}/" + pip wheel --no-deps --wheel-dir "${BINDINGS_ROOT}/dist" "${BINDINGS_ROOT}"/dist/*.tar.gz - name: Download cuda.bindings wheel if: ${{ env.BUILD_BINDINGS != 'true' && env.BUILD_CORE == 'true' }} uses: ./.github/actions/download-artifact-retry with: - name: cuda-bindings-python312-cuda${{ inputs.cuda-version }}-${{ inputs.host-platform }}-${{ github.sha }} - path: cuda_bindings_13/dist + name: ${{ fromJSON(inputs.bindings-package).release_status == 'maintenance' && 'maintenance-bindings' || 'cuda-bindings' }}-python312-cuda${{ fromJSON(inputs.bindings-package).toolkit_version }}-${{ inputs.host-platform }}-${{ github.sha }} + path: ${{ env.BINDINGS_ROOT }}/dist - name: Constrain cuda.core to the local cuda.bindings wheel if: ${{ env.BUILD_CORE == 'true' }} run: | - CUDA_MAJOR="$(echo '${{ inputs.cuda-version }}' | cut -d. -f1)" + CUDA_MAJOR="$(echo '${{ fromJSON(inputs.bindings-package).toolkit_version }}' | cut -d. -f1)" pathfinder_wheels=(cuda_pathfinder/dist/cuda_pathfinder-*.whl) - bindings_wheels=(cuda_bindings_13/dist/cuda_bindings-"${CUDA_MAJOR}".*.whl) + bindings_wheels=("${BINDINGS_ROOT}"/dist/cuda_bindings-"${CUDA_MAJOR}".*.whl) test "${#pathfinder_wheels[@]}" -eq 1 test "${#bindings_wheels[@]}" -eq 1 test -f "${pathfinder_wheels[0]}" @@ -162,7 +165,7 @@ jobs: if: ${{ env.BUILD_CORE == 'true' }} run: | export CUDA_PYTHON_PARALLEL_LEVEL=$(nproc) - export CUDA_CORE_BUILD_MAJOR="$(echo '${{ inputs.cuda-version }}' | cut -d. -f1)" + export CUDA_CORE_BUILD_MAJOR="$(echo '${{ fromJSON(inputs.bindings-package).toolkit_version }}' | cut -d. -f1)" export PIP_BUILD_CONSTRAINT="$(cygpath -w "$(pwd)/wheel-constraints/cuda-core.txt")" export PIP_CONSTRAINT="${PIP_BUILD_CONSTRAINT}" python -m build --sdist cuda_core/ diff --git a/.github/workflows/test-wheel-linux.yml b/.github/workflows/test-wheel-linux.yml index b77e7e619c6e..04efea70043d 100644 --- a/.github/workflows/test-wheel-linux.yml +++ b/.github/workflows/test-wheel-linux.yml @@ -17,13 +17,9 @@ on: type: string required: true bindings-config: - description: Normalized bindings registry for maintenance-only tests. + description: Normalized bindings registry; empty retains legacy artifact sources. type: string default: '' - maintenance-bindings: - description: Test this run's maintenance bindings wheel and Cython extensions. - type: boolean - default: false matrix_filter: type: string default: "." @@ -64,7 +60,6 @@ jobs: env: BUILD_TYPE: ${{ inputs.build-type }} BINDINGS_CONFIG: ${{ inputs.bindings-config }} - BINDINGS_ONLY: ${{ inputs.maintenance-bindings }} ARCH: ${{ (inputs.host-platform == 'linux-64' && 'amd64') || (inputs.host-platform == 'linux-aarch64' && 'arm64') }} outputs: @@ -93,11 +88,18 @@ jobs: # Read base matrix from YAML file for the specific architecture TEST_MATRIX=$(yq -o json ".linux[\"${MATRIX_TYPE}\"] | map(select(.ARCH == \"${ARCH}\"))" ci/test-matrix.yml) - if [[ "$BINDINGS_ONLY" == "true" ]]; then + if [[ -n "$BINDINGS_CONFIG" ]]; then TEST_MATRIX=$(jq -c --argjson config "$BINDINGS_CONFIG" ' - ($config.package_roots[] | select(.release_status == "maintenance")) as $package - | map(select(.CUDA_VER == $package.toolkit_version) - | . + {BINDINGS_ROOT: $package.package_root}) + ($config.package_roots | map({key: .ctk_target, value: .}) | from_entries) as $packages + | map(($packages[(.CUDA_VER | split(".")[:2] | join("."))]) as $package + | . + { + BINDINGS_ROOT: ($package.package_root // "cuda_bindings_13"), + BINDINGS_BUILD_VERSION: ($package.toolkit_version // ""), + BINDINGS_SOURCE: (if $package == null then "floor" else "main" end), + BINDINGS_ARTIFACT_PREFIX: (if $package.release_status == "maintenance" then "maintenance-bindings" else "cuda-bindings" end), + CORE_CYTHON_SUFFIX: (if $package.release_status == "maintenance" then "-cu\($package.cuda_major)-tests" else "-tests" end), + PYTHON_ARTIFACT_NAME: (if $package.release_status == "maintenance" then "maintenance-python-wheel" else "cuda-python-wheel" end) + }) ' <<< "$TEST_MATRIX") fi @@ -117,10 +119,10 @@ jobs: test: env: - TEST_PATHFINDER: ${{ !inputs.maintenance-bindings && (inputs.workplan == '' || fromJSON(inputs.workplan).modules.pathfinder.needs_test) }} - TEST_BINDINGS: ${{ inputs.maintenance-bindings || inputs.workplan == '' || fromJSON(inputs.workplan).modules.bindings.needs_test }} - TEST_CORE: ${{ !inputs.maintenance-bindings && (inputs.workplan == '' || fromJSON(inputs.workplan).modules.core.needs_test) }} - TEST_PYTHON: ${{ !inputs.maintenance-bindings && (inputs.workplan == '' || fromJSON(inputs.workplan).modules.python.needs_test) }} + TEST_PATHFINDER: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.pathfinder.needs_test }} + TEST_BINDINGS: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.bindings.needs_test }} + TEST_CORE: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.core.needs_test }} + TEST_PYTHON: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.python.needs_test }} name: Python ${{ matrix.PY_VER }}, CUDA ${{ matrix.CUDA_VER }} (${{ (matrix.LOCAL_CTK == '1' && 'local') || 'wheels' }}), GPU ${{ matrix.GPU }}${{ matrix.GPU_COUNT != '1' && format(' (x{0})', matrix.GPU_COUNT) || '' }}${{ matrix.FLAVOR && format(', {0}', matrix.FLAVOR) || '' }}${{ matrix.ENV.TORCH_VER && format(', {0}+{1}', matrix.ENV.TORCH_VER, matrix.ENV.TORCH_CUDA) || '' }}${{ matrix.ENV.MODE == 'nightly-numba-cuda' && ', latest' || '' }} timeout-minutes: 60 needs: compute-matrix @@ -191,9 +193,12 @@ jobs: - name: Set environment variables env: - BUILD_CUDA_VER: ${{ inputs.maintenance-bindings && matrix.CUDA_VER || inputs.build-ctk-ver }} + BUILD_CUDA_VER: ${{ matrix.BINDINGS_BUILD_VERSION || inputs.build-ctk-ver }} CUDA_BINDINGS_ROOT: ${{ matrix.BINDINGS_ROOT || 'cuda_bindings_13' }} - BINDINGS_ARTIFACT_PREFIX: ${{ inputs.maintenance-bindings && 'maintenance-bindings' || 'cuda-bindings' }} + BINDINGS_SOURCE: ${{ matrix.BINDINGS_SOURCE || '' }} + BINDINGS_ARTIFACT_PREFIX: ${{ matrix.BINDINGS_ARTIFACT_PREFIX || 'cuda-bindings' }} + CORE_CYTHON_SUFFIX: ${{ matrix.CORE_CYTHON_SUFFIX || '-tests' }} + CUDA_PYTHON_ARTIFACT_NAME: ${{ matrix.PYTHON_ARTIFACT_NAME || 'cuda-python-wheel' }} CUDA_VER: ${{ matrix.CUDA_VER }} HOST_PLATFORM: ${{ inputs.host-platform }} LOCAL_CTK: ${{ matrix.LOCAL_CTK }} @@ -221,7 +226,7 @@ jobs: if: ${{ env.TEST_PYTHON == 'true' && env.BINDINGS_SOURCE == 'main' }} uses: $/.github/actions/download-artifact-retry with: - name: cuda-python-wheel + name: ${{ env.CUDA_PYTHON_ARTIFACT_NAME || 'cuda-python-wheel' }} path: . run-id: ${{ inputs.run-id || github.run_id }} github-token: ${{ secrets.GITHUB_TOKEN }} @@ -342,7 +347,7 @@ jobs: if: ${{ env.TEST_CORE == 'true' && env.SKIP_CYTHON_TEST == '0' }} uses: $/.github/actions/download-artifact-retry with: - name: ${{ env.CUDA_CORE_ARTIFACT_NAME }}-tests + name: ${{ env.CUDA_CORE_CYTHON_TEST_ARTIFACT_NAME || format('{0}-tests', env.CUDA_CORE_ARTIFACT_NAME) }} path: ${{ env.CUDA_CORE_CYTHON_TESTS_DIR }} run-id: ${{ inputs.run-id || github.run_id }} github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test-wheel-windows.yml b/.github/workflows/test-wheel-windows.yml index 61b2f1efb96b..3e91738de771 100644 --- a/.github/workflows/test-wheel-windows.yml +++ b/.github/workflows/test-wheel-windows.yml @@ -17,13 +17,9 @@ on: type: string required: true bindings-config: - description: Normalized bindings registry for maintenance-only tests. + description: Normalized bindings registry; empty retains legacy artifact sources. type: string default: '' - maintenance-bindings: - description: Test this run's maintenance bindings wheel and Cython extensions. - type: boolean - default: false matrix_filter: type: string default: "." @@ -63,7 +59,6 @@ jobs: env: BUILD_TYPE: ${{ inputs.build-type }} BINDINGS_CONFIG: ${{ inputs.bindings-config }} - BINDINGS_ONLY: ${{ inputs.maintenance-bindings }} ARCH: ${{ (inputs.host-platform == 'win-64' && 'amd64') }} outputs: MATRIX: ${{ steps.compute-matrix.outputs.MATRIX }} @@ -89,11 +84,18 @@ jobs: # Read base matrix from YAML file for the specific architecture TEST_MATRIX=$(yq -o json ".windows[\"${MATRIX_TYPE}\"] | map(select(.ARCH == \"${ARCH}\"))" ci/test-matrix.yml) - if [[ "$BINDINGS_ONLY" == "true" ]]; then + if [[ -n "$BINDINGS_CONFIG" ]]; then TEST_MATRIX=$(jq -c --argjson config "$BINDINGS_CONFIG" ' - ($config.package_roots[] | select(.release_status == "maintenance")) as $package - | map(select(.CUDA_VER == $package.toolkit_version) - | . + {BINDINGS_ROOT: $package.package_root}) + ($config.package_roots | map({key: .ctk_target, value: .}) | from_entries) as $packages + | map(($packages[(.CUDA_VER | split(".")[:2] | join("."))]) as $package + | . + { + BINDINGS_ROOT: ($package.package_root // "cuda_bindings_13"), + BINDINGS_BUILD_VERSION: ($package.toolkit_version // ""), + BINDINGS_SOURCE: (if $package == null then "floor" else "main" end), + BINDINGS_ARTIFACT_PREFIX: (if $package.release_status == "maintenance" then "maintenance-bindings" else "cuda-bindings" end), + CORE_CYTHON_SUFFIX: (if $package.release_status == "maintenance" then "-cu\($package.cuda_major)-tests" else "-tests" end), + PYTHON_ARTIFACT_NAME: (if $package.release_status == "maintenance" then "maintenance-python-wheel" else "cuda-python-wheel" end) + }) ' <<< "$TEST_MATRIX") fi @@ -107,10 +109,10 @@ jobs: test: env: - TEST_PATHFINDER: ${{ !inputs.maintenance-bindings && (inputs.workplan == '' || fromJSON(inputs.workplan).modules.pathfinder.needs_test) }} - TEST_BINDINGS: ${{ inputs.maintenance-bindings || inputs.workplan == '' || fromJSON(inputs.workplan).modules.bindings.needs_test }} - TEST_CORE: ${{ !inputs.maintenance-bindings && (inputs.workplan == '' || fromJSON(inputs.workplan).modules.core.needs_test) }} - TEST_PYTHON: ${{ !inputs.maintenance-bindings && (inputs.workplan == '' || fromJSON(inputs.workplan).modules.python.needs_test) }} + TEST_PATHFINDER: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.pathfinder.needs_test }} + TEST_BINDINGS: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.bindings.needs_test }} + TEST_CORE: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.core.needs_test }} + TEST_PYTHON: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.python.needs_test }} name: Python ${{ matrix.PY_VER }}, CUDA ${{ matrix.CUDA_VER }} (${{ (matrix.LOCAL_CTK == '1' && 'local') || 'wheels' }}), GPU ${{ matrix.GPU }}${{ matrix.GPU_COUNT != '1' && format(' (x{0})', matrix.GPU_COUNT) || '' }} (${{ matrix.DRIVER_MODE }})${{ matrix.ENV.TORCH_VER && format(', {0}+{1}', matrix.ENV.TORCH_VER, matrix.ENV.TORCH_CUDA) || '' }}${{ matrix.ENV.MODE == 'nightly-numba-cuda' && ', latest' || '' }} timeout-minutes: 60 # The build stage could fail but we want the CI to keep moving. @@ -175,9 +177,12 @@ jobs: - name: Set environment variables env: - BUILD_CUDA_VER: ${{ inputs.maintenance-bindings && matrix.CUDA_VER || inputs.build-ctk-ver }} + BUILD_CUDA_VER: ${{ matrix.BINDINGS_BUILD_VERSION || inputs.build-ctk-ver }} CUDA_BINDINGS_ROOT: ${{ matrix.BINDINGS_ROOT || 'cuda_bindings_13' }} - BINDINGS_ARTIFACT_PREFIX: ${{ inputs.maintenance-bindings && 'maintenance-bindings' || 'cuda-bindings' }} + BINDINGS_SOURCE: ${{ matrix.BINDINGS_SOURCE || '' }} + BINDINGS_ARTIFACT_PREFIX: ${{ matrix.BINDINGS_ARTIFACT_PREFIX || 'cuda-bindings' }} + CORE_CYTHON_SUFFIX: ${{ matrix.CORE_CYTHON_SUFFIX || '-tests' }} + CUDA_PYTHON_ARTIFACT_NAME: ${{ matrix.PYTHON_ARTIFACT_NAME || 'cuda-python-wheel' }} CUDA_VER: ${{ matrix.CUDA_VER }} HOST_PLATFORM: ${{ inputs.host-platform }} LOCAL_CTK: ${{ matrix.LOCAL_CTK }} @@ -207,7 +212,7 @@ jobs: if: ${{ env.TEST_PYTHON == 'true' && env.BINDINGS_SOURCE == 'main' }} uses: $/.github/actions/download-artifact-retry with: - name: cuda-python-wheel + name: ${{ env.CUDA_PYTHON_ARTIFACT_NAME || 'cuda-python-wheel' }} path: . run-id: ${{ inputs.run-id || github.run_id }} github-token: ${{ secrets.GITHUB_TOKEN }} @@ -323,7 +328,7 @@ jobs: if: ${{ env.TEST_CORE == 'true' && env.SKIP_CYTHON_TEST == '0' }} uses: $/.github/actions/download-artifact-retry with: - name: ${{ env.CUDA_CORE_ARTIFACT_NAME }}-tests + name: ${{ env.CUDA_CORE_CYTHON_TEST_ARTIFACT_NAME || format('{0}-tests', env.CUDA_CORE_ARTIFACT_NAME) }} path: ${{ env.CUDA_CORE_CYTHON_TESTS_DIR }} run-id: ${{ inputs.run-id || github.run_id }} github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/ci/tools/env-vars b/ci/tools/env-vars index 66b401e88872..6d3e0df75d72 100755 --- a/ci/tools/env-vars +++ b/ci/tools/env-vars @@ -64,6 +64,7 @@ if [[ "${1}" == "build" ]]; then { echo "MAINTENANCE_BINDINGS_ROOT=${maintenance_root}" echo "MAINTENANCE_CUDA_VERSION=${maintenance_version}" + echo "MAINTENANCE_CUDA_MAJOR=${maintenance_version%%.*}" echo "MAINTENANCE_BINDINGS_ARTIFACTS_DIR=$(realpath "${REPO_DIR}/${maintenance_root}/dist")" echo "MAINTENANCE_BINDINGS_CYTHON_TESTS_DIR=$(realpath "${REPO_DIR}/${maintenance_root}/tests/cython")" echo "MAINTENANCE_BINDINGS_ARTIFACT_NAME=maintenance-bindings-python${PYTHON_VERSION_FORMATTED}-cuda${maintenance_version}-${HOST_PLATFORM}-${SHA}" @@ -100,7 +101,14 @@ elif [[ "${1}" == "test" ]]; then BUILD_PREV_CUDA_VER="$(yq -r '.cuda.prev_build.version' ci/versions.yml)" BUILD_PREV_CUDA_MINOR="$(cut -d '.' -f 2 <<< ${BUILD_PREV_CUDA_VER})" - if [[ ${BUILD_CUDA_MAJOR} != ${TEST_CUDA_MAJOR} ]]; then + if [[ -n "${BINDINGS_SOURCE:-}" ]]; then + SKIP_CUDA_BINDINGS_TEST=1 + SKIP_CYTHON_TEST=1 + if [[ "$BINDINGS_SOURCE" == main ]]; then + SKIP_CUDA_BINDINGS_TEST="${SKIP_BINDINGS_TEST_OVERRIDE:-0}" + SKIP_CYTHON_TEST=0 + fi + elif [[ ${BUILD_CUDA_MAJOR} != ${TEST_CUDA_MAJOR} ]]; then SKIP_CUDA_BINDINGS_TEST=1 SKIP_CYTHON_TEST=1 if [[ ${BUILD_PREV_CUDA_MINOR} != ${TEST_CUDA_MINOR} ]]; then @@ -154,4 +162,6 @@ fi echo "CUDA_BINDINGS_ARTIFACT_NAME=${CUDA_BINDINGS_ARTIFACT_BASENAME}-${SHA}" echo "CUDA_BINDINGS_ARTIFACTS_DIR=$(realpath "${REPO_DIR}/${CUDA_BINDINGS_ROOT}/dist")" echo "CUDA_BINDINGS_CYTHON_TESTS_DIR=$(realpath "${REPO_DIR}/${CUDA_BINDINGS_ROOT}/tests/cython")" + echo "CUDA_CORE_CYTHON_TEST_ARTIFACT_NAME=${CUDA_CORE_ARTIFACT_BASENAME}-${SHA}${CORE_CYTHON_SUFFIX:--tests}" + echo "CUDA_PYTHON_ARTIFACT_NAME=${CUDA_PYTHON_ARTIFACT_NAME:-cuda-python-wheel}" } >> $GITHUB_ENV diff --git a/ci/tools/tests/test_bindings_config.py b/ci/tools/tests/test_bindings_config.py index e21adc79110f..17608a3334c2 100644 --- a/ci/tools/tests/test_bindings_config.py +++ b/ci/tools/tests/test_bindings_config.py @@ -129,9 +129,13 @@ def test_cuda12_source_changes_select_bindings_consumers(): @pytest.mark.agent_authored(model="gpt-6") def test_cuda12_milestone_does_not_change_current_package_versions(tmp_path, monkeypatch): current = load_config(ROOT / "ci" / "versions.yml").package_for_release_status("current") - for package_root, filename in (("cuda_bindings_13", "pyproject.toml"), ("cuda_python", "setup.py")): + for package_root, filename in ( + ("cuda_bindings_13", "pyproject.toml"), + ("cuda_python", "setup.py"), + ("cuda_python", "pyproject.toml"), + ): destination = tmp_path / package_root / filename - destination.parent.mkdir() + destination.parent.mkdir(exist_ok=True) shutil.copyfile(ROOT / package_root / filename, destination) def git(*args): diff --git a/ci/tools/tests/test_cuda_python_setup.py b/ci/tools/tests/test_cuda_python_setup.py new file mode 100644 index 000000000000..54b247e17a07 --- /dev/null +++ b/ci/tools/tests/test_cuda_python_setup.py @@ -0,0 +1,71 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +import os +import shutil +import subprocess +import sys +import tarfile +from email import message_from_bytes +from pathlib import Path +from zipfile import ZipFile + +import pytest +from packaging.requirements import Requirement + + +@pytest.mark.agent_authored(model="gpt-6") +def test_tagged_maintenance_sdist_keeps_version_and_dependencies_without_selector(tmp_path): + source = Path(__file__).resolve().parents[3] / "cuda_python" + checkout = tmp_path / "checkout" + package = checkout / "cuda_python" + package.mkdir(parents=True) + for filename in ("setup.py", "pyproject.toml", "DESCRIPTION.rst", "LICENSE"): + shutil.copyfile(source / filename, package / filename) + + env = os.environ.copy() + env.pop("CUDA_PYTHON_BUILD_MAJOR", None) + for args in (("init", "--quiet"), ("add", "."), ("commit", "--quiet", "-m", "Release"), ("tag", "v12.9.11")): + subprocess.run( # noqa: S603 + [ # noqa: S607 + "git", + "-c", + "user.name=CI test", + "-c", + "user.email=ci-test@example.invalid", + "-c", + "commit.gpgsign=false", + "-c", + "tag.gpgsign=false", + "-c", + "core.hooksPath=/dev/null", + *args, + ], + cwd=checkout, + env=env, + check=True, + capture_output=True, + ) + + subprocess.run( + [sys.executable, "-c", "from setuptools.build_meta import build_sdist; build_sdist('dist')"], + cwd=package, + env=env, + check=True, + ) + unpacked = tmp_path / "unpacked" + with tarfile.open(next((package / "dist").glob("*.tar.gz"))) as archive: + archive.extractall(unpacked, filter="data") + standalone = next(unpacked.iterdir()) + subprocess.run( + [sys.executable, "-c", "from setuptools.build_meta import build_wheel; build_wheel('dist')"], + cwd=standalone, + env=env, + check=True, + ) + with ZipFile(next((standalone / "dist").glob("*.whl"))) as wheel: + metadata = message_from_bytes( + wheel.read(next(name for name in wheel.namelist() if name.endswith(".dist-info/METADATA"))) + ) + assert metadata["Version"] == "12.9.11" + assert {Requirement(value).name for value in metadata.get_all("Requires-Dist", [])} == {"cuda-bindings"} diff --git a/cuda_core/docs/source/install.rst b/cuda_core/docs/source/install.rst index 7e67fadad8d5..42343409cd9d 100644 --- a/cuda_core/docs/source/install.rst +++ b/cuda_core/docs/source/install.rst @@ -106,10 +106,10 @@ obtain the most recent build, use the following commands: $ # Install the downloaded wheel: $ pip install cuda-core-python312-linux-64-*/cuda_core*.whl[cu13] -Replace ``python312`` with your Python version (e.g. ``python310``, ``python311``, -``python313``, ``python314``, ``python314t``). For aarch64, replace ``linux-64`` -with ``linux-aarch64``; for Windows, use ``win-64``. Replace ``cu13`` with -``cu12`` for CUDA 12.x environments. +Replace ``python312`` with your Python version (e.g. ``python311``, +``python313``, ``python314``, ``python314t``, ``python315``, ``python315t``). +For aarch64, replace ``linux-64`` with ``linux-aarch64``; for Windows, use +``win-64``. Replace ``cu13`` with ``cu12`` for CUDA 12.x environments. .. _cuda-core-source-install: diff --git a/cuda_python/AGENTS.md b/cuda_python/AGENTS.md index e4038dc58245..dda1068bf5ec 100644 --- a/cuda_python/AGENTS.md +++ b/cuda_python/AGENTS.md @@ -5,7 +5,7 @@ monorepo. - `cuda_python` is primarily packaging and documentation glue. - It does not host substantial runtime APIs like `cuda_core`, - `cuda_bindings_13`, or `cuda_pathfinder`. + `cuda_bindings_12`, `cuda_bindings_13`, or `cuda_pathfinder`. ## Main files to edit @@ -20,14 +20,21 @@ monorepo. component packages rather than here. - Be careful when changing dependency/version logic in `setup.py`; preserve compatibility between metapackage versioning and subpackage constraints. +- Git source builds use CUDA 12 at an unambiguous CUDA 12 tag and otherwise + default to CUDA 13. Set `CUDA_PYTHON_BUILD_MAJOR` to select either major + explicitly. Selectors live in `pyproject.toml`. Standalone sdists retain + their fixed version, which also determines their dependency major. Check + default CUDA 13, explicit CUDA 12, and CUDA 12 sdist rebuilds when changing + this shared packaging logic. ## Release coupling -- `setup.py` pins `cuda-core` to a minor series (`cuda-core~=X.Y.0`). Every - `cuda-core` release must bump that pin, and a `cuda-python` release should - follow right after, so that `pip install cuda-python` resolves to the new - `cuda-core`. The `cuda-core` release checklist (`.github/RELEASE-core.md`) - has this step. +- The current-major metapackage in `setup.py` pins `cuda-core` to a minor + series (`cuda-core~=X.Y.0`). The CUDA 12 metapackage depends only on bindings. + Every `cuda-core` release must bump that pin, and a `cuda-python` release + for the current major should follow right after, so that + `pip install cuda-python` resolves to the new `cuda-core`. The `cuda-core` + release checklist (`.github/RELEASE-core.md`) has this step. - Users should pin `cuda-python` alone. A separate `cuda-core` pin next to it can make the install unresolvable after a `cuda-core` release. - If you update docs structure, ensure `docs/build_all_docs.sh` still collects diff --git a/cuda_python/docs/README.md b/cuda_python/docs/README.md index 4cf18ee74d06..76b46c7d0613 100644 --- a/cuda_python/docs/README.md +++ b/cuda_python/docs/README.md @@ -4,7 +4,11 @@ 2. Build the docs with `./build_docs.sh`. 3. The html artifacts should be available under both `./build/html/latest` and `./build/html/`. -Alternatively, we can build all the docs at once by running [`./build_all_docs.sh`](./build_all_docs.sh). +[`./build_all_docs.sh`](./build_all_docs.sh) builds the metapackage, current +CUDA 13 bindings, Core, and Pathfinder documentation together. It does not +build the [CUDA 12 maintenance documentation](../../cuda_bindings_12/docs/README.md). +Build that separately in its own environment: both bindings roots install the +same `cuda-bindings` distribution and `cuda.bindings` namespace. When building the docs, some (but not all) of the urls can be rendered/examined locally by setting the environment variable `CUDA_PYTHON_DOMAIN` as follows: diff --git a/cuda_python/pyproject.toml b/cuda_python/pyproject.toml index 5b0a55dc99ff..1210baaae80d 100644 --- a/cuda_python/pyproject.toml +++ b/cuda_python/pyproject.toml @@ -42,6 +42,9 @@ documentation = "https://nvidia.github.io/cuda-python/" repository = "https://github.com/NVIDIA/cuda-python/" issues = "https://github.com/NVIDIA/cuda-python/issues/" -# The [tool.setuptools_scm] section is handled in setup.py since we need to -# dynamically set the dependency to cuda_bindings based on the dynamically -# determinded version +# setup.py selects one bindings line and derives the matching dependency +# from its SCM version. Keep these selectors aligned with the bindings roots; +# check-bindings-config verifies them against ci/versions.yml. +[tool.cuda-python.scm-describe-match-by-major] +"12" = "v12.*" +"13" = "v13.*" diff --git a/cuda_python/setup.py b/cuda_python/setup.py index df33673289eb..53092e098486 100644 --- a/cuda_python/setup.py +++ b/cuda_python/setup.py @@ -2,20 +2,58 @@ # # SPDX-License-Identifier: Apache-2.0 -import ast +import os +import subprocess +import tomllib +from pathlib import Path from packaging.version import Version from setuptools import setup from setuptools_scm import get_version -version = get_version( - root="..", - relative_to=__file__, - git_describe_command=["git", "describe", "--dirty", "--tags", "--long", "--match", "v13.*"], -) +# The selector table ships with standalone sdists, which have neither the +# CI registry nor sibling bindings packages. The metadata hook checks drift. +with Path(__file__).with_name("pyproject.toml").open("rb") as stream: + scm_selectors = tomllib.load(stream)["tool"]["cuda-python"]["scm-describe-match-by-major"] + +# CI selects either major explicitly. Direct tagged builds follow the tag; +# untagged checkouts and commits tagged for both majors default to CUDA 13. +build_major = os.environ.get("CUDA_PYTHON_BUILD_MAJOR") +if build_major is None: + build_major = "13" + source_root = Path(__file__).resolve().parent.parent + if (source_root / ".git").exists(): + tags = subprocess.check_output( + ["git", "tag", "--points-at", "HEAD", "--list", "v12.*", "v13.*"], # noqa: S607 + cwd=source_root, + text=True, + ).splitlines() + if any(tag.startswith("v12.") for tag in tags) and not any(tag.startswith("v13.") for tag in tags): + build_major = "12" +if build_major not in {"12", "13"}: + raise ValueError(f"CUDA_PYTHON_BUILD_MAJOR must be 12 or 13, got {build_major!r}") + +version_options = { + "root": "..", + "relative_to": __file__, + "dist_name": "cuda-python", + # Keep metapackage tag selection identical to its bindings source line. + "git_describe_command": [ + "git", + "describe", + "--dirty", + "--tags", + "--long", + "--match", + scm_selectors[build_major], + ], +} +version = get_version(**version_options) -base_version = Version(version).base_version + +resolved_version = Version(version) +base_version = resolved_version.base_version if base_version == version: @@ -25,16 +63,23 @@ # Pre-release version matcher = "==" +install_requires = [f"cuda-bindings{matcher}{version}"] +# An sdist recovers its fixed version without Git; its dependency set must +# follow that version even when the checkout selector defaults to CUDA 13. +if resolved_version.major >= 13: + install_requires.extend( + [ + # Bump this with every cuda-core release and release the current-major + # cuda-python right after it; see .github/RELEASE-core.md. + "cuda-core~=1.3.0", + "cuda-pathfinder~=1.1", + ] + ) + setup( version=version, - install_requires=[ - f"cuda-bindings{matcher}{version}", - # Bump this with every cuda-core release and release cuda-python right - # after it; see .github/RELEASE-core.md and cuda_python/AGENTS.md. - "cuda-core~=1.3.0", - "cuda-pathfinder~=1.1", - ], + install_requires=install_requires, extras_require={ "all": [f"cuda-bindings[all]{matcher}{version}"], }, From ff233f42d547544c83f9ccd68537f9fe5b65129e Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Thu, 12 Nov 2026 21:24:57 -0800 Subject: [PATCH 40/85] [no-ci] ci: release CUDA 12 bindings from main (#3319) * ci: release CUDA 12 bindings from main Signed-off-by: Ralf W. Grosse-Kunstleve * fix: select one docs metapackage for dependent tags [skip ci] Signed-off-by: Ralf W. Grosse-Kunstleve * test: use fixed registry input in release-note checks Signed-off-by: Ralf W. Grosse-Kunstleve * Apply current Python import conventions to release tooling Signed-off-by: Ralf W. Grosse-Kunstleve * Harden release publishing and make metapackage major selection explicit Signed-off-by: Ralf W. Grosse-Kunstleve * Keep documentation builds read-only before deployment Signed-off-by: Ralf W. Grosse-Kunstleve * docs: align Core release checks with local bindings builds --------- Signed-off-by: Ralf W. Grosse-Kunstleve --- .github/ISSUE_TEMPLATE/release_checklist.yml | 11 +- .github/RELEASE-bindings.md | 134 +++ .github/RELEASE-core.md | 57 +- .../actions/setup-hardened-python/action.yml | 4 +- .github/workflows/build-docs.yml | 168 +++- .github/workflows/build-wheel.yml | 12 +- .github/workflows/ci.yml | 43 +- .github/workflows/release-upload.yml | 83 +- .github/workflows/release.yml | 289 ++++-- .github/workflows/test-sdist-linux.yml | 2 +- .github/workflows/test-sdist-windows.yml | 2 +- .github/workflows/test-wheel-linux.yml | 4 +- .github/workflows/test-wheel-windows.yml | 4 +- .pre-commit-config.yaml | 2 +- ci/tools/bindings_config.py | 216 ++++- ci/tools/check_release_notes.py | 287 +++--- ci/tools/download-wheels | 133 ++- ci/tools/env-vars | 2 +- ci/tools/lookup-run-id | 62 +- .../tests/test_bindings_release_compat.py | 129 +++ ci/tools/tests/test_check_release_notes.py | 480 ++++------ ci/tools/tests/test_download_wheels.py | 150 +++ .../tests/test_release_publish_security.py | 25 + .../tests/test_validate_release_wheels.py | 221 +++++ ci/tools/validate-release-wheels | 138 --- ci/tools/validate_release_wheels.py | 274 ++++++ cuda_bindings_13/docs/build_docs.sh | 9 +- cuda_bindings_13/pixi.lock | 888 +++++++++++++++--- cuda_bindings_13/pixi.toml | 3 +- cuda_python/docs/environment-docs.yml | 2 + toolshed/setup-docs-env.sh | 1 + 31 files changed, 2725 insertions(+), 1110 deletions(-) create mode 100644 .github/RELEASE-bindings.md create mode 100644 ci/tools/tests/test_bindings_release_compat.py create mode 100644 ci/tools/tests/test_download_wheels.py create mode 100644 ci/tools/tests/test_release_publish_security.py create mode 100644 ci/tools/tests/test_validate_release_wheels.py delete mode 100755 ci/tools/validate-release-wheels create mode 100644 ci/tools/validate_release_wheels.py diff --git a/.github/ISSUE_TEMPLATE/release_checklist.yml b/.github/ISSUE_TEMPLATE/release_checklist.yml index 83780ebe35f1..4e64d7bc347c 100644 --- a/.github/ISSUE_TEMPLATE/release_checklist.yml +++ b/.github/ISSUE_TEMPLATE/release_checklist.yml @@ -10,7 +10,7 @@ body: - type: markdown attributes: value: | - This checklist is for cuda-core releases as well as cuda-bindings patches. Please go through this checklist and ensure all tasks are completed. See [RELEASE-core.md](../RELEASE-core.md) for detailed guidance on each step (cuda.core). + This checklist is for cuda-core releases as well as cuda-bindings patches. See [RELEASE-core.md](../RELEASE-core.md) for cuda.core and [RELEASE-bindings.md](../RELEASE-bindings.md) for bindings release scope, stabilization branches, and validation. - type: checkboxes id: subpackage-tasks @@ -18,18 +18,19 @@ body: label: Tasks for cuda-core and cuda-bindings patch release options: - label: File an internal nvbug to communicate test plan & release schedule with QA - - label: Ensure all pending PRs are reviewed, tested, and merged + - label: Record the release scope and ensure all PRs selected for this release are reviewed, tested, and merged - label: Check (or update if needed) the dependency requirements - label: Sweep deprecations whose stated removal version has arrived (`grep -rn 'deprecated::' cuda_core/cuda`) and remove any that are due - label: "Finalize the doc update, including release notes (\"Note: Touching docstrings/type annotations in code is OK during code freeze, apply your best judgement!\")" - label: Update the docs for the new version - label: "For cuda-core: create the release branch (`release/cuda-core-vX.Y.x`) from `main` for a minor release, or use the existing one for a patch release" - - label: "Create a public release tag (for cuda-core, on the release branch)" - - label: Wait for the tag-triggered CI run to complete, and use that run ID for release workflows (this will upload the release to PyPI) + - label: Record the exact source commit, workflow control revision, and selected package root before creating the approved public release tag (for cuda-core, on the release branch) + - label: Wait for the exact tag-triggered CI run to pass and complete a release dry run before approving publication - label: Publish the release at https://github.com/NVIDIA/cuda-python/releases (this will trigger the conda package update) - label: Approve the conda-package update PR - label: Post-release QA - label: Finalize the announcement update - label: Send out the announcement internally (on `#swcuda-python`) - label: Send out the announcement externally (GitHub Release -> Announcement) - - label: For a `cuda-bindings` release, make sure MAJOR and MAJOR-1 releases are made, as well as releases of `cuda-python` for MAJOR and MAJOR-1 + - label: For a `cuda-bindings` release, confirm which supported release lines are in scope using `ci/versions.yml`, and release the matching `cuda-python` package for each planned line + - label: For a bindings stabilization or emergency branch, link the PRs returning applicable fixes to `main` and record their applicability to both bindings roots diff --git a/.github/RELEASE-bindings.md b/.github/RELEASE-bindings.md new file mode 100644 index 000000000000..fa0c98510553 --- /dev/null +++ b/.github/RELEASE-bindings.md @@ -0,0 +1,134 @@ + + +# Releasing CUDA bindings + +## Choose the release scope and source + +Develop the current and maintenance CUDA major lines together on `main`, in +the two package roots listed in [`ci/versions.yml`](../ci/versions.yml). +Release each line independently. A bindings release also needs its matching +`cuda-python` metapackage release; it does not require a release of the other +CUDA major, `cuda-core`, or `cuda-pathfinder`. + +Major-line maintenance may include selected API, Python, platform, or other +compatibility changes. Decide those changes explicitly and describe them in +the release notes. Once a patch release is frozen, admit only its approved +fixes and release prerequisites. Do not infer patch-release scope solely +from the registry's `maintenance` role. + +For an ordinary release, select a tested commit on `main`. If stabilization +must continue while development advances, create a short release branch such +as `release/bindings-12.9.11` from the chosen commit. For an emergency after a +release, start from its exact tag, provided that tag contains the new package +layout. For the first release after this transition, use a validated commit +containing both roots. Keep routine development on `main`; the historical +`12.9.x` branch stays frozen except for emergency fixes using compatible +historical tooling. Reconcile those fixes into the main-tree maintenance +root. Keep the package layout and release tooling together on new release branches. + +Record the source commit, intended tag, selected package root, release owner, +and accepted changes in the release checklist. A branch is a temporary scope +boundary, not a separate long-term home for shared infrastructure. + +## Move fixes between integration and release branches + +Prefer a reviewed fix on `main`, then backport it to the selected release +branch in a separate PR. Inspect the diff, request CI using the normal PR +approval procedure, and review it before merging. Conflicts and toolkit-specific +generated changes require an explicitly reviewed adaptation. + +If urgency requires a fix on the release branch first, link a follow-up PR +reconciling the fix back into `main` before closing the release checklist. In either +direction, assess both bindings roots and record why a change applies to one +or both. Regenerate affected generated files from the intended toolkit and +cybind inputs instead of blindly copying generated output between majors. + +## Validate and publish the selected line + +1. Finalize the bindings and metapackage release notes, dependency constraints, + and selected toolkit pin in the release source tree. The registry and + packaging metadata must agree. Run the CI-tool suite and pre-commit checks. +2. Test the candidate through a reviewed PR or manual CI dispatch on its + branch. Normal development CI includes dependent packages and may cover + both majors. Resolve failures in affected code before selecting the tag. +3. Create the approved immutable `vX.Y.Z` tag at the selected source commit. + Tag-triggered CI builds both bindings lines and their consumers. The release + workflow selects only the requested line's bindings or metapackage artifacts. + The tag does not have to be on `main`. Wait for this exact tag's CI to pass. +4. Run **CI: Release** with `release-action=dry-run`, the tag, and + `component=cuda-bindings`; repeat for `cuda-python`. Leave `run-id` blank + to exercise automatic lookup, and leave `dry-run-docs-branch` blank to avoid + deploying docs. The workflow verifies a successful tag-triggered CI run + with the exact source SHA, validates artifacts, and builds docs. +5. Review the dry runs, then separately approve and run `full-release` for + each component under the team's release procedure. A successful candidate + rehearsal or ordinary branch CI is not a substitute for exact-tag CI. +6. After both component releases succeed, review and publish the shared + `vX.Y.Z` GitHub Release draft. Check its release notes, versioned + documentation links, source archive, checksum, and wheels. These component + workflows leave the draft for the release owner to publish. +7. Finish post-release QA and announcements, return every applicable fix to + `main`, and close the stabilization effort. Retain immutable tags and the + branch history needed for diagnosis. + +For a bindings `vX.Y.Z` tag, tag CI validates that line's bindings documentation. +Validate the metapackage documentation in the separate `component=cuda-python` +release dry run. Tag CI does not publish documentation. This focused tag-CI +check is specific to the shared bindings/metapackage tags; Core and Pathfinder +release behavior is unchanged. + +For either bindings line, add the released version to +[`cuda_bindings_13/docs/nv-versions.json`](../cuda_bindings_13/docs/nv-versions.json) +and its matching metapackage version to +[`cuda_python/docs/nv-versions.json`](../cuda_python/docs/nv-versions.json) +on `main`. Documentation deployments from `main` own these shared version +selectors. Release deployments publish versioned pages without replacing the +selectors or shared `latest` pages; updating a selector only on a stabilization +branch will not update the public selector. + +The workflow revision used for a release is its **control revision**; the +tagged commit is its **source revision**. Record both and the artifact CI run +ID. Release routing uses the package layout and toolkit settings in +`ci/versions.yml` at the release tag. Retained CUDA 13 tags also support the +older `cuda.build.version` configuration, the `cuda_bindings` source directory, +and their original build matrix and metapackage artifact name. New CUDA 12 +releases require the local `cuda_bindings_12` root and toolkit-qualified +artifacts. The workflow control revision never supplies missing tagged toolkit +settings or replaces tagged release notes. Older CUDA 12 branch releases use +their compatible historical tooling. + +In **CI: Release**, normal bindings and metapackage releases each require +their own exact-version, nonempty release notes in the tagged source. Notes +from the workflow control revision or a different component cannot fill a gap. +Preserve their existing exemption for `.postN` releases, which do not require +new notes. + +Local synthetic tags used in publication-incapable rehearsals must remain local; +they do not authorize publishing a package, creating a remote tag, or moving +an existing tag. + +### Two tags at one commit + +One tested source commit can carry tags for both bindings lines, for example +`v12.9.20` and `v13.5.4` (illustrative versions). Each tag starts its own +tag-triggered CI run, even though the source SHA is identical: + +| Tag | Distributions selected for release | +| --- | --- | +| `v12.9.20` | `cuda-bindings` 12.9.20 and `cuda-python` 12.9.20 | +| `v13.5.4` | `cuda-bindings` 13.5.4 and `cuda-python` 13.5.4 | + +CI explicitly selects the metapackage major with `CUDA_PYTHON_BUILD_MAJOR` +and its matching `v12.*` or `v13.*` SCM namespace. Toolkit-qualified artifact +names keep the lines separate, even at one SHA; tag CI may build additional +packages beyond the release selection. + +Follow the procedure separately for each tag, invoking **CI: Release** for +both `component=cuda-bindings` and `component=cuda-python`: dry runs first, +then approved full releases. Run lookup matches the requested tag and source +SHA, and artifact validation rejects mismatched versions. Tag creation and +release order do not choose the version; releasing one line does not release +the other. diff --git a/.github/RELEASE-core.md b/.github/RELEASE-core.md index d3ca740426df..c1cd45cc4442 100644 --- a/.github/RELEASE-core.md +++ b/.github/RELEASE-core.md @@ -3,11 +3,10 @@ # cuda.core Release Process -This document covers the `cuda.core` release process. For other packages: -`cuda-bindings` and `cuda-python` involve a private repository and are not -documented here; `cuda-pathfinder` is largely automated by the -[CI: Release](workflows/release.yml) -workflow. +This document covers the `cuda.core` release process. See the +[bindings release guide](RELEASE-bindings.md) for `cuda-bindings` and +`cuda-python`. The `cuda-pathfinder` release process is largely automated by +the [CI: Release](workflows/release.yml) workflow. To release `cuda-pathfinder`, dispatch **CI: Release** with `component` set to `cuda-pathfinder`, `release-action` set @@ -20,12 +19,13 @@ version, then publishes to PyPI and verifies again before publishing the GitHub Release without marking it as latest. A failed docs build prevents asset uploads, package publication, and finalization. -The release-note checker runs from `git-tag`, not the workflow revision. -For Pathfinder, that tag must contain a version -of `ci/tools/check_release_notes.py` that writes `version=` to -`GITHUB_OUTPUT`. The release-notes job rejects an empty version before -documentation, asset uploads, or package publication can start. Pathfinder -package publication also requires successful draft metadata preparation. +The workflow revision supplies the release tools; release notes and the +package registry (`ci/versions.yml`) come from `git-tag`. Current tooling +uses the toolkit configuration in the tagged source, including retained CUDA 13 +sources that predate the package-root registry. The release-notes job exports +the checked version and rejects an empty version before documentation, asset +uploads, or package publication can start. Pathfinder package publication also +requires successful draft metadata preparation. Existing tags stay immutable. The default `dry-run` action validates preparation, builds docs, and collects release artifacts without creating a GitHub Release or publishing @@ -91,16 +91,15 @@ The `cu12`/`cu13` extras declare the `cuda-bindings` floors. A release does not raise a floor to the newest `cuda-bindings`; see "Bumping the cuda-bindings floor" in `cuda_core/AGENTS.md`. Check the floors instead: -- The minor of each floor equals the minor of the toolkit pin of its - major in `ci/versions.yml` (`build` for the current major, `prev_build` - for the prior major). If a floor's minor is lower, the toolkit-bump +- The minor of each floor equals the minor of that major's toolkit pin + in `ci/versions.yml`. If a floor's minor is lower, the toolkit-bump window is open: move the floor before the release. - In the latest CI run on `main`, the CUDA 13 rows whose CUDA minor - differs from the `build` pin (for example "CUDA 13.0.2") installed the + differs from the current major's toolkit pin (for example "CUDA 13.0.2") installed the literal floor. Their logs show `Installing bindings (source: floor)` and `cuda-bindings==`, and no "predates ... headers" line. Standard - CI does not install the CUDA 12 floor: its rows use the 12.9.x backport - build. + CI does not install the CUDA 12 floor: its rows use the same-run + maintenance bindings build. - The release notes list every floor move since the last release. Update the `cuda-core` pin in `cuda_python/setup.py` to the new minor @@ -216,21 +215,29 @@ Pushing the tag triggers a CI run automatically. Monitor it in the ## Upload wheels to PyPI -This is a single `CI: Release` workflow run with two sequential stages: -publish to TestPyPI, then publish the same wheel set to PyPI. +First validate the release with a dry run. After reviewing that result, a +`full-release` run publishes to TestPyPI, then publishes the same wheel set to +PyPI. 1. Go to **Actions > CI: Release** and run the workflow with: - **Component**: `cuda-core` - **The release git tag**: `cuda-core-v0.6.0` + - **What to run**: `dry-run` - The workflow automatically looks up the successful tag-triggered CI run - for the selected release tag. + Leave `run-id` blank to exercise automatic lookup of the successful + tag-triggered CI run. Leave `dry-run-docs-branch` blank to validate the docs + without deploying them. -2. Wait for the workflow to complete. It will: - - publish the selected wheels to TestPyPI - - publish the same wheel set to PyPI +2. Review the completed dry run, then approve publication under the team's + release procedure and run the workflow for the same component and tag with + **What to run** set to `full-release`. -3. After completion, verify the final PyPI upload: +3. Wait for that run to complete. It deploys versioned documentation and uploads + the source archive, checksum, and wheels to the GitHub Release draft. It + publishes the selected wheel set to TestPyPI followed by PyPI. The release + owner publishes the GitHub Release draft in the announcement step. + +4. After completion, verify the final PyPI upload: ```bash pip install cuda-core==0.6.0 diff --git a/.github/actions/setup-hardened-python/action.yml b/.github/actions/setup-hardened-python/action.yml index b5b909c9043d..fe6968b2d827 100644 --- a/.github/actions/setup-hardened-python/action.yml +++ b/.github/actions/setup-hardened-python/action.yml @@ -19,10 +19,10 @@ description: >- inputs: python-version: description: >- - uv Python request, e.g. "3.12" or "3.14t" (free-threaded). The newest + uv Python request, e.g. "3.11" or "3.14t" (free-threaded). The newest patch known to the pinned uv is installed. Only series with a fixed release listed in the interpreter check (3.11-3.15) are accepted. - required: true + default: "3.11" venv: description: Directory for the venv. Defaults to a new directory under RUNNER_TEMP. default: "" diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index b734fdd8c73a..8d9a4e92cd0c 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -43,10 +43,18 @@ on: required: false default: "gh-pages" type: string + bindings-package: + description: "Resolved CUDA bindings package JSON" + required: false + default: "" + type: string jobs: build: name: Build docs + permissions: + contents: read + pull-requests: read # The build stage could fail but we want the CI to keep moving. if: ${{ github.repository_owner == 'nvidia' && !cancelled() }} runs-on: ubuntu-latest @@ -62,23 +70,48 @@ jobs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 1 - ref: ${{ inputs.git-tag }} + persist-credentials: false + ref: ${{ inputs.is-release && format('refs/tags/{0}', inputs.git-tag) || inputs.git-tag }} - - name: Read build CTK version + # Release sources and workflow tools can come from different commits. + # Keep the shared CI helpers at this workflow revision while reading + # package paths and toolkit settings from the checked-out release tag. + - name: Checkout docs control plane + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: ${{ github.sha }} + path: .ci-control + persist-credentials: false + + - name: Set up Python for CI tools + # The release checkout can predate this action; use the workflow revision. + uses: ./.ci-control/.github/actions/setup-hardened-python + + - name: Install CI tool dependencies + # Keep the hardened interpreter ahead of any login-shell activation. + shell: bash --noprofile --norc -euo pipefail {0} + run: python3 -m pip install -e ./.ci-control/ci + + - name: Resolve CUDA bindings package + shell: bash --noprofile --norc -euo pipefail {0} + env: + BINDINGS_PACKAGE: ${{ inputs.bindings-package }} + IS_RELEASE: ${{ inputs.is-release }} + RELEASE_TAG: ${{ inputs.git-tag }} run: | - if [[ -f ci/versions.yml ]]; then - BUILD_CTK_VER=$(yq '.cuda.build.version' ci/versions.yml) - elif [[ -f ci/versions.json ]]; then - BUILD_CTK_VER=$(jq -r '.cuda.build.version' ci/versions.json) + set -euo pipefail + if [[ -n "$BINDINGS_PACKAGE" ]]; then + resolved_bindings_package="$BINDINGS_PACKAGE" + elif [[ "${IS_RELEASE}" == "true" ]]; then + resolved_bindings_package=$(cd .ci-control && python3 -m ci.tools.bindings_config \ + --release-tag "$RELEASE_TAG" \ + --release-source-root ..) else - echo "error: cannot find ci/versions.yml or ci/versions.json" >&2 - exit 1 - fi - if [[ ! "${BUILD_CTK_VER}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then - echo "error: derived CTK build version ${BUILD_CTK_VER} does not match MAJOR.MINOR.MICRO" >&2 - exit 1 + resolved_bindings_package=$(cd .ci-control && python3 -m ci.tools.bindings_config \ + --release-status current) fi - echo "BUILD_CTK_VER=${BUILD_CTK_VER}" >> "$GITHUB_ENV" + (cd .ci-control && python3 -m ci.tools.bindings_config \ + write-github-env "$GITHUB_ENV" <<< "$resolved_bindings_package") # TODO: This workflow runs on GH-hosted runner and cannot use the proxy cache @@ -86,7 +119,7 @@ jobs: uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1.0 with: activate-environment: cuda-python-docs - environment-file: ./cuda_python/docs/environment-docs.yml + environment-file: ./.ci-control/cuda_python/docs/environment-docs.yml miniforge-version: latest conda-remove-defaults: "true" python-version: 3.12 @@ -106,24 +139,16 @@ jobs: cuda-version: ${{ env.BUILD_CTK_VER }} - name: Set environment variables + env: + IS_RELEASE: ${{ inputs.is-release }} + RELEASE_TAG: ${{ inputs.git-tag }} run: | PYTHON_VERSION_FORMATTED="312" # see above REPO_DIR=$(pwd) - # Release docs may check out tags from before the source-root rename. - if [[ -d cuda_bindings_13 ]]; then - CUDA_BINDINGS_SOURCE_DIR=cuda_bindings_13 - elif [[ -d cuda_bindings ]]; then - CUDA_BINDINGS_SOURCE_DIR=cuda_bindings - else - echo "error: cannot find the cuda.bindings source directory" >&2 - exit 1 - fi - echo "CUDA_BINDINGS_SOURCE_DIR=${CUDA_BINDINGS_SOURCE_DIR}" >> "$GITHUB_ENV" - - if [[ ${{ inputs.is-release }} == "true" ]]; then + if [[ "$IS_RELEASE" == "true" ]]; then FILE_HASH="*" - DOCS_GITHUB_REF="${{ inputs.git-tag }}" + DOCS_GITHUB_REF="$RELEASE_TAG" if [[ -z "${DOCS_GITHUB_REF}" ]]; then DOCS_GITHUB_REF="${GITHUB_REF_NAME}" fi @@ -132,6 +157,8 @@ jobs: DOCS_GITHUB_REF=$(python ci/tools/checkout_source_links.py --github-ref) fi + echo "CUDA_BINDINGS_SOURCE_DIR=${BINDINGS_PACKAGE_ROOT}" >> "$GITHUB_ENV" + # make outputs from the previous job as env vars CUDA_CORE_ARTIFACT_BASENAME="cuda-core-python${PYTHON_VERSION_FORMATTED}-linux-64" echo "CUDA_PYTHON_DOCS_GITHUB_REF=${DOCS_GITHUB_REF}" >> $GITHUB_ENV @@ -141,22 +168,40 @@ jobs: CUDA_BINDINGS_ARTIFACT_BASENAME="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda${BUILD_CTK_VER}-linux-64" echo "CUDA_BINDINGS_ARTIFACT_BASENAME=${CUDA_BINDINGS_ARTIFACT_BASENAME}" >> $GITHUB_ENV echo "CUDA_BINDINGS_ARTIFACT_NAME=${CUDA_BINDINGS_ARTIFACT_BASENAME}-${FILE_HASH}" >> $GITHUB_ENV - echo "CUDA_BINDINGS_ARTIFACTS_DIR=$(realpath "$REPO_DIR/$CUDA_BINDINGS_SOURCE_DIR/dist")" >> $GITHUB_ENV + echo "CUDA_BINDINGS_ARTIFACTS_DIR=$(realpath "$REPO_DIR/${BINDINGS_PACKAGE_ROOT}/dist")" >> $GITHUB_ENV + CUDA_PYTHON_ARTIFACT_NAME="cuda-python-wheel-cuda${BUILD_CTK_VER}" + echo "CUDA_PYTHON_ARTIFACT_NAME=${CUDA_PYTHON_ARTIFACT_NAME}" >> $GITHUB_ENV - name: Download cuda-python build artifacts + if: ${{ !inputs.is-release }} uses: $/.github/actions/download-artifact-retry with: - name: cuda-python-wheel + name: ${{ env.CUDA_PYTHON_ARTIFACT_NAME }} path: . run-id: ${{ inputs.run-id }} github-token: ${{ github.token }} + - name: Download cuda-python release artifacts + if: ${{ inputs.is-release && (inputs.component == 'all' || inputs.component == 'cuda-python') }} + shell: bash --noprofile --norc -euo pipefail {0} + env: + GH_TOKEN: ${{ github.token }} + RELEASE_RUN_ID: ${{ inputs.run-id }} + RELEASE_TAG: ${{ inputs.git-tag }} + RELEASE_REPOSITORY: ${{ github.repository }} + run: | + ./.ci-control/ci/tools/download-wheels \ + "$RELEASE_RUN_ID" cuda-python "$RELEASE_REPOSITORY" . \ + "$RELEASE_TAG" "$RESOLVED_BINDINGS_PACKAGE" + - name: Display structure of downloaded cuda-python artifacts + if: ${{ !inputs.is-release || inputs.component == 'all' || inputs.component == 'cuda-python' }} run: | pwd - ls -lahR . + ls -lah cuda_python*.whl - name: Download cuda-pathfinder build artifacts + if: ${{ !inputs.is-release || inputs.component == 'all' || inputs.component == 'cuda-pathfinder' || inputs.component == 'cuda-core' }} uses: $/.github/actions/download-artifact-retry with: name: cuda-pathfinder-wheel @@ -165,9 +210,10 @@ jobs: github-token: ${{ github.token }} - name: Display structure of downloaded cuda-pathfinder artifacts + if: ${{ !inputs.is-release || inputs.component == 'all' || inputs.component == 'cuda-pathfinder' || inputs.component == 'cuda-core' }} run: | pwd - ls -lahR cuda_pathfinder + ls -lah cuda_pathfinder/*.whl - name: Download cuda.bindings build artifacts if: ${{ !inputs.is-release }} @@ -177,7 +223,7 @@ jobs: path: ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }} - name: Download cuda.bindings build artifacts - if: ${{ inputs.is-release }} + if: ${{ inputs.is-release && (inputs.component == 'all' || inputs.component == 'cuda-bindings' || inputs.component == 'cuda-core') }} uses: $/.github/actions/download-artifact-retry with: pattern: ${{ env.CUDA_BINDINGS_ARTIFACT_NAME }} @@ -187,9 +233,10 @@ jobs: github-token: ${{ github.token }} - name: Display structure of downloaded cuda.bindings artifacts + if: ${{ !inputs.is-release || inputs.component == 'all' || inputs.component == 'cuda-bindings' || inputs.component == 'cuda-core' }} run: | pwd - ls -lahR $CUDA_BINDINGS_ARTIFACTS_DIR + ls -lah "${CUDA_BINDINGS_ARTIFACTS_DIR}"/*.whl - name: Download cuda.core build artifacts if: ${{ !inputs.is-release }} @@ -199,7 +246,7 @@ jobs: path: ${{ env.CUDA_CORE_ARTIFACTS_DIR }} - name: Download cuda.core build artifacts - if: ${{ inputs.is-release }} + if: ${{ inputs.is-release && (inputs.component == 'all' || inputs.component == 'cuda-core') }} uses: $/.github/actions/download-artifact-retry with: pattern: ${{ env.CUDA_CORE_ARTIFACT_NAME }} @@ -209,26 +256,37 @@ jobs: github-token: ${{ github.token }} - name: Display structure of downloaded cuda.core build artifacts + if: ${{ !inputs.is-release || inputs.component == 'all' || inputs.component == 'cuda-core' }} run: | pwd - ls -lahR $CUDA_CORE_ARTIFACTS_DIR + ls -lah "${CUDA_CORE_ARTIFACTS_DIR}"/*.whl - - name: Install all packages + - name: Install cuda-pathfinder + if: ${{ !inputs.is-release || inputs.component == 'all' || inputs.component == 'cuda-pathfinder' || inputs.component == 'cuda-core' }} run: | pushd cuda_pathfinder pip install *.whl popd + - name: Install cuda.bindings + if: ${{ !inputs.is-release || inputs.component == 'all' || inputs.component == 'cuda-bindings' || inputs.component == 'cuda-core' }} + run: | pushd "${CUDA_BINDINGS_ARTIFACTS_DIR}" pip install *.whl popd + - name: Install cuda.core + if: ${{ !inputs.is-release || inputs.component == 'all' || inputs.component == 'cuda-core' }} + run: | pushd "${CUDA_CORE_ARTIFACTS_DIR}" pip install *.whl popd - # Subpackages are already installed from CI artifacts above. - # --no-deps avoids re-resolving cuda-core from PyPI during tag releases. + - name: Install cuda-python + if: ${{ !inputs.is-release || inputs.component == 'all' || inputs.component == 'cuda-python' }} + run: | + # Documentation builds do not exercise runtime dependencies. + # --no-deps also avoids resolving artifacts absent from focused tag runs. pip install --no-deps cuda_python*.whl # PR CI uses pull-request/ refs regardless of the target branch. @@ -252,9 +310,11 @@ jobs: - name: Build all docs if: ${{ inputs.component == 'all' }} + env: + IS_RELEASE: ${{ inputs.is-release }} run: | pushd cuda_python/docs/ - if [[ "${{ inputs.is-release }}" == "false" ]]; then + if [[ "$IS_RELEASE" == "false" ]]; then ./build_all_docs.sh latest-only else ./build_all_docs.sh @@ -271,13 +331,20 @@ jobs: - name: Build component docs if: ${{ inputs.component != 'all' }} + env: + DOCS_COMPONENT: ${{ inputs.component }} + IS_RELEASE: ${{ inputs.is-release }} run: | - COMPONENT=$(echo "${{ inputs.component }}" | tr '-' '_') - if [[ "${{ inputs.component }}" == "cuda-bindings" ]]; then - COMPONENT="${CUDA_BINDINGS_SOURCE_DIR}" + case "$DOCS_COMPONENT" in + cuda-bindings|cuda-core|cuda-pathfinder|cuda-python) ;; + *) echo "error: unsupported docs component: $DOCS_COMPONENT" >&2; exit 1 ;; + esac + COMPONENT="${DOCS_COMPONENT//-/_}" + if [[ "$DOCS_COMPONENT" == "cuda-bindings" ]]; then + COMPONENT="${BINDINGS_PACKAGE_ROOT}" fi - pushd ${COMPONENT}/docs/ - if [[ "${{ inputs.is-release }}" == "false" ]]; then + pushd "${COMPONENT}/docs/" + if [[ "$IS_RELEASE" == "false" ]]; then ./build_docs.sh latest-only else ./build_docs.sh @@ -290,13 +357,13 @@ jobs: fi ls -l build popd - if [[ "${{ inputs.component }}" != "cuda-python" ]]; then - TARGET="${{ inputs.component }}" - mkdir -p artifacts/docs/${TARGET} + if [[ "$DOCS_COMPONENT" != "cuda-python" ]]; then + TARGET="$DOCS_COMPONENT" + mkdir -p "artifacts/docs/${TARGET}" else TARGET="" fi - mv ${COMPONENT}/docs/build/html/* artifacts/docs/${TARGET} + mv "${COMPONENT}"/docs/build/html/* "artifacts/docs/${TARGET}" # Check links and anchors in the rendered HTML built above. # Links in authored Markdown and reST files are checked separately by the @@ -305,7 +372,7 @@ jobs: # interpreter instead of the conda environment used above. - name: Set up Python for link checks if: ${{ !inputs.is-release && startsWith(github.ref_name, 'pull-request/') }} - uses: ./.github/actions/setup-hardened-python + uses: ./.ci-control/.github/actions/setup-hardened-python with: python-version: "3.14" @@ -363,7 +430,8 @@ jobs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 1 - ref: ${{ inputs.git-tag }} + persist-credentials: false + ref: ${{ inputs.is-release && format('refs/tags/{0}', inputs.git-tag) || inputs.git-tag }} - name: Download docs deployment payload uses: $/.github/actions/download-artifact-retry diff --git a/.github/workflows/build-wheel.yml b/.github/workflows/build-wheel.yml index 84a2022ebacd..d980dc0d5785 100644 --- a/.github/workflows/build-wheel.yml +++ b/.github/workflows/build-wheel.yml @@ -442,7 +442,7 @@ jobs: if: ${{ !inputs.single-cuda-major && (env.BUILD_PYTHON == 'true' || env.TEST_PYTHON == 'true') && strategy.job-index == 0 && inputs.host-platform == 'linux-64' }} uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: - name: maintenance-python-wheel + name: cuda-python-wheel-cuda${{ env.MAINTENANCE_CUDA_VERSION }} path: cuda_python/dist/cu${{ env.MAINTENANCE_CUDA_MAJOR }}/*.whl if-no-files-found: error @@ -450,7 +450,7 @@ jobs: if: ${{ env.BUILD_PYTHON == 'true' && strategy.job-index == 0 && inputs.host-platform == 'linux-64' }} run: | pushd cuda_python - pip wheel -v --no-deps . + CUDA_PYTHON_BUILD_MAJOR="${BUILD_CUDA_MAJOR}" pip wheel -v --no-deps . twine check --strict *.whl popd @@ -475,6 +475,14 @@ jobs: ls -lahR cuda_python - name: Upload cuda-python build artifacts + if: ${{ strategy.job-index == 0 && inputs.host-platform == 'linux-64' }} + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 + with: + name: cuda-python-wheel-cuda${{ inputs.cuda-version }} + path: cuda_python/*.whl + if-no-files-found: error + + - name: Upload legacy cuda-python artifact alias if: ${{ strategy.job-index == 0 && inputs.host-platform == 'linux-64' }} uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a61303cdd82d..eb66f420a410 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,6 +34,7 @@ jobs: CUDA_BUILD_VER: ${{ steps.get-vars.outputs.cuda_build_ver }} CUDA_PREV_BUILD_VER: ${{ steps.get-vars.outputs.cuda_prev_build_ver }} WINDOWS_ARM64_SUPPORTED: ${{ steps.get-vars.outputs.windows_arm64_supported }} + WINDOWS_ARM64_PYTHON_SUPPORTED: ${{ steps.get-vars.outputs.windows_arm64_python_supported }} WINDOWS_ARM64_SINGLE_CUDA_MAJOR: ${{ steps.get-vars.outputs.windows_arm64_single_cuda_major }} PYTHON_SUPPORTED: ${{ steps.get-vars.outputs.python_supported }} BINDINGS_CONFIG: ${{ steps.get-vars.outputs.bindings_config }} @@ -64,32 +65,17 @@ jobs: python_supported=$(yq -o json -I 0 '.python.supported' ci/versions.yml) echo "python_supported=$python_supported" >> $GITHUB_OUTPUT - # Windows ARM64 is available starting with CUDA 13.4. - if [[ "$cuda_build_ver" =~ ^([0-9]+)\.([0-9]+)(\.|$) ]]; then - cuda_build_major="${BASH_REMATCH[1]}" - cuda_build_minor="${BASH_REMATCH[2]}" - else - echo "Invalid CUDA build version: $cuda_build_ver" >&2 - exit 1 - fi - if (( cuda_build_major > 13 || (cuda_build_major == 13 && cuda_build_minor >= 4) )); then - windows_arm64_supported=true - else - windows_arm64_supported=false - fi - echo "windows_arm64_supported=$windows_arm64_supported" >> $GITHUB_OUTPUT - - # No CUDA 13 windows-arm64 toolkit exists for a major other than the - # current one (windows-arm64 support started mid-way through the 13.x - # series), so cuda.core can only be built against a single CUDA major - # while the build major is still 13. Once the build major advances to - # 14, a CUDA 13 windows-arm64 toolkit will exist as the prior major. - if [[ "$cuda_build_major" == "13" ]]; then - windows_arm64_single_cuda_major=true - else - windows_arm64_single_cuda_major=false - fi - echo "windows_arm64_single_cuda_major=$windows_arm64_single_cuda_major" >> $GITHUB_OUTPUT + python - <<'PY' >> "$GITHUB_OUTPUT" + import json + from ci.tools.bindings_config import load_config, wheel_python_versions + + config = load_config() + current = config.package_for_release_status("current") + versions = wheel_python_versions(current.toolkit_version, "win-arm64", config.python_supported) + print("windows_arm64_supported=" + str(bool(versions)).lower()) + print("windows_arm64_single_cuda_major=" + str(current.cuda_major == "13").lower()) + print("windows_arm64_python_supported=" + json.dumps(versions)) + PY should-skip: if: ${{ github.repository_owner == 'nvidia' }} @@ -490,7 +476,7 @@ jobs: prev-cuda-version: ${{ needs.ci-vars.outputs.CUDA_PREV_BUILD_VER }} workplan: ${{ needs.detect-changes.outputs.workplan }} single-cuda-major: ${{ needs.ci-vars.outputs.WINDOWS_ARM64_SINGLE_CUDA_MAJOR == 'true' }} - python-versions: ${{ needs.ci-vars.outputs.PYTHON_SUPPORTED }} + python-versions: ${{ needs.ci-vars.outputs.WINDOWS_ARM64_PYTHON_SUPPORTED }} # NOTE: test-sdist jobs are split by platform (mirroring build-* and test-wheel-*) # so platform-specific sources (e.g. cuda_bindings_13/*_windows.pyx selected by @@ -657,6 +643,9 @@ jobs: secrets: inherit uses: ./.github/workflows/build-docs.yml with: + component: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') && 'cuda-bindings' || 'all' }} + git-tag: ${{ github.ref_type == 'tag' && github.ref_name || '' }} + run-id: ${{ github.run_id }} is-release: ${{ github.ref_type == 'tag' }} deploy-docs: ${{ github.ref_type != 'tag' }} diff --git a/.github/workflows/release-upload.yml b/.github/workflows/release-upload.yml index 6c227d74f777..782bcd73bf18 100644 --- a/.github/workflows/release-upload.yml +++ b/.github/workflows/release-upload.yml @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: Apache-2.0 -name: "CI: Upload git archive" +name: "CI: Upload release artifacts" on: workflow_call: @@ -10,22 +10,20 @@ on: git-tag: type: string required: true - run-id: - description: "The GHA run ID that generated validated artifacts" + artifact-id: + description: "Immutable artifact ID prepared and validated by this workflow run" type: string required: true component: - description: "Component to download wheels for" type: string required: true dry-run: - description: "Validate release artifacts without uploading them to the GitHub release" + description: "Skip GitHub release uploads; preparation already saved the dry-run artifact" type: boolean required: false default: false concurrency: - # Keep upload locks component-specific and separate from the caller's workflow lock. group: release-upload-${{ inputs.component }} cancel-in-progress: false @@ -33,71 +31,24 @@ permissions: contents: write jobs: - # create source archive and upload it to the published release - # URL to the archive: https://github.com/NVIDIA//releases/download//-.tar.gz upload: - if: ${{ !github.event.repository.fork }} + if: ${{ !github.event.repository.fork && !inputs.dry-run }} runs-on: ubuntu-latest - env: - ARCHIVE_NAME: ${{ github.event.repository.name }}-${{ inputs.git-tag }} steps: - - name: Checkout Source - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - name: Download prepared release artifacts + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: - fetch-depth: 1 - ref: ${{ inputs.git-tag }} - - - name: Create Release Directory - run: mkdir -p release - - - name: Archive Source - run: > - git archive - --format=tar.gz - --prefix="${{ env.ARCHIVE_NAME }}/" - --output="release/${{ env.ARCHIVE_NAME }}.tar.gz" - ${{ inputs.git-tag }} - - - name: Compute Checksum - run: > - sha256sum "release/${{ env.ARCHIVE_NAME }}.tar.gz" - | awk '{print $1}' - > "release/${{ env.ARCHIVE_NAME }}.tar.gz.sha256sum" + artifact-ids: ${{ inputs.artifact-id }} + path: release/ + merge-multiple: true - - name: Upload Archive - if: ${{ !inputs.dry-run }} + - name: Upload archive, checksum, and wheels env: GH_TOKEN: ${{ github.token }} - run: > + RELEASE_GIT_TAG: ${{ inputs.git-tag }} + RELEASE_REPOSITORY: ${{ github.repository }} + run: >- gh release upload - --clobber "${{ inputs.git-tag }}" - --repo "${{ github.repository }}" - release/* - - - name: Download and Validate Wheels - env: - GH_TOKEN: ${{ github.token }} - run: | - # Use the shared script to download wheels - ./ci/tools/download-wheels "${{ inputs.run-id }}" "${{ inputs.component }}" "${{ github.repository }}" "release/wheels" - - # Validate that release wheels match the expected version from tag. - ./ci/tools/validate-release-wheels "${{ inputs.git-tag }}" "${{ inputs.component }}" "release/wheels" - - - name: Upload Wheels - if: ${{ !inputs.dry-run }} - env: - GH_TOKEN: ${{ github.token }} - run: | - if [[ -d "release/wheels" && $(ls -A release/wheels 2>/dev/null | wc -l) -gt 0 ]]; then - echo "Uploading wheels to release ${{ inputs.git-tag }}" - gh release upload --clobber "${{ inputs.git-tag }}" --repo "${{ github.repository }}" release/wheels/* - fi - - - name: Upload dry-run release artifacts - if: ${{ inputs.dry-run }} - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 - with: - name: release-artifacts-dry-run-${{ inputs.component }}-${{ inputs.git-tag }} - path: release/ - retention-days: 3 + --clobber "$RELEASE_GIT_TAG" + --repo "$RELEASE_REPOSITORY" + release/*.tar.gz release/*.sha256sum release/wheels/*.whl diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dc466827046e..e7ddb4258812 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,26 +10,10 @@ name: "CI: Release" # without publishing to external release surfaces. # Pathfinder additionally prepares metadata, verifies both indexes, and publishes its draft. # -# Maintenance note: non-trivial changes to this workflow should be validated -# with dry-run workflow_dispatch runs before merging. Suggested focused matrix: -# - mainline: -# component=cuda-bindings -# git-tag= -# backport-git-tag=not planned -# run-id= -# dry-run-docs-branch=gh-pages-dry-run -# - backport sequence: -# 1. component=cuda-bindings -# git-tag= -# backport-git-tag= -# 2. component=cuda-python -# git-tag= -# backport-git-tag= -# run-id= -# dry-run-docs-branch=gh-pages-dry-run -# Leave run-id blank so determine-run-id is exercised. For exhaustive coverage, -# add a mainline cuda-python dry-run when changes could affect metapackage -# artifact validation, docs routing, or component-specific release behavior. +# Maintenance note: validate non-trivial changes with dry-run workflow_dispatch +# runs for bindings and metapackage tags from both maintenance and current packages. Leave +# run-id blank so automatic tag-run discovery, artifact filtering, and version +# validation are exercised. # Also exercise cuda-core and cuda-pathfinder, including a failed docs build. on: @@ -56,11 +40,6 @@ on: description: "The release git tag" required: true type: string - backport-git-tag: - description: "Mainline cuda-bindings/cuda-python only: planned backport tag, or 'not planned'. Leave blank for backport releases." - required: false - type: string - default: "" run-id: description: "The GHA run ID that generated validated artifacts (optional - auto-detects successful tag-triggered CI run for git-tag)" required: false @@ -77,12 +56,52 @@ concurrency: group: release-${{ inputs.component }} cancel-in-progress: false +permissions: + contents: read + defaults: run: shell: bash --noprofile --norc -xeuo pipefail {0} jobs: + resolve-bindings-package: + if: ${{ github.repository_owner == 'nvidia' }} + runs-on: ubuntu-latest + outputs: + bindings-package: ${{ steps.resolve.outputs.bindings-package }} + steps: + - name: Checkout release control plane + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: Checkout release source + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + ref: refs/tags/${{ inputs.git-tag }} + path: release-source + + - name: Set up Python + uses: ./.github/actions/setup-hardened-python + + - name: Install CI tool dependencies + run: python -m pip install -e ./ci + + - name: Resolve bindings release package + id: resolve + env: + RELEASE_TAG: ${{ inputs.git-tag }} + run: | + bindings_package=$(python -m ci.tools.bindings_config \ + --release-tag "$RELEASE_TAG" \ + --release-source-root release-source) + echo "bindings-package=${bindings_package}" >> "$GITHUB_OUTPUT" + determine-run-id: + permissions: + contents: read + actions: read if: ${{ github.repository_owner == 'nvidia' }} runs-on: ubuntu-latest outputs: @@ -91,6 +110,7 @@ jobs: - name: Checkout Source uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: + persist-credentials: false # lookup-run-id resolves the git tag to a SHA; we need tags but not history. fetch-depth: 1 fetch-tags: true @@ -100,26 +120,33 @@ jobs: env: GH_TOKEN: ${{ github.token }} RELEASE_GIT_TAG: ${{ inputs.git-tag }} - PROVIDED_RUN_ID: ${{ inputs.run-id }} RELEASE_REPOSITORY: ${{ github.repository }} + REQUESTED_RUN_ID: ${{ inputs.run-id }} run: | - if [[ -n "$PROVIDED_RUN_ID" ]]; then - echo "Using provided run ID: $PROVIDED_RUN_ID" - RUN_ID="$PROVIDED_RUN_ID" + if [[ -n "$REQUESTED_RUN_ID" ]]; then + echo "Validating provided run ID: $REQUESTED_RUN_ID" + RUN_ID=$(./ci/tools/lookup-run-id \ + --tag "$RELEASE_GIT_TAG" \ + --run-id "$REQUESTED_RUN_ID" \ + "$RELEASE_REPOSITORY") else echo "Auto-detecting successful tag-triggered run ID for tag: $RELEASE_GIT_TAG" - RUN_ID=$(./ci/tools/lookup-run-id "$RELEASE_GIT_TAG" "$RELEASE_REPOSITORY") + RUN_ID=$(./ci/tools/lookup-run-id --tag "$RELEASE_GIT_TAG" "$RELEASE_REPOSITORY") echo "Auto-detected run ID: $RUN_ID" fi echo "run-id=$RUN_ID" >> "$GITHUB_OUTPUT" check-tag: + permissions: + contents: write + needs: resolve-bindings-package if: ${{ github.repository_owner == 'nvidia' }} runs-on: ubuntu-latest steps: - name: Checkout Source uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: + persist-credentials: false # Dry-run validation resolves the requested tag locally; we need tags but not history. fetch-depth: 1 fetch-tags: true @@ -129,6 +156,7 @@ jobs: GH_TOKEN: ${{ github.token }} RELEASE_ACTION: ${{ inputs.release-action }} RELEASE_GIT_TAG: ${{ inputs.git-tag }} + RELEASE_REPOSITORY: ${{ github.repository }} DRY_RUN_DOCS_BRANCH: ${{ inputs.dry-run-docs-branch }} run: | if [[ "$RELEASE_ACTION" == "full-release" && -n "$DRY_RUN_DOCS_BRANCH" ]]; then @@ -139,19 +167,21 @@ jobs: echo "error: dry-run-docs-branch must be a non-production gh-pages-* branch" >&2 exit 1 fi + git check-ref-format "refs/tags/$RELEASE_GIT_TAG" + git rev-parse --verify "refs/tags/${RELEASE_GIT_TAG}^{commit}" + if [[ "$RELEASE_ACTION" == "dry-run" ]]; then - git rev-parse --verify "${RELEASE_GIT_TAG}^{commit}" echo "Dry-run selected; not checking or creating a GitHub release draft." exit 0 fi - mapfile -t tags < <(gh release list -R "${{ github.repository }}" --json tagName --jq '.[] | .tagName') - mapfile -t is_draft < <(gh release list -R "${{ github.repository }}" --json isDraft --jq '.[] | .isDraft') + mapfile -t tags < <(gh release list -R "$RELEASE_REPOSITORY" --json tagName --jq '.[] | .tagName') + mapfile -t is_draft < <(gh release list -R "$RELEASE_REPOSITORY" --json isDraft --jq '.[] | .isDraft') found=0 for idx in "${!tags[@]}"; do - if [[ "${tags[$idx]}" == "${{ inputs.git-tag }}" ]]; then - echo "found existing release for ${{ inputs.git-tag }}" + if [[ "${tags[$idx]}" == "$RELEASE_GIT_TAG" ]]; then + echo "found existing release for $RELEASE_GIT_TAG" found=1 if [[ "${is_draft[$idx]}" != "true" ]]; then echo "the release note is not in draft state" @@ -161,39 +191,52 @@ jobs: fi done if [[ "$found" == 0 ]]; then - echo "no release found for ${{ inputs.git-tag }}, creating draft release" - gh release create "${{ inputs.git-tag }}" --draft --repo "${{ github.repository }}" --title "Release ${{ inputs.git-tag }}" --notes "Release ${{ inputs.git-tag }}" + echo "no release found for $RELEASE_GIT_TAG, creating draft release" + gh release create "$RELEASE_GIT_TAG" \ + --verify-tag \ + --draft \ + --repo "$RELEASE_REPOSITORY" \ + --title "Release $RELEASE_GIT_TAG" \ + --notes "Release $RELEASE_GIT_TAG" fi check-release-notes: if: ${{ github.repository_owner == 'nvidia' }} runs-on: ubuntu-latest + needs: resolve-bindings-package outputs: version: ${{ steps.release-notes.outputs.version }} steps: - - name: Checkout Source + - name: Checkout release control plane uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: - ref: ${{ inputs.git-tag }} + persist-credentials: false - - name: Set up Python - # $/ resolves at the workflow's commit. ./ would resolve against the - # release tag checkout, which can predate this action. - uses: $/.github/actions/setup-hardened-python + - name: Checkout release source + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: - python-version: "3.12" + persist-credentials: false + ref: refs/tags/${{ inputs.git-tag }} + path: release-source + + - name: Set up Python + uses: ./.github/actions/setup-hardened-python + + - name: Install CI tool dependencies + run: python -m pip install -e ./ci - name: Check versioned release notes exist id: release-notes env: - RELEASE_GIT_TAG: ${{ inputs.git-tag }} + BINDINGS_PACKAGE: ${{ needs.resolve-bindings-package.outputs.bindings-package }} RELEASE_COMPONENT: ${{ inputs.component }} - BACKPORT_GIT_TAG: ${{ inputs.backport-git-tag }} + RELEASE_TAG: ${{ inputs.git-tag }} run: | - python ci/tools/check_release_notes.py \ - --git-tag "$RELEASE_GIT_TAG" \ + python -m ci.tools.check_release_notes \ + --git-tag "$RELEASE_TAG" \ --component "$RELEASE_COMPONENT" \ - --backport-git-tag "$BACKPORT_GIT_TAG" + --repo-root release-source \ + --bindings-package "$BINDINGS_PACKAGE" - name: Require Pathfinder version output if: ${{ inputs.component == 'cuda-pathfinder' }} @@ -201,7 +244,7 @@ jobs: VERSION: ${{ steps.release-notes.outputs.version }} run: | [[ -n "$VERSION" ]] || { - echo "::error::The tagged Pathfinder release-note checker must emit a non-empty version output" + echo "::error::The Pathfinder release-note checker must emit a non-empty version output" exit 1 } @@ -265,6 +308,7 @@ jobs: - check-tag - check-release-notes - determine-run-id + - resolve-bindings-package secrets: inherit uses: ./.github/workflows/build-docs.yml with: @@ -274,21 +318,95 @@ jobs: is-release: true deploy-docs: ${{ inputs.release-action == 'full-release' || inputs.dry-run-docs-branch != '' }} docs-branch: ${{ (inputs.release-action == 'dry-run' && inputs.dry-run-docs-branch) || 'gh-pages' }} + bindings-package: ${{ needs.resolve-bindings-package.outputs.bindings-package }} - upload-archive: - name: Validate release artifacts + prepare-artifacts: + name: Prepare and validate release artifacts + if: ${{ github.repository_owner == 'nvidia' }} + runs-on: ubuntu-latest permissions: - contents: write + contents: read + actions: read needs: - check-tag - check-release-notes - determine-run-id - - doc - secrets: inherit + - resolve-bindings-package + outputs: + artifact-id: ${{ steps.upload.outputs.artifact-id }} + env: + ARCHIVE_NAME: ${{ github.event.repository.name }}-${{ inputs.git-tag }} + BINDINGS_PACKAGE: ${{ needs.resolve-bindings-package.outputs.bindings-package }} + RELEASE_COMPONENT: ${{ inputs.component }} + RELEASE_GIT_TAG: ${{ inputs.git-tag }} + RELEASE_REPOSITORY: ${{ github.repository }} + RELEASE_RUN_ID: ${{ needs.determine-run-id.outputs.run-id }} + steps: + - name: Checkout release control plane + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: Checkout release source + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: refs/tags/${{ inputs.git-tag }} + path: release-source + persist-credentials: false + + - name: Set up Python + uses: ./.github/actions/setup-hardened-python + + - name: Install CI tool dependencies + run: python -m pip install -e ./ci + + - name: Download and validate wheels + env: + GH_TOKEN: ${{ github.token }} + run: | + ./ci/tools/download-wheels \ + "$RELEASE_RUN_ID" \ + "$RELEASE_COMPONENT" \ + "$RELEASE_REPOSITORY" \ + "release/wheels" \ + "$RELEASE_GIT_TAG" \ + "$BINDINGS_PACKAGE" + python -m ci.tools.validate_release_wheels \ + "$RELEASE_GIT_TAG" \ + "$RELEASE_COMPONENT" \ + "release/wheels" \ + --bindings-package "$BINDINGS_PACKAGE" \ + --release-source-root release-source + + - name: Archive release source + run: | + git -C release-source archive \ + --format=tar.gz \ + --prefix="$ARCHIVE_NAME/" \ + --output="$GITHUB_WORKSPACE/release/$ARCHIVE_NAME.tar.gz" \ + HEAD + sha256sum "release/$ARCHIVE_NAME.tar.gz" \ + | awk '{print $1}' > "release/$ARCHIVE_NAME.tar.gz.sha256sum" + + # Consumers use this immutable artifact ID, never re-download build outputs. + - name: Upload prepared release artifacts + id: upload + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 + with: + name: ${{ inputs.release-action == 'dry-run' && 'release-artifacts-dry-run' || 'release-artifacts' }}-${{ inputs.component }}-${{ inputs.git-tag }} + path: release/ + if-no-files-found: error + retention-days: 3 + + upload-archive: + name: Upload GitHub release artifacts + permissions: + contents: write + needs: [prepare-artifacts, doc] uses: ./.github/workflows/release-upload.yml with: git-tag: ${{ inputs.git-tag }} - run-id: ${{ needs.determine-run-id.outputs.run-id }} + artifact-id: ${{ needs.prepare-artifacts.outputs.artifact-id }} component: ${{ inputs.component }} dry-run: ${{ inputs.release-action == 'dry-run' }} @@ -296,40 +414,27 @@ jobs: name: Publish wheels to TestPyPI if: >- ${{ !cancelled() && inputs.release-action == 'full-release' && - needs.check-tag.result == 'success' && - needs.check-release-notes.result == 'success' && - needs.determine-run-id.result == 'success' && - needs.doc.result == 'success' && + needs.prepare-artifacts.result == 'success' && needs.doc.result == 'success' && (inputs.component != 'cuda-pathfinder' || needs.ensure-pathfinder-draft.result == 'success') }} runs-on: ubuntu-latest - needs: - - check-tag - - check-release-notes - - determine-run-id - - doc - - ensure-pathfinder-draft + needs: [prepare-artifacts, doc, ensure-pathfinder-draft] environment: name: testpypi url: https://test.pypi.org/p/${{ inputs.component }}/ permissions: id-token: write steps: - - name: Checkout Source - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - - name: Download component wheels - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - ./ci/tools/download-wheels "${{ needs.determine-run-id.outputs.run-id }}" "${{ inputs.component }}" "${{ github.repository }}" "dist" - - - name: Validate wheel versions for release tag - run: | - ./ci/tools/validate-release-wheels "${{ inputs.git-tag }}" "${{ inputs.component }}" "dist" + - name: Download prepared release artifacts + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 + with: + artifact-ids: ${{ needs.prepare-artifacts.outputs.artifact-id }} + path: release/ + merge-multiple: true - name: Publish package distributions to TestPyPI uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3 with: + packages-dir: release/wheels/ repository-url: https://test.pypi.org/legacy/ verify-testpypi: @@ -352,7 +457,6 @@ jobs: # These jobs have no checkout; $/ loads the action from the workflow's commit. uses: $/.github/actions/setup-hardened-python with: - python-version: "3.12" venv: ${{ runner.temp }}/verify - name: Install Pathfinder from index and verify @@ -387,34 +491,27 @@ jobs: name: Publish wheels to PyPI if: >- ${{ !cancelled() && inputs.release-action == 'full-release' && - needs.determine-run-id.result == 'success' && needs.publish-testpypi.result == 'success' && + needs.prepare-artifacts.result == 'success' && needs.publish-testpypi.result == 'success' && (inputs.component != 'cuda-pathfinder' || needs.verify-testpypi.result == 'success') }} runs-on: ubuntu-latest - needs: - - determine-run-id - - publish-testpypi - - verify-testpypi + needs: [prepare-artifacts, publish-testpypi, verify-testpypi] environment: name: pypi url: https://pypi.org/p/${{ inputs.component }}/ permissions: id-token: write steps: - - name: Checkout Source - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - - name: Download component wheels - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - ./ci/tools/download-wheels "${{ needs.determine-run-id.outputs.run-id }}" "${{ inputs.component }}" "${{ github.repository }}" "dist" - - - name: Validate wheel versions for release tag - run: | - ./ci/tools/validate-release-wheels "${{ inputs.git-tag }}" "${{ inputs.component }}" "dist" + - name: Download prepared release artifacts + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 + with: + artifact-ids: ${{ needs.prepare-artifacts.outputs.artifact-id }} + path: release/ + merge-multiple: true - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3 + with: + packages-dir: release/wheels/ verify-pypi: name: Verify Pathfinder on PyPI diff --git a/.github/workflows/test-sdist-linux.yml b/.github/workflows/test-sdist-linux.yml index dd481a77ab86..db329ca35dd9 100644 --- a/.github/workflows/test-sdist-linux.yml +++ b/.github/workflows/test-sdist-linux.yml @@ -133,7 +133,7 @@ jobs: if: ${{ env.BUILD_BINDINGS != 'true' && env.BUILD_CORE == 'true' }} uses: ./.github/actions/download-artifact-retry with: - name: ${{ fromJSON(inputs.bindings-package).release_status == 'maintenance' && 'maintenance-bindings' || 'cuda-bindings' }}-python312-cuda${{ fromJSON(inputs.bindings-package).toolkit_version }}-${{ inputs.host-platform }}-${{ github.sha }} + name: cuda-bindings-python312-cuda${{ fromJSON(inputs.bindings-package).toolkit_version }}-${{ inputs.host-platform }}-${{ github.sha }} path: ${{ env.BINDINGS_ROOT }}/dist - name: Constrain cuda.core to the local cuda.bindings wheel diff --git a/.github/workflows/test-sdist-windows.yml b/.github/workflows/test-sdist-windows.yml index d15b747612b2..4677f0b40a4e 100644 --- a/.github/workflows/test-sdist-windows.yml +++ b/.github/workflows/test-sdist-windows.yml @@ -137,7 +137,7 @@ jobs: if: ${{ env.BUILD_BINDINGS != 'true' && env.BUILD_CORE == 'true' }} uses: ./.github/actions/download-artifact-retry with: - name: ${{ fromJSON(inputs.bindings-package).release_status == 'maintenance' && 'maintenance-bindings' || 'cuda-bindings' }}-python312-cuda${{ fromJSON(inputs.bindings-package).toolkit_version }}-${{ inputs.host-platform }}-${{ github.sha }} + name: cuda-bindings-python312-cuda${{ fromJSON(inputs.bindings-package).toolkit_version }}-${{ inputs.host-platform }}-${{ github.sha }} path: ${{ env.BINDINGS_ROOT }}/dist - name: Constrain cuda.core to the local cuda.bindings wheel diff --git a/.github/workflows/test-wheel-linux.yml b/.github/workflows/test-wheel-linux.yml index 04efea70043d..84642819ef15 100644 --- a/.github/workflows/test-wheel-linux.yml +++ b/.github/workflows/test-wheel-linux.yml @@ -96,9 +96,9 @@ jobs: BINDINGS_ROOT: ($package.package_root // "cuda_bindings_13"), BINDINGS_BUILD_VERSION: ($package.toolkit_version // ""), BINDINGS_SOURCE: (if $package == null then "floor" else "main" end), - BINDINGS_ARTIFACT_PREFIX: (if $package.release_status == "maintenance" then "maintenance-bindings" else "cuda-bindings" end), + BINDINGS_ARTIFACT_PREFIX: "cuda-bindings", CORE_CYTHON_SUFFIX: (if $package.release_status == "maintenance" then "-cu\($package.cuda_major)-tests" else "-tests" end), - PYTHON_ARTIFACT_NAME: (if $package.release_status == "maintenance" then "maintenance-python-wheel" else "cuda-python-wheel" end) + PYTHON_ARTIFACT_NAME: (if $package == null then "" else "cuda-python-wheel-cuda\($package.toolkit_version)" end) }) ' <<< "$TEST_MATRIX") fi diff --git a/.github/workflows/test-wheel-windows.yml b/.github/workflows/test-wheel-windows.yml index 3e91738de771..e8cbd1721a8c 100644 --- a/.github/workflows/test-wheel-windows.yml +++ b/.github/workflows/test-wheel-windows.yml @@ -92,9 +92,9 @@ jobs: BINDINGS_ROOT: ($package.package_root // "cuda_bindings_13"), BINDINGS_BUILD_VERSION: ($package.toolkit_version // ""), BINDINGS_SOURCE: (if $package == null then "floor" else "main" end), - BINDINGS_ARTIFACT_PREFIX: (if $package.release_status == "maintenance" then "maintenance-bindings" else "cuda-bindings" end), + BINDINGS_ARTIFACT_PREFIX: "cuda-bindings", CORE_CYTHON_SUFFIX: (if $package.release_status == "maintenance" then "-cu\($package.cuda_major)-tests" else "-tests" end), - PYTHON_ARTIFACT_NAME: (if $package.release_status == "maintenance" then "maintenance-python-wheel" else "cuda-python-wheel" end) + PYTHON_ARTIFACT_NAME: (if $package == null then "" else "cuda-python-wheel-cuda\($package.toolkit_version)" end) }) ' <<< "$TEST_MATRIX") fi diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index abeffc5eb539..6c1748b82613 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -82,7 +82,7 @@ repos: name: Check pixi cuda-version pins track ci/versions.yml entry: python -m ci.tools.check_pixi_cuda_version language: python - additional_dependencies: [pyyaml==6.0.3] + additional_dependencies: [packaging==26.0, pyyaml==6.0.3] files: '^(ci/versions\.yml|ci/tools/(bindings_config|check_pixi_cuda_version)\.py|cuda_bindings_(?:12|13)/pixi\.toml|cuda_core/pixi\.toml)$' pass_filenames: false diff --git a/ci/tools/bindings_config.py b/ci/tools/bindings_config.py index a0449b51ada9..8a0bb9be921a 100644 --- a/ci/tools/bindings_config.py +++ b/ci/tools/bindings_config.py @@ -1,19 +1,29 @@ # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -"""Read bindings package roots and release roles from the existing toolkit pins.""" +"""Read bindings configuration and resolve releases against their tagged source.""" from __future__ import annotations import argparse import json +import re import sys +from collections.abc import Mapping, Sequence from dataclasses import dataclass from pathlib import Path +from typing import Any import yaml +from packaging.version import InvalidVersion, Version -DEFAULT_CONFIG = Path(__file__).resolve().parents[2] / "ci" / "versions.yml" +REPO_ROOT = Path(__file__).resolve().parents[2] +DEFAULT_CONFIG = REPO_ROOT / "ci" / "versions.yml" +SCHEMA_VERSION = 2 +RELEASE_STATUSES = frozenset({"current", "maintenance"}) +_DEPENDENT_RELEASE_TAG_PREFIXES = ("cuda-core-v", "cuda-pathfinder-v") +_PACKAGE_ROOT_PATTERN = re.compile(r"[A-Za-z0-9._-]+(?:/[A-Za-z0-9._-]+)*") +_TOOLKIT_VERSION_PATTERN = re.compile(r"[1-9][0-9]*\.[0-9]+\.[0-9]+") @dataclass(frozen=True) @@ -38,6 +48,16 @@ def cuda_major(self) -> str: def cuda_variant(self) -> str: return f"cu{self.cuda_major}" + def version_from_tag(self, tag: str) -> Version | None: + """Return a matching release version for this configured package root.""" + version = parse_prefixed_version(tag, "v") + if version is None or version.release[:2] != self.toolkit[:2]: + return None + return version + + def matches_tag(self, tag: str) -> bool: + return self.version_from_tag(tag) is not None + def to_dict(self) -> dict[str, str]: return { "package_root": self.package_root, @@ -63,40 +83,188 @@ def get_package(self, package_root: str) -> BindingsPackage: def package_for_release_status(self, release_status: str) -> BindingsPackage: return next(package for package in self.package_roots if package.release_status == release_status) + def match_tag(self, tag: str) -> BindingsPackage | None: + return next((package for package in self.package_roots if package.matches_tag(tag)), None) -def load_config(path: Path = DEFAULT_CONFIG) -> BindingsConfig: - """Normalize legacy build/prev_build fields without changing their consumers.""" - raw = yaml.safe_load(path.read_text(encoding="utf-8")) + +def parse_config(raw: Mapping[str, Any]) -> BindingsConfig: + """Normalize legacy toolkit pins or the explicit package-root registry.""" packages = [] - for field, release_status in (("build", "current"), ("prev_build", "maintenance")): - major, minor, patch = map(int, raw["cuda"][field]["version"].split(".")) - packages.append(BindingsPackage(f"cuda_bindings_{major}", (major, minor, patch), release_status)) + if "schema_version" in raw: + if raw["schema_version"] != SCHEMA_VERSION: + raise ValueError(f"schema_version must be {SCHEMA_VERSION}") + for package_root, data in raw["cuda"]["bindings"]["package_roots"].items(): + major, minor, patch = map(int, data["toolkit_version"].split(".")) + packages.append(BindingsPackage(package_root, (major, minor, patch), data["release_status"])) + else: + for field, release_status in (("build", "current"), ("prev_build", "maintenance")): + major, minor, patch = map(int, raw["cuda"][field]["version"].split(".")) + packages.append(BindingsPackage(f"cuda_bindings_{major}", (major, minor, patch), release_status)) + if len(packages) != 2 or {package.release_status for package in packages} != RELEASE_STATUSES: + raise ValueError("bindings configuration must contain one current and one maintenance package") + if len({package.toolkit[0] for package in packages}) != len(packages): + raise ValueError("CUDA bindings cuda_major values must be unique") return BindingsConfig(tuple(packages), tuple(raw["python"]["supported"])) +def load_config(path: Path = DEFAULT_CONFIG) -> BindingsConfig: + return parse_config(yaml.safe_load(path.read_text(encoding="utf-8"))) + + +def wheel_python_versions(toolkit_version: str, platform: str, versions: Sequence[str]) -> list[str]: + """Select wheel interpreters, including Windows ARM64's toolkit/Python limits.""" + if platform == "win-arm64": + if Version(toolkit_version).release[:2] < (13, 4): + return [] + # Retained release tags can include Python 3.10, which has no WoA wheels. + return [version for version in versions if version != "3.10"] + return list(versions) + + +def parse_prefixed_version(tag: str, prefix: str) -> Version | None: + """Parse the PEP 440 version following an exact component tag prefix.""" + if not tag.startswith(prefix): + return None + value = tag.removeprefix(prefix) + try: + version = Version(value) + except InvalidVersion: + return None + if str(version) != value or len(version.release) != 3 or version.epoch != 0 or version.local is not None: + return None + return version + + +def parse_package_root(value: Any, label: str = "package_root") -> str: + """Validate a package path received through the release JSON interface.""" + if ( + not isinstance(value, str) + or _PACKAGE_ROOT_PATTERN.fullmatch(value) is None + or any(part in (".", "..") for part in value.split("/")) + ): + raise ValueError(f"{label} must be a normalized repository-relative POSIX path: {value!r}") + return value + + +def resolve_release_bindings_package( + release_tag: str, + release_source_root: Path, +) -> dict[str, object]: + """Resolve a release from its tagged source, including retained CUDA 13 tags.""" + if not release_source_root.is_dir(): + raise ValueError(f"release source root is not a directory: {release_source_root}") + + config_path = release_source_root / "ci" / "versions.yml" + bindings_version = parse_prefixed_version(release_tag, "v") + is_dependent_release = any( + parse_prefixed_version(release_tag, prefix) is not None for prefix in _DEPENDENT_RELEASE_TAG_PREFIXES + ) + if bindings_version is None and not is_dependent_release: + raise ValueError(f"unsupported release tag: {release_tag!r}") + + try: + raw = yaml.safe_load(config_path.read_text(encoding="utf-8")) + legacy_config = "schema_version" not in raw + if legacy_config: + current_toolkit = raw["cuda"]["build"]["version"] + if _TOOLKIT_VERSION_PATTERN.fullmatch(current_toolkit) is None or not current_toolkit.startswith("13."): + raise ValueError("legacy release compatibility requires a CUDA 13 build toolkit") + current_root = ( + "cuda_bindings_13" if (release_source_root / "cuda_bindings_13").is_dir() else "cuda_bindings" + ) + package = BindingsPackage(current_root, tuple(map(int, current_toolkit.split("."))), "current") + if bindings_version is not None and bindings_version.release[0] == 12: + maintenance_toolkit = raw["cuda"]["prev_build"]["version"] + if _TOOLKIT_VERSION_PATTERN.fullmatch(maintenance_toolkit) is None: + raise ValueError("legacy prev_build toolkit must have major.minor.patch format") + package = BindingsPackage( + "cuda_bindings_12", tuple(map(int, maintenance_toolkit.split("."))), "maintenance" + ) + else: + config = parse_config(raw) + package = ( + config.package_for_release_status("current") if is_dependent_release else config.match_tag(release_tag) + ) + except (OSError, yaml.YAMLError, KeyError, TypeError, ValueError) as error: + raise ValueError(f"could not resolve release source config {config_path}: {error}") from error + if package is None: + raise ValueError( + f"no CUDA bindings package root in tagged config {config_path} matches release tag: {release_tag!r}" + ) + if bindings_version is not None and not package.matches_tag(release_tag): + raise ValueError(f"release tag {release_tag!r} does not match tagged toolkit {package.toolkit_version}") + if legacy_config and not (release_source_root / package.package_root).is_dir(): + raise ValueError(f"tagged source has no bindings root {package.package_root!r}") + + record: dict[str, object] = { + "package_root": package.package_root, + "toolkit_version": package.toolkit_version, + } + if bindings_version is not None: + record["release_version"] = str(bindings_version) + if legacy_config and package.release_status == "current": + record["allow_legacy_python_artifact"] = True + return record + + +def write_github_env(data: Mapping[str, object], path: Path) -> None: + """Append the bindings build environment consumed by documentation jobs.""" + package_root = parse_package_root(data.get("package_root"), "resolved package_root") + toolkit_version = data.get("toolkit_version") + if not isinstance(toolkit_version, str) or _TOOLKIT_VERSION_PATTERN.fullmatch(toolkit_version) is None: + raise ValueError(f"resolved toolkit_version must have major.minor.patch format: {toolkit_version!r}") + with path.open("a", encoding="utf-8") as stream: + stream.write(f"BUILD_CTK_VER={toolkit_version}\n") + stream.write(f"BINDINGS_PACKAGE_ROOT={package_root}\n") + stream.write(f"RESOLVED_BINDINGS_PACKAGE={json.dumps(data, separators=(',', ':'))}\n") + + def main(argv: list[str] | None = None) -> int: parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("--config", type=Path, default=DEFAULT_CONFIG) output = parser.add_mutually_exclusive_group() output.add_argument("--package-roots", action="store_true") - output.add_argument("--release-status", choices=("current", "maintenance")) + output.add_argument("--release-status", choices=sorted(RELEASE_STATUSES)) + output.add_argument("--release-tag", help="resolve a release tag against its source tree") + parser.add_argument("--release-source-root", type=Path) + commands = parser.add_subparsers(dest="command") + write_env = commands.add_parser("write-github-env", help="append package JSON from stdin to GITHUB_ENV") + write_env.add_argument("github_env", type=Path, metavar="GITHUB_ENV") args = parser.parse_args(argv) - config = load_config(args.config) - if args.release_status: - result = config.package_for_release_status(args.release_status).to_dict() - else: - packages = [package.to_dict() for package in config.package_roots] - result = ( - packages - if args.package_roots - else { - "python": {"supported": list(config.python_supported)}, - "package_roots": packages, - } - ) - print(json.dumps(result, separators=(",", ":"), sort_keys=True)) - return 0 + try: + if args.command == "write-github-env": + if args.package_roots or args.release_status or args.release_tag or args.release_source_root is not None: + parser.error("write-github-env does not accept registry selectors") + value = json.load(sys.stdin) + if not isinstance(value, dict): + raise ValueError("stdin for write-github-env must contain a JSON object") + write_github_env(value, args.github_env) + return 0 + if args.release_tag: + if args.release_source_root is None: + parser.error("--release-tag requires --release-source-root") + result: object = resolve_release_bindings_package(args.release_tag, args.release_source_root) + else: + if args.release_source_root is not None: + parser.error("--release-source-root requires --release-tag") + config = load_config(args.config) + if args.release_status: + result = config.package_for_release_status(args.release_status).to_dict() + else: + packages = [package.to_dict() for package in config.package_roots] + result = ( + packages + if args.package_roots + else { + "python": {"supported": list(config.python_supported)}, + "package_roots": packages, + } + ) + print(json.dumps(result, separators=(",", ":"), sort_keys=True)) + return 0 + except ValueError as error: + parser.error(str(error)) if __name__ == "__main__": diff --git a/ci/tools/check_release_notes.py b/ci/tools/check_release_notes.py index 7da330046ba3..73e3ebf29c9d 100644 --- a/ci/tools/check_release_notes.py +++ b/ci/tools/check_release_notes.py @@ -4,10 +4,13 @@ """Check that versioned release-notes files exist before releasing. Usage: - python check_release_notes.py --git-tag --component + python -m ci.tools.check_release_notes --git-tag --component -Notes and release configuration come from the working tree. Successful checks -append the parsed version to GITHUB_OUTPUT when it is set. +Each normal release requires nonempty notes for its exact version and component +in the tagged source checkout. Post releases do not require new notes, except +Pathfinder requires a notes file for every release and permits empty files. + +Successful checks append the parsed version to GITHUB_OUTPUT when it is set. Exit codes: 0 — release-notes policy satisfied @@ -18,100 +21,91 @@ from __future__ import annotations import argparse +import json import os -import re import sys +from collections.abc import Mapping from pathlib import Path -COMPONENT_TO_PACKAGE: dict[str, str] = { - "cuda-core": "cuda_core", - "cuda-bindings": "cuda_bindings_13", - "cuda-pathfinder": "cuda_pathfinder", - "cuda-python": "cuda_python", -} +from packaging.version import Version -# Version characters are restricted to digit-prefixed word chars and dots, so -# malformed inputs like "v../evil" or "v1/2/3" cannot flow into the notes path. -_VERSION_PATTERN = r"\d[\w.]*" - -# Each component has exactly one valid tag-prefix form. cuda-bindings and -# cuda-python share the bare "v" namespace (setuptools-scm lookup). -COMPONENT_TO_TAG_RE: dict[str, re.Pattern[str]] = { - "cuda-bindings": re.compile(rf"^v(?P{_VERSION_PATTERN})$"), - "cuda-python": re.compile(rf"^v(?P{_VERSION_PATTERN})$"), - "cuda-core": re.compile(rf"^cuda-core-v(?P{_VERSION_PATTERN})$"), - "cuda-pathfinder": re.compile(rf"^cuda-pathfinder-v(?P{_VERSION_PATTERN})$"), +from . import bindings_config + +COMPONENTS: dict[str, tuple[str, str]] = { + "cuda-core": ("cuda_core", "cuda-core-v"), + "cuda-bindings": ("cuda_bindings_13", "v"), + "cuda-pathfinder": ("cuda_pathfinder", "cuda-pathfinder-v"), + "cuda-python": ("cuda_python", "v"), } -BACKPORT_PLANNING_COMPONENTS = frozenset({"cuda-bindings", "cuda-python"}) -BACKPORT_NOT_PLANNED = "not planned" -BACKPORT_BRANCH_RE = re.compile(r"""^backport_branch:\s*["']?(?P[^"'\s#]+)""") -BACKPORT_BRANCH_NAME_RE = re.compile(r"^\d+\.\d+\.x$") +def _resolved_bindings_target(data: Mapping[str, object], git_tag: str) -> tuple[str, Version]: + """Read the release resolver fields consumed by this script.""" + package_root = bindings_config.parse_package_root(data.get("package_root"), "resolved package_root") + raw_version = data.get("release_version") + if not isinstance(raw_version, str): + raise ValueError("resolved CUDA bindings package has no release_version") + version = Version(raw_version) + tag_version = bindings_config.parse_prefixed_version(git_tag, "v") + if tag_version != version: + raise ValueError(f"resolved CUDA bindings package does not match release tag {git_tag!r}") + return package_root, version -def parse_version_from_tag(git_tag: str, component: str) -> str | None: - """Extract the version string from a tag, given the target component. - Returns None if the tag does not match the component's expected prefix - or contains characters outside the allowed version set. - """ - pattern = COMPONENT_TO_TAG_RE.get(component) - if pattern is None: +def _release_target_from_tag( + git_tag: str, + component: str, + bindings_package: Mapping[str, object] | None = None, +) -> tuple[str, str] | None: + """Return the release version and source tree selected by a component tag.""" + metadata = COMPONENTS.get(component) + if metadata is None: return None - m = pattern.match(git_tag) - return m.group("version") if m else None - + package_dir, prefix = metadata + if component == "cuda-bindings": + if bindings_package is None: + package = bindings_config.load_config().match_tag(git_tag) + if package is None: + return None + package_root = package.package_root + version = package.version_from_tag(git_tag) + else: + package_root, version = _resolved_bindings_target(bindings_package, git_tag) + else: + version = bindings_config.parse_prefixed_version(git_tag, prefix) + if version is None: + return None + return str(version), package_root if component == "cuda-bindings" else package_dir -def is_post_release(version: str) -> bool: - return ".post" in version +def parse_version_from_tag( + git_tag: str, + component: str, + bindings_package: Mapping[str, object] | None = None, +) -> str | None: + """Extract the version string from a tag, given the target component. -def load_backport_branch(repo_root: Path = Path(".")) -> str | None: - path = repo_root / "ci" / "versions.yml" - try: - with open(path, encoding="utf-8") as f: - for line in f: - m = BACKPORT_BRANCH_RE.match(line.strip()) - if m: - return m.group("branch") - except FileNotFoundError: - pass - github_ref_name = os.environ.get("GITHUB_REF_NAME", "") - if BACKPORT_BRANCH_NAME_RE.match(github_ref_name): - return github_ref_name - return None + Returns None if the tag does not match the component's expected prefix, + contains characters outside the allowed version set, or (for bindings) + does not select a configured package root. + """ + target = _release_target_from_tag(git_tag, component, bindings_package) + return target[0] if target is not None else None -def is_backport_version(version: str, backport_branch: str) -> bool: - if backport_branch.endswith(".x"): - return version.startswith(backport_branch[:-1]) - return version == backport_branch +def is_post_release(version: str) -> bool: + return Version(version).post is not None def notes_path(package: str, version: str) -> Path: return Path(package, "docs", "source", "release", f"{version}-notes.rst") -def check_release_notes(git_tag: str, component: str, repo_root: Path = Path(".")) -> list[tuple[str | Path, str]]: - """Return a list of (path, reason) for missing or empty release notes. - - ``path`` is the repo-relative notes path, or a ```` naming the - offending argument when the tag or component itself is the problem. - - Pathfinder requires a notes file, including for .post releases, but allows - an empty file. Other components require non-empty notes and skip .post. - """ - if component not in COMPONENT_TO_PACKAGE: - return [("", f"unknown component '{component}'")] - - version = parse_version_from_tag(git_tag, component) - if version is None: - return [("", f"cannot parse version from tag '{git_tag}' for component '{component}'")] - +def _check_release_target(version: str, package: str, component: str, repo_root: Path) -> list[tuple[str | Path, str]]: if is_post_release(version) and component != "cuda-pathfinder": return [] - path = notes_path(COMPONENT_TO_PACKAGE[component], version) + path = notes_path(package, version) full = repo_root / path if not full.is_file(): return [(path, "missing")] @@ -120,16 +114,6 @@ def check_release_notes(git_tag: str, component: str, repo_root: Path = Path("." return [] -def write_step_summary(message: str) -> None: - summary_path = os.environ.get("GITHUB_STEP_SUMMARY") - if not summary_path: - return - with open(summary_path, "a", encoding="utf-8") as f: - f.write(message) - if not message.endswith("\n"): - f.write("\n") - - def write_version_output(version: str) -> None: output_path = os.environ.get("GITHUB_OUTPUT") if output_path: @@ -137,126 +121,69 @@ def write_version_output(version: str) -> None: f.write(f"version={version}\n") -def warn_missing_backport_notes(git_tag: str, component: str, problems: list[tuple[str | Path, str]]) -> None: - print(f"WARNING: missing or empty release notes for backport tag {git_tag}:") - summary_lines = [ - "## Release Notes Reminder", - "", - f"Backport release `{git_tag}` for `{component}` is allowed to continue,", - "but the following release-note files are missing or empty in the workflow source:", - "", - ] - for path, reason in problems: - print(f"::warning file={path}::Release notes for backport tag {git_tag} are {reason}.") - print(f" - {path} ({reason})") - summary_lines.append(f"- `{path}` ({reason})") - summary_lines.extend(["", "Please add the backport release notes on `main` if they are not already present."]) - write_step_summary("\n".join(summary_lines)) - - -def validate_backport_decision( - *, +def check_release_notes( git_tag: str, component: str, - version: str, - backport_git_tag: str, - backport_branch: str | None, - repo_root: Path, -) -> tuple[int | None, list[tuple[str | Path, str]]]: - if component not in BACKPORT_PLANNING_COMPONENTS or is_post_release(version): - return None, [] - - if backport_branch is None: - print("ERROR: cannot determine backport branch from ci/versions.yml or GITHUB_REF_NAME.", file=sys.stderr) - return 2, [] - - if is_backport_version(version, backport_branch): - problems = check_release_notes(git_tag, component, repo_root) - if problems: - warn_missing_backport_notes(git_tag, component, problems) - else: - print(f"Release notes present for backport tag {git_tag}, component {component}.") - return 0, [] - - decision = backport_git_tag.strip() - if not decision: - return ( - 1, - [ - ( - "", - f"required for {component} mainline releases; use a backport tag or '{BACKPORT_NOT_PLANNED}'", - ) - ], - ) - - if decision == BACKPORT_NOT_PLANNED: - print(f"Backport release not planned for {git_tag}, skipping backport release-notes check.") - return None, [] + repo_root: Path = Path("."), + bindings_package: Mapping[str, object] | None = None, +) -> list[tuple[str | Path, str]]: + """Return a list of (path, reason) for missing or empty release notes. - backport_version = parse_version_from_tag(decision, component) - if backport_version is None: - print( - f"ERROR: backport tag {decision!r} does not match the expected format for component {component!r}.", - file=sys.stderr, - ) - return 2, [] + ``path`` is the repo-relative notes path, or a ```` naming the + offending argument when the tag or component itself is the problem. - if not is_backport_version(backport_version, backport_branch): - print( - f"ERROR: backport tag {decision!r} does not match configured backport branch {backport_branch!r}.", - file=sys.stderr, - ) - return 2, [] + Pathfinder requires a notes file, including for .post releases, but allows + an empty file. Other components require non-empty notes and skip .post. + """ + if component not in COMPONENTS: + return [("", f"unknown component '{component}'")] - problems = check_release_notes(decision, component, repo_root) - if problems: - return 1, problems - return None, [] + target = _release_target_from_tag(git_tag, component, bindings_package) + if target is None: + return [("", f"cannot parse version from tag '{git_tag}' for component '{component}'")] + version, package = target + return _check_release_target(version, package, component, repo_root) def main(argv: list[str] | None = None) -> int: parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("--git-tag", required=True) - parser.add_argument("--component", required=True, choices=list(COMPONENT_TO_PACKAGE)) - parser.add_argument("--repo-root", default=Path("."), type=Path) - parser.add_argument("--backport-git-tag", default="") - parser.add_argument("--backport-branch", default="") + parser.add_argument("--component", required=True, choices=list(COMPONENTS)) + parser.add_argument( + "--repo-root", + default=Path("."), + type=Path, + help="tagged source checkout containing the component's versioned release notes", + ) + parser.add_argument( + "--bindings-package", + default="", + help="normalized CUDA bindings package JSON from the release resolver", + ) args = parser.parse_args(argv) - version = parse_version_from_tag(args.git_tag, args.component) - if version is None: + try: + bindings_package = json.loads(args.bindings_package) if args.bindings_package else None + if bindings_package is not None and not isinstance(bindings_package, dict): + raise ValueError("resolved CUDA bindings package must be a JSON object") + target = _release_target_from_tag(args.git_tag, args.component, bindings_package) + except ValueError as error: + print(f"ERROR: invalid CUDA bindings configuration: {error}", file=sys.stderr) + return 2 + if target is None: print( f"ERROR: tag {args.git_tag!r} does not match the expected format for component {args.component!r}.", file=sys.stderr, ) return 2 + version, package = target if is_post_release(version) and args.component != "cuda-pathfinder": print(f"Post-release tag ({args.git_tag}), skipping release-notes check.") write_version_output(version) return 0 - backport_branch = args.backport_branch or load_backport_branch(args.repo_root) - rc, problems = validate_backport_decision( - git_tag=args.git_tag, - component=args.component, - version=version, - backport_git_tag=args.backport_git_tag, - backport_branch=backport_branch, - repo_root=args.repo_root, - ) - if rc is not None: - if problems: - print(f"ERROR: release notes policy failed for tag {args.git_tag}:", file=sys.stderr) - for path, reason in problems: - print(f" - {path} ({reason})", file=sys.stderr) - if rc == 0: - write_version_output(version) - return rc - - if not problems: - problems = check_release_notes(args.git_tag, args.component, args.repo_root) + problems = _check_release_target(version, package, args.component, args.repo_root) if not problems: print(f"Release notes present for tag {args.git_tag}, component {args.component}.") @@ -266,7 +193,7 @@ def main(argv: list[str] | None = None) -> int: print(f"ERROR: missing or empty release notes for tag {args.git_tag}:", file=sys.stderr) for path, reason in problems: print(f" - {path} ({reason})", file=sys.stderr) - print("Add versioned release notes before releasing.", file=sys.stderr) + print("Add versioned release notes to the tagged source before releasing.", file=sys.stderr) return 1 diff --git a/ci/tools/download-wheels b/ci/tools/download-wheels index 709c81d3d12a..d5062968152c 100755 --- a/ci/tools/download-wheels +++ b/ci/tools/download-wheels @@ -26,7 +26,7 @@ _retry_gh_run_download() { local staging staging=$(mktemp -d -p "${RUNNER_TEMP:-/tmp}") - until gh run download "$@" -D "${staging}"; do + until gh run download "$@" --dir "${staging}"; do rm -rf "${staging}" if (( attempt >= max_attempts )); then echo "::error::gh run download failed after ${attempt} attempt(s): $*" >&2 @@ -39,20 +39,22 @@ _retry_gh_run_download() { staging=$(mktemp -d -p "${RUNNER_TEMP:-/tmp}") done - # Promote each downloaded artifact directory into the caller's CWD. - for artifact_dir in "${staging}"/*/; do - mv "${artifact_dir%/}" . + # Promote the selected artifact into the private release staging directory. + for artifact in "${staging}"/*; do + mv "${artifact}" "${ARTIFACTS_DIR}/" done rm -rf "${staging}" } # Check required arguments if [[ $# -lt 3 ]]; then - echo "Usage: $0 [output-dir]" >&2 + echo "Usage: $0 [output-dir] [git-tag] [bindings-package-json]" >&2 echo " run-id: The GitHub Actions run ID containing the artifacts" >&2 echo " component: The component name pattern to download (e.g., cuda-core, cuda-bindings)" >&2 echo " repository: The GitHub repository (e.g., NVIDIA/cuda-python)" >&2 echo " output-dir: Optional output directory (default: ./dist)" >&2 + echo " git-tag: Optional release tag used to select its configured bindings package" >&2 + echo " bindings-package-json: Resolved package JSON; required for bindings/python release tags" >&2 exit 1 fi @@ -60,6 +62,8 @@ RUN_ID="$1" COMPONENT="$2" REPOSITORY="$3" OUTPUT_DIR="${4:-./dist}" +GIT_TAG="${5:-}" +RESOLVED_BINDINGS_PACKAGE_JSON="${6:-}" # Ensure we have a GitHub token if [[ -z "${GH_TOKEN:-}" ]]; then @@ -69,44 +73,113 @@ fi echo "Downloading wheels for component: $COMPONENT from run: $RUN_ID" -# Download component wheels using the same logic as release.yml +ARTIFACTS_DIR="$(mktemp -d)" +cleanup() { + rm -rf -- "$ARTIFACTS_DIR" +} +trap cleanup EXIT + +# Select artifacts before downloading so non-wheel test artifacts cannot enter +# the release staging directory. if [[ "$COMPONENT" == "all" ]]; then - # Download all component patterns - _retry_gh_run_download "$RUN_ID" -p "cuda-*" -R "$REPOSITORY" + ARTIFACT_PATTERN="cuda-*" else - _retry_gh_run_download "$RUN_ID" -p "${COMPONENT}*" -R "$REPOSITORY" + ARTIFACT_PATTERN="${COMPONENT}*" fi -# Create output directory -mkdir -p "$OUTPUT_DIR" +# Dependent-tag docs also select one metapackage using the resolved toolkit. +IS_BINDINGS_RELEASE=false +if [[ "$COMPONENT" != "all" \ + && "$COMPONENT" =~ ^cuda-(bindings|python)$ \ + && ( "$GIT_TAG" == v* \ + || ( "$COMPONENT" == "cuda-python" && -n "$RESOLVED_BINDINGS_PACKAGE_JSON" ) ) ]]; then + IS_BINDINGS_RELEASE=true +fi -# Process downloaded artifacts -for p in cuda-* -do - if [[ ! -d "$p" ]]; then - continue +if [[ "$IS_BINDINGS_RELEASE" == true ]]; then + if [[ -z "$RESOLVED_BINDINGS_PACKAGE_JSON" ]]; then + echo "Error: resolved bindings-package JSON is required for $COMPONENT release tag $GIT_TAG" >&2 + exit 1 fi - - # exclude cython test artifacts - if [[ "${p}" == *-tests ]]; then - echo "Skipping test artifact: $p" - continue + if ! command -v jq >/dev/null 2>&1; then + echo "Error: jq is required for bindings release artifact routing" >&2 + exit 1 fi + if ! TOOLKIT_VERSION="$(jq -er '.toolkit_version | select(type == "string")' \ + <<< "$RESOLVED_BINDINGS_PACKAGE_JSON")"; then + echo "Error: resolved bindings-package JSON has no string toolkit_version" >&2 + exit 1 + fi + if [[ ! "$TOOLKIT_VERSION" =~ ^[1-9][0-9]*\.[0-9]+\.[0-9]+([.-][A-Za-z0-9]+)*$ ]]; then + echo "Error: invalid toolkit_version in resolved bindings-package JSON: $TOOLKIT_VERSION" >&2 + exit 1 + fi +fi + +if ! ARTIFACT_NAMES="$(gh api --paginate \ + "repos/${REPOSITORY}/actions/runs/${RUN_ID}/artifacts?per_page=100" \ + --jq '.artifacts[] | select(.expired == false) | .name')"; then + echo "Error: failed to inspect artifacts for run $RUN_ID" >&2 + exit 1 +fi - # If we're not downloading "all", only process matching component - if [[ "$COMPONENT" != "all" && "$p" != ${COMPONENT}* ]]; then - continue +MATCHING_ARTIFACTS=() +if [[ "$IS_BINDINGS_RELEASE" == true && "$COMPONENT" == "cuda-python" ]]; then + ARTIFACT_NAME="cuda-python-wheel-cuda${TOOLKIT_VERSION}" + if grep -Fxq "$ARTIFACT_NAME" <<< "$ARTIFACT_NAMES"; then + MATCHING_ARTIFACTS+=("$ARTIFACT_NAME") + elif [[ "$TOOLKIT_VERSION" == 13.* ]] \ + && jq -e '.allow_legacy_python_artifact == true' \ + <<< "$RESOLVED_BINDINGS_PACKAGE_JSON" >/dev/null \ + && grep -Fxq "cuda-python-wheel" <<< "$ARTIFACT_NAMES"; then + MATCHING_ARTIFACTS+=("cuda-python-wheel") fi +else + if [[ "$IS_BINDINGS_RELEASE" == true ]]; then + ARTIFACT_PATTERN="cuda-bindings-python*-cuda${TOOLKIT_VERSION}-*" + fi + while IFS= read -r artifact_name; do + # Release patterns contain only the validated toolkit version. Other + # patterns preserve the component matching accepted by this script. + # shellcheck disable=SC2053 + if [[ "$artifact_name" == $ARTIFACT_PATTERN && "$artifact_name" != *-tests ]]; then + MATCHING_ARTIFACTS+=("$artifact_name") + fi + done <<< "$ARTIFACT_NAMES" +fi - echo "Processing artifact: $p" - # Move wheel files to output directory - if [[ -d "$p" ]]; then - find "$p" -name "*.whl" -exec mv {} "$OUTPUT_DIR/" \; +if [[ ${#MATCHING_ARTIFACTS[@]} == 0 ]]; then + if [[ "$IS_BINDINGS_RELEASE" == true ]]; then + echo "Error: run $RUN_ID has no unexpired release artifact for CUDA $TOOLKIT_VERSION" >&2 + else + echo "Error: run $RUN_ID has no unexpired releasable artifact matching $ARTIFACT_PATTERN" >&2 fi + exit 1 +fi + +for artifact_name in "${MATCHING_ARTIFACTS[@]}"; do + _retry_gh_run_download "$RUN_ID" --name "$artifact_name" \ + -R "$REPOSITORY" done -# Clean up artifact directories -rm -rf cuda-* +# Create output directory +mkdir -p "$OUTPUT_DIR" + +# `gh run download` extracts a sole selected artifact directly into --dir, +# while multiple artifacts get per-artifact subdirectories. Find wheels +# recursively so both layouts are handled identically. +MOVED_WHEELS=0 +while IFS= read -r -d '' wheel; do + relative_path="${wheel#"$ARTIFACTS_DIR"/}" + echo "Processing wheel: $relative_path" + mv "$wheel" "$OUTPUT_DIR/" + MOVED_WHEELS=$((MOVED_WHEELS + 1)) +done < <(find "$ARTIFACTS_DIR" -type f -name "*.whl" -print0) + +if [[ "$MOVED_WHEELS" == 0 ]]; then + echo "Error: selected artifacts contain no releasable wheels" >&2 + exit 1 +fi echo "Downloaded wheels to: $OUTPUT_DIR" ls -la "$OUTPUT_DIR" diff --git a/ci/tools/env-vars b/ci/tools/env-vars index 6d3e0df75d72..3aa09835342a 100755 --- a/ci/tools/env-vars +++ b/ci/tools/env-vars @@ -67,7 +67,7 @@ if [[ "${1}" == "build" ]]; then echo "MAINTENANCE_CUDA_MAJOR=${maintenance_version%%.*}" echo "MAINTENANCE_BINDINGS_ARTIFACTS_DIR=$(realpath "${REPO_DIR}/${maintenance_root}/dist")" echo "MAINTENANCE_BINDINGS_CYTHON_TESTS_DIR=$(realpath "${REPO_DIR}/${maintenance_root}/tests/cython")" - echo "MAINTENANCE_BINDINGS_ARTIFACT_NAME=maintenance-bindings-python${PYTHON_VERSION_FORMATTED}-cuda${maintenance_version}-${HOST_PLATFORM}-${SHA}" + echo "MAINTENANCE_BINDINGS_ARTIFACT_NAME=cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda${maintenance_version}-${HOST_PLATFORM}-${SHA}" } >> "$GITHUB_ENV" elif [[ "${1}" == "test" ]]; then BUILD_CUDA_MAJOR="$(cut -d '.' -f 1 <<< ${BUILD_CUDA_VER})" diff --git a/ci/tools/lookup-run-id b/ci/tools/lookup-run-id index 4f7eb2c043f9..d200a1a3a63e 100755 --- a/ci/tools/lookup-run-id +++ b/ci/tools/lookup-run-id @@ -18,7 +18,7 @@ set -euo pipefail usage() { cat >&2 < [workflow-name] + $0 --tag [--run-id ] [workflow-name] $0 --branch [workflow-name] Options: @@ -27,6 +27,7 @@ Options: --event Restrict branch-mode runs to a trigger event (for example push) --artifact Require an unexpired artifact matching this shell glob (repeatable; branch mode only) + --run-id Validate and use this exact run ID (tag mode only) --head-sha Also print the run's head commit SHA (second line) Examples: @@ -45,6 +46,7 @@ REF="" HEAD_SHA_FLAG=0 EVENT="" ARTIFACT_PATTERNS=() +EXPLICIT_RUN_ID="" while [[ $# -gt 0 ]]; do case "${1}" in @@ -56,6 +58,9 @@ while [[ $# -gt 0 ]]; do [[ $# -ge 2 ]] || usage [[ -n "${MODE}" && "${MODE}" != "branch" ]] && { echo "Error: --tag and --branch are mutually exclusive" >&2; exit 1; } MODE="branch"; REF="${2}"; shift 2 ;; + --run-id) + [[ $# -ge 2 ]] || usage + EXPLICIT_RUN_ID="${2}"; shift 2 ;; --artifact) [[ $# -ge 2 ]] || usage ARTIFACT_PATTERNS+=("${2}"); shift 2 ;; @@ -94,6 +99,16 @@ if [[ "${MODE}" != "branch" && -n "${EVENT}" ]]; then exit 1 fi +if [[ "${MODE}" != "tag" && -n "${EXPLICIT_RUN_ID}" ]]; then + echo "Error: --run-id is only supported with --tag" >&2 + exit 1 +fi + +if [[ -n "${EXPLICIT_RUN_ID}" && ! "${EXPLICIT_RUN_ID}" =~ ^[1-9][0-9]*$ ]]; then + echo "Error: --run-id must be a positive integer" >&2 + exit 1 +fi + # ── Prerequisite checks ── if [[ -z "${GH_TOKEN:-}" ]]; then echo "Error: GH_TOKEN environment variable is required" >&2 @@ -262,7 +277,7 @@ fi # ── Mode: tag ── echo "Looking up run ID for tag: ${REF} in repository: ${REPOSITORY}" >&2 -if ! COMMIT_SHA=$(git rev-parse "${REF}^{commit}"); then +if ! COMMIT_SHA=$(git rev-parse --verify "refs/tags/${REF}^{commit}"); then echo "Error: Could not resolve git tag '${REF}' to a commit SHA" >&2 echo "Make sure the tag exists and you have fetched it" >&2 exit 1 @@ -271,6 +286,42 @@ fi echo "Resolved tag '${REF}' to commit: ${COMMIT_SHA}" >&2 echo "Searching for '${WORKFLOW_NAME}' workflow runs for commit: ${COMMIT_SHA} (tag: ${REF})" >&2 +if [[ -n "${EXPLICIT_RUN_ID}" ]]; then + echo "Validating explicitly requested run ID: ${EXPLICIT_RUN_ID}" >&2 + if ! RUN_DATA=$(gh run view "${EXPLICIT_RUN_ID}" \ + --repo "${REPOSITORY}" \ + --json databaseId,workflowName,status,conclusion,headSha,headBranch,event,createdAt,url); then + echo "Error: Could not inspect workflow run ${EXPLICIT_RUN_ID}" >&2 + exit 1 + fi + + if ! jq -e \ + --argjson id "${EXPLICIT_RUN_ID}" \ + --arg workflow "${WORKFLOW_NAME}" \ + --arg sha "${COMMIT_SHA}" \ + --arg tag "${REF}" \ + '.databaseId == $id + and .workflowName == $workflow + and .status == "completed" + and .conclusion == "success" + and .headSha == $sha + and .headBranch == $tag + and .event == "push"' <<< "${RUN_DATA}" >/dev/null; then + echo "Error: Run ${EXPLICIT_RUN_ID} is not a successful tag-triggered '${WORKFLOW_NAME}' run for '${REF}' at ${COMMIT_SHA}" >&2 + echo "Observed run metadata:" >&2 + jq -c '{workflowName, status, conclusion, headSha, headBranch, event}' <<< "${RUN_DATA}" >&2 + exit 1 + fi + + echo "Validated workflow run ID: ${EXPLICIT_RUN_ID} for tag '${REF}'" >&2 + echo "${EXPLICIT_RUN_ID}" + if [[ "${HEAD_SHA_FLAG}" == 1 ]]; then + echo "Head SHA: ${COMMIT_SHA}" >&2 + echo "${COMMIT_SHA}" + fi + exit 0 +fi + RUN_DATA=$(gh run list \ --repo "${REPOSITORY}" \ --commit "${COMMIT_SHA}" \ @@ -286,8 +337,11 @@ if [[ -z "${RUN_DATA}" || "${RUN_DATA}" == "[]" ]]; then exit 1 fi -RUN_ID=$(echo "${RUN_DATA}" | jq -r --arg tag "${REF}" ' - map(select(.conclusion == "success" and .event == "push" and .headBranch == $tag)) +RUN_ID=$(echo "${RUN_DATA}" | jq -r \ + --arg tag "${REF}" --arg workflow "${WORKFLOW_NAME}" --arg sha "${COMMIT_SHA}" ' + map(select(.conclusion == "success" and .status == "completed" + and .event == "push" and .headBranch == $tag + and .workflowName == $workflow and .headSha == $sha)) | sort_by(.createdAt) | reverse | .[0].databaseId // empty diff --git a/ci/tools/tests/test_bindings_release_compat.py b/ci/tools/tests/test_bindings_release_compat.py new file mode 100644 index 000000000000..e5670250de5c --- /dev/null +++ b/ci/tools/tests/test_bindings_release_compat.py @@ -0,0 +1,129 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +import json + +import pytest +import yaml + +from ci.tools.bindings_config import main, parse_config, resolve_release_bindings_package, write_github_env + + +def _source(root, *, old=False, schema2=False): + current_root = "cuda_bindings" if old else "cuda_bindings_13" + packages = { + "cuda_bindings_12": {"toolkit_version": "12.9.1", "release_status": "maintenance"}, + current_root: {"toolkit_version": "13.4.2", "release_status": "current"}, + } + raw = {"cuda": {"build": {"version": "13.4.2"}, "prev_build": {"version": "12.9.1"}}} + if not old: + raw["python"] = {"supported": ["3.11", "3.14t"]} + if schema2: + raw["schema_version"] = 2 + raw["cuda"] = {"bindings": {"package_roots": packages}} + config = root / "ci" / "versions.yml" + config.parent.mkdir(parents=True) + config.write_text(yaml.safe_dump(raw)) + (root / current_root).mkdir() + if not old: + (root / "cuda_bindings_12").mkdir() + return root, raw + + +@pytest.mark.parametrize( + ("old", "schema2", "tag", "expected_root", "legacy_artifact"), + [ + (True, False, "v13.4.4", "cuda_bindings", True), + (False, False, "v12.9.11", "cuda_bindings_12", False), + (False, True, "v12.9.11", "cuda_bindings_12", False), + (False, True, "v13.4.9", "cuda_bindings_13", False), + ], +) +@pytest.mark.agent_authored(model="gpt-6") +def test_tagged_source_compatibility(tmp_path, old, schema2, tag, expected_root, legacy_artifact): + source, _ = _source(tmp_path, old=old, schema2=schema2) + record = resolve_release_bindings_package(tag, source) + assert record["package_root"] == expected_root + assert record["release_version"] == tag.removeprefix("v") + assert record.get("allow_legacy_python_artifact", False) is legacy_artifact + + +@pytest.mark.agent_authored(model="gpt-6") +def test_old_cuda13_source_cannot_resolve_cuda12(tmp_path): + source, _ = _source(tmp_path, old=True) + with pytest.raises(ValueError, match="no bindings root"): + resolve_release_bindings_package("v12.9.11", source) + + +@pytest.mark.agent_authored(model="gpt-6") +def test_release_cli_uses_tagged_source_without_control_fallback(tmp_path, capsys): + source, _ = _source(tmp_path / "tagged", old=True) + assert ( + main( + [ + "--config", + str(tmp_path / "absent-control.yml"), + "--release-tag", + "v13.4.4", + "--release-source-root", + str(source), + ] + ) + == 0 + ) + assert json.loads(capsys.readouterr().out) == { + "package_root": "cuda_bindings", + "toolkit_version": "13.4.2", + "release_version": "13.4.4", + "allow_legacy_python_artifact": True, + } + empty = tmp_path / "absent-source" + empty.mkdir() + with pytest.raises(SystemExit): + main( + [ + "--config", + str(source / "ci/versions.yml"), + "--release-tag", + "v13.4.4", + "--release-source-root", + str(empty), + ] + ) + + +@pytest.mark.agent_authored(model="gpt-6") +def test_dependent_release_uses_current_tagged_bindings(tmp_path): + source, _ = _source(tmp_path, schema2=True) + assert resolve_release_bindings_package("cuda-core-v1.2.0", source) == { + "package_root": "cuda_bindings_13", + "toolkit_version": "13.4.2", + } + + +@pytest.mark.parametrize("conflict", ["roles", "majors"]) +@pytest.mark.agent_authored(model="gpt-6") +def test_schema2_rejects_ambiguous_release_routing(tmp_path, conflict): + _, raw = _source(tmp_path, schema2=True) + maintenance = raw["cuda"]["bindings"]["package_roots"]["cuda_bindings_12"] + maintenance["release_status" if conflict == "roles" else "toolkit_version"] = ( + "current" if conflict == "roles" else "13.4.1" + ) + message = "one current and one maintenance" if conflict == "roles" else "cuda_major values must be unique" + with pytest.raises(ValueError, match=message): + parse_config(raw) + + +@pytest.mark.agent_authored(model="gpt-6") +def test_github_env_exports_record_without_newline_injection(tmp_path): + path = tmp_path / "github-env" + record = {"package_root": "cuda_bindings_12", "toolkit_version": "12.9.1", "note": "one\ntwo"} + write_github_env(record, path) + before = path.read_text() + lines = before.splitlines() + assert lines[:2] == ["BUILD_CTK_VER=12.9.1", "BINDINGS_PACKAGE_ROOT=cuda_bindings_12"] + assert len(lines) == 3 + assert json.loads(lines[2].split("=", 1)[1]) == record + with pytest.raises(ValueError, match="resolved package_root"): + write_github_env({**record, "package_root": "cuda_bindings_12\nINJECTED=1"}, path) + assert path.read_text() == before diff --git a/ci/tools/tests/test_check_release_notes.py b/ci/tools/tests/test_check_release_notes.py index 30301be302cd..6e476b147dd0 100644 --- a/ci/tools/tests/test_check_release_notes.py +++ b/ci/tools/tests/test_check_release_notes.py @@ -3,336 +3,230 @@ from __future__ import annotations -import sys +import json from pathlib import Path import pytest -sys.path.insert(0, str(Path(__file__).parent.parent)) -from check_release_notes import ( - check_release_notes, - is_post_release, - load_backport_branch, - main, - parse_version_from_tag, -) - - -class TestParseVersionFromTag: - def test_plain_tag_bindings(self): - assert parse_version_from_tag("v13.1.0", "cuda-bindings") == "13.1.0" +from ci.tools import bindings_config +from ci.tools.check_release_notes import check_release_notes, main, notes_path, parse_version_from_tag - def test_plain_tag_python(self): - assert parse_version_from_tag("v13.1.0", "cuda-python") == "13.1.0" +# Bindings tags select a package root through the live registry, so derive the +# current CUDA 13 release line from it instead of pinning a toolkit minor. +CURRENT_BINDINGS = bindings_config.load_config().package_for_release_status("current") +CURRENT_RELEASE = f"{CURRENT_BINDINGS.ctk_target}.1" - def test_component_prefix_core(self): - assert parse_version_from_tag("cuda-core-v0.7.0", "cuda-core") == "0.7.0" - def test_component_prefix_pathfinder(self): - assert parse_version_from_tag("cuda-pathfinder-v1.5.2", "cuda-pathfinder") == "1.5.2" +def write_notes(root: Path, package: str, version: str, content: str = "Release notes.") -> Path: + path = root / notes_path(package, version) + path.parent.mkdir(parents=True, exist_ok=True) + path.write_text(content, encoding="utf-8") + return path - def test_post_release(self): - assert parse_version_from_tag("v12.6.2.post1", "cuda-bindings") == "12.6.2.post1" - def test_invalid_tag(self): - assert parse_version_from_tag("not-a-tag", "cuda-core") is None +def resolved_12_package(package_root: str = "cuda_bindings_12") -> dict[str, object]: + return { + "package_root": package_root, + "toolkit_version": "12.9.1", + "release_version": "12.9.8", + } - def test_no_v_prefix(self): - assert parse_version_from_tag("13.1.0", "cuda-bindings") is None - def test_component_prefix_mismatch(self): - # cuda-core-v* must not be accepted for component=cuda-pathfinder - assert parse_version_from_tag("cuda-core-v0.7.0", "cuda-pathfinder") is None - - def test_bare_v_rejected_for_core(self): - # bare v* belongs to cuda-bindings/cuda-python, not cuda-core - assert parse_version_from_tag("v0.7.0", "cuda-core") is None - - def test_unknown_component(self): - assert parse_version_from_tag("v13.1.0", "bogus") is None +@pytest.mark.parametrize( + ("tag", "component", "version"), + ( + (f"v{CURRENT_RELEASE}", "cuda-bindings", CURRENT_RELEASE), + (f"v{CURRENT_RELEASE}rc1", "cuda-bindings", f"{CURRENT_RELEASE}rc1"), + (f"v{CURRENT_RELEASE}.dev1", "cuda-bindings", f"{CURRENT_RELEASE}.dev1"), + ("v12.9.8.post1", "cuda-python", "12.9.8.post1"), + ("cuda-core-v1.1.1", "cuda-core", "1.1.1"), + ("cuda-pathfinder-v1.8.1", "cuda-pathfinder", "1.8.1"), + ), +) +@pytest.mark.agent_authored(model="gpt-5.6") +def test_parse_version_from_tag(tag, component, version): + assert parse_version_from_tag(tag, component) == version - def test_path_traversal_rejected(self): - assert parse_version_from_tag("v1.0.0/../evil", "cuda-bindings") is None - def test_path_separator_rejected(self): - assert parse_version_from_tag("v1/2/3", "cuda-bindings") is None +@pytest.mark.parametrize( + ("tag", "component"), + ( + ("not-a-tag", "cuda-core"), + ("v1.0.0/../evil", "cuda-bindings"), + ("cuda-core-v1.0.0", "cuda-pathfinder"), + ("vv13.3.0", "cuda-bindings"), + ("cuda-core-vv1.0.0", "cuda-core"), + ("cuda-core-v1!2.0.0", "cuda-core"), + ("cuda-core-v1.0.0-1", "cuda-core"), + ("cuda-core-v01.0.0", "cuda-core"), + ("cuda-core-v1.0", "cuda-core"), + ), +) +@pytest.mark.agent_authored(model="gpt-5.6") +def test_parse_version_rejects_invalid_or_mismatched_tags(tag, component): + assert parse_version_from_tag(tag, component) is None - def test_leading_dot_rejected(self): - assert parse_version_from_tag("v.1.0", "cuda-bindings") is None - def test_whitespace_rejected(self): - assert parse_version_from_tag("v1.0.0 ", "cuda-bindings") is None +@pytest.mark.parametrize( + ("tag", "package", "version"), + ( + (f"v{CURRENT_RELEASE}", CURRENT_BINDINGS.package_root, CURRENT_RELEASE), + ("v12.9.8", "cuda_bindings_12", "12.9.8"), + ), +) +@pytest.mark.agent_authored(model="gpt-5.6") +def test_bindings_notes_follow_current_and_maintenance_packages(tmp_path, tag, package, version): + write_notes(tmp_path, package, version) + + assert check_release_notes(tag, "cuda-bindings", tmp_path) == [] + + +@pytest.mark.parametrize("version", ("12.9.8", "12.9.8rc1", "12.9.8.dev1")) +@pytest.mark.agent_authored(model="gpt-6") +def test_resolved_package_selects_exact_version_and_tagged_root(tmp_path, version): + package_root = "cuda_bindings_12_maintenance" + package = resolved_12_package(package_root) + package["release_version"] = version + write_notes(tmp_path, package_root, version) + + problems = check_release_notes( + f"v{version}", + "cuda-bindings", + tmp_path, + package, + ) - def test_trailing_suffix_rejected(self): - # \w permits alphanumerics + underscore only; hyphens and shell meta-chars are out - assert parse_version_from_tag("v1.0.0-extra", "cuda-bindings") is None + assert problems == [] -class TestIsPostRelease: - def test_normal(self): - assert not is_post_release("13.1.0") +@pytest.mark.agent_authored(model="gpt-5.6") +def test_present_missing_and_empty_notes(tmp_path): + write_notes(tmp_path, "cuda_core", "1.1.1") + assert check_release_notes("cuda-core-v1.1.1", "cuda-core", tmp_path) == [] - def test_post(self): - assert is_post_release("12.6.2.post1") + missing = check_release_notes("cuda-pathfinder-v1.8.1", "cuda-pathfinder", tmp_path) + assert missing == [(notes_path("cuda_pathfinder", "1.8.1"), "missing")] - def test_post_no_number(self): - assert is_post_release("1.0.0.post") + write_notes(tmp_path, "cuda_python", "13.3.0", content="") + empty = check_release_notes("v13.3.0", "cuda-python", tmp_path) + assert empty == [(notes_path("cuda_python", "13.3.0"), "empty")] -class TestCheckReleaseNotes: - def _make_notes(self, tmp_path, pkg, version, content="Release notes."): - d = tmp_path / pkg / "docs" / "source" / "release" - d.mkdir(parents=True, exist_ok=True) - f = d / f"{version}-notes.rst" - f.write_text(content) - return f +@pytest.mark.agent_authored(model="gpt-5.6") +def test_post_release_needs_no_notes(tmp_path): + assert check_release_notes("v12.9.8.post1", "cuda-bindings", tmp_path) == [] - def test_present_and_nonempty(self, tmp_path): - self._make_notes(tmp_path, "cuda_core", "0.7.0") - problems = check_release_notes("cuda-core-v0.7.0", "cuda-core", tmp_path) - assert problems == [] - def test_missing(self, tmp_path): - problems = check_release_notes("cuda-core-v0.7.0", "cuda-core", tmp_path) - assert len(problems) == 1 - assert problems[0][1] == "missing" +@pytest.mark.agent_authored(model="gpt-5.6") +def test_main_accepts_resolved_package_and_reports_missing_notes(tmp_path, capsys): + package = resolved_12_package() + args = [ + "--git-tag", + "v12.9.8", + "--component", + "cuda-bindings", + "--repo-root", + str(tmp_path), + "--bindings-package", + json.dumps(package), + ] - def test_empty(self, tmp_path): - self._make_notes(tmp_path, "cuda_core", "0.7.0", content="") - problems = check_release_notes("cuda-core-v0.7.0", "cuda-core", tmp_path) - assert len(problems) == 1 - assert problems[0][1] == "empty" + assert main(args) == 1 + assert "cuda_bindings_12/docs/source/release/12.9.8-notes.rst" in capsys.readouterr().err - def test_post_release_skipped(self, tmp_path): - problems = check_release_notes("v12.6.2.post1", "cuda-bindings", tmp_path) - assert problems == [] + write_notes(tmp_path, "cuda_bindings_12", "12.9.8") + assert main(args) == 0 - def test_invalid_tag(self, tmp_path): - problems = check_release_notes("not-a-tag", "cuda-core", tmp_path) - assert len(problems) == 1 - assert "cannot parse" in problems[0][1] - def test_component_prefix_mismatch(self, tmp_path): - # Pass a cuda-core tag with component=cuda-pathfinder; must be rejected. - problems = check_release_notes("cuda-core-v0.7.0", "cuda-pathfinder", tmp_path) - assert len(problems) == 1 - assert "cannot parse" in problems[0][1] +@pytest.mark.agent_authored(model="gpt-5.6") +def test_main_rejects_unsafe_resolved_package_root(tmp_path, capsys): + args = [ + "--git-tag", + "v12.9.8", + "--component", + "cuda-bindings", + "--repo-root", + str(tmp_path), + "--bindings-package", + json.dumps(resolved_12_package("../outside")), + ] - def test_unknown_component(self, tmp_path): - problems = check_release_notes("v13.1.0", "bogus", tmp_path) - assert len(problems) == 1 - assert "unknown component" in problems[0][1] + assert main(args) == 2 + assert "normalized repository-relative POSIX path" in capsys.readouterr().err - def test_plain_v_tag(self, tmp_path): - self._make_notes(tmp_path, "cuda_python", "13.1.0") - problems = check_release_notes("v13.1.0", "cuda-python", tmp_path) - assert problems == [] +def release_args(repo_root: Path, component: str, package: dict[str, object]) -> list[str]: + args = [ + "--git-tag", + "v12.9.8", + "--component", + component, + "--repo-root", + str(repo_root), + "--bindings-package", + json.dumps(package), + ] + return args -class TestLoadBackportBranch: - def test_from_versions_yml(self, tmp_path): - d = tmp_path / "ci" - d.mkdir(parents=True) - (d / "versions.yml").write_text('backport_branch: "12.9.x"\n') - assert load_backport_branch(tmp_path) == "12.9.x" +@pytest.mark.agent_authored(model="gpt-6") +def test_notes_in_another_checkout_do_not_satisfy_release_check(tmp_path, capsys, monkeypatch): + write_notes(tmp_path / "other", "cuda_bindings_12", "12.9.8") + monkeypatch.chdir(tmp_path / "other") - def test_from_github_ref_name_for_legacy_backport_branch(self, tmp_path, monkeypatch): - monkeypatch.setenv("GITHUB_REF_NAME", "12.9.x") + assert main(release_args(tmp_path / "tagged", "cuda-bindings", resolved_12_package())) == 1 + assert f"{notes_path('cuda_bindings_12', '12.9.8')} (missing)" in capsys.readouterr().err - assert load_backport_branch(tmp_path) == "12.9.x" - def test_ignores_non_backport_github_ref_name(self, tmp_path, monkeypatch): - monkeypatch.setenv("GITHUB_REF_NAME", "main") +@pytest.mark.agent_authored(model="gpt-6") +def test_metapackage_requires_its_own_notes(tmp_path, capsys): + write_notes(tmp_path, "cuda_bindings_12", "12.9.8") - assert load_backport_branch(tmp_path) is None + assert main(release_args(tmp_path, "cuda-python", resolved_12_package())) == 1 + assert "cuda_python/docs/source/release/12.9.8-notes.rst (missing)" in capsys.readouterr().err + write_notes(tmp_path, "cuda_python", "12.9.8") + assert main(release_args(tmp_path, "cuda-python", resolved_12_package())) == 0 -class TestMain: - def _make_notes(self, tmp_path, pkg, version, content="Release notes."): - d = tmp_path / pkg / "docs" / "source" / "release" - d.mkdir(parents=True, exist_ok=True) - (d / f"{version}-notes.rst").write_text(content) - def test_success(self, tmp_path): - d = tmp_path / "cuda_core" / "docs" / "source" / "release" - d.mkdir(parents=True) - (d / "0.7.0-notes.rst").write_text("Notes here.") - rc = main(["--git-tag", "cuda-core-v0.7.0", "--component", "cuda-core", "--repo-root", str(tmp_path)]) - assert rc == 0 - - def test_failure(self, tmp_path): - rc = main(["--git-tag", "cuda-core-v0.7.0", "--component", "cuda-core", "--repo-root", str(tmp_path)]) - assert rc == 1 - - def test_post_skip(self, tmp_path): - rc = main(["--git-tag", "v12.6.2.post1", "--component", "cuda-bindings", "--repo-root", str(tmp_path)]) - assert rc == 0 - - def test_unparsable_tag_returns_2(self, tmp_path): - rc = main(["--git-tag", "not-a-tag", "--component", "cuda-core", "--repo-root", str(tmp_path)]) - assert rc == 2 - - def test_path_traversal_returns_2(self, tmp_path): - rc = main(["--git-tag", "v1.0.0/../evil", "--component", "cuda-bindings", "--repo-root", str(tmp_path)]) - assert rc == 2 - - def test_component_prefix_mismatch_returns_2(self, tmp_path): - rc = main( - [ - "--git-tag", - "cuda-core-v0.7.0", - "--component", - "cuda-pathfinder", - "--repo-root", - str(tmp_path), - ] - ) - assert rc == 2 - - def test_mainline_bindings_requires_backport_decision(self, tmp_path, capsys): - rc = main( - [ - "--git-tag", - "v13.3.0", - "--component", - "cuda-bindings", - "--repo-root", - str(tmp_path), - "--backport-branch", - "12.9.x", - ] - ) +@pytest.mark.parametrize("component", ("cuda-bindings", "cuda-python")) +@pytest.mark.agent_authored(model="gpt-6") +def test_release_rejects_other_version_notes(tmp_path, capsys, component): + write_notes(tmp_path, "cuda_bindings_12", "12.9.7") + write_notes(tmp_path, "cuda_python", "12.9.7") - captured = capsys.readouterr() - assert rc == 1 - assert "" in captured.err - - def test_mainline_bindings_accepts_not_planned(self, tmp_path): - self._make_notes(tmp_path, "cuda_bindings_13", "13.3.0") - - rc = main( - [ - "--git-tag", - "v13.3.0", - "--component", - "cuda-bindings", - "--repo-root", - str(tmp_path), - "--backport-branch", - "12.9.x", - "--backport-git-tag", - "not planned", - ] - ) + assert main(release_args(tmp_path, component, resolved_12_package())) == 1 + assert "ERROR: missing or empty release notes" in capsys.readouterr().err - assert rc == 0 - - def test_mainline_bindings_checks_planned_backport_notes(self, tmp_path, capsys): - self._make_notes(tmp_path, "cuda_bindings_13", "13.3.0") - - rc = main( - [ - "--git-tag", - "v13.3.0", - "--component", - "cuda-bindings", - "--repo-root", - str(tmp_path), - "--backport-branch", - "12.9.x", - "--backport-git-tag", - "v12.9.7", - ] - ) - captured = capsys.readouterr() - assert rc == 1 - assert "12.9.7-notes.rst" in captured.err - - def test_mainline_bindings_accepts_planned_backport_notes(self, tmp_path): - self._make_notes(tmp_path, "cuda_bindings_13", "13.3.0") - self._make_notes(tmp_path, "cuda_bindings_13", "12.9.7") - - rc = main( - [ - "--git-tag", - "v13.3.0", - "--component", - "cuda-bindings", - "--repo-root", - str(tmp_path), - "--backport-branch", - "12.9.x", - "--backport-git-tag", - "v12.9.7", - ] - ) +@pytest.mark.agent_authored(model="gpt-6") +def test_release_rejects_resolver_version_mismatch(tmp_path, capsys): + write_notes(tmp_path, "cuda_bindings_12", "12.9.9") + package = resolved_12_package() + package["release_version"] = "12.9.9" + args = release_args(tmp_path, "cuda-bindings", package) - assert rc == 0 - - def test_mainline_cuda_python_accepts_planned_backport_notes(self, tmp_path): - self._make_notes(tmp_path, "cuda_python", "13.3.0") - self._make_notes(tmp_path, "cuda_python", "12.9.7") - - rc = main( - [ - "--git-tag", - "v13.3.0", - "--component", - "cuda-python", - "--repo-root", - str(tmp_path), - "--backport-branch", - "12.9.x", - "--backport-git-tag", - "v12.9.7", - ] - ) + assert main(args) == 2 + assert "does not match release tag" in capsys.readouterr().err - assert rc == 0 - - def test_backport_bindings_missing_notes_warns_without_failing(self, tmp_path, monkeypatch, capsys): - summary_path = tmp_path / "summary.md" - monkeypatch.setenv("GITHUB_STEP_SUMMARY", str(summary_path)) - - rc = main( - [ - "--git-tag", - "v12.9.7", - "--component", - "cuda-bindings", - "--repo-root", - str(tmp_path), - "--backport-branch", - "12.9.x", - ] - ) - captured = capsys.readouterr() - assert rc == 0 - assert "::warning file=cuda_bindings_13/docs/source/release/12.9.7-notes.rst::" in captured.out - assert "12.9.7-notes.rst" in summary_path.read_text() - - def test_mainline_bindings_rejects_non_backport_tag(self, tmp_path): - self._make_notes(tmp_path, "cuda_bindings_13", "13.3.0") - - rc = main( - [ - "--git-tag", - "v13.3.0", - "--component", - "cuda-bindings", - "--repo-root", - str(tmp_path), - "--backport-branch", - "12.9.x", - "--backport-git-tag", - "v13.2.0", - ] - ) +@pytest.mark.parametrize( + ("component", "tag"), + ( + ("cuda-bindings", "v12.9.8.post1"), + ("cuda-python", "v12.9.8.post1"), + ("cuda-core", "cuda-core-v1.1.1.post1"), + ), +) +@pytest.mark.agent_authored(model="gpt-6") +def test_main_skips_post_release_without_notes(tmp_path, capsys, component, tag): + package = resolved_12_package() + package["release_version"] = "12.9.8.post1" + args = release_args(tmp_path, component, package) + args[args.index("--git-tag") + 1] = tag - assert rc == 2 + assert main(args) == 0 + assert "skipping release-notes check" in capsys.readouterr().out @pytest.mark.parametrize("version", ["1.5.2", "1.5.2.post1"]) @@ -370,25 +264,23 @@ def test_pathfinder_missing_notes_fail_without_version_output(tmp_path, monkeypa @pytest.mark.parametrize( - "component,tag,version,extra_args", + "component,tag,version,package", [ - ("cuda-core", "cuda-core-v0.7.0", "0.7.0", []), - ("cuda-bindings", "v12.9.7", "12.9.7", ["--backport-branch", "12.9.x"]), - ("cuda-python", "v13.3.0", "13.3.0", ["--backport-branch", "12.9.x", "--backport-git-tag", "not planned"]), - ("cuda-bindings", "v12.9.7.post1", "12.9.7.post1", []), + ("cuda-core", "cuda-core-v1.1.1", "1.1.1", "cuda_core"), + ("cuda-bindings", "v12.9.8", "12.9.8", "cuda_bindings_12"), + ("cuda-bindings", "v12.9.8.post1", "12.9.8.post1", "cuda_bindings_12"), + ("cuda-python", "v13.3.0", "13.3.0", "cuda_python"), ], ) @pytest.mark.agent_authored(model="gpt-6.1") -def test_successful_checks_expose_version_for_every_policy(tmp_path, monkeypatch, component, tag, version, extra_args): - if component == "cuda-core" or version == "13.3.0": - notes = tmp_path / component.replace("-", "_") / "docs" / "source" / "release" / f"{version}-notes.rst" - notes.parent.mkdir(parents=True) - notes.write_text("Release notes.") +def test_successful_checks_expose_version_for_every_policy(tmp_path, monkeypatch, component, tag, version, package): + if ".post" not in version: + write_notes(tmp_path, package, version) output = tmp_path / "output" output.write_text("existing=value\n") monkeypatch.setenv("GITHUB_OUTPUT", str(output)) - assert main(["--git-tag", tag, "--component", component, "--repo-root", str(tmp_path), *extra_args]) == 0 + assert main(["--git-tag", tag, "--component", component, "--repo-root", str(tmp_path)]) == 0 assert output.read_text() == f"existing=value\nversion={version}\n" diff --git a/ci/tools/tests/test_download_wheels.py b/ci/tools/tests/test_download_wheels.py new file mode 100644 index 000000000000..ae80e87efb7b --- /dev/null +++ b/ci/tools/tests/test_download_wheels.py @@ -0,0 +1,150 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +"""Keep unrelated CUDA lines and test artifacts out of release staging.""" + +import json +import os +import subprocess +from pathlib import Path + +import pytest + +DOWNLOAD_WHEELS = Path(__file__).parent.parent / "download-wheels" +FAKE_GH = r"""#!/usr/bin/env python3 +import fnmatch +import json +import os +import sys +from pathlib import Path + +args = sys.argv[1:] +artifacts = json.loads(os.environ["FAKE_ARTIFACTS"]) +if args[:1] == ["api"]: + print(*artifacts, sep="\n") + raise SystemExit(0) +if args[:2] == ["run", "download"]: + selector = "--name" if "--name" in args else "-p" + pattern = args[args.index(selector) + 1] + selected = [artifact for artifact in artifacts if fnmatch.fnmatchcase(artifact, pattern)] + for artifact in selected: + destination = Path(args[args.index("--dir") + 1]) / artifact + destination.mkdir(parents=True) + suffix = ".so" if artifact.endswith("-tests") else ".whl" + (destination / f"{artifact}{suffix}").touch() + raise SystemExit(0 if selected else 1) +raise SystemExit(2) +""" + + +def run_download(tmp_path, artifacts, component, *, package=None, tag=""): + binary = tmp_path / "gh" + binary.write_text(FAKE_GH, encoding="utf-8") + binary.chmod(0o755) + args = [str(DOWNLOAD_WHEELS), "123", component, "NVIDIA/cuda-python", str(tmp_path / "dist"), tag] + if package is not None: + args.append(json.dumps(package)) + return subprocess.run( # noqa: S603 - the checked-in utility receives separate arguments. + args, + cwd=tmp_path, + env={ + **os.environ, + "FAKE_ARTIFACTS": json.dumps(artifacts), + "GH_TOKEN": "test-token", + "PATH": f"{tmp_path}{os.pathsep}{os.environ['PATH']}", + }, + check=False, + capture_output=True, + text=True, + ) + + +@pytest.mark.parametrize("component", ["cuda-bindings", "cuda-python"]) +@pytest.mark.parametrize("major,toolkit", [(12, "12.9.1"), (13, "13.3.0")]) +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_release_stages_only_wheels_for_its_exact_toolkit(tmp_path, component, major, toolkit): + release = f"{toolkit.rsplit('.', 1)[0]}.99" + package = {"package_root": f"cuda_bindings_{major}", "toolkit_version": toolkit, "release_version": release} + prefix = "cuda-bindings-python312" if component == "cuda-bindings" else "cuda-python-wheel" + suffix = "-linux-64-sha" if component == "cuda-bindings" else "" + expected = f"{prefix}-cuda{toolkit}{suffix}" + result = run_download( + tmp_path, + [f"{prefix}-cuda11.8.0{suffix}", expected, f"{expected}-tests", "cuda-python-wheel"], + component, + package=package, + tag=f"v{package['release_version']}", + ) + assert result.returncode == 0, result.stderr + assert {path.name for path in (tmp_path / "dist").iterdir()} == {f"{expected}.whl"} + + +@pytest.mark.parametrize("tag", ["cuda-core-v1.3.0", "cuda-pathfinder-v1.5.0"]) +@pytest.mark.agent_authored(model="gpt-6") +def test_dependent_tag_docs_stage_one_metapackage_for_resolved_toolkit(tmp_path, tag): + expected = "cuda-python-wheel-cuda13.4.2" + result = run_download( + tmp_path, + ["cuda-python-wheel-cuda12.9.1", expected], + "cuda-python", + package={"toolkit_version": "13.4.2"}, + tag=tag, + ) + assert result.returncode == 0, result.stderr + assert {path.name for path in (tmp_path / "dist").iterdir()} == {f"{expected}.whl"} + + +@pytest.mark.parametrize("component", ["cuda-bindings", "cuda-python"]) +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_release_cannot_stage_another_toolkit_or_test_artifacts(tmp_path, component): + package = {"package_root": "cuda_bindings_13", "toolkit_version": "13.3.0", "release_version": "13.3.1"} + result = run_download( + tmp_path, + ["cuda-bindings-python312-cuda13.3.0-linux-64-sha-tests", "cuda-python-wheel-cuda13.2.0"], + component, + package=package, + tag="v13.3.1", + ) + assert result.returncode != 0 + assert not list((tmp_path / "dist").glob("*.whl")) + + +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_release_routing_requires_a_resolved_package(tmp_path): + result = run_download(tmp_path, ["cuda-python-wheel-cuda13.3.0"], "cuda-python", tag="v13.3.1") + assert result.returncode != 0 + assert not list((tmp_path / "dist").glob("*.whl")) + + +@pytest.mark.parametrize( + "component,expected", + [("all", {"cuda-core-wheel", "cuda-python-wheel-cuda13.3.0"}), ("cuda-core", {"cuda-core-wheel"})], +) +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_nonrelease_components_stage_wheels_without_test_artifacts(tmp_path, component, expected): + result = run_download( + tmp_path, + ["cuda-core-wheel", "cuda-core-wheel-tests", "cuda-python-wheel-cuda13.3.0", "build-metadata"], + component, + ) + assert result.returncode == 0, result.stderr + assert {path.name for path in (tmp_path / "dist").iterdir()} == {f"{artifact}.whl" for artifact in expected} + + +@pytest.mark.parametrize( + ("toolkit", "artifacts", "expected"), + [ + ("13.4.2", ["cuda-python-wheel"], "cuda-python-wheel"), + ("13.4.2", ["cuda-python-wheel", "cuda-python-wheel-cuda13.4.2"], "cuda-python-wheel-cuda13.4.2"), + ("12.9.1", ["cuda-python-wheel"], None), + ], +) +@pytest.mark.agent_authored(model="GPT-6") +def test_legacy_metapackage_fallback_is_limited_to_cuda_13(tmp_path, toolkit, artifacts, expected): + package = {"toolkit_version": toolkit, "allow_legacy_python_artifact": True} + result = run_download(tmp_path, artifacts, "cuda-python", package=package, tag=f"v{toolkit}") + + assert (result.returncode == 0) == (expected is not None), result.stderr + assert {path.name for path in (tmp_path / "dist").glob("*.whl")} == ( + set() if expected is None else {f"{expected}.whl"} + ) diff --git a/ci/tools/tests/test_release_publish_security.py b/ci/tools/tests/test_release_publish_security.py new file mode 100644 index 000000000000..04cf8285b259 --- /dev/null +++ b/ci/tools/tests/test_release_publish_security.py @@ -0,0 +1,25 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +from pathlib import Path + +import pytest +import yaml + + +@pytest.mark.agent_authored(model="GPT-6") +def test_release_publishers_do_not_execute_repository_or_dependency_code(): + workflow = Path(__file__).resolve().parents[3] / ".github/workflows/release.yml" + jobs = yaml.safe_load(workflow.read_text(encoding="utf-8"))["jobs"] + docs = yaml.safe_load(workflow.with_name("build-docs.yml").read_text(encoding="utf-8"))["jobs"]["build"] + for builder in (jobs["prepare-artifacts"], docs): + assert "write" not in builder["permissions"].values() + assert "environment" not in jobs["prepare-artifacts"] + + # These jobs can request the trusted-publishing identity. A venv would not + # isolate dependency installation or repository code from that authority. + allowed_actions = {"actions/download-artifact", "pypa/gh-action-pypi-publish"} + for name in ("publish-testpypi", "publish-pypi"): + for step in jobs[name]["steps"]: + assert "run" not in step + assert step["uses"].split("@", 1)[0] in allowed_actions diff --git a/ci/tools/tests/test_validate_release_wheels.py b/ci/tools/tests/test_validate_release_wheels.py new file mode 100644 index 000000000000..e5116e50d5aa --- /dev/null +++ b/ci/tools/tests/test_validate_release_wheels.py @@ -0,0 +1,221 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +from __future__ import annotations + +import json +import subprocess +import sys +from pathlib import Path + +import pytest +import yaml + +from ci.tools.validate_release_wheels import WheelTarget, expected_binary_targets + + +def resolved_package() -> str: + return json.dumps( + { + "package_root": "alternate_bindings_12_8", + "toolkit_version": "12.8.0", + "release_version": "12.8.0", + }, + separators=(",", ":"), + ) + + +def write_release_matrix( + root: Path, + *, + python_versions: tuple[str, ...] = ("3.12",), + platforms: tuple[str, ...] = ("linux-64",), +) -> None: + config = root / "ci" / "versions.yml" + config.parent.mkdir(parents=True, exist_ok=True) + config.write_text(yaml.safe_dump({"python": {"supported": list(python_versions)}}), encoding="utf-8") + ci_workflow = root / ".github" / "workflows" / "ci.yml" + ci_workflow.parent.mkdir(parents=True, exist_ok=True) + ci_workflow.write_text( + yaml.safe_dump( + { + "jobs": { + f"build-{platform}": { + "uses": "./.github/workflows/build-wheel.yml", + "with": {"host-platform": platform}, + } + for platform in platforms + } + } + ), + encoding="utf-8", + ) + + +def run_validator( + wheel_dir: Path, + release_source_root: Path, + *extra_args: str, + git_tag: str = "v12.8.0", + component: str = "cuda-bindings", +) -> subprocess.CompletedProcess[str]: + return subprocess.run( # noqa: S603 - invokes the repository script under test + [ + sys.executable, + "-m", + "ci.tools.validate_release_wheels", + git_tag, + component, + str(wheel_dir), + "--release-source-root", + str(release_source_root), + *extra_args, + ], + check=False, + capture_output=True, + text=True, + ) + + +@pytest.fixture +def release_source(tmp_path): + root = tmp_path / "release-source" + write_release_matrix(root) + return root + + +@pytest.mark.agent_authored(model="gpt-5.6-sol") +def test_tag_authoritative_package_validates_after_control_registry_moves_on(tmp_path, release_source): + (tmp_path / "cuda_bindings-12.8.0-cp312-cp312-manylinux_2_28_x86_64.whl").touch() + + without_resolved_package = run_validator(tmp_path, release_source) + with_resolved_package = run_validator( + tmp_path, + release_source, + "--bindings-package", + resolved_package(), + ) + + assert without_resolved_package.returncode == 1 + assert with_resolved_package.returncode == 0, with_resolved_package.stderr + + +@pytest.mark.agent_authored(model="gpt-5.6-sol") +def test_resolved_package_must_match_the_release_tag(tmp_path, release_source): + (tmp_path / "cuda_bindings-12.8.0-cp312-cp312-manylinux_2_28_x86_64.whl").touch() + package = json.loads(resolved_package()) + package["release_version"] = "12.9.0" + + result = run_validator(tmp_path, release_source, "--bindings-package", json.dumps(package)) + + assert result.returncode == 1 + assert "does not match release tag" in result.stderr + + +@pytest.mark.agent_authored(model="gpt-5.6") +def test_unexpected_distribution_is_rejected(tmp_path, release_source): + (tmp_path / "cuda_bindings-12.8.0-cp312-cp312-manylinux_2_28_x86_64.whl").touch() + unexpected_wheel = "cuda_core-12.8.0-py3-none-any.whl" + (tmp_path / unexpected_wheel).touch() + + result = run_validator(tmp_path, release_source, "--bindings-package", resolved_package()) + + assert result.returncode == 1 + assert f"{unexpected_wheel}: unexpected distribution 'cuda_core'" in result.stderr + + +@pytest.mark.agent_authored(model="gpt-5.6-sol") +def test_complete_binary_wheel_matrix_is_required(tmp_path): + release_source = tmp_path / "release-source" + write_release_matrix( + release_source, + python_versions=("3.11", "3.14t", "3.15", "3.15t"), + platforms=("linux-64", "win-64"), + ) + wheel_names = ( + "cuda_bindings-12.8.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", + "cuda_bindings-12.8.0-cp311-cp311-win_amd64.whl", + "cuda_bindings-12.8.0-cp314-cp314t-manylinux_2_28_x86_64.whl", + "cuda_bindings-12.8.0-cp315-cp315-manylinux_2_28_x86_64.whl", + "cuda_bindings-12.8.0-cp315-cp315-win_amd64.whl", + "cuda_bindings-12.8.0-cp315-cp315t-manylinux_2_28_x86_64.whl", + "cuda_bindings-12.8.0-cp315-cp315t-win_amd64.whl", + "cuda_bindings-12.8.0-cp314-cp314t-win_amd64.whl", + ) + for wheel_name in wheel_names: + (tmp_path / wheel_name).touch() + + complete = run_validator( + tmp_path, + release_source, + "--bindings-package", + resolved_package(), + ) + (tmp_path / wheel_names[-1]).unlink() + partial = run_validator( + tmp_path, + release_source, + "--bindings-package", + resolved_package(), + ) + + assert complete.returncode == 0, complete.stderr + assert partial.returncode == 1 + assert "Missing expected cuda_bindings wheel targets: cp314-cp314t-win_amd64" in partial.stderr + + +@pytest.mark.parametrize( + "toolkit,has_windows_arm64", [("12.9.1", False), ("13.3.0", False), ("13.4.1", True), ("14.0.0", True)] +) +@pytest.mark.agent_authored(model="gpt-6") +def test_windows_arm64_targets_follow_the_tagged_toolkit_line(tmp_path, toolkit, has_windows_arm64): + release_source = tmp_path / "release-source" + write_release_matrix( + release_source, + python_versions=("3.10", "3.11"), + platforms=("linux-64", "win-arm64"), + ) + + targets = expected_binary_targets(release_source, {"toolkit_version": toolkit}) + expected = { + WheelTarget("cp310", "cp310", "manylinux-x86_64"), + WheelTarget("cp311", "cp311", "manylinux-x86_64"), + } + if has_windows_arm64: + expected.add(WheelTarget("cp311", "cp311", "win_arm64")) + assert targets == expected + + +@pytest.mark.agent_authored(model="gpt-5.6-sol") +def test_cuda_core_uses_the_complete_binary_wheel_matrix(tmp_path): + release_source = tmp_path / "release-source" + write_release_matrix(release_source, platforms=("linux-64", "win-64")) + (tmp_path / "cuda_core-1.2.0-cp312-cp312-manylinux_2_28_x86_64.whl").touch() + (tmp_path / "cuda_core-1.2.0-cp312-cp312-win_amd64.whl").touch() + + result = run_validator( + tmp_path, + release_source, + "--bindings-package", + resolved_package(), + git_tag="cuda-core-v1.2.0", + component="cuda-core", + ) + + assert result.returncode == 0, result.stderr + + +@pytest.mark.agent_authored(model="GPT-6") +def test_retained_tag_uses_its_build_workflow_python_matrix(tmp_path): + write_release_matrix(tmp_path, platforms=("linux-64", "win-arm64")) + (tmp_path / "ci/versions.yml").write_text("cuda:\n build:\n version: '13.4.2'\n", encoding="utf-8") + (tmp_path / ".github/workflows/build-wheel.yml").write_text( + yaml.safe_dump({"jobs": {"build": {"strategy": {"matrix": {"python-version": ["3.10", "3.12"]}}}}}), + encoding="utf-8", + ) + + assert expected_binary_targets(tmp_path, {"toolkit_version": "13.4.2"}) == { + WheelTarget("cp310", "cp310", "manylinux-x86_64"), + WheelTarget("cp312", "cp312", "manylinux-x86_64"), + WheelTarget("cp312", "cp312", "win_arm64"), + } diff --git a/ci/tools/validate-release-wheels b/ci/tools/validate-release-wheels deleted file mode 100755 index 52d24df47317..000000000000 --- a/ci/tools/validate-release-wheels +++ /dev/null @@ -1,138 +0,0 @@ -#!/usr/bin/env python3 - -# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -# -# SPDX-License-Identifier: Apache-2.0 - -"""Validate downloaded release wheels against the requested release tag.""" - -from __future__ import annotations - -import argparse -import sys -from collections import defaultdict -from pathlib import Path - -from check_release_notes import parse_version_from_tag - -COMPONENT_TO_DISTRIBUTIONS: dict[str, set[str]] = { - "cuda-core": {"cuda_core"}, - "cuda-bindings": {"cuda_bindings"}, - "cuda-pathfinder": {"cuda_pathfinder"}, - "cuda-python": {"cuda_python"}, - "all": {"cuda_core", "cuda_bindings", "cuda_pathfinder", "cuda_python"}, -} - -COMPONENT_TO_TAG_COMPONENTS: dict[str, tuple[str, ...]] = { - "cuda-core": ("cuda-core",), - "cuda-bindings": ("cuda-bindings",), - "cuda-pathfinder": ("cuda-pathfinder",), - "cuda-python": ("cuda-python",), - "all": ("cuda-core", "cuda-bindings", "cuda-pathfinder", "cuda-python"), -} - - -def parse_args() -> argparse.Namespace: - parser = argparse.ArgumentParser( - description=( - "Validate that wheel versions match the release tag. " - "This rejects dev/local wheel versions for release uploads." - ) - ) - parser.add_argument("git_tag", help="Release git tag (for example: v13.0.0)") - parser.add_argument("component", choices=sorted(COMPONENT_TO_DISTRIBUTIONS.keys())) - parser.add_argument("wheel_dir", help="Directory containing wheel files") - return parser.parse_args() - - -def version_from_tag(tag: str, component: str) -> str: - versions = { - version - for tag_component in COMPONENT_TO_TAG_COMPONENTS[component] - if (version := parse_version_from_tag(tag, tag_component)) is not None - } - if len(versions) == 1: - return versions.pop() - raise ValueError( - "Unsupported git tag format " - f"{tag!r} for component {component!r}; expected vX.Y.Z[.postN], " - "cuda-core-vX.Y.Z[.postN], or cuda-pathfinder-vX.Y.Z[.postN]." - ) - - -def parse_wheel_dist_and_version(path: Path) -> tuple[str, str]: - # Wheel name format starts with: {distribution}-{version}-... - parts = path.stem.split("-") - if len(parts) < 5: - raise ValueError(f"Invalid wheel filename format: {path.name}") - return parts[0], parts[1] - - -def main() -> int: - args = parse_args() - try: - expected_version = version_from_tag(args.git_tag, args.component) - except ValueError as exc: - print(f"Error: {exc}", file=sys.stderr) - return 1 - - expected_distributions = COMPONENT_TO_DISTRIBUTIONS[args.component] - wheel_dir = Path(args.wheel_dir) - - wheels = sorted(wheel_dir.glob("*.whl")) - if not wheels: - print(f"Error: No wheel files found in {wheel_dir}", file=sys.stderr) - return 1 - - seen_versions: dict[str, set[str]] = defaultdict(set) - errors: list[str] = [] - - for wheel in wheels: - try: - distribution, version = parse_wheel_dist_and_version(wheel) - except ValueError as exc: - errors.append(str(exc)) - continue - - if distribution not in expected_distributions: - continue - - seen_versions[distribution].add(version) - - if ".dev" in version or "+" in version: - errors.append( - f"{wheel.name}: wheel version {version!r} contains dev/local markers " - "(.dev or +), which is not allowed for release uploads." - ) - - if version != expected_version: - errors.append( - f"{wheel.name}: wheel version {version!r} does not match expected " - f"release version {expected_version!r} from git tag {args.git_tag!r}." - ) - - missing_distributions = sorted(expected_distributions - set(seen_versions)) - if missing_distributions: - errors.append("Missing expected component wheels in download set: " + ", ".join(missing_distributions)) - - for distribution, versions in sorted(seen_versions.items()): - if len(versions) > 1: - errors.append( - f"Expected one release version for {distribution}, found multiple: " + ", ".join(sorted(versions)) - ) - - if errors: - print("Wheel validation failed:", file=sys.stderr) - for error in errors: - print(f" - {error}", file=sys.stderr) - return 1 - - print( - "Validated release wheels for component " - f"{args.component} at version {expected_version} from tag {args.git_tag}." - ) - return 0 - - -if __name__ == "__main__": - raise SystemExit(main()) diff --git a/ci/tools/validate_release_wheels.py b/ci/tools/validate_release_wheels.py new file mode 100644 index 000000000000..a3084433ddb1 --- /dev/null +++ b/ci/tools/validate_release_wheels.py @@ -0,0 +1,274 @@ +#!/usr/bin/env python3 + +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + +"""Validate downloaded release wheels against the requested release tag.""" + +from __future__ import annotations + +import argparse +import json +import sys +from collections.abc import Mapping +from dataclasses import dataclass +from pathlib import Path + +import yaml +from packaging.tags import Tag +from packaging.utils import InvalidWheelFilename, parse_wheel_filename + +from .bindings_config import wheel_python_versions +from .check_release_notes import COMPONENTS, parse_version_from_tag + +_BINARY_DISTRIBUTIONS = frozenset({"cuda_bindings", "cuda_core"}) +_VERSIONS_CONFIG = Path("ci/versions.yml") +_CI_WORKFLOW = Path(".github/workflows/ci.yml") + + +@dataclass(frozen=True, order=True) +class WheelTarget: + interpreter: str + abi: str + platform: str + + def __str__(self) -> str: + return f"{self.interpreter}-{self.abi}-{self.platform}" + + +def parse_args() -> argparse.Namespace: + parser = argparse.ArgumentParser( + description=( + "Validate that wheel versions match the release tag. " + "This rejects dev/local wheel versions for release uploads." + ) + ) + parser.add_argument("git_tag", help="Release git tag (for example: v13.0.0)") + parser.add_argument("component", choices=[*sorted(COMPONENTS), "all"]) + parser.add_argument("wheel_dir", help="Directory containing wheel files") + parser.add_argument( + "--bindings-package", + default="", + help="normalized CUDA bindings package JSON from the release resolver", + ) + parser.add_argument( + "--release-source-root", + type=Path, + help="tagged source tree whose CI build matrix produced the wheels", + ) + return parser.parse_args() + + +def version_from_tag( + tag: str, + component: str, + bindings_package: Mapping[str, object] | None = None, +) -> str: + versions = { + version + for tag_component in (COMPONENTS if component == "all" else (component,)) + if ( + version := parse_version_from_tag( + tag, + tag_component, + bindings_package if tag_component == "cuda-bindings" else None, + ) + ) + is not None + } + if len(versions) == 1: + return versions.pop() + raise ValueError( + "Unsupported git tag format " + f"{tag!r} for component {component!r}; expected vX.Y.Z[.postN], " + "cuda-core-vX.Y.Z[.postN], or cuda-pathfinder-vX.Y.Z[.postN]." + ) + + +def _release_python_versions(release_source_root: Path) -> list[str]: + path = release_source_root / _VERSIONS_CONFIG + config = yaml.safe_load(path.read_text(encoding="utf-8")) + if "python" in config or "schema_version" in config: + return config["python"]["supported"] + # Retained CUDA 13 tags predate the shared Python-version list. + workflow = release_source_root / ".github/workflows/build-wheel.yml" + return yaml.safe_load(workflow.read_text(encoding="utf-8"))["jobs"]["build"]["strategy"]["matrix"]["python-version"] + + +def _release_platforms(release_source_root: Path) -> set[str]: + path = release_source_root / _CI_WORKFLOW + jobs = yaml.safe_load(path.read_text(encoding="utf-8"))["jobs"] + + platforms: set[str] = set() + for value in jobs.values(): + if value.get("uses") != "./.github/workflows/build-wheel.yml": + continue + platform = value["with"]["host-platform"] + if "${{" not in platform: + platforms.add(platform) + else: + platforms.update(value["strategy"]["matrix"]["host-platform"]) + + if not platforms: + raise ValueError(f"could not find any build-wheel host platforms in {path}") + return platforms + + +def _python_target(version: str) -> tuple[str, str]: + free_threaded = version.endswith("t") + digits = version.removesuffix("t").replace(".", "") + if not digits.isdecimal(): + raise ValueError(f"unsupported Python build-matrix version: {version!r}") + interpreter = f"cp{digits}" + return interpreter, f"{interpreter}t" if free_threaded else interpreter + + +def _platform_target(platform: str) -> str: + targets = { + "linux-64": "manylinux-x86_64", + "linux-aarch64": "manylinux-aarch64", + "win-64": "win_amd64", + "win-arm64": "win_arm64", + } + try: + return targets[platform] + except KeyError as error: + raise ValueError(f"unsupported release build platform: {platform!r}") from error + + +def expected_binary_targets( + release_source_root: Path, + bindings_package: Mapping[str, object] | None, +) -> set[WheelTarget]: + python_versions = _release_python_versions(release_source_root) + platforms = _release_platforms(release_source_root) + + toolkit_version = "" + if "win-arm64" in platforms: + toolkit_version = None if bindings_package is None else bindings_package.get("toolkit_version") + if not isinstance(toolkit_version, str): + raise ValueError("resolved CUDA bindings package must supply toolkit_version for matrix validation") + + targets: set[WheelTarget] = set() + for platform in sorted(platforms): + for version in wheel_python_versions(toolkit_version, platform, python_versions): + interpreter, abi = _python_target(version) + targets.add(WheelTarget(interpreter, abi, _platform_target(platform))) + return targets + + +def _normalized_platform(platform: str) -> str: + if platform.startswith("manylinux") and platform.endswith("_x86_64"): + return "manylinux-x86_64" + if platform.startswith("manylinux") and platform.endswith("_aarch64"): + return "manylinux-aarch64" + return platform + + +def _wheel_target(tags: frozenset[Tag], wheel_name: str) -> WheelTarget: + targets = {WheelTarget(tag.interpreter, tag.abi, _normalized_platform(tag.platform)) for tag in tags} + if len(targets) != 1: + raise ValueError(f"{wheel_name}: expected one wheel target, found {len(targets)}") + return targets.pop() + + +def main() -> int: + args = parse_args() + try: + bindings_package = json.loads(args.bindings_package) if args.bindings_package else None + if bindings_package is not None and not isinstance(bindings_package, dict): + raise ValueError("resolved CUDA bindings package must be a JSON object") + expected_version = version_from_tag(args.git_tag, args.component, bindings_package) + expected_targets = { + distribution: ( + expected_binary_targets(args.release_source_root, bindings_package) + if distribution in _BINARY_DISTRIBUTIONS and args.release_source_root is not None + else {WheelTarget("py3", "none", "any")} + ) + for distribution in ( + {component.replace("-", "_") for component in COMPONENTS} + if args.component == "all" + else {args.component.replace("-", "_")} + ) + } + binary_distributions = set(expected_targets) & _BINARY_DISTRIBUTIONS + if binary_distributions and args.release_source_root is None: + raise ValueError("--release-source-root is required to validate binary wheel matrices") + except (json.JSONDecodeError, ValueError) as exc: + print(f"Error: {exc}", file=sys.stderr) + return 1 + + expected_distributions = set(expected_targets) + wheel_dir = Path(args.wheel_dir) + + wheels = sorted(wheel_dir.glob("*.whl")) + if not wheels: + print(f"Error: No wheel files found in {wheel_dir}", file=sys.stderr) + return 1 + + seen_targets: dict[str, set[WheelTarget]] = {distribution: set() for distribution in expected_distributions} + errors: list[str] = [] + + for wheel in wheels: + try: + parsed_distribution, version, build, tags = parse_wheel_filename(wheel.name) + distribution = str(parsed_distribution).replace("-", "_") + target = _wheel_target(tags, wheel.name) + except (InvalidWheelFilename, ValueError) as exc: + errors.append(f"Invalid wheel filename {wheel.name!r}: {exc}") + continue + + if distribution not in expected_distributions: + errors.append( + f"{wheel.name}: unexpected distribution {distribution!r} for component " + f"{args.component!r}; expected one of: " + ", ".join(sorted(expected_distributions)) + ) + continue + + if build: + errors.append(f"{wheel.name}: wheel build tags are not expected for a release") + + if target in seen_targets[distribution]: + errors.append(f"{wheel.name}: duplicate wheel target {target} for {distribution}") + seen_targets[distribution].add(target) + + if version.is_devrelease or version.local is not None: + errors.append( + f"{wheel.name}: wheel version {str(version)!r} contains dev/local markers " + "(.dev or +), which is not allowed for release uploads." + ) + + if str(version) != expected_version: + errors.append( + f"{wheel.name}: wheel version {str(version)!r} does not match expected " + f"release version {expected_version!r} from git tag {args.git_tag!r}." + ) + + missing_distributions = sorted(distribution for distribution, targets in seen_targets.items() if not targets) + if missing_distributions: + errors.append("Missing expected component wheels in download set: " + ", ".join(missing_distributions)) + + for distribution, expected in sorted(expected_targets.items()): + missing = sorted(expected - seen_targets[distribution]) + unexpected = sorted(seen_targets[distribution] - expected) + if missing: + errors.append(f"Missing expected {distribution} wheel targets: " + ", ".join(map(str, missing))) + if unexpected: + errors.append(f"Unexpected {distribution} wheel targets: " + ", ".join(map(str, unexpected))) + + if errors: + print("Wheel validation failed:", file=sys.stderr) + for error in errors: + print(f" - {error}", file=sys.stderr) + return 1 + + print( + "Validated release wheels for component " + f"{args.component} at version {expected_version} from tag {args.git_tag}." + ) + return 0 + + +if __name__ == "__main__": + raise SystemExit(main()) diff --git a/cuda_bindings_13/docs/build_docs.sh b/cuda_bindings_13/docs/build_docs.sh index 199ababce606..53d0e14d0ea2 100755 --- a/cuda_bindings_13/docs/build_docs.sh +++ b/cuda_bindings_13/docs/build_docs.sh @@ -16,13 +16,12 @@ fi # SPHINX_CUDA_BINDINGS_VER is used to create a subdir under build/html # (the Makefile file for sphinx-build also honors it if defined). -# If there's a post release (ex: .post1) we don't want it to show up in the -# version selector or directory structure. +# Post releases reuse their base release directory, while prerelease and +# development releases remain distinct so they cannot overwrite stable docs. if [[ -z "${SPHINX_CUDA_BINDINGS_VER}" ]]; then export SPHINX_CUDA_BINDINGS_VER=$(python -c "from importlib.metadata import version; \ - ver = '.'.join(str(version('cuda-bindings')).split('.')[:3]); \ - print(ver)" \ - | awk -F'+' '{print $1}') + ver = str(version('cuda-bindings')).split('+', 1)[0]; \ + print(ver if '.dev' in ver else ver.split('.post', 1)[0])") fi if [[ "${LATEST_ONLY}" == "1" && -z "${BUILD_PREVIEW:-}" && -z "${BUILD_LATEST:-}" ]]; then diff --git a/cuda_bindings_13/pixi.lock b/cuda_bindings_13/pixi.lock index da78181c381c..9c97e6117a62 100644 --- a/cuda_bindings_13/pixi.lock +++ b/cuda_bindings_13/pixi.lock @@ -2,13 +2,13 @@ version: 7 platforms: - name: linux-64 virtual-packages: - - __unix=0 + - __unix=0=0 - __linux=4.18 - __glibc=2.28 - __archspec=0=x86_64 - name: linux-aarch64 virtual-packages: - - __unix=0 + - __unix=0=0 - __linux=4.18 - __glibc=2.28 - __archspec=0=aarch64 @@ -2027,9 +2027,10 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/brotli-python-1.2.0-py312he9c40d5_4.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-hda65f42_10.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/charset-normalizer-3.5.2-h1114479_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-bindings-13.2.0-py312hf79963d_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-13.5.37-h69a702a_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-13.5.37-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-13.5.37-hb03c661_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/cython-3.2.9-py312h68e6be4_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/debugpy-1.8.22-py312h80505a6_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/keyutils-1.6.3-h7cc23a3_1.conda @@ -2101,7 +2102,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda - conda: https://conda.anaconda.org/conda-forge/noarch/comm-0.2.3-pyhe01879c_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cpython-3.12.15-py312hd8ed1ab_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-pathfinder-1.8.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-13.5.37-ha770c72_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/dict2css-0.6.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/docutils-0.21.2-pyhd8ed1ab_1.conda @@ -2194,15 +2195,18 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/webencodings-0.5.1-pyhd8ed1ab_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/wheel-0.48.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/zipp-4.1.1-pyh5ded981_0.conda + - conda_source: cuda-bindings[c92b487d] @ . + - conda_source: cuda-pathfinder[10e1cc92] @ ../cuda_pathfinder - pypi: https://files.pythonhosted.org/packages/8c/79/017fab2f7167a9a9795665f894d04f77aafceca80821b51589bb4b23ff5c/nvidia_sphinx_theme-0.0.9.post1-py3-none-any.whl linux-aarch64: - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/backports.zstd-1.7.0-py312h22d1088_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/brotli-python-1.2.0-py312h41c1d46_4.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/bzip2-1.0.8-h4777abc_10.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-bindings-13.2.0-py312hdc0efb6_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-13.5.37-he9431aa_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-13.5.37-hbe86820_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-13.5.37-hbe86820_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cython-3.2.9-py312hbda70bc_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/debugpy-1.8.22-py312ha0853ce_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/keyutils-1.6.3-h5bc82ec_1.conda @@ -2276,7 +2280,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda - conda: https://conda.anaconda.org/conda-forge/noarch/comm-0.2.3-pyhe01879c_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cpython-3.12.15-py312hd8ed1ab_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-pathfinder-1.8.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-13.5.37-h579c4fd_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/dict2css-0.6.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/docutils-0.21.2-pyhd8ed1ab_1.conda @@ -2369,6 +2373,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/webencodings-0.5.1-pyhd8ed1ab_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/wheel-0.48.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/zipp-4.1.1-pyh5ded981_0.conda + - conda_source: cuda-bindings[d088a16d] @ . + - conda_source: cuda-pathfinder[f06c437b] @ ../cuda_pathfinder - pypi: https://files.pythonhosted.org/packages/8c/79/017fab2f7167a9a9795665f894d04f77aafceca80821b51589bb4b23ff5c/nvidia_sphinx_theme-0.0.9.post1-py3-none-any.whl win-64: - conda: https://conda.anaconda.org/conda-forge/noarch/_python_abi3_support-1.0-hd8ed1ab_3.conda @@ -2388,7 +2394,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda - conda: https://conda.anaconda.org/conda-forge/noarch/comm-0.2.3-pyhe01879c_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cpython-3.12.15-py312hd8ed1ab_1.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-pathfinder-1.8.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-13.5.37-h57928b3_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/dict2css-0.6.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/docutils-0.21.2-pyhd8ed1ab_1.conda @@ -2485,9 +2491,10 @@ environments: - conda: https://conda.anaconda.org/conda-forge/win-64/brotli-python-1.2.0-py312ha763cb9_4.conda - conda: https://conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h0ad9c76_10.conda - conda: https://conda.anaconda.org/conda-forge/win-64/charset-normalizer-3.5.2-h308a848_0.conda - - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-bindings-13.2.0-py312hc128f0a_1.conda - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-13.5.37-h719f0c7_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-13.5.37-hfd05255_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-13.5.37-hfd05255_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/cython-3.2.9-py312hd245ac3_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/debugpy-1.8.22-py312ha1a9051_0.conda - conda: https://conda.anaconda.org/conda-forge/win-64/icu-78.3-h5112557_2.conda @@ -2538,6 +2545,8 @@ environments: - conda: https://conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3.conda - conda: https://conda.anaconda.org/conda-forge/win-64/zeromq-4.3.5-h3a581c9_12.conda - conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda + - conda_source: cuda-bindings[c345f5cd] @ . + - conda_source: cuda-pathfinder[6a6a6b0a] @ ../cuda_pathfinder - pypi: https://files.pythonhosted.org/packages/8c/79/017fab2f7167a9a9795665f894d04f77aafceca80821b51589bb4b23ff5c/nvidia_sphinx_theme-0.0.9.post1-py3-none-any.whl packages: - conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda @@ -2597,7 +2606,7 @@ packages: - zstd >=1.5.7,<1.6.0a0 license: BSD-3-Clause AND MIT AND EPL-2.0 purls: - - pkg:pypi/backports-zstd?source=compressed-mapping + - pkg:pypi/backports-zstd?source=hash-mapping run_exports: {} size: 241113 timestamp: 1788491295568 @@ -2614,6 +2623,18 @@ packages: run_exports: {} size: 3713752 timestamp: 1784214522814 +- conda: https://conda.anaconda.org/conda-forge/linux-64/binutils_impl_linux-64-2.46.1-default_hfdba357_103.conda + sha256: 98f9ddc6dc5d56a824b7eaea5bab6ad4bb47642288fc70d6b1b4024ac39d5595 + md5: e86f9dc615d7533c5be8b15b3a1dee8d + depends: + - ld_impl_linux-64 2.46.1 default_hbd61a6d_103 + - sysroot_linux-64 + - zstd >=1.5.7,<1.6.0a0 + license: GPL-3.0-only + license_family: GPL + run_exports: {} + size: 3706604 + timestamp: 1791565481839 - conda: https://conda.anaconda.org/conda-forge/linux-64/binutils_linux-64-2.46.1-default_h4852527_102.conda sha256: 08d7238663fc408ba2ab60b02fa3d06a7ca9d872962e03e90c7e0fdecb7ed1d0 md5: 32fd07abe84eb14f17c7f5cc6fa8df82 @@ -2624,6 +2645,16 @@ packages: run_exports: {} size: 36337 timestamp: 1784214551894 +- conda: https://conda.anaconda.org/conda-forge/linux-64/binutils_linux-64-2.46.1-default_h4852527_103.conda + sha256: 606a42c754752fb905fe2012d52ff370d47b5b6adefd5f7befc4ec30ce758f23 + md5: ca26f0a4f8d04fd83147af557fbd932c + depends: + - binutils_impl_linux-64 2.46.1 default_hfdba357_103 + license: GPL-3.0-only + license_family: GPL + run_exports: {} + size: 36335 + timestamp: 1791565508736 - conda: https://conda.anaconda.org/conda-forge/linux-64/brotli-1.2.0-h505cf86_4.conda sha256: 61b78574f002390b6a7fc79834fc344beaab09550068a51100eea5a485dac741 md5: 746aa619a1bcaf4da541101179d7c60e @@ -2764,31 +2795,6 @@ packages: run_exports: {} size: 331601 timestamp: 1789746783338 -- conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-bindings-13.2.0-py312hf79963d_1.conda - sha256: 749c0e2e664f76833a24a7a4d970a643888ca582fba1c46ca1b7c01b245dc99d - md5: 13d8b143b3513c95a1d3aec4e65a9529 - depends: - - __glibc >=2.17,<3.0.a0 - - cuda-nvrtc >=13,<14.0a0 - - cuda-nvvm-impl >=13,<14.0a0 - - cuda-pathfinder >=1.1.0,<2 - - cuda-version >=13,<14.0a0 - - libcufile >=1,<2.0a0 - - libgcc >=14 - - libnvfatbin - - libnvjitlink >=13.0,<14.0a0 - - libstdcxx >=14 - - python >=3.12,<3.13.0a0 - - python_abi 3.12.* *_cp312 - constrains: - - cuda-python >=13.2.0,<13.3.0a0 - - cuda-cudart >=13,<14.0a0 - license: LicenseRef-NVIDIA-SOFTWARE-LICENSE - purls: - - pkg:pypi/cuda-bindings?source=hash-mapping - run_exports: {} - size: 4143685 - timestamp: 1779249651391 - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-12.9.79-h5888daf_0.conda sha256: 57d1294ecfaf9dc8cdb5fc4be3e63ebc7614538bddb5de53cfd9b1b7de43aed5 md5: cb15315d19b58bd9cd424084e58ad081 @@ -3968,6 +3974,19 @@ packages: run_exports: {} size: 77893 timestamp: 1790346247149 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.9.0-hd2095e1_0.conda + sha256: 7b930a8b6bc6553cb754b4977a11f9c862c719a652fc2d128d89270992ce8beb + md5: 317ecabe4a58b3068c7958dc5eb89e43 + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=15 + constrains: + - expat 2.9.0.* + license: MIT + license_family: MIT + run_exports: {} + size: 78894 + timestamp: 1793054221966 - conda: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.7.0-h81df57d_1.conda sha256: c8c7583ef063bc3c430f1d48298e5ad24f796a35c22ed5b14183325825a61106 md5: 6525a0b06aa4fd390795f0740636a9dd @@ -5005,6 +5024,17 @@ packages: run_exports: {} size: 572864 timestamp: 1790777898360 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libsystemd0-262.1-h26e0ef7_0.conda + sha256: fc930c169a0844dcb1f3084032d3f4e53798b2f48d4c7f4a151a87012833008a + md5: a6bb6ea85431d21bebdf7184517524ca + depends: + - __glibc >=2.17,<3.0.a0 + - libcap >=2.78,<2.79.0a0 + - libgcc >=15 + license: LGPL-2.1-or-later + run_exports: {} + size: 574718 + timestamp: 1792224216335 - conda: https://conda.anaconda.org/conda-forge/linux-64/libtiff-4.7.2-hcc2c06a_1.conda sha256: 10e125da82ca93e09191e66e5a94d566b2cf8d4024e2a0db3a9114297447e0d9 md5: 0907d876f460ebc941ae590338b6102f @@ -5038,6 +5068,17 @@ packages: run_exports: {} size: 184629 timestamp: 1790777902394 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libudev1-262.1-h26e0ef7_0.conda + sha256: 63bc48418ed3be6166c27f294504153bf3da8579aa5d565ae4fee8bdd1682e54 + md5: b7e3531ad0f828ee27f5731fcb9ebdc3 + depends: + - __glibc >=2.17,<3.0.a0 + - libcap >=2.78,<2.79.0a0 + - libgcc >=15 + license: LGPL-2.1-or-later + run_exports: {} + size: 184945 + timestamp: 1792224219990 - conda: https://conda.anaconda.org/conda-forge/linux-64/libunwind-1.8.3-h65a8314_0.conda sha256: 71c8b9d5c72473752a0bb6e91b01dd209a03916cb71f36cc6a564e3a2a132d7a md5: e179a69edd30d75c0144d7a380b88f28 @@ -5096,6 +5137,19 @@ packages: - libuuid >=2.42.4,<3.0a0 size: 34442 timestamp: 1790121449161 +- conda: https://conda.anaconda.org/conda-forge/linux-64/libuuid-2.42.4-hcfc3c73_1.conda + sha256: 0e2e8f2daa9306e67f046e31092d637431d8cf0a26c407ab22401d108c2d4631 + md5: d852293faea3c04a6e896b908b43aded + depends: + - __glibc >=2.17,<3.0.a0 + - libgcc >=15 + license: BSD-3-Clause + license_family: BSD + run_exports: + weak: + - libuuid >=2.42.4,<3.0a0 + size: 36134 + timestamp: 1793891599274 - conda: https://conda.anaconda.org/conda-forge/linux-64/libva-2.24.1-hb83e432_1.conda sha256: ce7fbe2855257467196613b9fa2bdedb36d4fc3419c43804e52cfe9eb094a35e md5: c3e6df2790fff34ba708722052f02c0e @@ -6038,7 +6092,7 @@ packages: license: MIT license_family: MIT purls: - - pkg:pypi/ruamel-yaml-clib?source=compressed-mapping + - pkg:pypi/ruamel-yaml-clib?source=hash-mapping run_exports: {} size: 158648 timestamp: 1788881211578 @@ -6272,6 +6326,20 @@ packages: run_exports: {} size: 14755479 timestamp: 1792672505702 +- conda: https://conda.anaconda.org/conda-forge/linux-64/uv-0.13.7-h535ca38_0.conda + sha256: a3014d1c201d62e6192309d67ed50075ce492981b4721bd5b8e7cb222d0c257f + md5: 53bdba3e216e191f2f0ea261efc3c9c2 + depends: + - libgcc >=15 + - __glibc >=2.17,<3.0.a0 + - libstdcxx >=15 + - zstd >=1.5.7,<1.6.0a0 + constrains: + - __glibc >=2.17 + license: Apache-2.0 OR MIT + run_exports: {} + size: 14855143 + timestamp: 1793689081389 - conda: https://conda.anaconda.org/conda-forge/linux-64/wayland-1.26.0-hc1c935e_2.conda sha256: df65b987979e6d7f88e756494da5a230d4f2d08d17437d04eecd35559c3a04e4 md5: 88a47e22b53e50865b1cabe2eb648352 @@ -6833,6 +6901,18 @@ packages: run_exports: {} size: 4677171 timestamp: 1784214549910 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/binutils_impl_linux-aarch64-2.46.1-default_h5f4c503_103.conda + sha256: 1827893f9d6aa13794196b1820b8003bfff0105774a323a61026a16cec6dc66d + md5: 1ebaa45e5556156b3c7bf5bd5c527634 + depends: + - ld_impl_linux-aarch64 2.46.1 default_h1979696_103 + - sysroot_linux-aarch64 + - zstd >=1.5.7,<1.6.0a0 + license: GPL-3.0-only + license_family: GPL + run_exports: {} + size: 4911258 + timestamp: 1791565579362 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/binutils_linux-aarch64-2.46.1-default_hf1166c9_102.conda sha256: d41099a3fe2809a3ab3e4c718ecff4d5f8879e7949f3c8e8efa97fa06a90248c md5: 9a340123cb7217eae51c5cae24484631 @@ -6843,6 +6923,16 @@ packages: run_exports: {} size: 36196 timestamp: 1784214578949 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/binutils_linux-aarch64-2.46.1-default_hf1166c9_103.conda + sha256: 60e63ac488aac474f8a22ea465d317daa02fccd039cca75e288bd0fc37e8745a + md5: 9074b4a634a2be79ee49cd85b54a7f34 + depends: + - binutils_impl_linux-aarch64 2.46.1 default_h5f4c503_103 + license: GPL-3.0-only + license_family: GPL + run_exports: {} + size: 36474 + timestamp: 1791565619784 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/brotli-1.2.0-h52fc18c_4.conda sha256: 73cccc8488da976cbdf32e3b5c6182aef6d77c9dfabd0e5f5fa2ca6e03d51921 md5: 207d4f45f94f6d755a7fe1455e3148d7 @@ -6887,7 +6977,7 @@ packages: license: MIT license_family: MIT purls: - - pkg:pypi/brotli?source=compressed-mapping + - pkg:pypi/brotli?source=hash-mapping run_exports: {} size: 366485 timestamp: 1788480367792 @@ -6960,31 +7050,6 @@ packages: run_exports: {} size: 350096 timestamp: 1789746782725 -- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-bindings-13.2.0-py312hdc0efb6_1.conda - sha256: b8784c43ccd7c61c3944b48e7751e454e8c4b9ae50cabf42696e432b2e5b6b3b - md5: c7560ec15413c9b14e46d26c2ce94fb3 - depends: - - cuda-nvrtc >=13,<14.0a0 - - cuda-nvvm-impl >=13,<14.0a0 - - cuda-pathfinder >=1.1.0,<2 - - cuda-version >=13,<14.0a0 - - libcufile >=1,<2.0a0 - - libgcc >=14 - - libnvfatbin - - libnvjitlink >=13.0,<14.0a0 - - libstdcxx >=14 - - python >=3.12,<3.13.0a0 - - python >=3.12,<3.13.0a0 *_cpython - - python_abi 3.12.* *_cp312 - constrains: - - cuda-python >=13.2.0,<13.3.0a0 - - cuda-cudart >=13,<14.0a0 - license: LicenseRef-NVIDIA-SOFTWARE-LICENSE - purls: - - pkg:pypi/cuda-bindings?source=hash-mapping - run_exports: {} - size: 3866781 - timestamp: 1779249873318 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-12.9.79-h3ae8b8a_0.conda sha256: 3d6699fc27ffabf28a9d359b48e7b88437e4d945844718a58608627998db5d1b md5: df78e19e5fe656631d1470aa0fcf6ced @@ -8093,6 +8158,18 @@ packages: run_exports: {} size: 79463 timestamp: 1790346233159 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libexpat-2.9.0-h4154aff_0.conda + sha256: d3327ab1086334309cab3cf533c95f70c44dcbb8f66a99a92b23fb0f3f20f1da + md5: cb3ce9ae94bc74f792c119312e03bcf7 + depends: + - libgcc >=15 + constrains: + - expat 2.9.0.* + license: MIT + license_family: MIT + run_exports: {} + size: 80340 + timestamp: 1793054214232 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libffi-3.7.0-hdaad0be_1.conda sha256: b1879d78b622c5f4817fd6d77fe7ae3ab7b501542e3c2f4ac77198c54c62c189 md5: f9e5b3e446b526b34a7e25ecec08efd9 @@ -9042,6 +9119,16 @@ packages: run_exports: {} size: 592152 timestamp: 1790777808830 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsystemd0-262.1-hd1ea486_0.conda + sha256: aea93da32087cc4e1f46bd0596f487ad92e1dbab282dec0d739a7f406cb42df6 + md5: 5f1e0ce7fe60051e614f505b00055cb9 + depends: + - libcap >=2.78,<2.79.0a0 + - libgcc >=15 + license: LGPL-2.1-or-later + run_exports: {} + size: 593299 + timestamp: 1792224110959 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libtiff-4.7.2-h45f9f85_1.conda sha256: fa6daf2301dee912def3e74344fae792a8fc2bbbf7880dedee0e93ee8fb98fc5 md5: c6f35f8f9695623b9055341bc280a642 @@ -9073,6 +9160,16 @@ packages: run_exports: {} size: 195674 timestamp: 1790777812289 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libudev1-262.1-hd1ea486_0.conda + sha256: ed708af321e72984beb4cbf2c9127b6d0a0b2e484d4cca670f0ae02ceee76a83 + md5: 7d5081ffee4a31823c3af8dc2cb1cf24 + depends: + - libcap >=2.78,<2.79.0a0 + - libgcc >=15 + license: LGPL-2.1-or-later + run_exports: {} + size: 196616 + timestamp: 1792224114009 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libunwind-1.8.3-h6470e1d_0.conda sha256: 86c013d522975b76e16a74341bfcb22f6ec2e9b8b87ec3e15380f46c435eaa7b md5: 5d8191a950e492a06dc29b491dd5f7c5 @@ -9127,6 +9224,18 @@ packages: - libuuid >=2.42.4,<3.0a0 size: 36296 timestamp: 1790121454455 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libuuid-2.42.4-hd6fdeab_1.conda + sha256: 66d4d6201d52b4e3679dcfcc73658902a1cfb1a096f9d72a7b2d93d78e13948a + md5: 394dc5a24e06bdea0b41389d1eee9a23 + depends: + - libgcc >=15 + license: BSD-3-Clause + license_family: BSD + run_exports: + weak: + - libuuid >=2.42.4,<3.0a0 + size: 37956 + timestamp: 1793891605926 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libvorbis-1.3.7-h7ac5ae9_2.conda sha256: 066708ca7179a1c6e5639d015de7ed6e432b93ad50525843db67d57eb1ba1faf md5: 9d099329070afe52d797462ca7bf35f3 @@ -9942,7 +10051,7 @@ packages: license: MIT license_family: MIT purls: - - pkg:pypi/rpds-py?source=compressed-mapping + - pkg:pypi/rpds-py?source=hash-mapping run_exports: {} size: 296806 timestamp: 1791202315258 @@ -10177,6 +10286,19 @@ packages: run_exports: {} size: 14411564 timestamp: 1792672542028 +- conda: https://conda.anaconda.org/conda-forge/linux-aarch64/uv-0.13.7-h779c035_0.conda + sha256: 998533e9479fb1478d674a95ad9fc9e3170d9fcc4b150e3b28003b097a408b2a + md5: cefd4c0fba2e7a6e4fb01082ebbec392 + depends: + - libstdcxx >=15 + - libgcc >=15 + - zstd >=1.5.7,<1.6.0a0 + constrains: + - __glibc >=2.17 + license: Apache-2.0 OR MIT + run_exports: {} + size: 14511868 + timestamp: 1793689082823 - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/wayland-1.26.0-h637a836_2.conda sha256: 0692327145e39b3484382c2b069003b08398e961575bb6d35d3246f1cafa5d58 md5: cee65dc8a90933553988b50f5a03079a @@ -10809,6 +10931,24 @@ packages: run_exports: {} size: 131396 timestamp: 1792483552251 +- conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-h4c7d964_0.conda + sha256: f1d280d2618de987204102090e83733089c092dc2dd45686fd3dcbe809034f6a + md5: ea9dc39dcd2815202749c1e5bc2a8973 + depends: + - __win + license: ISC + run_exports: {} + size: 130423 + timestamp: 1792772460189 +- conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-hbd8a1cb_0.conda + sha256: 95619b9c1184be7175392eeb0ee7eeb5ccf25d280951f4225f2d62e725790be3 + md5: 3fd02989038a1e1cee627c14c2d73f29 + depends: + - __unix + license: ISC + run_exports: {} + size: 130057 + timestamp: 1792772446739 - conda: https://conda.anaconda.org/conda-forge/noarch/cachecontrol-0.14.4-pyha770c72_0.conda sha256: cca3a26282a5bc37a10afb1aa2006a21c45033cbc4ff012f9501f56f2a115c12 md5: 13bdbb9b693b29134c56a9a00c23de41 @@ -11300,20 +11440,6 @@ packages: run_exports: {} size: 37579 timestamp: 1793849341859 -- conda: https://conda.anaconda.org/conda-forge/noarch/cuda-pathfinder-1.8.3-pyhc364b38_0.conda - sha256: 25b8f625cebe056be045bf9e484549188296b79793a340e059f13de4338939be - md5: cb2babe521da8b1acaaea1cc12a282af - depends: - - python >=3.10 - - cuda-version >=12.0,<14 - - python - license: Apache-2.0 - license_family: APACHE - purls: - - pkg:pypi/cuda-pathfinder?source=compressed-mapping - run_exports: {} - size: 53393 - timestamp: 1790912935126 - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-12.9-h4f385c5_3.conda sha256: 5f5f428031933f117ff9f7fcc650e6ea1b3fef5936cf84aa24af79167513b656 md5: b6d5d7f1c171cbd228ea06b556cfa859 @@ -11440,7 +11566,7 @@ packages: license: MIT license_family: MIT purls: - - pkg:pypi/filelock?source=compressed-mapping + - pkg:pypi/filelock?source=hash-mapping run_exports: {} size: 85969 timestamp: 1791210321663 @@ -11791,7 +11917,7 @@ packages: license: MIT license_family: MIT purls: - - pkg:pypi/jsonschema?source=hash-mapping + - pkg:pypi/jsonschema?source=compressed-mapping run_exports: {} size: 82084 timestamp: 1787579299493 @@ -12183,7 +12309,7 @@ packages: license: BSD-3-Clause license_family: BSD purls: - - pkg:pypi/nbclient?source=hash-mapping + - pkg:pypi/nbclient?source=compressed-mapping run_exports: {} size: 29971 timestamp: 1788212974885 @@ -12292,7 +12418,7 @@ packages: license: MIT license_family: MIT purls: - - pkg:pypi/platformdirs?source=compressed-mapping + - pkg:pypi/platformdirs?source=hash-mapping run_exports: {} size: 33902 timestamp: 1791424402874 @@ -13118,6 +13244,13 @@ packages: run_exports: {} size: 118849 timestamp: 1784250406640 +- conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026e-h5d301ff_0.conda + sha256: 2b7ca858879f183ce2dcc65b300f48a0133d5430550f35b23d80d405a0788dbf + md5: abccc3810d2b97e570dee487f2b46e38 + license: LicenseRef-Public-Domain + run_exports: {} + size: 119208 + timestamp: 1792758382821 - conda: https://conda.anaconda.org/conda-forge/noarch/urllib3-2.8.0-pyhd8ed1ab_0.conda sha256: c5511c190ab55168ca412f3c54592fbf677ae6250784cb72b227a7cf3f538f7d md5: 407a3d3778570bae8e8fcf554e803e43 @@ -13416,30 +13549,6 @@ packages: run_exports: {} size: 252875 timestamp: 1789746805191 -- conda: https://conda.anaconda.org/conda-forge/win-64/cuda-bindings-13.2.0-py312hc128f0a_1.conda - sha256: 31113f2c14b5e549aa59863f711890e9bf442defd7af3bd6ff192ec96e5dcdf1 - md5: a17fac259dd34ef9ee1f508933614967 - depends: - - cuda-nvrtc >=13,<14.0a0 - - cuda-nvvm-impl >=13,<14.0a0 - - cuda-pathfinder >=1.1.0,<2 - - cuda-version >=13,<14.0a0 - - libnvfatbin - - libnvjitlink >=13.0,<14.0a0 - - python >=3.12,<3.13.0a0 - - python_abi 3.12.* *_cp312 - - ucrt >=10.0.20348.0 - - vc >=14.3,<15 - - vc14_runtime >=14.44.35208 - constrains: - - cuda-python >=13.2.0,<13.3.0a0 - - cuda-cudart >=13,<14.0a0 - license: LicenseRef-NVIDIA-SOFTWARE-LICENSE - purls: - - pkg:pypi/cuda-bindings?source=hash-mapping - run_exports: {} - size: 3509245 - timestamp: 1779249639234 - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-12.9.79-he0c23c2_0.conda sha256: a30cd9adf3a70d069d4d87c5728ec16778b77071629612ca5d8513cd92d89c09 md5: 0a243d4f000a0d2f51dd94ee9132b234 @@ -14221,6 +14330,20 @@ packages: run_exports: {} size: 72107 timestamp: 1790346254561 +- conda: https://conda.anaconda.org/conda-forge/win-64/libexpat-2.9.0-hac47afa_0.conda + sha256: d4a8e5aac8999a90cd71aa6f9f5c40d8594ed2b89cd7f898f997767ecc6cd52d + md5: 74ac404611024dc488ae71cfb7a5bf8f + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + constrains: + - expat 2.9.0.* + license: MIT + license_family: MIT + run_exports: {} + size: 72983 + timestamp: 1793054271728 - conda: https://conda.anaconda.org/conda-forge/win-64/libffi-3.7.0-h3d046cb_1.conda sha256: 613e8077c5cca5df7fe84ade7d5050301bee3c6c4c450ffe61d34a349ab4f11c md5: ceb38b0ba900847d8da4289c3c8e5708 @@ -14930,7 +15053,7 @@ packages: - jinja2 >=3.0.0 license: BSD-3-Clause purls: - - pkg:pypi/markupsafe?source=compressed-mapping + - pkg:pypi/markupsafe?source=hash-mapping run_exports: {} size: 28515 timestamp: 1791548981413 @@ -15044,7 +15167,7 @@ packages: license: BSD-3-Clause license_family: BSD purls: - - pkg:pypi/numpy?source=compressed-mapping + - pkg:pypi/numpy?source=hash-mapping run_exports: weak: - numpy >=1.25,<3 @@ -15638,6 +15761,18 @@ packages: run_exports: {} size: 13387537 timestamp: 1792672517235 +- conda: https://conda.anaconda.org/conda-forge/win-64/uv-0.13.7-hf7a7c96_0.conda + sha256: b662d664862bf73941b02ce76868398956cf893475dc3e31ff49de198b14b4a8 + md5: bab575f975c8a087dbbc56d8188265d7 + depends: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - zstd >=1.5.7,<1.6.0a0 + license: Apache-2.0 OR MIT + run_exports: {} + size: 13299866 + timestamp: 1793689103658 - conda: https://conda.anaconda.org/conda-forge/win-64/vc-14.5-ha367084_41.conda sha256: 35444c55a92e2f7f7ba26bc70f81e56e52344f7d064c0fd4b40a46a58517b79c md5: aa805b5522c2a98fa286e551a1f48546 @@ -15651,6 +15786,18 @@ packages: run_exports: {} size: 21383 timestamp: 1785359368566 +- conda: https://conda.anaconda.org/conda-forge/win-64/vc-14.5-ha367084_42.conda + sha256: 0598ca1ce913618cff9bd90391bcf75cd9edb22057c85dd6784dd762b7a888e2 + md5: 14166cbeafd1f1d255bd21abcc742a65 + depends: + - vc14_runtime >=14.51.36247 + track_features: + - vc14 + license: BSD-3-Clause + license_family: BSD + run_exports: {} + size: 21309 + timestamp: 1793305687162 - conda: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.51.36247-habf1de7_41.conda sha256: 4e4cb599cdc41bf2109d1464c127b5bcbddf548ce3e322e612afb691338b48f8 md5: ac5333bb3d429361f23adf704cc49a78 @@ -15665,6 +15812,19 @@ packages: run_exports: {} size: 767955 timestamp: 1785359364369 +- conda: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.51.36247-habf1de7_42.conda + sha256: 8dfbfd68ebf53249d11e528cbb80ad5a2460b0c5b4636eed82ee0d3950827a3d + md5: bc3b057d4b2458cf95326daa33acf9da + depends: + - ucrt >=10.0.20348.0 + - vcomp14 14.51.36247 habf1de7_42 + constrains: + - vs2015_runtime 14.51.36247.* *_42 + license: LicenseRef-MicrosoftVisualCpp2015-2022Runtime + license_family: Proprietary + run_exports: {} + size: 767099 + timestamp: 1793305684782 - conda: https://conda.anaconda.org/conda-forge/win-64/vcomp14-14.51.36247-habf1de7_41.conda sha256: 731e043390c9457299484d39e427221fc868a9249540a498a5a4f6456c7744d1 md5: 350bb67a5c8e5f1c53347ac544ab6600 @@ -15680,6 +15840,20 @@ packages: - vcomp14 >=14.51.36247 size: 155910 timestamp: 1785359349999 +- conda: https://conda.anaconda.org/conda-forge/win-64/vcomp14-14.51.36247-habf1de7_42.conda + sha256: b3558ed059d6272ef919ea959311af73c35b5fe43c789cd43f71b398671fec49 + md5: 948483905faab0e83c9aed0414004194 + depends: + - ucrt >=10.0.20348.0 + constrains: + - vs2015_runtime 14.51.36247.* *_42 + license: LicenseRef-MicrosoftVisualCpp2015-2022Runtime + license_family: Proprietary + run_exports: + strong: + - vcomp14 >=14.51.36247 + size: 155686 + timestamp: 1793305669217 - conda: https://conda.anaconda.org/conda-forge/win-64/vs2022_win-64-19.44.35207-ha74f236_41.conda sha256: 9d7d1b43cf4af5a8e8b1646175c9f899ffbcab189a33ac41127a96e7bcf41af0 md5: 04190e0ebd886433300ce9343ee98942 @@ -15698,6 +15872,24 @@ packages: - ucrt >=10.0.20348.0 size: 25462 timestamp: 1785358620723 +- conda: https://conda.anaconda.org/conda-forge/win-64/vs2022_win-64-19.44.35207-ha74f236_42.conda + sha256: 872123d66fbc41898bea34973cbf64544c41cdcd5123a00abe747c5f35b92898 + md5: 410be03ef3a0eb26e1b20cb90be5493c + depends: + - vswhere + constrains: + - vs_win-64 2022.14 + track_features: + - vc14 + license: BSD-3-Clause + license_family: BSD + run_exports: + strong: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + size: 25374 + timestamp: 1793120002126 - conda: https://conda.anaconda.org/conda-forge/win-64/wcwidth-0.9.2-py311hdbcae8a_0.conda noarch: python sha256: ad6a9373bed593daf3f8645044a2ac793726b4482ce78dbdb46a81cb9dfb4448 @@ -15714,7 +15906,7 @@ packages: license: MIT license_family: MIT purls: - - pkg:pypi/wcwidth?source=compressed-mapping + - pkg:pypi/wcwidth?source=hash-mapping run_exports: {} size: 348834 timestamp: 1791194558195 @@ -16289,68 +16481,351 @@ packages: - conda: https://conda.anaconda.org/conda-forge/win-64/vcomp14-14.51.36247-habf1de7_41.conda - conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda - conda_source: cuda-pathfinder[f6abc7c0] @ ../cuda_pathfinder -- conda_source: cuda-bindings[e3183a23] @ . +- conda_source: cuda-bindings[c345f5cd] @ . variants: - c_stdlib: sysroot - c_stdlib_version: '2.28' - cuda_version: 12.* - python: 3.14.* - target_platform: linux-aarch64 + c_compiler: vs2022 + cuda_version: 13.5.* + cxx_compiler: vs2022 + python: 3.12.* + target_platform: win-64 depends: - - __glibc >=2.28,<3.0.a0 - cuda-nvrtc - - cuda-nvrtc >=12.9.86,<13.0a0 + - cuda-nvrtc >=13.5.37,<14.0a0 - cuda-nvvm - cuda-pathfinder - cuda-version - - libcufile - - libcufile >=1.14.1.1,<2.0a0 - - libgcc >=16 - - libgcc >=16 - libnvfatbin - libnvjitlink - - libstdcxx >=16 - python - python >=3.11 - - python_abi 3.14.* *_cp314 + - python_abi 3.12.* *_cp312 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 license: Apache-2.0 source_depends: cuda-pathfinder: path: ../cuda_pathfinder build_packages: - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/binutils_impl_linux-aarch64-2.46.1-default_h5f4c503_102.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/binutils_linux-aarch64-2.46.1-default_hf1166c9_102.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gcc_impl_linux-aarch64-16.2.0-h5425ead_7.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gcc_linux-aarch64-16.2.0-h25cc031_2.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gxx_impl_linux-aarch64-16.2.0-h1e3c31f_7.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gxx_linux-aarch64-16.2.0-h423111d_2.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ld_impl_linux-aarch64-2.46.1-default_h1979696_102.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgcc-16.2.0-h205dda4_7.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgomp-16.2.0-h8acb6b2_7.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsanitizer-16.2.0-h73cac2c_7.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libstdcxx-16.2.0-hef695bb_7.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libzlib-1.3.2-hdc9db2a_3.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/zstd-1.5.7-h9d15635_7.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/kernel-headers_linux-aarch64-4.18.0-h05a177a_9.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/libgcc-devel_linux-aarch64-16.2.0-hc0c2482_107.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/libstdcxx-devel_linux-aarch64-16.2.0-h082e5f6_107.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/sysroot_linux-aarch64-2.28-h585391f_9.conda - - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/vswhere-3.1.7-h40126e0_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vs2022_win-64-19.44.35207-ha74f236_42.conda host_packages: - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/bzip2-1.0.8-h4777abc_10.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-12.9.79-h3ae8b8a_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-12.9.79-h3ae8b8a_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-12.9.79-h3ae8b8a_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-12.9.86-h8f3c8d4_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-dev-12.9.86-h8f3c8d4_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-12.9.86-he9431aa_106.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-12.9.86-h7b14b0b_2.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-12.9.86-h7b14b0b_2.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-12.9.79-h16bee8c_1.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cython-3.2.9-py314hc6b4731_0.conda - - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ld_impl_linux-aarch64-2.46.1-default_h1979696_102.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-h4c7d964_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_win-64-13.3.5.0.6-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_win-64-13.5.37-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_win-64-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_win-64-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_win-64-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_win-64-13.5.37-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.12-9_cp312.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.2.1-pyhe730653_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-scm-10.3.4-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.5.0-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026e-h5d301ff_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h0ad9c76_10.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-dev-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-cudart-static-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvrtc-dev-13.5.37-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-13.5.37-h719f0c7_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-impl-13.5.37-hfd05255_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-nvvm-tools-13.5.37-hfd05255_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cuda-profiler-api-13.5.25-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/cython-3.2.9-py312hd245ac3_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libexpat-2.9.0-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libffi-3.7.0-h3d046cb_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/liblzma-5.8.3-hfd05255_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libpython-3.12.16-hfb4101e_0_cpython.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libsqlite-3.54.1-hf5d6505_101.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libzlib-1.3.2-hfd05255_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/openssl-3.6.5-hf411b9b_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/python-3.12.16-hb12b558_0_cpython.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/tk-8.6.13-h967ab96_4.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/uv-0.13.7-hf7a7c96_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vc-14.5-ha367084_42.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.51.36247-habf1de7_42.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vcomp14-14.51.36247-habf1de7_42.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda + - conda_source: cuda-pathfinder[6a6a6b0a] @ ../cuda_pathfinder +- conda_source: cuda-bindings[c92b487d] @ . + variants: + c_stdlib: sysroot + c_stdlib_version: '2.28' + cuda_version: 13.5.* + python: 3.12.* + target_platform: linux-64 + depends: + - __glibc >=2.28,<3.0.a0 + - cuda-nvrtc + - cuda-nvrtc >=13.5.37,<14.0a0 + - cuda-nvvm + - cuda-pathfinder + - cuda-version + - libcufile + - libcufile >=1.20.0.107,<2.0a0 + - libgcc >=16 + - libgcc >=16 + - libnvfatbin + - libnvjitlink + - libstdcxx >=16 + - python + - python >=3.11 + - python_abi 3.12.* *_cp312 + license: Apache-2.0 + source_depends: + cuda-pathfinder: + path: ../cuda_pathfinder + build_packages: + - conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/binutils_impl_linux-64-2.46.1-default_hfdba357_103.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/binutils_linux-64-2.46.1-default_h4852527_103.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/gcc_impl_linux-64-16.2.0-h9891192_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/gcc_linux-64-16.2.0-h0ab548f_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/gxx_impl_linux-64-16.2.0-h0d273dc_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/gxx_linux-64-16.2.0-h23aca61_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.46.1-default_hbd61a6d_103.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgcc-16.2.0-ha9f2e26_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgomp-16.2.0-he0feb66_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libsanitizer-16.2.0-h3048135_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-16.2.0-h934c35e_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libzlib-1.3.2-h25fd6f3_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/zstd-1.5.7-hb78ec9c_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/kernel-headers_linux-64-4.18.0-he073ed8_9.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libgcc-devel_linux-64-16.2.0-he3ce08f_107.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libstdcxx-devel_linux-64-16.2.0-h86e191b_107.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sysroot_linux-64-2.28-h4ee821c_9.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026e-h5d301ff_0.conda + host_packages: + - conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-hda65f42_10.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-dev-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-cudart-static-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvrtc-dev-13.5.37-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-13.5.37-h69a702a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-impl-13.5.37-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-nvvm-tools-13.5.37-hb03c661_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cuda-profiler-api-13.5.25-h7938cbb_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/cython-3.2.9-py312h68e6be4_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.46.1-default_hbd61a6d_103.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcap-2.78-h084b8d7_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-1.20.0.107-h63c01a6_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libcufile-dev-1.20.0.107-h393e864_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.9.0-hd2095e1_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.7.0-h81df57d_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgcc-16.2.0-ha9f2e26_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgomp-16.2.0-he0feb66_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/liblzma-5.8.3-hb03c661_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnl-3.11.0-hb03c661_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libnsl-2.0.1-hb9d3cd8_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libpython-3.12.16-ha57cdbe_0_cpython.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libsqlite-3.54.1-h0737f62_101.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-16.2.0-h934c35e_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libsystemd0-262.1-h26e0ef7_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libudev1-262.1-h26e0ef7_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libuuid-2.42.4-hcfc3c73_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libxcrypt-4.4.38-h280c20c_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libzlib-1.3.2-h25fd6f3_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/ncurses-6.6-hdb14827_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.6.5-h781a0a9_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/python-3.12.16-h5f976f7_0_cpython.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/rdma-core-65.0-h7b4f2e6_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/readline-8.3-hd6e31c0_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.13-noxft_h1df4ec4_4.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/uv-0.13.7-h535ca38_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/zstd-1.5.7-hb78ec9c_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-hbd8a1cb_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-64-13.3.5.0.6-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-64-13.5.37-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-64-13.5.37-h528332f_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-64-13.5.37-ha770c72_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.12-9_cp312.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.2.1-pyhe730653_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-scm-10.3.4-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.5.0-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026e-h5d301ff_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda + - conda_source: cuda-pathfinder[10e1cc92] @ ../cuda_pathfinder +- conda_source: cuda-bindings[d088a16d] @ . + variants: + c_stdlib: sysroot + c_stdlib_version: '2.28' + cuda_version: 13.5.* + python: 3.12.* + target_platform: linux-aarch64 + depends: + - __glibc >=2.28,<3.0.a0 + - cuda-nvrtc + - cuda-nvrtc >=13.5.37,<14.0a0 + - cuda-nvvm + - cuda-pathfinder + - cuda-version + - libcufile + - libcufile >=1.20.0.107,<2.0a0 + - libgcc >=16 + - libgcc >=16 + - libnvfatbin + - libnvjitlink + - libstdcxx >=16 + - python + - python >=3.11 + - python_abi 3.12.* *_cp312 + license: Apache-2.0 + source_depends: + cuda-pathfinder: + path: ../cuda_pathfinder + build_packages: + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/binutils_impl_linux-aarch64-2.46.1-default_h5f4c503_103.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/binutils_linux-aarch64-2.46.1-default_hf1166c9_103.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gcc_impl_linux-aarch64-16.2.0-h5425ead_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gcc_linux-aarch64-16.2.0-h25cc031_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gxx_impl_linux-aarch64-16.2.0-h1e3c31f_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gxx_linux-aarch64-16.2.0-h423111d_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ld_impl_linux-aarch64-2.46.1-default_h1979696_103.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgcc-16.2.0-h205dda4_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgomp-16.2.0-h8acb6b2_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsanitizer-16.2.0-h73cac2c_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libstdcxx-16.2.0-hef695bb_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libzlib-1.3.2-hdc9db2a_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/zstd-1.5.7-h9d15635_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/kernel-headers_linux-aarch64-4.18.0-h05a177a_9.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libgcc-devel_linux-aarch64-16.2.0-hc0c2482_107.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libstdcxx-devel_linux-aarch64-16.2.0-h082e5f6_107.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sysroot_linux-aarch64-2.28-h585391f_9.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026e-h5d301ff_0.conda + host_packages: + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/bzip2-1.0.8-h4777abc_10.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-dev-13.5.37-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-13.5.37-he9431aa_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-13.5.37-hbe86820_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-13.5.37-hbe86820_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-13.5.25-h16bee8c_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cython-3.2.9-py312hbda70bc_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ld_impl_linux-aarch64-2.46.1-default_h1979696_103.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcap-2.78-hfcc8634_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.20.0.107-hc7dfe37_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-dev-1.20.0.107-hc1d3098_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libexpat-2.9.0-h4154aff_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libffi-3.7.0-hdaad0be_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgcc-16.2.0-h205dda4_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgomp-16.2.0-h8acb6b2_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/liblzma-5.8.3-he30d5cf_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnl-3.11.0-he30d5cf_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libnsl-2.0.1-h86ecc28_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libpython-3.12.16-h3cfa5a6_0_cpython.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsqlite-3.54.1-hd26f1b6_101.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libstdcxx-16.2.0-hef695bb_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsystemd0-262.1-hd1ea486_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libudev1-262.1-hd1ea486_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libuuid-2.42.4-hd6fdeab_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libxcrypt-4.4.38-h80f16a2_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libzlib-1.3.2-hdc9db2a_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ncurses-6.6-h2b6f883_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/openssl-3.6.5-he6ad1d5_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/python-3.12.16-h94ad73b_0_cpython.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/rdma-core-65.0-h807d763_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/readline-8.3-ha7194a6_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/tk-8.6.13-noxft_hf03c496_4.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/uv-0.13.7-h779c035_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/zstd-1.5.7-h9d15635_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/arm-variant-1.2.0-sbsa.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-hbd8a1cb_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cccl_linux-aarch64-13.3.5.0.6-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-crt-dev_linux-aarch64-13.5.37-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-dev_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart-static_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-cudart_linux-aarch64-13.5.37-hf3a43d7_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-nvvm-dev_linux-aarch64-13.5.37-h579c4fd_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/cuda-version-13.5-h3499c3b_3.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.12-9_cp312.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.2.1-pyhe730653_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-scm-10.3.4-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.5.0-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026e-h5d301ff_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda + - conda_source: cuda-pathfinder[f06c437b] @ ../cuda_pathfinder +- conda_source: cuda-bindings[e3183a23] @ . + variants: + c_stdlib: sysroot + c_stdlib_version: '2.28' + cuda_version: 12.* + python: 3.14.* + target_platform: linux-aarch64 + depends: + - __glibc >=2.28,<3.0.a0 + - cuda-nvrtc + - cuda-nvrtc >=12.9.86,<13.0a0 + - cuda-nvvm + - cuda-pathfinder + - cuda-version + - libcufile + - libcufile >=1.14.1.1,<2.0a0 + - libgcc >=16 + - libgcc >=16 + - libnvfatbin + - libnvjitlink + - libstdcxx >=16 + - python + - python >=3.11 + - python_abi 3.14.* *_cp314 + license: Apache-2.0 + source_depends: + cuda-pathfinder: + path: ../cuda_pathfinder + build_packages: + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/binutils_impl_linux-aarch64-2.46.1-default_h5f4c503_102.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/binutils_linux-aarch64-2.46.1-default_hf1166c9_102.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gcc_impl_linux-aarch64-16.2.0-h5425ead_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gcc_linux-aarch64-16.2.0-h25cc031_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gxx_impl_linux-aarch64-16.2.0-h1e3c31f_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/gxx_linux-aarch64-16.2.0-h423111d_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ld_impl_linux-aarch64-2.46.1-default_h1979696_102.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgcc-16.2.0-h205dda4_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgomp-16.2.0-h8acb6b2_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsanitizer-16.2.0-h73cac2c_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libstdcxx-16.2.0-hef695bb_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libzlib-1.3.2-hdc9db2a_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/zstd-1.5.7-h9d15635_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/kernel-headers_linux-aarch64-4.18.0-h05a177a_9.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libgcc-devel_linux-aarch64-16.2.0-hc0c2482_107.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/libstdcxx-devel_linux-aarch64-16.2.0-h082e5f6_107.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/sysroot_linux-aarch64-2.28-h585391f_9.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda + host_packages: + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/bzip2-1.0.8-h4777abc_10.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-dev-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-cudart-static-12.9.79-h3ae8b8a_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-12.9.86-h8f3c8d4_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvrtc-dev-12.9.86-h8f3c8d4_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-12.9.86-he9431aa_106.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-impl-12.9.86-h7b14b0b_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-nvvm-tools-12.9.86-h7b14b0b_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cuda-profiler-api-12.9.79-h16bee8c_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/cython-3.2.9-py314hc6b4731_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ld_impl_linux-aarch64-2.46.1-default_h1979696_102.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcap-2.78-hfcc8634_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-1.14.1.1-had8bf56_1.conda - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libcufile-dev-1.14.1.1-he38c790_1.conda @@ -16394,6 +16869,43 @@ packages: - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda - conda_source: cuda-pathfinder[a51836e4] @ ../cuda_pathfinder +- conda_source: cuda-pathfinder[10e1cc92] @ ../cuda_pathfinder + variants: + target_platform: noarch + depends: + - python * + - python >=3.11 + license: Apache-2.0 + host_packages: + - conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-hda65f42_10.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.46.1-default_hbd61a6d_103.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libedit-3.1.20260512-pl5321h373387f_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.9.0-hd2095e1_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.7.0-h81df57d_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgcc-16.2.0-ha9f2e26_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libgomp-16.2.0-he0feb66_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/liblzma-5.8.3-hb03c661_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libmpdec-4.0.0-hb03c661_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libsqlite-3.54.1-h0737f62_101.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-16.2.0-h934c35e_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libuuid-2.42.4-hcfc3c73_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/libzlib-1.3.2-h25fd6f3_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/ncurses-6.6-hdb14827_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.6.5-h781a0a9_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/python-3.15.2-h6e52b48_100_cp315.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.13-noxft_h1df4ec4_4.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/uv-0.13.7-h535ca38_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/zstd-1.5.7-hb78ec9c_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-hbd8a1cb_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.15-9_cp315.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.2.1-pyhe730653_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-scm-10.3.4-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.5.0-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026e-h5d301ff_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda - conda_source: cuda-pathfinder[3da77f45] @ ../cuda_pathfinder variants: target_platform: noarch @@ -16431,6 +16943,39 @@ packages: - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026c-h151e31d_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda +- conda_source: cuda-pathfinder[6a6a6b0a] @ ../cuda_pathfinder + variants: + target_platform: noarch + depends: + - python * + - python >=3.11 + license: Apache-2.0 + host_packages: + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-h4c7d964_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.15-9_cp315.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.2.1-pyhe730653_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-scm-10.3.4-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.5.0-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026e-h5d301ff_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h0ad9c76_10.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libexpat-2.9.0-hac47afa_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libffi-3.7.0-h3d046cb_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/liblzma-5.8.3-hfd05255_1.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libmpdec-4.0.0-hfd05255_2.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libsqlite-3.54.1-hf5d6505_101.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/libzlib-1.3.2-hfd05255_3.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/openssl-3.6.5-hf411b9b_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/python-3.15.2-h53f6dd8_100_cp315.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/tk-8.6.13-h967ab96_4.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/uv-0.13.7-hf7a7c96_0.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vc-14.5-ha367084_42.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.51.36247-habf1de7_42.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/vcomp14-14.51.36247-habf1de7_42.conda + - conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda - conda_source: cuda-pathfinder[8f545c34] @ ../cuda_pathfinder variants: target_platform: noarch @@ -16575,6 +17120,43 @@ packages: - conda: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.51.36247-habf1de7_41.conda - conda: https://conda.anaconda.org/conda-forge/win-64/vcomp14-14.51.36247-habf1de7_41.conda - conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda +- conda_source: cuda-pathfinder[f06c437b] @ ../cuda_pathfinder + variants: + target_platform: noarch + depends: + - python * + - python >=3.11 + license: Apache-2.0 + host_packages: + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/_openmp_mutex-4.5-20_gnu.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/bzip2-1.0.8-h4777abc_10.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ld_impl_linux-aarch64-2.46.1-default_h1979696_103.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libedit-3.1.20260512-pl5321hc48eb74_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libexpat-2.9.0-h4154aff_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libffi-3.7.0-hdaad0be_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgcc-16.2.0-h205dda4_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libgomp-16.2.0-h8acb6b2_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/liblzma-5.8.3-he30d5cf_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libmpdec-4.0.0-he30d5cf_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libsqlite-3.54.1-hd26f1b6_101.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libstdcxx-16.2.0-hef695bb_7.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libuuid-2.42.4-hd6fdeab_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/libzlib-1.3.2-hdc9db2a_3.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/ncurses-6.6-h2b6f883_1.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/openssl-3.6.5-he6ad1d5_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/python-3.15.2-h0c7c799_100_cp315.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/tk-8.6.13-noxft_hf03c496_4.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/uv-0.13.7-h779c035_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-aarch64/zstd-1.5.7-h9d15635_7.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.10.23-hbd8a1cb_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.15-9_cp315.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-84.2.1-pyhe730653_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-scm-10.3.4-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.5.0-pyh5ded981_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/tzdata-2026e-h5d301ff_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/vcs_versioning-2.6.0-pyh5ded981_0.conda - conda_source: cuda-pathfinder[f6abc7c0] @ ../cuda_pathfinder variants: target_platform: noarch diff --git a/cuda_bindings_13/pixi.toml b/cuda_bindings_13/pixi.toml index 854ca2fadace..a3d33e678199 100644 --- a/cuda_bindings_13/pixi.toml +++ b/cuda_bindings_13/pixi.toml @@ -28,7 +28,8 @@ cuda-python-test-helpers = { path = "../cuda_python_test_helpers", editable = tr # Keep this dependency set aligned with cuda_python/docs/environment-docs.yml. [feature.docs.dependencies] -cuda-bindings = "13.2.*" +# Document the checkout's API, including modules absent from published packages. +cuda-bindings = { path = "." } python = "3.12.*" cython = ">=3.2.5,<3.3" enum_tools = "*" diff --git a/cuda_python/docs/environment-docs.yml b/cuda_python/docs/environment-docs.yml index 3152f0a3a937..a82fd02aa5ec 100644 --- a/cuda_python/docs/environment-docs.yml +++ b/cuda_python/docs/environment-docs.yml @@ -19,6 +19,8 @@ dependencies: - sphinx-copybutton - myst-nb - enum_tools + # cuda_bindings_12/docs/source/conf.py uses the Furo theme. + - furo - sphinx-toolbox - pyclibrary - pip: diff --git a/toolshed/setup-docs-env.sh b/toolshed/setup-docs-env.sh index 9acbaa8e391a..73afbbf06f9a 100755 --- a/toolshed/setup-docs-env.sh +++ b/toolshed/setup-docs-env.sh @@ -51,6 +51,7 @@ conda create -y -n "${ENV_NAME}" \ sphinx-copybutton \ myst-nb \ enum_tools \ + furo \ sphinx-toolbox \ pyclibrary From 68a68b84e53fa4e2f8c01fbfe64aa64fa9634fa2 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Thu, 12 Nov 2026 21:24:57 -0800 Subject: [PATCH 41/85] [no-ci] ci: plan builds and artifact reuse per bindings root (#3321) * ci: plan builds and artifact reuse per bindings root Signed-off-by: Ralf W. Grosse-Kunstleve * Match wheel tests by toolkit target and retain build artifact identity Signed-off-by: Ralf W. Grosse-Kunstleve * Simplify Cython test installation and align release guidance Signed-off-by: Ralf W. Grosse-Kunstleve * ci: avoid instruction-only smoke failures and isolate package input * ci: limit source-build workflow token permissions * ci: preserve H200 coverage on nightly-only runners * ci: retain standard suites on older integration runtimes * ci: keep runtime coverage compatible with historical matrices * ci: keep toolkit setup aligned with workflow revision * ci: retain standard suites on pinned nightly drivers * ci: preserve standard suites across prior nightly GPU cases * ci: restore production nightly test scope * ci: centralize workplan and test environment decisions * ci: simplify environment setup and package selection * ci: make legacy test routing explicit and finish review cleanup * ci: finish planner output and environment simplification * ci: reject missing scheduler outputs in the final gate --------- Signed-off-by: Ralf W. Grosse-Kunstleve --- .github/RELEASE-bindings.md | 4 +- .github/actions/fetch_ctk/action.yml | 12 +- .github/workflows/build-wheel.yml | 430 ++++++++++-------- .github/workflows/ci-nightly.yml | 12 + .github/workflows/ci-pixi-source-test.yml | 229 ++++++---- .github/workflows/ci.yml | 241 +++------- .github/workflows/coverage.yml | 15 +- .github/workflows/test-sdist-linux.yml | 41 +- .github/workflows/test-sdist-windows.yml | 41 +- .github/workflows/test-wheel-linux.yml | 179 ++++---- .github/workflows/test-wheel-windows.yml | 180 ++++---- ci/tools/bindings_config.py | 13 + ci/tools/ci_artifacts.py | 65 +++ ci/tools/ci_env.py | 164 +++++++ ci/tools/compute_ci_plan.py | 382 ++++++++++++---- ci/tools/cuda_core_bindings_floor.py | 2 +- ci/tools/env-vars | 167 ------- ci/tools/run-tests | 61 ++- ci/tools/select_pixi_packages.py | 83 ++++ ci/tools/select_test_matrix.py | 143 ++++++ ci/tools/tests/AGENTS.md | 20 + ci/tools/tests/test_bindings_config.py | 13 - ci/tools/tests/test_compute_ci_plan.py | 368 ++++++++------- ci/tools/tests/test_merge_cuda_core_wheels.py | 38 ++ ci/tools/tests/test_select_pixi_packages.py | 53 +++ ci/tools/tests/test_select_test_matrix.py | 141 ++++++ ci/versions.yml | 3 +- 27 files changed, 1970 insertions(+), 1130 deletions(-) create mode 100644 ci/tools/ci_artifacts.py create mode 100644 ci/tools/ci_env.py delete mode 100755 ci/tools/env-vars create mode 100644 ci/tools/select_pixi_packages.py create mode 100644 ci/tools/select_test_matrix.py create mode 100644 ci/tools/tests/AGENTS.md create mode 100644 ci/tools/tests/test_merge_cuda_core_wheels.py create mode 100644 ci/tools/tests/test_select_pixi_packages.py create mode 100644 ci/tools/tests/test_select_test_matrix.py diff --git a/.github/RELEASE-bindings.md b/.github/RELEASE-bindings.md index fa0c98510553..38be115d1908 100644 --- a/.github/RELEASE-bindings.md +++ b/.github/RELEASE-bindings.md @@ -55,8 +55,8 @@ cybind inputs instead of blindly copying generated output between majors. branch. Normal development CI includes dependent packages and may cover both majors. Resolve failures in affected code before selecting the tag. 3. Create the approved immutable `vX.Y.Z` tag at the selected source commit. - Tag-triggered CI builds both bindings lines and their consumers. The release - workflow selects only the requested line's bindings or metapackage artifacts. + Tag-triggered CI selects that line's bindings and metapackage, validates them + with the published Pathfinder dependency, and builds release artifacts. The tag does not have to be on `main`. Wait for this exact tag's CI to pass. 4. Run **CI: Release** with `release-action=dry-run`, the tag, and `component=cuda-bindings`; repeat for `cuda-python`. Leave `run-id` blank diff --git a/.github/actions/fetch_ctk/action.yml b/.github/actions/fetch_ctk/action.yml index d51badde38da..2c33b2c6603e 100644 --- a/.github/actions/fetch_ctk/action.yml +++ b/.github/actions/fetch_ctk/action.yml @@ -34,20 +34,24 @@ inputs: Override to install from an alternate redistrib server. required: false default: "https://developer.download.nvidia.com/compute/cuda/redist" + redistrib-tool: + description: "Path to fetch_ctk_redistrib.py, relative to the runtime workspace" + required: false + default: "ci/tools/fetch_ctk_redistrib.py" runs: using: composite steps: - name: Install Unix dependencies if: ${{ runner.os == 'Linux' }} - uses: ./.github/actions/install_unix_deps + uses: $/.github/actions/install_unix_deps with: dependencies: "zstd curl xz-utils" dependent_exes: "zstd curl xz" - name: Install Windows dependencies if: ${{ runner.os == 'Windows' }} - uses: ./.github/actions/install_windows_deps + uses: $/.github/actions/install_windows_deps with: dependent_exes: "curl unzip tar sha256sum cygpath" @@ -83,7 +87,7 @@ runs: shell: bash --noprofile --norc -xeuo pipefail {0} run: | # Use the runtime workspace mount so this also works inside container jobs. - CTK_REDIST_TOOL="${GITHUB_WORKSPACE}/ci/tools/fetch_ctk_redistrib.py" + CTK_REDIST_TOOL="${GITHUB_WORKSPACE}/${{ inputs.redistrib-tool }}" CTK_BASE_URL="${{ inputs.redist-base-url }}" # A trailing slash would defeat the public-server comparison below and double up in URLs. CTK_BASE_URL="${CTK_BASE_URL%/}" @@ -148,7 +152,7 @@ runs: mkdir $CACHE_TMP_DIR # Use the runtime workspace mount so this also works inside container jobs. - CTK_REDIST_TOOL="${GITHUB_WORKSPACE}/ci/tools/fetch_ctk_redistrib.py" + CTK_REDIST_TOOL="${GITHUB_WORKSPACE}/${{ inputs.redistrib-tool }}" # CTK_BASE_URL and the verified manifest at CTK_JSON_FILE come from # "Set up CTK cache variable". if [[ "${{ inputs.host-platform }}" == linux* ]]; then diff --git a/.github/workflows/build-wheel.yml b/.github/workflows/build-wheel.yml index d980dc0d5785..ff4f2d66c421 100644 --- a/.github/workflows/build-wheel.yml +++ b/.github/workflows/build-wheel.yml @@ -8,26 +8,15 @@ on: host-platform: required: true type: string - cuda-version: - required: true - type: string - prev-cuda-version: - required: true - type: string workplan: - description: JSON workplan. An empty value builds and tests everything. - required: false + description: JSON workplan. + required: true type: string - default: "" single-cuda-major: description: "Build wheels for only the current CUDA major; skip the prior-major build and wheel merge" required: false type: boolean default: false - python-versions: - description: "JSON-encoded array of Python versions to build (e.g. '[\"3.11\",\"3.12\"]'). ci.yml sources this from ci/versions.yml." - required: true - type: string defaults: run: @@ -39,29 +28,10 @@ permissions: jobs: build: - env: - BUILD_PATHFINDER: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.pathfinder.needs_build }} - BUILD_BINDINGS: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.bindings.needs_build }} - BUILD_CORE: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.core.needs_build }} - BUILD_PYTHON: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.python.needs_build }} - TEST_BINDINGS: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.bindings.needs_test }} - TEST_CORE: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.core.needs_test }} - TEST_PYTHON: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.python.needs_test }} - BUILD_MAINTENANCE_BINDINGS: >- - ${{ !inputs.single-cuda-major && - (inputs.workplan == '' || - fromJSON(inputs.workplan).modules.bindings.needs_build || - fromJSON(inputs.workplan).modules.bindings.needs_test || - fromJSON(inputs.workplan).modules.core.needs_build || - fromJSON(inputs.workplan).modules.core.needs_test || - fromJSON(inputs.workplan).modules.python.needs_build || - fromJSON(inputs.workplan).modules.python.needs_test) }} - BASELINE_RUN_ID: ${{ inputs.workplan != '' && fromJSON(inputs.workplan).baseline.run_id || '' }} - BASELINE_SHA: ${{ inputs.workplan != '' && fromJSON(inputs.workplan).baseline.sha || '' }} strategy: fail-fast: false matrix: - python-version: ${{ fromJSON(inputs.python-versions) }} + python-version: ${{ fromJSON(inputs.workplan).jobs.wheel_python_versions[inputs.host-platform] }} name: py${{ matrix.python-version }} runs-on: ${{ (inputs.host-platform == 'linux-64' && 'linux-amd64-cpu8') || (inputs.host-platform == 'linux-aarch64' && 'linux-arm64-cpu8') || @@ -97,22 +67,6 @@ jobs: # the job level instead of linking into the diff. run: echo "::add-matcher::.github/matchers/compiler.json" - - name: Install rapidsai/sccache - if: ${{ startsWith(inputs.host-platform, 'linux') && (env.BUILD_BINDINGS == 'true' || env.BUILD_CORE == 'true' || env.BUILD_MAINTENANCE_BINDINGS == 'true') }} - uses: ./.github/actions/install-sccache - - # The runner only exposes these values to actions, not to `run:` steps or - # the cibuildwheel container, so re-export them for sccache's GHA backend. - # xref: https://github.com/orgs/community/discussions/42856#discussioncomment-7678867 - - name: Adding addtional GHA cache-related env vars - if: ${{ env.BUILD_BINDINGS == 'true' || env.BUILD_CORE == 'true' || env.BUILD_MAINTENANCE_BINDINGS == 'true' }} - uses: actions/github-script@v9.0.0 - with: - script: | - core.exportVariable('ACTIONS_CACHE_SERVICE_V2', 'on'); - core.exportVariable('ACTIONS_RESULTS_URL', process.env['ACTIONS_RESULTS_URL'] || ''); - core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env['ACTIONS_RUNTIME_TOKEN'] || ''); - - name: Setup proxy cache uses: nv-gha-runners/setup-proxy-cache@main continue-on-error: true @@ -129,6 +83,33 @@ jobs: # does not fall back on its own unchecked setup-python interpreter. python-version: "3.12" + - name: Install CI tool dependencies + run: python -m pip install -e ./ci + + - name: Set environment variables + env: + WORKPLAN: ${{ inputs.workplan }} + HOST_PLATFORM: ${{ inputs.host-platform }} + PY_VER: ${{ matrix.python-version }} + SHA: ${{ github.sha }} + run: python ci/tools/ci_env.py build + + - name: Install rapidsai/sccache + if: ${{ startsWith(inputs.host-platform, 'linux') && (env.BUILD_BINDINGS == 'true' || env.BUILD_CORE == 'true') }} + uses: ./.github/actions/install-sccache + + # The runner only exposes these values to actions, not to `run:` steps or + # the cibuildwheel container, so re-export them for sccache's GHA backend. + # xref: https://github.com/orgs/community/discussions/42856#discussioncomment-7678867 + - name: Adding addtional GHA cache-related env vars + if: ${{ env.BUILD_BINDINGS == 'true' || env.BUILD_CORE == 'true' }} + uses: actions/github-script@v9.0.0 + with: + script: | + core.exportVariable('ACTIONS_CACHE_SERVICE_V2', 'on'); + core.exportVariable('ACTIONS_RESULTS_URL', process.env['ACTIONS_RESULTS_URL'] || ''); + core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env['ACTIONS_RUNTIME_TOKEN'] || ''); + - name: Set up MSVC if: ${{ startsWith(inputs.host-platform, 'win') && (env.BUILD_BINDINGS == 'true' || env.BUILD_CORE == 'true' || env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true') }} uses: step-security/msvc-dev-cmd@22c98154b708dbd743e6f27a933cf6ceba3305c4 # v1.13.1 @@ -159,17 +140,6 @@ jobs: $env:Path += ";$((Get-Location).Path)\\$env:YQ_DIR" yq --version - - name: Install CI tool dependencies - run: python -m pip install -e ./ci - - - name: Set environment variables - env: - CUDA_VER: ${{ inputs.cuda-version }} - HOST_PLATFORM: ${{ inputs.host-platform }} - PY_VER: ${{ matrix.python-version }} - SHA: ${{ github.sha }} - run: ./ci/tools/env-vars build - - name: Dump environment run: | env @@ -187,7 +157,7 @@ jobs: popd - name: Download reusable cuda.pathfinder wheel - if: ${{ env.BUILD_PATHFINDER != 'true' }} + if: ${{ env.BUILD_PATHFINDER != 'true' && env.BASELINE_RUN_ID != '' }} uses: $/.github/actions/download-artifact-retry with: name: cuda-pathfinder-wheel @@ -196,6 +166,7 @@ jobs: run-id: ${{ env.BASELINE_RUN_ID }} - name: List the cuda.pathfinder artifacts directory + if: ${{ env.BUILD_PATHFINDER == 'true' || env.BASELINE_RUN_ID != '' }} run: | if [[ "${{ inputs.host-platform }}" == win* ]]; then export CHOWN=chown @@ -213,41 +184,51 @@ jobs: twine check --strict cuda_pathfinder/*.whl - name: Constrain builds to the local cuda.pathfinder wheel - if: ${{ env.BUILD_BINDINGS == 'true' || env.BUILD_MAINTENANCE_BINDINGS == 'true' }} + if: ${{ env.BUILD_BINDINGS == 'true' }} run: | pathfinder_wheels=(cuda_pathfinder/cuda_pathfinder-*.whl) - test "${#pathfinder_wheels[@]}" -eq 1 - test -f "${pathfinder_wheels[0]}" mkdir -p wheel-constraints - if [[ "${{ inputs.host-platform }}" == win* ]]; then - pathfinder_uri="file:///$(cygpath -am "${pathfinder_wheels[0]}")" + if [[ "$PATHFINDER_SOURCE" == "artifact" ]]; then + if [[ "${#pathfinder_wheels[@]}" -ne 1 || ! -f "${pathfinder_wheels[0]}" ]]; then + echo "Expected exactly one cuda.pathfinder wheel" >&2 + exit 1 + fi + if [[ "${{ inputs.host-platform }}" == win* ]]; then + pathfinder_uri="file:///$(cygpath -am "${pathfinder_wheels[0]}")" + else + pathfinder_uri="file:///host$(realpath "${pathfinder_wheels[0]}")" + fi + printf 'cuda-pathfinder @ %s\n' "${pathfinder_uri}" > wheel-constraints/cuda-bindings.txt + elif [[ "$PATHFINDER_SOURCE" == "published" ]]; then + : > wheel-constraints/cuda-bindings.txt else - pathfinder_uri="file:///host$(realpath "${pathfinder_wheels[0]}")" + echo "Unknown cuda.pathfinder source: $PATHFINDER_SOURCE" >&2 + exit 1 fi - printf 'cuda-pathfinder @ %s\n' "${pathfinder_uri}" | tee wheel-constraints/cuda-bindings.txt + cat wheel-constraints/cuda-bindings.txt - name: Upload cuda.pathfinder build artifacts - if: ${{ strategy.job-index == 0 && inputs.host-platform == 'linux-64' }} + if: ${{ (env.BUILD_PATHFINDER == 'true' || env.BASELINE_RUN_ID != '') && strategy.job-index == 0 && inputs.host-platform == 'linux-64' }} uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: cuda-pathfinder-wheel path: cuda_pathfinder/*.whl if-no-files-found: error - - name: Set up mini CTK - if: ${{ env.BUILD_BINDINGS == 'true' || env.BUILD_CORE == 'true' || env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' }} + - name: Set up current mini CTK + if: ${{ env.BUILD_BINDINGS_CURRENT == 'true' || env.BUILD_CORE == 'true' || env.TEST_BINDINGS_CURRENT == 'true' || env.TEST_CORE_CURRENT == 'true' }} uses: ./.github/actions/fetch_ctk continue-on-error: false with: host-platform: ${{ inputs.host-platform }} - cuda-version: ${{ inputs.cuda-version }} + cuda-version: ${{ env.CURRENT_CUDA_VERSION }} - - name: Build cuda.bindings wheel - if: ${{ env.BUILD_BINDINGS == 'true' }} + - name: Build cuda.bindings ${{ env.CURRENT_CUDA_MAJOR }} wheel + if: ${{ env.BUILD_BINDINGS_CURRENT == 'true' }} uses: pypa/cibuildwheel@f9b966cfadf4109556cadc5bb39ddb72d0ce664e # v4.3.5 with: - package-dir: ./cuda_bindings_13/ - output-dir: ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }} + package-dir: ./${{ env.CURRENT_BINDINGS_ROOT }}/ + output-dir: ${{ env.CURRENT_BINDINGS_ARTIFACTS_DIR }} extras: uv python-path: ${{ steps.host-python.outputs.python-path }} env: &bindings-wheel-env @@ -283,43 +264,44 @@ jobs: "/host/${{ env.SCCACHE_PATH }}" --show-stats --stats-format=json > /host/${{ github.workspace }}/sccache_bindings.json && auditwheel repair -w {dest_dir} {wheel} - - name: Report sccache stats (cuda.bindings) - if: ${{ env.BUILD_BINDINGS == 'true' && !startsWith(inputs.host-platform, 'win') }} + - name: Report sccache stats (cuda.bindings ${{ env.CURRENT_CUDA_MAJOR }}) + if: ${{ env.BUILD_BINDINGS_CURRENT == 'true' && !startsWith(inputs.host-platform, 'win') }} uses: ./.github/actions/sccache-summary with: json-file: sccache_bindings.json - label: "cuda.bindings" - build-step: "Build cuda.bindings wheel" + label: "cuda.bindings ${{ env.CURRENT_CUDA_MAJOR }}" + build-step: "Build cuda.bindings ${{ env.CURRENT_CUDA_MAJOR }} wheel" - - name: Download reusable cuda.bindings wheel - if: ${{ env.BUILD_BINDINGS != 'true' }} + - name: Download reusable cuda.bindings ${{ env.CURRENT_CUDA_MAJOR }} wheel + if: ${{ env.BUILD_BINDINGS_CURRENT != 'true' && env.BASELINE_RUN_ID != '' }} uses: $/.github/actions/download-artifact-retry with: - name: ${{ env.CUDA_BINDINGS_ARTIFACT_BASENAME }}-${{ env.BASELINE_SHA }} - path: ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }} + name: ${{ env.CURRENT_BINDINGS_ARTIFACT_BASENAME }}-${{ env.BASELINE_SHA }} + path: ${{ env.CURRENT_BINDINGS_ARTIFACTS_DIR }} github-token: ${{ github.token }} run-id: ${{ env.BASELINE_RUN_ID }} - - name: List the cuda.bindings artifacts directory + - name: List the cuda.bindings ${{ env.CURRENT_CUDA_MAJOR }} artifacts directory + if: ${{ env.BUILD_BINDINGS_CURRENT == 'true' || env.BASELINE_RUN_ID != '' }} run: | if [[ "${{ inputs.host-platform }}" == win* ]]; then export CHOWN=chown else export CHOWN="sudo chown" fi - $CHOWN -R $(whoami) ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }} - ls -lahR ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }} + $CHOWN -R $(whoami) ${{ env.CURRENT_BINDINGS_ARTIFACTS_DIR }} + ls -lahR ${{ env.CURRENT_BINDINGS_ARTIFACTS_DIR }} - - name: Check cuda.bindings wheel - if: ${{ env.BUILD_BINDINGS == 'true' }} + - name: Check cuda.bindings ${{ env.CURRENT_CUDA_MAJOR }} wheel + if: ${{ env.BUILD_BINDINGS_CURRENT == 'true' }} run: | - twine check --strict ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}/*.whl + twine check --strict ${{ env.CURRENT_BINDINGS_ARTIFACTS_DIR }}/*.whl - name: Constrain cuda.core to the local cuda.bindings wheel if: ${{ env.BUILD_CORE == 'true' }} run: | pathfinder_wheels=(cuda_pathfinder/cuda_pathfinder-*.whl) - bindings_wheels=("${CUDA_BINDINGS_ARTIFACTS_DIR}"/cuda_bindings-"${BUILD_CUDA_MAJOR}".*.whl) + bindings_wheels=("${CURRENT_BINDINGS_ARTIFACTS_DIR}"/cuda_bindings-"${CURRENT_CUDA_MAJOR}".*.whl) test "${#pathfinder_wheels[@]}" -eq 1 test "${#bindings_wheels[@]}" -eq 1 test -f "${pathfinder_wheels[0]}" @@ -337,14 +319,15 @@ jobs: printf 'cuda-bindings @ %s\n' "${bindings_uri}" } | tee wheel-constraints/cuda-core.txt - - name: Upload cuda.bindings build artifacts + - name: Upload cuda.bindings ${{ env.CURRENT_CUDA_MAJOR }} build artifacts + if: ${{ env.BUILD_BINDINGS_CURRENT == 'true' || env.BASELINE_RUN_ID != '' }} uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: - name: ${{ env.CUDA_BINDINGS_ARTIFACT_NAME }} - path: ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}/*.whl + name: ${{ env.CURRENT_BINDINGS_ARTIFACT_NAME }} + path: ${{ env.CURRENT_BINDINGS_ARTIFACTS_DIR }}/*.whl if-no-files-found: error - - name: Build cuda.core wheel + - name: Build cuda.core ${{ env.CURRENT_CUDA_VARIANT }} wheel if: ${{ env.BUILD_CORE == 'true' }} uses: pypa/cibuildwheel@f9b966cfadf4109556cadc5bb39ddb72d0ce664e # v4.3.5 with: @@ -361,7 +344,7 @@ jobs: CIBW_ENVIRONMENT_LINUX: > CUDA_PATH=/host/${{ env.CUDA_PATH }} CUDA_PYTHON_PARALLEL_LEVEL=${{ env.CUDA_PYTHON_PARALLEL_LEVEL }} - CUDA_CORE_BUILD_MAJOR=${{ env.BUILD_CUDA_MAJOR }} + CUDA_CORE_BUILD_MAJOR=${{ env.CURRENT_CUDA_MAJOR }} CUDA_PYTHON_WERROR=1 UV_BUILD_CONSTRAINT=/host/${{ github.workspace }}/wheel-constraints/cuda-core.txt UV_CONSTRAINT=/host/${{ github.workspace }}/wheel-constraints/cuda-core.txt @@ -378,7 +361,7 @@ jobs: CIBW_ENVIRONMENT_WINDOWS: > CUDA_PATH="$(cygpath -w ${{ env.CUDA_PATH }})" CUDA_PYTHON_PARALLEL_LEVEL=${{ env.CUDA_PYTHON_PARALLEL_LEVEL }} - CUDA_CORE_BUILD_MAJOR=${{ env.BUILD_CUDA_MAJOR }} + CUDA_CORE_BUILD_MAJOR=${{ env.CURRENT_CUDA_MAJOR }} CUDA_PYTHON_WERROR=1 UV_BUILD_CONSTRAINT="$(cygpath -w ./wheel-constraints/cuda-core.txt)" UV_CONSTRAINT="$(cygpath -w ./wheel-constraints/cuda-core.txt)" @@ -394,7 +377,7 @@ jobs: with: json-file: sccache_core.json label: "cuda.core" - build-step: "Build cuda.core wheel" + build-step: "Build cuda.core ${{ env.CURRENT_CUDA_VARIANT }} wheel" - name: List the cuda.core artifacts directory and rename if: ${{ env.BUILD_CORE == 'true' }} @@ -407,12 +390,12 @@ jobs: $CHOWN -R $(whoami) ${{ env.CUDA_CORE_ARTIFACTS_DIR }} # Rename wheel to include CUDA version suffix - mkdir -p "${{ env.CUDA_CORE_ARTIFACTS_DIR }}/cu${BUILD_CUDA_MAJOR}" + mkdir -p "${{ env.CUDA_CORE_ARTIFACTS_DIR }}/cu${CURRENT_CUDA_MAJOR}" for wheel in ${{ env.CUDA_CORE_ARTIFACTS_DIR }}/*.whl; do if [[ -f "${wheel}" ]]; then base_name=$(basename "${wheel}" .whl) - new_name="${base_name}.cu${BUILD_CUDA_MAJOR}.whl" - mv "${wheel}" "${{ env.CUDA_CORE_ARTIFACTS_DIR }}/cu${BUILD_CUDA_MAJOR}/${new_name}" + new_name="${base_name}.cu${CURRENT_CUDA_MAJOR}.whl" + mv "${wheel}" "${{ env.CUDA_CORE_ARTIFACTS_DIR }}/cu${CURRENT_CUDA_MAJOR}/${new_name}" echo "Renamed wheel to: ${new_name}" fi done @@ -420,7 +403,7 @@ jobs: ls -lahR ${{ env.CUDA_CORE_ARTIFACTS_DIR }} - name: Download reusable cuda.core wheel - if: ${{ env.BUILD_CORE != 'true' }} + if: ${{ env.BUILD_CORE != 'true' && env.BASELINE_RUN_ID != '' }} uses: $/.github/actions/download-artifact-retry with: name: ${{ env.CUDA_CORE_ARTIFACT_BASENAME }}-${{ env.BASELINE_SHA }} @@ -428,68 +411,74 @@ jobs: github-token: ${{ github.token }} run-id: ${{ env.BASELINE_RUN_ID }} - # We only need/want a single pure python wheel, pick linux-64 index 0. - - name: Build and check maintenance cuda-python wheel - if: ${{ !inputs.single-cuda-major && (env.BUILD_PYTHON == 'true' || env.TEST_PYTHON == 'true') && strategy.job-index == 0 && inputs.host-platform == 'linux-64' }} + # We only need/want one copy of each pure Python wheel, so use linux-64 index 0. + - name: Build and check cuda-python ${{ env.MAINTENANCE_CUDA_MAJOR }} wheel + if: ${{ !inputs.single-cuda-major && env.BUILD_CUDA_PYTHON_MAINTENANCE == 'true' && strategy.job-index == 0 && inputs.host-platform == 'linux-64' }} run: | + mkdir -p "cuda_python/dist/${MAINTENANCE_CUDA_VARIANT}" pushd cuda_python CUDA_PYTHON_BUILD_MAJOR="${MAINTENANCE_CUDA_MAJOR}" \ - pip wheel -v --no-deps --wheel-dir "dist/cu${MAINTENANCE_CUDA_MAJOR}" . - twine check --strict "dist/cu${MAINTENANCE_CUDA_MAJOR}"/*.whl + pip wheel -v --no-deps --wheel-dir "dist/${MAINTENANCE_CUDA_VARIANT}" . + twine check --strict "dist/${MAINTENANCE_CUDA_VARIANT}"/*.whl popd - - name: Upload maintenance cuda-python wheel - if: ${{ !inputs.single-cuda-major && (env.BUILD_PYTHON == 'true' || env.TEST_PYTHON == 'true') && strategy.job-index == 0 && inputs.host-platform == 'linux-64' }} + - name: Download reusable cuda-python ${{ env.MAINTENANCE_CUDA_MAJOR }} wheel + if: ${{ !inputs.single-cuda-major && env.BUILD_CUDA_PYTHON_MAINTENANCE != 'true' && env.BASELINE_RUN_ID != '' && strategy.job-index == 0 && inputs.host-platform == 'linux-64' }} + uses: $/.github/actions/download-artifact-retry + with: + name: ${{ env.MAINTENANCE_PYTHON_ARTIFACT_NAME }} + path: cuda_python/dist/${{ env.MAINTENANCE_CUDA_VARIANT }} + github-token: ${{ github.token }} + run-id: ${{ env.BASELINE_RUN_ID }} + + - name: Upload cuda-python ${{ env.MAINTENANCE_CUDA_MAJOR }} build artifacts + if: ${{ !inputs.single-cuda-major && (env.BUILD_CUDA_PYTHON_MAINTENANCE == 'true' || env.BASELINE_RUN_ID != '') && strategy.job-index == 0 && inputs.host-platform == 'linux-64' }} uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: - name: cuda-python-wheel-cuda${{ env.MAINTENANCE_CUDA_VERSION }} - path: cuda_python/dist/cu${{ env.MAINTENANCE_CUDA_MAJOR }}/*.whl + name: ${{ env.MAINTENANCE_PYTHON_ARTIFACT_NAME }} + path: cuda_python/dist/${{ env.MAINTENANCE_CUDA_VARIANT }}/*.whl if-no-files-found: error - - name: Build and check cuda-python wheel - if: ${{ env.BUILD_PYTHON == 'true' && strategy.job-index == 0 && inputs.host-platform == 'linux-64' }} + - name: Build and check cuda-python ${{ env.CURRENT_CUDA_MAJOR }} wheel + if: ${{ env.BUILD_CUDA_PYTHON_CURRENT == 'true' && strategy.job-index == 0 && inputs.host-platform == 'linux-64' }} run: | + mkdir -p "cuda_python/dist/${CURRENT_CUDA_VARIANT}" pushd cuda_python - CUDA_PYTHON_BUILD_MAJOR="${BUILD_CUDA_MAJOR}" pip wheel -v --no-deps . - twine check --strict *.whl + CUDA_PYTHON_BUILD_MAJOR="${CURRENT_CUDA_MAJOR}" \ + pip wheel -v --no-deps --wheel-dir "dist/${CURRENT_CUDA_VARIANT}" . + twine check --strict "dist/${CURRENT_CUDA_VARIANT}"/*.whl popd - - name: Download reusable cuda-python wheel - if: ${{ env.BUILD_PYTHON != 'true' && strategy.job-index == 0 && inputs.host-platform == 'linux-64' }} + - name: Download reusable cuda-python ${{ env.CURRENT_CUDA_MAJOR }} wheel + if: ${{ env.BUILD_CUDA_PYTHON_CURRENT != 'true' && env.BASELINE_RUN_ID != '' && strategy.job-index == 0 && inputs.host-platform == 'linux-64' }} uses: $/.github/actions/download-artifact-retry with: - name: cuda-python-wheel - path: cuda_python + name: ${{ env.CURRENT_PYTHON_ARTIFACT_NAME }} + path: cuda_python/dist/${{ env.CURRENT_CUDA_VARIANT }} github-token: ${{ github.token }} run-id: ${{ env.BASELINE_RUN_ID }} - - name: List the cuda-python artifacts directory - if: ${{ strategy.job-index == 0 && inputs.host-platform == 'linux-64' }} - run: | - if [[ "${{ inputs.host-platform }}" == win* ]]; then - export CHOWN=chown - else - export CHOWN="sudo chown" - fi - $CHOWN -R $(whoami) cuda_python/*.whl - ls -lahR cuda_python - - - name: Upload cuda-python build artifacts - if: ${{ strategy.job-index == 0 && inputs.host-platform == 'linux-64' }} + - name: Upload cuda-python ${{ env.CURRENT_CUDA_MAJOR }} build artifacts + if: ${{ (env.BUILD_CUDA_PYTHON_CURRENT == 'true' || env.BASELINE_RUN_ID != '') && strategy.job-index == 0 && inputs.host-platform == 'linux-64' }} uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: - name: cuda-python-wheel-cuda${{ inputs.cuda-version }} - path: cuda_python/*.whl + name: ${{ env.CURRENT_PYTHON_ARTIFACT_NAME }} + path: cuda_python/dist/${{ env.CURRENT_CUDA_VARIANT }}/*.whl if-no-files-found: error - - name: Upload legacy cuda-python artifact alias - if: ${{ strategy.job-index == 0 && inputs.host-platform == 'linux-64' }} + - name: Upload legacy CUDA13 metapackage alias + if: ${{ (env.BUILD_CUDA_PYTHON_CURRENT == 'true' || env.BASELINE_RUN_ID != '') && strategy.job-index == 0 && inputs.host-platform == 'linux-64' }} uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: cuda-python-wheel - path: cuda_python/*.whl + path: cuda_python/dist/${{ env.CURRENT_CUDA_VARIANT }}/*.whl if-no-files-found: error + - name: List the cuda-python artifacts directories + if: ${{ (env.BUILD_CUDA_PYTHON == 'true' || env.BASELINE_RUN_ID != '') && strategy.job-index == 0 && inputs.host-platform == 'linux-64' }} + run: | + ls -lahR cuda_python/dist + - name: Set up Python if: ${{ env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' }} uses: ./.github/actions/setup-hardened-python @@ -515,7 +504,19 @@ jobs: - name: Install cuda.pathfinder (required for next step) if: ${{ env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' }} run: | - pip install cuda_pathfinder/*.whl + pathfinder_wheels=(cuda_pathfinder/*.whl) + if [[ "$PATHFINDER_SOURCE" == "artifact" ]]; then + if [[ "${#pathfinder_wheels[@]}" -ne 1 || ! -f "${pathfinder_wheels[0]}" ]]; then + echo "Expected exactly one cuda.pathfinder wheel" >&2 + exit 1 + fi + pip install "${pathfinder_wheels[0]}" + elif [[ "$PATHFINDER_SOURCE" == "published" ]]; then + pip install cuda-pathfinder + else + echo "Unknown cuda.pathfinder source: $PATHFINDER_SOURCE" >&2 + exit 1 + fi - name: Hide GNU link.exe so Meson finds MSVC link.exe if: ${{ startsWith(inputs.host-platform, 'win') && (env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true') }} @@ -524,28 +525,31 @@ jobs: mv "/c/Program Files/Git/usr/bin/link.exe" "/c/Program Files/Git/usr/bin/link.exe.bak" fi - - name: Build cuda.bindings Cython tests - if: ${{ env.TEST_BINDINGS == 'true' }} + - name: Build cuda.bindings ${{ env.CURRENT_CUDA_MAJOR }} Cython tests + if: ${{ env.TEST_BINDINGS_CURRENT == 'true' }} run: | - pip install ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}/*.whl --group ./cuda_bindings_13/pyproject.toml:test - pushd ${{ env.CUDA_BINDINGS_CYTHON_TESTS_DIR }} + bindings_wheels=(${{ env.CURRENT_BINDINGS_ARTIFACTS_DIR }}/*.whl) + test "${#bindings_wheels[@]}" -eq 1 + test -f "${bindings_wheels[0]}" + python -m pip install "${bindings_wheels[0]}" --group "${CURRENT_BINDINGS_ROOT}/pyproject.toml:test" + pushd ${{ env.CURRENT_BINDINGS_CYTHON_TESTS_DIR }} bash build_tests.sh popd - - name: Upload cuda.bindings Cython tests - if: ${{ env.TEST_BINDINGS == 'true' }} + - name: Upload cuda.bindings ${{ env.CURRENT_CUDA_MAJOR }} Cython tests + if: ${{ env.TEST_BINDINGS_CURRENT == 'true' }} uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: - name: ${{ env.CUDA_BINDINGS_ARTIFACT_NAME }}-tests - path: ${{ env.CUDA_BINDINGS_CYTHON_TESTS_DIR }}/test_*${{ env.PY_EXT_SUFFIX }} + name: ${{ env.CURRENT_BINDINGS_ARTIFACT_NAME }}-tests + path: ${{ env.CURRENT_BINDINGS_CYTHON_TESTS_DIR }}/test_*${{ env.PY_EXT_SUFFIX }} if-no-files-found: error - - name: Build cuda.core Cython tests - if: ${{ env.TEST_CORE == 'true' }} + - name: Build cuda.core ${{ env.CURRENT_CUDA_VARIANT }} Cython tests + if: ${{ env.TEST_CORE_CURRENT == 'true' }} run: | - pip install ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}/*.whl + pip install ${{ env.CURRENT_BINDINGS_ARTIFACTS_DIR }}/*.whl if ${{ env.BUILD_CORE == 'true' }}; then - core_wheel=$(find "${{ env.CUDA_CORE_ARTIFACTS_DIR }}/cu${BUILD_CUDA_MAJOR}" -maxdepth 1 -type f -name '*.whl' -print -quit) + core_wheel=$(find "${{ env.CUDA_CORE_ARTIFACTS_DIR }}/cu${CURRENT_CUDA_MAJOR}" -maxdepth 1 -type f -name '*.whl' -print -quit) else core_wheel=$(find "${{ env.CUDA_CORE_ARTIFACTS_DIR }}" -maxdepth 1 -type f -name '*.whl' -print -quit) fi @@ -558,22 +562,30 @@ jobs: bash build_tests.sh popd - - name: Upload cuda.core Cython tests - if: ${{ env.TEST_CORE == 'true' }} + - name: Upload current cuda.core Cython tests + if: ${{ env.TEST_CORE_CURRENT == 'true' }} + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 + with: + name: ${{ env.CUDA_CORE_ARTIFACT_NAME }}-${{ env.CURRENT_CUDA_VARIANT }}-tests + path: ${{ env.CUDA_CORE_CYTHON_TESTS_DIR }}/test_*${{ env.PY_EXT_SUFFIX }} + if-no-files-found: error + + - name: Upload legacy CUDA13 Core Cython alias + if: ${{ env.TEST_CORE_CURRENT == 'true' }} uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: ${{ env.CUDA_CORE_ARTIFACT_NAME }}-tests path: ${{ env.CUDA_CORE_CYTHON_TESTS_DIR }}/test_*${{ env.PY_EXT_SUFFIX }} if-no-files-found: error - # Note: This overwrites CUDA_PATH etc - - name: Set up mini CTK - if: ${{ !inputs.single-cuda-major && (env.BUILD_CORE == 'true' || env.TEST_CORE == 'true' || env.BUILD_MAINTENANCE_BINDINGS == 'true') }} + # Note: This overwrites CUDA_PATH etc. + - name: Set up maintenance mini CTK + if: ${{ !inputs.single-cuda-major && (env.BUILD_BINDINGS_MAINTENANCE == 'true' || env.BUILD_CORE == 'true' || env.TEST_BINDINGS_MAINTENANCE == 'true' || env.TEST_CORE_MAINTENANCE == 'true') }} uses: ./.github/actions/fetch_ctk continue-on-error: false with: host-platform: ${{ inputs.host-platform }} - cuda-version: ${{ inputs.prev-cuda-version }} + cuda-version: ${{ env.MAINTENANCE_CUDA_VERSION }} cuda-path: "./cuda_toolkit_prev" - name: Build cuda.core test binaries @@ -593,8 +605,8 @@ jobs: ${{ env.CUDA_CORE_TEST_BINARIES_DIR }}/*.lib if-no-files-found: error - - name: Build maintenance cuda.bindings wheel - if: ${{ env.BUILD_MAINTENANCE_BINDINGS == 'true' }} + - name: Build cuda.bindings ${{ env.MAINTENANCE_CUDA_MAJOR }} wheel + if: ${{ !inputs.single-cuda-major && env.BUILD_BINDINGS_MAINTENANCE == 'true' }} uses: pypa/cibuildwheel@f9b966cfadf4109556cadc5bb39ddb72d0ce664e # v4.3.5 with: package-dir: ./${{ env.MAINTENANCE_BINDINGS_ROOT }}/ @@ -603,38 +615,67 @@ jobs: python-path: ${{ steps.host-python.outputs.python-path }} env: *bindings-wheel-env - - name: Check maintenance cuda.bindings wheel - if: ${{ env.BUILD_MAINTENANCE_BINDINGS == 'true' }} - run: twine check --strict "${MAINTENANCE_BINDINGS_ARTIFACTS_DIR}"/*.whl + - name: Report sccache stats (cuda.bindings ${{ env.MAINTENANCE_CUDA_MAJOR }}) + if: ${{ !inputs.single-cuda-major && env.BUILD_BINDINGS_MAINTENANCE == 'true' && !startsWith(inputs.host-platform, 'win') }} + uses: ./.github/actions/sccache-summary + with: + json-file: sccache_bindings.json + label: "cuda.bindings ${{ env.MAINTENANCE_CUDA_MAJOR }}" + build-step: "Build cuda.bindings ${{ env.MAINTENANCE_CUDA_MAJOR }} wheel" - - name: Upload maintenance cuda.bindings wheel - if: ${{ env.BUILD_MAINTENANCE_BINDINGS == 'true' }} + - name: Download reusable cuda.bindings ${{ env.MAINTENANCE_CUDA_MAJOR }} wheel + if: ${{ !inputs.single-cuda-major && env.BUILD_BINDINGS_MAINTENANCE != 'true' && env.BASELINE_RUN_ID != '' }} + uses: $/.github/actions/download-artifact-retry + with: + name: ${{ env.MAINTENANCE_BINDINGS_ARTIFACT_BASENAME }}-${{ env.BASELINE_SHA }} + path: ${{ env.MAINTENANCE_BINDINGS_ARTIFACTS_DIR }} + github-token: ${{ github.token }} + run-id: ${{ env.BASELINE_RUN_ID }} + + - name: List the cuda.bindings ${{ env.MAINTENANCE_CUDA_MAJOR }} artifacts directory + if: ${{ !inputs.single-cuda-major && (env.BUILD_BINDINGS_MAINTENANCE == 'true' || env.BASELINE_RUN_ID != '') }} + run: | + if [[ "${{ inputs.host-platform }}" == win* ]]; then + export CHOWN=chown + else + export CHOWN="sudo chown" + fi + $CHOWN -R $(whoami) ${{ env.MAINTENANCE_BINDINGS_ARTIFACTS_DIR }} + ls -lahR ${{ env.MAINTENANCE_BINDINGS_ARTIFACTS_DIR }} + + - name: Check cuda.bindings ${{ env.MAINTENANCE_CUDA_MAJOR }} wheel + if: ${{ !inputs.single-cuda-major && env.BUILD_BINDINGS_MAINTENANCE == 'true' }} + run: twine check --strict ${{ env.MAINTENANCE_BINDINGS_ARTIFACTS_DIR }}/*.whl + + - name: Upload cuda.bindings ${{ env.MAINTENANCE_CUDA_MAJOR }} build artifacts + if: ${{ !inputs.single-cuda-major && (env.BUILD_BINDINGS_MAINTENANCE == 'true' || env.BASELINE_RUN_ID != '') }} uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: ${{ env.MAINTENANCE_BINDINGS_ARTIFACT_NAME }} path: ${{ env.MAINTENANCE_BINDINGS_ARTIFACTS_DIR }}/*.whl if-no-files-found: error - - name: Build maintenance cuda.bindings Cython tests - if: ${{ !inputs.single-cuda-major && env.TEST_BINDINGS == 'true' }} + - name: Build cuda.bindings ${{ env.MAINTENANCE_CUDA_MAJOR }} Cython tests + if: ${{ !inputs.single-cuda-major && env.TEST_BINDINGS_MAINTENANCE == 'true' }} run: | pip uninstall -y cuda-bindings - bindings_wheels=("${MAINTENANCE_BINDINGS_ARTIFACTS_DIR}"/*.whl) + bindings_wheels=(${{ env.MAINTENANCE_BINDINGS_ARTIFACTS_DIR }}/*.whl) test "${#bindings_wheels[@]}" -eq 1 + test -f "${bindings_wheels[0]}" python -m pip install "${bindings_wheels[0]}" --group "${MAINTENANCE_BINDINGS_ROOT}/pyproject.toml:test" - pushd "${MAINTENANCE_BINDINGS_CYTHON_TESTS_DIR}" + pushd ${{ env.MAINTENANCE_BINDINGS_CYTHON_TESTS_DIR }} bash build_tests.sh popd - - name: Upload maintenance cuda.bindings Cython tests - if: ${{ !inputs.single-cuda-major && env.TEST_BINDINGS == 'true' }} + - name: Upload cuda.bindings ${{ env.MAINTENANCE_CUDA_MAJOR }} Cython tests + if: ${{ !inputs.single-cuda-major && env.TEST_BINDINGS_MAINTENANCE == 'true' }} uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: ${{ env.MAINTENANCE_BINDINGS_ARTIFACT_NAME }}-tests path: ${{ env.MAINTENANCE_BINDINGS_CYTHON_TESTS_DIR }}/test_*${{ env.PY_EXT_SUFFIX }} if-no-files-found: error - - name: Constrain maintenance cuda.core to the same-run cuda.bindings wheel + - name: Constrain maintenance cuda.core to the local cuda.bindings wheel if: ${{ !inputs.single-cuda-major && env.BUILD_CORE == 'true' }} run: | pathfinder_wheels=(cuda_pathfinder/cuda_pathfinder-*.whl) @@ -654,9 +695,9 @@ jobs: { printf 'cuda-pathfinder @ %s\n' "${pathfinder_uri}" printf 'cuda-bindings @ %s\n' "${bindings_uri}" - } | tee wheel-constraints/cuda-core-prev.txt + } | tee wheel-constraints/cuda-core-maintenance.txt - - name: Build cuda.core wheel + - name: Build cuda.core ${{ env.MAINTENANCE_CUDA_VARIANT }} wheel if: ${{ !inputs.single-cuda-major && env.BUILD_CORE == 'true' }} uses: pypa/cibuildwheel@f9b966cfadf4109556cadc5bb39ddb72d0ce664e # v4.3.5 with: @@ -673,10 +714,10 @@ jobs: CIBW_ENVIRONMENT_LINUX: > CUDA_PATH=/host/${{ env.CUDA_PATH }} CUDA_PYTHON_PARALLEL_LEVEL=${{ env.CUDA_PYTHON_PARALLEL_LEVEL }} - CUDA_CORE_BUILD_MAJOR=${{ env.BUILD_PREV_CUDA_MAJOR }} + CUDA_CORE_BUILD_MAJOR=${{ env.MAINTENANCE_CUDA_MAJOR }} CUDA_PYTHON_WERROR=1 - UV_BUILD_CONSTRAINT=/host/${{ github.workspace }}/wheel-constraints/cuda-core-prev.txt - UV_CONSTRAINT=/host/${{ github.workspace }}/wheel-constraints/cuda-core-prev.txt + UV_BUILD_CONSTRAINT=/host/${{ github.workspace }}/wheel-constraints/cuda-core-maintenance.txt + UV_CONSTRAINT=/host/${{ github.workspace }}/wheel-constraints/cuda-core-maintenance.txt CC="/host/${{ env.SCCACHE_PATH }} cc" CXX="/host/${{ env.SCCACHE_PATH }} c++" SCCACHE_GHA_ENABLED=true @@ -690,23 +731,23 @@ jobs: CIBW_ENVIRONMENT_WINDOWS: > CUDA_PATH="$(cygpath -w ${{ env.CUDA_PATH }})" CUDA_PYTHON_PARALLEL_LEVEL=${{ env.CUDA_PYTHON_PARALLEL_LEVEL }} - CUDA_CORE_BUILD_MAJOR=${{ env.BUILD_PREV_CUDA_MAJOR }} + CUDA_CORE_BUILD_MAJOR=${{ env.MAINTENANCE_CUDA_MAJOR }} CUDA_PYTHON_WERROR=1 - UV_BUILD_CONSTRAINT="$(cygpath -w ./wheel-constraints/cuda-core-prev.txt)" - UV_CONSTRAINT="$(cygpath -w ./wheel-constraints/cuda-core-prev.txt)" + UV_BUILD_CONSTRAINT="$(cygpath -w ./wheel-constraints/cuda-core-maintenance.txt)" + UV_CONSTRAINT="$(cygpath -w ./wheel-constraints/cuda-core-maintenance.txt)" # Dump sccache stats during repair; no dummy test stage. CIBW_REPAIR_WHEEL_COMMAND_LINUX: > "/host/${{ env.SCCACHE_PATH }}" --show-adv-stats && - "/host/${{ env.SCCACHE_PATH }}" --show-stats --stats-format=json > /host/${{ github.workspace }}/sccache_core_prev.json && + "/host/${{ env.SCCACHE_PATH }}" --show-stats --stats-format=json > /host/${{ github.workspace }}/sccache_core_maintenance.json && auditwheel repair -w {dest_dir} {wheel} - - name: Report sccache stats (cuda.core prev) + - name: Report sccache stats (maintenance cuda.core) if: ${{ !inputs.single-cuda-major && env.BUILD_CORE == 'true' && !startsWith(inputs.host-platform, 'win') }} uses: ./.github/actions/sccache-summary with: - json-file: sccache_core_prev.json - label: "cuda.core (prev CTK)" - build-step: "Build cuda.core wheel" + json-file: sccache_core_maintenance.json + label: "cuda.core (maintenance CTK)" + build-step: "Build cuda.core ${{ env.MAINTENANCE_CUDA_VARIANT }} wheel" - name: List the cuda.core artifacts directory and rename if: ${{ !inputs.single-cuda-major && env.BUILD_CORE == 'true' }} @@ -720,20 +761,20 @@ jobs: ls -lahR ${{ env.CUDA_CORE_ARTIFACTS_DIR }} # Rename wheel to include CUDA version suffix - mkdir -p "${{ env.CUDA_CORE_ARTIFACTS_DIR }}/cu${BUILD_PREV_CUDA_MAJOR}" + mkdir -p "${{ env.CUDA_CORE_ARTIFACTS_DIR }}/cu${MAINTENANCE_CUDA_MAJOR}" for wheel in ${{ env.CUDA_CORE_ARTIFACTS_DIR }}/*.whl; do if [[ -f "${wheel}" ]]; then base_name=$(basename "${wheel}" .whl) - new_name="${base_name}.cu${BUILD_PREV_CUDA_MAJOR}.whl" - mv "${wheel}" "${{ env.CUDA_CORE_ARTIFACTS_DIR }}/cu${BUILD_PREV_CUDA_MAJOR}/${new_name}" + new_name="${base_name}.cu${MAINTENANCE_CUDA_MAJOR}.whl" + mv "${wheel}" "${{ env.CUDA_CORE_ARTIFACTS_DIR }}/cu${MAINTENANCE_CUDA_MAJOR}/${new_name}" echo "Renamed wheel to: ${new_name}" fi done ls -lahR ${{ env.CUDA_CORE_ARTIFACTS_DIR }} - - name: Build maintenance cuda.core Cython tests - if: ${{ !inputs.single-cuda-major && env.TEST_CORE == 'true' }} + - name: Build cuda.core ${{ env.MAINTENANCE_CUDA_VARIANT }} Cython tests + if: ${{ !inputs.single-cuda-major && env.TEST_CORE_MAINTENANCE == 'true' }} run: | # The current package's test extensions were built in this same source tree. # Remove generated outputs so Cython and the compiler cannot reuse them. @@ -759,10 +800,10 @@ jobs: popd - name: Upload maintenance cuda.core Cython tests - if: ${{ !inputs.single-cuda-major && env.TEST_CORE == 'true' }} + if: ${{ !inputs.single-cuda-major && env.TEST_CORE_MAINTENANCE == 'true' }} uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: - name: ${{ env.CUDA_CORE_ARTIFACT_NAME }}-cu${{ env.MAINTENANCE_CUDA_MAJOR }}-tests + name: ${{ env.CUDA_CORE_ARTIFACT_NAME }}-${{ env.MAINTENANCE_CUDA_VARIANT }}-tests path: ${{ env.CUDA_CORE_CYTHON_TESTS_DIR }}/test_*${{ env.PY_EXT_SUFFIX }} if-no-files-found: error @@ -771,15 +812,15 @@ jobs: run: | pip install wheel python ci/tools/merge_cuda_core_wheels.py \ - "${{ env.CUDA_CORE_ARTIFACTS_DIR }}"/cu"${BUILD_CUDA_MAJOR}"/cuda_core*.whl \ - "${{ env.CUDA_CORE_ARTIFACTS_DIR }}"/cu"${BUILD_PREV_CUDA_MAJOR}"/cuda_core*.whl \ + "${{ env.CUDA_CORE_ARTIFACTS_DIR }}"/cu"${CURRENT_CUDA_MAJOR}"/cuda_core*.whl \ + "${{ env.CUDA_CORE_ARTIFACTS_DIR }}"/cu"${MAINTENANCE_CUDA_MAJOR}"/cuda_core*.whl \ --output-dir "${{ env.CUDA_CORE_ARTIFACTS_DIR }}" - name: Finalize single-major cuda.core wheel if: ${{ inputs.single-cuda-major && env.BUILD_CORE == 'true' }} run: | - for wheel in "${{ env.CUDA_CORE_ARTIFACTS_DIR }}"/cu"${BUILD_CUDA_MAJOR}"/*.cu"${BUILD_CUDA_MAJOR}".whl; do - base_name=$(basename "${wheel}" ".cu${BUILD_CUDA_MAJOR}.whl") + for wheel in "${{ env.CUDA_CORE_ARTIFACTS_DIR }}"/cu"${CURRENT_CUDA_MAJOR}"/*.cu"${CURRENT_CUDA_MAJOR}".whl; do + base_name=$(basename "${wheel}" ".cu${CURRENT_CUDA_MAJOR}.whl") mv "${wheel}" "${{ env.CUDA_CORE_ARTIFACTS_DIR }}/${base_name}.whl" done ls -lahR "${{ env.CUDA_CORE_ARTIFACTS_DIR }}" @@ -790,6 +831,7 @@ jobs: twine check --strict ${{ env.CUDA_CORE_ARTIFACTS_DIR }}/*.whl - name: Upload cuda.core build artifacts + if: ${{ env.BUILD_CORE == 'true' || env.BASELINE_RUN_ID != '' }} uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: ${{ env.CUDA_CORE_ARTIFACT_NAME }} diff --git a/.github/workflows/ci-nightly.yml b/.github/workflows/ci-nightly.yml index f2026a379e3b..253a2c86e912 100644 --- a/.github/workflows/ci-nightly.yml +++ b/.github/workflows/ci-nightly.yml @@ -75,6 +75,7 @@ jobs: RUN_ID: ${{ steps.find.outputs.run_id }} HEAD_SHA: ${{ steps.find.outputs.head_sha }} CUDA_BUILD_VER: ${{ steps.find.outputs.cuda_build_ver }} + BINDINGS_CONFIG: LEGACY_CONFIG steps: - name: Checkout repository uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -132,6 +133,7 @@ jobs: with: build-type: nightly host-platform: linux-64 + bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} @@ -150,6 +152,7 @@ jobs: with: build-type: nightly host-platform: linux-aarch64 + bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} @@ -168,6 +171,7 @@ jobs: with: build-type: nightly host-platform: win-64 + bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} @@ -188,6 +192,7 @@ jobs: with: build-type: nightly host-platform: linux-64 + bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} @@ -206,6 +211,7 @@ jobs: with: build-type: nightly host-platform: linux-aarch64 + bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} @@ -224,6 +230,7 @@ jobs: with: build-type: nightly host-platform: win-64 + bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} @@ -244,6 +251,7 @@ jobs: with: build-type: nightly host-platform: linux-64 + bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} @@ -262,6 +270,7 @@ jobs: with: build-type: nightly host-platform: win-64 + bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} @@ -282,6 +291,7 @@ jobs: with: build-type: nightly host-platform: linux-64 + bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} @@ -300,6 +310,7 @@ jobs: with: build-type: nightly host-platform: win-64 + bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} @@ -320,6 +331,7 @@ jobs: with: build-type: nightly host-platform: linux-aarch64 + bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} diff --git a/.github/workflows/ci-pixi-source-test.yml b/.github/workflows/ci-pixi-source-test.yml index a6011f3cba67..e512f7c8ebd4 100644 --- a/.github/workflows/ci-pixi-source-test.yml +++ b/.github/workflows/ci-pixi-source-test.yml @@ -11,19 +11,22 @@ # cython-test build mechanics drift (see #2182, #2183). This workflow is the # only thing that runs the pixi source build end to end. # -# Two tiers, to spend GPU minutes deliberately (GPUs are scarce): -# - build-smoke (PRs): CPU-only. Source-builds both bindings roots and current -# Core, imports them, builds Cython extensions and checks placement. Catches the +# Three tiers, to spend GPU minutes deliberately (GPUs are scarce): +# - build-smoke (PRs): CPU-only. Source-builds bindings + core, imports them, +# builds the cython test extensions and checks placement. Catches the # compile / ABI / .so-placement regressions WITHOUT a GPU. -# - build-identity-roundtrip (nightly + manual): CPU-only. cu13 -> cu12 -> -# cu13 in one checkout, so build artifacts cannot be reused across CUDA -# majors. Kept off PRs to avoid adding another job to the org's shared -# concurrent-job quota; the fast unit tests in +# - build-identity-roundtrip (nightly + manual): CPU-only. The current ABI -> +# another configured ABI -> current ABI in one checkout, so build artifacts +# cannot be reused across CUDA majors. Kept off PRs to avoid adding another +# job to the org's shared concurrent-job quota; the fast unit tests in # cuda_core/tests/test_build_hooks.py cover the same intent per-PR. # - full-test (nightly + manual): GPU runner, full `pixi run test`. name: "CI: pixi run test (source build)" +permissions: + contents: read + concurrency: group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} cancel-in-progress: true @@ -41,27 +44,28 @@ on: # Path-dependency metadata (including cuda_python_test_helpers) feeds the # solve, so it can break the source build without a pixi.toml edit. - "**/pyproject.toml" - - "cuda_bindings_13/build_hooks.py" - - "cuda_bindings_12/build_hooks.py" + - "cuda_bindings*/build_hooks.py" - "cuda_core/build_hooks.py" - - "cuda_bindings_13/cuda/bindings/**" # generated bindings sources - - "cuda_bindings_12/cuda/bindings/**" - - "cuda_bindings_13/tests/cython/**" - - "cuda_bindings_12/tests/**" + - "cuda_bindings*/cuda/bindings/**" # generated bindings sources + - "cuda_bindings*/docs/**" + - "cuda_bindings*/tests/cython/**" - "cuda_core/tests/cython/**" - - "ci/versions.yml" - - "ci/pyproject.toml" - "ci/tools/bindings_config.py" + - "ci/tools/compute_ci_plan.py" + - "ci/tools/select_pixi_packages.py" + - "ci/pyproject.toml" + - "ci/versions.yml" - "ci/pixi-version.env" - ".github/actions/setup-pixi/action.yml" - ".github/workflows/ci-pixi-source-test.yml" + - "!**/AGENTS.md" + - "!**/CLAUDE.md" workflow_dispatch: inputs: cuda-env: - description: "pixi environment to test (cu13 or cu12)." - type: choice - options: ["cu13", "cu12"] - default: "cu13" + description: "Registered pixi CUDA ABI environment to test (empty selects current)." + type: string + default: "" defaults: run: @@ -79,26 +83,19 @@ env: jobs: # ── PR guard: CPU-only build + import + placement smoke ── build-smoke: - name: "build smoke (${{ matrix.cuda-env }}, linux-64, CPU)" + name: "build smoke (selected CUDA packages, linux-64, CPU)" if: >- github.repository_owner == 'nvidia' && (github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch') runs-on: ubuntu-latest timeout-minutes: 45 - strategy: - fail-fast: false - matrix: - cuda-env: ${{ fromJSON(github.event_name == 'workflow_dispatch' && format('["{0}"]', inputs.cuda-env) || '["cu12","cu13"]') }} - env: - CUDA_ENV: ${{ matrix.cuda-env }} - BINDINGS_ROOT: cuda_bindings_${{ matrix.cuda-env == 'cu12' && '12' || '13' }} steps: - name: Checkout ${{ github.event.repository.name }} uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: - # Full history + tags so setuptools-scm derives the real (13.x) + # Full history + tags so setuptools-scm derives the real # package version; a shallow checkout yields 0.1.dev1, which trips - # cuda.core's "cuda.bindings 12.x or 13.x must be installed" guard. + # cuda.core's supported cuda.bindings-version guard. fetch-depth: 0 filter: blob:none # Fetch CCCL separately: checkout's filter does not apply to submodules. @@ -109,63 +106,95 @@ jobs: git submodule sync --recursive git submodule update --init --force --depth=1 --filter=blob:none --recursive + - name: Set up Python + uses: ./.github/actions/setup-hardened-python + with: + python-version: "3.11" + + - name: Install CI tool dependencies + run: python3 -m pip install -e ./ci + - name: Setup pixi uses: ./.github/actions/setup-pixi + - name: Select CUDA environments + env: + BASE_SHA: ${{ github.event.pull_request.base.sha || '' }} + EVENT_NAME: ${{ github.event_name }} + REQUESTED_CUDA_ENV: ${{ inputs.cuda-env || '' }} + run: python3 -m ci.tools.select_pixi_packages + - name: Source-build + import + cython-placement smoke run: | - # pathfinder: pure-Python, no GPU. - pixi run -e "${CUDA_ENV}" test-pathfinder - - # Force each bindings source build (catches nvrtc/driver - # compile errors like #2182) and import them (catches ABI mismatches). - pixi run --manifest-path "${BINDINGS_ROOT}" -e "${CUDA_ENV}" \ - python -c "import cuda.bindings.driver, cuda.bindings.nvrtc, cuda.bindings.runtime; print('bindings import OK')" - if [[ "${CUDA_ENV}" == cu13 ]]; then + while IFS= read -r -u 3 bindings_package; do + BINDINGS_ROOT=$(jq -r '.package_root' <<< "${bindings_package}") + CUDA_ENV=$(jq -r '.cuda_variant' <<< "${bindings_package}") + echo "::group::Source-build ${BINDINGS_ROOT} (${CUDA_ENV})" + # Avoid carrying Cython outputs between bindings packages or CUDA ABIs. + rm -rf cuda_core/build/cython cuda_core/cython_debug + find cuda_core/cuda/core -type f -name '*.so' -delete + find "${BINDINGS_ROOT}/tests/cython" cuda_core/tests/cython \ + -maxdepth 1 -type f \( -name 'test_*.cpp' -o -name 'test_*.so' \) -delete + + # pathfinder: pure-Python, no GPU. + pixi run -e "${CUDA_ENV}" test-pathfinder + + # Force both source builds and import them to catch compile/ABI + # regressions such as #2182. cuda-core environments may use + # published bindings by design; wheel CI covers local pairing. + pixi run --manifest-path "${BINDINGS_ROOT}" -e "${CUDA_ENV}" \ + python -c "import cuda.bindings.driver, cuda.bindings.nvrtc, cuda.bindings.runtime; print('bindings import OK')" pixi run --manifest-path cuda_core -e "${CUDA_ENV}" \ python -c "import cuda.core; print('core import OK')" - fi - - # cython test extensions: build them and confirm each .so landed next - # to its .pyx in tests/cython (catches the placement regression #2180). - pixi run --manifest-path "${BINDINGS_ROOT}" -e "${CUDA_ENV}" build-cython-tests - cython_dirs=("${BINDINGS_ROOT}/tests/cython") - if [[ "${CUDA_ENV}" == cu13 ]]; then + pixi run --manifest-path "${BINDINGS_ROOT}" -e "${CUDA_ENV}" build-cython-tests pixi run --manifest-path cuda_core -e "${CUDA_ENV}" build-cython-tests - cython_dirs+=(cuda_core/tests/cython) - fi - for d in "${cython_dirs[@]}"; do - if ! compgen -G "${d}/*.cpython-*.so" > /dev/null; then - echo "::error::no compiled cython test .so in ${d} (placement regression)" - exit 1 - fi - done + + # Confirm each extension landed next to its .pyx (catches #2180). + for d in "${BINDINGS_ROOT}/tests/cython" cuda_core/tests/cython; do + if ! compgen -G "${d}/*.cpython-*.so" > /dev/null; then + echo "::error::no compiled cython test .so in ${d} (placement regression)" + exit 1 + fi + done + echo "::endgroup::" + done 3< <(jq -c '.[]' <<< "${BINDINGS_PACKAGES}") echo "cython test extensions placed correctly" + - name: Build changed bindings documentation + if: ${{ env.BINDINGS_DOC_PACKAGES != '[]' }} + run: | + while IFS= read -r -u 3 bindings_package; do + bindings_root=$(jq -r '.package_root' <<< "${bindings_package}") + pixi run --manifest-path "${bindings_root}" -e docs build-docs + done 3< <(jq -c '.[]' <<< "${BINDINGS_DOC_PACKAGES}") + # ── Nightly guard: build artifacts must be CUDA-major aware ── # # Neither Cython nor setuptools tracks the CUDA major in its own up-to-date # check: Cython does not hash `compile_time_env`, and an editable install's # .so is named by the Python ABI tag alone. Before build_hooks keyed them, - # a cu13 build followed by a cu12 build in the same checkout failed while - # compiling cu13-generated C++ against CUDA 12 headers. + # a build for one ABI followed by another in the same checkout failed while + # compiling generated C++ against headers from the second ABI. # - # The round trip (not just cu13 -> cu12) is what catches the second half: - # coming back to cu13 must not silently reuse the cu12 extension. + # The round trip is what catches the second half: coming back to the current + # ABI must not silently reuse the other ABI's extension. # - # Core only: bindings majors have separate source roots and environments. + # cuda_core only: not every bindings package can be source-built in every ABI + # environment, for reasons unrelated to stale artifacts. build-identity-roundtrip: - name: "cu13 -> cu12 -> cu13 round trip (linux-64, CPU)" + name: "current -> maintenance -> current round trip (linux-64, CPU)" if: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.repository_owner == 'nvidia' }} runs-on: ubuntu-latest timeout-minutes: 60 + outputs: + bindings-packages: ${{ steps.roundtrip.outputs.bindings-packages }} steps: - name: Checkout ${{ github.event.repository.name }} uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: - # Full history + tags so setuptools-scm derives the real (13.x) + # Full history + tags so setuptools-scm derives the real # package version; a shallow checkout yields 0.1.dev1, which trips - # cuda.core's "cuda.bindings 12.x or 13.x must be installed" guard. + # cuda.core's supported cuda.bindings-version guard. fetch-depth: 0 filter: blob:none # Fetch CCCL separately: checkout's filter does not apply to submodules. @@ -176,18 +205,53 @@ jobs: git submodule sync --recursive git submodule update --init --force --depth=1 --filter=blob:none --recursive + - name: Set up Python + uses: ./.github/actions/setup-hardened-python + with: + python-version: "3.11" + + - name: Install CI tool dependencies + run: python3 -m pip install -e ./ci + - name: Setup pixi uses: ./.github/actions/setup-pixi - - name: Build cu13, then cu12, then cu13 again in one checkout + - name: Build current, another ABI, then current again in one checkout + id: roundtrip + env: + EVENT_NAME: ${{ github.event_name }} + REQUESTED_CUDA_ENV: ${{ inputs.cuda-env || '' }} run: | - for cuda_env in cu13 cu12 cu13; do + current_package=$(python3 -m ci.tools.bindings_config --release-status current) + bindings_packages=$(python3 -m ci.tools.bindings_config --package-roots) + current_env=$(jq -r '.cuda_variant' <<< "${current_package}") + other_env=$(jq -r --arg current_env "${current_env}" \ + '[.[] | select(.cuda_variant != $current_env) | .cuda_variant] | first // empty' \ + <<< "${bindings_packages}") + + # Scheduled source tests cover both registered ABIs; manual runs + # retain a single selected ABI, defaulting to the current package. + if [[ "${EVENT_NAME}" == schedule ]]; then + selected_packages="${bindings_packages}" + else + selected_env="${REQUESTED_CUDA_ENV:-${current_env}}" + selected_packages=$(jq -c --arg cuda_env "${selected_env}" \ + '[.[] | select(.cuda_variant == $cuda_env)]' <<< "${bindings_packages}") + if [[ "${selected_packages}" == '[]' ]]; then + registered_envs=$(jq -r '[.[].cuda_variant] | join(", ")' <<< "${bindings_packages}") + echo "::error::cuda-env must be a registered pixi environment: ${registered_envs}" + exit 1 + fi + fi + echo "bindings-packages=${selected_packages}" >> "$GITHUB_OUTPUT" + + for cuda_env in "${current_env}" "${other_env}" "${current_env}"; do echo "::group::${cuda_env}" pixi run --manifest-path cuda_core -e "${cuda_env}" \ python -c "import cuda.core; print('core import OK')" echo "::endgroup::" done - # The last build was cu13, and each major must have kept its own + # The last build was current, and each ABI must have kept its own # generated sources rather than overwriting the other's. # Stamp is ABI-scoped (.build-config.). Unset and gnu # both record as "gnu"; llvm records as "llvm". @@ -198,28 +262,29 @@ jobs: exit 1 fi stamp=$(<"${stamps[0]}") - if [[ ! "${stamp}" =~ ^cu13-(gnu|llvm)-(debug|opt)(-cov)?$ ]]; then - echo "::error::build stamp is '${stamp}', expected cu13-{gnu|llvm}-{debug|opt}" + if [[ ! "${stamp}" =~ ^${current_env}-(gnu|llvm)-(debug|opt)(-cov)?$ ]]; then + echo "::error::build stamp is '${stamp}', expected ${current_env}-{gnu|llvm}-{debug|opt}" exit 1 fi - suffix="${stamp#cu13-}" - for major in cu12 cu13; do - if [ ! -d "cuda_core/build/cython/${major}-${suffix}" ]; then - echo "::error::no ${major}-${suffix} generated-source directory" + suffix="${stamp#"${current_env}-"}" + for cuda_env in "${other_env}" "${current_env}"; do + if [ ! -d "cuda_core/build/cython/${cuda_env}-${suffix}" ]; then + echo "::error::no ${cuda_env}-${suffix} generated-source directory" exit 1 fi done # ── Nightly: full `pixi run test` on a GPU runner ── full-test: - name: "pixi run test (${{ matrix.cuda-env }}, linux-64, GPU)" + name: "pixi run test (${{ matrix.bindings-package.cuda_variant }}, linux-64, GPU)" if: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.repository_owner == 'nvidia' }} - runs-on: "linux-amd64-gpu-l4-latest-1" # same label scheme as test-wheel-linux.yml - timeout-minutes: 90 + needs: build-identity-roundtrip strategy: fail-fast: false matrix: - cuda-env: ${{ fromJSON(github.event_name == 'workflow_dispatch' && format('["{0}"]', inputs.cuda-env) || '["cu12","cu13"]') }} + bindings-package: ${{ fromJSON(needs.build-identity-roundtrip.outputs.bindings-packages) }} + runs-on: "linux-amd64-gpu-l4-latest-1" # same label scheme as test-wheel-linux.yml + timeout-minutes: 90 container: options: -u root --security-opt seccomp=unconfined --shm-size 16g image: ubuntu:24.04 @@ -232,17 +297,17 @@ jobs: - name: Install system packages run: | apt-get update - # ca-certificates + git for checkout; libgl1/libegl1 for pyglet - # (pulled in by the test env). pixi itself is installed by setup-pixi. + # ca-certificates + git for checkout; libgl1/libegl1 for pyglet. + # Pixi supplies the package build and test environments. apt-get install -y --no-install-recommends \ - ca-certificates git libgl1 libegl1 + ca-certificates git jq libgl1 libegl1 - name: Checkout ${{ github.event.repository.name }} uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: - # Full history + tags so setuptools-scm derives the real (13.x) + # Full history + tags so setuptools-scm derives the real # package version; a shallow checkout yields 0.1.dev1, which trips - # cuda.core's "cuda.bindings 12.x or 13.x must be installed" guard. + # cuda.core's supported cuda.bindings-version guard. fetch-depth: 0 filter: blob:none # Fetch CCCL separately: checkout's filter does not apply to submodules. @@ -257,6 +322,12 @@ jobs: # checkout's temporary Git configuration does not reach later steps. run: git config --global --add safe.directory "$GITHUB_WORKSPACE" + - name: Prepare selected CUDA environment + env: + CUDA_ENV: ${{ matrix.bindings-package.cuda_variant }} + run: | + echo "CUDA_ENV=${CUDA_ENV}" | tee -a "$GITHUB_ENV" + - name: Setup proxy cache uses: nv-gha-runners/setup-proxy-cache@main continue-on-error: true @@ -265,6 +336,4 @@ jobs: uses: ./.github/actions/setup-pixi - name: pixi run test - env: - CUDA_ENV: ${{ matrix.cuda-env }} run: pixi run -e "${CUDA_ENV}" test diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb66f420a410..f69320800dca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,6 @@ # SPDX-License-Identifier: Apache-2.0 # Note: This name is referred to in the test job, so make sure any changes are sync'd up! -# Further this is referencing a run in the backport branch to fetch old bindings. name: "CI" concurrency: @@ -27,56 +26,6 @@ on: workflow_dispatch: {} jobs: - ci-vars: - if: ${{ github.repository_owner == 'nvidia' }} - runs-on: ubuntu-latest - outputs: - CUDA_BUILD_VER: ${{ steps.get-vars.outputs.cuda_build_ver }} - CUDA_PREV_BUILD_VER: ${{ steps.get-vars.outputs.cuda_prev_build_ver }} - WINDOWS_ARM64_SUPPORTED: ${{ steps.get-vars.outputs.windows_arm64_supported }} - WINDOWS_ARM64_PYTHON_SUPPORTED: ${{ steps.get-vars.outputs.windows_arm64_python_supported }} - WINDOWS_ARM64_SINGLE_CUDA_MAJOR: ${{ steps.get-vars.outputs.windows_arm64_single_cuda_major }} - PYTHON_SUPPORTED: ${{ steps.get-vars.outputs.python_supported }} - BINDINGS_CONFIG: ${{ steps.get-vars.outputs.bindings_config }} - steps: - - name: Checkout repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - fetch-depth: 1 - - name: Set up Python for CI tools - uses: ./.github/actions/setup-hardened-python - with: - python-version: "3.11" - - name: Install CI tool dependencies - run: python -m pip install -e ./ci - - name: Get CUDA build versions - id: get-vars - run: | - bindings_config=$(python -m ci.tools.bindings_config) - echo "bindings_config=$bindings_config" >> "$GITHUB_OUTPUT" - cuda_build_ver=$(yq '.cuda.build.version' ci/versions.yml) - echo "cuda_build_ver=$cuda_build_ver" >> $GITHUB_OUTPUT - - cuda_prev_build_ver=$(yq '.cuda.prev_build.version' ci/versions.yml) - echo "cuda_prev_build_ver=$cuda_prev_build_ver" >> $GITHUB_OUTPUT - - # Flattened one-line JSON for pass-through to build-wheel.yml via - # fromJSON on the receiving side. - python_supported=$(yq -o json -I 0 '.python.supported' ci/versions.yml) - echo "python_supported=$python_supported" >> $GITHUB_OUTPUT - - python - <<'PY' >> "$GITHUB_OUTPUT" - import json - from ci.tools.bindings_config import load_config, wheel_python_versions - - config = load_config() - current = config.package_for_release_status("current") - versions = wheel_python_versions(current.toolkit_version, "win-arm64", config.python_supported) - print("windows_arm64_supported=" + str(bool(versions)).lower()) - print("windows_arm64_single_cuda_major=" + str(current.cuda_major == "13").lower()) - print("windows_arm64_python_supported=" + json.dumps(versions)) - PY - should-skip: if: ${{ github.repository_owner == 'nvidia' }} runs-on: ubuntu-latest @@ -117,19 +66,22 @@ jobs: # # Dependency graph (verified in pyproject.toml files): # cuda_pathfinder -> (no internal deps) - # cuda_bindings -> cuda_pathfinder + # cuda.bindings (both versions) -> cuda_pathfinder # cuda_core -> cuda_pathfinder, cuda_bindings # cuda_python -> cuda_pathfinder, cuda_bindings, cuda_core (meta package) # # A change to cuda_pathfinder (or shared infra) forces a rebuild of every - # downstream module. A change to cuda_bindings forces rebuild of cuda_core. + # downstream module. A bindings-only change rebuilds its bindings and + # metapackage, then tests them with the unchanged Core wheel from the baseline. + # Core source changes rebuild both CUDA variants. # A change to cuda_core alone skips rebuilding/retesting cuda_bindings and # cuda_pathfinder, but still retests the downstream cuda-python metapackage. # Shared build/orchestration changes run the full pipeline; test-only CI # infrastructure runs every test suite without rebuilding package wheels. - # On push to main, tag refs, schedule, or workflow_dispatch events we - # unconditionally run everything because there is no meaningful "changed - # paths" baseline for those events. + # On pushes to main, schedule, workflow_dispatch, or non-bindings release + # tags we unconditionally run everything because there is no meaningful + # "changed paths" baseline for those events. Bare bindings tags select the + # corresponding registered cuda.bindings package root and cuda-python build. detect-changes: if: ${{ github.repository_owner == 'nvidia' }} runs-on: ubuntu-latest @@ -138,7 +90,14 @@ jobs: actions: read contents: read outputs: + bindings-config: ${{ steps.workplan.outputs.bindings-config }} workplan: ${{ steps.workplan.outputs.workplan }} + platform-linux: ${{ steps.workplan.outputs.platform-linux }} + platform-windows: ${{ steps.workplan.outputs.platform-windows }} + windows-arm64-build: ${{ steps.workplan.outputs.windows-arm64-build }} + windows-arm64-single-cuda-major: ${{ steps.workplan.outputs.windows-arm64-single-cuda-major }} + sdist-tests: ${{ steps.workplan.outputs.sdist-tests }} + core-api-checks: ${{ steps.workplan.outputs.core-api-checks }} steps: - name: Checkout repository uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -147,6 +106,14 @@ jobs: fetch-depth: ${{ startsWith(github.ref_name, 'pull-request/') && '0' || '1' }} filter: blob:none + - name: Set up Python for CI tools + uses: ./.github/actions/setup-hardened-python + with: + python-version: "3.11" + + - name: Install CI tool test dependencies + run: python3 -m pip install -e './ci[test]' + - name: Resolve PR merge base id: merge-base if: ${{ startsWith(github.ref_name, 'pull-request/') }} @@ -213,34 +180,13 @@ jobs: unavailable fi - has_artifact() { - grep -Fxq "$1" <<< "$artifact_names" - } - - missing=() - for name in cuda-pathfinder-wheel cuda-python-wheel; do - has_artifact "$name" || missing+=("$name") - done - - cuda_version=$(yq '.cuda.build.version' ci/versions.yml) - if ! python_versions=$(yq -r '.python.supported[]' ci/versions.yml); then - unavailable - fi - if ! platforms=$(yq -r '.platforms[]' ci/test-matrix.yml); then - unavailable - fi - if [[ -z "${python_versions}" || -z "${platforms}" ]]; then + if ! expected_artifacts=$(python3 -m ci.tools.ci_artifacts --baseline-sha "$merge_base"); then unavailable fi - while IFS= read -r python_version; do - python=${python_version//./} - while IFS= read -r platform; do - binding="cuda-bindings-python${python}-cuda${cuda_version}-${platform}-${merge_base}" - core="cuda-core-python${python}-${platform}-${merge_base}" - has_artifact "$binding" || missing+=("$binding") - has_artifact "$core" || missing+=("$core") - done <<< "${platforms}" - done <<< "${python_versions}" + missing=() + while IFS= read -r name; do + grep -Fxq "$name" <<< "$artifact_names" || missing+=("$name") + done <<< "$expected_artifacts" if (( ${#missing[@]} != 0 )); then printf 'Missing reusable artifact: %s\n' "${missing[@]}" >&2 @@ -253,40 +199,23 @@ jobs: echo "Reusable artifacts: run \`${run_id}\` at \`${merge_base}\` on \`${BASE_REF}\`." } >> "$GITHUB_STEP_SUMMARY" - - name: Set up Python for CI tool tests - uses: ./.github/actions/setup-hardened-python - with: - python-version: "3.11" - - name: Test CI tools run: | - python -m pip install -e './ci[test]' - python -m pytest -v ci/tools/tests + python3 -m pytest -q ci/tools/tests - name: Compute CI workplan id: workplan env: MERGE_BASE: ${{ steps.merge-base.outputs.sha }} BASELINE_RUN_ID: ${{ steps.baseline.outputs.run_id }} - run: | - set -euo pipefail - workplan=$(python3 ci/tools/compute_ci_plan.py \ - --merge-base "$MERGE_BASE" \ - --baseline-run-id "$BASELINE_RUN_ID") - echo "workplan=$workplan" >> "$GITHUB_OUTPUT" - { - echo - echo "### CI workplan" - echo '```json' - jq . <<< "$workplan" - echo '```' - } >> "$GITHUB_STEP_SUMMARY" + RELEASE_TAG: ${{ github.ref_type == 'tag' && github.ref_name || '' }} + run: python3 -m ci.tools.compute_ci_plan api-check-core-vs-release: name: API check (cuda_core vs. latest release) if: >- ${{ !fromJSON(needs.should-skip.outputs.skip) && - fromJSON(needs.detect-changes.outputs.workplan).jobs.core_api_checks }} + needs.detect-changes.outputs.core-api-checks == 'true' }} runs-on: ubuntu-latest needs: - should-skip @@ -337,7 +266,7 @@ jobs: if: >- ${{ startsWith(github.ref_name, 'pull-request/') && !fromJSON(needs.should-skip.outputs.skip) && - fromJSON(needs.detect-changes.outputs.workplan).jobs.core_api_checks }} + needs.detect-changes.outputs.core-api-checks == 'true' }} runs-on: ubuntu-latest needs: - should-skip @@ -374,7 +303,6 @@ jobs: # - if: condition (build-linux-64 omits doc-only check since it's needed for docs) build-linux-64: needs: - - ci-vars - should-skip - detect-changes strategy: @@ -382,7 +310,7 @@ jobs: matrix: host-platform: - linux-64 - name: Build ${{ matrix.host-platform }}, CUDA ${{ needs.ci-vars.outputs.CUDA_BUILD_VER }} + name: Build (${{ matrix.host-platform }}, CUDA ${{ join(fromJSON(needs.detect-changes.outputs.bindings-config).package_roots.*.toolkit_version, ' / ') }}) if: ${{ github.repository_owner == 'nvidia' && !fromJSON(needs.should-skip.outputs.skip) }} permissions: actions: read @@ -391,15 +319,11 @@ jobs: uses: ./.github/workflows/build-wheel.yml with: host-platform: ${{ matrix.host-platform }} - cuda-version: ${{ needs.ci-vars.outputs.CUDA_BUILD_VER }} - prev-cuda-version: ${{ needs.ci-vars.outputs.CUDA_PREV_BUILD_VER }} workplan: ${{ needs.detect-changes.outputs.workplan }} - python-versions: ${{ needs.ci-vars.outputs.PYTHON_SUPPORTED }} # See build-linux-64 for why build jobs are split by platform. build-linux-aarch64: needs: - - ci-vars - should-skip - detect-changes strategy: @@ -407,11 +331,11 @@ jobs: matrix: host-platform: - linux-aarch64 - name: Build ${{ matrix.host-platform }}, CUDA ${{ needs.ci-vars.outputs.CUDA_BUILD_VER }} + name: Build (${{ matrix.host-platform }}, CUDA ${{ join(fromJSON(needs.detect-changes.outputs.bindings-config).package_roots.*.toolkit_version, ' / ') }}) if: ${{ github.repository_owner == 'nvidia' && !fromJSON(needs.should-skip.outputs.skip) && !fromJSON(needs.should-skip.outputs.doc-only) && - fromJSON(needs.detect-changes.outputs.workplan).jobs.platforms.linux }} + needs.detect-changes.outputs.platform-linux == 'true' }} permissions: actions: read contents: read @@ -419,15 +343,11 @@ jobs: uses: ./.github/workflows/build-wheel.yml with: host-platform: ${{ matrix.host-platform }} - cuda-version: ${{ needs.ci-vars.outputs.CUDA_BUILD_VER }} - prev-cuda-version: ${{ needs.ci-vars.outputs.CUDA_PREV_BUILD_VER }} workplan: ${{ needs.detect-changes.outputs.workplan }} - python-versions: ${{ needs.ci-vars.outputs.PYTHON_SUPPORTED }} # See build-linux-64 for why build jobs are split by platform. build-windows: needs: - - ci-vars - should-skip - detect-changes strategy: @@ -435,11 +355,11 @@ jobs: matrix: host-platform: - win-64 - name: Build ${{ matrix.host-platform }}, CUDA ${{ needs.ci-vars.outputs.CUDA_BUILD_VER }} + name: Build (${{ matrix.host-platform }}, CUDA ${{ join(fromJSON(needs.detect-changes.outputs.bindings-config).package_roots.*.toolkit_version, ' / ') }}) if: ${{ github.repository_owner == 'nvidia' && !fromJSON(needs.should-skip.outputs.skip) && !fromJSON(needs.should-skip.outputs.doc-only) && - fromJSON(needs.detect-changes.outputs.workplan).jobs.platforms.windows }} + needs.detect-changes.outputs.platform-windows == 'true' }} permissions: actions: read contents: read @@ -447,24 +367,19 @@ jobs: uses: ./.github/workflows/build-wheel.yml with: host-platform: ${{ matrix.host-platform }} - cuda-version: ${{ needs.ci-vars.outputs.CUDA_BUILD_VER }} - prev-cuda-version: ${{ needs.ci-vars.outputs.CUDA_PREV_BUILD_VER }} workplan: ${{ needs.detect-changes.outputs.workplan }} - python-versions: ${{ needs.ci-vars.outputs.PYTHON_SUPPORTED }} - # Windows ARM64 is available starting with CUDA 13.4. Build only the current - # CUDA major because no prior-major toolkit or wheel artifacts exist. + # Windows ARM64 is available starting with CUDA 13.4. While CUDA 13 is current, + # build only that major; at 13/14, both configured majors have ARM64 toolkits. build-windows-arm64: needs: - - ci-vars - should-skip - detect-changes - name: Build win-arm64, CUDA ${{ needs.ci-vars.outputs.CUDA_BUILD_VER }} + name: Build (win-arm64, ${{ needs.detect-changes.outputs.windows-arm64-single-cuda-major == 'true' && 'current CUDA only' || format('CUDA {0}', join(fromJSON(needs.detect-changes.outputs.bindings-config).package_roots.*.toolkit_version, ' / ')) }}) if: ${{ github.repository_owner == 'nvidia' && !fromJSON(needs.should-skip.outputs.skip) && !fromJSON(needs.should-skip.outputs.doc-only) && - needs.ci-vars.outputs.WINDOWS_ARM64_SUPPORTED == 'true' && - fromJSON(needs.detect-changes.outputs.workplan).jobs.platforms.windows }} + needs.detect-changes.outputs.windows-arm64-build == 'true' }} permissions: actions: read contents: read @@ -472,11 +387,8 @@ jobs: uses: ./.github/workflows/build-wheel.yml with: host-platform: win-arm64 - cuda-version: ${{ needs.ci-vars.outputs.CUDA_BUILD_VER }} - prev-cuda-version: ${{ needs.ci-vars.outputs.CUDA_PREV_BUILD_VER }} workplan: ${{ needs.detect-changes.outputs.workplan }} - single-cuda-major: ${{ needs.ci-vars.outputs.WINDOWS_ARM64_SINGLE_CUDA_MAJOR == 'true' }} - python-versions: ${{ needs.ci-vars.outputs.WINDOWS_ARM64_PYTHON_SUPPORTED }} + single-cuda-major: ${{ needs.detect-changes.outputs.windows-arm64-single-cuda-major == 'true' }} # NOTE: test-sdist jobs are split by platform (mirroring build-* and test-wheel-*) # so platform-specific sources (e.g. cuda_bindings_13/*_windows.pyx selected by @@ -488,17 +400,16 @@ jobs: strategy: fail-fast: false matrix: - package: ${{ fromJSON(needs.ci-vars.outputs.BINDINGS_CONFIG).package_roots }} + package: ${{ fromJSON(needs.detect-changes.outputs.workplan).jobs.sdist_packages }} needs: - - ci-vars - should-skip - detect-changes - build-linux-64 - name: Test sdist linux-64 + name: Sdist ${{ matrix.package.package_root }} (linux-64) if: ${{ github.repository_owner == 'nvidia' && !fromJSON(needs.should-skip.outputs.skip) && !fromJSON(needs.should-skip.outputs.doc-only) && - fromJSON(needs.detect-changes.outputs.workplan).jobs.sdist_tests }} + needs.detect-changes.outputs.sdist-tests == 'true' }} permissions: actions: read contents: read @@ -507,25 +418,23 @@ jobs: with: host-platform: linux-64 bindings-package: ${{ toJSON(matrix.package) }} - workplan: ${{ needs.detect-changes.outputs.workplan }} # See test-sdist-linux for why sdist test jobs are split by platform. test-sdist-windows: strategy: fail-fast: false matrix: - package: ${{ fromJSON(needs.ci-vars.outputs.BINDINGS_CONFIG).package_roots }} + package: ${{ fromJSON(needs.detect-changes.outputs.workplan).jobs.sdist_packages }} needs: - - ci-vars - should-skip - detect-changes - build-linux-64 - build-windows - name: Test sdist win-64 + name: Sdist ${{ matrix.package.package_root }} (win-64) if: ${{ github.repository_owner == 'nvidia' && !fromJSON(needs.should-skip.outputs.skip) && !fromJSON(needs.should-skip.outputs.doc-only) && - fromJSON(needs.detect-changes.outputs.workplan).jobs.sdist_tests }} + needs.detect-changes.outputs.sdist-tests == 'true' }} permissions: actions: read contents: read @@ -534,7 +443,6 @@ jobs: with: host-platform: win-64 bindings-package: ${{ toJSON(matrix.package) }} - workplan: ${{ needs.detect-changes.outputs.workplan }} # NOTE: Test jobs are split by platform for the same reason as build jobs (see # build-linux-64). Keep these job definitions textually identical except for: @@ -550,22 +458,20 @@ jobs: name: Test ${{ matrix.host-platform }} if: ${{ github.repository_owner == 'nvidia' && !fromJSON(needs.should-skip.outputs.doc-only) && - fromJSON(needs.detect-changes.outputs.workplan).jobs.platforms.linux }} + needs.detect-changes.outputs.platform-linux == 'true' }} permissions: actions: read contents: read # This is required for actions/checkout needs: - - ci-vars - should-skip - detect-changes - build-linux-64 secrets: inherit uses: ./.github/workflows/test-wheel-linux.yml with: - build-type: ${{ startsWith(github.ref_name, 'pull-request/') && 'pull-request' || (github.event_name == 'schedule' && 'nightly' || 'branch') }} + build-type: pull-request host-platform: ${{ matrix.host-platform }} - build-ctk-ver: ${{ needs.ci-vars.outputs.CUDA_BUILD_VER }} - bindings-config: ${{ needs.ci-vars.outputs.BINDINGS_CONFIG }} + bindings-config: ${{ needs.detect-changes.outputs.bindings-config }} nruns: ${{ (github.event_name == 'schedule' && 5) || 1}} workplan: ${{ needs.detect-changes.outputs.workplan }} @@ -579,12 +485,11 @@ jobs: name: Test ${{ matrix.host-platform }} if: ${{ github.repository_owner == 'nvidia' && !fromJSON(needs.should-skip.outputs.doc-only) && - fromJSON(needs.detect-changes.outputs.workplan).jobs.platforms.linux }} + needs.detect-changes.outputs.platform-linux == 'true' }} permissions: actions: read contents: read # This is required for actions/checkout needs: - - ci-vars - should-skip - detect-changes - build-linux-64 @@ -592,10 +497,9 @@ jobs: secrets: inherit uses: ./.github/workflows/test-wheel-linux.yml with: - build-type: ${{ startsWith(github.ref_name, 'pull-request/') && 'pull-request' || (github.event_name == 'schedule' && 'nightly' || 'branch') }} + build-type: pull-request host-platform: ${{ matrix.host-platform }} - build-ctk-ver: ${{ needs.ci-vars.outputs.CUDA_BUILD_VER }} - bindings-config: ${{ needs.ci-vars.outputs.BINDINGS_CONFIG }} + bindings-config: ${{ needs.detect-changes.outputs.bindings-config }} nruns: ${{ (github.event_name == 'schedule' && 5) || 1}} workplan: ${{ needs.detect-changes.outputs.workplan }} @@ -609,12 +513,11 @@ jobs: name: Test ${{ matrix.host-platform }} if: ${{ github.repository_owner == 'nvidia' && !fromJSON(needs.should-skip.outputs.doc-only) && - fromJSON(needs.detect-changes.outputs.workplan).jobs.platforms.windows }} + needs.detect-changes.outputs.platform-windows == 'true' }} permissions: actions: read contents: read # This is required for actions/checkout needs: - - ci-vars - should-skip - detect-changes - build-linux-64 @@ -622,10 +525,9 @@ jobs: secrets: inherit uses: ./.github/workflows/test-wheel-windows.yml with: - build-type: ${{ startsWith(github.ref_name, 'pull-request/') && 'pull-request' || (github.event_name == 'schedule' && 'nightly' || 'branch') }} + build-type: pull-request host-platform: ${{ matrix.host-platform }} - build-ctk-ver: ${{ needs.ci-vars.outputs.CUDA_BUILD_VER }} - bindings-config: ${{ needs.ci-vars.outputs.BINDINGS_CONFIG }} + bindings-config: ${{ needs.detect-changes.outputs.bindings-config }} nruns: ${{ (github.event_name == 'schedule' && 5) || 1}} workplan: ${{ needs.detect-changes.outputs.workplan }} @@ -638,11 +540,13 @@ jobs: contents: write pull-requests: write needs: - - ci-vars - build-linux-64 secrets: inherit uses: ./.github/workflows/build-docs.yml with: + # Bare cuda.bindings tags intentionally produce only their matching + # cuda.bindings and cuda-python artifacts. Keep tag docs on that focused + # artifact set; component-specific release runs build the other docs. component: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') && 'cuda-bindings' || 'all' }} git-tag: ${{ github.ref_type == 'tag' && github.ref_name || '' }} run-id: ${{ github.run_id }} @@ -654,7 +558,6 @@ jobs: if: ${{ always() && github.repository_owner == 'nvidia' }} runs-on: ubuntu-latest needs: - - ci-vars - should-skip - detect-changes - build-linux-64 @@ -689,11 +592,11 @@ jobs: fi doc_only="${{ needs.should-skip.outputs.doc-only }}" - linux_selected="${{ needs.detect-changes.outputs.workplan && fromJSON(needs.detect-changes.outputs.workplan).jobs.platforms.linux || false }}" - windows_selected="${{ needs.detect-changes.outputs.workplan && fromJSON(needs.detect-changes.outputs.workplan).jobs.platforms.windows || false }}" - windows_arm64_supported="${{ needs.ci-vars.outputs.WINDOWS_ARM64_SUPPORTED }}" - build_selected="${{ needs.detect-changes.outputs.workplan && fromJSON(needs.detect-changes.outputs.workplan).jobs.sdist_tests || false }}" - run_core_api_check="${{ needs.detect-changes.outputs.workplan && fromJSON(needs.detect-changes.outputs.workplan).jobs.core_api_checks || false }}" + linux_selected="${{ needs.detect-changes.outputs.platform-linux }}" + windows_selected="${{ needs.detect-changes.outputs.platform-windows }}" + windows_arm64_selected="${{ needs.detect-changes.outputs.windows-arm64-build }}" + build_selected="${{ needs.detect-changes.outputs.sdist-tests }}" + run_core_api_check="${{ needs.detect-changes.outputs.core-api-checks }}" is_pr="${{ startsWith(github.ref_name, 'pull-request/') }}" status="success" check_result() { @@ -707,33 +610,33 @@ jobs: } # Control jobs, the universal Linux build, and docs always run. - check_result "ci-vars" "success" check_result "should-skip" "success" check_result "detect-changes" "success" check_result "build-linux-64" "success" check_result "doc" "success" # Optional platform builds and wheel tests share the platform plan. + # Only a literal false waives a job; a missing gate must fail. linux_expected="skipped" - if [[ "$doc_only" != "true" && "$linux_selected" == "true" ]]; then + if [[ "$doc_only" != "true" && "$linux_selected" != "false" ]]; then linux_expected="success" fi windows_expected="skipped" - if [[ "$doc_only" != "true" && "$windows_selected" == "true" ]]; then + if [[ "$doc_only" != "true" && "$windows_selected" != "false" ]]; then windows_expected="success" fi check_result "build-linux-aarch64" "$linux_expected" check_result "build-windows" "$windows_expected" windows_arm64_expected="skipped" - if [[ "$windows_arm64_supported" == "true" ]]; then + if [[ "$windows_arm64_selected" != "false" ]]; then windows_arm64_expected="$windows_expected" fi check_result "build-windows-arm64" "$windows_arm64_expected" # Sdist tests follow build selection; wheel tests follow the platform plan. expected="skipped" - if [[ "$doc_only" != "true" && "$build_selected" == "true" ]]; then + if [[ "$doc_only" != "true" && "$build_selected" != "false" ]]; then expected="success" fi check_result "test-sdist-linux" "$expected" @@ -746,7 +649,7 @@ jobs: # API compatibility checks run for cuda_core source changes and for # conservative full runs when reusable base artifacts are unavailable. expected="skipped" - if [[ "$run_core_api_check" == "true" ]]; then expected="success"; fi + if [[ "$run_core_api_check" != "false" ]]; then expected="success"; fi check_result "api-check-core-vs-release" "$expected" # API compatibility checks against the merge base (api-check-core-vs-base) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 6f3404159af3..fbb5b1b5c4b8 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -94,8 +94,15 @@ jobs: uses: nv-gha-runners/setup-proxy-cache@main continue-on-error: true + - name: Set up Python + uses: ./.github/actions/setup-hardened-python + with: + python-version: ${{ env.PY_VER }} + venv: .venv + - name: Set environment variables env: + BINDINGS_CONFIG: LEGACY_CONFIG BUILD_CUDA_VER: ${{ env.CUDA_VER }} CUDA_VER: ${{ env.CUDA_VER }} HOST_PLATFORM: ${{ env.HOST_PLATFORM }} @@ -103,15 +110,9 @@ jobs: PY_VER: ${{ env.PY_VER }} SHA: ${{ github.sha }} run: | - ./ci/tools/env-vars test + python ci/tools/ci_env.py test echo "CUDA_PYTHON_COVERAGE=1" >> $GITHUB_ENV - - name: Set up Python - uses: ./.github/actions/setup-hardened-python - with: - python-version: ${{ env.PY_VER }} - venv: .venv - - name: Set up mini CTK if: ${{ env.LOCAL_CTK == '1' }} uses: ./.github/actions/fetch_ctk diff --git a/.github/workflows/test-sdist-linux.yml b/.github/workflows/test-sdist-linux.yml index db329ca35dd9..5b976a258298 100644 --- a/.github/workflows/test-sdist-linux.yml +++ b/.github/workflows/test-sdist-linux.yml @@ -9,14 +9,9 @@ on: required: true type: string bindings-package: - description: Normalized bindings root and toolkit for this sdist build. + description: Selected package metadata and build decisions for this sdist job. required: true type: string - workplan: - description: JSON workplan. An empty value builds everything. - required: false - default: "" - type: string defaults: run: @@ -29,14 +24,14 @@ permissions: jobs: test-sdist: name: Test sdist builds - if: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).jobs.sdist_tests }} env: BINDINGS_ROOT: ${{ fromJSON(inputs.bindings-package).package_root }} CUDA_PYTHON_BUILD_MAJOR: ${{ fromJSON(inputs.bindings-package).cuda_major }} - BUILD_PATHFINDER: ${{ fromJSON(inputs.bindings-package).release_status == 'current' && (inputs.workplan == '' || fromJSON(inputs.workplan).modules.pathfinder.needs_build) }} - BUILD_BINDINGS: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.bindings.needs_build }} - BUILD_CORE: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.core.needs_build }} - BUILD_PYTHON: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.python.needs_build }} + BUILD_PATHFINDER: ${{ fromJSON(inputs.bindings-package).build_pathfinder }} + BUILD_BINDINGS: ${{ fromJSON(inputs.bindings-package).build_bindings }} + BUILD_CORE: ${{ fromJSON(inputs.bindings-package).build_core }} + BUILD_PYTHON: ${{ fromJSON(inputs.bindings-package).build_python }} + PATHFINDER_SOURCE: ${{ fromJSON(inputs.bindings-package).pathfinder_source }} # Back off on repeated local-disk cache I/O errors (#3273). SCCACHE_CACHE_RATE_LIMIT_ON_ERROR_COUNT: "5" SCCACHE_CACHE_RATE_LIMIT_ON_ERROR_WINDOW_SIZE_SECS: "5" @@ -80,7 +75,8 @@ jobs: pip wheel --no-deps --wheel-dir cuda_python/dist cuda_python/dist/*.tar.gz - name: Download cuda.pathfinder wheel - if: ${{ env.BUILD_PATHFINDER != 'true' && (env.BUILD_BINDINGS == 'true' || env.BUILD_CORE == 'true') }} + if: ${{ env.BUILD_PATHFINDER != 'true' && (env.BUILD_BINDINGS == 'true' || env.BUILD_CORE == 'true') && + env.PATHFINDER_SOURCE == 'artifact' }} uses: ./.github/actions/download-artifact-retry with: name: cuda-pathfinder-wheel @@ -89,12 +85,19 @@ jobs: - name: Constrain builds to the local cuda.pathfinder wheel if: ${{ env.BUILD_BINDINGS == 'true' }} run: | - pathfinder_wheels=(cuda_pathfinder/dist/cuda_pathfinder-*.whl) - test "${#pathfinder_wheels[@]}" -eq 1 - test -f "${pathfinder_wheels[0]}" mkdir -p wheel-constraints - pathfinder_uri="file://$(realpath "${pathfinder_wheels[0]}")" - printf 'cuda-pathfinder @ %s\n' "${pathfinder_uri}" | tee wheel-constraints/cuda-bindings.txt + if [[ "${PATHFINDER_SOURCE}" == artifact ]]; then + pathfinder_wheels=(cuda_pathfinder/dist/cuda_pathfinder-*.whl) + test "${#pathfinder_wheels[@]}" -eq 1 + test -f "${pathfinder_wheels[0]}" + pathfinder_uri="file://$(realpath "${pathfinder_wheels[0]}")" + printf 'cuda-pathfinder @ %s\n' "${pathfinder_uri}" > wheel-constraints/cuda-bindings.txt + elif [[ "${PATHFINDER_SOURCE}" == published ]]; then + : > wheel-constraints/cuda-bindings.txt + else + echo "Error: PATHFINDER_SOURCE must be artifact or published" >&2 + exit 1 + fi # Cython packages need CTK + sccache (local disk cache only in this job). - name: Install rapidsai/sccache @@ -139,7 +142,7 @@ jobs: - name: Constrain cuda.core to the local cuda.bindings wheel if: ${{ env.BUILD_CORE == 'true' }} run: | - CUDA_MAJOR="$(echo '${{ fromJSON(inputs.bindings-package).toolkit_version }}' | cut -d. -f1)" + CUDA_MAJOR="${CUDA_PYTHON_BUILD_MAJOR}" pathfinder_wheels=(cuda_pathfinder/dist/cuda_pathfinder-*.whl) bindings_wheels=("${BINDINGS_ROOT}"/dist/cuda_bindings-"${CUDA_MAJOR}".*.whl) test "${#pathfinder_wheels[@]}" -eq 1 @@ -161,7 +164,7 @@ jobs: if: ${{ env.BUILD_CORE == 'true' }} run: | export CUDA_PYTHON_PARALLEL_LEVEL=$(nproc) - export CUDA_CORE_BUILD_MAJOR="$(echo '${{ fromJSON(inputs.bindings-package).toolkit_version }}' | cut -d. -f1)" + export CUDA_CORE_BUILD_MAJOR="${CUDA_PYTHON_BUILD_MAJOR}" export CC="sccache cc" export CXX="sccache c++" export PIP_BUILD_CONSTRAINT="$(pwd)/wheel-constraints/cuda-core.txt" diff --git a/.github/workflows/test-sdist-windows.yml b/.github/workflows/test-sdist-windows.yml index 4677f0b40a4e..91a3598eeb92 100644 --- a/.github/workflows/test-sdist-windows.yml +++ b/.github/workflows/test-sdist-windows.yml @@ -15,14 +15,9 @@ on: required: true type: string bindings-package: - description: Normalized bindings root and toolkit for this sdist build. + description: Selected package metadata and build decisions for this sdist job. required: true type: string - workplan: - description: JSON workplan. An empty value builds everything. - required: false - default: "" - type: string defaults: run: @@ -35,14 +30,14 @@ permissions: jobs: test-sdist: name: Test sdist builds - if: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).jobs.sdist_tests }} env: BINDINGS_ROOT: ${{ fromJSON(inputs.bindings-package).package_root }} CUDA_PYTHON_BUILD_MAJOR: ${{ fromJSON(inputs.bindings-package).cuda_major }} - BUILD_PATHFINDER: ${{ fromJSON(inputs.bindings-package).release_status == 'current' && (inputs.workplan == '' || fromJSON(inputs.workplan).modules.pathfinder.needs_build) }} - BUILD_BINDINGS: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.bindings.needs_build }} - BUILD_CORE: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.core.needs_build }} - BUILD_PYTHON: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.python.needs_build }} + BUILD_PATHFINDER: ${{ fromJSON(inputs.bindings-package).build_pathfinder }} + BUILD_BINDINGS: ${{ fromJSON(inputs.bindings-package).build_bindings }} + BUILD_CORE: ${{ fromJSON(inputs.bindings-package).build_core }} + BUILD_PYTHON: ${{ fromJSON(inputs.bindings-package).build_python }} + PATHFINDER_SOURCE: ${{ fromJSON(inputs.bindings-package).pathfinder_source }} timeout-minutes: 60 runs-on: windows-2022 steps: @@ -93,7 +88,8 @@ jobs: pip wheel --no-deps --wheel-dir cuda_python/dist cuda_python/dist/*.tar.gz - name: Download cuda.pathfinder wheel - if: ${{ env.BUILD_PATHFINDER != 'true' && (env.BUILD_BINDINGS == 'true' || env.BUILD_CORE == 'true') }} + if: ${{ env.BUILD_PATHFINDER != 'true' && (env.BUILD_BINDINGS == 'true' || env.BUILD_CORE == 'true') && + env.PATHFINDER_SOURCE == 'artifact' }} uses: ./.github/actions/download-artifact-retry with: name: cuda-pathfinder-wheel @@ -102,12 +98,19 @@ jobs: - name: Constrain builds to the local cuda.pathfinder wheel if: ${{ env.BUILD_BINDINGS == 'true' }} run: | - pathfinder_wheels=(cuda_pathfinder/dist/cuda_pathfinder-*.whl) - test "${#pathfinder_wheels[@]}" -eq 1 - test -f "${pathfinder_wheels[0]}" mkdir -p wheel-constraints - pathfinder_uri="file:///$(cygpath -am "${pathfinder_wheels[0]}")" - printf 'cuda-pathfinder @ %s\n' "${pathfinder_uri}" | tee wheel-constraints/cuda-bindings.txt + if [[ "${PATHFINDER_SOURCE}" == artifact ]]; then + pathfinder_wheels=(cuda_pathfinder/dist/cuda_pathfinder-*.whl) + test "${#pathfinder_wheels[@]}" -eq 1 + test -f "${pathfinder_wheels[0]}" + pathfinder_uri="file:///$(cygpath -am "${pathfinder_wheels[0]}")" + printf 'cuda-pathfinder @ %s\n' "${pathfinder_uri}" > wheel-constraints/cuda-bindings.txt + elif [[ "${PATHFINDER_SOURCE}" == published ]]; then + : > wheel-constraints/cuda-bindings.txt + else + echo "Error: PATHFINDER_SOURCE must be artifact or published" >&2 + exit 1 + fi # Cython packages need CTK. No sccache on Windows (this is a correctness # smoke test, not a production build; see build-wheel.yml which also @@ -143,7 +146,7 @@ jobs: - name: Constrain cuda.core to the local cuda.bindings wheel if: ${{ env.BUILD_CORE == 'true' }} run: | - CUDA_MAJOR="$(echo '${{ fromJSON(inputs.bindings-package).toolkit_version }}' | cut -d. -f1)" + CUDA_MAJOR="${CUDA_PYTHON_BUILD_MAJOR}" pathfinder_wheels=(cuda_pathfinder/dist/cuda_pathfinder-*.whl) bindings_wheels=("${BINDINGS_ROOT}"/dist/cuda_bindings-"${CUDA_MAJOR}".*.whl) test "${#pathfinder_wheels[@]}" -eq 1 @@ -165,7 +168,7 @@ jobs: if: ${{ env.BUILD_CORE == 'true' }} run: | export CUDA_PYTHON_PARALLEL_LEVEL=$(nproc) - export CUDA_CORE_BUILD_MAJOR="$(echo '${{ fromJSON(inputs.bindings-package).toolkit_version }}' | cut -d. -f1)" + export CUDA_CORE_BUILD_MAJOR="${CUDA_PYTHON_BUILD_MAJOR}" export PIP_BUILD_CONSTRAINT="$(cygpath -w "$(pwd)/wheel-constraints/cuda-core.txt")" export PIP_CONSTRAINT="${PIP_BUILD_CONSTRAINT}" python -m build --sdist cuda_core/ diff --git a/.github/workflows/test-wheel-linux.yml b/.github/workflows/test-wheel-linux.yml index 84642819ef15..de14bf6e106b 100644 --- a/.github/workflows/test-wheel-linux.yml +++ b/.github/workflows/test-wheel-linux.yml @@ -14,10 +14,11 @@ on: type: string required: true build-ctk-ver: + description: Build toolkit for the LEGACY_CONFIG snapshot route. type: string - required: true + default: '' bindings-config: - description: Normalized bindings registry; empty retains legacy artifact sources. + description: Normalized registry JSON, or LEGACY_CONFIG for an older source snapshot. type: string default: '' matrix_filter: @@ -58,8 +59,10 @@ jobs: compute-matrix: runs-on: ubuntu-latest env: - BUILD_TYPE: ${{ inputs.build-type }} BINDINGS_CONFIG: ${{ inputs.bindings-config }} + BUILD_TYPE: ${{ inputs.build-type }} + WORKPLAN: ${{ inputs.workplan }} + TEST_MODE: ${{ inputs.test-mode }} ARCH: ${{ (inputs.host-platform == 'linux-64' && 'amd64') || (inputs.host-platform == 'linux-aarch64' && 'arm64') }} outputs: @@ -68,6 +71,16 @@ jobs: steps: - name: Checkout ${{ github.event.repository.name }} uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: ${{ inputs.sha || github.sha }} + + - name: Checkout CI tools (workflow revision) + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: ${{ github.sha }} + path: .ci-control + sparse-checkout: ci/tools + persist-credentials: false - name: Validate Test Type run: | @@ -88,42 +101,32 @@ jobs: # Read base matrix from YAML file for the specific architecture TEST_MATRIX=$(yq -o json ".linux[\"${MATRIX_TYPE}\"] | map(select(.ARCH == \"${ARCH}\"))" ci/test-matrix.yml) - if [[ -n "$BINDINGS_CONFIG" ]]; then - TEST_MATRIX=$(jq -c --argjson config "$BINDINGS_CONFIG" ' - ($config.package_roots | map({key: .ctk_target, value: .}) | from_entries) as $packages - | map(($packages[(.CUDA_VER | split(".")[:2] | join("."))]) as $package - | . + { - BINDINGS_ROOT: ($package.package_root // "cuda_bindings_13"), - BINDINGS_BUILD_VERSION: ($package.toolkit_version // ""), - BINDINGS_SOURCE: (if $package == null then "floor" else "main" end), - BINDINGS_ARTIFACT_PREFIX: "cuda-bindings", - CORE_CYTHON_SUFFIX: (if $package.release_status == "maintenance" then "-cu\($package.cuda_major)-tests" else "-tests" end), - PYTHON_ARTIFACT_NAME: (if $package == null then "" else "cuda-python-wheel-cuda\($package.toolkit_version)" end) - }) - ' <<< "$TEST_MATRIX") - fi + # Apply the caller's free-form jq filter before shared Python selection. + MATRIX=$(jq -c '${{ inputs.matrix_filter }}' <<< "$TEST_MATRIX" \ + | python3 .ci-control/ci/tools/select_test_matrix.py --platform linux) - # Apply matrix filter; reject custom DRIVER + FLAVOR=wsl (the - # in-container driver swap doesn't work under WSL); add a - # RUNNER_DRIVER field that maps any custom version back to - # 'latest' (the install script swaps the driver itself, so we - # need to land on the runner that ships with the most recent - # pre-installed driver); wrap in include structure. - MATRIX=$(echo "$TEST_MATRIX" | jq -c '${{ inputs.matrix_filter }} | if any(.[]; .DRIVER != "latest" and .DRIVER != "earliest" and .FLAVOR == "wsl") then "Error: custom DRIVER is not supported with FLAVOR=wsl\n" | halt_error(1) else . end | map(. + {RUNNER_DRIVER: (if .DRIVER == "latest" or .DRIVER == "earliest" then .DRIVER else "latest" end)}) | if (. | length) > 0 then {include: .} else "Error: Empty matrix\n" | halt_error(1) end') + if [[ "$BINDINGS_CONFIG" == "LEGACY_CONFIG" ]]; then + OLD_BRANCH=$(yq -r '.backport_branch' ci/versions.yml) + echo "OLD_BRANCH=${OLD_BRANCH}" >> "$GITHUB_OUTPUT" + else + { + echo '### Selected wheel test coverage' + echo '| Suites | Python | CTK | Toolkit source | Bindings source | GPU |' + echo '| --- | --- | --- | --- | --- | --- |' + jq -r '.include[] | "| \(.SUITES) | \(.PY_VER) | \(.CUDA_VER) | \(if .LOCAL_CTK == "1" then "local CTK" else "wheels" end) | \(if .BINDINGS_SOURCE == "local" then .BINDINGS_SOURCE_DIR else "published floor" end) | \(.GPU) |"' <<< "$MATRIX" + } >> "$GITHUB_STEP_SUMMARY" + fi echo "MATRIX=${MATRIX}" | tee --append "${GITHUB_OUTPUT}" - # This job has yq already installed, so let's do it here - OLD_BRANCH=$(yq '.backport_branch' ci/versions.yml) - echo "OLD_BRANCH=${OLD_BRANCH}" >> "$GITHUB_OUTPUT" - test: env: - TEST_PATHFINDER: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.pathfinder.needs_test }} - TEST_BINDINGS: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.bindings.needs_test }} - TEST_CORE: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.core.needs_test }} - TEST_PYTHON: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.python.needs_test }} - name: Python ${{ matrix.PY_VER }}, CUDA ${{ matrix.CUDA_VER }} (${{ (matrix.LOCAL_CTK == '1' && 'local') || 'wheels' }}), GPU ${{ matrix.GPU }}${{ matrix.GPU_COUNT != '1' && format(' (x{0})', matrix.GPU_COUNT) || '' }}${{ matrix.FLAVOR && format(', {0}', matrix.FLAVOR) || '' }}${{ matrix.ENV.TORCH_VER && format(', {0}+{1}', matrix.ENV.TORCH_VER, matrix.ENV.TORCH_CUDA) || '' }}${{ matrix.ENV.MODE == 'nightly-numba-cuda' && ', latest' || '' }} + BINDINGS_CONFIG: ${{ inputs.bindings-config }} + TEST_PATHFINDER: ${{ matrix.TEST_PATHFINDER }} + TEST_BINDINGS: ${{ matrix.TEST_BINDINGS }} + TEST_CORE: ${{ matrix.TEST_CORE }} + TEST_PYTHON: ${{ matrix.TEST_PYTHON }} + name: ${{ matrix.SUITES || inputs.test-mode }} / py${{ matrix.PY_VER }}, CTK${{ matrix.CUDA_VER }} (${{ (matrix.LOCAL_CTK == '1' && 'local CTK') || 'wheels' }}; bindings ${{ matrix.BINDINGS_SOURCE == 'local' && 'PR' || 'floor' }}), GPU ${{ matrix.GPU }}${{ matrix.GPU_COUNT != '1' && format(' (x{0})', matrix.GPU_COUNT) || '' }}${{ matrix.FLAVOR && format(', {0}', matrix.FLAVOR) || '' }}${{ matrix.ENV.TORCH_VER && format(', {0}+{1}', matrix.ENV.TORCH_VER, matrix.ENV.TORCH_CUDA) || '' }}${{ matrix.ENV.MODE == 'nightly-numba-cuda' && ', latest' || '' }} timeout-minutes: 60 needs: compute-matrix strategy: @@ -151,18 +154,26 @@ jobs: # reuse wheels built from an older commit of main). ref: ${{ inputs.sha || github.sha }} + - name: Checkout CI tools (workflow revision) + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: ${{ github.sha }} + path: .ci-control + sparse-checkout: ci/tools + persist-credentials: false + - name: Setup proxy cache uses: nv-gha-runners/setup-proxy-cache@main continue-on-error: true - name: Install dependencies - uses: ./.github/actions/install_unix_deps + uses: $/.github/actions/install_unix_deps continue-on-error: false with: # for artifact fetching, graphics libs, g++ required for cffi in # example; util-linux for `nsenter` (custom-DRIVER rows re-exec # install_gpu_driver.sh onto the host through nsenter) - # yq: ci/tools/env-vars reads ci/versions.yml with it + # yq supports retained legacy-snapshot routing in ci/tools/ci_env.py dependencies: "jq wget libgl1 libegl1 g++ util-linux yq" dependent_exes: "jq wget yq" @@ -171,41 +182,39 @@ jobs: apt-get update apt-get install --only-upgrade -y ca-certificates - - name: Checkout driver install scripts (workflow revision) - if: ${{ matrix.DRIVER != 'latest' && matrix.DRIVER != 'earliest' }} - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - ref: ${{ github.sha }} - path: .driver-tools - sparse-checkout: ci/tools - persist-credentials: false - - name: Install GPU driver if: ${{ matrix.DRIVER != 'latest' && matrix.DRIVER != 'earliest' }} env: DRIVER: ${{ matrix.DRIVER }} DRIVER_SHA256: ${{ matrix.DRIVER_SHA256 }} GPU_TYPE: ${{ matrix.GPU }} - run: ./.driver-tools/ci/tools/install_gpu_driver.sh + run: ./.ci-control/ci/tools/install_gpu_driver.sh - name: Ensure GPU is working run: nvidia-smi + - name: Set up Python ${{ matrix.PY_VER }} + # $/ resolves at the workflow's commit. ./ would resolve against the + # inputs.sha checkout, which can predate this action. + uses: $/.github/actions/setup-hardened-python + with: + python-version: ${{ matrix.PY_VER }} + - name: Set environment variables env: BUILD_CUDA_VER: ${{ matrix.BINDINGS_BUILD_VERSION || inputs.build-ctk-ver }} - CUDA_BINDINGS_ROOT: ${{ matrix.BINDINGS_ROOT || 'cuda_bindings_13' }} - BINDINGS_SOURCE: ${{ matrix.BINDINGS_SOURCE || '' }} - BINDINGS_ARTIFACT_PREFIX: ${{ matrix.BINDINGS_ARTIFACT_PREFIX || 'cuda-bindings' }} - CORE_CYTHON_SUFFIX: ${{ matrix.CORE_CYTHON_SUFFIX || '-tests' }} - CUDA_PYTHON_ARTIFACT_NAME: ${{ matrix.PYTHON_ARTIFACT_NAME || 'cuda-python-wheel' }} + CURRENT_BUILD_CUDA_VER: ${{ matrix.CURRENT_BUILD_CUDA_VER }} + BINDINGS_SOURCE: ${{ matrix.BINDINGS_SOURCE }} + BINDINGS_SOURCE_DIR: ${{ matrix.BINDINGS_SOURCE_DIR }} + DEFAULT_BINDINGS_SOURCE_DIR: ${{ matrix.DEFAULT_BINDINGS_SOURCE_DIR }} CUDA_VER: ${{ matrix.CUDA_VER }} HOST_PLATFORM: ${{ inputs.host-platform }} LOCAL_CTK: ${{ matrix.LOCAL_CTK }} + PATHFINDER_SOURCE: ${{ matrix.PATHFINDER_SOURCE || 'artifact' }} PY_VER: ${{ matrix.PY_VER }} SHA: ${{ inputs.sha || github.sha }} SKIP_BINDINGS_TEST_OVERRIDE: ${{ env.TEST_BINDINGS != 'true' && '1' || '0' }} - run: ./ci/tools/env-vars test + run: python .ci-control/ci/tools/ci_env.py test - name: Apply extra matrix environment variables if: ${{ matrix.ENV }} @@ -214,7 +223,8 @@ jobs: run: echo "$MATRIX_ENV" | jq -r 'to_entries[] | "\(.key)=\(.value)"' >> "$GITHUB_ENV" - name: Download cuda-pathfinder build artifacts - if: ${{ env.TEST_PATHFINDER == 'true' || env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' || env.TEST_PYTHON == 'true' }} + if: ${{ (env.TEST_PATHFINDER == 'true' || env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' || env.TEST_PYTHON == 'true') && + env.PATHFINDER_SOURCE == 'artifact' }} uses: $/.github/actions/download-artifact-retry with: name: cuda-pathfinder-wheel @@ -223,17 +233,19 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Download cuda-python build artifacts - if: ${{ env.TEST_PYTHON == 'true' && env.BINDINGS_SOURCE == 'main' }} + if: ${{ env.TEST_PYTHON == 'true' && (env.BINDINGS_SOURCE == 'local' || env.BINDINGS_SOURCE == 'main') }} uses: $/.github/actions/download-artifact-retry with: - name: ${{ env.CUDA_PYTHON_ARTIFACT_NAME || 'cuda-python-wheel' }} + name: ${{ env.CUDA_PYTHON_ARTIFACT_NAME }} path: . run-id: ${{ inputs.run-id || github.run_id }} github-token: ${{ secrets.GITHUB_TOKEN }} - name: Download cuda.bindings build artifacts if: ${{ (env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' || env.TEST_PYTHON == 'true') && - (env.BINDINGS_SOURCE == 'main' || (env.BINDINGS_SOURCE == 'floor' && env.TEST_CORE == 'true')) }} + (env.BINDINGS_SOURCE == 'local' || env.BINDINGS_SOURCE == 'main' || + (env.BINDINGS_SOURCE == 'floor' && env.TEST_CORE == 'true' && + env.TEST_CUDA_MAJOR == env.BUILD_CUDA_MAJOR)) }} uses: $/.github/actions/download-artifact-retry with: name: ${{ env.CUDA_BINDINGS_ARTIFACT_NAME }} @@ -254,8 +266,8 @@ jobs: env.BINDINGS_SOURCE == 'backport' }} env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OLD_BRANCH: ${{ needs.compute-matrix.outputs.OLD_BRANCH }} run: | - OLD_BRANCH=${{ needs.compute-matrix.outputs.OLD_BRANCH }} OLD_ARTIFACT_PATTERN="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda*-${{ inputs.host-platform }}-*[0-9a-f]" LOOKUP_ARGS=( --branch "${OLD_BRANCH}" @@ -264,7 +276,7 @@ jobs: if ${{ env.TEST_PYTHON == 'true' }}; then LOOKUP_ARGS+=(--artifact cuda-python-wheel) fi - LATEST_PRIOR_RUN_ID=$(./ci/tools/lookup-run-id \ + LATEST_PRIOR_RUN_ID=$(./.ci-control/ci/tools/lookup-run-id \ "${LOOKUP_ARGS[@]}" NVIDIA/cuda-python "CI") echo "run-id=${LATEST_PRIOR_RUN_ID}" >> "${GITHUB_OUTPUT}" echo "artifact-pattern=${OLD_ARTIFACT_PATTERN}" >> "${GITHUB_OUTPUT}" @@ -301,14 +313,14 @@ jobs: ls -al "${CUDA_BINDINGS_ARTIFACTS_DIR}" - name: Display structure of downloaded cuda-python artifacts - if: ${{ env.TEST_PYTHON == 'true' && env.BINDINGS_SOURCE != 'floor' }} + if: ${{ env.TEST_PYTHON == 'true' && (env.BINDINGS_SOURCE == 'local' || env.BINDINGS_SOURCE == 'main') }} run: | pwd ls -lah cuda_python*.whl cuda_pathfinder/ - name: Display structure of downloaded cuda.bindings artifacts if: ${{ (env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' || env.TEST_PYTHON == 'true') && - env.BINDINGS_SOURCE != 'floor' }} + (env.BINDINGS_SOURCE == 'local' || env.BINDINGS_SOURCE == 'main') }} run: | pwd ls -lahR $CUDA_BINDINGS_ARTIFACTS_DIR @@ -347,7 +359,7 @@ jobs: if: ${{ env.TEST_CORE == 'true' && env.SKIP_CYTHON_TEST == '0' }} uses: $/.github/actions/download-artifact-retry with: - name: ${{ env.CUDA_CORE_CYTHON_TEST_ARTIFACT_NAME || format('{0}-tests', env.CUDA_CORE_ARTIFACT_NAME) }} + name: ${{ env.CUDA_CORE_CYTHON_TEST_ARTIFACT_NAME }} path: ${{ env.CUDA_CORE_CYTHON_TESTS_DIR }} run-id: ${{ inputs.run-id || github.run_id }} github-token: ${{ secrets.GITHUB_TOKEN }} @@ -373,18 +385,12 @@ jobs: pwd ls -lahR $CUDA_CORE_TEST_BINARIES_DIR - - name: Set up Python ${{ matrix.PY_VER }} - # $/ resolves at the workflow's commit. ./ would resolve against the - # inputs.sha checkout, which can predate this action. - uses: $/.github/actions/setup-hardened-python - with: - python-version: ${{ matrix.PY_VER }} - - name: Set up mini CTK if: ${{ matrix.LOCAL_CTK == '1' }} - uses: ./.github/actions/fetch_ctk + uses: $/.github/actions/fetch_ctk continue-on-error: false with: + redistrib-tool: .ci-control/ci/tools/fetch_ctk_redistrib.py host-platform: ${{ inputs.host-platform }} cuda-version: ${{ matrix.CUDA_VER }} @@ -395,6 +401,7 @@ jobs: uses: $/.github/actions/fetch_ctk continue-on-error: false with: + redistrib-tool: .ci-control/ci/tools/fetch_ctk_redistrib.py host-platform: ${{ inputs.host-platform }} cuda-version: ${{ matrix.CUDA_VER }} cuda-components: "cuda_gdb" @@ -402,13 +409,14 @@ jobs: - name: Set up cuda_sanitizer_api if: ${{ (env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true') && env.SETUP_SANITIZER == '1' }} - uses: ./.github/actions/fetch_ctk + uses: $/.github/actions/fetch_ctk continue-on-error: false with: + redistrib-tool: .ci-control/ci/tools/fetch_ctk_redistrib.py host-platform: ${{ inputs.host-platform }} # The build CTK's sanitizer, not the matrix CTK's: older sanitizers # crash on the cuda.core tests, and newer ones carry the fixes. - cuda-version: ${{ inputs.build-ctk-ver }} + cuda-version: ${{ env.CURRENT_BUILD_CUDA_VER }} cuda-components: "cuda_sanitizer_api" install-mode: add @@ -462,22 +470,25 @@ jobs: run: run-tests core - name: Ensure cuda-python installable - if: ${{ inputs.test-mode == 'standard' && env.TEST_PYTHON == 'true' && env.BINDINGS_SOURCE == 'main' }} + if: ${{ inputs.test-mode == 'standard' && env.TEST_PYTHON == 'true' && env.BINDINGS_SOURCE != 'floor' }} + env: + LOCAL_CTK: ${{ matrix.LOCAL_CTK }} + shell: bash --noprofile --norc -xeuo pipefail {0} run: | - # Package suites install their own dependencies. A metapackage-only - # run has no preceding suite, so install the exact local internal - # wheels in one transaction while resolving released dependencies - # such as cuda-core from the package index. - if ${{ env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' }}; then + # Metapackages for CUDA 13 and later also require Core. A bindings-only release + # must resolve published Core while preserving the selected wheels. + if [[ "$TEST_CORE" == true || ("$TEST_BINDINGS" == true && "$TEST_CUDA_MAJOR" == 12) ]]; then dependency_args=(--no-deps) else - dependency_args=( - ./cuda_pathfinder/cuda_pathfinder-*.whl - "${CUDA_BINDINGS_ARTIFACTS_DIR}"/cuda_bindings-*.whl - ) + dependency_args=("${CUDA_BINDINGS_ARTIFACTS_DIR}"/cuda_bindings-*.whl) + if [[ "$PATHFINDER_SOURCE" == artifact ]]; then + dependency_args+=(./cuda_pathfinder/cuda_pathfinder-*.whl) + else + dependency_args+=("$(python -c 'from importlib.metadata import version; print("cuda-pathfinder==" + version("cuda-pathfinder"))')") + fi fi python_requirements=(cuda_python*.whl) - if [[ "${{ matrix.LOCAL_CTK }}" != 1 ]]; then + if [[ "$LOCAL_CTK" != 1 ]]; then python_requirements=("${python_requirements[@]/%/[all]}") fi pip install --only-binary=:all: "${dependency_args[@]}" "${python_requirements[@]}" @@ -533,7 +544,7 @@ jobs: if: ${{ inputs.test-mode == 'nightly-pytorch' }} run: | pushd cuda_core - pytest -rsxXfE -v --exclude-warning-annotations --junitxml "${GITHUB_WORKSPACE}/test-results/junit-pytorch-interop.xml" tests/test_utils.py tests/example_tests/ | python "${GITHUB_WORKSPACE}/ci/tools/fold_pytest_sections.py" + pytest -rsxXfE -v --exclude-warning-annotations --junitxml "${GITHUB_WORKSPACE}/test-results/junit-pytorch-interop.xml" tests/test_utils.py tests/example_tests/ | python "${GITHUB_WORKSPACE}/.ci-control/ci/tools/fold_pytest_sections.py" popd - name: Checkout numba-cuda tests at matching tag @@ -595,7 +606,7 @@ jobs: --ignore=tests/benchmarks \ --ignore=tests/doc_examples \ --deselect 'tests/numba_cuda_tests/cudadrv/test_cuda_devicerecord.py::TestCudaDeviceRecordWithRecord::test_device_record_copy' \ - tests/ | python "${GITHUB_WORKSPACE}/ci/tools/fold_pytest_sections.py" + tests/ | python "${GITHUB_WORKSPACE}/.ci-control/ci/tools/fold_pytest_sections.py" popd - name: Checkout released cuda-core tests at matching tag @@ -636,7 +647,7 @@ jobs: pytest -rsxXfE -v --randomly-dont-reorganize \ --junitxml "${GITHUB_WORKSPACE}/test-results/junit-cuda-core-released.xml" \ "${DESELECTS[@]}" \ - tests/ | python "${GITHUB_WORKSPACE}/ci/tools/fold_pytest_sections.py" + tests/ | python "${GITHUB_WORKSPACE}/.ci-control/ci/tools/fold_pytest_sections.py" popd - name: Upload test results diff --git a/.github/workflows/test-wheel-windows.yml b/.github/workflows/test-wheel-windows.yml index e8cbd1721a8c..9ce56a2aceec 100644 --- a/.github/workflows/test-wheel-windows.yml +++ b/.github/workflows/test-wheel-windows.yml @@ -14,10 +14,11 @@ on: type: string required: true build-ctk-ver: + description: Build toolkit for the LEGACY_CONFIG snapshot route. type: string - required: true + default: '' bindings-config: - description: Normalized bindings registry; empty retains legacy artifact sources. + description: Normalized registry JSON, or LEGACY_CONFIG for an older source snapshot. type: string default: '' matrix_filter: @@ -57,14 +58,27 @@ jobs: run: shell: bash --noprofile --norc -xeuo pipefail {0} env: - BUILD_TYPE: ${{ inputs.build-type }} BINDINGS_CONFIG: ${{ inputs.bindings-config }} + BUILD_TYPE: ${{ inputs.build-type }} + WORKPLAN: ${{ inputs.workplan }} + TEST_MODE: ${{ inputs.test-mode }} ARCH: ${{ (inputs.host-platform == 'win-64' && 'amd64') }} outputs: MATRIX: ${{ steps.compute-matrix.outputs.MATRIX }} + OLD_BRANCH: ${{ steps.compute-matrix.outputs.OLD_BRANCH }} steps: - name: Checkout ${{ github.event.repository.name }} uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: ${{ inputs.sha || github.sha }} + + - name: Checkout CI tools (workflow revision) + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: ${{ github.sha }} + path: .ci-control + sparse-checkout: ci/tools + persist-credentials: false - name: Validate Test Type run: | @@ -84,36 +98,32 @@ jobs: # Read base matrix from YAML file for the specific architecture TEST_MATRIX=$(yq -o json ".windows[\"${MATRIX_TYPE}\"] | map(select(.ARCH == \"${ARCH}\"))" ci/test-matrix.yml) - if [[ -n "$BINDINGS_CONFIG" ]]; then - TEST_MATRIX=$(jq -c --argjson config "$BINDINGS_CONFIG" ' - ($config.package_roots | map({key: .ctk_target, value: .}) | from_entries) as $packages - | map(($packages[(.CUDA_VER | split(".")[:2] | join("."))]) as $package - | . + { - BINDINGS_ROOT: ($package.package_root // "cuda_bindings_13"), - BINDINGS_BUILD_VERSION: ($package.toolkit_version // ""), - BINDINGS_SOURCE: (if $package == null then "floor" else "main" end), - BINDINGS_ARTIFACT_PREFIX: "cuda-bindings", - CORE_CYTHON_SUFFIX: (if $package.release_status == "maintenance" then "-cu\($package.cuda_major)-tests" else "-tests" end), - PYTHON_ARTIFACT_NAME: (if $package == null then "" else "cuda-python-wheel-cuda\($package.toolkit_version)" end) - }) - ' <<< "$TEST_MATRIX") + # Apply the caller's free-form jq filter before shared Python selection. + MATRIX=$(jq -c '${{ inputs.matrix_filter }}' <<< "$TEST_MATRIX" \ + | python3 .ci-control/ci/tools/select_test_matrix.py --platform windows) + + if [[ "$BINDINGS_CONFIG" == "LEGACY_CONFIG" ]]; then + OLD_BRANCH=$(yq -r '.backport_branch' ci/versions.yml) + echo "OLD_BRANCH=${OLD_BRANCH}" >> "$GITHUB_OUTPUT" + else + { + echo '### Selected wheel test coverage' + echo '| Suites | Python | CTK | Toolkit source | Bindings source | GPU |' + echo '| --- | --- | --- | --- | --- | --- |' + jq -r '.include[] | "| \(.SUITES) | \(.PY_VER) | \(.CUDA_VER) | \(if .LOCAL_CTK == "1" then "local CTK" else "wheels" end) | \(if .BINDINGS_SOURCE == "local" then .BINDINGS_SOURCE_DIR else "published floor" end) | \(.GPU) |"' <<< "$MATRIX" + } >> "$GITHUB_STEP_SUMMARY" fi - # Apply matrix filter; add a RUNNER_DRIVER field that maps any - # custom DRIVER version back to 'latest' (install_gpu_driver.ps1 - # swaps the driver itself, so the runner must be the one that - # ships the most recent pre-installed driver); wrap in include. - MATRIX=$(echo "$TEST_MATRIX" | jq -c '${{ inputs.matrix_filter }} | map(. + {RUNNER_DRIVER: (if .DRIVER == "latest" or .DRIVER == "earliest" then .DRIVER else "latest" end)}) | if (. | length) > 0 then {include: .} else "Error: Empty matrix\n" | halt_error(1) end') - echo "MATRIX=${MATRIX}" | tee --append "${GITHUB_OUTPUT}" test: env: - TEST_PATHFINDER: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.pathfinder.needs_test }} - TEST_BINDINGS: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.bindings.needs_test }} - TEST_CORE: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.core.needs_test }} - TEST_PYTHON: ${{ inputs.workplan == '' || fromJSON(inputs.workplan).modules.python.needs_test }} - name: Python ${{ matrix.PY_VER }}, CUDA ${{ matrix.CUDA_VER }} (${{ (matrix.LOCAL_CTK == '1' && 'local') || 'wheels' }}), GPU ${{ matrix.GPU }}${{ matrix.GPU_COUNT != '1' && format(' (x{0})', matrix.GPU_COUNT) || '' }} (${{ matrix.DRIVER_MODE }})${{ matrix.ENV.TORCH_VER && format(', {0}+{1}', matrix.ENV.TORCH_VER, matrix.ENV.TORCH_CUDA) || '' }}${{ matrix.ENV.MODE == 'nightly-numba-cuda' && ', latest' || '' }} + BINDINGS_CONFIG: ${{ inputs.bindings-config }} + TEST_PATHFINDER: ${{ matrix.TEST_PATHFINDER }} + TEST_BINDINGS: ${{ matrix.TEST_BINDINGS }} + TEST_CORE: ${{ matrix.TEST_CORE }} + TEST_PYTHON: ${{ matrix.TEST_PYTHON }} + name: ${{ matrix.SUITES || inputs.test-mode }} / py${{ matrix.PY_VER }}, CTK${{ matrix.CUDA_VER }} (${{ (matrix.LOCAL_CTK == '1' && 'local CTK') || 'wheels' }}; bindings ${{ matrix.BINDINGS_SOURCE == 'local' && 'PR' || 'floor' }}), GPU ${{ matrix.GPU }}${{ matrix.GPU_COUNT != '1' && format(' (x{0})', matrix.GPU_COUNT) || '' }} (${{ matrix.DRIVER_MODE }})${{ matrix.ENV.TORCH_VER && format(', {0}+{1}', matrix.ENV.TORCH_VER, matrix.ENV.TORCH_CUDA) || '' }}${{ matrix.ENV.MODE == 'nightly-numba-cuda' && ', latest' || '' }} timeout-minutes: 60 # The build stage could fail but we want the CI to keep moving. needs: compute-matrix @@ -133,21 +143,20 @@ jobs: # reuse wheels built from an older commit of main). ref: ${{ inputs.sha || github.sha }} - - name: Setup proxy cache - uses: nv-gha-runners/setup-proxy-cache@main - continue-on-error: true - with: - enable-apt: true - - - name: Checkout driver install scripts (workflow revision) - if: ${{ matrix.DRIVER != 'latest' && matrix.DRIVER != 'earliest' }} + - name: Checkout CI tools (workflow revision) uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: ${{ github.sha }} - path: .driver-tools + path: .ci-control sparse-checkout: ci/tools persist-credentials: false + - name: Setup proxy cache + uses: nv-gha-runners/setup-proxy-cache@main + continue-on-error: true + with: + enable-apt: true + - name: Install GPU driver if: ${{ matrix.DRIVER != 'latest' && matrix.DRIVER != 'earliest' }} env: @@ -155,13 +164,13 @@ jobs: DRIVER_SHA256: ${{ matrix.DRIVER_SHA256 }} GPU_TYPE: ${{ matrix.GPU }} run: | - .driver-tools/ci/tools/install_gpu_driver.ps1 + .ci-control/ci/tools/install_gpu_driver.ps1 - name: Configure driver mode env: DRIVER_MODE: ${{ matrix.DRIVER_MODE }} run: | - ci/tools/configure_driver_mode.ps1 + .ci-control/ci/tools/configure_driver_mode.ps1 - name: Ensure GPU is working run: | @@ -175,22 +184,29 @@ jobs: } Write-Output "Driver mode verified: ${{ matrix.DRIVER_MODE }}" + - name: Set up Python ${{ matrix.PY_VER }} + # $/ resolves at the workflow's commit. ./ would resolve against the + # inputs.sha checkout, which can predate this action. + uses: $/.github/actions/setup-hardened-python + with: + python-version: ${{ matrix.PY_VER }} + - name: Set environment variables env: BUILD_CUDA_VER: ${{ matrix.BINDINGS_BUILD_VERSION || inputs.build-ctk-ver }} - CUDA_BINDINGS_ROOT: ${{ matrix.BINDINGS_ROOT || 'cuda_bindings_13' }} - BINDINGS_SOURCE: ${{ matrix.BINDINGS_SOURCE || '' }} - BINDINGS_ARTIFACT_PREFIX: ${{ matrix.BINDINGS_ARTIFACT_PREFIX || 'cuda-bindings' }} - CORE_CYTHON_SUFFIX: ${{ matrix.CORE_CYTHON_SUFFIX || '-tests' }} - CUDA_PYTHON_ARTIFACT_NAME: ${{ matrix.PYTHON_ARTIFACT_NAME || 'cuda-python-wheel' }} + CURRENT_BUILD_CUDA_VER: ${{ matrix.CURRENT_BUILD_CUDA_VER }} + BINDINGS_SOURCE: ${{ matrix.BINDINGS_SOURCE }} + BINDINGS_SOURCE_DIR: ${{ matrix.BINDINGS_SOURCE_DIR }} + DEFAULT_BINDINGS_SOURCE_DIR: ${{ matrix.DEFAULT_BINDINGS_SOURCE_DIR }} CUDA_VER: ${{ matrix.CUDA_VER }} HOST_PLATFORM: ${{ inputs.host-platform }} LOCAL_CTK: ${{ matrix.LOCAL_CTK }} + PATHFINDER_SOURCE: ${{ matrix.PATHFINDER_SOURCE || 'artifact' }} PY_VER: ${{ matrix.PY_VER }} SHA: ${{ inputs.sha || github.sha }} SKIP_BINDINGS_TEST_OVERRIDE: ${{ env.TEST_BINDINGS != 'true' && '1' || '0' }} shell: bash --noprofile --norc -xeuo pipefail {0} - run: ./ci/tools/env-vars test + run: python .ci-control/ci/tools/ci_env.py test - name: Apply extra matrix environment variables if: ${{ matrix.ENV }} @@ -200,7 +216,8 @@ jobs: run: echo "$MATRIX_ENV" | jq -r 'to_entries[] | "\(.key)=\(.value)"' >> "$GITHUB_ENV" - name: Download cuda-pathfinder build artifacts - if: ${{ env.TEST_PATHFINDER == 'true' || env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' || env.TEST_PYTHON == 'true' }} + if: ${{ (env.TEST_PATHFINDER == 'true' || env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' || env.TEST_PYTHON == 'true') && + env.PATHFINDER_SOURCE == 'artifact' }} uses: $/.github/actions/download-artifact-retry with: name: cuda-pathfinder-wheel @@ -209,17 +226,19 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Download cuda-python build artifacts - if: ${{ env.TEST_PYTHON == 'true' && env.BINDINGS_SOURCE == 'main' }} + if: ${{ env.TEST_PYTHON == 'true' && (env.BINDINGS_SOURCE == 'local' || env.BINDINGS_SOURCE == 'main') }} uses: $/.github/actions/download-artifact-retry with: - name: ${{ env.CUDA_PYTHON_ARTIFACT_NAME || 'cuda-python-wheel' }} + name: ${{ env.CUDA_PYTHON_ARTIFACT_NAME }} path: . run-id: ${{ inputs.run-id || github.run_id }} github-token: ${{ secrets.GITHUB_TOKEN }} - name: Download cuda.bindings build artifacts if: ${{ (env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' || env.TEST_PYTHON == 'true') && - (env.BINDINGS_SOURCE == 'main' || (env.BINDINGS_SOURCE == 'floor' && env.TEST_CORE == 'true')) }} + (env.BINDINGS_SOURCE == 'local' || env.BINDINGS_SOURCE == 'main' || + (env.BINDINGS_SOURCE == 'floor' && env.TEST_CORE == 'true' && + env.TEST_CUDA_MAJOR == env.BUILD_CUDA_MAJOR)) }} uses: $/.github/actions/download-artifact-retry with: name: ${{ env.CUDA_BINDINGS_ARTIFACT_NAME }} @@ -233,9 +252,9 @@ jobs: env.BINDINGS_SOURCE == 'backport' }} env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OLD_BRANCH: ${{ needs.compute-matrix.outputs.OLD_BRANCH }} shell: bash --noprofile --norc -xeuo pipefail {0} run: | - OLD_BRANCH=$(yq '.backport_branch' ci/versions.yml) OLD_ARTIFACT_PATTERN="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda*-${{ inputs.host-platform }}-*[0-9a-f]" LOOKUP_ARGS=( --branch "${OLD_BRANCH}" @@ -244,7 +263,7 @@ jobs: if ${{ env.TEST_PYTHON == 'true' }}; then LOOKUP_ARGS+=(--artifact cuda-python-wheel) fi - LATEST_PRIOR_RUN_ID=$(./ci/tools/lookup-run-id \ + LATEST_PRIOR_RUN_ID=$(./.ci-control/ci/tools/lookup-run-id \ "${LOOKUP_ARGS[@]}" NVIDIA/cuda-python "CI") echo "run-id=${LATEST_PRIOR_RUN_ID}" >> "${GITHUB_OUTPUT}" echo "artifact-pattern=${OLD_ARTIFACT_PATTERN}" >> "${GITHUB_OUTPUT}" @@ -282,14 +301,14 @@ jobs: ls -al "${CUDA_BINDINGS_ARTIFACTS_DIR}" - name: Display structure of downloaded cuda-python artifacts - if: ${{ env.TEST_PYTHON == 'true' && env.BINDINGS_SOURCE != 'floor' }} + if: ${{ env.TEST_PYTHON == 'true' && (env.BINDINGS_SOURCE == 'local' || env.BINDINGS_SOURCE == 'main') }} run: | Get-Location Get-ChildItem cuda_python*.whl | Select-Object Mode, LastWriteTime, Length, FullName - name: Display structure of downloaded cuda.bindings artifacts if: ${{ (env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' || env.TEST_PYTHON == 'true') && - env.BINDINGS_SOURCE != 'floor' }} + (env.BINDINGS_SOURCE == 'local' || env.BINDINGS_SOURCE == 'main') }} run: | Get-Location Get-ChildItem -Recurse -Force $env:CUDA_BINDINGS_ARTIFACTS_DIR | Select-Object Mode, LastWriteTime, Length, FullName @@ -328,7 +347,7 @@ jobs: if: ${{ env.TEST_CORE == 'true' && env.SKIP_CYTHON_TEST == '0' }} uses: $/.github/actions/download-artifact-retry with: - name: ${{ env.CUDA_CORE_CYTHON_TEST_ARTIFACT_NAME || format('{0}-tests', env.CUDA_CORE_ARTIFACT_NAME) }} + name: ${{ env.CUDA_CORE_CYTHON_TEST_ARTIFACT_NAME }} path: ${{ env.CUDA_CORE_CYTHON_TESTS_DIR }} run-id: ${{ inputs.run-id || github.run_id }} github-token: ${{ secrets.GITHUB_TOKEN }} @@ -354,13 +373,6 @@ jobs: Get-Location Get-ChildItem -Recurse -Force $env:CUDA_CORE_TEST_BINARIES_DIR | Select-Object Mode, LastWriteTime, Length, FullName - - name: Set up Python ${{ matrix.PY_VER }} - # $/ resolves at the workflow's commit. ./ would resolve against the - # inputs.sha checkout, which can predate this action. - uses: $/.github/actions/setup-hardened-python - with: - python-version: ${{ matrix.PY_VER }} - - name: Verify LongPathsEnabled run: | $val = (Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled').LongPathsEnabled @@ -372,9 +384,10 @@ jobs: - name: Set up mini CTK if: ${{ matrix.LOCAL_CTK == '1' }} - uses: ./.github/actions/fetch_ctk + uses: $/.github/actions/fetch_ctk continue-on-error: false with: + redistrib-tool: .ci-control/ci/tools/fetch_ctk_redistrib.py host-platform: ${{ inputs.host-platform }} cuda-version: ${{ matrix.CUDA_VER }} @@ -416,25 +429,28 @@ jobs: run: run-tests core - name: Ensure cuda-python installable - if: ${{ inputs.test-mode == 'standard' && env.TEST_PYTHON == 'true' && env.BINDINGS_SOURCE == 'main' }} + if: ${{ inputs.test-mode == 'standard' && env.TEST_PYTHON == 'true' && env.BINDINGS_SOURCE != 'floor' }} + env: + LOCAL_CTK: ${{ matrix.LOCAL_CTK }} + shell: bash --noprofile --norc -xeuo pipefail {0} run: | - # Package suites install their own dependencies. A metapackage-only - # run has no preceding suite, so install the exact local internal - # wheels in one transaction while resolving released dependencies - # such as cuda-core from the package index. - if ('${{ env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' }}' -eq 'true') { - $dependencyArgs = @('--no-deps') - } else { - $dependencyArgs = @( - (Get-Item ./cuda_pathfinder/cuda_pathfinder-*.whl).FullName - (Get-Item "$env:CUDA_BINDINGS_ARTIFACTS_DIR/cuda_bindings-*.whl").FullName - ) - } - $pythonRequirements = @((Get-Item ./cuda_python*.whl).FullName) - if ('${{ matrix.LOCAL_CTK }}' -ne '1') { - $pythonRequirements = @($pythonRequirements | ForEach-Object { "$($_)[all]" }) - } - pip install --only-binary=:all: @dependencyArgs @pythonRequirements + # Metapackages for CUDA 13 and later also require Core. A bindings-only release + # must resolve published Core while preserving the selected wheels. + if [[ "$TEST_CORE" == true || ("$TEST_BINDINGS" == true && "$TEST_CUDA_MAJOR" == 12) ]]; then + dependency_args=(--no-deps) + else + dependency_args=("${CUDA_BINDINGS_ARTIFACTS_DIR}"/cuda_bindings-*.whl) + if [[ "$PATHFINDER_SOURCE" == artifact ]]; then + dependency_args+=(./cuda_pathfinder/cuda_pathfinder-*.whl) + else + dependency_args+=("$(python -c 'from importlib.metadata import version; print("cuda-pathfinder==" + version("cuda-pathfinder"))')") + fi + fi + python_requirements=(cuda_python*.whl) + if [[ "$LOCAL_CTK" != 1 ]]; then + python_requirements=("${python_requirements[@]/%/[all]}") + fi + pip install --only-binary=:all: "${dependency_args[@]}" "${python_requirements[@]}" - name: Install cuda.pathfinder extra wheels for testing if: ${{ inputs.test-mode == 'standard' && env.TEST_PATHFINDER == 'true' }} @@ -512,7 +528,7 @@ jobs: shell: bash --noprofile --norc -xeuo pipefail {0} run: | pushd cuda_core - pytest -rsxXfE -v --exclude-warning-annotations --junitxml "${GITHUB_WORKSPACE}/test-results/junit-pytorch-interop.xml" tests/test_utils.py tests/example_tests/ | python "${GITHUB_WORKSPACE}/ci/tools/fold_pytest_sections.py" + pytest -rsxXfE -v --exclude-warning-annotations --junitxml "${GITHUB_WORKSPACE}/test-results/junit-pytorch-interop.xml" tests/test_utils.py tests/example_tests/ | python "${GITHUB_WORKSPACE}/.ci-control/ci/tools/fold_pytest_sections.py" popd - name: Checkout numba-cuda tests at matching tag @@ -564,7 +580,7 @@ jobs: --ignore=tests/benchmarks \ --ignore=tests/doc_examples \ --deselect 'tests/numba_cuda_tests/cudadrv/test_cuda_devicerecord.py::TestCudaDeviceRecordWithRecord::test_device_record_copy' \ - tests/ | python "${GITHUB_WORKSPACE}/ci/tools/fold_pytest_sections.py" + tests/ | python "${GITHUB_WORKSPACE}/.ci-control/ci/tools/fold_pytest_sections.py" popd - name: Checkout released cuda-core tests at matching tag @@ -608,7 +624,7 @@ jobs: pytest -rsxXfE -v --randomly-dont-reorganize \ --junitxml "${GITHUB_WORKSPACE}/test-results/junit-cuda-core-released.xml" \ "${DESELECTS[@]}" \ - tests/ | python "${GITHUB_WORKSPACE}/ci/tools/fold_pytest_sections.py" + tests/ | python "${GITHUB_WORKSPACE}/.ci-control/ci/tools/fold_pytest_sections.py" popd - name: Upload test results diff --git a/ci/tools/bindings_config.py b/ci/tools/bindings_config.py index 8a0bb9be921a..d65283d1f144 100644 --- a/ci/tools/bindings_config.py +++ b/ci/tools/bindings_config.py @@ -83,6 +83,19 @@ def get_package(self, package_root: str) -> BindingsPackage: def package_for_release_status(self, release_status: str) -> BindingsPackage: return next(package for package in self.package_roots if package.release_status == release_status) + @property + def windows_arm64_single_cuda_major(self) -> bool: + return self.package_for_release_status("current").cuda_major == "13" + + def to_dict(self) -> dict[str, object]: + return { + "python": {"supported": list(self.python_supported)}, + "package_roots": [package.to_dict() for package in self.package_roots], + } + + def to_json(self) -> str: + return json.dumps(self.to_dict(), separators=(",", ":"), sort_keys=True) + def match_tag(self, tag: str) -> BindingsPackage | None: return next((package for package in self.package_roots if package.matches_tag(tag)), None) diff --git a/ci/tools/ci_artifacts.py b/ci/tools/ci_artifacts.py new file mode 100644 index 000000000000..81ff2369a81b --- /dev/null +++ b/ci/tools/ci_artifacts.py @@ -0,0 +1,65 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +"""Artifact names shared by wheel producers, consumers and baseline checks.""" + +from __future__ import annotations + +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from .bindings_config import BindingsConfig + + +def bindings_artifact(python_version: str, toolkit_version: str, host_platform: str, sha: str = "") -> str: + name = f"cuda-bindings-python{python_version.replace('.', '')}-cuda{toolkit_version}-{host_platform}" + return f"{name}-{sha}" if sha else name + + +def core_artifact(python_version: str, host_platform: str, sha: str = "") -> str: + name = f"cuda-core-python{python_version.replace('.', '')}-{host_platform}" + return f"{name}-{sha}" if sha else name + + +def python_artifact(toolkit_version: str | None = None) -> str: + return "cuda-python-wheel" if toolkit_version is None else f"cuda-python-wheel-cuda{toolkit_version}" + + +def expected_baseline_artifacts(config: BindingsConfig, platforms: list[str], sha: str) -> list[str]: + """Return the complete wheel set required before enabling artifact reuse.""" + from .bindings_config import wheel_python_versions + + current = config.package_for_release_status("current") + windows_arm64_versions = wheel_python_versions(current.toolkit_version, "win-arm64", config.python_supported) + platforms = [*platforms, *(["win-arm64"] if windows_arm64_versions else [])] + names = ["cuda-pathfinder-wheel", *(python_artifact(package.toolkit_version) for package in config.package_roots)] + for python_version in config.python_supported: + for platform in platforms: + if platform == "win-arm64" and python_version not in windows_arm64_versions: + continue + for package in config.package_roots: + if platform == "win-arm64" and config.windows_arm64_single_cuda_major and package != current: + continue + names.append(bindings_artifact(python_version, package.toolkit_version, platform, sha)) + names.append(core_artifact(python_version, platform, sha)) + return names + + +def main() -> None: + import argparse + from pathlib import Path + + import yaml + + from .bindings_config import load_config + + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--baseline-sha", required=True) + args = parser.parse_args() + matrix = Path(__file__).resolve().parents[2] / "ci" / "test-matrix.yml" + platforms = yaml.safe_load(matrix.read_text(encoding="utf-8"))["platforms"] + print("\n".join(expected_baseline_artifacts(load_config(), platforms, args.baseline_sha))) + + +if __name__ == "__main__": + main() diff --git a/ci/tools/ci_env.py b/ci/tools/ci_env.py new file mode 100644 index 000000000000..b501eb7d2a03 --- /dev/null +++ b/ci/tools/ci_env.py @@ -0,0 +1,164 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +"""Materialize build and test environments from CI decisions.""" + +from __future__ import annotations + +import argparse +import json +import os +import subprocess +from collections.abc import Mapping +from pathlib import Path + +if __package__: + from .ci_artifacts import bindings_artifact, core_artifact, python_artifact +else: + from ci_artifacts import bindings_artifact, core_artifact, python_artifact + + +def common_environment(env: Mapping[str, str], root: Path) -> dict[str, str]: + python, host, sha = env["PY_VER"], env["HOST_PLATFORM"], env["SHA"] + return { + "PYTHON_VERSION_FORMATTED": python.replace(".", ""), + "CUDA_CORE_ARTIFACT_BASENAME": core_artifact(python, host), + "CUDA_CORE_ARTIFACT_NAME": core_artifact(python, host, sha), + "CUDA_CORE_ARTIFACTS_DIR": (root / "cuda_core/dist").as_posix(), + "CUDA_CORE_CYTHON_TESTS_DIR": (root / "cuda_core/tests/cython").as_posix(), + "CUDA_CORE_TEST_BINARIES_DIR": (root / "cuda_core/tests/test_binaries").as_posix(), + } + + +def build_environment(env: Mapping[str, str], root: Path) -> dict[str, object]: + if __package__: + from .bindings_config import load_config + else: + from bindings_config import load_config + + config = load_config(root / "ci/versions.yml") + plan = json.loads(env["WORKPLAN"]) + modules = plan["modules"] + python, host, sha = env["PY_VER"], env["HOST_PLATFORM"], env["SHA"] + platform_tag = { + "linux-64": "manylinux_x86_64", + "linux-aarch64": "manylinux_aarch64", + "win-64": "win_amd64", + "win-arm64": "win_arm64", + }[host] + values: dict[str, object] = { + "CIBW_BUILD": f"cp{python.replace('.', '')}-{platform_tag}", + "PATHFINDER_SOURCE": plan["sources"]["pathfinder"], + "BUILD_PATHFINDER": modules["pathfinder"]["needs_build"], + "BUILD_BINDINGS": modules["bindings"]["needs_build"], + "BUILD_CORE": modules["core"]["needs_build"], + "BUILD_CUDA_PYTHON": modules["python"]["needs_build"], + "TEST_BINDINGS": modules["bindings"]["needs_test"], + "TEST_CORE": modules["core"]["needs_test"], + "BASELINE_RUN_ID": plan["baseline"]["run_id"], + "BASELINE_SHA": plan["baseline"]["sha"], + } + for package in config.package_roots: + prefix = package.release_status.upper() + source = root / package.package_root + bindings = modules["bindings"]["package_roots"][package.package_root] + metapackage = modules["python"]["package_roots"][package.package_root] + core = modules["core"]["cuda_majors"][package.cuda_variant] + values.update( + { + f"{prefix}_BINDINGS_ROOT": package.package_root, + f"{prefix}_CUDA_VERSION": package.toolkit_version, + f"{prefix}_CUDA_MAJOR": package.cuda_major, + f"{prefix}_CUDA_VARIANT": package.cuda_variant, + f"{prefix}_BINDINGS_ARTIFACT_BASENAME": bindings_artifact(python, package.toolkit_version, host), + f"{prefix}_BINDINGS_ARTIFACT_NAME": bindings_artifact(python, package.toolkit_version, host, sha), + f"{prefix}_BINDINGS_ARTIFACTS_DIR": (source / "dist").as_posix(), + f"{prefix}_BINDINGS_CYTHON_TESTS_DIR": (source / "tests/cython").as_posix(), + f"{prefix}_PYTHON_ARTIFACT_NAME": python_artifact(package.toolkit_version), + f"BUILD_BINDINGS_{prefix}": bindings["needs_build"], + f"BUILD_CUDA_PYTHON_{prefix}": metapackage["needs_build"], + f"TEST_BINDINGS_{prefix}": bindings["needs_test"], + f"TEST_CORE_{prefix}": core["needs_test"], + } + ) + return values + + +def test_environment(env: Mapping[str, str], root: Path) -> dict[str, str]: + config = env.get("BINDINGS_CONFIG") + if not config: + raise ValueError("BINDINGS_CONFIG must contain registry JSON or LEGACY_CONFIG") + python, host, sha = env["PY_VER"], env["HOST_PLATFORM"], env["SHA"] + test_major, test_minor = env["CUDA_VER"].split(".")[:2] + if config == "LEGACY_CONFIG": + current = build = env["BUILD_CUDA_VER"] + bindings_root = "cuda_bindings_13" if (root / "cuda_bindings_13").is_dir() else "cuda_bindings" + previous = subprocess.check_output( + ["yq", "-r", ".cuda.prev_build.version", "ci/versions.yml"], # noqa: S607 + text=True, + cwd=root, + ).strip() + if current.split(".")[0] != test_major: + source = "backport" if previous.split(".")[1] == test_minor else "floor" + else: + source = "main" if current.split(".")[1] == test_minor else "floor" + metapackage = python_artifact() + core_tests_suffix = "-tests" + else: + current = env["CURRENT_BUILD_CUDA_VER"] + source = env["BINDINGS_SOURCE"] + if source == "local": + bindings_root, build = env["BINDINGS_SOURCE_DIR"], env["BUILD_CUDA_VER"] + elif source == "floor": + bindings_root, build = env["DEFAULT_BINDINGS_SOURCE_DIR"], current + else: + raise ValueError(f"BINDINGS_SOURCE must be local or floor, got {source}") + metapackage = python_artifact(build) + core_tests_suffix = f"-cu{test_major}-tests" + local = source in ("local", "main") + sanitizer = ( + python == "3.12" and env["CUDA_VER"] != "11.8.0" and env["LOCAL_CTK"] == "1" and host.startswith("linux") + ) + values = { + "SETUP_SANITIZER": "1" if sanitizer else "0", + "BINDINGS_SOURCE": source, + "CUDA_BINDINGS_ROOT": bindings_root, + "PATHFINDER_SOURCE": env.get("PATHFINDER_SOURCE") or "artifact", + "CUDA_PYTHON_ARTIFACT_NAME": metapackage, + "SKIP_CUDA_BINDINGS_TEST": (env.get("SKIP_BINDINGS_TEST_OVERRIDE") or "0") if local else "1", + "SKIP_CYTHON_TEST": "0" if local else "1", + "TEST_CUDA_MAJOR": test_major, + "TEST_CUDA_MINOR": test_minor, + "CUDA_BINDINGS_ARTIFACT_BASENAME": bindings_artifact(python, build, host), + "CUDA_BINDINGS_ARTIFACT_NAME": bindings_artifact(python, build, host, sha), + "CUDA_BINDINGS_ARTIFACTS_DIR": (root / bindings_root / "dist").as_posix(), + "CUDA_BINDINGS_CYTHON_TESTS_DIR": (root / bindings_root / "tests/cython").as_posix(), + "CUDA_CORE_CYTHON_TEST_ARTIFACT_NAME": core_artifact(python, host, sha) + core_tests_suffix, + "CURRENT_BUILD_CUDA_VER": current, + "BUILD_CUDA_MAJOR": current.split(".")[0], + "BUILD_CUDA_MINOR": current.split(".")[1], + } + if not sanitizer: + values["SANITIZER_CMD"] = "" + return values + + +def main() -> None: + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("mode", choices=("build", "test")) + args = parser.parse_args() + root = Path.cwd() + values: dict[str, object] = common_environment(os.environ, root) + values.update((build_environment if args.mode == "build" else test_environment)(os.environ, root)) + values["CUDA_PYTHON_PARALLEL_LEVEL"] = subprocess.check_output(["nproc"], text=True).strip() # noqa: S607 + with Path(os.environ["GITHUB_ENV"]).open("a", encoding="utf-8") as output: + for name, value in values.items(): + if value is None: + raise ValueError(f"missing environment value for {name}") + output.write(f"{name}={str(value).lower() if isinstance(value, bool) else value}\n") + with Path(os.environ["GITHUB_PATH"]).open("a", encoding="utf-8") as output: + output.write(f"{Path(__file__).resolve().parent}\n") + + +if __name__ == "__main__": + main() diff --git a/ci/tools/compute_ci_plan.py b/ci/tools/compute_ci_plan.py index 98b8499d0044..51b35f1868d5 100644 --- a/ci/tools/compute_ci_plan.py +++ b/ci/tools/compute_ci_plan.py @@ -8,30 +8,23 @@ from __future__ import annotations -import argparse import json +import os import subprocess from pathlib import Path, PurePosixPath +from typing import TYPE_CHECKING + +from .bindings_config import load_config, wheel_python_versions + +if TYPE_CHECKING: + from .bindings_config import BindingsConfig REPO_ROOT = Path(__file__).resolve().parents[2] -MODULES = ("pathfinder", "bindings", "core", "python") PLATFORMS = ("linux", "windows") -PACKAGE_MODULES = { - "cuda_pathfinder": "pathfinder", - "cuda_bindings_12": "bindings", - "cuda_bindings_13": "bindings", - "cuda_core": "core", - "cuda_python": "python", -} - -# Source changes have different build and test consumers. In particular, -# cuda-python source needs a same-version bindings wheel, while a core-only -# change can reuse the baseline cuda-python wheel. -SOURCE_IMPACT = { - "pathfinder": (set(MODULES), set(MODULES)), - "bindings": ({"bindings", "core", "python"}, {"bindings", "core", "python"}), - "core": ({"core"}, {"core", "python"}), - "python": ({"bindings", "python"}, {"python"}), +PACKAGE_TARGETS: dict[str, tuple[str, None]] = { + "cuda_pathfinder": ("pathfinder", None), + "cuda_core": ("core", None), + "cuda_python": ("python", None), } IGNORED_BASENAMES = {"AGENTS.md", "CLAUDE.md", "pixi.lock", "pixi.toml"} @@ -62,107 +55,281 @@ "ci/tools/setup-sanitizer": "linux", } +Target = tuple[str, str | None] -def compute_workplan( + +def select_source_work( + bindings_config: BindingsConfig, paths: list[str], - *, - merge_base: str, - baseline_run_id: str, - linked_paths: set[str] | None = None, + linked_paths: set[str], ) -> dict[str, object]: - """Return the final CI decisions for the supplied changed paths.""" - linked_paths = linked_paths or set() - source_changes: set[str] = set() - test_changes: set[str] = set() - test_platforms: set[str] = set() - force_all = not merge_base or not baseline_run_id + """Select build/test impacts from paths, independently of wheel availability.""" + bindings_packages = bindings_config.package_roots + package_roots = tuple(package.package_root for package in bindings_packages) + cuda_variants = tuple(package.cuda_variant for package in bindings_packages) - if not force_all: - for path in paths: - path_parts = PurePosixPath(path).parts - if not path_parts: - continue + bindings_targets = frozenset(("bindings", package_root) for package_root in package_roots) + core_targets = frozenset(("core", variant) for variant in cuda_variants) + python_targets = frozenset(("python", package_root) for package_root in package_roots) + all_targets = frozenset({("pathfinder", None), *bindings_targets, *core_targets, *python_targets}) - if platform := TEST_INFRA_PLATFORMS.get(path): - test_platforms.add(platform) - continue + package_targets = { + PurePosixPath(package.package_root): ("bindings", package.package_root) for package in bindings_packages + } + package_targets.update((PurePosixPath(source_dir), target) for source_dir, target in PACKAGE_TARGETS.items()) - if path_parts[0] == "ci" or ( - len(path_parts) >= 2 and path_parts[:2] in {(".github", "actions"), (".github", "workflows")} - ): - if path in IGNORED_PATHS: - continue - force_all = True - break + # Source changes have different build/test consumers. Core-only changes can + # reuse baseline cuda-python wheels; cuda-python changes cannot reuse bindings. + # Bindings-only changes reuse the unchanged Core wheel and test it against + # the changed bindings major; Core source or shared changes rebuild both halves. + source_impacts: dict[Target, tuple[frozenset[Target], frozenset[Target], frozenset[str]]] = { + ("pathfinder", None): (all_targets, all_targets, frozenset(package_roots)), + ("core", None): (core_targets, frozenset({*core_targets, *python_targets}), frozenset(package_roots)), + ("python", None): ( + frozenset({*bindings_targets, *python_targets}), + python_targets, + frozenset(package_roots), + ), + **{ + ("bindings", package.package_root): ( + frozenset( + { + ("bindings", package.package_root), + ("python", package.package_root), + } + ), + frozenset( + { + ("bindings", package.package_root), + ("core", package.cuda_variant), + ("python", package.package_root), + } + ), + frozenset({package.package_root}), + ) + for package in bindings_packages + }, + } - if path_parts[0] == ".github" or path_parts[-1] in IGNORED_BASENAMES: - continue + source_changes: set[Target] = set() + test_changes: set[Target] = set() + test_platforms: set[str] = set() + force_all = False - module = PACKAGE_MODULES.get(path_parts[0]) - if module is not None and len(path_parts) > 1: - relative = path_parts[1:] - if relative[0] == "docs": - continue - if ( - any(part in {"test", "tests"} for part in relative[:-1]) - or relative[0] == "examples" - or (module == "core" and relative == ("pytest.ini",)) - ): - test_changes.add(module) - elif PurePosixPath(path).suffix in IGNORED_SUFFIXES and path not in linked_paths: - continue - else: - source_changes.add(module) + for path in paths: + path_parts = PurePosixPath(path).parts + if not path_parts: + continue + + if platform := TEST_INFRA_PLATFORMS.get(path): + test_platforms.add(platform) + continue + + if path_parts[0] == "ci" or ( + len(path_parts) >= 2 and path_parts[:2] in {(".github", "actions"), (".github", "workflows")} + ): + if path in IGNORED_PATHS: continue + force_all = True + break - is_test_path = any(part in {"test", "tests"} for part in path_parts[:-1]) - if is_test_path: - test_changes.update(MODULES) - elif ( - path in IGNORED_PATHS - or PurePosixPath(path).suffix in IGNORED_SUFFIXES - or path.startswith(IGNORED_PREFIXES) + if path_parts[0] == ".github" or path_parts[-1] in IGNORED_BASENAMES: + continue + + target_match = next( + ( + (root, target) + for root, target in sorted(package_targets.items(), key=lambda item: len(item[0].parts), reverse=True) + if len(path_parts) > len(root.parts) and path_parts[: len(root.parts)] == root.parts + ), + None, + ) + if target_match is not None: + root, target = target_match + module, _ = target + relative = path_parts[len(root.parts) :] + if relative[0] == "docs": + continue + if ( + any(part in {"test", "tests"} for part in relative[:-1]) + or relative[0] == "examples" + or (module == "core" and relative == ("pytest.ini",)) ): + if module == "core": + test_changes.update(core_targets) + elif module == "python": + test_changes.update(python_targets) + else: + test_changes.add(target) + elif PurePosixPath(path).suffix in IGNORED_SUFFIXES and path not in linked_paths: continue - elif path_parts[0] in {"benchmarks", "cuda_python_test_helpers"}: - test_changes.update(MODULES) else: - force_all = True - break + source_changes.add(target) + continue + + is_test_path = any(part in {"test", "tests"} for part in path_parts[:-1]) + if is_test_path: + test_changes.update(all_targets) + elif ( + path in IGNORED_PATHS or PurePosixPath(path).suffix in IGNORED_SUFFIXES or path.startswith(IGNORED_PREFIXES) + ): + continue + elif path_parts[0] in {"benchmarks", "cuda_python_test_helpers"}: + test_changes.update(all_targets) + else: + force_all = True + break if force_all: - builds = set(MODULES) - tests = set(MODULES) + builds = set(all_targets) + tests = set(all_targets) test_platforms = set(PLATFORMS) + sdist_package_roots = set(package_roots) else: - builds: set[str] = set() - tests = set(MODULES) if test_platforms else set(test_changes) - for module in source_changes: - build_impact, test_impact = SOURCE_IMPACT[module] + builds: set[tuple[str, str | None]] = set() + tests = set(all_targets) if test_platforms else set(test_changes) + sdist_package_roots: set[str] = set() + for target in source_changes: + build_impact, test_impact, sdist_impact = source_impacts[target] builds.update(build_impact) tests.update(test_impact) + sdist_package_roots.update(sdist_impact) if source_changes or test_changes: test_platforms.update(PLATFORMS) - modules = { - module: { - "needs_build": module in builds, - "needs_test": module in tests, + return { + "builds": builds, + "tests": tests, + "platforms": test_platforms, + "sdist_roots": sdist_package_roots, + "full_rebuild": force_all, + "core_api_checks": force_all or ("core", None) in source_changes, + } + + +def compute_workplan( + *, + bindings_config: BindingsConfig, + paths: list[str], + linked_paths: set[str], + merge_base: str, + baseline_run_id: str, + release_tag: str, +) -> dict[str, object]: + """Apply release/reuse policy and produce the workflow's execution records.""" + bindings_packages = bindings_config.package_roots + package_roots = tuple(package.package_root for package in bindings_packages) + cuda_variants = tuple(package.cuda_variant for package in bindings_packages) + release_package = bindings_config.match_tag(release_tag) if release_tag else None + if release_tag.startswith("v") and release_package is None: + raise ValueError(f"no configured CUDA bindings package root matches release tag: {release_tag!r}") + force_all = release_package is None and (bool(release_tag) or not merge_base or not baseline_run_id) + if release_package is not None: + builds = {("bindings", release_package.package_root), ("python", release_package.package_root)} + tests = set(builds) + test_platforms = set(PLATFORMS) + sdist_package_roots = {release_package.package_root} + core_api_checks = False + elif force_all: + builds = { + ("pathfinder", None), + *((module, root) for module in ("bindings", "python") for root in package_roots), + *(("core", variant) for variant in cuda_variants), + } + tests = set(builds) + test_platforms = set(PLATFORMS) + sdist_package_roots = set(package_roots) + core_api_checks = True + else: + selection = select_source_work(bindings_config, paths, linked_paths) + builds, tests = selection["builds"], selection["tests"] + test_platforms, sdist_package_roots = selection["platforms"], selection["sdist_roots"] + force_all, core_api_checks = selection["full_rebuild"], selection["core_api_checks"] + + def flags(module: str, selectors: tuple[str | None, ...]) -> dict[str, bool]: + return { + "needs_build": any((module, selector) in builds for selector in selectors), + "needs_test": any((module, selector) in tests for selector in selectors), + } + + modules: dict[str, dict[str, object]] = {"pathfinder": flags("pathfinder", (None,))} + for module in ("bindings", "python"): + package_decisions = { + package.package_root: flags(module, (package.package_root,)) for package in bindings_packages } - for module in MODULES + modules[module] = { + **flags(module, package_roots), + "package_roots": package_decisions, + } + + cuda_major_decisions = {variant: flags("core", (variant,)) for variant in cuda_variants} + modules["core"] = { + **flags("core", cuda_variants), + "cuda_majors": cuda_major_decisions, + } + + pathfinder_test = ("pathfinder", None) in tests + test_cuda_variants = { + package.cuda_variant + for package in bindings_packages + if pathfinder_test + or ("core", package.cuda_variant) in tests + or any((module, package.package_root) in tests for module in ("bindings", "python")) + } + + pathfinder_source = "published" if release_package is not None else "artifact" + sdist_packages = [ + { + **package.to_dict(), + "build_pathfinder": package.release_status == "current" and ("pathfinder", None) in builds, + "build_bindings": ("bindings", package.package_root) in builds, + "build_core": ("core", package.cuda_variant) in builds, + "build_python": ("python", package.package_root) in builds, + "pathfinder_source": pathfinder_source, + } + for package in bindings_packages + if package.package_root in sdist_package_roots + ] + current = bindings_config.package_for_release_status("current") + python_versions = { + host: wheel_python_versions(current.toolkit_version, host, bindings_config.python_supported) + for host in ("linux-64", "linux-aarch64", "win-64", "win-arm64") } + return { "modules": modules, + "sources": { + # Focused bindings releases intentionally omit unrelated artifacts. + "pathfinder": pathfinder_source, + }, + # Scheduler decisions become flat job outputs, separate from the JSON + # execution records passed to reusable workflows. + "scheduler": { + "platform-linux": "linux" in test_platforms, + "platform-windows": "windows" in test_platforms, + "windows-arm64-build": "windows" in test_platforms + and bool(python_versions["win-arm64"]) + and ( + (bool(baseline_run_id) and release_package is None) + or any( + int(package.cuda_major) >= 13 + and (("bindings", package.package_root) in builds or ("core", package.cuda_variant) in builds) + for package in bindings_packages + ) + ), + "windows-arm64-single-cuda-major": bindings_config.windows_arm64_single_cuda_major, + "sdist-tests": bool(sdist_packages), + "core-api-checks": core_api_checks, + }, "jobs": { - # These gates cover both optional artifact builds and wheel tests. - "platforms": {platform: platform in test_platforms for platform in PLATFORMS}, - "sdist_tests": bool(builds), - "core_api_checks": force_all or "core" in source_changes, + "sdist_packages": sdist_packages, + "test_cuda_majors": {variant: variant in test_cuda_variants for variant in cuda_variants}, + "wheel_python_versions": python_versions, }, "merge_base": merge_base, "baseline": { - "run_id": baseline_run_id if not force_all else "", - "sha": merge_base if not force_all else "", + "run_id": baseline_run_id if release_package is None and not force_all else "", + "sha": merge_base if release_package is None and not force_all else "", }, } @@ -204,20 +371,35 @@ def _expand_linked_paths(paths: list[str], symlink_paths: list[str], *, root: Pa def main() -> None: - parser = argparse.ArgumentParser() - parser.add_argument("--merge-base", default="") - parser.add_argument("--baseline-run-id", default="") - args = parser.parse_args() - - reusable_baseline = bool(args.merge_base and args.baseline_run_id) - paths, linked_paths = _changed_paths(args.merge_base) if reusable_baseline else ([], set()) + merge_base = os.environ["MERGE_BASE"] + baseline_run_id = os.environ["BASELINE_RUN_ID"] + release_tag = os.environ["RELEASE_TAG"] + config = load_config() + reusable_baseline = bool(merge_base and baseline_run_id and not release_tag) + paths, linked_paths = _changed_paths(merge_base) if reusable_baseline else ([], set()) plan = compute_workplan( - paths, - merge_base=args.merge_base, - baseline_run_id=args.baseline_run_id, + bindings_config=config, + paths=paths, linked_paths=linked_paths, + merge_base=merge_base, + baseline_run_id=baseline_run_id, + release_tag=release_tag, ) - print(json.dumps(plan, separators=(",", ":"), sort_keys=True)) + formatted = json.dumps(plan, indent=2, sort_keys=True) + with Path(os.environ["GITHUB_STEP_SUMMARY"]).open("a", encoding="utf-8") as summary: + summary.write( + f"### CI workplan\n\n
Workplan JSON\n\n```json\n{formatted}\n```\n
\n" + ) + + scheduler = plan.pop("scheduler") + outputs = { + "bindings-config": config.to_json(), + "workplan": json.dumps(plan, separators=(",", ":"), sort_keys=True), + **{name: str(value).lower() for name, value in scheduler.items()}, + } + with Path(os.environ["GITHUB_OUTPUT"]).open("a", encoding="utf-8") as output: + for name, value in outputs.items(): + output.write(f"{name}={value}\n") if __name__ == "__main__": diff --git a/ci/tools/cuda_core_bindings_floor.py b/ci/tools/cuda_core_bindings_floor.py index 5f4dadc8cf0d..70556c6d07be 100644 --- a/ci/tools/cuda_core_bindings_floor.py +++ b/ci/tools/cuda_core_bindings_floor.py @@ -10,7 +10,7 @@ CI installs `cuda-bindings==` next to a freshly built cuda-core wheel to test the oldest cuda-bindings that wheel supports (BINDINGS_SOURCE=floor in -ci/tools/env-vars). This script reads the floor from the wheel under test, not +ci/tools/ci_env.py). This script reads the floor from the wheel under test, not from the checkout, so a nightly job that tests a wheel built from another commit reads that wheel's floor. diff --git a/ci/tools/env-vars b/ci/tools/env-vars deleted file mode 100755 index 3aa09835342a..000000000000 --- a/ci/tools/env-vars +++ /dev/null @@ -1,167 +0,0 @@ -#!/usr/bin/env bash - -# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -# -# SPDX-License-Identifier: Apache-2.0 - -# A utility script to set up the GitHub environment variables for the CI. - -set -euo pipefail - -# Check if the script was called with exactly 1 argument -if [[ ${#} -ne 1 ]]; then - echo "Error: This script requires exactly 1 argument (the build mode). You provided ${#}" - echo "Usage: ${0} build_mode[build or test]" - exit 1 -fi - -PYTHON_VERSION_FORMATTED=$(echo "${PY_VER}" | tr -d '.') -CUDA_BINDINGS_ROOT="${CUDA_BINDINGS_ROOT:-cuda_bindings_13}" -BINDINGS_ARTIFACT_PREFIX="${BINDINGS_ARTIFACT_PREFIX:-cuda-bindings}" - -if [[ "${HOST_PLATFORM}" == linux* ]]; then - REPO_DIR=$(pwd) - TOOLS_PATH="${REPO_DIR}/ci/tools" -elif [[ "${HOST_PLATFORM}" == win* ]]; then - PWD=$(pwd) - REPO_DIR=$(cygpath -w ${PWD}) - TOOLS_PATH=$(cygpath -w ${PWD}/ci/tools) -fi - -echo "${TOOLS_PATH}" >> $GITHUB_PATH -echo "CUDA_PYTHON_PARALLEL_LEVEL=$(nproc)" >> $GITHUB_ENV -CUDA_CORE_ARTIFACT_BASENAME="cuda-core-python${PYTHON_VERSION_FORMATTED}-${HOST_PLATFORM}" -{ - echo "CUDA_CORE_ARTIFACT_BASENAME=${CUDA_CORE_ARTIFACT_BASENAME}" - echo "CUDA_CORE_ARTIFACT_NAME=${CUDA_CORE_ARTIFACT_BASENAME}-${SHA}" - echo "CUDA_CORE_ARTIFACTS_DIR=$(realpath "${REPO_DIR}/cuda_core/dist")" - echo "CUDA_CORE_CYTHON_TESTS_DIR=$(realpath "${REPO_DIR}/cuda_core/tests/cython")" - echo "CUDA_CORE_TEST_BINARIES_DIR=$(realpath "${REPO_DIR}/cuda_core/tests/test_binaries")" - echo "PYTHON_VERSION_FORMATTED=${PYTHON_VERSION_FORMATTED}" -} >> $GITHUB_ENV - -if [[ "${1}" == "build" ]]; then - if [[ "${HOST_PLATFORM}" == "linux-64" ]]; then - CIBW_PLATFORM_TAG="manylinux_x86_64" - elif [[ "${HOST_PLATFORM}" == "linux-aarch64" ]]; then - CIBW_PLATFORM_TAG="manylinux_aarch64" - elif [[ "${HOST_PLATFORM}" == "win-64" ]]; then - CIBW_PLATFORM_TAG="win_amd64" - elif [[ "${HOST_PLATFORM}" == "win-arm64" ]]; then - CIBW_PLATFORM_TAG="win_arm64" - else - echo "Error: unsupported HOST_PLATFORM=${HOST_PLATFORM}" >&2 - exit 1 - fi - echo "CIBW_BUILD=cp${PYTHON_VERSION_FORMATTED}-${CIBW_PLATFORM_TAG}" >> "$GITHUB_ENV" - BUILD_CUDA_MAJOR="$(cut -d '.' -f 1 <<< ${CUDA_VER})" - echo "BUILD_CUDA_MAJOR=${BUILD_CUDA_MAJOR}" >> $GITHUB_ENV - echo "BUILD_PREV_CUDA_MAJOR=$((${BUILD_CUDA_MAJOR} - 1))" >> $GITHUB_ENV - CUDA_BINDINGS_ARTIFACT_BASENAME="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda${CUDA_VER}-${HOST_PLATFORM}" - maintenance_package=$(python -m ci.tools.bindings_config --release-status maintenance) - maintenance_root=$(jq -r '.package_root' <<< "$maintenance_package") - maintenance_version=$(jq -r '.toolkit_version' <<< "$maintenance_package") - { - echo "MAINTENANCE_BINDINGS_ROOT=${maintenance_root}" - echo "MAINTENANCE_CUDA_VERSION=${maintenance_version}" - echo "MAINTENANCE_CUDA_MAJOR=${maintenance_version%%.*}" - echo "MAINTENANCE_BINDINGS_ARTIFACTS_DIR=$(realpath "${REPO_DIR}/${maintenance_root}/dist")" - echo "MAINTENANCE_BINDINGS_CYTHON_TESTS_DIR=$(realpath "${REPO_DIR}/${maintenance_root}/tests/cython")" - echo "MAINTENANCE_BINDINGS_ARTIFACT_NAME=cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda${maintenance_version}-${HOST_PLATFORM}-${SHA}" - } >> "$GITHUB_ENV" -elif [[ "${1}" == "test" ]]; then - BUILD_CUDA_MAJOR="$(cut -d '.' -f 1 <<< ${BUILD_CUDA_VER})" - TEST_CUDA_MAJOR="$(cut -d '.' -f 1 <<< ${CUDA_VER})" - CUDA_BINDINGS_ARTIFACT_BASENAME="${BINDINGS_ARTIFACT_PREFIX}-python${PYTHON_VERSION_FORMATTED}-cuda${BUILD_CUDA_VER}-${HOST_PLATFORM}" - - # BINDINGS_SOURCE controls which cuda-bindings to install at test time: - # main — use the just-built bindings wheel from this CI run - # backport — fetch bindings from the prior (N-1) branch - # floor — install from PyPI the oldest cuda-bindings that the cuda-core - # wheel under test supports, its per-major floor (see - # cuda_core/cuda/core/_bindings_floor.py and ci/tools/run-tests). - # Selected when the test CTK minor differs from the minor the - # wheel was built against. Those rows exercise a new cuda-core - # with the floor cuda-bindings and older CTK libraries, the skew - # that cuda-core supports. cuda-bindings older than the floor is - # unsupported and fails at import - # (https://github.com/NVIDIA/cuda-python/issues/2783). - # - # SKIP_CUDA_BINDINGS_TEST / SKIP_CYTHON_TEST control which *tests* to run - # (they do NOT affect installation — that's BINDINGS_SOURCE's job). - - BUILD_CUDA_MINOR="$(cut -d '.' -f 2 <<< ${BUILD_CUDA_VER})" - TEST_CUDA_MINOR="$(cut -d '.' -f 2 <<< ${CUDA_VER})" - # CI builds the prior-major half of the cuda-core wheel against the prev_build - # toolkit in ci/versions.yml and the backport branch's bindings. - if ! command -v yq >/dev/null 2>&1; then - echo "Error: yq is required to read ci/versions.yml" >&2 - exit 1 - fi - BUILD_PREV_CUDA_VER="$(yq -r '.cuda.prev_build.version' ci/versions.yml)" - BUILD_PREV_CUDA_MINOR="$(cut -d '.' -f 2 <<< ${BUILD_PREV_CUDA_VER})" - - if [[ -n "${BINDINGS_SOURCE:-}" ]]; then - SKIP_CUDA_BINDINGS_TEST=1 - SKIP_CYTHON_TEST=1 - if [[ "$BINDINGS_SOURCE" == main ]]; then - SKIP_CUDA_BINDINGS_TEST="${SKIP_BINDINGS_TEST_OVERRIDE:-0}" - SKIP_CYTHON_TEST=0 - fi - elif [[ ${BUILD_CUDA_MAJOR} != ${TEST_CUDA_MAJOR} ]]; then - SKIP_CUDA_BINDINGS_TEST=1 - SKIP_CYTHON_TEST=1 - if [[ ${BUILD_PREV_CUDA_MINOR} != ${TEST_CUDA_MINOR} ]]; then - # Prior major, minor mismatch (e.g. built against 12.9, test=12.6): floor - # bindings from PyPI with the older CTK libraries. - BINDINGS_SOURCE=floor - else - # Prior major, same minor (e.g. build=13.x, test=12.9): the backport branch. - BINDINGS_SOURCE=backport - fi - elif [[ ${BUILD_CUDA_MINOR} != ${TEST_CUDA_MINOR} ]]; then - # Same major, minor mismatch (e.g. build=13.4, test=13.0): floor bindings - # from PyPI with the older CTK libraries. - BINDINGS_SOURCE=floor - SKIP_CUDA_BINDINGS_TEST=1 - SKIP_CYTHON_TEST=1 - else - # Exact match: use the just-built bindings wheel. - BINDINGS_SOURCE=main - if [[ "${SKIP_BINDINGS_TEST_OVERRIDE:-0}" == "1" ]]; then - SKIP_CUDA_BINDINGS_TEST=1 - else - SKIP_CUDA_BINDINGS_TEST=0 - fi - SKIP_CYTHON_TEST=0 - fi - # We don't test compute-sanitizer on CTK<12 because backporting fixes is too much effort - # We only test compute-sanitizer on python 3.12 arbitrarily; we don't need to use sanitizer on the entire matrix - # Only local ctk installs have compute-sanitizer; there is no wheel for it - if [[ "${PY_VER}" == "3.12" && "${CUDA_VER}" != "11.8.0" && "${LOCAL_CTK}" == 1 && "${HOST_PLATFORM}" == linux* ]]; then - SETUP_SANITIZER=1 - else - SETUP_SANITIZER=0 - echo "SANITIZER_CMD=" >> $GITHUB_ENV - fi - { - echo "SETUP_SANITIZER=${SETUP_SANITIZER}" - echo "BINDINGS_SOURCE=${BINDINGS_SOURCE}" - echo "SKIP_CUDA_BINDINGS_TEST=${SKIP_CUDA_BINDINGS_TEST}" - echo "SKIP_CYTHON_TEST=${SKIP_CYTHON_TEST}" - echo "TEST_CUDA_MAJOR=${TEST_CUDA_MAJOR}" - echo "TEST_CUDA_MINOR=${TEST_CUDA_MINOR}" - echo "BUILD_CUDA_MAJOR=${BUILD_CUDA_MAJOR}" - echo "BUILD_CUDA_MINOR=${BUILD_CUDA_MINOR}" - } >> $GITHUB_ENV -fi - -{ - echo "CUDA_BINDINGS_ROOT=${CUDA_BINDINGS_ROOT}" - echo "CUDA_BINDINGS_ARTIFACT_BASENAME=${CUDA_BINDINGS_ARTIFACT_BASENAME}" - echo "CUDA_BINDINGS_ARTIFACT_NAME=${CUDA_BINDINGS_ARTIFACT_BASENAME}-${SHA}" - echo "CUDA_BINDINGS_ARTIFACTS_DIR=$(realpath "${REPO_DIR}/${CUDA_BINDINGS_ROOT}/dist")" - echo "CUDA_BINDINGS_CYTHON_TESTS_DIR=$(realpath "${REPO_DIR}/${CUDA_BINDINGS_ROOT}/tests/cython")" - echo "CUDA_CORE_CYTHON_TEST_ARTIFACT_NAME=${CUDA_CORE_ARTIFACT_BASENAME}-${SHA}${CORE_CYTHON_SUFFIX:--tests}" - echo "CUDA_PYTHON_ARTIFACT_NAME=${CUDA_PYTHON_ARTIFACT_NAME:-cuda-python-wheel}" -} >> $GITHUB_ENV diff --git a/ci/tools/run-tests b/ci/tools/run-tests index 3b3576b749a0..6e7e92cfa7b9 100755 --- a/ci/tools/run-tests +++ b/ci/tools/run-tests @@ -49,8 +49,21 @@ fi # all wheels together in a single pip call further below. if [[ "${test_module}" != nightly-* ]]; then pushd ./cuda_pathfinder - echo "Installing pathfinder wheel" - pip install ./*.whl --group test "${TEST_FT_GROUP[@]}" + if [[ "${PATHFINDER_SOURCE:-}" == "artifact" ]]; then + echo "Installing pathfinder wheel from CI artifacts" + pathfinder_wheels=(./*.whl) + if [[ "${#pathfinder_wheels[@]}" -ne 1 || ! -f "${pathfinder_wheels[0]}" ]]; then + echo "Expected exactly one cuda-pathfinder wheel in $(pwd)" >&2 + exit 1 + fi + pip install "${pathfinder_wheels[0]}" --group test "${TEST_FT_GROUP[@]}" + elif [[ "${PATHFINDER_SOURCE:-}" == "published" && "${test_module}" == "bindings" ]]; then + echo "Installing published pathfinder for a focused bindings release" + pip install cuda-pathfinder --group test "${TEST_FT_GROUP[@]}" + else + echo "Error: PATHFINDER_SOURCE must be artifact, or published for bindings release tests; got ${PATHFINDER_SOURCE:-}" >&2 + exit 1 + fi popd fi @@ -68,16 +81,15 @@ if [[ "${test_module}" == "pathfinder" ]]; then popd elif [[ "${test_module}" == "bindings" ]]; then echo "Installing bindings wheel" - pushd "./${CUDA_BINDINGS_ROOT:-cuda_bindings_13}" - if [[ "${LOCAL_CTK}" == 1 ]]; then - pip install "${CUDA_BINDINGS_ARTIFACTS_DIR}"/*.whl --group test "${TEST_FT_GROUP[@]}" - else + pushd "./${CUDA_BINDINGS_ROOT}" + bindings_requirements=("${CUDA_BINDINGS_ARTIFACTS_DIR}"/*.whl) + bindings_toolkit_requirement=() + if [[ "${LOCAL_CTK}" != 1 ]]; then TEST_CUDA_MAJOR_MINOR="$(cut -d '.' -f 1-2 <<< "${CUDA_VER}")" - # Keep the wheel-installed Toolkit aligned with the matrix-selected minor; - # newer minors can grow ABI structs beyond the size compiled into this wheel. - pip install $(ls "${CUDA_BINDINGS_ARTIFACTS_DIR}"/*.whl)[all] --group test "${TEST_FT_GROUP[@]}" \ - "cuda-toolkit==${TEST_CUDA_MAJOR_MINOR}.*" + bindings_requirements=("${bindings_requirements[@]/%/[all]}") + bindings_toolkit_requirement=("cuda-toolkit==${TEST_CUDA_MAJOR_MINOR}.*") fi + pip install "${bindings_requirements[@]}" --group test "${TEST_FT_GROUP[@]}" "${bindings_toolkit_requirement[@]}" echo "Running bindings tests" ${SANITIZER_CMD} pytest -rsxXfE -v --randomly-dont-reorganize --exclude-warning-annotations "${PYTEST_PARALLEL_ARGS[@]}" --junitxml "${TEST_RESULTS_DIR}/junit-bindings.xml" tests/ | fold_pytest_log if [[ "${SKIP_CYTHON_TEST}" == 0 ]]; then @@ -86,17 +98,17 @@ elif [[ "${test_module}" == "bindings" ]]; then popd elif [[ "${test_module}" == "core" || "${test_module}" == nightly-* ]]; then # Shared setup for core and nightly modes. - TEST_CUDA_MAJOR="$(cut -d '.' -f 1 <<< ${CUDA_VER})" + TEST_CUDA_MAJOR="$(cut -d '.' -f 1 <<< "${CUDA_VER}")" TEST_CUDA_MAJOR_MINOR="$(cut -d '.' -f 1-2 <<< "${CUDA_VER}")" - # Resolve bindings based on BINDINGS_SOURCE (set by env-vars): - # main/backport → local wheel from artifacts dir - # floor → the oldest cuda-bindings that the cuda-core wheel under test - # supports, read from that wheel and installed from PyPI + # Resolve bindings based on BINDINGS_SOURCE (set by ci_env.py): + # local → matching configured-package wheel from this run + # floor -> the oldest supported bindings, read from the Core wheel + # and installed from PyPI BINDINGS_ARGS=() if [[ "${BINDINGS_SOURCE}" == "floor" ]]; then CORE_WHL_FOR_FLOOR=("${CUDA_CORE_ARTIFACTS_DIR}"/*.whl) - BINDINGS_FLOOR="$(python ci/tools/cuda_core_bindings_floor.py --wheel "${CORE_WHL_FOR_FLOOR[0]}" --major "${TEST_CUDA_MAJOR}")" + BINDINGS_FLOOR="$(python "${CI_TOOLS_DIR}/cuda_core_bindings_floor.py" --wheel "${CORE_WHL_FOR_FLOOR[0]}" --major "${TEST_CUDA_MAJOR}")" echo "cuda-bindings floor of ${CORE_WHL_FOR_FLOOR[0]##*/} for CUDA ${TEST_CUDA_MAJOR}: ${BINDINGS_FLOOR}" BINDINGS_FLOOR_MINOR="$(cut -d '.' -f 2 <<< "${BINDINGS_FLOOR}")" if [[ "${test_module}" == "core" && "${TEST_CUDA_MAJOR}" == "${BUILD_CUDA_MAJOR}" && "${BINDINGS_FLOOR_MINOR}" -lt "${BUILD_CUDA_MINOR}" ]]; then @@ -131,10 +143,19 @@ elif [[ "${test_module}" == "core" || "${test_module}" == nightly-* ]]; then fi if [[ "${test_module}" == nightly-* ]]; then + if [[ "${PATHFINDER_SOURCE:-}" != "artifact" ]]; then + echo "Error: nightly tests require PATHFINDER_SOURCE=artifact" >&2 + exit 1 + fi # Resolve pathfinder wheel to absolute path before pushd. # CUDA_BINDINGS_ARTIFACTS_DIR and CUDA_CORE_ARTIFACTS_DIR are already - # absolute (set via realpath in env-vars). - PATHFINDER_WHL=($(realpath ./cuda_pathfinder/*.whl)) + # absolute (set by ci_env.py). + pathfinder_wheels=(./cuda_pathfinder/*.whl) + if [[ "${#pathfinder_wheels[@]}" -ne 1 || ! -f "${pathfinder_wheels[0]}" ]]; then + echo "Expected exactly one cuda-pathfinder wheel in ./cuda_pathfinder" >&2 + exit 1 + fi + PATHFINDER_WHL=("$(realpath "${pathfinder_wheels[0]}")") fi if [[ "${test_module}" == "core" ]]; then @@ -167,8 +188,8 @@ elif [[ "${test_module}" == "core" || "${test_module}" == nightly-* ]]; then pip list echo "Running core tests" ${SANITIZER_CMD} pytest -rsxXfE -v --randomly-dont-reorganize --exclude-warning-annotations "${PYTEST_PARALLEL_ARGS[@]}" --junitxml "${TEST_RESULTS_DIR}/junit-core.xml" tests/ | fold_pytest_log - # Currently our CI always installs the latest bindings (from either major version). - # This is not compatible with the test requirements. + # Compiled Cython tests require the bindings used to build them. Older + # toolkit rows intentionally exercise published floor bindings instead. if [[ "${SKIP_CYTHON_TEST}" == 0 ]]; then ${SANITIZER_CMD} pytest -rsxXfE -v --randomly-dont-reorganize --exclude-warning-annotations "${PYTEST_PARALLEL_ARGS[@]}" --junitxml "${TEST_RESULTS_DIR}/junit-core-cython.xml" tests/cython | fold_pytest_log fi diff --git a/ci/tools/select_pixi_packages.py b/ci/tools/select_pixi_packages.py new file mode 100644 index 000000000000..fe184cdd4204 --- /dev/null +++ b/ci/tools/select_pixi_packages.py @@ -0,0 +1,83 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +"""Select the source-build and documentation packages for the Pixi smoke job.""" + +from __future__ import annotations + +import json +import os +from pathlib import Path, PurePosixPath + +from .bindings_config import BindingsConfig, BindingsPackage, load_config +from .compute_ci_plan import _changed_paths, _git_output, select_source_work + + +def select_pixi_packages( + config: BindingsConfig, + *, + paths: list[str], + linked_paths: set[str], + cuda_env: str | None = None, +) -> tuple[list[BindingsPackage], list[BindingsPackage]]: + """Use path impacts for PRs, or a requested/current ABI for manual runs.""" + packages = config.package_roots + docs_roots: set[str] = set() + if cuda_env is not None: + selected = ( + [package for package in packages if package.cuda_variant == cuda_env] + if cuda_env + else [config.package_for_release_status("current")] + ) + if not selected: + registered = ", ".join(package.cuda_variant for package in packages) + raise ValueError(f"cuda-env must be a registered pixi environment: {registered}") + else: + selection = select_source_work(config, paths, linked_paths) + targets = selection["builds"] | selection["tests"] + selected_roots = { + package.package_root + for package in packages + if ("pathfinder", None) in targets + or ("core", package.cuda_variant) in targets + or any((component, package.package_root) in targets for component in ("bindings", "python")) + } + # The wheel path selection deliberately ignores Pixi manifests and docs. + for path in paths: + if PurePosixPath(path).name in {"pixi.toml", "pixi.lock"}: + local = { + package.package_root + for package in packages + if path == f"{package.package_root}/{PurePosixPath(path).name}" + } + selected_roots.update(local or {package.package_root for package in packages}) + docs_roots.update( + package.package_root for package in packages if path.startswith(f"{package.package_root}/docs/") + ) + selected_roots.update(docs_roots) + selected = [package for package in packages if package.package_root in selected_roots] + if not selected: + raise ValueError("no bindings package selected for source-build smoke tests") + return selected, [package for package in packages if package.package_root in docs_roots] + + +def main() -> None: + paths, linked_paths = [], set() + cuda_env = None + if os.environ["EVENT_NAME"] == "workflow_dispatch": + cuda_env = os.environ["REQUESTED_CUDA_ENV"] + else: + merge_base = _git_output("merge-base", "HEAD", os.environ["BASE_SHA"]).decode().strip() + paths, linked_paths = _changed_paths(merge_base) + selected, docs = select_pixi_packages(load_config(), paths=paths, linked_paths=linked_paths, cuda_env=cuda_env) + with Path(os.environ["GITHUB_ENV"]).open("a", encoding="utf-8") as output: + for name, packages in (("BINDINGS_PACKAGES", selected), ("BINDINGS_DOC_PACKAGES", docs)): + output.write(f"{name}={json.dumps([package.to_dict() for package in packages], separators=(',', ':'))}\n") + with Path(os.environ["GITHUB_STEP_SUMMARY"]).open("a", encoding="utf-8") as summary: + summary.write("### Selected source builds\n") + for package in selected: + summary.write(f"- {package.package_root}: CUDA {package.cuda_major}, pixi {package.cuda_variant}\n") + + +if __name__ == "__main__": + main() diff --git a/ci/tools/select_test_matrix.py b/ci/tools/select_test_matrix.py new file mode 100644 index 000000000000..27c466b365c0 --- /dev/null +++ b/ci/tools/select_test_matrix.py @@ -0,0 +1,143 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +"""Select wheel-test rows and their local or published bindings sources.""" + +from __future__ import annotations + +import argparse +import json +import os +import sys +from typing import Any + + +def select_test_matrix( + rows: list[dict[str, Any]], + packages: list[dict[str, Any]] | None, + *, + workplan: dict[str, Any] | None = None, + build_type: str = "pull-request", + test_mode: str = "standard", + platform: str = "linux", +) -> dict[str, list[dict[str, Any]]]: + """Apply the workplan to rows already filtered by the workflow's jq filter.""" + current_package = ( + next(package for package in packages if package["release_status"] == "current") + if packages is not None + else None + ) + enabled = {} + if packages is not None: + enabled = ( + {package["cuda_variant"]: True for package in packages} + if workplan is None + else workplan["jobs"]["test_cuda_majors"] + ) + modules = None if workplan is None else workplan["modules"] + selected = [] + for source_row in rows: + major = source_row["CUDA_VER"].split(".")[0] + variant = f"cu{major}" + if packages is not None and not enabled.get(variant, False): + continue + ctk_target = ".".join(source_row["CUDA_VER"].split(".")[:2]) + package = next((package for package in packages or [] if package["ctk_target"] == ctk_target), None) + root = "" if package is None else package["package_root"] + components = ("pathfinder", "bindings", "core", "python") + if modules is None: + tests = {f"TEST_{name.upper()}": True for name in components} + elif packages is None: + tests = {f"TEST_{name.upper()}": modules[name]["needs_test"] for name in components} + else: + tests = { + "TEST_PATHFINDER": modules["pathfinder"]["needs_test"], + "TEST_BINDINGS": package is not None and modules["bindings"]["package_roots"][root]["needs_test"], + "TEST_CORE": modules["core"]["cuda_majors"][variant]["needs_test"], + "TEST_PYTHON": package is not None and modules["python"]["package_roots"][root]["needs_test"], + } + suites = [] + if packages is not None: + if test_mode != "standard": + suites.append(test_mode) + else: + if tests["TEST_PATHFINDER"]: + suites.append("pathfinder") + if package is not None and tests["TEST_BINDINGS"]: + suites.append(f"bindings{major}") + if tests["TEST_CORE"]: + suites.append(f"core{major}") + if package is not None and tests["TEST_PYTHON"]: + suites.append(f"meta{major}") + if not suites: + continue + driver = source_row["DRIVER"] + # Custom versions are installed after scheduling on a latest-driver + # runner. WSL cannot perform that driver swap. + runner_driver = driver if driver in ("latest", "earliest") else "latest" + if platform == "linux" and runner_driver != driver and source_row.get("FLAVOR") == "wsl": + raise ValueError("custom DRIVER is not supported with FLAVOR=wsl") + row = { + **source_row, + **{name: str(value).lower() for name, value in tests.items()}, + "RUNNER_DRIVER": runner_driver, + } + if current_package is not None: + row.update( + { + "CUDA_VARIANT": variant, + "BINDINGS_SOURCE": "floor" if package is None else "local", + "BINDINGS_SOURCE_DIR": root, + "BINDINGS_BUILD_VERSION": "" if package is None else package["toolkit_version"], + "DEFAULT_BINDINGS_SOURCE_DIR": current_package["package_root"], + "CURRENT_BUILD_CUDA_VER": current_package["toolkit_version"], + "PATHFINDER_SOURCE": "artifact" if workplan is None else workplan["sources"]["pathfinder"], + "SUITES": "+".join(suites), + } + ) + selected.append(row) + if not selected: + raise ValueError("Empty matrix after CUDA-major workplan filtering") + # Nightly integrations may deliberately use published bindings with older + # toolkits. Ordinary PRs must not silently lose a required local-wheel row. + if packages is not None and test_mode == "standard" and build_type == "pull-request": + covered = {row["BINDINGS_SOURCE_DIR"] for row in selected if row["BINDINGS_SOURCE"] == "local"} + missing = [ + package["package_root"] + for package in packages + if enabled.get(package["cuda_variant"], False) + and ( + modules is None + or modules["bindings"]["package_roots"][package["package_root"]]["needs_test"] + or modules["python"]["package_roots"][package["package_root"]]["needs_test"] + ) + and package["package_root"] not in covered + ] + if missing: + raise ValueError(f"filtered test matrix omits required local-wheel coverage: {', '.join(missing)}") + return {"include": selected} + + +def main() -> None: + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--platform", choices=("linux", "windows"), required=True) + args = parser.parse_args() + try: + config = os.environ.get("BINDINGS_CONFIG") + if not config: + raise ValueError("BINDINGS_CONFIG must contain registry JSON or LEGACY_CONFIG") + result = select_test_matrix( + json.load(sys.stdin), + None if config == "LEGACY_CONFIG" else json.loads(config)["package_roots"], + workplan=json.loads(os.environ.get("WORKPLAN") or "null"), + build_type=os.environ["BUILD_TYPE"], + test_mode=os.environ["TEST_MODE"], + platform=args.platform, + ) + except ValueError as error: + parser.error(str(error)) + print(json.dumps(result, separators=(",", ":"))) + + +if __name__ == "__main__": + main() diff --git a/ci/tools/tests/AGENTS.md b/ci/tools/tests/AGENTS.md new file mode 100644 index 000000000000..86b231c76f39 --- /dev/null +++ b/ci/tools/tests/AGENTS.md @@ -0,0 +1,20 @@ +# CI Tool Tests + +These instructions apply only to tests under `ci/tools/tests/`. Package and +runtime tests follow their own guidance. + +Keep a test only when wrong behavior would be silent: nothing would fail +loudly in CI, but the result would be wrong. Cut a test when a mistake already +produces an immediate, obvious CI failure. This includes environment-variable +wiring, wheel counts, argument validation, exact pip command lines, and the +schema of a checked-in file that every CI run loads. + +Useful outcome coverage includes skipped required tests, wrong release +artifacts, incorrect version milestones, missing Core ABI variants, and +silently lost local-wheel matrix coverage. Assert those outcomes rather than +workflow text, step names, cosmetic labels, or intermediate command order. + +Use self-contained metadata fixtures so routine version and dependency bumps +do not break unrelated tests. If a test intentionally uses the live registry, +derive its toolkit and package values from that registry. Keep fixtures and +parameter sets as small as the distinct silent-failure risks allow. diff --git a/ci/tools/tests/test_bindings_config.py b/ci/tools/tests/test_bindings_config.py index 17608a3334c2..e8ff344953fc 100644 --- a/ci/tools/tests/test_bindings_config.py +++ b/ci/tools/tests/test_bindings_config.py @@ -17,7 +17,6 @@ from ci.tools import check_pixi_cuda_version from ci.tools.bindings_config import BindingsPackage, load_config, main -from ci.tools.compute_ci_plan import compute_workplan ROOT = Path(__file__).resolve().parents[3] @@ -114,18 +113,6 @@ def test_pixi_check_rejects_wrong_maintenance_major_and_broad_current_pin( assert f"{package_root}/pixi.toml" in capsys.readouterr().err -@pytest.mark.agent_authored(model="gpt-6") -def test_cuda12_source_changes_select_bindings_consumers(): - plan = compute_workplan( - ["cuda_bindings_12/cuda/bindings/_internal/utils.pyx"], merge_base="base", baseline_run_id="123" - ) - assert {name for name, decision in plan["modules"].items() if decision["needs_build"]} == { - "bindings", - "core", - "python", - } - - @pytest.mark.agent_authored(model="gpt-6") def test_cuda12_milestone_does_not_change_current_package_versions(tmp_path, monkeypatch): current = load_config(ROOT / "ci" / "versions.yml").package_for_release_status("current") diff --git a/ci/tools/tests/test_compute_ci_plan.py b/ci/tools/tests/test_compute_ci_plan.py index c08eddb6dcda..6341fcddcd2e 100644 --- a/ci/tools/tests/test_compute_ci_plan.py +++ b/ci/tools/tests/test_compute_ci_plan.py @@ -1,183 +1,217 @@ # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -# # SPDX-License-Identifier: Apache-2.0 -from __future__ import annotations +"""Protect CI selection outcomes that could otherwise silently omit coverage.""" -import tempfile -import unittest +from dataclasses import replace from pathlib import Path +import pytest + +from ci.tools.bindings_config import BindingsConfig, BindingsPackage, load_config from ci.tools.compute_ci_plan import _expand_linked_paths, compute_workplan -ALL_MODULES = {"pathfinder", "bindings", "core", "python"} -ALL_PLATFORMS = {"linux", "windows"} +CONFIG = load_config() +PACKAGES = CONFIG.package_roots +ROOTS = {package.package_root for package in PACKAGES} +VARIANTS = {package.cuda_variant for package in PACKAGES} +BINDINGS = {("bindings", root) for root in ROOTS} +CORE = {("core", variant) for variant in VARIANTS} +META = {("python", root) for root in ROOTS} +ALL = {("pathfinder", None), *BINDINGS, *CORE, *META} -def plan_for( - *paths: str, - baseline: bool = True, - linked_paths: set[str] | None = None, -) -> dict[str, object]: +def plan_for(*paths, baseline=True, release_tag="", config=CONFIG, linked_paths=()): return compute_workplan( - list(paths), + bindings_config=config, + paths=list(paths), + linked_paths=set(linked_paths), merge_base="base", baseline_run_id="123" if baseline else "", - linked_paths=linked_paths, + release_tag=release_tag, ) -def selected(plan: dict[str, object], key: str) -> set[str]: - modules = plan["modules"] - assert isinstance(modules, dict) - return {name for name, decision in modules.items() if decision[key]} - - -def selected_platforms(plan: dict[str, object]) -> set[str]: - jobs = plan["jobs"] - assert isinstance(jobs, dict) - platforms = jobs["platforms"] - assert isinstance(platforms, dict) - assert set(platforms) == ALL_PLATFORMS - return {name for name, enabled in platforms.items() if enabled} - - -class ComputeWorkplanTest(unittest.TestCase): - def test_path_impacts(self) -> None: - cases = { - "cuda_pathfinder/cuda/pathfinder/_loader.py": (ALL_MODULES, ALL_MODULES, False), - "cuda_bindings_13/cuda/bindings/driver.pyx": ( - {"bindings", "core", "python"}, - {"bindings", "core", "python"}, - False, - ), - "cuda_core/cuda/core/_device.py": ({"core"}, {"core", "python"}, True), - "cuda_core/cuda/core/examples/demo.py": ({"core"}, {"core", "python"}, True), - "cuda_python/pyproject.toml": ({"bindings", "python"}, {"python"}, False), - "cuda_pathfinder/tests/test_loader.py": (set(), {"pathfinder"}, False), - "cuda_bindings_13/examples/0_Introduction/vectorAddDrv.py": (set(), {"bindings"}, False), - "cuda_bindings_13/tests/README.md": (set(), {"bindings"}, False), - "cuda_core/pytest.ini": (set(), {"core"}, False), - "cuda_python/tests/test_import.py": (set(), {"python"}, False), - "cuda_python_test_helpers/cuda_python_test_helpers/cuda_utils.py": ( - set(), - ALL_MODULES, - False, - ), - "benchmarks/cuda_bindings/run_pyperf.py": (set(), ALL_MODULES, False), - "benchmarks/cuda_core/runner.py": (set(), ALL_MODULES, False), - "ci/tools/run-tests": (ALL_MODULES, ALL_MODULES, True), - "ci/versions.yml": (ALL_MODULES, ALL_MODULES, True), - "pytest.ini": (ALL_MODULES, ALL_MODULES, True), - } - - for path, (builds, tests, core_api) in cases.items(): - with self.subTest(path=path): - plan = plan_for(path) - assert selected(plan, "needs_build") == builds - assert selected(plan, "needs_test") == tests - assert selected_platforms(plan) == ALL_PLATFORMS - assert plan["jobs"]["sdist_tests"] == bool(builds) - assert plan["jobs"]["core_api_checks"] == core_api - - def test_test_infrastructure_platforms(self) -> None: - cases = { - ".github/workflows/test-wheel-linux.yml": {"linux"}, - ".github/workflows/test-wheel-windows.yml": {"windows"}, - "ci/tools/configure_driver_mode.ps1": {"windows"}, - "ci/tools/install_gpu_driver.ps1": {"windows"}, - "ci/tools/install_gpu_driver.sh": {"linux"}, - "ci/tools/setup-sanitizer": {"linux"}, - } - - for path, platforms in cases.items(): - with self.subTest(path=path): - plan = plan_for(path) - assert not selected(plan, "needs_build") - assert selected(plan, "needs_test") == ALL_MODULES - assert selected_platforms(plan) == platforms - assert not plan["jobs"]["sdist_tests"] - assert not plan["jobs"]["core_api_checks"] - - mixed_plan = plan_for("ci/tools/install_gpu_driver.sh", "ci/tools/install_gpu_driver.ps1") - assert selected_platforms(mixed_plan) == ALL_PLATFORMS - - source_plan = plan_for("ci/tools/install_gpu_driver.sh", "cuda_python/pyproject.toml") - assert selected_platforms(source_plan) == ALL_PLATFORMS - - def test_ignored_paths_select_no_work(self) -> None: - for path in ( - "cuda_core/docs/index.rst", - "cuda_core/pixi.toml", - "cuda_core/tests/fixtures/pixi.toml", - "benchmarks/cuda_bindings/pixi.toml", - "benchmarks/cuda_bindings/AGENTS.md", - "cuda_core/cuda/core/_cpp/rt/DESIGN.md", - "cuda_bindings_13/README.md", - "cuda_core/README.md", - "new-area/pixi.toml", - "notes.md", - "diagram.svg", - ".github/labeler.yml", - ".github/ISSUE_TEMPLATE/bug.yml", - ".github/workflows/runner-trust-probe.yml", - "ci/tools/runner_trust_probe.sh", - "ci/tools/runner_trust_probe.ps1", - "ci/tools/runner_trust_probe_node.js", - ): - with self.subTest(path=path): - plan = plan_for(path) - assert not selected(plan, "needs_build") - assert not selected(plan, "needs_test") - assert not selected_platforms(plan) - - def test_unknown_path_and_missing_baseline_force_all(self) -> None: - for plan in ( - plan_for("new-top-level-file"), - plan_for("new-area/config.toml"), - plan_for(".github/workflows/new-main-ci-workflow.yml"), - plan_for(".github/actions/doc_preview/action.yml"), - plan_for("cuda_core/docs/index.rst", baseline=False), - compute_workplan([], merge_base="", baseline_run_id="123"), - ): - assert selected(plan, "needs_build") == ALL_MODULES - assert selected(plan, "needs_test") == ALL_MODULES - assert selected_platforms(plan) == ALL_PLATFORMS - assert plan["jobs"]["core_api_checks"] - assert plan["baseline"] == {"run_id": "", "sha": ""} - - def test_mixed_changes_are_combined(self) -> None: - plan = plan_for("cuda_core/tests/test_device.py", "cuda_python/pyproject.toml") - assert selected(plan, "needs_build") == {"bindings", "python"} - assert selected(plan, "needs_test") == {"core", "python"} - assert selected_platforms(plan) == ALL_PLATFORMS - assert plan["jobs"]["sdist_tests"] - assert plan["baseline"] == {"run_id": "123", "sha": "base"} - - def test_changed_symlink_targets_include_their_consumers(self) -> None: - with tempfile.TemporaryDirectory() as directory: - root = Path(directory) - (root / "cuda_python").mkdir() - (root / "cuda_core").mkdir() - (root / "README.md").write_text("readme", encoding="utf-8") - (root / "cuda_python" / "README.md").symlink_to("../README.md") - (root / "cuda_core" / "README.md").symlink_to("../README.md") - - paths = _expand_linked_paths( - ["README.md"], - ["cuda_python/README.md"], - root=root, - ) - - assert paths == ["README.md", "cuda_python/README.md"] - plan = plan_for(*paths, linked_paths={"cuda_python/README.md"}) - assert selected(plan, "needs_build") == {"bindings", "python"} - assert selected(plan, "needs_test") == {"python"} - - removed_link = plan_for("cuda_python/README.md", linked_paths={"cuda_python/README.md"}) - assert selected(removed_link, "needs_build") == {"bindings", "python"} - assert selected(removed_link, "needs_test") == {"python"} - - -if __name__ == "__main__": - unittest.main() +def selected(plan, decision): + targets = set() + for component, details in plan["modules"].items(): + if component == "pathfinder": + if details[decision]: + targets.add((component, None)) + continue + selectors = details["cuda_majors" if component == "core" else "package_roots"] + targets.update((component, selector) for selector, flags in selectors.items() if flags[decision]) + return targets + + +@pytest.mark.parametrize( + ("path", "builds", "tests"), + [ + ("cuda_pathfinder/cuda/pathfinder/_loader.py", ALL, ALL), + ("cuda_core/cuda/core/_device.py", CORE, CORE | META), + ("cuda_python/setup.py", BINDINGS | META, META), + ("cuda_core/tests/test_device.py", set(), CORE), + ("cuda_pathfinder/tests/test_loader.py", set(), {("pathfinder", None)}), + ("cuda_python/tests/test_import.py", set(), META), + ("cuda_python_test_helpers/cuda_python_test_helpers/cuda_utils.py", set(), ALL), + ("benchmarks/cuda_bindings/run_pyperf.py", set(), ALL), + ], +) +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_source_and_test_changes_select_their_consumers(path, builds, tests): + plan = plan_for(path) + assert selected(plan, "needs_build") == builds + assert selected(plan, "needs_test") == tests + assert plan["scheduler"]["platform-linux"] and plan["scheduler"]["platform-windows"] + + +@pytest.mark.parametrize("package", PACKAGES, ids=lambda package: package.package_root) +@pytest.mark.agent_authored(model="gpt-6") +def test_bindings_changes_reuse_core_and_test_the_matching_major(package): + own = {("bindings", package.package_root), ("python", package.package_root)} + plan = plan_for(f"{package.package_root}/cuda/bindings/driver.pyx") + assert selected(plan, "needs_build") == own + assert selected(plan, "needs_test") == own | {("core", package.cuda_variant)} + assert plan["baseline"] == {"run_id": "123", "sha": "base"} + assert {record["package_root"] for record in plan["jobs"]["sdist_packages"]} == {package.package_root} + sdist = plan["jobs"]["sdist_packages"][0] + assert sdist["build_bindings"] and sdist["build_python"] + assert not sdist["build_core"] and not sdist["build_pathfinder"] + + tests_only = plan_for(f"{package.package_root}/tests/test_driver.py") + assert selected(tests_only, "needs_build") == set() + assert selected(tests_only, "needs_test") == {("bindings", package.package_root)} + + +@pytest.mark.parametrize("path", ["ci/tools/ci_env.py", ".github/workflows/build-wheel.yml", "unknown-build-input"]) +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_shared_or_unknown_infrastructure_requires_every_component(path): + plan = plan_for(path) + assert selected(plan, "needs_build") == ALL + assert selected(plan, "needs_test") == ALL + assert plan["baseline"]["run_id"] == "" + + +@pytest.mark.parametrize("platform", ["linux", "windows"]) +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_platform_test_infrastructure_reuses_wheels_but_runs_every_suite(platform): + plan = plan_for(f".github/workflows/test-wheel-{platform}.yml") + assert selected(plan, "needs_build") == set() + assert selected(plan, "needs_test") == ALL + assert {name for name in ("linux", "windows") if plan["scheduler"][f"platform-{name}"]} == {platform} + + +@pytest.mark.agent_authored(model="gpt-6") +def test_windows_arm64_runs_only_for_selected_platforms_and_supported_bindings(): + config = BindingsConfig( + ( + BindingsPackage("cuda_bindings_12", (12, 9, 1), "maintenance"), + BindingsPackage("cuda_bindings_13", (13, 5, 0), "current"), + ), + ("3.10", "3.12"), + ) + full = plan_for(baseline=False, config=config) + assert full["scheduler"]["windows-arm64-build"] + assert full["jobs"]["wheel_python_versions"]["linux-64"] == ["3.10", "3.12"] + assert full["jobs"]["wheel_python_versions"]["win-arm64"] == ["3.12"] + assert not plan_for(".github/workflows/test-wheel-linux.yml", config=config)["scheduler"]["windows-arm64-build"] + assert not plan_for(release_tag="v12.9.11", config=config)["scheduler"]["windows-arm64-build"] + + +@pytest.mark.parametrize( + "path", + [ + "README.md", + "AGENTS.md", + "cuda_core/docs/source/install.rst", + "cuda_core/pixi.lock", + "cuda_core/pixi.toml", + ".github/workflows/runner-trust-probe.yml", + "ci/tools/runner_trust_probe.sh", + "ci/tools/runner_trust_probe.ps1", + "ci/tools/runner_trust_probe_node.js", + ], +) +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_documentation_and_environment_only_changes_do_not_rebuild_packages(path): + plan = plan_for(path) + assert selected(plan, "needs_build") == set() + assert selected(plan, "needs_test") == set() + + +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_missing_baselines_and_non_bindings_tags_require_full_coverage(): + cases = [plan_for(baseline=False), plan_for(release_tag="cuda-core-v1.3.0")] + cases.extend(plan_for(f"{package.package_root}/cuda/bindings/driver.pyx", baseline=False) for package in PACKAGES) + for plan in cases: + assert selected(plan, "needs_build") == ALL + assert selected(plan, "needs_test") == ALL + assert plan["baseline"] == {"run_id": "", "sha": ""} + + +@pytest.mark.parametrize("package", PACKAGES, ids=lambda package: package.package_root) +@pytest.mark.agent_authored(model="gpt-6") +def test_release_tags_build_only_their_own_bindings_and_metapackage(package): + plan = plan_for("ci/tools/ci_env.py", release_tag=f"v{package.ctk_target}.99") + expected = {("bindings", package.package_root), ("python", package.package_root)} + assert selected(plan, "needs_build") == expected + assert selected(plan, "needs_test") == expected + assert plan["sources"]["pathfinder"] == "published" + assert plan["baseline"]["run_id"] == "" + assert {record["package_root"] for record in plan["jobs"]["sdist_packages"]} == {package.package_root} + sdist = plan["jobs"]["sdist_packages"][0] + assert sdist["build_bindings"] and sdist["build_python"] + assert not sdist["build_core"] and not sdist["build_pathfinder"] + assert sdist["pathfinder_source"] == "published" + + +@pytest.mark.parametrize("component", ("core", "pathfinder")) +@pytest.mark.agent_authored(model="gpt-6") +def test_sdist_records_keep_both_core_abis_and_build_shared_pathfinder_once(component): + path = "cuda_core/cuda/core/_device.py" if component == "core" else "cuda_pathfinder/cuda/pathfinder/_loader.py" + records = plan_for(path)["jobs"]["sdist_packages"] + + assert {record["package_root"] for record in records} == ROOTS + assert all(record["build_core"] for record in records) + pathfinder_roots = [record["package_root"] for record in records if record["build_pathfinder"]] + assert pathfinder_roots == ( + [CONFIG.package_for_release_status("current").package_root] if component == "pathfinder" else [] + ) + assert all(record["build_bindings"] == (component == "pathfinder") for record in records) + assert all(record["build_python"] == (component == "pathfinder") for record in records) + + +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_mixed_changes_combine_coverage_without_rebuilding_unchanged_core(): + package = PACKAGES[0] + plan = plan_for(f"{package.package_root}/cuda/bindings/driver.pyx", "cuda_core/tests/test_device.py") + own = {("bindings", package.package_root), ("python", package.package_root)} + assert selected(plan, "needs_build") == own + assert selected(plan, "needs_test") == own | CORE + + both = plan_for(*(f"{package.package_root}/cuda/bindings/driver.pyx" for package in PACKAGES)) + assert selected(both, "needs_build") == BINDINGS | META + assert selected(both, "needs_test") == BINDINGS | CORE | META + + +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_symlinked_package_inputs_are_not_mistaken_for_documentation_only(tmp_path: Path): + (tmp_path / "cuda_python").mkdir() + (tmp_path / "README.md").write_text("readme", encoding="utf-8") + (tmp_path / "cuda_python" / "README.md").symlink_to("../README.md") + paths = _expand_linked_paths(["README.md"], ["cuda_python/README.md"], root=tmp_path) + for changes in (paths, ["cuda_python/README.md"]): + plan = plan_for(*changes, linked_paths={"cuda_python/README.md"}) + assert selected(plan, "needs_build") == BINDINGS | META + assert selected(plan, "needs_test") == META + + +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_registered_source_roots_drive_bindings_selection(): + packages = tuple(replace(package, package_root=f"renamed_{index}") for index, package in enumerate(PACKAGES)) + config = replace(CONFIG, package_roots=packages) + package = packages[0] + plan = plan_for(f"{package.package_root}/cuda/bindings/driver.pyx", config=config) + own = {("bindings", package.package_root), ("python", package.package_root)} + assert selected(plan, "needs_build") == own + assert selected(plan, "needs_test") == own | {("core", package.cuda_variant)} diff --git a/ci/tools/tests/test_merge_cuda_core_wheels.py b/ci/tools/tests/test_merge_cuda_core_wheels.py new file mode 100644 index 000000000000..b1eab55e2917 --- /dev/null +++ b/ci/tools/tests/test_merge_cuda_core_wheels.py @@ -0,0 +1,38 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +from zipfile import ZipFile + +import pytest +from wheel.wheelfile import WheelFile + +from ci.tools.merge_cuda_core_wheels import merge_wheels + + +@pytest.mark.agent_authored(model="gpt-6-astra") +def test_merged_wheel_preserves_floor_helper_and_all_abi_variants(tmp_path): + wheels = [] + floor_helper = "SUPPORTED_BINDINGS = {12: '12.9.8', 13: '13.4.1'}\n" + for major in (12, 13): + path = tmp_path / f"cuda_core-1.2.3-py3-none-any.cu{major}.whl" + with WheelFile(path, "w") as wheel: + wheel.writestr("cuda/core/__init__.py", "from . import _bindings_floor\n") + wheel.writestr("cuda/core/_version.py", "__version__ = '1.2.3'\n") + wheel.writestr("cuda/core/_bindings_floor.py", floor_helper) + wheel.writestr("cuda/core/_abi.py", f"CUDA_MAJOR = {major}\n") + wheel.writestr( + "cuda_core-1.2.3.dist-info/METADATA", "Metadata-Version: 2.1\nName: cuda-core\nVersion: 1.2.3\n" + ) + wheel.writestr( + "cuda_core-1.2.3.dist-info/WHEEL", + "Wheel-Version: 1.0\nGenerator: test\nRoot-Is-Purelib: true\nTag: py3-none-any\n", + ) + wheels.append(path) + + merged = merge_wheels(wheels, tmp_path / "merged", show_wheel_contents=False) + + with ZipFile(merged) as wheel: + assert wheel.read("cuda/core/_bindings_floor.py").decode() == floor_helper + for major in (12, 13): + assert wheel.read(f"cuda/core/cu{major}/_abi.py").decode() == f"CUDA_MAJOR = {major}\n" + assert "cuda/core/_abi.py" not in wheel.namelist() diff --git a/ci/tools/tests/test_select_pixi_packages.py b/ci/tools/tests/test_select_pixi_packages.py new file mode 100644 index 000000000000..eba104e6cdb0 --- /dev/null +++ b/ci/tools/tests/test_select_pixi_packages.py @@ -0,0 +1,53 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +"""Protect source-build selection that could otherwise silently omit a root.""" + +import pytest + +from ci.tools.bindings_config import BindingsConfig, BindingsPackage +from ci.tools.select_pixi_packages import select_pixi_packages + +MAINTENANCE = BindingsPackage("maintenance_bindings", (12, 9, 1), "maintenance") +CURRENT = BindingsPackage("current_bindings", (13, 4, 2), "current") +CONFIG = BindingsConfig((CURRENT, MAINTENANCE), ("3.13",)) + + +@pytest.mark.parametrize("package", CONFIG.package_roots, ids=lambda package: package.release_status) +@pytest.mark.parametrize("relative", ("cuda/bindings/driver.pyx", "pixi.lock", "docs/source/install.rst")) +@pytest.mark.agent_authored(model="gpt-6") +def test_package_source_manifest_and_docs_changes_select_only_their_root(package, relative): + selected, docs = select_pixi_packages(CONFIG, paths=[f"{package.package_root}/{relative}"], linked_paths=set()) + + assert selected == [package] + assert docs == ([package] if relative.startswith("docs/") else []) + + +@pytest.mark.parametrize("path", ("cuda_core/build_hooks.py", "cuda_core/pixi.toml")) +@pytest.mark.agent_authored(model="gpt-6") +def test_shared_abi_or_environment_changes_select_both_roots(path): + selected, docs = select_pixi_packages(CONFIG, paths=[path], linked_paths=set()) + + assert set(selected) == set(CONFIG.package_roots) + assert docs == [] + + +@pytest.mark.agent_authored(model="gpt-6") +def test_mixed_docs_and_manifest_changes_keep_both_builds_but_only_changed_docs(): + selected, docs = select_pixi_packages( + CONFIG, + paths=[f"{MAINTENANCE.package_root}/docs/source/install.rst", f"{CURRENT.package_root}/pixi.toml"], + linked_paths=set(), + ) + + assert set(selected) == set(CONFIG.package_roots) + assert docs == [MAINTENANCE] + + +@pytest.mark.parametrize(("cuda_env", "package"), (("", CURRENT), ("cu12", MAINTENANCE))) +@pytest.mark.agent_authored(model="gpt-6") +def test_manual_runs_select_current_by_default_or_the_requested_registered_abi(cuda_env, package): + selected, docs = select_pixi_packages(CONFIG, paths=[], linked_paths=set(), cuda_env=cuda_env) + + assert selected == [package] + assert docs == [] diff --git a/ci/tools/tests/test_select_test_matrix.py b/ci/tools/tests/test_select_test_matrix.py new file mode 100644 index 000000000000..782d82059e02 --- /dev/null +++ b/ci/tools/tests/test_select_test_matrix.py @@ -0,0 +1,141 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +import io +import json +import sys + +import pytest + +from ci.tools.select_test_matrix import main, select_test_matrix + +PACKAGES = [ + { + "package_root": "bindings12", + "toolkit_version": "12.9.1", + "ctk_target": "12.9", + "cuda_variant": "cu12", + "release_status": "maintenance", + }, + { + "package_root": "bindings13", + "toolkit_version": "13.4.2", + "ctk_target": "13.4", + "cuda_variant": "cu13", + "release_status": "current", + }, +] + + +def rows(*toolkits): + return [{"CUDA_VER": toolkit, "DRIVER": "latest"} for toolkit in toolkits] + + +def plan(*, bindings=False, core=True, meta=False): + return { + "jobs": {"test_cuda_majors": {"cu12": True, "cu13": False}}, + "sources": {"pathfinder": "artifact"}, + "modules": { + "pathfinder": {"needs_test": False}, + "bindings": { + "needs_test": bindings, + "package_roots": {package["package_root"]: {"needs_test": bindings} for package in PACKAGES}, + }, + "core": {"needs_test": core, "cuda_majors": {"cu12": {"needs_test": core}, "cu13": {"needs_test": core}}}, + "python": { + "needs_test": meta, + "package_roots": {package["package_root"]: {"needs_test": meta} for package in PACKAGES}, + }, + }, + } + + +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_exact_toolkit_rows_use_local_bindings_and_older_toolkits_use_published_floors(): + matrix = select_test_matrix(rows("12.9.1", "12.6.3", "13.4.2", "13.0.2"), PACKAGES) + + assert [(row["CUDA_VARIANT"], row["BINDINGS_SOURCE"], row["BINDINGS_SOURCE_DIR"]) for row in matrix["include"]] == [ + ("cu12", "local", "bindings12"), + ("cu12", "floor", ""), + ("cu13", "local", "bindings13"), + ("cu13", "floor", ""), + ] + + +@pytest.mark.agent_authored(model="gpt-6") +def test_workplan_retains_only_the_required_cuda_major_and_suites(): + matrix = select_test_matrix( + rows("12.9.1", "12.6.3", "13.4.2"), PACKAGES, workplan=plan(bindings=True, core=False, meta=True) + ) + + # Without Core or Pathfinder tests the older-toolkit row has no applicable + # suites. The required maintenance bindings/metapackage row must remain. + assert [(row["CUDA_VER"], row["BINDINGS_SOURCE_DIR"]) for row in matrix["include"]] == [("12.9.1", "bindings12")] + row = matrix["include"][0] + assert row["TEST_BINDINGS"] == row["TEST_PYTHON"] == "true" + assert row["TEST_PATHFINDER"] == row["TEST_CORE"] == "false" + assert row["SUITES"] == "bindings12+meta12" + + +@pytest.mark.parametrize("component", ("bindings", "meta")) +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_filter_cannot_silently_drop_required_local_wheel_coverage(component): + with pytest.raises(ValueError, match="omits required local-wheel coverage: bindings12"): + select_test_matrix(rows("12.6.3", "13.4.2"), PACKAGES, workplan=plan(**{component: True})) + + +@pytest.mark.parametrize("test_mode", ("nightly-pytorch", "standard")) +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_nightly_subsets_may_use_published_floor_bindings(test_mode): + matrix = select_test_matrix(rows("12.6.3"), PACKAGES, build_type="nightly", test_mode=test_mode) + + assert [row["BINDINGS_SOURCE"] for row in matrix["include"]] == ["floor"] + + +@pytest.mark.agent_authored(model="gpt-6") +def test_toolkit_patch_updates_keep_nightly_bindings_coverage(): + packages = [dict(package) for package in PACKAGES] + packages[1]["toolkit_version"] = "13.4.3" + + row = select_test_matrix(rows("13.4.2"), packages, build_type="nightly")["include"][0] + + assert row["BINDINGS_SOURCE"] == "local" + assert row["BINDINGS_BUILD_VERSION"] == "13.4.3" + assert {"bindings13", "meta13"} <= set(row["SUITES"].split("+")) + + +@pytest.mark.agent_authored(model="gpt-6") +def test_core_only_workplan_retains_floor_tests_without_enabling_local_binding_tests(): + matrix = select_test_matrix(rows("12.9.1", "12.6.3"), PACKAGES, workplan=plan()) + + assert [row["BINDINGS_SOURCE"] for row in matrix["include"]] == ["local", "floor"] + for row in matrix["include"]: + assert row["TEST_CORE"] == "true" + assert row["TEST_BINDINGS"] == row["TEST_PYTHON"] == "false" + assert row["SUITES"] == "core12" + + +@pytest.mark.parametrize("workplan", (None, {"modules": plan(bindings=True, core=False, meta=True)["modules"]})) +@pytest.mark.agent_authored(model="gpt-6") +def test_legacy_snapshots_keep_all_rows_and_aggregate_suite_gates(workplan): + source_rows = rows("12.6.3", "13.4.2") + matrix = select_test_matrix(source_rows, None, workplan=workplan) + + assert [row["CUDA_VER"] for row in matrix["include"]] == [row["CUDA_VER"] for row in source_rows] + for row in matrix["include"]: + assert row["TEST_BINDINGS"] == row["TEST_PYTHON"] == "true" + assert row["TEST_PATHFINDER"] == row["TEST_CORE"] == ("true" if workplan is None else "false") + + +@pytest.mark.agent_authored(model="gpt-6") +def test_empty_workflow_input_cannot_silently_select_legacy_routing(monkeypatch, capsys): + monkeypatch.setenv("BINDINGS_CONFIG", "") + monkeypatch.setenv("BUILD_TYPE", "pull-request") + monkeypatch.setenv("TEST_MODE", "standard") + monkeypatch.setattr(sys, "argv", ["select_test_matrix.py", "--platform", "linux"]) + monkeypatch.setattr(sys, "stdin", io.StringIO(json.dumps(rows("13.4.2")))) + + with pytest.raises(SystemExit, match="2"): + main() + + assert "BINDINGS_CONFIG must contain registry JSON or LEGACY_CONFIG" in capsys.readouterr().err diff --git a/ci/versions.yml b/ci/versions.yml index e1238c28756f..094d6c7a510c 100644 --- a/ci/versions.yml +++ b/ci/versions.yml @@ -17,8 +17,7 @@ cuda: version: "12.9.1" python: - # Python versions the wheel matrix is built across. ci.yml reads this list - # and passes it to build-wheel.yml as the `python-versions` input. + # Shared wheel build matrix, also read from tagged sources during releases. supported: - "3.11" - "3.12" From 9a44af1e5d0ca7d8c0671e440c8838a001e3866c Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Thu, 12 Nov 2026 21:24:58 -0800 Subject: [PATCH 42/85] ci: retire legacy branch-based bindings maintenance (#3322) * ci: retire legacy branch-based bindings maintenance Signed-off-by: Ralf W. Grosse-Kunstleve * ci: check Core maintenance Pixi toolkit pin [skip ci] Signed-off-by: Ralf W. Grosse-Kunstleve * ci: read only nightly artifact-source configuration Signed-off-by: Ralf W. Grosse-Kunstleve * Address migration review: simplify configuration and tooling Signed-off-by: Ralf W. Grosse-Kunstleve * Pass coverage wheel build toolkit explicitly Signed-off-by: Ralf W. Grosse-Kunstleve * docs: align SCM selector and tagged-build guidance Signed-off-by: Ralf W. Grosse-Kunstleve * Document retained CUDA 12 SCM milestone Signed-off-by: Ralf W. Grosse-Kunstleve * Link maintenance guidance to the dual-tag release procedure Signed-off-by: Ralf W. Grosse-Kunstleve * ci: read toolkit manifest pins from bindings registry Signed-off-by: Ralf W. Grosse-Kunstleve * ci: tighten configuration-job credentials and clarify maintenance prerequisites * ci: pass the coverage toolkit to test environment setup * ci: mark legacy nightly sources explicitly * Require explicit CUDA-major selection for metapackage source builds * Factor nightly artifact-source configuration parsing * Remove retired backport automation * Trim migration documentation and apply remaining review fixes --------- Signed-off-by: Ralf W. Grosse-Kunstleve --- .github/RELEASE-bindings.md | 60 ++---- .github/dependabot.yml | 22 -- .github/workflows/backport.yml | 76 ------- .github/workflows/build-wheel.yml | 16 -- .github/workflows/ci-nightly.yml | 58 ++++-- .github/workflows/coverage.yml | 47 ++++- .github/workflows/test-wheel-linux.yml | 9 +- .github/workflows/test-wheel-windows.yml | 9 +- .pre-commit-config.yaml | 12 +- AGENTS.md | 30 ++- CONTRIBUTING.md | 188 +++++++++--------- README.md | 9 +- ci/README.md | 172 +++++++++++++++- ci/ci-pipeline.mmd | 24 ++- ci/tools/bindings_config.py | 99 ++++++++- ci/tools/build_docs_for_link_check.sh | 2 +- ci/tools/check_pixi_cuda_version.py | 3 +- ci/tools/tests/test_bindings_config.py | 67 ++++++- ci/tools/tests/test_bindings_metadata.py | 81 ++++++++ ci/tools/tests/test_cuda_python_setup.py | 46 ++++- ci/tools/tests/test_fetch_ctk_redistrib.py | 5 +- ci/versions.yml | 15 +- cuda_bindings_12/AGENTS.md | 32 ++- cuda_bindings_12/README.md | 26 ++- cuda_bindings_12/docs/README.md | 18 +- cuda_bindings_12/docs/source/contribute.md | 18 +- cuda_bindings_12/docs/source/install.md | 39 +++- .../docs/source/release/12.X.Y-notes.rst | 8 + cuda_bindings_13/AGENTS.md | 8 +- cuda_bindings_13/README.md | 5 +- cuda_bindings_13/docs/README.md | 8 +- cuda_bindings_13/docs/source/install.rst | 18 +- cuda_bindings_13/docs/source/support.rst | 4 +- cuda_core/AGENTS.md | 17 +- cuda_core/cuda/core/_bindings_floor.py | 6 +- cuda_core/tests/test_bindings_floor.py | 20 +- cuda_python/AGENTS.md | 12 +- cuda_python/setup.py | 31 +-- toolshed/check_cuda_core_bindings_floor.py | 35 +--- 39 files changed, 886 insertions(+), 469 deletions(-) delete mode 100644 .github/workflows/backport.yml create mode 100644 ci/tools/tests/test_bindings_metadata.py diff --git a/.github/RELEASE-bindings.md b/.github/RELEASE-bindings.md index 38be115d1908..7b903b21cb2f 100644 --- a/.github/RELEASE-bindings.md +++ b/.github/RELEASE-bindings.md @@ -13,38 +13,19 @@ Release each line independently. A bindings release also needs its matching `cuda-python` metapackage release; it does not require a release of the other CUDA major, `cuda-core`, or `cuda-pathfinder`. -Major-line maintenance may include selected API, Python, platform, or other -compatibility changes. Decide those changes explicitly and describe them in -the release notes. Once a patch release is frozen, admit only its approved -fixes and release prerequisites. Do not infer patch-release scope solely -from the registry's `maintenance` role. - -For an ordinary release, select a tested commit on `main`. If stabilization -must continue while development advances, create a short release branch such -as `release/bindings-12.9.11` from the chosen commit. For an emergency after a -release, start from its exact tag, provided that tag contains the new package -layout. For the first release after this transition, use a validated commit -containing both roots. Keep routine development on `main`; the historical -`12.9.x` branch stays frozen except for emergency fixes using compatible -historical tooling. Reconcile those fixes into the main-tree maintenance -root. Keep the package layout and release tooling together on new release branches. - +Select a tested source commit containing the intended package directory. Record the source commit, intended tag, selected package root, release owner, -and accepted changes in the release checklist. A branch is a temporary scope -boundary, not a separate long-term home for shared infrastructure. - -## Move fixes between integration and release branches +and accepted changes in the release checklist. -Prefer a reviewed fix on `main`, then backport it to the selected release -branch in a separate PR. Inspect the diff, request CI using the normal PR -approval procedure, and review it before merging. Conflicts and toolkit-specific -generated changes require an explicitly reviewed adaptation. +## Apply fixes across CUDA-major directories -If urgency requires a fix on the release branch first, link a follow-up PR -reconciling the fix back into `main` before closing the release checklist. In either -direction, assess both bindings roots and record why a change applies to one -or both. Regenerate affected generated files from the intended toolkit and -cybind inputs instead of blindly copying generated output between majors. +CUDA 12 and CUDA 13 sources occupy separate directories on `main`. Assess +fixes in both directories and record the matching change or why it does not +apply. For handwritten changes, the contribution guide gives a +[path-relative patch example](../CONTRIBUTING.md#transferring-fixes-between-bindings-roots). +Regenerate generated files from their generation source and each directory's +intended toolkit inputs. Follow the +[shared regeneration and review guidance](../ci/README.md#maintaining-both-bindings-roots). ## Validate and publish the selected line @@ -70,9 +51,8 @@ cybind inputs instead of blindly copying generated output between majors. `vX.Y.Z` GitHub Release draft. Check its release notes, versioned documentation links, source archive, checksum, and wheels. These component workflows leave the draft for the release owner to publish. -7. Finish post-release QA and announcements, return every applicable fix to - `main`, and close the stabilization effort. Retain immutable tags and the - branch history needed for diagnosis. +7. Finish post-release QA and announcements and return every applicable fix + to `main`. For a bindings `vX.Y.Z` tag, tag CI validates that line's bindings documentation. Validate the metapackage documentation in the separate `component=cuda-python` @@ -86,19 +66,17 @@ and its matching metapackage version to [`cuda_python/docs/nv-versions.json`](../cuda_python/docs/nv-versions.json) on `main`. Documentation deployments from `main` own these shared version selectors. Release deployments publish versioned pages without replacing the -selectors or shared `latest` pages; updating a selector only on a stabilization -branch will not update the public selector. +selectors or shared `latest` pages. The workflow revision used for a release is its **control revision**; the tagged commit is its **source revision**. Record both and the artifact CI run ID. Release routing uses the package layout and toolkit settings in -`ci/versions.yml` at the release tag. Retained CUDA 13 tags also support the -older `cuda.build.version` configuration, the `cuda_bindings` source directory, -and their original build matrix and metapackage artifact name. New CUDA 12 -releases require the local `cuda_bindings_12` root and toolkit-qualified -artifacts. The workflow control revision never supplies missing tagged toolkit -settings or replaces tagged release notes. Older CUDA 12 branch releases use -their compatible historical tooling. +`ci/versions.yml` at the release tag. When retrying an interrupted CUDA 13 +release, retained tags can use their original configuration, source layout, +build matrix, and artifact names while those artifacts remain available. +New CUDA 12 releases require the local `cuda_bindings_12` directory and +toolkit-qualified artifacts. The workflow control revision never supplies +missing tagged toolkit settings or replaces tagged release notes. In **CI: Release**, normal bindings and metapackage releases each require their own exact-version, nonempty release notes in the tagged source. Notes diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 7a87fb3ac04a..43c274686bda 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -55,25 +55,3 @@ updates: time: "09:00" timezone: "America/Los_Angeles" open-pull-requests-limit: 1 - - # GitHub Actions updates targeting the 12.9.x branch - - package-ecosystem: github-actions - directories: - - / - - /.github/actions/* - target-branch: "12.9.x" # keep in sync with backport_branch in ci/versions.yml - schedule: - interval: "monthly" - time: "09:00" - timezone: "America/Los_Angeles" - - # Keep churn down: only one open PR from this ecosystem at a time - open-pull-requests-limit: 1 - - groups: - actions-monthly: - applies-to: version-updates - patterns: ["*"] - update-types: ["major", "minor", "patch"] - - labels: [CI/CD, dependencies] diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml deleted file mode 100644 index cb64af94faf1..000000000000 --- a/.github/workflows/backport.yml +++ /dev/null @@ -1,76 +0,0 @@ -# SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -# -# SPDX-License-Identifier: Apache-2.0 - -name: "CI: Backport the merged PR" - -on: - pull_request_target: - types: [closed, labeled] - branches: - - main - workflow_dispatch: - inputs: - backport-branch: - description: "Branch to backport commits onto" - required: false - type: string - pull-request: - description: "PR to backport" - required: true - type: number - - -permissions: - contents: write # so it can comment - pull-requests: write # so it can create pull requests - -jobs: - backport-from-pr: - name: Backport directly from a pull request - if: ${{ github.repository_owner == 'nvidia' && - github.event.pull_request.merged == true && - contains( github.event.pull_request.labels.*.name, 'to-be-backported') - }} - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - - name: Load branch name - id: get-branch - run: | - OLD_BRANCH=$(yq '.backport_branch' ci/versions.yml) - echo "OLD_BRANCH=${OLD_BRANCH}" >> $GITHUB_ENV - - - name: Create backport pull requests - uses: korthout/backport-action@8560fb503c275d433c56f05a2f64850093baa9f7 # v4.7.0 - with: - copy_assignees: true - copy_labels_pattern: true - copy_requested_reviewers: true - target_branches: ${{ env.OLD_BRANCH }} - backport-to-branch: - name: Backport a specific PR against a specific branch - if: github.repository_owner == 'nvidia' && github.event_name == 'workflow_dispatch' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - - name: Load branch from environment name - if: inputs.backport-branch == null - run: | - BACKPORT_BRANCH=$(yq '.backport_branch' ci/versions.yml) - echo "BACKPORT_BRANCH=${BRANCH}" >> $GITHUB_ENV - - - name: Load branch name from input - if: inputs.backport-branch != null - run: echo "BACKPORT_BRANCH=${{ inputs.backport-branch }}" >> $GITHUB_ENV - - - name: Create backport pull requests - uses: korthout/backport-action@8560fb503c275d433c56f05a2f64850093baa9f7 # v4.7.0 - with: - copy_assignees: true - copy_labels_pattern: true - copy_requested_reviewers: true - target_branches: ${{ env.BACKPORT_BRANCH }} - source_pr_number: ${{ inputs.pull-request }} diff --git a/.github/workflows/build-wheel.yml b/.github/workflows/build-wheel.yml index ff4f2d66c421..064c7cd7623f 100644 --- a/.github/workflows/build-wheel.yml +++ b/.github/workflows/build-wheel.yml @@ -466,14 +466,6 @@ jobs: path: cuda_python/dist/${{ env.CURRENT_CUDA_VARIANT }}/*.whl if-no-files-found: error - - name: Upload legacy CUDA13 metapackage alias - if: ${{ (env.BUILD_CUDA_PYTHON_CURRENT == 'true' || env.BASELINE_RUN_ID != '') && strategy.job-index == 0 && inputs.host-platform == 'linux-64' }} - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 - with: - name: cuda-python-wheel - path: cuda_python/dist/${{ env.CURRENT_CUDA_VARIANT }}/*.whl - if-no-files-found: error - - name: List the cuda-python artifacts directories if: ${{ (env.BUILD_CUDA_PYTHON == 'true' || env.BASELINE_RUN_ID != '') && strategy.job-index == 0 && inputs.host-platform == 'linux-64' }} run: | @@ -570,14 +562,6 @@ jobs: path: ${{ env.CUDA_CORE_CYTHON_TESTS_DIR }}/test_*${{ env.PY_EXT_SUFFIX }} if-no-files-found: error - - name: Upload legacy CUDA13 Core Cython alias - if: ${{ env.TEST_CORE_CURRENT == 'true' }} - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 - with: - name: ${{ env.CUDA_CORE_ARTIFACT_NAME }}-tests - path: ${{ env.CUDA_CORE_CYTHON_TESTS_DIR }}/test_*${{ env.PY_EXT_SUFFIX }} - if-no-files-found: error - # Note: This overwrites CUDA_PATH etc. - name: Set up maintenance mini CTK if: ${{ !inputs.single-cuda-major && (env.BUILD_BINDINGS_MAINTENANCE == 'true' || env.BUILD_CORE == 'true' || env.TEST_BINDINGS_MAINTENANCE == 'true' || env.TEST_CORE_MAINTENANCE == 'true') }} diff --git a/.github/workflows/ci-nightly.yml b/.github/workflows/ci-nightly.yml index 253a2c86e912..9285de76b329 100644 --- a/.github/workflows/ci-nightly.yml +++ b/.github/workflows/ci-nightly.yml @@ -71,30 +71,50 @@ jobs: find-wheels: if: ${{ github.repository_owner == 'nvidia' && !inputs.documentation-links-only }} runs-on: ubuntu-latest + permissions: + contents: read + actions: read outputs: RUN_ID: ${{ steps.find.outputs.run_id }} HEAD_SHA: ${{ steps.find.outputs.head_sha }} + BINDINGS_CONFIG: ${{ steps.find.outputs.bindings_config }} CUDA_BUILD_VER: ${{ steps.find.outputs.cuda_build_ver }} - BINDINGS_CONFIG: LEGACY_CONFIG + LEGACY_BACKPORT_BRANCH: ${{ steps.find.outputs.legacy_backport_branch }} steps: - name: Checkout repository uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 1 + persist-credentials: false + + - name: Set up Python + uses: ./.github/actions/setup-hardened-python + with: + python-version: "3.11" + + - name: Install CI tool dependencies + run: python -m pip install -e ./ci - name: Find latest successful CI run on main id: find env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + RELEASE_REPOSITORY: ${{ github.repository }} + REQUESTED_RUN_ID: ${{ inputs.run-id }} run: | - if [[ -n "${{ inputs.run-id }}" ]]; then - RUN_ID="${{ inputs.run-id }}" + set -euo pipefail + if [[ -n "$REQUESTED_RUN_ID" ]]; then + if [[ ! "$REQUESTED_RUN_ID" =~ ^[1-9][0-9]*$ ]]; then + echo "::error::run-id must be a positive integer" + exit 1 + fi + RUN_ID="$REQUESTED_RUN_ID" HEAD_SHA=$(gh run view "$RUN_ID" \ - -R "${{ github.repository }}" \ + -R "$RELEASE_REPOSITORY" \ --json headSha | jq -r '.headSha') else # lookup-run-id --branch --head-sha prints two lines: run_id then head_sha - OUTPUT=$(./ci/tools/lookup-run-id --branch main --head-sha "${{ github.repository }}" "CI") + OUTPUT=$(./ci/tools/lookup-run-id --branch main --head-sha "$RELEASE_REPOSITORY" "CI") RUN_ID=$(echo "$OUTPUT" | sed -n '1p') HEAD_SHA=$(echo "$OUTPUT" | sed -n '2p') fi @@ -104,20 +124,15 @@ jobs: exit 1 fi - CUDA_BUILD_VER=$(gh api \ - "repos/${{ github.repository }}/contents/ci/versions.yml?ref=$HEAD_SHA" \ - --jq '.content' \ - | base64 -d \ - | yq '.cuda.build.version') - - if [[ -z "$CUDA_BUILD_VER" || "$CUDA_BUILD_VER" == "null" ]]; then - echo "::error::Could not resolve CUDA build version from $HEAD_SHA" - exit 1 - fi + git fetch --depth=1 origin "$HEAD_SHA" + snapshot=$(mktemp -d) + trap 'rm -rf -- "$snapshot"' EXIT + git archive "$HEAD_SHA" ci/versions.yml | tar -x -C "$snapshot" + python -m ci.tools.bindings_config --config "$snapshot/ci/versions.yml" \ + --nightly-source-output "$GITHUB_OUTPUT" echo "run_id=$RUN_ID" >> $GITHUB_OUTPUT echo "head_sha=$HEAD_SHA" >> $GITHUB_OUTPUT - echo "cuda_build_ver=$CUDA_BUILD_VER" >> $GITHUB_OUTPUT # ── PyTorch interop tests ── @@ -135,6 +150,7 @@ jobs: host-platform: linux-64 bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} + legacy-backport-branch: ${{ needs.find-wheels.outputs.LEGACY_BACKPORT_BRANCH }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} test-mode: nightly-pytorch @@ -154,6 +170,7 @@ jobs: host-platform: linux-aarch64 bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} + legacy-backport-branch: ${{ needs.find-wheels.outputs.LEGACY_BACKPORT_BRANCH }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} test-mode: nightly-pytorch @@ -173,6 +190,7 @@ jobs: host-platform: win-64 bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} + legacy-backport-branch: ${{ needs.find-wheels.outputs.LEGACY_BACKPORT_BRANCH }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} test-mode: nightly-pytorch @@ -194,6 +212,7 @@ jobs: host-platform: linux-64 bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} + legacy-backport-branch: ${{ needs.find-wheels.outputs.LEGACY_BACKPORT_BRANCH }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} test-mode: nightly-numba-cuda @@ -213,6 +232,7 @@ jobs: host-platform: linux-aarch64 bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} + legacy-backport-branch: ${{ needs.find-wheels.outputs.LEGACY_BACKPORT_BRANCH }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} test-mode: nightly-numba-cuda @@ -232,6 +252,7 @@ jobs: host-platform: win-64 bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} + legacy-backport-branch: ${{ needs.find-wheels.outputs.LEGACY_BACKPORT_BRANCH }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} test-mode: nightly-numba-cuda @@ -253,6 +274,7 @@ jobs: host-platform: linux-64 bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} + legacy-backport-branch: ${{ needs.find-wheels.outputs.LEGACY_BACKPORT_BRANCH }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} test-mode: nightly-numba-cuda-mlir @@ -272,6 +294,7 @@ jobs: host-platform: win-64 bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} + legacy-backport-branch: ${{ needs.find-wheels.outputs.LEGACY_BACKPORT_BRANCH }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} test-mode: nightly-numba-cuda-mlir @@ -293,6 +316,7 @@ jobs: host-platform: linux-64 bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} + legacy-backport-branch: ${{ needs.find-wheels.outputs.LEGACY_BACKPORT_BRANCH }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} test-mode: nightly-cuda-core @@ -312,6 +336,7 @@ jobs: host-platform: win-64 bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} + legacy-backport-branch: ${{ needs.find-wheels.outputs.LEGACY_BACKPORT_BRANCH }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} test-mode: nightly-cuda-core @@ -333,6 +358,7 @@ jobs: host-platform: linux-aarch64 bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} + legacy-backport-branch: ${{ needs.find-wheels.outputs.LEGACY_BACKPORT_BRANCH }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} test-mode: standard diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index fbb5b1b5c4b8..26dcc73c4dc0 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -19,16 +19,34 @@ jobs: coverage-vars: if: ${{ github.repository_owner == 'nvidia' }} runs-on: ubuntu-latest + permissions: + contents: read outputs: + BINDINGS_CONFIG: ${{ steps.get-vars.outputs.bindings_config }} + BINDINGS_ROOT: ${{ steps.get-vars.outputs.bindings_root }} CUDA_VER: ${{ steps.get-vars.outputs.cuda_ver }} steps: - name: Checkout ${{ github.event.repository.name }} uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - name: Get CUDA version + with: + persist-credentials: false + - name: Set up Python + uses: ./.github/actions/setup-hardened-python + with: + python-version: "3.11" + + - name: Install CI tool dependencies + run: python3 -m pip install -e ./ci + + - name: Resolve current CUDA bindings package id: get-vars run: | - cuda_ver=$(yq '.cuda.build.version' ci/versions.yml) - echo "cuda_ver=$cuda_ver" >> $GITHUB_OUTPUT + current=$(python3 -m ci.tools.bindings_config --release-status current) + { + echo "bindings_config=$(python3 -m ci.tools.bindings_config)" + echo "bindings_root=$(jq -r '.package_root' <<< "$current")" + echo "cuda_ver=$(jq -r '.toolkit_version' <<< "$current")" + } >> "$GITHUB_OUTPUT" coverage-linux: name: Coverage (Linux) @@ -43,6 +61,7 @@ jobs: env: HOST_PLATFORM: "linux-64" ARCH: "x86_64" + BINDINGS_ROOT: ${{ needs.coverage-vars.outputs.BINDINGS_ROOT }} CUDA_VER: ${{ needs.coverage-vars.outputs.CUDA_VER }} # Our self-hosted runners require a container # TODO: use a different (nvidia?) container @@ -102,8 +121,13 @@ jobs: - name: Set environment variables env: - BINDINGS_CONFIG: LEGACY_CONFIG + BINDINGS_CONFIG: ${{ needs.coverage-vars.outputs.BINDINGS_CONFIG }} BUILD_CUDA_VER: ${{ env.CUDA_VER }} + CURRENT_BUILD_CUDA_VER: ${{ env.CUDA_VER }} + BINDINGS_SOURCE: local + BINDINGS_SOURCE_DIR: ${{ env.BINDINGS_ROOT }} + DEFAULT_BINDINGS_SOURCE_DIR: ${{ env.BINDINGS_ROOT }} + PATHFINDER_SOURCE: artifact CUDA_VER: ${{ env.CUDA_VER }} HOST_PLATFORM: ${{ env.HOST_PLATFORM }} LOCAL_CTK: ${{ env.LOCAL_CTK }} @@ -139,8 +163,8 @@ jobs: run: | export PIP_BUILD_CONSTRAINT="$(pwd)/wheel-constraints/cuda-bindings.txt" export PIP_CONSTRAINT="${PIP_BUILD_CONSTRAINT}" - .venv/bin/pip wheel -v --no-deps ./cuda_bindings_13 -w ./wheels/ - .venv/bin/pip install -v ./wheels/cuda_bindings*.whl --group ./cuda_bindings_13/pyproject.toml:test + .venv/bin/pip wheel -v --no-deps ./${BINDINGS_ROOT} -w ./wheels/ + .venv/bin/pip install -v ./wheels/cuda_bindings*.whl --group ./${BINDINGS_ROOT}/pyproject.toml:test - name: Constrain cuda-core to the local cuda-bindings wheel run: | @@ -185,7 +209,7 @@ jobs: continue-on-error: true run: | cd $INSTALL_ROOT - $REPO_ROOT/.venv/bin/pytest -v --cov=./cuda --cov-append --cov-context=test --cov-config=$REPO_ROOT/.coveragerc $REPO_ROOT/cuda_bindings_13/tests + $REPO_ROOT/.venv/bin/pytest -v --cov=./cuda --cov-append --cov-context=test --cov-config=$REPO_ROOT/.coveragerc $REPO_ROOT/${BINDINGS_ROOT}/tests - name: Trace cuda.core imports continue-on-error: true @@ -238,6 +262,7 @@ jobs: env: HOST_PLATFORM: "win-64" CUDA_PYTHON_COVERAGE: "1" + BINDINGS_ROOT: ${{ needs.coverage-vars.outputs.BINDINGS_ROOT }} CUDA_VER: ${{ needs.coverage-vars.outputs.CUDA_VER }} steps: - name: Harden OS certificate trust (eMudhra/emSign CA stopgap) @@ -296,8 +321,7 @@ jobs: run: | export PIP_BUILD_CONSTRAINT="$(cygpath -w "$(pwd)/wheel-constraints/cuda-bindings.txt")" export PIP_CONSTRAINT="${PIP_BUILD_CONSTRAINT}" - cd cuda_bindings_13 - ../.venv/Scripts/pip wheel -v --no-deps . -w ../wheels/ + .venv/Scripts/pip wheel -v --no-deps "./${BINDINGS_ROOT}" -w ./wheels/ - name: Constrain cuda.core to the local cuda.bindings wheel run: | @@ -362,6 +386,7 @@ jobs: HOST_PLATFORM: "win-64" ARCH: "amd64" CUDA_PYTHON_COVERAGE: "1" + BINDINGS_ROOT: ${{ needs.coverage-vars.outputs.BINDINGS_ROOT }} CUDA_VER: ${{ needs.coverage-vars.outputs.CUDA_VER }} defaults: run: @@ -433,7 +458,7 @@ jobs: run: | .venv/Scripts/pip install coverage pytest-cov Cython .venv/Scripts/pip install --group ./cuda_pathfinder/pyproject.toml:test - .venv/Scripts/pip install --group ./cuda_bindings_13/pyproject.toml:test + .venv/Scripts/pip install --group ./${BINDINGS_ROOT}/pyproject.toml:test .venv/Scripts/pip install --group ./cuda_core/pyproject.toml:test - name: Get install root @@ -458,7 +483,7 @@ jobs: "$GITHUB_WORKSPACE/.venv/Scripts/python" -m pytest \ -v --cov=./cuda --cov-append --cov-context=test \ --cov-config="$GITHUB_WORKSPACE/.coveragerc" \ - "$GITHUB_WORKSPACE/cuda_bindings_13/tests" + "$GITHUB_WORKSPACE/${BINDINGS_ROOT}/tests" - name: Trace cuda.core imports continue-on-error: true diff --git a/.github/workflows/test-wheel-linux.yml b/.github/workflows/test-wheel-linux.yml index de14bf6e106b..2d202d1344dc 100644 --- a/.github/workflows/test-wheel-linux.yml +++ b/.github/workflows/test-wheel-linux.yml @@ -21,6 +21,10 @@ on: description: Normalized registry JSON, or LEGACY_CONFIG for an older source snapshot. type: string default: '' + legacy-backport-branch: + description: Backport branch from the legacy artifact source; unused with bindings-config. + type: string + default: '' matrix_filter: type: string default: "." @@ -60,6 +64,7 @@ jobs: runs-on: ubuntu-latest env: BINDINGS_CONFIG: ${{ inputs.bindings-config }} + LEGACY_BACKPORT_BRANCH: ${{ inputs.legacy-backport-branch }} BUILD_TYPE: ${{ inputs.build-type }} WORKPLAN: ${{ inputs.workplan }} TEST_MODE: ${{ inputs.test-mode }} @@ -106,8 +111,7 @@ jobs: | python3 .ci-control/ci/tools/select_test_matrix.py --platform linux) if [[ "$BINDINGS_CONFIG" == "LEGACY_CONFIG" ]]; then - OLD_BRANCH=$(yq -r '.backport_branch' ci/versions.yml) - echo "OLD_BRANCH=${OLD_BRANCH}" >> "$GITHUB_OUTPUT" + echo "OLD_BRANCH=${LEGACY_BACKPORT_BRANCH}" >> "$GITHUB_OUTPUT" else { echo '### Selected wheel test coverage' @@ -268,6 +272,7 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} OLD_BRANCH: ${{ needs.compute-matrix.outputs.OLD_BRANCH }} run: | + : "${OLD_BRANCH:?legacy-backport-branch is required for legacy prior-branch artifacts}" OLD_ARTIFACT_PATTERN="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda*-${{ inputs.host-platform }}-*[0-9a-f]" LOOKUP_ARGS=( --branch "${OLD_BRANCH}" diff --git a/.github/workflows/test-wheel-windows.yml b/.github/workflows/test-wheel-windows.yml index 9ce56a2aceec..88412692e165 100644 --- a/.github/workflows/test-wheel-windows.yml +++ b/.github/workflows/test-wheel-windows.yml @@ -21,6 +21,10 @@ on: description: Normalized registry JSON, or LEGACY_CONFIG for an older source snapshot. type: string default: '' + legacy-backport-branch: + description: Backport branch from the legacy artifact source; unused with bindings-config. + type: string + default: '' matrix_filter: type: string default: "." @@ -59,6 +63,7 @@ jobs: shell: bash --noprofile --norc -xeuo pipefail {0} env: BINDINGS_CONFIG: ${{ inputs.bindings-config }} + LEGACY_BACKPORT_BRANCH: ${{ inputs.legacy-backport-branch }} BUILD_TYPE: ${{ inputs.build-type }} WORKPLAN: ${{ inputs.workplan }} TEST_MODE: ${{ inputs.test-mode }} @@ -103,8 +108,7 @@ jobs: | python3 .ci-control/ci/tools/select_test_matrix.py --platform windows) if [[ "$BINDINGS_CONFIG" == "LEGACY_CONFIG" ]]; then - OLD_BRANCH=$(yq -r '.backport_branch' ci/versions.yml) - echo "OLD_BRANCH=${OLD_BRANCH}" >> "$GITHUB_OUTPUT" + echo "OLD_BRANCH=${LEGACY_BACKPORT_BRANCH}" >> "$GITHUB_OUTPUT" else { echo '### Selected wheel test coverage' @@ -255,6 +259,7 @@ jobs: OLD_BRANCH: ${{ needs.compute-matrix.outputs.OLD_BRANCH }} shell: bash --noprofile --norc -xeuo pipefail {0} run: | + : "${OLD_BRANCH:?legacy-backport-branch is required for legacy prior-branch artifacts}" OLD_ARTIFACT_PATTERN="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda*-${{ inputs.host-platform }}-*[0-9a-f]" LOOKUP_ARGS=( --branch "${OLD_BRANCH}" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6c1748b82613..0e2ff6cc516a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -50,10 +50,10 @@ repos: verbose: true - id: check-cuda-core-bindings-floor - name: Check the cuda-bindings floor against ci/versions.yml and the docs + name: Check cuda-core bindings floor declarations and documentation entry: python ./toolshed/check_cuda_core_bindings_floor.py language: python - files: ^(cuda_core/pyproject\.toml|ci/versions\.yml|cuda_core/cuda/core/_bindings_floor\.py|cuda_core/docs/source/.*\.rst|toolshed/check_cuda_core_bindings_floor\.py)$ + files: ^(cuda_core/pyproject\.toml|cuda_core/cuda/core/_bindings_floor\.py|cuda_core/docs/source/.*\.rst|toolshed/check_cuda_core_bindings_floor\.py)$ pass_filenames: false - id: check-spdx @@ -78,6 +78,14 @@ repos: files: ^cuda_bindings_(?:12|13)/ types: [text] + - id: check-bindings-config + name: Validate bindings registry and package metadata + entry: python -m ci.tools.bindings_config --check-package-metadata + language: python + additional_dependencies: [packaging==26.0, pyyaml==6.0.3] + files: '^(ci/versions\.yml|ci/tools/bindings_config\.py|cuda_bindings_(?:12|13)/(pyproject|pixi)\.toml|cuda_python/(?:pyproject\.toml|setup\.py)|cuda_core/pyproject\.toml|cuda_core/cuda/core/_bindings_floor\.py)$' + pass_filenames: false + - id: check-pixi-cuda-version name: Check pixi cuda-version pins track ci/versions.yml entry: python -m ci.tools.check_pixi_cuda_version diff --git a/AGENTS.md b/AGENTS.md index 637fb3d26753..540056eac205 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -33,7 +33,35 @@ inputs, CI selection, or release routing. and identify the matching changes or explain concretely why none are needed. Reviewers must verify that assessment and flag omitted applicable changes; absence from the diff is not evidence that the other root is unaffected. -- Preserve byte-for-byte invariants for package-local copies of shared helpers. +- For transferring handwritten fixes between roots, use the path-relative + patch procedure in [CONTRIBUTING.md](CONTRIBUTING.md#transferring-fixes-between-bindings-roots), + then inspect and test both results. Regenerate generated bindings instead. +- For marked SYNCED blocks and package-local copies of shared helpers, also + enforce their byte-for-byte invariants. Semantic differences elsewhere do + not relax those requirements. + +## Synchronized code blocks + +Use matching `BEGIN SYNCED ` and `END SYNCED ` comments for +deliberately duplicated snippets whose contents must remain byte-for-byte +identical. The group name identifies all copies; the boundaries define the +shared snippet, not the surrounding file. + +- Before editing a marked block, search from the repository root for its exact + `BEGIN SYNCED ` marker, for example with `rg -n -F`. Read every copy + and update them together, including copies outside the current package. +- Compare the complete marked blocks after editing. Also check required + imports and surrounding assumptions, such as relative directory depth, + which may live outside the markers. +- During review, identify groups touched by the diff and compare every copy, + including files absent from the diff. Use the base revision too when markers + were removed or renamed. Report drift, missing boundaries, and newly copied + snippets that omit the markers as review findings. +- Preserve both markers when copying a snippet. If a copy must diverge, + explain why and explicitly revise the group membership; do not remove or + rename a marker merely to conceal drift. +- In the work or review summary, name the groups and files compared, or state + why verification could not be completed. # Git-derived version lifecycle diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b614fdcc1e0c..1e24663e46c1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -13,6 +13,7 @@ reproducers, documentation improvements, and code changes are welcome. - [Updating your clone](#updating-your-clone) - [Why the clone matters](#why-the-clone-matters) - [Symptoms of a bad clone](#symptoms-of-a-bad-clone) + - [Transferring fixes between bindings roots](#transferring-fixes-between-bindings-roots) - [Development on Windows](#development-on-windows) - [Enabling git symlinks](#enabling-git-symlinks) - [Type stubs for cuda.core](#type-stubs-for-cudacore) @@ -27,11 +28,8 @@ reproducers, documentation improvements, and code changes are welcome. - [Developer Certificate of Origin (DCO)](#developer-certificate-of-origin-dco) - [CI infrastructure overview](#ci-infrastructure-overview) - [CI Pipeline Flow](#ci-pipeline-flow) - - [Pipeline Execution Details](#pipeline-execution-details) - - [Branch-specific Artifact Flow](#branch-specific-artifact-flow) - - [Main Branch](#main-branch) - - [Backport Branches](#backport-branches) - - [Key Infrastructure Details](#key-infrastructure-details) + - [CUDA-major Artifact Flow](#cuda-major-artifact-flow) + - [Integration on main](#integration-on-main) - [Code coverage](#code-coverage) @@ -95,6 +93,9 @@ build and test instructions for [`cuda.core`](https://nvidia.github.io/cuda-python/cuda-core/latest/install.html), [`cuda.bindings`](https://nvidia.github.io/cuda-python/cuda-bindings/latest/install.html), or [`cuda.pathfinder`](https://nvidia.github.io/cuda-python/cuda-pathfinder/latest/install.html). +The bindings `latest` guide covers CUDA 13. For CUDA 12 development, start +with [`cuda_bindings_12/`](cuda_bindings_12/). Both bindings roots require +Python 3.11 or newer; use a separate environment for each CUDA major. ### Updating your clone @@ -121,17 +122,31 @@ $ git fetch --tags https://github.com/NVIDIA/cuda-python.git Every package in this repository derives its version from git tags using [`setuptools-scm`](https://setuptools-scm.readthedocs.io/), so **how you clone determines whether you can build at all, and whether the version you build is -correct.** Each package matches its own tag prefix: +correct.** Packages select tags for their own release line: | Package | Tag pattern | | --- | --- | -| `cuda-bindings`, `cuda-python` | `v*` (e.g. `v13.4.2`) | +| `cuda-bindings` from `cuda_bindings_12/` | `v12.*` (e.g. `v12.9.10`) | +| `cuda-bindings` from `cuda_bindings_13/` | `v13.*` (e.g. `v13.4.2`) | +| `cuda-python` | The matching bindings selector, chosen explicitly with `CUDA_PYTHON_BUILD_MAJOR=12` or `13` | | `cuda-core` | `cuda-core-v*` (e.g. `cuda-core-v1.1.0`) | | `cuda-pathfinder` | `cuda-pathfinder-v*` (e.g. `cuda-pathfinder-v1.6.0`) | -Each package sets `root = ".."` in its `[tool.setuptools_scm]` table, meaning the -version is read from the *repository root* rather than the package directory. A -working build therefore needs all of the following: +Building `cuda-python` from a checkout or VCS archive requires +`CUDA_PYTHON_BUILD_MAJOR=12` or `13`, including at commits tagged for both +majors. For example, build the CUDA 12 metapackage from the repository root +with `CUDA_PYTHON_BUILD_MAJOR=12 python -m pip wheel ./cuda_python`. +The selected major must match the version resolved from the source. +The resolved version determines dependencies: CUDA 12 depends on matching +bindings, while CUDA 13 also depends on Core and Pathfinder. A standalone +sdist retains its fixed version and dependency major and does not need this +selector. + +The selectors are recorded in the bindings roots' `pyproject.toml` files and +the metapackage's `pyproject.toml`; the metadata check keeps them aligned with +`ci/versions.yml`. All packages read versions from the *repository root*, +rather than their package directory. Builds from a Git checkout therefore +need all of the following: 1. **A real git clone.** Source zips and GitHub "Download ZIP" archives have no git metadata and the build fails outright. Tarballs produced by @@ -148,17 +163,15 @@ working build therefore needs all of the following: ### Symptoms of a bad clone -Only case 3 below reports an error. The first two fail *silently*, producing a -wrong version that surfaces much later as a confusing dependency-resolution or -version-check failure: +Incomplete history can fail version detection or produce a plausible but +incorrect version that surfaces later as a dependency-resolution failure: -1. **No tags reachable.** The build succeeds and produces a version starting at - `0.1.dev`: a `--depth 1` clone yields `0.1.dev1+g0d22cb444`, a full clone made - with `--no-tags` yields `0.1.dev2114+g0d22cb444`. Installing `cuda-python` - built this way then fails, because its `install_requires` pins - `cuda-bindings` to that same bogus version. +1. **No matching tags reachable.** Depending on the package's SCM configuration, + the build can fail or produce a placeholder such as `0.1.dev...`. Fetching + tags is insufficient if the checkout lacks the ancestry connecting them to + the build. Check the selected release line, not just whether any tag exists. 2. **Stale tags** (a fork that has not fetched upstream in a while): you get a - plausible-looking but wrong version, e.g. `13.0.4.dev650+g0d22cb44` when the + plausible-looking but wrong version, e.g. `13.4.1.dev7+g0d22cb44` when the real latest tag is `v13.4.2`. Nothing warns you. Note there is no leading `v` — `setuptools-scm` strips the tag prefix. 3. **No git metadata** (source zip): the build fails with @@ -177,6 +190,26 @@ hyphens replaced by underscores: `..._FOR_CUDA_BINDINGS`, `..._FOR_CUDA_CORE`, genuinely cannot provide tags; it is not a substitute for a correct clone. +## Transferring fixes between bindings roots + +For a handwritten fix that applies to both majors, a path-relative patch can +transfer the source-root portion of a commit, though you can copy the changes +however is most convenient. From the repository root, with a clean worktree, +replace `COMMIT` with the reviewed non-merge source commit: + +```console +$ git format-patch -1 --stdout --relative=cuda_bindings_13 COMMIT -- cuda_bindings_13 > bindings-fix.patch +$ git am --directory=cuda_bindings_12 bindings-fix.patch +``` + +Inspect the patch before applying it. The path restriction excludes changes +outside the selected root; assess shared files separately. Resolve conflicts +and review the result against the destination API and toolkit, then run the +relevant tests. Swap the two roots for the reverse direction, and remove the +temporary patch when finished. These commands copy handwritten changes; +generated bindings must be regenerated from their generation source for each +toolkit. Record matching changes or a concrete reason they do not apply. + ## Development on Windows This section collects Windows-specific guidance for contributors working @@ -315,20 +348,10 @@ must stay in sync with their manifests and easy to review. Contributor expectations: -- If a PR changes a `pixi.toml`, update the corresponding `pixi.lock` in the - same PR. Regenerating one lockfile: - - ```console - $ pixi lock --manifest-path cuda_core - ``` - - Use `--manifest-path .` for the repository-root environment. Regenerate with - the pixi version pinned in `ci/pixi-version.env`: different pixi versions - write different canonical forms, such as the `pixi.lock` format version or - the generated platform alias names, and CI requires the committed bytes to - match what the pinned version produces. The pin must remain at least 0.71.0, - which supplies the content-addressed source-build cache used by CI and writes - the repository's version 7 lockfiles. +- If a PR changes dependencies in a `pixi.toml`, update and validate the + corresponding `pixi.lock` in the same PR. Use the Pixi version pinned in + `ci/pixi-version.env`; review the affected solution rather than performing + an unrelated dependency refresh. - If a PR does not intentionally change pixi dependencies or metadata, do not include unrelated lockfile churn. `pixi run` can refresh a stale lockfile implicitly; revert that noise unless the refresh is the point of the change. @@ -336,37 +359,14 @@ Contributor expectations: - Isolate large dependency refreshes from feature work when possible. Prefer a dedicated lockfile-only PR over mixing solver churn into an unrelated change. -CI enforces the contract: `pixi lock --check` fails when a committed lockfile is -stale, and pixi source-build jobs run with `PIXI_LOCKED=true` so they install from -the committed lock rather than updating it during the job. If either check -fails, regenerate and commit the affected lockfile. - -The freshness check additionally fails when the check itself rewrote a lockfile. -`pixi lock --check` accepts a lock whose solution is current but whose bytes are -not canonical for the pinned pixi version, quietly normalizing the file instead, -which leaves every later pixi run rewriting the committed lockfile. - -A scheduled workflow (`CI: pixi lockfile refresh`) runs -`pixi update --no-install` for every workspace in one job and opens one PR with -all changed lockfiles, so broad dependency churn is reviewed as maintenance -rather than landing inside unrelated feature work. The workflow can also be -dispatched manually. Both lockfile workflows resolve their workspace lists -through `ci/tools/list_pixi_workspaces.py`, which derives the inventory from the -committed manifests, so a newly added workspace is picked up without editing a -workflow. - -Refresh PRs use `GITHUB_TOKEN`. After one opens, a maintainer with write access -must first select **Approve workflows to run** in the merge box, then assign -themselves to the PR. Approval starts the queued `pull_request` runs; the -human-generated `assigned` event creates the required -**PR has assignee, labels, and milestone** `pull_request_target` check and gives -the PR a clear owner. - -A future GitHub App integration could trigger both `pull_request` and -`pull_request_target` workflows automatically. -See GitHub's -[token event documentation](https://docs.github.com/en/actions/concepts/security/github_token#when-github_token-triggers-workflow-runs) -for the current behavior. +Freshness enforcement and automated refreshes are temporarily suspended. +The freshness workflow succeeds with a warning; it does not verify +manifest/lock consistency. The refresh workflow has no schedule, and manual +dispatch reports the suspension without changing dependencies or opening a PR. +Source-build CI uses `PIXI_FROZEN=true` to consume committed lockfiles without +solving them. Necessary dependency changes require manual review and validation. +See the [maintenance pause and restoration criteria](ci/README.md#temporary-pixi-lockfile-maintenance-pause) +before attempting a lockfile repair or refresh. ## Secret Scanning @@ -446,36 +446,36 @@ The CUDA Python project uses a comprehensive CI pipeline that builds, tests, and The CI pipeline diagram is maintained as Mermaid source in [`ci/ci-pipeline.mmd`](ci/ci-pipeline.mmd). -### Pipeline Execution Details - -**Parallel Execution**: The CI pipeline leverages parallel execution to optimize build and test times: -- **Build Stage**: Different architectures/operating systems (linux-64, linux-aarch64, win-64) are built in parallel across their respective runners -- **Test Stage**: Different architectures/operating systems/CUDA versions are tested in parallel; documentation preview is also built in parallel with testing - -### Branch-specific Artifact Flow - -#### Main Branch -- **Build** → **Test** → **Documentation** → **Potential Release** -- Artifacts stored as `{component}-python{version}-{platform}-{sha}` -- Full test coverage across all platforms and CUDA versions -- **Artifact flow out**: `cuda-pathfinder` artifacts → backport branches - -#### Backport Branches -- **Build** → **Test** → **Backport PR Creation** -- Artifacts used for validation before creating backport pull requests -- Maintains compatibility with older CUDA versions -- **Artifact flow in**: `cuda-pathfinder` artifacts ← main branch -- **Artifact flow out**: older `cuda-bindings` artifacts → main branch - -### Key Infrastructure Details - -- **Self-hosted runners**: Used for Linux builds and GPU testing (more resources, faster builds) -- **GitHub-hosted runners**: Used for Windows builds and general tasks -- **Artifact retention**: 30 days for GitHub Artifacts (wheels, docs, tests) -- **Cache retention**: GitHub Cache for build dependencies and environments -- **Security**: All commits must be signed, untrusted code blocked -- **Parallel execution**: Matrix builds across Python versions and platforms -- **Component isolation**: Each component (core, bindings, pathfinder, python) can be built/released independently +The [CI workflow](.github/workflows/ci.yml) defines the supported platform, +Python, and CUDA matrices. Build and test jobs run in parallel across their +configured runners. Package selection and artifact validation are shared +through the [CI tools](ci/README.md). + +### CUDA-major Artifact Flow + +- CUDA 12.9 bindings live in `cuda_bindings_12/`; CUDA 13 bindings live in + `cuda_bindings_13/`. The registry assigns their maintenance and current roles. +- Development CI rebuilds changed roots and affected dependents, reusing a + validated baseline for unaffected roots. Shared changes and scheduled runs + cover both CUDA majors. +- A bindings tag selects one line's bindings and metapackage. Its release + validation uses published Pathfinder and does not require a CUDA Core or + other-major release. +- Artifacts identify their Python version, toolkit, platform, and source SHA + where applicable. Release workflows require the exact tag's successful CI. + +### Integration on main + +`main` integrates changes for both supported majors. Return applicable fixes +to `main` and assess both source directories. +The historical `12.9.x` branch stays frozen except for emergency fixes, +which must be reconciled into `main`. New main CI and releases do not fetch +package artifacts from that branch. + +The [bindings release guide](.github/RELEASE-bindings.md) covers release scope, +source and control revisions, and validation. Follow the +[shared regeneration and review guidance](ci/README.md#maintaining-both-bindings-roots) +when changing either bindings directory. ## Code coverage diff --git a/README.md b/README.md index 016cb8a28ecc..889c2fb31cf3 100644 --- a/README.md +++ b/README.md @@ -50,11 +50,12 @@ The list of available interfaces is: ## Bindings source roots -Current CUDA 13 bindings live in [`cuda_bindings_13/`](cuda_bindings_13/), and -CUDA 12 bindings sources have a separate -[developer environment](cuda_bindings_12/README.md). Both roots build the same +Both bindings release lines are maintained on `main`: current CUDA 13 sources +live in [`cuda_bindings_13/`](cuda_bindings_13/), and CUDA 12.9 maintenance +sources live in [`cuda_bindings_12/`](cuda_bindings_12/). Both build the same `cuda-bindings` distribution and `cuda.bindings` namespace; develop and test -them in separate environments. +them in separate Python environments. See the [contributor guide](CONTRIBUTING.md) +for source selection and changes across majors. ## License diff --git a/ci/README.md b/ci/README.md index af468a8c745e..f7c4d6ff3a90 100644 --- a/ci/README.md +++ b/ci/README.md @@ -222,12 +222,12 @@ committed lockfiles to address the eMudhra/emSign CA incident; no general lockfile refresh was performed. Re-enable maintenance only after a released Pixi passes both upstream issue -reproducers and repeated byte-stable update/lock/check cycles across all six -workspaces: the repository root, `cuda_pathfinder`, `cuda_bindings_13`, `cuda_core`, -`benchmarks/cuda_bindings`, and `benchmarks/cuda_core`. Verify both `pixi update ---no-install` and `pixi lock`, followed by repeated `pixi lock --check` commands, -converge to unchanged lockfile bytes. Then restore strict freshness checks, -scheduled refreshes, and `PIXI_LOCKED=true` in source-build CI. +reproducers and repeated byte-stable update/lock/check cycles across every +workspace reported by `python ci/tools/list_pixi_workspaces.py`, including both +bindings roots. Verify `pixi update --no-install` and `pixi lock`, followed by +repeated `pixi lock --check` commands, converge to unchanged lockfile bytes. +Then restore strict freshness checks, scheduled refreshes, and `PIXI_LOCKED=true` +in source-build CI. ## Repository Customizations @@ -251,3 +251,163 @@ The canonical `NVIDIA/cuda-python` repository does not need this variable because its standard workflow behavior is enabled directly. Before enabling a customization elsewhere, document the repository-specific prerequisites and verification procedure in that repository's own documentation. + +## CUDA Bindings Package-Root Registry + +`ci/versions.yml` is the authoritative public registry for CUDA bindings +package roots. Each mapping key is a repository-relative package root; its +record declares an exact toolkit build/test pin and a `release_status` of +`current` or `maintenance`. Release routing uses the tag's CUDA major/minor +and the toolkit pin to select a root. Bindings and metapackage builds use +setuptools-scm's default tag parser. Each root's `git_describe_command` +selects its CUDA ABI major for source builds (`v12.*` or `v13.*`), +independently of the toolkit minor used to build it. + +The repository-private `cuda-python-ci-tools` package provides the shared +configuration readers and their dependencies. Workflows use these helpers +from their control revision when inspecting another source revision. Install +the package locally from the repository root: + +```console +python -m pip install -e ./ci +``` + +Use `ci.tools.bindings_config` instead of reading the YAML directly. It emits +JSON containing each package directory, toolkit version, and release role, +plus the derived toolkit major/minor (`ctk_target`), CUDA major (`cuda_major`), +and wheel variant (`cuda_variant`, such as `cu12`). Workflows share this +normalized configuration: + +```console +python -m ci.tools.bindings_config +python -m ci.tools.bindings_config --package-roots +python -m ci.tools.bindings_config --release-status current +``` + +Install the test extra to run the CI-tool tests: + +```console +python -m pip install -e './ci[test]' +python -m pytest ci/tools/tests +``` + +The public wheel builder requires one `current` package root and one +`maintenance` package root with different CUDA ABI majors. +`cuda_bindings_12` names a stable CUDA-major source directory, while `current` +and `maintenance` describe release roles that can change at the next major. + +The standalone `cuda-python` source distribution carries its selectors in +`cuda_python/pyproject.toml`, without depending on repository CI tooling. The +pre-commit metadata check keeps those selectors, bindings packaging, and Core +toolkit floors aligned with the registry: + +```console +python -m ci.tools.bindings_config --check-package-metadata +``` + +### SCM Milestones + +Source builds need the matching tag and the history connecting it to the +checkout; fetching tags alone does not repair shallow ancestry. +No version override or local preview-tag preparation is needed. +Follow the +[Git-derived version lifecycle](../AGENTS.md#git-derived-version-lifecycle). + +## Nightly Artifact Sources + +`ci-nightly.yml` downloads wheels from the latest successful main CI run and +reads configuration from that run's source commit. Sources with the package +registry supply toolkit-qualified artifacts for both bindings directories. +For older sources, the temporary fallback uses their original configuration +and artifact names, including CUDA 12 wheels from the configured historical +branch. Its removal is tracked in [#3432](https://github.com/NVIDIA/cuda-python/issues/3432). + +Custom-driver rows require `DRIVER_SHA256` in the selected source matrix. + +An explicit `run-id` selects both the wheel artifacts and their source +revision; those artifacts must still be available. + +## Reading CI Jobs and Summaries + +A name such as `pathfinder+bindings12+core12+meta12 / py3.11, CTK12.9.1 +(wheels; bindings PR)` identifies the enabled test suites, Python version, +and toolkit. `meta12` means the CUDA 12 `cuda-python` metapackage; `core12` +means Core tested with CUDA 12. The corresponding CUDA 13 suites use `13`. +`pathfinder` is shared across majors. + +The two source descriptions answer different questions: + +- `wheels` or `local CTK` describes how the toolkit libraries are supplied. +- `bindings PR` or `bindings floor` describes the bindings source. + `bindings PR` uses the selected root's artifact from this CI run. Unaffected + packages can reuse exact-baseline wheels, so this label alone does not mean + the bindings were rebuilt for the PR. `bindings floor` uses the oldest + published bindings supported by the `cuda-core` wheel for that CUDA major, + as declared in its metadata. These rows test Core or the selected nightly + integration against published bindings, without running the bindings or + metapackage suites. + +Open the change-detection job's **CI workplan** summary and expand its JSON. +The component build/test flags identify selected work; the baseline records +the original run and exact source SHA for reusable artifacts. Reuse requires a +successful push CI run for the exact merge-base commit on the PR's base branch, +with the complete required artifact set. If that baseline is unavailable, CI +builds and tests everything. A bindings-only change reuses the unchanged +merged `cuda-core` wheel while testing `cuda-core` against the affected +`cuda-bindings` major. + +The platform matrix-setup jobs' **Selected wheel test coverage** summaries +show the final suites, toolkit source, bindings root or published floor, and +GPU. Shared infrastructure changes, regular branch runs, and scheduled CI +cover both majors; a bindings tag deliberately selects one bindings/metapackage +line and published Pathfinder. Windows ARM64 omits CUDA 12 because that toolkit +has no Windows ARM64 build. + +For registry-backed runs, `ci/tools/select_test_matrix.py` applies the shared +selection and local-wheel coverage rules after each platform reads its source +matrix and applies an optional jq filter. Matrix data comes from the artifact +source revision; the helper comes from the workflow control revision. + +## Maintaining Both Bindings Roots + +`cuda_bindings_12/` and `cuda_bindings_13/` are the CUDA 12 and CUDA 13 source +directories on `main`. The registry identifies CUDA 12 as the maintenance +line. Routine CUDA 12 fixes, tests, and documentation belong in +`cuda_bindings_12/`. The old `12.9.x` branch stays frozen except for emergency +fixes using compatible historical tooling; reconcile any such fix into the +CUDA 12 directory on `main` and assess the CUDA 13 directory too. + +For independent releases from a shared source commit, see +[two tags at one commit](../.github/RELEASE-bindings.md#two-tags-at-one-commit). + +For generated bindings, change the generator first and regenerate each affected +package root against its intended toolkit inputs. Review the generated diff, +record the generator revision, toolkit inputs, and command in the pull request, +and check modified files with +`python toolshed/check_generated_file_seals.py `. The seal verifies +the content of an individual generated file; it does not identify the generator +revision or prove that the two roots should have identical output. Generated +output differs across toolkit targets. + +For a handwritten bindings fix, inspect the corresponding code in the other +root. In the pull request, identify the matching change or explain concretely +why the fix does not apply there. A reviewer must verify that judgment: there +is no general deterministic check for semantic equivalence of handwritten +code across the two roots. Where files are intentionally identical, a narrowly +scoped byte-for-byte check can be added after establishing that invariant. + +Keep generator development and continuous toolkit qualification independent +of this source layout. A generated change should be exercised against both +supported consumers before its output is imported. File seals establish +content integrity, not generation provenance. + +## Changing Supported Release Lines + +When support moves from CUDA 12/13 to CUDA 13/14, retain `cuda_bindings_13/` +as the maintenance directory, add a CUDA 14 directory, and update +`ci/versions.yml` to replace CUDA 12 with CUDA 14, assign the release roles, +and pin both toolkits. +Align each directory's SCM tag selector with its CUDA major and update its +packaging, environments, documentation, and dependent package constraints. +Build and test both lines and their dependents, validate release selection, +and run release dry runs for tags from both lines before publishing. diff --git a/ci/ci-pipeline.mmd b/ci/ci-pipeline.mmd index b085fa869bc3..c5feebaf3062 100644 --- a/ci/ci-pipeline.mmd +++ b/ci/ci-pipeline.mmd @@ -25,22 +25,24 @@ config: flowchart TB subgraph TRIGGER["TRIGGER EVENTS"] direction LR - T1["Push to main branch"] ~~~ T2["Pull request"] ~~~ T3["Manual workflow dispatch"] + T1["Main or approved pull request"] ~~~ T2["Immutable package tag"] ~~~ T3["Manual workflow dispatch"] end + PLAN["Select affected packages and dependencies
A package tag selects its release line
Registry: ci/versions.yml"] + subgraph BUILD["BUILD STAGE"] direction TB subgraph BUILD_PLATFORMS["Parallel Platform Builds"] direction LR - B1["linux-64
(Self-hosted)"] ~~~ B2["linux-aarch64
(Self-hosted)"] ~~~ B3["win-64
(GitHub-hosted)"] + B1["Linux x86_64
(Self-hosted)"] ~~~ B2["Linux ARM64
(Self-hosted)"] ~~~ B3["Windows x86_64 / ARM64
(GitHub-hosted)"] end - BUILD_DETAILS["Python versions: 3.11, 3.12, 3.13, 3.14, 3.15
CUDA version: 13.0.0 (build-time)
Components: cuda-core, cuda-bindings,
cuda-pathfinder, cuda-python"] + BUILD_DETAILS["Python matrix: ci/versions.yml
Platforms: ci.yml
Bindings toolkits and roots: registry
Build selected package artifacts"] end subgraph ARTIFACTS["ARTIFACT STORAGE"] direction TB subgraph GITHUB_ARTIFACTS["GitHub Artifacts"] - GA1["Wheel files (.whl)
Test artifacts
Documentation
(30-day retention)"] + GA1["Wheel files (.whl)
Test artifacts
Documentation
(Workflow-specific retention)"] end subgraph GITHUB_CACHE["GitHub Cache"] GC1["Mini CTK cache"] @@ -51,22 +53,22 @@ flowchart TB direction TB subgraph TEST_PLATFORMS["Parallel Platform Tests"] direction LR - TS1["linux-64
(Self-hosted)"] ~~~ TS2["linux-aarch64
(Self-hosted)"] ~~~ TS3["win-64
(GitHub-hosted)"] + TS1["linux-64
(Self-hosted)"] ~~~ TS2["linux-aarch64
(Self-hosted)"] ~~~ TS3["win-64
(Self-hosted GPU)"] end - TEST_DETAILS["Download wheels from artifacts
Test against multiple CUDA runtime versions
Run Python unit tests, Cython tests, and examples"] - ARTIFACT_FLOWS["Artifact Flows:
cuda-pathfinder: main to backport
cuda-bindings: backport to main"] + TEST_DETAILS["Test sources match wheel build revision
Test against multiple CUDA runtime versions
Run Python unit tests, Cython tests, and examples"] + ARTIFACT_FLOWS["Both bindings roots build from this source tree
Reuse validated baseline for unaffected packages
Bindings tag: selected line and published Pathfinder
Core older-toolkit tests: published bindings floor"] end subgraph RELEASE["RELEASE PIPELINE"] direction TB subgraph RELEASE_STAGES["Sequential Release Steps"] direction LR - R1["Validation
Artifact integrity
Git tag verification"] --> R2["Publishing
PyPI/TestPyPI
Component or all releases"] --> R3["Documentation
GitHub Pages
Release notes"] + R1["Validation
Git tag, wheels
and release notes"] --> R2["Documentation
Build selected component
before index publication"] --> R3["Publishing
TestPyPI/PyPI
Selected component"] end - RELEASE_DETAILS["Manual workflow dispatch with run ID
Supports individual component or full releases"] + RELEASE_DETAILS["Manual dry run for exact tag and successful CI run
Explicit publication for selected component
Bindings release does not require a Core release"] end - TRIGGER --> BUILD + TRIGGER --> PLAN --> BUILD BUILD -. "wheel upload" .-> ARTIFACTS ARTIFACTS --> TEST TEST --> RELEASE @@ -90,7 +92,7 @@ flowchart TB class TRIGGER triggerStyle class T1,T2,T3 triggerNodeStyle class BUILD,BUILD_PLATFORMS buildStyle - class B1,B2,B3,BUILD_DETAILS buildNodeStyle + class PLAN,B1,B2,B3,BUILD_DETAILS buildNodeStyle class ARTIFACTS,GITHUB_ARTIFACTS,GITHUB_CACHE artifactStyle class GA1,GC1 artifactNodeStyle class TEST,TEST_PLATFORMS testStyle diff --git a/ci/tools/bindings_config.py b/ci/tools/bindings_config.py index d65283d1f144..8fdf0a243fa8 100644 --- a/ci/tools/bindings_config.py +++ b/ci/tools/bindings_config.py @@ -6,9 +6,12 @@ from __future__ import annotations import argparse +import importlib.util import json import re +import subprocess import sys +import tomllib from collections.abc import Mapping, Sequence from dataclasses import dataclass from pathlib import Path @@ -124,6 +127,30 @@ def load_config(path: Path = DEFAULT_CONFIG) -> BindingsConfig: return parse_config(yaml.safe_load(path.read_text(encoding="utf-8"))) +def write_nightly_source_outputs(config_path: Path, output_path: Path) -> None: + """Append nightly configuration read from the wheel artifact's source.""" + raw = yaml.safe_load(config_path.read_text(encoding="utf-8")) + if "schema_version" not in raw: + # Preserve the artifact source's original test and artifact contract. + toolkit = raw["cuda"]["build"]["version"] + branch = raw["backport_branch"] + subprocess.run(["git", "check-ref-format", f"refs/heads/{branch}"], check=True) # noqa: S603, S607 + config_json = "LEGACY_CONFIG" + else: + if raw["schema_version"] != SCHEMA_VERSION: + raise ValueError(f"unsupported nightly source schema: {raw['schema_version']!r}") + config = parse_config(raw) + toolkit = config.package_for_release_status("current").toolkit_version + branch = "" + config_json = config.to_json() + if _TOOLKIT_VERSION_PATTERN.fullmatch(toolkit) is None: + raise ValueError(f"invalid nightly source build toolkit: {toolkit!r}") + with output_path.open("a", encoding="utf-8") as output: + output.write(f"bindings_config={config_json}\n") + output.write(f"cuda_build_ver={toolkit}\n") + output.write(f"legacy_backport_branch={branch}\n") + + def wheel_python_versions(toolkit_version: str, platform: str, versions: Sequence[str]) -> list[str]: """Select wheel interpreters, including Windows ARM64's toolkit/Python limits.""" if platform == "win-arm64": @@ -134,6 +161,59 @@ def wheel_python_versions(toolkit_version: str, platform: str, versions: Sequenc return list(versions) +def check_core_toolkit_floors(config: BindingsConfig, repo_root: Path) -> None: + """Check toolkit pins against core's existing, standard-library floor reader.""" + core = repo_root / "cuda_core" + floor_path = core / "cuda" / "core" / "_bindings_floor.py" + spec = importlib.util.spec_from_file_location("_cuda_core_bindings_floor", floor_path) + module = importlib.util.module_from_spec(spec) + spec.loader.exec_module(module) + with (core / "pyproject.toml").open("rb") as stream: + extras = tomllib.load(stream)["project"]["optional-dependencies"] + floors = module.floors_from_extras(extras) + pins = {int(package.cuda_major): package for package in config.package_roots} + if pins.keys() != floors.keys(): + raise ValueError("registered CUDA majors must match cuda_core's cu extras") + for major, floor in floors.items(): + package = pins[major] + if package.toolkit[:2] < floor[:2]: + raise ValueError( + f"{package.package_root} toolkit {package.toolkit_version} is below " + f"the CUDA {major} bindings floor {'.'.join(map(str, floor))}" + ) + + +def check_package_metadata(config: BindingsConfig, repo_root: Path) -> None: + """Check consistency of package metadata in the selected source tree.""" + check_core_toolkit_floors(config, repo_root) + selectors: dict[str, str] = {} + for package in config.package_roots: + path = repo_root / package.package_root / "pyproject.toml" + with path.open("rb") as stream: + scm = tomllib.load(stream)["tool"]["setuptools_scm"] + if "tag_regex" in scm: + raise ValueError(f"{path} must use setuptools-scm's default tag parser") + command = scm["git_describe_command"] + if command.count("--match") != 1: + raise ValueError(f"{path} must specify one git_describe_command --match selector") + selector = command[command.index("--match") + 1] + expected_selector = f"v{package.cuda_major}.*" + if selector != expected_selector: + raise ValueError( + f"{path} --match must select registered CUDA major {package.cuda_major} " + f"using {expected_selector!r} for the {package.release_status} root, got {selector!r}" + ) + selectors[package.cuda_major] = selector + if "fallback_version" in scm: + raise ValueError(f"{path} bindings root must not declare fallback_version") + + path = repo_root / "cuda_python" / "pyproject.toml" + with path.open("rb") as stream: + meta_selectors = tomllib.load(stream)["tool"]["cuda-python"]["scm-describe-match-by-major"] + if meta_selectors != selectors: + raise ValueError(f"{path} scm-describe-match-by-major must match the bindings package selectors") + + def parse_prefixed_version(tag: str, prefix: str) -> Version | None: """Parse the PEP 440 version following an exact component tag prefix.""" if not tag.startswith(prefix): @@ -237,8 +317,10 @@ def main(argv: list[str] | None = None) -> int: parser.add_argument("--config", type=Path, default=DEFAULT_CONFIG) output = parser.add_mutually_exclusive_group() output.add_argument("--package-roots", action="store_true") + output.add_argument("--check-package-metadata", action="store_true") output.add_argument("--release-status", choices=sorted(RELEASE_STATUSES)) output.add_argument("--release-tag", help="resolve a release tag against its source tree") + output.add_argument("--nightly-source-output", type=Path, metavar="GITHUB_OUTPUT") parser.add_argument("--release-source-root", type=Path) commands = parser.add_subparsers(dest="command") write_env = commands.add_parser("write-github-env", help="append package JSON from stdin to GITHUB_ENV") @@ -247,13 +329,25 @@ def main(argv: list[str] | None = None) -> int: try: if args.command == "write-github-env": - if args.package_roots or args.release_status or args.release_tag or args.release_source_root is not None: + if ( + args.package_roots + or args.check_package_metadata + or args.release_status + or args.release_tag + or args.nightly_source_output is not None + or args.release_source_root is not None + ): parser.error("write-github-env does not accept registry selectors") value = json.load(sys.stdin) if not isinstance(value, dict): raise ValueError("stdin for write-github-env must contain a JSON object") write_github_env(value, args.github_env) return 0 + if args.nightly_source_output is not None: + if args.release_source_root is not None: + parser.error("--release-source-root requires --release-tag") + write_nightly_source_outputs(args.config, args.nightly_source_output) + return 0 if args.release_tag: if args.release_source_root is None: parser.error("--release-tag requires --release-source-root") @@ -262,6 +356,9 @@ def main(argv: list[str] | None = None) -> int: if args.release_source_root is not None: parser.error("--release-source-root requires --release-tag") config = load_config(args.config) + if args.check_package_metadata: + check_package_metadata(config, REPO_ROOT) + return 0 if args.release_status: result = config.package_for_release_status(args.release_status).to_dict() else: diff --git a/ci/tools/build_docs_for_link_check.sh b/ci/tools/build_docs_for_link_check.sh index 1ed74d08fefb..f6d1c9e51778 100644 --- a/ci/tools/build_docs_for_link_check.sh +++ b/ci/tools/build_docs_for_link_check.sh @@ -29,7 +29,7 @@ export CUDA_PYTHON_DOCS_DOMAIN # The metapackage pins released cuda-core versions. Its dependencies are already # installed from local Pixi source packages, so never resolve those pins on PyPI. -python -m pip install --no-deps "${REPO_ROOT}/cuda_python" +CUDA_PYTHON_BUILD_MAJOR=13 python -m pip install --no-deps "${REPO_ROOT}/cuda_python" python - <<'PY' from importlib import import_module from importlib.metadata import version diff --git a/ci/tools/check_pixi_cuda_version.py b/ci/tools/check_pixi_cuda_version.py index 14f4f8cbe9d1..a0f703280948 100644 --- a/ci/tools/check_pixi_cuda_version.py +++ b/ci/tools/check_pixi_cuda_version.py @@ -22,9 +22,8 @@ def main() -> int: print(f"error: invalid CUDA toolkit pins in {bindings_config.DEFAULT_CONFIG}: {exc}", file=sys.stderr) return 2 - current = config.package_for_release_status("current") checks = [(package.package_root, package) for package in config.package_roots] - checks.append(("cuda_core", current)) + checks.extend(("cuda_core", package) for package in config.package_roots) errors: list[str] = [] checked: list[str] = [] for package_root, package in checks: diff --git a/ci/tools/tests/test_bindings_config.py b/ci/tools/tests/test_bindings_config.py index e8ff344953fc..db44ddc077a0 100644 --- a/ci/tools/tests/test_bindings_config.py +++ b/ci/tools/tests/test_bindings_config.py @@ -15,7 +15,7 @@ from packaging.version import Version from setuptools_scm import get_version -from ci.tools import check_pixi_cuda_version +from ci.tools import bindings_config, check_pixi_cuda_version from ci.tools.bindings_config import BindingsPackage, load_config, main ROOT = Path(__file__).resolve().parents[3] @@ -64,6 +64,49 @@ def test_cli_supplies_matrix_and_release_role_records(legacy_config, capsys): } +@pytest.mark.parametrize("registry", (False, True)) +@pytest.mark.agent_authored(model="gpt-6") +def test_nightly_uses_artifact_source_config_instead_of_control_config(tmp_path, monkeypatch, legacy_config, registry): + monkeypatch.setattr(bindings_config, "DEFAULT_CONFIG", legacy_config) + raw = { + "cuda": {"build": {"version": "13.3.2"}}, + "backport_branch": "12.9.snapshot", + } + if registry: + raw = { + "schema_version": 2, + "python": {"supported": ["3.12"]}, + "cuda": { + "bindings": { + "package_roots": { + "snapshot_bindings_12": {"toolkit_version": "12.9.1", "release_status": "maintenance"}, + "snapshot_bindings_13": {"toolkit_version": "13.3.2", "release_status": "current"}, + } + } + }, + } + source = tmp_path / "artifact-source" / "ci" / "versions.yml" + source.parent.mkdir(parents=True) + source.write_text(json.dumps(raw)) + output = tmp_path / "nightly-output" + + assert main(["--config", str(source), "--nightly-source-output", str(output)]) == 0 + + selected = dict(line.split("=", 1) for line in output.read_text().splitlines()) + assert selected["cuda_build_ver"] == "13.3.2" + if registry: + config = json.loads(selected["bindings_config"]) + assert config["python"]["supported"] == ["3.12"] + assert [(package["package_root"], package["toolkit_version"]) for package in config["package_roots"]] == [ + ("snapshot_bindings_12", "12.9.1"), + ("snapshot_bindings_13", "13.3.2"), + ] + assert selected["legacy_backport_branch"] == "" + else: + assert selected["bindings_config"] == "LEGACY_CONFIG" + assert selected["legacy_backport_branch"] == "12.9.snapshot" + + @pytest.fixture def pixi_checkout(tmp_path, monkeypatch, legacy_config): for package_root, variant, pin in ( @@ -73,10 +116,14 @@ def pixi_checkout(tmp_path, monkeypatch, legacy_config): ): path = tmp_path / package_root / "pixi.toml" path.parent.mkdir() + variants = ["12.*", pin] if package_root == "cuda_core" else [pin] path.write_text( - f'[workspace.build-variants]\ncuda-version = ["{pin}"]\n' + f"[workspace.build-variants]\ncuda-version = {json.dumps(variants)}\n" f'[feature.{variant}.dependencies]\ncuda-version = "{pin}"\n' ) + if package_root == "cuda_core": + with path.open("a") as stream: + stream.write('[feature.cu12.dependencies]\ncuda-version = "12.*"\n') monkeypatch.setattr(check_pixi_cuda_version, "ROOT", tmp_path) monkeypatch.setattr(check_pixi_cuda_version.bindings_config, "load_config", lambda: load_config(legacy_config)) return tmp_path @@ -99,6 +146,14 @@ def test_pixi_check_reports_core_pin_drift(pixi_checkout, capsys): assert "cuda_core/pixi.toml: feature.cu13.dependencies.cuda-version='13.3.*'" in capsys.readouterr().err +@pytest.mark.agent_authored(model="gpt-6") +def test_pixi_check_reports_maintenance_core_pin_drift(pixi_checkout, capsys): + path = pixi_checkout / "cuda_core" / "pixi.toml" + path.write_text(path.read_text().replace('cuda-version = "12.*"', 'cuda-version = "11.*"')) + assert check_pixi_cuda_version.main() == 1 + assert "cuda_core/pixi.toml: feature.cu12.dependencies.cuda-version='11.*'" in capsys.readouterr().err + + @pytest.mark.parametrize( ("package_root", "old_pin", "new_pin"), [("cuda_bindings_12", "12.*", "11.*"), ("cuda_bindings_13", "13.4.*", "13.*")], @@ -130,15 +185,15 @@ def git(*args): [ # noqa: S607 "git", "-c", - "user.name=CI test", - "-c", - "user.email=ci-test@example.invalid", - "-c", "commit.gpgsign=false", "-c", "tag.gpgsign=false", "-c", "core.hooksPath=/dev/null", + "-c", + "user.name=CI test", + "-c", + "user.email=ci-test@example.invalid", *args, ], cwd=tmp_path, diff --git a/ci/tools/tests/test_bindings_metadata.py b/ci/tools/tests/test_bindings_metadata.py new file mode 100644 index 000000000000..17d437284d5d --- /dev/null +++ b/ci/tools/tests/test_bindings_metadata.py @@ -0,0 +1,81 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +import shutil +from pathlib import Path + +import pytest + +from ci.tools.bindings_config import check_package_metadata, parse_config + + +def _registry(maintenance_root="cuda_bindings_12", current_root="cuda_bindings_13"): + return { + "schema_version": 2, + "python": {"supported": ["3.11", "3.14t", "3.15"]}, + "cuda": { + "bindings": { + "package_roots": { + maintenance_root: {"toolkit_version": "12.9.1", "release_status": "maintenance"}, + current_root: {"toolkit_version": "13.4.1", "release_status": "current"}, + } + } + }, + } + + +def _write_package_metadata(root): + config = parse_config(_registry()) + for package in config.package_roots: + path = root / package.package_root / "pyproject.toml" + path.parent.mkdir(parents=True) + path.write_text( + '[tool.setuptools_scm]\ngit_describe_command = ["git", "describe", "--match", ' + f'"v{package.cuda_major}.*"]\n', + encoding="utf-8", + ) + meta = root / "cuda_python" / "pyproject.toml" + meta.parent.mkdir() + meta.write_text( + '[tool.cuda-python.scm-describe-match-by-major]\n"12" = "v12.*"\n"13" = "v13.*"\n', + encoding="utf-8", + ) + core = root / "cuda_core" + core.mkdir() + (core / "pyproject.toml").write_text( + '[project.optional-dependencies]\ncu12 = ["cuda-bindings>=12.9.0,<13"]\ncu13 = ["cuda-bindings>=13.4.0,<14"]\n', + encoding="utf-8", + ) + floor_reader = Path("cuda_core/cuda/core/_bindings_floor.py") + (root / floor_reader).parent.mkdir(parents=True) + shutil.copyfile(Path(__file__).resolve().parents[3] / floor_reader, root / floor_reader) + return config + + +@pytest.mark.parametrize( + "changed_paths", + ( + ("cuda_bindings_13/pyproject.toml",), + ("cuda_python/pyproject.toml",), + ("cuda_bindings_13/pyproject.toml", "cuda_python/pyproject.toml"), + ), +) +@pytest.mark.agent_authored(model="gpt-6.1-sol") +def test_metadata_check_catches_selectors_drifting_from_the_registered_major(tmp_path, changed_paths): + config = _write_package_metadata(tmp_path) + check_package_metadata(config, tmp_path) + for relative in changed_paths: + path = tmp_path / relative + path.write_text(path.read_text().replace("v13.*", "v14.*"), encoding="utf-8") + + with pytest.raises(ValueError): + check_package_metadata(config, tmp_path) + + +@pytest.mark.agent_authored(model="gpt-6") +def test_registered_toolkit_below_core_floor_is_rejected(tmp_path): + config = _write_package_metadata(tmp_path) + core_metadata = tmp_path / "cuda_core" / "pyproject.toml" + core_metadata.write_text(core_metadata.read_text().replace(">=12.9.0", ">=12.10.0"), encoding="utf-8") + with pytest.raises(ValueError, match="below.*floor"): + check_package_metadata(config, tmp_path) diff --git a/ci/tools/tests/test_cuda_python_setup.py b/ci/tools/tests/test_cuda_python_setup.py index 54b247e17a07..5dd43a95ae39 100644 --- a/ci/tools/tests/test_cuda_python_setup.py +++ b/ci/tools/tests/test_cuda_python_setup.py @@ -2,6 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 import os +import runpy import shutil import subprocess import sys @@ -11,11 +12,13 @@ from zipfile import ZipFile import pytest +import setuptools from packaging.requirements import Requirement +@pytest.mark.parametrize("major, version", [("12", "12.9.11"), ("13", "13.5.4")]) @pytest.mark.agent_authored(model="gpt-6") -def test_tagged_maintenance_sdist_keeps_version_and_dependencies_without_selector(tmp_path): +def test_doubly_tagged_sdist_keeps_selected_version_and_dependencies_without_selector(tmp_path, major, version): source = Path(__file__).resolve().parents[3] / "cuda_python" checkout = tmp_path / "checkout" package = checkout / "cuda_python" @@ -24,8 +27,14 @@ def test_tagged_maintenance_sdist_keeps_version_and_dependencies_without_selecto shutil.copyfile(source / filename, package / filename) env = os.environ.copy() - env.pop("CUDA_PYTHON_BUILD_MAJOR", None) - for args in (("init", "--quiet"), ("add", "."), ("commit", "--quiet", "-m", "Release"), ("tag", "v12.9.11")): + env["CUDA_PYTHON_BUILD_MAJOR"] = major + for args in ( + ("init", "--quiet"), + ("add", "."), + ("commit", "--quiet", "-m", "Release"), + ("tag", "v12.9.11"), + ("tag", "v13.5.4"), + ): subprocess.run( # noqa: S603 [ # noqa: S607 "git", @@ -57,6 +66,7 @@ def test_tagged_maintenance_sdist_keeps_version_and_dependencies_without_selecto with tarfile.open(next((package / "dist").glob("*.tar.gz"))) as archive: archive.extractall(unpacked, filter="data") standalone = next(unpacked.iterdir()) + env.pop("CUDA_PYTHON_BUILD_MAJOR") subprocess.run( [sys.executable, "-c", "from setuptools.build_meta import build_wheel; build_wheel('dist')"], cwd=standalone, @@ -67,5 +77,31 @@ def test_tagged_maintenance_sdist_keeps_version_and_dependencies_without_selecto metadata = message_from_bytes( wheel.read(next(name for name in wheel.namelist() if name.endswith(".dist-info/METADATA"))) ) - assert metadata["Version"] == "12.9.11" - assert {Requirement(value).name for value in metadata.get_all("Requires-Dist", [])} == {"cuda-bindings"} + assert metadata["Version"] == version + dependencies = {Requirement(value).name for value in metadata.get_all("Requires-Dist", [])} + expected = {"cuda-bindings"} + if major == "13": + expected.update({"cuda-core", "cuda-pathfinder"}) + assert dependencies == expected + + +@pytest.mark.agent_authored(model="gpt-6") +def test_archive_rejects_resolved_version_from_other_cuda_major(tmp_path, monkeypatch): + source = Path(__file__).resolve().parents[3] / "cuda_python" + package = tmp_path / "cuda_python" + package.mkdir() + for filename in ("setup.py", "pyproject.toml"): + shutil.copyfile(source / filename, package / filename) + (tmp_path / ".git_archival.txt").write_text( + "node: 481d12c848bdf70386ba70cd601bcfaef52cda7f\n" + "node-date: 2026-11-10T09:44:41-08:00\n" + "ref-names: HEAD -> master, tag: v13.5.4, tag: v12.9.11\n" + ) + metadata = {} + monkeypatch.setattr(setuptools, "setup", lambda **kwargs: metadata.update(kwargs)) + monkeypatch.setenv("CUDA_PYTHON_BUILD_MAJOR", "12") + monkeypatch.chdir(package) + + with pytest.raises(ValueError, match=r"CUDA_PYTHON_BUILD_MAJOR=12 does not match resolved version 13\.5\.4"): + runpy.run_path(str(package / "setup.py")) + assert not metadata diff --git a/ci/tools/tests/test_fetch_ctk_redistrib.py b/ci/tools/tests/test_fetch_ctk_redistrib.py index 03f9a29df501..7fc76bc02cb7 100644 --- a/ci/tools/tests/test_fetch_ctk_redistrib.py +++ b/ci/tools/tests/test_fetch_ctk_redistrib.py @@ -11,6 +11,8 @@ import pytest import yaml +from ci.tools.bindings_config import load_config + sys.path.insert(0, str(Path(__file__).parent.parent)) from fetch_ctk_redistrib import ( KNOWN_REDISTRIB_SHA256, @@ -119,9 +121,8 @@ def test_verify_metadata_unknown_version_fails_closed(tmp_path, capsys): def test_known_redistrib_sha256_covers_ci_cuda_versions(): # Every CUDA version CI fetches from the public server must be pinned, so a # version bump fails here instead of in the fetch_ctk step. - versions = yaml.safe_load((CI_DIR / "versions.yml").read_text(encoding="utf-8")) matrix = yaml.safe_load((CI_DIR / "test-matrix.yml").read_text(encoding="utf-8")) - required = {str(entry["version"]) for entry in versions["cuda"].values()} + required = {package.toolkit_version for package in load_config(CI_DIR / "versions.yml").package_roots} required |= { str(row["CUDA_VER"]) for platform in ("linux", "windows") diff --git a/ci/versions.yml b/ci/versions.yml index 094d6c7a510c..904ebe0d3b5b 100644 --- a/ci/versions.yml +++ b/ci/versions.yml @@ -1,7 +1,7 @@ # SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -backport_branch: "12.9.x" # keep in sync with target-branch in .github/dependabot.yml +schema_version: 2 # This controls the version of the upstream CTK to install to build the wheels, # and the compute-sanitizer version used in all sanitizer test runs. @@ -11,11 +11,14 @@ backport_branch: "12.9.x" # keep in sync with target-branch in .github/dependab # needs a pinned manifest hash in KNOWN_REDISTRIB_SHA256 in # ci/tools/fetch_ctk_redistrib.py; fetch_ctk fails without one. cuda: - build: - version: "13.5.0" - prev_build: - version: "12.9.1" - + bindings: + package_roots: + cuda_bindings_12: + toolkit_version: "12.9.1" + release_status: maintenance + cuda_bindings_13: + toolkit_version: "13.5.0" + release_status: current python: # Shared wheel build matrix, also read from tagged sources during releases. supported: diff --git a/cuda_bindings_12/AGENTS.md b/cuda_bindings_12/AGENTS.md index e3f50d0e0a98..1de5d4fa199e 100644 --- a/cuda_bindings_12/AGENTS.md +++ b/cuda_bindings_12/AGENTS.md @@ -3,12 +3,16 @@ This root maintains CUDA 12.9 bindings under the `cuda.bindings` namespace. Follow the repository-wide instructions, including [Changes across bindings majors](../AGENTS.md#changes-across-bindings-majors). -Inspect the CUDA 13 counterpart during implementation and review; preserve -intentional API, layout, and build differences. +Inspect the CUDA 13 counterpart during implementation and review, and record +matching changes or why they are not applicable. Preserve intentional API, +layout, and build differences rather than copying the CUDA 13 root wholesale. + +Follow [Maintaining Both Bindings Roots](../ci/README.md#maintaining-both-bindings-roots) +for generation provenance and review expectations. ## Generated and handwritten sources -- Files carrying a `CYTHON-BINDINGS-GENERATED` seal are generated inputs. +- Files carrying a `CYTHON-BINDINGS-GENERATED` seal are generated output. Change their generation source and regenerate against CUDA 12.9 inputs. Record generator revision, toolkit inputs, and affected files. Do not edit sealed files or recalculate their seals to conceal manual changes. @@ -21,11 +25,19 @@ intentional API, layout, and build differences. ## Build and test guidance -- Use CUDA 12.9 headers and a separate Python environment from CUDA 13. +- Source builds require CUDA 12.9 headers. `build_hooks.py` checks the first + `cuda.h` found through `CUDA_HOME` or `CUDA_PATH` before Cythonization. + Split installations can still supply the existing path list. - `_build_shared.py` links to the canonical helper in `cuda_bindings_13/`. - Preserve its symlink or byte-for-byte identity with the shared copies. -- Use the package's [developer commands](README.md). Build the Cython test - extensions before running `tests/cython/`. -- Legacy samples remain under `examples/`; CUDA 13 uses a different layout. -- Run the SCM preview bootstrap only in a disposable build checkout. Never - push its synthetic tags or run it in a shared development repository. + Preserve the symlink or a byte-for-byte identical copy, including matching + changes in the Core and Pathfinder helper copies. +- Use Python 3.11 or newer and a separate environment from CUDA 13 bindings. + From this directory, install with + `python -m pip install -v -e . --group test`, then run `python -m pytest tests/`. + Free-threaded development also needs the `test-ft` dependency group. +- Build Cython tests with `tests/cython/build_tests.sh` or `build_tests.bat` + before running `python -m pytest tests/cython/`. This requires the matching + CUDA headers and compiler toolchain. +- Legacy samples remain under `examples/`; do not assume CUDA 13's sample + layout applies to this root. Keep marked SYNCED test-bootstrap blocks equal + across both bindings roots and Core. diff --git a/cuda_bindings_12/README.md b/cuda_bindings_12/README.md index 41ef6226ffaa..ad736aca1c64 100644 --- a/cuda_bindings_12/README.md +++ b/cuda_bindings_12/README.md @@ -11,7 +11,9 @@ Please refer to the [Installation page](https://nvidia.github.io/cuda-python/cud ## Developing -This subpackage adheres to the developing practices described in the parent metapackage [CONTRIBUTING.md](https://github.com/NVIDIA/cuda-python/blob/main/CONTRIBUTING.md). +Follow the repository [contribution guide](../CONTRIBUTING.md) and the +[shared regeneration and review guidance](../ci/README.md#maintaining-both-bindings-roots) +for source builds and cross-major changes. CUDA 12.9 sources are developed here on `main`. This root and `cuda_bindings_13/` build the same distribution and Python namespace; use @@ -37,15 +39,16 @@ Use `build_tests.bat` on Windows. Free-threaded Python also needs the `test-ft` dependency group. Versions follow reachable `v12.*` tags through standard `setuptools-scm`. -The retained `v12.9.11a0` milestone on `main` anchors CUDA 12 development -versions. See the repository's +Source builds need the matching tag and the history connecting it to the +checkout. See the repository's [version lifecycle](../AGENTS.md#git-derived-version-lifecycle). ## Testing -Install the package and its `test` dependency group with -`python -m pip install -v -e . --group test` (pip 25.1 or newer). +Run the commands below from `cuda_bindings_12/`, in an environment containing +the CUDA 12 bindings. With pip 25.1 or newer, install the package and its +`test` dependency group with `python -m pip install -v -e . --group test`. Multiple testing options are available: @@ -67,7 +70,7 @@ To run these tests: Cython tests are located in `tests/cython` and need to be built. These builds have the same CUDA Toolkit header requirements as [Installing from Source](https://nvidia.github.io/cuda-python/cuda-bindings/12.9.7/install.html#requirements) where the major.minor version must match `cuda.bindings`. To build them: 1. Setup environment variable `CUDA_HOME` with the path to the CUDA Toolkit installation. -2. Run `build_tests` script located in `test/cython` appropriate to your platform. This will both cythonize the tests and build them. +2. Run the `build_tests` script located in `tests/cython` appropriate to your platform. This will both cythonize the tests and build them. To run these tests: * `python -m pytest tests/cython/` against editable installations @@ -75,6 +78,9 @@ To run these tests: ### Samples +Running the samples requires CUDA 12 NVRTC, supplied by the CUDA Toolkit or +`nvidia-cuda-nvrtc-cu12`. The `test` dependency group does not install it. + Various [CUDA Samples](https://github.com/NVIDIA/cuda-samples/tree/master) that were rewritten using CUDA Python are located in `examples`. In addition, extra examples are included: @@ -88,10 +94,12 @@ In addition, extra examples are included: wrappers of the driver API. To run these samples: -* `python -m pytest tests/cython/` against editable installations -* `pytest tests/cython/` against installed packages +* `python -m pytest examples/` against editable installations +* `pytest examples/` against installed packages ### Benchmark See the shared [cuda.bindings benchmark harness](../benchmarks/cuda_bindings/README.md) -for performance benchmarks and usage instructions. +for performance benchmarks and usage instructions. Its configured environments +currently target CUDA 13; benchmarking CUDA 12 requires a compatible environment +configured separately. diff --git a/cuda_bindings_12/docs/README.md b/cuda_bindings_12/docs/README.md index 8b445f41e65e..b533f56e3492 100644 --- a/cuda_bindings_12/docs/README.md +++ b/cuda_bindings_12/docs/README.md @@ -1,10 +1,22 @@ # Build the documentation -1. Install the `cuda-bindings` package of the version that we need to document. +Use a separate environment from CUDA 13 documentation builds: both roots +install the same `cuda-bindings` distribution and `cuda.bindings` namespace. +The aggregate `cuda_python/docs/build_all_docs.sh` script builds the current +CUDA 13 line, so build this maintenance documentation separately. + +1. Install the CUDA 12 `cuda-bindings` build that you need to document. 2. Ensure the version is included in the canonical [`nv-versions.json`](../../cuda_bindings_13/docs/nv-versions.json). 3. Build the docs with `./build_docs.sh`. 4. The html artifacts should be available under both `./build/html/latest` and `./build/html/`. -To publish the docs with the built version, it is important to note that the html files of older versions -should be kept intact, in order for the version selection (through `nv-versions.json`) to work. +The Pixi `docs` environment currently installs a published `12.9.*` package. +To document APIs changed in the checkout, install the matching source build +in your documentation environment before running `./build_docs.sh`. + +`build/html/latest` is for local preview only. Follow the selected branch's +[bindings release guide](../../.github/RELEASE-bindings.md) for publication. Maintenance publication must exclude `latest` +and the shared version-selector files so it cannot overwrite the current-major +site. Keep older versioned pages intact; do not publish the entire local build +directory over the shared site. diff --git a/cuda_bindings_12/docs/source/contribute.md b/cuda_bindings_12/docs/source/contribute.md index e2f95fab6f2a..00e4f7cdc529 100644 --- a/cuda_bindings_12/docs/source/contribute.md +++ b/cuda_bindings_12/docs/source/contribute.md @@ -1,17 +1,5 @@ # Contributing -Thank you for your interest in contributing to `cuda-bindings`! Based on the type of contribution, it will fall into two categories: - -1. You want to report a bug, feature request, or documentation issue - - File an [issue](https://github.com/NVIDIA/cuda-python/issues/new/choose) - describing what you encountered or what you want to see changed. - - The NVIDIA team will evaluate the issues and triage them, scheduling - them for a release. If you believe the issue needs priority attention - comment on the issue to notify the team. -2. You want to implement a feature, improvement, or bug fix: - - Before starting work on an existing issue, comment on the issue to - express your interest and wait to be assigned by a maintainer. This - helps avoid redundant effort. - - Follow the repository [contribution guide](https://github.com/NVIDIA/cuda-python/blob/main/CONTRIBUTING.md), - including signing off each commit under the Developer Certificate of - Origin (DCO) and cryptographically signing commits. +Thank you for your interest in contributing to `cuda-bindings`! +Please follow the repository [contribution guide](https://github.com/NVIDIA/cuda-python/blob/main/CONTRIBUTING.md) +for coordination, validation, and commit signing. diff --git a/cuda_bindings_12/docs/source/install.md b/cuda_bindings_12/docs/source/install.md index 728c06729a4e..3696157ab8cb 100644 --- a/cuda_bindings_12/docs/source/install.md +++ b/cuda_bindings_12/docs/source/install.md @@ -6,14 +6,24 @@ * Linux (x86-64, arm64) and Windows (x86-64) * Python 3.11 - 3.15 -* Driver: Linux (450.80.02 or later) Windows (456.38 or later) -* Optionally, NVRTC, nvJitLink, and NVVM from CUDA Toolkit 12.x +* Driver: Linux (525.60.13 or later), Windows (528.33 or later) +* Optionally, NVRTC, nvJitLink, NVVM, nvFatbin, and cuFile (Linux only) from CUDA Toolkit 12.x + +These driver versions are the CUDA 12 minor-version compatibility baseline in the +[CUDA 12.9 release notes](https://docs.nvidia.com/cuda/archive/12.9.1/cuda-toolkit-release-notes/index.html#cuda-driver). +Features introduced with newer drivers and PTX compilation can require a newer +driver; see the +[minor-version compatibility limitations](https://docs.nvidia.com/deploy/cuda-compatibility/minor-version-compatibility.html#application-considerations-for-minor-version-compatibility). ```{note} The optional CUDA Toolkit components can be installed via PyPI, Conda, OS-specific package managers, or local installers (as described in the CUDA Toolkit [Windows](https://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html) and [Linux](https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html) Installation Guides). ``` -Starting from v12.8.0, `cuda-python` becomes a meta package which currently depends only on `cuda-bindings`; in the future more sub-packages will be added to `cuda-python`. In the instructions below, we still use `cuda-python` as example to serve existing users, but everything is applicable to `cuda-bindings` as well. +The CUDA 12 releases of `cuda-python` are a metapackage that depends directly +on `cuda-bindings`. The examples below use `cuda-python` for existing users; +install `cuda-bindings` directly if you only need the low-level interfaces. + +Both main-tree CUDA 12 packages require Python 3.11 or newer. ## Installing from PyPI @@ -32,6 +42,8 @@ Where the optional dependencies are: * nvidia-cuda-nvrtc-cu12 (Provides NVRTC shared library) * nvidia-nvjitlink-cu12>=12.3 (Provides nvJitLink shared library) * nvidia-cuda-nvcc-cu12 (Provides NVVM shared library) +* nvidia-nvfatbin-cu12 (Provides nvFatbin shared library) +* nvidia-cufile-cu12 (Provides cuFile shared library, Linux only) ## Installing from Conda @@ -43,6 +55,19 @@ $ conda install -c conda-forge cuda-python=12.9 ## Installing from Source +Start with the repository +[recommended clone](https://github.com/NVIDIA/cuda-python/blob/main/CONTRIBUTING.md#recommended-clone). +On native Windows outside WSL, complete its symlink setup before cloning. +CUDA 12 sources live in `cuda_bindings_12/`; CUDA 13 sources have a separate root. +Both build the same `cuda-bindings` distribution, so use a separate Python +environment for each major. + +Versions are derived from reachable `v12.*` tags using `setuptools-scm`. +Historical tags from the old maintenance branch may not be ancestors of `main`. +Before a suitable tag is reachable, follow the +[maintenance preview-build guidance](https://github.com/NVIDIA/cuda-python/blob/main/ci/README.md#cuda-bindings-package-root-registry) +in an independent clone; worktrees share tags with the rest of their repository. + ### Requirements * CUDA Toolkit headers[^1] @@ -67,10 +92,12 @@ Only `cydriver`, `cyruntime` and `cynvrtc` are impacted by the header requiremen ### Editable Install -You can use +From the repository root, run: ```console -$ pip install -v -e . +$ cd cuda_bindings_12 +$ python -m pip install -v -e . ``` -to install the module as editable in your current Python environment (e.g. for testing of porting other libraries to use the binding). +This installs the CUDA 12 bindings as editable in your current Python environment +for development and testing. diff --git a/cuda_bindings_12/docs/source/release/12.X.Y-notes.rst b/cuda_bindings_12/docs/source/release/12.X.Y-notes.rst index 74d8eca44239..34dc8ed54cbc 100644 --- a/cuda_bindings_12/docs/source/release/12.X.Y-notes.rst +++ b/cuda_bindings_12/docs/source/release/12.X.Y-notes.rst @@ -33,3 +33,11 @@ Packaging following the CUDA 13 packaging policy. Cython declarations and includes (``.pxd`` and ``.pxi``), and required headers, remain available for downstream Cython builds. Source distributions retain the inputs needed to build the package. + +Documentation +------------- + +* Corrected the CUDA 12 driver guidance to its existing minor-version + compatibility baseline: Linux 525.60.13 and Windows 528.33. This is a + documentation correction, not a new runtime version check. Newer features + and PTX compilation can still require a newer driver. diff --git a/cuda_bindings_13/AGENTS.md b/cuda_bindings_13/AGENTS.md index 6b3a3d442b7c..a892a0799f3b 100644 --- a/cuda_bindings_13/AGENTS.md +++ b/cuda_bindings_13/AGENTS.md @@ -9,6 +9,10 @@ subpackage in the `cuda-python` monorepo. wrappers. High-level ergonomics belong in `cuda_core`, not here. - **Cross-platform**: preserve Linux and Windows behavior unless a change is intentionally platform-specific. +- **Cross-major review**: follow + [Changes across bindings majors](../AGENTS.md#changes-across-bindings-majors) + during implementation and review. Inspect the CUDA 12 counterpart and record + matching changes or why they are not applicable. ## Package architecture @@ -23,8 +27,8 @@ subpackage in the `cuda-python` monorepo. (toolchain selection, the compiler flag set, the Cython cache helpers, the rebuild stamps and the release-tag pinning of README links) lives in `_build_shared.py`. `cuda_bindings_13/_build_shared.py` is canonical; - the `cuda_core` and `cuda_pathfinder` copies must each be either a symlink to - it or a byte-for-byte identical copy. + the `cuda_bindings_12`, `cuda_core`, and `cuda_pathfinder` copies must each + be either a symlink to it or a byte-for-byte identical copy. ## Generated-source workflow diff --git a/cuda_bindings_13/README.md b/cuda_bindings_13/README.md index 6495f0aa7761..e603e713ec8b 100644 --- a/cuda_bindings_13/README.md +++ b/cuda_bindings_13/README.md @@ -20,8 +20,9 @@ Debuggable builds are not supported on Windows. ## Testing -With pip 25.1 or newer, install testing dependencies using the `test` -dependency group: `python -m pip install -v -e . --group test`. +Run the commands below from `cuda_bindings_13/`, in an environment containing +the CUDA 13 bindings. With pip 25.1 or newer, install the package and its +`test` dependency group with `python -m pip install -v -e . --group test`. Multiple testing options are available: diff --git a/cuda_bindings_13/docs/README.md b/cuda_bindings_13/docs/README.md index 54d670d0917f..c0311407c28c 100644 --- a/cuda_bindings_13/docs/README.md +++ b/cuda_bindings_13/docs/README.md @@ -1,11 +1,15 @@ # Build the documentation -1. Install the `cuda-bindings` package of the version that we need to document. +1. Install the CUDA 13 `cuda-bindings` build that you need to document. 2. Ensure the version is included in the [`nv-versions.json`](./nv-versions.json). 3. Build the docs with `./build_docs.sh`. 4. The html artifacts should be available under both `./build/html/latest` and `./build/html/`. -Alternatively, we can build all the docs at once by running [`cuda_python/docs/build_all_docs.sh`](../../cuda_python/docs/build_all_docs.sh). +[`cuda_python/docs/build_all_docs.sh`](../../cuda_python/docs/build_all_docs.sh) +builds this current bindings line together with the metapackage, Core, and +Pathfinder documentation. Build [CUDA 12 maintenance documentation](../../cuda_bindings_12/docs/README.md) +separately in its own environment; both roots install the same `cuda-bindings` +distribution and `cuda.bindings` namespace. To publish the docs with the built version, it is important to note that the html files of older versions should be kept intact, in order for the version selection (through `nv-versions.json`) to work. diff --git a/cuda_bindings_13/docs/source/install.rst b/cuda_bindings_13/docs/source/install.rst index 4958b0962386..d5e7dee48391 100644 --- a/cuda_bindings_13/docs/source/install.rst +++ b/cuda_bindings_13/docs/source/install.rst @@ -18,7 +18,11 @@ Runtime Requirements The optional CUDA Toolkit components are now installed via the ``cuda-toolkit`` metapackage from PyPI for improved dependency resolution. Components can also be installed via Conda, OS-specific package managers, or local installers (as described in the CUDA Toolkit `Windows `_ and `Linux `_ Installation Guides). -Starting from v12.8.0, ``cuda-python`` becomes a meta package which currently depends only on ``cuda-bindings``; in the future more sub-packages will be added to ``cuda-python``. In the instructions below, we still use ``cuda-python`` as example to serve existing users, but everything is applicable to ``cuda-bindings`` as well. +The CUDA 13 releases of ``cuda-python`` are a metapackage that installs +``cuda-bindings``, ``cuda-core``, and ``cuda-pathfinder``. The examples below use +``cuda-python`` for existing users; install ``cuda-bindings`` directly if you +only need the low-level interfaces. Its ``all`` extra installs the optional +Toolkit components listed below. Free-threading Build Support @@ -108,9 +112,9 @@ obtain the most recent build, use the following commands: Replace ``python312`` with your Python version (e.g. ``python311``, ``python313``, ``python314``, ``python314t``, ``python315``, ``python315t``). For aarch64, replace ``linux-64`` -with ``linux-aarch64``; for Windows, use ``win-64``. Only the current CUDA -major version is built on ``main``; wheels for the prior CUDA major are -published from the corresponding backport branch. +with ``linux-aarch64``; for Windows, use ``win-64``. To use the CUDA 12 line, +replace ``cuda13`` with ``cuda12`` in both commands. Both supported CUDA major +lines are published by CI from ``main``. Installing from Source ~~~~~~~~~~~~~~~~~~~~~~ @@ -133,8 +137,10 @@ Requirements .. [#] The CUDA Runtime static library (``libcudart_static.a`` on Linux, ``cudart_static.lib`` on Windows) is part of the CUDA Toolkit. If using conda packages, it is contained in the ``cuda-cudart-static`` package. .. [#] The version is derived from git tags via ``setuptools-scm``, so the clone - must include tags reaching back to at least the latest ``v*`` tag. Do not use - ``--depth`` or ``--no-tags``: a clone without reachable tags can build with a + must include a reachable tag matching the release line configured in this + package's ``pyproject.toml`` (currently ``v13.*``). A tag from the other CUDA + major does not determine this package's version. Do not use ``--depth`` or + ``--no-tags``: a clone without matching reachable tags can build with a bogus version such as ``0.1.dev1+g0d22cb444``. See `Cloning the repository `_ for details. diff --git a/cuda_bindings_13/docs/source/support.rst b/cuda_bindings_13/docs/source/support.rst index 665c29c029f8..b9617826d5c6 100644 --- a/cuda_bindings_13/docs/source/support.rst +++ b/cuda_bindings_13/docs/source/support.rst @@ -12,8 +12,8 @@ The ``cuda.bindings`` module has the following support policy: third number in the version string), however, is reserved to reflect Python-only changes and is out of sync with the Toolkit patch version. 2. The module is actively maintained to support the latest CUDA major version and its prior major - version. For example, as of writing the bindings for CUDA 12 & 13 are maintained. Any fix in the - latest bindings would be backported to the prior major version. + version. Both active source trees live on the main branch so applicable fixes can update the + CUDA 12 and CUDA 13 packages in one change. 3. The module supports `CUDA minor version compatibility`_, meaning that ``cuda.bindings`` 12.x supports any Toolkit 12.y. (Whether or not a binding API would actually correctly function depends on the underlying driver and the Toolkit versions, as described in the compatibility diff --git a/cuda_core/AGENTS.md b/cuda_core/AGENTS.md index a97f37edcfad..cdddf563b63b 100644 --- a/cuda_core/AGENTS.md +++ b/cuda_core/AGENTS.md @@ -26,8 +26,8 @@ This file describes `cuda_core`, the high-level Pythonic CUDA subpackage in the dependency wiring. Logic shared with `cuda-bindings` (toolchain selection, the compiler flag set, the Cython cache helpers and the rebuild stamps) lives in `_build_shared.py`. `cuda_bindings_13/_build_shared.py` is canonical; - `cuda_core/_build_shared.py` must be either a symlink to it or a byte-for-byte - identical copy. + each package-local `_build_shared.py` must be a symlink to it or a byte-for-byte + identical copy, including maintenance bindings roots. ## Build and version coupling @@ -76,12 +76,13 @@ bump: 1. Edit the `cuda-bindings` pin in the `cu12` or `cu13` extra in `pyproject.toml`. That is the only version to type. -2. Check `ci/versions.yml`. The `build` pin is the current major and the - `prev_build` pin is the prior major. Neither toolkit pin may sit below its - floor's major.minor, or CI builds a configuration that the build rejects. A - toolkit ahead of the floor is the bump window described below. The - pre-commit hook `check-cuda-core-bindings-floor` - (`toolshed/check_cuda_core_bindings_floor.py`) checks the pins. It also +2. Check each `cuda.bindings.package_roots..toolkit_version` in + `ci/versions.yml`. Neither toolkit pin may sit below the corresponding + floor's major.minor, or CI builds a configuration that the build rejects. + A toolkit ahead of the floor is the bump window described below. The + pre-commit hook `check-bindings-config` checks these pins against the floors. + The separate `check-cuda-core-bindings-floor` hook + (`toolshed/check_cuda_core_bindings_floor.py`) validates the extras and checks that no documentation page spells a floor out by hand. 3. Add to the release notes an entry that names the new floors. The support-policy table in `docs/source/support.rst` reads the floors and the diff --git a/cuda_core/cuda/core/_bindings_floor.py b/cuda_core/cuda/core/_bindings_floor.py index 9fd71f6b0af5..9d953626a03d 100644 --- a/cuda_core/cuda/core/_bindings_floor.py +++ b/cuda_core/cuda/core/_bindings_floor.py @@ -26,8 +26,10 @@ - ``cuda/core/__init__.py`` checks the installed cuda-bindings against that record with :func:`check_installed_bindings`. - The documentation reads the floors into substitutions in ``docs/source/conf.py``. -- ``toolshed/check_cuda_core_bindings_floor.py``, a pre-commit hook, checks - that the CI toolkit pins in ``ci/versions.yml`` sit in the minors of the floors. +- The ``check-bindings-config`` pre-commit hook checks that each registered + toolkit in ``ci/versions.yml`` is not below its corresponding floor + major.minor. The separate ``check-cuda-core-bindings-floor`` hook validates + the extras and prevents documentation from hardcoding the floors. The build and the tools above load this module by file path. It therefore uses the standard library only and must not import anything from ``cuda``. diff --git a/cuda_core/tests/test_bindings_floor.py b/cuda_core/tests/test_bindings_floor.py index 05b218722f3c..d70ea8acfa92 100644 --- a/cuda_core/tests/test_bindings_floor.py +++ b/cuda_core/tests/test_bindings_floor.py @@ -5,11 +5,11 @@ """Tests for the cuda-bindings version floor in cuda/core/_bindings_floor.py. The tests cover the floor as read from the pyproject extras and the import-time check -built on it. They also cover the consistency hook that guards ci/versions.yml and the docs. +built on it. They also cover the consistency hook that guards the pyproject extras and the docs. The tests check source-tree properties and pure functions and need no GPU. The file also runs with --noconftest, which skips the CUDA setup in conftest.py. The consistency -tests read pyproject.toml and ci/versions.yml from the checkout. They need the source +tests read pyproject.toml and documentation from the checkout. They need the source tree next to the tests. Every CI job that runs tests/ has it. pytest tests/test_bindings_floor.py -v --noconftest @@ -349,7 +349,7 @@ def test_the_checkout_is_consistent(self, hook): @pytest.mark.agent_authored(model="claude-fable-5-1") def test_a_malformed_extra_fails_the_hook(self, hook, tmp_path, capsys): - # check() returns before it reads ci/versions.yml or the docs, so the tree needs only these two files. + # check() returns before it reads the docs, so the tree needs only these two files. core = tmp_path / "cuda_core" / "cuda" / "core" core.mkdir(parents=True) shutil.copy(CUDA_CORE / "cuda" / "core" / "_bindings_floor.py", core) @@ -359,20 +359,6 @@ def test_a_malformed_extra_fails_the_hook(self, hook, tmp_path, capsys): assert hook.main(["--repo-root", str(tmp_path)]) == 1 assert "pyproject.toml: the 'cu13' extra must pin cuda-bindings" in capsys.readouterr().err - @pytest.mark.agent_authored(model="claude-fable-5-1") - def test_ci_toolkit_pins_must_not_sit_below_the_floors_minor(self, hook): - floors = {12: (12, 9, 8), 13: (13, 4, 1)} - good = 'cuda:\n build:\n version: "13.4.2"\n prev_build:\n version: "12.9.1"\n' - assert hook.ci_pin_problems(floors, good) == [] - assert hook.ci_pin_problems(floors, good.replace("13.4.2", "13.5.0")) == [] # the toolkit-bump window - stale = good.replace("13.4.2", "13.3.0") - (problem,) = hook.ci_pin_problems(floors, stale) - assert "cuda.build.version is 13.3 but the CUDA 13 floor is cuda-bindings 13.4.1" in problem - (problem,) = hook.ci_pin_problems({13: (13, 4, 1)}, good) - assert "pins CUDA 12, which has no cu12 extra" in problem - (problem,) = hook.ci_pin_problems(floors, 'cuda:\n build:\n version: "13.4.2"\n') - assert "no build or prev_build toolkit pin for CUDA 12" in problem - @pytest.mark.agent_authored(model="claude-fable-5-1") def test_docs_must_use_the_substitutions(self, hook, tmp_path): docs = tmp_path / "cuda_core" / "docs" / "source" diff --git a/cuda_python/AGENTS.md b/cuda_python/AGENTS.md index dda1068bf5ec..2c315ccebde0 100644 --- a/cuda_python/AGENTS.md +++ b/cuda_python/AGENTS.md @@ -20,12 +20,12 @@ monorepo. component packages rather than here. - Be careful when changing dependency/version logic in `setup.py`; preserve compatibility between metapackage versioning and subpackage constraints. -- Git source builds use CUDA 12 at an unambiguous CUDA 12 tag and otherwise - default to CUDA 13. Set `CUDA_PYTHON_BUILD_MAJOR` to select either major - explicitly. Selectors live in `pyproject.toml`. Standalone sdists retain - their fixed version, which also determines their dependency major. Check - default CUDA 13, explicit CUDA 12, and CUDA 12 sdist rebuilds when changing - this shared packaging logic. +- Checkout and archive source builds require `CUDA_PYTHON_BUILD_MAJOR=12` or + `13`, regardless of which tags point to the commit. Selectors live in + `pyproject.toml`. Standalone sdists with `PKG-INFO` retain their fixed version + and dependency major without requiring the variable. Check both explicit + majors at a doubly tagged commit and selector-free sdist rebuilds when + changing this shared packaging logic. ## Release coupling diff --git a/cuda_python/setup.py b/cuda_python/setup.py index 53092e098486..7625cab30b15 100644 --- a/cuda_python/setup.py +++ b/cuda_python/setup.py @@ -3,7 +3,6 @@ # SPDX-License-Identifier: Apache-2.0 import os -import subprocess import tomllib from pathlib import Path @@ -16,29 +15,20 @@ with Path(__file__).with_name("pyproject.toml").open("rb") as stream: scm_selectors = tomllib.load(stream)["tool"]["cuda-python"]["scm-describe-match-by-major"] -# CI selects either major explicitly. Direct tagged builds follow the tag; -# untagged checkouts and commits tagged for both majors default to CUDA 13. +# Source builds require an explicit major; standalone sdists already carry +# their fixed version in PKG-INFO, which setuptools-scm recovers below. build_major = os.environ.get("CUDA_PYTHON_BUILD_MAJOR") -if build_major is None: - build_major = "13" - source_root = Path(__file__).resolve().parent.parent - if (source_root / ".git").exists(): - tags = subprocess.check_output( - ["git", "tag", "--points-at", "HEAD", "--list", "v12.*", "v13.*"], # noqa: S607 - cwd=source_root, - text=True, - ).splitlines() - if any(tag.startswith("v12.") for tag in tags) and not any(tag.startswith("v13.") for tag in tags): - build_major = "12" -if build_major not in {"12", "13"}: - raise ValueError(f"CUDA_PYTHON_BUILD_MAJOR must be 12 or 13, got {build_major!r}") +if build_major not in {"12", "13"} and not (build_major is None and Path(__file__).with_name("PKG-INFO").is_file()): + raise ValueError(f"Set CUDA_PYTHON_BUILD_MAJOR to 12 or 13 for source builds, got {build_major!r}") version_options = { "root": "..", "relative_to": __file__, "dist_name": "cuda-python", +} +if build_major is not None: # Keep metapackage tag selection identical to its bindings source line. - "git_describe_command": [ + version_options["git_describe_command"] = [ "git", "describe", "--dirty", @@ -46,13 +36,14 @@ "--long", "--match", scm_selectors[build_major], - ], -} + ] version = get_version(**version_options) resolved_version = Version(version) +if build_major is not None and resolved_version.major != int(build_major): + raise ValueError(f"CUDA_PYTHON_BUILD_MAJOR={build_major} does not match resolved version {version}") base_version = resolved_version.base_version @@ -65,7 +56,7 @@ install_requires = [f"cuda-bindings{matcher}{version}"] # An sdist recovers its fixed version without Git; its dependency set must -# follow that version even when the checkout selector defaults to CUDA 13. +# follow that version without requiring a checkout selector. if resolved_version.major >= 13: install_requires.extend( [ diff --git a/toolshed/check_cuda_core_bindings_floor.py b/toolshed/check_cuda_core_bindings_floor.py index c01a2d6fea19..bdf6f581bed5 100644 --- a/toolshed/check_cuda_core_bindings_floor.py +++ b/toolshed/check_cuda_core_bindings_floor.py @@ -11,12 +11,7 @@ 1. The extras parse: each `cu` extra pins exactly `cuda-bindings[...]>=..,<`. -2. ci/versions.yml builds each major against a CUDA Toolkit of at least the - floor's major.minor. A toolkit below the floor's minor cannot build the - floor's cuda-bindings, because the build requires the header that - cuda-bindings was generated from. A toolkit ahead of the floor is the - toolkit-bump window described in cuda_core/AGENTS.md. -3. No documentation page spells a floor out by hand. docs/source/conf.py +2. No documentation page spells a floor out by hand. docs/source/conf.py provides |cuda-bindings-floor-cu12| and |cuda-bindings-floor-cu13|. Release notes are history and are exempt. @@ -35,10 +30,8 @@ REPO_ROOT = Path(__file__).resolve().parents[1] FLOOR_MODULE = Path("cuda_core", "cuda", "core", "_bindings_floor.py") PYPROJECT = Path("cuda_core", "pyproject.toml") -CI_VERSIONS = Path("ci", "versions.yml") DOCS_SOURCE = Path("cuda_core", "docs", "source") -_CI_PIN_RE = re.compile(r"^\s+(build|prev_build):\s*\n\s+version:\s*\"(\d+)\.(\d+)(?:\.\d+)?\"", re.M) # `cuda-bindings >= 13.4.1`, ``cuda-bindings`` 13.4.1 or later, ... (release notes are exempt). _HAND_WRITTEN_FLOOR_RE = re.compile(r"cuda-bindings[`'\" ]{0,4}(?:>=\s*)?\d+\.\d+\.\d+") @@ -58,27 +51,6 @@ def read_floors(repo_root: Path) -> dict[int, tuple[int, int, int]]: return load_floor_module(repo_root).floors_from_extras(extras) -def ci_pin_problems(floors: dict[int, tuple[int, int, int]], versions_yml: str) -> list[str]: - """Toolkit pins in ci/versions.yml that sit below the floor's major.minor.""" - pins = {int(major): (int(major), int(minor), key) for key, major, minor in _CI_PIN_RE.findall(versions_yml)} - problems = [] - for major, floor in floors.items(): - if major not in pins: - problems.append(f"{CI_VERSIONS}: no build or prev_build toolkit pin for CUDA {major} (floor {floor})") - continue - pinned_major, pinned_minor, key = pins[major] - if pinned_major != floor[0] or pinned_minor < floor[1]: - problems.append( - f"{CI_VERSIONS}: cuda.{key}.version is {pinned_major}.{pinned_minor} but the CUDA {major} floor " - f"is cuda-bindings {'.'.join(map(str, floor))}. The toolkit must not sit below the floor's " - "major.minor. A toolkit ahead of the floor is the toolkit-bump window. See cuda_core/AGENTS.md" - ) - for major in pins: - if major not in floors: - problems.append(f"{CI_VERSIONS}: pins CUDA {major}, which has no cu{major} extra in {PYPROJECT}") - return problems - - def docs_problems(repo_root: Path) -> list[str]: """Documentation pages that spell out a floor by hand. Release notes are exempt.""" problems = [] @@ -96,11 +68,10 @@ def docs_problems(repo_root: Path) -> list[str]: def check(repo_root: Path) -> list[str]: try: - floors = read_floors(repo_root) + read_floors(repo_root) except ValueError as exc: return [f"{PYPROJECT}: {exc}"] - problems = ci_pin_problems(floors, (repo_root / CI_VERSIONS).read_text(encoding="utf-8")) - problems += docs_problems(repo_root) + problems = docs_problems(repo_root) return problems From af9017ab0e5a5d95e4bcd44b5ad839ae706b9049 Mon Sep 17 00:00:00 2001 From: Martin Durant Date: Fri, 13 Nov 2026 10:43:02 -0500 Subject: [PATCH 43/85] Remove outdated py3.10 code (#3430) --- cuda_core/cuda/core/_cpp/rt/py.hpp | 2 +- cuda_core/cuda/core/_cpp/rt/py_report.cpp | 5 ----- cuda_core/tests/memory_ipc/test_vmm_ipc.py | 4 ++-- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/cuda_core/cuda/core/_cpp/rt/py.hpp b/cuda_core/cuda/core/_cpp/rt/py.hpp index 17afa1c4a1bf..520fa37e462c 100644 --- a/cuda_core/cuda/core/_cpp/rt/py.hpp +++ b/cuda_core/cuda/core/_cpp/rt/py.hpp @@ -22,7 +22,7 @@ extern "C" int _Py_IsFinalizing(void); // call. // // If that race is lost on a non-finalizer thread, CPython's behavior is -// version-dependent: on older supported versions (3.10-3.13) it may abruptly +// version-dependent: on older supported versions (3.11-3.13) it may abruptly // terminate the current thread (historically via PyThread_exit_thread(), // without normal C++ unwinding), while on newer versions (3.14+) it may hang // the thread until process exit. diff --git a/cuda_core/cuda/core/_cpp/rt/py_report.cpp b/cuda_core/cuda/core/_cpp/rt/py_report.cpp index 3c0f3abf49c7..c09c080e0619 100644 --- a/cuda_core/cuda/core/_cpp/rt/py_report.cpp +++ b/cuda_core/cuda/core/_cpp/rt/py_report.cpp @@ -71,7 +71,6 @@ namespace { bool add_note_to_handled_exception(const char *message) noexcept { -#if PY_VERSION_HEX >= 0x030B0000 if (!Py_IsInitialized() || py_is_finalizing()) { return false; } @@ -91,10 +90,6 @@ add_note_to_handled_exception(const char *message) noexcept } Py_DECREF(result); return true; -#else - (void)message; - return false; -#endif } } // namespace diff --git a/cuda_core/tests/memory_ipc/test_vmm_ipc.py b/cuda_core/tests/memory_ipc/test_vmm_ipc.py index 204804fb6c08..d62d5639fe9f 100644 --- a/cuda_core/tests/memory_ipc/test_vmm_ipc.py +++ b/cuda_core/tests/memory_ipc/test_vmm_ipc.py @@ -108,8 +108,8 @@ def _settled_open_fds(): def _has_note(exc, text): - """Whether ``text`` is in one of the exception's notes, or in its message on Python 3.10.""" - return any(text in note for note in getattr(exc, "__notes__", ())) or text in str(exc) + """Whether ``text`` is in one of the exception's notes""" + return any(text in note for note in getattr(exc, "__notes__", ())) def _forge(desc, **fields): From 9d991df5b2eeadaf3873a0c333f85d75367e29e2 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Fri, 13 Nov 2026 09:41:14 -0800 Subject: [PATCH 44/85] ci: remove temporary nightly artifact fallback (#3434) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Remove temporary nightly artifact fallback after the main cutover * ci: trim unused lookup and test routing plumbing Remove unused run lookup options, matrix and environment outputs, and the obsolete wheel workflow branch alias. Resolve each test row’s effective bindings root and toolkit once during matrix selection. * ci: limit schema-less release routing to retained CUDA 13 tags Tagged sources that predate the bindings registry built only CUDA 13 bindings. Their CI runs hold no toolkit-qualified CUDA 12 artifacts, and v12.9.11a0 is the only CUDA 12 tag with such a source. Resolve these sources to their CUDA 13 root alone, and let the existing toolkit match reject CUDA 12 tags instead of routing them to artifacts that cannot exist. Drop CLI argument cross-checks whose misuse already fails loudly. Co-Authored-By: Claude Fable 5.2 * ci: gate bindings and metapackage steps on matrix flags alone Matrix selection already knows whether a row has local wheels. Clear TEST_BINDINGS and TEST_PYTHON on published-floor rows there, including workplan-less nightly runs, so the wheel-test workflows no longer need the SKIP_CUDA_BINDINGS_TEST override or repeated bindings-source conditions. Step selection is unchanged for every checked-in matrix row and test mode. Coverage builds its own wheels and used only the build parallelism from the wheel-test environment. Set that directly, so the scheduled workflow stops tracking the test-environment inputs. Co-Authored-By: Claude Fable 5.2 * ci: stop installing yq for Windows wheel builds The Windows build downloaded a pinned yq.exe only to read the backport branch from ci/versions.yml for the prior-major cuda.core build. That lookup is gone, and nothing in the build job invokes yq anymore. Co-Authored-By: Claude Fable 5.2 * ci: drop guards and exports that no longer have an effect - Every source revision the nightly accepts carries the bindings registry and therefore the Pathfinder mini-CTK checker, so run the check without probing for the checker file. - CUDA_BINDINGS_SOURCE_DIR lost its last reader when the docs build switched to the resolved bindings package root. - The tag lookup's artifact "verification" only fetched the run URL and could at most print a warning. Co-Authored-By: Claude Fable 5.2 * Revert "ci: limit schema-less release routing to retained CUDA 13 tags" This reverts commit 771078c92d881e60d5ab48b1a0c580aea45d0cd9. * ci: remove the orphaned install-gh-cli action The action installed gh in the container and self-hosted jobs that looked up prior-branch CUDA 12 artifacts. Those lookups are gone, and every remaining gh caller runs on a GitHub-hosted runner that ships gh. Remove the action, its key-rotation notes and pinned keyring, and the SPDX exclusion that existed only for that keyring. Co-Authored-By: Claude Fable 5.2 * ci: test the floor-row gating contract with its own provenance Move the assertion that published-floor rows never select local-wheel suites out of an earlier agent's test into a dedicated test carrying this change's authorship marker, and assert the resulting suite list. Co-Authored-By: Claude Fable 5.2 * ci: keep only the flag assertion in the floor-row gating test The suite label follows from the two flags, and the neighboring test already asserts that the row uses published-floor bindings. Co-Authored-By: Claude Fable 5.2 * ci: publish coverage only from main --------- Co-authored-by: Claude Fable 5.2 --- .github/actions/install-gh-cli/README.md | 68 --------- .github/actions/install-gh-cli/action.yml | 22 --- .../githubcli-archive-keyring.asc | 52 ------- .github/workflows/build-docs.yml | 2 - .github/workflows/build-wheel.yml | 24 --- .github/workflows/ci-nightly.yml | 28 +--- .github/workflows/coverage.yml | 25 +--- .github/workflows/test-wheel-linux.yml | 141 +++--------------- .github/workflows/test-wheel-windows.yml | 128 +++------------- .spdx-ignore | 1 - ci/README.md | 17 +-- ci/tools/bindings_config.py | 63 +------- ci/tools/ci_artifacts.py | 4 +- ci/tools/ci_env.py | 46 +----- ci/tools/lookup-run-id | 86 ++--------- ci/tools/select_test_matrix.py | 113 ++++++-------- ci/tools/tests/test_bindings_config.py | 94 +++++------- ci/tools/tests/test_select_test_matrix.py | 54 +++---- 18 files changed, 190 insertions(+), 778 deletions(-) delete mode 100644 .github/actions/install-gh-cli/README.md delete mode 100644 .github/actions/install-gh-cli/action.yml delete mode 100644 .github/actions/install-gh-cli/githubcli-archive-keyring.asc diff --git a/.github/actions/install-gh-cli/README.md b/.github/actions/install-gh-cli/README.md deleted file mode 100644 index 102ebc163cf9..000000000000 --- a/.github/actions/install-gh-cli/README.md +++ /dev/null @@ -1,68 +0,0 @@ -# install-gh-cli - -Installs the GitHub CLI (`gh`) from the `cli.github.com` apt repository on -Linux jobs that don't already have it. If `gh` is already on `PATH` the action -exits immediately. - -## Why the key is checked in - -The standard upstream install instructions download the repository signing key -over HTTPS and trust whatever bytes come back. The security of every `gh` -package installed in CI then rests solely on the TLS trust store of the runner -or container and the integrity of `cli.github.com`. Several workflows supply -`gh` with a `GITHUB_TOKEN`, so a substituted key could place a malicious -binary into those jobs. - -Checking the public key into the repository means apt will only accept packages -signed by a key that was reviewed in a pull request. The file contains exactly -one key, because apt trusts every key listed in a `signed-by=` keyring; a -multi-key file would widen trust unnecessarily. - -Packages from Ubuntu's own repositories don't need this: their signing keys -ship with the OS image in the `ubuntu-keyring` package, so apt checks them -against keys that are already on disk. `cli.github.com` is the only -third-party apt repository in our CI, and this action gives it the same -property: a key present before the job runs, not one fetched during it. - -## Updating the key - -GitHub occasionally rotates the signing key. The previous key (fingerprint -`2C61 0620 1985 B60E 6C7A C873 23F3 D4EA 7571 6059`) expired on 2026-09-05. -The current key (fingerprint `7F38 BBB5 9D06 4DBC B3D8 4D72 5612 B364 6231 -3325`) was created on 2026-04-07 and has no expiry. - -A key rotation shows up in CI as `apt-get update` failing with a `NO_PUBKEY` -or `EXPKEYSIG` error for the `cli.github.com` repository. - -To update the key: - -1. Find the new key's fingerprint in the [GitHub CLI Linux install docs](https://github.com/cli/cli/blob/trunk/docs/install_linux.md); the active fingerprints are listed near the top of the page. The docs are the reference; the key server is not an independent check since step 2 also fetches from the same host. - -2. Download the armored key for the new fingerprint directly from GitHub CLI's - published ASC file and extract only that key: - - ```bash - tmp=$(mktemp -d) - curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.asc \ - | gpg --homedir "$tmp" --batch --import - gpg --homedir "$tmp" --batch --armor --export \ - > .github/actions/install-gh-cli/githubcli-archive-keyring.asc - ``` - -3. Confirm the exported key signs the current repository metadata: - - ```bash - gpg --dearmor < .github/actions/install-gh-cli/githubcli-archive-keyring.asc \ - > "$tmp/key.gpg" - curl -fsSL https://cli.github.com/packages/dists/stable/InRelease \ - | gpgv --keyring "$tmp/key.gpg" - - ``` - - The output must say `Good signature from "GitHub CLI <...>"`. - -4. Update this README: replace the old fingerprint and creation/expiry dates - above with the new key's details. - -5. Open a pull request. Include the new fingerprint, the creation and expiry - dates from `gpg --show-keys`, and the `gpgv` output from step 3 in the PR - description. diff --git a/.github/actions/install-gh-cli/action.yml b/.github/actions/install-gh-cli/action.yml deleted file mode 100644 index 547ccaf15325..000000000000 --- a/.github/actions/install-gh-cli/action.yml +++ /dev/null @@ -1,22 +0,0 @@ -# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -# SPDX-License-Identifier: Apache-2.0 - -name: Install GitHub CLI -description: Install gh from the cli.github.com apt repo, trusting only the pinned signing key checked in next to this action - -runs: - using: composite - steps: - - name: Install gh - shell: bash --noprofile --norc -xeuo pipefail {0} - run: | - if command -v gh >/dev/null 2>&1; then - exit 0 - fi - # See .github/actions/install-gh-cli/README.md for key update instructions. - install -D -m 644 "$GITHUB_ACTION_PATH/githubcli-archive-keyring.asc" \ - /etc/apt/keyrings/githubcli-archive-keyring.asc - echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.asc] https://cli.github.com/packages stable main" \ - > /etc/apt/sources.list.d/github-cli.list - apt-get update -q - apt-get install -y gh diff --git a/.github/actions/install-gh-cli/githubcli-archive-keyring.asc b/.github/actions/install-gh-cli/githubcli-archive-keyring.asc deleted file mode 100644 index 9cbeb35cdf4a..000000000000 --- a/.github/actions/install-gh-cli/githubcli-archive-keyring.asc +++ /dev/null @@ -1,52 +0,0 @@ ------BEGIN PGP PUBLIC KEY BLOCK----- - -mQINBGnU4fgBEADKojfVZQ7H4KY0JLAT5rvRsB7toAsacUzUi/feD9JdEGQb5g18 -9FOB2KCg2Bin6hPwF0DpCMZ7XEhRgt1VK5HkSA1/f+qINN1JEpRyj5fu7yV93ipz -S5ISJV/TaUdg9JIFT9Qo69sIFJB+79epICQuGf0n1uAXLnLHMd+eIM85P1R2J/7V -TwjKMQCnoNjLhQpKdsSiltcEtzXwZ5jknV5+8iRCbvtiYQm8std+IlsxBdL02seK -KstWQziCb2ml73II5k4npaXN5b/1N6rm90M3P+8T645C3EQlbhy2HSc3uuMjMvuX -QIdIy9tjGPyG4eAO0oxuhHWhWdmkhXCs8PS4IxfHH1RMlbmGgUXpDk6qDsIuapOc -nD+uS6tLZhOkSGchfic3VeGN0F13kb//TIzHV+v5IcVTKbcSkXQu2zwtMFHGv2Xc -osxdp1qdCNlbcaO48pTUKMlnT+/2VUPPkTa5fx3EPlQAXiyBWZg9G7AhPWxxdi8J -7W6g/d0COZCZSSUy7zkEh68Wiv0mwfxeS0rZrpucARhwCoa8QYBtOX0OE/yKNxxr -MvoES1+FpbmIrWFJJ5JwESD2cLvnxCEWPjeWnJESubN1A0BsGJTKTZUhO1NPuVvX -HbxKfBzcGDm/Y5zfGlMOLdKnhRNGXJfMX3ZU645RoLEmAG8lXAcvffOIWQARAQAB -tCZHaXRIdWIgQ0xJIDxvcGVuc291cmNlK2NsaUBnaXRodWIuY29tPokCTgQTAQoA -OBYhBH84u7WdBk28s9hNclYSs2RiMTMlBQJp1OH4AhsDBQsJCAcCBhUKCQgLAgQW -AgMBAh4BAheAAAoJEFYSs2RiMTMl5PIP/3bQxn4UVdwO02LGyGJe4NFwUyHlKqz8 -cOTNc3KN9IXvLyN/CO7yZxRcqD6t+wLhxOuyVpAL4pPB+0/SWMXC3HTGerAUvM/d -70qpLUHVotkEzXbpkWefv7jC28bWQNs+UhgRsW//dkTneY6i5S1DXKom2tMz4kSo -f0oILvt488//gBReJ5or9TSvP6xcO/ZpyA4obLTBZuJRlaEJtJXHNCLfSlxUviRx -2o6TbFx5lDMpoCQC0CC9+vn5RwRVHtOe24iAJSN5QmslKwhx0j51pnkzEPpEXJRB -eToYI8K/MukKcf3OP5LTjHBINPM3UTMz/WR0ZdIJX7EA9brLG8M4g4eq5U2nIoDT -WzET4CW/c/4kZ79R0+pIk7I0OoI4sAdH4LpC27PDMFRXRVzreFa5gBp/km8Nmacz -BQEpAed369m8TWQD6pyOon/R1xBXZ+A/6yGyL38FXVl5PwwJa9kj5/MlqgBH03z0 -SD5G6JmhbEzMIuJvVW7ws41oJfFpKt9q5Kp35aChZM4CABfYt3iVd0zM/SYEmoDa -h8qqFtbvv++WSXMVLPE4gT+7GLRlqrYJzFFhhmpXed2oCJEHK1/wakG5ybDchKF/ -MDlhEv3QK2/OlaRo7PldKcNNXw3XtegOpIh/8UDJEG9JXr17GFmh1k025j0i3jjJ -E/LvvkD1OxH5uQINBGnU4fgBEADn2v5hLRHCyK3UT6lxsGQomcWJopda2rkpUiGL -vcNMjJ1AsqiTGhoLcG0Lkb+yiqGIaZG5seS4MhuosGx2OvWmBy16ocTLWSjSKR3d -C5tNbwmuCzENYOfDIJ1vweS+aiRC4yLTcDDBV6Po0sT3EANf4MbKPuqrR8FOCBRQ -mw+NVfmcz6eHS236ekmDTjymivbtWYGJoqoI1f2dQ9MNtpUG0zp5jLfYyDXbKSYP -mNhIXaTEy7AaQqM7JceX2CCUIwzkgVl3YPuenA0whMPhgderL867+w5rqtiOcE+n -FJ5X6ETQT1P5ijkDUtRlR60C4I7Q7MJ+Wsz4YryZdBRCVZHNCe0Q2y6NOLcHNNjd -JYEPP+MU5MOj6wuXzaCQuYgaMayf4sKhvQ3VwssBjMHpiKYYD3+IYSfiKeTcG5jk -hb8BNX6unBSl6u42vyVa6ZrKygt7w/9et/7P2z22tKMBc7b3Mea7OdmzXWcFjftq -HviWfAUxwIXmcYdU4iDPn/f63jLF+C4SD4hPxX2HMTg9vVj8oVRmsyRKFOymuJYv -BF2jnIM5Tz5eNbbDj9+qFN8E4Yh2otJGL73XYYJGLhXa3kF50iJkDEl5V4KLyh41 -N2uRz3d+8m2ywT4fUsCnxDp8o5gfsNrdZ9n8TCxqz6lF7bGcwxHogkvA7PKDX/9A -7DEFfwARAQABiQI2BBgBCgAgFiEEfzi7tZ0GTbyz2E1yVhKzZGIxMyUFAmnU4fgC -GwwACgkQVhKzZGIxMyWGwRAAudgkwZldahscnAV9Xo2kremlOqZE3rQPSZ2hUYPI -QQJEMzNKcWFKJIWzuG5ez25VJveHTUDaYikg/6IUvXBwKenFHDdexiuTcEvVhcpx -2Lgp0ONfxrVR1XxqbY1/21ui7QCOxnB0QUalZSwasww36kCCbeBjsNi7BRmNGHo7 -ChKzFsZuOWOqNc9wdzb9GeqqG99mDTa6Hu364I2QoEJci9eBHwC01mq+5V0CarmD -LIECpPboHmrx5Wi55End2FTFR0Ivb74O1U8cl6RfrnQ2rZw8mDcsFya1JaF7pb5+ -y2Q8pTxGd6s0MEMScZIJ/FePK3+dpYoJiWvPXoIh7HFIMpK5t+gAZqzLOozAdPnJ -49YmiyVO4bTx1yor++FCNyY5EmyKzaVer4DUfpAvTc1cdxmaqWUFsQfeTmL0nl6q -RKylvsJ7DR4s6EfUKxAiB4V4nTpY5nNiAJ0D+tQOjh1AkYydBYAhphb3RAetdz2k -WdcEvrNCOzMBxRU/NmkpTeGA1KqtdskfNuShffX+1p0PJn1hZ4k94S0nSQmJvxi1 -2Ad/JG1uyKduza8+bagVf9Qx2OpX2eNvlJDRPd0zpwfAgbL1WI4lmpWjQaVYa96T -awT/BuyG+L/QXxAiUEgd+r/8DE57aS0sxM/M5i/bwrPWgb1CZQq6lUOG4C34tHvD -LxU= -=VbVd ------END PGP PUBLIC KEY BLOCK----- diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 8d9a4e92cd0c..b27f956e8f1a 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -157,8 +157,6 @@ jobs: DOCS_GITHUB_REF=$(python ci/tools/checkout_source_links.py --github-ref) fi - echo "CUDA_BINDINGS_SOURCE_DIR=${BINDINGS_PACKAGE_ROOT}" >> "$GITHUB_ENV" - # make outputs from the previous job as env vars CUDA_CORE_ARTIFACT_BASENAME="cuda-core-python${PYTHON_VERSION_FORMATTED}-linux-64" echo "CUDA_PYTHON_DOCS_GITHUB_REF=${DOCS_GITHUB_REF}" >> $GITHUB_ENV diff --git a/.github/workflows/build-wheel.yml b/.github/workflows/build-wheel.yml index 064c7cd7623f..e1ab9b2802d4 100644 --- a/.github/workflows/build-wheel.yml +++ b/.github/workflows/build-wheel.yml @@ -116,30 +116,6 @@ jobs: with: arch: ${{ (inputs.host-platform == 'win-arm64' && 'arm64') || 'x64' }} - - name: Set up yq - # GitHub made an unprofessional decision to not provide it in their Windows VMs, - # see https://github.com/actions/runner-images/issues/7443. - if: ${{ startsWith(inputs.host-platform, 'win') && env.BUILD_CORE == 'true' }} - env: - YQ_VERSION: v4.52.5 - YQ_ARCH: ${{ (inputs.host-platform == 'win-arm64' && 'arm64') || 'amd64' }} - YQ_SHA256: ${{ (inputs.host-platform == 'win-arm64' && '236867affa7f18701d4c763cf16b6df962cf4f7e89a8570a5954cf94a38f41c7') || '47594981f3848a4b4447494adeca9555f908f7cf0a89c4da3fd0243a4631da1c' }} - YQ_DIR: yq - shell: pwsh -command ". '{0}'" - run: | - $yqUrl = "https://github.com/mikefarah/yq/releases/download/${env:YQ_VERSION}/yq_windows_${env:YQ_ARCH}.exe" - mkdir -Force -ErrorAction SilentlyContinue "${env:YQ_DIR}" | Out-Null - Invoke-WebRequest -UseBasicParsing -OutFile "${env:YQ_DIR}/yq.exe" -Uri "$yqUrl" - $hash = (Get-FileHash -Algorithm SHA256 "${env:YQ_DIR}/yq.exe").Hash.ToLower() - if ($hash -ne $env:YQ_SHA256) { - Write-Error "SHA256 mismatch for yq: expected $env:YQ_SHA256, got $hash" - exit 1 - } - ls -l $env:YQ_DIR - echo "$((Get-Location).Path)\\$env:YQ_DIR" >> $env:GITHUB_PATH - $env:Path += ";$((Get-Location).Path)\\$env:YQ_DIR" - yq --version - - name: Dump environment run: | env diff --git a/.github/workflows/ci-nightly.yml b/.github/workflows/ci-nightly.yml index 9285de76b329..78a1f0f8215f 100644 --- a/.github/workflows/ci-nightly.yml +++ b/.github/workflows/ci-nightly.yml @@ -78,8 +78,6 @@ jobs: RUN_ID: ${{ steps.find.outputs.run_id }} HEAD_SHA: ${{ steps.find.outputs.head_sha }} BINDINGS_CONFIG: ${{ steps.find.outputs.bindings_config }} - CUDA_BUILD_VER: ${{ steps.find.outputs.cuda_build_ver }} - LEGACY_BACKPORT_BRANCH: ${{ steps.find.outputs.legacy_backport_branch }} steps: - name: Checkout repository uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -128,8 +126,8 @@ jobs: snapshot=$(mktemp -d) trap 'rm -rf -- "$snapshot"' EXIT git archive "$HEAD_SHA" ci/versions.yml | tar -x -C "$snapshot" - python -m ci.tools.bindings_config --config "$snapshot/ci/versions.yml" \ - --nightly-source-output "$GITHUB_OUTPUT" + BINDINGS_CONFIG=$(python -m ci.tools.bindings_config --config "$snapshot/ci/versions.yml") + echo "bindings_config=$BINDINGS_CONFIG" >> "$GITHUB_OUTPUT" echo "run_id=$RUN_ID" >> $GITHUB_OUTPUT echo "head_sha=$HEAD_SHA" >> $GITHUB_OUTPUT @@ -149,8 +147,6 @@ jobs: build-type: nightly host-platform: linux-64 bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} - build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} - legacy-backport-branch: ${{ needs.find-wheels.outputs.LEGACY_BACKPORT_BRANCH }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} test-mode: nightly-pytorch @@ -169,8 +165,6 @@ jobs: build-type: nightly host-platform: linux-aarch64 bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} - build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} - legacy-backport-branch: ${{ needs.find-wheels.outputs.LEGACY_BACKPORT_BRANCH }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} test-mode: nightly-pytorch @@ -189,8 +183,6 @@ jobs: build-type: nightly host-platform: win-64 bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} - build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} - legacy-backport-branch: ${{ needs.find-wheels.outputs.LEGACY_BACKPORT_BRANCH }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} test-mode: nightly-pytorch @@ -211,8 +203,6 @@ jobs: build-type: nightly host-platform: linux-64 bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} - build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} - legacy-backport-branch: ${{ needs.find-wheels.outputs.LEGACY_BACKPORT_BRANCH }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} test-mode: nightly-numba-cuda @@ -231,8 +221,6 @@ jobs: build-type: nightly host-platform: linux-aarch64 bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} - build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} - legacy-backport-branch: ${{ needs.find-wheels.outputs.LEGACY_BACKPORT_BRANCH }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} test-mode: nightly-numba-cuda @@ -251,8 +239,6 @@ jobs: build-type: nightly host-platform: win-64 bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} - build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} - legacy-backport-branch: ${{ needs.find-wheels.outputs.LEGACY_BACKPORT_BRANCH }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} test-mode: nightly-numba-cuda @@ -273,8 +259,6 @@ jobs: build-type: nightly host-platform: linux-64 bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} - build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} - legacy-backport-branch: ${{ needs.find-wheels.outputs.LEGACY_BACKPORT_BRANCH }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} test-mode: nightly-numba-cuda-mlir @@ -293,8 +277,6 @@ jobs: build-type: nightly host-platform: win-64 bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} - build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} - legacy-backport-branch: ${{ needs.find-wheels.outputs.LEGACY_BACKPORT_BRANCH }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} test-mode: nightly-numba-cuda-mlir @@ -315,8 +297,6 @@ jobs: build-type: nightly host-platform: linux-64 bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} - build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} - legacy-backport-branch: ${{ needs.find-wheels.outputs.LEGACY_BACKPORT_BRANCH }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} test-mode: nightly-cuda-core @@ -335,8 +315,6 @@ jobs: build-type: nightly host-platform: win-64 bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} - build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} - legacy-backport-branch: ${{ needs.find-wheels.outputs.LEGACY_BACKPORT_BRANCH }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} test-mode: nightly-cuda-core @@ -357,8 +335,6 @@ jobs: build-type: nightly host-platform: linux-aarch64 bindings-config: ${{ needs.find-wheels.outputs.BINDINGS_CONFIG }} - build-ctk-ver: ${{ needs.find-wheels.outputs.CUDA_BUILD_VER }} - legacy-backport-branch: ${{ needs.find-wheels.outputs.LEGACY_BACKPORT_BRANCH }} run-id: ${{ needs.find-wheels.outputs.RUN_ID }} sha: ${{ needs.find-wheels.outputs.HEAD_SHA }} test-mode: standard diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 26dcc73c4dc0..826e71124381 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -22,7 +22,6 @@ jobs: permissions: contents: read outputs: - BINDINGS_CONFIG: ${{ steps.get-vars.outputs.bindings_config }} BINDINGS_ROOT: ${{ steps.get-vars.outputs.bindings_root }} CUDA_VER: ${{ steps.get-vars.outputs.cuda_ver }} steps: @@ -43,7 +42,6 @@ jobs: run: | current=$(python3 -m ci.tools.bindings_config --release-status current) { - echo "bindings_config=$(python3 -m ci.tools.bindings_config)" echo "bindings_root=$(jq -r '.package_root' <<< "$current")" echo "cuda_ver=$(jq -r '.toolkit_version' <<< "$current")" } >> "$GITHUB_OUTPUT" @@ -106,8 +104,8 @@ jobs: uses: ./.github/actions/install_unix_deps continue-on-error: false with: - dependencies: "tree rsync libsqlite3-0 g++ jq wget libgl1 libegl1 yq" - dependent_exes: "tree rsync libsqlite3-0 g++ jq wget libgl1 libegl1 yq" + dependencies: "tree rsync libsqlite3-0 g++ jq wget libgl1 libegl1" + dependent_exes: "tree rsync libsqlite3-0 g++ jq wget libgl1 libegl1" - name: Setup proxy cache uses: nv-gha-runners/setup-proxy-cache@main @@ -120,21 +118,8 @@ jobs: venv: .venv - name: Set environment variables - env: - BINDINGS_CONFIG: ${{ needs.coverage-vars.outputs.BINDINGS_CONFIG }} - BUILD_CUDA_VER: ${{ env.CUDA_VER }} - CURRENT_BUILD_CUDA_VER: ${{ env.CUDA_VER }} - BINDINGS_SOURCE: local - BINDINGS_SOURCE_DIR: ${{ env.BINDINGS_ROOT }} - DEFAULT_BINDINGS_SOURCE_DIR: ${{ env.BINDINGS_ROOT }} - PATHFINDER_SOURCE: artifact - CUDA_VER: ${{ env.CUDA_VER }} - HOST_PLATFORM: ${{ env.HOST_PLATFORM }} - LOCAL_CTK: ${{ env.LOCAL_CTK }} - PY_VER: ${{ env.PY_VER }} - SHA: ${{ github.sha }} - run: | - python ci/tools/ci_env.py test + run: | + echo "CUDA_PYTHON_PARALLEL_LEVEL=$(nproc)" >> $GITHUB_ENV echo "CUDA_PYTHON_COVERAGE=1" >> $GITHUB_ENV - name: Set up mini CTK @@ -625,7 +610,7 @@ jobs: # GitHub discards prerequisite artifacts on a new run attempt. If only this # job fails, use "Re-run all jobs" so coverage recreates its payload. needs: combine-and-deploy - if: ${{ needs.combine-and-deploy.result == 'success' && github.repository_owner == 'nvidia' }} + if: ${{ needs.combine-and-deploy.result == 'success' && github.repository_owner == 'nvidia' && github.ref == 'refs/heads/main' }} runs-on: ubuntu-latest permissions: contents: write diff --git a/.github/workflows/test-wheel-linux.yml b/.github/workflows/test-wheel-linux.yml index 2d202d1344dc..156827cc61c4 100644 --- a/.github/workflows/test-wheel-linux.yml +++ b/.github/workflows/test-wheel-linux.yml @@ -13,18 +13,10 @@ on: host-platform: type: string required: true - build-ctk-ver: - description: Build toolkit for the LEGACY_CONFIG snapshot route. - type: string - default: '' bindings-config: - description: Normalized registry JSON, or LEGACY_CONFIG for an older source snapshot. + description: Normalized bindings registry JSON from the artifact source. type: string - default: '' - legacy-backport-branch: - description: Backport branch from the legacy artifact source; unused with bindings-config. - type: string - default: '' + required: true matrix_filter: type: string default: "." @@ -64,7 +56,6 @@ jobs: runs-on: ubuntu-latest env: BINDINGS_CONFIG: ${{ inputs.bindings-config }} - LEGACY_BACKPORT_BRANCH: ${{ inputs.legacy-backport-branch }} BUILD_TYPE: ${{ inputs.build-type }} WORKPLAN: ${{ inputs.workplan }} TEST_MODE: ${{ inputs.test-mode }} @@ -72,7 +63,6 @@ jobs: (inputs.host-platform == 'linux-aarch64' && 'arm64') }} outputs: MATRIX: ${{ steps.compute-matrix.outputs.MATRIX }} - OLD_BRANCH: ${{ steps.compute-matrix.outputs.OLD_BRANCH }} steps: - name: Checkout ${{ github.event.repository.name }} uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -87,50 +77,32 @@ jobs: sparse-checkout: ci/tools persist-credentials: false - - name: Validate Test Type - run: | - if [[ "$BUILD_TYPE" != "pull-request" ]] && [[ "$BUILD_TYPE" != "nightly" ]] && [[ "$BUILD_TYPE" != "branch" ]]; then - echo "Invalid build type! Must be one of 'nightly', 'pull-request', or 'branch'." - exit 1 - fi - - name: Compute Python Test Matrix id: compute-matrix run: | - # Use the nightly matrix for branch tests - MATRIX_TYPE="${BUILD_TYPE}" - if [[ "${MATRIX_TYPE}" == "branch" ]]; then - MATRIX_TYPE="nightly" - fi - # Read base matrix from YAML file for the specific architecture - TEST_MATRIX=$(yq -o json ".linux[\"${MATRIX_TYPE}\"] | map(select(.ARCH == \"${ARCH}\"))" ci/test-matrix.yml) + TEST_MATRIX=$(yq -o json ".linux[\"${BUILD_TYPE}\"] | map(select(.ARCH == \"${ARCH}\"))" ci/test-matrix.yml) # Apply the caller's free-form jq filter before shared Python selection. MATRIX=$(jq -c '${{ inputs.matrix_filter }}' <<< "$TEST_MATRIX" \ | python3 .ci-control/ci/tools/select_test_matrix.py --platform linux) - if [[ "$BINDINGS_CONFIG" == "LEGACY_CONFIG" ]]; then - echo "OLD_BRANCH=${LEGACY_BACKPORT_BRANCH}" >> "$GITHUB_OUTPUT" - else - { - echo '### Selected wheel test coverage' - echo '| Suites | Python | CTK | Toolkit source | Bindings source | GPU |' - echo '| --- | --- | --- | --- | --- | --- |' - jq -r '.include[] | "| \(.SUITES) | \(.PY_VER) | \(.CUDA_VER) | \(if .LOCAL_CTK == "1" then "local CTK" else "wheels" end) | \(if .BINDINGS_SOURCE == "local" then .BINDINGS_SOURCE_DIR else "published floor" end) | \(.GPU) |"' <<< "$MATRIX" - } >> "$GITHUB_STEP_SUMMARY" - fi + { + echo '### Selected wheel test coverage' + echo '| Suites | Python | CTK | Toolkit source | Bindings source | GPU |' + echo '| --- | --- | --- | --- | --- | --- |' + jq -r '.include[] | "| \(.SUITES) | \(.PY_VER) | \(.CUDA_VER) | \(if .LOCAL_CTK == "1" then "local CTK" else "wheels" end) | \(if .BINDINGS_SOURCE == "local" then .BINDINGS_SOURCE_DIR else "published floor" end) | \(.GPU) |"' <<< "$MATRIX" + } >> "$GITHUB_STEP_SUMMARY" echo "MATRIX=${MATRIX}" | tee --append "${GITHUB_OUTPUT}" test: env: - BINDINGS_CONFIG: ${{ inputs.bindings-config }} TEST_PATHFINDER: ${{ matrix.TEST_PATHFINDER }} TEST_BINDINGS: ${{ matrix.TEST_BINDINGS }} TEST_CORE: ${{ matrix.TEST_CORE }} TEST_PYTHON: ${{ matrix.TEST_PYTHON }} - name: ${{ matrix.SUITES || inputs.test-mode }} / py${{ matrix.PY_VER }}, CTK${{ matrix.CUDA_VER }} (${{ (matrix.LOCAL_CTK == '1' && 'local CTK') || 'wheels' }}; bindings ${{ matrix.BINDINGS_SOURCE == 'local' && 'PR' || 'floor' }}), GPU ${{ matrix.GPU }}${{ matrix.GPU_COUNT != '1' && format(' (x{0})', matrix.GPU_COUNT) || '' }}${{ matrix.FLAVOR && format(', {0}', matrix.FLAVOR) || '' }}${{ matrix.ENV.TORCH_VER && format(', {0}+{1}', matrix.ENV.TORCH_VER, matrix.ENV.TORCH_CUDA) || '' }}${{ matrix.ENV.MODE == 'nightly-numba-cuda' && ', latest' || '' }} + name: ${{ matrix.SUITES }} / py${{ matrix.PY_VER }}, CTK${{ matrix.CUDA_VER }} (${{ (matrix.LOCAL_CTK == '1' && 'local CTK') || 'wheels' }}; bindings ${{ matrix.BINDINGS_SOURCE == 'local' && 'PR' || 'floor' }}), GPU ${{ matrix.GPU }}${{ matrix.GPU_COUNT != '1' && format(' (x{0})', matrix.GPU_COUNT) || '' }}${{ matrix.FLAVOR && format(', {0}', matrix.FLAVOR) || '' }}${{ matrix.ENV.TORCH_VER && format(', {0}+{1}', matrix.ENV.TORCH_VER, matrix.ENV.TORCH_CUDA) || '' }}${{ matrix.ENV.MODE == 'nightly-numba-cuda' && ', latest' || '' }} timeout-minutes: 60 needs: compute-matrix strategy: @@ -177,9 +149,8 @@ jobs: # for artifact fetching, graphics libs, g++ required for cffi in # example; util-linux for `nsenter` (custom-DRIVER rows re-exec # install_gpu_driver.sh onto the host through nsenter) - # yq supports retained legacy-snapshot routing in ci/tools/ci_env.py - dependencies: "jq wget libgl1 libegl1 g++ util-linux yq" - dependent_exes: "jq wget yq" + dependencies: "jq wget libgl1 libegl1 g++ util-linux" + dependent_exes: "jq wget" - name: Update container CA certificates run: | @@ -206,18 +177,16 @@ jobs: - name: Set environment variables env: - BUILD_CUDA_VER: ${{ matrix.BINDINGS_BUILD_VERSION || inputs.build-ctk-ver }} + BUILD_CUDA_VER: ${{ matrix.BINDINGS_BUILD_VERSION }} CURRENT_BUILD_CUDA_VER: ${{ matrix.CURRENT_BUILD_CUDA_VER }} BINDINGS_SOURCE: ${{ matrix.BINDINGS_SOURCE }} BINDINGS_SOURCE_DIR: ${{ matrix.BINDINGS_SOURCE_DIR }} - DEFAULT_BINDINGS_SOURCE_DIR: ${{ matrix.DEFAULT_BINDINGS_SOURCE_DIR }} CUDA_VER: ${{ matrix.CUDA_VER }} HOST_PLATFORM: ${{ inputs.host-platform }} LOCAL_CTK: ${{ matrix.LOCAL_CTK }} - PATHFINDER_SOURCE: ${{ matrix.PATHFINDER_SOURCE || 'artifact' }} + PATHFINDER_SOURCE: ${{ matrix.PATHFINDER_SOURCE }} PY_VER: ${{ matrix.PY_VER }} SHA: ${{ inputs.sha || github.sha }} - SKIP_BINDINGS_TEST_OVERRIDE: ${{ env.TEST_BINDINGS != 'true' && '1' || '0' }} run: python .ci-control/ci/tools/ci_env.py test - name: Apply extra matrix environment variables @@ -237,7 +206,7 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Download cuda-python build artifacts - if: ${{ env.TEST_PYTHON == 'true' && (env.BINDINGS_SOURCE == 'local' || env.BINDINGS_SOURCE == 'main') }} + if: ${{ env.TEST_PYTHON == 'true' }} uses: $/.github/actions/download-artifact-retry with: name: ${{ env.CUDA_PYTHON_ARTIFACT_NAME }} @@ -247,7 +216,7 @@ jobs: - name: Download cuda.bindings build artifacts if: ${{ (env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' || env.TEST_PYTHON == 'true') && - (env.BINDINGS_SOURCE == 'local' || env.BINDINGS_SOURCE == 'main' || + (env.BINDINGS_SOURCE == 'local' || (env.BINDINGS_SOURCE == 'floor' && env.TEST_CORE == 'true' && env.TEST_CUDA_MAJOR == env.BUILD_CUDA_MAJOR)) }} uses: $/.github/actions/download-artifact-retry @@ -257,81 +226,21 @@ jobs: run-id: ${{ inputs.run-id || github.run_id }} github-token: ${{ secrets.GITHUB_TOKEN }} - - name: Install GitHub CLI - if: ${{ (env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' || env.TEST_PYTHON == 'true') && - env.BINDINGS_SOURCE == 'backport' }} - # $/ resolves at the workflow's commit. ./ would resolve against the - # inputs.sha checkout, which can predate this action. - uses: $/.github/actions/install-gh-cli - - - name: Look up prior-branch artifacts run ID - id: prior - if: ${{ (env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' || env.TEST_PYTHON == 'true') && - env.BINDINGS_SOURCE == 'backport' }} - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - OLD_BRANCH: ${{ needs.compute-matrix.outputs.OLD_BRANCH }} - run: | - : "${OLD_BRANCH:?legacy-backport-branch is required for legacy prior-branch artifacts}" - OLD_ARTIFACT_PATTERN="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda*-${{ inputs.host-platform }}-*[0-9a-f]" - LOOKUP_ARGS=( - --branch "${OLD_BRANCH}" - --artifact "${OLD_ARTIFACT_PATTERN}" - ) - if ${{ env.TEST_PYTHON == 'true' }}; then - LOOKUP_ARGS+=(--artifact cuda-python-wheel) - fi - LATEST_PRIOR_RUN_ID=$(./.ci-control/ci/tools/lookup-run-id \ - "${LOOKUP_ARGS[@]}" NVIDIA/cuda-python "CI") - echo "run-id=${LATEST_PRIOR_RUN_ID}" >> "${GITHUB_OUTPUT}" - echo "artifact-pattern=${OLD_ARTIFACT_PATTERN}" >> "${GITHUB_OUTPUT}" - - - name: Download prior-branch cuda.bindings build artifacts - if: ${{ (env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' || env.TEST_PYTHON == 'true') && - env.BINDINGS_SOURCE == 'backport' }} - uses: $/.github/actions/download-artifact-retry - with: - pattern: ${{ steps.prior.outputs.artifact-pattern }} - merge-multiple: "true" - path: ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }} - run-id: ${{ steps.prior.outputs.run-id }} - github-token: ${{ secrets.GITHUB_TOKEN }} - - - name: Download prior-branch cuda-python wheel - if: ${{ env.TEST_PYTHON == 'true' && env.BINDINGS_SOURCE == 'backport' }} - uses: $/.github/actions/download-artifact-retry - with: - name: cuda-python-wheel - path: . - run-id: ${{ steps.prior.outputs.run-id }} - github-token: ${{ secrets.GITHUB_TOKEN }} - - - name: Verify prior-branch artifact layout - if: ${{ (env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' || env.TEST_PYTHON == 'true') && - env.BINDINGS_SOURCE == 'backport' }} - run: | - bindings_wheels=("${CUDA_BINDINGS_ARTIFACTS_DIR}"/cuda_bindings-*.whl) - if [[ "${#bindings_wheels[@]}" -ne 1 ]] || [[ ! -f "${bindings_wheels[0]}" ]]; then - echo "::error::Expected exactly one cuda_bindings wheel in ${CUDA_BINDINGS_ARTIFACTS_DIR}; found: ${bindings_wheels[*]}" - exit 1 - fi - ls -al "${CUDA_BINDINGS_ARTIFACTS_DIR}" - - name: Display structure of downloaded cuda-python artifacts - if: ${{ env.TEST_PYTHON == 'true' && (env.BINDINGS_SOURCE == 'local' || env.BINDINGS_SOURCE == 'main') }} + if: ${{ env.TEST_PYTHON == 'true' }} run: | pwd ls -lah cuda_python*.whl cuda_pathfinder/ - name: Display structure of downloaded cuda.bindings artifacts if: ${{ (env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' || env.TEST_PYTHON == 'true') && - (env.BINDINGS_SOURCE == 'local' || env.BINDINGS_SOURCE == 'main') }} + env.BINDINGS_SOURCE == 'local' }} run: | pwd ls -lahR $CUDA_BINDINGS_ARTIFACTS_DIR - name: Download cuda.bindings Cython tests - if: ${{ env.TEST_BINDINGS == 'true' && env.SKIP_CYTHON_TEST == '0' }} + if: ${{ env.TEST_BINDINGS == 'true' }} uses: $/.github/actions/download-artifact-retry with: name: ${{ env.CUDA_BINDINGS_ARTIFACT_NAME }}-tests @@ -340,7 +249,7 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Display structure of downloaded cuda.bindings Cython tests - if: ${{ env.TEST_BINDINGS == 'true' && env.SKIP_CYTHON_TEST == '0' }} + if: ${{ env.TEST_BINDINGS == 'true' }} run: | pwd ls -lahR $CUDA_BINDINGS_CYTHON_TESTS_DIR @@ -446,21 +355,19 @@ jobs: CUDA_PATHFINDER_TEST_FIND_NVIDIA_BITCODE_LIB_STRICTNESS: see_what_works run: run-tests pathfinder - # The checker and the mini-CTK layout it expects both come from the - # inputs.sha checkout. Nightly runs may check out a commit without them. - name: Check cuda.pathfinder loads NVRTC and CUPTI from the mini CTK - if: ${{ inputs.test-mode == 'standard' && env.TEST_PATHFINDER == 'true' && matrix.LOCAL_CTK == '1' && hashFiles('ci/tools/check_pathfinder_ctk_libs.py') != '' }} + if: ${{ inputs.test-mode == 'standard' && env.TEST_PATHFINDER == 'true' && matrix.LOCAL_CTK == '1' }} run: python ci/tools/check_pathfinder_ctk_libs.py nvrtc cupti - name: Run cuda.bindings tests - if: ${{ inputs.test-mode == 'standard' && env.TEST_BINDINGS == 'true' && env.SKIP_CUDA_BINDINGS_TEST == '0' }} + if: ${{ inputs.test-mode == 'standard' && env.TEST_BINDINGS == 'true' }} env: CUDA_VER: ${{ matrix.CUDA_VER }} LOCAL_CTK: ${{ matrix.LOCAL_CTK }} run: run-tests bindings - name: Run cuda.bindings benchmarks (smoke test) - if: ${{ inputs.test-mode == 'standard' && env.TEST_BINDINGS == 'true' && env.SKIP_CUDA_BINDINGS_TEST == '0' }} + if: ${{ inputs.test-mode == 'standard' && env.TEST_BINDINGS == 'true' }} run: | pip install pyperf pushd benchmarks/cuda_bindings @@ -475,7 +382,7 @@ jobs: run: run-tests core - name: Ensure cuda-python installable - if: ${{ inputs.test-mode == 'standard' && env.TEST_PYTHON == 'true' && env.BINDINGS_SOURCE != 'floor' }} + if: ${{ inputs.test-mode == 'standard' && env.TEST_PYTHON == 'true' }} env: LOCAL_CTK: ${{ matrix.LOCAL_CTK }} shell: bash --noprofile --norc -xeuo pipefail {0} diff --git a/.github/workflows/test-wheel-windows.yml b/.github/workflows/test-wheel-windows.yml index 88412692e165..63d50178e6ad 100644 --- a/.github/workflows/test-wheel-windows.yml +++ b/.github/workflows/test-wheel-windows.yml @@ -13,18 +13,10 @@ on: host-platform: type: string required: true - build-ctk-ver: - description: Build toolkit for the LEGACY_CONFIG snapshot route. - type: string - default: '' bindings-config: - description: Normalized registry JSON, or LEGACY_CONFIG for an older source snapshot. + description: Normalized bindings registry JSON from the artifact source. type: string - default: '' - legacy-backport-branch: - description: Backport branch from the legacy artifact source; unused with bindings-config. - type: string - default: '' + required: true matrix_filter: type: string default: "." @@ -63,14 +55,12 @@ jobs: shell: bash --noprofile --norc -xeuo pipefail {0} env: BINDINGS_CONFIG: ${{ inputs.bindings-config }} - LEGACY_BACKPORT_BRANCH: ${{ inputs.legacy-backport-branch }} BUILD_TYPE: ${{ inputs.build-type }} WORKPLAN: ${{ inputs.workplan }} TEST_MODE: ${{ inputs.test-mode }} ARCH: ${{ (inputs.host-platform == 'win-64' && 'amd64') }} outputs: MATRIX: ${{ steps.compute-matrix.outputs.MATRIX }} - OLD_BRANCH: ${{ steps.compute-matrix.outputs.OLD_BRANCH }} steps: - name: Checkout ${{ github.event.repository.name }} uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -85,49 +75,32 @@ jobs: sparse-checkout: ci/tools persist-credentials: false - - name: Validate Test Type - run: | - if [[ "$BUILD_TYPE" != "pull-request" ]] && [[ "$BUILD_TYPE" != "nightly" ]] && [[ "$BUILD_TYPE" != "branch" ]]; then - echo "Invalid build type! Must be one of 'nightly', 'pull-request', or 'branch'." - exit 1 - fi - name: Compute Python Test Matrix id: compute-matrix run: | - # Use the nightly matrix for branch tests - MATRIX_TYPE="${BUILD_TYPE}" - if [[ "${MATRIX_TYPE}" == "branch" ]]; then - MATRIX_TYPE="nightly" - fi - # Read base matrix from YAML file for the specific architecture - TEST_MATRIX=$(yq -o json ".windows[\"${MATRIX_TYPE}\"] | map(select(.ARCH == \"${ARCH}\"))" ci/test-matrix.yml) + TEST_MATRIX=$(yq -o json ".windows[\"${BUILD_TYPE}\"] | map(select(.ARCH == \"${ARCH}\"))" ci/test-matrix.yml) # Apply the caller's free-form jq filter before shared Python selection. MATRIX=$(jq -c '${{ inputs.matrix_filter }}' <<< "$TEST_MATRIX" \ | python3 .ci-control/ci/tools/select_test_matrix.py --platform windows) - if [[ "$BINDINGS_CONFIG" == "LEGACY_CONFIG" ]]; then - echo "OLD_BRANCH=${LEGACY_BACKPORT_BRANCH}" >> "$GITHUB_OUTPUT" - else - { - echo '### Selected wheel test coverage' - echo '| Suites | Python | CTK | Toolkit source | Bindings source | GPU |' - echo '| --- | --- | --- | --- | --- | --- |' - jq -r '.include[] | "| \(.SUITES) | \(.PY_VER) | \(.CUDA_VER) | \(if .LOCAL_CTK == "1" then "local CTK" else "wheels" end) | \(if .BINDINGS_SOURCE == "local" then .BINDINGS_SOURCE_DIR else "published floor" end) | \(.GPU) |"' <<< "$MATRIX" - } >> "$GITHUB_STEP_SUMMARY" - fi + { + echo '### Selected wheel test coverage' + echo '| Suites | Python | CTK | Toolkit source | Bindings source | GPU |' + echo '| --- | --- | --- | --- | --- | --- |' + jq -r '.include[] | "| \(.SUITES) | \(.PY_VER) | \(.CUDA_VER) | \(if .LOCAL_CTK == "1" then "local CTK" else "wheels" end) | \(if .BINDINGS_SOURCE == "local" then .BINDINGS_SOURCE_DIR else "published floor" end) | \(.GPU) |"' <<< "$MATRIX" + } >> "$GITHUB_STEP_SUMMARY" echo "MATRIX=${MATRIX}" | tee --append "${GITHUB_OUTPUT}" test: env: - BINDINGS_CONFIG: ${{ inputs.bindings-config }} TEST_PATHFINDER: ${{ matrix.TEST_PATHFINDER }} TEST_BINDINGS: ${{ matrix.TEST_BINDINGS }} TEST_CORE: ${{ matrix.TEST_CORE }} TEST_PYTHON: ${{ matrix.TEST_PYTHON }} - name: ${{ matrix.SUITES || inputs.test-mode }} / py${{ matrix.PY_VER }}, CTK${{ matrix.CUDA_VER }} (${{ (matrix.LOCAL_CTK == '1' && 'local CTK') || 'wheels' }}; bindings ${{ matrix.BINDINGS_SOURCE == 'local' && 'PR' || 'floor' }}), GPU ${{ matrix.GPU }}${{ matrix.GPU_COUNT != '1' && format(' (x{0})', matrix.GPU_COUNT) || '' }} (${{ matrix.DRIVER_MODE }})${{ matrix.ENV.TORCH_VER && format(', {0}+{1}', matrix.ENV.TORCH_VER, matrix.ENV.TORCH_CUDA) || '' }}${{ matrix.ENV.MODE == 'nightly-numba-cuda' && ', latest' || '' }} + name: ${{ matrix.SUITES }} / py${{ matrix.PY_VER }}, CTK${{ matrix.CUDA_VER }} (${{ (matrix.LOCAL_CTK == '1' && 'local CTK') || 'wheels' }}; bindings ${{ matrix.BINDINGS_SOURCE == 'local' && 'PR' || 'floor' }}), GPU ${{ matrix.GPU }}${{ matrix.GPU_COUNT != '1' && format(' (x{0})', matrix.GPU_COUNT) || '' }} (${{ matrix.DRIVER_MODE }})${{ matrix.ENV.TORCH_VER && format(', {0}+{1}', matrix.ENV.TORCH_VER, matrix.ENV.TORCH_CUDA) || '' }}${{ matrix.ENV.MODE == 'nightly-numba-cuda' && ', latest' || '' }} timeout-minutes: 60 # The build stage could fail but we want the CI to keep moving. needs: compute-matrix @@ -197,18 +170,16 @@ jobs: - name: Set environment variables env: - BUILD_CUDA_VER: ${{ matrix.BINDINGS_BUILD_VERSION || inputs.build-ctk-ver }} + BUILD_CUDA_VER: ${{ matrix.BINDINGS_BUILD_VERSION }} CURRENT_BUILD_CUDA_VER: ${{ matrix.CURRENT_BUILD_CUDA_VER }} BINDINGS_SOURCE: ${{ matrix.BINDINGS_SOURCE }} BINDINGS_SOURCE_DIR: ${{ matrix.BINDINGS_SOURCE_DIR }} - DEFAULT_BINDINGS_SOURCE_DIR: ${{ matrix.DEFAULT_BINDINGS_SOURCE_DIR }} CUDA_VER: ${{ matrix.CUDA_VER }} HOST_PLATFORM: ${{ inputs.host-platform }} LOCAL_CTK: ${{ matrix.LOCAL_CTK }} - PATHFINDER_SOURCE: ${{ matrix.PATHFINDER_SOURCE || 'artifact' }} + PATHFINDER_SOURCE: ${{ matrix.PATHFINDER_SOURCE }} PY_VER: ${{ matrix.PY_VER }} SHA: ${{ inputs.sha || github.sha }} - SKIP_BINDINGS_TEST_OVERRIDE: ${{ env.TEST_BINDINGS != 'true' && '1' || '0' }} shell: bash --noprofile --norc -xeuo pipefail {0} run: python .ci-control/ci/tools/ci_env.py test @@ -230,7 +201,7 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Download cuda-python build artifacts - if: ${{ env.TEST_PYTHON == 'true' && (env.BINDINGS_SOURCE == 'local' || env.BINDINGS_SOURCE == 'main') }} + if: ${{ env.TEST_PYTHON == 'true' }} uses: $/.github/actions/download-artifact-retry with: name: ${{ env.CUDA_PYTHON_ARTIFACT_NAME }} @@ -240,7 +211,7 @@ jobs: - name: Download cuda.bindings build artifacts if: ${{ (env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' || env.TEST_PYTHON == 'true') && - (env.BINDINGS_SOURCE == 'local' || env.BINDINGS_SOURCE == 'main' || + (env.BINDINGS_SOURCE == 'local' || (env.BINDINGS_SOURCE == 'floor' && env.TEST_CORE == 'true' && env.TEST_CUDA_MAJOR == env.BUILD_CUDA_MAJOR)) }} uses: $/.github/actions/download-artifact-retry @@ -250,76 +221,21 @@ jobs: run-id: ${{ inputs.run-id || github.run_id }} github-token: ${{ secrets.GITHUB_TOKEN }} - - name: Look up prior-branch artifacts run ID - id: prior - if: ${{ (env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' || env.TEST_PYTHON == 'true') && - env.BINDINGS_SOURCE == 'backport' }} - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - OLD_BRANCH: ${{ needs.compute-matrix.outputs.OLD_BRANCH }} - shell: bash --noprofile --norc -xeuo pipefail {0} - run: | - : "${OLD_BRANCH:?legacy-backport-branch is required for legacy prior-branch artifacts}" - OLD_ARTIFACT_PATTERN="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda*-${{ inputs.host-platform }}-*[0-9a-f]" - LOOKUP_ARGS=( - --branch "${OLD_BRANCH}" - --artifact "${OLD_ARTIFACT_PATTERN}" - ) - if ${{ env.TEST_PYTHON == 'true' }}; then - LOOKUP_ARGS+=(--artifact cuda-python-wheel) - fi - LATEST_PRIOR_RUN_ID=$(./.ci-control/ci/tools/lookup-run-id \ - "${LOOKUP_ARGS[@]}" NVIDIA/cuda-python "CI") - echo "run-id=${LATEST_PRIOR_RUN_ID}" >> "${GITHUB_OUTPUT}" - echo "artifact-pattern=${OLD_ARTIFACT_PATTERN}" >> "${GITHUB_OUTPUT}" - - - name: Download prior-branch cuda.bindings build artifacts - if: ${{ (env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' || env.TEST_PYTHON == 'true') && - env.BINDINGS_SOURCE == 'backport' }} - uses: $/.github/actions/download-artifact-retry - with: - pattern: ${{ steps.prior.outputs.artifact-pattern }} - merge-multiple: "true" - path: ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }} - run-id: ${{ steps.prior.outputs.run-id }} - github-token: ${{ secrets.GITHUB_TOKEN }} - - - name: Download prior-branch cuda-python wheel - if: ${{ env.TEST_PYTHON == 'true' && env.BINDINGS_SOURCE == 'backport' }} - uses: $/.github/actions/download-artifact-retry - with: - name: cuda-python-wheel - path: . - run-id: ${{ steps.prior.outputs.run-id }} - github-token: ${{ secrets.GITHUB_TOKEN }} - - - name: Verify prior-branch artifact layout - if: ${{ (env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' || env.TEST_PYTHON == 'true') && - env.BINDINGS_SOURCE == 'backport' }} - shell: bash --noprofile --norc -xeuo pipefail {0} - run: | - bindings_wheels=("${CUDA_BINDINGS_ARTIFACTS_DIR}"/cuda_bindings-*.whl) - if [[ "${#bindings_wheels[@]}" -ne 1 ]] || [[ ! -f "${bindings_wheels[0]}" ]]; then - echo "::error::Expected exactly one cuda_bindings wheel in ${CUDA_BINDINGS_ARTIFACTS_DIR}; found: ${bindings_wheels[*]}" - exit 1 - fi - ls -al "${CUDA_BINDINGS_ARTIFACTS_DIR}" - - name: Display structure of downloaded cuda-python artifacts - if: ${{ env.TEST_PYTHON == 'true' && (env.BINDINGS_SOURCE == 'local' || env.BINDINGS_SOURCE == 'main') }} + if: ${{ env.TEST_PYTHON == 'true' }} run: | Get-Location Get-ChildItem cuda_python*.whl | Select-Object Mode, LastWriteTime, Length, FullName - name: Display structure of downloaded cuda.bindings artifacts if: ${{ (env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' || env.TEST_PYTHON == 'true') && - (env.BINDINGS_SOURCE == 'local' || env.BINDINGS_SOURCE == 'main') }} + env.BINDINGS_SOURCE == 'local' }} run: | Get-Location Get-ChildItem -Recurse -Force $env:CUDA_BINDINGS_ARTIFACTS_DIR | Select-Object Mode, LastWriteTime, Length, FullName - name: Download cuda.bindings Cython tests - if: ${{ env.TEST_BINDINGS == 'true' && env.SKIP_CYTHON_TEST == '0' }} + if: ${{ env.TEST_BINDINGS == 'true' }} uses: $/.github/actions/download-artifact-retry with: name: ${{ env.CUDA_BINDINGS_ARTIFACT_NAME }}-tests @@ -328,7 +244,7 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Display structure of downloaded cuda.bindings Cython tests - if: ${{ env.TEST_BINDINGS == 'true' && env.SKIP_CYTHON_TEST == '0' }} + if: ${{ env.TEST_BINDINGS == 'true' }} run: | Get-Location Get-ChildItem -Recurse -Force $env:CUDA_BINDINGS_CYTHON_TESTS_DIR | Select-Object Mode, LastWriteTime, Length, FullName @@ -410,15 +326,13 @@ jobs: shell: bash --noprofile --norc -xeuo pipefail {0} run: run-tests pathfinder - # The checker and the mini-CTK layout it expects both come from the - # inputs.sha checkout. Nightly runs may check out a commit without them. - name: Check cuda.pathfinder loads NVRTC and CUPTI from the mini CTK - if: ${{ inputs.test-mode == 'standard' && env.TEST_PATHFINDER == 'true' && matrix.LOCAL_CTK == '1' && hashFiles('ci/tools/check_pathfinder_ctk_libs.py') != '' }} + if: ${{ inputs.test-mode == 'standard' && env.TEST_PATHFINDER == 'true' && matrix.LOCAL_CTK == '1' }} shell: bash --noprofile --norc -xeuo pipefail {0} run: python ci/tools/check_pathfinder_ctk_libs.py nvrtc cupti - name: Run cuda.bindings tests - if: ${{ inputs.test-mode == 'standard' && env.TEST_BINDINGS == 'true' && env.SKIP_CUDA_BINDINGS_TEST == '0' }} + if: ${{ inputs.test-mode == 'standard' && env.TEST_BINDINGS == 'true' }} env: CUDA_VER: ${{ matrix.CUDA_VER }} LOCAL_CTK: ${{ matrix.LOCAL_CTK }} @@ -434,7 +348,7 @@ jobs: run: run-tests core - name: Ensure cuda-python installable - if: ${{ inputs.test-mode == 'standard' && env.TEST_PYTHON == 'true' && env.BINDINGS_SOURCE != 'floor' }} + if: ${{ inputs.test-mode == 'standard' && env.TEST_PYTHON == 'true' }} env: LOCAL_CTK: ${{ matrix.LOCAL_CTK }} shell: bash --noprofile --norc -xeuo pipefail {0} diff --git a/.spdx-ignore b/.spdx-ignore index 044e06e5e4e9..30db6fa24754 100644 --- a/.spdx-ignore +++ b/.spdx-ignore @@ -1,5 +1,4 @@ LICENSE* -*.asc *.html *.json *.md diff --git a/ci/README.md b/ci/README.md index f7c4d6ff3a90..f766915399b2 100644 --- a/ci/README.md +++ b/ci/README.md @@ -316,16 +316,15 @@ Follow the ## Nightly Artifact Sources `ci-nightly.yml` downloads wheels from the latest successful main CI run and -reads configuration from that run's source commit. Sources with the package -registry supply toolkit-qualified artifacts for both bindings directories. -For older sources, the temporary fallback uses their original configuration -and artifact names, including CUDA 12 wheels from the configured historical -branch. Its removal is tracked in [#3432](https://github.com/NVIDIA/cuda-python/issues/3432). +reads the bindings registry and test matrix from that run's source commit. +The source must use the bindings registry in `ci/versions.yml` and supply +toolkit-qualified artifacts for both bindings directories. Pre-migration +snapshots are unsupported. Custom-driver rows require `DRIVER_SHA256` in the selected source matrix. An explicit `run-id` selects both the wheel artifacts and their source -revision; those artifacts must still be available. +revision with the same requirements; those artifacts must still be available. ## Reading CI Jobs and Summaries @@ -363,9 +362,9 @@ cover both majors; a bindings tag deliberately selects one bindings/metapackage line and published Pathfinder. Windows ARM64 omits CUDA 12 because that toolkit has no Windows ARM64 build. -For registry-backed runs, `ci/tools/select_test_matrix.py` applies the shared -selection and local-wheel coverage rules after each platform reads its source -matrix and applies an optional jq filter. Matrix data comes from the artifact +`ci/tools/select_test_matrix.py` applies shared selection and local-wheel +coverage rules after each platform reads its source matrix and applies an +optional jq filter. Matrix data comes from the artifact source revision; the helper comes from the workflow control revision. ## Maintaining Both Bindings Roots diff --git a/ci/tools/bindings_config.py b/ci/tools/bindings_config.py index 8fdf0a243fa8..87d298ffaa06 100644 --- a/ci/tools/bindings_config.py +++ b/ci/tools/bindings_config.py @@ -9,7 +9,6 @@ import importlib.util import json import re -import subprocess import sys import tomllib from collections.abc import Mapping, Sequence @@ -77,12 +76,6 @@ class BindingsConfig: package_roots: tuple[BindingsPackage, ...] python_supported: tuple[str, ...] - def get_package(self, package_root: str) -> BindingsPackage: - for package in self.package_roots: - if package.package_root == package_root: - return package - raise ValueError(f"unknown CUDA bindings package root: {package_root!r}") - def package_for_release_status(self, release_status: str) -> BindingsPackage: return next(package for package in self.package_roots if package.release_status == release_status) @@ -104,18 +97,13 @@ def match_tag(self, tag: str) -> BindingsPackage | None: def parse_config(raw: Mapping[str, Any]) -> BindingsConfig: - """Normalize legacy toolkit pins or the explicit package-root registry.""" + """Read the explicit package-root registry.""" + if raw.get("schema_version") != SCHEMA_VERSION: + raise ValueError(f"schema_version must be {SCHEMA_VERSION}") packages = [] - if "schema_version" in raw: - if raw["schema_version"] != SCHEMA_VERSION: - raise ValueError(f"schema_version must be {SCHEMA_VERSION}") - for package_root, data in raw["cuda"]["bindings"]["package_roots"].items(): - major, minor, patch = map(int, data["toolkit_version"].split(".")) - packages.append(BindingsPackage(package_root, (major, minor, patch), data["release_status"])) - else: - for field, release_status in (("build", "current"), ("prev_build", "maintenance")): - major, minor, patch = map(int, raw["cuda"][field]["version"].split(".")) - packages.append(BindingsPackage(f"cuda_bindings_{major}", (major, minor, patch), release_status)) + for package_root, data in raw["cuda"]["bindings"]["package_roots"].items(): + major, minor, patch = map(int, data["toolkit_version"].split(".")) + packages.append(BindingsPackage(package_root, (major, minor, patch), data["release_status"])) if len(packages) != 2 or {package.release_status for package in packages} != RELEASE_STATUSES: raise ValueError("bindings configuration must contain one current and one maintenance package") if len({package.toolkit[0] for package in packages}) != len(packages): @@ -127,30 +115,6 @@ def load_config(path: Path = DEFAULT_CONFIG) -> BindingsConfig: return parse_config(yaml.safe_load(path.read_text(encoding="utf-8"))) -def write_nightly_source_outputs(config_path: Path, output_path: Path) -> None: - """Append nightly configuration read from the wheel artifact's source.""" - raw = yaml.safe_load(config_path.read_text(encoding="utf-8")) - if "schema_version" not in raw: - # Preserve the artifact source's original test and artifact contract. - toolkit = raw["cuda"]["build"]["version"] - branch = raw["backport_branch"] - subprocess.run(["git", "check-ref-format", f"refs/heads/{branch}"], check=True) # noqa: S603, S607 - config_json = "LEGACY_CONFIG" - else: - if raw["schema_version"] != SCHEMA_VERSION: - raise ValueError(f"unsupported nightly source schema: {raw['schema_version']!r}") - config = parse_config(raw) - toolkit = config.package_for_release_status("current").toolkit_version - branch = "" - config_json = config.to_json() - if _TOOLKIT_VERSION_PATTERN.fullmatch(toolkit) is None: - raise ValueError(f"invalid nightly source build toolkit: {toolkit!r}") - with output_path.open("a", encoding="utf-8") as output: - output.write(f"bindings_config={config_json}\n") - output.write(f"cuda_build_ver={toolkit}\n") - output.write(f"legacy_backport_branch={branch}\n") - - def wheel_python_versions(toolkit_version: str, platform: str, versions: Sequence[str]) -> list[str]: """Select wheel interpreters, including Windows ARM64's toolkit/Python limits.""" if platform == "win-arm64": @@ -320,7 +284,6 @@ def main(argv: list[str] | None = None) -> int: output.add_argument("--check-package-metadata", action="store_true") output.add_argument("--release-status", choices=sorted(RELEASE_STATUSES)) output.add_argument("--release-tag", help="resolve a release tag against its source tree") - output.add_argument("--nightly-source-output", type=Path, metavar="GITHUB_OUTPUT") parser.add_argument("--release-source-root", type=Path) commands = parser.add_subparsers(dest="command") write_env = commands.add_parser("write-github-env", help="append package JSON from stdin to GITHUB_ENV") @@ -334,7 +297,6 @@ def main(argv: list[str] | None = None) -> int: or args.check_package_metadata or args.release_status or args.release_tag - or args.nightly_source_output is not None or args.release_source_root is not None ): parser.error("write-github-env does not accept registry selectors") @@ -343,11 +305,6 @@ def main(argv: list[str] | None = None) -> int: raise ValueError("stdin for write-github-env must contain a JSON object") write_github_env(value, args.github_env) return 0 - if args.nightly_source_output is not None: - if args.release_source_root is not None: - parser.error("--release-source-root requires --release-tag") - write_nightly_source_outputs(args.config, args.nightly_source_output) - return 0 if args.release_tag: if args.release_source_root is None: parser.error("--release-tag requires --release-source-root") @@ -362,14 +319,8 @@ def main(argv: list[str] | None = None) -> int: if args.release_status: result = config.package_for_release_status(args.release_status).to_dict() else: - packages = [package.to_dict() for package in config.package_roots] result = ( - packages - if args.package_roots - else { - "python": {"supported": list(config.python_supported)}, - "package_roots": packages, - } + [package.to_dict() for package in config.package_roots] if args.package_roots else config.to_dict() ) print(json.dumps(result, separators=(",", ":"), sort_keys=True)) return 0 diff --git a/ci/tools/ci_artifacts.py b/ci/tools/ci_artifacts.py index 81ff2369a81b..d68104f4280c 100644 --- a/ci/tools/ci_artifacts.py +++ b/ci/tools/ci_artifacts.py @@ -21,8 +21,8 @@ def core_artifact(python_version: str, host_platform: str, sha: str = "") -> str return f"{name}-{sha}" if sha else name -def python_artifact(toolkit_version: str | None = None) -> str: - return "cuda-python-wheel" if toolkit_version is None else f"cuda-python-wheel-cuda{toolkit_version}" +def python_artifact(toolkit_version: str) -> str: + return f"cuda-python-wheel-cuda{toolkit_version}" def expected_baseline_artifacts(config: BindingsConfig, platforms: list[str], sha: str) -> list[str]: diff --git a/ci/tools/ci_env.py b/ci/tools/ci_env.py index b501eb7d2a03..2e0ce210249c 100644 --- a/ci/tools/ci_env.py +++ b/ci/tools/ci_env.py @@ -21,7 +21,6 @@ def common_environment(env: Mapping[str, str], root: Path) -> dict[str, str]: python, host, sha = env["PY_VER"], env["HOST_PLATFORM"], env["SHA"] return { - "PYTHON_VERSION_FORMATTED": python.replace(".", ""), "CUDA_CORE_ARTIFACT_BASENAME": core_artifact(python, host), "CUDA_CORE_ARTIFACT_NAME": core_artifact(python, host, sha), "CUDA_CORE_ARTIFACTS_DIR": (root / "cuda_core/dist").as_posix(), @@ -85,37 +84,11 @@ def build_environment(env: Mapping[str, str], root: Path) -> dict[str, object]: def test_environment(env: Mapping[str, str], root: Path) -> dict[str, str]: - config = env.get("BINDINGS_CONFIG") - if not config: - raise ValueError("BINDINGS_CONFIG must contain registry JSON or LEGACY_CONFIG") python, host, sha = env["PY_VER"], env["HOST_PLATFORM"], env["SHA"] test_major, test_minor = env["CUDA_VER"].split(".")[:2] - if config == "LEGACY_CONFIG": - current = build = env["BUILD_CUDA_VER"] - bindings_root = "cuda_bindings_13" if (root / "cuda_bindings_13").is_dir() else "cuda_bindings" - previous = subprocess.check_output( - ["yq", "-r", ".cuda.prev_build.version", "ci/versions.yml"], # noqa: S607 - text=True, - cwd=root, - ).strip() - if current.split(".")[0] != test_major: - source = "backport" if previous.split(".")[1] == test_minor else "floor" - else: - source = "main" if current.split(".")[1] == test_minor else "floor" - metapackage = python_artifact() - core_tests_suffix = "-tests" - else: - current = env["CURRENT_BUILD_CUDA_VER"] - source = env["BINDINGS_SOURCE"] - if source == "local": - bindings_root, build = env["BINDINGS_SOURCE_DIR"], env["BUILD_CUDA_VER"] - elif source == "floor": - bindings_root, build = env["DEFAULT_BINDINGS_SOURCE_DIR"], current - else: - raise ValueError(f"BINDINGS_SOURCE must be local or floor, got {source}") - metapackage = python_artifact(build) - core_tests_suffix = f"-cu{test_major}-tests" - local = source in ("local", "main") + current = env["CURRENT_BUILD_CUDA_VER"] + source = env["BINDINGS_SOURCE"] + bindings_root, build = env["BINDINGS_SOURCE_DIR"], env["BUILD_CUDA_VER"] sanitizer = ( python == "3.12" and env["CUDA_VER"] != "11.8.0" and env["LOCAL_CTK"] == "1" and host.startswith("linux") ) @@ -123,17 +96,16 @@ def test_environment(env: Mapping[str, str], root: Path) -> dict[str, str]: "SETUP_SANITIZER": "1" if sanitizer else "0", "BINDINGS_SOURCE": source, "CUDA_BINDINGS_ROOT": bindings_root, - "PATHFINDER_SOURCE": env.get("PATHFINDER_SOURCE") or "artifact", - "CUDA_PYTHON_ARTIFACT_NAME": metapackage, - "SKIP_CUDA_BINDINGS_TEST": (env.get("SKIP_BINDINGS_TEST_OVERRIDE") or "0") if local else "1", - "SKIP_CYTHON_TEST": "0" if local else "1", + "PATHFINDER_SOURCE": env["PATHFINDER_SOURCE"], + "CUDA_PYTHON_ARTIFACT_NAME": python_artifact(build), + # Compiled Cython tests require the local bindings they were built with. + "SKIP_CYTHON_TEST": "0" if source == "local" else "1", "TEST_CUDA_MAJOR": test_major, "TEST_CUDA_MINOR": test_minor, - "CUDA_BINDINGS_ARTIFACT_BASENAME": bindings_artifact(python, build, host), "CUDA_BINDINGS_ARTIFACT_NAME": bindings_artifact(python, build, host, sha), "CUDA_BINDINGS_ARTIFACTS_DIR": (root / bindings_root / "dist").as_posix(), "CUDA_BINDINGS_CYTHON_TESTS_DIR": (root / bindings_root / "tests/cython").as_posix(), - "CUDA_CORE_CYTHON_TEST_ARTIFACT_NAME": core_artifact(python, host, sha) + core_tests_suffix, + "CUDA_CORE_CYTHON_TEST_ARTIFACT_NAME": core_artifact(python, host, sha) + f"-cu{test_major}-tests", "CURRENT_BUILD_CUDA_VER": current, "BUILD_CUDA_MAJOR": current.split(".")[0], "BUILD_CUDA_MINOR": current.split(".")[1], @@ -153,8 +125,6 @@ def main() -> None: values["CUDA_PYTHON_PARALLEL_LEVEL"] = subprocess.check_output(["nproc"], text=True).strip() # noqa: S607 with Path(os.environ["GITHUB_ENV"]).open("a", encoding="utf-8") as output: for name, value in values.items(): - if value is None: - raise ValueError(f"missing environment value for {name}") output.write(f"{name}={str(value).lower() if isinstance(value, bool) else value}\n") with Path(os.environ["GITHUB_PATH"]).open("a", encoding="utf-8") as output: output.write(f"{Path(__file__).resolve().parent}\n") diff --git a/ci/tools/lookup-run-id b/ci/tools/lookup-run-id index d200a1a3a63e..53816c3bf213 100755 --- a/ci/tools/lookup-run-id +++ b/ci/tools/lookup-run-id @@ -25,15 +25,12 @@ Options: --tag Find run by git tag (requires local git repo with the tag) --branch Find latest successful run on the given branch --event Restrict branch-mode runs to a trigger event (for example push) - --artifact Require an unexpired artifact matching this shell glob - (repeatable; branch mode only) --run-id Validate and use this exact run ID (tag mode only) --head-sha Also print the run's head commit SHA (second line) Examples: $0 --tag v13.0.1 NVIDIA/cuda-python $0 --branch main NVIDIA/cuda-python - $0 --branch 12.9.x --artifact 'cuda-bindings-python313-*' NVIDIA/cuda-python $0 --branch main --head-sha NVIDIA/cuda-python "CI" $0 --branch main --event push --head-sha NVIDIA/cuda-python "CI" EOF @@ -45,7 +42,6 @@ MODE="" REF="" HEAD_SHA_FLAG=0 EVENT="" -ARTIFACT_PATTERNS=() EXPLICIT_RUN_ID="" while [[ $# -gt 0 ]]; do @@ -61,9 +57,6 @@ while [[ $# -gt 0 ]]; do --run-id) [[ $# -ge 2 ]] || usage EXPLICIT_RUN_ID="${2}"; shift 2 ;; - --artifact) - [[ $# -ge 2 ]] || usage - ARTIFACT_PATTERNS+=("${2}"); shift 2 ;; --event) [[ $# -ge 2 && -n "${2}" ]] || usage EVENT="${2}"; shift 2 ;; @@ -76,24 +69,13 @@ while [[ $# -gt 0 ]]; do esac done -if [[ -z "${MODE}" ]]; then - # Legacy positional interface: [workflow-name] - # Kept for backward compatibility with release.yml. - if [[ $# -lt 2 ]]; then usage; fi - MODE="tag" - REF="${1}"; shift -fi +if [[ -z "${MODE}" ]]; then usage; fi REPOSITORY="${1:-}"; shift || true WORKFLOW_NAME="${1:-CI}" if [[ -z "${REPOSITORY}" ]]; then usage; fi -if [[ "${MODE}" != "branch" && ${#ARTIFACT_PATTERNS[@]} -gt 0 ]]; then - echo "Error: --artifact is only supported with --branch" >&2 - exit 1 -fi - if [[ "${MODE}" != "branch" && -n "${EVENT}" ]]; then echo "Error: --event is only supported with --branch" >&2 exit 1 @@ -125,8 +107,8 @@ done # ── Mode: branch ── # # Walk the branch's commit history from HEAD and return the first commit -# whose workflow has a successful run matching any required artifact -# patterns. The one Actions-API filter used is ?head_sha=, which is +# whose workflow has a successful run matching the optional event filter. +# The one Actions-API filter used is ?head_sha=, which is # not on the list of filters flagged as returning stale/cached slices in # https://github.com/orgs/community/discussions/24626. if [[ "${MODE}" == "branch" ]]; then @@ -168,13 +150,8 @@ if [[ "${MODE}" == "branch" ]]; then exit 1 fi - if [[ ${#ARTIFACT_PATTERNS[@]} -gt 0 ]]; then - echo "Requiring unexpired artifacts matching:" >&2 - printf ' - %s\n' "${ARTIFACT_PATTERNS[@]}" >&2 - fi - - # Walk branch commits newest-first; accept the first commit with a - # successful run that passes the artifact check. + # Walk branch commits newest-first; accept the newest successful run for + # the first commit with a qualifying run. COMMIT_SCAN_LIMIT="${LOOKUP_RUN_ID_COMMIT_SCAN_LIMIT:-200}" RUN_ID="" HEAD_SHA="" @@ -213,53 +190,16 @@ if [[ "${MODE}" == "branch" ]]; then fi [[ "${SHA_RUNS}" != "[]" ]] || continue - count=$(echo "${SHA_RUNS}" | jq 'length') - for ((i=0; i&2 - exit 1 - fi - - for pattern in "${ARTIFACT_PATTERNS[@]}"; do - pattern_matched=0 - while IFS= read -r artifact_name; do - # The caller supplies a shell glob; RHS must stay unquoted. - # shellcheck disable=SC2053 - if [[ -n "${artifact_name}" && "${artifact_name}" == ${pattern} ]]; then - pattern_matched=1 - break - fi - done <<< "${ARTIFACT_NAMES}" - if [[ ${pattern_matched} == 0 ]]; then - missing_patterns+=("${pattern}") - fi - done - fi - - if [[ ${#missing_patterns[@]} -gt 0 ]]; then - echo "Skipping run ${candidate_id} (sha ${candidate_sha:0:12}, ${candidate_created_at}); missing unexpired artifact(s): ${missing_patterns[*]}" >&2 - continue - fi - - RUN_ID="${candidate_id}" - HEAD_SHA="${candidate_sha}" - break 3 - done + RUN_ID=$(echo "${SHA_RUNS}" | jq -r '.[0].id') + HEAD_SHA=$(echo "${SHA_RUNS}" | jq -r '.[0].head_sha') + break 2 done <<< "${COMMIT_PAGE}" page=$((page + 1)) done if [[ -z "${RUN_ID}" ]]; then - echo "Error: No successful '${WORKFLOW_NAME}' run with required artifacts found in the ${commits_scanned} most-recent commits of branch '${REF}'" >&2 + echo "Error: No successful '${WORKFLOW_NAME}' run found in the ${commits_scanned} most-recent commits of branch '${REF}'" >&2 echo "Branch HEAD: ${BRANCH_HEAD_SHA}" >&2 exit 1 fi @@ -358,14 +298,6 @@ if [[ -z "${RUN_ID}" ]]; then fi echo "Found workflow run ID: ${RUN_ID} for tag '${REF}'" >&2 - -echo "Verifying artifacts exist for run ${RUN_ID}..." >&2 -ARTIFACT_LIST=$(gh run view "${RUN_ID}" --repo "${REPOSITORY}" --json url || echo "") - -if [[ -z "${ARTIFACT_LIST}" ]]; then - echo "Warning: Could not verify artifacts for workflow run ${RUN_ID}" >&2 -fi - echo "${RUN_ID}" if [[ "${HEAD_SHA_FLAG}" == 1 ]]; then diff --git a/ci/tools/select_test_matrix.py b/ci/tools/select_test_matrix.py index 27c466b365c0..7413ff320d81 100644 --- a/ci/tools/select_test_matrix.py +++ b/ci/tools/select_test_matrix.py @@ -14,7 +14,7 @@ def select_test_matrix( rows: list[dict[str, Any]], - packages: list[dict[str, Any]] | None, + packages: list[dict[str, Any]], *, workplan: dict[str, Any] | None = None, build_type: str = "pull-request", @@ -22,85 +22,70 @@ def select_test_matrix( platform: str = "linux", ) -> dict[str, list[dict[str, Any]]]: """Apply the workplan to rows already filtered by the workflow's jq filter.""" - current_package = ( - next(package for package in packages if package["release_status"] == "current") - if packages is not None - else None + current_package = next(package for package in packages if package["release_status"] == "current") + enabled = ( + {package["cuda_variant"]: True for package in packages} + if workplan is None + else workplan["jobs"]["test_cuda_majors"] ) - enabled = {} - if packages is not None: - enabled = ( - {package["cuda_variant"]: True for package in packages} - if workplan is None - else workplan["jobs"]["test_cuda_majors"] - ) modules = None if workplan is None else workplan["modules"] selected = [] for source_row in rows: major = source_row["CUDA_VER"].split(".")[0] variant = f"cu{major}" - if packages is not None and not enabled.get(variant, False): + if not enabled.get(variant, False): continue ctk_target = ".".join(source_row["CUDA_VER"].split(".")[:2]) - package = next((package for package in packages or [] if package["ctk_target"] == ctk_target), None) - root = "" if package is None else package["package_root"] - components = ("pathfinder", "bindings", "core", "python") - if modules is None: - tests = {f"TEST_{name.upper()}": True for name in components} - elif packages is None: - tests = {f"TEST_{name.upper()}": modules[name]["needs_test"] for name in components} - else: - tests = { - "TEST_PATHFINDER": modules["pathfinder"]["needs_test"], - "TEST_BINDINGS": package is not None and modules["bindings"]["package_roots"][root]["needs_test"], - "TEST_CORE": modules["core"]["cuda_majors"][variant]["needs_test"], - "TEST_PYTHON": package is not None and modules["python"]["package_roots"][root]["needs_test"], - } + package = next((package for package in packages if package["ctk_target"] == ctk_target), None) + # Bindings and metapackage suites need the row's own local wheels; + # published-floor rows test Core or a nightly integration only. + local = package is not None + bindings = package or current_package + root = bindings["package_root"] + tests = { + "TEST_PATHFINDER": modules is None or modules["pathfinder"]["needs_test"], + "TEST_BINDINGS": local and (modules is None or modules["bindings"]["package_roots"][root]["needs_test"]), + "TEST_CORE": modules is None or modules["core"]["cuda_majors"][variant]["needs_test"], + "TEST_PYTHON": local and (modules is None or modules["python"]["package_roots"][root]["needs_test"]), + } suites = [] - if packages is not None: - if test_mode != "standard": - suites.append(test_mode) - else: - if tests["TEST_PATHFINDER"]: - suites.append("pathfinder") - if package is not None and tests["TEST_BINDINGS"]: - suites.append(f"bindings{major}") - if tests["TEST_CORE"]: - suites.append(f"core{major}") - if package is not None and tests["TEST_PYTHON"]: - suites.append(f"meta{major}") - if not suites: - continue + if test_mode != "standard": + suites.append(test_mode) + else: + if tests["TEST_PATHFINDER"]: + suites.append("pathfinder") + if tests["TEST_BINDINGS"]: + suites.append(f"bindings{major}") + if tests["TEST_CORE"]: + suites.append(f"core{major}") + if tests["TEST_PYTHON"]: + suites.append(f"meta{major}") + if not suites: + continue driver = source_row["DRIVER"] # Custom versions are installed after scheduling on a latest-driver # runner. WSL cannot perform that driver swap. runner_driver = driver if driver in ("latest", "earliest") else "latest" if platform == "linux" and runner_driver != driver and source_row.get("FLAVOR") == "wsl": raise ValueError("custom DRIVER is not supported with FLAVOR=wsl") - row = { - **source_row, - **{name: str(value).lower() for name, value in tests.items()}, - "RUNNER_DRIVER": runner_driver, - } - if current_package is not None: - row.update( - { - "CUDA_VARIANT": variant, - "BINDINGS_SOURCE": "floor" if package is None else "local", - "BINDINGS_SOURCE_DIR": root, - "BINDINGS_BUILD_VERSION": "" if package is None else package["toolkit_version"], - "DEFAULT_BINDINGS_SOURCE_DIR": current_package["package_root"], - "CURRENT_BUILD_CUDA_VER": current_package["toolkit_version"], - "PATHFINDER_SOURCE": "artifact" if workplan is None else workplan["sources"]["pathfinder"], - "SUITES": "+".join(suites), - } - ) - selected.append(row) + selected.append( + { + **source_row, + **{name: str(value).lower() for name, value in tests.items()}, + "RUNNER_DRIVER": runner_driver, + "BINDINGS_SOURCE": "local" if local else "floor", + "BINDINGS_SOURCE_DIR": root, + "BINDINGS_BUILD_VERSION": bindings["toolkit_version"], + "CURRENT_BUILD_CUDA_VER": current_package["toolkit_version"], + "PATHFINDER_SOURCE": "artifact" if workplan is None else workplan["sources"]["pathfinder"], + "SUITES": "+".join(suites), + } + ) if not selected: raise ValueError("Empty matrix after CUDA-major workplan filtering") # Nightly integrations may deliberately use published bindings with older # toolkits. Ordinary PRs must not silently lose a required local-wheel row. - if packages is not None and test_mode == "standard" and build_type == "pull-request": + if test_mode == "standard" and build_type == "pull-request": covered = {row["BINDINGS_SOURCE_DIR"] for row in selected if row["BINDINGS_SOURCE"] == "local"} missing = [ package["package_root"] @@ -123,12 +108,10 @@ def main() -> None: parser.add_argument("--platform", choices=("linux", "windows"), required=True) args = parser.parse_args() try: - config = os.environ.get("BINDINGS_CONFIG") - if not config: - raise ValueError("BINDINGS_CONFIG must contain registry JSON or LEGACY_CONFIG") + config = json.loads(os.environ["BINDINGS_CONFIG"]) result = select_test_matrix( json.load(sys.stdin), - None if config == "LEGACY_CONFIG" else json.loads(config)["package_roots"], + config["package_roots"], workplan=json.loads(os.environ.get("WORKPLAN") or "null"), build_type=os.environ["BUILD_TYPE"], test_mode=os.environ["TEST_MODE"], diff --git a/ci/tools/tests/test_bindings_config.py b/ci/tools/tests/test_bindings_config.py index db44ddc077a0..d6eaa08b2602 100644 --- a/ci/tools/tests/test_bindings_config.py +++ b/ci/tools/tests/test_bindings_config.py @@ -16,38 +16,36 @@ from setuptools_scm import get_version from ci.tools import bindings_config, check_pixi_cuda_version -from ci.tools.bindings_config import BindingsPackage, load_config, main +from ci.tools.bindings_config import load_config, main ROOT = Path(__file__).resolve().parents[3] @pytest.fixture -def legacy_config(tmp_path): +def registry_config(tmp_path): path = tmp_path / "versions.yml" path.write_text( - 'cuda:\n build:\n version: "13.4.2"\n prev_build:\n version: "12.9.1"\n' - 'python:\n supported: ["3.11", "3.14t"]\n' + json.dumps( + { + "schema_version": 2, + "cuda": { + "bindings": { + "package_roots": { + "cuda_bindings_13": {"toolkit_version": "13.4.2", "release_status": "current"}, + "cuda_bindings_12": {"toolkit_version": "12.9.1", "release_status": "maintenance"}, + } + } + }, + "python": {"supported": ["3.11", "3.14t"]}, + } + ) ) return path @pytest.mark.agent_authored(model="gpt-6") -def test_normalizes_legacy_toolkit_pins(legacy_config): - config = load_config(legacy_config) - current = config.package_for_release_status("current") - maintenance = config.get_package("cuda_bindings_12") - assert current == BindingsPackage("cuda_bindings_13", (13, 4, 2), "current") - assert maintenance == config.package_for_release_status("maintenance") - assert maintenance.toolkit_version == "12.9.1" - assert maintenance.ctk_target == "12.9" - assert maintenance.cuda_major == "12" - assert maintenance.cuda_variant == "cu12" - assert config.python_supported == ("3.11", "3.14t") - - -@pytest.mark.agent_authored(model="gpt-6") -def test_cli_supplies_matrix_and_release_role_records(legacy_config, capsys): - config_args = ["--config", str(legacy_config)] +def test_cli_supplies_matrix_and_release_role_records(registry_config, capsys): + config_args = ["--config", str(registry_config)] assert main(config_args) == 0 full = json.loads(capsys.readouterr().out) assert full["python"]["supported"] == ["3.11", "3.14t"] @@ -64,51 +62,37 @@ def test_cli_supplies_matrix_and_release_role_records(legacy_config, capsys): } -@pytest.mark.parametrize("registry", (False, True)) @pytest.mark.agent_authored(model="gpt-6") -def test_nightly_uses_artifact_source_config_instead_of_control_config(tmp_path, monkeypatch, legacy_config, registry): - monkeypatch.setattr(bindings_config, "DEFAULT_CONFIG", legacy_config) +def test_cli_uses_artifact_source_registry_instead_of_control_config(tmp_path, monkeypatch, registry_config, capsys): + monkeypatch.setattr(bindings_config, "DEFAULT_CONFIG", registry_config) raw = { - "cuda": {"build": {"version": "13.3.2"}}, - "backport_branch": "12.9.snapshot", - } - if registry: - raw = { - "schema_version": 2, - "python": {"supported": ["3.12"]}, - "cuda": { - "bindings": { - "package_roots": { - "snapshot_bindings_12": {"toolkit_version": "12.9.1", "release_status": "maintenance"}, - "snapshot_bindings_13": {"toolkit_version": "13.3.2", "release_status": "current"}, - } + "schema_version": 2, + "python": {"supported": ["3.12"]}, + "cuda": { + "bindings": { + "package_roots": { + "snapshot_bindings_12": {"toolkit_version": "12.9.1", "release_status": "maintenance"}, + "snapshot_bindings_13": {"toolkit_version": "13.3.2", "release_status": "current"}, } - }, - } + } + }, + } source = tmp_path / "artifact-source" / "ci" / "versions.yml" source.parent.mkdir(parents=True) source.write_text(json.dumps(raw)) - output = tmp_path / "nightly-output" - assert main(["--config", str(source), "--nightly-source-output", str(output)]) == 0 + assert main(["--config", str(source)]) == 0 - selected = dict(line.split("=", 1) for line in output.read_text().splitlines()) - assert selected["cuda_build_ver"] == "13.3.2" - if registry: - config = json.loads(selected["bindings_config"]) - assert config["python"]["supported"] == ["3.12"] - assert [(package["package_root"], package["toolkit_version"]) for package in config["package_roots"]] == [ - ("snapshot_bindings_12", "12.9.1"), - ("snapshot_bindings_13", "13.3.2"), - ] - assert selected["legacy_backport_branch"] == "" - else: - assert selected["bindings_config"] == "LEGACY_CONFIG" - assert selected["legacy_backport_branch"] == "12.9.snapshot" + config = json.loads(capsys.readouterr().out) + assert config["python"]["supported"] == ["3.12"] + assert [(package["package_root"], package["toolkit_version"]) for package in config["package_roots"]] == [ + ("snapshot_bindings_12", "12.9.1"), + ("snapshot_bindings_13", "13.3.2"), + ] @pytest.fixture -def pixi_checkout(tmp_path, monkeypatch, legacy_config): +def pixi_checkout(tmp_path, monkeypatch, registry_config): for package_root, variant, pin in ( ("cuda_bindings_12", "cu12", "12.*"), ("cuda_bindings_13", "cu13", "13.4.*"), @@ -125,7 +109,7 @@ def pixi_checkout(tmp_path, monkeypatch, legacy_config): with path.open("a") as stream: stream.write('[feature.cu12.dependencies]\ncuda-version = "12.*"\n') monkeypatch.setattr(check_pixi_cuda_version, "ROOT", tmp_path) - monkeypatch.setattr(check_pixi_cuda_version.bindings_config, "load_config", lambda: load_config(legacy_config)) + monkeypatch.setattr(check_pixi_cuda_version.bindings_config, "load_config", lambda: load_config(registry_config)) return tmp_path diff --git a/ci/tools/tests/test_select_test_matrix.py b/ci/tools/tests/test_select_test_matrix.py index 782d82059e02..933ed04b7136 100644 --- a/ci/tools/tests/test_select_test_matrix.py +++ b/ci/tools/tests/test_select_test_matrix.py @@ -1,13 +1,9 @@ # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -import io -import json -import sys - import pytest -from ci.tools.select_test_matrix import main, select_test_matrix +from ci.tools.select_test_matrix import select_test_matrix PACKAGES = [ { @@ -50,15 +46,17 @@ def plan(*, bindings=False, core=True, meta=False): } -@pytest.mark.agent_authored(model="gpt-6.1-sol") +@pytest.mark.agent_authored(model="gpt-6") def test_exact_toolkit_rows_use_local_bindings_and_older_toolkits_use_published_floors(): matrix = select_test_matrix(rows("12.9.1", "12.6.3", "13.4.2", "13.0.2"), PACKAGES) - assert [(row["CUDA_VARIANT"], row["BINDINGS_SOURCE"], row["BINDINGS_SOURCE_DIR"]) for row in matrix["include"]] == [ - ("cu12", "local", "bindings12"), - ("cu12", "floor", ""), - ("cu13", "local", "bindings13"), - ("cu13", "floor", ""), + assert [ + (row["BINDINGS_SOURCE"], row["BINDINGS_SOURCE_DIR"], row["BINDINGS_BUILD_VERSION"]) for row in matrix["include"] + ] == [ + ("local", "bindings12", "12.9.1"), + ("floor", "bindings13", "13.4.2"), + ("local", "bindings13", "13.4.2"), + ("floor", "bindings13", "13.4.2"), ] @@ -92,6 +90,14 @@ def test_nightly_subsets_may_use_published_floor_bindings(test_mode): assert [row["BINDINGS_SOURCE"] for row in matrix["include"]] == ["floor"] +@pytest.mark.agent_authored(model="claude-fable-5-2") +def test_published_floor_rows_never_select_local_wheel_suites(): + row = select_test_matrix(rows("12.6.3"), PACKAGES, build_type="nightly")["include"][0] + + # Workflows gate local-wheel downloads and suites on these flags alone. + assert row["TEST_BINDINGS"] == row["TEST_PYTHON"] == "false" + + @pytest.mark.agent_authored(model="gpt-6") def test_toolkit_patch_updates_keep_nightly_bindings_coverage(): packages = [dict(package) for package in PACKAGES] @@ -113,29 +119,3 @@ def test_core_only_workplan_retains_floor_tests_without_enabling_local_binding_t assert row["TEST_CORE"] == "true" assert row["TEST_BINDINGS"] == row["TEST_PYTHON"] == "false" assert row["SUITES"] == "core12" - - -@pytest.mark.parametrize("workplan", (None, {"modules": plan(bindings=True, core=False, meta=True)["modules"]})) -@pytest.mark.agent_authored(model="gpt-6") -def test_legacy_snapshots_keep_all_rows_and_aggregate_suite_gates(workplan): - source_rows = rows("12.6.3", "13.4.2") - matrix = select_test_matrix(source_rows, None, workplan=workplan) - - assert [row["CUDA_VER"] for row in matrix["include"]] == [row["CUDA_VER"] for row in source_rows] - for row in matrix["include"]: - assert row["TEST_BINDINGS"] == row["TEST_PYTHON"] == "true" - assert row["TEST_PATHFINDER"] == row["TEST_CORE"] == ("true" if workplan is None else "false") - - -@pytest.mark.agent_authored(model="gpt-6") -def test_empty_workflow_input_cannot_silently_select_legacy_routing(monkeypatch, capsys): - monkeypatch.setenv("BINDINGS_CONFIG", "") - monkeypatch.setenv("BUILD_TYPE", "pull-request") - monkeypatch.setenv("TEST_MODE", "standard") - monkeypatch.setattr(sys, "argv", ["select_test_matrix.py", "--platform", "linux"]) - monkeypatch.setattr(sys, "stdin", io.StringIO(json.dumps(rows("13.4.2")))) - - with pytest.raises(SystemExit, match="2"): - main() - - assert "BINDINGS_CONFIG must contain registry JSON or LEGACY_CONFIG" in capsys.readouterr().err From 7de298b33373fbc9d156309d395ba4297a4a2af2 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Fri, 13 Nov 2026 09:41:14 -0800 Subject: [PATCH 45/85] ci: retire legacy release-layout compatibility (#3456) * ci: require registry sources for release workflows Retire legacy release-layout parsing, generic metapackage artifact fallback, and old workflow Python-matrix discovery from main. Older layouts use their own workflow revision; keep the release-policy change separate from the nightly cutover cleanup. * ci: require manual copy-pr-bot approval --- .github/RELEASE-bindings.md | 15 ++++-- .github/RELEASE-core.md | 6 ++- ci/README.md | 10 +++- ci/tools/bindings_config.py | 36 +++---------- ci/tools/download-wheels | 5 -- .../tests/test_bindings_release_compat.py | 50 +++++++------------ ci/tools/tests/test_download_wheels.py | 19 ------- .../tests/test_validate_release_wheels.py | 16 ------ ci/tools/validate_release_wheels.py | 6 +-- 9 files changed, 48 insertions(+), 115 deletions(-) diff --git a/.github/RELEASE-bindings.md b/.github/RELEASE-bindings.md index 7b903b21cb2f..3764f265764a 100644 --- a/.github/RELEASE-bindings.md +++ b/.github/RELEASE-bindings.md @@ -71,10 +71,8 @@ selectors or shared `latest` pages. The workflow revision used for a release is its **control revision**; the tagged commit is its **source revision**. Record both and the artifact CI run ID. Release routing uses the package layout and toolkit settings in -`ci/versions.yml` at the release tag. When retrying an interrupted CUDA 13 -release, retained tags can use their original configuration, source layout, -build matrix, and artifact names while those artifacts remain available. -New CUDA 12 releases require the local `cuda_bindings_12` directory and +the release tag's `ci/versions.yml`, which must contain the +`schema_version: 2` package-root registry. Both bindings lines require toolkit-qualified artifacts. The workflow control revision never supplies missing tagged toolkit settings or replaces tagged release notes. @@ -88,6 +86,15 @@ Local synthetic tags used in publication-incapable rehearsals must remain local; they do not authorize publishing a package, creating a remote tag, or moving an existing tag. +### Older release layouts + +For tags without the package-root registry, run the release workflow from an +appropriate historical tag or maintenance branch, using that ref's own inputs. +Select a branch in Actions' **Run workflow** menu, or select a branch or tag +with the GitHub CLI's `--ref` option. Verify its release flow and artifact +availability before use. Older-tag docs rebuilds also need a caller on a +compatible ref: `build-docs.yml` is reusable and cannot be dispatched directly. + ### Two tags at one commit One tested source commit can carry tags for both bindings lines, for example diff --git a/.github/RELEASE-core.md b/.github/RELEASE-core.md index c1cd45cc4442..61228659566f 100644 --- a/.github/RELEASE-core.md +++ b/.github/RELEASE-core.md @@ -21,8 +21,10 @@ docs build prevents asset uploads, package publication, and finalization. The workflow revision supplies the release tools; release notes and the package registry (`ci/versions.yml`) come from `git-tag`. Current tooling -uses the toolkit configuration in the tagged source, including retained CUDA 13 -sources that predate the package-root registry. The release-notes job exports +requires that source to use the `schema_version: 2` package-root registry. +For older layouts, select a compatible historical workflow ref as described +in the [bindings release guide](RELEASE-bindings.md#older-release-layouts). +The release-notes job exports the checked version and rejects an empty version before documentation, asset uploads, or package publication can start. Pathfinder package publication also requires successful draft metadata preparation. Existing tags stay immutable. diff --git a/ci/README.md b/ci/README.md index f766915399b2..3ec3439128b8 100644 --- a/ci/README.md +++ b/ci/README.md @@ -263,6 +263,10 @@ setuptools-scm's default tag parser. Each root's `git_describe_command` selects its CUDA ABI major for source builds (`v12.*` or `v13.*`), independently of the toolkit minor used to build it. +Release workflows on `main` require `schema_version: 2` in the tagged source +too. For older layouts, use an appropriate historical workflow ref and its +own inputs; see [older release layouts](../.github/RELEASE-bindings.md#older-release-layouts). + The repository-private `cuda-python-ci-tools` package provides the shared configuration readers and their dependencies. Workflows use these helpers from their control revision when inspecting another source revision. Install @@ -373,8 +377,10 @@ source revision; the helper comes from the workflow control revision. directories on `main`. The registry identifies CUDA 12 as the maintenance line. Routine CUDA 12 fixes, tests, and documentation belong in `cuda_bindings_12/`. The old `12.9.x` branch stays frozen except for emergency -fixes using compatible historical tooling; reconcile any such fix into the -CUDA 12 directory on `main` and assess the CUDA 13 directory too. +fixes using compatible historical tooling. Release old-layout tags from a +validated workflow on the appropriate maintenance branch or historical tag, +rather than from `main`. Reconcile any emergency fix into the CUDA 12 directory +on `main` and assess the CUDA 13 directory too. For independent releases from a shared source commit, see [two tags at one commit](../.github/RELEASE-bindings.md#two-tags-at-one-commit). diff --git a/ci/tools/bindings_config.py b/ci/tools/bindings_config.py index 87d298ffaa06..87a613d02c78 100644 --- a/ci/tools/bindings_config.py +++ b/ci/tools/bindings_config.py @@ -120,7 +120,7 @@ def wheel_python_versions(toolkit_version: str, platform: str, versions: Sequenc if platform == "win-arm64": if Version(toolkit_version).release[:2] < (13, 4): return [] - # Retained release tags can include Python 3.10, which has no WoA wheels. + # Python 3.10 has no Windows ARM64 wheels. return [version for version in versions if version != "3.10"] return list(versions) @@ -207,7 +207,7 @@ def resolve_release_bindings_package( release_tag: str, release_source_root: Path, ) -> dict[str, object]: - """Resolve a release from its tagged source, including retained CUDA 13 tags.""" + """Resolve a release from the package registry in its tagged source.""" if not release_source_root.is_dir(): raise ValueError(f"release source root is not a directory: {release_source_root}") @@ -220,38 +220,16 @@ def resolve_release_bindings_package( raise ValueError(f"unsupported release tag: {release_tag!r}") try: - raw = yaml.safe_load(config_path.read_text(encoding="utf-8")) - legacy_config = "schema_version" not in raw - if legacy_config: - current_toolkit = raw["cuda"]["build"]["version"] - if _TOOLKIT_VERSION_PATTERN.fullmatch(current_toolkit) is None or not current_toolkit.startswith("13."): - raise ValueError("legacy release compatibility requires a CUDA 13 build toolkit") - current_root = ( - "cuda_bindings_13" if (release_source_root / "cuda_bindings_13").is_dir() else "cuda_bindings" - ) - package = BindingsPackage(current_root, tuple(map(int, current_toolkit.split("."))), "current") - if bindings_version is not None and bindings_version.release[0] == 12: - maintenance_toolkit = raw["cuda"]["prev_build"]["version"] - if _TOOLKIT_VERSION_PATTERN.fullmatch(maintenance_toolkit) is None: - raise ValueError("legacy prev_build toolkit must have major.minor.patch format") - package = BindingsPackage( - "cuda_bindings_12", tuple(map(int, maintenance_toolkit.split("."))), "maintenance" - ) - else: - config = parse_config(raw) - package = ( - config.package_for_release_status("current") if is_dependent_release else config.match_tag(release_tag) - ) + config = load_config(config_path) + package = ( + config.package_for_release_status("current") if is_dependent_release else config.match_tag(release_tag) + ) except (OSError, yaml.YAMLError, KeyError, TypeError, ValueError) as error: raise ValueError(f"could not resolve release source config {config_path}: {error}") from error if package is None: raise ValueError( f"no CUDA bindings package root in tagged config {config_path} matches release tag: {release_tag!r}" ) - if bindings_version is not None and not package.matches_tag(release_tag): - raise ValueError(f"release tag {release_tag!r} does not match tagged toolkit {package.toolkit_version}") - if legacy_config and not (release_source_root / package.package_root).is_dir(): - raise ValueError(f"tagged source has no bindings root {package.package_root!r}") record: dict[str, object] = { "package_root": package.package_root, @@ -259,8 +237,6 @@ def resolve_release_bindings_package( } if bindings_version is not None: record["release_version"] = str(bindings_version) - if legacy_config and package.release_status == "current": - record["allow_legacy_python_artifact"] = True return record diff --git a/ci/tools/download-wheels b/ci/tools/download-wheels index d5062968152c..26778cba5dcf 100755 --- a/ci/tools/download-wheels +++ b/ci/tools/download-wheels @@ -128,11 +128,6 @@ if [[ "$IS_BINDINGS_RELEASE" == true && "$COMPONENT" == "cuda-python" ]]; then ARTIFACT_NAME="cuda-python-wheel-cuda${TOOLKIT_VERSION}" if grep -Fxq "$ARTIFACT_NAME" <<< "$ARTIFACT_NAMES"; then MATCHING_ARTIFACTS+=("$ARTIFACT_NAME") - elif [[ "$TOOLKIT_VERSION" == 13.* ]] \ - && jq -e '.allow_legacy_python_artifact == true' \ - <<< "$RESOLVED_BINDINGS_PACKAGE_JSON" >/dev/null \ - && grep -Fxq "cuda-python-wheel" <<< "$ARTIFACT_NAMES"; then - MATCHING_ARTIFACTS+=("cuda-python-wheel") fi else if [[ "$IS_BINDINGS_RELEASE" == true ]]; then diff --git a/ci/tools/tests/test_bindings_release_compat.py b/ci/tools/tests/test_bindings_release_compat.py index e5670250de5c..7aa7cae8b645 100644 --- a/ci/tools/tests/test_bindings_release_compat.py +++ b/ci/tools/tests/test_bindings_release_compat.py @@ -9,55 +9,42 @@ from ci.tools.bindings_config import main, parse_config, resolve_release_bindings_package, write_github_env -def _source(root, *, old=False, schema2=False): - current_root = "cuda_bindings" if old else "cuda_bindings_13" +def _source(root): packages = { "cuda_bindings_12": {"toolkit_version": "12.9.1", "release_status": "maintenance"}, - current_root: {"toolkit_version": "13.4.2", "release_status": "current"}, + "cuda_bindings_13": {"toolkit_version": "13.4.2", "release_status": "current"}, + } + raw = { + "schema_version": 2, + "python": {"supported": ["3.11", "3.14t"]}, + "cuda": {"bindings": {"package_roots": packages}}, } - raw = {"cuda": {"build": {"version": "13.4.2"}, "prev_build": {"version": "12.9.1"}}} - if not old: - raw["python"] = {"supported": ["3.11", "3.14t"]} - if schema2: - raw["schema_version"] = 2 - raw["cuda"] = {"bindings": {"package_roots": packages}} config = root / "ci" / "versions.yml" config.parent.mkdir(parents=True) config.write_text(yaml.safe_dump(raw)) - (root / current_root).mkdir() - if not old: - (root / "cuda_bindings_12").mkdir() + for package_root in packages: + (root / package_root).mkdir() return root, raw @pytest.mark.parametrize( - ("old", "schema2", "tag", "expected_root", "legacy_artifact"), + ("tag", "expected_root"), [ - (True, False, "v13.4.4", "cuda_bindings", True), - (False, False, "v12.9.11", "cuda_bindings_12", False), - (False, True, "v12.9.11", "cuda_bindings_12", False), - (False, True, "v13.4.9", "cuda_bindings_13", False), + ("v12.9.11", "cuda_bindings_12"), + ("v13.4.9", "cuda_bindings_13"), ], ) @pytest.mark.agent_authored(model="gpt-6") -def test_tagged_source_compatibility(tmp_path, old, schema2, tag, expected_root, legacy_artifact): - source, _ = _source(tmp_path, old=old, schema2=schema2) +def test_tagged_source_routes_both_bindings_majors(tmp_path, tag, expected_root): + source, _ = _source(tmp_path) record = resolve_release_bindings_package(tag, source) assert record["package_root"] == expected_root assert record["release_version"] == tag.removeprefix("v") - assert record.get("allow_legacy_python_artifact", False) is legacy_artifact - - -@pytest.mark.agent_authored(model="gpt-6") -def test_old_cuda13_source_cannot_resolve_cuda12(tmp_path): - source, _ = _source(tmp_path, old=True) - with pytest.raises(ValueError, match="no bindings root"): - resolve_release_bindings_package("v12.9.11", source) @pytest.mark.agent_authored(model="gpt-6") def test_release_cli_uses_tagged_source_without_control_fallback(tmp_path, capsys): - source, _ = _source(tmp_path / "tagged", old=True) + source, _ = _source(tmp_path / "tagged") assert ( main( [ @@ -72,10 +59,9 @@ def test_release_cli_uses_tagged_source_without_control_fallback(tmp_path, capsy == 0 ) assert json.loads(capsys.readouterr().out) == { - "package_root": "cuda_bindings", + "package_root": "cuda_bindings_13", "toolkit_version": "13.4.2", "release_version": "13.4.4", - "allow_legacy_python_artifact": True, } empty = tmp_path / "absent-source" empty.mkdir() @@ -94,7 +80,7 @@ def test_release_cli_uses_tagged_source_without_control_fallback(tmp_path, capsy @pytest.mark.agent_authored(model="gpt-6") def test_dependent_release_uses_current_tagged_bindings(tmp_path): - source, _ = _source(tmp_path, schema2=True) + source, _ = _source(tmp_path) assert resolve_release_bindings_package("cuda-core-v1.2.0", source) == { "package_root": "cuda_bindings_13", "toolkit_version": "13.4.2", @@ -104,7 +90,7 @@ def test_dependent_release_uses_current_tagged_bindings(tmp_path): @pytest.mark.parametrize("conflict", ["roles", "majors"]) @pytest.mark.agent_authored(model="gpt-6") def test_schema2_rejects_ambiguous_release_routing(tmp_path, conflict): - _, raw = _source(tmp_path, schema2=True) + _, raw = _source(tmp_path) maintenance = raw["cuda"]["bindings"]["package_roots"]["cuda_bindings_12"] maintenance["release_status" if conflict == "roles" else "toolkit_version"] = ( "current" if conflict == "roles" else "13.4.1" diff --git a/ci/tools/tests/test_download_wheels.py b/ci/tools/tests/test_download_wheels.py index ae80e87efb7b..838ef6b730c9 100644 --- a/ci/tools/tests/test_download_wheels.py +++ b/ci/tools/tests/test_download_wheels.py @@ -129,22 +129,3 @@ def test_nonrelease_components_stage_wheels_without_test_artifacts(tmp_path, com ) assert result.returncode == 0, result.stderr assert {path.name for path in (tmp_path / "dist").iterdir()} == {f"{artifact}.whl" for artifact in expected} - - -@pytest.mark.parametrize( - ("toolkit", "artifacts", "expected"), - [ - ("13.4.2", ["cuda-python-wheel"], "cuda-python-wheel"), - ("13.4.2", ["cuda-python-wheel", "cuda-python-wheel-cuda13.4.2"], "cuda-python-wheel-cuda13.4.2"), - ("12.9.1", ["cuda-python-wheel"], None), - ], -) -@pytest.mark.agent_authored(model="GPT-6") -def test_legacy_metapackage_fallback_is_limited_to_cuda_13(tmp_path, toolkit, artifacts, expected): - package = {"toolkit_version": toolkit, "allow_legacy_python_artifact": True} - result = run_download(tmp_path, artifacts, "cuda-python", package=package, tag=f"v{toolkit}") - - assert (result.returncode == 0) == (expected is not None), result.stderr - assert {path.name for path in (tmp_path / "dist").glob("*.whl")} == ( - set() if expected is None else {f"{expected}.whl"} - ) diff --git a/ci/tools/tests/test_validate_release_wheels.py b/ci/tools/tests/test_validate_release_wheels.py index e5116e50d5aa..900df998f560 100644 --- a/ci/tools/tests/test_validate_release_wheels.py +++ b/ci/tools/tests/test_validate_release_wheels.py @@ -203,19 +203,3 @@ def test_cuda_core_uses_the_complete_binary_wheel_matrix(tmp_path): ) assert result.returncode == 0, result.stderr - - -@pytest.mark.agent_authored(model="GPT-6") -def test_retained_tag_uses_its_build_workflow_python_matrix(tmp_path): - write_release_matrix(tmp_path, platforms=("linux-64", "win-arm64")) - (tmp_path / "ci/versions.yml").write_text("cuda:\n build:\n version: '13.4.2'\n", encoding="utf-8") - (tmp_path / ".github/workflows/build-wheel.yml").write_text( - yaml.safe_dump({"jobs": {"build": {"strategy": {"matrix": {"python-version": ["3.10", "3.12"]}}}}}), - encoding="utf-8", - ) - - assert expected_binary_targets(tmp_path, {"toolkit_version": "13.4.2"}) == { - WheelTarget("cp310", "cp310", "manylinux-x86_64"), - WheelTarget("cp312", "cp312", "manylinux-x86_64"), - WheelTarget("cp312", "cp312", "win_arm64"), - } diff --git a/ci/tools/validate_release_wheels.py b/ci/tools/validate_release_wheels.py index a3084433ddb1..051f562cc75f 100644 --- a/ci/tools/validate_release_wheels.py +++ b/ci/tools/validate_release_wheels.py @@ -89,11 +89,7 @@ def version_from_tag( def _release_python_versions(release_source_root: Path) -> list[str]: path = release_source_root / _VERSIONS_CONFIG config = yaml.safe_load(path.read_text(encoding="utf-8")) - if "python" in config or "schema_version" in config: - return config["python"]["supported"] - # Retained CUDA 13 tags predate the shared Python-version list. - workflow = release_source_root / ".github/workflows/build-wheel.yml" - return yaml.safe_load(workflow.read_text(encoding="utf-8"))["jobs"]["build"]["strategy"]["matrix"]["python-version"] + return config["python"]["supported"] def _release_platforms(release_source_root: Path) -> set[str]: From d768d2d7da6018d505177ee676b5dfdece692f7c Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Fri, 13 Nov 2026 13:50:44 -0800 Subject: [PATCH 46/85] [no-ci] ci: avoid fetching full history for the Pulse secret scan (#3312) * ci: use the shallow Pulse filesystem checkout Signed-off-by: Ralf W. Grosse-Kunstleve * ci: pin Security Suite to released v0.6.0 Signed-off-by: Ralf W. Grosse-Kunstleve * ci: require manual copy-pr-bot approval Signed-off-by: Ralf W. Grosse-Kunstleve --------- Signed-off-by: Ralf W. Grosse-Kunstleve --- .github/workflows/security-suite.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/security-suite.yml b/.github/workflows/security-suite.yml index 64eb4846483f..37a7d2b6672a 100644 --- a/.github/workflows/security-suite.yml +++ b/.github/workflows/security-suite.yml @@ -36,7 +36,7 @@ jobs: if: >- github.repository == 'NVIDIA/cuda-python' || vars.CI_CUSTOMIZATIONS_SECURITY_SUITE_ENABLED == 'true' - uses: NVIDIA/security-workflows/.github/workflows/security-suite.yml@c736f0454dc99764a66af6b906adfcdfbf621985 # v0.4.0 + uses: NVIDIA/security-workflows/.github/workflows/security-suite.yml@d8189f3176942de7ffe2c48bcd7bb5fbdee2dd15 # v0.6.0 with: enable-secret-scan: true enable-sast-scan: true From ba7dcd05e545b7bf8a1a8fdfb451b406c03459cb Mon Sep 17 00:00:00 2001 From: Daniel Rodriguez Date: Sat, 14 Nov 2026 13:08:02 -0600 Subject: [PATCH 47/85] Add NV skill ci workflow (#3457) * Add nv skill ci workflow * Add SPDX header to nvskills CI workflow Co-Authored-By: Claude Sonnet 5.5 * Pin to latest commit in nvidia/skills --------- Co-authored-by: Claude Sonnet 5.5 --- .github/workflows/request-nvskills-ci.yml | 30 +++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/request-nvskills-ci.yml diff --git a/.github/workflows/request-nvskills-ci.yml b/.github/workflows/request-nvskills-ci.yml new file mode 100644 index 000000000000..c61fcc8f16d3 --- /dev/null +++ b/.github/workflows/request-nvskills-ci.yml @@ -0,0 +1,30 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + +name: Request NVSkills CI + +on: + issue_comment: + types: [created] + pull_request: + types: [opened, reopened, synchronize, ready_for_review] + push: + +jobs: + request: + if: > + github.event_name == 'pull_request' || + (github.event_name == 'issue_comment' && + github.event.issue.pull_request && + startsWith(github.event.comment.body, '/nvskills-ci')) || + (github.event_name == 'push' && + github.actor == (vars.NVSKILLS_SIGNATURE_PUSH_ACTOR || 'nv-skills-ci[bot]') && + startsWith(github.event.head_commit.message, vars.NVSKILLS_SIGNATURE_COMMIT_TITLE || 'Attach NVSkills validation signatures')) + permissions: + contents: read + pull-requests: read + statuses: read + uses: NVIDIA/skills/.github/workflows/team-request.yml@d59805503396547363ff0079c436b1cae496e1af + secrets: + NVSKILLS_CI_DISPATCH_TOKEN: ${{ secrets.NVSKILLS_CI_DISPATCH_TOKEN }} From e7c34c81cc5f8c39b55e3e1c6426da351c766edb Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Mon, 16 Nov 2026 09:45:47 -0800 Subject: [PATCH 48/85] Fix CI job-name evaluation when configuration is skipped (#3464) * Fix CI job-name evaluation when configuration is skipped Signed-off-by: Ralf W. Grosse-Kunstleve * ci: require manual copy-pr-bot approval Signed-off-by: Ralf W. Grosse-Kunstleve --------- Signed-off-by: Ralf W. Grosse-Kunstleve --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f69320800dca..47bac6fe3263 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -310,7 +310,7 @@ jobs: matrix: host-platform: - linux-64 - name: Build (${{ matrix.host-platform }}, CUDA ${{ join(fromJSON(needs.detect-changes.outputs.bindings-config).package_roots.*.toolkit_version, ' / ') }}) + name: Build (${{ matrix.host-platform }}, CUDA ${{ join(fromJSON(needs.detect-changes.outputs.bindings-config || '{}').package_roots.*.toolkit_version, ' / ') }}) if: ${{ github.repository_owner == 'nvidia' && !fromJSON(needs.should-skip.outputs.skip) }} permissions: actions: read @@ -331,7 +331,7 @@ jobs: matrix: host-platform: - linux-aarch64 - name: Build (${{ matrix.host-platform }}, CUDA ${{ join(fromJSON(needs.detect-changes.outputs.bindings-config).package_roots.*.toolkit_version, ' / ') }}) + name: Build (${{ matrix.host-platform }}, CUDA ${{ join(fromJSON(needs.detect-changes.outputs.bindings-config || '{}').package_roots.*.toolkit_version, ' / ') }}) if: ${{ github.repository_owner == 'nvidia' && !fromJSON(needs.should-skip.outputs.skip) && !fromJSON(needs.should-skip.outputs.doc-only) && @@ -355,7 +355,7 @@ jobs: matrix: host-platform: - win-64 - name: Build (${{ matrix.host-platform }}, CUDA ${{ join(fromJSON(needs.detect-changes.outputs.bindings-config).package_roots.*.toolkit_version, ' / ') }}) + name: Build (${{ matrix.host-platform }}, CUDA ${{ join(fromJSON(needs.detect-changes.outputs.bindings-config || '{}').package_roots.*.toolkit_version, ' / ') }}) if: ${{ github.repository_owner == 'nvidia' && !fromJSON(needs.should-skip.outputs.skip) && !fromJSON(needs.should-skip.outputs.doc-only) && @@ -375,7 +375,7 @@ jobs: needs: - should-skip - detect-changes - name: Build (win-arm64, ${{ needs.detect-changes.outputs.windows-arm64-single-cuda-major == 'true' && 'current CUDA only' || format('CUDA {0}', join(fromJSON(needs.detect-changes.outputs.bindings-config).package_roots.*.toolkit_version, ' / ')) }}) + name: Build (win-arm64, ${{ needs.detect-changes.outputs.windows-arm64-single-cuda-major == 'true' && 'current CUDA only' || format('CUDA {0}', join(fromJSON(needs.detect-changes.outputs.bindings-config || '{}').package_roots.*.toolkit_version, ' / ')) }}) if: ${{ github.repository_owner == 'nvidia' && !fromJSON(needs.should-skip.outputs.skip) && !fromJSON(needs.should-skip.outputs.doc-only) && From 3991a6973dde813ef761983d9752713b592b1c83 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Mon, 16 Nov 2026 10:31:41 -0800 Subject: [PATCH 49/85] [no-ci] ci: exclude unavailable historical GitHub references (#3471) * ci: exclude unavailable historical GitHub references Signed-off-by: Ralf W. Grosse-Kunstleve * ci: require manual copy-pr-bot approval Signed-off-by: Ralf W. Grosse-Kunstleve --------- Signed-off-by: Ralf W. Grosse-Kunstleve --- lychee.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lychee.toml b/lychee.toml index 4ad1995e3774..dc1795080691 100644 --- a/lychee.toml +++ b/lychee.toml @@ -12,4 +12,8 @@ exclude = [ '^file://.*/cuda-bindings/latest/module/(driver|runtime)\.html#id[0-9]+$', # Preferred Networks rejects hosted-runner GETs, but the URL is browser reachable. '^https://www\.preferred\.jp/en/?$', + # Previously valid GitHub references became unavailable in November 2026. + '^https://github\.com/NVIDIA/cuda-python/pull/2236$', + '^https://github\.com/NVIDIA/cuda-python/issues/2344$', + '^https://github\.com/NVIDIA/cuda-python/issues/2345$', ] From 2f1185ea1625b44704a8ed4a4470118b54959af8 Mon Sep 17 00:00:00 2001 From: Rob Parolin Date: Mon, 16 Nov 2026 14:01:56 -0800 Subject: [PATCH 50/85] fix(cuda.core): make IPC imports wait for a pending release of the same descriptor (#3450) * fix(cuda.core): make IPC imports wait for a pending release of the same descriptor deviceptr_import_ipc() shares one handle per descriptor because the driver's first free of an imported pointer unmaps every import of it (nvbug 5570902). The handle's deleter took ipc_import_mutex only after the last reference was gone. In that gap an import found the cache entry expired, re-imported the still-mapped pointer and registered a new entry. The deleter then erased that new entry and freed the pointer, which unmapped it under the new Buffer. The cache entry now outlives the last reference and only its own deleter erases it, under the mutex, together with the free. An import that finds an expired entry waits on a condition variable until that release is done, then imports fresh. Co-Authored-By: Claude Opus 5.5 * Use CTAD for the ipc_import_mutex locks Co-Authored-By: Claude Opus 5.5 --------- Co-authored-by: Claude Opus 5.5 --- cuda_core/cuda/core/_cpp/rt/api.hpp | 4 +- cuda_core/cuda/core/_cpp/rt/memory.cpp | 43 +++++-- .../test_ipc_import_release_race.py | 113 ++++++++++++++++++ 3 files changed, 152 insertions(+), 8 deletions(-) create mode 100644 cuda_core/tests/memory_ipc/test_ipc_import_release_race.py diff --git a/cuda_core/cuda/core/_cpp/rt/api.hpp b/cuda_core/cuda/core/_cpp/rt/api.hpp index 4abf85bd5dcc..40642ab2f260 100644 --- a/cuda_core/cuda/core/_cpp/rt/api.hpp +++ b/cuda_core/cuda/core/_cpp/rt/api.hpp @@ -229,7 +229,9 @@ DevicePtrHandle deviceptr_create_mapped_graphics( // Import a device pointer from IPC via cuMemPoolImportPointer. // When the last reference is released, cuMemFreeAsync is called on the stored stream. -// Note: Does not yet implement reference counting for nvbug 5570902. +// Repeat imports of one descriptor share one handle, because the driver's first +// free of an imported pointer unmaps every import of it (nvbug 5570902). An +// import that races the release of the last handle waits until the free is done. // On error, returns empty handle and sets thread-local error (use get_last_error()). DevicePtrHandle deviceptr_import_ipc( const MemoryPoolHandle &h_pool, const void *export_data, const StreamHandle &h_stream diff --git a/cuda_core/cuda/core/_cpp/rt/memory.cpp b/cuda_core/cuda/core/_cpp/rt/memory.cpp index fb95140734a5..3cf92649dc4c 100644 --- a/cuda_core/cuda/core/_cpp/rt/memory.cpp +++ b/cuda_core/cuda/core/_cpp/rt/memory.cpp @@ -9,11 +9,13 @@ #include "error.hpp" #include "internal.hpp" #include +#include #include #include #include #include #include +#include #include #ifndef _WIN32 #include @@ -519,10 +521,21 @@ struct ExportDataKeyHash { } }; +// The handle imported for one descriptor, and the box it aliases. +struct IpcCacheEntry { + std::weak_ptr handle; + const DevicePtrBox *box; +}; + } // namespace -static HandleRegistry ipc_ptr_cache; +// Guarded by ipc_import_mutex. An entry outlives its handle's last reference: +// only that handle's deleter erases it, under the mutex, together with the +// free. An importer that finds an expired entry therefore knows a release of +// the same mapping is in flight and waits on ipc_release_cv until it is done. +static std::unordered_map ipc_ptr_cache; static std::mutex ipc_import_mutex; +static std::condition_variable ipc_release_cv; DevicePtrHandle deviceptr_import_ipc(const MemoryPoolHandle &h_pool, const void *export_data, const StreamHandle &h_stream) @@ -552,10 +565,17 @@ deviceptr_import_ipc(const MemoryPoolHandle &h_pool, const void *export_data, co CUresult discard_status = CUDA_SUCCESS; CUdeviceptr discarded = 0; { - std::scoped_lock lock(ipc_import_mutex); + std::unique_lock lock(ipc_import_mutex); - if (auto h = ipc_ptr_cache.lookup(key)) { - return h; + for (auto it = ipc_ptr_cache.find(key); it != ipc_ptr_cache.end(); it = ipc_ptr_cache.find(key)) { + if (DevicePtrHandle h = it->second.handle.lock()) { + return h; + } + // Expired but not erased: the last reference is gone and its + // deleter has not freed the mapping yet. A re-import now would + // share that mapping, and the deleter's cuMemFreeAsync would + // unmap it under us (nvbug 5570902). Wait for the release. + ipc_release_cv.wait(lock); } CUdeviceptr ptr; @@ -579,20 +599,29 @@ deviceptr_import_ipc(const MemoryPoolHandle &h_pool, const void *export_data, co GILReleaseGuard gil; const DeallocationStream& stream = b->deallocation; ContextHandle h_dealloc = deallocation_context(stream); + // Explicit template argument: MSVC cannot deduce it here (C2955). std::unique_lock lock(ipc_import_mutex); - ipc_ptr_cache.unregister_handle(key); + // Erase only this box's entry (importers wait while it + // exists, so no other box can own the key yet). + auto entry = ipc_ptr_cache.find(key); + if (entry != ipc_ptr_cache.end() && entry->second.box == b) { + ipc_ptr_cache.erase(entry); + } cleanup_in_context( h_dealloc, "cuMemFreeAsync", handle_bits(b->resource), [&]() noexcept { return p_cuMemFreeAsync(b->resource, as_cu(stream.h_stream)); // raw: under ipc_import_mutex }, - [&]() noexcept { lock.release()->unlock(); }); + [&]() noexcept { + ipc_release_cv.notify_all(); + lock.release()->unlock(); + }); delete b; } ); // clang-format on DevicePtrHandle h(box, &box->resource); - ipc_ptr_cache.register_handle(key, h); + ipc_ptr_cache[key] = IpcCacheEntry{h, box.get()}; return h; } diff --git a/cuda_core/tests/memory_ipc/test_ipc_import_release_race.py b/cuda_core/tests/memory_ipc/test_ipc_import_release_race.py new file mode 100644 index 000000000000..7e6a19b977ae --- /dev/null +++ b/cuda_core/tests/memory_ipc/test_ipc_import_release_race.py @@ -0,0 +1,113 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +"""Stress test: importing a descriptor while its last import is being released. + +``deviceptr_import_ipc()`` shares one handle per descriptor, because the +driver's first free of an imported pointer unmaps every import of it +(nvbug 5570902). Releasing the last handle frees the mapping after its +reference count reaches zero, so an import can arrive while that free is still +pending. The import must wait for the free, not re-import the still-mapped +pointer and lose it to the pending free. + +Threads in one child import, use and close the same descriptor in a loop, so +the last handle is released again and again while other threads import. A +lost mapping shows up as a failed copy; a missed wakeup shows up as a hang, +which the parent's join timeout catches. +""" + +import contextlib +import multiprocessing as mp +import threading +import time + +import pytest +from helpers.child_processes import child_timeout_sec, kill_subprocesses + +from cuda.core import Buffer, Device + +CHILD_TIMEOUT_SEC = child_timeout_sec() +NBYTES = 4096 +THREADS = 4 +DURATION_SEC = 1.0 + +# these tests spawn new processes and files which fails for very many threads; +# child processes and IPC fixtures are shared across workers (#2784); cap at two threads +pytestmark = pytest.mark.parallel_threads_limit(2) + + +def child_main(queue): + device = Device() + device.set_current() + mr = queue.get() + descriptor = queue.get() + # A VirtualMemoryResource rounds the allocation up to its granularity. + nbytes = queue.get() + + barrier = threading.Barrier(THREADS) + errors = [] + iterations = [0] * THREADS + + def worker(index): + Device().set_current() + stream = Device().create_stream() + local = Device().memory_resource.allocate(nbytes, stream=stream) + barrier.wait() + deadline = time.monotonic() + DURATION_SEC + try: + while time.monotonic() < deadline and not errors: + buffer = Buffer.from_ipc_descriptor(mr, descriptor, stream=stream) + local.copy_from(buffer, stream=stream) + stream.sync() + buffer.close() + iterations[index] += 1 + except Exception as e: + errors.append(e) + finally: + local.close(stream) + stream.sync() + + threads = [threading.Thread(target=worker, args=(i,)) for i in range(THREADS)] + for thread in threads: + thread.start() + for thread in threads: + thread.join() + + if errors: + raise errors[0] + assert all(iterations), iterations + device.sync() + + +class TestIpcImportReleaseRace: + """Imports that race the release of the last handle must stay usable and must not hang.""" + + @pytest.fixture(autouse=True) + def _set_start_method(self): + # Ensure spawn is used for multiprocessing + with contextlib.suppress(RuntimeError): + mp.set_start_method("spawn", force=True) + + @pytest.mark.agent_authored(model="claude-opus-5-5") + def test_main(self, ipc_device, ipc_memory_resource): + ipc_device.set_current() + mr = ipc_memory_resource + + stream = ipc_device.default_stream + buffer = mr.allocate(NBYTES, stream=stream) + stream.sync() + + try: + queue = mp.Queue() + process = mp.Process(target=child_main, args=(queue,)) + process.start() + queue.put(mr) + queue.put(buffer.ipc_descriptor) + queue.put(buffer.size) + + process.join(timeout=CHILD_TIMEOUT_SEC) + survivors = kill_subprocesses(process) + assert not survivors, "an import racing the last release did not return" + assert process.exitcode == 0, f"child process failed with exit code {process.exitcode}" + finally: + buffer.close(stream) From d1d14572145c14a74e69594e6bc17bdd8cc08d23 Mon Sep 17 00:00:00 2001 From: B Sainath Reddy Date: Tue, 17 Nov 2026 04:57:03 +0530 Subject: [PATCH 51/85] cuda.core: map ml_dtypes bfloat16 to kDLBfloat in DLPack export (#3359) _smv_dtype_numpy_to_dlpack dispatched on numpy dtype kind, but ml_dtypes.bfloat16 has kind "V", so bf16 views fell through to the unsupported-dtype BufferError and could not be re-exported, even though the DLPack import path already accepts kDLBfloat and _tensor_map.pyx maps bfloat16. Detect bfloat16 up front and export it as kDLBfloat (16 bits). The new round-trip test goes through StridedMemoryView.from_dlpack so it cannot skip on stacks where NumPy's own DLPack support for extended dtypes is unavailable, unlike the existing parametrized round-trip test's NumPy-consumer probe. Signed-off-by: Sainath-Reddy7 <180950590+Sainath-Reddy7@users.noreply.github.com> Co-authored-by: Sainath-Reddy7 <180950590+Sainath-Reddy7@users.noreply.github.com> Co-authored-by: Sebastian Berg --- cuda_core/cuda/core/_memoryview.pyx | 4 ++++ cuda_core/tests/test_utils_dlpack.py | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/cuda_core/cuda/core/_memoryview.pyx b/cuda_core/cuda/core/_memoryview.pyx index fd73cbb77efc..8e0d7ee13f35 100644 --- a/cuda_core/cuda/core/_memoryview.pyx +++ b/cuda_core/cuda/core/_memoryview.pyx @@ -695,6 +695,10 @@ cdef inline int _smv_dtype_numpy_to_dlpack(object dtype_obj, DLDataType* out_dty if bits not in (64, 128): raise BufferError(f"Unsupported complex dtype: {np_dtype}") code = kDLComplex + elif np_dtype.type is bfloat16: + # ml_dtypes bfloat16 has kind "V", so the kind chain cannot reach it; + # the byte-order check above has already run for it. + code = kDLBfloat else: raise BufferError(f"Unsupported dtype for DLPack export: {np_dtype}") diff --git a/cuda_core/tests/test_utils_dlpack.py b/cuda_core/tests/test_utils_dlpack.py index 9489c977d3f3..5efb6b42df45 100644 --- a/cuda_core/tests/test_utils_dlpack.py +++ b/cuda_core/tests/test_utils_dlpack.py @@ -73,6 +73,30 @@ def test_dlpack_export_roundtrip_dtypes(dtype): _assert_dlpack_export_roundtrip(np.zeros((2, 3), dtype=dtype)) +@pytest.mark.agent_authored(model="glm-5.3") +def test_dlpack_export_bfloat16_roundtrip(init_cuda): + """bfloat16 views export as kDLBfloat and re-import as bfloat16 (#3337). + + This test becomes unnecessary when `_assert_dlpack_export_roundtrip` + starts testing bfloat16, which should be `ml_dtypes>0.6.0`. + """ + if ml_dtypes is None: + pytest.skip("ml_dtypes is not installed") + src = np.zeros((2, 3), dtype=np.uint16) + view = StridedMemoryView.from_any_interface(src, stream_ptr=-1).view(dtype=np.dtype(ml_dtypes.bfloat16)) + imported = StridedMemoryView.from_dlpack(view, stream_ptr=-1) + assert imported.dtype == np.dtype(ml_dtypes.bfloat16) + assert imported.shape == (2, 3) + assert imported.ptr == view.ptr + # Pin the exported type code and bit width directly: the importer maps + # kDLBfloat to bfloat16 without checking bits (kDLBfloat = 4 in dlpack.h). + capsule = view.__dlpack__() + dlm = ctypes.cast(_PyCapsule_GetPointer(capsule, b"dltensor"), ctypes.POINTER(_DLManagedTensor)) + exported_dtype = dlm.contents.dl_tensor.dtype + assert exported_dtype.code == 4 + assert exported_dtype.bits == 16 + + @pytest.mark.parametrize( "shape", [pytest.param((), id="scalar"), pytest.param((0, 3), id="empty")], From 11cc66621809b3d4eef8bd4702ec082ac15d1576 Mon Sep 17 00:00:00 2001 From: Rui Luo Date: Tue, 17 Nov 2026 08:16:38 +0800 Subject: [PATCH 52/85] test(cuda.core): skip HOST graph allocation before CUDA 13 (#3446) --- cuda_core/tests/graph/test_graph_definition.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cuda_core/tests/graph/test_graph_definition.py b/cuda_core/tests/graph/test_graph_definition.py index cd4f5038bd7b..0d4f2c8f8439 100644 --- a/cuda_core/tests/graph/test_graph_definition.py +++ b/cuda_core/tests/graph/test_graph_definition.py @@ -927,6 +927,11 @@ def test_alloc_memory_type_host(init_cuda): """HOST graph alloc nodes reconstruct memory_type from the driver, not the Python argument.""" skip_if_mempool_unsupported() from cuda.core._utils.cuda_utils import CUDAError + from cuda.core._utils.version import driver_version + + # CUDA 12 rejects HOST pool properties before graph support is checked. + if driver_version() < (13, 0, 0): + pytest.skip("CUDA drivers before 13.0 reject HOST allocation properties") g = GraphDefinition() try: From 7076a67d91ee4eb6addbce87ba9fcf153d5161a5 Mon Sep 17 00:00:00 2001 From: Rui Luo Date: Tue, 17 Nov 2026 08:17:45 +0800 Subject: [PATCH 53/85] test(cuda.core): query green stream contexts with v2 (#3448) Signed-off-by: Rui Luo --- cuda_core/tests/helpers/contexts.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/cuda_core/tests/helpers/contexts.py b/cuda_core/tests/helpers/contexts.py index f613f0ac3369..d1e73de926a3 100644 --- a/cuda_core/tests/helpers/contexts.py +++ b/cuda_core/tests/helpers/contexts.py @@ -71,9 +71,17 @@ def assert_device_operations_use_bound_context(device): # Live check: query the driver directly, rather than comparing cached # metadata, to confirm the stream was actually created in the bound # context rather than whatever was ambient. - driver_stream_ctx = handle_return(driver.cuStreamGetCtx(stream.handle)) + if bound_context.is_green: + # The legacy query rejects green streams on CUDA 12.9. In v2, + # pCtx is the primary context; pGreenCtx identifies the green context. + _, driver_green_ctx = handle_return(driver.cuStreamGetCtx_v2(stream.handle)) + assert int(driver_green_ctx) != 0, "The stream must be associated with a green context." + driver_stream_ctx = handle_return(driver.cuCtxFromGreenCtx(driver_green_ctx)) + else: + # Keep the legacy query for regular contexts on older drivers. + driver_stream_ctx = handle_return(driver.cuStreamGetCtx(stream.handle)) assert int(driver_stream_ctx) == int(bound_context.handle), ( - "cuStreamGetCtx reports a context other than the one the stream was created in." + "The driver reports a context other than the one the stream was created in." ) event = device.create_event() From 36bc530b90f363f86462808faf80d4e36d3f9356 Mon Sep 17 00:00:00 2001 From: Andy Jost Date: Mon, 16 Nov 2026 18:30:51 -0800 Subject: [PATCH 54/85] test(cuda.core): skip the VMM RDMA policy test on WSL (#3478) GPUDirect RDMA is not supported on WSL, but some drivers report the capability there, and the RDMA-enabled VMM allocation in test_vmm_allocator_policy_configuration then fails. Skip the test on WSL; the capability checks stay as they are. Co-authored-by: Claude Opus 5.5 --- cuda_core/tests/test_memory.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cuda_core/tests/test_memory.py b/cuda_core/tests/test_memory.py index 5d4aab75e420..ac1099244ab8 100644 --- a/cuda_core/tests/test_memory.py +++ b/cuda_core/tests/test_memory.py @@ -81,7 +81,7 @@ VirtualMemoryLocationType, ) from cuda.core.utils import StridedMemoryView -from cuda_python_test_helpers import IS_WINDOWS +from cuda_python_test_helpers import IS_WINDOWS, IS_WSL CHILD_TIMEOUT_SEC = child_timeout_sec() @@ -1464,6 +1464,9 @@ def test_vmm_allocator_basic_allocation(init_cuda, use_device_object, handle_typ @pytest.mark.agent_authored(model="claude-fable-5-1") +@pytest.mark.skipif( + IS_WSL, reason="GPUDirect RDMA is not supported on WSL, but some drivers report the capability there" +) def test_vmm_allocator_policy_configuration(init_cuda): """Test VMM allocator with different policy configurations. From de4c60d049396dd3a520bb269c15ca887b8cd88a Mon Sep 17 00:00:00 2001 From: Rob Parolin Date: Mon, 16 Nov 2026 19:32:24 -0800 Subject: [PATCH 55/85] docs(cuda.core): add 1.3.0 release note for the IPC import/release race fix (#3479) * docs(cuda.core): add 1.3.0 release note for the IPC import/release race fix Follow-up to #3450, which merged without a release note. Co-Authored-By: Claude Opus 5.5 * docs(cuda.core): scope the IPC race release note to memory pool buffers Co-Authored-By: Claude Opus 5.5 --------- Co-authored-by: Claude Opus 5.5 --- cuda_core/docs/source/release/1.3.1-notes.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 cuda_core/docs/source/release/1.3.1-notes.rst diff --git a/cuda_core/docs/source/release/1.3.1-notes.rst b/cuda_core/docs/source/release/1.3.1-notes.rst new file mode 100644 index 000000000000..8d573bd3ce08 --- /dev/null +++ b/cuda_core/docs/source/release/1.3.1-notes.rst @@ -0,0 +1,15 @@ +.. SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +.. SPDX-License-Identifier: Apache-2.0 + +.. currentmodule:: cuda.core + +``cuda.core`` 1.3.1 Release Notes +================================= + +Fixes and enhancements +---------------------- + +- :meth:`Buffer.from_ipc_descriptor` no longer unmaps a newly imported + memory pool buffer when another thread releases the same descriptor at the + same time. The import now waits for the pending release to finish. + (`#3450 `__) From b80866b3556717c6e702b9a9d11a7fc4ba62097d Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Mon, 16 Nov 2026 21:50:27 -0800 Subject: [PATCH 56/85] Fix conditional graph lifetime tests to use supported nodes (#3469) * Fix conditional graph lifetime tests to use supported nodes Signed-off-by: Ralf W. Grosse-Kunstleve * ci: require manual copy-pr-bot approval Signed-off-by: Ralf W. Grosse-Kunstleve --------- Signed-off-by: Ralf W. Grosse-Kunstleve Co-authored-by: Andy Jost --- .../graph/test_graph_definition_lifetime.py | 46 ++++++++++--------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/cuda_core/tests/graph/test_graph_definition_lifetime.py b/cuda_core/tests/graph/test_graph_definition_lifetime.py index 5a3a99b65ea3..d0cc71797d90 100644 --- a/cuda_core/tests/graph/test_graph_definition_lifetime.py +++ b/cuda_core/tests/graph/test_graph_definition_lifetime.py @@ -213,29 +213,31 @@ def test_reconstructed_body_survives_parent_deletion(init_cuda): @pytest.mark.agent_authored(model="gpt-5.6") def test_destroying_conditional_node_releases_branch_attachments(init_cuda, builder, expected_count): """Destroying a conditional owner releases every branch attachment.""" - graph_def = GraphDefinition() - condition = try_create_condition(graph_def) - branches = builder(graph_def, condition) - callback_refs = [] - - for branch in branches: - - def callback(): - pass - - callback_refs.append(weakref.ref(callback)) - branch.callback(callback) - - del callback, branches - gc.collect() - assert len(callback_refs) == expected_count - assert all(ref() is not None for ref in callback_refs) + dev = Device() + with dev.allocate(4, stream=dev.default_stream) as buf: + dev.default_stream.sync() + dptr = int(buf.handle) + graph_def = GraphDefinition() + condition = try_create_condition(graph_def) + branches = builder(graph_def, condition) + owner_refs = [] + + # Conditional bodies do not permit host callbacks; memset can retain an owner. + for branch in branches: + attachment_owner = _Sentinel() + owner_refs.append(weakref.ref(attachment_owner)) + branch.memset(dptr, 0, 4, dst_owner=attachment_owner) + + del attachment_owner, branches + gc.collect() + assert len(owner_refs) == expected_count + assert all(ref() is not None for ref in owner_refs) - owner = next(node for node in graph_def.nodes() if isinstance(node, ConditionalNode)) - owner.destroy() - del owner + owner = next(node for node in graph_def.nodes() if isinstance(node, ConditionalNode)) + owner.destroy() + del owner - _wait_until(lambda: all(ref() is None for ref in callback_refs)) + _wait_until(lambda: all(ref() is None for ref in owner_refs)) @pytest.mark.parametrize("builder, expected_count", _COND_BUILDERS) @@ -245,7 +247,7 @@ def test_destroying_conditional_node_invalidates_branch_handles(init_cuda, build graph_def = GraphDefinition() condition = try_create_condition(graph_def) branches = builder(graph_def, condition) - branch_nodes = [branch.callback(lambda: None) for branch in branches] + branch_nodes = [branch.empty() for branch in branches] owner = next(node for node in graph_def.nodes() if isinstance(node, ConditionalNode)) owner.destroy() From d94f19c8bf915a36934f6614d6803311785588db Mon Sep 17 00:00:00 2001 From: Ralf Juengling Date: Tue, 17 Nov 2026 10:28:20 -0800 Subject: [PATCH 57/85] fix(cuda.core): run cuMemPoolSetAccess in relaxed mode in PinnedMemoryResource (#3475) Since #3405, PinnedMemoryResource.__init__ without options calls cuMemPoolSetAccess to grant the current device read/write access to the driver's default pool. The driver refuses that call, and invalidates the capture, while a global-mode capture is active on any thread. Users of PyTorch's torch.cuda.graph (which defaults to global mode) therefore see CUDA_ERROR_STREAM_CAPTURE_UNSUPPORTED on construction and CUDA_ERROR_STREAM_CAPTURE_INVALIDATED on end_building. Fix: introduce MP_set_access in _memory_pool.pyx, wrapping cuMemPoolSetAccess in the existing _enter_relaxed_capture_mode / _exit_relaxed_capture_mode helpers, following the identical pattern used by pool attribute reads and writes and trim() since #2834. Call it from _PMR_init instead of the bare with-nogil block. The with-options path (cuMemPoolCreate) is unaffected; that call is still refused under global capture as documented in the 1.3.0 notes. Add tests for the three capture combinations (global+same_thread, global+other_thread, thread_local+same_thread) and a capture-mode restore check modelled on test_dmr_init_restores_capture_mode. Closes #3451 Co-authored-by: Andy Jost --- cuda_core/cuda/core/_memory/_memory_pool.pxd | 3 + cuda_core/cuda/core/_memory/_memory_pool.pyx | 18 +++++ .../core/_memory/_pinned_memory_resource.pyi | 3 +- .../core/_memory/_pinned_memory_resource.pyx | 8 +- cuda_core/docs/source/release/1.3.1-notes.rst | 11 +++ cuda_core/tests/test_memory.py | 78 +++++++++++++++++++ 6 files changed, 116 insertions(+), 5 deletions(-) diff --git a/cuda_core/cuda/core/_memory/_memory_pool.pxd b/cuda_core/cuda/core/_memory/_memory_pool.pxd index b85e5182e3b3..f2117b4034dc 100644 --- a/cuda_core/cuda/core/_memory/_memory_pool.pxd +++ b/cuda_core/cuda/core/_memory/_memory_pool.pxd @@ -36,6 +36,9 @@ cdef int MP_init_current_pool( cdef int MP_raise_release_threshold(_MemPool self) except? -1 +cdef int MP_set_access( + _MemPool self, const cydriver.CUmemAccessDesc* desc, size_t count) except? -1 + cdef inline int MP_check_open(_MemPool self) except -1: if not self._h_pool: diff --git a/cuda_core/cuda/core/_memory/_memory_pool.pyx b/cuda_core/cuda/core/_memory/_memory_pool.pyx index 7d071f62238e..679e25b4f3c8 100644 --- a/cuda_core/cuda/core/_memory/_memory_pool.pyx +++ b/cuda_core/cuda/core/_memory/_memory_pool.pyx @@ -461,6 +461,24 @@ cdef int MP_raise_release_threshold(_MemPool self) except? -1: return 0 +cdef int MP_set_access( + _MemPool self, const cydriver.CUmemAccessDesc* desc, size_t count) except? -1: + """Set device access to the pool. + + Runs in relaxed capture mode, like every pool attribute access (see + ``_enter_relaxed_capture_mode``): the driver refuses cuMemPoolSetAccess, + and invalidates the capture, while a global-mode capture is active on + any thread or a thread-local one on the calling thread. + """ + cdef cydriver.CUstreamCaptureMode mode + cdef cydriver.CUresult err + with nogil: + _enter_relaxed_capture_mode(&mode) + err = cydriver.cuMemPoolSetAccess(as_cu(self._h_pool), desc, count) + _exit_relaxed_capture_mode(err, &mode) + return 0 + + # Raise an exception if the given stream is capturing. # A result of CU_STREAM_CAPTURE_STATUS_INVALIDATED is considered an error. cdef inline int check_not_capturing(cydriver.CUstream s) except?-1 nogil: diff --git a/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyi b/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyi index af909bb095a8..29f72ea10c1d 100644 --- a/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyi +++ b/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyi @@ -77,7 +77,8 @@ class PinnedMemoryResource(_MemPool): default, so the resource grants the device that is current when it is created read and write access to the pool. Kernels on other devices cannot access its buffers. Without options, the grant applies to the driver's - current pool, which the whole process shares. + current pool, which the whole process shares. Construction without options + does not affect a CUDA graph capture in progress on any thread. To create an IPC-Enabled memory resource (MR) that is capable of sharing allocations between processes, specify ``ipc_enabled=True`` in the initializer diff --git a/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyx b/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyx index cbfaa4f76384..305d69c28095 100644 --- a/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyx +++ b/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyx @@ -12,11 +12,11 @@ from cuda.core._memory._memory_pool cimport ( MP_check_open, MP_init_create_pool, MP_init_current_pool, + MP_set_access, ) from cuda.core._memory cimport _ipc from cuda.core._memory._ipc cimport IPCAllocationHandle from cuda.core._memory._location cimport cumemlocation_from_id -from cuda.core._rt cimport as_cu from cuda.core._stream cimport Stream, Stream_accept from cuda.core._utils.cuda_utils cimport ( check_or_create_options, @@ -105,7 +105,8 @@ cdef class PinnedMemoryResource(_MemPool): default, so the resource grants the device that is current when it is created read and write access to the pool. Kernels on other devices cannot access its buffers. Without options, the grant applies to the driver's - current pool, which the whole process shares. + current pool, which the whole process shares. Construction without options + does not affect a CUDA graph capture in progress on any thread. To create an IPC-Enabled memory resource (MR) that is capable of sharing allocations between processes, specify ``ipc_enabled=True`` in the initializer @@ -328,8 +329,7 @@ cdef inline _PMR_init(PinnedMemoryResource self, options): access.location = cumemlocation_from_id( cydriver.CUmemLocationType.CU_MEM_LOCATION_TYPE_DEVICE, dev.device_id) access.flags = cydriver.CUmemAccess_flags.CU_MEM_ACCESS_FLAGS_PROT_READWRITE - with nogil: - HANDLE_RETURN(cydriver.cuMemPoolSetAccess(as_cu(self._h_pool), &access, 1)) + MP_set_access(self, &access, 1) def _deep_reduce_pinned_memory_resource(mr: object) -> tuple[object, ...]: diff --git a/cuda_core/docs/source/release/1.3.1-notes.rst b/cuda_core/docs/source/release/1.3.1-notes.rst index 8d573bd3ce08..938de84e732b 100644 --- a/cuda_core/docs/source/release/1.3.1-notes.rst +++ b/cuda_core/docs/source/release/1.3.1-notes.rst @@ -13,3 +13,14 @@ Fixes and enhancements memory pool buffer when another thread releases the same descriptor at the same time. The import now waits for the pending release to finish. (`#3450 `__) + +- :class:`PinnedMemoryResource` construction without options no longer + invalidates a CUDA graph capture in progress on another thread. ``cuda.core`` + 1.3.0 introduced a ``cuMemPoolSetAccess`` call in the constructor (#3405); + the driver refuses that call, and invalidates any concurrent global-mode + capture, unless it runs in relaxed capture mode. The fix applies the same + relaxed-mode wrapper already used for pool attribute reads and writes and + :meth:`~_memory._memory_pool._MemPool.trim`. Captures started with the + default ``begin_building()`` mode are unaffected; global mode is the default + in several external libraries (for example ``torch.cuda.graph``). + (`#3451 `__) diff --git a/cuda_core/tests/test_memory.py b/cuda_core/tests/test_memory.py index ac1099244ab8..93a2a5f42112 100644 --- a/cuda_core/tests/test_memory.py +++ b/cuda_core/tests/test_memory.py @@ -3068,6 +3068,84 @@ def use_pool(): mr.close() +@pytest.mark.agent_authored(model="claude-sonnet-4-6") +@pytest.mark.thread_unsafe(reason="a global-mode capture affects every thread") +@pytest.mark.parametrize( + ("mode", "caller"), + # A thread-local capture does not restrict other threads, so pairing it + # with other_thread would pass without relaxed mode. + [("global", "same_thread"), ("global", "other_thread"), ("thread_local", "same_thread")], +) +def test_pmr_construction_during_capture_keeps_capture_valid(init_cuda, mode, caller): + """PinnedMemoryResource() without options does not invalidate a capture on another thread. + + Since #3405 construction calls cuMemPoolSetAccess, which the driver refuses + while a global-mode capture is active on any thread or a thread-local one on + the calling thread. The fix runs that call in relaxed capture mode (#3451). + """ + device = Device() + skip_if_pinned_memory_unsupported(device) + device.set_current() + + mr = None + + def construct(): + device.set_current() + nonlocal mr + mr = PinnedMemoryResource() + + gb = device.create_graph_builder().begin_building(mode=mode) + try: + if caller == "same_thread": + construct() + else: + with concurrent.futures.ThreadPoolExecutor(max_workers=1) as pool: + pool.submit(construct).result() + finally: + # Raises if construction invalidated the capture. + gb.end_building() + gb.close() + if mr is not None: + mr.close() + + +@pytest.mark.agent_authored(model="claude-sonnet-4-6") +@pytest.mark.thread_unsafe(reason="a global-mode capture affects every thread") +@pytest.mark.parametrize("mode", ["global", "thread_local"]) +def test_pmr_construction_restores_capture_mode(init_cuda, mode): + """After construction the calling thread is back in its previous capture mode. + + PinnedMemoryResource() switches the thread to relaxed mode around its + cuMemPoolSetAccess call (#3451) and must not leave it there. + """ + + def thread_capture_mode(): + # Exchange the mode with relaxed twice to read without changing it. + relaxed = driver.CUstreamCaptureMode.CU_STREAM_CAPTURE_MODE_RELAXED + err, current = driver.cuThreadExchangeStreamCaptureMode(relaxed) + assert err == driver.CUresult.CUDA_SUCCESS + err, _ = driver.cuThreadExchangeStreamCaptureMode(current) + assert err == driver.CUresult.CUDA_SUCCESS + return current + + device = Device() + skip_if_pinned_memory_unsupported(device) + device.set_current() + + gb = device.create_graph_builder().begin_building(mode=mode) + mr = None + try: + before = thread_capture_mode() + mr = PinnedMemoryResource() + assert thread_capture_mode() == before + finally: + # Raises if construction invalidated the capture. + gb.end_building() + gb.close() + if mr is not None: + mr.close() + + def test_mempool_attributes_repr(memory_resource_factory): """Test the repr of memory pool attributes for all memory resource types.""" MR, MRops = memory_resource_factory From 7be2eeef9cddf9c0bcf7e13587d80bf4d92eaa51 Mon Sep 17 00:00:00 2001 From: jpascucci-nv Date: Tue, 17 Nov 2026 15:59:45 -0500 Subject: [PATCH 58/85] CI: restrict preview comment cleanup to the bot author (#3485) closes #3484 The cleanup script matches comments by their sticky preview marker alone. A later comment quoting that marker can be selected instead of the bot's preview comment, causing cleanup to target the wrong comment and leave the preview link unchanged. Also require the comment author to be github-actions[bot], consistent with the sticky-comment action's lookup. --- ci/cleanup-pr-previews | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/cleanup-pr-previews b/ci/cleanup-pr-previews index 414e8507ad3d..d8bbd571cdc9 100755 --- a/ci/cleanup-pr-previews +++ b/ci/cleanup-pr-previews @@ -122,7 +122,7 @@ update_preview_comment() { printf -v comment_body 'Doc Preview CI\n:---:\n%s\n' "$status_message" if ! comment_id=$(gh api --paginate repos/"${REPOSITORY}"/issues/"${pr_number}"/comments \ --header "Accept: application/vnd.github+json" \ - --jq '.[] | select(.body | contains("")) | .id' \ + --jq '.[] | select(.user.login == "github-actions[bot]" and (.body | contains(""))) | .id' \ | tail -n 1); then return 1 fi From ad38141935c21d99f2bf6104f51a438f617a20e6 Mon Sep 17 00:00:00 2001 From: Leo Fang Date: Tue, 17 Nov 2026 16:30:32 -0500 Subject: [PATCH 59/85] cuda.core: carry the cuda-bindings floors through minimal-sysctk12/13 extras (#3460) * cuda.core: carry the cuda-bindings floors through minimal-sysctk extras The floors lived only in the cu12/cu13 extras, so a package that depends on plain cuda-core never passed them to pip or uv, and an older cuda-bindings failed only at import (#3459). Declare the floors in new minimal-sysctk12/13 extras, include them from cu12/cu13, and depend on cuda-bindings without a version. The floor parser, the CI wheel-floor reader, the pre-commit hook and the docs read the new extras. * cuda.core: read cu floors through the minimal-sysctk self-reference Drop the unversioned cuda-bindings from the base dependencies, so a plain cuda-core install keeps asking for an extra. Keep the floor readers on the cu extras, as before, and teach them to follow a cuda-core[...] self-reference and to skip an unversioned cuda-bindings[all]. The cu layout then yields the floor written in minimal-sysctk, and the existing tests of the cu form stay as they are. New tests cover the self-reference. --------- Co-authored-by: Andy Jost --- ci/tools/cuda_core_bindings_floor.py | 43 ++++++++---- .../tests/test_cuda_core_bindings_floor.py | 35 ++++++++++ cuda_core/AGENTS.md | 11 ++-- cuda_core/DESCRIPTION.rst | 2 + cuda_core/cuda/core/_bindings_floor.py | 44 +++++++++++-- cuda_core/docs/source/install.rst | 20 ++++-- cuda_core/docs/source/release/1.3.1-notes.rst | 15 +++++ cuda_core/docs/source/support.rst | 7 +- cuda_core/pyproject.toml | 31 +++++++-- cuda_core/tests/test_bindings_floor.py | 65 +++++++++++++++++++ toolshed/check_cuda_core_bindings_floor.py | 41 ++++++++---- 11 files changed, 264 insertions(+), 50 deletions(-) diff --git a/ci/tools/cuda_core_bindings_floor.py b/ci/tools/cuda_core_bindings_floor.py index 70556c6d07be..cf92082ee22f 100644 --- a/ci/tools/cuda_core_bindings_floor.py +++ b/ci/tools/cuda_core_bindings_floor.py @@ -14,10 +14,12 @@ from the checkout, so a nightly job that tests a wheel built from another commit reads that wheel's floor. -The floors are declared once, by the `cu12`/`cu13` extras in -cuda_core/pyproject.toml, and the wheel's METADATA carries them as -`Requires-Dist: cuda-bindings[all]<14,>=13.4.1; extra == "cu13"`. This script -reads that line. +The floors are declared once, by the `minimal-sysctk12`/`minimal-sysctk13` +extras in cuda_core/pyproject.toml, which the `cu12`/`cu13` extras include. The +wheel's METADATA carries them as +`Requires-Dist: cuda-bindings<14,>=13.4.1; extra == "minimal-sysctk13"` and +`Requires-Dist: cuda-core[minimal-sysctk13]; extra == "cu13"`. This script +reads the floor of the `cu` extra, following that self-reference. """ from __future__ import annotations @@ -28,21 +30,38 @@ import zipfile from pathlib import Path -# The cuda-bindings requirement of one `cu` extra in METADATA. The name -# is followed by `[`, an operator or whitespace so that other names do not match. +# A cuda-bindings requirement of one extra in METADATA. The name is followed by +# `[`, an operator or whitespace so that other names do not match. _REQUIRES_DIST_RE = re.compile( - r"^Requires-Dist:\s*cuda-bindings(?=[\[<>=!~\s])(?P[^;]*);\s*extra\s*==\s*['\"]cu(?P\d+)['\"]" + r"^Requires-Dist:\s*cuda-bindings(?=[\[<>=!~\s])(?P[^;]*);\s*extra\s*==\s*['\"](?P[^'\"]+)['\"]" +) +# A self-reference of one extra, such as `cuda-core[minimal-sysctk13]; extra == "cu13"`. +_SELF_REFERENCE_RE = re.compile( + r"^Requires-Dist:\s*cuda-core\s*\[(?P[^\]]*)\]\s*;\s*extra\s*==\s*['\"](?P[^'\"]+)['\"]" ) _FLOOR_RE = re.compile(r">=\s*(\d+)\.(\d+)\.(\d+)") +def _bindings_requirements(metadata: str, extra: str, seen: tuple[str, ...] = ()) -> list[tuple[str, str]]: + """(line, specifier) of each versioned cuda-bindings requirement of `extra`, following self-references.""" + seen = (*seen, extra) + found = [] + for line in metadata.splitlines(): + if (m := _REQUIRES_DIST_RE.match(line)) is not None and m.group("extra") == extra: + # An unversioned requirement such as `cuda-bindings[all]` only selects extras of cuda-bindings. + if re.sub(r"\[[^\]]*\]", "", m.group("spec")).strip(): + found.append((line, m.group("spec"))) + elif (m := _SELF_REFERENCE_RE.match(line)) is not None and m.group("extra") == extra: + for name in (name.strip() for name in m.group("extras").split(",")): + if name and name not in seen: + found.extend(_bindings_requirements(metadata, name, seen)) + return found + + def floor_from_metadata(metadata: str, major: int) -> str: """The floor that the `cu` extra of a wheel's METADATA pins cuda-bindings to.""" - for line in metadata.splitlines(): - m = _REQUIRES_DIST_RE.match(line) - if m is None or int(m.group("major")) != major: - continue - floor = _FLOOR_RE.search(m.group("spec")) + for line, spec in _bindings_requirements(metadata, f"cu{major}"): + floor = _FLOOR_RE.search(spec) if floor is None: raise SystemExit(f"METADATA pins cuda-bindings without a floor for the cu{major} extra: {line.strip()!r}") if int(floor.group(1)) != major: diff --git a/ci/tools/tests/test_cuda_core_bindings_floor.py b/ci/tools/tests/test_cuda_core_bindings_floor.py index 5f4b18dc97d0..86a9b220ff1b 100644 --- a/ci/tools/tests/test_cuda_core_bindings_floor.py +++ b/ci/tools/tests/test_cuda_core_bindings_floor.py @@ -69,6 +69,41 @@ def test_ignores_lookalike_names_and_other_extras(): assert tool.floor_from_metadata(metadata, 13) == "13.4.1" +# The layout in which cu includes minimal-sysctk, which pins the floor. +SELF_REFERENCING_METADATA = """\ +Metadata-Version: 2.4 +Name: cuda-core +Version: 1.3.1 +Requires-Dist: cuda-pathfinder>=1.4.2 +Requires-Dist: numpy +Provides-Extra: minimal-sysctk12 +Requires-Dist: cuda-bindings<13,>=12.9.8; extra == "minimal-sysctk12" +Provides-Extra: minimal-sysctk13 +Requires-Dist: cuda-bindings<14,>=13.5.0; extra == "minimal-sysctk13" +Provides-Extra: cu12 +Requires-Dist: cuda-core[minimal-sysctk12]; extra == "cu12" +Requires-Dist: cuda-bindings[all]; extra == "cu12" +Requires-Dist: cuda-toolkit==12.*; extra == "cu12" +Provides-Extra: cu13 +Requires-Dist: cuda-core[minimal-sysctk13]; extra == "cu13" +Requires-Dist: cuda-bindings[all]; extra == "cu13" +Requires-Dist: cuda-toolkit==13.*; extra == "cu13" +""" + + +@pytest.mark.agent_authored(model="claude-opus-5-5") +@pytest.mark.parametrize(("major", "floor"), [(12, "12.9.8"), (13, "13.5.0")]) +def test_follows_the_self_reference_of_a_cu_extra(tmp_path, major, floor): + assert tool.floor_from_wheel(_wheel(tmp_path, SELF_REFERENCING_METADATA), major) == floor + + +@pytest.mark.agent_authored(model="claude-opus-5-5") +def test_rejects_a_self_reference_to_an_extra_without_cuda_bindings(): + metadata = 'Requires-Dist: cuda-core[minimal-sysctk13]; extra == "cu13"\nRequires-Dist: cuda-bindings[all]; extra == "cu13"\n' + with pytest.raises(SystemExit, match="no cuda-bindings requirement for the cu13 extra"): + tool.floor_from_metadata(metadata, 13) + + @pytest.mark.agent_authored(model="claude-fable-5-1") def test_rejects_a_missing_extra(tmp_path): with pytest.raises(SystemExit, match="no cuda-bindings requirement for the cu11 extra"): diff --git a/cuda_core/AGENTS.md b/cuda_core/AGENTS.md index cdddf563b63b..ab91616515c3 100644 --- a/cuda_core/AGENTS.md +++ b/cuda_core/AGENTS.md @@ -74,8 +74,10 @@ Nothing else moves a floor. A new `cuda-bindings` release does not, and a `cuda.core` release does not. Do not raise a floor to the newest release. To bump: -1. Edit the `cuda-bindings` pin in the `cu12` or `cu13` extra in - `pyproject.toml`. That is the only version to type. +1. Edit the `cuda-bindings` pin in the `minimal-sysctk12` or + `minimal-sysctk13` extra in `pyproject.toml`. That is the only version to + type. The `cu12` and `cu13` extras include these extras and carry no + version of their own. 2. Check each `cuda.bindings.package_roots..toolkit_version` in `ci/versions.yml`. Neither toolkit pin may sit below the corresponding floor's major.minor, or CI builds a configuration that the build rejects. @@ -120,8 +122,9 @@ the literal floor, until the floor is bumped. The order is: is normally its first release. A `cuda.core` release must not ship while the window is open. In the window, -the `cu` extra can resolve to a `cuda-bindings` that fails the header -check at import, and CI does not test the literal floor. +the `minimal-sysctk` and `cu` extras can resolve to a +`cuda-bindings` that fails the header check at import, and CI does not test +the literal floor. ## Testing expectations diff --git a/cuda_core/DESCRIPTION.rst b/cuda_core/DESCRIPTION.rst index 9759aed87316..136ad8fa6359 100644 --- a/cuda_core/DESCRIPTION.rst +++ b/cuda_core/DESCRIPTION.rst @@ -26,4 +26,6 @@ Installation pip install cuda-core[cu12] +Use ``[cu13]`` for CUDA 13. With a CUDA Toolkit installed on the system, ``[minimal-sysctk12]`` and ``[minimal-sysctk13]`` install only ``cuda-bindings``. + Please refer to the `installation instructions `_ for different ways of installing ``cuda.core``, including building from source. diff --git a/cuda_core/cuda/core/_bindings_floor.py b/cuda_core/cuda/core/_bindings_floor.py index 9d953626a03d..afee9b6d3ba7 100644 --- a/cuda_core/cuda/core/_bindings_floor.py +++ b/cuda_core/cuda/core/_bindings_floor.py @@ -14,9 +14,13 @@ https://github.com/NVIDIA/cuda-python/issues/2783 and the support policy in the documentation. -Exactly one place declares the floors: the ``cu12`` and ``cu13`` extras in -``pyproject.toml``. Each extra pins ``cuda-bindings>=,<``. -Everything else derives from them through :func:`floors_from_extras`: +Exactly one place declares the floors: the ``minimal-sysctk12`` and +``minimal-sysctk13`` extras in ``pyproject.toml``. Each pins +``cuda-bindings>=,<``. The ``cu12`` and ``cu13`` extras +include them through a ``cuda-core[minimal-sysctk]`` self-reference, so +that pip and uv see the floor whichever extra a dependent requests. Everything +else reads the floor of each ``cu`` extra, following that +self-reference, through :func:`floors_from_extras`: - The build backend, ``build_hooks.py``, checks the installed cuda-bindings against the floor. It checks that the ``cuda.h`` that it compiles against is @@ -29,7 +33,9 @@ - The ``check-bindings-config`` pre-commit hook checks that each registered toolkit in ``ci/versions.yml`` is not below its corresponding floor major.minor. The separate ``check-cuda-core-bindings-floor`` hook validates - the extras and prevents documentation from hardcoding the floors. + the extras, checks that each ``cu`` extra includes its + ``minimal-sysctk`` extra, and prevents documentation from hardcoding + the floors. The build and the tools above load this module by file path. It therefore uses the standard library only and must not import anything from ``cuda``. @@ -58,6 +64,8 @@ _REQUIREMENT_RE = re.compile( r"^\s*cuda-bindings(?=[\[<>=!~;\s]|$)\s*(?:\[[^\]]*\])?\s*(?P[^;]*?)\s*(?:;.*)?$" ) +# A self-reference such as `cuda-core[minimal-sysctk13]`, up to an optional environment marker. +_SELF_REFERENCE_RE = re.compile(r"^\s*cuda-core\s*\[(?P[^\]]*)\]\s*(?:;.*)?$") _FLOOR_SPEC_RE = re.compile(r"^>=(\d+)\.(\d+)\.(\d+)$") # The upper bound: `<14`, `<14.0` or `<14.0.0`, or the equivalent `==13.*`. _UPPER_SPEC_RE = re.compile(r"^<(\d+)(?:\.0)*$") @@ -94,7 +102,10 @@ def floors_from_extras(extras: Mapping[str, Sequence[str]]) -> dict[int, tuple[i """The floor per CUDA major, from the ``cu`` extras of ``pyproject.toml``. ``extras`` is the parsed ``[project.optional-dependencies]`` table. Each - ``cu`` extra must list exactly one cuda-bindings requirement with two + ``cu`` extra must list exactly one versioned cuda-bindings requirement, + either itself or through a ``cuda-core[]`` self-reference such as + ``cuda-core[minimal-sysctk]``. An unversioned requirement such as + ``cuda-bindings[all]`` does not count. The requirement has two specifiers, in either order. One is the floor, ``>=..``. The other is an upper bound that excludes the next major, ``<`` or ``==.*``. Anything else raises ValueError with the name of the extra, so @@ -102,12 +113,16 @@ def floors_from_extras(extras: Mapping[str, Sequence[str]]) -> dict[int, tuple[i the floor. """ floors: dict[int, tuple[int, int, int]] = {} - for extra, requirements in extras.items(): + for extra in extras: m = _EXTRA_RE.match(extra) if m is None: continue major = int(m.group(1)) - matches = [(r, rm) for r in requirements if (rm := _REQUIREMENT_RE.match(r)) is not None] + matches = [ + (r, rm) + for r in _expand_self_references(extras, extra) + if (rm := _REQUIREMENT_RE.match(r)) is not None and rm.group("specifiers") + ] if len(matches) != 1: raise ValueError( f"the {extra!r} extra must list exactly one cuda-bindings requirement, found {len(matches)}" @@ -132,6 +147,21 @@ def floors_from_extras(extras: Mapping[str, Sequence[str]]) -> dict[int, tuple[i return dict(sorted(floors.items())) +def _expand_self_references(extras: Mapping[str, Sequence[str]], extra: str, seen: tuple[str, ...] = ()) -> list[str]: + """The requirements of ``extra``, with each ``cuda-core[...]`` replaced by the requirements of the extras it names.""" + seen = (*seen, extra) + requirements = [] + for requirement in extras.get(extra, ()): + m = _SELF_REFERENCE_RE.match(requirement) + if m is None: + requirements.append(requirement) + continue + for name in (name.strip() for name in m.group("extras").split(",")): + if name and name not in seen: + requirements.extend(_expand_self_references(extras, name, seen)) + return requirements + + def _confined_major(specifier: str) -> int | None: """The one major a specifier confines cuda-bindings to: ``<14`` -> 13, ``==13.*`` -> 13, else None.""" if (m := _UPPER_SPEC_RE.match(specifier)) is not None: diff --git a/cuda_core/docs/source/install.rst b/cuda_core/docs/source/install.rst index 42343409cd9d..e8c3a39e0fe0 100644 --- a/cuda_core/docs/source/install.rst +++ b/cuda_core/docs/source/install.rst @@ -47,21 +47,31 @@ Installing from PyPI ``cuda.core`` works with ``cuda-bindings`` (part of ``cuda-python``) 12 or 13 at or above the release's floor for that major. See :ref:`cuda-core-bindings-floor`. The ``cu12`` and ``cu13`` -extras install a compatible version. Test dependencies now use the ``cuda-toolkit`` metapackage for improved dependency resolution. For example with CUDA 12: +extras install a compatible version together with the CUDA Toolkit wheels. Test dependencies now use the ``cuda-toolkit`` metapackage for improved dependency resolution. For example with CUDA 12: .. code-block:: console $ pip install cuda-core[cu12] -and likewise use ``[cu13]`` for CUDA 13. +and likewise use ``[cu13]`` for CUDA 13. The ``minimal-sysctk12`` and ``minimal-sysctk13`` +extras install only a compatible ``cuda-bindings``, for use with a CUDA Toolkit installed on the +system: + +.. code-block:: console + + $ pip install cuda-core[minimal-sysctk12] If you upgrade ``cuda-core`` alone, the installed ``cuda-bindings`` can be older than the new release requires. ``import cuda.core`` then reports the required version and the ``pip`` command that installs it. -Do not pin ``cuda-bindings`` in your own requirements. Depend on ``cuda-core`` with the ``cu12`` -or ``cu13`` extra, and let ``cuda-core`` choose the ``cuda-bindings`` version. A pin of your own -can conflict with the floor of a later ``cuda-core`` release. +Do not pin ``cuda-bindings`` in your own requirements. In a package that depends on +``cuda-core``, request ``cuda-core[minimal-sysctk12]`` or ``cuda-core[minimal-sysctk13]`` from +your own CUDA 12 and CUDA 13 extras, or ``cuda-core[cu12]`` or ``cuda-core[cu13]`` to also pull +the CUDA Toolkit wheels, and let ``cuda-core`` choose the ``cuda-bindings`` version. A plain +``cuda-core`` requirement does not pass the floor to pip or uv: they can install an older +``cuda-bindings`` next to it, ``pip check`` does not report it, and ``import cuda.core`` fails. +A pin of your own can conflict with the floor of a later ``cuda-core`` release. Installing from Conda (conda-forge) diff --git a/cuda_core/docs/source/release/1.3.1-notes.rst b/cuda_core/docs/source/release/1.3.1-notes.rst index 938de84e732b..01a2e587fc80 100644 --- a/cuda_core/docs/source/release/1.3.1-notes.rst +++ b/cuda_core/docs/source/release/1.3.1-notes.rst @@ -6,6 +6,21 @@ ``cuda.core`` 1.3.1 Release Notes ================================= +Highlights +---------- + +- New ``minimal-sysctk12`` and ``minimal-sysctk13`` extras install only ``cuda-bindings`` at or + above this release's floor for that CUDA major, without the CUDA Toolkit wheels that ``cu12`` + and ``cu13`` add. The ``cu12`` and ``cu13`` extras include them. Packages that depend on + ``cuda-core`` should request one of these extras, so that pip and uv see the floor; with a + plain ``cuda-core`` requirement, an older ``cuda-bindings`` is installed and fails at import. + See :ref:`cuda-core-bindings-floor`. + (`#3459 `__) + +- ``cuda-core`` 1.3.0 is yanked from PyPI. It declared its floors only in the ``cu12`` and + ``cu13`` extras, so a resolver that cannot use 1.3.1 could fall back to it next to an older + ``cuda-bindings``. + Fixes and enhancements ---------------------- diff --git a/cuda_core/docs/source/support.rst b/cuda_core/docs/source/support.rst index 08670da95a12..4fc7507a5110 100644 --- a/cuda_core/docs/source/support.rst +++ b/cuda_core/docs/source/support.rst @@ -73,9 +73,10 @@ For each supported CUDA major version, each ``cuda-core`` release declares a min ``cuda-bindings`` version, its *floor*. The floor is the oldest ``cuda-bindings`` release that meets two conditions. It was generated from the ``cuda.h`` major.minor that the published ``cuda-core`` wheels are built against. It provides every ``cuda-bindings`` API and fix that -``cuda-core`` needs. The ``cu12`` and ``cu13`` extras of ``cuda-core`` in ``pyproject.toml`` -declare the floors of the current release. The build, the import-time check, this page, and CI -all read them from there. +``cuda-core`` needs. The ``minimal-sysctk12`` and ``minimal-sysctk13`` extras of ``cuda-core`` +in ``pyproject.toml`` declare the floors of the current release, and the ``cu12`` and ``cu13`` +extras include them. The build, the import-time check, this page, and CI all read them from +there. pip and uv see a floor only when ``cuda-core`` is installed with one of these extras. .. list-table:: ``cuda-bindings`` floors :header-rows: 1 diff --git a/cuda_core/pyproject.toml b/cuda_core/pyproject.toml index f3ea7e35deb6..151dd0c8a0c7 100644 --- a/cuda_core/pyproject.toml +++ b/cuda_core/pyproject.toml @@ -54,14 +54,18 @@ dependencies = [ "numpy", ] -# The cuda-bindings pins below are the cuda-bindings *floors* of this release, one -# per CUDA major. This is the only place that declares them. build_hooks.py, the -# import-time check, the docs and CI read them from here (see -# cuda/core/_bindings_floor.py and the "Bumping the cuda-bindings floor" -# checklist in AGENTS.md). Keep the form `>=,<`. +# The cuda-bindings pins in the minimal-sysctk extras are the cuda-bindings +# *floors* of this release, one per CUDA major. This is the only place that +# declares them. Keep the form `>=,<`. The cu extras +# include them, so that pip and uv see the floor whichever extra a dependent +# requests. build_hooks.py, the import-time check, the docs and CI read each +# floor through the cu extra (see cuda/core/_bindings_floor.py and the +# "Bumping the cuda-bindings floor" checklist in AGENTS.md). [project.optional-dependencies] -cu12 = ["cuda-bindings[all]>=12.9.8,<13", "cuda-toolkit==12.*"] -cu13 = ["cuda-bindings[all]>=13.5.0,<14", "cuda-toolkit==13.*"] +minimal-sysctk12 = ["cuda-bindings>=12.9.8,<13"] +minimal-sysctk13 = ["cuda-bindings>=13.5.0,<14"] +cu12 = ["cuda-core[minimal-sysctk12]", "cuda-bindings[all]", "cuda-toolkit==12.*"] +cu13 = ["cuda-core[minimal-sysctk13]", "cuda-bindings[all]", "cuda-toolkit==13.*"] [dependency-groups] # Keep build in sync with build-system.requires; install local cuda-pathfinder separately. @@ -102,6 +106,19 @@ conflicts = [ { extra = "cu12" }, { extra = "cu13" }, ], + # uv locks every pair of extras unless told otherwise, and cu includes minimal-sysctk. + [ + { extra = "minimal-sysctk12" }, + { extra = "minimal-sysctk13" }, + ], + [ + { extra = "cu12" }, + { extra = "minimal-sysctk13" }, + ], + [ + { extra = "cu13" }, + { extra = "minimal-sysctk12" }, + ], [ { group = "test-cu12" }, { group = "test-cu13" }, diff --git a/cuda_core/tests/test_bindings_floor.py b/cuda_core/tests/test_bindings_floor.py index d70ea8acfa92..c44a2f4e6f12 100644 --- a/cuda_core/tests/test_bindings_floor.py +++ b/cuda_core/tests/test_bindings_floor.py @@ -124,6 +124,46 @@ def test_floors_from_extras_ignores_lookalike_names(): assert floors_from_extras(extras) == {13: (13, 4, 1)} +@pytest.mark.agent_authored(model="claude-opus-5-5") +def test_floors_from_extras_follows_self_references(): + extras = { + "minimal-sysctk12": ["cuda-bindings>=12.9.8,<13"], + "minimal-sysctk13": ["cuda-bindings>=13.5.0,<14"], + "cu12": ["cuda-core[minimal-sysctk12]", "cuda-bindings[all]", "cuda-toolkit==12.*"], + "cu13": ["cuda-core[minimal-sysctk13]", "cuda-bindings[all]", "cuda-toolkit==13.*"], + } + assert floors_from_extras(extras) == {12: (12, 9, 8), 13: (13, 5, 0)} + # A cycle of self-references ends. + cyclic = {"a": ["cuda-core[b]"], "b": ["cuda-core[a,cu13]"], "cu13": ["cuda-core[a]", "cuda-bindings>=13.5.0,<14"]} + assert floors_from_extras(cyclic) == {13: (13, 5, 0)} + + +@pytest.mark.agent_authored(model="claude-opus-5-5") +@pytest.mark.parametrize( + ("extras", "message"), + [ + ( + {"minimal-sysctk13": ["cuda-bindings>=13.5,<14"], "cu13": ["cuda-core[minimal-sysctk13]"]}, + "the 'cu13' extra must pin cuda-bindings as", + ), + ( + { + "minimal-sysctk13": ["cuda-bindings>=13.5.0,<14"], + "cu13": ["cuda-core[minimal-sysctk13]", "cuda-bindings[all]>=13.5.0,<14"], + }, + "exactly one cuda-bindings requirement, found 2", + ), + ( + {"cu13": ["cuda-core[minimal-sysctk13]", "cuda-bindings[all]"]}, + "exactly one cuda-bindings requirement, found 0", + ), + ], +) +def test_floors_from_extras_rejects_bad_self_references(extras, message): + with pytest.raises(ValueError, match=re.escape(message)): + floors_from_extras(extras) + + @pytest.mark.agent_authored(model="claude-fable-5-1") @pytest.mark.parametrize( ("version", "expected"), @@ -359,6 +399,31 @@ def test_a_malformed_extra_fails_the_hook(self, hook, tmp_path, capsys): assert hook.main(["--repo-root", str(tmp_path)]) == 1 assert "pyproject.toml: the 'cu13' extra must pin cuda-bindings" in capsys.readouterr().err + @pytest.mark.agent_authored(model="claude-opus-5-5") + @pytest.mark.parametrize( + "cu13", + [ + '["cuda-bindings[all]>=13.4.1,<14", "cuda-toolkit==13.*"]', + '["cuda-core[minimal-sysctk12]", "cuda-bindings[all]", "cuda-toolkit==13.*"]', + None, + ], + ) + def test_a_cu_extra_without_its_minimal_sysctk_extra_fails_the_hook(self, hook, tmp_path, cu13): + pyproject = tmp_path / "cuda_core" / "pyproject.toml" + pyproject.parent.mkdir() + text = '[project.optional-dependencies]\nminimal-sysctk13 = ["cuda-bindings>=13.4.1,<14"]\n' + if cu13 is not None: + text += f"cu13 = {cu13}\n" + pyproject.write_text(text, encoding="utf-8") + assert hook.cu_extra_problems(tmp_path, {13: (13, 4, 1)}) == [ + f"{hook.PYPROJECT}: the 'cu13' extra must list 'cuda-core[minimal-sysctk13]', so that it carries the floor" + ] + pyproject.write_text( + text.split("cu13 =")[0] + 'cu13 = ["cuda-core[minimal-sysctk13]", "cuda-bindings[all]"]\n', + encoding="utf-8", + ) + assert hook.cu_extra_problems(tmp_path, {13: (13, 4, 1)}) == [] + @pytest.mark.agent_authored(model="claude-fable-5-1") def test_docs_must_use_the_substitutions(self, hook, tmp_path): docs = tmp_path / "cuda_core" / "docs" / "source" diff --git a/toolshed/check_cuda_core_bindings_floor.py b/toolshed/check_cuda_core_bindings_floor.py index bdf6f581bed5..a37cb1e7644b 100644 --- a/toolshed/check_cuda_core_bindings_floor.py +++ b/toolshed/check_cuda_core_bindings_floor.py @@ -3,15 +3,19 @@ """Check that everything that depends on the cuda-bindings floor agrees with it. -The floor of each CUDA major is declared once, by the `cu12`/`cu13` extras in -cuda_core/pyproject.toml (see cuda_core/cuda/core/_bindings_floor.py). Most -consumers read it from there. These constraints cannot be derived from it, so -this script checks them, as a pre-commit hook and from +The floor of each CUDA major is declared once, by the +`minimal-sysctk12`/`minimal-sysctk13` extras in cuda_core/pyproject.toml, which +the `cu12`/`cu13` extras include (see cuda_core/cuda/core/_bindings_floor.py). +Most consumers read it from there. These constraints cannot be derived from it, +so this script checks them, as a pre-commit hook and from cuda_core/tests/test_bindings_floor.py: 1. The extras parse: each `cu` extra pins exactly - `cuda-bindings[...]>=..,<`. -2. No documentation page spells a floor out by hand. docs/source/conf.py + `cuda-bindings[...]>=..,<`, itself or through the + extra that it includes. +2. Each `cu` extra lists `cuda-core[minimal-sysctk]`, so that it carries + the floor to pip and uv. +3. No documentation page spells a floor out by hand. docs/source/conf.py provides |cuda-bindings-floor-cu12| and |cuda-bindings-floor-cu13|. Release notes are history and are exempt. @@ -44,11 +48,25 @@ def load_floor_module(repo_root: Path): return module +def read_extras(repo_root: Path) -> dict[str, list[str]]: + with open(repo_root / PYPROJECT, "rb") as f: + return tomllib.load(f)["project"]["optional-dependencies"] + + def read_floors(repo_root: Path) -> dict[int, tuple[int, int, int]]: """The floors declared by the pyproject extras. Raises ValueError if they do not parse.""" - with open(repo_root / PYPROJECT, "rb") as f: - extras = tomllib.load(f)["project"]["optional-dependencies"] - return load_floor_module(repo_root).floors_from_extras(extras) + return load_floor_module(repo_root).floors_from_extras(read_extras(repo_root)) + + +def cu_extra_problems(repo_root: Path, floors: dict[int, tuple[int, int, int]]) -> list[str]: + """`cu` extras that do not include `minimal-sysctk`. pip and uv would not see the floor through them.""" + extras = read_extras(repo_root) + problems = [] + for major in floors: + wanted = f"cuda-core[minimal-sysctk{major}]" + if wanted not in (r.replace(" ", "") for r in extras.get(f"cu{major}", [])): + problems.append(f"{PYPROJECT}: the 'cu{major}' extra must list {wanted!r}, so that it carries the floor") + return problems def docs_problems(repo_root: Path) -> list[str]: @@ -68,11 +86,10 @@ def docs_problems(repo_root: Path) -> list[str]: def check(repo_root: Path) -> list[str]: try: - read_floors(repo_root) + floors = read_floors(repo_root) except ValueError as exc: return [f"{PYPROJECT}: {exc}"] - problems = docs_problems(repo_root) - return problems + return cu_extra_problems(repo_root, floors) + docs_problems(repo_root) def main(argv: list[str] | None = None) -> int: From 320532eb15f31c5898be1785a6a462bebf9be93c Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Tue, 17 Nov 2026 17:28:27 -0500 Subject: [PATCH 60/85] Catch-up bindings (#3473) --- cuda_bindings_12/cuda/bindings/cufile.pyx | 164 +- cuda_bindings_12/cuda/bindings/driver.pyx | 4 +- cuda_bindings_12/cuda/bindings/nvml.pyx | 4649 ++++++++++------- cuda_bindings_12/cuda/bindings/nvvm.pyx | 10 +- cuda_bindings_12/cuda/bindings/runtime.pyx | 4 +- .../cuda/bindings/_internal/_fast_enum.py | 5 +- cuda_bindings_13/cuda/bindings/_v2/driver.pyx | 4165 ++++++++------- cuda_bindings_13/cuda/bindings/_v2/nvrtc.pyx | 39 +- cuda_bindings_13/cuda/bindings/cudla.pyx | 265 +- cuda_bindings_13/cuda/bindings/cufile.pyx | 480 +- cuda_bindings_13/cuda/bindings/driver.pyx | 4 +- cuda_bindings_13/cuda/bindings/nvml.pyx | 4649 ++++++++++------- cuda_bindings_13/cuda/bindings/nvvm.pyx | 10 +- cuda_bindings_13/cuda/bindings/runtime.pyx | 4 +- 14 files changed, 8412 insertions(+), 6040 deletions(-) diff --git a/cuda_bindings_12/cuda/bindings/cufile.pyx b/cuda_bindings_12/cuda/bindings/cufile.pyx index e1f99ee10561..273e24581ba2 100644 --- a/cuda_bindings_12/cuda/bindings/cufile.pyx +++ b/cuda_bindings_12/cuda/bindings/cufile.pyx @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated with version 12.9.1. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=11c0f6874dbbca1b98aa2e0d38e44146556d4d1a4ce5a5584cbad9c5792792c2 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=5c0f0ede5957fb7cbd597e6b23620fecb7128a0740b00a6313f8a4b1c79846f3 # <<<< PREAMBLE CONTENT >>>> @@ -97,16 +97,21 @@ from cuda.bindings.driver import CUresult as pyCUresult ############################################################################### cdef _get__py_anon_pod1_dtype_offsets(): - cdef cuda_bindings_cufile__anon_pod1 pod - return _numpy.dtype({ - 'names': ['fd', 'handle'], - 'formats': [_numpy.int32, _numpy.intp], - 'offsets': [ - (&(pod.fd)) - (&pod), - (&(pod.handle)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_cufile__anon_pod1), - }) + cdef cuda_bindings_cufile__anon_pod1 *pod = _cyb_calloc(1, sizeof(cuda_bindings_cufile__anon_pod1)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_cufile__anon_pod1") + try: + return _numpy.dtype({ + 'names': ['fd', 'handle'], + 'formats': [_numpy.int32, _numpy.intp], + 'offsets': [ + (&(pod.fd)) - (pod), + (&(pod.handle)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_cufile__anon_pod1), + }) + finally: + _cyb_free(pod) _py_anon_pod1_dtype = _get__py_anon_pod1_dtype_offsets() @@ -246,18 +251,23 @@ cdef class _py_anon_pod1: cdef _get__py_anon_pod3_dtype_offsets(): - cdef cuda_bindings_cufile__anon_pod3 pod - return _numpy.dtype({ - 'names': ['dev_ptr_base', 'file_offset', 'dev_ptr_offset', 'size_'], - 'formats': [_numpy.intp, _numpy.int64, _numpy.int64, _numpy.uint64], - 'offsets': [ - (&(pod.devPtr_base)) - (&pod), - (&(pod.file_offset)) - (&pod), - (&(pod.devPtr_offset)) - (&pod), - (&(pod.size)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_cufile__anon_pod3), - }) + cdef cuda_bindings_cufile__anon_pod3 *pod = _cyb_calloc(1, sizeof(cuda_bindings_cufile__anon_pod3)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_cufile__anon_pod3") + try: + return _numpy.dtype({ + 'names': ['dev_ptr_base', 'file_offset', 'dev_ptr_offset', 'size_'], + 'formats': [_numpy.intp, _numpy.int64, _numpy.int64, _numpy.uint64], + 'offsets': [ + (&(pod.devPtr_base)) - (pod), + (&(pod.file_offset)) - (pod), + (&(pod.devPtr_offset)) - (pod), + (&(pod.size)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_cufile__anon_pod3), + }) + finally: + _cyb_free(pod) _py_anon_pod3_dtype = _get__py_anon_pod3_dtype_offsets() @@ -419,17 +429,22 @@ cdef class _py_anon_pod3: cdef _get_io_events_dtype_offsets(): - cdef CUfileIOEvents_t pod - return _numpy.dtype({ - 'names': ['cookie', 'status', 'ret'], - 'formats': [_numpy.intp, _numpy.int32, _numpy.uint64], - 'offsets': [ - (&(pod.cookie)) - (&pod), - (&(pod.status)) - (&pod), - (&(pod.ret)) - (&pod), - ], - 'itemsize': sizeof(CUfileIOEvents_t), - }) + cdef CUfileIOEvents_t *pod = _cyb_calloc(1, sizeof(CUfileIOEvents_t)) + if pod == NULL: + raise MemoryError("Error allocating CUfileIOEvents_t") + try: + return _numpy.dtype({ + 'names': ['cookie', 'status', 'ret'], + 'formats': [_numpy.intp, _numpy.int32, _numpy.uint64], + 'offsets': [ + (&(pod.cookie)) - (pod), + (&(pod.status)) - (pod), + (&(pod.ret)) - (pod), + ], + 'itemsize': sizeof(CUfileIOEvents_t), + }) + finally: + _cyb_free(pod) io_events_dtype = _get_io_events_dtype_offsets() cdef object io_events_dtype_record = _numpy.dtype((_numpy.record, io_events_dtype)) @@ -601,17 +616,22 @@ cdef class IOEvents: cdef _get_descr_dtype_offsets(): - cdef CUfileDescr_t pod - return _numpy.dtype({ - 'names': ['type', 'handle', 'fs_ops'], - 'formats': [_numpy.int32, _py_anon_pod1_dtype, _numpy.intp], - 'offsets': [ - (&(pod.type)) - (&pod), - (&(pod.handle)) - (&pod), - (&(pod.fs_ops)) - (&pod), - ], - 'itemsize': sizeof(CUfileDescr_t), - }) + cdef CUfileDescr_t *pod = _cyb_calloc(1, sizeof(CUfileDescr_t)) + if pod == NULL: + raise MemoryError("Error allocating CUfileDescr_t") + try: + return _numpy.dtype({ + 'names': ['type', 'handle', 'fs_ops'], + 'formats': [_numpy.int32, _py_anon_pod1_dtype, _numpy.intp], + 'offsets': [ + (&(pod.type)) - (pod), + (&(pod.handle)) - (pod), + (&(pod.fs_ops)) - (pod), + ], + 'itemsize': sizeof(CUfileDescr_t), + }) + finally: + _cyb_free(pod) descr_dtype = _get_descr_dtype_offsets() cdef object descr_dtype_record = _numpy.dtype((_numpy.record, descr_dtype)) @@ -781,15 +801,20 @@ cdef class Descr: cdef _get__py_anon_pod2_dtype_offsets(): - cdef cuda_bindings_cufile__anon_pod2 pod - return _numpy.dtype({ - 'names': ['batch'], - 'formats': [_py_anon_pod3_dtype], - 'offsets': [ - (&(pod.batch)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_cufile__anon_pod2), - }) + cdef cuda_bindings_cufile__anon_pod2 *pod = _cyb_calloc(1, sizeof(cuda_bindings_cufile__anon_pod2)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_cufile__anon_pod2") + try: + return _numpy.dtype({ + 'names': ['batch'], + 'formats': [_py_anon_pod3_dtype], + 'offsets': [ + (&(pod.batch)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_cufile__anon_pod2), + }) + finally: + _cyb_free(pod) _py_anon_pod2_dtype = _get__py_anon_pod2_dtype_offsets() @@ -923,19 +948,24 @@ cdef class _py_anon_pod2: cdef _get_io_params_dtype_offsets(): - cdef CUfileIOParams_t pod - return _numpy.dtype({ - 'names': ['mode', 'u', 'fh', 'opcode', 'cookie'], - 'formats': [_numpy.int32, _py_anon_pod2_dtype, _numpy.intp, _numpy.int32, _numpy.intp], - 'offsets': [ - (&(pod.mode)) - (&pod), - (&(pod.u)) - (&pod), - (&(pod.fh)) - (&pod), - (&(pod.opcode)) - (&pod), - (&(pod.cookie)) - (&pod), - ], - 'itemsize': sizeof(CUfileIOParams_t), - }) + cdef CUfileIOParams_t *pod = _cyb_calloc(1, sizeof(CUfileIOParams_t)) + if pod == NULL: + raise MemoryError("Error allocating CUfileIOParams_t") + try: + return _numpy.dtype({ + 'names': ['mode', 'u', 'fh', 'opcode', 'cookie'], + 'formats': [_numpy.int32, _py_anon_pod2_dtype, _numpy.intp, _numpy.int32, _numpy.intp], + 'offsets': [ + (&(pod.mode)) - (pod), + (&(pod.u)) - (pod), + (&(pod.fh)) - (pod), + (&(pod.opcode)) - (pod), + (&(pod.cookie)) - (pod), + ], + 'itemsize': sizeof(CUfileIOParams_t), + }) + finally: + _cyb_free(pod) io_params_dtype = _get_io_params_dtype_offsets() cdef object io_params_dtype_record = _numpy.dtype((_numpy.record, io_params_dtype)) diff --git a/cuda_bindings_12/cuda/bindings/driver.pyx b/cuda_bindings_12/cuda/bindings/driver.pyx index c625773b0384..b2208732f35c 100644 --- a/cuda_bindings_12/cuda/bindings/driver.pyx +++ b/cuda_bindings_12/cuda/bindings/driver.pyx @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # This code was automatically generated with version 12.9.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=67ecc286b7f346fb9026fcdb8fb0914b5d44e31a61570a0f9733513db0a4c81a +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=e99438cba367ec2bee3420a771067ba7d33770c5c4cb189b770f59d56e8ace8c from typing import Any, Optional import cython import ctypes @@ -22160,7 +22160,7 @@ cdef class anon_union15: def pArray(self): return [CUarray(init_value=_pArray) for _pArray in self._pvt_ptr[0].frame.pArray] @pArray.setter - def pArray(self, pArray : list[CUarray]): + def pArray(self, pArray : list[CUarray | int]): if len(pArray) != 3: raise IndexError('not enough values found during array assignment, expected 3, got', len(pArray)) pArray = [int(_pArray) for _pArray in pArray] diff --git a/cuda_bindings_12/cuda/bindings/nvml.pyx b/cuda_bindings_12/cuda/bindings/nvml.pyx index 402428b5e6f3..54a3dddfbd03 100644 --- a/cuda_bindings_12/cuda/bindings/nvml.pyx +++ b/cuda_bindings_12/cuda/bindings/nvml.pyx @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated across versions from 12.9.1 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=41c2a2147ee34ceed11d38eb00faa851b5c1d5f10c215a0df65f85b22a41757c +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=82df971c247cf6ab3e4aed0e3fa58bcfc88508a419b3dcd9f099182445ca41cd # <<<< PREAMBLE CONTENT >>>> @@ -3102,23 +3102,28 @@ cpdef int check_status_size(int status) except 1 nogil: cdef _get_pci_info_ext_v1_dtype_offsets(): - cdef nvmlPciInfoExt_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'domain', 'bus', 'device_', 'pci_device_id', 'pci_sub_system_id', 'base_class', 'sub_class', 'bus_id'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.int8, 32)], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.domain)) - (&pod), - (&(pod.bus)) - (&pod), - (&(pod.device)) - (&pod), - (&(pod.pciDeviceId)) - (&pod), - (&(pod.pciSubSystemId)) - (&pod), - (&(pod.baseClass)) - (&pod), - (&(pod.subClass)) - (&pod), - (&(pod.busId)) - (&pod), - ], - 'itemsize': sizeof(nvmlPciInfoExt_v1_t), - }) + cdef nvmlPciInfoExt_v1_t *pod = _cyb_calloc(1, sizeof(nvmlPciInfoExt_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPciInfoExt_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'domain', 'bus', 'device_', 'pci_device_id', 'pci_sub_system_id', 'base_class', 'sub_class', 'bus_id'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.int8, 32)], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.domain)) - (pod), + (&(pod.bus)) - (pod), + (&(pod.device)) - (pod), + (&(pod.pciDeviceId)) - (pod), + (&(pod.pciSubSystemId)) - (pod), + (&(pod.baseClass)) - (pod), + (&(pod.subClass)) - (pod), + (&(pod.busId)) - (pod), + ], + 'itemsize': sizeof(nvmlPciInfoExt_v1_t), + }) + finally: + _cyb_free(pod) pci_info_ext_v1_dtype = _get_pci_info_ext_v1_dtype_offsets() @@ -3327,21 +3332,26 @@ cdef class PciInfoExt_v1: cdef _get_pci_info_dtype_offsets(): - cdef nvmlPciInfo_t pod - return _numpy.dtype({ - 'names': ['bus_id_legacy', 'domain', 'bus', 'device_', 'pci_device_id', 'pci_sub_system_id', 'bus_id'], - 'formats': [(_numpy.int8, 16), _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.int8, 32)], - 'offsets': [ - (&(pod.busIdLegacy)) - (&pod), - (&(pod.domain)) - (&pod), - (&(pod.bus)) - (&pod), - (&(pod.device)) - (&pod), - (&(pod.pciDeviceId)) - (&pod), - (&(pod.pciSubSystemId)) - (&pod), - (&(pod.busId)) - (&pod), - ], - 'itemsize': sizeof(nvmlPciInfo_t), - }) + cdef nvmlPciInfo_t *pod = _cyb_calloc(1, sizeof(nvmlPciInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPciInfo_t") + try: + return _numpy.dtype({ + 'names': ['bus_id_legacy', 'domain', 'bus', 'device_', 'pci_device_id', 'pci_sub_system_id', 'bus_id'], + 'formats': [(_numpy.int8, 16), _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.int8, 32)], + 'offsets': [ + (&(pod.busIdLegacy)) - (pod), + (&(pod.domain)) - (pod), + (&(pod.bus)) - (pod), + (&(pod.device)) - (pod), + (&(pod.pciDeviceId)) - (pod), + (&(pod.pciSubSystemId)) - (pod), + (&(pod.busId)) - (pod), + ], + 'itemsize': sizeof(nvmlPciInfo_t), + }) + finally: + _cyb_free(pod) pci_info_dtype = _get_pci_info_dtype_offsets() @@ -3544,16 +3554,21 @@ cdef class PciInfo: cdef _get_utilization_dtype_offsets(): - cdef nvmlUtilization_t pod - return _numpy.dtype({ - 'names': ['gpu', 'memory'], - 'formats': [_numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.gpu)) - (&pod), - (&(pod.memory)) - (&pod), - ], - 'itemsize': sizeof(nvmlUtilization_t), - }) + cdef nvmlUtilization_t *pod = _cyb_calloc(1, sizeof(nvmlUtilization_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlUtilization_t") + try: + return _numpy.dtype({ + 'names': ['gpu', 'memory'], + 'formats': [_numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.gpu)) - (pod), + (&(pod.memory)) - (pod), + ], + 'itemsize': sizeof(nvmlUtilization_t), + }) + finally: + _cyb_free(pod) utilization_dtype = _get_utilization_dtype_offsets() @@ -3681,17 +3696,22 @@ cdef class Utilization: cdef _get_memory_dtype_offsets(): - cdef nvmlMemory_t pod - return _numpy.dtype({ - 'names': ['total', 'free', 'used'], - 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.total)) - (&pod), - (&(pod.free)) - (&pod), - (&(pod.used)) - (&pod), - ], - 'itemsize': sizeof(nvmlMemory_t), - }) + cdef nvmlMemory_t *pod = _cyb_calloc(1, sizeof(nvmlMemory_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlMemory_t") + try: + return _numpy.dtype({ + 'names': ['total', 'free', 'used'], + 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.total)) - (pod), + (&(pod.free)) - (pod), + (&(pod.used)) - (pod), + ], + 'itemsize': sizeof(nvmlMemory_t), + }) + finally: + _cyb_free(pod) memory_dtype = _get_memory_dtype_offsets() @@ -3830,19 +3850,24 @@ cdef class Memory: cdef _get_memory_v2_dtype_offsets(): - cdef nvmlMemory_v2_t pod - return _numpy.dtype({ - 'names': ['version', 'total', 'reserved', 'free', 'used'], - 'formats': [_numpy.uint32, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.total)) - (&pod), - (&(pod.reserved)) - (&pod), - (&(pod.free)) - (&pod), - (&(pod.used)) - (&pod), - ], - 'itemsize': sizeof(nvmlMemory_v2_t), - }) + cdef nvmlMemory_v2_t *pod = _cyb_calloc(1, sizeof(nvmlMemory_v2_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlMemory_v2_t") + try: + return _numpy.dtype({ + 'names': ['version', 'total', 'reserved', 'free', 'used'], + 'formats': [_numpy.uint32, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.total)) - (pod), + (&(pod.reserved)) - (pod), + (&(pod.free)) - (pod), + (&(pod.used)) - (pod), + ], + 'itemsize': sizeof(nvmlMemory_v2_t), + }) + finally: + _cyb_free(pod) memory_v2_dtype = _get_memory_v2_dtype_offsets() @@ -4003,17 +4028,22 @@ cdef class Memory_v2: cdef _get_ba_r1memory_dtype_offsets(): - cdef nvmlBAR1Memory_t pod - return _numpy.dtype({ - 'names': ['bar1_total', 'bar1_free', 'bar1_used'], - 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.bar1Total)) - (&pod), - (&(pod.bar1Free)) - (&pod), - (&(pod.bar1Used)) - (&pod), - ], - 'itemsize': sizeof(nvmlBAR1Memory_t), - }) + cdef nvmlBAR1Memory_t *pod = _cyb_calloc(1, sizeof(nvmlBAR1Memory_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlBAR1Memory_t") + try: + return _numpy.dtype({ + 'names': ['bar1_total', 'bar1_free', 'bar1_used'], + 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.bar1Total)) - (pod), + (&(pod.bar1Free)) - (pod), + (&(pod.bar1Used)) - (pod), + ], + 'itemsize': sizeof(nvmlBAR1Memory_t), + }) + finally: + _cyb_free(pod) ba_r1memory_dtype = _get_ba_r1memory_dtype_offsets() @@ -4152,18 +4182,23 @@ cdef class BAR1Memory: cdef _get_process_info_dtype_offsets(): - cdef nvmlProcessInfo_t pod - return _numpy.dtype({ - 'names': ['pid', 'used_gpu_memory', 'gpu_instance_id', 'compute_instance_id'], - 'formats': [_numpy.uint32, _numpy.uint64, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.pid)) - (&pod), - (&(pod.usedGpuMemory)) - (&pod), - (&(pod.gpuInstanceId)) - (&pod), - (&(pod.computeInstanceId)) - (&pod), - ], - 'itemsize': sizeof(nvmlProcessInfo_t), - }) + cdef nvmlProcessInfo_t *pod = _cyb_calloc(1, sizeof(nvmlProcessInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlProcessInfo_t") + try: + return _numpy.dtype({ + 'names': ['pid', 'used_gpu_memory', 'gpu_instance_id', 'compute_instance_id'], + 'formats': [_numpy.uint32, _numpy.uint64, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.pid)) - (pod), + (&(pod.usedGpuMemory)) - (pod), + (&(pod.gpuInstanceId)) - (pod), + (&(pod.computeInstanceId)) - (pod), + ], + 'itemsize': sizeof(nvmlProcessInfo_t), + }) + finally: + _cyb_free(pod) process_info_dtype = _get_process_info_dtype_offsets() cdef object process_info_dtype_record = _numpy.dtype((_numpy.record, process_info_dtype)) @@ -4348,19 +4383,24 @@ cdef class ProcessInfo: cdef _get_process_detail_v1_dtype_offsets(): - cdef nvmlProcessDetail_v1_t pod - return _numpy.dtype({ - 'names': ['pid', 'used_gpu_memory', 'gpu_instance_id', 'compute_instance_id', 'used_gpu_cc_protected_memory'], - 'formats': [_numpy.uint32, _numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint64], - 'offsets': [ - (&(pod.pid)) - (&pod), - (&(pod.usedGpuMemory)) - (&pod), - (&(pod.gpuInstanceId)) - (&pod), - (&(pod.computeInstanceId)) - (&pod), - (&(pod.usedGpuCcProtectedMemory)) - (&pod), - ], - 'itemsize': sizeof(nvmlProcessDetail_v1_t), - }) + cdef nvmlProcessDetail_v1_t *pod = _cyb_calloc(1, sizeof(nvmlProcessDetail_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlProcessDetail_v1_t") + try: + return _numpy.dtype({ + 'names': ['pid', 'used_gpu_memory', 'gpu_instance_id', 'compute_instance_id', 'used_gpu_cc_protected_memory'], + 'formats': [_numpy.uint32, _numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint64], + 'offsets': [ + (&(pod.pid)) - (pod), + (&(pod.usedGpuMemory)) - (pod), + (&(pod.gpuInstanceId)) - (pod), + (&(pod.computeInstanceId)) - (pod), + (&(pod.usedGpuCcProtectedMemory)) - (pod), + ], + 'itemsize': sizeof(nvmlProcessDetail_v1_t), + }) + finally: + _cyb_free(pod) process_detail_v1_dtype = _get_process_detail_v1_dtype_offsets() cdef object process_detail_v1_dtype_record = _numpy.dtype((_numpy.record, process_detail_v1_dtype)) @@ -4558,23 +4598,28 @@ cdef class ProcessDetail_v1: cdef _get_device_attributes_dtype_offsets(): - cdef nvmlDeviceAttributes_t pod - return _numpy.dtype({ - 'names': ['multiprocessor_count', 'shared_copy_engine_count', 'shared_decoder_count', 'shared_encoder_count', 'shared_jpeg_count', 'shared_ofa_count', 'gpu_instance_slice_count', 'compute_instance_slice_count', 'memory_size_mb'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint64], - 'offsets': [ - (&(pod.multiprocessorCount)) - (&pod), - (&(pod.sharedCopyEngineCount)) - (&pod), - (&(pod.sharedDecoderCount)) - (&pod), - (&(pod.sharedEncoderCount)) - (&pod), - (&(pod.sharedJpegCount)) - (&pod), - (&(pod.sharedOfaCount)) - (&pod), - (&(pod.gpuInstanceSliceCount)) - (&pod), - (&(pod.computeInstanceSliceCount)) - (&pod), - (&(pod.memorySizeMB)) - (&pod), - ], - 'itemsize': sizeof(nvmlDeviceAttributes_t), - }) + cdef nvmlDeviceAttributes_t *pod = _cyb_calloc(1, sizeof(nvmlDeviceAttributes_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlDeviceAttributes_t") + try: + return _numpy.dtype({ + 'names': ['multiprocessor_count', 'shared_copy_engine_count', 'shared_decoder_count', 'shared_encoder_count', 'shared_jpeg_count', 'shared_ofa_count', 'gpu_instance_slice_count', 'compute_instance_slice_count', 'memory_size_mb'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint64], + 'offsets': [ + (&(pod.multiprocessorCount)) - (pod), + (&(pod.sharedCopyEngineCount)) - (pod), + (&(pod.sharedDecoderCount)) - (pod), + (&(pod.sharedEncoderCount)) - (pod), + (&(pod.sharedJpegCount)) - (pod), + (&(pod.sharedOfaCount)) - (pod), + (&(pod.gpuInstanceSliceCount)) - (pod), + (&(pod.computeInstanceSliceCount)) - (pod), + (&(pod.memorySizeMB)) - (pod), + ], + 'itemsize': sizeof(nvmlDeviceAttributes_t), + }) + finally: + _cyb_free(pod) device_attributes_dtype = _get_device_attributes_dtype_offsets() @@ -4779,15 +4824,20 @@ cdef class DeviceAttributes: cdef _get_c2c_mode_info_v1_dtype_offsets(): - cdef nvmlC2cModeInfo_v1_t pod - return _numpy.dtype({ - 'names': ['is_c2c_enabled'], - 'formats': [_numpy.uint32], - 'offsets': [ - (&(pod.isC2cEnabled)) - (&pod), - ], - 'itemsize': sizeof(nvmlC2cModeInfo_v1_t), - }) + cdef nvmlC2cModeInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlC2cModeInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlC2cModeInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['is_c2c_enabled'], + 'formats': [_numpy.uint32], + 'offsets': [ + (&(pod.isC2cEnabled)) - (pod), + ], + 'itemsize': sizeof(nvmlC2cModeInfo_v1_t), + }) + finally: + _cyb_free(pod) c2c_mode_info_v1_dtype = _get_c2c_mode_info_v1_dtype_offsets() @@ -4904,19 +4954,24 @@ cdef class C2cModeInfo_v1: cdef _get_row_remapper_histogram_values_dtype_offsets(): - cdef nvmlRowRemapperHistogramValues_t pod - return _numpy.dtype({ - 'names': ['max_', 'high', 'partial', 'low', 'none'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.max)) - (&pod), - (&(pod.high)) - (&pod), - (&(pod.partial)) - (&pod), - (&(pod.low)) - (&pod), - (&(pod.none)) - (&pod), - ], - 'itemsize': sizeof(nvmlRowRemapperHistogramValues_t), - }) + cdef nvmlRowRemapperHistogramValues_t *pod = _cyb_calloc(1, sizeof(nvmlRowRemapperHistogramValues_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlRowRemapperHistogramValues_t") + try: + return _numpy.dtype({ + 'names': ['max_', 'high', 'partial', 'low', 'none'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.max)) - (pod), + (&(pod.high)) - (pod), + (&(pod.partial)) - (pod), + (&(pod.low)) - (pod), + (&(pod.none)) - (pod), + ], + 'itemsize': sizeof(nvmlRowRemapperHistogramValues_t), + }) + finally: + _cyb_free(pod) row_remapper_histogram_values_dtype = _get_row_remapper_histogram_values_dtype_offsets() @@ -5077,16 +5132,21 @@ cdef class RowRemapperHistogramValues: cdef _get_bridge_chip_info_dtype_offsets(): - cdef nvmlBridgeChipInfo_t pod - return _numpy.dtype({ - 'names': ['type', 'fw_version'], - 'formats': [_numpy.int32, _numpy.uint32], - 'offsets': [ - (&(pod.type)) - (&pod), - (&(pod.fwVersion)) - (&pod), - ], - 'itemsize': sizeof(nvmlBridgeChipInfo_t), - }) + cdef nvmlBridgeChipInfo_t *pod = _cyb_calloc(1, sizeof(nvmlBridgeChipInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlBridgeChipInfo_t") + try: + return _numpy.dtype({ + 'names': ['type', 'fw_version'], + 'formats': [_numpy.int32, _numpy.uint32], + 'offsets': [ + (&(pod.type)) - (pod), + (&(pod.fwVersion)) - (pod), + ], + 'itemsize': sizeof(nvmlBridgeChipInfo_t), + }) + finally: + _cyb_free(pod) bridge_chip_info_dtype = _get_bridge_chip_info_dtype_offsets() cdef object bridge_chip_info_dtype_record = _numpy.dtype((_numpy.record, bridge_chip_info_dtype)) @@ -5245,21 +5305,26 @@ cdef class BridgeChipInfo: cdef _get_value_dtype_offsets(): - cdef nvmlValue_t pod - return _numpy.dtype({ - 'names': ['d_val', 'si_val', 'ui_val', 'ul_val', 'ull_val', 'sll_val', 'us_val'], - 'formats': [_numpy.float64, _numpy.int32, _numpy.uint32, _numpy.uint32, _numpy.uint64, _numpy.int64, _numpy.uint16], - 'offsets': [ - (&(pod.dVal)) - (&pod), - (&(pod.siVal)) - (&pod), - (&(pod.uiVal)) - (&pod), - (&(pod.ulVal)) - (&pod), - (&(pod.ullVal)) - (&pod), - (&(pod.sllVal)) - (&pod), - (&(pod.usVal)) - (&pod), - ], - 'itemsize': sizeof(nvmlValue_t), - }) + cdef nvmlValue_t *pod = _cyb_calloc(1, sizeof(nvmlValue_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlValue_t") + try: + return _numpy.dtype({ + 'names': ['d_val', 'si_val', 'ui_val', 'ul_val', 'ull_val', 'sll_val', 'us_val'], + 'formats': [_numpy.float64, _numpy.int32, _numpy.uint32, _numpy.uint32, _numpy.uint64, _numpy.int64, _numpy.uint16], + 'offsets': [ + (&(pod.dVal)) - (pod), + (&(pod.siVal)) - (pod), + (&(pod.uiVal)) - (pod), + (&(pod.ulVal)) - (pod), + (&(pod.ullVal)) - (pod), + (&(pod.sllVal)) - (pod), + (&(pod.usVal)) - (pod), + ], + 'itemsize': sizeof(nvmlValue_t), + }) + finally: + _cyb_free(pod) value_dtype = _get_value_dtype_offsets() @@ -5454,19 +5519,24 @@ cdef class Value: cdef _get__py_anon_pod0_dtype_offsets(): - cdef cuda_bindings_nvml__anon_pod0 pod - return _numpy.dtype({ - 'names': ['controller', 'default_min_temp', 'default_max_temp', 'current_temp', 'target'], - 'formats': [_numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32], - 'offsets': [ - (&(pod.controller)) - (&pod), - (&(pod.defaultMinTemp)) - (&pod), - (&(pod.defaultMaxTemp)) - (&pod), - (&(pod.currentTemp)) - (&pod), - (&(pod.target)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_nvml__anon_pod0), - }) + cdef cuda_bindings_nvml__anon_pod0 *pod = _cyb_calloc(1, sizeof(cuda_bindings_nvml__anon_pod0)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_nvml__anon_pod0") + try: + return _numpy.dtype({ + 'names': ['controller', 'default_min_temp', 'default_max_temp', 'current_temp', 'target'], + 'formats': [_numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32], + 'offsets': [ + (&(pod.controller)) - (pod), + (&(pod.defaultMinTemp)) - (pod), + (&(pod.defaultMaxTemp)) - (pod), + (&(pod.currentTemp)) - (pod), + (&(pod.target)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_nvml__anon_pod0), + }) + finally: + _cyb_free(pod) _py_anon_pod0_dtype = _get__py_anon_pod0_dtype_offsets() cdef object _py_anon_pod0_dtype_record = _numpy.dtype((_numpy.record, _py_anon_pod0_dtype)) @@ -5664,18 +5734,23 @@ cdef class _py_anon_pod0: cdef _get_cooler_info_v1_dtype_offsets(): - cdef nvmlCoolerInfo_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'index', 'signal_type', 'target'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.int32, _numpy.int32], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.index)) - (&pod), - (&(pod.signalType)) - (&pod), - (&(pod.target)) - (&pod), - ], - 'itemsize': sizeof(nvmlCoolerInfo_v1_t), - }) + cdef nvmlCoolerInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlCoolerInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlCoolerInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'index', 'signal_type', 'target'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.int32, _numpy.int32], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.index)) - (pod), + (&(pod.signalType)) - (pod), + (&(pod.target)) - (pod), + ], + 'itemsize': sizeof(nvmlCoolerInfo_v1_t), + }) + finally: + _cyb_free(pod) cooler_info_v1_dtype = _get_cooler_info_v1_dtype_offsets() @@ -5825,16 +5900,21 @@ cdef class CoolerInfo_v1: cdef _get_clk_mon_fault_info_dtype_offsets(): - cdef nvmlClkMonFaultInfo_t pod - return _numpy.dtype({ - 'names': ['clk_api_domain', 'clk_domain_fault_mask'], - 'formats': [_numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.clkApiDomain)) - (&pod), - (&(pod.clkDomainFaultMask)) - (&pod), - ], - 'itemsize': sizeof(nvmlClkMonFaultInfo_t), - }) + cdef nvmlClkMonFaultInfo_t *pod = _cyb_calloc(1, sizeof(nvmlClkMonFaultInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlClkMonFaultInfo_t") + try: + return _numpy.dtype({ + 'names': ['clk_api_domain', 'clk_domain_fault_mask'], + 'formats': [_numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.clkApiDomain)) - (pod), + (&(pod.clkDomainFaultMask)) - (pod), + ], + 'itemsize': sizeof(nvmlClkMonFaultInfo_t), + }) + finally: + _cyb_free(pod) clk_mon_fault_info_dtype = _get_clk_mon_fault_info_dtype_offsets() cdef object clk_mon_fault_info_dtype_record = _numpy.dtype((_numpy.record, clk_mon_fault_info_dtype)) @@ -5993,20 +6073,25 @@ cdef class ClkMonFaultInfo: cdef _get_clock_offset_v1_dtype_offsets(): - cdef nvmlClockOffset_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'type', 'pstate', 'clock_offset_m_hz', 'min_clock_offset_m_hz', 'max_clock_offset_m_hz'], - 'formats': [_numpy.uint32, _numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.type)) - (&pod), - (&(pod.pstate)) - (&pod), - (&(pod.clockOffsetMHz)) - (&pod), - (&(pod.minClockOffsetMHz)) - (&pod), - (&(pod.maxClockOffsetMHz)) - (&pod), - ], - 'itemsize': sizeof(nvmlClockOffset_v1_t), - }) + cdef nvmlClockOffset_v1_t *pod = _cyb_calloc(1, sizeof(nvmlClockOffset_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlClockOffset_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'type', 'pstate', 'clock_offset_m_hz', 'min_clock_offset_m_hz', 'max_clock_offset_m_hz'], + 'formats': [_numpy.uint32, _numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.type)) - (pod), + (&(pod.pstate)) - (pod), + (&(pod.clockOffsetMHz)) - (pod), + (&(pod.minClockOffsetMHz)) - (pod), + (&(pod.maxClockOffsetMHz)) - (pod), + ], + 'itemsize': sizeof(nvmlClockOffset_v1_t), + }) + finally: + _cyb_free(pod) clock_offset_v1_dtype = _get_clock_offset_v1_dtype_offsets() @@ -6178,20 +6263,25 @@ cdef class ClockOffset_v1: cdef _get_process_utilization_sample_dtype_offsets(): - cdef nvmlProcessUtilizationSample_t pod - return _numpy.dtype({ - 'names': ['pid', 'time_stamp', 'sm_util', 'mem_util', 'enc_util', 'dec_util'], - 'formats': [_numpy.uint32, _numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.pid)) - (&pod), - (&(pod.timeStamp)) - (&pod), - (&(pod.smUtil)) - (&pod), - (&(pod.memUtil)) - (&pod), - (&(pod.encUtil)) - (&pod), - (&(pod.decUtil)) - (&pod), - ], - 'itemsize': sizeof(nvmlProcessUtilizationSample_t), - }) + cdef nvmlProcessUtilizationSample_t *pod = _cyb_calloc(1, sizeof(nvmlProcessUtilizationSample_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlProcessUtilizationSample_t") + try: + return _numpy.dtype({ + 'names': ['pid', 'time_stamp', 'sm_util', 'mem_util', 'enc_util', 'dec_util'], + 'formats': [_numpy.uint32, _numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.pid)) - (pod), + (&(pod.timeStamp)) - (pod), + (&(pod.smUtil)) - (pod), + (&(pod.memUtil)) - (pod), + (&(pod.encUtil)) - (pod), + (&(pod.decUtil)) - (pod), + ], + 'itemsize': sizeof(nvmlProcessUtilizationSample_t), + }) + finally: + _cyb_free(pod) process_utilization_sample_dtype = _get_process_utilization_sample_dtype_offsets() cdef object process_utilization_sample_dtype_record = _numpy.dtype((_numpy.record, process_utilization_sample_dtype)) @@ -6402,22 +6492,27 @@ cdef class ProcessUtilizationSample: cdef _get_process_utilization_info_v1_dtype_offsets(): - cdef nvmlProcessUtilizationInfo_v1_t pod - return _numpy.dtype({ - 'names': ['time_stamp', 'pid', 'sm_util', 'mem_util', 'enc_util', 'dec_util', 'jpg_util', 'ofa_util'], - 'formats': [_numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.timeStamp)) - (&pod), - (&(pod.pid)) - (&pod), - (&(pod.smUtil)) - (&pod), - (&(pod.memUtil)) - (&pod), - (&(pod.encUtil)) - (&pod), - (&(pod.decUtil)) - (&pod), - (&(pod.jpgUtil)) - (&pod), - (&(pod.ofaUtil)) - (&pod), - ], - 'itemsize': sizeof(nvmlProcessUtilizationInfo_v1_t), - }) + cdef nvmlProcessUtilizationInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlProcessUtilizationInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlProcessUtilizationInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['time_stamp', 'pid', 'sm_util', 'mem_util', 'enc_util', 'dec_util', 'jpg_util', 'ofa_util'], + 'formats': [_numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.timeStamp)) - (pod), + (&(pod.pid)) - (pod), + (&(pod.smUtil)) - (pod), + (&(pod.memUtil)) - (pod), + (&(pod.encUtil)) - (pod), + (&(pod.decUtil)) - (pod), + (&(pod.jpgUtil)) - (pod), + (&(pod.ofaUtil)) - (pod), + ], + 'itemsize': sizeof(nvmlProcessUtilizationInfo_v1_t), + }) + finally: + _cyb_free(pod) process_utilization_info_v1_dtype = _get_process_utilization_info_v1_dtype_offsets() cdef object process_utilization_info_v1_dtype_record = _numpy.dtype((_numpy.record, process_utilization_info_v1_dtype)) @@ -6654,27 +6749,32 @@ cdef class ProcessUtilizationInfo_v1: cdef _get_ecc_sram_error_status_v1_dtype_offsets(): - cdef nvmlEccSramErrorStatus_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'aggregate_unc_parity', 'aggregate_unc_sec_ded', 'aggregate_cor', 'volatile_unc_parity', 'volatile_unc_sec_ded', 'volatile_cor', 'aggregate_unc_bucket_l2', 'aggregate_unc_bucket_sm', 'aggregate_unc_bucket_pcie', 'aggregate_unc_bucket_mcu', 'aggregate_unc_bucket_other', 'b_threshold_exceeded'], - 'formats': [_numpy.uint32, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint32], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.aggregateUncParity)) - (&pod), - (&(pod.aggregateUncSecDed)) - (&pod), - (&(pod.aggregateCor)) - (&pod), - (&(pod.volatileUncParity)) - (&pod), - (&(pod.volatileUncSecDed)) - (&pod), - (&(pod.volatileCor)) - (&pod), - (&(pod.aggregateUncBucketL2)) - (&pod), - (&(pod.aggregateUncBucketSm)) - (&pod), - (&(pod.aggregateUncBucketPcie)) - (&pod), - (&(pod.aggregateUncBucketMcu)) - (&pod), - (&(pod.aggregateUncBucketOther)) - (&pod), - (&(pod.bThresholdExceeded)) - (&pod), - ], - 'itemsize': sizeof(nvmlEccSramErrorStatus_v1_t), - }) + cdef nvmlEccSramErrorStatus_v1_t *pod = _cyb_calloc(1, sizeof(nvmlEccSramErrorStatus_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlEccSramErrorStatus_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'aggregate_unc_parity', 'aggregate_unc_sec_ded', 'aggregate_cor', 'volatile_unc_parity', 'volatile_unc_sec_ded', 'volatile_cor', 'aggregate_unc_bucket_l2', 'aggregate_unc_bucket_sm', 'aggregate_unc_bucket_pcie', 'aggregate_unc_bucket_mcu', 'aggregate_unc_bucket_other', 'b_threshold_exceeded'], + 'formats': [_numpy.uint32, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint32], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.aggregateUncParity)) - (pod), + (&(pod.aggregateUncSecDed)) - (pod), + (&(pod.aggregateCor)) - (pod), + (&(pod.volatileUncParity)) - (pod), + (&(pod.volatileUncSecDed)) - (pod), + (&(pod.volatileCor)) - (pod), + (&(pod.aggregateUncBucketL2)) - (pod), + (&(pod.aggregateUncBucketSm)) - (pod), + (&(pod.aggregateUncBucketPcie)) - (pod), + (&(pod.aggregateUncBucketMcu)) - (pod), + (&(pod.aggregateUncBucketOther)) - (pod), + (&(pod.bThresholdExceeded)) - (pod), + ], + 'itemsize': sizeof(nvmlEccSramErrorStatus_v1_t), + }) + finally: + _cyb_free(pod) ecc_sram_error_status_v1_dtype = _get_ecc_sram_error_status_v1_dtype_offsets() @@ -6923,22 +7023,27 @@ cdef class EccSramErrorStatus_v1: cdef _get_platform_info_v1_dtype_offsets(): - cdef nvmlPlatformInfo_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'ib_guid', 'rack_guid', 'chassis_physical_slot_number', 'compute_slot_index', 'node_index', 'peer_type', 'module_id'], - 'formats': [_numpy.uint32, (_numpy.uint8, 16), (_numpy.uint8, 16), _numpy.uint8, _numpy.uint8, _numpy.uint8, _numpy.uint8, _numpy.uint8], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.ibGuid)) - (&pod), - (&(pod.rackGuid)) - (&pod), - (&(pod.chassisPhysicalSlotNumber)) - (&pod), - (&(pod.computeSlotIndex)) - (&pod), - (&(pod.nodeIndex)) - (&pod), - (&(pod.peerType)) - (&pod), - (&(pod.moduleId)) - (&pod), - ], - 'itemsize': sizeof(nvmlPlatformInfo_v1_t), - }) + cdef nvmlPlatformInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlPlatformInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPlatformInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'ib_guid', 'rack_guid', 'chassis_physical_slot_number', 'compute_slot_index', 'node_index', 'peer_type', 'module_id'], + 'formats': [_numpy.uint32, (_numpy.uint8, 16), (_numpy.uint8, 16), _numpy.uint8, _numpy.uint8, _numpy.uint8, _numpy.uint8, _numpy.uint8], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.ibGuid)) - (pod), + (&(pod.rackGuid)) - (pod), + (&(pod.chassisPhysicalSlotNumber)) - (pod), + (&(pod.computeSlotIndex)) - (pod), + (&(pod.nodeIndex)) - (pod), + (&(pod.peerType)) - (pod), + (&(pod.moduleId)) - (pod), + ], + 'itemsize': sizeof(nvmlPlatformInfo_v1_t), + }) + finally: + _cyb_free(pod) platform_info_v1_dtype = _get_platform_info_v1_dtype_offsets() @@ -7144,22 +7249,27 @@ cdef class PlatformInfo_v1: cdef _get_platform_info_v2_dtype_offsets(): - cdef nvmlPlatformInfo_v2_t pod - return _numpy.dtype({ - 'names': ['version', 'ib_guid', 'chassis_serial_number', 'slot_number', 'tray_index', 'host_id', 'peer_type', 'module_id'], - 'formats': [_numpy.uint32, (_numpy.uint8, 16), (_numpy.uint8, 16), _numpy.uint8, _numpy.uint8, _numpy.uint8, _numpy.uint8, _numpy.uint8], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.ibGuid)) - (&pod), - (&(pod.chassisSerialNumber)) - (&pod), - (&(pod.slotNumber)) - (&pod), - (&(pod.trayIndex)) - (&pod), - (&(pod.hostId)) - (&pod), - (&(pod.peerType)) - (&pod), - (&(pod.moduleId)) - (&pod), - ], - 'itemsize': sizeof(nvmlPlatformInfo_v2_t), - }) + cdef nvmlPlatformInfo_v2_t *pod = _cyb_calloc(1, sizeof(nvmlPlatformInfo_v2_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPlatformInfo_v2_t") + try: + return _numpy.dtype({ + 'names': ['version', 'ib_guid', 'chassis_serial_number', 'slot_number', 'tray_index', 'host_id', 'peer_type', 'module_id'], + 'formats': [_numpy.uint32, (_numpy.uint8, 16), (_numpy.uint8, 16), _numpy.uint8, _numpy.uint8, _numpy.uint8, _numpy.uint8, _numpy.uint8], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.ibGuid)) - (pod), + (&(pod.chassisSerialNumber)) - (pod), + (&(pod.slotNumber)) - (pod), + (&(pod.trayIndex)) - (pod), + (&(pod.hostId)) - (pod), + (&(pod.peerType)) - (pod), + (&(pod.moduleId)) - (pod), + ], + 'itemsize': sizeof(nvmlPlatformInfo_v2_t), + }) + finally: + _cyb_free(pod) platform_info_v2_dtype = _get_platform_info_v2_dtype_offsets() @@ -7365,18 +7475,23 @@ cdef class PlatformInfo_v2: cdef _get__py_anon_pod1_dtype_offsets(): - cdef cuda_bindings_nvml__anon_pod1 pod - return _numpy.dtype({ - 'names': ['b_is_present', 'percentage', 'inc_threshold', 'dec_threshold'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.bIsPresent)) - (&pod), - (&(pod.percentage)) - (&pod), - (&(pod.incThreshold)) - (&pod), - (&(pod.decThreshold)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_nvml__anon_pod1), - }) + cdef cuda_bindings_nvml__anon_pod1 *pod = _cyb_calloc(1, sizeof(cuda_bindings_nvml__anon_pod1)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_nvml__anon_pod1") + try: + return _numpy.dtype({ + 'names': ['b_is_present', 'percentage', 'inc_threshold', 'dec_threshold'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.bIsPresent)) - (pod), + (&(pod.percentage)) - (pod), + (&(pod.incThreshold)) - (pod), + (&(pod.decThreshold)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_nvml__anon_pod1), + }) + finally: + _cyb_free(pod) _py_anon_pod1_dtype = _get__py_anon_pod1_dtype_offsets() cdef object _py_anon_pod1_dtype_record = _numpy.dtype((_numpy.record, _py_anon_pod1_dtype)) @@ -7561,19 +7676,24 @@ cdef class _py_anon_pod1: cdef _get_vgpu_placement_list_v2_dtype_offsets(): - cdef nvmlVgpuPlacementList_v2_t pod - return _numpy.dtype({ - 'names': ['version', 'placement_size', 'count', 'placement_ids', 'mode'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.intp, _numpy.uint32], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.placementSize)) - (&pod), - (&(pod.count)) - (&pod), - (&(pod.placementIds)) - (&pod), - (&(pod.mode)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuPlacementList_v2_t), - }) + cdef nvmlVgpuPlacementList_v2_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuPlacementList_v2_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuPlacementList_v2_t") + try: + return _numpy.dtype({ + 'names': ['version', 'placement_size', 'count', 'placement_ids', 'mode'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.intp, _numpy.uint32], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.placementSize)) - (pod), + (&(pod.count)) - (pod), + (&(pod.placementIds)) - (pod), + (&(pod.mode)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuPlacementList_v2_t), + }) + finally: + _cyb_free(pod) vgpu_placement_list_v2_dtype = _get_vgpu_placement_list_v2_dtype_offsets() @@ -7734,16 +7854,21 @@ cdef class VgpuPlacementList_v2: cdef _get_vgpu_type_bar1info_v1_dtype_offsets(): - cdef nvmlVgpuTypeBar1Info_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'bar1size'], - 'formats': [_numpy.uint32, _numpy.uint64], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.bar1Size)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuTypeBar1Info_v1_t), - }) + cdef nvmlVgpuTypeBar1Info_v1_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuTypeBar1Info_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuTypeBar1Info_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'bar1size'], + 'formats': [_numpy.uint32, _numpy.uint64], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.bar1Size)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuTypeBar1Info_v1_t), + }) + finally: + _cyb_free(pod) vgpu_type_bar1info_v1_dtype = _get_vgpu_type_bar1info_v1_dtype_offsets() @@ -7871,22 +7996,27 @@ cdef class VgpuTypeBar1Info_v1: cdef _get_vgpu_process_utilization_sample_dtype_offsets(): - cdef nvmlVgpuProcessUtilizationSample_t pod - return _numpy.dtype({ - 'names': ['vgpu_instance', 'pid', 'process_name', 'time_stamp', 'sm_util', 'mem_util', 'enc_util', 'dec_util'], - 'formats': [_numpy.uint32, _numpy.uint32, (_numpy.int8, 64), _numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.vgpuInstance)) - (&pod), - (&(pod.pid)) - (&pod), - (&(pod.processName)) - (&pod), - (&(pod.timeStamp)) - (&pod), - (&(pod.smUtil)) - (&pod), - (&(pod.memUtil)) - (&pod), - (&(pod.encUtil)) - (&pod), - (&(pod.decUtil)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuProcessUtilizationSample_t), - }) + cdef nvmlVgpuProcessUtilizationSample_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuProcessUtilizationSample_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuProcessUtilizationSample_t") + try: + return _numpy.dtype({ + 'names': ['vgpu_instance', 'pid', 'process_name', 'time_stamp', 'sm_util', 'mem_util', 'enc_util', 'dec_util'], + 'formats': [_numpy.uint32, _numpy.uint32, (_numpy.int8, 64), _numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.vgpuInstance)) - (pod), + (&(pod.pid)) - (pod), + (&(pod.processName)) - (pod), + (&(pod.timeStamp)) - (pod), + (&(pod.smUtil)) - (pod), + (&(pod.memUtil)) - (pod), + (&(pod.encUtil)) - (pod), + (&(pod.decUtil)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuProcessUtilizationSample_t), + }) + finally: + _cyb_free(pod) vgpu_process_utilization_sample_dtype = _get_vgpu_process_utilization_sample_dtype_offsets() cdef object vgpu_process_utilization_sample_dtype_record = _numpy.dtype((_numpy.record, vgpu_process_utilization_sample_dtype)) @@ -8121,24 +8251,29 @@ cdef class VgpuProcessUtilizationSample: cdef _get_vgpu_process_utilization_info_v1_dtype_offsets(): - cdef nvmlVgpuProcessUtilizationInfo_v1_t pod - return _numpy.dtype({ - 'names': ['process_name', 'time_stamp', 'vgpu_instance', 'pid', 'sm_util', 'mem_util', 'enc_util', 'dec_util', 'jpg_util', 'ofa_util'], - 'formats': [(_numpy.int8, 64), _numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.processName)) - (&pod), - (&(pod.timeStamp)) - (&pod), - (&(pod.vgpuInstance)) - (&pod), - (&(pod.pid)) - (&pod), - (&(pod.smUtil)) - (&pod), - (&(pod.memUtil)) - (&pod), - (&(pod.encUtil)) - (&pod), - (&(pod.decUtil)) - (&pod), - (&(pod.jpgUtil)) - (&pod), - (&(pod.ofaUtil)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuProcessUtilizationInfo_v1_t), - }) + cdef nvmlVgpuProcessUtilizationInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuProcessUtilizationInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuProcessUtilizationInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['process_name', 'time_stamp', 'vgpu_instance', 'pid', 'sm_util', 'mem_util', 'enc_util', 'dec_util', 'jpg_util', 'ofa_util'], + 'formats': [(_numpy.int8, 64), _numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.processName)) - (pod), + (&(pod.timeStamp)) - (pod), + (&(pod.vgpuInstance)) - (pod), + (&(pod.pid)) - (pod), + (&(pod.smUtil)) - (pod), + (&(pod.memUtil)) - (pod), + (&(pod.encUtil)) - (pod), + (&(pod.decUtil)) - (pod), + (&(pod.jpgUtil)) - (pod), + (&(pod.ofaUtil)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuProcessUtilizationInfo_v1_t), + }) + finally: + _cyb_free(pod) vgpu_process_utilization_info_v1_dtype = _get_vgpu_process_utilization_info_v1_dtype_offsets() cdef object vgpu_process_utilization_info_v1_dtype_record = _numpy.dtype((_numpy.record, vgpu_process_utilization_info_v1_dtype)) @@ -8399,16 +8534,21 @@ cdef class VgpuProcessUtilizationInfo_v1: cdef _get__py_anon_pod2_dtype_offsets(): - cdef cuda_bindings_nvml__anon_pod2 pod - return _numpy.dtype({ - 'names': ['avg_factor', 'timeslice'], - 'formats': [_numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.avgFactor)) - (&pod), - (&(pod.timeslice)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_nvml__anon_pod2), - }) + cdef cuda_bindings_nvml__anon_pod2 *pod = _cyb_calloc(1, sizeof(cuda_bindings_nvml__anon_pod2)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_nvml__anon_pod2") + try: + return _numpy.dtype({ + 'names': ['avg_factor', 'timeslice'], + 'formats': [_numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.avgFactor)) - (pod), + (&(pod.timeslice)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_nvml__anon_pod2), + }) + finally: + _cyb_free(pod) _py_anon_pod2_dtype = _get__py_anon_pod2_dtype_offsets() @@ -8548,15 +8688,20 @@ cdef class _py_anon_pod2: cdef _get__py_anon_pod3_dtype_offsets(): - cdef cuda_bindings_nvml__anon_pod3 pod - return _numpy.dtype({ - 'names': ['timeslice'], - 'formats': [_numpy.uint32], - 'offsets': [ - (&(pod.timeslice)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_nvml__anon_pod3), - }) + cdef cuda_bindings_nvml__anon_pod3 *pod = _cyb_calloc(1, sizeof(cuda_bindings_nvml__anon_pod3)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_nvml__anon_pod3") + try: + return _numpy.dtype({ + 'names': ['timeslice'], + 'formats': [_numpy.uint32], + 'offsets': [ + (&(pod.timeslice)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_nvml__anon_pod3), + }) + finally: + _cyb_free(pod) _py_anon_pod3_dtype = _get__py_anon_pod3_dtype_offsets() @@ -8685,20 +8830,25 @@ cdef class _py_anon_pod3: cdef _get_vgpu_scheduler_log_entry_dtype_offsets(): - cdef nvmlVgpuSchedulerLogEntry_t pod - return _numpy.dtype({ - 'names': ['timestamp', 'time_run_total', 'time_run', 'sw_runlist_id', 'target_time_slice', 'cumulative_preemption_time'], - 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint32, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.timestamp)) - (&pod), - (&(pod.timeRunTotal)) - (&pod), - (&(pod.timeRun)) - (&pod), - (&(pod.swRunlistId)) - (&pod), - (&(pod.targetTimeSlice)) - (&pod), - (&(pod.cumulativePreemptionTime)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuSchedulerLogEntry_t), - }) + cdef nvmlVgpuSchedulerLogEntry_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerLogEntry_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuSchedulerLogEntry_t") + try: + return _numpy.dtype({ + 'names': ['timestamp', 'time_run_total', 'time_run', 'sw_runlist_id', 'target_time_slice', 'cumulative_preemption_time'], + 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint32, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.timestamp)) - (pod), + (&(pod.timeRunTotal)) - (pod), + (&(pod.timeRun)) - (pod), + (&(pod.swRunlistId)) - (pod), + (&(pod.targetTimeSlice)) - (pod), + (&(pod.cumulativePreemptionTime)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuSchedulerLogEntry_t), + }) + finally: + _cyb_free(pod) vgpu_scheduler_log_entry_dtype = _get_vgpu_scheduler_log_entry_dtype_offsets() cdef object vgpu_scheduler_log_entry_dtype_record = _numpy.dtype((_numpy.record, vgpu_scheduler_log_entry_dtype)) @@ -8909,16 +9059,21 @@ cdef class VgpuSchedulerLogEntry: cdef _get__py_anon_pod4_dtype_offsets(): - cdef cuda_bindings_nvml__anon_pod4 pod - return _numpy.dtype({ - 'names': ['avg_factor', 'frequency'], - 'formats': [_numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.avgFactor)) - (&pod), - (&(pod.frequency)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_nvml__anon_pod4), - }) + cdef cuda_bindings_nvml__anon_pod4 *pod = _cyb_calloc(1, sizeof(cuda_bindings_nvml__anon_pod4)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_nvml__anon_pod4") + try: + return _numpy.dtype({ + 'names': ['avg_factor', 'frequency'], + 'formats': [_numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.avgFactor)) - (pod), + (&(pod.frequency)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_nvml__anon_pod4), + }) + finally: + _cyb_free(pod) _py_anon_pod4_dtype = _get__py_anon_pod4_dtype_offsets() @@ -9058,15 +9213,20 @@ cdef class _py_anon_pod4: cdef _get__py_anon_pod5_dtype_offsets(): - cdef cuda_bindings_nvml__anon_pod5 pod - return _numpy.dtype({ - 'names': ['timeslice'], - 'formats': [_numpy.uint32], - 'offsets': [ - (&(pod.timeslice)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_nvml__anon_pod5), - }) + cdef cuda_bindings_nvml__anon_pod5 *pod = _cyb_calloc(1, sizeof(cuda_bindings_nvml__anon_pod5)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_nvml__anon_pod5") + try: + return _numpy.dtype({ + 'names': ['timeslice'], + 'formats': [_numpy.uint32], + 'offsets': [ + (&(pod.timeslice)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_nvml__anon_pod5), + }) + finally: + _cyb_free(pod) _py_anon_pod5_dtype = _get__py_anon_pod5_dtype_offsets() @@ -9195,22 +9355,27 @@ cdef class _py_anon_pod5: cdef _get_vgpu_scheduler_capabilities_dtype_offsets(): - cdef nvmlVgpuSchedulerCapabilities_t pod - return _numpy.dtype({ - 'names': ['supported_schedulers', 'max_timeslice', 'min_timeslice', 'is_arr_mode_supported', 'max_frequency_for_arr', 'min_frequency_for_arr', 'max_avg_factor_for_arr', 'min_avg_factor_for_arr'], - 'formats': [(_numpy.uint32, 3), _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.supportedSchedulers)) - (&pod), - (&(pod.maxTimeslice)) - (&pod), - (&(pod.minTimeslice)) - (&pod), - (&(pod.isArrModeSupported)) - (&pod), - (&(pod.maxFrequencyForARR)) - (&pod), - (&(pod.minFrequencyForARR)) - (&pod), - (&(pod.maxAvgFactorForARR)) - (&pod), - (&(pod.minAvgFactorForARR)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuSchedulerCapabilities_t), - }) + cdef nvmlVgpuSchedulerCapabilities_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerCapabilities_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuSchedulerCapabilities_t") + try: + return _numpy.dtype({ + 'names': ['supported_schedulers', 'max_timeslice', 'min_timeslice', 'is_arr_mode_supported', 'max_frequency_for_arr', 'min_frequency_for_arr', 'max_avg_factor_for_arr', 'min_avg_factor_for_arr'], + 'formats': [(_numpy.uint32, 3), _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.supportedSchedulers)) - (pod), + (&(pod.maxTimeslice)) - (pod), + (&(pod.minTimeslice)) - (pod), + (&(pod.isArrModeSupported)) - (pod), + (&(pod.maxFrequencyForARR)) - (pod), + (&(pod.minFrequencyForARR)) - (pod), + (&(pod.maxAvgFactorForARR)) - (pod), + (&(pod.minAvgFactorForARR)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuSchedulerCapabilities_t), + }) + finally: + _cyb_free(pod) vgpu_scheduler_capabilities_dtype = _get_vgpu_scheduler_capabilities_dtype_offsets() @@ -9410,21 +9575,26 @@ cdef class VgpuSchedulerCapabilities: cdef _get_vgpu_license_expiry_dtype_offsets(): - cdef nvmlVgpuLicenseExpiry_t pod - return _numpy.dtype({ - 'names': ['year', 'month', 'day', 'hour', 'min_', 'sec', 'status'], - 'formats': [_numpy.uint32, _numpy.uint16, _numpy.uint16, _numpy.uint16, _numpy.uint16, _numpy.uint16, _numpy.uint8], - 'offsets': [ - (&(pod.year)) - (&pod), - (&(pod.month)) - (&pod), - (&(pod.day)) - (&pod), - (&(pod.hour)) - (&pod), - (&(pod.min)) - (&pod), - (&(pod.sec)) - (&pod), - (&(pod.status)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuLicenseExpiry_t), - }) + cdef nvmlVgpuLicenseExpiry_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuLicenseExpiry_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuLicenseExpiry_t") + try: + return _numpy.dtype({ + 'names': ['year', 'month', 'day', 'hour', 'min_', 'sec', 'status'], + 'formats': [_numpy.uint32, _numpy.uint16, _numpy.uint16, _numpy.uint16, _numpy.uint16, _numpy.uint16, _numpy.uint8], + 'offsets': [ + (&(pod.year)) - (pod), + (&(pod.month)) - (pod), + (&(pod.day)) - (pod), + (&(pod.hour)) - (pod), + (&(pod.min)) - (pod), + (&(pod.sec)) - (pod), + (&(pod.status)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuLicenseExpiry_t), + }) + finally: + _cyb_free(pod) vgpu_license_expiry_dtype = _get_vgpu_license_expiry_dtype_offsets() @@ -9619,21 +9789,26 @@ cdef class VgpuLicenseExpiry: cdef _get_grid_license_expiry_dtype_offsets(): - cdef nvmlGridLicenseExpiry_t pod - return _numpy.dtype({ - 'names': ['year', 'month', 'day', 'hour', 'min_', 'sec', 'status'], - 'formats': [_numpy.uint32, _numpy.uint16, _numpy.uint16, _numpy.uint16, _numpy.uint16, _numpy.uint16, _numpy.uint8], - 'offsets': [ - (&(pod.year)) - (&pod), - (&(pod.month)) - (&pod), - (&(pod.day)) - (&pod), - (&(pod.hour)) - (&pod), - (&(pod.min)) - (&pod), - (&(pod.sec)) - (&pod), - (&(pod.status)) - (&pod), - ], - 'itemsize': sizeof(nvmlGridLicenseExpiry_t), - }) + cdef nvmlGridLicenseExpiry_t *pod = _cyb_calloc(1, sizeof(nvmlGridLicenseExpiry_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGridLicenseExpiry_t") + try: + return _numpy.dtype({ + 'names': ['year', 'month', 'day', 'hour', 'min_', 'sec', 'status'], + 'formats': [_numpy.uint32, _numpy.uint16, _numpy.uint16, _numpy.uint16, _numpy.uint16, _numpy.uint16, _numpy.uint8], + 'offsets': [ + (&(pod.year)) - (pod), + (&(pod.month)) - (pod), + (&(pod.day)) - (pod), + (&(pod.hour)) - (pod), + (&(pod.min)) - (pod), + (&(pod.sec)) - (pod), + (&(pod.status)) - (pod), + ], + 'itemsize': sizeof(nvmlGridLicenseExpiry_t), + }) + finally: + _cyb_free(pod) grid_license_expiry_dtype = _get_grid_license_expiry_dtype_offsets() @@ -9828,17 +10003,22 @@ cdef class GridLicenseExpiry: cdef _get_vgpu_type_id_info_v1_dtype_offsets(): - cdef nvmlVgpuTypeIdInfo_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'vgpu_count', 'vgpu_type_ids'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.intp], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.vgpuCount)) - (&pod), - (&(pod.vgpuTypeIds)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuTypeIdInfo_v1_t), - }) + cdef nvmlVgpuTypeIdInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuTypeIdInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuTypeIdInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'vgpu_count', 'vgpu_type_ids'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.intp], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.vgpuCount)) - (pod), + (&(pod.vgpuTypeIds)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuTypeIdInfo_v1_t), + }) + finally: + _cyb_free(pod) vgpu_type_id_info_v1_dtype = _get_vgpu_type_id_info_v1_dtype_offsets() @@ -9977,17 +10157,22 @@ cdef class VgpuTypeIdInfo_v1: cdef _get_active_vgpu_instance_info_v1_dtype_offsets(): - cdef nvmlActiveVgpuInstanceInfo_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'vgpu_count', 'vgpu_instances'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.intp], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.vgpuCount)) - (&pod), - (&(pod.vgpuInstances)) - (&pod), - ], - 'itemsize': sizeof(nvmlActiveVgpuInstanceInfo_v1_t), - }) + cdef nvmlActiveVgpuInstanceInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlActiveVgpuInstanceInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlActiveVgpuInstanceInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'vgpu_count', 'vgpu_instances'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.intp], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.vgpuCount)) - (pod), + (&(pod.vgpuInstances)) - (pod), + ], + 'itemsize': sizeof(nvmlActiveVgpuInstanceInfo_v1_t), + }) + finally: + _cyb_free(pod) active_vgpu_instance_info_v1_dtype = _get_active_vgpu_instance_info_v1_dtype_offsets() @@ -10126,19 +10311,24 @@ cdef class ActiveVgpuInstanceInfo_v1: cdef _get_vgpu_creatable_placement_info_v1_dtype_offsets(): - cdef nvmlVgpuCreatablePlacementInfo_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'vgpu_type_id', 'count', 'placement_ids', 'placement_size'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.intp, _numpy.uint32], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.vgpuTypeId)) - (&pod), - (&(pod.count)) - (&pod), - (&(pod.placementIds)) - (&pod), - (&(pod.placementSize)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuCreatablePlacementInfo_v1_t), - }) + cdef nvmlVgpuCreatablePlacementInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuCreatablePlacementInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuCreatablePlacementInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'vgpu_type_id', 'count', 'placement_ids', 'placement_size'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.intp, _numpy.uint32], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.vgpuTypeId)) - (pod), + (&(pod.count)) - (pod), + (&(pod.placementIds)) - (pod), + (&(pod.placementSize)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuCreatablePlacementInfo_v1_t), + }) + finally: + _cyb_free(pod) vgpu_creatable_placement_info_v1_dtype = _get_vgpu_creatable_placement_info_v1_dtype_offsets() @@ -10299,16 +10489,21 @@ cdef class VgpuCreatablePlacementInfo_v1: cdef _get_hwbc_entry_dtype_offsets(): - cdef nvmlHwbcEntry_t pod - return _numpy.dtype({ - 'names': ['hwbc_id', 'firmware_version'], - 'formats': [_numpy.uint32, (_numpy.int8, 32)], - 'offsets': [ - (&(pod.hwbcId)) - (&pod), - (&(pod.firmwareVersion)) - (&pod), - ], - 'itemsize': sizeof(nvmlHwbcEntry_t), - }) + cdef nvmlHwbcEntry_t *pod = _cyb_calloc(1, sizeof(nvmlHwbcEntry_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlHwbcEntry_t") + try: + return _numpy.dtype({ + 'names': ['hwbc_id', 'firmware_version'], + 'formats': [_numpy.uint32, (_numpy.int8, 32)], + 'offsets': [ + (&(pod.hwbcId)) - (pod), + (&(pod.firmwareVersion)) - (pod), + ], + 'itemsize': sizeof(nvmlHwbcEntry_t), + }) + finally: + _cyb_free(pod) hwbc_entry_dtype = _get_hwbc_entry_dtype_offsets() cdef object hwbc_entry_dtype_record = _numpy.dtype((_numpy.record, hwbc_entry_dtype)) @@ -10465,16 +10660,21 @@ cdef class HwbcEntry: cdef _get_led_state_dtype_offsets(): - cdef nvmlLedState_t pod - return _numpy.dtype({ - 'names': ['cause', 'color'], - 'formats': [(_numpy.int8, 256), _numpy.int32], - 'offsets': [ - (&(pod.cause)) - (&pod), - (&(pod.color)) - (&pod), - ], - 'itemsize': sizeof(nvmlLedState_t), - }) + cdef nvmlLedState_t *pod = _cyb_calloc(1, sizeof(nvmlLedState_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlLedState_t") + try: + return _numpy.dtype({ + 'names': ['cause', 'color'], + 'formats': [(_numpy.int8, 256), _numpy.int32], + 'offsets': [ + (&(pod.cause)) - (pod), + (&(pod.color)) - (pod), + ], + 'itemsize': sizeof(nvmlLedState_t), + }) + finally: + _cyb_free(pod) led_state_dtype = _get_led_state_dtype_offsets() @@ -10606,18 +10806,23 @@ cdef class LedState: cdef _get_unit_info_dtype_offsets(): - cdef nvmlUnitInfo_t pod - return _numpy.dtype({ - 'names': ['name', 'id', 'serial', 'firmware_version'], - 'formats': [(_numpy.int8, 96), (_numpy.int8, 96), (_numpy.int8, 96), (_numpy.int8, 96)], - 'offsets': [ - (&(pod.name)) - (&pod), - (&(pod.id)) - (&pod), - (&(pod.serial)) - (&pod), - (&(pod.firmwareVersion)) - (&pod), - ], - 'itemsize': sizeof(nvmlUnitInfo_t), - }) + cdef nvmlUnitInfo_t *pod = _cyb_calloc(1, sizeof(nvmlUnitInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlUnitInfo_t") + try: + return _numpy.dtype({ + 'names': ['name', 'id', 'serial', 'firmware_version'], + 'formats': [(_numpy.int8, 96), (_numpy.int8, 96), (_numpy.int8, 96), (_numpy.int8, 96)], + 'offsets': [ + (&(pod.name)) - (pod), + (&(pod.id)) - (pod), + (&(pod.serial)) - (pod), + (&(pod.firmwareVersion)) - (pod), + ], + 'itemsize': sizeof(nvmlUnitInfo_t), + }) + finally: + _cyb_free(pod) unit_info_dtype = _get_unit_info_dtype_offsets() @@ -10783,18 +10988,23 @@ cdef class UnitInfo: cdef _get_psu_info_dtype_offsets(): - cdef nvmlPSUInfo_t pod - return _numpy.dtype({ - 'names': ['state', 'current', 'voltage', 'power'], - 'formats': [(_numpy.int8, 256), _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.state)) - (&pod), - (&(pod.current)) - (&pod), - (&(pod.voltage)) - (&pod), - (&(pod.power)) - (&pod), - ], - 'itemsize': sizeof(nvmlPSUInfo_t), - }) + cdef nvmlPSUInfo_t *pod = _cyb_calloc(1, sizeof(nvmlPSUInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPSUInfo_t") + try: + return _numpy.dtype({ + 'names': ['state', 'current', 'voltage', 'power'], + 'formats': [(_numpy.int8, 256), _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.state)) - (pod), + (&(pod.current)) - (pod), + (&(pod.voltage)) - (pod), + (&(pod.power)) - (pod), + ], + 'itemsize': sizeof(nvmlPSUInfo_t), + }) + finally: + _cyb_free(pod) psu_info_dtype = _get_psu_info_dtype_offsets() @@ -10948,16 +11158,21 @@ cdef class PSUInfo: cdef _get_unit_fan_info_dtype_offsets(): - cdef nvmlUnitFanInfo_t pod - return _numpy.dtype({ - 'names': ['speed', 'state'], - 'formats': [_numpy.uint32, _numpy.int32], - 'offsets': [ - (&(pod.speed)) - (&pod), - (&(pod.state)) - (&pod), - ], - 'itemsize': sizeof(nvmlUnitFanInfo_t), - }) + cdef nvmlUnitFanInfo_t *pod = _cyb_calloc(1, sizeof(nvmlUnitFanInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlUnitFanInfo_t") + try: + return _numpy.dtype({ + 'names': ['speed', 'state'], + 'formats': [_numpy.uint32, _numpy.int32], + 'offsets': [ + (&(pod.speed)) - (pod), + (&(pod.state)) - (pod), + ], + 'itemsize': sizeof(nvmlUnitFanInfo_t), + }) + finally: + _cyb_free(pod) unit_fan_info_dtype = _get_unit_fan_info_dtype_offsets() cdef object unit_fan_info_dtype_record = _numpy.dtype((_numpy.record, unit_fan_info_dtype)) @@ -11116,19 +11331,24 @@ cdef class UnitFanInfo: cdef _get_event_data_dtype_offsets(): - cdef nvmlEventData_t pod - return _numpy.dtype({ - 'names': ['device_', 'event_type', 'event_data', 'gpu_instance_id', 'compute_instance_id'], - 'formats': [_numpy.intp, _numpy.uint64, _numpy.uint64, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.device)) - (&pod), - (&(pod.eventType)) - (&pod), - (&(pod.eventData)) - (&pod), - (&(pod.gpuInstanceId)) - (&pod), - (&(pod.computeInstanceId)) - (&pod), - ], - 'itemsize': sizeof(nvmlEventData_t), - }) + cdef nvmlEventData_t *pod = _cyb_calloc(1, sizeof(nvmlEventData_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlEventData_t") + try: + return _numpy.dtype({ + 'names': ['device_', 'event_type', 'event_data', 'gpu_instance_id', 'compute_instance_id'], + 'formats': [_numpy.intp, _numpy.uint64, _numpy.uint64, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.device)) - (pod), + (&(pod.eventType)) - (pod), + (&(pod.eventData)) - (pod), + (&(pod.gpuInstanceId)) - (pod), + (&(pod.computeInstanceId)) - (pod), + ], + 'itemsize': sizeof(nvmlEventData_t), + }) + finally: + _cyb_free(pod) event_data_dtype = _get_event_data_dtype_offsets() @@ -11289,16 +11509,21 @@ cdef class EventData: cdef _get_system_event_data_v1_dtype_offsets(): - cdef nvmlSystemEventData_v1_t pod - return _numpy.dtype({ - 'names': ['event_type', 'gpu_id'], - 'formats': [_numpy.uint64, _numpy.uint32], - 'offsets': [ - (&(pod.eventType)) - (&pod), - (&(pod.gpuId)) - (&pod), - ], - 'itemsize': sizeof(nvmlSystemEventData_v1_t), - }) + cdef nvmlSystemEventData_v1_t *pod = _cyb_calloc(1, sizeof(nvmlSystemEventData_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlSystemEventData_v1_t") + try: + return _numpy.dtype({ + 'names': ['event_type', 'gpu_id'], + 'formats': [_numpy.uint64, _numpy.uint32], + 'offsets': [ + (&(pod.eventType)) - (pod), + (&(pod.gpuId)) - (pod), + ], + 'itemsize': sizeof(nvmlSystemEventData_v1_t), + }) + finally: + _cyb_free(pod) system_event_data_v1_dtype = _get_system_event_data_v1_dtype_offsets() cdef object system_event_data_v1_dtype_record = _numpy.dtype((_numpy.record, system_event_data_v1_dtype)) @@ -11457,21 +11682,26 @@ cdef class SystemEventData_v1: cdef _get_accounting_stats_dtype_offsets(): - cdef nvmlAccountingStats_t pod - return _numpy.dtype({ - 'names': ['gpu_utilization', 'memory_utilization', 'max_memory_usage', 'time', 'start_time', 'is_running', 'reserved'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint32, (_numpy.uint32, 5)], - 'offsets': [ - (&(pod.gpuUtilization)) - (&pod), - (&(pod.memoryUtilization)) - (&pod), - (&(pod.maxMemoryUsage)) - (&pod), - (&(pod.time)) - (&pod), - (&(pod.startTime)) - (&pod), - (&(pod.isRunning)) - (&pod), - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(nvmlAccountingStats_t), - }) + cdef nvmlAccountingStats_t *pod = _cyb_calloc(1, sizeof(nvmlAccountingStats_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlAccountingStats_t") + try: + return _numpy.dtype({ + 'names': ['gpu_utilization', 'memory_utilization', 'max_memory_usage', 'time', 'start_time', 'is_running', 'reserved'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint32, (_numpy.uint32, 5)], + 'offsets': [ + (&(pod.gpuUtilization)) - (pod), + (&(pod.memoryUtilization)) - (pod), + (&(pod.maxMemoryUsage)) - (pod), + (&(pod.time)) - (pod), + (&(pod.startTime)) - (pod), + (&(pod.isRunning)) - (pod), + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(nvmlAccountingStats_t), + }) + finally: + _cyb_free(pod) accounting_stats_dtype = _get_accounting_stats_dtype_offsets() @@ -11643,22 +11873,27 @@ cdef class AccountingStats: cdef _get_encoder_session_info_dtype_offsets(): - cdef nvmlEncoderSessionInfo_t pod - return _numpy.dtype({ - 'names': ['session_id', 'pid', 'vgpu_instance', 'codec_type', 'h_resolution', 'v_resolution', 'average_fps', 'average_latency'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.int32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.sessionId)) - (&pod), - (&(pod.pid)) - (&pod), - (&(pod.vgpuInstance)) - (&pod), - (&(pod.codecType)) - (&pod), - (&(pod.hResolution)) - (&pod), - (&(pod.vResolution)) - (&pod), - (&(pod.averageFps)) - (&pod), - (&(pod.averageLatency)) - (&pod), - ], - 'itemsize': sizeof(nvmlEncoderSessionInfo_t), - }) + cdef nvmlEncoderSessionInfo_t *pod = _cyb_calloc(1, sizeof(nvmlEncoderSessionInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlEncoderSessionInfo_t") + try: + return _numpy.dtype({ + 'names': ['session_id', 'pid', 'vgpu_instance', 'codec_type', 'h_resolution', 'v_resolution', 'average_fps', 'average_latency'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.int32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.sessionId)) - (pod), + (&(pod.pid)) - (pod), + (&(pod.vgpuInstance)) - (pod), + (&(pod.codecType)) - (pod), + (&(pod.hResolution)) - (pod), + (&(pod.vResolution)) - (pod), + (&(pod.averageFps)) - (pod), + (&(pod.averageLatency)) - (pod), + ], + 'itemsize': sizeof(nvmlEncoderSessionInfo_t), + }) + finally: + _cyb_free(pod) encoder_session_info_dtype = _get_encoder_session_info_dtype_offsets() cdef object encoder_session_info_dtype_record = _numpy.dtype((_numpy.record, encoder_session_info_dtype)) @@ -11895,17 +12130,22 @@ cdef class EncoderSessionInfo: cdef _get_fbc_stats_dtype_offsets(): - cdef nvmlFBCStats_t pod - return _numpy.dtype({ - 'names': ['sessions_count', 'average_fps', 'average_latency'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.sessionsCount)) - (&pod), - (&(pod.averageFPS)) - (&pod), - (&(pod.averageLatency)) - (&pod), - ], - 'itemsize': sizeof(nvmlFBCStats_t), - }) + cdef nvmlFBCStats_t *pod = _cyb_calloc(1, sizeof(nvmlFBCStats_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlFBCStats_t") + try: + return _numpy.dtype({ + 'names': ['sessions_count', 'average_fps', 'average_latency'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.sessionsCount)) - (pod), + (&(pod.averageFPS)) - (pod), + (&(pod.averageLatency)) - (pod), + ], + 'itemsize': sizeof(nvmlFBCStats_t), + }) + finally: + _cyb_free(pod) fbc_stats_dtype = _get_fbc_stats_dtype_offsets() @@ -12044,26 +12284,31 @@ cdef class FBCStats: cdef _get_fbc_session_info_dtype_offsets(): - cdef nvmlFBCSessionInfo_t pod - return _numpy.dtype({ - 'names': ['session_id', 'pid', 'vgpu_instance', 'display_ordinal', 'session_type', 'session_flags', 'h_max_resolution', 'v_max_resolution', 'h_resolution', 'v_resolution', 'average_fps', 'average_latency'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.int32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.sessionId)) - (&pod), - (&(pod.pid)) - (&pod), - (&(pod.vgpuInstance)) - (&pod), - (&(pod.displayOrdinal)) - (&pod), - (&(pod.sessionType)) - (&pod), - (&(pod.sessionFlags)) - (&pod), - (&(pod.hMaxResolution)) - (&pod), - (&(pod.vMaxResolution)) - (&pod), - (&(pod.hResolution)) - (&pod), - (&(pod.vResolution)) - (&pod), - (&(pod.averageFPS)) - (&pod), - (&(pod.averageLatency)) - (&pod), - ], - 'itemsize': sizeof(nvmlFBCSessionInfo_t), - }) + cdef nvmlFBCSessionInfo_t *pod = _cyb_calloc(1, sizeof(nvmlFBCSessionInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlFBCSessionInfo_t") + try: + return _numpy.dtype({ + 'names': ['session_id', 'pid', 'vgpu_instance', 'display_ordinal', 'session_type', 'session_flags', 'h_max_resolution', 'v_max_resolution', 'h_resolution', 'v_resolution', 'average_fps', 'average_latency'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.int32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.sessionId)) - (pod), + (&(pod.pid)) - (pod), + (&(pod.vgpuInstance)) - (pod), + (&(pod.displayOrdinal)) - (pod), + (&(pod.sessionType)) - (pod), + (&(pod.sessionFlags)) - (pod), + (&(pod.hMaxResolution)) - (pod), + (&(pod.vMaxResolution)) - (pod), + (&(pod.hResolution)) - (pod), + (&(pod.vResolution)) - (pod), + (&(pod.averageFPS)) - (pod), + (&(pod.averageLatency)) - (pod), + ], + 'itemsize': sizeof(nvmlFBCSessionInfo_t), + }) + finally: + _cyb_free(pod) fbc_session_info_dtype = _get_fbc_session_info_dtype_offsets() cdef object fbc_session_info_dtype_record = _numpy.dtype((_numpy.record, fbc_session_info_dtype)) @@ -12352,16 +12597,21 @@ cdef class FBCSessionInfo: cdef _get_conf_compute_system_caps_dtype_offsets(): - cdef nvmlConfComputeSystemCaps_t pod - return _numpy.dtype({ - 'names': ['cpu_caps', 'gpus_caps'], - 'formats': [_numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.cpuCaps)) - (&pod), - (&(pod.gpusCaps)) - (&pod), - ], - 'itemsize': sizeof(nvmlConfComputeSystemCaps_t), - }) + cdef nvmlConfComputeSystemCaps_t *pod = _cyb_calloc(1, sizeof(nvmlConfComputeSystemCaps_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlConfComputeSystemCaps_t") + try: + return _numpy.dtype({ + 'names': ['cpu_caps', 'gpus_caps'], + 'formats': [_numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.cpuCaps)) - (pod), + (&(pod.gpusCaps)) - (pod), + ], + 'itemsize': sizeof(nvmlConfComputeSystemCaps_t), + }) + finally: + _cyb_free(pod) conf_compute_system_caps_dtype = _get_conf_compute_system_caps_dtype_offsets() @@ -12489,17 +12739,22 @@ cdef class ConfComputeSystemCaps: cdef _get_conf_compute_system_state_dtype_offsets(): - cdef nvmlConfComputeSystemState_t pod - return _numpy.dtype({ - 'names': ['environment', 'cc_feature', 'dev_tools_mode'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.environment)) - (&pod), - (&(pod.ccFeature)) - (&pod), - (&(pod.devToolsMode)) - (&pod), - ], - 'itemsize': sizeof(nvmlConfComputeSystemState_t), - }) + cdef nvmlConfComputeSystemState_t *pod = _cyb_calloc(1, sizeof(nvmlConfComputeSystemState_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlConfComputeSystemState_t") + try: + return _numpy.dtype({ + 'names': ['environment', 'cc_feature', 'dev_tools_mode'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.environment)) - (pod), + (&(pod.ccFeature)) - (pod), + (&(pod.devToolsMode)) - (pod), + ], + 'itemsize': sizeof(nvmlConfComputeSystemState_t), + }) + finally: + _cyb_free(pod) conf_compute_system_state_dtype = _get_conf_compute_system_state_dtype_offsets() @@ -12638,19 +12893,24 @@ cdef class ConfComputeSystemState: cdef _get_system_conf_compute_settings_v1_dtype_offsets(): - cdef nvmlSystemConfComputeSettings_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'environment', 'cc_feature', 'dev_tools_mode', 'multi_gpu_mode'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.environment)) - (&pod), - (&(pod.ccFeature)) - (&pod), - (&(pod.devToolsMode)) - (&pod), - (&(pod.multiGpuMode)) - (&pod), - ], - 'itemsize': sizeof(nvmlSystemConfComputeSettings_v1_t), - }) + cdef nvmlSystemConfComputeSettings_v1_t *pod = _cyb_calloc(1, sizeof(nvmlSystemConfComputeSettings_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlSystemConfComputeSettings_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'environment', 'cc_feature', 'dev_tools_mode', 'multi_gpu_mode'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.environment)) - (pod), + (&(pod.ccFeature)) - (pod), + (&(pod.devToolsMode)) - (pod), + (&(pod.multiGpuMode)) - (pod), + ], + 'itemsize': sizeof(nvmlSystemConfComputeSettings_v1_t), + }) + finally: + _cyb_free(pod) system_conf_compute_settings_v1_dtype = _get_system_conf_compute_settings_v1_dtype_offsets() @@ -12811,16 +13071,21 @@ cdef class SystemConfComputeSettings_v1: cdef _get_conf_compute_mem_size_info_dtype_offsets(): - cdef nvmlConfComputeMemSizeInfo_t pod - return _numpy.dtype({ - 'names': ['protected_mem_size_kib', 'unprotected_mem_size_kib'], - 'formats': [_numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.protectedMemSizeKib)) - (&pod), - (&(pod.unprotectedMemSizeKib)) - (&pod), - ], - 'itemsize': sizeof(nvmlConfComputeMemSizeInfo_t), - }) + cdef nvmlConfComputeMemSizeInfo_t *pod = _cyb_calloc(1, sizeof(nvmlConfComputeMemSizeInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlConfComputeMemSizeInfo_t") + try: + return _numpy.dtype({ + 'names': ['protected_mem_size_kib', 'unprotected_mem_size_kib'], + 'formats': [_numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.protectedMemSizeKib)) - (pod), + (&(pod.unprotectedMemSizeKib)) - (pod), + ], + 'itemsize': sizeof(nvmlConfComputeMemSizeInfo_t), + }) + finally: + _cyb_free(pod) conf_compute_mem_size_info_dtype = _get_conf_compute_mem_size_info_dtype_offsets() @@ -12948,18 +13213,23 @@ cdef class ConfComputeMemSizeInfo: cdef _get_conf_compute_gpu_certificate_dtype_offsets(): - cdef nvmlConfComputeGpuCertificate_t pod - return _numpy.dtype({ - 'names': ['cert_chain_size', 'attestation_cert_chain_size', 'cert_chain', 'attestation_cert_chain'], - 'formats': [_numpy.uint32, _numpy.uint32, (_numpy.uint8, 4096), (_numpy.uint8, 5120)], - 'offsets': [ - (&(pod.certChainSize)) - (&pod), - (&(pod.attestationCertChainSize)) - (&pod), - (&(pod.certChain)) - (&pod), - (&(pod.attestationCertChain)) - (&pod), - ], - 'itemsize': sizeof(nvmlConfComputeGpuCertificate_t), - }) + cdef nvmlConfComputeGpuCertificate_t *pod = _cyb_calloc(1, sizeof(nvmlConfComputeGpuCertificate_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlConfComputeGpuCertificate_t") + try: + return _numpy.dtype({ + 'names': ['cert_chain_size', 'attestation_cert_chain_size', 'cert_chain', 'attestation_cert_chain'], + 'formats': [_numpy.uint32, _numpy.uint32, (_numpy.uint8, 4096), (_numpy.uint8, 5120)], + 'offsets': [ + (&(pod.certChainSize)) - (pod), + (&(pod.attestationCertChainSize)) - (pod), + (&(pod.certChain)) - (pod), + (&(pod.attestationCertChain)) - (pod), + ], + 'itemsize': sizeof(nvmlConfComputeGpuCertificate_t), + }) + finally: + _cyb_free(pod) conf_compute_gpu_certificate_dtype = _get_conf_compute_gpu_certificate_dtype_offsets() @@ -13109,20 +13379,25 @@ cdef class ConfComputeGpuCertificate: cdef _get_conf_compute_gpu_attestation_report_dtype_offsets(): - cdef nvmlConfComputeGpuAttestationReport_t pod - return _numpy.dtype({ - 'names': ['is_cec_attestation_report_present', 'attestation_report_size', 'cec_attestation_report_size', 'nonce', 'attestation_report', 'cec_attestation_report'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.uint8, 32), (_numpy.uint8, 8192), (_numpy.uint8, 4096)], - 'offsets': [ - (&(pod.isCecAttestationReportPresent)) - (&pod), - (&(pod.attestationReportSize)) - (&pod), - (&(pod.cecAttestationReportSize)) - (&pod), - (&(pod.nonce)) - (&pod), - (&(pod.attestationReport)) - (&pod), - (&(pod.cecAttestationReport)) - (&pod), - ], - 'itemsize': sizeof(nvmlConfComputeGpuAttestationReport_t), - }) + cdef nvmlConfComputeGpuAttestationReport_t *pod = _cyb_calloc(1, sizeof(nvmlConfComputeGpuAttestationReport_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlConfComputeGpuAttestationReport_t") + try: + return _numpy.dtype({ + 'names': ['is_cec_attestation_report_present', 'attestation_report_size', 'cec_attestation_report_size', 'nonce', 'attestation_report', 'cec_attestation_report'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.uint8, 32), (_numpy.uint8, 8192), (_numpy.uint8, 4096)], + 'offsets': [ + (&(pod.isCecAttestationReportPresent)) - (pod), + (&(pod.attestationReportSize)) - (pod), + (&(pod.cecAttestationReportSize)) - (pod), + (&(pod.nonce)) - (pod), + (&(pod.attestationReport)) - (pod), + (&(pod.cecAttestationReport)) - (pod), + ], + 'itemsize': sizeof(nvmlConfComputeGpuAttestationReport_t), + }) + finally: + _cyb_free(pod) conf_compute_gpu_attestation_report_dtype = _get_conf_compute_gpu_attestation_report_dtype_offsets() @@ -13300,20 +13575,25 @@ cdef class ConfComputeGpuAttestationReport: cdef _get_gpu_fabric_info_v2_dtype_offsets(): - cdef nvmlGpuFabricInfo_v2_t pod - return _numpy.dtype({ - 'names': ['version', 'cluster_uuid', 'status', 'clique_id', 'state', 'health_mask'], - 'formats': [_numpy.uint32, (_numpy.uint8, 16), _numpy.int32, _numpy.uint32, _numpy.uint8, _numpy.uint32], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.clusterUuid)) - (&pod), - (&(pod.status)) - (&pod), - (&(pod.cliqueId)) - (&pod), - (&(pod.state)) - (&pod), - (&(pod.healthMask)) - (&pod), - ], - 'itemsize': sizeof(nvmlGpuFabricInfo_v2_t), - }) + cdef nvmlGpuFabricInfo_v2_t *pod = _cyb_calloc(1, sizeof(nvmlGpuFabricInfo_v2_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGpuFabricInfo_v2_t") + try: + return _numpy.dtype({ + 'names': ['version', 'cluster_uuid', 'status', 'clique_id', 'state', 'health_mask'], + 'formats': [_numpy.uint32, (_numpy.uint8, 16), _numpy.int32, _numpy.uint32, _numpy.uint8, _numpy.uint32], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.clusterUuid)) - (pod), + (&(pod.status)) - (pod), + (&(pod.cliqueId)) - (pod), + (&(pod.state)) - (pod), + (&(pod.healthMask)) - (pod), + ], + 'itemsize': sizeof(nvmlGpuFabricInfo_v2_t), + }) + finally: + _cyb_free(pod) gpu_fabric_info_v2_dtype = _get_gpu_fabric_info_v2_dtype_offsets() @@ -13491,17 +13771,22 @@ cdef class GpuFabricInfo_v2: cdef _get_nvlink_supported_bw_modes_v1_dtype_offsets(): - cdef nvmlNvlinkSupportedBwModes_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'bw_modes', 'total_bw_modes'], - 'formats': [_numpy.uint32, (_numpy.uint8, 23), _numpy.uint8], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.bwModes)) - (&pod), - (&(pod.totalBwModes)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvlinkSupportedBwModes_v1_t), - }) + cdef nvmlNvlinkSupportedBwModes_v1_t *pod = _cyb_calloc(1, sizeof(nvmlNvlinkSupportedBwModes_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvlinkSupportedBwModes_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'bw_modes', 'total_bw_modes'], + 'formats': [_numpy.uint32, (_numpy.uint8, 23), _numpy.uint8], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.bwModes)) - (pod), + (&(pod.totalBwModes)) - (pod), + ], + 'itemsize': sizeof(nvmlNvlinkSupportedBwModes_v1_t), + }) + finally: + _cyb_free(pod) nvlink_supported_bw_modes_v1_dtype = _get_nvlink_supported_bw_modes_v1_dtype_offsets() @@ -13640,17 +13925,22 @@ cdef class NvlinkSupportedBwModes_v1: cdef _get_nvlink_get_bw_mode_v1_dtype_offsets(): - cdef nvmlNvlinkGetBwMode_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'b_is_best', 'bw_mode'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint8], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.bIsBest)) - (&pod), - (&(pod.bwMode)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvlinkGetBwMode_v1_t), - }) + cdef nvmlNvlinkGetBwMode_v1_t *pod = _cyb_calloc(1, sizeof(nvmlNvlinkGetBwMode_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvlinkGetBwMode_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'b_is_best', 'bw_mode'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint8], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.bIsBest)) - (pod), + (&(pod.bwMode)) - (pod), + ], + 'itemsize': sizeof(nvmlNvlinkGetBwMode_v1_t), + }) + finally: + _cyb_free(pod) nvlink_get_bw_mode_v1_dtype = _get_nvlink_get_bw_mode_v1_dtype_offsets() @@ -13789,17 +14079,22 @@ cdef class NvlinkGetBwMode_v1: cdef _get_nvlink_set_bw_mode_v1_dtype_offsets(): - cdef nvmlNvlinkSetBwMode_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'b_set_best', 'bw_mode'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint8], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.bSetBest)) - (&pod), - (&(pod.bwMode)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvlinkSetBwMode_v1_t), - }) + cdef nvmlNvlinkSetBwMode_v1_t *pod = _cyb_calloc(1, sizeof(nvmlNvlinkSetBwMode_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvlinkSetBwMode_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'b_set_best', 'bw_mode'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint8], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.bSetBest)) - (pod), + (&(pod.bwMode)) - (pod), + ], + 'itemsize': sizeof(nvmlNvlinkSetBwMode_v1_t), + }) + finally: + _cyb_free(pod) nvlink_set_bw_mode_v1_dtype = _get_nvlink_set_bw_mode_v1_dtype_offsets() @@ -13938,16 +14233,21 @@ cdef class NvlinkSetBwMode_v1: cdef _get_vgpu_version_dtype_offsets(): - cdef nvmlVgpuVersion_t pod - return _numpy.dtype({ - 'names': ['min_version', 'max_version'], - 'formats': [_numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.minVersion)) - (&pod), - (&(pod.maxVersion)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuVersion_t), - }) + cdef nvmlVgpuVersion_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuVersion_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuVersion_t") + try: + return _numpy.dtype({ + 'names': ['min_version', 'max_version'], + 'formats': [_numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.minVersion)) - (pod), + (&(pod.maxVersion)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuVersion_t), + }) + finally: + _cyb_free(pod) vgpu_version_dtype = _get_vgpu_version_dtype_offsets() @@ -14087,24 +14387,29 @@ cdef class VgpuVersion: cdef _get_vgpu_metadata_dtype_offsets(): - cdef nvmlVgpuMetadata_t pod - return _numpy.dtype({ - 'names': ['version', 'revision', 'guest_info_state', 'guest_driver_version', 'host_driver_version', 'reserved', 'vgpu_virtualization_caps', 'guest_vgpu_version', 'opaque_data_size', 'opaque_data'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.int32, (_numpy.int8, 80), (_numpy.int8, 80), (_numpy.uint32, 6), _numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.int8, 4)], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.revision)) - (&pod), - (&(pod.guestInfoState)) - (&pod), - (&(pod.guestDriverVersion)) - (&pod), - (&(pod.hostDriverVersion)) - (&pod), - (&(pod.reserved)) - (&pod), - (&(pod.vgpuVirtualizationCaps)) - (&pod), - (&(pod.guestVgpuVersion)) - (&pod), - (&(pod.opaqueDataSize)) - (&pod), - (&(pod.opaqueData)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuMetadata_t), - }) + cdef nvmlVgpuMetadata_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuMetadata_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuMetadata_t") + try: + return _numpy.dtype({ + 'names': ['version', 'revision', 'guest_info_state', 'guest_driver_version', 'host_driver_version', 'reserved', 'vgpu_virtualization_caps', 'guest_vgpu_version', 'opaque_data_size', 'opaque_data'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.int32, (_numpy.int8, 80), (_numpy.int8, 80), (_numpy.uint32, 6), _numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.int8, 4)], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.revision)) - (pod), + (&(pod.guestInfoState)) - (pod), + (&(pod.guestDriverVersion)) - (pod), + (&(pod.hostDriverVersion)) - (pod), + (&(pod.reserved)) - (pod), + (&(pod.vgpuVirtualizationCaps)) - (pod), + (&(pod.guestVgpuVersion)) - (pod), + (&(pod.opaqueDataSize)) - (pod), + (&(pod.opaqueData)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuMetadata_t), + }) + finally: + _cyb_free(pod) vgpu_metadata_dtype = _get_vgpu_metadata_dtype_offsets() @@ -14321,16 +14626,21 @@ cdef class VgpuMetadata: cdef _get_vgpu_pgpu_compatibility_dtype_offsets(): - cdef nvmlVgpuPgpuCompatibility_t pod - return _numpy.dtype({ - 'names': ['vgpu_vm_compatibility', 'compatibility_limit_code'], - 'formats': [_numpy.int32, _numpy.int32], - 'offsets': [ - (&(pod.vgpuVmCompatibility)) - (&pod), - (&(pod.compatibilityLimitCode)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuPgpuCompatibility_t), - }) + cdef nvmlVgpuPgpuCompatibility_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuPgpuCompatibility_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuPgpuCompatibility_t") + try: + return _numpy.dtype({ + 'names': ['vgpu_vm_compatibility', 'compatibility_limit_code'], + 'formats': [_numpy.int32, _numpy.int32], + 'offsets': [ + (&(pod.vgpuVmCompatibility)) - (pod), + (&(pod.compatibilityLimitCode)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuPgpuCompatibility_t), + }) + finally: + _cyb_free(pod) vgpu_pgpu_compatibility_dtype = _get_vgpu_pgpu_compatibility_dtype_offsets() @@ -14458,16 +14768,21 @@ cdef class VgpuPgpuCompatibility: cdef _get_gpu_instance_placement_dtype_offsets(): - cdef nvmlGpuInstancePlacement_t pod - return _numpy.dtype({ - 'names': ['start', 'size_'], - 'formats': [_numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.start)) - (&pod), - (&(pod.size)) - (&pod), - ], - 'itemsize': sizeof(nvmlGpuInstancePlacement_t), - }) + cdef nvmlGpuInstancePlacement_t *pod = _cyb_calloc(1, sizeof(nvmlGpuInstancePlacement_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGpuInstancePlacement_t") + try: + return _numpy.dtype({ + 'names': ['start', 'size_'], + 'formats': [_numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.start)) - (pod), + (&(pod.size)) - (pod), + ], + 'itemsize': sizeof(nvmlGpuInstancePlacement_t), + }) + finally: + _cyb_free(pod) gpu_instance_placement_dtype = _get_gpu_instance_placement_dtype_offsets() cdef object gpu_instance_placement_dtype_record = _numpy.dtype((_numpy.record, gpu_instance_placement_dtype)) @@ -14626,27 +14941,32 @@ cdef class GpuInstancePlacement: cdef _get_gpu_instance_profile_info_v3_dtype_offsets(): - cdef nvmlGpuInstanceProfileInfo_v3_t pod - return _numpy.dtype({ - 'names': ['version', 'id', 'slice_count', 'instance_count', 'multiprocessor_count', 'copy_engine_count', 'decoder_count', 'encoder_count', 'jpeg_count', 'ofa_count', 'memory_size_mb', 'name', 'capabilities'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint64, (_numpy.int8, 96), _numpy.uint32], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.id)) - (&pod), - (&(pod.sliceCount)) - (&pod), - (&(pod.instanceCount)) - (&pod), - (&(pod.multiprocessorCount)) - (&pod), - (&(pod.copyEngineCount)) - (&pod), - (&(pod.decoderCount)) - (&pod), - (&(pod.encoderCount)) - (&pod), - (&(pod.jpegCount)) - (&pod), - (&(pod.ofaCount)) - (&pod), - (&(pod.memorySizeMB)) - (&pod), - (&(pod.name)) - (&pod), - (&(pod.capabilities)) - (&pod), - ], - 'itemsize': sizeof(nvmlGpuInstanceProfileInfo_v3_t), - }) + cdef nvmlGpuInstanceProfileInfo_v3_t *pod = _cyb_calloc(1, sizeof(nvmlGpuInstanceProfileInfo_v3_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGpuInstanceProfileInfo_v3_t") + try: + return _numpy.dtype({ + 'names': ['version', 'id', 'slice_count', 'instance_count', 'multiprocessor_count', 'copy_engine_count', 'decoder_count', 'encoder_count', 'jpeg_count', 'ofa_count', 'memory_size_mb', 'name', 'capabilities'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint64, (_numpy.int8, 96), _numpy.uint32], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.id)) - (pod), + (&(pod.sliceCount)) - (pod), + (&(pod.instanceCount)) - (pod), + (&(pod.multiprocessorCount)) - (pod), + (&(pod.copyEngineCount)) - (pod), + (&(pod.decoderCount)) - (pod), + (&(pod.encoderCount)) - (pod), + (&(pod.jpegCount)) - (pod), + (&(pod.ofaCount)) - (pod), + (&(pod.memorySizeMB)) - (pod), + (&(pod.name)) - (pod), + (&(pod.capabilities)) - (pod), + ], + 'itemsize': sizeof(nvmlGpuInstanceProfileInfo_v3_t), + }) + finally: + _cyb_free(pod) gpu_instance_profile_info_v3_dtype = _get_gpu_instance_profile_info_v3_dtype_offsets() @@ -14899,16 +15219,21 @@ cdef class GpuInstanceProfileInfo_v3: cdef _get_compute_instance_placement_dtype_offsets(): - cdef nvmlComputeInstancePlacement_t pod - return _numpy.dtype({ - 'names': ['start', 'size_'], - 'formats': [_numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.start)) - (&pod), - (&(pod.size)) - (&pod), - ], - 'itemsize': sizeof(nvmlComputeInstancePlacement_t), - }) + cdef nvmlComputeInstancePlacement_t *pod = _cyb_calloc(1, sizeof(nvmlComputeInstancePlacement_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlComputeInstancePlacement_t") + try: + return _numpy.dtype({ + 'names': ['start', 'size_'], + 'formats': [_numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.start)) - (pod), + (&(pod.size)) - (pod), + ], + 'itemsize': sizeof(nvmlComputeInstancePlacement_t), + }) + finally: + _cyb_free(pod) compute_instance_placement_dtype = _get_compute_instance_placement_dtype_offsets() cdef object compute_instance_placement_dtype_record = _numpy.dtype((_numpy.record, compute_instance_placement_dtype)) @@ -15067,25 +15392,30 @@ cdef class ComputeInstancePlacement: cdef _get_compute_instance_profile_info_v2_dtype_offsets(): - cdef nvmlComputeInstanceProfileInfo_v2_t pod - return _numpy.dtype({ - 'names': ['version', 'id', 'slice_count', 'instance_count', 'multiprocessor_count', 'shared_copy_engine_count', 'shared_decoder_count', 'shared_encoder_count', 'shared_jpeg_count', 'shared_ofa_count', 'name'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.int8, 96)], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.id)) - (&pod), - (&(pod.sliceCount)) - (&pod), - (&(pod.instanceCount)) - (&pod), - (&(pod.multiprocessorCount)) - (&pod), - (&(pod.sharedCopyEngineCount)) - (&pod), - (&(pod.sharedDecoderCount)) - (&pod), - (&(pod.sharedEncoderCount)) - (&pod), - (&(pod.sharedJpegCount)) - (&pod), - (&(pod.sharedOfaCount)) - (&pod), - (&(pod.name)) - (&pod), - ], - 'itemsize': sizeof(nvmlComputeInstanceProfileInfo_v2_t), - }) + cdef nvmlComputeInstanceProfileInfo_v2_t *pod = _cyb_calloc(1, sizeof(nvmlComputeInstanceProfileInfo_v2_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlComputeInstanceProfileInfo_v2_t") + try: + return _numpy.dtype({ + 'names': ['version', 'id', 'slice_count', 'instance_count', 'multiprocessor_count', 'shared_copy_engine_count', 'shared_decoder_count', 'shared_encoder_count', 'shared_jpeg_count', 'shared_ofa_count', 'name'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.int8, 96)], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.id)) - (pod), + (&(pod.sliceCount)) - (pod), + (&(pod.instanceCount)) - (pod), + (&(pod.multiprocessorCount)) - (pod), + (&(pod.sharedCopyEngineCount)) - (pod), + (&(pod.sharedDecoderCount)) - (pod), + (&(pod.sharedEncoderCount)) - (pod), + (&(pod.sharedJpegCount)) - (pod), + (&(pod.sharedOfaCount)) - (pod), + (&(pod.name)) - (pod), + ], + 'itemsize': sizeof(nvmlComputeInstanceProfileInfo_v2_t), + }) + finally: + _cyb_free(pod) compute_instance_profile_info_v2_dtype = _get_compute_instance_profile_info_v2_dtype_offsets() @@ -15316,26 +15646,31 @@ cdef class ComputeInstanceProfileInfo_v2: cdef _get_compute_instance_profile_info_v3_dtype_offsets(): - cdef nvmlComputeInstanceProfileInfo_v3_t pod - return _numpy.dtype({ - 'names': ['version', 'id', 'slice_count', 'instance_count', 'multiprocessor_count', 'shared_copy_engine_count', 'shared_decoder_count', 'shared_encoder_count', 'shared_jpeg_count', 'shared_ofa_count', 'name', 'capabilities'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.int8, 96), _numpy.uint32], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.id)) - (&pod), - (&(pod.sliceCount)) - (&pod), - (&(pod.instanceCount)) - (&pod), - (&(pod.multiprocessorCount)) - (&pod), - (&(pod.sharedCopyEngineCount)) - (&pod), - (&(pod.sharedDecoderCount)) - (&pod), - (&(pod.sharedEncoderCount)) - (&pod), - (&(pod.sharedJpegCount)) - (&pod), - (&(pod.sharedOfaCount)) - (&pod), - (&(pod.name)) - (&pod), - (&(pod.capabilities)) - (&pod), - ], - 'itemsize': sizeof(nvmlComputeInstanceProfileInfo_v3_t), - }) + cdef nvmlComputeInstanceProfileInfo_v3_t *pod = _cyb_calloc(1, sizeof(nvmlComputeInstanceProfileInfo_v3_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlComputeInstanceProfileInfo_v3_t") + try: + return _numpy.dtype({ + 'names': ['version', 'id', 'slice_count', 'instance_count', 'multiprocessor_count', 'shared_copy_engine_count', 'shared_decoder_count', 'shared_encoder_count', 'shared_jpeg_count', 'shared_ofa_count', 'name', 'capabilities'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.int8, 96), _numpy.uint32], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.id)) - (pod), + (&(pod.sliceCount)) - (pod), + (&(pod.instanceCount)) - (pod), + (&(pod.multiprocessorCount)) - (pod), + (&(pod.sharedCopyEngineCount)) - (pod), + (&(pod.sharedDecoderCount)) - (pod), + (&(pod.sharedEncoderCount)) - (pod), + (&(pod.sharedJpegCount)) - (pod), + (&(pod.sharedOfaCount)) - (pod), + (&(pod.name)) - (pod), + (&(pod.capabilities)) - (pod), + ], + 'itemsize': sizeof(nvmlComputeInstanceProfileInfo_v3_t), + }) + finally: + _cyb_free(pod) compute_instance_profile_info_v3_dtype = _get_compute_instance_profile_info_v3_dtype_offsets() @@ -15577,16 +15912,21 @@ cdef class ComputeInstanceProfileInfo_v3: cdef _get_device_addressing_mode_v1_dtype_offsets(): - cdef nvmlDeviceAddressingMode_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'value'], - 'formats': [_numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.value)) - (&pod), - ], - 'itemsize': sizeof(nvmlDeviceAddressingMode_v1_t), - }) + cdef nvmlDeviceAddressingMode_v1_t *pod = _cyb_calloc(1, sizeof(nvmlDeviceAddressingMode_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlDeviceAddressingMode_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'value'], + 'formats': [_numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.value)) - (pod), + ], + 'itemsize': sizeof(nvmlDeviceAddressingMode_v1_t), + }) + finally: + _cyb_free(pod) device_addressing_mode_v1_dtype = _get_device_addressing_mode_v1_dtype_offsets() @@ -15714,17 +16054,22 @@ cdef class DeviceAddressingMode_v1: cdef _get_repair_status_v1_dtype_offsets(): - cdef nvmlRepairStatus_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'b_channel_repair_pending', 'b_tpc_repair_pending'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.bChannelRepairPending)) - (&pod), - (&(pod.bTpcRepairPending)) - (&pod), - ], - 'itemsize': sizeof(nvmlRepairStatus_v1_t), - }) + cdef nvmlRepairStatus_v1_t *pod = _cyb_calloc(1, sizeof(nvmlRepairStatus_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlRepairStatus_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'b_channel_repair_pending', 'b_tpc_repair_pending'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.bChannelRepairPending)) - (pod), + (&(pod.bTpcRepairPending)) - (pod), + ], + 'itemsize': sizeof(nvmlRepairStatus_v1_t), + }) + finally: + _cyb_free(pod) repair_status_v1_dtype = _get_repair_status_v1_dtype_offsets() @@ -15863,17 +16208,22 @@ cdef class RepairStatus_v1: cdef _get_device_power_mizer_modes_v1_dtype_offsets(): - cdef nvmlDevicePowerMizerModes_v1_t pod - return _numpy.dtype({ - 'names': ['current_mode', 'mode', 'supported_power_mizer_modes'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.currentMode)) - (&pod), - (&(pod.mode)) - (&pod), - (&(pod.supportedPowerMizerModes)) - (&pod), - ], - 'itemsize': sizeof(nvmlDevicePowerMizerModes_v1_t), - }) + cdef nvmlDevicePowerMizerModes_v1_t *pod = _cyb_calloc(1, sizeof(nvmlDevicePowerMizerModes_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlDevicePowerMizerModes_v1_t") + try: + return _numpy.dtype({ + 'names': ['current_mode', 'mode', 'supported_power_mizer_modes'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.currentMode)) - (pod), + (&(pod.mode)) - (pod), + (&(pod.supportedPowerMizerModes)) - (pod), + ], + 'itemsize': sizeof(nvmlDevicePowerMizerModes_v1_t), + }) + finally: + _cyb_free(pod) device_power_mizer_modes_v1_dtype = _get_device_power_mizer_modes_v1_dtype_offsets() @@ -16012,21 +16362,26 @@ cdef class DevicePowerMizerModes_v1: cdef _get_ecc_sram_unique_uncorrected_error_entry_v1_dtype_offsets(): - cdef nvmlEccSramUniqueUncorrectedErrorEntry_v1_t pod - return _numpy.dtype({ - 'names': ['unit', 'location', 'sublocation', 'extlocation', 'address', 'is_parity', 'count'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.unit)) - (&pod), - (&(pod.location)) - (&pod), - (&(pod.sublocation)) - (&pod), - (&(pod.extlocation)) - (&pod), - (&(pod.address)) - (&pod), - (&(pod.isParity)) - (&pod), - (&(pod.count)) - (&pod), - ], - 'itemsize': sizeof(nvmlEccSramUniqueUncorrectedErrorEntry_v1_t), - }) + cdef nvmlEccSramUniqueUncorrectedErrorEntry_v1_t *pod = _cyb_calloc(1, sizeof(nvmlEccSramUniqueUncorrectedErrorEntry_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlEccSramUniqueUncorrectedErrorEntry_v1_t") + try: + return _numpy.dtype({ + 'names': ['unit', 'location', 'sublocation', 'extlocation', 'address', 'is_parity', 'count'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.unit)) - (pod), + (&(pod.location)) - (pod), + (&(pod.sublocation)) - (pod), + (&(pod.extlocation)) - (pod), + (&(pod.address)) - (pod), + (&(pod.isParity)) - (pod), + (&(pod.count)) - (pod), + ], + 'itemsize': sizeof(nvmlEccSramUniqueUncorrectedErrorEntry_v1_t), + }) + finally: + _cyb_free(pod) ecc_sram_unique_uncorrected_error_entry_v1_dtype = _get_ecc_sram_unique_uncorrected_error_entry_v1_dtype_offsets() cdef object ecc_sram_unique_uncorrected_error_entry_v1_dtype_record = _numpy.dtype((_numpy.record, ecc_sram_unique_uncorrected_error_entry_v1_dtype)) @@ -16250,21 +16605,26 @@ cdef class EccSramUniqueUncorrectedErrorEntry_v1: cdef _get_gpu_fabric_info_v3_dtype_offsets(): - cdef nvmlGpuFabricInfo_v3_t pod - return _numpy.dtype({ - 'names': ['version', 'cluster_uuid', 'status', 'clique_id', 'state', 'health_mask', 'health_summary'], - 'formats': [_numpy.uint32, (_numpy.uint8, 16), _numpy.int32, _numpy.uint32, _numpy.uint8, _numpy.uint32, _numpy.uint8], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.clusterUuid)) - (&pod), - (&(pod.status)) - (&pod), - (&(pod.cliqueId)) - (&pod), - (&(pod.state)) - (&pod), - (&(pod.healthMask)) - (&pod), - (&(pod.healthSummary)) - (&pod), - ], - 'itemsize': sizeof(nvmlGpuFabricInfo_v3_t), - }) + cdef nvmlGpuFabricInfo_v3_t *pod = _cyb_calloc(1, sizeof(nvmlGpuFabricInfo_v3_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGpuFabricInfo_v3_t") + try: + return _numpy.dtype({ + 'names': ['version', 'cluster_uuid', 'status', 'clique_id', 'state', 'health_mask', 'health_summary'], + 'formats': [_numpy.uint32, (_numpy.uint8, 16), _numpy.int32, _numpy.uint32, _numpy.uint8, _numpy.uint32, _numpy.uint8], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.clusterUuid)) - (pod), + (&(pod.status)) - (pod), + (&(pod.cliqueId)) - (pod), + (&(pod.state)) - (pod), + (&(pod.healthMask)) - (pod), + (&(pod.healthSummary)) - (pod), + ], + 'itemsize': sizeof(nvmlGpuFabricInfo_v3_t), + }) + finally: + _cyb_free(pod) gpu_fabric_info_v3_dtype = _get_gpu_fabric_info_v3_dtype_offsets() @@ -16453,16 +16813,21 @@ cdef class GpuFabricInfo_v3: cdef _get_nv_link_info_v1_dtype_offsets(): - cdef nvmlNvLinkInfo_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'is_nvle_enabled'], - 'formats': [_numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.isNvleEnabled)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvLinkInfo_v1_t), - }) + cdef nvmlNvLinkInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlNvLinkInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvLinkInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'is_nvle_enabled'], + 'formats': [_numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.isNvleEnabled)) - (pod), + ], + 'itemsize': sizeof(nvmlNvLinkInfo_v1_t), + }) + finally: + _cyb_free(pod) nv_link_info_v1_dtype = _get_nv_link_info_v1_dtype_offsets() @@ -16590,18 +16955,23 @@ cdef class NvLinkInfo_v1: cdef _get_nvlink_firmware_version_dtype_offsets(): - cdef nvmlNvlinkFirmwareVersion_t pod - return _numpy.dtype({ - 'names': ['ucode_type', 'major', 'minor', 'sub_minor'], - 'formats': [_numpy.uint8, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.ucodeType)) - (&pod), - (&(pod.major)) - (&pod), - (&(pod.minor)) - (&pod), - (&(pod.subMinor)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvlinkFirmwareVersion_t), - }) + cdef nvmlNvlinkFirmwareVersion_t *pod = _cyb_calloc(1, sizeof(nvmlNvlinkFirmwareVersion_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvlinkFirmwareVersion_t") + try: + return _numpy.dtype({ + 'names': ['ucode_type', 'major', 'minor', 'sub_minor'], + 'formats': [_numpy.uint8, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.ucodeType)) - (pod), + (&(pod.major)) - (pod), + (&(pod.minor)) - (pod), + (&(pod.subMinor)) - (pod), + ], + 'itemsize': sizeof(nvmlNvlinkFirmwareVersion_t), + }) + finally: + _cyb_free(pod) nvlink_firmware_version_dtype = _get_nvlink_firmware_version_dtype_offsets() cdef object nvlink_firmware_version_dtype_record = _numpy.dtype((_numpy.record, nvlink_firmware_version_dtype)) @@ -16786,15 +17156,20 @@ cdef class NvlinkFirmwareVersion: cdef _get_prm_counter_input_v1_dtype_offsets(): - cdef nvmlPRMCounterInput_v1_t pod - return _numpy.dtype({ - 'names': ['local_port'], - 'formats': [_numpy.uint32], - 'offsets': [ - (&(pod.localPort)) - (&pod), - ], - 'itemsize': sizeof(nvmlPRMCounterInput_v1_t), - }) + cdef nvmlPRMCounterInput_v1_t *pod = _cyb_calloc(1, sizeof(nvmlPRMCounterInput_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPRMCounterInput_v1_t") + try: + return _numpy.dtype({ + 'names': ['local_port'], + 'formats': [_numpy.uint32], + 'offsets': [ + (&(pod.localPort)) - (pod), + ], + 'itemsize': sizeof(nvmlPRMCounterInput_v1_t), + }) + finally: + _cyb_free(pod) prm_counter_input_v1_dtype = _get_prm_counter_input_v1_dtype_offsets() @@ -16923,18 +17298,23 @@ cdef class PRMCounterInput_v1: cdef _get_vgpu_scheduler_state_info_v2_dtype_offsets(): - cdef nvmlVgpuSchedulerStateInfo_v2_t pod - return _numpy.dtype({ - 'names': ['engine_id', 'scheduler_policy', 'avg_factor', 'timeslice'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.engineId)) - (&pod), - (&(pod.schedulerPolicy)) - (&pod), - (&(pod.avgFactor)) - (&pod), - (&(pod.timeslice)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuSchedulerStateInfo_v2_t), - }) + cdef nvmlVgpuSchedulerStateInfo_v2_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerStateInfo_v2_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuSchedulerStateInfo_v2_t") + try: + return _numpy.dtype({ + 'names': ['engine_id', 'scheduler_policy', 'avg_factor', 'timeslice'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.engineId)) - (pod), + (&(pod.schedulerPolicy)) - (pod), + (&(pod.avgFactor)) - (pod), + (&(pod.timeslice)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuSchedulerStateInfo_v2_t), + }) + finally: + _cyb_free(pod) vgpu_scheduler_state_info_v2_dtype = _get_vgpu_scheduler_state_info_v2_dtype_offsets() @@ -17084,21 +17464,26 @@ cdef class VgpuSchedulerStateInfo_v2: cdef _get_vgpu_scheduler_log_entry_v2_dtype_offsets(): - cdef nvmlVgpuSchedulerLogEntry_v2_t pod - return _numpy.dtype({ - 'names': ['timestamp', 'time_run_total', 'time_run', 'sw_runlist_id', 'target_time_slice', 'cumulative_preemption_time', 'weight'], - 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint32, _numpy.uint64, _numpy.uint64, _numpy.uint32], - 'offsets': [ - (&(pod.timestamp)) - (&pod), - (&(pod.timeRunTotal)) - (&pod), - (&(pod.timeRun)) - (&pod), - (&(pod.swRunlistId)) - (&pod), - (&(pod.targetTimeSlice)) - (&pod), - (&(pod.cumulativePreemptionTime)) - (&pod), - (&(pod.weight)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuSchedulerLogEntry_v2_t), - }) + cdef nvmlVgpuSchedulerLogEntry_v2_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerLogEntry_v2_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuSchedulerLogEntry_v2_t") + try: + return _numpy.dtype({ + 'names': ['timestamp', 'time_run_total', 'time_run', 'sw_runlist_id', 'target_time_slice', 'cumulative_preemption_time', 'weight'], + 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint32, _numpy.uint64, _numpy.uint64, _numpy.uint32], + 'offsets': [ + (&(pod.timestamp)) - (pod), + (&(pod.timeRunTotal)) - (pod), + (&(pod.timeRun)) - (pod), + (&(pod.swRunlistId)) - (pod), + (&(pod.targetTimeSlice)) - (pod), + (&(pod.cumulativePreemptionTime)) - (pod), + (&(pod.weight)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuSchedulerLogEntry_v2_t), + }) + finally: + _cyb_free(pod) vgpu_scheduler_log_entry_v2_dtype = _get_vgpu_scheduler_log_entry_v2_dtype_offsets() cdef object vgpu_scheduler_log_entry_v2_dtype_record = _numpy.dtype((_numpy.record, vgpu_scheduler_log_entry_v2_dtype)) @@ -17322,18 +17707,23 @@ cdef class VgpuSchedulerLogEntry_v2: cdef _get_vgpu_scheduler_state_v2_dtype_offsets(): - cdef nvmlVgpuSchedulerState_v2_t pod - return _numpy.dtype({ - 'names': ['engine_id', 'scheduler_policy', 'avg_factor', 'frequency'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.engineId)) - (&pod), - (&(pod.schedulerPolicy)) - (&pod), - (&(pod.avgFactor)) - (&pod), - (&(pod.frequency)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuSchedulerState_v2_t), - }) + cdef nvmlVgpuSchedulerState_v2_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerState_v2_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuSchedulerState_v2_t") + try: + return _numpy.dtype({ + 'names': ['engine_id', 'scheduler_policy', 'avg_factor', 'frequency'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.engineId)) - (pod), + (&(pod.schedulerPolicy)) - (pod), + (&(pod.avgFactor)) - (pod), + (&(pod.frequency)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuSchedulerState_v2_t), + }) + finally: + _cyb_free(pod) vgpu_scheduler_state_v2_dtype = _get_vgpu_scheduler_state_v2_dtype_offsets() @@ -17483,15 +17873,20 @@ cdef class VgpuSchedulerState_v2: cdef _get_bbx_time_data_v1_dtype_offsets(): - cdef nvmlBBXTimeData_v1_t pod - return _numpy.dtype({ - 'names': ['time_run'], - 'formats': [_numpy.uint32], - 'offsets': [ - (&(pod.timeRun)) - (&pod), - ], - 'itemsize': sizeof(nvmlBBXTimeData_v1_t), - }) + cdef nvmlBBXTimeData_v1_t *pod = _cyb_calloc(1, sizeof(nvmlBBXTimeData_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlBBXTimeData_v1_t") + try: + return _numpy.dtype({ + 'names': ['time_run'], + 'formats': [_numpy.uint32], + 'offsets': [ + (&(pod.timeRun)) - (pod), + ], + 'itemsize': sizeof(nvmlBBXTimeData_v1_t), + }) + finally: + _cyb_free(pod) bbx_time_data_v1_dtype = _get_bbx_time_data_v1_dtype_offsets() @@ -17608,20 +18003,25 @@ cdef class BBXTimeData_v1: cdef _get_remapped_rows_info_v2_dtype_offsets(): - cdef nvmlRemappedRowsInfo_v2_t pod - return _numpy.dtype({ - 'names': ['corr_active_remaps', 'corr_inactive_remaps', 'unc_active_remaps', 'unc_inactive_remaps', 'b_pending', 'b_failure_occurred'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.corrActiveRemaps)) - (&pod), - (&(pod.corrInactiveRemaps)) - (&pod), - (&(pod.uncActiveRemaps)) - (&pod), - (&(pod.uncInactiveRemaps)) - (&pod), - (&(pod.bPending)) - (&pod), - (&(pod.bFailureOccurred)) - (&pod), - ], - 'itemsize': sizeof(nvmlRemappedRowsInfo_v2_t), - }) + cdef nvmlRemappedRowsInfo_v2_t *pod = _cyb_calloc(1, sizeof(nvmlRemappedRowsInfo_v2_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlRemappedRowsInfo_v2_t") + try: + return _numpy.dtype({ + 'names': ['corr_active_remaps', 'corr_inactive_remaps', 'unc_active_remaps', 'unc_inactive_remaps', 'b_pending', 'b_failure_occurred'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.corrActiveRemaps)) - (pod), + (&(pod.corrInactiveRemaps)) - (pod), + (&(pod.uncActiveRemaps)) - (pod), + (&(pod.uncInactiveRemaps)) - (pod), + (&(pod.bPending)) - (pod), + (&(pod.bFailureOccurred)) - (pod), + ], + 'itemsize': sizeof(nvmlRemappedRowsInfo_v2_t), + }) + finally: + _cyb_free(pod) remapped_rows_info_v2_dtype = _get_remapped_rows_info_v2_dtype_offsets() @@ -17793,24 +18193,29 @@ cdef class RemappedRowsInfo_v2: cdef _get_accounting_stats_v2_dtype_offsets(): - cdef nvmlAccountingStats_v2_t pod - return _numpy.dtype({ - 'names': ['pid', 'is_running', 'gpu_utilization', 'memory_utilization', 'max_memory_usage', 'sample_count', 'sum_gpu_util', 'sum_fb_util', 'time', 'start_time'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint64, _numpy.uint32, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.pid)) - (&pod), - (&(pod.isRunning)) - (&pod), - (&(pod.gpuUtilization)) - (&pod), - (&(pod.memoryUtilization)) - (&pod), - (&(pod.maxMemoryUsage)) - (&pod), - (&(pod.sampleCount)) - (&pod), - (&(pod.sumGpuUtil)) - (&pod), - (&(pod.sumFbUtil)) - (&pod), - (&(pod.time)) - (&pod), - (&(pod.startTime)) - (&pod), - ], - 'itemsize': sizeof(nvmlAccountingStats_v2_t), - }) + cdef nvmlAccountingStats_v2_t *pod = _cyb_calloc(1, sizeof(nvmlAccountingStats_v2_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlAccountingStats_v2_t") + try: + return _numpy.dtype({ + 'names': ['pid', 'is_running', 'gpu_utilization', 'memory_utilization', 'max_memory_usage', 'sample_count', 'sum_gpu_util', 'sum_fb_util', 'time', 'start_time'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint64, _numpy.uint32, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.pid)) - (pod), + (&(pod.isRunning)) - (pod), + (&(pod.gpuUtilization)) - (pod), + (&(pod.memoryUtilization)) - (pod), + (&(pod.maxMemoryUsage)) - (pod), + (&(pod.sampleCount)) - (pod), + (&(pod.sumGpuUtil)) - (pod), + (&(pod.sumFbUtil)) - (pod), + (&(pod.time)) - (pod), + (&(pod.startTime)) - (pod), + ], + 'itemsize': sizeof(nvmlAccountingStats_v2_t), + }) + finally: + _cyb_free(pod) accounting_stats_v2_dtype = _get_accounting_stats_v2_dtype_offsets() @@ -18026,17 +18431,22 @@ cdef class AccountingStats_v2: cdef _get_cper_cursor_v1_dtype_offsets(): - cdef nvmlCPERCursor_v1_t pod - return _numpy.dtype({ - 'names': ['cper_type_mask', 'uuid', 'handle'], - 'formats': [_numpy.uint32, (_numpy.int8, 80), _numpy.uint64], - 'offsets': [ - (&(pod.cperTypeMask)) - (&pod), - (&(pod.uuid)) - (&pod), - (&(pod.handle)) - (&pod), - ], - 'itemsize': sizeof(nvmlCPERCursor_v1_t), - }) + cdef nvmlCPERCursor_v1_t *pod = _cyb_calloc(1, sizeof(nvmlCPERCursor_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlCPERCursor_v1_t") + try: + return _numpy.dtype({ + 'names': ['cper_type_mask', 'uuid', 'handle'], + 'formats': [_numpy.uint32, (_numpy.int8, 80), _numpy.uint64], + 'offsets': [ + (&(pod.cperTypeMask)) - (pod), + (&(pod.uuid)) - (pod), + (&(pod.handle)) - (pod), + ], + 'itemsize': sizeof(nvmlCPERCursor_v1_t), + }) + finally: + _cyb_free(pod) cper_cursor_v1_dtype = _get_cper_cursor_v1_dtype_offsets() @@ -18191,17 +18601,22 @@ cdef class CPERCursor_v1: cdef _get_set_memory_limits_v1_dtype_offsets(): - cdef nvmlSetMemoryLimits_v1_t pod - return _numpy.dtype({ - 'names': ['name_space', 'soft_limit', 'hard_limit'], - 'formats': [_numpy.intp, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.nameSpace)) - (&pod), - (&(pod.softLimit)) - (&pod), - (&(pod.hardLimit)) - (&pod), - ], - 'itemsize': sizeof(nvmlSetMemoryLimits_v1_t), - }) + cdef nvmlSetMemoryLimits_v1_t *pod = _cyb_calloc(1, sizeof(nvmlSetMemoryLimits_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlSetMemoryLimits_v1_t") + try: + return _numpy.dtype({ + 'names': ['name_space', 'soft_limit', 'hard_limit'], + 'formats': [_numpy.intp, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.nameSpace)) - (pod), + (&(pod.softLimit)) - (pod), + (&(pod.hardLimit)) - (pod), + ], + 'itemsize': sizeof(nvmlSetMemoryLimits_v1_t), + }) + finally: + _cyb_free(pod) set_memory_limits_v1_dtype = _get_set_memory_limits_v1_dtype_offsets() @@ -18349,18 +18764,23 @@ cdef class SetMemoryLimits_v1: cdef _get_get_memory_limits_v1_dtype_offsets(): - cdef nvmlGetMemoryLimits_v1_t pod - return _numpy.dtype({ - 'names': ['name_space', 'soft_limit', 'hard_limit', 'current_used'], - 'formats': [_numpy.intp, _numpy.uint64, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.nameSpace)) - (&pod), - (&(pod.softLimit)) - (&pod), - (&(pod.hardLimit)) - (&pod), - (&(pod.currentUsed)) - (&pod), - ], - 'itemsize': sizeof(nvmlGetMemoryLimits_v1_t), - }) + cdef nvmlGetMemoryLimits_v1_t *pod = _cyb_calloc(1, sizeof(nvmlGetMemoryLimits_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGetMemoryLimits_v1_t") + try: + return _numpy.dtype({ + 'names': ['name_space', 'soft_limit', 'hard_limit', 'current_used'], + 'formats': [_numpy.intp, _numpy.uint64, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.nameSpace)) - (pod), + (&(pod.softLimit)) - (pod), + (&(pod.hardLimit)) - (pod), + (&(pod.currentUsed)) - (pod), + ], + 'itemsize': sizeof(nvmlGetMemoryLimits_v1_t), + }) + finally: + _cyb_free(pod) get_memory_limits_v1_dtype = _get_get_memory_limits_v1_dtype_offsets() @@ -18519,15 +18939,20 @@ cdef class GetMemoryLimits_v1: cdef _get_pmgr_pwr_tuple_dtype_offsets(): - cdef nvmlPmgrPwrTuple_t pod - return _numpy.dtype({ - 'names': ['pwrm_w'], - 'formats': [_numpy.uint32], - 'offsets': [ - (&(pod.pwrmW)) - (&pod), - ], - 'itemsize': sizeof(nvmlPmgrPwrTuple_t), - }) + cdef nvmlPmgrPwrTuple_t *pod = _cyb_calloc(1, sizeof(nvmlPmgrPwrTuple_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPmgrPwrTuple_t") + try: + return _numpy.dtype({ + 'names': ['pwrm_w'], + 'formats': [_numpy.uint32], + 'offsets': [ + (&(pod.pwrmW)) - (pod), + ], + 'itemsize': sizeof(nvmlPmgrPwrTuple_t), + }) + finally: + _cyb_free(pod) pmgr_pwr_tuple_dtype = _get_pmgr_pwr_tuple_dtype_offsets() cdef object pmgr_pwr_tuple_dtype_record = _numpy.dtype((_numpy.record, pmgr_pwr_tuple_dtype)) @@ -18673,16 +19098,21 @@ cdef class PmgrPwrTuple: cdef _get_rail_metrics_dtype_offsets(): - cdef nvmlRailMetrics_t pod - return _numpy.dtype({ - 'names': ['freqk_hz', 'util_pct'], - 'formats': [_numpy.uint32, _numpy.uint64], - 'offsets': [ - (&(pod.freqkHz)) - (&pod), - (&(pod.utilPct)) - (&pod), - ], - 'itemsize': sizeof(nvmlRailMetrics_t), - }) + cdef nvmlRailMetrics_t *pod = _cyb_calloc(1, sizeof(nvmlRailMetrics_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlRailMetrics_t") + try: + return _numpy.dtype({ + 'names': ['freqk_hz', 'util_pct'], + 'formats': [_numpy.uint32, _numpy.uint64], + 'offsets': [ + (&(pod.freqkHz)) - (pod), + (&(pod.utilPct)) - (pod), + ], + 'itemsize': sizeof(nvmlRailMetrics_t), + }) + finally: + _cyb_free(pod) rail_metrics_dtype = _get_rail_metrics_dtype_offsets() cdef object rail_metrics_dtype_record = _numpy.dtype((_numpy.record, rail_metrics_dtype)) @@ -18841,15 +19271,20 @@ cdef class RailMetrics: cdef _get_pwr_model_metrics_dlppm1x_perf_dtype_offsets(): - cdef nvmlPwrModelMetricsDlppm1xPerf_t pod - return _numpy.dtype({ - 'names': ['perfms'], - 'formats': [_numpy.uint32], - 'offsets': [ - (&(pod.perfms)) - (&pod), - ], - 'itemsize': sizeof(nvmlPwrModelMetricsDlppm1xPerf_t), - }) + cdef nvmlPwrModelMetricsDlppm1xPerf_t *pod = _cyb_calloc(1, sizeof(nvmlPwrModelMetricsDlppm1xPerf_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPwrModelMetricsDlppm1xPerf_t") + try: + return _numpy.dtype({ + 'names': ['perfms'], + 'formats': [_numpy.uint32], + 'offsets': [ + (&(pod.perfms)) - (pod), + ], + 'itemsize': sizeof(nvmlPwrModelMetricsDlppm1xPerf_t), + }) + finally: + _cyb_free(pod) pwr_model_metrics_dlppm1x_perf_dtype = _get_pwr_model_metrics_dlppm1x_perf_dtype_offsets() cdef object pwr_model_metrics_dlppm1x_perf_dtype_record = _numpy.dtype((_numpy.record, pwr_model_metrics_dlppm1x_perf_dtype)) @@ -18995,16 +19430,21 @@ cdef class PwrModelMetricsDlppm1xPerf: cdef _get_pwr_model_metrics_sample_pfpp1x_dtype_offsets(): - cdef nvmlPwrModelMetricsSamplePfpp1x_t pod - return _numpy.dtype({ - 'names': ['freqk_hz', 'est_tgp_pwrm_w'], - 'formats': [(_numpy.uint32, 16), _numpy.uint32], - 'offsets': [ - (&(pod.freqkHz)) - (&pod), - (&(pod.estTgpPwrmW)) - (&pod), - ], - 'itemsize': sizeof(nvmlPwrModelMetricsSamplePfpp1x_t), - }) + cdef nvmlPwrModelMetricsSamplePfpp1x_t *pod = _cyb_calloc(1, sizeof(nvmlPwrModelMetricsSamplePfpp1x_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPwrModelMetricsSamplePfpp1x_t") + try: + return _numpy.dtype({ + 'names': ['freqk_hz', 'est_tgp_pwrm_w'], + 'formats': [(_numpy.uint32, 16), _numpy.uint32], + 'offsets': [ + (&(pod.freqkHz)) - (pod), + (&(pod.estTgpPwrmW)) - (pod), + ], + 'itemsize': sizeof(nvmlPwrModelMetricsSamplePfpp1x_t), + }) + finally: + _cyb_free(pod) pwr_model_metrics_sample_pfpp1x_dtype = _get_pwr_model_metrics_sample_pfpp1x_dtype_offsets() cdef object pwr_model_metrics_sample_pfpp1x_dtype_record = _numpy.dtype((_numpy.record, pwr_model_metrics_sample_pfpp1x_dtype)) @@ -19161,16 +19601,21 @@ cdef class PwrModelMetricsSamplePfpp1x: cdef _get_pwr_model_operating_point_pfpp1x_dtype_offsets(): - cdef nvmlPwrModelOperatingPointPfpp1x_t pod - return _numpy.dtype({ - 'names': ['freqk_hz', 'pwrm_w'], - 'formats': [_numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.freqkHz)) - (&pod), - (&(pod.pwrmW)) - (&pod), - ], - 'itemsize': sizeof(nvmlPwrModelOperatingPointPfpp1x_t), - }) + cdef nvmlPwrModelOperatingPointPfpp1x_t *pod = _cyb_calloc(1, sizeof(nvmlPwrModelOperatingPointPfpp1x_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPwrModelOperatingPointPfpp1x_t") + try: + return _numpy.dtype({ + 'names': ['freqk_hz', 'pwrm_w'], + 'formats': [_numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.freqkHz)) - (pod), + (&(pod.pwrmW)) - (pod), + ], + 'itemsize': sizeof(nvmlPwrModelOperatingPointPfpp1x_t), + }) + finally: + _cyb_free(pod) pwr_model_operating_point_pfpp1x_dtype = _get_pwr_model_operating_point_pfpp1x_dtype_offsets() cdef object pwr_model_operating_point_pfpp1x_dtype_record = _numpy.dtype((_numpy.record, pwr_model_operating_point_pfpp1x_dtype)) @@ -19329,19 +19774,24 @@ cdef class PwrModelOperatingPointPfpp1x: cdef _get_adaptive_tgp_mode_info_v1_dtype_offsets(): - cdef nvmlAdaptiveTgpModeInfo_v1_t pod - return _numpy.dtype({ - 'names': ['in_band_enable_request', 'feature_allowed_by_admin', 'admin_override_enabled', 'enablement_status', 'adjusted_limit_mw'], - 'formats': [_numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32, _numpy.uint32], - 'offsets': [ - (&(pod.inBandEnableRequest)) - (&pod), - (&(pod.featureAllowedByAdmin)) - (&pod), - (&(pod.adminOverrideEnabled)) - (&pod), - (&(pod.enablementStatus)) - (&pod), - (&(pod.adjustedLimitMw)) - (&pod), - ], - 'itemsize': sizeof(nvmlAdaptiveTgpModeInfo_v1_t), - }) + cdef nvmlAdaptiveTgpModeInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlAdaptiveTgpModeInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlAdaptiveTgpModeInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['in_band_enable_request', 'feature_allowed_by_admin', 'admin_override_enabled', 'enablement_status', 'adjusted_limit_mw'], + 'formats': [_numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32, _numpy.uint32], + 'offsets': [ + (&(pod.inBandEnableRequest)) - (pod), + (&(pod.featureAllowedByAdmin)) - (pod), + (&(pod.adminOverrideEnabled)) - (pod), + (&(pod.enablementStatus)) - (pod), + (&(pod.adjustedLimitMw)) - (pod), + ], + 'itemsize': sizeof(nvmlAdaptiveTgpModeInfo_v1_t), + }) + finally: + _cyb_free(pod) adaptive_tgp_mode_info_v1_dtype = _get_adaptive_tgp_mode_info_v1_dtype_offsets() @@ -19502,15 +19952,20 @@ cdef class AdaptiveTgpModeInfo_v1: cdef _get_event_set_get_context_count_v1_dtype_offsets(): - cdef nvmlEventSetGetContextCount_v1_t pod - return _numpy.dtype({ - 'names': ['count'], - 'formats': [_numpy.uint32], - 'offsets': [ - (&(pod.count)) - (&pod), - ], - 'itemsize': sizeof(nvmlEventSetGetContextCount_v1_t), - }) + cdef nvmlEventSetGetContextCount_v1_t *pod = _cyb_calloc(1, sizeof(nvmlEventSetGetContextCount_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlEventSetGetContextCount_v1_t") + try: + return _numpy.dtype({ + 'names': ['count'], + 'formats': [_numpy.uint32], + 'offsets': [ + (&(pod.count)) - (pod), + ], + 'itemsize': sizeof(nvmlEventSetGetContextCount_v1_t), + }) + finally: + _cyb_free(pod) event_set_get_context_count_v1_dtype = _get_event_set_get_context_count_v1_dtype_offsets() @@ -19627,19 +20082,24 @@ cdef class EventSetGetContextCount_v1: cdef _get_event_set_get_context_info_v1_dtype_offsets(): - cdef nvmlEventSetGetContextInfo_v1_t pod - return _numpy.dtype({ - 'names': ['index', 'nvml_gpu_operational_event_context_type', 'source_event_context_type', 'data_size', 'data_format_version'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint16], - 'offsets': [ - (&(pod.index)) - (&pod), - (&(pod.nvmlGpuOperationalEventContextType)) - (&pod), - (&(pod.sourceEventContextType)) - (&pod), - (&(pod.dataSize)) - (&pod), - (&(pod.dataFormatVersion)) - (&pod), - ], - 'itemsize': sizeof(nvmlEventSetGetContextInfo_v1_t), - }) + cdef nvmlEventSetGetContextInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlEventSetGetContextInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlEventSetGetContextInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['index', 'nvml_gpu_operational_event_context_type', 'source_event_context_type', 'data_size', 'data_format_version'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint16], + 'offsets': [ + (&(pod.index)) - (pod), + (&(pod.nvmlGpuOperationalEventContextType)) - (pod), + (&(pod.sourceEventContextType)) - (pod), + (&(pod.dataSize)) - (pod), + (&(pod.dataFormatVersion)) - (pod), + ], + 'itemsize': sizeof(nvmlEventSetGetContextInfo_v1_t), + }) + finally: + _cyb_free(pod) event_set_get_context_info_v1_dtype = _get_event_set_get_context_info_v1_dtype_offsets() @@ -19800,16 +20260,21 @@ cdef class EventSetGetContextInfo_v1: cdef _get_event_set_get_gpu_operational_event_context_legacy_xid_v1_dtype_offsets(): - cdef nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1_t pod - return _numpy.dtype({ - 'names': ['index', 'xid_code'], - 'formats': [_numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.index)) - (&pod), - (&(pod.xidCode)) - (&pod), - ], - 'itemsize': sizeof(nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1_t), - }) + cdef nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1_t *pod = _cyb_calloc(1, sizeof(nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1_t") + try: + return _numpy.dtype({ + 'names': ['index', 'xid_code'], + 'formats': [_numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.index)) - (pod), + (&(pod.xidCode)) - (pod), + ], + 'itemsize': sizeof(nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1_t), + }) + finally: + _cyb_free(pod) event_set_get_gpu_operational_event_context_legacy_xid_v1_dtype = _get_event_set_get_gpu_operational_event_context_legacy_xid_v1_dtype_offsets() @@ -19937,16 +20402,21 @@ cdef class EventSetGetGpuOperationalEventContextLegacyXid_v1: cdef _get_gpu_fabric_clique_v1_dtype_offsets(): - cdef nvmlGpuFabricClique_v1_t pod - return _numpy.dtype({ - 'names': ['type', 'id'], - 'formats': [_numpy.uint8, _numpy.uint32], - 'offsets': [ - (&(pod.type)) - (&pod), - (&(pod.id)) - (&pod), - ], - 'itemsize': sizeof(nvmlGpuFabricClique_v1_t), - }) + cdef nvmlGpuFabricClique_v1_t *pod = _cyb_calloc(1, sizeof(nvmlGpuFabricClique_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGpuFabricClique_v1_t") + try: + return _numpy.dtype({ + 'names': ['type', 'id'], + 'formats': [_numpy.uint8, _numpy.uint32], + 'offsets': [ + (&(pod.type)) - (pod), + (&(pod.id)) - (pod), + ], + 'itemsize': sizeof(nvmlGpuFabricClique_v1_t), + }) + finally: + _cyb_free(pod) gpu_fabric_clique_v1_dtype = _get_gpu_fabric_clique_v1_dtype_offsets() @@ -20086,17 +20556,22 @@ cdef class GpuFabricClique_v1: cdef _get_gpu_operational_event_config_v1_dtype_offsets(): - cdef nvmlGpuOperationalEventConfig_v1_t pod - return _numpy.dtype({ - 'names': ['uuid', 'min_log_level', 'min_severity'], - 'formats': [(_numpy.int8, 96), _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.uuid)) - (&pod), - (&(pod.minLogLevel)) - (&pod), - (&(pod.minSeverity)) - (&pod), - ], - 'itemsize': sizeof(nvmlGpuOperationalEventConfig_v1_t), - }) + cdef nvmlGpuOperationalEventConfig_v1_t *pod = _cyb_calloc(1, sizeof(nvmlGpuOperationalEventConfig_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGpuOperationalEventConfig_v1_t") + try: + return _numpy.dtype({ + 'names': ['uuid', 'min_log_level', 'min_severity'], + 'formats': [(_numpy.int8, 96), _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.uuid)) - (pod), + (&(pod.minLogLevel)) - (pod), + (&(pod.minSeverity)) - (pod), + ], + 'itemsize': sizeof(nvmlGpuOperationalEventConfig_v1_t), + }) + finally: + _cyb_free(pod) gpu_operational_event_config_v1_dtype = _get_gpu_operational_event_config_v1_dtype_offsets() @@ -20239,39 +20714,44 @@ cdef class GpuOperationalEventConfig_v1: cdef _get_event_set_wait_v3_dtype_offsets(): - cdef nvmlEventSetWait_v3_t pod - return _numpy.dtype({ - 'names': ['timeout_ms', 'data_type', 'uuid', 'source_module', 'event_type', 'event_data', 'group_cursor', 'instance_id', 'timestamp_usec', 'trace_id', 'gpu_instance_id', 'compute_instance_id', 'severity', 'category_id', 'module_event_code', 'scope', 'originator', 'module_instance', 'chiplet_id', 'log_level', 'attributes', 'group_cper_size', 'group_attributes', 'group_size', 'group_index'], - 'formats': [_numpy.uint32, _numpy.uint32, (_numpy.int8, 96), (_numpy.int8, 16), _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint8, _numpy.uint8], - 'offsets': [ - (&(pod.timeoutMs)) - (&pod), - (&(pod.dataType)) - (&pod), - (&(pod.uuid)) - (&pod), - (&(pod.sourceModule)) - (&pod), - (&(pod.eventType)) - (&pod), - (&(pod.eventData)) - (&pod), - (&(pod.groupCursor)) - (&pod), - (&(pod.instanceId)) - (&pod), - (&(pod.timestampUsec)) - (&pod), - (&(pod.traceId)) - (&pod), - (&(pod.gpuInstanceId)) - (&pod), - (&(pod.computeInstanceId)) - (&pod), - (&(pod.severity)) - (&pod), - (&(pod.categoryId)) - (&pod), - (&(pod.moduleEventCode)) - (&pod), - (&(pod.scope)) - (&pod), - (&(pod.originator)) - (&pod), - (&(pod.moduleInstance)) - (&pod), - (&(pod.chipletId)) - (&pod), - (&(pod.logLevel)) - (&pod), - (&(pod.attributes)) - (&pod), - (&(pod.groupCperSize)) - (&pod), - (&(pod.groupAttributes)) - (&pod), - (&(pod.groupSize)) - (&pod), - (&(pod.groupIndex)) - (&pod), - ], - 'itemsize': sizeof(nvmlEventSetWait_v3_t), - }) + cdef nvmlEventSetWait_v3_t *pod = _cyb_calloc(1, sizeof(nvmlEventSetWait_v3_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlEventSetWait_v3_t") + try: + return _numpy.dtype({ + 'names': ['timeout_ms', 'data_type', 'uuid', 'source_module', 'event_type', 'event_data', 'group_cursor', 'instance_id', 'timestamp_usec', 'trace_id', 'gpu_instance_id', 'compute_instance_id', 'severity', 'category_id', 'module_event_code', 'scope', 'originator', 'module_instance', 'chiplet_id', 'log_level', 'attributes', 'group_cper_size', 'group_attributes', 'group_size', 'group_index'], + 'formats': [_numpy.uint32, _numpy.uint32, (_numpy.int8, 96), (_numpy.int8, 16), _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint8, _numpy.uint8], + 'offsets': [ + (&(pod.timeoutMs)) - (pod), + (&(pod.dataType)) - (pod), + (&(pod.uuid)) - (pod), + (&(pod.sourceModule)) - (pod), + (&(pod.eventType)) - (pod), + (&(pod.eventData)) - (pod), + (&(pod.groupCursor)) - (pod), + (&(pod.instanceId)) - (pod), + (&(pod.timestampUsec)) - (pod), + (&(pod.traceId)) - (pod), + (&(pod.gpuInstanceId)) - (pod), + (&(pod.computeInstanceId)) - (pod), + (&(pod.severity)) - (pod), + (&(pod.categoryId)) - (pod), + (&(pod.moduleEventCode)) - (pod), + (&(pod.scope)) - (pod), + (&(pod.originator)) - (pod), + (&(pod.moduleInstance)) - (pod), + (&(pod.chipletId)) - (pod), + (&(pod.logLevel)) - (pod), + (&(pod.attributes)) - (pod), + (&(pod.groupCperSize)) - (pod), + (&(pod.groupAttributes)) - (pod), + (&(pod.groupSize)) - (pod), + (&(pod.groupIndex)) - (pod), + ], + 'itemsize': sizeof(nvmlEventSetWait_v3_t), + }) + finally: + _cyb_free(pod) event_set_wait_v3_dtype = _get_event_set_wait_v3_dtype_offsets() @@ -20660,17 +21140,22 @@ cdef class EventSetWait_v3: cdef _get_nvlink_set_bw_mode_async_v1_dtype_offsets(): - cdef nvmlNvlinkSetBwModeAsync_v1_t pod - return _numpy.dtype({ - 'names': ['b_set_best', 'bw_mode', 'async_poll_timeout_ms'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.bSetBest)) - (&pod), - (&(pod.bwMode)) - (&pod), - (&(pod.asyncPollTimeoutMs)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvlinkSetBwModeAsync_v1_t), - }) + cdef nvmlNvlinkSetBwModeAsync_v1_t *pod = _cyb_calloc(1, sizeof(nvmlNvlinkSetBwModeAsync_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvlinkSetBwModeAsync_v1_t") + try: + return _numpy.dtype({ + 'names': ['b_set_best', 'bw_mode', 'async_poll_timeout_ms'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.bSetBest)) - (pod), + (&(pod.bwMode)) - (pod), + (&(pod.asyncPollTimeoutMs)) - (pod), + ], + 'itemsize': sizeof(nvmlNvlinkSetBwModeAsync_v1_t), + }) + finally: + _cyb_free(pod) nvlink_set_bw_mode_async_v1_dtype = _get_nvlink_set_bw_mode_async_v1_dtype_offsets() @@ -20809,19 +21294,24 @@ cdef class NvlinkSetBwModeAsync_v1: cdef _get_nvlink_telemetry_sample_v1_dtype_offsets(): - cdef nvmlNvlinkTelemetrySample_v1_t pod - return _numpy.dtype({ - 'names': ['link_id', 'sample_type', 'sample_count', 'samples', 'nvml_return'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.intp, _numpy.int32], - 'offsets': [ - (&(pod.linkId)) - (&pod), - (&(pod.sampleType)) - (&pod), - (&(pod.sampleCount)) - (&pod), - (&(pod.samples)) - (&pod), - (&(pod.nvmlReturn)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvlinkTelemetrySample_v1_t), - }) + cdef nvmlNvlinkTelemetrySample_v1_t *pod = _cyb_calloc(1, sizeof(nvmlNvlinkTelemetrySample_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvlinkTelemetrySample_v1_t") + try: + return _numpy.dtype({ + 'names': ['link_id', 'sample_type', 'sample_count', 'samples', 'nvml_return'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.intp, _numpy.int32], + 'offsets': [ + (&(pod.linkId)) - (pod), + (&(pod.sampleType)) - (pod), + (&(pod.sampleCount)) - (pod), + (&(pod.samples)) - (pod), + (&(pod.nvmlReturn)) - (pod), + ], + 'itemsize': sizeof(nvmlNvlinkTelemetrySample_v1_t), + }) + finally: + _cyb_free(pod) nvlink_telemetry_sample_v1_dtype = _get_nvlink_telemetry_sample_v1_dtype_offsets() cdef object nvlink_telemetry_sample_v1_dtype_record = _numpy.dtype((_numpy.record, nvlink_telemetry_sample_v1_dtype)) @@ -21019,16 +21509,21 @@ cdef class NvlinkTelemetrySample_v1: cdef _get_ecc_bank_remapper_histogram_v1_dtype_offsets(): - cdef nvmlEccBankRemapperHistogram_v1_t pod - return _numpy.dtype({ - 'names': ['max_spare_group_count', 'no_spare_group_count'], - 'formats': [_numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.maxSpareGroupCount)) - (&pod), - (&(pod.noSpareGroupCount)) - (&pod), - ], - 'itemsize': sizeof(nvmlEccBankRemapperHistogram_v1_t), - }) + cdef nvmlEccBankRemapperHistogram_v1_t *pod = _cyb_calloc(1, sizeof(nvmlEccBankRemapperHistogram_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlEccBankRemapperHistogram_v1_t") + try: + return _numpy.dtype({ + 'names': ['max_spare_group_count', 'no_spare_group_count'], + 'formats': [_numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.maxSpareGroupCount)) - (pod), + (&(pod.noSpareGroupCount)) - (pod), + ], + 'itemsize': sizeof(nvmlEccBankRemapperHistogram_v1_t), + }) + finally: + _cyb_free(pod) ecc_bank_remapper_histogram_v1_dtype = _get_ecc_bank_remapper_histogram_v1_dtype_offsets() @@ -21168,15 +21663,20 @@ cdef class EccBankRemapperHistogram_v1: cdef _get_gpu_uptime_v1_dtype_offsets(): - cdef nvmlGpuUptime_v1_t pod - return _numpy.dtype({ - 'names': ['uptime'], - 'formats': [_numpy.uint32], - 'offsets': [ - (&(pod.uptime)) - (&pod), - ], - 'itemsize': sizeof(nvmlGpuUptime_v1_t), - }) + cdef nvmlGpuUptime_v1_t *pod = _cyb_calloc(1, sizeof(nvmlGpuUptime_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGpuUptime_v1_t") + try: + return _numpy.dtype({ + 'names': ['uptime'], + 'formats': [_numpy.uint32], + 'offsets': [ + (&(pod.uptime)) - (pod), + ], + 'itemsize': sizeof(nvmlGpuUptime_v1_t), + }) + finally: + _cyb_free(pod) gpu_uptime_v1_dtype = _get_gpu_uptime_v1_dtype_offsets() @@ -21293,20 +21793,25 @@ cdef class GpuUptime_v1: cdef _get_system_conf_compute_settings_v2_dtype_offsets(): - cdef nvmlSystemConfComputeSettings_v2_t pod - return _numpy.dtype({ - 'names': ['version', 'environment', 'cc_feature', 'dev_tools_mode', 'multi_gpu_mode', 'tdisp_state'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.environment)) - (&pod), - (&(pod.ccFeature)) - (&pod), - (&(pod.devToolsMode)) - (&pod), - (&(pod.multiGpuMode)) - (&pod), - (&(pod.tdispState)) - (&pod), - ], - 'itemsize': sizeof(nvmlSystemConfComputeSettings_v2_t), - }) + cdef nvmlSystemConfComputeSettings_v2_t *pod = _cyb_calloc(1, sizeof(nvmlSystemConfComputeSettings_v2_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlSystemConfComputeSettings_v2_t") + try: + return _numpy.dtype({ + 'names': ['version', 'environment', 'cc_feature', 'dev_tools_mode', 'multi_gpu_mode', 'tdisp_state'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.environment)) - (pod), + (&(pod.ccFeature)) - (pod), + (&(pod.devToolsMode)) - (pod), + (&(pod.multiGpuMode)) - (pod), + (&(pod.tdispState)) - (pod), + ], + 'itemsize': sizeof(nvmlSystemConfComputeSettings_v2_t), + }) + finally: + _cyb_free(pod) system_conf_compute_settings_v2_dtype = _get_system_conf_compute_settings_v2_dtype_offsets() @@ -21478,18 +21983,23 @@ cdef class SystemConfComputeSettings_v2: cdef _get_nvlink_get_remap_table_info_v1_dtype_offsets(): - cdef nvmlNvlinkGetRemapTableInfo_v1_t pod - return _numpy.dtype({ - 'names': ['alid', 'fla_remap_tab_addr', 'gpa_remap_tab_addr', 'remap_tab_size'], - 'formats': [_numpy.uint32, (_numpy.uint32, 4096), (_numpy.uint32, 4096), _numpy.uint32], - 'offsets': [ - (&(pod.alid)) - (&pod), - (&(pod.flaRemapTabAddr)) - (&pod), - (&(pod.gpaRemapTabAddr)) - (&pod), - (&(pod.remapTabSize)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvlinkGetRemapTableInfo_v1_t), - }) + cdef nvmlNvlinkGetRemapTableInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlNvlinkGetRemapTableInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvlinkGetRemapTableInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['alid', 'fla_remap_tab_addr', 'gpa_remap_tab_addr', 'remap_tab_size'], + 'formats': [_numpy.uint32, (_numpy.uint32, 4096), (_numpy.uint32, 4096), _numpy.uint32], + 'offsets': [ + (&(pod.alid)) - (pod), + (&(pod.flaRemapTabAddr)) - (pod), + (&(pod.gpaRemapTabAddr)) - (pod), + (&(pod.remapTabSize)) - (pod), + ], + 'itemsize': sizeof(nvmlNvlinkGetRemapTableInfo_v1_t), + }) + finally: + _cyb_free(pod) nvlink_get_remap_table_info_v1_dtype = _get_nvlink_get_remap_table_info_v1_dtype_offsets() @@ -21650,15 +22160,20 @@ cdef class NvlinkGetRemapTableInfo_v1: cdef _get_nvlink_set_nvle_ready_v1_dtype_offsets(): - cdef nvmlNvlinkSetNvleReady_v1_t pod - return _numpy.dtype({ - 'names': ['b_nvle_ready'], - 'formats': [_numpy.uint8], - 'offsets': [ - (&(pod.bNvleReady)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvlinkSetNvleReady_v1_t), - }) + cdef nvmlNvlinkSetNvleReady_v1_t *pod = _cyb_calloc(1, sizeof(nvmlNvlinkSetNvleReady_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvlinkSetNvleReady_v1_t") + try: + return _numpy.dtype({ + 'names': ['b_nvle_ready'], + 'formats': [_numpy.uint8], + 'offsets': [ + (&(pod.bNvleReady)) - (pod), + ], + 'itemsize': sizeof(nvmlNvlinkSetNvleReady_v1_t), + }) + finally: + _cyb_free(pod) nvlink_set_nvle_ready_v1_dtype = _get_nvlink_set_nvle_ready_v1_dtype_offsets() @@ -21775,16 +22290,21 @@ cdef class NvlinkSetNvleReady_v1: cdef _get_nvlink_lock_remap_table_v1_dtype_offsets(): - cdef nvmlNvlinkLockRemapTable_v1_t pod - return _numpy.dtype({ - 'names': ['b_remap_table_locked', 'b_remap_table_lock_disabled'], - 'formats': [_numpy.uint8, _numpy.uint8], - 'offsets': [ - (&(pod.bRemapTableLocked)) - (&pod), - (&(pod.bRemapTableLockDisabled)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvlinkLockRemapTable_v1_t), - }) + cdef nvmlNvlinkLockRemapTable_v1_t *pod = _cyb_calloc(1, sizeof(nvmlNvlinkLockRemapTable_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvlinkLockRemapTable_v1_t") + try: + return _numpy.dtype({ + 'names': ['b_remap_table_locked', 'b_remap_table_lock_disabled'], + 'formats': [_numpy.uint8, _numpy.uint8], + 'offsets': [ + (&(pod.bRemapTableLocked)) - (pod), + (&(pod.bRemapTableLockDisabled)) - (pod), + ], + 'itemsize': sizeof(nvmlNvlinkLockRemapTable_v1_t), + }) + finally: + _cyb_free(pod) nvlink_lock_remap_table_v1_dtype = _get_nvlink_lock_remap_table_v1_dtype_offsets() @@ -21912,16 +22432,21 @@ cdef class NvlinkLockRemapTable_v1: cdef _get_nvlink_nvle_private_info_v1_dtype_offsets(): - cdef nvmlNvlinkNvlePrivateInfo_v1_t pod - return _numpy.dtype({ - 'names': ['data_', 'size_'], - 'formats': [(_numpy.uint8, 256), _numpy.uint32], - 'offsets': [ - (&(pod.data)) - (&pod), - (&(pod.size)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvlinkNvlePrivateInfo_v1_t), - }) + cdef nvmlNvlinkNvlePrivateInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlNvlinkNvlePrivateInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvlinkNvlePrivateInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['data_', 'size_'], + 'formats': [(_numpy.uint8, 256), _numpy.uint32], + 'offsets': [ + (&(pod.data)) - (pod), + (&(pod.size)) - (pod), + ], + 'itemsize': sizeof(nvmlNvlinkNvlePrivateInfo_v1_t), + }) + finally: + _cyb_free(pod) nvlink_nvle_private_info_v1_dtype = _get_nvlink_nvle_private_info_v1_dtype_offsets() @@ -22061,16 +22586,21 @@ cdef class NvlinkNvlePrivateInfo_v1: cdef _get_excluded_device_info_dtype_offsets(): - cdef nvmlExcludedDeviceInfo_t pod - return _numpy.dtype({ - 'names': ['pci_info', 'uuid'], - 'formats': [pci_info_dtype, (_numpy.int8, 80)], - 'offsets': [ - (&(pod.pciInfo)) - (&pod), - (&(pod.uuid)) - (&pod), - ], - 'itemsize': sizeof(nvmlExcludedDeviceInfo_t), - }) + cdef nvmlExcludedDeviceInfo_t *pod = _cyb_calloc(1, sizeof(nvmlExcludedDeviceInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlExcludedDeviceInfo_t") + try: + return _numpy.dtype({ + 'names': ['pci_info', 'uuid'], + 'formats': [pci_info_dtype, (_numpy.int8, 80)], + 'offsets': [ + (&(pod.pciInfo)) - (pod), + (&(pod.uuid)) - (pod), + ], + 'itemsize': sizeof(nvmlExcludedDeviceInfo_t), + }) + finally: + _cyb_free(pod) excluded_device_info_dtype = _get_excluded_device_info_dtype_offsets() @@ -22207,18 +22737,23 @@ cdef class ExcludedDeviceInfo: cdef _get_process_detail_list_v1_dtype_offsets(): - cdef nvmlProcessDetailList_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'mode', 'num_proc_array_entries', 'proc_array'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.intp], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.mode)) - (&pod), - (&(pod.numProcArrayEntries)) - (&pod), - (&(pod.procArray)) - (&pod), - ], - 'itemsize': sizeof(nvmlProcessDetailList_v1_t), - }) + cdef nvmlProcessDetailList_v1_t *pod = _cyb_calloc(1, sizeof(nvmlProcessDetailList_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlProcessDetailList_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'mode', 'num_proc_array_entries', 'proc_array'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.intp], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.mode)) - (pod), + (&(pod.numProcArrayEntries)) - (pod), + (&(pod.procArray)) - (pod), + ], + 'itemsize': sizeof(nvmlProcessDetailList_v1_t), + }) + finally: + _cyb_free(pod) process_detail_list_v1_dtype = _get_process_detail_list_v1_dtype_offsets() @@ -22370,16 +22905,21 @@ cdef class ProcessDetailList_v1: cdef _get_bridge_chip_hierarchy_dtype_offsets(): - cdef nvmlBridgeChipHierarchy_t pod - return _numpy.dtype({ - 'names': ['bridge_count', 'bridge_chip_info'], - 'formats': [_numpy.uint8, (bridge_chip_info_dtype, 128)], - 'offsets': [ - (&(pod.bridgeCount)) - (&pod), - (&(pod.bridgeChipInfo)) - (&pod), - ], - 'itemsize': sizeof(nvmlBridgeChipHierarchy_t), - }) + cdef nvmlBridgeChipHierarchy_t *pod = _cyb_calloc(1, sizeof(nvmlBridgeChipHierarchy_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlBridgeChipHierarchy_t") + try: + return _numpy.dtype({ + 'names': ['bridge_count', 'bridge_chip_info'], + 'formats': [_numpy.uint8, (bridge_chip_info_dtype, 128)], + 'offsets': [ + (&(pod.bridgeCount)) - (pod), + (&(pod.bridgeChipInfo)) - (pod), + ], + 'itemsize': sizeof(nvmlBridgeChipHierarchy_t), + }) + finally: + _cyb_free(pod) bridge_chip_hierarchy_dtype = _get_bridge_chip_hierarchy_dtype_offsets() @@ -22507,16 +23047,21 @@ cdef class BridgeChipHierarchy: cdef _get_sample_dtype_offsets(): - cdef nvmlSample_t pod - return _numpy.dtype({ - 'names': ['time_stamp', 'sample_value'], - 'formats': [_numpy.uint64, value_dtype], - 'offsets': [ - (&(pod.timeStamp)) - (&pod), - (&(pod.sampleValue)) - (&pod), - ], - 'itemsize': sizeof(nvmlSample_t), - }) + cdef nvmlSample_t *pod = _cyb_calloc(1, sizeof(nvmlSample_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlSample_t") + try: + return _numpy.dtype({ + 'names': ['time_stamp', 'sample_value'], + 'formats': [_numpy.uint64, value_dtype], + 'offsets': [ + (&(pod.timeStamp)) - (pod), + (&(pod.sampleValue)) - (pod), + ], + 'itemsize': sizeof(nvmlSample_t), + }) + finally: + _cyb_free(pod) sample_dtype = _get_sample_dtype_offsets() cdef object sample_dtype_record = _numpy.dtype((_numpy.record, sample_dtype)) @@ -22673,20 +23218,25 @@ cdef class Sample: cdef _get_vgpu_instance_utilization_sample_dtype_offsets(): - cdef nvmlVgpuInstanceUtilizationSample_t pod - return _numpy.dtype({ - 'names': ['vgpu_instance', 'time_stamp', 'sm_util', 'mem_util', 'enc_util', 'dec_util'], - 'formats': [_numpy.uint32, _numpy.uint64, value_dtype, value_dtype, value_dtype, value_dtype], - 'offsets': [ - (&(pod.vgpuInstance)) - (&pod), - (&(pod.timeStamp)) - (&pod), - (&(pod.smUtil)) - (&pod), - (&(pod.memUtil)) - (&pod), - (&(pod.encUtil)) - (&pod), - (&(pod.decUtil)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuInstanceUtilizationSample_t), - }) + cdef nvmlVgpuInstanceUtilizationSample_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuInstanceUtilizationSample_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuInstanceUtilizationSample_t") + try: + return _numpy.dtype({ + 'names': ['vgpu_instance', 'time_stamp', 'sm_util', 'mem_util', 'enc_util', 'dec_util'], + 'formats': [_numpy.uint32, _numpy.uint64, value_dtype, value_dtype, value_dtype, value_dtype], + 'offsets': [ + (&(pod.vgpuInstance)) - (pod), + (&(pod.timeStamp)) - (pod), + (&(pod.smUtil)) - (pod), + (&(pod.memUtil)) - (pod), + (&(pod.encUtil)) - (pod), + (&(pod.decUtil)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuInstanceUtilizationSample_t), + }) + finally: + _cyb_free(pod) vgpu_instance_utilization_sample_dtype = _get_vgpu_instance_utilization_sample_dtype_offsets() cdef object vgpu_instance_utilization_sample_dtype_record = _numpy.dtype((_numpy.record, vgpu_instance_utilization_sample_dtype)) @@ -22889,22 +23439,27 @@ cdef class VgpuInstanceUtilizationSample: cdef _get_vgpu_instance_utilization_info_v1_dtype_offsets(): - cdef nvmlVgpuInstanceUtilizationInfo_v1_t pod - return _numpy.dtype({ - 'names': ['time_stamp', 'vgpu_instance', 'sm_util', 'mem_util', 'enc_util', 'dec_util', 'jpg_util', 'ofa_util'], - 'formats': [_numpy.uint64, _numpy.uint32, value_dtype, value_dtype, value_dtype, value_dtype, value_dtype, value_dtype], - 'offsets': [ - (&(pod.timeStamp)) - (&pod), - (&(pod.vgpuInstance)) - (&pod), - (&(pod.smUtil)) - (&pod), - (&(pod.memUtil)) - (&pod), - (&(pod.encUtil)) - (&pod), - (&(pod.decUtil)) - (&pod), - (&(pod.jpgUtil)) - (&pod), - (&(pod.ofaUtil)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuInstanceUtilizationInfo_v1_t), - }) + cdef nvmlVgpuInstanceUtilizationInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuInstanceUtilizationInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuInstanceUtilizationInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['time_stamp', 'vgpu_instance', 'sm_util', 'mem_util', 'enc_util', 'dec_util', 'jpg_util', 'ofa_util'], + 'formats': [_numpy.uint64, _numpy.uint32, value_dtype, value_dtype, value_dtype, value_dtype, value_dtype, value_dtype], + 'offsets': [ + (&(pod.timeStamp)) - (pod), + (&(pod.vgpuInstance)) - (pod), + (&(pod.smUtil)) - (pod), + (&(pod.memUtil)) - (pod), + (&(pod.encUtil)) - (pod), + (&(pod.decUtil)) - (pod), + (&(pod.jpgUtil)) - (pod), + (&(pod.ofaUtil)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuInstanceUtilizationInfo_v1_t), + }) + finally: + _cyb_free(pod) vgpu_instance_utilization_info_v1_dtype = _get_vgpu_instance_utilization_info_v1_dtype_offsets() cdef object vgpu_instance_utilization_info_v1_dtype_record = _numpy.dtype((_numpy.record, vgpu_instance_utilization_info_v1_dtype)) @@ -23129,21 +23684,26 @@ cdef class VgpuInstanceUtilizationInfo_v1: cdef _get_field_value_dtype_offsets(): - cdef nvmlFieldValue_t pod - return _numpy.dtype({ - 'names': ['field_id', 'scope_id', 'timestamp', 'latency_usec', 'value_type', 'nvml_return', 'value'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.int64, _numpy.int64, _numpy.int32, _numpy.int32, value_dtype], - 'offsets': [ - (&(pod.fieldId)) - (&pod), - (&(pod.scopeId)) - (&pod), - (&(pod.timestamp)) - (&pod), - (&(pod.latencyUsec)) - (&pod), - (&(pod.valueType)) - (&pod), - (&(pod.nvmlReturn)) - (&pod), - (&(pod.value)) - (&pod), - ], - 'itemsize': sizeof(nvmlFieldValue_t), - }) + cdef nvmlFieldValue_t *pod = _cyb_calloc(1, sizeof(nvmlFieldValue_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlFieldValue_t") + try: + return _numpy.dtype({ + 'names': ['field_id', 'scope_id', 'timestamp', 'latency_usec', 'value_type', 'nvml_return', 'value'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.int64, _numpy.int64, _numpy.int32, _numpy.int32, value_dtype], + 'offsets': [ + (&(pod.fieldId)) - (pod), + (&(pod.scopeId)) - (pod), + (&(pod.timestamp)) - (pod), + (&(pod.latencyUsec)) - (pod), + (&(pod.valueType)) - (pod), + (&(pod.nvmlReturn)) - (pod), + (&(pod.value)) - (pod), + ], + 'itemsize': sizeof(nvmlFieldValue_t), + }) + finally: + _cyb_free(pod) field_value_dtype = _get_field_value_dtype_offsets() cdef object field_value_dtype_record = _numpy.dtype((_numpy.record, field_value_dtype)) @@ -23365,17 +23925,22 @@ cdef class FieldValue: cdef _get_prm_counter_value_v1_dtype_offsets(): - cdef nvmlPRMCounterValue_v1_t pod - return _numpy.dtype({ - 'names': ['status', 'output_type', 'output_value'], - 'formats': [_numpy.int32, _numpy.int32, value_dtype], - 'offsets': [ - (&(pod.status)) - (&pod), - (&(pod.outputType)) - (&pod), - (&(pod.outputValue)) - (&pod), - ], - 'itemsize': sizeof(nvmlPRMCounterValue_v1_t), - }) + cdef nvmlPRMCounterValue_v1_t *pod = _cyb_calloc(1, sizeof(nvmlPRMCounterValue_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPRMCounterValue_v1_t") + try: + return _numpy.dtype({ + 'names': ['status', 'output_type', 'output_value'], + 'formats': [_numpy.int32, _numpy.int32, value_dtype], + 'offsets': [ + (&(pod.status)) - (pod), + (&(pod.outputType)) - (pod), + (&(pod.outputValue)) - (pod), + ], + 'itemsize': sizeof(nvmlPRMCounterValue_v1_t), + }) + finally: + _cyb_free(pod) prm_counter_value_v1_dtype = _get_prm_counter_value_v1_dtype_offsets() @@ -23531,16 +24096,21 @@ cdef class PRMCounterValue_v1: cdef _get_gpu_thermal_settings_dtype_offsets(): - cdef nvmlGpuThermalSettings_t pod - return _numpy.dtype({ - 'names': ['count', 'sensor'], - 'formats': [_numpy.uint32, (_py_anon_pod0_dtype, 3)], - 'offsets': [ - (&(pod.count)) - (&pod), - (&(pod.sensor)) - (&pod), - ], - 'itemsize': sizeof(nvmlGpuThermalSettings_t), - }) + cdef nvmlGpuThermalSettings_t *pod = _cyb_calloc(1, sizeof(nvmlGpuThermalSettings_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGpuThermalSettings_t") + try: + return _numpy.dtype({ + 'names': ['count', 'sensor'], + 'formats': [_numpy.uint32, (_py_anon_pod0_dtype, 3)], + 'offsets': [ + (&(pod.count)) - (pod), + (&(pod.sensor)) - (pod), + ], + 'itemsize': sizeof(nvmlGpuThermalSettings_t), + }) + finally: + _cyb_free(pod) gpu_thermal_settings_dtype = _get_gpu_thermal_settings_dtype_offsets() @@ -23676,17 +24246,22 @@ cdef class GpuThermalSettings: cdef _get_clk_mon_status_dtype_offsets(): - cdef nvmlClkMonStatus_t pod - return _numpy.dtype({ - 'names': ['b_global_status', 'clk_mon_list_size', 'clk_mon_list'], - 'formats': [_numpy.uint32, _numpy.uint32, (clk_mon_fault_info_dtype, 32)], - 'offsets': [ - (&(pod.bGlobalStatus)) - (&pod), - (&(pod.clkMonListSize)) - (&pod), - (&(pod.clkMonList)) - (&pod), - ], - 'itemsize': sizeof(nvmlClkMonStatus_t), - }) + cdef nvmlClkMonStatus_t *pod = _cyb_calloc(1, sizeof(nvmlClkMonStatus_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlClkMonStatus_t") + try: + return _numpy.dtype({ + 'names': ['b_global_status', 'clk_mon_list_size', 'clk_mon_list'], + 'formats': [_numpy.uint32, _numpy.uint32, (clk_mon_fault_info_dtype, 32)], + 'offsets': [ + (&(pod.bGlobalStatus)) - (pod), + (&(pod.clkMonListSize)) - (pod), + (&(pod.clkMonList)) - (pod), + ], + 'itemsize': sizeof(nvmlClkMonStatus_t), + }) + finally: + _cyb_free(pod) clk_mon_status_dtype = _get_clk_mon_status_dtype_offsets() @@ -23825,18 +24400,23 @@ cdef class ClkMonStatus: cdef _get_processes_utilization_info_v1_dtype_offsets(): - cdef nvmlProcessesUtilizationInfo_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'process_samples_count', 'last_seen_time_stamp', 'proc_util_array'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint64, _numpy.intp], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.processSamplesCount)) - (&pod), - (&(pod.lastSeenTimeStamp)) - (&pod), - (&(pod.procUtilArray)) - (&pod), - ], - 'itemsize': sizeof(nvmlProcessesUtilizationInfo_v1_t), - }) + cdef nvmlProcessesUtilizationInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlProcessesUtilizationInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlProcessesUtilizationInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'process_samples_count', 'last_seen_time_stamp', 'proc_util_array'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint64, _numpy.intp], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.processSamplesCount)) - (pod), + (&(pod.lastSeenTimeStamp)) - (pod), + (&(pod.procUtilArray)) - (pod), + ], + 'itemsize': sizeof(nvmlProcessesUtilizationInfo_v1_t), + }) + finally: + _cyb_free(pod) processes_utilization_info_v1_dtype = _get_processes_utilization_info_v1_dtype_offsets() @@ -23988,16 +24568,21 @@ cdef class ProcessesUtilizationInfo_v1: cdef _get_gpu_dynamic_pstates_info_dtype_offsets(): - cdef nvmlGpuDynamicPstatesInfo_t pod - return _numpy.dtype({ - 'names': ['flags_', 'utilization'], - 'formats': [_numpy.uint32, (_py_anon_pod1_dtype, 8)], - 'offsets': [ - (&(pod.flags)) - (&pod), - (&(pod.utilization)) - (&pod), - ], - 'itemsize': sizeof(nvmlGpuDynamicPstatesInfo_t), - }) + cdef nvmlGpuDynamicPstatesInfo_t *pod = _cyb_calloc(1, sizeof(nvmlGpuDynamicPstatesInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGpuDynamicPstatesInfo_t") + try: + return _numpy.dtype({ + 'names': ['flags_', 'utilization'], + 'formats': [_numpy.uint32, (_py_anon_pod1_dtype, 8)], + 'offsets': [ + (&(pod.flags)) - (pod), + (&(pod.utilization)) - (pod), + ], + 'itemsize': sizeof(nvmlGpuDynamicPstatesInfo_t), + }) + finally: + _cyb_free(pod) gpu_dynamic_pstates_info_dtype = _get_gpu_dynamic_pstates_info_dtype_offsets() @@ -24133,18 +24718,23 @@ cdef class GpuDynamicPstatesInfo: cdef _get_vgpu_processes_utilization_info_v1_dtype_offsets(): - cdef nvmlVgpuProcessesUtilizationInfo_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'vgpu_process_count', 'last_seen_time_stamp', 'vgpu_proc_util_array'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint64, _numpy.intp], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.vgpuProcessCount)) - (&pod), - (&(pod.lastSeenTimeStamp)) - (&pod), - (&(pod.vgpuProcUtilArray)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuProcessesUtilizationInfo_v1_t), - }) + cdef nvmlVgpuProcessesUtilizationInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuProcessesUtilizationInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuProcessesUtilizationInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'vgpu_process_count', 'last_seen_time_stamp', 'vgpu_proc_util_array'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint64, _numpy.intp], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.vgpuProcessCount)) - (pod), + (&(pod.lastSeenTimeStamp)) - (pod), + (&(pod.vgpuProcUtilArray)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuProcessesUtilizationInfo_v1_t), + }) + finally: + _cyb_free(pod) vgpu_processes_utilization_info_v1_dtype = _get_vgpu_processes_utilization_info_v1_dtype_offsets() @@ -24296,16 +24886,21 @@ cdef class VgpuProcessesUtilizationInfo_v1: cdef _get_vgpu_scheduler_params_dtype_offsets(): - cdef nvmlVgpuSchedulerParams_t pod - return _numpy.dtype({ - 'names': ['vgpu_sched_data_with_arr', 'vgpu_sched_data'], - 'formats': [_py_anon_pod2_dtype, _py_anon_pod3_dtype], - 'offsets': [ - (&(pod.vgpuSchedDataWithARR)) - (&pod), - (&(pod.vgpuSchedData)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuSchedulerParams_t), - }) + cdef nvmlVgpuSchedulerParams_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerParams_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuSchedulerParams_t") + try: + return _numpy.dtype({ + 'names': ['vgpu_sched_data_with_arr', 'vgpu_sched_data'], + 'formats': [_py_anon_pod2_dtype, _py_anon_pod3_dtype], + 'offsets': [ + (&(pod.vgpuSchedDataWithARR)) - (pod), + (&(pod.vgpuSchedData)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuSchedulerParams_t), + }) + finally: + _cyb_free(pod) vgpu_scheduler_params_dtype = _get_vgpu_scheduler_params_dtype_offsets() @@ -24455,16 +25050,21 @@ cdef class VgpuSchedulerParams: cdef _get_vgpu_scheduler_set_params_dtype_offsets(): - cdef nvmlVgpuSchedulerSetParams_t pod - return _numpy.dtype({ - 'names': ['vgpu_sched_data_with_arr', 'vgpu_sched_data'], - 'formats': [_py_anon_pod4_dtype, _py_anon_pod5_dtype], - 'offsets': [ - (&(pod.vgpuSchedDataWithARR)) - (&pod), - (&(pod.vgpuSchedData)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuSchedulerSetParams_t), - }) + cdef nvmlVgpuSchedulerSetParams_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerSetParams_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuSchedulerSetParams_t") + try: + return _numpy.dtype({ + 'names': ['vgpu_sched_data_with_arr', 'vgpu_sched_data'], + 'formats': [_py_anon_pod4_dtype, _py_anon_pod5_dtype], + 'offsets': [ + (&(pod.vgpuSchedDataWithARR)) - (pod), + (&(pod.vgpuSchedData)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuSchedulerSetParams_t), + }) + finally: + _cyb_free(pod) vgpu_scheduler_set_params_dtype = _get_vgpu_scheduler_set_params_dtype_offsets() @@ -24614,17 +25214,22 @@ cdef class VgpuSchedulerSetParams: cdef _get_vgpu_license_info_dtype_offsets(): - cdef nvmlVgpuLicenseInfo_t pod - return _numpy.dtype({ - 'names': ['is_licensed', 'license_expiry', 'current_state'], - 'formats': [_numpy.uint8, vgpu_license_expiry_dtype, _numpy.uint32], - 'offsets': [ - (&(pod.isLicensed)) - (&pod), - (&(pod.licenseExpiry)) - (&pod), - (&(pod.currentState)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuLicenseInfo_t), - }) + cdef nvmlVgpuLicenseInfo_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuLicenseInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuLicenseInfo_t") + try: + return _numpy.dtype({ + 'names': ['is_licensed', 'license_expiry', 'current_state'], + 'formats': [_numpy.uint8, vgpu_license_expiry_dtype, _numpy.uint32], + 'offsets': [ + (&(pod.isLicensed)) - (pod), + (&(pod.licenseExpiry)) - (pod), + (&(pod.currentState)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuLicenseInfo_t), + }) + finally: + _cyb_free(pod) vgpu_license_info_dtype = _get_vgpu_license_info_dtype_offsets() @@ -24768,20 +25373,25 @@ cdef class VgpuLicenseInfo: cdef _get_grid_licensable_feature_dtype_offsets(): - cdef nvmlGridLicensableFeature_t pod - return _numpy.dtype({ - 'names': ['feature_code', 'feature_state', 'license_info', 'product_name', 'feature_enabled', 'license_expiry'], - 'formats': [_numpy.int32, _numpy.uint32, (_numpy.int8, 128), (_numpy.int8, 128), _numpy.uint32, grid_license_expiry_dtype], - 'offsets': [ - (&(pod.featureCode)) - (&pod), - (&(pod.featureState)) - (&pod), - (&(pod.licenseInfo)) - (&pod), - (&(pod.productName)) - (&pod), - (&(pod.featureEnabled)) - (&pod), - (&(pod.licenseExpiry)) - (&pod), - ], - 'itemsize': sizeof(nvmlGridLicensableFeature_t), - }) + cdef nvmlGridLicensableFeature_t *pod = _cyb_calloc(1, sizeof(nvmlGridLicensableFeature_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGridLicensableFeature_t") + try: + return _numpy.dtype({ + 'names': ['feature_code', 'feature_state', 'license_info', 'product_name', 'feature_enabled', 'license_expiry'], + 'formats': [_numpy.int32, _numpy.uint32, (_numpy.int8, 128), (_numpy.int8, 128), _numpy.uint32, grid_license_expiry_dtype], + 'offsets': [ + (&(pod.featureCode)) - (pod), + (&(pod.featureState)) - (pod), + (&(pod.licenseInfo)) - (pod), + (&(pod.productName)) - (pod), + (&(pod.featureEnabled)) - (pod), + (&(pod.licenseExpiry)) - (pod), + ], + 'itemsize': sizeof(nvmlGridLicensableFeature_t), + }) + finally: + _cyb_free(pod) grid_licensable_feature_dtype = _get_grid_licensable_feature_dtype_offsets() cdef object grid_licensable_feature_dtype_record = _numpy.dtype((_numpy.record, grid_licensable_feature_dtype)) @@ -24986,16 +25596,21 @@ cdef class GridLicensableFeature: cdef _get_unit_fan_speeds_dtype_offsets(): - cdef nvmlUnitFanSpeeds_t pod - return _numpy.dtype({ - 'names': ['fans', 'count'], - 'formats': [(unit_fan_info_dtype, 24), _numpy.uint32], - 'offsets': [ - (&(pod.fans)) - (&pod), - (&(pod.count)) - (&pod), - ], - 'itemsize': sizeof(nvmlUnitFanSpeeds_t), - }) + cdef nvmlUnitFanSpeeds_t *pod = _cyb_calloc(1, sizeof(nvmlUnitFanSpeeds_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlUnitFanSpeeds_t") + try: + return _numpy.dtype({ + 'names': ['fans', 'count'], + 'formats': [(unit_fan_info_dtype, 24), _numpy.uint32], + 'offsets': [ + (&(pod.fans)) - (pod), + (&(pod.count)) - (pod), + ], + 'itemsize': sizeof(nvmlUnitFanSpeeds_t), + }) + finally: + _cyb_free(pod) unit_fan_speeds_dtype = _get_unit_fan_speeds_dtype_offsets() @@ -25131,22 +25746,27 @@ cdef class UnitFanSpeeds: cdef _get_vgpu_pgpu_metadata_dtype_offsets(): - cdef nvmlVgpuPgpuMetadata_t pod - return _numpy.dtype({ - 'names': ['version', 'revision', 'host_driver_version', 'pgpu_virtualization_caps', 'reserved', 'host_supported_vgpu_range', 'opaque_data_size', 'opaque_data'], - 'formats': [_numpy.uint32, _numpy.uint32, (_numpy.int8, 80), _numpy.uint32, (_numpy.uint32, 5), vgpu_version_dtype, _numpy.uint32, (_numpy.int8, 4)], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.revision)) - (&pod), - (&(pod.hostDriverVersion)) - (&pod), - (&(pod.pgpuVirtualizationCaps)) - (&pod), - (&(pod.reserved)) - (&pod), - (&(pod.hostSupportedVgpuRange)) - (&pod), - (&(pod.opaqueDataSize)) - (&pod), - (&(pod.opaqueData)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuPgpuMetadata_t), - }) + cdef nvmlVgpuPgpuMetadata_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuPgpuMetadata_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuPgpuMetadata_t") + try: + return _numpy.dtype({ + 'names': ['version', 'revision', 'host_driver_version', 'pgpu_virtualization_caps', 'reserved', 'host_supported_vgpu_range', 'opaque_data_size', 'opaque_data'], + 'formats': [_numpy.uint32, _numpy.uint32, (_numpy.int8, 80), _numpy.uint32, (_numpy.uint32, 5), vgpu_version_dtype, _numpy.uint32, (_numpy.int8, 4)], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.revision)) - (pod), + (&(pod.hostDriverVersion)) - (pod), + (&(pod.pgpuVirtualizationCaps)) - (pod), + (&(pod.reserved)) - (pod), + (&(pod.hostSupportedVgpuRange)) - (pod), + (&(pod.opaqueDataSize)) - (pod), + (&(pod.opaqueData)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuPgpuMetadata_t), + }) + finally: + _cyb_free(pod) vgpu_pgpu_metadata_dtype = _get_vgpu_pgpu_metadata_dtype_offsets() @@ -25342,18 +25962,23 @@ cdef class VgpuPgpuMetadata: cdef _get_gpu_instance_info_dtype_offsets(): - cdef nvmlGpuInstanceInfo_t pod - return _numpy.dtype({ - 'names': ['device_', 'id', 'profile_id', 'placement'], - 'formats': [_numpy.intp, _numpy.uint32, _numpy.uint32, gpu_instance_placement_dtype], - 'offsets': [ - (&(pod.device)) - (&pod), - (&(pod.id)) - (&pod), - (&(pod.profileId)) - (&pod), - (&(pod.placement)) - (&pod), - ], - 'itemsize': sizeof(nvmlGpuInstanceInfo_t), - }) + cdef nvmlGpuInstanceInfo_t *pod = _cyb_calloc(1, sizeof(nvmlGpuInstanceInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGpuInstanceInfo_t") + try: + return _numpy.dtype({ + 'names': ['device_', 'id', 'profile_id', 'placement'], + 'formats': [_numpy.intp, _numpy.uint32, _numpy.uint32, gpu_instance_placement_dtype], + 'offsets': [ + (&(pod.device)) - (pod), + (&(pod.id)) - (pod), + (&(pod.profileId)) - (pod), + (&(pod.placement)) - (pod), + ], + 'itemsize': sizeof(nvmlGpuInstanceInfo_t), + }) + finally: + _cyb_free(pod) gpu_instance_info_dtype = _get_gpu_instance_info_dtype_offsets() @@ -25509,19 +26134,24 @@ cdef class GpuInstanceInfo: cdef _get_compute_instance_info_dtype_offsets(): - cdef nvmlComputeInstanceInfo_t pod - return _numpy.dtype({ - 'names': ['device_', 'gpu_instance', 'id', 'profile_id', 'placement'], - 'formats': [_numpy.intp, _numpy.intp, _numpy.uint32, _numpy.uint32, compute_instance_placement_dtype], - 'offsets': [ - (&(pod.device)) - (&pod), - (&(pod.gpuInstance)) - (&pod), - (&(pod.id)) - (&pod), - (&(pod.profileId)) - (&pod), - (&(pod.placement)) - (&pod), - ], - 'itemsize': sizeof(nvmlComputeInstanceInfo_t), - }) + cdef nvmlComputeInstanceInfo_t *pod = _cyb_calloc(1, sizeof(nvmlComputeInstanceInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlComputeInstanceInfo_t") + try: + return _numpy.dtype({ + 'names': ['device_', 'gpu_instance', 'id', 'profile_id', 'placement'], + 'formats': [_numpy.intp, _numpy.intp, _numpy.uint32, _numpy.uint32, compute_instance_placement_dtype], + 'offsets': [ + (&(pod.device)) - (pod), + (&(pod.gpuInstance)) - (pod), + (&(pod.id)) - (pod), + (&(pod.profileId)) - (pod), + (&(pod.placement)) - (pod), + ], + 'itemsize': sizeof(nvmlComputeInstanceInfo_t), + }) + finally: + _cyb_free(pod) compute_instance_info_dtype = _get_compute_instance_info_dtype_offsets() @@ -25688,17 +26318,22 @@ cdef class ComputeInstanceInfo: cdef _get_ecc_sram_unique_uncorrected_error_counts_v1_dtype_offsets(): - cdef nvmlEccSramUniqueUncorrectedErrorCounts_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'entry_count', 'entries'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.intp], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.entryCount)) - (&pod), - (&(pod.entries)) - (&pod), - ], - 'itemsize': sizeof(nvmlEccSramUniqueUncorrectedErrorCounts_v1_t), - }) + cdef nvmlEccSramUniqueUncorrectedErrorCounts_v1_t *pod = _cyb_calloc(1, sizeof(nvmlEccSramUniqueUncorrectedErrorCounts_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlEccSramUniqueUncorrectedErrorCounts_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'entry_count', 'entries'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.intp], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.entryCount)) - (pod), + (&(pod.entries)) - (pod), + ], + 'itemsize': sizeof(nvmlEccSramUniqueUncorrectedErrorCounts_v1_t), + }) + finally: + _cyb_free(pod) ecc_sram_unique_uncorrected_error_counts_v1_dtype = _get_ecc_sram_unique_uncorrected_error_counts_v1_dtype_offsets() @@ -25839,16 +26474,21 @@ cdef class EccSramUniqueUncorrectedErrorCounts_v1: cdef _get_nvlink_firmware_info_dtype_offsets(): - cdef nvmlNvlinkFirmwareInfo_t pod - return _numpy.dtype({ - 'names': ['firmware_version', 'num_valid_entries'], - 'formats': [(nvlink_firmware_version_dtype, 100), _numpy.uint32], - 'offsets': [ - (&(pod.firmwareVersion)) - (&pod), - (&(pod.numValidEntries)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvlinkFirmwareInfo_t), - }) + cdef nvmlNvlinkFirmwareInfo_t *pod = _cyb_calloc(1, sizeof(nvmlNvlinkFirmwareInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvlinkFirmwareInfo_t") + try: + return _numpy.dtype({ + 'names': ['firmware_version', 'num_valid_entries'], + 'formats': [(nvlink_firmware_version_dtype, 100), _numpy.uint32], + 'offsets': [ + (&(pod.firmwareVersion)) - (pod), + (&(pod.numValidEntries)) - (pod), + ], + 'itemsize': sizeof(nvmlNvlinkFirmwareInfo_t), + }) + finally: + _cyb_free(pod) nvlink_firmware_info_dtype = _get_nvlink_firmware_info_dtype_offsets() @@ -25988,20 +26628,25 @@ cdef class NvlinkFirmwareInfo: cdef _get_vgpu_scheduler_log_info_v2_dtype_offsets(): - cdef nvmlVgpuSchedulerLogInfo_v2_t pod - return _numpy.dtype({ - 'names': ['engine_id', 'scheduler_policy', 'avg_factor', 'timeslice', 'entries_count', 'log_entries'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, (vgpu_scheduler_log_entry_v2_dtype, 200)], - 'offsets': [ - (&(pod.engineId)) - (&pod), - (&(pod.schedulerPolicy)) - (&pod), - (&(pod.avgFactor)) - (&pod), - (&(pod.timeslice)) - (&pod), - (&(pod.entriesCount)) - (&pod), - (&(pod.logEntries)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuSchedulerLogInfo_v2_t), - }) + cdef nvmlVgpuSchedulerLogInfo_v2_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerLogInfo_v2_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuSchedulerLogInfo_v2_t") + try: + return _numpy.dtype({ + 'names': ['engine_id', 'scheduler_policy', 'avg_factor', 'timeslice', 'entries_count', 'log_entries'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, (vgpu_scheduler_log_entry_v2_dtype, 200)], + 'offsets': [ + (&(pod.engineId)) - (pod), + (&(pod.schedulerPolicy)) - (pod), + (&(pod.avgFactor)) - (pod), + (&(pod.timeslice)) - (pod), + (&(pod.entriesCount)) - (pod), + (&(pod.logEntries)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuSchedulerLogInfo_v2_t), + }) + finally: + _cyb_free(pod) vgpu_scheduler_log_info_v2_dtype = _get_vgpu_scheduler_log_info_v2_dtype_offsets() @@ -26181,17 +26826,22 @@ cdef class VgpuSchedulerLogInfo_v2: cdef _get_get_cper_v1_dtype_offsets(): - cdef nvmlGetCPER_v1_t pod - return _numpy.dtype({ - 'names': ['cursor', 'buffer', 'buffer_size'], - 'formats': [cper_cursor_v1_dtype, _numpy.intp, _numpy.uint32], - 'offsets': [ - (&(pod.cursor)) - (&pod), - (&(pod.buffer)) - (&pod), - (&(pod.bufferSize)) - (&pod), - ], - 'itemsize': sizeof(nvmlGetCPER_v1_t), - }) + cdef nvmlGetCPER_v1_t *pod = _cyb_calloc(1, sizeof(nvmlGetCPER_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGetCPER_v1_t") + try: + return _numpy.dtype({ + 'names': ['cursor', 'buffer', 'buffer_size'], + 'formats': [cper_cursor_v1_dtype, _numpy.intp, _numpy.uint32], + 'offsets': [ + (&(pod.cursor)) - (pod), + (&(pod.buffer)) - (pod), + (&(pod.bufferSize)) - (pod), + ], + 'itemsize': sizeof(nvmlGetCPER_v1_t), + }) + finally: + _cyb_free(pod) get_cper_v1_dtype = _get_get_cper_v1_dtype_offsets() @@ -26335,15 +26985,20 @@ cdef class GetCPER_v1: cdef _get_core_rail_metrics_dtype_offsets(): - cdef nvmlCoreRailMetrics_t pod - return _numpy.dtype({ - 'names': ['rails'], - 'formats': [(rail_metrics_dtype, 2)], - 'offsets': [ - (&(pod.rails)) - (&pod), - ], - 'itemsize': sizeof(nvmlCoreRailMetrics_t), - }) + cdef nvmlCoreRailMetrics_t *pod = _cyb_calloc(1, sizeof(nvmlCoreRailMetrics_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlCoreRailMetrics_t") + try: + return _numpy.dtype({ + 'names': ['rails'], + 'formats': [(rail_metrics_dtype, 2)], + 'offsets': [ + (&(pod.rails)) - (pod), + ], + 'itemsize': sizeof(nvmlCoreRailMetrics_t), + }) + finally: + _cyb_free(pod) core_rail_metrics_dtype = _get_core_rail_metrics_dtype_offsets() cdef object core_rail_metrics_dtype_record = _numpy.dtype((_numpy.record, core_rail_metrics_dtype)) @@ -26487,20 +27142,25 @@ cdef class CoreRailMetrics: cdef _get_pwr_model_metrics_pfpp1x_dtype_offsets(): - cdef nvmlPwrModelMetricsPfpp1x_t pod - return _numpy.dtype({ - 'names': ['num_vf_points', 'estimated_metrics', 'b_valid', 'max_perf_per_watt_point', 'fmax_at_vmax_point', 'tgp_headroomm_w'], - 'formats': [_numpy.uint8, (pwr_model_metrics_sample_pfpp1x_dtype, 32), _numpy.uint8, pwr_model_operating_point_pfpp1x_dtype, pwr_model_operating_point_pfpp1x_dtype, _numpy.uint32], - 'offsets': [ - (&(pod.numVfPoints)) - (&pod), - (&(pod.estimatedMetrics)) - (&pod), - (&(pod.bValid)) - (&pod), - (&(pod.maxPerfPerWattPoint)) - (&pod), - (&(pod.fmaxAtVmaxPoint)) - (&pod), - (&(pod.tgpHeadroommW)) - (&pod), - ], - 'itemsize': sizeof(nvmlPwrModelMetricsPfpp1x_t), - }) + cdef nvmlPwrModelMetricsPfpp1x_t *pod = _cyb_calloc(1, sizeof(nvmlPwrModelMetricsPfpp1x_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPwrModelMetricsPfpp1x_t") + try: + return _numpy.dtype({ + 'names': ['num_vf_points', 'estimated_metrics', 'b_valid', 'max_perf_per_watt_point', 'fmax_at_vmax_point', 'tgp_headroomm_w'], + 'formats': [_numpy.uint8, (pwr_model_metrics_sample_pfpp1x_dtype, 32), _numpy.uint8, pwr_model_operating_point_pfpp1x_dtype, pwr_model_operating_point_pfpp1x_dtype, _numpy.uint32], + 'offsets': [ + (&(pod.numVfPoints)) - (pod), + (&(pod.estimatedMetrics)) - (pod), + (&(pod.bValid)) - (pod), + (&(pod.maxPerfPerWattPoint)) - (pod), + (&(pod.fmaxAtVmaxPoint)) - (pod), + (&(pod.tgpHeadroommW)) - (pod), + ], + 'itemsize': sizeof(nvmlPwrModelMetricsPfpp1x_t), + }) + finally: + _cyb_free(pod) pwr_model_metrics_pfpp1x_dtype = _get_pwr_model_metrics_pfpp1x_dtype_offsets() cdef object pwr_model_metrics_pfpp1x_dtype_record = _numpy.dtype((_numpy.record, pwr_model_metrics_pfpp1x_dtype)) @@ -26702,21 +27362,26 @@ cdef class PwrModelMetricsPfpp1x: cdef _get_gpu_fabric_info_v4_dtype_offsets(): - cdef nvmlGpuFabricInfo_v4_t pod - return _numpy.dtype({ - 'names': ['cluster_uuid', 'status', 'cliques', 'num_cliques', 'state', 'health_mask', 'health_summary'], - 'formats': [(_numpy.uint8, 16), _numpy.int32, (gpu_fabric_clique_v1_dtype, 64), _numpy.uint32, _numpy.uint8, _numpy.uint32, _numpy.uint8], - 'offsets': [ - (&(pod.clusterUuid)) - (&pod), - (&(pod.status)) - (&pod), - (&(pod.cliques)) - (&pod), - (&(pod.numCliques)) - (&pod), - (&(pod.state)) - (&pod), - (&(pod.healthMask)) - (&pod), - (&(pod.healthSummary)) - (&pod), - ], - 'itemsize': sizeof(nvmlGpuFabricInfo_v4_t), - }) + cdef nvmlGpuFabricInfo_v4_t *pod = _cyb_calloc(1, sizeof(nvmlGpuFabricInfo_v4_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGpuFabricInfo_v4_t") + try: + return _numpy.dtype({ + 'names': ['cluster_uuid', 'status', 'cliques', 'num_cliques', 'state', 'health_mask', 'health_summary'], + 'formats': [(_numpy.uint8, 16), _numpy.int32, (gpu_fabric_clique_v1_dtype, 64), _numpy.uint32, _numpy.uint8, _numpy.uint32, _numpy.uint8], + 'offsets': [ + (&(pod.clusterUuid)) - (pod), + (&(pod.status)) - (pod), + (&(pod.cliques)) - (pod), + (&(pod.numCliques)) - (pod), + (&(pod.state)) - (pod), + (&(pod.healthMask)) - (pod), + (&(pod.healthSummary)) - (pod), + ], + 'itemsize': sizeof(nvmlGpuFabricInfo_v4_t), + }) + finally: + _cyb_free(pod) gpu_fabric_info_v4_dtype = _get_gpu_fabric_info_v4_dtype_offsets() @@ -26912,16 +27577,21 @@ cdef class GpuFabricInfo_v4: cdef _get_nvlink_telemetry_samples_v1_dtype_offsets(): - cdef nvmlNvlinkTelemetrySamples_v1_t pod - return _numpy.dtype({ - 'names': ['telemetry_count', 'telemetry_samples'], - 'formats': [_numpy.uint32, _numpy.intp], - 'offsets': [ - (&(pod.telemetryCount)) - (&pod), - (&(pod.telemetrySamples)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvlinkTelemetrySamples_v1_t), - }) + cdef nvmlNvlinkTelemetrySamples_v1_t *pod = _cyb_calloc(1, sizeof(nvmlNvlinkTelemetrySamples_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvlinkTelemetrySamples_v1_t") + try: + return _numpy.dtype({ + 'names': ['telemetry_count', 'telemetry_samples'], + 'formats': [_numpy.uint32, _numpy.intp], + 'offsets': [ + (&(pod.telemetryCount)) - (pod), + (&(pod.telemetrySamples)) - (pod), + ], + 'itemsize': sizeof(nvmlNvlinkTelemetrySamples_v1_t), + }) + finally: + _cyb_free(pod) nvlink_telemetry_samples_v1_dtype = _get_nvlink_telemetry_samples_v1_dtype_offsets() @@ -27051,18 +27721,23 @@ cdef class NvlinkTelemetrySamples_v1: cdef _get_ecc_bank_remapper_status_v1_dtype_offsets(): - cdef nvmlEccBankRemapperStatus_v1_t pod - return _numpy.dtype({ - 'names': ['active_remappings', 'inactive_remappings', 'b_pending', 'histogram'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, ecc_bank_remapper_histogram_v1_dtype], - 'offsets': [ - (&(pod.activeRemappings)) - (&pod), - (&(pod.inactiveRemappings)) - (&pod), - (&(pod.bPending)) - (&pod), - (&(pod.histogram)) - (&pod), - ], - 'itemsize': sizeof(nvmlEccBankRemapperStatus_v1_t), - }) + cdef nvmlEccBankRemapperStatus_v1_t *pod = _cyb_calloc(1, sizeof(nvmlEccBankRemapperStatus_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlEccBankRemapperStatus_v1_t") + try: + return _numpy.dtype({ + 'names': ['active_remappings', 'inactive_remappings', 'b_pending', 'histogram'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, ecc_bank_remapper_histogram_v1_dtype], + 'offsets': [ + (&(pod.activeRemappings)) - (pod), + (&(pod.inactiveRemappings)) - (pod), + (&(pod.bPending)) - (pod), + (&(pod.histogram)) - (pod), + ], + 'itemsize': sizeof(nvmlEccBankRemapperStatus_v1_t), + }) + finally: + _cyb_free(pod) ecc_bank_remapper_status_v1_dtype = _get_ecc_bank_remapper_status_v1_dtype_offsets() @@ -27217,19 +27892,24 @@ cdef class EccBankRemapperStatus_v1: cdef _get_nvlink_setup_nvle_encryption_key_v1_dtype_offsets(): - cdef nvmlNvlinkSetupNvleEncryptionKey_v1_t pod - return _numpy.dtype({ - 'names': ['nvle_key', 'local_gpu_alid', 'remote_gpu_alid', 'local_gpu_nvle_private_info', 'remote_gpu_nvle_private_info'], - 'formats': [(_numpy.uint8, 32), _numpy.uint32, _numpy.uint32, nvlink_nvle_private_info_v1_dtype, nvlink_nvle_private_info_v1_dtype], - 'offsets': [ - (&(pod.nvleKey)) - (&pod), - (&(pod.localGpuAlid)) - (&pod), - (&(pod.remoteGpuAlid)) - (&pod), - (&(pod.localGpuNvlePrivateInfo)) - (&pod), - (&(pod.remoteGpuNvlePrivateInfo)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvlinkSetupNvleEncryptionKey_v1_t), - }) + cdef nvmlNvlinkSetupNvleEncryptionKey_v1_t *pod = _cyb_calloc(1, sizeof(nvmlNvlinkSetupNvleEncryptionKey_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvlinkSetupNvleEncryptionKey_v1_t") + try: + return _numpy.dtype({ + 'names': ['nvle_key', 'local_gpu_alid', 'remote_gpu_alid', 'local_gpu_nvle_private_info', 'remote_gpu_nvle_private_info'], + 'formats': [(_numpy.uint8, 32), _numpy.uint32, _numpy.uint32, nvlink_nvle_private_info_v1_dtype, nvlink_nvle_private_info_v1_dtype], + 'offsets': [ + (&(pod.nvleKey)) - (pod), + (&(pod.localGpuAlid)) - (pod), + (&(pod.remoteGpuAlid)) - (pod), + (&(pod.localGpuNvlePrivateInfo)) - (pod), + (&(pod.remoteGpuNvlePrivateInfo)) - (pod), + ], + 'itemsize': sizeof(nvmlNvlinkSetupNvleEncryptionKey_v1_t), + }) + finally: + _cyb_free(pod) nvlink_setup_nvle_encryption_key_v1_dtype = _get_nvlink_setup_nvle_encryption_key_v1_dtype_offsets() @@ -27406,19 +28086,24 @@ cdef class NvlinkSetupNvleEncryptionKey_v1: cdef _get_vgpu_instances_utilization_info_v1_dtype_offsets(): - cdef nvmlVgpuInstancesUtilizationInfo_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'sample_val_type', 'vgpu_instance_count', 'last_seen_time_stamp', 'vgpu_util_array'], - 'formats': [_numpy.uint32, _numpy.int32, _numpy.uint32, _numpy.uint64, _numpy.intp], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.sampleValType)) - (&pod), - (&(pod.vgpuInstanceCount)) - (&pod), - (&(pod.lastSeenTimeStamp)) - (&pod), - (&(pod.vgpuUtilArray)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuInstancesUtilizationInfo_v1_t), - }) + cdef nvmlVgpuInstancesUtilizationInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuInstancesUtilizationInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuInstancesUtilizationInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'sample_val_type', 'vgpu_instance_count', 'last_seen_time_stamp', 'vgpu_util_array'], + 'formats': [_numpy.uint32, _numpy.int32, _numpy.uint32, _numpy.uint64, _numpy.intp], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.sampleValType)) - (pod), + (&(pod.vgpuInstanceCount)) - (pod), + (&(pod.lastSeenTimeStamp)) - (pod), + (&(pod.vgpuUtilArray)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuInstancesUtilizationInfo_v1_t), + }) + finally: + _cyb_free(pod) vgpu_instances_utilization_info_v1_dtype = _get_vgpu_instances_utilization_info_v1_dtype_offsets() @@ -27581,17 +28266,22 @@ cdef class VgpuInstancesUtilizationInfo_v1: cdef _get_prm_counter_v1_dtype_offsets(): - cdef nvmlPRMCounter_v1_t pod - return _numpy.dtype({ - 'names': ['counter_id', 'in_data', 'counter_value'], - 'formats': [_numpy.uint32, prm_counter_input_v1_dtype, prm_counter_value_v1_dtype], - 'offsets': [ - (&(pod.counterId)) - (&pod), - (&(pod.inData)) - (&pod), - (&(pod.counterValue)) - (&pod), - ], - 'itemsize': sizeof(nvmlPRMCounter_v1_t), - }) + cdef nvmlPRMCounter_v1_t *pod = _cyb_calloc(1, sizeof(nvmlPRMCounter_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPRMCounter_v1_t") + try: + return _numpy.dtype({ + 'names': ['counter_id', 'in_data', 'counter_value'], + 'formats': [_numpy.uint32, prm_counter_input_v1_dtype, prm_counter_value_v1_dtype], + 'offsets': [ + (&(pod.counterId)) - (pod), + (&(pod.inData)) - (pod), + (&(pod.counterValue)) - (pod), + ], + 'itemsize': sizeof(nvmlPRMCounter_v1_t), + }) + finally: + _cyb_free(pod) prm_counter_v1_dtype = _get_prm_counter_v1_dtype_offsets() cdef object prm_counter_v1_dtype_record = _numpy.dtype((_numpy.record, prm_counter_v1_dtype)) @@ -27759,20 +28449,25 @@ cdef class PRMCounter_v1: cdef _get_vgpu_scheduler_log_dtype_offsets(): - cdef nvmlVgpuSchedulerLog_t pod - return _numpy.dtype({ - 'names': ['engine_id', 'scheduler_policy', 'arr_mode', 'scheduler_params', 'entries_count', 'log_entries'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, vgpu_scheduler_params_dtype, _numpy.uint32, (vgpu_scheduler_log_entry_dtype, 200)], - 'offsets': [ - (&(pod.engineId)) - (&pod), - (&(pod.schedulerPolicy)) - (&pod), - (&(pod.arrMode)) - (&pod), - (&(pod.schedulerParams)) - (&pod), - (&(pod.entriesCount)) - (&pod), - (&(pod.logEntries)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuSchedulerLog_t), - }) + cdef nvmlVgpuSchedulerLog_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerLog_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuSchedulerLog_t") + try: + return _numpy.dtype({ + 'names': ['engine_id', 'scheduler_policy', 'arr_mode', 'scheduler_params', 'entries_count', 'log_entries'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, vgpu_scheduler_params_dtype, _numpy.uint32, (vgpu_scheduler_log_entry_dtype, 200)], + 'offsets': [ + (&(pod.engineId)) - (pod), + (&(pod.schedulerPolicy)) - (pod), + (&(pod.arrMode)) - (pod), + (&(pod.schedulerParams)) - (pod), + (&(pod.entriesCount)) - (pod), + (&(pod.logEntries)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuSchedulerLog_t), + }) + finally: + _cyb_free(pod) vgpu_scheduler_log_dtype = _get_vgpu_scheduler_log_dtype_offsets() @@ -27957,17 +28652,22 @@ cdef class VgpuSchedulerLog: cdef _get_vgpu_scheduler_get_state_dtype_offsets(): - cdef nvmlVgpuSchedulerGetState_t pod - return _numpy.dtype({ - 'names': ['scheduler_policy', 'arr_mode', 'scheduler_params'], - 'formats': [_numpy.uint32, _numpy.uint32, vgpu_scheduler_params_dtype], - 'offsets': [ - (&(pod.schedulerPolicy)) - (&pod), - (&(pod.arrMode)) - (&pod), - (&(pod.schedulerParams)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuSchedulerGetState_t), - }) + cdef nvmlVgpuSchedulerGetState_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerGetState_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuSchedulerGetState_t") + try: + return _numpy.dtype({ + 'names': ['scheduler_policy', 'arr_mode', 'scheduler_params'], + 'formats': [_numpy.uint32, _numpy.uint32, vgpu_scheduler_params_dtype], + 'offsets': [ + (&(pod.schedulerPolicy)) - (pod), + (&(pod.arrMode)) - (pod), + (&(pod.schedulerParams)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuSchedulerGetState_t), + }) + finally: + _cyb_free(pod) vgpu_scheduler_get_state_dtype = _get_vgpu_scheduler_get_state_dtype_offsets() @@ -28111,19 +28811,24 @@ cdef class VgpuSchedulerGetState: cdef _get_vgpu_scheduler_state_info_v1_dtype_offsets(): - cdef nvmlVgpuSchedulerStateInfo_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'engine_id', 'scheduler_policy', 'arr_mode', 'scheduler_params'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, vgpu_scheduler_params_dtype], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.engineId)) - (&pod), - (&(pod.schedulerPolicy)) - (&pod), - (&(pod.arrMode)) - (&pod), - (&(pod.schedulerParams)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuSchedulerStateInfo_v1_t), - }) + cdef nvmlVgpuSchedulerStateInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerStateInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuSchedulerStateInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'engine_id', 'scheduler_policy', 'arr_mode', 'scheduler_params'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, vgpu_scheduler_params_dtype], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.engineId)) - (pod), + (&(pod.schedulerPolicy)) - (pod), + (&(pod.arrMode)) - (pod), + (&(pod.schedulerParams)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuSchedulerStateInfo_v1_t), + }) + finally: + _cyb_free(pod) vgpu_scheduler_state_info_v1_dtype = _get_vgpu_scheduler_state_info_v1_dtype_offsets() @@ -28289,21 +28994,26 @@ cdef class VgpuSchedulerStateInfo_v1: cdef _get_vgpu_scheduler_log_info_v1_dtype_offsets(): - cdef nvmlVgpuSchedulerLogInfo_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'engine_id', 'scheduler_policy', 'arr_mode', 'scheduler_params', 'entries_count', 'log_entries'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, vgpu_scheduler_params_dtype, _numpy.uint32, (vgpu_scheduler_log_entry_dtype, 200)], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.engineId)) - (&pod), - (&(pod.schedulerPolicy)) - (&pod), - (&(pod.arrMode)) - (&pod), - (&(pod.schedulerParams)) - (&pod), - (&(pod.entriesCount)) - (&pod), - (&(pod.logEntries)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuSchedulerLogInfo_v1_t), - }) + cdef nvmlVgpuSchedulerLogInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerLogInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuSchedulerLogInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'engine_id', 'scheduler_policy', 'arr_mode', 'scheduler_params', 'entries_count', 'log_entries'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, vgpu_scheduler_params_dtype, _numpy.uint32, (vgpu_scheduler_log_entry_dtype, 200)], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.engineId)) - (pod), + (&(pod.schedulerPolicy)) - (pod), + (&(pod.arrMode)) - (pod), + (&(pod.schedulerParams)) - (pod), + (&(pod.entriesCount)) - (pod), + (&(pod.logEntries)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuSchedulerLogInfo_v1_t), + }) + finally: + _cyb_free(pod) vgpu_scheduler_log_info_v1_dtype = _get_vgpu_scheduler_log_info_v1_dtype_offsets() @@ -28499,19 +29209,24 @@ cdef class VgpuSchedulerLogInfo_v1: cdef _get_vgpu_scheduler_state_v1_dtype_offsets(): - cdef nvmlVgpuSchedulerState_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'engine_id', 'scheduler_policy', 'enable_arr_mode', 'scheduler_params'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, vgpu_scheduler_set_params_dtype], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.engineId)) - (&pod), - (&(pod.schedulerPolicy)) - (&pod), - (&(pod.enableARRMode)) - (&pod), - (&(pod.schedulerParams)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuSchedulerState_v1_t), - }) + cdef nvmlVgpuSchedulerState_v1_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerState_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuSchedulerState_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'engine_id', 'scheduler_policy', 'enable_arr_mode', 'scheduler_params'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, vgpu_scheduler_set_params_dtype], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.engineId)) - (pod), + (&(pod.schedulerPolicy)) - (pod), + (&(pod.enableARRMode)) - (pod), + (&(pod.schedulerParams)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuSchedulerState_v1_t), + }) + finally: + _cyb_free(pod) vgpu_scheduler_state_v1_dtype = _get_vgpu_scheduler_state_v1_dtype_offsets() @@ -28677,17 +29392,22 @@ cdef class VgpuSchedulerState_v1: cdef _get_grid_licensable_features_dtype_offsets(): - cdef nvmlGridLicensableFeatures_t pod - return _numpy.dtype({ - 'names': ['is_grid_license_supported', 'licensable_features_count', 'grid_licensable_features'], - 'formats': [_numpy.int32, _numpy.uint32, (grid_licensable_feature_dtype, 3)], - 'offsets': [ - (&(pod.isGridLicenseSupported)) - (&pod), - (&(pod.licensableFeaturesCount)) - (&pod), - (&(pod.gridLicensableFeatures)) - (&pod), - ], - 'itemsize': sizeof(nvmlGridLicensableFeatures_t), - }) + cdef nvmlGridLicensableFeatures_t *pod = _cyb_calloc(1, sizeof(nvmlGridLicensableFeatures_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGridLicensableFeatures_t") + try: + return _numpy.dtype({ + 'names': ['is_grid_license_supported', 'licensable_features_count', 'grid_licensable_features'], + 'formats': [_numpy.int32, _numpy.uint32, (grid_licensable_feature_dtype, 3)], + 'offsets': [ + (&(pod.isGridLicenseSupported)) - (pod), + (&(pod.licensableFeaturesCount)) - (pod), + (&(pod.gridLicensableFeatures)) - (pod), + ], + 'itemsize': sizeof(nvmlGridLicensableFeatures_t), + }) + finally: + _cyb_free(pod) grid_licensable_features_dtype = _get_grid_licensable_features_dtype_offsets() @@ -28826,17 +29546,22 @@ cdef class GridLicensableFeatures: cdef _get_nv_link_info_v2_dtype_offsets(): - cdef nvmlNvLinkInfo_v2_t pod - return _numpy.dtype({ - 'names': ['version', 'is_nvle_enabled', 'firmware_info'], - 'formats': [_numpy.uint32, _numpy.uint32, nvlink_firmware_info_dtype], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.isNvleEnabled)) - (&pod), - (&(pod.firmwareInfo)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvLinkInfo_v2_t), - }) + cdef nvmlNvLinkInfo_v2_t *pod = _cyb_calloc(1, sizeof(nvmlNvLinkInfo_v2_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvLinkInfo_v2_t") + try: + return _numpy.dtype({ + 'names': ['version', 'is_nvle_enabled', 'firmware_info'], + 'formats': [_numpy.uint32, _numpy.uint32, nvlink_firmware_info_dtype], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.isNvleEnabled)) - (pod), + (&(pod.firmwareInfo)) - (pod), + ], + 'itemsize': sizeof(nvmlNvLinkInfo_v2_t), + }) + finally: + _cyb_free(pod) nv_link_info_v2_dtype = _get_nv_link_info_v2_dtype_offsets() @@ -28980,17 +29705,22 @@ cdef class NvLinkInfo_v2: cdef _get_nv_link_info_v3_dtype_offsets(): - cdef nvmlNvLinkInfo_v3_t pod - return _numpy.dtype({ - 'names': ['is_nvle_enabled', 'firmware_info', 'is_nvle_ready'], - 'formats': [_numpy.uint32, nvlink_firmware_info_dtype, _numpy.uint32], - 'offsets': [ - (&(pod.isNvleEnabled)) - (&pod), - (&(pod.firmwareInfo)) - (&pod), - (&(pod.isNvleReady)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvLinkInfo_v3_t), - }) + cdef nvmlNvLinkInfo_v3_t *pod = _cyb_calloc(1, sizeof(nvmlNvLinkInfo_v3_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvLinkInfo_v3_t") + try: + return _numpy.dtype({ + 'names': ['is_nvle_enabled', 'firmware_info', 'is_nvle_ready'], + 'formats': [_numpy.uint32, nvlink_firmware_info_dtype, _numpy.uint32], + 'offsets': [ + (&(pod.isNvleEnabled)) - (pod), + (&(pod.firmwareInfo)) - (pod), + (&(pod.isNvleReady)) - (pod), + ], + 'itemsize': sizeof(nvmlNvLinkInfo_v3_t), + }) + finally: + _cyb_free(pod) nv_link_info_v3_dtype = _get_nv_link_info_v3_dtype_offsets() @@ -29134,19 +29864,24 @@ cdef class NvLinkInfo_v3: cdef _get_pwr_model_metrics_dlppm1x_dtype_offsets(): - cdef nvmlPwrModelMetricsDlppm1x_t pod - return _numpy.dtype({ - 'names': ['b_valid', 'core_rail', 'fb_rail', 'tgp_pwr_tuple', 'perf_metrics'], - 'formats': [_numpy.uint8, core_rail_metrics_dtype, rail_metrics_dtype, pmgr_pwr_tuple_dtype, pwr_model_metrics_dlppm1x_perf_dtype], - 'offsets': [ - (&(pod.bValid)) - (&pod), - (&(pod.coreRail)) - (&pod), - (&(pod.fbRail)) - (&pod), - (&(pod.tgpPwrTuple)) - (&pod), - (&(pod.perfMetrics)) - (&pod), - ], - 'itemsize': sizeof(nvmlPwrModelMetricsDlppm1x_t), - }) + cdef nvmlPwrModelMetricsDlppm1x_t *pod = _cyb_calloc(1, sizeof(nvmlPwrModelMetricsDlppm1x_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPwrModelMetricsDlppm1x_t") + try: + return _numpy.dtype({ + 'names': ['b_valid', 'core_rail', 'fb_rail', 'tgp_pwr_tuple', 'perf_metrics'], + 'formats': [_numpy.uint8, core_rail_metrics_dtype, rail_metrics_dtype, pmgr_pwr_tuple_dtype, pwr_model_metrics_dlppm1x_perf_dtype], + 'offsets': [ + (&(pod.bValid)) - (pod), + (&(pod.coreRail)) - (pod), + (&(pod.fbRail)) - (pod), + (&(pod.tgpPwrTuple)) - (pod), + (&(pod.perfMetrics)) - (pod), + ], + 'itemsize': sizeof(nvmlPwrModelMetricsDlppm1x_t), + }) + finally: + _cyb_free(pod) pwr_model_metrics_dlppm1x_dtype = _get_pwr_model_metrics_dlppm1x_dtype_offsets() cdef object pwr_model_metrics_dlppm1x_dtype_record = _numpy.dtype((_numpy.record, pwr_model_metrics_dlppm1x_dtype)) @@ -29336,15 +30071,20 @@ cdef class PwrModelMetricsDlppm1x: cdef _get_perf_metrics_pfpp1x_sample_dtype_offsets(): - cdef nvmlPerfMetricsPfpp1xSample_t pod - return _numpy.dtype({ - 'names': ['estimated_metrics'], - 'formats': [pwr_model_metrics_pfpp1x_dtype], - 'offsets': [ - (&(pod.estimatedMetrics)) - (&pod), - ], - 'itemsize': sizeof(nvmlPerfMetricsPfpp1xSample_t), - }) + cdef nvmlPerfMetricsPfpp1xSample_t *pod = _cyb_calloc(1, sizeof(nvmlPerfMetricsPfpp1xSample_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPerfMetricsPfpp1xSample_t") + try: + return _numpy.dtype({ + 'names': ['estimated_metrics'], + 'formats': [pwr_model_metrics_pfpp1x_dtype], + 'offsets': [ + (&(pod.estimatedMetrics)) - (pod), + ], + 'itemsize': sizeof(nvmlPerfMetricsPfpp1xSample_t), + }) + finally: + _cyb_free(pod) perf_metrics_pfpp1x_sample_dtype = _get_perf_metrics_pfpp1x_sample_dtype_offsets() cdef object perf_metrics_pfpp1x_sample_dtype_record = _numpy.dtype((_numpy.record, perf_metrics_pfpp1x_sample_dtype)) @@ -29488,16 +30228,21 @@ cdef class PerfMetricsPfpp1xSample: cdef _get_pwr_model_metrics_dlppm1x_dramclk_estimates_dtype_offsets(): - cdef nvmlPwrModelMetricsDlppm1xDramclkEstimates_t pod - return _numpy.dtype({ - 'names': ['estimated_metrics', 'num_estimated_metrics'], - 'formats': [(pwr_model_metrics_dlppm1x_dtype, 8), _numpy.uint8], - 'offsets': [ - (&(pod.estimatedMetrics)) - (&pod), - (&(pod.numEstimatedMetrics)) - (&pod), - ], - 'itemsize': sizeof(nvmlPwrModelMetricsDlppm1xDramclkEstimates_t), - }) + cdef nvmlPwrModelMetricsDlppm1xDramclkEstimates_t *pod = _cyb_calloc(1, sizeof(nvmlPwrModelMetricsDlppm1xDramclkEstimates_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPwrModelMetricsDlppm1xDramclkEstimates_t") + try: + return _numpy.dtype({ + 'names': ['estimated_metrics', 'num_estimated_metrics'], + 'formats': [(pwr_model_metrics_dlppm1x_dtype, 8), _numpy.uint8], + 'offsets': [ + (&(pod.estimatedMetrics)) - (pod), + (&(pod.numEstimatedMetrics)) - (pod), + ], + 'itemsize': sizeof(nvmlPwrModelMetricsDlppm1xDramclkEstimates_t), + }) + finally: + _cyb_free(pod) pwr_model_metrics_dlppm1x_dramclk_estimates_dtype = _get_pwr_model_metrics_dlppm1x_dramclk_estimates_dtype_offsets() cdef object pwr_model_metrics_dlppm1x_dramclk_estimates_dtype_record = _numpy.dtype((_numpy.record, pwr_model_metrics_dlppm1x_dramclk_estimates_dtype)) @@ -29651,20 +30396,25 @@ cdef class PwrModelMetricsDlppm1xDramclkEstimates: cdef _get_observed_metrics_dtype_offsets(): - cdef nvmlObservedMetrics_t pod - return _numpy.dtype({ - 'names': ['initial_dramclk_est', 'b_valid', 'core_rail', 'fb_rail', 'tgp_pwr_tuple', 'perf_metrics'], - 'formats': [(pwr_model_metrics_dlppm1x_dramclk_estimates_dtype, 3), _numpy.uint8, core_rail_metrics_dtype, rail_metrics_dtype, pmgr_pwr_tuple_dtype, pwr_model_metrics_dlppm1x_perf_dtype], - 'offsets': [ - (&(pod.initialDramclkEst)) - (&pod), - (&(pod.bValid)) - (&pod), - (&(pod.coreRail)) - (&pod), - (&(pod.fbRail)) - (&pod), - (&(pod.tgpPwrTuple)) - (&pod), - (&(pod.perfMetrics)) - (&pod), - ], - 'itemsize': sizeof(nvmlObservedMetrics_t), - }) + cdef nvmlObservedMetrics_t *pod = _cyb_calloc(1, sizeof(nvmlObservedMetrics_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlObservedMetrics_t") + try: + return _numpy.dtype({ + 'names': ['initial_dramclk_est', 'b_valid', 'core_rail', 'fb_rail', 'tgp_pwr_tuple', 'perf_metrics'], + 'formats': [(pwr_model_metrics_dlppm1x_dramclk_estimates_dtype, 3), _numpy.uint8, core_rail_metrics_dtype, rail_metrics_dtype, pmgr_pwr_tuple_dtype, pwr_model_metrics_dlppm1x_perf_dtype], + 'offsets': [ + (&(pod.initialDramclkEst)) - (pod), + (&(pod.bValid)) - (pod), + (&(pod.coreRail)) - (pod), + (&(pod.fbRail)) - (pod), + (&(pod.tgpPwrTuple)) - (pod), + (&(pod.perfMetrics)) - (pod), + ], + 'itemsize': sizeof(nvmlObservedMetrics_t), + }) + finally: + _cyb_free(pod) observed_metrics_dtype = _get_observed_metrics_dtype_offsets() cdef object observed_metrics_dtype_record = _numpy.dtype((_numpy.record, observed_metrics_dtype)) @@ -29865,15 +30615,20 @@ cdef class ObservedMetrics: cdef _get_perf_metrics_dlppc2x_sample_dtype_offsets(): - cdef nvmlPerfMetricsDlppc2xSample_t pod - return _numpy.dtype({ - 'names': ['observed_metrics'], - 'formats': [observed_metrics_dtype], - 'offsets': [ - (&(pod.observedMetrics)) - (&pod), - ], - 'itemsize': sizeof(nvmlPerfMetricsDlppc2xSample_t), - }) + cdef nvmlPerfMetricsDlppc2xSample_t *pod = _cyb_calloc(1, sizeof(nvmlPerfMetricsDlppc2xSample_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPerfMetricsDlppc2xSample_t") + try: + return _numpy.dtype({ + 'names': ['observed_metrics'], + 'formats': [observed_metrics_dtype], + 'offsets': [ + (&(pod.observedMetrics)) - (pod), + ], + 'itemsize': sizeof(nvmlPerfMetricsDlppc2xSample_t), + }) + finally: + _cyb_free(pod) perf_metrics_dlppc2x_sample_dtype = _get_perf_metrics_dlppc2x_sample_dtype_offsets() cdef object perf_metrics_dlppc2x_sample_dtype_record = _numpy.dtype((_numpy.record, perf_metrics_dlppc2x_sample_dtype)) @@ -30017,16 +30772,21 @@ cdef class PerfMetricsDlppc2xSample: cdef _get__py_anon_pod8_dtype_offsets(): - cdef cuda_bindings_nvml__anon_pod8 pod - return _numpy.dtype({ - 'names': ['dlppc2x', 'pfpp1x'], - 'formats': [perf_metrics_dlppc2x_sample_dtype, perf_metrics_pfpp1x_sample_dtype], - 'offsets': [ - (&(pod.dlppc2x)) - (&pod), - (&(pod.pfpp1x)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_nvml__anon_pod8), - }) + cdef cuda_bindings_nvml__anon_pod8 *pod = _cyb_calloc(1, sizeof(cuda_bindings_nvml__anon_pod8)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_nvml__anon_pod8") + try: + return _numpy.dtype({ + 'names': ['dlppc2x', 'pfpp1x'], + 'formats': [perf_metrics_dlppc2x_sample_dtype, perf_metrics_pfpp1x_sample_dtype], + 'offsets': [ + (&(pod.dlppc2x)) - (pod), + (&(pod.pfpp1x)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_nvml__anon_pod8), + }) + finally: + _cyb_free(pod) _py_anon_pod8_dtype = _get__py_anon_pod8_dtype_offsets() @@ -30178,16 +30938,21 @@ cdef class _py_anon_pod8: cdef _get_perf_metric_controller_sample_dtype_offsets(): - cdef nvmlPerfMetricControllerSample_t pod - return _numpy.dtype({ - 'names': ['controller_type', 'data_'], - 'formats': [_numpy.uint32, _py_anon_pod8_dtype], - 'offsets': [ - (&(pod.controllerType)) - (&pod), - (&(pod.data)) - (&pod), - ], - 'itemsize': sizeof(nvmlPerfMetricControllerSample_t), - }) + cdef nvmlPerfMetricControllerSample_t *pod = _cyb_calloc(1, sizeof(nvmlPerfMetricControllerSample_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPerfMetricControllerSample_t") + try: + return _numpy.dtype({ + 'names': ['controller_type', 'data_'], + 'formats': [_numpy.uint32, _py_anon_pod8_dtype], + 'offsets': [ + (&(pod.controllerType)) - (pod), + (&(pod.data)) - (pod), + ], + 'itemsize': sizeof(nvmlPerfMetricControllerSample_t), + }) + finally: + _cyb_free(pod) perf_metric_controller_sample_dtype = _get_perf_metric_controller_sample_dtype_offsets() cdef object perf_metric_controller_sample_dtype_record = _numpy.dtype((_numpy.record, perf_metric_controller_sample_dtype)) @@ -30344,16 +31109,21 @@ cdef class PerfMetricControllerSample: cdef _get_perf_metrics_sample_dtype_offsets(): - cdef nvmlPerfMetricsSample_t pod - return _numpy.dtype({ - 'names': ['num_controller_data', 'controller_data'], - 'formats': [_numpy.uint8, (perf_metric_controller_sample_dtype, 4)], - 'offsets': [ - (&(pod.numControllerData)) - (&pod), - (&(pod.controllerData)) - (&pod), - ], - 'itemsize': sizeof(nvmlPerfMetricsSample_t), - }) + cdef nvmlPerfMetricsSample_t *pod = _cyb_calloc(1, sizeof(nvmlPerfMetricsSample_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPerfMetricsSample_t") + try: + return _numpy.dtype({ + 'names': ['num_controller_data', 'controller_data'], + 'formats': [_numpy.uint8, (perf_metric_controller_sample_dtype, 4)], + 'offsets': [ + (&(pod.numControllerData)) - (pod), + (&(pod.controllerData)) - (pod), + ], + 'itemsize': sizeof(nvmlPerfMetricsSample_t), + }) + finally: + _cyb_free(pod) perf_metrics_sample_dtype = _get_perf_metrics_sample_dtype_offsets() cdef object perf_metrics_sample_dtype_record = _numpy.dtype((_numpy.record, perf_metrics_sample_dtype)) @@ -30507,16 +31277,21 @@ cdef class PerfMetricsSample: cdef _get_perf_metrics_samples_v1_dtype_offsets(): - cdef nvmlPerfMetricsSamples_v1_t pod - return _numpy.dtype({ - 'names': ['num_samples', 'samples'], - 'formats': [_numpy.uint32, (perf_metrics_sample_dtype, 13)], - 'offsets': [ - (&(pod.numSamples)) - (&pod), - (&(pod.samples)) - (&pod), - ], - 'itemsize': sizeof(nvmlPerfMetricsSamples_v1_t), - }) + cdef nvmlPerfMetricsSamples_v1_t *pod = _cyb_calloc(1, sizeof(nvmlPerfMetricsSamples_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPerfMetricsSamples_v1_t") + try: + return _numpy.dtype({ + 'names': ['num_samples', 'samples'], + 'formats': [_numpy.uint32, (perf_metrics_sample_dtype, 13)], + 'offsets': [ + (&(pod.numSamples)) - (pod), + (&(pod.samples)) - (pod), + ], + 'itemsize': sizeof(nvmlPerfMetricsSamples_v1_t), + }) + finally: + _cyb_free(pod) perf_metrics_samples_v1_dtype = _get_perf_metrics_samples_v1_dtype_offsets() @@ -33145,8 +33920,8 @@ cpdef unsigned long long device_get_total_ecc_errors(intptr_t device, int error_ device (intptr_t): The identifier of the target device. error_type (MemoryErrorType): Flag that specifies the type of the errors. - counter_type (EccCounterType): Flag that specifies the counter- - type of the errors. + counter_type (EccCounterType): Flag that specifies the + counter-type of the errors. Returns: unsigned long long: Reference in which to return the specified ECC @@ -33179,8 +33954,8 @@ cpdef unsigned long long device_get_memory_error_counter(intptr_t device, int er device (intptr_t): The identifier of the target device. error_type (MemoryErrorType): Flag that specifies the type of error. - counter_type (EccCounterType): Flag that specifies the counter- - type of the errors. + counter_type (EccCounterType): Flag that specifies the + counter-type of the errors. location_type (MemoryLocation): Specifies the location of the counter. @@ -33189,8 +33964,8 @@ cpdef unsigned long long device_get_memory_error_counter(intptr_t device, int er .. note:: On MIG-enabled GPUs, per instance information can be queried using specific MIG - device handles. Per instance information is currently only supported for non- - DRAM uncorrectable volatile errors. Querying volatile errors using device + device handles. Per instance information is currently only supported for + non-DRAM uncorrectable volatile errors. Querying volatile errors using device handles is currently not supported. .. seealso:: `nvmlDeviceGetMemoryErrorCounter` """ @@ -33590,9 +34365,9 @@ cpdef object device_get_compute_running_processes_v3(intptr_t device): .. note:: In MIG mode, if device handle is provided, the API returns aggregate information, only if the caller has appropriate privileges. Per-instance - information can be queried by using specific MIG device handles. Querying per- - instance information using MIG device handles is not supported if the device is - in vGPU Host virtualization mode. + information can be queried by using specific MIG device handles. Querying + per-instance information using MIG device handles is not supported if the + device is in vGPU Host virtualization mode. .. seealso:: `nvmlDeviceGetComputeRunningProcesses_v3` """ cdef unsigned int[1] info_count = [0] @@ -33633,9 +34408,9 @@ cpdef object device_get_graphics_running_processes_v3(intptr_t device): .. note:: In MIG mode, if device handle is provided, the API returns aggregate information, only if the caller has appropriate privileges. Per-instance - information can be queried by using specific MIG device handles. Querying per- - instance information using MIG device handles is not supported if the device is - in vGPU Host virtualization mode. + information can be queried by using specific MIG device handles. Querying + per-instance information using MIG device handles is not supported if the + device is in vGPU Host virtualization mode. .. seealso:: `nvmlDeviceGetGraphicsRunningProcesses_v3` """ cdef unsigned int[1] info_count = [0] @@ -33677,9 +34452,9 @@ cpdef object device_get_mps_compute_running_processes_v3(intptr_t device): .. note:: In MIG mode, if device handle is provided, the API returns aggregate information, only if the caller has appropriate privileges. Per-instance - information can be queried by using specific MIG device handles. Querying per- - instance information using MIG device handles is not supported if the device is - in vGPU Host virtualization mode. + information can be queried by using specific MIG device handles. Querying + per-instance information using MIG device handles is not supported if the + device is in vGPU Host virtualization mode. .. seealso:: `nvmlDeviceGetMPSComputeRunningProcesses_v3` """ cdef unsigned int[1] info_count = [0] @@ -35951,8 +36726,8 @@ cpdef str vgpu_type_get_license(unsigned int vgpu_type_id): The license type and version required to run the specified vGPU type is returned as an alphanumeric string, in the form ",", for example "GRID-Virtual-PC,2.0". If a vGPU is runnable with* more than one type - of license, the licenses are delimited by a semicolon, for example "GRID- - Virtual-PC,2.0;GRID-Virtual-WS,2.0;GRID-Virtual-WS-Ext,2.0". + of license, the licenses are delimited by a semicolon, for example + "GRID-Virtual-PC,2.0;GRID-Virtual-WS,2.0;GRID-Virtual-WS-Ext,2.0". The total length of the returned string will not exceed 128 characters, including the NUL terminator. See nvmlVgpuConstants::NVML_GRID_LICENSE_BUFFER_SIZE. @@ -36823,13 +37598,13 @@ cpdef tuple device_get_vgpu_utilization(intptr_t device, unsigned long long last For Kepler ™️ or newer fully supported devices. Reads recent utilization of GPU SM (3D/Compute), framebuffer, video encoder, and video decoder for vGPU instances running on a device. Utilization values - are returned as an array of utilization sample structures in the caller- - supplied buffer pointed at by ``utilization_samples``. One utilization sample - structure is returned per vGPU instance, and includes the CPU timestamp at - which the samples were recorded. Individual utilization values are returned as - "unsigned int" values in ``nvmlValue_t`` unions. The function sets the caller- - supplied ``sample_val_type`` to NVML_VALUE_TYPE_UNSIGNED_INT to indicate the - returned value type. + are returned as an array of utilization sample structures in the + caller-supplied buffer pointed at by ``utilization_samples``. One utilization + sample structure is returned per vGPU instance, and includes the CPU timestamp + at which the samples were recorded. Individual utilization values are returned + as "unsigned int" values in ``nvmlValue_t`` unions. The function sets the + caller-supplied ``sample_val_type`` to NVML_VALUE_TYPE_UNSIGNED_INT to indicate + the returned value type. To read utilization values, first determine the size of buffer required to hold the samples by invoking the function with ``utilization_samples`` set to NULL. The function will return NVML_ERROR_INSUFFICIENT_SIZE, with the current vGPU diff --git a/cuda_bindings_12/cuda/bindings/nvvm.pyx b/cuda_bindings_12/cuda/bindings/nvvm.pyx index 52bfa173b5f7..7b3664caac84 100644 --- a/cuda_bindings_12/cuda/bindings/nvvm.pyx +++ b/cuda_bindings_12/cuda/bindings/nvvm.pyx @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated across versions from 12.0.1 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=737e7153c4954ec8a2b0dedd50729ee160589ccef13b0e3f512b6c7645d83f62 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=404e6696c1e11fe6b1854c8b341bfba192fb90689ae0a69b3110c86d7c51ac5f # <<<< PREAMBLE CONTENT >>>> @@ -303,13 +303,13 @@ cpdef compile_program(intptr_t prog, int num_options, options): - -prec-sqrt=. - 0 (use a faster approximation for single-precision floating-point square root). - - 1 (default, use IEEE round-to-nearest mode for single-precision floating- - point square root). + - 1 (default, use IEEE round-to-nearest mode for single-precision + floating-point square root). - -prec-div=. - 0 (use a faster approximation for single-precision floating-point division and reciprocals). - - 1 (default, use IEEE round-to-nearest mode for single-precision floating- - point division and reciprocals). + - 1 (default, use IEEE round-to-nearest mode for single-precision + floating-point division and reciprocals). - -fma=. - 0 (disable FMA contraction). - 1 (default, enable FMA contraction). diff --git a/cuda_bindings_12/cuda/bindings/runtime.pyx b/cuda_bindings_12/cuda/bindings/runtime.pyx index 65463e6cecef..215191ef316e 100644 --- a/cuda_bindings_12/cuda/bindings/runtime.pyx +++ b/cuda_bindings_12/cuda/bindings/runtime.pyx @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # This code was automatically generated with version 12.9.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=756f2405020fb6cc7847ccf6966b5246e1b1d6a247d0e34a64428f069dc3f603 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=be66dc3db6a8e66386b35398ce32c2a7f5edc02e1aa834f0f3c1c77c20d8d8e3 from typing import Any, Optional import cython import ctypes @@ -17803,7 +17803,7 @@ cdef class anon_union11: def pArray(self): return [cudaArray_t(init_value=_pArray) for _pArray in self._pvt_ptr[0].frame.pArray] @pArray.setter - def pArray(self, pArray : list[cudaArray_t]): + def pArray(self, pArray : list[cudaArray_t | int]): if len(pArray) != 3: raise IndexError('not enough values found during array assignment, expected 3, got', len(pArray)) pArray = [int(_pArray) for _pArray in pArray] diff --git a/cuda_bindings_13/cuda/bindings/_internal/_fast_enum.py b/cuda_bindings_13/cuda/bindings/_internal/_fast_enum.py index 18ad0239def5..f5ced71c2884 100644 --- a/cuda_bindings_13/cuda/bindings/_internal/_fast_enum.py +++ b/cuda_bindings_13/cuda/bindings/_internal/_fast_enum.py @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=35d522fae601127f3ffc9d0de45d9adf2572934ee3308f5d99567aa8efd5ae77 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=b35c6de7463e36646e40b3ab553e165d4e756a14303a8f1fcddcd71325dafd40 """ This is a replacement for the stdlib enum.IntEnum. @@ -13,7 +13,8 @@ `cuda_bindings/tests/test_basics.py` for details. """ -from typing import Any, Iterator +from collections.abc import Iterator +from typing import Any class FastEnumMetaclass(type): diff --git a/cuda_bindings_13/cuda/bindings/_v2/driver.pyx b/cuda_bindings_13/cuda/bindings/_v2/driver.pyx index e06821de748f..a375a1879c1d 100644 --- a/cuda_bindings_13/cuda/bindings/_v2/driver.pyx +++ b/cuda_bindings_13/cuda/bindings/_v2/driver.pyx @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated across versions from 12.9.0 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=4ba4315630cca2c1ae2b59ef0a31d0eeec18669c33ce7af80429e8b3ec4c0d29 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=458291ffe3c940aeb35a9f0715a0fc125913a680017fa109e99dba45829412db # <<<< PREAMBLE CONTENT >>>> @@ -1020,10 +1020,11 @@ class LaunchMemSyncDomain(_cyb_FastEnum): specific stream / graph node / kernel launch. See `CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN`, `cuStreamSetAttribute`, `cuLaunchKernelEx`, `cuGraphKernelNodeSetAttribute`. Memory operations - done in kernels launched in different domains are considered system- - scope distanced. In other words, a GPU scoped memory synchronization is - not sufficient for memory order to be observed by kernels in another - memory synchronization domain even if they are on the same GPU. + done in kernels launched in different domains are considered + system-scope distanced. In other words, a GPU scoped memory + synchronization is not sufficient for memory order to be observed by + kernels in another memory synchronization domain even if they are on + the same GPU. See `CUlaunchMemSyncDomain`. """ @@ -2781,15 +2782,20 @@ cdef int check_status_size(int status) except 1 nogil: ############################################################################### cdef _get_uuid_dtype_offsets(): - cdef CUuuid pod - return _numpy.dtype({ - 'names': ['bytes'], - 'formats': [(_numpy.int8, 16)], - 'offsets': [ - (&(pod.bytes)) - (&pod), - ], - 'itemsize': sizeof(CUuuid), - }) + cdef CUuuid *pod = _cyb_calloc(1, sizeof(CUuuid)) + if pod == NULL: + raise MemoryError("Error allocating CUuuid") + try: + return _numpy.dtype({ + 'names': ['bytes'], + 'formats': [(_numpy.int8, 16)], + 'offsets': [ + (&(pod.bytes)) - (pod), + ], + 'itemsize': sizeof(CUuuid), + }) + finally: + _cyb_free(pod) uuid_dtype = _get_uuid_dtype_offsets() @@ -2924,15 +2930,20 @@ cdef class Uuid: cdef _get_mem_fabric_handle_v1_dtype_offsets(): - cdef CUmemFabricHandle_v1 pod - return _numpy.dtype({ - 'names': ['data_'], - 'formats': [(_numpy.uint8, 64)], - 'offsets': [ - (&(pod.data)) - (&pod), - ], - 'itemsize': sizeof(CUmemFabricHandle_v1), - }) + cdef CUmemFabricHandle_v1 *pod = _cyb_calloc(1, sizeof(CUmemFabricHandle_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUmemFabricHandle_v1") + try: + return _numpy.dtype({ + 'names': ['data_'], + 'formats': [(_numpy.uint8, 64)], + 'offsets': [ + (&(pod.data)) - (pod), + ], + 'itemsize': sizeof(CUmemFabricHandle_v1), + }) + finally: + _cyb_free(pod) mem_fabric_handle_v1_dtype = _get_mem_fabric_handle_v1_dtype_offsets() @@ -3055,15 +3066,20 @@ cdef class MemFabricHandle_v1: cdef _get_ipc_event_handle_v1_dtype_offsets(): - cdef CUipcEventHandle_v1 pod - return _numpy.dtype({ - 'names': ['reserved'], - 'formats': [(_numpy.int8, 64)], - 'offsets': [ - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(CUipcEventHandle_v1), - }) + cdef CUipcEventHandle_v1 *pod = _cyb_calloc(1, sizeof(CUipcEventHandle_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUipcEventHandle_v1") + try: + return _numpy.dtype({ + 'names': ['reserved'], + 'formats': [(_numpy.int8, 64)], + 'offsets': [ + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(CUipcEventHandle_v1), + }) + finally: + _cyb_free(pod) ipc_event_handle_v1_dtype = _get_ipc_event_handle_v1_dtype_offsets() @@ -3169,15 +3185,20 @@ cdef class IpcEventHandle_v1: cdef _get_ipc_mem_handle_v1_dtype_offsets(): - cdef CUipcMemHandle_v1 pod - return _numpy.dtype({ - 'names': ['reserved'], - 'formats': [(_numpy.int8, 64)], - 'offsets': [ - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(CUipcMemHandle_v1), - }) + cdef CUipcMemHandle_v1 *pod = _cyb_calloc(1, sizeof(CUipcMemHandle_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUipcMemHandle_v1") + try: + return _numpy.dtype({ + 'names': ['reserved'], + 'formats': [(_numpy.int8, 64)], + 'offsets': [ + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(CUipcMemHandle_v1), + }) + finally: + _cyb_free(pod) ipc_mem_handle_v1_dtype = _get_ipc_mem_handle_v1_dtype_offsets() @@ -3283,16 +3304,21 @@ cdef class IpcMemHandle_v1: cdef _get_stream_mem_op_flush_remote_writes_params_dtype_offsets(): - cdef CUstreamMemOpFlushRemoteWritesParams_st pod - return _numpy.dtype({ - 'names': ['operation', 'flags_'], - 'formats': [_numpy.int32, _numpy.uint32], - 'offsets': [ - (&(pod.operation)) - (&pod), - (&(pod.flags)) - (&pod), - ], - 'itemsize': sizeof(CUstreamMemOpFlushRemoteWritesParams_st), - }) + cdef CUstreamMemOpFlushRemoteWritesParams_st *pod = _cyb_calloc(1, sizeof(CUstreamMemOpFlushRemoteWritesParams_st)) + if pod == NULL: + raise MemoryError("Error allocating CUstreamMemOpFlushRemoteWritesParams_st") + try: + return _numpy.dtype({ + 'names': ['operation', 'flags_'], + 'formats': [_numpy.int32, _numpy.uint32], + 'offsets': [ + (&(pod.operation)) - (pod), + (&(pod.flags)) - (pod), + ], + 'itemsize': sizeof(CUstreamMemOpFlushRemoteWritesParams_st), + }) + finally: + _cyb_free(pod) stream_mem_op_flush_remote_writes_params_dtype = _get_stream_mem_op_flush_remote_writes_params_dtype_offsets() @@ -3432,16 +3458,21 @@ cdef class StreamMemOpFlushRemoteWritesParams: cdef _get_stream_mem_op_memory_barrier_params_dtype_offsets(): - cdef CUstreamMemOpMemoryBarrierParams_st pod - return _numpy.dtype({ - 'names': ['operation', 'flags_'], - 'formats': [_numpy.int32, _numpy.uint32], - 'offsets': [ - (&(pod.operation)) - (&pod), - (&(pod.flags)) - (&pod), - ], - 'itemsize': sizeof(CUstreamMemOpMemoryBarrierParams_st), - }) + cdef CUstreamMemOpMemoryBarrierParams_st *pod = _cyb_calloc(1, sizeof(CUstreamMemOpMemoryBarrierParams_st)) + if pod == NULL: + raise MemoryError("Error allocating CUstreamMemOpMemoryBarrierParams_st") + try: + return _numpy.dtype({ + 'names': ['operation', 'flags_'], + 'formats': [_numpy.int32, _numpy.uint32], + 'offsets': [ + (&(pod.operation)) - (pod), + (&(pod.flags)) - (pod), + ], + 'itemsize': sizeof(CUstreamMemOpMemoryBarrierParams_st), + }) + finally: + _cyb_free(pod) stream_mem_op_memory_barrier_params_dtype = _get_stream_mem_op_memory_barrier_params_dtype_offsets() @@ -3581,21 +3612,26 @@ cdef class StreamMemOpMemoryBarrierParams: cdef _get_stream_mem_op_atomic_reduction_params_dtype_offsets(): - cdef CUstreamMemOpAtomicReductionParams_st pod - return _numpy.dtype({ - 'names': ['operation', 'flags_', 'reduction_op', 'data_type', 'address', 'value', 'alias'], - 'formats': [_numpy.int32, _numpy.uint32, _numpy.int32, _numpy.int32, _numpy.uint64, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.operation)) - (&pod), - (&(pod.flags)) - (&pod), - (&(pod.reductionOp)) - (&pod), - (&(pod.dataType)) - (&pod), - (&(pod.address)) - (&pod), - (&(pod.value)) - (&pod), - (&(pod.alias)) - (&pod), - ], - 'itemsize': sizeof(CUstreamMemOpAtomicReductionParams_st), - }) + cdef CUstreamMemOpAtomicReductionParams_st *pod = _cyb_calloc(1, sizeof(CUstreamMemOpAtomicReductionParams_st)) + if pod == NULL: + raise MemoryError("Error allocating CUstreamMemOpAtomicReductionParams_st") + try: + return _numpy.dtype({ + 'names': ['operation', 'flags_', 'reduction_op', 'data_type', 'address', 'value', 'alias'], + 'formats': [_numpy.int32, _numpy.uint32, _numpy.int32, _numpy.int32, _numpy.uint64, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.operation)) - (pod), + (&(pod.flags)) - (pod), + (&(pod.reductionOp)) - (pod), + (&(pod.dataType)) - (pod), + (&(pod.address)) - (pod), + (&(pod.value)) - (pod), + (&(pod.alias)) - (pod), + ], + 'itemsize': sizeof(CUstreamMemOpAtomicReductionParams_st), + }) + finally: + _cyb_free(pod) stream_mem_op_atomic_reduction_params_dtype = _get_stream_mem_op_atomic_reduction_params_dtype_offsets() @@ -3790,15 +3826,20 @@ cdef class StreamMemOpAtomicReductionParams: cdef _get__py_anon_pod3_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod3 pod - return _numpy.dtype({ - 'names': ['bytes_over_budget'], - 'formats': [_numpy.uint64], - 'offsets': [ - (&(pod.bytesOverBudget)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod3), - }) + cdef cuda_bindings_driver__anon_pod3 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod3)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod3") + try: + return _numpy.dtype({ + 'names': ['bytes_over_budget'], + 'formats': [_numpy.uint64], + 'offsets': [ + (&(pod.bytesOverBudget)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod3), + }) + finally: + _cyb_free(pod) _py_anon_pod3_dtype = _get__py_anon_pod3_dtype_offsets() @@ -3927,24 +3968,29 @@ cdef class _py_anon_pod3: cdef _get_dev_prop_v1_dtype_offsets(): - cdef CUdevprop_v1 pod - return _numpy.dtype({ - 'names': ['max_threads_per_block', 'max_threads_dim', 'max_grid_size', 'shared_mem_per_block', 'total_constant_memory', 'simd_width', 'mem_pitch', 'regs_per_block', 'clock_rate', 'texture_align'], - 'formats': [_numpy.int32, (_numpy.int32, 3), (_numpy.int32, 3), _numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32], - 'offsets': [ - (&(pod.maxThreadsPerBlock)) - (&pod), - (&(pod.maxThreadsDim)) - (&pod), - (&(pod.maxGridSize)) - (&pod), - (&(pod.sharedMemPerBlock)) - (&pod), - (&(pod.totalConstantMemory)) - (&pod), - (&(pod.SIMDWidth)) - (&pod), - (&(pod.memPitch)) - (&pod), - (&(pod.regsPerBlock)) - (&pod), - (&(pod.clockRate)) - (&pod), - (&(pod.textureAlign)) - (&pod), - ], - 'itemsize': sizeof(CUdevprop_v1), - }) + cdef CUdevprop_v1 *pod = _cyb_calloc(1, sizeof(CUdevprop_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUdevprop_v1") + try: + return _numpy.dtype({ + 'names': ['max_threads_per_block', 'max_threads_dim', 'max_grid_size', 'shared_mem_per_block', 'total_constant_memory', 'simd_width', 'mem_pitch', 'regs_per_block', 'clock_rate', 'texture_align'], + 'formats': [_numpy.int32, (_numpy.int32, 3), (_numpy.int32, 3), _numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32], + 'offsets': [ + (&(pod.maxThreadsPerBlock)) - (pod), + (&(pod.maxThreadsDim)) - (pod), + (&(pod.maxGridSize)) - (pod), + (&(pod.sharedMemPerBlock)) - (pod), + (&(pod.totalConstantMemory)) - (pod), + (&(pod.SIMDWidth)) - (pod), + (&(pod.memPitch)) - (pod), + (&(pod.regsPerBlock)) - (pod), + (&(pod.clockRate)) - (pod), + (&(pod.textureAlign)) - (pod), + ], + 'itemsize': sizeof(CUdevprop_v1), + }) + finally: + _cyb_free(pod) dev_prop_v1_dtype = _get_dev_prop_v1_dtype_offsets() @@ -4172,19 +4218,24 @@ cdef class DevProp_v1: cdef _get_access_policy_window_v1_dtype_offsets(): - cdef CUaccessPolicyWindow_v1 pod - return _numpy.dtype({ - 'names': ['base_ptr', 'num_bytes', 'hit_ratio', 'hit_prop', 'miss_prop'], - 'formats': [_numpy.intp, _numpy.uint64, _numpy.float32, _numpy.int32, _numpy.int32], - 'offsets': [ - (&(pod.base_ptr)) - (&pod), - (&(pod.num_bytes)) - (&pod), - (&(pod.hitRatio)) - (&pod), - (&(pod.hitProp)) - (&pod), - (&(pod.missProp)) - (&pod), - ], - 'itemsize': sizeof(CUaccessPolicyWindow_v1), - }) + cdef CUaccessPolicyWindow_v1 *pod = _cyb_calloc(1, sizeof(CUaccessPolicyWindow_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUaccessPolicyWindow_v1") + try: + return _numpy.dtype({ + 'names': ['base_ptr', 'num_bytes', 'hit_ratio', 'hit_prop', 'miss_prop'], + 'formats': [_numpy.intp, _numpy.uint64, _numpy.float32, _numpy.int32, _numpy.int32], + 'offsets': [ + (&(pod.base_ptr)) - (pod), + (&(pod.num_bytes)) - (pod), + (&(pod.hitRatio)) - (pod), + (&(pod.hitProp)) - (pod), + (&(pod.missProp)) - (pod), + ], + 'itemsize': sizeof(CUaccessPolicyWindow_v1), + }) + finally: + _cyb_free(pod) access_policy_window_v1_dtype = _get_access_policy_window_v1_dtype_offsets() @@ -4345,26 +4396,31 @@ cdef class AccessPolicyWindow_v1: cdef _get_kernel_node_params_v2_dtype_offsets(): - cdef CUDA_KERNEL_NODE_PARAMS_v2 pod - return _numpy.dtype({ - 'names': ['func', 'grid_dim_x', 'grid_dim_y', 'grid_dim_z', 'block_dim_x', 'block_dim_y', 'block_dim_z', 'shared_mem_bytes', 'kernel_params', 'extra', 'kern', 'ctx'], - 'formats': [_numpy.intp, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.intp, _numpy.intp, _numpy.intp, _numpy.intp], - 'offsets': [ - (&(pod.func)) - (&pod), - (&(pod.gridDimX)) - (&pod), - (&(pod.gridDimY)) - (&pod), - (&(pod.gridDimZ)) - (&pod), - (&(pod.blockDimX)) - (&pod), - (&(pod.blockDimY)) - (&pod), - (&(pod.blockDimZ)) - (&pod), - (&(pod.sharedMemBytes)) - (&pod), - (&(pod.kernelParams)) - (&pod), - (&(pod.extra)) - (&pod), - (&(pod.kern)) - (&pod), - (&(pod.ctx)) - (&pod), - ], - 'itemsize': sizeof(CUDA_KERNEL_NODE_PARAMS_v2), - }) + cdef CUDA_KERNEL_NODE_PARAMS_v2 *pod = _cyb_calloc(1, sizeof(CUDA_KERNEL_NODE_PARAMS_v2)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_KERNEL_NODE_PARAMS_v2") + try: + return _numpy.dtype({ + 'names': ['func', 'grid_dim_x', 'grid_dim_y', 'grid_dim_z', 'block_dim_x', 'block_dim_y', 'block_dim_z', 'shared_mem_bytes', 'kernel_params', 'extra', 'kern', 'ctx'], + 'formats': [_numpy.intp, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.intp, _numpy.intp, _numpy.intp, _numpy.intp], + 'offsets': [ + (&(pod.func)) - (pod), + (&(pod.gridDimX)) - (pod), + (&(pod.gridDimY)) - (pod), + (&(pod.gridDimZ)) - (pod), + (&(pod.blockDimX)) - (pod), + (&(pod.blockDimY)) - (pod), + (&(pod.blockDimZ)) - (pod), + (&(pod.sharedMemBytes)) - (pod), + (&(pod.kernelParams)) - (pod), + (&(pod.extra)) - (pod), + (&(pod.kern)) - (pod), + (&(pod.ctx)) - (pod), + ], + 'itemsize': sizeof(CUDA_KERNEL_NODE_PARAMS_v2), + }) + finally: + _cyb_free(pod) kernel_node_params_v2_dtype = _get_kernel_node_params_v2_dtype_offsets() @@ -4602,26 +4658,31 @@ cdef class KernelNodeParams_v2: cdef _get_kernel_node_params_v3_dtype_offsets(): - cdef CUDA_KERNEL_NODE_PARAMS_v3 pod - return _numpy.dtype({ - 'names': ['func', 'grid_dim_x', 'grid_dim_y', 'grid_dim_z', 'block_dim_x', 'block_dim_y', 'block_dim_z', 'shared_mem_bytes', 'kernel_params', 'extra', 'kern', 'ctx'], - 'formats': [_numpy.intp, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.intp, _numpy.intp, _numpy.intp, _numpy.intp], - 'offsets': [ - (&(pod.func)) - (&pod), - (&(pod.gridDimX)) - (&pod), - (&(pod.gridDimY)) - (&pod), - (&(pod.gridDimZ)) - (&pod), - (&(pod.blockDimX)) - (&pod), - (&(pod.blockDimY)) - (&pod), - (&(pod.blockDimZ)) - (&pod), - (&(pod.sharedMemBytes)) - (&pod), - (&(pod.kernelParams)) - (&pod), - (&(pod.extra)) - (&pod), - (&(pod.kern)) - (&pod), - (&(pod.ctx)) - (&pod), - ], - 'itemsize': sizeof(CUDA_KERNEL_NODE_PARAMS_v3), - }) + cdef CUDA_KERNEL_NODE_PARAMS_v3 *pod = _cyb_calloc(1, sizeof(CUDA_KERNEL_NODE_PARAMS_v3)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_KERNEL_NODE_PARAMS_v3") + try: + return _numpy.dtype({ + 'names': ['func', 'grid_dim_x', 'grid_dim_y', 'grid_dim_z', 'block_dim_x', 'block_dim_y', 'block_dim_z', 'shared_mem_bytes', 'kernel_params', 'extra', 'kern', 'ctx'], + 'formats': [_numpy.intp, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.intp, _numpy.intp, _numpy.intp, _numpy.intp], + 'offsets': [ + (&(pod.func)) - (pod), + (&(pod.gridDimX)) - (pod), + (&(pod.gridDimY)) - (pod), + (&(pod.gridDimZ)) - (pod), + (&(pod.blockDimX)) - (pod), + (&(pod.blockDimY)) - (pod), + (&(pod.blockDimZ)) - (pod), + (&(pod.sharedMemBytes)) - (pod), + (&(pod.kernelParams)) - (pod), + (&(pod.extra)) - (pod), + (&(pod.kern)) - (pod), + (&(pod.ctx)) - (pod), + ], + 'itemsize': sizeof(CUDA_KERNEL_NODE_PARAMS_v3), + }) + finally: + _cyb_free(pod) kernel_node_params_v3_dtype = _get_kernel_node_params_v3_dtype_offsets() @@ -4871,20 +4932,25 @@ cdef class KernelNodeParams_v3: cdef _get_mem_set_node_params_v1_dtype_offsets(): - cdef CUDA_MEMSET_NODE_PARAMS_v1 pod - return _numpy.dtype({ - 'names': ['dst', 'pitch', 'value', 'element_size', 'width', 'height'], - 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.dst)) - (&pod), - (&(pod.pitch)) - (&pod), - (&(pod.value)) - (&pod), - (&(pod.elementSize)) - (&pod), - (&(pod.width)) - (&pod), - (&(pod.height)) - (&pod), - ], - 'itemsize': sizeof(CUDA_MEMSET_NODE_PARAMS_v1), - }) + cdef CUDA_MEMSET_NODE_PARAMS_v1 *pod = _cyb_calloc(1, sizeof(CUDA_MEMSET_NODE_PARAMS_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_MEMSET_NODE_PARAMS_v1") + try: + return _numpy.dtype({ + 'names': ['dst', 'pitch', 'value', 'element_size', 'width', 'height'], + 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.dst)) - (pod), + (&(pod.pitch)) - (pod), + (&(pod.value)) - (pod), + (&(pod.elementSize)) - (pod), + (&(pod.width)) - (pod), + (&(pod.height)) - (pod), + ], + 'itemsize': sizeof(CUDA_MEMSET_NODE_PARAMS_v1), + }) + finally: + _cyb_free(pod) mem_set_node_params_v1_dtype = _get_mem_set_node_params_v1_dtype_offsets() @@ -5056,21 +5122,26 @@ cdef class MemSetNodeParams_v1: cdef _get_mem_set_node_params_v2_dtype_offsets(): - cdef CUDA_MEMSET_NODE_PARAMS_v2 pod - return _numpy.dtype({ - 'names': ['dst', 'pitch', 'value', 'element_size', 'width', 'height', 'ctx'], - 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint64, _numpy.uint64, _numpy.intp], - 'offsets': [ - (&(pod.dst)) - (&pod), - (&(pod.pitch)) - (&pod), - (&(pod.value)) - (&pod), - (&(pod.elementSize)) - (&pod), - (&(pod.width)) - (&pod), - (&(pod.height)) - (&pod), - (&(pod.ctx)) - (&pod), - ], - 'itemsize': sizeof(CUDA_MEMSET_NODE_PARAMS_v2), - }) + cdef CUDA_MEMSET_NODE_PARAMS_v2 *pod = _cyb_calloc(1, sizeof(CUDA_MEMSET_NODE_PARAMS_v2)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_MEMSET_NODE_PARAMS_v2") + try: + return _numpy.dtype({ + 'names': ['dst', 'pitch', 'value', 'element_size', 'width', 'height', 'ctx'], + 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint64, _numpy.uint64, _numpy.intp], + 'offsets': [ + (&(pod.dst)) - (pod), + (&(pod.pitch)) - (pod), + (&(pod.value)) - (pod), + (&(pod.elementSize)) - (pod), + (&(pod.width)) - (pod), + (&(pod.height)) - (pod), + (&(pod.ctx)) - (pod), + ], + 'itemsize': sizeof(CUDA_MEMSET_NODE_PARAMS_v2), + }) + finally: + _cyb_free(pod) mem_set_node_params_v2_dtype = _get_mem_set_node_params_v2_dtype_offsets() @@ -5265,16 +5336,21 @@ cdef class MemSetNodeParams_v2: cdef _get_host_node_params_v1_dtype_offsets(): - cdef CUDA_HOST_NODE_PARAMS_v1 pod - return _numpy.dtype({ - 'names': ['fn', 'user_data'], - 'formats': [_numpy.intp, _numpy.intp], - 'offsets': [ - (&(pod.fn)) - (&pod), - (&(pod.userData)) - (&pod), - ], - 'itemsize': sizeof(CUDA_HOST_NODE_PARAMS_v1), - }) + cdef CUDA_HOST_NODE_PARAMS_v1 *pod = _cyb_calloc(1, sizeof(CUDA_HOST_NODE_PARAMS_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_HOST_NODE_PARAMS_v1") + try: + return _numpy.dtype({ + 'names': ['fn', 'user_data'], + 'formats': [_numpy.intp, _numpy.intp], + 'offsets': [ + (&(pod.fn)) - (pod), + (&(pod.userData)) - (pod), + ], + 'itemsize': sizeof(CUDA_HOST_NODE_PARAMS_v1), + }) + finally: + _cyb_free(pod) host_node_params_v1_dtype = _get_host_node_params_v1_dtype_offsets() @@ -5402,19 +5478,24 @@ cdef class HostNodeParams_v1: cdef _get_conditional_node_params_dtype_offsets(): - cdef CUDA_CONDITIONAL_NODE_PARAMS pod - return _numpy.dtype({ - 'names': ['handle', 'type', 'size_', 'ph_graph_out', 'ctx'], - 'formats': [_numpy.uint64, _numpy.int32, _numpy.uint32, _numpy.intp, _numpy.intp], - 'offsets': [ - (&(pod.handle)) - (&pod), - (&(pod.type)) - (&pod), - (&(pod.size)) - (&pod), - (&(pod.phGraph_out)) - (&pod), - (&(pod.ctx)) - (&pod), - ], - 'itemsize': sizeof(CUDA_CONDITIONAL_NODE_PARAMS), - }) + cdef CUDA_CONDITIONAL_NODE_PARAMS *pod = _cyb_calloc(1, sizeof(CUDA_CONDITIONAL_NODE_PARAMS)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_CONDITIONAL_NODE_PARAMS") + try: + return _numpy.dtype({ + 'names': ['handle', 'type', 'size_', 'ph_graph_out', 'ctx'], + 'formats': [_numpy.uint64, _numpy.int32, _numpy.uint32, _numpy.intp, _numpy.intp], + 'offsets': [ + (&(pod.handle)) - (pod), + (&(pod.type)) - (pod), + (&(pod.size)) - (pod), + (&(pod.phGraph_out)) - (pod), + (&(pod.ctx)) - (pod), + ], + 'itemsize': sizeof(CUDA_CONDITIONAL_NODE_PARAMS), + }) + finally: + _cyb_free(pod) conditional_node_params_dtype = _get_conditional_node_params_dtype_offsets() @@ -5587,18 +5668,23 @@ cdef class ConditionalNodeParams: cdef _get_graph_edge_data_dtype_offsets(): - cdef CUgraphEdgeData pod - return _numpy.dtype({ - 'names': ['from_port', 'to_port', 'type', 'reserved'], - 'formats': [_numpy.uint8, _numpy.uint8, _numpy.uint8, (_numpy.uint8, 5)], - 'offsets': [ - (&(pod.from_port)) - (&pod), - (&(pod.to_port)) - (&pod), - (&(pod.type)) - (&pod), - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(CUgraphEdgeData), - }) + cdef CUgraphEdgeData *pod = _cyb_calloc(1, sizeof(CUgraphEdgeData)) + if pod == NULL: + raise MemoryError("Error allocating CUgraphEdgeData") + try: + return _numpy.dtype({ + 'names': ['from_port', 'to_port', 'type', 'reserved'], + 'formats': [_numpy.uint8, _numpy.uint8, _numpy.uint8, (_numpy.uint8, 5)], + 'offsets': [ + (&(pod.from_port)) - (pod), + (&(pod.to_port)) - (pod), + (&(pod.type)) - (pod), + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(CUgraphEdgeData), + }) + finally: + _cyb_free(pod) graph_edge_data_dtype = _get_graph_edge_data_dtype_offsets() cdef object graph_edge_data_dtype_record = _numpy.dtype((_numpy.record, graph_edge_data_dtype)) @@ -5770,18 +5856,23 @@ cdef class GraphEdgeData: cdef _get_graph_instantiate_params_dtype_offsets(): - cdef CUDA_GRAPH_INSTANTIATE_PARAMS pod - return _numpy.dtype({ - 'names': ['flags_', 'h_upload_stream', 'h_err_node_out', 'result_out'], - 'formats': [_numpy.uint64, _numpy.intp, _numpy.intp, _numpy.int32], - 'offsets': [ - (&(pod.flags)) - (&pod), - (&(pod.hUploadStream)) - (&pod), - (&(pod.hErrNode_out)) - (&pod), - (&(pod.result_out)) - (&pod), - ], - 'itemsize': sizeof(CUDA_GRAPH_INSTANTIATE_PARAMS), - }) + cdef CUDA_GRAPH_INSTANTIATE_PARAMS *pod = _cyb_calloc(1, sizeof(CUDA_GRAPH_INSTANTIATE_PARAMS)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_GRAPH_INSTANTIATE_PARAMS") + try: + return _numpy.dtype({ + 'names': ['flags_', 'h_upload_stream', 'h_err_node_out', 'result_out'], + 'formats': [_numpy.uint64, _numpy.intp, _numpy.intp, _numpy.int32], + 'offsets': [ + (&(pod.flags)) - (pod), + (&(pod.hUploadStream)) - (pod), + (&(pod.hErrNode_out)) - (pod), + (&(pod.result_out)) - (pod), + ], + 'itemsize': sizeof(CUDA_GRAPH_INSTANTIATE_PARAMS), + }) + finally: + _cyb_free(pod) graph_instantiate_params_dtype = _get_graph_instantiate_params_dtype_offsets() @@ -5931,16 +6022,21 @@ cdef class GraphInstantiateParams: cdef _get_launch_mem_sync_domain_map_dtype_offsets(): - cdef CUlaunchMemSyncDomainMap pod - return _numpy.dtype({ - 'names': ['default_', 'remote'], - 'formats': [_numpy.uint8, _numpy.uint8], - 'offsets': [ - (&(pod.default_)) - (&pod), - (&(pod.remote)) - (&pod), - ], - 'itemsize': sizeof(CUlaunchMemSyncDomainMap), - }) + cdef CUlaunchMemSyncDomainMap *pod = _cyb_calloc(1, sizeof(CUlaunchMemSyncDomainMap)) + if pod == NULL: + raise MemoryError("Error allocating CUlaunchMemSyncDomainMap") + try: + return _numpy.dtype({ + 'names': ['default_', 'remote'], + 'formats': [_numpy.uint8, _numpy.uint8], + 'offsets': [ + (&(pod.default_)) - (pod), + (&(pod.remote)) - (pod), + ], + 'itemsize': sizeof(CUlaunchMemSyncDomainMap), + }) + finally: + _cyb_free(pod) launch_mem_sync_domain_map_dtype = _get_launch_mem_sync_domain_map_dtype_offsets() @@ -6080,17 +6176,22 @@ cdef class LaunchMemSyncDomainMap: cdef _get__py_anon_pod5_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod5 pod - return _numpy.dtype({ - 'names': ['x', 'y', 'z'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.x)) - (&pod), - (&(pod.y)) - (&pod), - (&(pod.z)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod5), - }) + cdef cuda_bindings_driver__anon_pod5 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod5)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod5") + try: + return _numpy.dtype({ + 'names': ['x', 'y', 'z'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.x)) - (pod), + (&(pod.y)) - (pod), + (&(pod.z)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod5), + }) + finally: + _cyb_free(pod) _py_anon_pod5_dtype = _get__py_anon_pod5_dtype_offsets() @@ -6241,17 +6342,22 @@ cdef class _py_anon_pod5: cdef _get__py_anon_pod6_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod6 pod - return _numpy.dtype({ - 'names': ['event', 'flags_', 'trigger_at_block_start'], - 'formats': [_numpy.intp, _numpy.int32, _numpy.int32], - 'offsets': [ - (&(pod.event)) - (&pod), - (&(pod.flags)) - (&pod), - (&(pod.triggerAtBlockStart)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod6), - }) + cdef cuda_bindings_driver__anon_pod6 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod6)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod6") + try: + return _numpy.dtype({ + 'names': ['event', 'flags_', 'trigger_at_block_start'], + 'formats': [_numpy.intp, _numpy.int32, _numpy.int32], + 'offsets': [ + (&(pod.event)) - (pod), + (&(pod.flags)) - (pod), + (&(pod.triggerAtBlockStart)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod6), + }) + finally: + _cyb_free(pod) _py_anon_pod6_dtype = _get__py_anon_pod6_dtype_offsets() @@ -6402,16 +6508,21 @@ cdef class _py_anon_pod6: cdef _get__py_anon_pod7_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod7 pod - return _numpy.dtype({ - 'names': ['event', 'flags_'], - 'formats': [_numpy.intp, _numpy.int32], - 'offsets': [ - (&(pod.event)) - (&pod), - (&(pod.flags)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod7), - }) + cdef cuda_bindings_driver__anon_pod7 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod7)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod7") + try: + return _numpy.dtype({ + 'names': ['event', 'flags_'], + 'formats': [_numpy.intp, _numpy.int32], + 'offsets': [ + (&(pod.event)) - (pod), + (&(pod.flags)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod7), + }) + finally: + _cyb_free(pod) _py_anon_pod7_dtype = _get__py_anon_pod7_dtype_offsets() @@ -6551,17 +6662,22 @@ cdef class _py_anon_pod7: cdef _get__py_anon_pod8_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod8 pod - return _numpy.dtype({ - 'names': ['x', 'y', 'z'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.x)) - (&pod), - (&(pod.y)) - (&pod), - (&(pod.z)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod8), - }) + cdef cuda_bindings_driver__anon_pod8 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod8)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod8") + try: + return _numpy.dtype({ + 'names': ['x', 'y', 'z'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.x)) - (pod), + (&(pod.y)) - (pod), + (&(pod.z)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod8), + }) + finally: + _cyb_free(pod) _py_anon_pod8_dtype = _get__py_anon_pod8_dtype_offsets() @@ -6712,16 +6828,21 @@ cdef class _py_anon_pod8: cdef _get__py_anon_pod9_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod9 pod - return _numpy.dtype({ - 'names': ['device_updatable', 'dev_node'], - 'formats': [_numpy.int32, _numpy.intp], - 'offsets': [ - (&(pod.deviceUpdatable)) - (&pod), - (&(pod.devNode)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod9), - }) + cdef cuda_bindings_driver__anon_pod9 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod9)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod9") + try: + return _numpy.dtype({ + 'names': ['device_updatable', 'dev_node'], + 'formats': [_numpy.int32, _numpy.intp], + 'offsets': [ + (&(pod.deviceUpdatable)) - (pod), + (&(pod.devNode)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod9), + }) + finally: + _cyb_free(pod) _py_anon_pod9_dtype = _get__py_anon_pod9_dtype_offsets() @@ -6861,15 +6982,20 @@ cdef class _py_anon_pod9: cdef _get_exec_affinity_sm_count_v1_dtype_offsets(): - cdef CUexecAffinitySmCount_v1 pod - return _numpy.dtype({ - 'names': ['val'], - 'formats': [_numpy.uint32], - 'offsets': [ - (&(pod.val)) - (&pod), - ], - 'itemsize': sizeof(CUexecAffinitySmCount_v1), - }) + cdef CUexecAffinitySmCount_v1 *pod = _cyb_calloc(1, sizeof(CUexecAffinitySmCount_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUexecAffinitySmCount_v1") + try: + return _numpy.dtype({ + 'names': ['val'], + 'formats': [_numpy.uint32], + 'offsets': [ + (&(pod.val)) - (pod), + ], + 'itemsize': sizeof(CUexecAffinitySmCount_v1), + }) + finally: + _cyb_free(pod) exec_affinity_sm_count_v1_dtype = _get_exec_affinity_sm_count_v1_dtype_offsets() @@ -6986,16 +7112,21 @@ cdef class ExecAffinitySmCount_v1: cdef _get_ctx_cig_param_dtype_offsets(): - cdef CUctxCigParam pod - return _numpy.dtype({ - 'names': ['shared_data_type', 'shared_data'], - 'formats': [_numpy.int32, _numpy.intp], - 'offsets': [ - (&(pod.sharedDataType)) - (&pod), - (&(pod.sharedData)) - (&pod), - ], - 'itemsize': sizeof(CUctxCigParam), - }) + cdef CUctxCigParam *pod = _cyb_calloc(1, sizeof(CUctxCigParam)) + if pod == NULL: + raise MemoryError("Error allocating CUctxCigParam") + try: + return _numpy.dtype({ + 'names': ['shared_data_type', 'shared_data'], + 'formats': [_numpy.int32, _numpy.intp], + 'offsets': [ + (&(pod.sharedDataType)) - (pod), + (&(pod.sharedData)) - (pod), + ], + 'itemsize': sizeof(CUctxCigParam), + }) + finally: + _cyb_free(pod) ctx_cig_param_dtype = _get_ctx_cig_param_dtype_offsets() @@ -7123,18 +7254,23 @@ cdef class CtxCigParam: cdef _get_library_host_universal_function_and_data_table_dtype_offsets(): - cdef CUlibraryHostUniversalFunctionAndDataTable pod - return _numpy.dtype({ - 'names': ['function_table', 'function_window_size', 'data_table', 'data_window_size'], - 'formats': [_numpy.intp, _numpy.uint64, _numpy.intp, _numpy.uint64], - 'offsets': [ - (&(pod.functionTable)) - (&pod), - (&(pod.functionWindowSize)) - (&pod), - (&(pod.dataTable)) - (&pod), - (&(pod.dataWindowSize)) - (&pod), - ], - 'itemsize': sizeof(CUlibraryHostUniversalFunctionAndDataTable), - }) + cdef CUlibraryHostUniversalFunctionAndDataTable *pod = _cyb_calloc(1, sizeof(CUlibraryHostUniversalFunctionAndDataTable)) + if pod == NULL: + raise MemoryError("Error allocating CUlibraryHostUniversalFunctionAndDataTable") + try: + return _numpy.dtype({ + 'names': ['function_table', 'function_window_size', 'data_table', 'data_window_size'], + 'formats': [_numpy.intp, _numpy.uint64, _numpy.intp, _numpy.uint64], + 'offsets': [ + (&(pod.functionTable)) - (pod), + (&(pod.functionWindowSize)) - (pod), + (&(pod.dataTable)) - (pod), + (&(pod.dataWindowSize)) - (pod), + ], + 'itemsize': sizeof(CUlibraryHostUniversalFunctionAndDataTable), + }) + finally: + _cyb_free(pod) library_host_universal_function_and_data_table_dtype = _get_library_host_universal_function_and_data_table_dtype_offsets() @@ -7284,30 +7420,35 @@ cdef class LibraryHostUniversalFunctionAndDataTable: cdef _get_mem_cpy2d_v2_dtype_offsets(): - cdef CUDA_MEMCPY2D_v2 pod - return _numpy.dtype({ - 'names': ['src_x_in_bytes', 'src_y', 'src_memory_type', 'src_host', 'src_device', 'src_array', 'src_pitch', 'dst_x_in_bytes', 'dst_y', 'dst_memory_type', 'dst_host', 'dst_device', 'dst_array', 'dst_pitch', 'width_in_bytes', 'height'], - 'formats': [_numpy.uint64, _numpy.uint64, _numpy.int32, _numpy.intp, _numpy.uint64, _numpy.intp, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.int32, _numpy.intp, _numpy.uint64, _numpy.intp, _numpy.uint64, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.srcXInBytes)) - (&pod), - (&(pod.srcY)) - (&pod), - (&(pod.srcMemoryType)) - (&pod), - (&(pod.srcHost)) - (&pod), - (&(pod.srcDevice)) - (&pod), - (&(pod.srcArray)) - (&pod), - (&(pod.srcPitch)) - (&pod), - (&(pod.dstXInBytes)) - (&pod), - (&(pod.dstY)) - (&pod), - (&(pod.dstMemoryType)) - (&pod), - (&(pod.dstHost)) - (&pod), - (&(pod.dstDevice)) - (&pod), - (&(pod.dstArray)) - (&pod), - (&(pod.dstPitch)) - (&pod), - (&(pod.WidthInBytes)) - (&pod), - (&(pod.Height)) - (&pod), - ], - 'itemsize': sizeof(CUDA_MEMCPY2D_v2), - }) + cdef CUDA_MEMCPY2D_v2 *pod = _cyb_calloc(1, sizeof(CUDA_MEMCPY2D_v2)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_MEMCPY2D_v2") + try: + return _numpy.dtype({ + 'names': ['src_x_in_bytes', 'src_y', 'src_memory_type', 'src_host', 'src_device', 'src_array', 'src_pitch', 'dst_x_in_bytes', 'dst_y', 'dst_memory_type', 'dst_host', 'dst_device', 'dst_array', 'dst_pitch', 'width_in_bytes', 'height'], + 'formats': [_numpy.uint64, _numpy.uint64, _numpy.int32, _numpy.intp, _numpy.uint64, _numpy.intp, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.int32, _numpy.intp, _numpy.uint64, _numpy.intp, _numpy.uint64, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.srcXInBytes)) - (pod), + (&(pod.srcY)) - (pod), + (&(pod.srcMemoryType)) - (pod), + (&(pod.srcHost)) - (pod), + (&(pod.srcDevice)) - (pod), + (&(pod.srcArray)) - (pod), + (&(pod.srcPitch)) - (pod), + (&(pod.dstXInBytes)) - (pod), + (&(pod.dstY)) - (pod), + (&(pod.dstMemoryType)) - (pod), + (&(pod.dstHost)) - (pod), + (&(pod.dstDevice)) - (pod), + (&(pod.dstArray)) - (pod), + (&(pod.dstPitch)) - (pod), + (&(pod.WidthInBytes)) - (pod), + (&(pod.Height)) - (pod), + ], + 'itemsize': sizeof(CUDA_MEMCPY2D_v2), + }) + finally: + _cyb_free(pod) mem_cpy2d_v2_dtype = _get_mem_cpy2d_v2_dtype_offsets() @@ -7589,39 +7730,44 @@ cdef class MemCpy2d_v2: cdef _get_mem_cpy3d_v2_dtype_offsets(): - cdef CUDA_MEMCPY3D_v2 pod - return _numpy.dtype({ - 'names': ['src_x_in_bytes', 'src_y', 'src_z', 'src_lod', 'src_memory_type', 'src_host', 'src_device', 'src_array', 'reserved0', 'src_pitch', 'src_height', 'dst_x_in_bytes', 'dst_y', 'dst_z', 'dst_lod', 'dst_memory_type', 'dst_host', 'dst_device', 'dst_array', 'reserved1', 'dst_pitch', 'dst_height', 'width_in_bytes', 'height', 'depth'], - 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.int32, _numpy.intp, _numpy.uint64, _numpy.intp, _numpy.intp, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.int32, _numpy.intp, _numpy.uint64, _numpy.intp, _numpy.intp, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.srcXInBytes)) - (&pod), - (&(pod.srcY)) - (&pod), - (&(pod.srcZ)) - (&pod), - (&(pod.srcLOD)) - (&pod), - (&(pod.srcMemoryType)) - (&pod), - (&(pod.srcHost)) - (&pod), - (&(pod.srcDevice)) - (&pod), - (&(pod.srcArray)) - (&pod), - (&(pod.reserved0)) - (&pod), - (&(pod.srcPitch)) - (&pod), - (&(pod.srcHeight)) - (&pod), - (&(pod.dstXInBytes)) - (&pod), - (&(pod.dstY)) - (&pod), - (&(pod.dstZ)) - (&pod), - (&(pod.dstLOD)) - (&pod), - (&(pod.dstMemoryType)) - (&pod), - (&(pod.dstHost)) - (&pod), - (&(pod.dstDevice)) - (&pod), - (&(pod.dstArray)) - (&pod), - (&(pod.reserved1)) - (&pod), - (&(pod.dstPitch)) - (&pod), - (&(pod.dstHeight)) - (&pod), - (&(pod.WidthInBytes)) - (&pod), - (&(pod.Height)) - (&pod), - (&(pod.Depth)) - (&pod), - ], - 'itemsize': sizeof(CUDA_MEMCPY3D_v2), - }) + cdef CUDA_MEMCPY3D_v2 *pod = _cyb_calloc(1, sizeof(CUDA_MEMCPY3D_v2)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_MEMCPY3D_v2") + try: + return _numpy.dtype({ + 'names': ['src_x_in_bytes', 'src_y', 'src_z', 'src_lod', 'src_memory_type', 'src_host', 'src_device', 'src_array', 'reserved0', 'src_pitch', 'src_height', 'dst_x_in_bytes', 'dst_y', 'dst_z', 'dst_lod', 'dst_memory_type', 'dst_host', 'dst_device', 'dst_array', 'reserved1', 'dst_pitch', 'dst_height', 'width_in_bytes', 'height', 'depth'], + 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.int32, _numpy.intp, _numpy.uint64, _numpy.intp, _numpy.intp, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.int32, _numpy.intp, _numpy.uint64, _numpy.intp, _numpy.intp, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.srcXInBytes)) - (pod), + (&(pod.srcY)) - (pod), + (&(pod.srcZ)) - (pod), + (&(pod.srcLOD)) - (pod), + (&(pod.srcMemoryType)) - (pod), + (&(pod.srcHost)) - (pod), + (&(pod.srcDevice)) - (pod), + (&(pod.srcArray)) - (pod), + (&(pod.reserved0)) - (pod), + (&(pod.srcPitch)) - (pod), + (&(pod.srcHeight)) - (pod), + (&(pod.dstXInBytes)) - (pod), + (&(pod.dstY)) - (pod), + (&(pod.dstZ)) - (pod), + (&(pod.dstLOD)) - (pod), + (&(pod.dstMemoryType)) - (pod), + (&(pod.dstHost)) - (pod), + (&(pod.dstDevice)) - (pod), + (&(pod.dstArray)) - (pod), + (&(pod.reserved1)) - (pod), + (&(pod.dstPitch)) - (pod), + (&(pod.dstHeight)) - (pod), + (&(pod.WidthInBytes)) - (pod), + (&(pod.Height)) - (pod), + (&(pod.Depth)) - (pod), + ], + 'itemsize': sizeof(CUDA_MEMCPY3D_v2), + }) + finally: + _cyb_free(pod) mem_cpy3d_v2_dtype = _get_mem_cpy3d_v2_dtype_offsets() @@ -7980,39 +8126,44 @@ cdef class MemCpy3d_v2: cdef _get_mem_cpy3d_peer_v1_dtype_offsets(): - cdef CUDA_MEMCPY3D_PEER_v1 pod - return _numpy.dtype({ - 'names': ['src_x_in_bytes', 'src_y', 'src_z', 'src_lod', 'src_memory_type', 'src_host', 'src_device', 'src_array', 'src_context', 'src_pitch', 'src_height', 'dst_x_in_bytes', 'dst_y', 'dst_z', 'dst_lod', 'dst_memory_type', 'dst_host', 'dst_device', 'dst_array', 'dst_context', 'dst_pitch', 'dst_height', 'width_in_bytes', 'height', 'depth'], - 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.int32, _numpy.intp, _numpy.uint64, _numpy.intp, _numpy.intp, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.int32, _numpy.intp, _numpy.uint64, _numpy.intp, _numpy.intp, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.srcXInBytes)) - (&pod), - (&(pod.srcY)) - (&pod), - (&(pod.srcZ)) - (&pod), - (&(pod.srcLOD)) - (&pod), - (&(pod.srcMemoryType)) - (&pod), - (&(pod.srcHost)) - (&pod), - (&(pod.srcDevice)) - (&pod), - (&(pod.srcArray)) - (&pod), - (&(pod.srcContext)) - (&pod), - (&(pod.srcPitch)) - (&pod), - (&(pod.srcHeight)) - (&pod), - (&(pod.dstXInBytes)) - (&pod), - (&(pod.dstY)) - (&pod), - (&(pod.dstZ)) - (&pod), - (&(pod.dstLOD)) - (&pod), - (&(pod.dstMemoryType)) - (&pod), - (&(pod.dstHost)) - (&pod), - (&(pod.dstDevice)) - (&pod), - (&(pod.dstArray)) - (&pod), - (&(pod.dstContext)) - (&pod), - (&(pod.dstPitch)) - (&pod), - (&(pod.dstHeight)) - (&pod), - (&(pod.WidthInBytes)) - (&pod), - (&(pod.Height)) - (&pod), - (&(pod.Depth)) - (&pod), - ], - 'itemsize': sizeof(CUDA_MEMCPY3D_PEER_v1), - }) + cdef CUDA_MEMCPY3D_PEER_v1 *pod = _cyb_calloc(1, sizeof(CUDA_MEMCPY3D_PEER_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_MEMCPY3D_PEER_v1") + try: + return _numpy.dtype({ + 'names': ['src_x_in_bytes', 'src_y', 'src_z', 'src_lod', 'src_memory_type', 'src_host', 'src_device', 'src_array', 'src_context', 'src_pitch', 'src_height', 'dst_x_in_bytes', 'dst_y', 'dst_z', 'dst_lod', 'dst_memory_type', 'dst_host', 'dst_device', 'dst_array', 'dst_context', 'dst_pitch', 'dst_height', 'width_in_bytes', 'height', 'depth'], + 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.int32, _numpy.intp, _numpy.uint64, _numpy.intp, _numpy.intp, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.int32, _numpy.intp, _numpy.uint64, _numpy.intp, _numpy.intp, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.srcXInBytes)) - (pod), + (&(pod.srcY)) - (pod), + (&(pod.srcZ)) - (pod), + (&(pod.srcLOD)) - (pod), + (&(pod.srcMemoryType)) - (pod), + (&(pod.srcHost)) - (pod), + (&(pod.srcDevice)) - (pod), + (&(pod.srcArray)) - (pod), + (&(pod.srcContext)) - (pod), + (&(pod.srcPitch)) - (pod), + (&(pod.srcHeight)) - (pod), + (&(pod.dstXInBytes)) - (pod), + (&(pod.dstY)) - (pod), + (&(pod.dstZ)) - (pod), + (&(pod.dstLOD)) - (pod), + (&(pod.dstMemoryType)) - (pod), + (&(pod.dstHost)) - (pod), + (&(pod.dstDevice)) - (pod), + (&(pod.dstArray)) - (pod), + (&(pod.dstContext)) - (pod), + (&(pod.dstPitch)) - (pod), + (&(pod.dstHeight)) - (pod), + (&(pod.WidthInBytes)) - (pod), + (&(pod.Height)) - (pod), + (&(pod.Depth)) - (pod), + ], + 'itemsize': sizeof(CUDA_MEMCPY3D_PEER_v1), + }) + finally: + _cyb_free(pod) mem_cpy3d_peer_v1_dtype = _get_mem_cpy3d_peer_v1_dtype_offsets() @@ -8393,18 +8544,23 @@ cdef class MemCpy3dPeer_v1: cdef _get_array_descriptor_v2_dtype_offsets(): - cdef CUDA_ARRAY_DESCRIPTOR_v2 pod - return _numpy.dtype({ - 'names': ['width', 'height', 'format', 'num_channels'], - 'formats': [_numpy.uint64, _numpy.uint64, _numpy.int32, _numpy.uint32], - 'offsets': [ - (&(pod.Width)) - (&pod), - (&(pod.Height)) - (&pod), - (&(pod.Format)) - (&pod), - (&(pod.NumChannels)) - (&pod), - ], - 'itemsize': sizeof(CUDA_ARRAY_DESCRIPTOR_v2), - }) + cdef CUDA_ARRAY_DESCRIPTOR_v2 *pod = _cyb_calloc(1, sizeof(CUDA_ARRAY_DESCRIPTOR_v2)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_ARRAY_DESCRIPTOR_v2") + try: + return _numpy.dtype({ + 'names': ['width', 'height', 'format', 'num_channels'], + 'formats': [_numpy.uint64, _numpy.uint64, _numpy.int32, _numpy.uint32], + 'offsets': [ + (&(pod.Width)) - (pod), + (&(pod.Height)) - (pod), + (&(pod.Format)) - (pod), + (&(pod.NumChannels)) - (pod), + ], + 'itemsize': sizeof(CUDA_ARRAY_DESCRIPTOR_v2), + }) + finally: + _cyb_free(pod) array_descriptor_v2_dtype = _get_array_descriptor_v2_dtype_offsets() @@ -8554,20 +8710,25 @@ cdef class ArrayDescriptor_v2: cdef _get_array3d_descriptor_v2_dtype_offsets(): - cdef CUDA_ARRAY3D_DESCRIPTOR_v2 pod - return _numpy.dtype({ - 'names': ['width', 'height', 'depth', 'format', 'num_channels', 'flags_'], - 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.int32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.Width)) - (&pod), - (&(pod.Height)) - (&pod), - (&(pod.Depth)) - (&pod), - (&(pod.Format)) - (&pod), - (&(pod.NumChannels)) - (&pod), - (&(pod.Flags)) - (&pod), - ], - 'itemsize': sizeof(CUDA_ARRAY3D_DESCRIPTOR_v2), - }) + cdef CUDA_ARRAY3D_DESCRIPTOR_v2 *pod = _cyb_calloc(1, sizeof(CUDA_ARRAY3D_DESCRIPTOR_v2)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_ARRAY3D_DESCRIPTOR_v2") + try: + return _numpy.dtype({ + 'names': ['width', 'height', 'depth', 'format', 'num_channels', 'flags_'], + 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.int32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.Width)) - (pod), + (&(pod.Height)) - (pod), + (&(pod.Depth)) - (pod), + (&(pod.Format)) - (pod), + (&(pod.NumChannels)) - (pod), + (&(pod.Flags)) - (pod), + ], + 'itemsize': sizeof(CUDA_ARRAY3D_DESCRIPTOR_v2), + }) + finally: + _cyb_free(pod) array3d_descriptor_v2_dtype = _get_array3d_descriptor_v2_dtype_offsets() @@ -8739,17 +8900,22 @@ cdef class Array3dDescriptor_v2: cdef _get__py_anon_pod11_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod11 pod - return _numpy.dtype({ - 'names': ['width', 'height', 'depth'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.width)) - (&pod), - (&(pod.height)) - (&pod), - (&(pod.depth)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod11), - }) + cdef cuda_bindings_driver__anon_pod11 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod11)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod11") + try: + return _numpy.dtype({ + 'names': ['width', 'height', 'depth'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.width)) - (pod), + (&(pod.height)) - (pod), + (&(pod.depth)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod11), + }) + finally: + _cyb_free(pod) _py_anon_pod11_dtype = _get__py_anon_pod11_dtype_offsets() @@ -8900,17 +9066,22 @@ cdef class _py_anon_pod11: cdef _get_array_memory_requirements_v1_dtype_offsets(): - cdef CUDA_ARRAY_MEMORY_REQUIREMENTS_v1 pod - return _numpy.dtype({ - 'names': ['size_', 'alignment', 'reserved'], - 'formats': [_numpy.uint64, _numpy.uint64, (_numpy.uint32, 4)], - 'offsets': [ - (&(pod.size)) - (&pod), - (&(pod.alignment)) - (&pod), - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(CUDA_ARRAY_MEMORY_REQUIREMENTS_v1), - }) + cdef CUDA_ARRAY_MEMORY_REQUIREMENTS_v1 *pod = _cyb_calloc(1, sizeof(CUDA_ARRAY_MEMORY_REQUIREMENTS_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_ARRAY_MEMORY_REQUIREMENTS_v1") + try: + return _numpy.dtype({ + 'names': ['size_', 'alignment', 'reserved'], + 'formats': [_numpy.uint64, _numpy.uint64, (_numpy.uint32, 4)], + 'offsets': [ + (&(pod.size)) - (pod), + (&(pod.alignment)) - (pod), + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(CUDA_ARRAY_MEMORY_REQUIREMENTS_v1), + }) + finally: + _cyb_free(pod) array_memory_requirements_v1_dtype = _get_array_memory_requirements_v1_dtype_offsets() @@ -9038,15 +9209,20 @@ cdef class ArrayMemoryRequirements_v1: cdef _get__py_anon_pod13_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod13 pod - return _numpy.dtype({ - 'names': ['h_array'], - 'formats': [_numpy.intp], - 'offsets': [ - (&(pod.hArray)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod13), - }) + cdef cuda_bindings_driver__anon_pod13 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod13)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod13") + try: + return _numpy.dtype({ + 'names': ['h_array'], + 'formats': [_numpy.intp], + 'offsets': [ + (&(pod.hArray)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod13), + }) + finally: + _cyb_free(pod) _py_anon_pod13_dtype = _get__py_anon_pod13_dtype_offsets() @@ -9175,15 +9351,20 @@ cdef class _py_anon_pod13: cdef _get__py_anon_pod14_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod14 pod - return _numpy.dtype({ - 'names': ['h_mipmapped_array'], - 'formats': [_numpy.intp], - 'offsets': [ - (&(pod.hMipmappedArray)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod14), - }) + cdef cuda_bindings_driver__anon_pod14 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod14)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod14") + try: + return _numpy.dtype({ + 'names': ['h_mipmapped_array'], + 'formats': [_numpy.intp], + 'offsets': [ + (&(pod.hMipmappedArray)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod14), + }) + finally: + _cyb_free(pod) _py_anon_pod14_dtype = _get__py_anon_pod14_dtype_offsets() @@ -9312,18 +9493,23 @@ cdef class _py_anon_pod14: cdef _get__py_anon_pod15_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod15 pod - return _numpy.dtype({ - 'names': ['dev_ptr', 'format', 'num_channels', 'size_in_bytes'], - 'formats': [_numpy.uint64, _numpy.int32, _numpy.uint32, _numpy.uint64], - 'offsets': [ - (&(pod.devPtr)) - (&pod), - (&(pod.format)) - (&pod), - (&(pod.numChannels)) - (&pod), - (&(pod.sizeInBytes)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod15), - }) + cdef cuda_bindings_driver__anon_pod15 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod15)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod15") + try: + return _numpy.dtype({ + 'names': ['dev_ptr', 'format', 'num_channels', 'size_in_bytes'], + 'formats': [_numpy.uint64, _numpy.int32, _numpy.uint32, _numpy.uint64], + 'offsets': [ + (&(pod.devPtr)) - (pod), + (&(pod.format)) - (pod), + (&(pod.numChannels)) - (pod), + (&(pod.sizeInBytes)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod15), + }) + finally: + _cyb_free(pod) _py_anon_pod15_dtype = _get__py_anon_pod15_dtype_offsets() @@ -9485,20 +9671,25 @@ cdef class _py_anon_pod15: cdef _get__py_anon_pod16_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod16 pod - return _numpy.dtype({ - 'names': ['dev_ptr', 'format', 'num_channels', 'width', 'height', 'pitch_in_bytes'], - 'formats': [_numpy.uint64, _numpy.int32, _numpy.uint32, _numpy.uint64, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.devPtr)) - (&pod), - (&(pod.format)) - (&pod), - (&(pod.numChannels)) - (&pod), - (&(pod.width)) - (&pod), - (&(pod.height)) - (&pod), - (&(pod.pitchInBytes)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod16), - }) + cdef cuda_bindings_driver__anon_pod16 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod16)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod16") + try: + return _numpy.dtype({ + 'names': ['dev_ptr', 'format', 'num_channels', 'width', 'height', 'pitch_in_bytes'], + 'formats': [_numpy.uint64, _numpy.int32, _numpy.uint32, _numpy.uint64, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.devPtr)) - (pod), + (&(pod.format)) - (pod), + (&(pod.numChannels)) - (pod), + (&(pod.width)) - (pod), + (&(pod.height)) - (pod), + (&(pod.pitchInBytes)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod16), + }) + finally: + _cyb_free(pod) _py_anon_pod16_dtype = _get__py_anon_pod16_dtype_offsets() @@ -9682,15 +9873,20 @@ cdef class _py_anon_pod16: cdef _get__py_anon_pod17_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod17 pod - return _numpy.dtype({ - 'names': ['reserved'], - 'formats': [(_numpy.int32, 32)], - 'offsets': [ - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod17), - }) + cdef cuda_bindings_driver__anon_pod17 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod17)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod17") + try: + return _numpy.dtype({ + 'names': ['reserved'], + 'formats': [(_numpy.int32, 32)], + 'offsets': [ + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod17), + }) + finally: + _cyb_free(pod) _py_anon_pod17_dtype = _get__py_anon_pod17_dtype_offsets() @@ -9808,24 +10004,29 @@ cdef class _py_anon_pod17: cdef _get_texture_desc_v1_dtype_offsets(): - cdef CUDA_TEXTURE_DESC_v1 pod - return _numpy.dtype({ - 'names': ['address_mode', 'filter_mode', 'flags_', 'max_anisotropy', 'mipmap_filter_mode', 'mipmap_level_bias', 'min_mipmap_level_clamp', 'max_mipmap_level_clamp', 'border_color', 'reserved'], - 'formats': [(_numpy.int32, 3), _numpy.int32, _numpy.uint32, _numpy.uint32, _numpy.int32, _numpy.float32, _numpy.float32, _numpy.float32, (_numpy.float32, 4), (_numpy.int32, 12)], - 'offsets': [ - (&(pod.addressMode)) - (&pod), - (&(pod.filterMode)) - (&pod), - (&(pod.flags)) - (&pod), - (&(pod.maxAnisotropy)) - (&pod), - (&(pod.mipmapFilterMode)) - (&pod), - (&(pod.mipmapLevelBias)) - (&pod), - (&(pod.minMipmapLevelClamp)) - (&pod), - (&(pod.maxMipmapLevelClamp)) - (&pod), - (&(pod.borderColor)) - (&pod), - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(CUDA_TEXTURE_DESC_v1), - }) + cdef CUDA_TEXTURE_DESC_v1 *pod = _cyb_calloc(1, sizeof(CUDA_TEXTURE_DESC_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_TEXTURE_DESC_v1") + try: + return _numpy.dtype({ + 'names': ['address_mode', 'filter_mode', 'flags_', 'max_anisotropy', 'mipmap_filter_mode', 'mipmap_level_bias', 'min_mipmap_level_clamp', 'max_mipmap_level_clamp', 'border_color', 'reserved'], + 'formats': [(_numpy.int32, 3), _numpy.int32, _numpy.uint32, _numpy.uint32, _numpy.int32, _numpy.float32, _numpy.float32, _numpy.float32, (_numpy.float32, 4), (_numpy.int32, 12)], + 'offsets': [ + (&(pod.addressMode)) - (pod), + (&(pod.filterMode)) - (pod), + (&(pod.flags)) - (pod), + (&(pod.maxAnisotropy)) - (pod), + (&(pod.mipmapFilterMode)) - (pod), + (&(pod.mipmapLevelBias)) - (pod), + (&(pod.minMipmapLevelClamp)) - (pod), + (&(pod.maxMipmapLevelClamp)) - (pod), + (&(pod.borderColor)) - (pod), + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(CUDA_TEXTURE_DESC_v1), + }) + finally: + _cyb_free(pod) texture_desc_v1_dtype = _get_texture_desc_v1_dtype_offsets() @@ -10042,23 +10243,28 @@ cdef class TextureDesc_v1: cdef _get_resource_view_desc_v1_dtype_offsets(): - cdef CUDA_RESOURCE_VIEW_DESC_v1 pod - return _numpy.dtype({ - 'names': ['format', 'width', 'height', 'depth', 'first_mipmap_level', 'last_mipmap_level', 'first_layer', 'last_layer', 'reserved'], - 'formats': [_numpy.int32, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.uint32, 16)], - 'offsets': [ - (&(pod.format)) - (&pod), - (&(pod.width)) - (&pod), - (&(pod.height)) - (&pod), - (&(pod.depth)) - (&pod), - (&(pod.firstMipmapLevel)) - (&pod), - (&(pod.lastMipmapLevel)) - (&pod), - (&(pod.firstLayer)) - (&pod), - (&(pod.lastLayer)) - (&pod), - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(CUDA_RESOURCE_VIEW_DESC_v1), - }) + cdef CUDA_RESOURCE_VIEW_DESC_v1 *pod = _cyb_calloc(1, sizeof(CUDA_RESOURCE_VIEW_DESC_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_RESOURCE_VIEW_DESC_v1") + try: + return _numpy.dtype({ + 'names': ['format', 'width', 'height', 'depth', 'first_mipmap_level', 'last_mipmap_level', 'first_layer', 'last_layer', 'reserved'], + 'formats': [_numpy.int32, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.uint32, 16)], + 'offsets': [ + (&(pod.format)) - (pod), + (&(pod.width)) - (pod), + (&(pod.height)) - (pod), + (&(pod.depth)) - (pod), + (&(pod.firstMipmapLevel)) - (pod), + (&(pod.lastMipmapLevel)) - (pod), + (&(pod.firstLayer)) - (pod), + (&(pod.lastLayer)) - (pod), + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(CUDA_RESOURCE_VIEW_DESC_v1), + }) + finally: + _cyb_free(pod) resource_view_desc_v1_dtype = _get_resource_view_desc_v1_dtype_offsets() @@ -10252,15 +10458,20 @@ cdef class ResourceViewDesc_v1: cdef _get_tensor_map_dtype_offsets(): - cdef CUtensorMap pod - return _numpy.dtype({ - 'names': ['opaque'], - 'formats': [(_numpy.uint64, 16)], - 'offsets': [ - (&(pod.opaque)) - (&pod), - ], - 'itemsize': sizeof(CUtensorMap), - }) + cdef CUtensorMap *pod = _cyb_calloc(1, sizeof(CUtensorMap)) + if pod == NULL: + raise MemoryError("Error allocating CUtensorMap") + try: + return _numpy.dtype({ + 'names': ['opaque'], + 'formats': [(_numpy.uint64, 16)], + 'offsets': [ + (&(pod.opaque)) - (pod), + ], + 'itemsize': sizeof(CUtensorMap), + }) + finally: + _cyb_free(pod) tensor_map_dtype = _get_tensor_map_dtype_offsets() @@ -10383,16 +10594,21 @@ cdef class TensorMap: cdef _get_pointer_attribute_p2p_tokens_v1_dtype_offsets(): - cdef CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1 pod - return _numpy.dtype({ - 'names': ['p2p_token', 'va_space_token'], - 'formats': [_numpy.uint64, _numpy.uint32], - 'offsets': [ - (&(pod.p2pToken)) - (&pod), - (&(pod.vaSpaceToken)) - (&pod), - ], - 'itemsize': sizeof(CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1), - }) + cdef CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1 *pod = _cyb_calloc(1, sizeof(CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1") + try: + return _numpy.dtype({ + 'names': ['p2p_token', 'va_space_token'], + 'formats': [_numpy.uint64, _numpy.uint32], + 'offsets': [ + (&(pod.p2pToken)) - (pod), + (&(pod.vaSpaceToken)) - (pod), + ], + 'itemsize': sizeof(CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1), + }) + finally: + _cyb_free(pod) pointer_attribute_p2p_tokens_v1_dtype = _get_pointer_attribute_p2p_tokens_v1_dtype_offsets() @@ -10520,24 +10736,29 @@ cdef class PointerAttributeP2PTokens_v1: cdef _get_launch_params_v1_dtype_offsets(): - cdef CUDA_LAUNCH_PARAMS_v1 pod - return _numpy.dtype({ - 'names': ['function', 'grid_dim_x', 'grid_dim_y', 'grid_dim_z', 'block_dim_x', 'block_dim_y', 'block_dim_z', 'shared_mem_bytes', 'h_stream', 'kernel_params'], - 'formats': [_numpy.intp, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.intp, _numpy.intp], - 'offsets': [ - (&(pod.function)) - (&pod), - (&(pod.gridDimX)) - (&pod), - (&(pod.gridDimY)) - (&pod), - (&(pod.gridDimZ)) - (&pod), - (&(pod.blockDimX)) - (&pod), - (&(pod.blockDimY)) - (&pod), - (&(pod.blockDimZ)) - (&pod), - (&(pod.sharedMemBytes)) - (&pod), - (&(pod.hStream)) - (&pod), - (&(pod.kernelParams)) - (&pod), - ], - 'itemsize': sizeof(CUDA_LAUNCH_PARAMS_v1), - }) + cdef CUDA_LAUNCH_PARAMS_v1 *pod = _cyb_calloc(1, sizeof(CUDA_LAUNCH_PARAMS_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_LAUNCH_PARAMS_v1") + try: + return _numpy.dtype({ + 'names': ['function', 'grid_dim_x', 'grid_dim_y', 'grid_dim_z', 'block_dim_x', 'block_dim_y', 'block_dim_z', 'shared_mem_bytes', 'h_stream', 'kernel_params'], + 'formats': [_numpy.intp, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.intp, _numpy.intp], + 'offsets': [ + (&(pod.function)) - (pod), + (&(pod.gridDimX)) - (pod), + (&(pod.gridDimY)) - (pod), + (&(pod.gridDimZ)) - (pod), + (&(pod.blockDimX)) - (pod), + (&(pod.blockDimY)) - (pod), + (&(pod.blockDimZ)) - (pod), + (&(pod.sharedMemBytes)) - (pod), + (&(pod.hStream)) - (pod), + (&(pod.kernelParams)) - (pod), + ], + 'itemsize': sizeof(CUDA_LAUNCH_PARAMS_v1), + }) + finally: + _cyb_free(pod) launch_params_v1_dtype = _get_launch_params_v1_dtype_offsets() @@ -10753,16 +10974,21 @@ cdef class LaunchParams_v1: cdef _get__py_anon_pod19_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod19 pod - return _numpy.dtype({ - 'names': ['handle', 'name'], - 'formats': [_numpy.intp, _numpy.intp], - 'offsets': [ - (&(pod.handle)) - (&pod), - (&(pod.name)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod19), - }) + cdef cuda_bindings_driver__anon_pod19 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod19)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod19") + try: + return _numpy.dtype({ + 'names': ['handle', 'name'], + 'formats': [_numpy.intp, _numpy.intp], + 'offsets': [ + (&(pod.handle)) - (pod), + (&(pod.name)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod19), + }) + finally: + _cyb_free(pod) _py_anon_pod19_dtype = _get__py_anon_pod19_dtype_offsets() @@ -10902,18 +11128,23 @@ cdef class _py_anon_pod19: cdef _get_external_memory_buffer_desc_v1_dtype_offsets(): - cdef CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1 pod - return _numpy.dtype({ - 'names': ['offset', 'size_', 'flags_', 'reserved'], - 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint32, (_numpy.uint32, 16)], - 'offsets': [ - (&(pod.offset)) - (&pod), - (&(pod.size)) - (&pod), - (&(pod.flags)) - (&pod), - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1), - }) + cdef CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1 *pod = _cyb_calloc(1, sizeof(CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1") + try: + return _numpy.dtype({ + 'names': ['offset', 'size_', 'flags_', 'reserved'], + 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint32, (_numpy.uint32, 16)], + 'offsets': [ + (&(pod.offset)) - (pod), + (&(pod.size)) - (pod), + (&(pod.flags)) - (pod), + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1), + }) + finally: + _cyb_free(pod) external_memory_buffer_desc_v1_dtype = _get_external_memory_buffer_desc_v1_dtype_offsets() @@ -11052,16 +11283,21 @@ cdef class ExternalMemoryBufferDesc_v1: cdef _get__py_anon_pod21_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod21 pod - return _numpy.dtype({ - 'names': ['handle', 'name'], - 'formats': [_numpy.intp, _numpy.intp], - 'offsets': [ - (&(pod.handle)) - (&pod), - (&(pod.name)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod21), - }) + cdef cuda_bindings_driver__anon_pod21 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod21)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod21") + try: + return _numpy.dtype({ + 'names': ['handle', 'name'], + 'formats': [_numpy.intp, _numpy.intp], + 'offsets': [ + (&(pod.handle)) - (pod), + (&(pod.name)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod21), + }) + finally: + _cyb_free(pod) _py_anon_pod21_dtype = _get__py_anon_pod21_dtype_offsets() @@ -11201,15 +11437,20 @@ cdef class _py_anon_pod21: cdef _get__py_anon_pod23_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod23 pod - return _numpy.dtype({ - 'names': ['value'], - 'formats': [_numpy.uint64], - 'offsets': [ - (&(pod.value)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod23), - }) + cdef cuda_bindings_driver__anon_pod23 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod23)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod23") + try: + return _numpy.dtype({ + 'names': ['value'], + 'formats': [_numpy.uint64], + 'offsets': [ + (&(pod.value)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod23), + }) + finally: + _cyb_free(pod) _py_anon_pod23_dtype = _get__py_anon_pod23_dtype_offsets() @@ -11338,16 +11579,21 @@ cdef class _py_anon_pod23: cdef _get__py_anon_pod24_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod24 pod - return _numpy.dtype({ - 'names': ['fence', 'reserved'], - 'formats': [_numpy.intp, _numpy.uint64], - 'offsets': [ - (&(pod.fence)) - (&pod), - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod24), - }) + cdef cuda_bindings_driver__anon_pod24 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod24)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod24") + try: + return _numpy.dtype({ + 'names': ['fence', 'reserved'], + 'formats': [_numpy.intp, _numpy.uint64], + 'offsets': [ + (&(pod.fence)) - (pod), + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod24), + }) + finally: + _cyb_free(pod) _py_anon_pod24_dtype = _get__py_anon_pod24_dtype_offsets() @@ -11476,15 +11722,20 @@ cdef class _py_anon_pod24: cdef _get__py_anon_pod25_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod25 pod - return _numpy.dtype({ - 'names': ['key'], - 'formats': [_numpy.uint64], - 'offsets': [ - (&(pod.key)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod25), - }) + cdef cuda_bindings_driver__anon_pod25 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod25)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod25") + try: + return _numpy.dtype({ + 'names': ['key'], + 'formats': [_numpy.uint64], + 'offsets': [ + (&(pod.key)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod25), + }) + finally: + _cyb_free(pod) _py_anon_pod25_dtype = _get__py_anon_pod25_dtype_offsets() @@ -11613,15 +11864,20 @@ cdef class _py_anon_pod25: cdef _get__py_anon_pod27_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod27 pod - return _numpy.dtype({ - 'names': ['value'], - 'formats': [_numpy.uint64], - 'offsets': [ - (&(pod.value)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod27), - }) + cdef cuda_bindings_driver__anon_pod27 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod27)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod27") + try: + return _numpy.dtype({ + 'names': ['value'], + 'formats': [_numpy.uint64], + 'offsets': [ + (&(pod.value)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod27), + }) + finally: + _cyb_free(pod) _py_anon_pod27_dtype = _get__py_anon_pod27_dtype_offsets() @@ -11750,16 +12006,21 @@ cdef class _py_anon_pod27: cdef _get__py_anon_pod28_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod28 pod - return _numpy.dtype({ - 'names': ['fence', 'reserved'], - 'formats': [_numpy.intp, _numpy.uint64], - 'offsets': [ - (&(pod.fence)) - (&pod), - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod28), - }) + cdef cuda_bindings_driver__anon_pod28 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod28)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod28") + try: + return _numpy.dtype({ + 'names': ['fence', 'reserved'], + 'formats': [_numpy.intp, _numpy.uint64], + 'offsets': [ + (&(pod.fence)) - (pod), + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod28), + }) + finally: + _cyb_free(pod) _py_anon_pod28_dtype = _get__py_anon_pod28_dtype_offsets() @@ -11888,16 +12149,21 @@ cdef class _py_anon_pod28: cdef _get__py_anon_pod29_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod29 pod - return _numpy.dtype({ - 'names': ['key', 'timeout_ms'], - 'formats': [_numpy.uint64, _numpy.uint32], - 'offsets': [ - (&(pod.key)) - (&pod), - (&(pod.timeoutMs)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod29), - }) + cdef cuda_bindings_driver__anon_pod29 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod29)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod29") + try: + return _numpy.dtype({ + 'names': ['key', 'timeout_ms'], + 'formats': [_numpy.uint64, _numpy.uint32], + 'offsets': [ + (&(pod.key)) - (pod), + (&(pod.timeoutMs)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod29), + }) + finally: + _cyb_free(pod) _py_anon_pod29_dtype = _get__py_anon_pod29_dtype_offsets() @@ -12037,16 +12303,21 @@ cdef class _py_anon_pod29: cdef _get__py_anon_pod32_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod32 pod - return _numpy.dtype({ - 'names': ['mipmap', 'array'], - 'formats': [_numpy.intp, _numpy.intp], - 'offsets': [ - (&(pod.mipmap)) - (&pod), - (&(pod.array)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod32), - }) + cdef cuda_bindings_driver__anon_pod32 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod32)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod32") + try: + return _numpy.dtype({ + 'names': ['mipmap', 'array'], + 'formats': [_numpy.intp, _numpy.intp], + 'offsets': [ + (&(pod.mipmap)) - (pod), + (&(pod.array)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod32), + }) + finally: + _cyb_free(pod) _py_anon_pod32_dtype = _get__py_anon_pod32_dtype_offsets() @@ -12186,22 +12457,27 @@ cdef class _py_anon_pod32: cdef _get__py_anon_pod34_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod34 pod - return _numpy.dtype({ - 'names': ['level', 'layer', 'offset_x', 'offset_y', 'offset_z', 'extent_width', 'extent_height', 'extent_depth'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.level)) - (&pod), - (&(pod.layer)) - (&pod), - (&(pod.offsetX)) - (&pod), - (&(pod.offsetY)) - (&pod), - (&(pod.offsetZ)) - (&pod), - (&(pod.extentWidth)) - (&pod), - (&(pod.extentHeight)) - (&pod), - (&(pod.extentDepth)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod34), - }) + cdef cuda_bindings_driver__anon_pod34 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod34)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod34") + try: + return _numpy.dtype({ + 'names': ['level', 'layer', 'offset_x', 'offset_y', 'offset_z', 'extent_width', 'extent_height', 'extent_depth'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.level)) - (pod), + (&(pod.layer)) - (pod), + (&(pod.offsetX)) - (pod), + (&(pod.offsetY)) - (pod), + (&(pod.offsetZ)) - (pod), + (&(pod.extentWidth)) - (pod), + (&(pod.extentHeight)) - (pod), + (&(pod.extentDepth)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod34), + }) + finally: + _cyb_free(pod) _py_anon_pod34_dtype = _get__py_anon_pod34_dtype_offsets() @@ -12407,17 +12683,22 @@ cdef class _py_anon_pod34: cdef _get__py_anon_pod35_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod35 pod - return _numpy.dtype({ - 'names': ['layer', 'offset', 'size_'], - 'formats': [_numpy.uint32, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.layer)) - (&pod), - (&(pod.offset)) - (&pod), - (&(pod.size)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod35), - }) + cdef cuda_bindings_driver__anon_pod35 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod35)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod35") + try: + return _numpy.dtype({ + 'names': ['layer', 'offset', 'size_'], + 'formats': [_numpy.uint32, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.layer)) - (pod), + (&(pod.offset)) - (pod), + (&(pod.size)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod35), + }) + finally: + _cyb_free(pod) _py_anon_pod35_dtype = _get__py_anon_pod35_dtype_offsets() @@ -12568,15 +12849,20 @@ cdef class _py_anon_pod35: cdef _get__py_anon_pod36_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod36 pod - return _numpy.dtype({ - 'names': ['mem_handle'], - 'formats': [_numpy.uint64], - 'offsets': [ - (&(pod.memHandle)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod36), - }) + cdef cuda_bindings_driver__anon_pod36 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod36)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod36") + try: + return _numpy.dtype({ + 'names': ['mem_handle'], + 'formats': [_numpy.uint64], + 'offsets': [ + (&(pod.memHandle)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod36), + }) + finally: + _cyb_free(pod) _py_anon_pod36_dtype = _get__py_anon_pod36_dtype_offsets() @@ -12705,16 +12991,21 @@ cdef class _py_anon_pod36: cdef _get__py_anon_pod38_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod38 pod - return _numpy.dtype({ - 'names': ['device_id', 'locality_domain_id'], - 'formats': [_numpy.uint8, _numpy.uint8], - 'offsets': [ - (&(pod.deviceId)) - (&pod), - (&(pod.localityDomainId)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod38), - }) + cdef cuda_bindings_driver__anon_pod38 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod38)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod38") + try: + return _numpy.dtype({ + 'names': ['device_id', 'locality_domain_id'], + 'formats': [_numpy.uint8, _numpy.uint8], + 'offsets': [ + (&(pod.deviceId)) - (pod), + (&(pod.localityDomainId)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod38), + }) + finally: + _cyb_free(pod) _py_anon_pod38_dtype = _get__py_anon_pod38_dtype_offsets() @@ -12854,18 +13145,23 @@ cdef class _py_anon_pod38: cdef _get__py_anon_pod39_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod39 pod - return _numpy.dtype({ - 'names': ['compression_type', 'gpu_direct_rdma_capable', 'usage', 'reserved'], - 'formats': [_numpy.uint8, _numpy.uint8, _numpy.uint16, (_numpy.uint8, 4)], - 'offsets': [ - (&(pod.compressionType)) - (&pod), - (&(pod.gpuDirectRDMACapable)) - (&pod), - (&(pod.usage)) - (&pod), - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod39), - }) + cdef cuda_bindings_driver__anon_pod39 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod39)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod39") + try: + return _numpy.dtype({ + 'names': ['compression_type', 'gpu_direct_rdma_capable', 'usage', 'reserved'], + 'formats': [_numpy.uint8, _numpy.uint8, _numpy.uint16, (_numpy.uint8, 4)], + 'offsets': [ + (&(pod.compressionType)) - (pod), + (&(pod.gpuDirectRDMACapable)) - (pod), + (&(pod.usage)) - (pod), + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod39), + }) + finally: + _cyb_free(pod) _py_anon_pod39_dtype = _get__py_anon_pod39_dtype_offsets() @@ -13016,18 +13312,23 @@ cdef class _py_anon_pod39: cdef _get_multicast_object_prop_v1_dtype_offsets(): - cdef CUmulticastObjectProp_v1 pod - return _numpy.dtype({ - 'names': ['num_devices', 'size_', 'handle_types', 'flags_'], - 'formats': [_numpy.uint32, _numpy.uint64, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.numDevices)) - (&pod), - (&(pod.size)) - (&pod), - (&(pod.handleTypes)) - (&pod), - (&(pod.flags)) - (&pod), - ], - 'itemsize': sizeof(CUmulticastObjectProp_v1), - }) + cdef CUmulticastObjectProp_v1 *pod = _cyb_calloc(1, sizeof(CUmulticastObjectProp_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUmulticastObjectProp_v1") + try: + return _numpy.dtype({ + 'names': ['num_devices', 'size_', 'handle_types', 'flags_'], + 'formats': [_numpy.uint32, _numpy.uint64, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.numDevices)) - (pod), + (&(pod.size)) - (pod), + (&(pod.handleTypes)) - (pod), + (&(pod.flags)) - (pod), + ], + 'itemsize': sizeof(CUmulticastObjectProp_v1), + }) + finally: + _cyb_free(pod) multicast_object_prop_v1_dtype = _get_multicast_object_prop_v1_dtype_offsets() @@ -13177,17 +13478,22 @@ cdef class MulticastObjectProp_v1: cdef _get_graph_exec_update_result_info_v1_dtype_offsets(): - cdef CUgraphExecUpdateResultInfo_v1 pod - return _numpy.dtype({ - 'names': ['result', 'error_node', 'error_from_node'], - 'formats': [_numpy.int32, _numpy.intp, _numpy.intp], - 'offsets': [ - (&(pod.result)) - (&pod), - (&(pod.errorNode)) - (&pod), - (&(pod.errorFromNode)) - (&pod), - ], - 'itemsize': sizeof(CUgraphExecUpdateResultInfo_v1), - }) + cdef CUgraphExecUpdateResultInfo_v1 *pod = _cyb_calloc(1, sizeof(CUgraphExecUpdateResultInfo_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUgraphExecUpdateResultInfo_v1") + try: + return _numpy.dtype({ + 'names': ['result', 'error_node', 'error_from_node'], + 'formats': [_numpy.int32, _numpy.intp, _numpy.intp], + 'offsets': [ + (&(pod.result)) - (pod), + (&(pod.errorNode)) - (pod), + (&(pod.errorFromNode)) - (pod), + ], + 'itemsize': sizeof(CUgraphExecUpdateResultInfo_v1), + }) + finally: + _cyb_free(pod) graph_exec_update_result_info_v1_dtype = _get_graph_exec_update_result_info_v1_dtype_offsets() @@ -13326,15 +13632,20 @@ cdef class GraphExecUpdateResultInfo_v1: cdef _get_mem_pool_ptr_export_data_v1_dtype_offsets(): - cdef CUmemPoolPtrExportData_v1 pod - return _numpy.dtype({ - 'names': ['reserved'], - 'formats': [(_numpy.uint8, 64)], - 'offsets': [ - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(CUmemPoolPtrExportData_v1), - }) + cdef CUmemPoolPtrExportData_v1 *pod = _cyb_calloc(1, sizeof(CUmemPoolPtrExportData_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUmemPoolPtrExportData_v1") + try: + return _numpy.dtype({ + 'names': ['reserved'], + 'formats': [(_numpy.uint8, 64)], + 'offsets': [ + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(CUmemPoolPtrExportData_v1), + }) + finally: + _cyb_free(pod) mem_pool_ptr_export_data_v1_dtype = _get_mem_pool_ptr_export_data_v1_dtype_offsets() @@ -13440,17 +13751,22 @@ cdef class MemPoolPtrExportData_v1: cdef _get_offset3d_v1_dtype_offsets(): - cdef CUoffset3D_v1 pod - return _numpy.dtype({ - 'names': ['x', 'y', 'z'], - 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.x)) - (&pod), - (&(pod.y)) - (&pod), - (&(pod.z)) - (&pod), - ], - 'itemsize': sizeof(CUoffset3D_v1), - }) + cdef CUoffset3D_v1 *pod = _cyb_calloc(1, sizeof(CUoffset3D_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUoffset3D_v1") + try: + return _numpy.dtype({ + 'names': ['x', 'y', 'z'], + 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.x)) - (pod), + (&(pod.y)) - (pod), + (&(pod.z)) - (pod), + ], + 'itemsize': sizeof(CUoffset3D_v1), + }) + finally: + _cyb_free(pod) offset3d_v1_dtype = _get_offset3d_v1_dtype_offsets() @@ -13589,17 +13905,22 @@ cdef class Offset3D_v1: cdef _get_extent3d_v1_dtype_offsets(): - cdef CUextent3D_v1 pod - return _numpy.dtype({ - 'names': ['width', 'height', 'depth'], - 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.width)) - (&pod), - (&(pod.height)) - (&pod), - (&(pod.depth)) - (&pod), - ], - 'itemsize': sizeof(CUextent3D_v1), - }) + cdef CUextent3D_v1 *pod = _cyb_calloc(1, sizeof(CUextent3D_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUextent3D_v1") + try: + return _numpy.dtype({ + 'names': ['width', 'height', 'depth'], + 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.width)) - (pod), + (&(pod.height)) - (pod), + (&(pod.depth)) - (pod), + ], + 'itemsize': sizeof(CUextent3D_v1), + }) + finally: + _cyb_free(pod) extent3d_v1_dtype = _get_extent3d_v1_dtype_offsets() @@ -13738,15 +14059,20 @@ cdef class Extent3D_v1: cdef _get_mem_free_node_params_dtype_offsets(): - cdef CUDA_MEM_FREE_NODE_PARAMS pod - return _numpy.dtype({ - 'names': ['dptr'], - 'formats': [_numpy.uint64], - 'offsets': [ - (&(pod.dptr)) - (&pod), - ], - 'itemsize': sizeof(CUDA_MEM_FREE_NODE_PARAMS), - }) + cdef CUDA_MEM_FREE_NODE_PARAMS *pod = _cyb_calloc(1, sizeof(CUDA_MEM_FREE_NODE_PARAMS)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_MEM_FREE_NODE_PARAMS") + try: + return _numpy.dtype({ + 'names': ['dptr'], + 'formats': [_numpy.uint64], + 'offsets': [ + (&(pod.dptr)) - (pod), + ], + 'itemsize': sizeof(CUDA_MEM_FREE_NODE_PARAMS), + }) + finally: + _cyb_free(pod) mem_free_node_params_dtype = _get_mem_free_node_params_dtype_offsets() @@ -13875,16 +14201,21 @@ cdef class MemFreeNodeParams: cdef _get_child_graph_node_params_dtype_offsets(): - cdef CUDA_CHILD_GRAPH_NODE_PARAMS pod - return _numpy.dtype({ - 'names': ['graph', 'ownership'], - 'formats': [_numpy.intp, _numpy.int32], - 'offsets': [ - (&(pod.graph)) - (&pod), - (&(pod.ownership)) - (&pod), - ], - 'itemsize': sizeof(CUDA_CHILD_GRAPH_NODE_PARAMS), - }) + cdef CUDA_CHILD_GRAPH_NODE_PARAMS *pod = _cyb_calloc(1, sizeof(CUDA_CHILD_GRAPH_NODE_PARAMS)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_CHILD_GRAPH_NODE_PARAMS") + try: + return _numpy.dtype({ + 'names': ['graph', 'ownership'], + 'formats': [_numpy.intp, _numpy.int32], + 'offsets': [ + (&(pod.graph)) - (pod), + (&(pod.ownership)) - (pod), + ], + 'itemsize': sizeof(CUDA_CHILD_GRAPH_NODE_PARAMS), + }) + finally: + _cyb_free(pod) child_graph_node_params_dtype = _get_child_graph_node_params_dtype_offsets() @@ -14024,15 +14355,20 @@ cdef class ChildGraphNodeParams: cdef _get_event_wait_node_params_dtype_offsets(): - cdef CUDA_EVENT_WAIT_NODE_PARAMS pod - return _numpy.dtype({ - 'names': ['event'], - 'formats': [_numpy.intp], - 'offsets': [ - (&(pod.event)) - (&pod), - ], - 'itemsize': sizeof(CUDA_EVENT_WAIT_NODE_PARAMS), - }) + cdef CUDA_EVENT_WAIT_NODE_PARAMS *pod = _cyb_calloc(1, sizeof(CUDA_EVENT_WAIT_NODE_PARAMS)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_EVENT_WAIT_NODE_PARAMS") + try: + return _numpy.dtype({ + 'names': ['event'], + 'formats': [_numpy.intp], + 'offsets': [ + (&(pod.event)) - (pod), + ], + 'itemsize': sizeof(CUDA_EVENT_WAIT_NODE_PARAMS), + }) + finally: + _cyb_free(pod) event_wait_node_params_dtype = _get_event_wait_node_params_dtype_offsets() @@ -14161,17 +14497,22 @@ cdef class EventWaitNodeParams: cdef _get_checkpoint_lock_args_dtype_offsets(): - cdef CUcheckpointLockArgs pod - return _numpy.dtype({ - 'names': ['timeout_ms', 'reserved0', 'reserved1'], - 'formats': [_numpy.uint32, _numpy.uint32, (_numpy.uint64, 7)], - 'offsets': [ - (&(pod.timeoutMs)) - (&pod), - (&(pod.reserved0)) - (&pod), - (&(pod.reserved1)) - (&pod), - ], - 'itemsize': sizeof(CUcheckpointLockArgs), - }) + cdef CUcheckpointLockArgs *pod = _cyb_calloc(1, sizeof(CUcheckpointLockArgs)) + if pod == NULL: + raise MemoryError("Error allocating CUcheckpointLockArgs") + try: + return _numpy.dtype({ + 'names': ['timeout_ms', 'reserved0', 'reserved1'], + 'formats': [_numpy.uint32, _numpy.uint32, (_numpy.uint64, 7)], + 'offsets': [ + (&(pod.timeoutMs)) - (pod), + (&(pod.reserved0)) - (pod), + (&(pod.reserved1)) - (pod), + ], + 'itemsize': sizeof(CUcheckpointLockArgs), + }) + finally: + _cyb_free(pod) checkpoint_lock_args_dtype = _get_checkpoint_lock_args_dtype_offsets() @@ -14288,15 +14629,20 @@ cdef class CheckpointLockArgs: cdef _get_checkpoint_unlock_args_dtype_offsets(): - cdef CUcheckpointUnlockArgs pod - return _numpy.dtype({ - 'names': ['reserved'], - 'formats': [(_numpy.uint64, 8)], - 'offsets': [ - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(CUcheckpointUnlockArgs), - }) + cdef CUcheckpointUnlockArgs *pod = _cyb_calloc(1, sizeof(CUcheckpointUnlockArgs)) + if pod == NULL: + raise MemoryError("Error allocating CUcheckpointUnlockArgs") + try: + return _numpy.dtype({ + 'names': ['reserved'], + 'formats': [(_numpy.uint64, 8)], + 'offsets': [ + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(CUcheckpointUnlockArgs), + }) + finally: + _cyb_free(pod) checkpoint_unlock_args_dtype = _get_checkpoint_unlock_args_dtype_offsets() @@ -14402,21 +14748,26 @@ cdef class CheckpointUnlockArgs: cdef _get_mem_decompress_params_dtype_offsets(): - cdef CUmemDecompressParams pod - return _numpy.dtype({ - 'names': ['src_num_bytes', 'dst_num_bytes', 'dst_act_bytes', 'src', 'dst', 'algo', 'padding'], - 'formats': [_numpy.uint64, _numpy.uint64, _numpy.intp, _numpy.intp, _numpy.intp, _numpy.int32, (_numpy.uint8, 20)], - 'offsets': [ - (&(pod.srcNumBytes)) - (&pod), - (&(pod.dstNumBytes)) - (&pod), - (&(pod.dstActBytes)) - (&pod), - (&(pod.src)) - (&pod), - (&(pod.dst)) - (&pod), - (&(pod.algo)) - (&pod), - (&(pod.padding)) - (&pod), - ], - 'itemsize': sizeof(CUmemDecompressParams), - }) + cdef CUmemDecompressParams *pod = _cyb_calloc(1, sizeof(CUmemDecompressParams)) + if pod == NULL: + raise MemoryError("Error allocating CUmemDecompressParams") + try: + return _numpy.dtype({ + 'names': ['src_num_bytes', 'dst_num_bytes', 'dst_act_bytes', 'src', 'dst', 'algo', 'padding'], + 'formats': [_numpy.uint64, _numpy.uint64, _numpy.intp, _numpy.intp, _numpy.intp, _numpy.int32, (_numpy.uint8, 20)], + 'offsets': [ + (&(pod.srcNumBytes)) - (pod), + (&(pod.dstNumBytes)) - (pod), + (&(pod.dstActBytes)) - (pod), + (&(pod.src)) - (pod), + (&(pod.dst)) - (pod), + (&(pod.algo)) - (pod), + (&(pod.padding)) - (pod), + ], + 'itemsize': sizeof(CUmemDecompressParams), + }) + finally: + _cyb_free(pod) mem_decompress_params_dtype = _get_mem_decompress_params_dtype_offsets() @@ -14588,19 +14939,24 @@ cdef class MemDecompressParams: cdef _get_dev_sm_resource_dtype_offsets(): - cdef CUdevSmResource pod - return _numpy.dtype({ - 'names': ['sm_count', 'min_sm_partition_size', 'sm_coscheduled_alignment', 'flags_', 'locality_domain_id'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.smCount)) - (&pod), - (&(pod.minSmPartitionSize)) - (&pod), - (&(pod.smCoscheduledAlignment)) - (&pod), - (&(pod.flags)) - (&pod), - (&(pod.localityDomainId)) - (&pod), - ], - 'itemsize': sizeof(CUdevSmResource), - }) + cdef CUdevSmResource *pod = _cyb_calloc(1, sizeof(CUdevSmResource)) + if pod == NULL: + raise MemoryError("Error allocating CUdevSmResource") + try: + return _numpy.dtype({ + 'names': ['sm_count', 'min_sm_partition_size', 'sm_coscheduled_alignment', 'flags_', 'locality_domain_id'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.smCount)) - (pod), + (&(pod.minSmPartitionSize)) - (pod), + (&(pod.smCoscheduledAlignment)) - (pod), + (&(pod.flags)) - (pod), + (&(pod.localityDomainId)) - (pod), + ], + 'itemsize': sizeof(CUdevSmResource), + }) + finally: + _cyb_free(pod) dev_sm_resource_dtype = _get_dev_sm_resource_dtype_offsets() @@ -14773,17 +15129,22 @@ cdef class DevSmResource: cdef _get_dev_workqueue_config_resource_dtype_offsets(): - cdef CUdevWorkqueueConfigResource pod - return _numpy.dtype({ - 'names': ['device_', 'wq_concurrency_limit', 'sharing_scope'], - 'formats': [_numpy.int32, _numpy.uint32, _numpy.int32], - 'offsets': [ - (&(pod.device)) - (&pod), - (&(pod.wqConcurrencyLimit)) - (&pod), - (&(pod.sharingScope)) - (&pod), - ], - 'itemsize': sizeof(CUdevWorkqueueConfigResource), - }) + cdef CUdevWorkqueueConfigResource *pod = _cyb_calloc(1, sizeof(CUdevWorkqueueConfigResource)) + if pod == NULL: + raise MemoryError("Error allocating CUdevWorkqueueConfigResource") + try: + return _numpy.dtype({ + 'names': ['device_', 'wq_concurrency_limit', 'sharing_scope'], + 'formats': [_numpy.int32, _numpy.uint32, _numpy.int32], + 'offsets': [ + (&(pod.device)) - (pod), + (&(pod.wqConcurrencyLimit)) - (pod), + (&(pod.sharingScope)) - (pod), + ], + 'itemsize': sizeof(CUdevWorkqueueConfigResource), + }) + finally: + _cyb_free(pod) dev_workqueue_config_resource_dtype = _get_dev_workqueue_config_resource_dtype_offsets() @@ -14934,15 +15295,20 @@ cdef class DevWorkqueueConfigResource: cdef _get_dev_workqueue_resource_dtype_offsets(): - cdef CUdevWorkqueueResource pod - return _numpy.dtype({ - 'names': ['reserved'], - 'formats': [(_numpy.uint8, 40)], - 'offsets': [ - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(CUdevWorkqueueResource), - }) + cdef CUdevWorkqueueResource *pod = _cyb_calloc(1, sizeof(CUdevWorkqueueResource)) + if pod == NULL: + raise MemoryError("Error allocating CUdevWorkqueueResource") + try: + return _numpy.dtype({ + 'names': ['reserved'], + 'formats': [(_numpy.uint8, 40)], + 'offsets': [ + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(CUdevWorkqueueResource), + }) + finally: + _cyb_free(pod) dev_workqueue_resource_dtype = _get_dev_workqueue_resource_dtype_offsets() @@ -15060,20 +15426,25 @@ cdef class DevWorkqueueResource: cdef _get_dev_sm_resource_group_params_dtype_offsets(): - cdef CU_DEV_SM_RESOURCE_GROUP_PARAMS pod - return _numpy.dtype({ - 'names': ['sm_count', 'coscheduled_sm_count', 'preferred_coscheduled_sm_count', 'flags_', 'locality_domain_id', 'reserved'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.uint32, 11)], - 'offsets': [ - (&(pod.smCount)) - (&pod), - (&(pod.coscheduledSmCount)) - (&pod), - (&(pod.preferredCoscheduledSmCount)) - (&pod), - (&(pod.flags)) - (&pod), - (&(pod.localityDomainId)) - (&pod), - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(CU_DEV_SM_RESOURCE_GROUP_PARAMS), - }) + cdef CU_DEV_SM_RESOURCE_GROUP_PARAMS *pod = _cyb_calloc(1, sizeof(CU_DEV_SM_RESOURCE_GROUP_PARAMS)) + if pod == NULL: + raise MemoryError("Error allocating CU_DEV_SM_RESOURCE_GROUP_PARAMS") + try: + return _numpy.dtype({ + 'names': ['sm_count', 'coscheduled_sm_count', 'preferred_coscheduled_sm_count', 'flags_', 'locality_domain_id', 'reserved'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.uint32, 11)], + 'offsets': [ + (&(pod.smCount)) - (pod), + (&(pod.coscheduledSmCount)) - (pod), + (&(pod.preferredCoscheduledSmCount)) - (pod), + (&(pod.flags)) - (pod), + (&(pod.localityDomainId)) - (pod), + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(CU_DEV_SM_RESOURCE_GROUP_PARAMS), + }) + finally: + _cyb_free(pod) dev_sm_resource_group_params_dtype = _get_dev_sm_resource_group_params_dtype_offsets() cdef object dev_sm_resource_group_params_dtype_record = _numpy.dtype((_numpy.record, dev_sm_resource_group_params_dtype)) @@ -15271,16 +15642,21 @@ cdef class DevSmResourceGroupParams: cdef _get_stream_cig_param_dtype_offsets(): - cdef CUstreamCigParam pod - return _numpy.dtype({ - 'names': ['stream_shared_data_type', 'stream_shared_data'], - 'formats': [_numpy.int32, _numpy.intp], - 'offsets': [ - (&(pod.streamSharedDataType)) - (&pod), - (&(pod.streamSharedData)) - (&pod), - ], - 'itemsize': sizeof(CUstreamCigParam), - }) + cdef CUstreamCigParam *pod = _cyb_calloc(1, sizeof(CUstreamCigParam)) + if pod == NULL: + raise MemoryError("Error allocating CUstreamCigParam") + try: + return _numpy.dtype({ + 'names': ['stream_shared_data_type', 'stream_shared_data'], + 'formats': [_numpy.int32, _numpy.intp], + 'offsets': [ + (&(pod.streamSharedDataType)) - (pod), + (&(pod.streamSharedData)) - (pod), + ], + 'itemsize': sizeof(CUstreamCigParam), + }) + finally: + _cyb_free(pod) stream_cig_param_dtype = _get_stream_cig_param_dtype_offsets() @@ -15408,15 +15784,20 @@ cdef class StreamCigParam: cdef _get_logical_endpoint_fabric_handle_dtype_offsets(): - cdef CUlogicalEndpointFabricHandle pod - return _numpy.dtype({ - 'names': ['data_'], - 'formats': [(_numpy.uint8, 64)], - 'offsets': [ - (&(pod.data)) - (&pod), - ], - 'itemsize': sizeof(CUlogicalEndpointFabricHandle), - }) + cdef CUlogicalEndpointFabricHandle *pod = _cyb_calloc(1, sizeof(CUlogicalEndpointFabricHandle)) + if pod == NULL: + raise MemoryError("Error allocating CUlogicalEndpointFabricHandle") + try: + return _numpy.dtype({ + 'names': ['data_'], + 'formats': [(_numpy.uint8, 64)], + 'offsets': [ + (&(pod.data)) - (pod), + ], + 'itemsize': sizeof(CUlogicalEndpointFabricHandle), + }) + finally: + _cyb_free(pod) logical_endpoint_fabric_handle_dtype = _get_logical_endpoint_fabric_handle_dtype_offsets() @@ -15539,15 +15920,20 @@ cdef class LogicalEndpointFabricHandle: cdef _get__py_anon_pod47_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod47 pod - return _numpy.dtype({ - 'names': ['device_'], - 'formats': [_numpy.int32], - 'offsets': [ - (&(pod.device)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod47), - }) + cdef cuda_bindings_driver__anon_pod47 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod47)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod47") + try: + return _numpy.dtype({ + 'names': ['device_'], + 'formats': [_numpy.int32], + 'offsets': [ + (&(pod.device)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod47), + }) + finally: + _cyb_free(pod) _py_anon_pod47_dtype = _get__py_anon_pod47_dtype_offsets() @@ -15676,15 +16062,20 @@ cdef class _py_anon_pod47: cdef _get__py_anon_pod48_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod48 pod - return _numpy.dtype({ - 'names': ['num_devices'], - 'formats': [_numpy.uint32], - 'offsets': [ - (&(pod.numDevices)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod48), - }) + cdef cuda_bindings_driver__anon_pod48 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod48)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod48") + try: + return _numpy.dtype({ + 'names': ['num_devices'], + 'formats': [_numpy.uint32], + 'offsets': [ + (&(pod.numDevices)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod48), + }) + finally: + _cyb_free(pod) _py_anon_pod48_dtype = _get__py_anon_pod48_dtype_offsets() @@ -15813,16 +16204,21 @@ cdef class _py_anon_pod48: cdef _get_clique_info_dtype_offsets(): - cdef CUcliqueInfo pod - return _numpy.dtype({ - 'names': ['type', 'id'], - 'formats': [_numpy.int32, _numpy.uint32], - 'offsets': [ - (&(pod.type)) - (&pod), - (&(pod.id)) - (&pod), - ], - 'itemsize': sizeof(CUcliqueInfo), - }) + cdef CUcliqueInfo *pod = _cyb_calloc(1, sizeof(CUcliqueInfo)) + if pod == NULL: + raise MemoryError("Error allocating CUcliqueInfo") + try: + return _numpy.dtype({ + 'names': ['type', 'id'], + 'formats': [_numpy.int32, _numpy.uint32], + 'offsets': [ + (&(pod.type)) - (pod), + (&(pod.id)) - (pod), + ], + 'itemsize': sizeof(CUcliqueInfo), + }) + finally: + _cyb_free(pod) clique_info_dtype = _get_clique_info_dtype_offsets() cdef object clique_info_dtype_record = _numpy.dtype((_numpy.record, clique_info_dtype)) @@ -15981,16 +16377,21 @@ cdef class CliqueInfo: cdef _get_checkpoint_gpu_pair_dtype_offsets(): - cdef CUcheckpointGpuPair pod - return _numpy.dtype({ - 'names': ['old_uuid', 'new_uuid'], - 'formats': [uuid_dtype, uuid_dtype], - 'offsets': [ - (&(pod.oldUuid)) - (&pod), - (&(pod.newUuid)) - (&pod), - ], - 'itemsize': sizeof(CUcheckpointGpuPair), - }) + cdef CUcheckpointGpuPair *pod = _cyb_calloc(1, sizeof(CUcheckpointGpuPair)) + if pod == NULL: + raise MemoryError("Error allocating CUcheckpointGpuPair") + try: + return _numpy.dtype({ + 'names': ['old_uuid', 'new_uuid'], + 'formats': [uuid_dtype, uuid_dtype], + 'offsets': [ + (&(pod.oldUuid)) - (pod), + (&(pod.newUuid)) - (pod), + ], + 'itemsize': sizeof(CUcheckpointGpuPair), + }) + finally: + _cyb_free(pod) checkpoint_gpu_pair_dtype = _get_checkpoint_gpu_pair_dtype_offsets() @@ -16128,20 +16529,25 @@ cdef class CheckpointGpuPair: cdef _get_stream_mem_op_wait_value_params_dtype_offsets(): - cdef CUstreamMemOpWaitValueParams_st pod - return _numpy.dtype({ - 'names': ['operation', 'address', 'value', 'value64', 'flags_', 'alias'], - 'formats': [_numpy.int32, _numpy.uint64, _numpy.uint32, _numpy.uint64, _numpy.uint32, _numpy.uint64], - 'offsets': [ - (&(pod.operation)) - (&pod), - (&(pod.address)) - (&pod), - (&(pod.value)) - (&pod), - (&(pod.value64)) - (&pod), - (&(pod.flags)) - (&pod), - (&(pod.alias)) - (&pod), - ], - 'itemsize': sizeof(CUstreamMemOpWaitValueParams_st), - }) + cdef CUstreamMemOpWaitValueParams_st *pod = _cyb_calloc(1, sizeof(CUstreamMemOpWaitValueParams_st)) + if pod == NULL: + raise MemoryError("Error allocating CUstreamMemOpWaitValueParams_st") + try: + return _numpy.dtype({ + 'names': ['operation', 'address', 'value', 'value64', 'flags_', 'alias'], + 'formats': [_numpy.int32, _numpy.uint64, _numpy.uint32, _numpy.uint64, _numpy.uint32, _numpy.uint64], + 'offsets': [ + (&(pod.operation)) - (pod), + (&(pod.address)) - (pod), + (&(pod.value)) - (pod), + (&(pod.value64)) - (pod), + (&(pod.flags)) - (pod), + (&(pod.alias)) - (pod), + ], + 'itemsize': sizeof(CUstreamMemOpWaitValueParams_st), + }) + finally: + _cyb_free(pod) stream_mem_op_wait_value_params_dtype = _get_stream_mem_op_wait_value_params_dtype_offsets() @@ -16325,20 +16731,25 @@ cdef class StreamMemOpWaitValueParams: cdef _get_stream_mem_op_write_value_params_dtype_offsets(): - cdef CUstreamMemOpWriteValueParams_st pod - return _numpy.dtype({ - 'names': ['operation', 'address', 'value', 'value64', 'flags_', 'alias'], - 'formats': [_numpy.int32, _numpy.uint64, _numpy.uint32, _numpy.uint64, _numpy.uint32, _numpy.uint64], - 'offsets': [ - (&(pod.operation)) - (&pod), - (&(pod.address)) - (&pod), - (&(pod.value)) - (&pod), - (&(pod.value64)) - (&pod), - (&(pod.flags)) - (&pod), - (&(pod.alias)) - (&pod), - ], - 'itemsize': sizeof(CUstreamMemOpWriteValueParams_st), - }) + cdef CUstreamMemOpWriteValueParams_st *pod = _cyb_calloc(1, sizeof(CUstreamMemOpWriteValueParams_st)) + if pod == NULL: + raise MemoryError("Error allocating CUstreamMemOpWriteValueParams_st") + try: + return _numpy.dtype({ + 'names': ['operation', 'address', 'value', 'value64', 'flags_', 'alias'], + 'formats': [_numpy.int32, _numpy.uint64, _numpy.uint32, _numpy.uint64, _numpy.uint32, _numpy.uint64], + 'offsets': [ + (&(pod.operation)) - (pod), + (&(pod.address)) - (pod), + (&(pod.value)) - (pod), + (&(pod.value64)) - (pod), + (&(pod.flags)) - (pod), + (&(pod.alias)) - (pod), + ], + 'itemsize': sizeof(CUstreamMemOpWriteValueParams_st), + }) + finally: + _cyb_free(pod) stream_mem_op_write_value_params_dtype = _get_stream_mem_op_write_value_params_dtype_offsets() @@ -16522,15 +16933,20 @@ cdef class StreamMemOpWriteValueParams: cdef _get__py_anon_pod2_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod2 pod - return _numpy.dtype({ - 'names': ['over_budget'], - 'formats': [_py_anon_pod3_dtype], - 'offsets': [ - (&(pod.overBudget)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod2), - }) + cdef cuda_bindings_driver__anon_pod2 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod2)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod2") + try: + return _numpy.dtype({ + 'names': ['over_budget'], + 'formats': [_py_anon_pod3_dtype], + 'offsets': [ + (&(pod.overBudget)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod2), + }) + finally: + _cyb_free(pod) _py_anon_pod2_dtype = _get__py_anon_pod2_dtype_offsets() @@ -16664,19 +17080,24 @@ cdef class _py_anon_pod2: cdef _get_host_node_params_v2_dtype_offsets(): - cdef CUDA_HOST_NODE_PARAMS_v2 pod - return _numpy.dtype({ - 'names': ['fn', 'user_data', 'sync_mode', 'ctx', 'g_ctx'], - 'formats': [_numpy.intp, _numpy.intp, _numpy.uint32, _numpy.intp, _numpy.intp], - 'offsets': [ - (&(pod.fn)) - (&pod), - (&(pod.userData)) - (&pod), - (&(pod.syncMode)) - (&pod), - (&(pod.ctx)) - (&pod), - (&(pod.gCtx)) - (&pod), - ], - 'itemsize': sizeof(CUDA_HOST_NODE_PARAMS_v2), - }) + cdef CUDA_HOST_NODE_PARAMS_v2 *pod = _cyb_calloc(1, sizeof(CUDA_HOST_NODE_PARAMS_v2)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_HOST_NODE_PARAMS_v2") + try: + return _numpy.dtype({ + 'names': ['fn', 'user_data', 'sync_mode', 'ctx', 'g_ctx'], + 'formats': [_numpy.intp, _numpy.intp, _numpy.uint32, _numpy.intp, _numpy.intp], + 'offsets': [ + (&(pod.fn)) - (pod), + (&(pod.userData)) - (pod), + (&(pod.syncMode)) - (pod), + (&(pod.ctx)) - (pod), + (&(pod.gCtx)) - (pod), + ], + 'itemsize': sizeof(CUDA_HOST_NODE_PARAMS_v2), + }) + finally: + _cyb_free(pod) host_node_params_v2_dtype = _get_host_node_params_v2_dtype_offsets() @@ -16849,32 +17270,37 @@ cdef class HostNodeParams_v2: cdef _get_launch_attribute_value_dtype_offsets(): - cdef CUlaunchAttributeValue pod - return _numpy.dtype({ - 'names': ['pad', 'access_policy_window', 'cooperative', 'sync_policy', 'cluster_dim', 'cluster_scheduling_policy_preference', 'programmatic_stream_serialization_allowed', 'programmatic_event', 'launch_completion_event', 'priority', 'mem_sync_domain_map', 'mem_sync_domain', 'preferred_cluster_dim', 'device_updatable_kernel_node', 'shared_mem_carveout', 'nvlink_util_centric_scheduling', 'portable_cluster_size_mode', 'shared_memory_mode'], - 'formats': [(_numpy.int8, 64), access_policy_window_v1_dtype, _numpy.int32, _numpy.int32, _py_anon_pod5_dtype, _numpy.int32, _numpy.int32, _py_anon_pod6_dtype, _py_anon_pod7_dtype, _numpy.int32, launch_mem_sync_domain_map_dtype, _numpy.int32, _py_anon_pod8_dtype, _py_anon_pod9_dtype, _numpy.uint32, _numpy.uint32, _numpy.int32, _numpy.int32], - 'offsets': [ - (&(pod.pad)) - (&pod), - (&(pod.accessPolicyWindow)) - (&pod), - (&(pod.cooperative)) - (&pod), - (&(pod.syncPolicy)) - (&pod), - (&(pod.clusterDim)) - (&pod), - (&(pod.clusterSchedulingPolicyPreference)) - (&pod), - (&(pod.programmaticStreamSerializationAllowed)) - (&pod), - (&(pod.programmaticEvent)) - (&pod), - (&(pod.launchCompletionEvent)) - (&pod), - (&(pod.priority)) - (&pod), - (&(pod.memSyncDomainMap)) - (&pod), - (&(pod.memSyncDomain)) - (&pod), - (&(pod.preferredClusterDim)) - (&pod), - (&(pod.deviceUpdatableKernelNode)) - (&pod), - (&(pod.sharedMemCarveout)) - (&pod), - (&(pod.nvlinkUtilCentricScheduling)) - (&pod), - (&(pod.portableClusterSizeMode)) - (&pod), - (&(pod.sharedMemoryMode)) - (&pod), - ], - 'itemsize': sizeof(CUlaunchAttributeValue), - }) + cdef CUlaunchAttributeValue *pod = _cyb_calloc(1, sizeof(CUlaunchAttributeValue)) + if pod == NULL: + raise MemoryError("Error allocating CUlaunchAttributeValue") + try: + return _numpy.dtype({ + 'names': ['pad', 'access_policy_window', 'cooperative', 'sync_policy', 'cluster_dim', 'cluster_scheduling_policy_preference', 'programmatic_stream_serialization_allowed', 'programmatic_event', 'launch_completion_event', 'priority', 'mem_sync_domain_map', 'mem_sync_domain', 'preferred_cluster_dim', 'device_updatable_kernel_node', 'shared_mem_carveout', 'nvlink_util_centric_scheduling', 'portable_cluster_size_mode', 'shared_memory_mode'], + 'formats': [(_numpy.int8, 64), access_policy_window_v1_dtype, _numpy.int32, _numpy.int32, _py_anon_pod5_dtype, _numpy.int32, _numpy.int32, _py_anon_pod6_dtype, _py_anon_pod7_dtype, _numpy.int32, launch_mem_sync_domain_map_dtype, _numpy.int32, _py_anon_pod8_dtype, _py_anon_pod9_dtype, _numpy.uint32, _numpy.uint32, _numpy.int32, _numpy.int32], + 'offsets': [ + (&(pod.pad)) - (pod), + (&(pod.accessPolicyWindow)) - (pod), + (&(pod.cooperative)) - (pod), + (&(pod.syncPolicy)) - (pod), + (&(pod.clusterDim)) - (pod), + (&(pod.clusterSchedulingPolicyPreference)) - (pod), + (&(pod.programmaticStreamSerializationAllowed)) - (pod), + (&(pod.programmaticEvent)) - (pod), + (&(pod.launchCompletionEvent)) - (pod), + (&(pod.priority)) - (pod), + (&(pod.memSyncDomainMap)) - (pod), + (&(pod.memSyncDomain)) - (pod), + (&(pod.preferredClusterDim)) - (pod), + (&(pod.deviceUpdatableKernelNode)) - (pod), + (&(pod.sharedMemCarveout)) - (pod), + (&(pod.nvlinkUtilCentricScheduling)) - (pod), + (&(pod.portableClusterSizeMode)) - (pod), + (&(pod.sharedMemoryMode)) - (pod), + ], + 'itemsize': sizeof(CUlaunchAttributeValue), + }) + finally: + _cyb_free(pod) launch_attribute_value_dtype = _get_launch_attribute_value_dtype_offsets() @@ -17214,15 +17640,20 @@ cdef class LaunchAttributeValue: cdef _get__py_anon_pod10_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod10 pod - return _numpy.dtype({ - 'names': ['sm_count'], - 'formats': [exec_affinity_sm_count_v1_dtype], - 'offsets': [ - (&(pod.smCount)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod10), - }) + cdef cuda_bindings_driver__anon_pod10 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod10)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod10") + try: + return _numpy.dtype({ + 'names': ['sm_count'], + 'formats': [exec_affinity_sm_count_v1_dtype], + 'offsets': [ + (&(pod.smCount)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod10), + }) + finally: + _cyb_free(pod) _py_anon_pod10_dtype = _get__py_anon_pod10_dtype_offsets() @@ -17356,18 +17787,23 @@ cdef class _py_anon_pod10: cdef _get_mem_cpy_node_params_dtype_offsets(): - cdef CUDA_MEMCPY_NODE_PARAMS pod - return _numpy.dtype({ - 'names': ['flags_', 'reserved', 'copy_ctx', 'copy_params'], - 'formats': [_numpy.int32, _numpy.int32, _numpy.intp, mem_cpy3d_v2_dtype], - 'offsets': [ - (&(pod.flags)) - (&pod), - (&(pod.reserved)) - (&pod), - (&(pod.copyCtx)) - (&pod), - (&(pod.copyParams)) - (&pod), - ], - 'itemsize': sizeof(CUDA_MEMCPY_NODE_PARAMS), - }) + cdef CUDA_MEMCPY_NODE_PARAMS *pod = _cyb_calloc(1, sizeof(CUDA_MEMCPY_NODE_PARAMS)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_MEMCPY_NODE_PARAMS") + try: + return _numpy.dtype({ + 'names': ['flags_', 'reserved', 'copy_ctx', 'copy_params'], + 'formats': [_numpy.int32, _numpy.int32, _numpy.intp, mem_cpy3d_v2_dtype], + 'offsets': [ + (&(pod.flags)) - (pod), + (&(pod.reserved)) - (pod), + (&(pod.copyCtx)) - (pod), + (&(pod.copyParams)) - (pod), + ], + 'itemsize': sizeof(CUDA_MEMCPY_NODE_PARAMS), + }) + finally: + _cyb_free(pod) mem_cpy_node_params_dtype = _get_mem_cpy_node_params_dtype_offsets() @@ -17523,18 +17959,23 @@ cdef class MemCpyNodeParams: cdef _get_external_memory_mipmapped_array_desc_v1_dtype_offsets(): - cdef CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1 pod - return _numpy.dtype({ - 'names': ['offset', 'array_desc', 'num_levels', 'reserved'], - 'formats': [_numpy.uint64, array3d_descriptor_v2_dtype, _numpy.uint32, (_numpy.uint32, 16)], - 'offsets': [ - (&(pod.offset)) - (&pod), - (&(pod.arrayDesc)) - (&pod), - (&(pod.numLevels)) - (&pod), - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1), - }) + cdef CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1 *pod = _cyb_calloc(1, sizeof(CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1") + try: + return _numpy.dtype({ + 'names': ['offset', 'array_desc', 'num_levels', 'reserved'], + 'formats': [_numpy.uint64, array3d_descriptor_v2_dtype, _numpy.uint32, (_numpy.uint32, 16)], + 'offsets': [ + (&(pod.offset)) - (pod), + (&(pod.arrayDesc)) - (pod), + (&(pod.numLevels)) - (pod), + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1), + }) + finally: + _cyb_free(pod) external_memory_mipmapped_array_desc_v1_dtype = _get_external_memory_mipmapped_array_desc_v1_dtype_offsets() @@ -17678,19 +18119,24 @@ cdef class ExternalMemoryMipmappedArrayDesc_v1: cdef _get_array_sparse_properties_v1_dtype_offsets(): - cdef CUDA_ARRAY_SPARSE_PROPERTIES_v1 pod - return _numpy.dtype({ - 'names': ['tile_extent', 'miptail_first_level', 'miptail_size', 'flags_', 'reserved'], - 'formats': [_py_anon_pod11_dtype, _numpy.uint32, _numpy.uint64, _numpy.uint32, (_numpy.uint32, 4)], - 'offsets': [ - (&(pod.tileExtent)) - (&pod), - (&(pod.miptailFirstLevel)) - (&pod), - (&(pod.miptailSize)) - (&pod), - (&(pod.flags)) - (&pod), - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(CUDA_ARRAY_SPARSE_PROPERTIES_v1), - }) + cdef CUDA_ARRAY_SPARSE_PROPERTIES_v1 *pod = _cyb_calloc(1, sizeof(CUDA_ARRAY_SPARSE_PROPERTIES_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_ARRAY_SPARSE_PROPERTIES_v1") + try: + return _numpy.dtype({ + 'names': ['tile_extent', 'miptail_first_level', 'miptail_size', 'flags_', 'reserved'], + 'formats': [_py_anon_pod11_dtype, _numpy.uint32, _numpy.uint64, _numpy.uint32, (_numpy.uint32, 4)], + 'offsets': [ + (&(pod.tileExtent)) - (pod), + (&(pod.miptailFirstLevel)) - (pod), + (&(pod.miptailSize)) - (pod), + (&(pod.flags)) - (pod), + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(CUDA_ARRAY_SPARSE_PROPERTIES_v1), + }) + finally: + _cyb_free(pod) array_sparse_properties_v1_dtype = _get_array_sparse_properties_v1_dtype_offsets() @@ -17845,19 +18291,24 @@ cdef class ArraySparseProperties_v1: cdef _get__py_anon_pod12_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod12 pod - return _numpy.dtype({ - 'names': ['array', 'mipmap', 'linear', 'pitch2d', 'reserved'], - 'formats': [_py_anon_pod13_dtype, _py_anon_pod14_dtype, _py_anon_pod15_dtype, _py_anon_pod16_dtype, _py_anon_pod17_dtype], - 'offsets': [ - (&(pod.array)) - (&pod), - (&(pod.mipmap)) - (&pod), - (&(pod.linear)) - (&pod), - (&(pod.pitch2D)) - (&pod), - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod12), - }) + cdef cuda_bindings_driver__anon_pod12 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod12)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod12") + try: + return _numpy.dtype({ + 'names': ['array', 'mipmap', 'linear', 'pitch2d', 'reserved'], + 'formats': [_py_anon_pod13_dtype, _py_anon_pod14_dtype, _py_anon_pod15_dtype, _py_anon_pod16_dtype, _py_anon_pod17_dtype], + 'offsets': [ + (&(pod.array)) - (pod), + (&(pod.mipmap)) - (pod), + (&(pod.linear)) - (pod), + (&(pod.pitch2D)) - (pod), + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod12), + }) + finally: + _cyb_free(pod) _py_anon_pod12_dtype = _get__py_anon_pod12_dtype_offsets() @@ -18039,17 +18490,22 @@ cdef class _py_anon_pod12: cdef _get__py_anon_pod18_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod18 pod - return _numpy.dtype({ - 'names': ['fd', 'win32', 'nv_sci_buf_object'], - 'formats': [_numpy.int32, _py_anon_pod19_dtype, _numpy.intp], - 'offsets': [ - (&(pod.fd)) - (&pod), - (&(pod.win32)) - (&pod), - (&(pod.nvSciBufObject)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod18), - }) + cdef cuda_bindings_driver__anon_pod18 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod18)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod18") + try: + return _numpy.dtype({ + 'names': ['fd', 'win32', 'nv_sci_buf_object'], + 'formats': [_numpy.int32, _py_anon_pod19_dtype, _numpy.intp], + 'offsets': [ + (&(pod.fd)) - (pod), + (&(pod.win32)) - (pod), + (&(pod.nvSciBufObject)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod18), + }) + finally: + _cyb_free(pod) _py_anon_pod18_dtype = _get__py_anon_pod18_dtype_offsets() @@ -18205,17 +18661,22 @@ cdef class _py_anon_pod18: cdef _get__py_anon_pod20_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod20 pod - return _numpy.dtype({ - 'names': ['fd', 'win32', 'nv_sci_sync_obj'], - 'formats': [_numpy.int32, _py_anon_pod21_dtype, _numpy.intp], - 'offsets': [ - (&(pod.fd)) - (&pod), - (&(pod.win32)) - (&pod), - (&(pod.nvSciSyncObj)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod20), - }) + cdef cuda_bindings_driver__anon_pod20 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod20)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod20") + try: + return _numpy.dtype({ + 'names': ['fd', 'win32', 'nv_sci_sync_obj'], + 'formats': [_numpy.int32, _py_anon_pod21_dtype, _numpy.intp], + 'offsets': [ + (&(pod.fd)) - (pod), + (&(pod.win32)) - (pod), + (&(pod.nvSciSyncObj)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod20), + }) + finally: + _cyb_free(pod) _py_anon_pod20_dtype = _get__py_anon_pod20_dtype_offsets() @@ -18371,18 +18832,23 @@ cdef class _py_anon_pod20: cdef _get__py_anon_pod22_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod22 pod - return _numpy.dtype({ - 'names': ['fence', 'nv_sci_sync', 'keyed_mutex', 'reserved'], - 'formats': [_py_anon_pod23_dtype, _py_anon_pod24_dtype, _py_anon_pod25_dtype, (_numpy.uint32, 12)], - 'offsets': [ - (&(pod.fence)) - (&pod), - (&(pod.nvSciSync)) - (&pod), - (&(pod.keyedMutex)) - (&pod), - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod22), - }) + cdef cuda_bindings_driver__anon_pod22 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod22)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod22") + try: + return _numpy.dtype({ + 'names': ['fence', 'nv_sci_sync', 'keyed_mutex', 'reserved'], + 'formats': [_py_anon_pod23_dtype, _py_anon_pod24_dtype, _py_anon_pod25_dtype, (_numpy.uint32, 12)], + 'offsets': [ + (&(pod.fence)) - (pod), + (&(pod.nvSciSync)) - (pod), + (&(pod.keyedMutex)) - (pod), + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod22), + }) + finally: + _cyb_free(pod) _py_anon_pod22_dtype = _get__py_anon_pod22_dtype_offsets() @@ -18548,18 +19014,23 @@ cdef class _py_anon_pod22: cdef _get__py_anon_pod26_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod26 pod - return _numpy.dtype({ - 'names': ['fence', 'nv_sci_sync', 'keyed_mutex', 'reserved'], - 'formats': [_py_anon_pod27_dtype, _py_anon_pod28_dtype, _py_anon_pod29_dtype, (_numpy.uint32, 10)], - 'offsets': [ - (&(pod.fence)) - (&pod), - (&(pod.nvSciSync)) - (&pod), - (&(pod.keyedMutex)) - (&pod), - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod26), - }) + cdef cuda_bindings_driver__anon_pod26 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod26)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod26") + try: + return _numpy.dtype({ + 'names': ['fence', 'nv_sci_sync', 'keyed_mutex', 'reserved'], + 'formats': [_py_anon_pod27_dtype, _py_anon_pod28_dtype, _py_anon_pod29_dtype, (_numpy.uint32, 10)], + 'offsets': [ + (&(pod.fence)) - (pod), + (&(pod.nvSciSync)) - (pod), + (&(pod.keyedMutex)) - (pod), + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod26), + }) + finally: + _cyb_free(pod) _py_anon_pod26_dtype = _get__py_anon_pod26_dtype_offsets() @@ -18725,16 +19196,21 @@ cdef class _py_anon_pod26: cdef _get__py_anon_pod33_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod33 pod - return _numpy.dtype({ - 'names': ['sparse_level', 'miptail'], - 'formats': [_py_anon_pod34_dtype, _py_anon_pod35_dtype], - 'offsets': [ - (&(pod.sparseLevel)) - (&pod), - (&(pod.miptail)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod33), - }) + cdef cuda_bindings_driver__anon_pod33 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod33)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod33") + try: + return _numpy.dtype({ + 'names': ['sparse_level', 'miptail'], + 'formats': [_py_anon_pod34_dtype, _py_anon_pod35_dtype], + 'offsets': [ + (&(pod.sparseLevel)) - (pod), + (&(pod.miptail)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod33), + }) + finally: + _cyb_free(pod) _py_anon_pod33_dtype = _get__py_anon_pod33_dtype_offsets() @@ -18884,16 +19360,21 @@ cdef class _py_anon_pod33: cdef _get__py_anon_pod42_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod42 pod - return _numpy.dtype({ - 'names': ['array', 'offset'], - 'formats': [_numpy.intp, offset3d_v1_dtype], - 'offsets': [ - (&(pod.array)) - (&pod), - (&(pod.offset)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod42), - }) + cdef cuda_bindings_driver__anon_pod42 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod42)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod42") + try: + return _numpy.dtype({ + 'names': ['array', 'offset'], + 'formats': [_numpy.intp, offset3d_v1_dtype], + 'offsets': [ + (&(pod.array)) - (pod), + (&(pod.offset)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod42), + }) + finally: + _cyb_free(pod) _py_anon_pod42_dtype = _get__py_anon_pod42_dtype_offsets() @@ -19038,17 +19519,22 @@ cdef class _py_anon_pod42: cdef _get_event_record_node_params_dtype_offsets(): - cdef CUDA_EVENT_RECORD_NODE_PARAMS pod - return _numpy.dtype({ - 'names': ['event', 'ctx', 'g_ctx'], - 'formats': [_numpy.intp, _numpy.intp, _numpy.intp], - 'offsets': [ - (&(pod.event)) - (&pod), - (&(pod.ctx)) - (&pod), - (&(pod.gCtx)) - (&pod), - ], - 'itemsize': sizeof(CUDA_EVENT_RECORD_NODE_PARAMS), - }) + cdef CUDA_EVENT_RECORD_NODE_PARAMS *pod = _cyb_calloc(1, sizeof(CUDA_EVENT_RECORD_NODE_PARAMS)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_EVENT_RECORD_NODE_PARAMS") + try: + return _numpy.dtype({ + 'names': ['event', 'ctx', 'g_ctx'], + 'formats': [_numpy.intp, _numpy.intp, _numpy.intp], + 'offsets': [ + (&(pod.event)) - (pod), + (&(pod.ctx)) - (pod), + (&(pod.gCtx)) - (pod), + ], + 'itemsize': sizeof(CUDA_EVENT_RECORD_NODE_PARAMS), + }) + finally: + _cyb_free(pod) event_record_node_params_dtype = _get_event_record_node_params_dtype_offsets() @@ -19199,19 +19685,24 @@ cdef class EventRecordNodeParams: cdef _get_fabric_cpy_batch_node_params_v1_dtype_offsets(): - cdef CUDA_FABRIC_CPY_BATCH_NODE_PARAMS_V1 pod - return _numpy.dtype({ - 'names': ['num_ops', 'op_list', 'flags_', 'ctx', 'g_ctx'], - 'formats': [_numpy.uint64, _numpy.intp, _numpy.uint64, _numpy.intp, _numpy.intp], - 'offsets': [ - (&(pod.numOps)) - (&pod), - (&(pod.opList)) - (&pod), - (&(pod.flags)) - (&pod), - (&(pod.ctx)) - (&pod), - (&(pod.gCtx)) - (&pod), - ], - 'itemsize': sizeof(CUDA_FABRIC_CPY_BATCH_NODE_PARAMS_V1), - }) + cdef CUDA_FABRIC_CPY_BATCH_NODE_PARAMS_V1 *pod = _cyb_calloc(1, sizeof(CUDA_FABRIC_CPY_BATCH_NODE_PARAMS_V1)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_FABRIC_CPY_BATCH_NODE_PARAMS_V1") + try: + return _numpy.dtype({ + 'names': ['num_ops', 'op_list', 'flags_', 'ctx', 'g_ctx'], + 'formats': [_numpy.uint64, _numpy.intp, _numpy.uint64, _numpy.intp, _numpy.intp], + 'offsets': [ + (&(pod.numOps)) - (pod), + (&(pod.opList)) - (pod), + (&(pod.flags)) - (pod), + (&(pod.ctx)) - (pod), + (&(pod.gCtx)) - (pod), + ], + 'itemsize': sizeof(CUDA_FABRIC_CPY_BATCH_NODE_PARAMS_V1), + }) + finally: + _cyb_free(pod) fabric_cpy_batch_node_params_v1_dtype = _get_fabric_cpy_batch_node_params_v1_dtype_offsets() @@ -19384,15 +19875,20 @@ cdef class FabricCpyBatchNodeParamsV1: cdef _get_stream_cig_capture_params_dtype_offsets(): - cdef CUstreamCigCaptureParams pod - return _numpy.dtype({ - 'names': ['stream_cig_params'], - 'formats': [_numpy.intp], - 'offsets': [ - (&(pod.streamCigParams)) - (&pod), - ], - 'itemsize': sizeof(CUstreamCigCaptureParams), - }) + cdef CUstreamCigCaptureParams *pod = _cyb_calloc(1, sizeof(CUstreamCigCaptureParams)) + if pod == NULL: + raise MemoryError("Error allocating CUstreamCigCaptureParams") + try: + return _numpy.dtype({ + 'names': ['stream_cig_params'], + 'formats': [_numpy.intp], + 'offsets': [ + (&(pod.streamCigParams)) - (pod), + ], + 'itemsize': sizeof(CUstreamCigCaptureParams), + }) + finally: + _cyb_free(pod) stream_cig_capture_params_dtype = _get_stream_cig_capture_params_dtype_offsets() @@ -19509,21 +20005,26 @@ cdef class StreamCigCaptureParams: cdef _get_stream_batch_mem_op_params_v1_dtype_offsets(): - cdef CUstreamBatchMemOpParams_v1 pod - return _numpy.dtype({ - 'names': ['operation', 'wait_value', 'write_value', 'flush_remote_writes', 'memory_barrier', 'atomic_reduction', 'pad'], - 'formats': [_numpy.int32, stream_mem_op_wait_value_params_dtype, stream_mem_op_write_value_params_dtype, stream_mem_op_flush_remote_writes_params_dtype, stream_mem_op_memory_barrier_params_dtype, stream_mem_op_atomic_reduction_params_dtype, (_numpy.uint64, 6)], - 'offsets': [ - (&(pod.operation)) - (&pod), - (&(pod.waitValue)) - (&pod), - (&(pod.writeValue)) - (&pod), - (&(pod.flushRemoteWrites)) - (&pod), - (&(pod.memoryBarrier)) - (&pod), - (&(pod.atomicReduction)) - (&pod), - (&(pod.pad)) - (&pod), - ], - 'itemsize': sizeof(CUstreamBatchMemOpParams_v1), - }) + cdef CUstreamBatchMemOpParams_v1 *pod = _cyb_calloc(1, sizeof(CUstreamBatchMemOpParams_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUstreamBatchMemOpParams_v1") + try: + return _numpy.dtype({ + 'names': ['operation', 'wait_value', 'write_value', 'flush_remote_writes', 'memory_barrier', 'atomic_reduction', 'pad'], + 'formats': [_numpy.int32, stream_mem_op_wait_value_params_dtype, stream_mem_op_write_value_params_dtype, stream_mem_op_flush_remote_writes_params_dtype, stream_mem_op_memory_barrier_params_dtype, stream_mem_op_atomic_reduction_params_dtype, (_numpy.uint64, 6)], + 'offsets': [ + (&(pod.operation)) - (pod), + (&(pod.waitValue)) - (pod), + (&(pod.writeValue)) - (pod), + (&(pod.flushRemoteWrites)) - (pod), + (&(pod.memoryBarrier)) - (pod), + (&(pod.atomicReduction)) - (pod), + (&(pod.pad)) - (pod), + ], + 'itemsize': sizeof(CUstreamBatchMemOpParams_v1), + }) + finally: + _cyb_free(pod) stream_batch_mem_op_params_v1_dtype = _get_stream_batch_mem_op_params_v1_dtype_offsets() cdef object stream_batch_mem_op_params_v1_dtype_record = _numpy.dtype((_numpy.record, stream_batch_mem_op_params_v1_dtype)) @@ -19814,16 +20315,21 @@ cdef class StreamBatchMemOpParams_v1: cdef _get_async_notification_info_dtype_offsets(): - cdef CUasyncNotificationInfo pod - return _numpy.dtype({ - 'names': ['type', 'info'], - 'formats': [_numpy.int32, _py_anon_pod2_dtype], - 'offsets': [ - (&(pod.type)) - (&pod), - (&(pod.info)) - (&pod), - ], - 'itemsize': sizeof(CUasyncNotificationInfo), - }) + cdef CUasyncNotificationInfo *pod = _cyb_calloc(1, sizeof(CUasyncNotificationInfo)) + if pod == NULL: + raise MemoryError("Error allocating CUasyncNotificationInfo") + try: + return _numpy.dtype({ + 'names': ['type', 'info'], + 'formats': [_numpy.int32, _py_anon_pod2_dtype], + 'offsets': [ + (&(pod.type)) - (pod), + (&(pod.info)) - (pod), + ], + 'itemsize': sizeof(CUasyncNotificationInfo), + }) + finally: + _cyb_free(pod) async_notification_info_dtype = _get_async_notification_info_dtype_offsets() @@ -19956,16 +20462,21 @@ cdef class AsyncNotificationInfo: cdef _get_launch_attribute_dtype_offsets(): - cdef CUlaunchAttribute pod - return _numpy.dtype({ - 'names': ['id', 'value'], - 'formats': [_numpy.int32, launch_attribute_value_dtype], - 'offsets': [ - (&(pod.id)) - (&pod), - (&(pod.value)) - (&pod), - ], - 'itemsize': sizeof(CUlaunchAttribute), - }) + cdef CUlaunchAttribute *pod = _cyb_calloc(1, sizeof(CUlaunchAttribute)) + if pod == NULL: + raise MemoryError("Error allocating CUlaunchAttribute") + try: + return _numpy.dtype({ + 'names': ['id', 'value'], + 'formats': [_numpy.int32, launch_attribute_value_dtype], + 'offsets': [ + (&(pod.id)) - (pod), + (&(pod.value)) - (pod), + ], + 'itemsize': sizeof(CUlaunchAttribute), + }) + finally: + _cyb_free(pod) launch_attribute_dtype = _get_launch_attribute_dtype_offsets() @@ -20098,16 +20609,21 @@ cdef class LaunchAttribute: cdef _get_exec_affinity_param_v1_dtype_offsets(): - cdef CUexecAffinityParam_v1 pod - return _numpy.dtype({ - 'names': ['type', 'param'], - 'formats': [_numpy.int32, _py_anon_pod10_dtype], - 'offsets': [ - (&(pod.type)) - (&pod), - (&(pod.param)) - (&pod), - ], - 'itemsize': sizeof(CUexecAffinityParam_v1), - }) + cdef CUexecAffinityParam_v1 *pod = _cyb_calloc(1, sizeof(CUexecAffinityParam_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUexecAffinityParam_v1") + try: + return _numpy.dtype({ + 'names': ['type', 'param'], + 'formats': [_numpy.int32, _py_anon_pod10_dtype], + 'offsets': [ + (&(pod.type)) - (pod), + (&(pod.param)) - (pod), + ], + 'itemsize': sizeof(CUexecAffinityParam_v1), + }) + finally: + _cyb_free(pod) exec_affinity_param_v1_dtype = _get_exec_affinity_param_v1_dtype_offsets() cdef object exec_affinity_param_v1_dtype_record = _numpy.dtype((_numpy.record, exec_affinity_param_v1_dtype)) @@ -20282,17 +20798,22 @@ cdef class ExecAffinityParam_v1: cdef _get_resource_desc_v1_dtype_offsets(): - cdef CUDA_RESOURCE_DESC_v1 pod - return _numpy.dtype({ - 'names': ['res_type', 'res', 'flags_'], - 'formats': [_numpy.int32, _py_anon_pod12_dtype, _numpy.uint32], - 'offsets': [ - (&(pod.resType)) - (&pod), - (&(pod.res)) - (&pod), - (&(pod.flags)) - (&pod), - ], - 'itemsize': sizeof(CUDA_RESOURCE_DESC_v1), - }) + cdef CUDA_RESOURCE_DESC_v1 *pod = _cyb_calloc(1, sizeof(CUDA_RESOURCE_DESC_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_RESOURCE_DESC_v1") + try: + return _numpy.dtype({ + 'names': ['res_type', 'res', 'flags_'], + 'formats': [_numpy.int32, _py_anon_pod12_dtype, _numpy.uint32], + 'offsets': [ + (&(pod.resType)) - (pod), + (&(pod.res)) - (pod), + (&(pod.flags)) - (pod), + ], + 'itemsize': sizeof(CUDA_RESOURCE_DESC_v1), + }) + finally: + _cyb_free(pod) resource_desc_v1_dtype = _get_resource_desc_v1_dtype_offsets() @@ -20436,19 +20957,24 @@ cdef class ResourceDesc_v1: cdef _get_external_memory_handle_desc_v1_dtype_offsets(): - cdef CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1 pod - return _numpy.dtype({ - 'names': ['type', 'handle', 'size_', 'flags_', 'reserved'], - 'formats': [_numpy.int32, _py_anon_pod18_dtype, _numpy.uint64, _numpy.uint32, (_numpy.uint32, 16)], - 'offsets': [ - (&(pod.type)) - (&pod), - (&(pod.handle)) - (&pod), - (&(pod.size)) - (&pod), - (&(pod.flags)) - (&pod), - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1), - }) + cdef CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1 *pod = _cyb_calloc(1, sizeof(CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1") + try: + return _numpy.dtype({ + 'names': ['type', 'handle', 'size_', 'flags_', 'reserved'], + 'formats': [_numpy.int32, _py_anon_pod18_dtype, _numpy.uint64, _numpy.uint32, (_numpy.uint32, 16)], + 'offsets': [ + (&(pod.type)) - (pod), + (&(pod.handle)) - (pod), + (&(pod.size)) - (pod), + (&(pod.flags)) - (pod), + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1), + }) + finally: + _cyb_free(pod) external_memory_handle_desc_v1_dtype = _get_external_memory_handle_desc_v1_dtype_offsets() @@ -20603,18 +21129,23 @@ cdef class ExternalMemoryHandleDesc_v1: cdef _get_external_semaphore_handle_desc_v1_dtype_offsets(): - cdef CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1 pod - return _numpy.dtype({ - 'names': ['type', 'handle', 'flags_', 'reserved'], - 'formats': [_numpy.int32, _py_anon_pod20_dtype, _numpy.uint32, (_numpy.uint32, 16)], - 'offsets': [ - (&(pod.type)) - (&pod), - (&(pod.handle)) - (&pod), - (&(pod.flags)) - (&pod), - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1), - }) + cdef CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1 *pod = _cyb_calloc(1, sizeof(CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1") + try: + return _numpy.dtype({ + 'names': ['type', 'handle', 'flags_', 'reserved'], + 'formats': [_numpy.int32, _py_anon_pod20_dtype, _numpy.uint32, (_numpy.uint32, 16)], + 'offsets': [ + (&(pod.type)) - (pod), + (&(pod.handle)) - (pod), + (&(pod.flags)) - (pod), + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1), + }) + finally: + _cyb_free(pod) external_semaphore_handle_desc_v1_dtype = _get_external_semaphore_handle_desc_v1_dtype_offsets() @@ -20758,17 +21289,22 @@ cdef class ExternalSemaphoreHandleDesc_v1: cdef _get_external_semaphore_signal_params_v1_dtype_offsets(): - cdef CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1 pod - return _numpy.dtype({ - 'names': ['params', 'flags_', 'reserved'], - 'formats': [_py_anon_pod22_dtype, _numpy.uint32, (_numpy.uint32, 16)], - 'offsets': [ - (&(pod.params)) - (&pod), - (&(pod.flags)) - (&pod), - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1), - }) + cdef CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1 *pod = _cyb_calloc(1, sizeof(CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1") + try: + return _numpy.dtype({ + 'names': ['params', 'flags_', 'reserved'], + 'formats': [_py_anon_pod22_dtype, _numpy.uint32, (_numpy.uint32, 16)], + 'offsets': [ + (&(pod.params)) - (pod), + (&(pod.flags)) - (pod), + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1), + }) + finally: + _cyb_free(pod) external_semaphore_signal_params_v1_dtype = _get_external_semaphore_signal_params_v1_dtype_offsets() @@ -20901,17 +21437,22 @@ cdef class ExternalSemaphoreSignalParams_v1: cdef _get_external_semaphore_wait_params_v1_dtype_offsets(): - cdef CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1 pod - return _numpy.dtype({ - 'names': ['params', 'flags_', 'reserved'], - 'formats': [_py_anon_pod26_dtype, _numpy.uint32, (_numpy.uint32, 16)], - 'offsets': [ - (&(pod.params)) - (&pod), - (&(pod.flags)) - (&pod), - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1), - }) + cdef CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1 *pod = _cyb_calloc(1, sizeof(CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1") + try: + return _numpy.dtype({ + 'names': ['params', 'flags_', 'reserved'], + 'formats': [_py_anon_pod26_dtype, _numpy.uint32, (_numpy.uint32, 16)], + 'offsets': [ + (&(pod.params)) - (pod), + (&(pod.flags)) - (pod), + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1), + }) + finally: + _cyb_free(pod) external_semaphore_wait_params_v1_dtype = _get_external_semaphore_wait_params_v1_dtype_offsets() @@ -21044,25 +21585,30 @@ cdef class ExternalSemaphoreWaitParams_v1: cdef _get_array_map_info_v1_dtype_offsets(): - cdef CUarrayMapInfo_v1 pod - return _numpy.dtype({ - 'names': ['resource_type', 'resource', 'subresource_type', 'subresource', 'mem_operation_type', 'mem_handle_type', 'mem_handle', 'offset', 'device_bit_mask', 'flags_', 'reserved'], - 'formats': [_numpy.int32, _py_anon_pod32_dtype, _numpy.int32, _py_anon_pod33_dtype, _numpy.int32, _numpy.int32, _py_anon_pod36_dtype, _numpy.uint64, _numpy.uint32, _numpy.uint32, (_numpy.uint32, 2)], - 'offsets': [ - (&(pod.resourceType)) - (&pod), - (&(pod.resource)) - (&pod), - (&(pod.subresourceType)) - (&pod), - (&(pod.subresource)) - (&pod), - (&(pod.memOperationType)) - (&pod), - (&(pod.memHandleType)) - (&pod), - (&(pod.memHandle)) - (&pod), - (&(pod.offset)) - (&pod), - (&(pod.deviceBitMask)) - (&pod), - (&(pod.flags)) - (&pod), - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(CUarrayMapInfo_v1), - }) + cdef CUarrayMapInfo_v1 *pod = _cyb_calloc(1, sizeof(CUarrayMapInfo_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUarrayMapInfo_v1") + try: + return _numpy.dtype({ + 'names': ['resource_type', 'resource', 'subresource_type', 'subresource', 'mem_operation_type', 'mem_handle_type', 'mem_handle', 'offset', 'device_bit_mask', 'flags_', 'reserved'], + 'formats': [_numpy.int32, _py_anon_pod32_dtype, _numpy.int32, _py_anon_pod33_dtype, _numpy.int32, _numpy.int32, _py_anon_pod36_dtype, _numpy.uint64, _numpy.uint32, _numpy.uint32, (_numpy.uint32, 2)], + 'offsets': [ + (&(pod.resourceType)) - (pod), + (&(pod.resource)) - (pod), + (&(pod.subresourceType)) - (pod), + (&(pod.subresource)) - (pod), + (&(pod.memOperationType)) - (pod), + (&(pod.memHandleType)) - (pod), + (&(pod.memHandle)) - (pod), + (&(pod.offset)) - (pod), + (&(pod.deviceBitMask)) - (pod), + (&(pod.flags)) - (pod), + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(CUarrayMapInfo_v1), + }) + finally: + _cyb_free(pod) array_map_info_v1_dtype = _get_array_map_info_v1_dtype_offsets() cdef object array_map_info_v1_dtype_record = _numpy.dtype((_numpy.record, array_map_info_v1_dtype)) @@ -21373,17 +21919,22 @@ cdef class ArrayMapInfo_v1: cdef _get_mem_location_v1_dtype_offsets(): - cdef CUmemLocation_v1 pod - return _numpy.dtype({ - 'names': ['type', 'id', 'localized'], - 'formats': [_numpy.int32, _numpy.int32, _py_anon_pod38_dtype], - 'offsets': [ - (&(pod.type)) - (&pod), - (&(pod.id)) - (&pod), - (&(pod.localized)) - (&pod), - ], - 'itemsize': sizeof(CUmemLocation_v1), - }) + cdef CUmemLocation_v1 *pod = _cyb_calloc(1, sizeof(CUmemLocation_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUmemLocation_v1") + try: + return _numpy.dtype({ + 'names': ['type', 'id', 'localized'], + 'formats': [_numpy.int32, _numpy.int32, _py_anon_pod38_dtype], + 'offsets': [ + (&(pod.type)) - (pod), + (&(pod.id)) - (pod), + (&(pod.localized)) - (pod), + ], + 'itemsize': sizeof(CUmemLocation_v1), + }) + finally: + _cyb_free(pod) mem_location_v1_dtype = _get_mem_location_v1_dtype_offsets() @@ -21527,16 +22078,21 @@ cdef class MemLocation_v1: cdef _get_checkpoint_checkpoint_args_dtype_offsets(): - cdef CUcheckpointCheckpointArgs pod - return _numpy.dtype({ - 'names': ['custom_storage_info_out', 'reserved'], - 'formats': [_numpy.intp, (_numpy.int8, 56)], - 'offsets': [ - (&(pod.customStorageInfo_out)) - (&pod), - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(CUcheckpointCheckpointArgs), - }) + cdef CUcheckpointCheckpointArgs *pod = _cyb_calloc(1, sizeof(CUcheckpointCheckpointArgs)) + if pod == NULL: + raise MemoryError("Error allocating CUcheckpointCheckpointArgs") + try: + return _numpy.dtype({ + 'names': ['custom_storage_info_out', 'reserved'], + 'formats': [_numpy.intp, (_numpy.int8, 56)], + 'offsets': [ + (&(pod.customStorageInfo_out)) - (pod), + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(CUcheckpointCheckpointArgs), + }) + finally: + _cyb_free(pod) checkpoint_checkpoint_args_dtype = _get_checkpoint_checkpoint_args_dtype_offsets() @@ -21653,19 +22209,24 @@ cdef class CheckpointCheckpointArgs: cdef _get_checkpoint_restore_args_dtype_offsets(): - cdef CUcheckpointRestoreArgs pod - return _numpy.dtype({ - 'names': ['gpu_pairs', 'gpu_pairs_count', 'padding0', 'custom_storage_info_out', 'reserved'], - 'formats': [_numpy.intp, _numpy.uint32, _numpy.uint32, _numpy.intp, (_numpy.int8, 40)], - 'offsets': [ - (&(pod.gpuPairs)) - (&pod), - (&(pod.gpuPairsCount)) - (&pod), - (&(pod.padding0)) - (&pod), - (&(pod.customStorageInfo_out)) - (&pod), - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(CUcheckpointRestoreArgs), - }) + cdef CUcheckpointRestoreArgs *pod = _cyb_calloc(1, sizeof(CUcheckpointRestoreArgs)) + if pod == NULL: + raise MemoryError("Error allocating CUcheckpointRestoreArgs") + try: + return _numpy.dtype({ + 'names': ['gpu_pairs', 'gpu_pairs_count', 'padding0', 'custom_storage_info_out', 'reserved'], + 'formats': [_numpy.intp, _numpy.uint32, _numpy.uint32, _numpy.intp, (_numpy.int8, 40)], + 'offsets': [ + (&(pod.gpuPairs)) - (pod), + (&(pod.gpuPairsCount)) - (pod), + (&(pod.padding0)) - (pod), + (&(pod.customStorageInfo_out)) - (pod), + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(CUcheckpointRestoreArgs), + }) + finally: + _cyb_free(pod) checkpoint_restore_args_dtype = _get_checkpoint_restore_args_dtype_offsets() @@ -21804,21 +22365,26 @@ cdef class CheckpointRestoreArgs: cdef _get_dev_resource_v1_dtype_offsets(): - cdef CUdevResource_v1 pod - return _numpy.dtype({ - 'names': ['type', '_internal_padding', 'sm', 'wq_config', 'wq', '_oversize', 'next_resource'], - 'formats': [_numpy.int32, (_numpy.uint8, 92), dev_sm_resource_dtype, dev_workqueue_config_resource_dtype, dev_workqueue_resource_dtype, (_numpy.uint8, 40), _numpy.intp], - 'offsets': [ - (&(pod.type)) - (&pod), - (&(pod._internal_padding)) - (&pod), - (&(pod.sm)) - (&pod), - (&(pod.wqConfig)) - (&pod), - (&(pod.wq)) - (&pod), - (&(pod._oversize)) - (&pod), - (&(pod.nextResource)) - (&pod), - ], - 'itemsize': sizeof(CUdevResource_v1), - }) + cdef CUdevResource_v1 *pod = _cyb_calloc(1, sizeof(CUdevResource_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUdevResource_v1") + try: + return _numpy.dtype({ + 'names': ['type', '_internal_padding', 'sm', 'wq_config', 'wq', '_oversize', 'next_resource'], + 'formats': [_numpy.int32, (_numpy.uint8, 92), dev_sm_resource_dtype, dev_workqueue_config_resource_dtype, dev_workqueue_resource_dtype, (_numpy.uint8, 40), _numpy.intp], + 'offsets': [ + (&(pod.type)) - (pod), + (&(pod._internal_padding)) - (pod), + (&(pod.sm)) - (pod), + (&(pod.wqConfig)) - (pod), + (&(pod.wq)) - (pod), + (&(pod._oversize)) - (pod), + (&(pod.nextResource)) - (pod), + ], + 'itemsize': sizeof(CUdevResource_v1), + }) + finally: + _cyb_free(pod) dev_resource_v1_dtype = _get_dev_resource_v1_dtype_offsets() cdef object dev_resource_v1_dtype_record = _numpy.dtype((_numpy.record, dev_resource_v1_dtype)) @@ -22086,20 +22652,25 @@ cdef class DevResource_v1: cdef _get_logical_endpoint_prop_dtype_offsets(): - cdef CUlogicalEndpointProp pod - return _numpy.dtype({ - 'names': ['type', 'unicast', 'multicast', 'size_', 'ipc_handle_types', 'flags_'], - 'formats': [_numpy.int32, _py_anon_pod47_dtype, _py_anon_pod48_dtype, _numpy.uint64, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.type)) - (&pod), - (&(pod.unicast)) - (&pod), - (&(pod.multicast)) - (&pod), - (&(pod.size)) - (&pod), - (&(pod.ipcHandleTypes)) - (&pod), - (&(pod.flags)) - (&pod), - ], - 'itemsize': sizeof(CUlogicalEndpointProp), - }) + cdef CUlogicalEndpointProp *pod = _cyb_calloc(1, sizeof(CUlogicalEndpointProp)) + if pod == NULL: + raise MemoryError("Error allocating CUlogicalEndpointProp") + try: + return _numpy.dtype({ + 'names': ['type', 'unicast', 'multicast', 'size_', 'ipc_handle_types', 'flags_'], + 'formats': [_numpy.int32, _py_anon_pod47_dtype, _py_anon_pod48_dtype, _numpy.uint64, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.type)) - (pod), + (&(pod.unicast)) - (pod), + (&(pod.multicast)) - (pod), + (&(pod.size)) - (pod), + (&(pod.ipcHandleTypes)) - (pod), + (&(pod.flags)) - (pod), + ], + 'itemsize': sizeof(CUlogicalEndpointProp), + }) + finally: + _cyb_free(pod) logical_endpoint_prop_dtype = _get_logical_endpoint_prop_dtype_offsets() @@ -22281,18 +22852,23 @@ cdef class LogicalEndpointProp: cdef _get_batch_mem_op_node_params_v1_dtype_offsets(): - cdef CUDA_BATCH_MEM_OP_NODE_PARAMS_v1 pod - return _numpy.dtype({ - 'names': ['ctx', 'count', 'param_array', 'flags_'], - 'formats': [_numpy.intp, _numpy.uint32, _numpy.intp, _numpy.uint32], - 'offsets': [ - (&(pod.ctx)) - (&pod), - (&(pod.count)) - (&pod), - (&(pod.paramArray)) - (&pod), - (&(pod.flags)) - (&pod), - ], - 'itemsize': sizeof(CUDA_BATCH_MEM_OP_NODE_PARAMS_v1), - }) + cdef CUDA_BATCH_MEM_OP_NODE_PARAMS_v1 *pod = _cyb_calloc(1, sizeof(CUDA_BATCH_MEM_OP_NODE_PARAMS_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_BATCH_MEM_OP_NODE_PARAMS_v1") + try: + return _numpy.dtype({ + 'names': ['ctx', 'count', 'param_array', 'flags_'], + 'formats': [_numpy.intp, _numpy.uint32, _numpy.intp, _numpy.uint32], + 'offsets': [ + (&(pod.ctx)) - (pod), + (&(pod.count)) - (pod), + (&(pod.paramArray)) - (pod), + (&(pod.flags)) - (pod), + ], + 'itemsize': sizeof(CUDA_BATCH_MEM_OP_NODE_PARAMS_v1), + }) + finally: + _cyb_free(pod) batch_mem_op_node_params_v1_dtype = _get_batch_mem_op_node_params_v1_dtype_offsets() @@ -22442,18 +23018,23 @@ cdef class BatchMemOpNodeParams_v1: cdef _get_batch_mem_op_node_params_v2_dtype_offsets(): - cdef CUDA_BATCH_MEM_OP_NODE_PARAMS_v2 pod - return _numpy.dtype({ - 'names': ['ctx', 'count', 'param_array', 'flags_'], - 'formats': [_numpy.intp, _numpy.uint32, _numpy.intp, _numpy.uint32], - 'offsets': [ - (&(pod.ctx)) - (&pod), - (&(pod.count)) - (&pod), - (&(pod.paramArray)) - (&pod), - (&(pod.flags)) - (&pod), - ], - 'itemsize': sizeof(CUDA_BATCH_MEM_OP_NODE_PARAMS_v2), - }) + cdef CUDA_BATCH_MEM_OP_NODE_PARAMS_v2 *pod = _cyb_calloc(1, sizeof(CUDA_BATCH_MEM_OP_NODE_PARAMS_v2)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_BATCH_MEM_OP_NODE_PARAMS_v2") + try: + return _numpy.dtype({ + 'names': ['ctx', 'count', 'param_array', 'flags_'], + 'formats': [_numpy.intp, _numpy.uint32, _numpy.intp, _numpy.uint32], + 'offsets': [ + (&(pod.ctx)) - (pod), + (&(pod.count)) - (pod), + (&(pod.paramArray)) - (pod), + (&(pod.flags)) - (pod), + ], + 'itemsize': sizeof(CUDA_BATCH_MEM_OP_NODE_PARAMS_v2), + }) + finally: + _cyb_free(pod) batch_mem_op_node_params_v2_dtype = _get_batch_mem_op_node_params_v2_dtype_offsets() @@ -22615,24 +23196,29 @@ cdef class BatchMemOpNodeParams_v2: cdef _get_launch_config_dtype_offsets(): - cdef CUlaunchConfig pod - return _numpy.dtype({ - 'names': ['grid_dim_x', 'grid_dim_y', 'grid_dim_z', 'block_dim_x', 'block_dim_y', 'block_dim_z', 'shared_mem_bytes', 'h_stream', 'attrs', 'num_attrs'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.intp, _numpy.intp, _numpy.uint32], - 'offsets': [ - (&(pod.gridDimX)) - (&pod), - (&(pod.gridDimY)) - (&pod), - (&(pod.gridDimZ)) - (&pod), - (&(pod.blockDimX)) - (&pod), - (&(pod.blockDimY)) - (&pod), - (&(pod.blockDimZ)) - (&pod), - (&(pod.sharedMemBytes)) - (&pod), - (&(pod.hStream)) - (&pod), - (&(pod.attrs)) - (&pod), - (&(pod.numAttrs)) - (&pod), - ], - 'itemsize': sizeof(CUlaunchConfig), - }) + cdef CUlaunchConfig *pod = _cyb_calloc(1, sizeof(CUlaunchConfig)) + if pod == NULL: + raise MemoryError("Error allocating CUlaunchConfig") + try: + return _numpy.dtype({ + 'names': ['grid_dim_x', 'grid_dim_y', 'grid_dim_z', 'block_dim_x', 'block_dim_y', 'block_dim_z', 'shared_mem_bytes', 'h_stream', 'attrs', 'num_attrs'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.intp, _numpy.intp, _numpy.uint32], + 'offsets': [ + (&(pod.gridDimX)) - (pod), + (&(pod.gridDimY)) - (pod), + (&(pod.gridDimZ)) - (pod), + (&(pod.blockDimX)) - (pod), + (&(pod.blockDimY)) - (pod), + (&(pod.blockDimZ)) - (pod), + (&(pod.sharedMemBytes)) - (pod), + (&(pod.hStream)) - (pod), + (&(pod.attrs)) - (pod), + (&(pod.numAttrs)) - (pod), + ], + 'itemsize': sizeof(CUlaunchConfig), + }) + finally: + _cyb_free(pod) launch_config_dtype = _get_launch_config_dtype_offsets() @@ -22848,17 +23434,22 @@ cdef class LaunchConfig: cdef _get_ctx_create_params_dtype_offsets(): - cdef CUctxCreateParams pod - return _numpy.dtype({ - 'names': ['exec_affinity_params', 'num_exec_affinity_params', 'cig_params'], - 'formats': [_numpy.intp, _numpy.int32, _numpy.intp], - 'offsets': [ - (&(pod.execAffinityParams)) - (&pod), - (&(pod.numExecAffinityParams)) - (&pod), - (&(pod.cigParams)) - (&pod), - ], - 'itemsize': sizeof(CUctxCreateParams), - }) + cdef CUctxCreateParams *pod = _cyb_calloc(1, sizeof(CUctxCreateParams)) + if pod == NULL: + raise MemoryError("Error allocating CUctxCreateParams") + try: + return _numpy.dtype({ + 'names': ['exec_affinity_params', 'num_exec_affinity_params', 'cig_params'], + 'formats': [_numpy.intp, _numpy.int32, _numpy.intp], + 'offsets': [ + (&(pod.execAffinityParams)) - (pod), + (&(pod.numExecAffinityParams)) - (pod), + (&(pod.cigParams)) - (pod), + ], + 'itemsize': sizeof(CUctxCreateParams), + }) + finally: + _cyb_free(pod) ctx_create_params_dtype = _get_ctx_create_params_dtype_offsets() @@ -22997,17 +23588,22 @@ cdef class CtxCreateParams: cdef _get_ext_sem_signal_node_params_v1_dtype_offsets(): - cdef CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1 pod - return _numpy.dtype({ - 'names': ['ext_sem_array', 'params_array', 'num_ext_sems'], - 'formats': [_numpy.intp, _numpy.intp, _numpy.uint32], - 'offsets': [ - (&(pod.extSemArray)) - (&pod), - (&(pod.paramsArray)) - (&pod), - (&(pod.numExtSems)) - (&pod), - ], - 'itemsize': sizeof(CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1), - }) + cdef CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1 *pod = _cyb_calloc(1, sizeof(CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1") + try: + return _numpy.dtype({ + 'names': ['ext_sem_array', 'params_array', 'num_ext_sems'], + 'formats': [_numpy.intp, _numpy.intp, _numpy.uint32], + 'offsets': [ + (&(pod.extSemArray)) - (pod), + (&(pod.paramsArray)) - (pod), + (&(pod.numExtSems)) - (pod), + ], + 'itemsize': sizeof(CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1), + }) + finally: + _cyb_free(pod) ext_sem_signal_node_params_v1_dtype = _get_ext_sem_signal_node_params_v1_dtype_offsets() @@ -23146,19 +23742,24 @@ cdef class ExtSemSignalNodeParams_v1: cdef _get_ext_sem_signal_node_params_v2_dtype_offsets(): - cdef CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2 pod - return _numpy.dtype({ - 'names': ['ext_sem_array', 'params_array', 'num_ext_sems', 'ctx', 'g_ctx'], - 'formats': [_numpy.intp, _numpy.intp, _numpy.uint32, _numpy.intp, _numpy.intp], - 'offsets': [ - (&(pod.extSemArray)) - (&pod), - (&(pod.paramsArray)) - (&pod), - (&(pod.numExtSems)) - (&pod), - (&(pod.ctx)) - (&pod), - (&(pod.gCtx)) - (&pod), - ], - 'itemsize': sizeof(CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2), - }) + cdef CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2 *pod = _cyb_calloc(1, sizeof(CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2") + try: + return _numpy.dtype({ + 'names': ['ext_sem_array', 'params_array', 'num_ext_sems', 'ctx', 'g_ctx'], + 'formats': [_numpy.intp, _numpy.intp, _numpy.uint32, _numpy.intp, _numpy.intp], + 'offsets': [ + (&(pod.extSemArray)) - (pod), + (&(pod.paramsArray)) - (pod), + (&(pod.numExtSems)) - (pod), + (&(pod.ctx)) - (pod), + (&(pod.gCtx)) - (pod), + ], + 'itemsize': sizeof(CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2), + }) + finally: + _cyb_free(pod) ext_sem_signal_node_params_v2_dtype = _get_ext_sem_signal_node_params_v2_dtype_offsets() @@ -23331,17 +23932,22 @@ cdef class ExtSemSignalNodeParams_v2: cdef _get_ext_sem_wait_node_params_v1_dtype_offsets(): - cdef CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1 pod - return _numpy.dtype({ - 'names': ['ext_sem_array', 'params_array', 'num_ext_sems'], - 'formats': [_numpy.intp, _numpy.intp, _numpy.uint32], - 'offsets': [ - (&(pod.extSemArray)) - (&pod), - (&(pod.paramsArray)) - (&pod), - (&(pod.numExtSems)) - (&pod), - ], - 'itemsize': sizeof(CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1), - }) + cdef CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1 *pod = _cyb_calloc(1, sizeof(CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1") + try: + return _numpy.dtype({ + 'names': ['ext_sem_array', 'params_array', 'num_ext_sems'], + 'formats': [_numpy.intp, _numpy.intp, _numpy.uint32], + 'offsets': [ + (&(pod.extSemArray)) - (pod), + (&(pod.paramsArray)) - (pod), + (&(pod.numExtSems)) - (pod), + ], + 'itemsize': sizeof(CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1), + }) + finally: + _cyb_free(pod) ext_sem_wait_node_params_v1_dtype = _get_ext_sem_wait_node_params_v1_dtype_offsets() @@ -23480,19 +24086,24 @@ cdef class ExtSemWaitNodeParams_v1: cdef _get_ext_sem_wait_node_params_v2_dtype_offsets(): - cdef CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2 pod - return _numpy.dtype({ - 'names': ['ext_sem_array', 'params_array', 'num_ext_sems', 'ctx', 'g_ctx'], - 'formats': [_numpy.intp, _numpy.intp, _numpy.uint32, _numpy.intp, _numpy.intp], - 'offsets': [ - (&(pod.extSemArray)) - (&pod), - (&(pod.paramsArray)) - (&pod), - (&(pod.numExtSems)) - (&pod), - (&(pod.ctx)) - (&pod), - (&(pod.gCtx)) - (&pod), - ], - 'itemsize': sizeof(CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2), - }) + cdef CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2 *pod = _cyb_calloc(1, sizeof(CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2") + try: + return _numpy.dtype({ + 'names': ['ext_sem_array', 'params_array', 'num_ext_sems', 'ctx', 'g_ctx'], + 'formats': [_numpy.intp, _numpy.intp, _numpy.uint32, _numpy.intp, _numpy.intp], + 'offsets': [ + (&(pod.extSemArray)) - (pod), + (&(pod.paramsArray)) - (pod), + (&(pod.numExtSems)) - (pod), + (&(pod.ctx)) - (pod), + (&(pod.gCtx)) - (pod), + ], + 'itemsize': sizeof(CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2), + }) + finally: + _cyb_free(pod) ext_sem_wait_node_params_v2_dtype = _get_ext_sem_wait_node_params_v2_dtype_offsets() @@ -23665,19 +24276,24 @@ cdef class ExtSemWaitNodeParams_v2: cdef _get_mem_allocation_prop_v1_dtype_offsets(): - cdef CUmemAllocationProp_v1 pod - return _numpy.dtype({ - 'names': ['type', 'requested_handle_types', 'location', 'win32handle_meta_data', 'alloc_flags'], - 'formats': [_numpy.int32, _numpy.int32, mem_location_v1_dtype, _numpy.intp, _py_anon_pod39_dtype], - 'offsets': [ - (&(pod.type)) - (&pod), - (&(pod.requestedHandleTypes)) - (&pod), - (&(pod.location)) - (&pod), - (&(pod.win32HandleMetaData)) - (&pod), - (&(pod.allocFlags)) - (&pod), - ], - 'itemsize': sizeof(CUmemAllocationProp_v1), - }) + cdef CUmemAllocationProp_v1 *pod = _cyb_calloc(1, sizeof(CUmemAllocationProp_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUmemAllocationProp_v1") + try: + return _numpy.dtype({ + 'names': ['type', 'requested_handle_types', 'location', 'win32handle_meta_data', 'alloc_flags'], + 'formats': [_numpy.int32, _numpy.int32, mem_location_v1_dtype, _numpy.intp, _py_anon_pod39_dtype], + 'offsets': [ + (&(pod.type)) - (pod), + (&(pod.requestedHandleTypes)) - (pod), + (&(pod.location)) - (pod), + (&(pod.win32HandleMetaData)) - (pod), + (&(pod.allocFlags)) - (pod), + ], + 'itemsize': sizeof(CUmemAllocationProp_v1), + }) + finally: + _cyb_free(pod) mem_allocation_prop_v1_dtype = _get_mem_allocation_prop_v1_dtype_offsets() @@ -23848,16 +24464,21 @@ cdef class MemAllocationProp_v1: cdef _get_mem_access_desc_v1_dtype_offsets(): - cdef CUmemAccessDesc_v1 pod - return _numpy.dtype({ - 'names': ['location', 'flags_'], - 'formats': [mem_location_v1_dtype, _numpy.int32], - 'offsets': [ - (&(pod.location)) - (&pod), - (&(pod.flags)) - (&pod), - ], - 'itemsize': sizeof(CUmemAccessDesc_v1), - }) + cdef CUmemAccessDesc_v1 *pod = _cyb_calloc(1, sizeof(CUmemAccessDesc_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUmemAccessDesc_v1") + try: + return _numpy.dtype({ + 'names': ['location', 'flags_'], + 'formats': [mem_location_v1_dtype, _numpy.int32], + 'offsets': [ + (&(pod.location)) - (pod), + (&(pod.flags)) - (pod), + ], + 'itemsize': sizeof(CUmemAccessDesc_v1), + }) + finally: + _cyb_free(pod) mem_access_desc_v1_dtype = _get_mem_access_desc_v1_dtype_offsets() cdef object mem_access_desc_v1_dtype_record = _numpy.dtype((_numpy.record, mem_access_desc_v1_dtype)) @@ -24032,22 +24653,27 @@ cdef class MemAccessDesc_v1: cdef _get_mem_pool_props_v1_dtype_offsets(): - cdef CUmemPoolProps_v1 pod - return _numpy.dtype({ - 'names': ['alloc_type', 'handle_types', 'location', 'win32security_attributes', 'max_size', 'usage', 'gpu_direct_rdma_capable', 'reserved'], - 'formats': [_numpy.int32, _numpy.int32, mem_location_v1_dtype, _numpy.intp, _numpy.uint64, _numpy.uint16, _numpy.uint8, (_numpy.uint8, 53)], - 'offsets': [ - (&(pod.allocType)) - (&pod), - (&(pod.handleTypes)) - (&pod), - (&(pod.location)) - (&pod), - (&(pod.win32SecurityAttributes)) - (&pod), - (&(pod.maxSize)) - (&pod), - (&(pod.usage)) - (&pod), - (&(pod.gpuDirectRDMACapable)) - (&pod), - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(CUmemPoolProps_v1), - }) + cdef CUmemPoolProps_v1 *pod = _cyb_calloc(1, sizeof(CUmemPoolProps_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUmemPoolProps_v1") + try: + return _numpy.dtype({ + 'names': ['alloc_type', 'handle_types', 'location', 'win32security_attributes', 'max_size', 'usage', 'gpu_direct_rdma_capable', 'reserved'], + 'formats': [_numpy.int32, _numpy.int32, mem_location_v1_dtype, _numpy.intp, _numpy.uint64, _numpy.uint16, _numpy.uint8, (_numpy.uint8, 53)], + 'offsets': [ + (&(pod.allocType)) - (pod), + (&(pod.handleTypes)) - (pod), + (&(pod.location)) - (pod), + (&(pod.win32SecurityAttributes)) - (pod), + (&(pod.maxSize)) - (pod), + (&(pod.usage)) - (pod), + (&(pod.gpuDirectRDMACapable)) - (pod), + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(CUmemPoolProps_v1), + }) + finally: + _cyb_free(pod) mem_pool_props_v1_dtype = _get_mem_pool_props_v1_dtype_offsets() @@ -24235,18 +24861,23 @@ cdef class MemPoolProps_v1: cdef _get_mem_cpy_attributes_v1_dtype_offsets(): - cdef CUmemcpyAttributes_v1 pod - return _numpy.dtype({ - 'names': ['src_access_order', 'src_loc_hint', 'dst_loc_hint', 'flags_'], - 'formats': [_numpy.int32, mem_location_v1_dtype, mem_location_v1_dtype, _numpy.uint32], - 'offsets': [ - (&(pod.srcAccessOrder)) - (&pod), - (&(pod.srcLocHint)) - (&pod), - (&(pod.dstLocHint)) - (&pod), - (&(pod.flags)) - (&pod), - ], - 'itemsize': sizeof(CUmemcpyAttributes_v1), - }) + cdef CUmemcpyAttributes_v1 *pod = _cyb_calloc(1, sizeof(CUmemcpyAttributes_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUmemcpyAttributes_v1") + try: + return _numpy.dtype({ + 'names': ['src_access_order', 'src_loc_hint', 'dst_loc_hint', 'flags_'], + 'formats': [_numpy.int32, mem_location_v1_dtype, mem_location_v1_dtype, _numpy.uint32], + 'offsets': [ + (&(pod.srcAccessOrder)) - (pod), + (&(pod.srcLocHint)) - (pod), + (&(pod.dstLocHint)) - (pod), + (&(pod.flags)) - (pod), + ], + 'itemsize': sizeof(CUmemcpyAttributes_v1), + }) + finally: + _cyb_free(pod) mem_cpy_attributes_v1_dtype = _get_mem_cpy_attributes_v1_dtype_offsets() @@ -24406,18 +25037,23 @@ cdef class MemCpyAttributes_v1: cdef _get__py_anon_pod41_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod41 pod - return _numpy.dtype({ - 'names': ['ptr_', 'row_length', 'layer_height', 'loc_hint'], - 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64, mem_location_v1_dtype], - 'offsets': [ - (&(pod.ptr)) - (&pod), - (&(pod.rowLength)) - (&pod), - (&(pod.layerHeight)) - (&pod), - (&(pod.locHint)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod41), - }) + cdef cuda_bindings_driver__anon_pod41 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod41)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod41") + try: + return _numpy.dtype({ + 'names': ['ptr_', 'row_length', 'layer_height', 'loc_hint'], + 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64, mem_location_v1_dtype], + 'offsets': [ + (&(pod.ptr)) - (pod), + (&(pod.rowLength)) - (pod), + (&(pod.layerHeight)) - (pod), + (&(pod.locHint)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod41), + }) + finally: + _cyb_free(pod) _py_anon_pod41_dtype = _get__py_anon_pod41_dtype_offsets() @@ -24584,19 +25220,24 @@ cdef class _py_anon_pod41: cdef _get_mem_alloc_node_params_v1_dtype_offsets(): - cdef CUDA_MEM_ALLOC_NODE_PARAMS_v1 pod - return _numpy.dtype({ - 'names': ['pool_props', 'access_descs', 'access_desc_count', 'bytesize', 'dptr'], - 'formats': [mem_pool_props_v1_dtype, _numpy.intp, _numpy.uint64, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.poolProps)) - (&pod), - (&(pod.accessDescs)) - (&pod), - (&(pod.accessDescCount)) - (&pod), - (&(pod.bytesize)) - (&pod), - (&(pod.dptr)) - (&pod), - ], - 'itemsize': sizeof(CUDA_MEM_ALLOC_NODE_PARAMS_v1), - }) + cdef CUDA_MEM_ALLOC_NODE_PARAMS_v1 *pod = _cyb_calloc(1, sizeof(CUDA_MEM_ALLOC_NODE_PARAMS_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_MEM_ALLOC_NODE_PARAMS_v1") + try: + return _numpy.dtype({ + 'names': ['pool_props', 'access_descs', 'access_desc_count', 'bytesize', 'dptr'], + 'formats': [mem_pool_props_v1_dtype, _numpy.intp, _numpy.uint64, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.poolProps)) - (pod), + (&(pod.accessDescs)) - (pod), + (&(pod.accessDescCount)) - (pod), + (&(pod.bytesize)) - (pod), + (&(pod.dptr)) - (pod), + ], + 'itemsize': sizeof(CUDA_MEM_ALLOC_NODE_PARAMS_v1), + }) + finally: + _cyb_free(pod) mem_alloc_node_params_v1_dtype = _get_mem_alloc_node_params_v1_dtype_offsets() @@ -24762,19 +25403,24 @@ cdef class MemAllocNodeParams_v1: cdef _get_mem_alloc_node_params_v2_dtype_offsets(): - cdef CUDA_MEM_ALLOC_NODE_PARAMS_v2 pod - return _numpy.dtype({ - 'names': ['pool_props', 'access_descs', 'access_desc_count', 'bytesize', 'dptr'], - 'formats': [mem_pool_props_v1_dtype, _numpy.intp, _numpy.uint64, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.poolProps)) - (&pod), - (&(pod.accessDescs)) - (&pod), - (&(pod.accessDescCount)) - (&pod), - (&(pod.bytesize)) - (&pod), - (&(pod.dptr)) - (&pod), - ], - 'itemsize': sizeof(CUDA_MEM_ALLOC_NODE_PARAMS_v2), - }) + cdef CUDA_MEM_ALLOC_NODE_PARAMS_v2 *pod = _cyb_calloc(1, sizeof(CUDA_MEM_ALLOC_NODE_PARAMS_v2)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_MEM_ALLOC_NODE_PARAMS_v2") + try: + return _numpy.dtype({ + 'names': ['pool_props', 'access_descs', 'access_desc_count', 'bytesize', 'dptr'], + 'formats': [mem_pool_props_v1_dtype, _numpy.intp, _numpy.uint64, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.poolProps)) - (pod), + (&(pod.accessDescs)) - (pod), + (&(pod.accessDescCount)) - (pod), + (&(pod.bytesize)) - (pod), + (&(pod.dptr)) - (pod), + ], + 'itemsize': sizeof(CUDA_MEM_ALLOC_NODE_PARAMS_v2), + }) + finally: + _cyb_free(pod) mem_alloc_node_params_v2_dtype = _get_mem_alloc_node_params_v2_dtype_offsets() @@ -24952,23 +25598,28 @@ cdef class MemAllocNodeParams_v2: cdef _get_memcpy_batch_node_params_v1_dtype_offsets(): - cdef CUDA_MEMCPY_BATCH_NODE_PARAMS_V1 pod - return _numpy.dtype({ - 'names': ['count', 'dsts', 'srcs', 'sizes', 'attrs', 'attrs_idxs', 'num_attrs', 'ctx', 'g_ctx'], - 'formats': [_numpy.uint64, _numpy.intp, _numpy.intp, _numpy.intp, _numpy.intp, _numpy.intp, _numpy.uint64, _numpy.intp, _numpy.intp], - 'offsets': [ - (&(pod.count)) - (&pod), - (&(pod.dsts)) - (&pod), - (&(pod.srcs)) - (&pod), - (&(pod.sizes)) - (&pod), - (&(pod.attrs)) - (&pod), - (&(pod.attrsIdxs)) - (&pod), - (&(pod.numAttrs)) - (&pod), - (&(pod.ctx)) - (&pod), - (&(pod.gCtx)) - (&pod), - ], - 'itemsize': sizeof(CUDA_MEMCPY_BATCH_NODE_PARAMS_V1), - }) + cdef CUDA_MEMCPY_BATCH_NODE_PARAMS_V1 *pod = _cyb_calloc(1, sizeof(CUDA_MEMCPY_BATCH_NODE_PARAMS_V1)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_MEMCPY_BATCH_NODE_PARAMS_V1") + try: + return _numpy.dtype({ + 'names': ['count', 'dsts', 'srcs', 'sizes', 'attrs', 'attrs_idxs', 'num_attrs', 'ctx', 'g_ctx'], + 'formats': [_numpy.uint64, _numpy.intp, _numpy.intp, _numpy.intp, _numpy.intp, _numpy.intp, _numpy.uint64, _numpy.intp, _numpy.intp], + 'offsets': [ + (&(pod.count)) - (pod), + (&(pod.dsts)) - (pod), + (&(pod.srcs)) - (pod), + (&(pod.sizes)) - (pod), + (&(pod.attrs)) - (pod), + (&(pod.attrsIdxs)) - (pod), + (&(pod.numAttrs)) - (pod), + (&(pod.ctx)) - (pod), + (&(pod.gCtx)) - (pod), + ], + 'itemsize': sizeof(CUDA_MEMCPY_BATCH_NODE_PARAMS_V1), + }) + finally: + _cyb_free(pod) memcpy_batch_node_params_v1_dtype = _get_memcpy_batch_node_params_v1_dtype_offsets() @@ -25185,16 +25836,21 @@ cdef class MemcpyBatchNodeParamsV1: cdef _get__py_anon_pod40_dtype_offsets(): - cdef cuda_bindings_driver__anon_pod40 pod - return _numpy.dtype({ - 'names': ['ptr_', 'array'], - 'formats': [_py_anon_pod41_dtype, _py_anon_pod42_dtype], - 'offsets': [ - (&(pod.ptr)) - (&pod), - (&(pod.array)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_driver__anon_pod40), - }) + cdef cuda_bindings_driver__anon_pod40 *pod = _cyb_calloc(1, sizeof(cuda_bindings_driver__anon_pod40)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_driver__anon_pod40") + try: + return _numpy.dtype({ + 'names': ['ptr_', 'array'], + 'formats': [_py_anon_pod41_dtype, _py_anon_pod42_dtype], + 'offsets': [ + (&(pod.ptr)) - (pod), + (&(pod.array)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_driver__anon_pod40), + }) + finally: + _cyb_free(pod) _py_anon_pod40_dtype = _get__py_anon_pod40_dtype_offsets() @@ -25344,16 +26000,21 @@ cdef class _py_anon_pod40: cdef _get_mem_cpy3d_operand_v1_dtype_offsets(): - cdef CUmemcpy3DOperand_v1 pod - return _numpy.dtype({ - 'names': ['type', 'op'], - 'formats': [_numpy.int32, _py_anon_pod40_dtype], - 'offsets': [ - (&(pod.type)) - (&pod), - (&(pod.op)) - (&pod), - ], - 'itemsize': sizeof(CUmemcpy3DOperand_v1), - }) + cdef CUmemcpy3DOperand_v1 *pod = _cyb_calloc(1, sizeof(CUmemcpy3DOperand_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUmemcpy3DOperand_v1") + try: + return _numpy.dtype({ + 'names': ['type', 'op'], + 'formats': [_numpy.int32, _py_anon_pod40_dtype], + 'offsets': [ + (&(pod.type)) - (pod), + (&(pod.op)) - (pod), + ], + 'itemsize': sizeof(CUmemcpy3DOperand_v1), + }) + finally: + _cyb_free(pod) mem_cpy3d_operand_v1_dtype = _get_mem_cpy3d_operand_v1_dtype_offsets() @@ -25486,34 +26147,39 @@ cdef class MemCpy3dOperand_v1: cdef _get_graph_node_params_dtype_offsets(): - cdef CUgraphNodeParams pod - return _numpy.dtype({ - 'names': ['type', 'reserved0', 'reserved1', 'kernel', 'memcpy', 'memset', 'host', 'graph', 'event_wait', 'event_record', 'ext_sem_signal', 'ext_sem_wait', 'alloc', 'free', 'mem_op', 'conditional', 'memcpy_batch', 'fabric_cpy_batch', 'as_bytes', 'reserved2'], - 'formats': [_numpy.int32, (_numpy.int32, 3), (_numpy.int64, 29), kernel_node_params_v3_dtype, mem_cpy_node_params_dtype, mem_set_node_params_v2_dtype, host_node_params_v2_dtype, child_graph_node_params_dtype, event_wait_node_params_dtype, event_record_node_params_dtype, ext_sem_signal_node_params_v2_dtype, ext_sem_wait_node_params_v2_dtype, mem_alloc_node_params_v2_dtype, mem_free_node_params_dtype, batch_mem_op_node_params_v2_dtype, conditional_node_params_dtype, memcpy_batch_node_params_v1_dtype, fabric_cpy_batch_node_params_v1_dtype, (_numpy.int8, 232), _numpy.int64], - 'offsets': [ - (&(pod.type)) - (&pod), - (&(pod.reserved0)) - (&pod), - (&(pod.reserved1)) - (&pod), - (&(pod.kernel)) - (&pod), - (&(pod.memcpy)) - (&pod), - (&(pod.memset)) - (&pod), - (&(pod.host)) - (&pod), - (&(pod.graph)) - (&pod), - (&(pod.eventWait)) - (&pod), - (&(pod.eventRecord)) - (&pod), - (&(pod.extSemSignal)) - (&pod), - (&(pod.extSemWait)) - (&pod), - (&(pod.alloc)) - (&pod), - (&(pod.free)) - (&pod), - (&(pod.memOp)) - (&pod), - (&(pod.conditional)) - (&pod), - (&(pod.memcpyBatch)) - (&pod), - (&(pod.fabricCpyBatch)) - (&pod), - (&(pod.asBytes)) - (&pod), - (&(pod.reserved2)) - (&pod), - ], - 'itemsize': sizeof(CUgraphNodeParams), - }) + cdef CUgraphNodeParams *pod = _cyb_calloc(1, sizeof(CUgraphNodeParams)) + if pod == NULL: + raise MemoryError("Error allocating CUgraphNodeParams") + try: + return _numpy.dtype({ + 'names': ['type', 'reserved0', 'reserved1', 'kernel', 'memcpy', 'memset', 'host', 'graph', 'event_wait', 'event_record', 'ext_sem_signal', 'ext_sem_wait', 'alloc', 'free', 'mem_op', 'conditional', 'memcpy_batch', 'fabric_cpy_batch', 'as_bytes', 'reserved2'], + 'formats': [_numpy.int32, (_numpy.int32, 3), (_numpy.int64, 29), kernel_node_params_v3_dtype, mem_cpy_node_params_dtype, mem_set_node_params_v2_dtype, host_node_params_v2_dtype, child_graph_node_params_dtype, event_wait_node_params_dtype, event_record_node_params_dtype, ext_sem_signal_node_params_v2_dtype, ext_sem_wait_node_params_v2_dtype, mem_alloc_node_params_v2_dtype, mem_free_node_params_dtype, batch_mem_op_node_params_v2_dtype, conditional_node_params_dtype, memcpy_batch_node_params_v1_dtype, fabric_cpy_batch_node_params_v1_dtype, (_numpy.int8, 232), _numpy.int64], + 'offsets': [ + (&(pod.type)) - (pod), + (&(pod.reserved0)) - (pod), + (&(pod.reserved1)) - (pod), + (&(pod.kernel)) - (pod), + (&(pod.memcpy)) - (pod), + (&(pod.memset)) - (pod), + (&(pod.host)) - (pod), + (&(pod.graph)) - (pod), + (&(pod.eventWait)) - (pod), + (&(pod.eventRecord)) - (pod), + (&(pod.extSemSignal)) - (pod), + (&(pod.extSemWait)) - (pod), + (&(pod.alloc)) - (pod), + (&(pod.free)) - (pod), + (&(pod.memOp)) - (pod), + (&(pod.conditional)) - (pod), + (&(pod.memcpyBatch)) - (pod), + (&(pod.fabricCpyBatch)) - (pod), + (&(pod.asBytes)) - (pod), + (&(pod.reserved2)) - (pod), + ], + 'itemsize': sizeof(CUgraphNodeParams), + }) + finally: + _cyb_free(pod) graph_node_params_dtype = _get_graph_node_params_dtype_offsets() @@ -25887,19 +26553,24 @@ cdef class GraphNodeParams: cdef _get_mem_cpy3d_batch_op_v1_dtype_offsets(): - cdef CUDA_MEMCPY3D_BATCH_OP_v1 pod - return _numpy.dtype({ - 'names': ['src', 'dst', 'extent', 'src_access_order', 'flags_'], - 'formats': [mem_cpy3d_operand_v1_dtype, mem_cpy3d_operand_v1_dtype, extent3d_v1_dtype, _numpy.int32, _numpy.uint32], - 'offsets': [ - (&(pod.src)) - (&pod), - (&(pod.dst)) - (&pod), - (&(pod.extent)) - (&pod), - (&(pod.srcAccessOrder)) - (&pod), - (&(pod.flags)) - (&pod), - ], - 'itemsize': sizeof(CUDA_MEMCPY3D_BATCH_OP_v1), - }) + cdef CUDA_MEMCPY3D_BATCH_OP_v1 *pod = _cyb_calloc(1, sizeof(CUDA_MEMCPY3D_BATCH_OP_v1)) + if pod == NULL: + raise MemoryError("Error allocating CUDA_MEMCPY3D_BATCH_OP_v1") + try: + return _numpy.dtype({ + 'names': ['src', 'dst', 'extent', 'src_access_order', 'flags_'], + 'formats': [mem_cpy3d_operand_v1_dtype, mem_cpy3d_operand_v1_dtype, extent3d_v1_dtype, _numpy.int32, _numpy.uint32], + 'offsets': [ + (&(pod.src)) - (pod), + (&(pod.dst)) - (pod), + (&(pod.extent)) - (pod), + (&(pod.srcAccessOrder)) - (pod), + (&(pod.flags)) - (pod), + ], + 'itemsize': sizeof(CUDA_MEMCPY3D_BATCH_OP_v1), + }) + finally: + _cyb_free(pod) mem_cpy3d_batch_op_v1_dtype = _get_mem_cpy3d_batch_op_v1_dtype_offsets() @@ -27643,8 +28314,8 @@ cpdef flush_gpu_direct_rdma_writes(int target, int scope): https://docs.nvidia.com/cuda/gpudirect-rdma for more information), are visible to the specified scope. If the scope equals or lies within the scope indicated by - ``CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_WRITES_ORDERING``, the call will be a no- - op and can be safely omitted for performance. This can be determined by + ``CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_WRITES_ORDERING``, the call will be a + no-op and can be safely omitted for performance. This can be determined by comparing the numerical values between the two enums, with smaller scopes having smaller values. On platforms that support GPUDirect RDMA writes via more than one path in @@ -28750,8 +29421,8 @@ cpdef intptr_t module_load_data(image) except? 0: Takes a pointer ``image`` and loads the corresponding module ``module`` into the current context. The ``image`` may be a ``cubin`` or ``fatbin`` as output - by nvcc, or a NULL-terminated ``PTX``, either as output by nvcc or hand- - written, or ``Tile`` IR data. + by nvcc, or a NULL-terminated ``PTX``, either as output by nvcc or + hand-written, or ``Tile`` IR data. Args: image (bytes): Module data to load. @@ -28774,8 +29445,8 @@ cpdef intptr_t module_load_data_ex(image, unsigned int num_options, intptr_t opt Takes a pointer ``image`` and loads the corresponding module ``module`` into the current context. The ``image`` may be a ``cubin`` or ``fatbin`` as output - by nvcc, or a NULL-terminated ``PTX``, either as output by nvcc or hand- - written, or ``Tile`` IR data. + by nvcc, or a NULL-terminated ``PTX``, either as output by nvcc or + hand-written, or ``Tile`` IR data. Args: image (bytes): Module data to load. @@ -29177,9 +29848,9 @@ cpdef intptr_t library_load_data(code, intptr_t jit_options, intptr_t jit_option These environment variables are described in the CUDA programming guide under the "CUDA environment variables" section. - The ``code`` may be a ``cubin`` or ``fatbin`` as output by nvcc, or a NULL- - terminated ``PTX``, either as output by nvcc or hand-written, or ``Tile`` IR - data. A fatbin should also contain relocatable code when doing separate + The ``code`` may be a ``cubin`` or ``fatbin`` as output by nvcc, or a + NULL-terminated ``PTX``, either as output by nvcc or hand-written, or ``Tile`` + IR data. A fatbin should also contain relocatable code when doing separate compilation. Options are passed as an array via ``jit_options`` and any corresponding parameters are passed in ``jit_optionsValues``. The number of total JIT options @@ -29518,9 +30189,10 @@ cpdef int kernel_get_attribute(int attrib, intptr_t kernel, int dev) except? -1: - ``CU_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK``: The maximum number of threads per block, beyond which a launch of the kernel would fail. This number depends on both the kernel and the requested device. - - ``CU_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES``: The size in bytes of statically- - allocated shared memory per block required by this kernel. This does not - include dynamically-allocated shared memory requested by the user at runtime. + - ``CU_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES``: The size in bytes of + statically-allocated shared memory per block required by this kernel. This + does not include dynamically-allocated shared memory requested by the user at + runtime. - ``CU_FUNC_ATTRIBUTE_CONST_SIZE_BYTES``: The size in bytes of user-allocated constant memory required by this kernel. - ``CU_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES``: The size in bytes of local memory @@ -29598,8 +30270,8 @@ cpdef kernel_set_attribute(int attrib, int val, intptr_t kernel, int dev): ``kernel`` for the requested device ``dev`` to an integer value specified by ``val``. This function returns CUDA_SUCCESS if the new value of the attribute could be successfully set. If the set fails, this call will return an error. - Not all attributes can have values set. Attempting to set a value on a read- - only attribute will result in an error (CUDA_ERROR_INVALID_VALUE). + Not all attributes can have values set. Attempting to set a value on a + read-only attribute will result in an error (CUDA_ERROR_INVALID_VALUE). Note that attributes set using :func:`func_set_attribute` will override the attribute set by this API irrespective of whether the call to :func:`func_set_attribute` is made before or after this API call. However, @@ -30554,8 +31226,8 @@ cpdef mem_host_register_v2(p, size_t bytesize, unsigned int flags): Args: p (bytes): Host pointer to memory to page-lock. - bytesize (size_t): Size in bytes of the address range to page- - lock. + bytesize (size_t): Size in bytes of the address range to + page-lock. flags (unsigned int): flags for allocation request. .. seealso:: `cuMemHostRegister_v2` @@ -31954,10 +32626,10 @@ cpdef intptr_t array_3d_create_v2(p_allocate_array) except? 0: layered CUDA array, where the six layers represent the six faces of a cube. The order of the six layers in memory is the same as that listed in ``CUarray_cubemap_face``. - - A cubemap layered CUDA array is allocated if all three extents are non- - zero, and both, ``CUDA_ARRAY3D_CUBEMAP`` and ``CUDA_ARRAY3D_LAYERED`` flags - are set. ``Width`` must be equal to ``Height``, and ``Depth`` must be a - multiple of six. A cubemap layered CUDA array is a special type of 2D + - A cubemap layered CUDA array is allocated if all three extents are + non-zero, and both, ``CUDA_ARRAY3D_CUBEMAP`` and ``CUDA_ARRAY3D_LAYERED`` + flags are set. ``Width`` must be equal to ``Height``, and ``Depth`` must be + a multiple of six. A cubemap layered CUDA array is a special type of 2D layered CUDA array that consists of a collection of cubemaps. The first six layers represent the first cubemap, the next six layers form the second cubemap, and so on. @@ -32068,11 +32740,11 @@ cpdef intptr_t mipmapped_array_create(p_mipmapped_array_desc, unsigned int num_m - A 2D layered CUDA mipmapped array is allocated if all three extents are non-zero and the ``CUDA_ARRAY3D_LAYERED`` flag is set. Each layer is a 2D array. The number of layers is determined by the depth extent. - - A cubemap CUDA mipmapped array is allocated if all three extents are non- - zero and the ``CUDA_ARRAY3D_CUBEMAP`` flag is set. ``Width`` must be equal - to ``Height``, and ``Depth`` must be six. A cubemap is a special type of 2D - layered CUDA array, where the six layers represent the six faces of a cube. - The order of the six layers in memory is the same as that listed in + - A cubemap CUDA mipmapped array is allocated if all three extents are + non-zero and the ``CUDA_ARRAY3D_CUBEMAP`` flag is set. ``Width`` must be + equal to ``Height``, and ``Depth`` must be six. A cubemap is a special type + of 2D layered CUDA array, where the six layers represent the six faces of a + cube. The order of the six layers in memory is the same as that listed in ``CUarray_cubemap_face``. - A cubemap layered CUDA mipmapped array is allocated if all three extents are non-zero, and both, ``CUDA_ARRAY3D_CUBEMAP`` and @@ -32825,8 +33497,8 @@ cpdef mem_pool_set_attribute(intptr_t pool, int attr, intptr_t value): ``cuMemFreeAsync`` (default enabled). - ``CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH``: (value type = ``cuuint64_t``) Reset the high watermark that tracks the amount of backing memory that was - allocated for the memory pool. It is illegal to set this attribute to a non- - zero value. + allocated for the memory pool. It is illegal to set this attribute to a + non-zero value. - ``CU_MEMPOOL_ATTR_USED_MEM_HIGH``: (value type = ``cuuint64_t``) Reset the high watermark that tracks the amount of used memory that was allocated for the memory pool. @@ -32940,8 +33612,8 @@ cpdef intptr_t mem_pool_create(pool_props) except? 0: CU_MEM_LOCATION_TYPE_NONE to indicate no preferred location. ``CUmemPoolProps.maxSize`` must be set to zero for managed memory pools. ``CUmemPoolProps.usage`` should be zero as decompress for managed memory is not - supported. For managed memory pools, all devices on the system must have non- - zero ``concurrentManagedAccess``. If not, this call returns + supported. For managed memory pools, all devices on the system must have + non-zero ``concurrentManagedAccess``. If not, this call returns CUDA_ERROR_NOT_SUPPORTED. Args: @@ -33450,11 +34122,11 @@ cpdef mem_advise_v2(uint64_t dev_ptr, size_t count, int advice, location): and end address of the memory range will be rounded down and rounded up respectively to be aligned to CPU page size before the advice is applied. The memory range must refer to managed memory allocated via ``cuMemAllocManaged`` - or declared via managed variables. The memory range could also refer to system- - allocated pageable memory provided it represents a valid, host-accessible - region of memory and all additional constraints imposed by ``advice`` as - outlined below are also satisfied. Specifying an invalid system-allocated - pageable memory range results in an error being returned. + or declared via managed variables. The memory range could also refer to + system-allocated pageable memory provided it represents a valid, + host-accessible region of memory and all additional constraints imposed by + ``advice`` as outlined below are also satisfied. Specifying an invalid + system-allocated pageable memory range results in an error being returned. The ``advice`` parameter can take the following values:. - ``CU_MEM_ADVISE_SET_READ_MOSTLY``: This implies that the data is mostly going @@ -33486,8 +34158,8 @@ cpdef mem_advise_v2(uint64_t dev_ptr, size_t count, int advice, location): accesses this memory region. - ``CU_MEM_ADVISE_UNSET_READ_MOSTLY``: Undoes the effect of ``CU_MEM_ADVISE_SET_READ_MOSTLY`` and also prevents the Unified Memory driver - from attempting heuristic read-duplication on the memory range. Any read- - duplicated copies of the data will be collapsed into a single copy. The + from attempting heuristic read-duplication on the memory range. Any + read-duplicated copies of the data will be collapsed into a single copy. The location for the collapsed copy will be the preferred location if the page has a preferred location and one of the read-duplicated copies was resident at that location. Otherwise, the location chosen is arbitrary. Note: The @@ -33561,8 +34233,8 @@ cpdef mem_advise_v2(uint64_t dev_ptr, size_t count, int advice, location): policies of this advice. Additionally, if the preferred location of this memory region or any subset of it is also ``location``, then the policies associated with ``CU_MEM_ADVISE_SET_PREFERRED_LOCATION`` will override the - policies of this advice. If the memory region refers to valid system- - allocated pageable memory, and ``CUmemLocation.type`` is + policies of this advice. If the memory region refers to valid + system-allocated pageable memory, and ``CUmemLocation.type`` is ``CU_MEM_LOCATION_TYPE_DEVICE`` then device in ``CUmemLocation.id`` must have a non-zero value for the device attribute ``CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS``. Additionally, if @@ -34143,9 +34815,9 @@ cpdef tuple stream_get_capture_info_v2(intptr_t h_stream): which modify this set. The array pointer is valid until the next API call which operates on the stream or until the capture is terminated. The node handles may be copied out and - are valid until they or the graph is destroyed. The driver- - owned array may also be passed directly to APIs that operate - on the graph (not the stream) without copying. + are valid until they or the graph is destroyed. The + driver-owned array may also be passed directly to APIs that + operate on the graph (not the stream) without copying. .. seealso:: `cuStreamGetCaptureInfo_v2` """ @@ -34203,9 +34875,9 @@ cpdef tuple stream_get_capture_info_v3(intptr_t h_stream): which modify this set. The array pointer is valid until the next API call which operates on the stream or until the capture is terminated. The node handles may be copied out and - are valid until they or the graph is destroyed. The driver- - owned array may also be passed directly to APIs that operate - on the graph (not the stream) without copying. + are valid until they or the graph is destroyed. The + driver-owned array may also be passed directly to APIs that + operate on the graph (not the stream) without copying. - CUgraphEdgeData: Optional location to store a pointer to an array of graph edge data. This array parallels ``dependencies_out``; the next node to be added has an edge to @@ -34268,9 +34940,9 @@ cpdef stream_attach_mem_async(intptr_t h_stream, uint64_t dptr, size_t length, u """Attach memory to a stream asynchronously. Enqueues an operation in ``h_stream`` to specify stream association of - ``length`` bytes of memory starting from ``dptr``. This function is a stream- - ordered operation, meaning that it is dependent on, and will only take effect - when, previous work in stream has completed. Any previous association is + ``length`` bytes of memory starting from ``dptr``. This function is a + stream-ordered operation, meaning that it is dependent on, and will only take + effect when, previous work in stream has completed. Any previous association is automatically replaced. ``dptr`` must point to one of the following types of memories:. @@ -34324,8 +34996,8 @@ cpdef stream_attach_mem_async(intptr_t h_stream, uint64_t dptr, size_t length, u h_stream (intptr_t): Stream in which to enqueue the attach operation. dptr (uint64_t): Pointer to memory (must be a pointer to managed - memory or to a valid host-accessible region of system- - allocated pageable memory). + memory or to a valid host-accessible region of + system-allocated pageable memory). length (size_t): Length of memory. flags (unsigned int): Must be one of ``CUmemAttach_flags``. @@ -35317,9 +35989,10 @@ cpdef int func_get_attribute(int attrib, intptr_t hfunc) except? -1: per block, beyond which a launch of the function would fail. This number depends on both the function and the device on which the function is currently loaded. - - ``CU_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES``: The size in bytes of statically- - allocated shared memory per block required by this function. This does not - include dynamically-allocated shared memory requested by the user at runtime. + - ``CU_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES``: The size in bytes of + statically-allocated shared memory per block required by this function. This + does not include dynamically-allocated shared memory requested by the user at + runtime. - ``CU_FUNC_ATTRIBUTE_CONST_SIZE_BYTES``: The size in bytes of user-allocated constant memory required by this function. - ``CU_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES``: The size in bytes of local memory @@ -37726,8 +38399,8 @@ cpdef tuple graph_node_get_dependencies_v2(intptr_t h_node): the remaining entries in ``dependencies`` will be set to NULL, and the number of nodes actually obtained will be returned in ``num_dependencies``. Note that if an edge has non-zero (non-default) edge data and ``edge_data`` is - NULL, this API will return ``CUDA_ERROR_LOSSY_QUERY``. If ``edge_data`` is non- - NULL, then ``dependencies`` must be as well. + NULL, this API will return ``CUDA_ERROR_LOSSY_QUERY``. If ``edge_data`` is + non-NULL, then ``dependencies`` must be as well. Args: h_node (intptr_t): Node to query. @@ -37767,8 +38440,8 @@ cpdef tuple graph_node_get_dependent_nodes_v2(intptr_t h_node): NULL, and the number of nodes actually obtained will be returned in ``num_dependent_nodes``. Note that if an edge has non-zero (non-default) edge data and ``edge_data`` is - NULL, this API will return ``CUDA_ERROR_LOSSY_QUERY``. If ``edge_data`` is non- - NULL, then ``dependent_nodes`` must be as well. + NULL, this API will return ``CUDA_ERROR_LOSSY_QUERY``. If ``edge_data`` is + non-NULL, then ``dependent_nodes`` must be as well. Args: h_node (intptr_t): Node to query. @@ -38079,8 +38752,8 @@ cpdef graph_exec_kernel_node_set_params_v2(intptr_t h_graph_exec, intptr_t h_nod """Sets the parameters for a kernel node in the given graphExec. Sets the parameters of a kernel node in an executable graph ``h_graph_exec``. - The node is identified by the corresponding node ``h_node`` in the non- - executable graph, from which the executable graph was instantiated. + The node is identified by the corresponding node ``h_node`` in the + non-executable graph, from which the executable graph was instantiated. ``h_node`` must not have been removed from the original graph. All ``node_params`` fields may change, but the following restrictions apply to ``func`` updates:. @@ -38267,8 +38940,8 @@ cpdef graph_exec_event_record_node_set_event(intptr_t h_graph_exec, intptr_t h_n """Sets the event for an event record node in the given graphExec. Sets the event of an event record node in an executable graph ``h_graph_exec``. - The node is identified by the corresponding node ``h_node`` in the non- - executable graph, from which the executable graph was instantiated. + The node is identified by the corresponding node ``h_node`` in the + non-executable graph, from which the executable graph was instantiated. The modifications only affect future launches of ``h_graph_exec``. Already enqueued or running launches of ``h_graph_exec`` are not affected by this call. ``h_node`` is also not modified by this call. @@ -38294,8 +38967,8 @@ cpdef graph_exec_event_wait_node_set_event(intptr_t h_graph_exec, intptr_t h_nod """Sets the event for an event wait node in the given graphExec. Sets the event of an event wait node in an executable graph ``h_graph_exec``. - The node is identified by the corresponding node ``h_node`` in the non- - executable graph, from which the executable graph was instantiated. + The node is identified by the corresponding node ``h_node`` in the + non-executable graph, from which the executable graph was instantiated. The modifications only affect future launches of ``h_graph_exec``. Already enqueued or running launches of ``h_graph_exec`` are not affected by this call. ``h_node`` is also not modified by this call. @@ -38383,8 +39056,8 @@ cpdef graph_node_set_enabled(intptr_t h_graph_exec, intptr_t h_node, unsigned in Sets ``h_node`` to be either enabled or disabled. Disabled nodes are functionally equivalent to empty nodes until they are reenabled. Existing node parameters are not affected by disabling/enabling the node. - The node is identified by the corresponding node ``h_node`` in the non- - executable graph, from which the executable graph was instantiated. + The node is identified by the corresponding node ``h_node`` in the + non-executable graph, from which the executable graph was instantiated. ``h_node`` must not have been removed from the original graph. The modifications only affect future launches of ``h_graph_exec``. Already enqueued or running launches of ``h_graph_exec`` are not affected by this call. @@ -38413,8 +39086,8 @@ cpdef unsigned int graph_node_get_enabled(intptr_t h_graph_exec, intptr_t h_node """Query whether a node in the given graphExec is enabled. Sets is_enabled to 1 if ``h_node`` is enabled, or 0 if ``h_node`` is disabled. - The node is identified by the corresponding node ``h_node`` in the non- - executable graph, from which the executable graph was instantiated. + The node is identified by the corresponding node ``h_node`` in the + non-executable graph, from which the executable graph was instantiated. ``h_node`` must not have been removed from the original graph. Args: @@ -38528,8 +39201,8 @@ cpdef object graph_exec_update_v2(intptr_t h_graph_exec, intptr_t h_graph): cannot be updated to a function which uses CDP. - A node whose function originally did not make device-side update calls cannot be updated to a function which makes device-side update calls. - - A cooperative node cannot be updated to a non-cooperative node, and vice- - versa. + - A cooperative node cannot be updated to a non-cooperative node, and + vice-versa. - If the graph was instantiated with CUDA_GRAPH_INSTANTIATE_FLAG_USE_NODE_PRIORITY, the priority attribute cannot change. Equality is checked on the originally requested priority @@ -39180,8 +39853,8 @@ cpdef int occupancy_max_potential_cluster_size(intptr_t func, config) except? -1 ``cuFuncGetAttribute``),``*cluster_size`` will reflect the required cluster size. By default this function will always return a value that's portable on future - hardware. A higher value may be returned if the kernel function allows non- - portable cluster sizes. + hardware. A higher value may be returned if the kernel function allows + non-portable cluster sizes. This function will respect the compile time launch bounds. Note that the API can also be used with context-less kernel ``CUkernel`` by querying the handle using :func:`library_get_kernel` and then passing it to the @@ -40828,8 +41501,8 @@ cpdef ctx_enable_peer_access(intptr_t peer_context, unsigned int flags): access memory from the current context in ``peer_context``, a separate symmetric call to :func:`ctx_enable_peer_access` is required. Note that there are both device-wide and system-wide limitations per system - configuration, as noted in the CUDA Programming Guide under the section "Peer- - to-Peer Memory Access". + configuration, as noted in the CUDA Programming Guide under the section + "Peer-to-Peer Memory Access". Returns ``CUDA_ERROR_PEER_ACCESS_UNSUPPORTED`` if :func:`device_can_access_peer` indicates that the ``CUdevice`` of the current context cannot directly access memory from the ``CUdevice`` of @@ -41815,10 +42488,10 @@ cpdef checkpoint_process_checkpoint(int pid, args): """Checkpoint a CUDA process's GPU memory contents. Checkpoints a CUDA process specified by ``pid``. The GPU memory contents will - be brought into host memory or mapped onto the calling process's GPUs for user- - defined behavior. Underlying GPU references are released when checkpointing - completes. The process must be in the ``CU_PROCESS_STATE_LOCKED`` state to - checkpoint. + be brought into host memory or mapped onto the calling process's GPUs for + user-defined behavior. Underlying GPU references are released when + checkpointing completes. The process must be in the ``CU_PROCESS_STATE_LOCKED`` + state to checkpoint. When ``CUcheckpointCheckpointArgs.customStorageInfo_out`` is not NULL, all the GPU memory allocated by the process with ``pid`` will be mapped onto the calling process's GPUs so the application can copy the memory to custom @@ -42608,8 +43281,8 @@ cpdef memcpy_3d_batch_async_v2(size_t num_ops, op_list, unsigned long long flags copy specified in ``CUDA_MEMCPY3D_BATCH_OP``::extent::height. When either of these values is zero, that aspect of the operand is considered to be tightly packed according to the copy extent. For managed memory pointers on devices - where ``CU_DEVICE_ATTRIBUTE_CONCURRENT_MANAGED_ACCESS`` is true or system- - allocated pageable memory on devices where + where ``CU_DEVICE_ATTRIBUTE_CONCURRENT_MANAGED_ACCESS`` is true or + system-allocated pageable memory on devices where ``CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS`` is true, the ``CUmemcpy3DOperand.op.ptr.locHint`` field can be used to hint the location of the operand. @@ -42878,8 +43551,8 @@ cpdef mem_discard_and_prefetch_batch_async(intptr_t dptrs, intptr_t sizes, size_ Performs a batch of memory discards followed by prefetches. The batch as a whole executes in stream order but operations within a batch are not guaranteed - to execute in any specific order. All devices in the system must have a non- - zero value for the device attribute + to execute in any specific order. All devices in the system must have a + non-zero value for the device attribute ``CU_DEVICE_ATTRIBUTE_CONCURRENT_MANAGED_ACCESS`` otherwise the API will return an error. Calling ``cuMemDiscardAndPrefetchBatchAsync`` is semantically equivalent to @@ -43515,8 +44188,8 @@ cpdef stream_begin_capture_to_cig(intptr_t h_stream, stream_cig_capture_params): accesses them on the stream. Resubmission of the same recorded command list/buffer is not allowed. Further more, care must be taken for the order of execution of the recorded CUDA work - with regards to other CUDA work submitted under the same CIG context. Out-of- - order execution can lead to device hangs or exceptions. + with regards to other CUDA work submitted under the same CIG context. + Out-of-order execution can lead to device hangs or exceptions. CIG capture mode operates similarly to ``cuStreamBeginCapture`` with the ``CU_STREAM_CAPTURE_MODE_RELAXED`` option. There are additional limitations to streams in CIG capture mode. The following functions are not allowed for CIG @@ -44119,8 +44792,8 @@ cpdef int logical_endpoint_query(uint32_t le_id, uint32_t count) except? -1: Returns: int: Status of the logical endpoints. Returns 0 if any logical - endpoint in the given range is not fully constructed, and non- - zero if all logical endpoints in the given range are fully + endpoint in the given range is not fully constructed, and + non-zero if all logical endpoints in the given range are fully constructed. .. seealso:: `cuLogicalEndpointQuery` @@ -44314,9 +44987,9 @@ cpdef intptr_t graph_add_node_v3(intptr_t h_graph, dependencies, dependency_data initialization or memset to ensure all bytes are initialized. Note that for some node types, ``node_params`` may contain "out parameters" which are modified during the call, such as ``node_params->alloc.dptr``. - For kernel nodes, if both the kernel node's ``CUfunction`` and ctx are non- - NULL, the underlying device context of ctx must match the device context that - the ``CUfunction`` was loaded into; otherwise the call returns + For kernel nodes, if both the kernel node's ``CUfunction`` and ctx are + non-NULL, the underlying device context of ctx must match the device context + that the ``CUfunction`` was loaded into; otherwise the call returns ``CUDA_ERROR_INVALID_CONTEXT``. A handle to the new node will be returned in ``ph_graph_node``. @@ -44357,9 +45030,9 @@ cpdef graph_node_set_params_v2(intptr_t h_node, node_params): padding) zeroed. Modifying parameters is not supported for node types CU_GRAPH_NODE_TYPE_MEM_ALLOC and CU_GRAPH_NODE_TYPE_MEM_FREE. - For kernel nodes, if both the kernel node's ``CUfunction`` and ctx are non- - NULL, the underlying device context of ctx must match the device context that - the ``CUfunction`` was loaded into; otherwise the call returns + For kernel nodes, if both the kernel node's ``CUfunction`` and ctx are + non-NULL, the underlying device context of ctx must match the device context + that the ``CUfunction`` was loaded into; otherwise the call returns ``CUDA_ERROR_INVALID_CONTEXT``. Args: @@ -44421,8 +45094,8 @@ cpdef fabric_cpy_batch_async(size_t num_ops, intptr_t op_list, unsigned long lon is specified in ``num_ops``. Each entry describes a copy operation including source and destination operands (``CUDA_FABRIC_COPY_BATCH_OP.src`` and ``CUDA_FABRIC_COPY_BATCH_OP.dst``) and the size in bytes - (``CUDA_FABRIC_COPY_BATCH_OP.size``). A size of zero makes that operation a no- - op while preserving its position in the batch. Its operands are still + (``CUDA_FABRIC_COPY_BATCH_OP.size``). A size of zero makes that operation a + no-op while preserving its position in the batch. Its operands are still validated. The following operand type combinations are supported:. diff --git a/cuda_bindings_13/cuda/bindings/_v2/nvrtc.pyx b/cuda_bindings_13/cuda/bindings/_v2/nvrtc.pyx index 14e74208fd52..a0fd8faa8b7a 100644 --- a/cuda_bindings_13/cuda/bindings/_v2/nvrtc.pyx +++ b/cuda_bindings_13/cuda/bindings/_v2/nvrtc.pyx @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated across versions from 12.9.0 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=ba26837dbd547d2e915dc2f5073385fd2f6b2d4f32fdeb60a93e4338e5a3a03c +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=fff85c453c84fc538b768c24c857213e2dbe1ffb80a2a2e2838019d7e7d1630d # <<<< PREAMBLE CONTENT >>>> @@ -18,6 +18,10 @@ from cpython.buffer cimport ( ) from cython cimport view as _cyb_view from libc.stdint cimport intptr_t +from libc.stdlib cimport ( + calloc as _cyb_calloc, + free as _cyb_free, +) from libc.string cimport ( memcmp as _cyb_memcmp, memcpy as _cyb_memcpy, @@ -232,20 +236,25 @@ cdef int check_status(int status) except 1 nogil: ############################################################################### cdef _get_bundled_headers_info_dtype_offsets(): - cdef nvrtcBundledHeadersInfo pod - return _numpy.dtype({ - 'names': ['available', 'compressed_size', 'uncompressed_size', 'cuda_version_major', 'cuda_version_minor', 'num_files'], - 'formats': [_numpy.int32, _numpy.uint64, _numpy.uint64, _numpy.int32, _numpy.int32, _numpy.uint32], - 'offsets': [ - (&(pod.available)) - (&pod), - (&(pod.compressedSize)) - (&pod), - (&(pod.uncompressedSize)) - (&pod), - (&(pod.cudaVersionMajor)) - (&pod), - (&(pod.cudaVersionMinor)) - (&pod), - (&(pod.numFiles)) - (&pod), - ], - 'itemsize': sizeof(nvrtcBundledHeadersInfo), - }) + cdef nvrtcBundledHeadersInfo *pod = _cyb_calloc(1, sizeof(nvrtcBundledHeadersInfo)) + if pod == NULL: + raise MemoryError("Error allocating nvrtcBundledHeadersInfo") + try: + return _numpy.dtype({ + 'names': ['available', 'compressed_size', 'uncompressed_size', 'cuda_version_major', 'cuda_version_minor', 'num_files'], + 'formats': [_numpy.int32, _numpy.uint64, _numpy.uint64, _numpy.int32, _numpy.int32, _numpy.uint32], + 'offsets': [ + (&(pod.available)) - (pod), + (&(pod.compressedSize)) - (pod), + (&(pod.uncompressedSize)) - (pod), + (&(pod.cudaVersionMajor)) - (pod), + (&(pod.cudaVersionMinor)) - (pod), + (&(pod.numFiles)) - (pod), + ], + 'itemsize': sizeof(nvrtcBundledHeadersInfo), + }) + finally: + _cyb_free(pod) bundled_headers_info_dtype = _get_bundled_headers_info_dtype_offsets() diff --git a/cuda_bindings_13/cuda/bindings/cudla.pyx b/cuda_bindings_13/cuda/bindings/cudla.pyx index 9501e6b20e24..43553382ec41 100644 --- a/cuda_bindings_13/cuda/bindings/cudla.pyx +++ b/cuda_bindings_13/cuda/bindings/cudla.pyx @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # This code was automatically generated across versions from 1.5.0 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=4fb80303cf58308e310478def045302e182c8c4a8b169efd0b22cd322629190e +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=2ddc08b7839e06f87dbb946eab7b3db85897fa051767efd3b966d681dbde4550 # <<<< PREAMBLE CONTENT >>>> @@ -23,6 +23,10 @@ from libc.stdint cimport ( uint64_t, uint8_t, ) +from libc.stdlib cimport ( + calloc as _cyb_calloc, + free as _cyb_free, +) from libc.string cimport ( memcmp as _cyb_memcmp, memcpy as _cyb_memcpy, @@ -117,16 +121,21 @@ from libc.stdlib cimport malloc, free ############################################################################### cdef _get_external_memory_handle_desc_dtype_offsets(): - cdef cudlaExternalMemoryHandleDesc_t pod - return _numpy.dtype({ - 'names': ['ext_buf_object', 'size_'], - 'formats': [_numpy.intp, _numpy.uint64], - 'offsets': [ - (&(pod.extBufObject)) - (&pod), - (&(pod.size)) - (&pod), - ], - 'itemsize': sizeof(cudlaExternalMemoryHandleDesc_t), - }) + cdef cudlaExternalMemoryHandleDesc_t *pod = _cyb_calloc(1, sizeof(cudlaExternalMemoryHandleDesc_t)) + if pod == NULL: + raise MemoryError("Error allocating cudlaExternalMemoryHandleDesc_t") + try: + return _numpy.dtype({ + 'names': ['ext_buf_object', 'size_'], + 'formats': [_numpy.intp, _numpy.uint64], + 'offsets': [ + (&(pod.extBufObject)) - (pod), + (&(pod.size)) - (pod), + ], + 'itemsize': sizeof(cudlaExternalMemoryHandleDesc_t), + }) + finally: + _cyb_free(pod) external_memory_handle_desc_dtype = _get_external_memory_handle_desc_dtype_offsets() @@ -254,15 +263,20 @@ cdef class ExternalMemoryHandleDesc: cdef _get_external_semaphore_handle_desc_dtype_offsets(): - cdef cudlaExternalSemaphoreHandleDesc_t pod - return _numpy.dtype({ - 'names': ['ext_sync_object'], - 'formats': [_numpy.intp], - 'offsets': [ - (&(pod.extSyncObject)) - (&pod), - ], - 'itemsize': sizeof(cudlaExternalSemaphoreHandleDesc_t), - }) + cdef cudlaExternalSemaphoreHandleDesc_t *pod = _cyb_calloc(1, sizeof(cudlaExternalSemaphoreHandleDesc_t)) + if pod == NULL: + raise MemoryError("Error allocating cudlaExternalSemaphoreHandleDesc_t") + try: + return _numpy.dtype({ + 'names': ['ext_sync_object'], + 'formats': [_numpy.intp], + 'offsets': [ + (&(pod.extSyncObject)) - (pod), + ], + 'itemsize': sizeof(cudlaExternalSemaphoreHandleDesc_t), + }) + finally: + _cyb_free(pod) external_semaphore_handle_desc_dtype = _get_external_semaphore_handle_desc_dtype_offsets() @@ -379,26 +393,31 @@ cdef class ExternalSemaphoreHandleDesc: cdef _get_module_tensor_descriptor_dtype_offsets(): - cdef cudlaModuleTensorDescriptor pod - return _numpy.dtype({ - 'names': ['name', 'size_', 'n', 'c', 'h', 'w', 'data_format', 'data_type', 'data_category', 'pixel_format', 'pixel_mapping', 'stride'], - 'formats': [(_numpy.int8, 81), _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint8, _numpy.uint8, _numpy.uint8, _numpy.uint8, _numpy.uint8, (_numpy.uint32, 8)], - 'offsets': [ - (&(pod.name)) - (&pod), - (&(pod.size)) - (&pod), - (&(pod.n)) - (&pod), - (&(pod.c)) - (&pod), - (&(pod.h)) - (&pod), - (&(pod.w)) - (&pod), - (&(pod.dataFormat)) - (&pod), - (&(pod.dataType)) - (&pod), - (&(pod.dataCategory)) - (&pod), - (&(pod.pixelFormat)) - (&pod), - (&(pod.pixelMapping)) - (&pod), - (&(pod.stride)) - (&pod), - ], - 'itemsize': sizeof(cudlaModuleTensorDescriptor), - }) + cdef cudlaModuleTensorDescriptor *pod = _cyb_calloc(1, sizeof(cudlaModuleTensorDescriptor)) + if pod == NULL: + raise MemoryError("Error allocating cudlaModuleTensorDescriptor") + try: + return _numpy.dtype({ + 'names': ['name', 'size_', 'n', 'c', 'h', 'w', 'data_format', 'data_type', 'data_category', 'pixel_format', 'pixel_mapping', 'stride'], + 'formats': [(_numpy.int8, 81), _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint8, _numpy.uint8, _numpy.uint8, _numpy.uint8, _numpy.uint8, (_numpy.uint32, 8)], + 'offsets': [ + (&(pod.name)) - (pod), + (&(pod.size)) - (pod), + (&(pod.n)) - (pod), + (&(pod.c)) - (pod), + (&(pod.h)) - (pod), + (&(pod.w)) - (pod), + (&(pod.dataFormat)) - (pod), + (&(pod.dataType)) - (pod), + (&(pod.dataCategory)) - (pod), + (&(pod.pixelFormat)) - (pod), + (&(pod.pixelMapping)) - (pod), + (&(pod.stride)) - (pod), + ], + 'itemsize': sizeof(cudlaModuleTensorDescriptor), + }) + finally: + _cyb_free(pod) module_tensor_descriptor_dtype = _get_module_tensor_descriptor_dtype_offsets() @@ -646,16 +665,21 @@ cdef class ModuleTensorDescriptor: cdef _get_fence_dtype_offsets(): - cdef CudlaFence pod - return _numpy.dtype({ - 'names': ['fence', 'type'], - 'formats': [_numpy.intp, _numpy.int32], - 'offsets': [ - (&(pod.fence)) - (&pod), - (&(pod.type)) - (&pod), - ], - 'itemsize': sizeof(CudlaFence), - }) + cdef CudlaFence *pod = _cyb_calloc(1, sizeof(CudlaFence)) + if pod == NULL: + raise MemoryError("Error allocating CudlaFence") + try: + return _numpy.dtype({ + 'names': ['fence', 'type'], + 'formats': [_numpy.intp, _numpy.int32], + 'offsets': [ + (&(pod.fence)) - (pod), + (&(pod.type)) - (pod), + ], + 'itemsize': sizeof(CudlaFence), + }) + finally: + _cyb_free(pod) fence_dtype = _get_fence_dtype_offsets() @@ -783,16 +807,21 @@ cdef class Fence: cdef _get_dev_attribute_dtype_offsets(): - cdef cudlaDevAttribute pod - return _numpy.dtype({ - 'names': ['unified_addressing_supported', 'device_version'], - 'formats': [_numpy.uint8, _numpy.uint32], - 'offsets': [ - (&(pod.unifiedAddressingSupported)) - (&pod), - (&(pod.deviceVersion)) - (&pod), - ], - 'itemsize': sizeof(cudlaDevAttribute), - }) + cdef cudlaDevAttribute *pod = _cyb_calloc(1, sizeof(cudlaDevAttribute)) + if pod == NULL: + raise MemoryError("Error allocating cudlaDevAttribute") + try: + return _numpy.dtype({ + 'names': ['unified_addressing_supported', 'device_version'], + 'formats': [_numpy.uint8, _numpy.uint32], + 'offsets': [ + (&(pod.unifiedAddressingSupported)) - (pod), + (&(pod.deviceVersion)) - (pod), + ], + 'itemsize': sizeof(cudlaDevAttribute), + }) + finally: + _cyb_free(pod) dev_attribute_dtype = _get_dev_attribute_dtype_offsets() @@ -920,18 +949,23 @@ cdef class DevAttribute: cdef _get_module_attribute_dtype_offsets(): - cdef cudlaModuleAttribute pod - return _numpy.dtype({ - 'names': ['num_input_tensors', 'num_output_tensors', 'input_tensor_desc', 'output_tensor_desc'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.intp, _numpy.intp], - 'offsets': [ - (&(pod.numInputTensors)) - (&pod), - (&(pod.numOutputTensors)) - (&pod), - (&(pod.inputTensorDesc)) - (&pod), - (&(pod.outputTensorDesc)) - (&pod), - ], - 'itemsize': sizeof(cudlaModuleAttribute), - }) + cdef cudlaModuleAttribute *pod = _cyb_calloc(1, sizeof(cudlaModuleAttribute)) + if pod == NULL: + raise MemoryError("Error allocating cudlaModuleAttribute") + try: + return _numpy.dtype({ + 'names': ['num_input_tensors', 'num_output_tensors', 'input_tensor_desc', 'output_tensor_desc'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.intp, _numpy.intp], + 'offsets': [ + (&(pod.numInputTensors)) - (pod), + (&(pod.numOutputTensors)) - (pod), + (&(pod.inputTensorDesc)) - (pod), + (&(pod.outputTensorDesc)) - (pod), + ], + 'itemsize': sizeof(cudlaModuleAttribute), + }) + finally: + _cyb_free(pod) module_attribute_dtype = _get_module_attribute_dtype_offsets() @@ -1081,16 +1115,21 @@ cdef class ModuleAttribute: cdef _get_wait_events_dtype_offsets(): - cdef cudlaWaitEvents pod - return _numpy.dtype({ - 'names': ['pre_fences', 'num_events'], - 'formats': [_numpy.intp, _numpy.uint32], - 'offsets': [ - (&(pod.preFences)) - (&pod), - (&(pod.numEvents)) - (&pod), - ], - 'itemsize': sizeof(cudlaWaitEvents), - }) + cdef cudlaWaitEvents *pod = _cyb_calloc(1, sizeof(cudlaWaitEvents)) + if pod == NULL: + raise MemoryError("Error allocating cudlaWaitEvents") + try: + return _numpy.dtype({ + 'names': ['pre_fences', 'num_events'], + 'formats': [_numpy.intp, _numpy.uint32], + 'offsets': [ + (&(pod.preFences)) - (pod), + (&(pod.numEvents)) - (pod), + ], + 'itemsize': sizeof(cudlaWaitEvents), + }) + finally: + _cyb_free(pod) wait_events_dtype = _get_wait_events_dtype_offsets() @@ -1220,17 +1259,22 @@ cdef class WaitEvents: cdef _get_signal_events_dtype_offsets(): - cdef cudlaSignalEvents pod - return _numpy.dtype({ - 'names': ['dev_ptrs', 'eof_fences', 'num_events'], - 'formats': [_numpy.intp, _numpy.intp, _numpy.uint32], - 'offsets': [ - (&(pod.devPtrs)) - (&pod), - (&(pod.eofFences)) - (&pod), - (&(pod.numEvents)) - (&pod), - ], - 'itemsize': sizeof(cudlaSignalEvents), - }) + cdef cudlaSignalEvents *pod = _cyb_calloc(1, sizeof(cudlaSignalEvents)) + if pod == NULL: + raise MemoryError("Error allocating cudlaSignalEvents") + try: + return _numpy.dtype({ + 'names': ['dev_ptrs', 'eof_fences', 'num_events'], + 'formats': [_numpy.intp, _numpy.intp, _numpy.uint32], + 'offsets': [ + (&(pod.devPtrs)) - (pod), + (&(pod.eofFences)) - (pod), + (&(pod.numEvents)) - (pod), + ], + 'itemsize': sizeof(cudlaSignalEvents), + }) + finally: + _cyb_free(pod) signal_events_dtype = _get_signal_events_dtype_offsets() @@ -1386,21 +1430,26 @@ cdef class SignalEvents: cdef _get_task_dtype_offsets(): - cdef cudlaTask pod - return _numpy.dtype({ - 'names': ['module_handle', 'output_tensor', 'num_output_tensors', 'num_input_tensors', 'input_tensor', 'wait_events', 'signal_events'], - 'formats': [_numpy.intp, _numpy.intp, _numpy.uint32, _numpy.uint32, _numpy.intp, _numpy.intp, _numpy.intp], - 'offsets': [ - (&(pod.moduleHandle)) - (&pod), - (&(pod.outputTensor)) - (&pod), - (&(pod.numOutputTensors)) - (&pod), - (&(pod.numInputTensors)) - (&pod), - (&(pod.inputTensor)) - (&pod), - (&(pod.waitEvents)) - (&pod), - (&(pod.signalEvents)) - (&pod), - ], - 'itemsize': sizeof(cudlaTask), - }) + cdef cudlaTask *pod = _cyb_calloc(1, sizeof(cudlaTask)) + if pod == NULL: + raise MemoryError("Error allocating cudlaTask") + try: + return _numpy.dtype({ + 'names': ['module_handle', 'output_tensor', 'num_output_tensors', 'num_input_tensors', 'input_tensor', 'wait_events', 'signal_events'], + 'formats': [_numpy.intp, _numpy.intp, _numpy.uint32, _numpy.uint32, _numpy.intp, _numpy.intp, _numpy.intp], + 'offsets': [ + (&(pod.moduleHandle)) - (pod), + (&(pod.outputTensor)) - (pod), + (&(pod.numOutputTensors)) - (pod), + (&(pod.numInputTensors)) - (pod), + (&(pod.inputTensor)) - (pod), + (&(pod.waitEvents)) - (pod), + (&(pod.signalEvents)) - (pod), + ], + 'itemsize': sizeof(cudlaTask), + }) + finally: + _cyb_free(pod) task_dtype = _get_task_dtype_offsets() diff --git a/cuda_bindings_13/cuda/bindings/cufile.pyx b/cuda_bindings_13/cuda/bindings/cufile.pyx index 641d4c7d9539..7012d925b78b 100644 --- a/cuda_bindings_13/cuda/bindings/cufile.pyx +++ b/cuda_bindings_13/cuda/bindings/cufile.pyx @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated across versions from 12.9.1 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=88e58a7cce47d08fe8ea4f26ad9f159d35f8bddbf7fbd00d74c0c971c8f53d8d +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=c3b2b4bee74608c9147b08755b19a90a61411b964f48c4067832acf1eeaa1096 # <<<< PREAMBLE CONTENT >>>> @@ -101,16 +101,21 @@ from cuda.bindings.driver import CUresult as pyCUresult ############################################################################### cdef _get__py_anon_pod1_dtype_offsets(): - cdef cuda_bindings_cufile__anon_pod1 pod - return _numpy.dtype({ - 'names': ['fd', 'handle'], - 'formats': [_numpy.int32, _numpy.intp], - 'offsets': [ - (&(pod.fd)) - (&pod), - (&(pod.handle)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_cufile__anon_pod1), - }) + cdef cuda_bindings_cufile__anon_pod1 *pod = _cyb_calloc(1, sizeof(cuda_bindings_cufile__anon_pod1)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_cufile__anon_pod1") + try: + return _numpy.dtype({ + 'names': ['fd', 'handle'], + 'formats': [_numpy.int32, _numpy.intp], + 'offsets': [ + (&(pod.fd)) - (pod), + (&(pod.handle)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_cufile__anon_pod1), + }) + finally: + _cyb_free(pod) _py_anon_pod1_dtype = _get__py_anon_pod1_dtype_offsets() @@ -250,18 +255,23 @@ cdef class _py_anon_pod1: cdef _get__py_anon_pod3_dtype_offsets(): - cdef cuda_bindings_cufile__anon_pod3 pod - return _numpy.dtype({ - 'names': ['dev_ptr_base', 'file_offset', 'dev_ptr_offset', 'size_'], - 'formats': [_numpy.intp, _numpy.int64, _numpy.int64, _numpy.uint64], - 'offsets': [ - (&(pod.devPtr_base)) - (&pod), - (&(pod.file_offset)) - (&pod), - (&(pod.devPtr_offset)) - (&pod), - (&(pod.size)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_cufile__anon_pod3), - }) + cdef cuda_bindings_cufile__anon_pod3 *pod = _cyb_calloc(1, sizeof(cuda_bindings_cufile__anon_pod3)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_cufile__anon_pod3") + try: + return _numpy.dtype({ + 'names': ['dev_ptr_base', 'file_offset', 'dev_ptr_offset', 'size_'], + 'formats': [_numpy.intp, _numpy.int64, _numpy.int64, _numpy.uint64], + 'offsets': [ + (&(pod.devPtr_base)) - (pod), + (&(pod.file_offset)) - (pod), + (&(pod.devPtr_offset)) - (pod), + (&(pod.size)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_cufile__anon_pod3), + }) + finally: + _cyb_free(pod) _py_anon_pod3_dtype = _get__py_anon_pod3_dtype_offsets() @@ -423,17 +433,22 @@ cdef class _py_anon_pod3: cdef _get_io_events_dtype_offsets(): - cdef CUfileIOEvents_t pod - return _numpy.dtype({ - 'names': ['cookie', 'status', 'ret'], - 'formats': [_numpy.intp, _numpy.int32, _numpy.uint64], - 'offsets': [ - (&(pod.cookie)) - (&pod), - (&(pod.status)) - (&pod), - (&(pod.ret)) - (&pod), - ], - 'itemsize': sizeof(CUfileIOEvents_t), - }) + cdef CUfileIOEvents_t *pod = _cyb_calloc(1, sizeof(CUfileIOEvents_t)) + if pod == NULL: + raise MemoryError("Error allocating CUfileIOEvents_t") + try: + return _numpy.dtype({ + 'names': ['cookie', 'status', 'ret'], + 'formats': [_numpy.intp, _numpy.int32, _numpy.uint64], + 'offsets': [ + (&(pod.cookie)) - (pod), + (&(pod.status)) - (pod), + (&(pod.ret)) - (pod), + ], + 'itemsize': sizeof(CUfileIOEvents_t), + }) + finally: + _cyb_free(pod) io_events_dtype = _get_io_events_dtype_offsets() cdef object io_events_dtype_record = _numpy.dtype((_numpy.record, io_events_dtype)) @@ -605,16 +620,21 @@ cdef class IOEvents: cdef _get_op_counter_dtype_offsets(): - cdef CUfileOpCounter_t pod - return _numpy.dtype({ - 'names': ['ok', 'err'], - 'formats': [_numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.ok)) - (&pod), - (&(pod.err)) - (&pod), - ], - 'itemsize': sizeof(CUfileOpCounter_t), - }) + cdef CUfileOpCounter_t *pod = _cyb_calloc(1, sizeof(CUfileOpCounter_t)) + if pod == NULL: + raise MemoryError("Error allocating CUfileOpCounter_t") + try: + return _numpy.dtype({ + 'names': ['ok', 'err'], + 'formats': [_numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.ok)) - (pod), + (&(pod.err)) - (pod), + ], + 'itemsize': sizeof(CUfileOpCounter_t), + }) + finally: + _cyb_free(pod) op_counter_dtype = _get_op_counter_dtype_offsets() @@ -754,44 +774,49 @@ cdef class OpCounter: cdef _get_per_gpu_stats_dtype_offsets(): - cdef CUfilePerGpuStats_t pod - return _numpy.dtype({ - 'names': ['uuid', 'read_bytes', 'read_bw_bytes_per_sec', 'read_utilization', 'read_duration_us', 'n_total_reads', 'n_p2p_reads', 'n_nvfs_reads', 'n_posix_reads', 'n_unaligned_reads', 'n_dr_reads', 'n_sparse_regions', 'n_inline_regions', 'n_reads_err', 'writes_bytes', 'write_bw_bytes_per_sec', 'write_utilization', 'write_duration_us', 'n_total_writes', 'n_p2p_writes', 'n_nvfs_writes', 'n_posix_writes', 'n_unaligned_writes', 'n_dr_writes', 'n_writes_err', 'n_mmap', 'n_mmap_ok', 'n_mmap_err', 'n_mmap_free', 'reg_bytes'], - 'formats': [(_numpy.int8, 16), _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.uuid)) - (&pod), - (&(pod.read_bytes)) - (&pod), - (&(pod.read_bw_bytes_per_sec)) - (&pod), - (&(pod.read_utilization)) - (&pod), - (&(pod.read_duration_us)) - (&pod), - (&(pod.n_total_reads)) - (&pod), - (&(pod.n_p2p_reads)) - (&pod), - (&(pod.n_nvfs_reads)) - (&pod), - (&(pod.n_posix_reads)) - (&pod), - (&(pod.n_unaligned_reads)) - (&pod), - (&(pod.n_dr_reads)) - (&pod), - (&(pod.n_sparse_regions)) - (&pod), - (&(pod.n_inline_regions)) - (&pod), - (&(pod.n_reads_err)) - (&pod), - (&(pod.writes_bytes)) - (&pod), - (&(pod.write_bw_bytes_per_sec)) - (&pod), - (&(pod.write_utilization)) - (&pod), - (&(pod.write_duration_us)) - (&pod), - (&(pod.n_total_writes)) - (&pod), - (&(pod.n_p2p_writes)) - (&pod), - (&(pod.n_nvfs_writes)) - (&pod), - (&(pod.n_posix_writes)) - (&pod), - (&(pod.n_unaligned_writes)) - (&pod), - (&(pod.n_dr_writes)) - (&pod), - (&(pod.n_writes_err)) - (&pod), - (&(pod.n_mmap)) - (&pod), - (&(pod.n_mmap_ok)) - (&pod), - (&(pod.n_mmap_err)) - (&pod), - (&(pod.n_mmap_free)) - (&pod), - (&(pod.reg_bytes)) - (&pod), - ], - 'itemsize': sizeof(CUfilePerGpuStats_t), - }) + cdef CUfilePerGpuStats_t *pod = _cyb_calloc(1, sizeof(CUfilePerGpuStats_t)) + if pod == NULL: + raise MemoryError("Error allocating CUfilePerGpuStats_t") + try: + return _numpy.dtype({ + 'names': ['uuid', 'read_bytes', 'read_bw_bytes_per_sec', 'read_utilization', 'read_duration_us', 'n_total_reads', 'n_p2p_reads', 'n_nvfs_reads', 'n_posix_reads', 'n_unaligned_reads', 'n_dr_reads', 'n_sparse_regions', 'n_inline_regions', 'n_reads_err', 'writes_bytes', 'write_bw_bytes_per_sec', 'write_utilization', 'write_duration_us', 'n_total_writes', 'n_p2p_writes', 'n_nvfs_writes', 'n_posix_writes', 'n_unaligned_writes', 'n_dr_writes', 'n_writes_err', 'n_mmap', 'n_mmap_ok', 'n_mmap_err', 'n_mmap_free', 'reg_bytes'], + 'formats': [(_numpy.int8, 16), _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.uuid)) - (pod), + (&(pod.read_bytes)) - (pod), + (&(pod.read_bw_bytes_per_sec)) - (pod), + (&(pod.read_utilization)) - (pod), + (&(pod.read_duration_us)) - (pod), + (&(pod.n_total_reads)) - (pod), + (&(pod.n_p2p_reads)) - (pod), + (&(pod.n_nvfs_reads)) - (pod), + (&(pod.n_posix_reads)) - (pod), + (&(pod.n_unaligned_reads)) - (pod), + (&(pod.n_dr_reads)) - (pod), + (&(pod.n_sparse_regions)) - (pod), + (&(pod.n_inline_regions)) - (pod), + (&(pod.n_reads_err)) - (pod), + (&(pod.writes_bytes)) - (pod), + (&(pod.write_bw_bytes_per_sec)) - (pod), + (&(pod.write_utilization)) - (pod), + (&(pod.write_duration_us)) - (pod), + (&(pod.n_total_writes)) - (pod), + (&(pod.n_p2p_writes)) - (pod), + (&(pod.n_nvfs_writes)) - (pod), + (&(pod.n_posix_writes)) - (pod), + (&(pod.n_unaligned_writes)) - (pod), + (&(pod.n_dr_writes)) - (pod), + (&(pod.n_writes_err)) - (pod), + (&(pod.n_mmap)) - (pod), + (&(pod.n_mmap_ok)) - (pod), + (&(pod.n_mmap_err)) - (pod), + (&(pod.n_mmap_free)) - (pod), + (&(pod.reg_bytes)) - (pod), + ], + 'itemsize': sizeof(CUfilePerGpuStats_t), + }) + finally: + _cyb_free(pod) per_gpu_stats_dtype = _get_per_gpu_stats_dtype_offsets() cdef object per_gpu_stats_dtype_record = _numpy.dtype((_numpy.record, per_gpu_stats_dtype)) @@ -1312,16 +1337,21 @@ cdef class PerGpuStats: cdef _get_io_vec_dtype_offsets(): - cdef CUfileIOVec_t pod - return _numpy.dtype({ - 'names': ['base_', 'len'], - 'formats': [_numpy.intp, _numpy.uint64], - 'offsets': [ - (&(pod.base)) - (&pod), - (&(pod.len)) - (&pod), - ], - 'itemsize': sizeof(CUfileIOVec_t), - }) + cdef CUfileIOVec_t *pod = _cyb_calloc(1, sizeof(CUfileIOVec_t)) + if pod == NULL: + raise MemoryError("Error allocating CUfileIOVec_t") + try: + return _numpy.dtype({ + 'names': ['base_', 'len'], + 'formats': [_numpy.intp, _numpy.uint64], + 'offsets': [ + (&(pod.base)) - (pod), + (&(pod.len)) - (pod), + ], + 'itemsize': sizeof(CUfileIOVec_t), + }) + finally: + _cyb_free(pod) io_vec_dtype = _get_io_vec_dtype_offsets() cdef object io_vec_dtype_record = _numpy.dtype((_numpy.record, io_vec_dtype)) @@ -1480,17 +1510,22 @@ cdef class IOVec: cdef _get_descr_dtype_offsets(): - cdef CUfileDescr_t pod - return _numpy.dtype({ - 'names': ['type', 'handle', 'fs_ops'], - 'formats': [_numpy.int32, _py_anon_pod1_dtype, _numpy.intp], - 'offsets': [ - (&(pod.type)) - (&pod), - (&(pod.handle)) - (&pod), - (&(pod.fs_ops)) - (&pod), - ], - 'itemsize': sizeof(CUfileDescr_t), - }) + cdef CUfileDescr_t *pod = _cyb_calloc(1, sizeof(CUfileDescr_t)) + if pod == NULL: + raise MemoryError("Error allocating CUfileDescr_t") + try: + return _numpy.dtype({ + 'names': ['type', 'handle', 'fs_ops'], + 'formats': [_numpy.int32, _py_anon_pod1_dtype, _numpy.intp], + 'offsets': [ + (&(pod.type)) - (pod), + (&(pod.handle)) - (pod), + (&(pod.fs_ops)) - (pod), + ], + 'itemsize': sizeof(CUfileDescr_t), + }) + finally: + _cyb_free(pod) descr_dtype = _get_descr_dtype_offsets() cdef object descr_dtype_record = _numpy.dtype((_numpy.record, descr_dtype)) @@ -1660,15 +1695,20 @@ cdef class Descr: cdef _get__py_anon_pod2_dtype_offsets(): - cdef cuda_bindings_cufile__anon_pod2 pod - return _numpy.dtype({ - 'names': ['batch'], - 'formats': [_py_anon_pod3_dtype], - 'offsets': [ - (&(pod.batch)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_cufile__anon_pod2), - }) + cdef cuda_bindings_cufile__anon_pod2 *pod = _cyb_calloc(1, sizeof(cuda_bindings_cufile__anon_pod2)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_cufile__anon_pod2") + try: + return _numpy.dtype({ + 'names': ['batch'], + 'formats': [_py_anon_pod3_dtype], + 'offsets': [ + (&(pod.batch)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_cufile__anon_pod2), + }) + finally: + _cyb_free(pod) _py_anon_pod2_dtype = _get__py_anon_pod2_dtype_offsets() @@ -1802,69 +1842,74 @@ cdef class _py_anon_pod2: cdef _get_stats_level1_dtype_offsets(): - cdef CUfileStatsLevel1_t pod - return _numpy.dtype({ - 'names': ['read_ops', 'write_ops', 'hdl_register_ops', 'hdl_deregister_ops', 'buf_register_ops', 'buf_deregister_ops', 'read_bytes', 'write_bytes', 'read_bw_bytes_per_sec', 'write_bw_bytes_per_sec', 'read_lat_avg_us', 'write_lat_avg_us', 'read_ops_per_sec', 'write_ops_per_sec', 'read_lat_sum_us', 'write_lat_sum_us', 'batch_submit_ops', 'batch_complete_ops', 'batch_setup_ops', 'batch_cancel_ops', 'batch_destroy_ops', 'batch_enqueued_ops', 'batch_posix_enqueued_ops', 'batch_processed_ops', 'batch_posix_processed_ops', 'batch_nvfs_submit_ops', 'batch_p2p_submit_ops', 'batch_aio_submit_ops', 'batch_iouring_submit_ops', 'batch_mixed_io_submit_ops', 'batch_total_submit_ops', 'batch_read_bytes', 'batch_write_bytes', 'batch_read_bw_bytes', 'batch_write_bw_bytes', 'batch_submit_lat_avg_us', 'batch_completion_lat_avg_us', 'batch_submit_ops_per_sec', 'batch_complete_ops_per_sec', 'batch_submit_lat_sum_us', 'batch_completion_lat_sum_us', 'last_batch_read_bytes', 'last_batch_write_bytes', 'readv_ops', 'writev_ops', 'readv_bytes', 'writev_bytes', 'readv_bw_bytes_per_sec', 'writev_bw_bytes_per_sec', 'readv_lat_avg_us', 'writev_lat_avg_us', 'readv_ops_per_sec', 'writev_ops_per_sec', 'readv_lat_sum_us', 'writev_lat_sum_us'], - 'formats': [op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, op_counter_dtype, op_counter_dtype, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.read_ops)) - (&pod), - (&(pod.write_ops)) - (&pod), - (&(pod.hdl_register_ops)) - (&pod), - (&(pod.hdl_deregister_ops)) - (&pod), - (&(pod.buf_register_ops)) - (&pod), - (&(pod.buf_deregister_ops)) - (&pod), - (&(pod.read_bytes)) - (&pod), - (&(pod.write_bytes)) - (&pod), - (&(pod.read_bw_bytes_per_sec)) - (&pod), - (&(pod.write_bw_bytes_per_sec)) - (&pod), - (&(pod.read_lat_avg_us)) - (&pod), - (&(pod.write_lat_avg_us)) - (&pod), - (&(pod.read_ops_per_sec)) - (&pod), - (&(pod.write_ops_per_sec)) - (&pod), - (&(pod.read_lat_sum_us)) - (&pod), - (&(pod.write_lat_sum_us)) - (&pod), - (&(pod.batch_submit_ops)) - (&pod), - (&(pod.batch_complete_ops)) - (&pod), - (&(pod.batch_setup_ops)) - (&pod), - (&(pod.batch_cancel_ops)) - (&pod), - (&(pod.batch_destroy_ops)) - (&pod), - (&(pod.batch_enqueued_ops)) - (&pod), - (&(pod.batch_posix_enqueued_ops)) - (&pod), - (&(pod.batch_processed_ops)) - (&pod), - (&(pod.batch_posix_processed_ops)) - (&pod), - (&(pod.batch_nvfs_submit_ops)) - (&pod), - (&(pod.batch_p2p_submit_ops)) - (&pod), - (&(pod.batch_aio_submit_ops)) - (&pod), - (&(pod.batch_iouring_submit_ops)) - (&pod), - (&(pod.batch_mixed_io_submit_ops)) - (&pod), - (&(pod.batch_total_submit_ops)) - (&pod), - (&(pod.batch_read_bytes)) - (&pod), - (&(pod.batch_write_bytes)) - (&pod), - (&(pod.batch_read_bw_bytes)) - (&pod), - (&(pod.batch_write_bw_bytes)) - (&pod), - (&(pod.batch_submit_lat_avg_us)) - (&pod), - (&(pod.batch_completion_lat_avg_us)) - (&pod), - (&(pod.batch_submit_ops_per_sec)) - (&pod), - (&(pod.batch_complete_ops_per_sec)) - (&pod), - (&(pod.batch_submit_lat_sum_us)) - (&pod), - (&(pod.batch_completion_lat_sum_us)) - (&pod), - (&(pod.last_batch_read_bytes)) - (&pod), - (&(pod.last_batch_write_bytes)) - (&pod), - (&(pod.readv_ops)) - (&pod), - (&(pod.writev_ops)) - (&pod), - (&(pod.readv_bytes)) - (&pod), - (&(pod.writev_bytes)) - (&pod), - (&(pod.readv_bw_bytes_per_sec)) - (&pod), - (&(pod.writev_bw_bytes_per_sec)) - (&pod), - (&(pod.readv_lat_avg_us)) - (&pod), - (&(pod.writev_lat_avg_us)) - (&pod), - (&(pod.readv_ops_per_sec)) - (&pod), - (&(pod.writev_ops_per_sec)) - (&pod), - (&(pod.readv_lat_sum_us)) - (&pod), - (&(pod.writev_lat_sum_us)) - (&pod), - ], - 'itemsize': sizeof(CUfileStatsLevel1_t), - }) + cdef CUfileStatsLevel1_t *pod = _cyb_calloc(1, sizeof(CUfileStatsLevel1_t)) + if pod == NULL: + raise MemoryError("Error allocating CUfileStatsLevel1_t") + try: + return _numpy.dtype({ + 'names': ['read_ops', 'write_ops', 'hdl_register_ops', 'hdl_deregister_ops', 'buf_register_ops', 'buf_deregister_ops', 'read_bytes', 'write_bytes', 'read_bw_bytes_per_sec', 'write_bw_bytes_per_sec', 'read_lat_avg_us', 'write_lat_avg_us', 'read_ops_per_sec', 'write_ops_per_sec', 'read_lat_sum_us', 'write_lat_sum_us', 'batch_submit_ops', 'batch_complete_ops', 'batch_setup_ops', 'batch_cancel_ops', 'batch_destroy_ops', 'batch_enqueued_ops', 'batch_posix_enqueued_ops', 'batch_processed_ops', 'batch_posix_processed_ops', 'batch_nvfs_submit_ops', 'batch_p2p_submit_ops', 'batch_aio_submit_ops', 'batch_iouring_submit_ops', 'batch_mixed_io_submit_ops', 'batch_total_submit_ops', 'batch_read_bytes', 'batch_write_bytes', 'batch_read_bw_bytes', 'batch_write_bw_bytes', 'batch_submit_lat_avg_us', 'batch_completion_lat_avg_us', 'batch_submit_ops_per_sec', 'batch_complete_ops_per_sec', 'batch_submit_lat_sum_us', 'batch_completion_lat_sum_us', 'last_batch_read_bytes', 'last_batch_write_bytes', 'readv_ops', 'writev_ops', 'readv_bytes', 'writev_bytes', 'readv_bw_bytes_per_sec', 'writev_bw_bytes_per_sec', 'readv_lat_avg_us', 'writev_lat_avg_us', 'readv_ops_per_sec', 'writev_ops_per_sec', 'readv_lat_sum_us', 'writev_lat_sum_us'], + 'formats': [op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, op_counter_dtype, op_counter_dtype, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.read_ops)) - (pod), + (&(pod.write_ops)) - (pod), + (&(pod.hdl_register_ops)) - (pod), + (&(pod.hdl_deregister_ops)) - (pod), + (&(pod.buf_register_ops)) - (pod), + (&(pod.buf_deregister_ops)) - (pod), + (&(pod.read_bytes)) - (pod), + (&(pod.write_bytes)) - (pod), + (&(pod.read_bw_bytes_per_sec)) - (pod), + (&(pod.write_bw_bytes_per_sec)) - (pod), + (&(pod.read_lat_avg_us)) - (pod), + (&(pod.write_lat_avg_us)) - (pod), + (&(pod.read_ops_per_sec)) - (pod), + (&(pod.write_ops_per_sec)) - (pod), + (&(pod.read_lat_sum_us)) - (pod), + (&(pod.write_lat_sum_us)) - (pod), + (&(pod.batch_submit_ops)) - (pod), + (&(pod.batch_complete_ops)) - (pod), + (&(pod.batch_setup_ops)) - (pod), + (&(pod.batch_cancel_ops)) - (pod), + (&(pod.batch_destroy_ops)) - (pod), + (&(pod.batch_enqueued_ops)) - (pod), + (&(pod.batch_posix_enqueued_ops)) - (pod), + (&(pod.batch_processed_ops)) - (pod), + (&(pod.batch_posix_processed_ops)) - (pod), + (&(pod.batch_nvfs_submit_ops)) - (pod), + (&(pod.batch_p2p_submit_ops)) - (pod), + (&(pod.batch_aio_submit_ops)) - (pod), + (&(pod.batch_iouring_submit_ops)) - (pod), + (&(pod.batch_mixed_io_submit_ops)) - (pod), + (&(pod.batch_total_submit_ops)) - (pod), + (&(pod.batch_read_bytes)) - (pod), + (&(pod.batch_write_bytes)) - (pod), + (&(pod.batch_read_bw_bytes)) - (pod), + (&(pod.batch_write_bw_bytes)) - (pod), + (&(pod.batch_submit_lat_avg_us)) - (pod), + (&(pod.batch_completion_lat_avg_us)) - (pod), + (&(pod.batch_submit_ops_per_sec)) - (pod), + (&(pod.batch_complete_ops_per_sec)) - (pod), + (&(pod.batch_submit_lat_sum_us)) - (pod), + (&(pod.batch_completion_lat_sum_us)) - (pod), + (&(pod.last_batch_read_bytes)) - (pod), + (&(pod.last_batch_write_bytes)) - (pod), + (&(pod.readv_ops)) - (pod), + (&(pod.writev_ops)) - (pod), + (&(pod.readv_bytes)) - (pod), + (&(pod.writev_bytes)) - (pod), + (&(pod.readv_bw_bytes_per_sec)) - (pod), + (&(pod.writev_bw_bytes_per_sec)) - (pod), + (&(pod.readv_lat_avg_us)) - (pod), + (&(pod.writev_lat_avg_us)) - (pod), + (&(pod.readv_ops_per_sec)) - (pod), + (&(pod.writev_ops_per_sec)) - (pod), + (&(pod.readv_lat_sum_us)) - (pod), + (&(pod.writev_lat_sum_us)) - (pod), + ], + 'itemsize': sizeof(CUfileStatsLevel1_t), + }) + finally: + _cyb_free(pod) stats_level1_dtype = _get_stats_level1_dtype_offsets() @@ -2702,19 +2747,24 @@ cdef class StatsLevel1: cdef _get_io_params_dtype_offsets(): - cdef CUfileIOParams_t pod - return _numpy.dtype({ - 'names': ['mode', 'u', 'fh', 'opcode', 'cookie'], - 'formats': [_numpy.int32, _py_anon_pod2_dtype, _numpy.intp, _numpy.int32, _numpy.intp], - 'offsets': [ - (&(pod.mode)) - (&pod), - (&(pod.u)) - (&pod), - (&(pod.fh)) - (&pod), - (&(pod.opcode)) - (&pod), - (&(pod.cookie)) - (&pod), - ], - 'itemsize': sizeof(CUfileIOParams_t), - }) + cdef CUfileIOParams_t *pod = _cyb_calloc(1, sizeof(CUfileIOParams_t)) + if pod == NULL: + raise MemoryError("Error allocating CUfileIOParams_t") + try: + return _numpy.dtype({ + 'names': ['mode', 'u', 'fh', 'opcode', 'cookie'], + 'formats': [_numpy.int32, _py_anon_pod2_dtype, _numpy.intp, _numpy.int32, _numpy.intp], + 'offsets': [ + (&(pod.mode)) - (pod), + (&(pod.u)) - (pod), + (&(pod.fh)) - (pod), + (&(pod.opcode)) - (pod), + (&(pod.cookie)) - (pod), + ], + 'itemsize': sizeof(CUfileIOParams_t), + }) + finally: + _cyb_free(pod) io_params_dtype = _get_io_params_dtype_offsets() cdef object io_params_dtype_record = _numpy.dtype((_numpy.record, io_params_dtype)) @@ -2910,17 +2960,22 @@ cdef class IOParams: cdef _get_stats_level2_dtype_offsets(): - cdef CUfileStatsLevel2_t pod - return _numpy.dtype({ - 'names': ['basic', 'read_size_kb_hist', 'write_size_kb_hist'], - 'formats': [stats_level1_dtype, (_numpy.uint64, 32), (_numpy.uint64, 32)], - 'offsets': [ - (&(pod.basic)) - (&pod), - (&(pod.read_size_kb_hist)) - (&pod), - (&(pod.write_size_kb_hist)) - (&pod), - ], - 'itemsize': sizeof(CUfileStatsLevel2_t), - }) + cdef CUfileStatsLevel2_t *pod = _cyb_calloc(1, sizeof(CUfileStatsLevel2_t)) + if pod == NULL: + raise MemoryError("Error allocating CUfileStatsLevel2_t") + try: + return _numpy.dtype({ + 'names': ['basic', 'read_size_kb_hist', 'write_size_kb_hist'], + 'formats': [stats_level1_dtype, (_numpy.uint64, 32), (_numpy.uint64, 32)], + 'offsets': [ + (&(pod.basic)) - (pod), + (&(pod.read_size_kb_hist)) - (pod), + (&(pod.write_size_kb_hist)) - (pod), + ], + 'itemsize': sizeof(CUfileStatsLevel2_t), + }) + finally: + _cyb_free(pod) stats_level2_dtype = _get_stats_level2_dtype_offsets() @@ -3088,17 +3143,22 @@ cdef class StatsLevel2: cdef _get_stats_level3_dtype_offsets(): - cdef CUfileStatsLevel3_t pod - return _numpy.dtype({ - 'names': ['detailed', 'num_gpus', 'per_gpu_stats'], - 'formats': [stats_level2_dtype, _numpy.uint32, (per_gpu_stats_dtype, 16)], - 'offsets': [ - (&(pod.detailed)) - (&pod), - (&(pod.num_gpus)) - (&pod), - (&(pod.per_gpu_stats)) - (&pod), - ], - 'itemsize': sizeof(CUfileStatsLevel3_t), - }) + cdef CUfileStatsLevel3_t *pod = _cyb_calloc(1, sizeof(CUfileStatsLevel3_t)) + if pod == NULL: + raise MemoryError("Error allocating CUfileStatsLevel3_t") + try: + return _numpy.dtype({ + 'names': ['detailed', 'num_gpus', 'per_gpu_stats'], + 'formats': [stats_level2_dtype, _numpy.uint32, (per_gpu_stats_dtype, 16)], + 'offsets': [ + (&(pod.detailed)) - (pod), + (&(pod.num_gpus)) - (pod), + (&(pod.per_gpu_stats)) - (pod), + ], + 'itemsize': sizeof(CUfileStatsLevel3_t), + }) + finally: + _cyb_free(pod) stats_level3_dtype = _get_stats_level3_dtype_offsets() diff --git a/cuda_bindings_13/cuda/bindings/driver.pyx b/cuda_bindings_13/cuda/bindings/driver.pyx index c734204eb095..4483ea499616 100644 --- a/cuda_bindings_13/cuda/bindings/driver.pyx +++ b/cuda_bindings_13/cuda/bindings/driver.pyx @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # This code was automatically generated with version 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=31ee6b840352a46ffa3e1fe1c52799ecf357ffc86e8ecfe2a6b73590006e86ea +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=a9861cd2390709aa722c402deb710e0b922d2ac7cf483a2208a997a00027a479 from typing import Any, Optional import cython import ctypes @@ -26277,7 +26277,7 @@ cdef class anon_union24: def pArray(self): return [CUarray(init_value=_pArray) for _pArray in self._pvt_ptr[0].frame.pArray] @pArray.setter - def pArray(self, pArray : list[CUarray]): + def pArray(self, pArray : list[CUarray | int]): if len(pArray) != 3: raise IndexError('not enough values found during array assignment, expected 3, got', len(pArray)) pArray = [int(_pArray) for _pArray in pArray] diff --git a/cuda_bindings_13/cuda/bindings/nvml.pyx b/cuda_bindings_13/cuda/bindings/nvml.pyx index 402428b5e6f3..54a3dddfbd03 100644 --- a/cuda_bindings_13/cuda/bindings/nvml.pyx +++ b/cuda_bindings_13/cuda/bindings/nvml.pyx @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated across versions from 12.9.1 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=41c2a2147ee34ceed11d38eb00faa851b5c1d5f10c215a0df65f85b22a41757c +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=82df971c247cf6ab3e4aed0e3fa58bcfc88508a419b3dcd9f099182445ca41cd # <<<< PREAMBLE CONTENT >>>> @@ -3102,23 +3102,28 @@ cpdef int check_status_size(int status) except 1 nogil: cdef _get_pci_info_ext_v1_dtype_offsets(): - cdef nvmlPciInfoExt_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'domain', 'bus', 'device_', 'pci_device_id', 'pci_sub_system_id', 'base_class', 'sub_class', 'bus_id'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.int8, 32)], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.domain)) - (&pod), - (&(pod.bus)) - (&pod), - (&(pod.device)) - (&pod), - (&(pod.pciDeviceId)) - (&pod), - (&(pod.pciSubSystemId)) - (&pod), - (&(pod.baseClass)) - (&pod), - (&(pod.subClass)) - (&pod), - (&(pod.busId)) - (&pod), - ], - 'itemsize': sizeof(nvmlPciInfoExt_v1_t), - }) + cdef nvmlPciInfoExt_v1_t *pod = _cyb_calloc(1, sizeof(nvmlPciInfoExt_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPciInfoExt_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'domain', 'bus', 'device_', 'pci_device_id', 'pci_sub_system_id', 'base_class', 'sub_class', 'bus_id'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.int8, 32)], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.domain)) - (pod), + (&(pod.bus)) - (pod), + (&(pod.device)) - (pod), + (&(pod.pciDeviceId)) - (pod), + (&(pod.pciSubSystemId)) - (pod), + (&(pod.baseClass)) - (pod), + (&(pod.subClass)) - (pod), + (&(pod.busId)) - (pod), + ], + 'itemsize': sizeof(nvmlPciInfoExt_v1_t), + }) + finally: + _cyb_free(pod) pci_info_ext_v1_dtype = _get_pci_info_ext_v1_dtype_offsets() @@ -3327,21 +3332,26 @@ cdef class PciInfoExt_v1: cdef _get_pci_info_dtype_offsets(): - cdef nvmlPciInfo_t pod - return _numpy.dtype({ - 'names': ['bus_id_legacy', 'domain', 'bus', 'device_', 'pci_device_id', 'pci_sub_system_id', 'bus_id'], - 'formats': [(_numpy.int8, 16), _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.int8, 32)], - 'offsets': [ - (&(pod.busIdLegacy)) - (&pod), - (&(pod.domain)) - (&pod), - (&(pod.bus)) - (&pod), - (&(pod.device)) - (&pod), - (&(pod.pciDeviceId)) - (&pod), - (&(pod.pciSubSystemId)) - (&pod), - (&(pod.busId)) - (&pod), - ], - 'itemsize': sizeof(nvmlPciInfo_t), - }) + cdef nvmlPciInfo_t *pod = _cyb_calloc(1, sizeof(nvmlPciInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPciInfo_t") + try: + return _numpy.dtype({ + 'names': ['bus_id_legacy', 'domain', 'bus', 'device_', 'pci_device_id', 'pci_sub_system_id', 'bus_id'], + 'formats': [(_numpy.int8, 16), _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.int8, 32)], + 'offsets': [ + (&(pod.busIdLegacy)) - (pod), + (&(pod.domain)) - (pod), + (&(pod.bus)) - (pod), + (&(pod.device)) - (pod), + (&(pod.pciDeviceId)) - (pod), + (&(pod.pciSubSystemId)) - (pod), + (&(pod.busId)) - (pod), + ], + 'itemsize': sizeof(nvmlPciInfo_t), + }) + finally: + _cyb_free(pod) pci_info_dtype = _get_pci_info_dtype_offsets() @@ -3544,16 +3554,21 @@ cdef class PciInfo: cdef _get_utilization_dtype_offsets(): - cdef nvmlUtilization_t pod - return _numpy.dtype({ - 'names': ['gpu', 'memory'], - 'formats': [_numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.gpu)) - (&pod), - (&(pod.memory)) - (&pod), - ], - 'itemsize': sizeof(nvmlUtilization_t), - }) + cdef nvmlUtilization_t *pod = _cyb_calloc(1, sizeof(nvmlUtilization_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlUtilization_t") + try: + return _numpy.dtype({ + 'names': ['gpu', 'memory'], + 'formats': [_numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.gpu)) - (pod), + (&(pod.memory)) - (pod), + ], + 'itemsize': sizeof(nvmlUtilization_t), + }) + finally: + _cyb_free(pod) utilization_dtype = _get_utilization_dtype_offsets() @@ -3681,17 +3696,22 @@ cdef class Utilization: cdef _get_memory_dtype_offsets(): - cdef nvmlMemory_t pod - return _numpy.dtype({ - 'names': ['total', 'free', 'used'], - 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.total)) - (&pod), - (&(pod.free)) - (&pod), - (&(pod.used)) - (&pod), - ], - 'itemsize': sizeof(nvmlMemory_t), - }) + cdef nvmlMemory_t *pod = _cyb_calloc(1, sizeof(nvmlMemory_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlMemory_t") + try: + return _numpy.dtype({ + 'names': ['total', 'free', 'used'], + 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.total)) - (pod), + (&(pod.free)) - (pod), + (&(pod.used)) - (pod), + ], + 'itemsize': sizeof(nvmlMemory_t), + }) + finally: + _cyb_free(pod) memory_dtype = _get_memory_dtype_offsets() @@ -3830,19 +3850,24 @@ cdef class Memory: cdef _get_memory_v2_dtype_offsets(): - cdef nvmlMemory_v2_t pod - return _numpy.dtype({ - 'names': ['version', 'total', 'reserved', 'free', 'used'], - 'formats': [_numpy.uint32, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.total)) - (&pod), - (&(pod.reserved)) - (&pod), - (&(pod.free)) - (&pod), - (&(pod.used)) - (&pod), - ], - 'itemsize': sizeof(nvmlMemory_v2_t), - }) + cdef nvmlMemory_v2_t *pod = _cyb_calloc(1, sizeof(nvmlMemory_v2_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlMemory_v2_t") + try: + return _numpy.dtype({ + 'names': ['version', 'total', 'reserved', 'free', 'used'], + 'formats': [_numpy.uint32, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.total)) - (pod), + (&(pod.reserved)) - (pod), + (&(pod.free)) - (pod), + (&(pod.used)) - (pod), + ], + 'itemsize': sizeof(nvmlMemory_v2_t), + }) + finally: + _cyb_free(pod) memory_v2_dtype = _get_memory_v2_dtype_offsets() @@ -4003,17 +4028,22 @@ cdef class Memory_v2: cdef _get_ba_r1memory_dtype_offsets(): - cdef nvmlBAR1Memory_t pod - return _numpy.dtype({ - 'names': ['bar1_total', 'bar1_free', 'bar1_used'], - 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.bar1Total)) - (&pod), - (&(pod.bar1Free)) - (&pod), - (&(pod.bar1Used)) - (&pod), - ], - 'itemsize': sizeof(nvmlBAR1Memory_t), - }) + cdef nvmlBAR1Memory_t *pod = _cyb_calloc(1, sizeof(nvmlBAR1Memory_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlBAR1Memory_t") + try: + return _numpy.dtype({ + 'names': ['bar1_total', 'bar1_free', 'bar1_used'], + 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.bar1Total)) - (pod), + (&(pod.bar1Free)) - (pod), + (&(pod.bar1Used)) - (pod), + ], + 'itemsize': sizeof(nvmlBAR1Memory_t), + }) + finally: + _cyb_free(pod) ba_r1memory_dtype = _get_ba_r1memory_dtype_offsets() @@ -4152,18 +4182,23 @@ cdef class BAR1Memory: cdef _get_process_info_dtype_offsets(): - cdef nvmlProcessInfo_t pod - return _numpy.dtype({ - 'names': ['pid', 'used_gpu_memory', 'gpu_instance_id', 'compute_instance_id'], - 'formats': [_numpy.uint32, _numpy.uint64, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.pid)) - (&pod), - (&(pod.usedGpuMemory)) - (&pod), - (&(pod.gpuInstanceId)) - (&pod), - (&(pod.computeInstanceId)) - (&pod), - ], - 'itemsize': sizeof(nvmlProcessInfo_t), - }) + cdef nvmlProcessInfo_t *pod = _cyb_calloc(1, sizeof(nvmlProcessInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlProcessInfo_t") + try: + return _numpy.dtype({ + 'names': ['pid', 'used_gpu_memory', 'gpu_instance_id', 'compute_instance_id'], + 'formats': [_numpy.uint32, _numpy.uint64, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.pid)) - (pod), + (&(pod.usedGpuMemory)) - (pod), + (&(pod.gpuInstanceId)) - (pod), + (&(pod.computeInstanceId)) - (pod), + ], + 'itemsize': sizeof(nvmlProcessInfo_t), + }) + finally: + _cyb_free(pod) process_info_dtype = _get_process_info_dtype_offsets() cdef object process_info_dtype_record = _numpy.dtype((_numpy.record, process_info_dtype)) @@ -4348,19 +4383,24 @@ cdef class ProcessInfo: cdef _get_process_detail_v1_dtype_offsets(): - cdef nvmlProcessDetail_v1_t pod - return _numpy.dtype({ - 'names': ['pid', 'used_gpu_memory', 'gpu_instance_id', 'compute_instance_id', 'used_gpu_cc_protected_memory'], - 'formats': [_numpy.uint32, _numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint64], - 'offsets': [ - (&(pod.pid)) - (&pod), - (&(pod.usedGpuMemory)) - (&pod), - (&(pod.gpuInstanceId)) - (&pod), - (&(pod.computeInstanceId)) - (&pod), - (&(pod.usedGpuCcProtectedMemory)) - (&pod), - ], - 'itemsize': sizeof(nvmlProcessDetail_v1_t), - }) + cdef nvmlProcessDetail_v1_t *pod = _cyb_calloc(1, sizeof(nvmlProcessDetail_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlProcessDetail_v1_t") + try: + return _numpy.dtype({ + 'names': ['pid', 'used_gpu_memory', 'gpu_instance_id', 'compute_instance_id', 'used_gpu_cc_protected_memory'], + 'formats': [_numpy.uint32, _numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint64], + 'offsets': [ + (&(pod.pid)) - (pod), + (&(pod.usedGpuMemory)) - (pod), + (&(pod.gpuInstanceId)) - (pod), + (&(pod.computeInstanceId)) - (pod), + (&(pod.usedGpuCcProtectedMemory)) - (pod), + ], + 'itemsize': sizeof(nvmlProcessDetail_v1_t), + }) + finally: + _cyb_free(pod) process_detail_v1_dtype = _get_process_detail_v1_dtype_offsets() cdef object process_detail_v1_dtype_record = _numpy.dtype((_numpy.record, process_detail_v1_dtype)) @@ -4558,23 +4598,28 @@ cdef class ProcessDetail_v1: cdef _get_device_attributes_dtype_offsets(): - cdef nvmlDeviceAttributes_t pod - return _numpy.dtype({ - 'names': ['multiprocessor_count', 'shared_copy_engine_count', 'shared_decoder_count', 'shared_encoder_count', 'shared_jpeg_count', 'shared_ofa_count', 'gpu_instance_slice_count', 'compute_instance_slice_count', 'memory_size_mb'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint64], - 'offsets': [ - (&(pod.multiprocessorCount)) - (&pod), - (&(pod.sharedCopyEngineCount)) - (&pod), - (&(pod.sharedDecoderCount)) - (&pod), - (&(pod.sharedEncoderCount)) - (&pod), - (&(pod.sharedJpegCount)) - (&pod), - (&(pod.sharedOfaCount)) - (&pod), - (&(pod.gpuInstanceSliceCount)) - (&pod), - (&(pod.computeInstanceSliceCount)) - (&pod), - (&(pod.memorySizeMB)) - (&pod), - ], - 'itemsize': sizeof(nvmlDeviceAttributes_t), - }) + cdef nvmlDeviceAttributes_t *pod = _cyb_calloc(1, sizeof(nvmlDeviceAttributes_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlDeviceAttributes_t") + try: + return _numpy.dtype({ + 'names': ['multiprocessor_count', 'shared_copy_engine_count', 'shared_decoder_count', 'shared_encoder_count', 'shared_jpeg_count', 'shared_ofa_count', 'gpu_instance_slice_count', 'compute_instance_slice_count', 'memory_size_mb'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint64], + 'offsets': [ + (&(pod.multiprocessorCount)) - (pod), + (&(pod.sharedCopyEngineCount)) - (pod), + (&(pod.sharedDecoderCount)) - (pod), + (&(pod.sharedEncoderCount)) - (pod), + (&(pod.sharedJpegCount)) - (pod), + (&(pod.sharedOfaCount)) - (pod), + (&(pod.gpuInstanceSliceCount)) - (pod), + (&(pod.computeInstanceSliceCount)) - (pod), + (&(pod.memorySizeMB)) - (pod), + ], + 'itemsize': sizeof(nvmlDeviceAttributes_t), + }) + finally: + _cyb_free(pod) device_attributes_dtype = _get_device_attributes_dtype_offsets() @@ -4779,15 +4824,20 @@ cdef class DeviceAttributes: cdef _get_c2c_mode_info_v1_dtype_offsets(): - cdef nvmlC2cModeInfo_v1_t pod - return _numpy.dtype({ - 'names': ['is_c2c_enabled'], - 'formats': [_numpy.uint32], - 'offsets': [ - (&(pod.isC2cEnabled)) - (&pod), - ], - 'itemsize': sizeof(nvmlC2cModeInfo_v1_t), - }) + cdef nvmlC2cModeInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlC2cModeInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlC2cModeInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['is_c2c_enabled'], + 'formats': [_numpy.uint32], + 'offsets': [ + (&(pod.isC2cEnabled)) - (pod), + ], + 'itemsize': sizeof(nvmlC2cModeInfo_v1_t), + }) + finally: + _cyb_free(pod) c2c_mode_info_v1_dtype = _get_c2c_mode_info_v1_dtype_offsets() @@ -4904,19 +4954,24 @@ cdef class C2cModeInfo_v1: cdef _get_row_remapper_histogram_values_dtype_offsets(): - cdef nvmlRowRemapperHistogramValues_t pod - return _numpy.dtype({ - 'names': ['max_', 'high', 'partial', 'low', 'none'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.max)) - (&pod), - (&(pod.high)) - (&pod), - (&(pod.partial)) - (&pod), - (&(pod.low)) - (&pod), - (&(pod.none)) - (&pod), - ], - 'itemsize': sizeof(nvmlRowRemapperHistogramValues_t), - }) + cdef nvmlRowRemapperHistogramValues_t *pod = _cyb_calloc(1, sizeof(nvmlRowRemapperHistogramValues_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlRowRemapperHistogramValues_t") + try: + return _numpy.dtype({ + 'names': ['max_', 'high', 'partial', 'low', 'none'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.max)) - (pod), + (&(pod.high)) - (pod), + (&(pod.partial)) - (pod), + (&(pod.low)) - (pod), + (&(pod.none)) - (pod), + ], + 'itemsize': sizeof(nvmlRowRemapperHistogramValues_t), + }) + finally: + _cyb_free(pod) row_remapper_histogram_values_dtype = _get_row_remapper_histogram_values_dtype_offsets() @@ -5077,16 +5132,21 @@ cdef class RowRemapperHistogramValues: cdef _get_bridge_chip_info_dtype_offsets(): - cdef nvmlBridgeChipInfo_t pod - return _numpy.dtype({ - 'names': ['type', 'fw_version'], - 'formats': [_numpy.int32, _numpy.uint32], - 'offsets': [ - (&(pod.type)) - (&pod), - (&(pod.fwVersion)) - (&pod), - ], - 'itemsize': sizeof(nvmlBridgeChipInfo_t), - }) + cdef nvmlBridgeChipInfo_t *pod = _cyb_calloc(1, sizeof(nvmlBridgeChipInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlBridgeChipInfo_t") + try: + return _numpy.dtype({ + 'names': ['type', 'fw_version'], + 'formats': [_numpy.int32, _numpy.uint32], + 'offsets': [ + (&(pod.type)) - (pod), + (&(pod.fwVersion)) - (pod), + ], + 'itemsize': sizeof(nvmlBridgeChipInfo_t), + }) + finally: + _cyb_free(pod) bridge_chip_info_dtype = _get_bridge_chip_info_dtype_offsets() cdef object bridge_chip_info_dtype_record = _numpy.dtype((_numpy.record, bridge_chip_info_dtype)) @@ -5245,21 +5305,26 @@ cdef class BridgeChipInfo: cdef _get_value_dtype_offsets(): - cdef nvmlValue_t pod - return _numpy.dtype({ - 'names': ['d_val', 'si_val', 'ui_val', 'ul_val', 'ull_val', 'sll_val', 'us_val'], - 'formats': [_numpy.float64, _numpy.int32, _numpy.uint32, _numpy.uint32, _numpy.uint64, _numpy.int64, _numpy.uint16], - 'offsets': [ - (&(pod.dVal)) - (&pod), - (&(pod.siVal)) - (&pod), - (&(pod.uiVal)) - (&pod), - (&(pod.ulVal)) - (&pod), - (&(pod.ullVal)) - (&pod), - (&(pod.sllVal)) - (&pod), - (&(pod.usVal)) - (&pod), - ], - 'itemsize': sizeof(nvmlValue_t), - }) + cdef nvmlValue_t *pod = _cyb_calloc(1, sizeof(nvmlValue_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlValue_t") + try: + return _numpy.dtype({ + 'names': ['d_val', 'si_val', 'ui_val', 'ul_val', 'ull_val', 'sll_val', 'us_val'], + 'formats': [_numpy.float64, _numpy.int32, _numpy.uint32, _numpy.uint32, _numpy.uint64, _numpy.int64, _numpy.uint16], + 'offsets': [ + (&(pod.dVal)) - (pod), + (&(pod.siVal)) - (pod), + (&(pod.uiVal)) - (pod), + (&(pod.ulVal)) - (pod), + (&(pod.ullVal)) - (pod), + (&(pod.sllVal)) - (pod), + (&(pod.usVal)) - (pod), + ], + 'itemsize': sizeof(nvmlValue_t), + }) + finally: + _cyb_free(pod) value_dtype = _get_value_dtype_offsets() @@ -5454,19 +5519,24 @@ cdef class Value: cdef _get__py_anon_pod0_dtype_offsets(): - cdef cuda_bindings_nvml__anon_pod0 pod - return _numpy.dtype({ - 'names': ['controller', 'default_min_temp', 'default_max_temp', 'current_temp', 'target'], - 'formats': [_numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32], - 'offsets': [ - (&(pod.controller)) - (&pod), - (&(pod.defaultMinTemp)) - (&pod), - (&(pod.defaultMaxTemp)) - (&pod), - (&(pod.currentTemp)) - (&pod), - (&(pod.target)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_nvml__anon_pod0), - }) + cdef cuda_bindings_nvml__anon_pod0 *pod = _cyb_calloc(1, sizeof(cuda_bindings_nvml__anon_pod0)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_nvml__anon_pod0") + try: + return _numpy.dtype({ + 'names': ['controller', 'default_min_temp', 'default_max_temp', 'current_temp', 'target'], + 'formats': [_numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32], + 'offsets': [ + (&(pod.controller)) - (pod), + (&(pod.defaultMinTemp)) - (pod), + (&(pod.defaultMaxTemp)) - (pod), + (&(pod.currentTemp)) - (pod), + (&(pod.target)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_nvml__anon_pod0), + }) + finally: + _cyb_free(pod) _py_anon_pod0_dtype = _get__py_anon_pod0_dtype_offsets() cdef object _py_anon_pod0_dtype_record = _numpy.dtype((_numpy.record, _py_anon_pod0_dtype)) @@ -5664,18 +5734,23 @@ cdef class _py_anon_pod0: cdef _get_cooler_info_v1_dtype_offsets(): - cdef nvmlCoolerInfo_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'index', 'signal_type', 'target'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.int32, _numpy.int32], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.index)) - (&pod), - (&(pod.signalType)) - (&pod), - (&(pod.target)) - (&pod), - ], - 'itemsize': sizeof(nvmlCoolerInfo_v1_t), - }) + cdef nvmlCoolerInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlCoolerInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlCoolerInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'index', 'signal_type', 'target'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.int32, _numpy.int32], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.index)) - (pod), + (&(pod.signalType)) - (pod), + (&(pod.target)) - (pod), + ], + 'itemsize': sizeof(nvmlCoolerInfo_v1_t), + }) + finally: + _cyb_free(pod) cooler_info_v1_dtype = _get_cooler_info_v1_dtype_offsets() @@ -5825,16 +5900,21 @@ cdef class CoolerInfo_v1: cdef _get_clk_mon_fault_info_dtype_offsets(): - cdef nvmlClkMonFaultInfo_t pod - return _numpy.dtype({ - 'names': ['clk_api_domain', 'clk_domain_fault_mask'], - 'formats': [_numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.clkApiDomain)) - (&pod), - (&(pod.clkDomainFaultMask)) - (&pod), - ], - 'itemsize': sizeof(nvmlClkMonFaultInfo_t), - }) + cdef nvmlClkMonFaultInfo_t *pod = _cyb_calloc(1, sizeof(nvmlClkMonFaultInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlClkMonFaultInfo_t") + try: + return _numpy.dtype({ + 'names': ['clk_api_domain', 'clk_domain_fault_mask'], + 'formats': [_numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.clkApiDomain)) - (pod), + (&(pod.clkDomainFaultMask)) - (pod), + ], + 'itemsize': sizeof(nvmlClkMonFaultInfo_t), + }) + finally: + _cyb_free(pod) clk_mon_fault_info_dtype = _get_clk_mon_fault_info_dtype_offsets() cdef object clk_mon_fault_info_dtype_record = _numpy.dtype((_numpy.record, clk_mon_fault_info_dtype)) @@ -5993,20 +6073,25 @@ cdef class ClkMonFaultInfo: cdef _get_clock_offset_v1_dtype_offsets(): - cdef nvmlClockOffset_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'type', 'pstate', 'clock_offset_m_hz', 'min_clock_offset_m_hz', 'max_clock_offset_m_hz'], - 'formats': [_numpy.uint32, _numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.type)) - (&pod), - (&(pod.pstate)) - (&pod), - (&(pod.clockOffsetMHz)) - (&pod), - (&(pod.minClockOffsetMHz)) - (&pod), - (&(pod.maxClockOffsetMHz)) - (&pod), - ], - 'itemsize': sizeof(nvmlClockOffset_v1_t), - }) + cdef nvmlClockOffset_v1_t *pod = _cyb_calloc(1, sizeof(nvmlClockOffset_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlClockOffset_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'type', 'pstate', 'clock_offset_m_hz', 'min_clock_offset_m_hz', 'max_clock_offset_m_hz'], + 'formats': [_numpy.uint32, _numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.type)) - (pod), + (&(pod.pstate)) - (pod), + (&(pod.clockOffsetMHz)) - (pod), + (&(pod.minClockOffsetMHz)) - (pod), + (&(pod.maxClockOffsetMHz)) - (pod), + ], + 'itemsize': sizeof(nvmlClockOffset_v1_t), + }) + finally: + _cyb_free(pod) clock_offset_v1_dtype = _get_clock_offset_v1_dtype_offsets() @@ -6178,20 +6263,25 @@ cdef class ClockOffset_v1: cdef _get_process_utilization_sample_dtype_offsets(): - cdef nvmlProcessUtilizationSample_t pod - return _numpy.dtype({ - 'names': ['pid', 'time_stamp', 'sm_util', 'mem_util', 'enc_util', 'dec_util'], - 'formats': [_numpy.uint32, _numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.pid)) - (&pod), - (&(pod.timeStamp)) - (&pod), - (&(pod.smUtil)) - (&pod), - (&(pod.memUtil)) - (&pod), - (&(pod.encUtil)) - (&pod), - (&(pod.decUtil)) - (&pod), - ], - 'itemsize': sizeof(nvmlProcessUtilizationSample_t), - }) + cdef nvmlProcessUtilizationSample_t *pod = _cyb_calloc(1, sizeof(nvmlProcessUtilizationSample_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlProcessUtilizationSample_t") + try: + return _numpy.dtype({ + 'names': ['pid', 'time_stamp', 'sm_util', 'mem_util', 'enc_util', 'dec_util'], + 'formats': [_numpy.uint32, _numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.pid)) - (pod), + (&(pod.timeStamp)) - (pod), + (&(pod.smUtil)) - (pod), + (&(pod.memUtil)) - (pod), + (&(pod.encUtil)) - (pod), + (&(pod.decUtil)) - (pod), + ], + 'itemsize': sizeof(nvmlProcessUtilizationSample_t), + }) + finally: + _cyb_free(pod) process_utilization_sample_dtype = _get_process_utilization_sample_dtype_offsets() cdef object process_utilization_sample_dtype_record = _numpy.dtype((_numpy.record, process_utilization_sample_dtype)) @@ -6402,22 +6492,27 @@ cdef class ProcessUtilizationSample: cdef _get_process_utilization_info_v1_dtype_offsets(): - cdef nvmlProcessUtilizationInfo_v1_t pod - return _numpy.dtype({ - 'names': ['time_stamp', 'pid', 'sm_util', 'mem_util', 'enc_util', 'dec_util', 'jpg_util', 'ofa_util'], - 'formats': [_numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.timeStamp)) - (&pod), - (&(pod.pid)) - (&pod), - (&(pod.smUtil)) - (&pod), - (&(pod.memUtil)) - (&pod), - (&(pod.encUtil)) - (&pod), - (&(pod.decUtil)) - (&pod), - (&(pod.jpgUtil)) - (&pod), - (&(pod.ofaUtil)) - (&pod), - ], - 'itemsize': sizeof(nvmlProcessUtilizationInfo_v1_t), - }) + cdef nvmlProcessUtilizationInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlProcessUtilizationInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlProcessUtilizationInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['time_stamp', 'pid', 'sm_util', 'mem_util', 'enc_util', 'dec_util', 'jpg_util', 'ofa_util'], + 'formats': [_numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.timeStamp)) - (pod), + (&(pod.pid)) - (pod), + (&(pod.smUtil)) - (pod), + (&(pod.memUtil)) - (pod), + (&(pod.encUtil)) - (pod), + (&(pod.decUtil)) - (pod), + (&(pod.jpgUtil)) - (pod), + (&(pod.ofaUtil)) - (pod), + ], + 'itemsize': sizeof(nvmlProcessUtilizationInfo_v1_t), + }) + finally: + _cyb_free(pod) process_utilization_info_v1_dtype = _get_process_utilization_info_v1_dtype_offsets() cdef object process_utilization_info_v1_dtype_record = _numpy.dtype((_numpy.record, process_utilization_info_v1_dtype)) @@ -6654,27 +6749,32 @@ cdef class ProcessUtilizationInfo_v1: cdef _get_ecc_sram_error_status_v1_dtype_offsets(): - cdef nvmlEccSramErrorStatus_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'aggregate_unc_parity', 'aggregate_unc_sec_ded', 'aggregate_cor', 'volatile_unc_parity', 'volatile_unc_sec_ded', 'volatile_cor', 'aggregate_unc_bucket_l2', 'aggregate_unc_bucket_sm', 'aggregate_unc_bucket_pcie', 'aggregate_unc_bucket_mcu', 'aggregate_unc_bucket_other', 'b_threshold_exceeded'], - 'formats': [_numpy.uint32, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint32], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.aggregateUncParity)) - (&pod), - (&(pod.aggregateUncSecDed)) - (&pod), - (&(pod.aggregateCor)) - (&pod), - (&(pod.volatileUncParity)) - (&pod), - (&(pod.volatileUncSecDed)) - (&pod), - (&(pod.volatileCor)) - (&pod), - (&(pod.aggregateUncBucketL2)) - (&pod), - (&(pod.aggregateUncBucketSm)) - (&pod), - (&(pod.aggregateUncBucketPcie)) - (&pod), - (&(pod.aggregateUncBucketMcu)) - (&pod), - (&(pod.aggregateUncBucketOther)) - (&pod), - (&(pod.bThresholdExceeded)) - (&pod), - ], - 'itemsize': sizeof(nvmlEccSramErrorStatus_v1_t), - }) + cdef nvmlEccSramErrorStatus_v1_t *pod = _cyb_calloc(1, sizeof(nvmlEccSramErrorStatus_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlEccSramErrorStatus_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'aggregate_unc_parity', 'aggregate_unc_sec_ded', 'aggregate_cor', 'volatile_unc_parity', 'volatile_unc_sec_ded', 'volatile_cor', 'aggregate_unc_bucket_l2', 'aggregate_unc_bucket_sm', 'aggregate_unc_bucket_pcie', 'aggregate_unc_bucket_mcu', 'aggregate_unc_bucket_other', 'b_threshold_exceeded'], + 'formats': [_numpy.uint32, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint32], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.aggregateUncParity)) - (pod), + (&(pod.aggregateUncSecDed)) - (pod), + (&(pod.aggregateCor)) - (pod), + (&(pod.volatileUncParity)) - (pod), + (&(pod.volatileUncSecDed)) - (pod), + (&(pod.volatileCor)) - (pod), + (&(pod.aggregateUncBucketL2)) - (pod), + (&(pod.aggregateUncBucketSm)) - (pod), + (&(pod.aggregateUncBucketPcie)) - (pod), + (&(pod.aggregateUncBucketMcu)) - (pod), + (&(pod.aggregateUncBucketOther)) - (pod), + (&(pod.bThresholdExceeded)) - (pod), + ], + 'itemsize': sizeof(nvmlEccSramErrorStatus_v1_t), + }) + finally: + _cyb_free(pod) ecc_sram_error_status_v1_dtype = _get_ecc_sram_error_status_v1_dtype_offsets() @@ -6923,22 +7023,27 @@ cdef class EccSramErrorStatus_v1: cdef _get_platform_info_v1_dtype_offsets(): - cdef nvmlPlatformInfo_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'ib_guid', 'rack_guid', 'chassis_physical_slot_number', 'compute_slot_index', 'node_index', 'peer_type', 'module_id'], - 'formats': [_numpy.uint32, (_numpy.uint8, 16), (_numpy.uint8, 16), _numpy.uint8, _numpy.uint8, _numpy.uint8, _numpy.uint8, _numpy.uint8], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.ibGuid)) - (&pod), - (&(pod.rackGuid)) - (&pod), - (&(pod.chassisPhysicalSlotNumber)) - (&pod), - (&(pod.computeSlotIndex)) - (&pod), - (&(pod.nodeIndex)) - (&pod), - (&(pod.peerType)) - (&pod), - (&(pod.moduleId)) - (&pod), - ], - 'itemsize': sizeof(nvmlPlatformInfo_v1_t), - }) + cdef nvmlPlatformInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlPlatformInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPlatformInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'ib_guid', 'rack_guid', 'chassis_physical_slot_number', 'compute_slot_index', 'node_index', 'peer_type', 'module_id'], + 'formats': [_numpy.uint32, (_numpy.uint8, 16), (_numpy.uint8, 16), _numpy.uint8, _numpy.uint8, _numpy.uint8, _numpy.uint8, _numpy.uint8], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.ibGuid)) - (pod), + (&(pod.rackGuid)) - (pod), + (&(pod.chassisPhysicalSlotNumber)) - (pod), + (&(pod.computeSlotIndex)) - (pod), + (&(pod.nodeIndex)) - (pod), + (&(pod.peerType)) - (pod), + (&(pod.moduleId)) - (pod), + ], + 'itemsize': sizeof(nvmlPlatformInfo_v1_t), + }) + finally: + _cyb_free(pod) platform_info_v1_dtype = _get_platform_info_v1_dtype_offsets() @@ -7144,22 +7249,27 @@ cdef class PlatformInfo_v1: cdef _get_platform_info_v2_dtype_offsets(): - cdef nvmlPlatformInfo_v2_t pod - return _numpy.dtype({ - 'names': ['version', 'ib_guid', 'chassis_serial_number', 'slot_number', 'tray_index', 'host_id', 'peer_type', 'module_id'], - 'formats': [_numpy.uint32, (_numpy.uint8, 16), (_numpy.uint8, 16), _numpy.uint8, _numpy.uint8, _numpy.uint8, _numpy.uint8, _numpy.uint8], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.ibGuid)) - (&pod), - (&(pod.chassisSerialNumber)) - (&pod), - (&(pod.slotNumber)) - (&pod), - (&(pod.trayIndex)) - (&pod), - (&(pod.hostId)) - (&pod), - (&(pod.peerType)) - (&pod), - (&(pod.moduleId)) - (&pod), - ], - 'itemsize': sizeof(nvmlPlatformInfo_v2_t), - }) + cdef nvmlPlatformInfo_v2_t *pod = _cyb_calloc(1, sizeof(nvmlPlatformInfo_v2_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPlatformInfo_v2_t") + try: + return _numpy.dtype({ + 'names': ['version', 'ib_guid', 'chassis_serial_number', 'slot_number', 'tray_index', 'host_id', 'peer_type', 'module_id'], + 'formats': [_numpy.uint32, (_numpy.uint8, 16), (_numpy.uint8, 16), _numpy.uint8, _numpy.uint8, _numpy.uint8, _numpy.uint8, _numpy.uint8], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.ibGuid)) - (pod), + (&(pod.chassisSerialNumber)) - (pod), + (&(pod.slotNumber)) - (pod), + (&(pod.trayIndex)) - (pod), + (&(pod.hostId)) - (pod), + (&(pod.peerType)) - (pod), + (&(pod.moduleId)) - (pod), + ], + 'itemsize': sizeof(nvmlPlatformInfo_v2_t), + }) + finally: + _cyb_free(pod) platform_info_v2_dtype = _get_platform_info_v2_dtype_offsets() @@ -7365,18 +7475,23 @@ cdef class PlatformInfo_v2: cdef _get__py_anon_pod1_dtype_offsets(): - cdef cuda_bindings_nvml__anon_pod1 pod - return _numpy.dtype({ - 'names': ['b_is_present', 'percentage', 'inc_threshold', 'dec_threshold'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.bIsPresent)) - (&pod), - (&(pod.percentage)) - (&pod), - (&(pod.incThreshold)) - (&pod), - (&(pod.decThreshold)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_nvml__anon_pod1), - }) + cdef cuda_bindings_nvml__anon_pod1 *pod = _cyb_calloc(1, sizeof(cuda_bindings_nvml__anon_pod1)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_nvml__anon_pod1") + try: + return _numpy.dtype({ + 'names': ['b_is_present', 'percentage', 'inc_threshold', 'dec_threshold'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.bIsPresent)) - (pod), + (&(pod.percentage)) - (pod), + (&(pod.incThreshold)) - (pod), + (&(pod.decThreshold)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_nvml__anon_pod1), + }) + finally: + _cyb_free(pod) _py_anon_pod1_dtype = _get__py_anon_pod1_dtype_offsets() cdef object _py_anon_pod1_dtype_record = _numpy.dtype((_numpy.record, _py_anon_pod1_dtype)) @@ -7561,19 +7676,24 @@ cdef class _py_anon_pod1: cdef _get_vgpu_placement_list_v2_dtype_offsets(): - cdef nvmlVgpuPlacementList_v2_t pod - return _numpy.dtype({ - 'names': ['version', 'placement_size', 'count', 'placement_ids', 'mode'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.intp, _numpy.uint32], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.placementSize)) - (&pod), - (&(pod.count)) - (&pod), - (&(pod.placementIds)) - (&pod), - (&(pod.mode)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuPlacementList_v2_t), - }) + cdef nvmlVgpuPlacementList_v2_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuPlacementList_v2_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuPlacementList_v2_t") + try: + return _numpy.dtype({ + 'names': ['version', 'placement_size', 'count', 'placement_ids', 'mode'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.intp, _numpy.uint32], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.placementSize)) - (pod), + (&(pod.count)) - (pod), + (&(pod.placementIds)) - (pod), + (&(pod.mode)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuPlacementList_v2_t), + }) + finally: + _cyb_free(pod) vgpu_placement_list_v2_dtype = _get_vgpu_placement_list_v2_dtype_offsets() @@ -7734,16 +7854,21 @@ cdef class VgpuPlacementList_v2: cdef _get_vgpu_type_bar1info_v1_dtype_offsets(): - cdef nvmlVgpuTypeBar1Info_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'bar1size'], - 'formats': [_numpy.uint32, _numpy.uint64], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.bar1Size)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuTypeBar1Info_v1_t), - }) + cdef nvmlVgpuTypeBar1Info_v1_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuTypeBar1Info_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuTypeBar1Info_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'bar1size'], + 'formats': [_numpy.uint32, _numpy.uint64], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.bar1Size)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuTypeBar1Info_v1_t), + }) + finally: + _cyb_free(pod) vgpu_type_bar1info_v1_dtype = _get_vgpu_type_bar1info_v1_dtype_offsets() @@ -7871,22 +7996,27 @@ cdef class VgpuTypeBar1Info_v1: cdef _get_vgpu_process_utilization_sample_dtype_offsets(): - cdef nvmlVgpuProcessUtilizationSample_t pod - return _numpy.dtype({ - 'names': ['vgpu_instance', 'pid', 'process_name', 'time_stamp', 'sm_util', 'mem_util', 'enc_util', 'dec_util'], - 'formats': [_numpy.uint32, _numpy.uint32, (_numpy.int8, 64), _numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.vgpuInstance)) - (&pod), - (&(pod.pid)) - (&pod), - (&(pod.processName)) - (&pod), - (&(pod.timeStamp)) - (&pod), - (&(pod.smUtil)) - (&pod), - (&(pod.memUtil)) - (&pod), - (&(pod.encUtil)) - (&pod), - (&(pod.decUtil)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuProcessUtilizationSample_t), - }) + cdef nvmlVgpuProcessUtilizationSample_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuProcessUtilizationSample_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuProcessUtilizationSample_t") + try: + return _numpy.dtype({ + 'names': ['vgpu_instance', 'pid', 'process_name', 'time_stamp', 'sm_util', 'mem_util', 'enc_util', 'dec_util'], + 'formats': [_numpy.uint32, _numpy.uint32, (_numpy.int8, 64), _numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.vgpuInstance)) - (pod), + (&(pod.pid)) - (pod), + (&(pod.processName)) - (pod), + (&(pod.timeStamp)) - (pod), + (&(pod.smUtil)) - (pod), + (&(pod.memUtil)) - (pod), + (&(pod.encUtil)) - (pod), + (&(pod.decUtil)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuProcessUtilizationSample_t), + }) + finally: + _cyb_free(pod) vgpu_process_utilization_sample_dtype = _get_vgpu_process_utilization_sample_dtype_offsets() cdef object vgpu_process_utilization_sample_dtype_record = _numpy.dtype((_numpy.record, vgpu_process_utilization_sample_dtype)) @@ -8121,24 +8251,29 @@ cdef class VgpuProcessUtilizationSample: cdef _get_vgpu_process_utilization_info_v1_dtype_offsets(): - cdef nvmlVgpuProcessUtilizationInfo_v1_t pod - return _numpy.dtype({ - 'names': ['process_name', 'time_stamp', 'vgpu_instance', 'pid', 'sm_util', 'mem_util', 'enc_util', 'dec_util', 'jpg_util', 'ofa_util'], - 'formats': [(_numpy.int8, 64), _numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.processName)) - (&pod), - (&(pod.timeStamp)) - (&pod), - (&(pod.vgpuInstance)) - (&pod), - (&(pod.pid)) - (&pod), - (&(pod.smUtil)) - (&pod), - (&(pod.memUtil)) - (&pod), - (&(pod.encUtil)) - (&pod), - (&(pod.decUtil)) - (&pod), - (&(pod.jpgUtil)) - (&pod), - (&(pod.ofaUtil)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuProcessUtilizationInfo_v1_t), - }) + cdef nvmlVgpuProcessUtilizationInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuProcessUtilizationInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuProcessUtilizationInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['process_name', 'time_stamp', 'vgpu_instance', 'pid', 'sm_util', 'mem_util', 'enc_util', 'dec_util', 'jpg_util', 'ofa_util'], + 'formats': [(_numpy.int8, 64), _numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.processName)) - (pod), + (&(pod.timeStamp)) - (pod), + (&(pod.vgpuInstance)) - (pod), + (&(pod.pid)) - (pod), + (&(pod.smUtil)) - (pod), + (&(pod.memUtil)) - (pod), + (&(pod.encUtil)) - (pod), + (&(pod.decUtil)) - (pod), + (&(pod.jpgUtil)) - (pod), + (&(pod.ofaUtil)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuProcessUtilizationInfo_v1_t), + }) + finally: + _cyb_free(pod) vgpu_process_utilization_info_v1_dtype = _get_vgpu_process_utilization_info_v1_dtype_offsets() cdef object vgpu_process_utilization_info_v1_dtype_record = _numpy.dtype((_numpy.record, vgpu_process_utilization_info_v1_dtype)) @@ -8399,16 +8534,21 @@ cdef class VgpuProcessUtilizationInfo_v1: cdef _get__py_anon_pod2_dtype_offsets(): - cdef cuda_bindings_nvml__anon_pod2 pod - return _numpy.dtype({ - 'names': ['avg_factor', 'timeslice'], - 'formats': [_numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.avgFactor)) - (&pod), - (&(pod.timeslice)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_nvml__anon_pod2), - }) + cdef cuda_bindings_nvml__anon_pod2 *pod = _cyb_calloc(1, sizeof(cuda_bindings_nvml__anon_pod2)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_nvml__anon_pod2") + try: + return _numpy.dtype({ + 'names': ['avg_factor', 'timeslice'], + 'formats': [_numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.avgFactor)) - (pod), + (&(pod.timeslice)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_nvml__anon_pod2), + }) + finally: + _cyb_free(pod) _py_anon_pod2_dtype = _get__py_anon_pod2_dtype_offsets() @@ -8548,15 +8688,20 @@ cdef class _py_anon_pod2: cdef _get__py_anon_pod3_dtype_offsets(): - cdef cuda_bindings_nvml__anon_pod3 pod - return _numpy.dtype({ - 'names': ['timeslice'], - 'formats': [_numpy.uint32], - 'offsets': [ - (&(pod.timeslice)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_nvml__anon_pod3), - }) + cdef cuda_bindings_nvml__anon_pod3 *pod = _cyb_calloc(1, sizeof(cuda_bindings_nvml__anon_pod3)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_nvml__anon_pod3") + try: + return _numpy.dtype({ + 'names': ['timeslice'], + 'formats': [_numpy.uint32], + 'offsets': [ + (&(pod.timeslice)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_nvml__anon_pod3), + }) + finally: + _cyb_free(pod) _py_anon_pod3_dtype = _get__py_anon_pod3_dtype_offsets() @@ -8685,20 +8830,25 @@ cdef class _py_anon_pod3: cdef _get_vgpu_scheduler_log_entry_dtype_offsets(): - cdef nvmlVgpuSchedulerLogEntry_t pod - return _numpy.dtype({ - 'names': ['timestamp', 'time_run_total', 'time_run', 'sw_runlist_id', 'target_time_slice', 'cumulative_preemption_time'], - 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint32, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.timestamp)) - (&pod), - (&(pod.timeRunTotal)) - (&pod), - (&(pod.timeRun)) - (&pod), - (&(pod.swRunlistId)) - (&pod), - (&(pod.targetTimeSlice)) - (&pod), - (&(pod.cumulativePreemptionTime)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuSchedulerLogEntry_t), - }) + cdef nvmlVgpuSchedulerLogEntry_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerLogEntry_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuSchedulerLogEntry_t") + try: + return _numpy.dtype({ + 'names': ['timestamp', 'time_run_total', 'time_run', 'sw_runlist_id', 'target_time_slice', 'cumulative_preemption_time'], + 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint32, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.timestamp)) - (pod), + (&(pod.timeRunTotal)) - (pod), + (&(pod.timeRun)) - (pod), + (&(pod.swRunlistId)) - (pod), + (&(pod.targetTimeSlice)) - (pod), + (&(pod.cumulativePreemptionTime)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuSchedulerLogEntry_t), + }) + finally: + _cyb_free(pod) vgpu_scheduler_log_entry_dtype = _get_vgpu_scheduler_log_entry_dtype_offsets() cdef object vgpu_scheduler_log_entry_dtype_record = _numpy.dtype((_numpy.record, vgpu_scheduler_log_entry_dtype)) @@ -8909,16 +9059,21 @@ cdef class VgpuSchedulerLogEntry: cdef _get__py_anon_pod4_dtype_offsets(): - cdef cuda_bindings_nvml__anon_pod4 pod - return _numpy.dtype({ - 'names': ['avg_factor', 'frequency'], - 'formats': [_numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.avgFactor)) - (&pod), - (&(pod.frequency)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_nvml__anon_pod4), - }) + cdef cuda_bindings_nvml__anon_pod4 *pod = _cyb_calloc(1, sizeof(cuda_bindings_nvml__anon_pod4)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_nvml__anon_pod4") + try: + return _numpy.dtype({ + 'names': ['avg_factor', 'frequency'], + 'formats': [_numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.avgFactor)) - (pod), + (&(pod.frequency)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_nvml__anon_pod4), + }) + finally: + _cyb_free(pod) _py_anon_pod4_dtype = _get__py_anon_pod4_dtype_offsets() @@ -9058,15 +9213,20 @@ cdef class _py_anon_pod4: cdef _get__py_anon_pod5_dtype_offsets(): - cdef cuda_bindings_nvml__anon_pod5 pod - return _numpy.dtype({ - 'names': ['timeslice'], - 'formats': [_numpy.uint32], - 'offsets': [ - (&(pod.timeslice)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_nvml__anon_pod5), - }) + cdef cuda_bindings_nvml__anon_pod5 *pod = _cyb_calloc(1, sizeof(cuda_bindings_nvml__anon_pod5)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_nvml__anon_pod5") + try: + return _numpy.dtype({ + 'names': ['timeslice'], + 'formats': [_numpy.uint32], + 'offsets': [ + (&(pod.timeslice)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_nvml__anon_pod5), + }) + finally: + _cyb_free(pod) _py_anon_pod5_dtype = _get__py_anon_pod5_dtype_offsets() @@ -9195,22 +9355,27 @@ cdef class _py_anon_pod5: cdef _get_vgpu_scheduler_capabilities_dtype_offsets(): - cdef nvmlVgpuSchedulerCapabilities_t pod - return _numpy.dtype({ - 'names': ['supported_schedulers', 'max_timeslice', 'min_timeslice', 'is_arr_mode_supported', 'max_frequency_for_arr', 'min_frequency_for_arr', 'max_avg_factor_for_arr', 'min_avg_factor_for_arr'], - 'formats': [(_numpy.uint32, 3), _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.supportedSchedulers)) - (&pod), - (&(pod.maxTimeslice)) - (&pod), - (&(pod.minTimeslice)) - (&pod), - (&(pod.isArrModeSupported)) - (&pod), - (&(pod.maxFrequencyForARR)) - (&pod), - (&(pod.minFrequencyForARR)) - (&pod), - (&(pod.maxAvgFactorForARR)) - (&pod), - (&(pod.minAvgFactorForARR)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuSchedulerCapabilities_t), - }) + cdef nvmlVgpuSchedulerCapabilities_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerCapabilities_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuSchedulerCapabilities_t") + try: + return _numpy.dtype({ + 'names': ['supported_schedulers', 'max_timeslice', 'min_timeslice', 'is_arr_mode_supported', 'max_frequency_for_arr', 'min_frequency_for_arr', 'max_avg_factor_for_arr', 'min_avg_factor_for_arr'], + 'formats': [(_numpy.uint32, 3), _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.supportedSchedulers)) - (pod), + (&(pod.maxTimeslice)) - (pod), + (&(pod.minTimeslice)) - (pod), + (&(pod.isArrModeSupported)) - (pod), + (&(pod.maxFrequencyForARR)) - (pod), + (&(pod.minFrequencyForARR)) - (pod), + (&(pod.maxAvgFactorForARR)) - (pod), + (&(pod.minAvgFactorForARR)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuSchedulerCapabilities_t), + }) + finally: + _cyb_free(pod) vgpu_scheduler_capabilities_dtype = _get_vgpu_scheduler_capabilities_dtype_offsets() @@ -9410,21 +9575,26 @@ cdef class VgpuSchedulerCapabilities: cdef _get_vgpu_license_expiry_dtype_offsets(): - cdef nvmlVgpuLicenseExpiry_t pod - return _numpy.dtype({ - 'names': ['year', 'month', 'day', 'hour', 'min_', 'sec', 'status'], - 'formats': [_numpy.uint32, _numpy.uint16, _numpy.uint16, _numpy.uint16, _numpy.uint16, _numpy.uint16, _numpy.uint8], - 'offsets': [ - (&(pod.year)) - (&pod), - (&(pod.month)) - (&pod), - (&(pod.day)) - (&pod), - (&(pod.hour)) - (&pod), - (&(pod.min)) - (&pod), - (&(pod.sec)) - (&pod), - (&(pod.status)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuLicenseExpiry_t), - }) + cdef nvmlVgpuLicenseExpiry_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuLicenseExpiry_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuLicenseExpiry_t") + try: + return _numpy.dtype({ + 'names': ['year', 'month', 'day', 'hour', 'min_', 'sec', 'status'], + 'formats': [_numpy.uint32, _numpy.uint16, _numpy.uint16, _numpy.uint16, _numpy.uint16, _numpy.uint16, _numpy.uint8], + 'offsets': [ + (&(pod.year)) - (pod), + (&(pod.month)) - (pod), + (&(pod.day)) - (pod), + (&(pod.hour)) - (pod), + (&(pod.min)) - (pod), + (&(pod.sec)) - (pod), + (&(pod.status)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuLicenseExpiry_t), + }) + finally: + _cyb_free(pod) vgpu_license_expiry_dtype = _get_vgpu_license_expiry_dtype_offsets() @@ -9619,21 +9789,26 @@ cdef class VgpuLicenseExpiry: cdef _get_grid_license_expiry_dtype_offsets(): - cdef nvmlGridLicenseExpiry_t pod - return _numpy.dtype({ - 'names': ['year', 'month', 'day', 'hour', 'min_', 'sec', 'status'], - 'formats': [_numpy.uint32, _numpy.uint16, _numpy.uint16, _numpy.uint16, _numpy.uint16, _numpy.uint16, _numpy.uint8], - 'offsets': [ - (&(pod.year)) - (&pod), - (&(pod.month)) - (&pod), - (&(pod.day)) - (&pod), - (&(pod.hour)) - (&pod), - (&(pod.min)) - (&pod), - (&(pod.sec)) - (&pod), - (&(pod.status)) - (&pod), - ], - 'itemsize': sizeof(nvmlGridLicenseExpiry_t), - }) + cdef nvmlGridLicenseExpiry_t *pod = _cyb_calloc(1, sizeof(nvmlGridLicenseExpiry_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGridLicenseExpiry_t") + try: + return _numpy.dtype({ + 'names': ['year', 'month', 'day', 'hour', 'min_', 'sec', 'status'], + 'formats': [_numpy.uint32, _numpy.uint16, _numpy.uint16, _numpy.uint16, _numpy.uint16, _numpy.uint16, _numpy.uint8], + 'offsets': [ + (&(pod.year)) - (pod), + (&(pod.month)) - (pod), + (&(pod.day)) - (pod), + (&(pod.hour)) - (pod), + (&(pod.min)) - (pod), + (&(pod.sec)) - (pod), + (&(pod.status)) - (pod), + ], + 'itemsize': sizeof(nvmlGridLicenseExpiry_t), + }) + finally: + _cyb_free(pod) grid_license_expiry_dtype = _get_grid_license_expiry_dtype_offsets() @@ -9828,17 +10003,22 @@ cdef class GridLicenseExpiry: cdef _get_vgpu_type_id_info_v1_dtype_offsets(): - cdef nvmlVgpuTypeIdInfo_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'vgpu_count', 'vgpu_type_ids'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.intp], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.vgpuCount)) - (&pod), - (&(pod.vgpuTypeIds)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuTypeIdInfo_v1_t), - }) + cdef nvmlVgpuTypeIdInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuTypeIdInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuTypeIdInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'vgpu_count', 'vgpu_type_ids'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.intp], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.vgpuCount)) - (pod), + (&(pod.vgpuTypeIds)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuTypeIdInfo_v1_t), + }) + finally: + _cyb_free(pod) vgpu_type_id_info_v1_dtype = _get_vgpu_type_id_info_v1_dtype_offsets() @@ -9977,17 +10157,22 @@ cdef class VgpuTypeIdInfo_v1: cdef _get_active_vgpu_instance_info_v1_dtype_offsets(): - cdef nvmlActiveVgpuInstanceInfo_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'vgpu_count', 'vgpu_instances'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.intp], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.vgpuCount)) - (&pod), - (&(pod.vgpuInstances)) - (&pod), - ], - 'itemsize': sizeof(nvmlActiveVgpuInstanceInfo_v1_t), - }) + cdef nvmlActiveVgpuInstanceInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlActiveVgpuInstanceInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlActiveVgpuInstanceInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'vgpu_count', 'vgpu_instances'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.intp], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.vgpuCount)) - (pod), + (&(pod.vgpuInstances)) - (pod), + ], + 'itemsize': sizeof(nvmlActiveVgpuInstanceInfo_v1_t), + }) + finally: + _cyb_free(pod) active_vgpu_instance_info_v1_dtype = _get_active_vgpu_instance_info_v1_dtype_offsets() @@ -10126,19 +10311,24 @@ cdef class ActiveVgpuInstanceInfo_v1: cdef _get_vgpu_creatable_placement_info_v1_dtype_offsets(): - cdef nvmlVgpuCreatablePlacementInfo_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'vgpu_type_id', 'count', 'placement_ids', 'placement_size'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.intp, _numpy.uint32], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.vgpuTypeId)) - (&pod), - (&(pod.count)) - (&pod), - (&(pod.placementIds)) - (&pod), - (&(pod.placementSize)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuCreatablePlacementInfo_v1_t), - }) + cdef nvmlVgpuCreatablePlacementInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuCreatablePlacementInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuCreatablePlacementInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'vgpu_type_id', 'count', 'placement_ids', 'placement_size'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.intp, _numpy.uint32], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.vgpuTypeId)) - (pod), + (&(pod.count)) - (pod), + (&(pod.placementIds)) - (pod), + (&(pod.placementSize)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuCreatablePlacementInfo_v1_t), + }) + finally: + _cyb_free(pod) vgpu_creatable_placement_info_v1_dtype = _get_vgpu_creatable_placement_info_v1_dtype_offsets() @@ -10299,16 +10489,21 @@ cdef class VgpuCreatablePlacementInfo_v1: cdef _get_hwbc_entry_dtype_offsets(): - cdef nvmlHwbcEntry_t pod - return _numpy.dtype({ - 'names': ['hwbc_id', 'firmware_version'], - 'formats': [_numpy.uint32, (_numpy.int8, 32)], - 'offsets': [ - (&(pod.hwbcId)) - (&pod), - (&(pod.firmwareVersion)) - (&pod), - ], - 'itemsize': sizeof(nvmlHwbcEntry_t), - }) + cdef nvmlHwbcEntry_t *pod = _cyb_calloc(1, sizeof(nvmlHwbcEntry_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlHwbcEntry_t") + try: + return _numpy.dtype({ + 'names': ['hwbc_id', 'firmware_version'], + 'formats': [_numpy.uint32, (_numpy.int8, 32)], + 'offsets': [ + (&(pod.hwbcId)) - (pod), + (&(pod.firmwareVersion)) - (pod), + ], + 'itemsize': sizeof(nvmlHwbcEntry_t), + }) + finally: + _cyb_free(pod) hwbc_entry_dtype = _get_hwbc_entry_dtype_offsets() cdef object hwbc_entry_dtype_record = _numpy.dtype((_numpy.record, hwbc_entry_dtype)) @@ -10465,16 +10660,21 @@ cdef class HwbcEntry: cdef _get_led_state_dtype_offsets(): - cdef nvmlLedState_t pod - return _numpy.dtype({ - 'names': ['cause', 'color'], - 'formats': [(_numpy.int8, 256), _numpy.int32], - 'offsets': [ - (&(pod.cause)) - (&pod), - (&(pod.color)) - (&pod), - ], - 'itemsize': sizeof(nvmlLedState_t), - }) + cdef nvmlLedState_t *pod = _cyb_calloc(1, sizeof(nvmlLedState_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlLedState_t") + try: + return _numpy.dtype({ + 'names': ['cause', 'color'], + 'formats': [(_numpy.int8, 256), _numpy.int32], + 'offsets': [ + (&(pod.cause)) - (pod), + (&(pod.color)) - (pod), + ], + 'itemsize': sizeof(nvmlLedState_t), + }) + finally: + _cyb_free(pod) led_state_dtype = _get_led_state_dtype_offsets() @@ -10606,18 +10806,23 @@ cdef class LedState: cdef _get_unit_info_dtype_offsets(): - cdef nvmlUnitInfo_t pod - return _numpy.dtype({ - 'names': ['name', 'id', 'serial', 'firmware_version'], - 'formats': [(_numpy.int8, 96), (_numpy.int8, 96), (_numpy.int8, 96), (_numpy.int8, 96)], - 'offsets': [ - (&(pod.name)) - (&pod), - (&(pod.id)) - (&pod), - (&(pod.serial)) - (&pod), - (&(pod.firmwareVersion)) - (&pod), - ], - 'itemsize': sizeof(nvmlUnitInfo_t), - }) + cdef nvmlUnitInfo_t *pod = _cyb_calloc(1, sizeof(nvmlUnitInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlUnitInfo_t") + try: + return _numpy.dtype({ + 'names': ['name', 'id', 'serial', 'firmware_version'], + 'formats': [(_numpy.int8, 96), (_numpy.int8, 96), (_numpy.int8, 96), (_numpy.int8, 96)], + 'offsets': [ + (&(pod.name)) - (pod), + (&(pod.id)) - (pod), + (&(pod.serial)) - (pod), + (&(pod.firmwareVersion)) - (pod), + ], + 'itemsize': sizeof(nvmlUnitInfo_t), + }) + finally: + _cyb_free(pod) unit_info_dtype = _get_unit_info_dtype_offsets() @@ -10783,18 +10988,23 @@ cdef class UnitInfo: cdef _get_psu_info_dtype_offsets(): - cdef nvmlPSUInfo_t pod - return _numpy.dtype({ - 'names': ['state', 'current', 'voltage', 'power'], - 'formats': [(_numpy.int8, 256), _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.state)) - (&pod), - (&(pod.current)) - (&pod), - (&(pod.voltage)) - (&pod), - (&(pod.power)) - (&pod), - ], - 'itemsize': sizeof(nvmlPSUInfo_t), - }) + cdef nvmlPSUInfo_t *pod = _cyb_calloc(1, sizeof(nvmlPSUInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPSUInfo_t") + try: + return _numpy.dtype({ + 'names': ['state', 'current', 'voltage', 'power'], + 'formats': [(_numpy.int8, 256), _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.state)) - (pod), + (&(pod.current)) - (pod), + (&(pod.voltage)) - (pod), + (&(pod.power)) - (pod), + ], + 'itemsize': sizeof(nvmlPSUInfo_t), + }) + finally: + _cyb_free(pod) psu_info_dtype = _get_psu_info_dtype_offsets() @@ -10948,16 +11158,21 @@ cdef class PSUInfo: cdef _get_unit_fan_info_dtype_offsets(): - cdef nvmlUnitFanInfo_t pod - return _numpy.dtype({ - 'names': ['speed', 'state'], - 'formats': [_numpy.uint32, _numpy.int32], - 'offsets': [ - (&(pod.speed)) - (&pod), - (&(pod.state)) - (&pod), - ], - 'itemsize': sizeof(nvmlUnitFanInfo_t), - }) + cdef nvmlUnitFanInfo_t *pod = _cyb_calloc(1, sizeof(nvmlUnitFanInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlUnitFanInfo_t") + try: + return _numpy.dtype({ + 'names': ['speed', 'state'], + 'formats': [_numpy.uint32, _numpy.int32], + 'offsets': [ + (&(pod.speed)) - (pod), + (&(pod.state)) - (pod), + ], + 'itemsize': sizeof(nvmlUnitFanInfo_t), + }) + finally: + _cyb_free(pod) unit_fan_info_dtype = _get_unit_fan_info_dtype_offsets() cdef object unit_fan_info_dtype_record = _numpy.dtype((_numpy.record, unit_fan_info_dtype)) @@ -11116,19 +11331,24 @@ cdef class UnitFanInfo: cdef _get_event_data_dtype_offsets(): - cdef nvmlEventData_t pod - return _numpy.dtype({ - 'names': ['device_', 'event_type', 'event_data', 'gpu_instance_id', 'compute_instance_id'], - 'formats': [_numpy.intp, _numpy.uint64, _numpy.uint64, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.device)) - (&pod), - (&(pod.eventType)) - (&pod), - (&(pod.eventData)) - (&pod), - (&(pod.gpuInstanceId)) - (&pod), - (&(pod.computeInstanceId)) - (&pod), - ], - 'itemsize': sizeof(nvmlEventData_t), - }) + cdef nvmlEventData_t *pod = _cyb_calloc(1, sizeof(nvmlEventData_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlEventData_t") + try: + return _numpy.dtype({ + 'names': ['device_', 'event_type', 'event_data', 'gpu_instance_id', 'compute_instance_id'], + 'formats': [_numpy.intp, _numpy.uint64, _numpy.uint64, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.device)) - (pod), + (&(pod.eventType)) - (pod), + (&(pod.eventData)) - (pod), + (&(pod.gpuInstanceId)) - (pod), + (&(pod.computeInstanceId)) - (pod), + ], + 'itemsize': sizeof(nvmlEventData_t), + }) + finally: + _cyb_free(pod) event_data_dtype = _get_event_data_dtype_offsets() @@ -11289,16 +11509,21 @@ cdef class EventData: cdef _get_system_event_data_v1_dtype_offsets(): - cdef nvmlSystemEventData_v1_t pod - return _numpy.dtype({ - 'names': ['event_type', 'gpu_id'], - 'formats': [_numpy.uint64, _numpy.uint32], - 'offsets': [ - (&(pod.eventType)) - (&pod), - (&(pod.gpuId)) - (&pod), - ], - 'itemsize': sizeof(nvmlSystemEventData_v1_t), - }) + cdef nvmlSystemEventData_v1_t *pod = _cyb_calloc(1, sizeof(nvmlSystemEventData_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlSystemEventData_v1_t") + try: + return _numpy.dtype({ + 'names': ['event_type', 'gpu_id'], + 'formats': [_numpy.uint64, _numpy.uint32], + 'offsets': [ + (&(pod.eventType)) - (pod), + (&(pod.gpuId)) - (pod), + ], + 'itemsize': sizeof(nvmlSystemEventData_v1_t), + }) + finally: + _cyb_free(pod) system_event_data_v1_dtype = _get_system_event_data_v1_dtype_offsets() cdef object system_event_data_v1_dtype_record = _numpy.dtype((_numpy.record, system_event_data_v1_dtype)) @@ -11457,21 +11682,26 @@ cdef class SystemEventData_v1: cdef _get_accounting_stats_dtype_offsets(): - cdef nvmlAccountingStats_t pod - return _numpy.dtype({ - 'names': ['gpu_utilization', 'memory_utilization', 'max_memory_usage', 'time', 'start_time', 'is_running', 'reserved'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint32, (_numpy.uint32, 5)], - 'offsets': [ - (&(pod.gpuUtilization)) - (&pod), - (&(pod.memoryUtilization)) - (&pod), - (&(pod.maxMemoryUsage)) - (&pod), - (&(pod.time)) - (&pod), - (&(pod.startTime)) - (&pod), - (&(pod.isRunning)) - (&pod), - (&(pod.reserved)) - (&pod), - ], - 'itemsize': sizeof(nvmlAccountingStats_t), - }) + cdef nvmlAccountingStats_t *pod = _cyb_calloc(1, sizeof(nvmlAccountingStats_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlAccountingStats_t") + try: + return _numpy.dtype({ + 'names': ['gpu_utilization', 'memory_utilization', 'max_memory_usage', 'time', 'start_time', 'is_running', 'reserved'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint32, (_numpy.uint32, 5)], + 'offsets': [ + (&(pod.gpuUtilization)) - (pod), + (&(pod.memoryUtilization)) - (pod), + (&(pod.maxMemoryUsage)) - (pod), + (&(pod.time)) - (pod), + (&(pod.startTime)) - (pod), + (&(pod.isRunning)) - (pod), + (&(pod.reserved)) - (pod), + ], + 'itemsize': sizeof(nvmlAccountingStats_t), + }) + finally: + _cyb_free(pod) accounting_stats_dtype = _get_accounting_stats_dtype_offsets() @@ -11643,22 +11873,27 @@ cdef class AccountingStats: cdef _get_encoder_session_info_dtype_offsets(): - cdef nvmlEncoderSessionInfo_t pod - return _numpy.dtype({ - 'names': ['session_id', 'pid', 'vgpu_instance', 'codec_type', 'h_resolution', 'v_resolution', 'average_fps', 'average_latency'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.int32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.sessionId)) - (&pod), - (&(pod.pid)) - (&pod), - (&(pod.vgpuInstance)) - (&pod), - (&(pod.codecType)) - (&pod), - (&(pod.hResolution)) - (&pod), - (&(pod.vResolution)) - (&pod), - (&(pod.averageFps)) - (&pod), - (&(pod.averageLatency)) - (&pod), - ], - 'itemsize': sizeof(nvmlEncoderSessionInfo_t), - }) + cdef nvmlEncoderSessionInfo_t *pod = _cyb_calloc(1, sizeof(nvmlEncoderSessionInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlEncoderSessionInfo_t") + try: + return _numpy.dtype({ + 'names': ['session_id', 'pid', 'vgpu_instance', 'codec_type', 'h_resolution', 'v_resolution', 'average_fps', 'average_latency'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.int32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.sessionId)) - (pod), + (&(pod.pid)) - (pod), + (&(pod.vgpuInstance)) - (pod), + (&(pod.codecType)) - (pod), + (&(pod.hResolution)) - (pod), + (&(pod.vResolution)) - (pod), + (&(pod.averageFps)) - (pod), + (&(pod.averageLatency)) - (pod), + ], + 'itemsize': sizeof(nvmlEncoderSessionInfo_t), + }) + finally: + _cyb_free(pod) encoder_session_info_dtype = _get_encoder_session_info_dtype_offsets() cdef object encoder_session_info_dtype_record = _numpy.dtype((_numpy.record, encoder_session_info_dtype)) @@ -11895,17 +12130,22 @@ cdef class EncoderSessionInfo: cdef _get_fbc_stats_dtype_offsets(): - cdef nvmlFBCStats_t pod - return _numpy.dtype({ - 'names': ['sessions_count', 'average_fps', 'average_latency'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.sessionsCount)) - (&pod), - (&(pod.averageFPS)) - (&pod), - (&(pod.averageLatency)) - (&pod), - ], - 'itemsize': sizeof(nvmlFBCStats_t), - }) + cdef nvmlFBCStats_t *pod = _cyb_calloc(1, sizeof(nvmlFBCStats_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlFBCStats_t") + try: + return _numpy.dtype({ + 'names': ['sessions_count', 'average_fps', 'average_latency'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.sessionsCount)) - (pod), + (&(pod.averageFPS)) - (pod), + (&(pod.averageLatency)) - (pod), + ], + 'itemsize': sizeof(nvmlFBCStats_t), + }) + finally: + _cyb_free(pod) fbc_stats_dtype = _get_fbc_stats_dtype_offsets() @@ -12044,26 +12284,31 @@ cdef class FBCStats: cdef _get_fbc_session_info_dtype_offsets(): - cdef nvmlFBCSessionInfo_t pod - return _numpy.dtype({ - 'names': ['session_id', 'pid', 'vgpu_instance', 'display_ordinal', 'session_type', 'session_flags', 'h_max_resolution', 'v_max_resolution', 'h_resolution', 'v_resolution', 'average_fps', 'average_latency'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.int32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.sessionId)) - (&pod), - (&(pod.pid)) - (&pod), - (&(pod.vgpuInstance)) - (&pod), - (&(pod.displayOrdinal)) - (&pod), - (&(pod.sessionType)) - (&pod), - (&(pod.sessionFlags)) - (&pod), - (&(pod.hMaxResolution)) - (&pod), - (&(pod.vMaxResolution)) - (&pod), - (&(pod.hResolution)) - (&pod), - (&(pod.vResolution)) - (&pod), - (&(pod.averageFPS)) - (&pod), - (&(pod.averageLatency)) - (&pod), - ], - 'itemsize': sizeof(nvmlFBCSessionInfo_t), - }) + cdef nvmlFBCSessionInfo_t *pod = _cyb_calloc(1, sizeof(nvmlFBCSessionInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlFBCSessionInfo_t") + try: + return _numpy.dtype({ + 'names': ['session_id', 'pid', 'vgpu_instance', 'display_ordinal', 'session_type', 'session_flags', 'h_max_resolution', 'v_max_resolution', 'h_resolution', 'v_resolution', 'average_fps', 'average_latency'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.int32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.sessionId)) - (pod), + (&(pod.pid)) - (pod), + (&(pod.vgpuInstance)) - (pod), + (&(pod.displayOrdinal)) - (pod), + (&(pod.sessionType)) - (pod), + (&(pod.sessionFlags)) - (pod), + (&(pod.hMaxResolution)) - (pod), + (&(pod.vMaxResolution)) - (pod), + (&(pod.hResolution)) - (pod), + (&(pod.vResolution)) - (pod), + (&(pod.averageFPS)) - (pod), + (&(pod.averageLatency)) - (pod), + ], + 'itemsize': sizeof(nvmlFBCSessionInfo_t), + }) + finally: + _cyb_free(pod) fbc_session_info_dtype = _get_fbc_session_info_dtype_offsets() cdef object fbc_session_info_dtype_record = _numpy.dtype((_numpy.record, fbc_session_info_dtype)) @@ -12352,16 +12597,21 @@ cdef class FBCSessionInfo: cdef _get_conf_compute_system_caps_dtype_offsets(): - cdef nvmlConfComputeSystemCaps_t pod - return _numpy.dtype({ - 'names': ['cpu_caps', 'gpus_caps'], - 'formats': [_numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.cpuCaps)) - (&pod), - (&(pod.gpusCaps)) - (&pod), - ], - 'itemsize': sizeof(nvmlConfComputeSystemCaps_t), - }) + cdef nvmlConfComputeSystemCaps_t *pod = _cyb_calloc(1, sizeof(nvmlConfComputeSystemCaps_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlConfComputeSystemCaps_t") + try: + return _numpy.dtype({ + 'names': ['cpu_caps', 'gpus_caps'], + 'formats': [_numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.cpuCaps)) - (pod), + (&(pod.gpusCaps)) - (pod), + ], + 'itemsize': sizeof(nvmlConfComputeSystemCaps_t), + }) + finally: + _cyb_free(pod) conf_compute_system_caps_dtype = _get_conf_compute_system_caps_dtype_offsets() @@ -12489,17 +12739,22 @@ cdef class ConfComputeSystemCaps: cdef _get_conf_compute_system_state_dtype_offsets(): - cdef nvmlConfComputeSystemState_t pod - return _numpy.dtype({ - 'names': ['environment', 'cc_feature', 'dev_tools_mode'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.environment)) - (&pod), - (&(pod.ccFeature)) - (&pod), - (&(pod.devToolsMode)) - (&pod), - ], - 'itemsize': sizeof(nvmlConfComputeSystemState_t), - }) + cdef nvmlConfComputeSystemState_t *pod = _cyb_calloc(1, sizeof(nvmlConfComputeSystemState_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlConfComputeSystemState_t") + try: + return _numpy.dtype({ + 'names': ['environment', 'cc_feature', 'dev_tools_mode'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.environment)) - (pod), + (&(pod.ccFeature)) - (pod), + (&(pod.devToolsMode)) - (pod), + ], + 'itemsize': sizeof(nvmlConfComputeSystemState_t), + }) + finally: + _cyb_free(pod) conf_compute_system_state_dtype = _get_conf_compute_system_state_dtype_offsets() @@ -12638,19 +12893,24 @@ cdef class ConfComputeSystemState: cdef _get_system_conf_compute_settings_v1_dtype_offsets(): - cdef nvmlSystemConfComputeSettings_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'environment', 'cc_feature', 'dev_tools_mode', 'multi_gpu_mode'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.environment)) - (&pod), - (&(pod.ccFeature)) - (&pod), - (&(pod.devToolsMode)) - (&pod), - (&(pod.multiGpuMode)) - (&pod), - ], - 'itemsize': sizeof(nvmlSystemConfComputeSettings_v1_t), - }) + cdef nvmlSystemConfComputeSettings_v1_t *pod = _cyb_calloc(1, sizeof(nvmlSystemConfComputeSettings_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlSystemConfComputeSettings_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'environment', 'cc_feature', 'dev_tools_mode', 'multi_gpu_mode'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.environment)) - (pod), + (&(pod.ccFeature)) - (pod), + (&(pod.devToolsMode)) - (pod), + (&(pod.multiGpuMode)) - (pod), + ], + 'itemsize': sizeof(nvmlSystemConfComputeSettings_v1_t), + }) + finally: + _cyb_free(pod) system_conf_compute_settings_v1_dtype = _get_system_conf_compute_settings_v1_dtype_offsets() @@ -12811,16 +13071,21 @@ cdef class SystemConfComputeSettings_v1: cdef _get_conf_compute_mem_size_info_dtype_offsets(): - cdef nvmlConfComputeMemSizeInfo_t pod - return _numpy.dtype({ - 'names': ['protected_mem_size_kib', 'unprotected_mem_size_kib'], - 'formats': [_numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.protectedMemSizeKib)) - (&pod), - (&(pod.unprotectedMemSizeKib)) - (&pod), - ], - 'itemsize': sizeof(nvmlConfComputeMemSizeInfo_t), - }) + cdef nvmlConfComputeMemSizeInfo_t *pod = _cyb_calloc(1, sizeof(nvmlConfComputeMemSizeInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlConfComputeMemSizeInfo_t") + try: + return _numpy.dtype({ + 'names': ['protected_mem_size_kib', 'unprotected_mem_size_kib'], + 'formats': [_numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.protectedMemSizeKib)) - (pod), + (&(pod.unprotectedMemSizeKib)) - (pod), + ], + 'itemsize': sizeof(nvmlConfComputeMemSizeInfo_t), + }) + finally: + _cyb_free(pod) conf_compute_mem_size_info_dtype = _get_conf_compute_mem_size_info_dtype_offsets() @@ -12948,18 +13213,23 @@ cdef class ConfComputeMemSizeInfo: cdef _get_conf_compute_gpu_certificate_dtype_offsets(): - cdef nvmlConfComputeGpuCertificate_t pod - return _numpy.dtype({ - 'names': ['cert_chain_size', 'attestation_cert_chain_size', 'cert_chain', 'attestation_cert_chain'], - 'formats': [_numpy.uint32, _numpy.uint32, (_numpy.uint8, 4096), (_numpy.uint8, 5120)], - 'offsets': [ - (&(pod.certChainSize)) - (&pod), - (&(pod.attestationCertChainSize)) - (&pod), - (&(pod.certChain)) - (&pod), - (&(pod.attestationCertChain)) - (&pod), - ], - 'itemsize': sizeof(nvmlConfComputeGpuCertificate_t), - }) + cdef nvmlConfComputeGpuCertificate_t *pod = _cyb_calloc(1, sizeof(nvmlConfComputeGpuCertificate_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlConfComputeGpuCertificate_t") + try: + return _numpy.dtype({ + 'names': ['cert_chain_size', 'attestation_cert_chain_size', 'cert_chain', 'attestation_cert_chain'], + 'formats': [_numpy.uint32, _numpy.uint32, (_numpy.uint8, 4096), (_numpy.uint8, 5120)], + 'offsets': [ + (&(pod.certChainSize)) - (pod), + (&(pod.attestationCertChainSize)) - (pod), + (&(pod.certChain)) - (pod), + (&(pod.attestationCertChain)) - (pod), + ], + 'itemsize': sizeof(nvmlConfComputeGpuCertificate_t), + }) + finally: + _cyb_free(pod) conf_compute_gpu_certificate_dtype = _get_conf_compute_gpu_certificate_dtype_offsets() @@ -13109,20 +13379,25 @@ cdef class ConfComputeGpuCertificate: cdef _get_conf_compute_gpu_attestation_report_dtype_offsets(): - cdef nvmlConfComputeGpuAttestationReport_t pod - return _numpy.dtype({ - 'names': ['is_cec_attestation_report_present', 'attestation_report_size', 'cec_attestation_report_size', 'nonce', 'attestation_report', 'cec_attestation_report'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.uint8, 32), (_numpy.uint8, 8192), (_numpy.uint8, 4096)], - 'offsets': [ - (&(pod.isCecAttestationReportPresent)) - (&pod), - (&(pod.attestationReportSize)) - (&pod), - (&(pod.cecAttestationReportSize)) - (&pod), - (&(pod.nonce)) - (&pod), - (&(pod.attestationReport)) - (&pod), - (&(pod.cecAttestationReport)) - (&pod), - ], - 'itemsize': sizeof(nvmlConfComputeGpuAttestationReport_t), - }) + cdef nvmlConfComputeGpuAttestationReport_t *pod = _cyb_calloc(1, sizeof(nvmlConfComputeGpuAttestationReport_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlConfComputeGpuAttestationReport_t") + try: + return _numpy.dtype({ + 'names': ['is_cec_attestation_report_present', 'attestation_report_size', 'cec_attestation_report_size', 'nonce', 'attestation_report', 'cec_attestation_report'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.uint8, 32), (_numpy.uint8, 8192), (_numpy.uint8, 4096)], + 'offsets': [ + (&(pod.isCecAttestationReportPresent)) - (pod), + (&(pod.attestationReportSize)) - (pod), + (&(pod.cecAttestationReportSize)) - (pod), + (&(pod.nonce)) - (pod), + (&(pod.attestationReport)) - (pod), + (&(pod.cecAttestationReport)) - (pod), + ], + 'itemsize': sizeof(nvmlConfComputeGpuAttestationReport_t), + }) + finally: + _cyb_free(pod) conf_compute_gpu_attestation_report_dtype = _get_conf_compute_gpu_attestation_report_dtype_offsets() @@ -13300,20 +13575,25 @@ cdef class ConfComputeGpuAttestationReport: cdef _get_gpu_fabric_info_v2_dtype_offsets(): - cdef nvmlGpuFabricInfo_v2_t pod - return _numpy.dtype({ - 'names': ['version', 'cluster_uuid', 'status', 'clique_id', 'state', 'health_mask'], - 'formats': [_numpy.uint32, (_numpy.uint8, 16), _numpy.int32, _numpy.uint32, _numpy.uint8, _numpy.uint32], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.clusterUuid)) - (&pod), - (&(pod.status)) - (&pod), - (&(pod.cliqueId)) - (&pod), - (&(pod.state)) - (&pod), - (&(pod.healthMask)) - (&pod), - ], - 'itemsize': sizeof(nvmlGpuFabricInfo_v2_t), - }) + cdef nvmlGpuFabricInfo_v2_t *pod = _cyb_calloc(1, sizeof(nvmlGpuFabricInfo_v2_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGpuFabricInfo_v2_t") + try: + return _numpy.dtype({ + 'names': ['version', 'cluster_uuid', 'status', 'clique_id', 'state', 'health_mask'], + 'formats': [_numpy.uint32, (_numpy.uint8, 16), _numpy.int32, _numpy.uint32, _numpy.uint8, _numpy.uint32], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.clusterUuid)) - (pod), + (&(pod.status)) - (pod), + (&(pod.cliqueId)) - (pod), + (&(pod.state)) - (pod), + (&(pod.healthMask)) - (pod), + ], + 'itemsize': sizeof(nvmlGpuFabricInfo_v2_t), + }) + finally: + _cyb_free(pod) gpu_fabric_info_v2_dtype = _get_gpu_fabric_info_v2_dtype_offsets() @@ -13491,17 +13771,22 @@ cdef class GpuFabricInfo_v2: cdef _get_nvlink_supported_bw_modes_v1_dtype_offsets(): - cdef nvmlNvlinkSupportedBwModes_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'bw_modes', 'total_bw_modes'], - 'formats': [_numpy.uint32, (_numpy.uint8, 23), _numpy.uint8], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.bwModes)) - (&pod), - (&(pod.totalBwModes)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvlinkSupportedBwModes_v1_t), - }) + cdef nvmlNvlinkSupportedBwModes_v1_t *pod = _cyb_calloc(1, sizeof(nvmlNvlinkSupportedBwModes_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvlinkSupportedBwModes_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'bw_modes', 'total_bw_modes'], + 'formats': [_numpy.uint32, (_numpy.uint8, 23), _numpy.uint8], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.bwModes)) - (pod), + (&(pod.totalBwModes)) - (pod), + ], + 'itemsize': sizeof(nvmlNvlinkSupportedBwModes_v1_t), + }) + finally: + _cyb_free(pod) nvlink_supported_bw_modes_v1_dtype = _get_nvlink_supported_bw_modes_v1_dtype_offsets() @@ -13640,17 +13925,22 @@ cdef class NvlinkSupportedBwModes_v1: cdef _get_nvlink_get_bw_mode_v1_dtype_offsets(): - cdef nvmlNvlinkGetBwMode_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'b_is_best', 'bw_mode'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint8], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.bIsBest)) - (&pod), - (&(pod.bwMode)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvlinkGetBwMode_v1_t), - }) + cdef nvmlNvlinkGetBwMode_v1_t *pod = _cyb_calloc(1, sizeof(nvmlNvlinkGetBwMode_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvlinkGetBwMode_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'b_is_best', 'bw_mode'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint8], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.bIsBest)) - (pod), + (&(pod.bwMode)) - (pod), + ], + 'itemsize': sizeof(nvmlNvlinkGetBwMode_v1_t), + }) + finally: + _cyb_free(pod) nvlink_get_bw_mode_v1_dtype = _get_nvlink_get_bw_mode_v1_dtype_offsets() @@ -13789,17 +14079,22 @@ cdef class NvlinkGetBwMode_v1: cdef _get_nvlink_set_bw_mode_v1_dtype_offsets(): - cdef nvmlNvlinkSetBwMode_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'b_set_best', 'bw_mode'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint8], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.bSetBest)) - (&pod), - (&(pod.bwMode)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvlinkSetBwMode_v1_t), - }) + cdef nvmlNvlinkSetBwMode_v1_t *pod = _cyb_calloc(1, sizeof(nvmlNvlinkSetBwMode_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvlinkSetBwMode_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'b_set_best', 'bw_mode'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint8], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.bSetBest)) - (pod), + (&(pod.bwMode)) - (pod), + ], + 'itemsize': sizeof(nvmlNvlinkSetBwMode_v1_t), + }) + finally: + _cyb_free(pod) nvlink_set_bw_mode_v1_dtype = _get_nvlink_set_bw_mode_v1_dtype_offsets() @@ -13938,16 +14233,21 @@ cdef class NvlinkSetBwMode_v1: cdef _get_vgpu_version_dtype_offsets(): - cdef nvmlVgpuVersion_t pod - return _numpy.dtype({ - 'names': ['min_version', 'max_version'], - 'formats': [_numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.minVersion)) - (&pod), - (&(pod.maxVersion)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuVersion_t), - }) + cdef nvmlVgpuVersion_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuVersion_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuVersion_t") + try: + return _numpy.dtype({ + 'names': ['min_version', 'max_version'], + 'formats': [_numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.minVersion)) - (pod), + (&(pod.maxVersion)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuVersion_t), + }) + finally: + _cyb_free(pod) vgpu_version_dtype = _get_vgpu_version_dtype_offsets() @@ -14087,24 +14387,29 @@ cdef class VgpuVersion: cdef _get_vgpu_metadata_dtype_offsets(): - cdef nvmlVgpuMetadata_t pod - return _numpy.dtype({ - 'names': ['version', 'revision', 'guest_info_state', 'guest_driver_version', 'host_driver_version', 'reserved', 'vgpu_virtualization_caps', 'guest_vgpu_version', 'opaque_data_size', 'opaque_data'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.int32, (_numpy.int8, 80), (_numpy.int8, 80), (_numpy.uint32, 6), _numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.int8, 4)], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.revision)) - (&pod), - (&(pod.guestInfoState)) - (&pod), - (&(pod.guestDriverVersion)) - (&pod), - (&(pod.hostDriverVersion)) - (&pod), - (&(pod.reserved)) - (&pod), - (&(pod.vgpuVirtualizationCaps)) - (&pod), - (&(pod.guestVgpuVersion)) - (&pod), - (&(pod.opaqueDataSize)) - (&pod), - (&(pod.opaqueData)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuMetadata_t), - }) + cdef nvmlVgpuMetadata_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuMetadata_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuMetadata_t") + try: + return _numpy.dtype({ + 'names': ['version', 'revision', 'guest_info_state', 'guest_driver_version', 'host_driver_version', 'reserved', 'vgpu_virtualization_caps', 'guest_vgpu_version', 'opaque_data_size', 'opaque_data'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.int32, (_numpy.int8, 80), (_numpy.int8, 80), (_numpy.uint32, 6), _numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.int8, 4)], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.revision)) - (pod), + (&(pod.guestInfoState)) - (pod), + (&(pod.guestDriverVersion)) - (pod), + (&(pod.hostDriverVersion)) - (pod), + (&(pod.reserved)) - (pod), + (&(pod.vgpuVirtualizationCaps)) - (pod), + (&(pod.guestVgpuVersion)) - (pod), + (&(pod.opaqueDataSize)) - (pod), + (&(pod.opaqueData)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuMetadata_t), + }) + finally: + _cyb_free(pod) vgpu_metadata_dtype = _get_vgpu_metadata_dtype_offsets() @@ -14321,16 +14626,21 @@ cdef class VgpuMetadata: cdef _get_vgpu_pgpu_compatibility_dtype_offsets(): - cdef nvmlVgpuPgpuCompatibility_t pod - return _numpy.dtype({ - 'names': ['vgpu_vm_compatibility', 'compatibility_limit_code'], - 'formats': [_numpy.int32, _numpy.int32], - 'offsets': [ - (&(pod.vgpuVmCompatibility)) - (&pod), - (&(pod.compatibilityLimitCode)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuPgpuCompatibility_t), - }) + cdef nvmlVgpuPgpuCompatibility_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuPgpuCompatibility_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuPgpuCompatibility_t") + try: + return _numpy.dtype({ + 'names': ['vgpu_vm_compatibility', 'compatibility_limit_code'], + 'formats': [_numpy.int32, _numpy.int32], + 'offsets': [ + (&(pod.vgpuVmCompatibility)) - (pod), + (&(pod.compatibilityLimitCode)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuPgpuCompatibility_t), + }) + finally: + _cyb_free(pod) vgpu_pgpu_compatibility_dtype = _get_vgpu_pgpu_compatibility_dtype_offsets() @@ -14458,16 +14768,21 @@ cdef class VgpuPgpuCompatibility: cdef _get_gpu_instance_placement_dtype_offsets(): - cdef nvmlGpuInstancePlacement_t pod - return _numpy.dtype({ - 'names': ['start', 'size_'], - 'formats': [_numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.start)) - (&pod), - (&(pod.size)) - (&pod), - ], - 'itemsize': sizeof(nvmlGpuInstancePlacement_t), - }) + cdef nvmlGpuInstancePlacement_t *pod = _cyb_calloc(1, sizeof(nvmlGpuInstancePlacement_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGpuInstancePlacement_t") + try: + return _numpy.dtype({ + 'names': ['start', 'size_'], + 'formats': [_numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.start)) - (pod), + (&(pod.size)) - (pod), + ], + 'itemsize': sizeof(nvmlGpuInstancePlacement_t), + }) + finally: + _cyb_free(pod) gpu_instance_placement_dtype = _get_gpu_instance_placement_dtype_offsets() cdef object gpu_instance_placement_dtype_record = _numpy.dtype((_numpy.record, gpu_instance_placement_dtype)) @@ -14626,27 +14941,32 @@ cdef class GpuInstancePlacement: cdef _get_gpu_instance_profile_info_v3_dtype_offsets(): - cdef nvmlGpuInstanceProfileInfo_v3_t pod - return _numpy.dtype({ - 'names': ['version', 'id', 'slice_count', 'instance_count', 'multiprocessor_count', 'copy_engine_count', 'decoder_count', 'encoder_count', 'jpeg_count', 'ofa_count', 'memory_size_mb', 'name', 'capabilities'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint64, (_numpy.int8, 96), _numpy.uint32], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.id)) - (&pod), - (&(pod.sliceCount)) - (&pod), - (&(pod.instanceCount)) - (&pod), - (&(pod.multiprocessorCount)) - (&pod), - (&(pod.copyEngineCount)) - (&pod), - (&(pod.decoderCount)) - (&pod), - (&(pod.encoderCount)) - (&pod), - (&(pod.jpegCount)) - (&pod), - (&(pod.ofaCount)) - (&pod), - (&(pod.memorySizeMB)) - (&pod), - (&(pod.name)) - (&pod), - (&(pod.capabilities)) - (&pod), - ], - 'itemsize': sizeof(nvmlGpuInstanceProfileInfo_v3_t), - }) + cdef nvmlGpuInstanceProfileInfo_v3_t *pod = _cyb_calloc(1, sizeof(nvmlGpuInstanceProfileInfo_v3_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGpuInstanceProfileInfo_v3_t") + try: + return _numpy.dtype({ + 'names': ['version', 'id', 'slice_count', 'instance_count', 'multiprocessor_count', 'copy_engine_count', 'decoder_count', 'encoder_count', 'jpeg_count', 'ofa_count', 'memory_size_mb', 'name', 'capabilities'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint64, (_numpy.int8, 96), _numpy.uint32], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.id)) - (pod), + (&(pod.sliceCount)) - (pod), + (&(pod.instanceCount)) - (pod), + (&(pod.multiprocessorCount)) - (pod), + (&(pod.copyEngineCount)) - (pod), + (&(pod.decoderCount)) - (pod), + (&(pod.encoderCount)) - (pod), + (&(pod.jpegCount)) - (pod), + (&(pod.ofaCount)) - (pod), + (&(pod.memorySizeMB)) - (pod), + (&(pod.name)) - (pod), + (&(pod.capabilities)) - (pod), + ], + 'itemsize': sizeof(nvmlGpuInstanceProfileInfo_v3_t), + }) + finally: + _cyb_free(pod) gpu_instance_profile_info_v3_dtype = _get_gpu_instance_profile_info_v3_dtype_offsets() @@ -14899,16 +15219,21 @@ cdef class GpuInstanceProfileInfo_v3: cdef _get_compute_instance_placement_dtype_offsets(): - cdef nvmlComputeInstancePlacement_t pod - return _numpy.dtype({ - 'names': ['start', 'size_'], - 'formats': [_numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.start)) - (&pod), - (&(pod.size)) - (&pod), - ], - 'itemsize': sizeof(nvmlComputeInstancePlacement_t), - }) + cdef nvmlComputeInstancePlacement_t *pod = _cyb_calloc(1, sizeof(nvmlComputeInstancePlacement_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlComputeInstancePlacement_t") + try: + return _numpy.dtype({ + 'names': ['start', 'size_'], + 'formats': [_numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.start)) - (pod), + (&(pod.size)) - (pod), + ], + 'itemsize': sizeof(nvmlComputeInstancePlacement_t), + }) + finally: + _cyb_free(pod) compute_instance_placement_dtype = _get_compute_instance_placement_dtype_offsets() cdef object compute_instance_placement_dtype_record = _numpy.dtype((_numpy.record, compute_instance_placement_dtype)) @@ -15067,25 +15392,30 @@ cdef class ComputeInstancePlacement: cdef _get_compute_instance_profile_info_v2_dtype_offsets(): - cdef nvmlComputeInstanceProfileInfo_v2_t pod - return _numpy.dtype({ - 'names': ['version', 'id', 'slice_count', 'instance_count', 'multiprocessor_count', 'shared_copy_engine_count', 'shared_decoder_count', 'shared_encoder_count', 'shared_jpeg_count', 'shared_ofa_count', 'name'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.int8, 96)], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.id)) - (&pod), - (&(pod.sliceCount)) - (&pod), - (&(pod.instanceCount)) - (&pod), - (&(pod.multiprocessorCount)) - (&pod), - (&(pod.sharedCopyEngineCount)) - (&pod), - (&(pod.sharedDecoderCount)) - (&pod), - (&(pod.sharedEncoderCount)) - (&pod), - (&(pod.sharedJpegCount)) - (&pod), - (&(pod.sharedOfaCount)) - (&pod), - (&(pod.name)) - (&pod), - ], - 'itemsize': sizeof(nvmlComputeInstanceProfileInfo_v2_t), - }) + cdef nvmlComputeInstanceProfileInfo_v2_t *pod = _cyb_calloc(1, sizeof(nvmlComputeInstanceProfileInfo_v2_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlComputeInstanceProfileInfo_v2_t") + try: + return _numpy.dtype({ + 'names': ['version', 'id', 'slice_count', 'instance_count', 'multiprocessor_count', 'shared_copy_engine_count', 'shared_decoder_count', 'shared_encoder_count', 'shared_jpeg_count', 'shared_ofa_count', 'name'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.int8, 96)], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.id)) - (pod), + (&(pod.sliceCount)) - (pod), + (&(pod.instanceCount)) - (pod), + (&(pod.multiprocessorCount)) - (pod), + (&(pod.sharedCopyEngineCount)) - (pod), + (&(pod.sharedDecoderCount)) - (pod), + (&(pod.sharedEncoderCount)) - (pod), + (&(pod.sharedJpegCount)) - (pod), + (&(pod.sharedOfaCount)) - (pod), + (&(pod.name)) - (pod), + ], + 'itemsize': sizeof(nvmlComputeInstanceProfileInfo_v2_t), + }) + finally: + _cyb_free(pod) compute_instance_profile_info_v2_dtype = _get_compute_instance_profile_info_v2_dtype_offsets() @@ -15316,26 +15646,31 @@ cdef class ComputeInstanceProfileInfo_v2: cdef _get_compute_instance_profile_info_v3_dtype_offsets(): - cdef nvmlComputeInstanceProfileInfo_v3_t pod - return _numpy.dtype({ - 'names': ['version', 'id', 'slice_count', 'instance_count', 'multiprocessor_count', 'shared_copy_engine_count', 'shared_decoder_count', 'shared_encoder_count', 'shared_jpeg_count', 'shared_ofa_count', 'name', 'capabilities'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.int8, 96), _numpy.uint32], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.id)) - (&pod), - (&(pod.sliceCount)) - (&pod), - (&(pod.instanceCount)) - (&pod), - (&(pod.multiprocessorCount)) - (&pod), - (&(pod.sharedCopyEngineCount)) - (&pod), - (&(pod.sharedDecoderCount)) - (&pod), - (&(pod.sharedEncoderCount)) - (&pod), - (&(pod.sharedJpegCount)) - (&pod), - (&(pod.sharedOfaCount)) - (&pod), - (&(pod.name)) - (&pod), - (&(pod.capabilities)) - (&pod), - ], - 'itemsize': sizeof(nvmlComputeInstanceProfileInfo_v3_t), - }) + cdef nvmlComputeInstanceProfileInfo_v3_t *pod = _cyb_calloc(1, sizeof(nvmlComputeInstanceProfileInfo_v3_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlComputeInstanceProfileInfo_v3_t") + try: + return _numpy.dtype({ + 'names': ['version', 'id', 'slice_count', 'instance_count', 'multiprocessor_count', 'shared_copy_engine_count', 'shared_decoder_count', 'shared_encoder_count', 'shared_jpeg_count', 'shared_ofa_count', 'name', 'capabilities'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, (_numpy.int8, 96), _numpy.uint32], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.id)) - (pod), + (&(pod.sliceCount)) - (pod), + (&(pod.instanceCount)) - (pod), + (&(pod.multiprocessorCount)) - (pod), + (&(pod.sharedCopyEngineCount)) - (pod), + (&(pod.sharedDecoderCount)) - (pod), + (&(pod.sharedEncoderCount)) - (pod), + (&(pod.sharedJpegCount)) - (pod), + (&(pod.sharedOfaCount)) - (pod), + (&(pod.name)) - (pod), + (&(pod.capabilities)) - (pod), + ], + 'itemsize': sizeof(nvmlComputeInstanceProfileInfo_v3_t), + }) + finally: + _cyb_free(pod) compute_instance_profile_info_v3_dtype = _get_compute_instance_profile_info_v3_dtype_offsets() @@ -15577,16 +15912,21 @@ cdef class ComputeInstanceProfileInfo_v3: cdef _get_device_addressing_mode_v1_dtype_offsets(): - cdef nvmlDeviceAddressingMode_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'value'], - 'formats': [_numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.value)) - (&pod), - ], - 'itemsize': sizeof(nvmlDeviceAddressingMode_v1_t), - }) + cdef nvmlDeviceAddressingMode_v1_t *pod = _cyb_calloc(1, sizeof(nvmlDeviceAddressingMode_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlDeviceAddressingMode_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'value'], + 'formats': [_numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.value)) - (pod), + ], + 'itemsize': sizeof(nvmlDeviceAddressingMode_v1_t), + }) + finally: + _cyb_free(pod) device_addressing_mode_v1_dtype = _get_device_addressing_mode_v1_dtype_offsets() @@ -15714,17 +16054,22 @@ cdef class DeviceAddressingMode_v1: cdef _get_repair_status_v1_dtype_offsets(): - cdef nvmlRepairStatus_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'b_channel_repair_pending', 'b_tpc_repair_pending'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.bChannelRepairPending)) - (&pod), - (&(pod.bTpcRepairPending)) - (&pod), - ], - 'itemsize': sizeof(nvmlRepairStatus_v1_t), - }) + cdef nvmlRepairStatus_v1_t *pod = _cyb_calloc(1, sizeof(nvmlRepairStatus_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlRepairStatus_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'b_channel_repair_pending', 'b_tpc_repair_pending'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.bChannelRepairPending)) - (pod), + (&(pod.bTpcRepairPending)) - (pod), + ], + 'itemsize': sizeof(nvmlRepairStatus_v1_t), + }) + finally: + _cyb_free(pod) repair_status_v1_dtype = _get_repair_status_v1_dtype_offsets() @@ -15863,17 +16208,22 @@ cdef class RepairStatus_v1: cdef _get_device_power_mizer_modes_v1_dtype_offsets(): - cdef nvmlDevicePowerMizerModes_v1_t pod - return _numpy.dtype({ - 'names': ['current_mode', 'mode', 'supported_power_mizer_modes'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.currentMode)) - (&pod), - (&(pod.mode)) - (&pod), - (&(pod.supportedPowerMizerModes)) - (&pod), - ], - 'itemsize': sizeof(nvmlDevicePowerMizerModes_v1_t), - }) + cdef nvmlDevicePowerMizerModes_v1_t *pod = _cyb_calloc(1, sizeof(nvmlDevicePowerMizerModes_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlDevicePowerMizerModes_v1_t") + try: + return _numpy.dtype({ + 'names': ['current_mode', 'mode', 'supported_power_mizer_modes'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.currentMode)) - (pod), + (&(pod.mode)) - (pod), + (&(pod.supportedPowerMizerModes)) - (pod), + ], + 'itemsize': sizeof(nvmlDevicePowerMizerModes_v1_t), + }) + finally: + _cyb_free(pod) device_power_mizer_modes_v1_dtype = _get_device_power_mizer_modes_v1_dtype_offsets() @@ -16012,21 +16362,26 @@ cdef class DevicePowerMizerModes_v1: cdef _get_ecc_sram_unique_uncorrected_error_entry_v1_dtype_offsets(): - cdef nvmlEccSramUniqueUncorrectedErrorEntry_v1_t pod - return _numpy.dtype({ - 'names': ['unit', 'location', 'sublocation', 'extlocation', 'address', 'is_parity', 'count'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.unit)) - (&pod), - (&(pod.location)) - (&pod), - (&(pod.sublocation)) - (&pod), - (&(pod.extlocation)) - (&pod), - (&(pod.address)) - (&pod), - (&(pod.isParity)) - (&pod), - (&(pod.count)) - (&pod), - ], - 'itemsize': sizeof(nvmlEccSramUniqueUncorrectedErrorEntry_v1_t), - }) + cdef nvmlEccSramUniqueUncorrectedErrorEntry_v1_t *pod = _cyb_calloc(1, sizeof(nvmlEccSramUniqueUncorrectedErrorEntry_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlEccSramUniqueUncorrectedErrorEntry_v1_t") + try: + return _numpy.dtype({ + 'names': ['unit', 'location', 'sublocation', 'extlocation', 'address', 'is_parity', 'count'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.unit)) - (pod), + (&(pod.location)) - (pod), + (&(pod.sublocation)) - (pod), + (&(pod.extlocation)) - (pod), + (&(pod.address)) - (pod), + (&(pod.isParity)) - (pod), + (&(pod.count)) - (pod), + ], + 'itemsize': sizeof(nvmlEccSramUniqueUncorrectedErrorEntry_v1_t), + }) + finally: + _cyb_free(pod) ecc_sram_unique_uncorrected_error_entry_v1_dtype = _get_ecc_sram_unique_uncorrected_error_entry_v1_dtype_offsets() cdef object ecc_sram_unique_uncorrected_error_entry_v1_dtype_record = _numpy.dtype((_numpy.record, ecc_sram_unique_uncorrected_error_entry_v1_dtype)) @@ -16250,21 +16605,26 @@ cdef class EccSramUniqueUncorrectedErrorEntry_v1: cdef _get_gpu_fabric_info_v3_dtype_offsets(): - cdef nvmlGpuFabricInfo_v3_t pod - return _numpy.dtype({ - 'names': ['version', 'cluster_uuid', 'status', 'clique_id', 'state', 'health_mask', 'health_summary'], - 'formats': [_numpy.uint32, (_numpy.uint8, 16), _numpy.int32, _numpy.uint32, _numpy.uint8, _numpy.uint32, _numpy.uint8], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.clusterUuid)) - (&pod), - (&(pod.status)) - (&pod), - (&(pod.cliqueId)) - (&pod), - (&(pod.state)) - (&pod), - (&(pod.healthMask)) - (&pod), - (&(pod.healthSummary)) - (&pod), - ], - 'itemsize': sizeof(nvmlGpuFabricInfo_v3_t), - }) + cdef nvmlGpuFabricInfo_v3_t *pod = _cyb_calloc(1, sizeof(nvmlGpuFabricInfo_v3_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGpuFabricInfo_v3_t") + try: + return _numpy.dtype({ + 'names': ['version', 'cluster_uuid', 'status', 'clique_id', 'state', 'health_mask', 'health_summary'], + 'formats': [_numpy.uint32, (_numpy.uint8, 16), _numpy.int32, _numpy.uint32, _numpy.uint8, _numpy.uint32, _numpy.uint8], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.clusterUuid)) - (pod), + (&(pod.status)) - (pod), + (&(pod.cliqueId)) - (pod), + (&(pod.state)) - (pod), + (&(pod.healthMask)) - (pod), + (&(pod.healthSummary)) - (pod), + ], + 'itemsize': sizeof(nvmlGpuFabricInfo_v3_t), + }) + finally: + _cyb_free(pod) gpu_fabric_info_v3_dtype = _get_gpu_fabric_info_v3_dtype_offsets() @@ -16453,16 +16813,21 @@ cdef class GpuFabricInfo_v3: cdef _get_nv_link_info_v1_dtype_offsets(): - cdef nvmlNvLinkInfo_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'is_nvle_enabled'], - 'formats': [_numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.isNvleEnabled)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvLinkInfo_v1_t), - }) + cdef nvmlNvLinkInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlNvLinkInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvLinkInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'is_nvle_enabled'], + 'formats': [_numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.isNvleEnabled)) - (pod), + ], + 'itemsize': sizeof(nvmlNvLinkInfo_v1_t), + }) + finally: + _cyb_free(pod) nv_link_info_v1_dtype = _get_nv_link_info_v1_dtype_offsets() @@ -16590,18 +16955,23 @@ cdef class NvLinkInfo_v1: cdef _get_nvlink_firmware_version_dtype_offsets(): - cdef nvmlNvlinkFirmwareVersion_t pod - return _numpy.dtype({ - 'names': ['ucode_type', 'major', 'minor', 'sub_minor'], - 'formats': [_numpy.uint8, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.ucodeType)) - (&pod), - (&(pod.major)) - (&pod), - (&(pod.minor)) - (&pod), - (&(pod.subMinor)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvlinkFirmwareVersion_t), - }) + cdef nvmlNvlinkFirmwareVersion_t *pod = _cyb_calloc(1, sizeof(nvmlNvlinkFirmwareVersion_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvlinkFirmwareVersion_t") + try: + return _numpy.dtype({ + 'names': ['ucode_type', 'major', 'minor', 'sub_minor'], + 'formats': [_numpy.uint8, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.ucodeType)) - (pod), + (&(pod.major)) - (pod), + (&(pod.minor)) - (pod), + (&(pod.subMinor)) - (pod), + ], + 'itemsize': sizeof(nvmlNvlinkFirmwareVersion_t), + }) + finally: + _cyb_free(pod) nvlink_firmware_version_dtype = _get_nvlink_firmware_version_dtype_offsets() cdef object nvlink_firmware_version_dtype_record = _numpy.dtype((_numpy.record, nvlink_firmware_version_dtype)) @@ -16786,15 +17156,20 @@ cdef class NvlinkFirmwareVersion: cdef _get_prm_counter_input_v1_dtype_offsets(): - cdef nvmlPRMCounterInput_v1_t pod - return _numpy.dtype({ - 'names': ['local_port'], - 'formats': [_numpy.uint32], - 'offsets': [ - (&(pod.localPort)) - (&pod), - ], - 'itemsize': sizeof(nvmlPRMCounterInput_v1_t), - }) + cdef nvmlPRMCounterInput_v1_t *pod = _cyb_calloc(1, sizeof(nvmlPRMCounterInput_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPRMCounterInput_v1_t") + try: + return _numpy.dtype({ + 'names': ['local_port'], + 'formats': [_numpy.uint32], + 'offsets': [ + (&(pod.localPort)) - (pod), + ], + 'itemsize': sizeof(nvmlPRMCounterInput_v1_t), + }) + finally: + _cyb_free(pod) prm_counter_input_v1_dtype = _get_prm_counter_input_v1_dtype_offsets() @@ -16923,18 +17298,23 @@ cdef class PRMCounterInput_v1: cdef _get_vgpu_scheduler_state_info_v2_dtype_offsets(): - cdef nvmlVgpuSchedulerStateInfo_v2_t pod - return _numpy.dtype({ - 'names': ['engine_id', 'scheduler_policy', 'avg_factor', 'timeslice'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.engineId)) - (&pod), - (&(pod.schedulerPolicy)) - (&pod), - (&(pod.avgFactor)) - (&pod), - (&(pod.timeslice)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuSchedulerStateInfo_v2_t), - }) + cdef nvmlVgpuSchedulerStateInfo_v2_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerStateInfo_v2_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuSchedulerStateInfo_v2_t") + try: + return _numpy.dtype({ + 'names': ['engine_id', 'scheduler_policy', 'avg_factor', 'timeslice'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.engineId)) - (pod), + (&(pod.schedulerPolicy)) - (pod), + (&(pod.avgFactor)) - (pod), + (&(pod.timeslice)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuSchedulerStateInfo_v2_t), + }) + finally: + _cyb_free(pod) vgpu_scheduler_state_info_v2_dtype = _get_vgpu_scheduler_state_info_v2_dtype_offsets() @@ -17084,21 +17464,26 @@ cdef class VgpuSchedulerStateInfo_v2: cdef _get_vgpu_scheduler_log_entry_v2_dtype_offsets(): - cdef nvmlVgpuSchedulerLogEntry_v2_t pod - return _numpy.dtype({ - 'names': ['timestamp', 'time_run_total', 'time_run', 'sw_runlist_id', 'target_time_slice', 'cumulative_preemption_time', 'weight'], - 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint32, _numpy.uint64, _numpy.uint64, _numpy.uint32], - 'offsets': [ - (&(pod.timestamp)) - (&pod), - (&(pod.timeRunTotal)) - (&pod), - (&(pod.timeRun)) - (&pod), - (&(pod.swRunlistId)) - (&pod), - (&(pod.targetTimeSlice)) - (&pod), - (&(pod.cumulativePreemptionTime)) - (&pod), - (&(pod.weight)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuSchedulerLogEntry_v2_t), - }) + cdef nvmlVgpuSchedulerLogEntry_v2_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerLogEntry_v2_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuSchedulerLogEntry_v2_t") + try: + return _numpy.dtype({ + 'names': ['timestamp', 'time_run_total', 'time_run', 'sw_runlist_id', 'target_time_slice', 'cumulative_preemption_time', 'weight'], + 'formats': [_numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint32, _numpy.uint64, _numpy.uint64, _numpy.uint32], + 'offsets': [ + (&(pod.timestamp)) - (pod), + (&(pod.timeRunTotal)) - (pod), + (&(pod.timeRun)) - (pod), + (&(pod.swRunlistId)) - (pod), + (&(pod.targetTimeSlice)) - (pod), + (&(pod.cumulativePreemptionTime)) - (pod), + (&(pod.weight)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuSchedulerLogEntry_v2_t), + }) + finally: + _cyb_free(pod) vgpu_scheduler_log_entry_v2_dtype = _get_vgpu_scheduler_log_entry_v2_dtype_offsets() cdef object vgpu_scheduler_log_entry_v2_dtype_record = _numpy.dtype((_numpy.record, vgpu_scheduler_log_entry_v2_dtype)) @@ -17322,18 +17707,23 @@ cdef class VgpuSchedulerLogEntry_v2: cdef _get_vgpu_scheduler_state_v2_dtype_offsets(): - cdef nvmlVgpuSchedulerState_v2_t pod - return _numpy.dtype({ - 'names': ['engine_id', 'scheduler_policy', 'avg_factor', 'frequency'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.engineId)) - (&pod), - (&(pod.schedulerPolicy)) - (&pod), - (&(pod.avgFactor)) - (&pod), - (&(pod.frequency)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuSchedulerState_v2_t), - }) + cdef nvmlVgpuSchedulerState_v2_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerState_v2_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuSchedulerState_v2_t") + try: + return _numpy.dtype({ + 'names': ['engine_id', 'scheduler_policy', 'avg_factor', 'frequency'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.engineId)) - (pod), + (&(pod.schedulerPolicy)) - (pod), + (&(pod.avgFactor)) - (pod), + (&(pod.frequency)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuSchedulerState_v2_t), + }) + finally: + _cyb_free(pod) vgpu_scheduler_state_v2_dtype = _get_vgpu_scheduler_state_v2_dtype_offsets() @@ -17483,15 +17873,20 @@ cdef class VgpuSchedulerState_v2: cdef _get_bbx_time_data_v1_dtype_offsets(): - cdef nvmlBBXTimeData_v1_t pod - return _numpy.dtype({ - 'names': ['time_run'], - 'formats': [_numpy.uint32], - 'offsets': [ - (&(pod.timeRun)) - (&pod), - ], - 'itemsize': sizeof(nvmlBBXTimeData_v1_t), - }) + cdef nvmlBBXTimeData_v1_t *pod = _cyb_calloc(1, sizeof(nvmlBBXTimeData_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlBBXTimeData_v1_t") + try: + return _numpy.dtype({ + 'names': ['time_run'], + 'formats': [_numpy.uint32], + 'offsets': [ + (&(pod.timeRun)) - (pod), + ], + 'itemsize': sizeof(nvmlBBXTimeData_v1_t), + }) + finally: + _cyb_free(pod) bbx_time_data_v1_dtype = _get_bbx_time_data_v1_dtype_offsets() @@ -17608,20 +18003,25 @@ cdef class BBXTimeData_v1: cdef _get_remapped_rows_info_v2_dtype_offsets(): - cdef nvmlRemappedRowsInfo_v2_t pod - return _numpy.dtype({ - 'names': ['corr_active_remaps', 'corr_inactive_remaps', 'unc_active_remaps', 'unc_inactive_remaps', 'b_pending', 'b_failure_occurred'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.corrActiveRemaps)) - (&pod), - (&(pod.corrInactiveRemaps)) - (&pod), - (&(pod.uncActiveRemaps)) - (&pod), - (&(pod.uncInactiveRemaps)) - (&pod), - (&(pod.bPending)) - (&pod), - (&(pod.bFailureOccurred)) - (&pod), - ], - 'itemsize': sizeof(nvmlRemappedRowsInfo_v2_t), - }) + cdef nvmlRemappedRowsInfo_v2_t *pod = _cyb_calloc(1, sizeof(nvmlRemappedRowsInfo_v2_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlRemappedRowsInfo_v2_t") + try: + return _numpy.dtype({ + 'names': ['corr_active_remaps', 'corr_inactive_remaps', 'unc_active_remaps', 'unc_inactive_remaps', 'b_pending', 'b_failure_occurred'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.corrActiveRemaps)) - (pod), + (&(pod.corrInactiveRemaps)) - (pod), + (&(pod.uncActiveRemaps)) - (pod), + (&(pod.uncInactiveRemaps)) - (pod), + (&(pod.bPending)) - (pod), + (&(pod.bFailureOccurred)) - (pod), + ], + 'itemsize': sizeof(nvmlRemappedRowsInfo_v2_t), + }) + finally: + _cyb_free(pod) remapped_rows_info_v2_dtype = _get_remapped_rows_info_v2_dtype_offsets() @@ -17793,24 +18193,29 @@ cdef class RemappedRowsInfo_v2: cdef _get_accounting_stats_v2_dtype_offsets(): - cdef nvmlAccountingStats_v2_t pod - return _numpy.dtype({ - 'names': ['pid', 'is_running', 'gpu_utilization', 'memory_utilization', 'max_memory_usage', 'sample_count', 'sum_gpu_util', 'sum_fb_util', 'time', 'start_time'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint64, _numpy.uint32, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.pid)) - (&pod), - (&(pod.isRunning)) - (&pod), - (&(pod.gpuUtilization)) - (&pod), - (&(pod.memoryUtilization)) - (&pod), - (&(pod.maxMemoryUsage)) - (&pod), - (&(pod.sampleCount)) - (&pod), - (&(pod.sumGpuUtil)) - (&pod), - (&(pod.sumFbUtil)) - (&pod), - (&(pod.time)) - (&pod), - (&(pod.startTime)) - (&pod), - ], - 'itemsize': sizeof(nvmlAccountingStats_v2_t), - }) + cdef nvmlAccountingStats_v2_t *pod = _cyb_calloc(1, sizeof(nvmlAccountingStats_v2_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlAccountingStats_v2_t") + try: + return _numpy.dtype({ + 'names': ['pid', 'is_running', 'gpu_utilization', 'memory_utilization', 'max_memory_usage', 'sample_count', 'sum_gpu_util', 'sum_fb_util', 'time', 'start_time'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint64, _numpy.uint32, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.pid)) - (pod), + (&(pod.isRunning)) - (pod), + (&(pod.gpuUtilization)) - (pod), + (&(pod.memoryUtilization)) - (pod), + (&(pod.maxMemoryUsage)) - (pod), + (&(pod.sampleCount)) - (pod), + (&(pod.sumGpuUtil)) - (pod), + (&(pod.sumFbUtil)) - (pod), + (&(pod.time)) - (pod), + (&(pod.startTime)) - (pod), + ], + 'itemsize': sizeof(nvmlAccountingStats_v2_t), + }) + finally: + _cyb_free(pod) accounting_stats_v2_dtype = _get_accounting_stats_v2_dtype_offsets() @@ -18026,17 +18431,22 @@ cdef class AccountingStats_v2: cdef _get_cper_cursor_v1_dtype_offsets(): - cdef nvmlCPERCursor_v1_t pod - return _numpy.dtype({ - 'names': ['cper_type_mask', 'uuid', 'handle'], - 'formats': [_numpy.uint32, (_numpy.int8, 80), _numpy.uint64], - 'offsets': [ - (&(pod.cperTypeMask)) - (&pod), - (&(pod.uuid)) - (&pod), - (&(pod.handle)) - (&pod), - ], - 'itemsize': sizeof(nvmlCPERCursor_v1_t), - }) + cdef nvmlCPERCursor_v1_t *pod = _cyb_calloc(1, sizeof(nvmlCPERCursor_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlCPERCursor_v1_t") + try: + return _numpy.dtype({ + 'names': ['cper_type_mask', 'uuid', 'handle'], + 'formats': [_numpy.uint32, (_numpy.int8, 80), _numpy.uint64], + 'offsets': [ + (&(pod.cperTypeMask)) - (pod), + (&(pod.uuid)) - (pod), + (&(pod.handle)) - (pod), + ], + 'itemsize': sizeof(nvmlCPERCursor_v1_t), + }) + finally: + _cyb_free(pod) cper_cursor_v1_dtype = _get_cper_cursor_v1_dtype_offsets() @@ -18191,17 +18601,22 @@ cdef class CPERCursor_v1: cdef _get_set_memory_limits_v1_dtype_offsets(): - cdef nvmlSetMemoryLimits_v1_t pod - return _numpy.dtype({ - 'names': ['name_space', 'soft_limit', 'hard_limit'], - 'formats': [_numpy.intp, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.nameSpace)) - (&pod), - (&(pod.softLimit)) - (&pod), - (&(pod.hardLimit)) - (&pod), - ], - 'itemsize': sizeof(nvmlSetMemoryLimits_v1_t), - }) + cdef nvmlSetMemoryLimits_v1_t *pod = _cyb_calloc(1, sizeof(nvmlSetMemoryLimits_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlSetMemoryLimits_v1_t") + try: + return _numpy.dtype({ + 'names': ['name_space', 'soft_limit', 'hard_limit'], + 'formats': [_numpy.intp, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.nameSpace)) - (pod), + (&(pod.softLimit)) - (pod), + (&(pod.hardLimit)) - (pod), + ], + 'itemsize': sizeof(nvmlSetMemoryLimits_v1_t), + }) + finally: + _cyb_free(pod) set_memory_limits_v1_dtype = _get_set_memory_limits_v1_dtype_offsets() @@ -18349,18 +18764,23 @@ cdef class SetMemoryLimits_v1: cdef _get_get_memory_limits_v1_dtype_offsets(): - cdef nvmlGetMemoryLimits_v1_t pod - return _numpy.dtype({ - 'names': ['name_space', 'soft_limit', 'hard_limit', 'current_used'], - 'formats': [_numpy.intp, _numpy.uint64, _numpy.uint64, _numpy.uint64], - 'offsets': [ - (&(pod.nameSpace)) - (&pod), - (&(pod.softLimit)) - (&pod), - (&(pod.hardLimit)) - (&pod), - (&(pod.currentUsed)) - (&pod), - ], - 'itemsize': sizeof(nvmlGetMemoryLimits_v1_t), - }) + cdef nvmlGetMemoryLimits_v1_t *pod = _cyb_calloc(1, sizeof(nvmlGetMemoryLimits_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGetMemoryLimits_v1_t") + try: + return _numpy.dtype({ + 'names': ['name_space', 'soft_limit', 'hard_limit', 'current_used'], + 'formats': [_numpy.intp, _numpy.uint64, _numpy.uint64, _numpy.uint64], + 'offsets': [ + (&(pod.nameSpace)) - (pod), + (&(pod.softLimit)) - (pod), + (&(pod.hardLimit)) - (pod), + (&(pod.currentUsed)) - (pod), + ], + 'itemsize': sizeof(nvmlGetMemoryLimits_v1_t), + }) + finally: + _cyb_free(pod) get_memory_limits_v1_dtype = _get_get_memory_limits_v1_dtype_offsets() @@ -18519,15 +18939,20 @@ cdef class GetMemoryLimits_v1: cdef _get_pmgr_pwr_tuple_dtype_offsets(): - cdef nvmlPmgrPwrTuple_t pod - return _numpy.dtype({ - 'names': ['pwrm_w'], - 'formats': [_numpy.uint32], - 'offsets': [ - (&(pod.pwrmW)) - (&pod), - ], - 'itemsize': sizeof(nvmlPmgrPwrTuple_t), - }) + cdef nvmlPmgrPwrTuple_t *pod = _cyb_calloc(1, sizeof(nvmlPmgrPwrTuple_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPmgrPwrTuple_t") + try: + return _numpy.dtype({ + 'names': ['pwrm_w'], + 'formats': [_numpy.uint32], + 'offsets': [ + (&(pod.pwrmW)) - (pod), + ], + 'itemsize': sizeof(nvmlPmgrPwrTuple_t), + }) + finally: + _cyb_free(pod) pmgr_pwr_tuple_dtype = _get_pmgr_pwr_tuple_dtype_offsets() cdef object pmgr_pwr_tuple_dtype_record = _numpy.dtype((_numpy.record, pmgr_pwr_tuple_dtype)) @@ -18673,16 +19098,21 @@ cdef class PmgrPwrTuple: cdef _get_rail_metrics_dtype_offsets(): - cdef nvmlRailMetrics_t pod - return _numpy.dtype({ - 'names': ['freqk_hz', 'util_pct'], - 'formats': [_numpy.uint32, _numpy.uint64], - 'offsets': [ - (&(pod.freqkHz)) - (&pod), - (&(pod.utilPct)) - (&pod), - ], - 'itemsize': sizeof(nvmlRailMetrics_t), - }) + cdef nvmlRailMetrics_t *pod = _cyb_calloc(1, sizeof(nvmlRailMetrics_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlRailMetrics_t") + try: + return _numpy.dtype({ + 'names': ['freqk_hz', 'util_pct'], + 'formats': [_numpy.uint32, _numpy.uint64], + 'offsets': [ + (&(pod.freqkHz)) - (pod), + (&(pod.utilPct)) - (pod), + ], + 'itemsize': sizeof(nvmlRailMetrics_t), + }) + finally: + _cyb_free(pod) rail_metrics_dtype = _get_rail_metrics_dtype_offsets() cdef object rail_metrics_dtype_record = _numpy.dtype((_numpy.record, rail_metrics_dtype)) @@ -18841,15 +19271,20 @@ cdef class RailMetrics: cdef _get_pwr_model_metrics_dlppm1x_perf_dtype_offsets(): - cdef nvmlPwrModelMetricsDlppm1xPerf_t pod - return _numpy.dtype({ - 'names': ['perfms'], - 'formats': [_numpy.uint32], - 'offsets': [ - (&(pod.perfms)) - (&pod), - ], - 'itemsize': sizeof(nvmlPwrModelMetricsDlppm1xPerf_t), - }) + cdef nvmlPwrModelMetricsDlppm1xPerf_t *pod = _cyb_calloc(1, sizeof(nvmlPwrModelMetricsDlppm1xPerf_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPwrModelMetricsDlppm1xPerf_t") + try: + return _numpy.dtype({ + 'names': ['perfms'], + 'formats': [_numpy.uint32], + 'offsets': [ + (&(pod.perfms)) - (pod), + ], + 'itemsize': sizeof(nvmlPwrModelMetricsDlppm1xPerf_t), + }) + finally: + _cyb_free(pod) pwr_model_metrics_dlppm1x_perf_dtype = _get_pwr_model_metrics_dlppm1x_perf_dtype_offsets() cdef object pwr_model_metrics_dlppm1x_perf_dtype_record = _numpy.dtype((_numpy.record, pwr_model_metrics_dlppm1x_perf_dtype)) @@ -18995,16 +19430,21 @@ cdef class PwrModelMetricsDlppm1xPerf: cdef _get_pwr_model_metrics_sample_pfpp1x_dtype_offsets(): - cdef nvmlPwrModelMetricsSamplePfpp1x_t pod - return _numpy.dtype({ - 'names': ['freqk_hz', 'est_tgp_pwrm_w'], - 'formats': [(_numpy.uint32, 16), _numpy.uint32], - 'offsets': [ - (&(pod.freqkHz)) - (&pod), - (&(pod.estTgpPwrmW)) - (&pod), - ], - 'itemsize': sizeof(nvmlPwrModelMetricsSamplePfpp1x_t), - }) + cdef nvmlPwrModelMetricsSamplePfpp1x_t *pod = _cyb_calloc(1, sizeof(nvmlPwrModelMetricsSamplePfpp1x_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPwrModelMetricsSamplePfpp1x_t") + try: + return _numpy.dtype({ + 'names': ['freqk_hz', 'est_tgp_pwrm_w'], + 'formats': [(_numpy.uint32, 16), _numpy.uint32], + 'offsets': [ + (&(pod.freqkHz)) - (pod), + (&(pod.estTgpPwrmW)) - (pod), + ], + 'itemsize': sizeof(nvmlPwrModelMetricsSamplePfpp1x_t), + }) + finally: + _cyb_free(pod) pwr_model_metrics_sample_pfpp1x_dtype = _get_pwr_model_metrics_sample_pfpp1x_dtype_offsets() cdef object pwr_model_metrics_sample_pfpp1x_dtype_record = _numpy.dtype((_numpy.record, pwr_model_metrics_sample_pfpp1x_dtype)) @@ -19161,16 +19601,21 @@ cdef class PwrModelMetricsSamplePfpp1x: cdef _get_pwr_model_operating_point_pfpp1x_dtype_offsets(): - cdef nvmlPwrModelOperatingPointPfpp1x_t pod - return _numpy.dtype({ - 'names': ['freqk_hz', 'pwrm_w'], - 'formats': [_numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.freqkHz)) - (&pod), - (&(pod.pwrmW)) - (&pod), - ], - 'itemsize': sizeof(nvmlPwrModelOperatingPointPfpp1x_t), - }) + cdef nvmlPwrModelOperatingPointPfpp1x_t *pod = _cyb_calloc(1, sizeof(nvmlPwrModelOperatingPointPfpp1x_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPwrModelOperatingPointPfpp1x_t") + try: + return _numpy.dtype({ + 'names': ['freqk_hz', 'pwrm_w'], + 'formats': [_numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.freqkHz)) - (pod), + (&(pod.pwrmW)) - (pod), + ], + 'itemsize': sizeof(nvmlPwrModelOperatingPointPfpp1x_t), + }) + finally: + _cyb_free(pod) pwr_model_operating_point_pfpp1x_dtype = _get_pwr_model_operating_point_pfpp1x_dtype_offsets() cdef object pwr_model_operating_point_pfpp1x_dtype_record = _numpy.dtype((_numpy.record, pwr_model_operating_point_pfpp1x_dtype)) @@ -19329,19 +19774,24 @@ cdef class PwrModelOperatingPointPfpp1x: cdef _get_adaptive_tgp_mode_info_v1_dtype_offsets(): - cdef nvmlAdaptiveTgpModeInfo_v1_t pod - return _numpy.dtype({ - 'names': ['in_band_enable_request', 'feature_allowed_by_admin', 'admin_override_enabled', 'enablement_status', 'adjusted_limit_mw'], - 'formats': [_numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32, _numpy.uint32], - 'offsets': [ - (&(pod.inBandEnableRequest)) - (&pod), - (&(pod.featureAllowedByAdmin)) - (&pod), - (&(pod.adminOverrideEnabled)) - (&pod), - (&(pod.enablementStatus)) - (&pod), - (&(pod.adjustedLimitMw)) - (&pod), - ], - 'itemsize': sizeof(nvmlAdaptiveTgpModeInfo_v1_t), - }) + cdef nvmlAdaptiveTgpModeInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlAdaptiveTgpModeInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlAdaptiveTgpModeInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['in_band_enable_request', 'feature_allowed_by_admin', 'admin_override_enabled', 'enablement_status', 'adjusted_limit_mw'], + 'formats': [_numpy.int32, _numpy.int32, _numpy.int32, _numpy.int32, _numpy.uint32], + 'offsets': [ + (&(pod.inBandEnableRequest)) - (pod), + (&(pod.featureAllowedByAdmin)) - (pod), + (&(pod.adminOverrideEnabled)) - (pod), + (&(pod.enablementStatus)) - (pod), + (&(pod.adjustedLimitMw)) - (pod), + ], + 'itemsize': sizeof(nvmlAdaptiveTgpModeInfo_v1_t), + }) + finally: + _cyb_free(pod) adaptive_tgp_mode_info_v1_dtype = _get_adaptive_tgp_mode_info_v1_dtype_offsets() @@ -19502,15 +19952,20 @@ cdef class AdaptiveTgpModeInfo_v1: cdef _get_event_set_get_context_count_v1_dtype_offsets(): - cdef nvmlEventSetGetContextCount_v1_t pod - return _numpy.dtype({ - 'names': ['count'], - 'formats': [_numpy.uint32], - 'offsets': [ - (&(pod.count)) - (&pod), - ], - 'itemsize': sizeof(nvmlEventSetGetContextCount_v1_t), - }) + cdef nvmlEventSetGetContextCount_v1_t *pod = _cyb_calloc(1, sizeof(nvmlEventSetGetContextCount_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlEventSetGetContextCount_v1_t") + try: + return _numpy.dtype({ + 'names': ['count'], + 'formats': [_numpy.uint32], + 'offsets': [ + (&(pod.count)) - (pod), + ], + 'itemsize': sizeof(nvmlEventSetGetContextCount_v1_t), + }) + finally: + _cyb_free(pod) event_set_get_context_count_v1_dtype = _get_event_set_get_context_count_v1_dtype_offsets() @@ -19627,19 +20082,24 @@ cdef class EventSetGetContextCount_v1: cdef _get_event_set_get_context_info_v1_dtype_offsets(): - cdef nvmlEventSetGetContextInfo_v1_t pod - return _numpy.dtype({ - 'names': ['index', 'nvml_gpu_operational_event_context_type', 'source_event_context_type', 'data_size', 'data_format_version'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint16], - 'offsets': [ - (&(pod.index)) - (&pod), - (&(pod.nvmlGpuOperationalEventContextType)) - (&pod), - (&(pod.sourceEventContextType)) - (&pod), - (&(pod.dataSize)) - (&pod), - (&(pod.dataFormatVersion)) - (&pod), - ], - 'itemsize': sizeof(nvmlEventSetGetContextInfo_v1_t), - }) + cdef nvmlEventSetGetContextInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlEventSetGetContextInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlEventSetGetContextInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['index', 'nvml_gpu_operational_event_context_type', 'source_event_context_type', 'data_size', 'data_format_version'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint16], + 'offsets': [ + (&(pod.index)) - (pod), + (&(pod.nvmlGpuOperationalEventContextType)) - (pod), + (&(pod.sourceEventContextType)) - (pod), + (&(pod.dataSize)) - (pod), + (&(pod.dataFormatVersion)) - (pod), + ], + 'itemsize': sizeof(nvmlEventSetGetContextInfo_v1_t), + }) + finally: + _cyb_free(pod) event_set_get_context_info_v1_dtype = _get_event_set_get_context_info_v1_dtype_offsets() @@ -19800,16 +20260,21 @@ cdef class EventSetGetContextInfo_v1: cdef _get_event_set_get_gpu_operational_event_context_legacy_xid_v1_dtype_offsets(): - cdef nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1_t pod - return _numpy.dtype({ - 'names': ['index', 'xid_code'], - 'formats': [_numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.index)) - (&pod), - (&(pod.xidCode)) - (&pod), - ], - 'itemsize': sizeof(nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1_t), - }) + cdef nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1_t *pod = _cyb_calloc(1, sizeof(nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1_t") + try: + return _numpy.dtype({ + 'names': ['index', 'xid_code'], + 'formats': [_numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.index)) - (pod), + (&(pod.xidCode)) - (pod), + ], + 'itemsize': sizeof(nvmlEventSetGetGpuOperationalEventContextLegacyXid_v1_t), + }) + finally: + _cyb_free(pod) event_set_get_gpu_operational_event_context_legacy_xid_v1_dtype = _get_event_set_get_gpu_operational_event_context_legacy_xid_v1_dtype_offsets() @@ -19937,16 +20402,21 @@ cdef class EventSetGetGpuOperationalEventContextLegacyXid_v1: cdef _get_gpu_fabric_clique_v1_dtype_offsets(): - cdef nvmlGpuFabricClique_v1_t pod - return _numpy.dtype({ - 'names': ['type', 'id'], - 'formats': [_numpy.uint8, _numpy.uint32], - 'offsets': [ - (&(pod.type)) - (&pod), - (&(pod.id)) - (&pod), - ], - 'itemsize': sizeof(nvmlGpuFabricClique_v1_t), - }) + cdef nvmlGpuFabricClique_v1_t *pod = _cyb_calloc(1, sizeof(nvmlGpuFabricClique_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGpuFabricClique_v1_t") + try: + return _numpy.dtype({ + 'names': ['type', 'id'], + 'formats': [_numpy.uint8, _numpy.uint32], + 'offsets': [ + (&(pod.type)) - (pod), + (&(pod.id)) - (pod), + ], + 'itemsize': sizeof(nvmlGpuFabricClique_v1_t), + }) + finally: + _cyb_free(pod) gpu_fabric_clique_v1_dtype = _get_gpu_fabric_clique_v1_dtype_offsets() @@ -20086,17 +20556,22 @@ cdef class GpuFabricClique_v1: cdef _get_gpu_operational_event_config_v1_dtype_offsets(): - cdef nvmlGpuOperationalEventConfig_v1_t pod - return _numpy.dtype({ - 'names': ['uuid', 'min_log_level', 'min_severity'], - 'formats': [(_numpy.int8, 96), _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.uuid)) - (&pod), - (&(pod.minLogLevel)) - (&pod), - (&(pod.minSeverity)) - (&pod), - ], - 'itemsize': sizeof(nvmlGpuOperationalEventConfig_v1_t), - }) + cdef nvmlGpuOperationalEventConfig_v1_t *pod = _cyb_calloc(1, sizeof(nvmlGpuOperationalEventConfig_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGpuOperationalEventConfig_v1_t") + try: + return _numpy.dtype({ + 'names': ['uuid', 'min_log_level', 'min_severity'], + 'formats': [(_numpy.int8, 96), _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.uuid)) - (pod), + (&(pod.minLogLevel)) - (pod), + (&(pod.minSeverity)) - (pod), + ], + 'itemsize': sizeof(nvmlGpuOperationalEventConfig_v1_t), + }) + finally: + _cyb_free(pod) gpu_operational_event_config_v1_dtype = _get_gpu_operational_event_config_v1_dtype_offsets() @@ -20239,39 +20714,44 @@ cdef class GpuOperationalEventConfig_v1: cdef _get_event_set_wait_v3_dtype_offsets(): - cdef nvmlEventSetWait_v3_t pod - return _numpy.dtype({ - 'names': ['timeout_ms', 'data_type', 'uuid', 'source_module', 'event_type', 'event_data', 'group_cursor', 'instance_id', 'timestamp_usec', 'trace_id', 'gpu_instance_id', 'compute_instance_id', 'severity', 'category_id', 'module_event_code', 'scope', 'originator', 'module_instance', 'chiplet_id', 'log_level', 'attributes', 'group_cper_size', 'group_attributes', 'group_size', 'group_index'], - 'formats': [_numpy.uint32, _numpy.uint32, (_numpy.int8, 96), (_numpy.int8, 16), _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint8, _numpy.uint8], - 'offsets': [ - (&(pod.timeoutMs)) - (&pod), - (&(pod.dataType)) - (&pod), - (&(pod.uuid)) - (&pod), - (&(pod.sourceModule)) - (&pod), - (&(pod.eventType)) - (&pod), - (&(pod.eventData)) - (&pod), - (&(pod.groupCursor)) - (&pod), - (&(pod.instanceId)) - (&pod), - (&(pod.timestampUsec)) - (&pod), - (&(pod.traceId)) - (&pod), - (&(pod.gpuInstanceId)) - (&pod), - (&(pod.computeInstanceId)) - (&pod), - (&(pod.severity)) - (&pod), - (&(pod.categoryId)) - (&pod), - (&(pod.moduleEventCode)) - (&pod), - (&(pod.scope)) - (&pod), - (&(pod.originator)) - (&pod), - (&(pod.moduleInstance)) - (&pod), - (&(pod.chipletId)) - (&pod), - (&(pod.logLevel)) - (&pod), - (&(pod.attributes)) - (&pod), - (&(pod.groupCperSize)) - (&pod), - (&(pod.groupAttributes)) - (&pod), - (&(pod.groupSize)) - (&pod), - (&(pod.groupIndex)) - (&pod), - ], - 'itemsize': sizeof(nvmlEventSetWait_v3_t), - }) + cdef nvmlEventSetWait_v3_t *pod = _cyb_calloc(1, sizeof(nvmlEventSetWait_v3_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlEventSetWait_v3_t") + try: + return _numpy.dtype({ + 'names': ['timeout_ms', 'data_type', 'uuid', 'source_module', 'event_type', 'event_data', 'group_cursor', 'instance_id', 'timestamp_usec', 'trace_id', 'gpu_instance_id', 'compute_instance_id', 'severity', 'category_id', 'module_event_code', 'scope', 'originator', 'module_instance', 'chiplet_id', 'log_level', 'attributes', 'group_cper_size', 'group_attributes', 'group_size', 'group_index'], + 'formats': [_numpy.uint32, _numpy.uint32, (_numpy.int8, 96), (_numpy.int8, 16), _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint8, _numpy.uint8], + 'offsets': [ + (&(pod.timeoutMs)) - (pod), + (&(pod.dataType)) - (pod), + (&(pod.uuid)) - (pod), + (&(pod.sourceModule)) - (pod), + (&(pod.eventType)) - (pod), + (&(pod.eventData)) - (pod), + (&(pod.groupCursor)) - (pod), + (&(pod.instanceId)) - (pod), + (&(pod.timestampUsec)) - (pod), + (&(pod.traceId)) - (pod), + (&(pod.gpuInstanceId)) - (pod), + (&(pod.computeInstanceId)) - (pod), + (&(pod.severity)) - (pod), + (&(pod.categoryId)) - (pod), + (&(pod.moduleEventCode)) - (pod), + (&(pod.scope)) - (pod), + (&(pod.originator)) - (pod), + (&(pod.moduleInstance)) - (pod), + (&(pod.chipletId)) - (pod), + (&(pod.logLevel)) - (pod), + (&(pod.attributes)) - (pod), + (&(pod.groupCperSize)) - (pod), + (&(pod.groupAttributes)) - (pod), + (&(pod.groupSize)) - (pod), + (&(pod.groupIndex)) - (pod), + ], + 'itemsize': sizeof(nvmlEventSetWait_v3_t), + }) + finally: + _cyb_free(pod) event_set_wait_v3_dtype = _get_event_set_wait_v3_dtype_offsets() @@ -20660,17 +21140,22 @@ cdef class EventSetWait_v3: cdef _get_nvlink_set_bw_mode_async_v1_dtype_offsets(): - cdef nvmlNvlinkSetBwModeAsync_v1_t pod - return _numpy.dtype({ - 'names': ['b_set_best', 'bw_mode', 'async_poll_timeout_ms'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.bSetBest)) - (&pod), - (&(pod.bwMode)) - (&pod), - (&(pod.asyncPollTimeoutMs)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvlinkSetBwModeAsync_v1_t), - }) + cdef nvmlNvlinkSetBwModeAsync_v1_t *pod = _cyb_calloc(1, sizeof(nvmlNvlinkSetBwModeAsync_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvlinkSetBwModeAsync_v1_t") + try: + return _numpy.dtype({ + 'names': ['b_set_best', 'bw_mode', 'async_poll_timeout_ms'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.bSetBest)) - (pod), + (&(pod.bwMode)) - (pod), + (&(pod.asyncPollTimeoutMs)) - (pod), + ], + 'itemsize': sizeof(nvmlNvlinkSetBwModeAsync_v1_t), + }) + finally: + _cyb_free(pod) nvlink_set_bw_mode_async_v1_dtype = _get_nvlink_set_bw_mode_async_v1_dtype_offsets() @@ -20809,19 +21294,24 @@ cdef class NvlinkSetBwModeAsync_v1: cdef _get_nvlink_telemetry_sample_v1_dtype_offsets(): - cdef nvmlNvlinkTelemetrySample_v1_t pod - return _numpy.dtype({ - 'names': ['link_id', 'sample_type', 'sample_count', 'samples', 'nvml_return'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.intp, _numpy.int32], - 'offsets': [ - (&(pod.linkId)) - (&pod), - (&(pod.sampleType)) - (&pod), - (&(pod.sampleCount)) - (&pod), - (&(pod.samples)) - (&pod), - (&(pod.nvmlReturn)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvlinkTelemetrySample_v1_t), - }) + cdef nvmlNvlinkTelemetrySample_v1_t *pod = _cyb_calloc(1, sizeof(nvmlNvlinkTelemetrySample_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvlinkTelemetrySample_v1_t") + try: + return _numpy.dtype({ + 'names': ['link_id', 'sample_type', 'sample_count', 'samples', 'nvml_return'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.intp, _numpy.int32], + 'offsets': [ + (&(pod.linkId)) - (pod), + (&(pod.sampleType)) - (pod), + (&(pod.sampleCount)) - (pod), + (&(pod.samples)) - (pod), + (&(pod.nvmlReturn)) - (pod), + ], + 'itemsize': sizeof(nvmlNvlinkTelemetrySample_v1_t), + }) + finally: + _cyb_free(pod) nvlink_telemetry_sample_v1_dtype = _get_nvlink_telemetry_sample_v1_dtype_offsets() cdef object nvlink_telemetry_sample_v1_dtype_record = _numpy.dtype((_numpy.record, nvlink_telemetry_sample_v1_dtype)) @@ -21019,16 +21509,21 @@ cdef class NvlinkTelemetrySample_v1: cdef _get_ecc_bank_remapper_histogram_v1_dtype_offsets(): - cdef nvmlEccBankRemapperHistogram_v1_t pod - return _numpy.dtype({ - 'names': ['max_spare_group_count', 'no_spare_group_count'], - 'formats': [_numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.maxSpareGroupCount)) - (&pod), - (&(pod.noSpareGroupCount)) - (&pod), - ], - 'itemsize': sizeof(nvmlEccBankRemapperHistogram_v1_t), - }) + cdef nvmlEccBankRemapperHistogram_v1_t *pod = _cyb_calloc(1, sizeof(nvmlEccBankRemapperHistogram_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlEccBankRemapperHistogram_v1_t") + try: + return _numpy.dtype({ + 'names': ['max_spare_group_count', 'no_spare_group_count'], + 'formats': [_numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.maxSpareGroupCount)) - (pod), + (&(pod.noSpareGroupCount)) - (pod), + ], + 'itemsize': sizeof(nvmlEccBankRemapperHistogram_v1_t), + }) + finally: + _cyb_free(pod) ecc_bank_remapper_histogram_v1_dtype = _get_ecc_bank_remapper_histogram_v1_dtype_offsets() @@ -21168,15 +21663,20 @@ cdef class EccBankRemapperHistogram_v1: cdef _get_gpu_uptime_v1_dtype_offsets(): - cdef nvmlGpuUptime_v1_t pod - return _numpy.dtype({ - 'names': ['uptime'], - 'formats': [_numpy.uint32], - 'offsets': [ - (&(pod.uptime)) - (&pod), - ], - 'itemsize': sizeof(nvmlGpuUptime_v1_t), - }) + cdef nvmlGpuUptime_v1_t *pod = _cyb_calloc(1, sizeof(nvmlGpuUptime_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGpuUptime_v1_t") + try: + return _numpy.dtype({ + 'names': ['uptime'], + 'formats': [_numpy.uint32], + 'offsets': [ + (&(pod.uptime)) - (pod), + ], + 'itemsize': sizeof(nvmlGpuUptime_v1_t), + }) + finally: + _cyb_free(pod) gpu_uptime_v1_dtype = _get_gpu_uptime_v1_dtype_offsets() @@ -21293,20 +21793,25 @@ cdef class GpuUptime_v1: cdef _get_system_conf_compute_settings_v2_dtype_offsets(): - cdef nvmlSystemConfComputeSettings_v2_t pod - return _numpy.dtype({ - 'names': ['version', 'environment', 'cc_feature', 'dev_tools_mode', 'multi_gpu_mode', 'tdisp_state'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.environment)) - (&pod), - (&(pod.ccFeature)) - (&pod), - (&(pod.devToolsMode)) - (&pod), - (&(pod.multiGpuMode)) - (&pod), - (&(pod.tdispState)) - (&pod), - ], - 'itemsize': sizeof(nvmlSystemConfComputeSettings_v2_t), - }) + cdef nvmlSystemConfComputeSettings_v2_t *pod = _cyb_calloc(1, sizeof(nvmlSystemConfComputeSettings_v2_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlSystemConfComputeSettings_v2_t") + try: + return _numpy.dtype({ + 'names': ['version', 'environment', 'cc_feature', 'dev_tools_mode', 'multi_gpu_mode', 'tdisp_state'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.environment)) - (pod), + (&(pod.ccFeature)) - (pod), + (&(pod.devToolsMode)) - (pod), + (&(pod.multiGpuMode)) - (pod), + (&(pod.tdispState)) - (pod), + ], + 'itemsize': sizeof(nvmlSystemConfComputeSettings_v2_t), + }) + finally: + _cyb_free(pod) system_conf_compute_settings_v2_dtype = _get_system_conf_compute_settings_v2_dtype_offsets() @@ -21478,18 +21983,23 @@ cdef class SystemConfComputeSettings_v2: cdef _get_nvlink_get_remap_table_info_v1_dtype_offsets(): - cdef nvmlNvlinkGetRemapTableInfo_v1_t pod - return _numpy.dtype({ - 'names': ['alid', 'fla_remap_tab_addr', 'gpa_remap_tab_addr', 'remap_tab_size'], - 'formats': [_numpy.uint32, (_numpy.uint32, 4096), (_numpy.uint32, 4096), _numpy.uint32], - 'offsets': [ - (&(pod.alid)) - (&pod), - (&(pod.flaRemapTabAddr)) - (&pod), - (&(pod.gpaRemapTabAddr)) - (&pod), - (&(pod.remapTabSize)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvlinkGetRemapTableInfo_v1_t), - }) + cdef nvmlNvlinkGetRemapTableInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlNvlinkGetRemapTableInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvlinkGetRemapTableInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['alid', 'fla_remap_tab_addr', 'gpa_remap_tab_addr', 'remap_tab_size'], + 'formats': [_numpy.uint32, (_numpy.uint32, 4096), (_numpy.uint32, 4096), _numpy.uint32], + 'offsets': [ + (&(pod.alid)) - (pod), + (&(pod.flaRemapTabAddr)) - (pod), + (&(pod.gpaRemapTabAddr)) - (pod), + (&(pod.remapTabSize)) - (pod), + ], + 'itemsize': sizeof(nvmlNvlinkGetRemapTableInfo_v1_t), + }) + finally: + _cyb_free(pod) nvlink_get_remap_table_info_v1_dtype = _get_nvlink_get_remap_table_info_v1_dtype_offsets() @@ -21650,15 +22160,20 @@ cdef class NvlinkGetRemapTableInfo_v1: cdef _get_nvlink_set_nvle_ready_v1_dtype_offsets(): - cdef nvmlNvlinkSetNvleReady_v1_t pod - return _numpy.dtype({ - 'names': ['b_nvle_ready'], - 'formats': [_numpy.uint8], - 'offsets': [ - (&(pod.bNvleReady)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvlinkSetNvleReady_v1_t), - }) + cdef nvmlNvlinkSetNvleReady_v1_t *pod = _cyb_calloc(1, sizeof(nvmlNvlinkSetNvleReady_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvlinkSetNvleReady_v1_t") + try: + return _numpy.dtype({ + 'names': ['b_nvle_ready'], + 'formats': [_numpy.uint8], + 'offsets': [ + (&(pod.bNvleReady)) - (pod), + ], + 'itemsize': sizeof(nvmlNvlinkSetNvleReady_v1_t), + }) + finally: + _cyb_free(pod) nvlink_set_nvle_ready_v1_dtype = _get_nvlink_set_nvle_ready_v1_dtype_offsets() @@ -21775,16 +22290,21 @@ cdef class NvlinkSetNvleReady_v1: cdef _get_nvlink_lock_remap_table_v1_dtype_offsets(): - cdef nvmlNvlinkLockRemapTable_v1_t pod - return _numpy.dtype({ - 'names': ['b_remap_table_locked', 'b_remap_table_lock_disabled'], - 'formats': [_numpy.uint8, _numpy.uint8], - 'offsets': [ - (&(pod.bRemapTableLocked)) - (&pod), - (&(pod.bRemapTableLockDisabled)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvlinkLockRemapTable_v1_t), - }) + cdef nvmlNvlinkLockRemapTable_v1_t *pod = _cyb_calloc(1, sizeof(nvmlNvlinkLockRemapTable_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvlinkLockRemapTable_v1_t") + try: + return _numpy.dtype({ + 'names': ['b_remap_table_locked', 'b_remap_table_lock_disabled'], + 'formats': [_numpy.uint8, _numpy.uint8], + 'offsets': [ + (&(pod.bRemapTableLocked)) - (pod), + (&(pod.bRemapTableLockDisabled)) - (pod), + ], + 'itemsize': sizeof(nvmlNvlinkLockRemapTable_v1_t), + }) + finally: + _cyb_free(pod) nvlink_lock_remap_table_v1_dtype = _get_nvlink_lock_remap_table_v1_dtype_offsets() @@ -21912,16 +22432,21 @@ cdef class NvlinkLockRemapTable_v1: cdef _get_nvlink_nvle_private_info_v1_dtype_offsets(): - cdef nvmlNvlinkNvlePrivateInfo_v1_t pod - return _numpy.dtype({ - 'names': ['data_', 'size_'], - 'formats': [(_numpy.uint8, 256), _numpy.uint32], - 'offsets': [ - (&(pod.data)) - (&pod), - (&(pod.size)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvlinkNvlePrivateInfo_v1_t), - }) + cdef nvmlNvlinkNvlePrivateInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlNvlinkNvlePrivateInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvlinkNvlePrivateInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['data_', 'size_'], + 'formats': [(_numpy.uint8, 256), _numpy.uint32], + 'offsets': [ + (&(pod.data)) - (pod), + (&(pod.size)) - (pod), + ], + 'itemsize': sizeof(nvmlNvlinkNvlePrivateInfo_v1_t), + }) + finally: + _cyb_free(pod) nvlink_nvle_private_info_v1_dtype = _get_nvlink_nvle_private_info_v1_dtype_offsets() @@ -22061,16 +22586,21 @@ cdef class NvlinkNvlePrivateInfo_v1: cdef _get_excluded_device_info_dtype_offsets(): - cdef nvmlExcludedDeviceInfo_t pod - return _numpy.dtype({ - 'names': ['pci_info', 'uuid'], - 'formats': [pci_info_dtype, (_numpy.int8, 80)], - 'offsets': [ - (&(pod.pciInfo)) - (&pod), - (&(pod.uuid)) - (&pod), - ], - 'itemsize': sizeof(nvmlExcludedDeviceInfo_t), - }) + cdef nvmlExcludedDeviceInfo_t *pod = _cyb_calloc(1, sizeof(nvmlExcludedDeviceInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlExcludedDeviceInfo_t") + try: + return _numpy.dtype({ + 'names': ['pci_info', 'uuid'], + 'formats': [pci_info_dtype, (_numpy.int8, 80)], + 'offsets': [ + (&(pod.pciInfo)) - (pod), + (&(pod.uuid)) - (pod), + ], + 'itemsize': sizeof(nvmlExcludedDeviceInfo_t), + }) + finally: + _cyb_free(pod) excluded_device_info_dtype = _get_excluded_device_info_dtype_offsets() @@ -22207,18 +22737,23 @@ cdef class ExcludedDeviceInfo: cdef _get_process_detail_list_v1_dtype_offsets(): - cdef nvmlProcessDetailList_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'mode', 'num_proc_array_entries', 'proc_array'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.intp], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.mode)) - (&pod), - (&(pod.numProcArrayEntries)) - (&pod), - (&(pod.procArray)) - (&pod), - ], - 'itemsize': sizeof(nvmlProcessDetailList_v1_t), - }) + cdef nvmlProcessDetailList_v1_t *pod = _cyb_calloc(1, sizeof(nvmlProcessDetailList_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlProcessDetailList_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'mode', 'num_proc_array_entries', 'proc_array'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.intp], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.mode)) - (pod), + (&(pod.numProcArrayEntries)) - (pod), + (&(pod.procArray)) - (pod), + ], + 'itemsize': sizeof(nvmlProcessDetailList_v1_t), + }) + finally: + _cyb_free(pod) process_detail_list_v1_dtype = _get_process_detail_list_v1_dtype_offsets() @@ -22370,16 +22905,21 @@ cdef class ProcessDetailList_v1: cdef _get_bridge_chip_hierarchy_dtype_offsets(): - cdef nvmlBridgeChipHierarchy_t pod - return _numpy.dtype({ - 'names': ['bridge_count', 'bridge_chip_info'], - 'formats': [_numpy.uint8, (bridge_chip_info_dtype, 128)], - 'offsets': [ - (&(pod.bridgeCount)) - (&pod), - (&(pod.bridgeChipInfo)) - (&pod), - ], - 'itemsize': sizeof(nvmlBridgeChipHierarchy_t), - }) + cdef nvmlBridgeChipHierarchy_t *pod = _cyb_calloc(1, sizeof(nvmlBridgeChipHierarchy_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlBridgeChipHierarchy_t") + try: + return _numpy.dtype({ + 'names': ['bridge_count', 'bridge_chip_info'], + 'formats': [_numpy.uint8, (bridge_chip_info_dtype, 128)], + 'offsets': [ + (&(pod.bridgeCount)) - (pod), + (&(pod.bridgeChipInfo)) - (pod), + ], + 'itemsize': sizeof(nvmlBridgeChipHierarchy_t), + }) + finally: + _cyb_free(pod) bridge_chip_hierarchy_dtype = _get_bridge_chip_hierarchy_dtype_offsets() @@ -22507,16 +23047,21 @@ cdef class BridgeChipHierarchy: cdef _get_sample_dtype_offsets(): - cdef nvmlSample_t pod - return _numpy.dtype({ - 'names': ['time_stamp', 'sample_value'], - 'formats': [_numpy.uint64, value_dtype], - 'offsets': [ - (&(pod.timeStamp)) - (&pod), - (&(pod.sampleValue)) - (&pod), - ], - 'itemsize': sizeof(nvmlSample_t), - }) + cdef nvmlSample_t *pod = _cyb_calloc(1, sizeof(nvmlSample_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlSample_t") + try: + return _numpy.dtype({ + 'names': ['time_stamp', 'sample_value'], + 'formats': [_numpy.uint64, value_dtype], + 'offsets': [ + (&(pod.timeStamp)) - (pod), + (&(pod.sampleValue)) - (pod), + ], + 'itemsize': sizeof(nvmlSample_t), + }) + finally: + _cyb_free(pod) sample_dtype = _get_sample_dtype_offsets() cdef object sample_dtype_record = _numpy.dtype((_numpy.record, sample_dtype)) @@ -22673,20 +23218,25 @@ cdef class Sample: cdef _get_vgpu_instance_utilization_sample_dtype_offsets(): - cdef nvmlVgpuInstanceUtilizationSample_t pod - return _numpy.dtype({ - 'names': ['vgpu_instance', 'time_stamp', 'sm_util', 'mem_util', 'enc_util', 'dec_util'], - 'formats': [_numpy.uint32, _numpy.uint64, value_dtype, value_dtype, value_dtype, value_dtype], - 'offsets': [ - (&(pod.vgpuInstance)) - (&pod), - (&(pod.timeStamp)) - (&pod), - (&(pod.smUtil)) - (&pod), - (&(pod.memUtil)) - (&pod), - (&(pod.encUtil)) - (&pod), - (&(pod.decUtil)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuInstanceUtilizationSample_t), - }) + cdef nvmlVgpuInstanceUtilizationSample_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuInstanceUtilizationSample_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuInstanceUtilizationSample_t") + try: + return _numpy.dtype({ + 'names': ['vgpu_instance', 'time_stamp', 'sm_util', 'mem_util', 'enc_util', 'dec_util'], + 'formats': [_numpy.uint32, _numpy.uint64, value_dtype, value_dtype, value_dtype, value_dtype], + 'offsets': [ + (&(pod.vgpuInstance)) - (pod), + (&(pod.timeStamp)) - (pod), + (&(pod.smUtil)) - (pod), + (&(pod.memUtil)) - (pod), + (&(pod.encUtil)) - (pod), + (&(pod.decUtil)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuInstanceUtilizationSample_t), + }) + finally: + _cyb_free(pod) vgpu_instance_utilization_sample_dtype = _get_vgpu_instance_utilization_sample_dtype_offsets() cdef object vgpu_instance_utilization_sample_dtype_record = _numpy.dtype((_numpy.record, vgpu_instance_utilization_sample_dtype)) @@ -22889,22 +23439,27 @@ cdef class VgpuInstanceUtilizationSample: cdef _get_vgpu_instance_utilization_info_v1_dtype_offsets(): - cdef nvmlVgpuInstanceUtilizationInfo_v1_t pod - return _numpy.dtype({ - 'names': ['time_stamp', 'vgpu_instance', 'sm_util', 'mem_util', 'enc_util', 'dec_util', 'jpg_util', 'ofa_util'], - 'formats': [_numpy.uint64, _numpy.uint32, value_dtype, value_dtype, value_dtype, value_dtype, value_dtype, value_dtype], - 'offsets': [ - (&(pod.timeStamp)) - (&pod), - (&(pod.vgpuInstance)) - (&pod), - (&(pod.smUtil)) - (&pod), - (&(pod.memUtil)) - (&pod), - (&(pod.encUtil)) - (&pod), - (&(pod.decUtil)) - (&pod), - (&(pod.jpgUtil)) - (&pod), - (&(pod.ofaUtil)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuInstanceUtilizationInfo_v1_t), - }) + cdef nvmlVgpuInstanceUtilizationInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuInstanceUtilizationInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuInstanceUtilizationInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['time_stamp', 'vgpu_instance', 'sm_util', 'mem_util', 'enc_util', 'dec_util', 'jpg_util', 'ofa_util'], + 'formats': [_numpy.uint64, _numpy.uint32, value_dtype, value_dtype, value_dtype, value_dtype, value_dtype, value_dtype], + 'offsets': [ + (&(pod.timeStamp)) - (pod), + (&(pod.vgpuInstance)) - (pod), + (&(pod.smUtil)) - (pod), + (&(pod.memUtil)) - (pod), + (&(pod.encUtil)) - (pod), + (&(pod.decUtil)) - (pod), + (&(pod.jpgUtil)) - (pod), + (&(pod.ofaUtil)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuInstanceUtilizationInfo_v1_t), + }) + finally: + _cyb_free(pod) vgpu_instance_utilization_info_v1_dtype = _get_vgpu_instance_utilization_info_v1_dtype_offsets() cdef object vgpu_instance_utilization_info_v1_dtype_record = _numpy.dtype((_numpy.record, vgpu_instance_utilization_info_v1_dtype)) @@ -23129,21 +23684,26 @@ cdef class VgpuInstanceUtilizationInfo_v1: cdef _get_field_value_dtype_offsets(): - cdef nvmlFieldValue_t pod - return _numpy.dtype({ - 'names': ['field_id', 'scope_id', 'timestamp', 'latency_usec', 'value_type', 'nvml_return', 'value'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.int64, _numpy.int64, _numpy.int32, _numpy.int32, value_dtype], - 'offsets': [ - (&(pod.fieldId)) - (&pod), - (&(pod.scopeId)) - (&pod), - (&(pod.timestamp)) - (&pod), - (&(pod.latencyUsec)) - (&pod), - (&(pod.valueType)) - (&pod), - (&(pod.nvmlReturn)) - (&pod), - (&(pod.value)) - (&pod), - ], - 'itemsize': sizeof(nvmlFieldValue_t), - }) + cdef nvmlFieldValue_t *pod = _cyb_calloc(1, sizeof(nvmlFieldValue_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlFieldValue_t") + try: + return _numpy.dtype({ + 'names': ['field_id', 'scope_id', 'timestamp', 'latency_usec', 'value_type', 'nvml_return', 'value'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.int64, _numpy.int64, _numpy.int32, _numpy.int32, value_dtype], + 'offsets': [ + (&(pod.fieldId)) - (pod), + (&(pod.scopeId)) - (pod), + (&(pod.timestamp)) - (pod), + (&(pod.latencyUsec)) - (pod), + (&(pod.valueType)) - (pod), + (&(pod.nvmlReturn)) - (pod), + (&(pod.value)) - (pod), + ], + 'itemsize': sizeof(nvmlFieldValue_t), + }) + finally: + _cyb_free(pod) field_value_dtype = _get_field_value_dtype_offsets() cdef object field_value_dtype_record = _numpy.dtype((_numpy.record, field_value_dtype)) @@ -23365,17 +23925,22 @@ cdef class FieldValue: cdef _get_prm_counter_value_v1_dtype_offsets(): - cdef nvmlPRMCounterValue_v1_t pod - return _numpy.dtype({ - 'names': ['status', 'output_type', 'output_value'], - 'formats': [_numpy.int32, _numpy.int32, value_dtype], - 'offsets': [ - (&(pod.status)) - (&pod), - (&(pod.outputType)) - (&pod), - (&(pod.outputValue)) - (&pod), - ], - 'itemsize': sizeof(nvmlPRMCounterValue_v1_t), - }) + cdef nvmlPRMCounterValue_v1_t *pod = _cyb_calloc(1, sizeof(nvmlPRMCounterValue_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPRMCounterValue_v1_t") + try: + return _numpy.dtype({ + 'names': ['status', 'output_type', 'output_value'], + 'formats': [_numpy.int32, _numpy.int32, value_dtype], + 'offsets': [ + (&(pod.status)) - (pod), + (&(pod.outputType)) - (pod), + (&(pod.outputValue)) - (pod), + ], + 'itemsize': sizeof(nvmlPRMCounterValue_v1_t), + }) + finally: + _cyb_free(pod) prm_counter_value_v1_dtype = _get_prm_counter_value_v1_dtype_offsets() @@ -23531,16 +24096,21 @@ cdef class PRMCounterValue_v1: cdef _get_gpu_thermal_settings_dtype_offsets(): - cdef nvmlGpuThermalSettings_t pod - return _numpy.dtype({ - 'names': ['count', 'sensor'], - 'formats': [_numpy.uint32, (_py_anon_pod0_dtype, 3)], - 'offsets': [ - (&(pod.count)) - (&pod), - (&(pod.sensor)) - (&pod), - ], - 'itemsize': sizeof(nvmlGpuThermalSettings_t), - }) + cdef nvmlGpuThermalSettings_t *pod = _cyb_calloc(1, sizeof(nvmlGpuThermalSettings_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGpuThermalSettings_t") + try: + return _numpy.dtype({ + 'names': ['count', 'sensor'], + 'formats': [_numpy.uint32, (_py_anon_pod0_dtype, 3)], + 'offsets': [ + (&(pod.count)) - (pod), + (&(pod.sensor)) - (pod), + ], + 'itemsize': sizeof(nvmlGpuThermalSettings_t), + }) + finally: + _cyb_free(pod) gpu_thermal_settings_dtype = _get_gpu_thermal_settings_dtype_offsets() @@ -23676,17 +24246,22 @@ cdef class GpuThermalSettings: cdef _get_clk_mon_status_dtype_offsets(): - cdef nvmlClkMonStatus_t pod - return _numpy.dtype({ - 'names': ['b_global_status', 'clk_mon_list_size', 'clk_mon_list'], - 'formats': [_numpy.uint32, _numpy.uint32, (clk_mon_fault_info_dtype, 32)], - 'offsets': [ - (&(pod.bGlobalStatus)) - (&pod), - (&(pod.clkMonListSize)) - (&pod), - (&(pod.clkMonList)) - (&pod), - ], - 'itemsize': sizeof(nvmlClkMonStatus_t), - }) + cdef nvmlClkMonStatus_t *pod = _cyb_calloc(1, sizeof(nvmlClkMonStatus_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlClkMonStatus_t") + try: + return _numpy.dtype({ + 'names': ['b_global_status', 'clk_mon_list_size', 'clk_mon_list'], + 'formats': [_numpy.uint32, _numpy.uint32, (clk_mon_fault_info_dtype, 32)], + 'offsets': [ + (&(pod.bGlobalStatus)) - (pod), + (&(pod.clkMonListSize)) - (pod), + (&(pod.clkMonList)) - (pod), + ], + 'itemsize': sizeof(nvmlClkMonStatus_t), + }) + finally: + _cyb_free(pod) clk_mon_status_dtype = _get_clk_mon_status_dtype_offsets() @@ -23825,18 +24400,23 @@ cdef class ClkMonStatus: cdef _get_processes_utilization_info_v1_dtype_offsets(): - cdef nvmlProcessesUtilizationInfo_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'process_samples_count', 'last_seen_time_stamp', 'proc_util_array'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint64, _numpy.intp], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.processSamplesCount)) - (&pod), - (&(pod.lastSeenTimeStamp)) - (&pod), - (&(pod.procUtilArray)) - (&pod), - ], - 'itemsize': sizeof(nvmlProcessesUtilizationInfo_v1_t), - }) + cdef nvmlProcessesUtilizationInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlProcessesUtilizationInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlProcessesUtilizationInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'process_samples_count', 'last_seen_time_stamp', 'proc_util_array'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint64, _numpy.intp], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.processSamplesCount)) - (pod), + (&(pod.lastSeenTimeStamp)) - (pod), + (&(pod.procUtilArray)) - (pod), + ], + 'itemsize': sizeof(nvmlProcessesUtilizationInfo_v1_t), + }) + finally: + _cyb_free(pod) processes_utilization_info_v1_dtype = _get_processes_utilization_info_v1_dtype_offsets() @@ -23988,16 +24568,21 @@ cdef class ProcessesUtilizationInfo_v1: cdef _get_gpu_dynamic_pstates_info_dtype_offsets(): - cdef nvmlGpuDynamicPstatesInfo_t pod - return _numpy.dtype({ - 'names': ['flags_', 'utilization'], - 'formats': [_numpy.uint32, (_py_anon_pod1_dtype, 8)], - 'offsets': [ - (&(pod.flags)) - (&pod), - (&(pod.utilization)) - (&pod), - ], - 'itemsize': sizeof(nvmlGpuDynamicPstatesInfo_t), - }) + cdef nvmlGpuDynamicPstatesInfo_t *pod = _cyb_calloc(1, sizeof(nvmlGpuDynamicPstatesInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGpuDynamicPstatesInfo_t") + try: + return _numpy.dtype({ + 'names': ['flags_', 'utilization'], + 'formats': [_numpy.uint32, (_py_anon_pod1_dtype, 8)], + 'offsets': [ + (&(pod.flags)) - (pod), + (&(pod.utilization)) - (pod), + ], + 'itemsize': sizeof(nvmlGpuDynamicPstatesInfo_t), + }) + finally: + _cyb_free(pod) gpu_dynamic_pstates_info_dtype = _get_gpu_dynamic_pstates_info_dtype_offsets() @@ -24133,18 +24718,23 @@ cdef class GpuDynamicPstatesInfo: cdef _get_vgpu_processes_utilization_info_v1_dtype_offsets(): - cdef nvmlVgpuProcessesUtilizationInfo_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'vgpu_process_count', 'last_seen_time_stamp', 'vgpu_proc_util_array'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint64, _numpy.intp], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.vgpuProcessCount)) - (&pod), - (&(pod.lastSeenTimeStamp)) - (&pod), - (&(pod.vgpuProcUtilArray)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuProcessesUtilizationInfo_v1_t), - }) + cdef nvmlVgpuProcessesUtilizationInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuProcessesUtilizationInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuProcessesUtilizationInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'vgpu_process_count', 'last_seen_time_stamp', 'vgpu_proc_util_array'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint64, _numpy.intp], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.vgpuProcessCount)) - (pod), + (&(pod.lastSeenTimeStamp)) - (pod), + (&(pod.vgpuProcUtilArray)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuProcessesUtilizationInfo_v1_t), + }) + finally: + _cyb_free(pod) vgpu_processes_utilization_info_v1_dtype = _get_vgpu_processes_utilization_info_v1_dtype_offsets() @@ -24296,16 +24886,21 @@ cdef class VgpuProcessesUtilizationInfo_v1: cdef _get_vgpu_scheduler_params_dtype_offsets(): - cdef nvmlVgpuSchedulerParams_t pod - return _numpy.dtype({ - 'names': ['vgpu_sched_data_with_arr', 'vgpu_sched_data'], - 'formats': [_py_anon_pod2_dtype, _py_anon_pod3_dtype], - 'offsets': [ - (&(pod.vgpuSchedDataWithARR)) - (&pod), - (&(pod.vgpuSchedData)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuSchedulerParams_t), - }) + cdef nvmlVgpuSchedulerParams_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerParams_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuSchedulerParams_t") + try: + return _numpy.dtype({ + 'names': ['vgpu_sched_data_with_arr', 'vgpu_sched_data'], + 'formats': [_py_anon_pod2_dtype, _py_anon_pod3_dtype], + 'offsets': [ + (&(pod.vgpuSchedDataWithARR)) - (pod), + (&(pod.vgpuSchedData)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuSchedulerParams_t), + }) + finally: + _cyb_free(pod) vgpu_scheduler_params_dtype = _get_vgpu_scheduler_params_dtype_offsets() @@ -24455,16 +25050,21 @@ cdef class VgpuSchedulerParams: cdef _get_vgpu_scheduler_set_params_dtype_offsets(): - cdef nvmlVgpuSchedulerSetParams_t pod - return _numpy.dtype({ - 'names': ['vgpu_sched_data_with_arr', 'vgpu_sched_data'], - 'formats': [_py_anon_pod4_dtype, _py_anon_pod5_dtype], - 'offsets': [ - (&(pod.vgpuSchedDataWithARR)) - (&pod), - (&(pod.vgpuSchedData)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuSchedulerSetParams_t), - }) + cdef nvmlVgpuSchedulerSetParams_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerSetParams_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuSchedulerSetParams_t") + try: + return _numpy.dtype({ + 'names': ['vgpu_sched_data_with_arr', 'vgpu_sched_data'], + 'formats': [_py_anon_pod4_dtype, _py_anon_pod5_dtype], + 'offsets': [ + (&(pod.vgpuSchedDataWithARR)) - (pod), + (&(pod.vgpuSchedData)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuSchedulerSetParams_t), + }) + finally: + _cyb_free(pod) vgpu_scheduler_set_params_dtype = _get_vgpu_scheduler_set_params_dtype_offsets() @@ -24614,17 +25214,22 @@ cdef class VgpuSchedulerSetParams: cdef _get_vgpu_license_info_dtype_offsets(): - cdef nvmlVgpuLicenseInfo_t pod - return _numpy.dtype({ - 'names': ['is_licensed', 'license_expiry', 'current_state'], - 'formats': [_numpy.uint8, vgpu_license_expiry_dtype, _numpy.uint32], - 'offsets': [ - (&(pod.isLicensed)) - (&pod), - (&(pod.licenseExpiry)) - (&pod), - (&(pod.currentState)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuLicenseInfo_t), - }) + cdef nvmlVgpuLicenseInfo_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuLicenseInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuLicenseInfo_t") + try: + return _numpy.dtype({ + 'names': ['is_licensed', 'license_expiry', 'current_state'], + 'formats': [_numpy.uint8, vgpu_license_expiry_dtype, _numpy.uint32], + 'offsets': [ + (&(pod.isLicensed)) - (pod), + (&(pod.licenseExpiry)) - (pod), + (&(pod.currentState)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuLicenseInfo_t), + }) + finally: + _cyb_free(pod) vgpu_license_info_dtype = _get_vgpu_license_info_dtype_offsets() @@ -24768,20 +25373,25 @@ cdef class VgpuLicenseInfo: cdef _get_grid_licensable_feature_dtype_offsets(): - cdef nvmlGridLicensableFeature_t pod - return _numpy.dtype({ - 'names': ['feature_code', 'feature_state', 'license_info', 'product_name', 'feature_enabled', 'license_expiry'], - 'formats': [_numpy.int32, _numpy.uint32, (_numpy.int8, 128), (_numpy.int8, 128), _numpy.uint32, grid_license_expiry_dtype], - 'offsets': [ - (&(pod.featureCode)) - (&pod), - (&(pod.featureState)) - (&pod), - (&(pod.licenseInfo)) - (&pod), - (&(pod.productName)) - (&pod), - (&(pod.featureEnabled)) - (&pod), - (&(pod.licenseExpiry)) - (&pod), - ], - 'itemsize': sizeof(nvmlGridLicensableFeature_t), - }) + cdef nvmlGridLicensableFeature_t *pod = _cyb_calloc(1, sizeof(nvmlGridLicensableFeature_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGridLicensableFeature_t") + try: + return _numpy.dtype({ + 'names': ['feature_code', 'feature_state', 'license_info', 'product_name', 'feature_enabled', 'license_expiry'], + 'formats': [_numpy.int32, _numpy.uint32, (_numpy.int8, 128), (_numpy.int8, 128), _numpy.uint32, grid_license_expiry_dtype], + 'offsets': [ + (&(pod.featureCode)) - (pod), + (&(pod.featureState)) - (pod), + (&(pod.licenseInfo)) - (pod), + (&(pod.productName)) - (pod), + (&(pod.featureEnabled)) - (pod), + (&(pod.licenseExpiry)) - (pod), + ], + 'itemsize': sizeof(nvmlGridLicensableFeature_t), + }) + finally: + _cyb_free(pod) grid_licensable_feature_dtype = _get_grid_licensable_feature_dtype_offsets() cdef object grid_licensable_feature_dtype_record = _numpy.dtype((_numpy.record, grid_licensable_feature_dtype)) @@ -24986,16 +25596,21 @@ cdef class GridLicensableFeature: cdef _get_unit_fan_speeds_dtype_offsets(): - cdef nvmlUnitFanSpeeds_t pod - return _numpy.dtype({ - 'names': ['fans', 'count'], - 'formats': [(unit_fan_info_dtype, 24), _numpy.uint32], - 'offsets': [ - (&(pod.fans)) - (&pod), - (&(pod.count)) - (&pod), - ], - 'itemsize': sizeof(nvmlUnitFanSpeeds_t), - }) + cdef nvmlUnitFanSpeeds_t *pod = _cyb_calloc(1, sizeof(nvmlUnitFanSpeeds_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlUnitFanSpeeds_t") + try: + return _numpy.dtype({ + 'names': ['fans', 'count'], + 'formats': [(unit_fan_info_dtype, 24), _numpy.uint32], + 'offsets': [ + (&(pod.fans)) - (pod), + (&(pod.count)) - (pod), + ], + 'itemsize': sizeof(nvmlUnitFanSpeeds_t), + }) + finally: + _cyb_free(pod) unit_fan_speeds_dtype = _get_unit_fan_speeds_dtype_offsets() @@ -25131,22 +25746,27 @@ cdef class UnitFanSpeeds: cdef _get_vgpu_pgpu_metadata_dtype_offsets(): - cdef nvmlVgpuPgpuMetadata_t pod - return _numpy.dtype({ - 'names': ['version', 'revision', 'host_driver_version', 'pgpu_virtualization_caps', 'reserved', 'host_supported_vgpu_range', 'opaque_data_size', 'opaque_data'], - 'formats': [_numpy.uint32, _numpy.uint32, (_numpy.int8, 80), _numpy.uint32, (_numpy.uint32, 5), vgpu_version_dtype, _numpy.uint32, (_numpy.int8, 4)], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.revision)) - (&pod), - (&(pod.hostDriverVersion)) - (&pod), - (&(pod.pgpuVirtualizationCaps)) - (&pod), - (&(pod.reserved)) - (&pod), - (&(pod.hostSupportedVgpuRange)) - (&pod), - (&(pod.opaqueDataSize)) - (&pod), - (&(pod.opaqueData)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuPgpuMetadata_t), - }) + cdef nvmlVgpuPgpuMetadata_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuPgpuMetadata_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuPgpuMetadata_t") + try: + return _numpy.dtype({ + 'names': ['version', 'revision', 'host_driver_version', 'pgpu_virtualization_caps', 'reserved', 'host_supported_vgpu_range', 'opaque_data_size', 'opaque_data'], + 'formats': [_numpy.uint32, _numpy.uint32, (_numpy.int8, 80), _numpy.uint32, (_numpy.uint32, 5), vgpu_version_dtype, _numpy.uint32, (_numpy.int8, 4)], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.revision)) - (pod), + (&(pod.hostDriverVersion)) - (pod), + (&(pod.pgpuVirtualizationCaps)) - (pod), + (&(pod.reserved)) - (pod), + (&(pod.hostSupportedVgpuRange)) - (pod), + (&(pod.opaqueDataSize)) - (pod), + (&(pod.opaqueData)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuPgpuMetadata_t), + }) + finally: + _cyb_free(pod) vgpu_pgpu_metadata_dtype = _get_vgpu_pgpu_metadata_dtype_offsets() @@ -25342,18 +25962,23 @@ cdef class VgpuPgpuMetadata: cdef _get_gpu_instance_info_dtype_offsets(): - cdef nvmlGpuInstanceInfo_t pod - return _numpy.dtype({ - 'names': ['device_', 'id', 'profile_id', 'placement'], - 'formats': [_numpy.intp, _numpy.uint32, _numpy.uint32, gpu_instance_placement_dtype], - 'offsets': [ - (&(pod.device)) - (&pod), - (&(pod.id)) - (&pod), - (&(pod.profileId)) - (&pod), - (&(pod.placement)) - (&pod), - ], - 'itemsize': sizeof(nvmlGpuInstanceInfo_t), - }) + cdef nvmlGpuInstanceInfo_t *pod = _cyb_calloc(1, sizeof(nvmlGpuInstanceInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGpuInstanceInfo_t") + try: + return _numpy.dtype({ + 'names': ['device_', 'id', 'profile_id', 'placement'], + 'formats': [_numpy.intp, _numpy.uint32, _numpy.uint32, gpu_instance_placement_dtype], + 'offsets': [ + (&(pod.device)) - (pod), + (&(pod.id)) - (pod), + (&(pod.profileId)) - (pod), + (&(pod.placement)) - (pod), + ], + 'itemsize': sizeof(nvmlGpuInstanceInfo_t), + }) + finally: + _cyb_free(pod) gpu_instance_info_dtype = _get_gpu_instance_info_dtype_offsets() @@ -25509,19 +26134,24 @@ cdef class GpuInstanceInfo: cdef _get_compute_instance_info_dtype_offsets(): - cdef nvmlComputeInstanceInfo_t pod - return _numpy.dtype({ - 'names': ['device_', 'gpu_instance', 'id', 'profile_id', 'placement'], - 'formats': [_numpy.intp, _numpy.intp, _numpy.uint32, _numpy.uint32, compute_instance_placement_dtype], - 'offsets': [ - (&(pod.device)) - (&pod), - (&(pod.gpuInstance)) - (&pod), - (&(pod.id)) - (&pod), - (&(pod.profileId)) - (&pod), - (&(pod.placement)) - (&pod), - ], - 'itemsize': sizeof(nvmlComputeInstanceInfo_t), - }) + cdef nvmlComputeInstanceInfo_t *pod = _cyb_calloc(1, sizeof(nvmlComputeInstanceInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlComputeInstanceInfo_t") + try: + return _numpy.dtype({ + 'names': ['device_', 'gpu_instance', 'id', 'profile_id', 'placement'], + 'formats': [_numpy.intp, _numpy.intp, _numpy.uint32, _numpy.uint32, compute_instance_placement_dtype], + 'offsets': [ + (&(pod.device)) - (pod), + (&(pod.gpuInstance)) - (pod), + (&(pod.id)) - (pod), + (&(pod.profileId)) - (pod), + (&(pod.placement)) - (pod), + ], + 'itemsize': sizeof(nvmlComputeInstanceInfo_t), + }) + finally: + _cyb_free(pod) compute_instance_info_dtype = _get_compute_instance_info_dtype_offsets() @@ -25688,17 +26318,22 @@ cdef class ComputeInstanceInfo: cdef _get_ecc_sram_unique_uncorrected_error_counts_v1_dtype_offsets(): - cdef nvmlEccSramUniqueUncorrectedErrorCounts_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'entry_count', 'entries'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.intp], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.entryCount)) - (&pod), - (&(pod.entries)) - (&pod), - ], - 'itemsize': sizeof(nvmlEccSramUniqueUncorrectedErrorCounts_v1_t), - }) + cdef nvmlEccSramUniqueUncorrectedErrorCounts_v1_t *pod = _cyb_calloc(1, sizeof(nvmlEccSramUniqueUncorrectedErrorCounts_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlEccSramUniqueUncorrectedErrorCounts_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'entry_count', 'entries'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.intp], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.entryCount)) - (pod), + (&(pod.entries)) - (pod), + ], + 'itemsize': sizeof(nvmlEccSramUniqueUncorrectedErrorCounts_v1_t), + }) + finally: + _cyb_free(pod) ecc_sram_unique_uncorrected_error_counts_v1_dtype = _get_ecc_sram_unique_uncorrected_error_counts_v1_dtype_offsets() @@ -25839,16 +26474,21 @@ cdef class EccSramUniqueUncorrectedErrorCounts_v1: cdef _get_nvlink_firmware_info_dtype_offsets(): - cdef nvmlNvlinkFirmwareInfo_t pod - return _numpy.dtype({ - 'names': ['firmware_version', 'num_valid_entries'], - 'formats': [(nvlink_firmware_version_dtype, 100), _numpy.uint32], - 'offsets': [ - (&(pod.firmwareVersion)) - (&pod), - (&(pod.numValidEntries)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvlinkFirmwareInfo_t), - }) + cdef nvmlNvlinkFirmwareInfo_t *pod = _cyb_calloc(1, sizeof(nvmlNvlinkFirmwareInfo_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvlinkFirmwareInfo_t") + try: + return _numpy.dtype({ + 'names': ['firmware_version', 'num_valid_entries'], + 'formats': [(nvlink_firmware_version_dtype, 100), _numpy.uint32], + 'offsets': [ + (&(pod.firmwareVersion)) - (pod), + (&(pod.numValidEntries)) - (pod), + ], + 'itemsize': sizeof(nvmlNvlinkFirmwareInfo_t), + }) + finally: + _cyb_free(pod) nvlink_firmware_info_dtype = _get_nvlink_firmware_info_dtype_offsets() @@ -25988,20 +26628,25 @@ cdef class NvlinkFirmwareInfo: cdef _get_vgpu_scheduler_log_info_v2_dtype_offsets(): - cdef nvmlVgpuSchedulerLogInfo_v2_t pod - return _numpy.dtype({ - 'names': ['engine_id', 'scheduler_policy', 'avg_factor', 'timeslice', 'entries_count', 'log_entries'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, (vgpu_scheduler_log_entry_v2_dtype, 200)], - 'offsets': [ - (&(pod.engineId)) - (&pod), - (&(pod.schedulerPolicy)) - (&pod), - (&(pod.avgFactor)) - (&pod), - (&(pod.timeslice)) - (&pod), - (&(pod.entriesCount)) - (&pod), - (&(pod.logEntries)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuSchedulerLogInfo_v2_t), - }) + cdef nvmlVgpuSchedulerLogInfo_v2_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerLogInfo_v2_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuSchedulerLogInfo_v2_t") + try: + return _numpy.dtype({ + 'names': ['engine_id', 'scheduler_policy', 'avg_factor', 'timeslice', 'entries_count', 'log_entries'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, (vgpu_scheduler_log_entry_v2_dtype, 200)], + 'offsets': [ + (&(pod.engineId)) - (pod), + (&(pod.schedulerPolicy)) - (pod), + (&(pod.avgFactor)) - (pod), + (&(pod.timeslice)) - (pod), + (&(pod.entriesCount)) - (pod), + (&(pod.logEntries)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuSchedulerLogInfo_v2_t), + }) + finally: + _cyb_free(pod) vgpu_scheduler_log_info_v2_dtype = _get_vgpu_scheduler_log_info_v2_dtype_offsets() @@ -26181,17 +26826,22 @@ cdef class VgpuSchedulerLogInfo_v2: cdef _get_get_cper_v1_dtype_offsets(): - cdef nvmlGetCPER_v1_t pod - return _numpy.dtype({ - 'names': ['cursor', 'buffer', 'buffer_size'], - 'formats': [cper_cursor_v1_dtype, _numpy.intp, _numpy.uint32], - 'offsets': [ - (&(pod.cursor)) - (&pod), - (&(pod.buffer)) - (&pod), - (&(pod.bufferSize)) - (&pod), - ], - 'itemsize': sizeof(nvmlGetCPER_v1_t), - }) + cdef nvmlGetCPER_v1_t *pod = _cyb_calloc(1, sizeof(nvmlGetCPER_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGetCPER_v1_t") + try: + return _numpy.dtype({ + 'names': ['cursor', 'buffer', 'buffer_size'], + 'formats': [cper_cursor_v1_dtype, _numpy.intp, _numpy.uint32], + 'offsets': [ + (&(pod.cursor)) - (pod), + (&(pod.buffer)) - (pod), + (&(pod.bufferSize)) - (pod), + ], + 'itemsize': sizeof(nvmlGetCPER_v1_t), + }) + finally: + _cyb_free(pod) get_cper_v1_dtype = _get_get_cper_v1_dtype_offsets() @@ -26335,15 +26985,20 @@ cdef class GetCPER_v1: cdef _get_core_rail_metrics_dtype_offsets(): - cdef nvmlCoreRailMetrics_t pod - return _numpy.dtype({ - 'names': ['rails'], - 'formats': [(rail_metrics_dtype, 2)], - 'offsets': [ - (&(pod.rails)) - (&pod), - ], - 'itemsize': sizeof(nvmlCoreRailMetrics_t), - }) + cdef nvmlCoreRailMetrics_t *pod = _cyb_calloc(1, sizeof(nvmlCoreRailMetrics_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlCoreRailMetrics_t") + try: + return _numpy.dtype({ + 'names': ['rails'], + 'formats': [(rail_metrics_dtype, 2)], + 'offsets': [ + (&(pod.rails)) - (pod), + ], + 'itemsize': sizeof(nvmlCoreRailMetrics_t), + }) + finally: + _cyb_free(pod) core_rail_metrics_dtype = _get_core_rail_metrics_dtype_offsets() cdef object core_rail_metrics_dtype_record = _numpy.dtype((_numpy.record, core_rail_metrics_dtype)) @@ -26487,20 +27142,25 @@ cdef class CoreRailMetrics: cdef _get_pwr_model_metrics_pfpp1x_dtype_offsets(): - cdef nvmlPwrModelMetricsPfpp1x_t pod - return _numpy.dtype({ - 'names': ['num_vf_points', 'estimated_metrics', 'b_valid', 'max_perf_per_watt_point', 'fmax_at_vmax_point', 'tgp_headroomm_w'], - 'formats': [_numpy.uint8, (pwr_model_metrics_sample_pfpp1x_dtype, 32), _numpy.uint8, pwr_model_operating_point_pfpp1x_dtype, pwr_model_operating_point_pfpp1x_dtype, _numpy.uint32], - 'offsets': [ - (&(pod.numVfPoints)) - (&pod), - (&(pod.estimatedMetrics)) - (&pod), - (&(pod.bValid)) - (&pod), - (&(pod.maxPerfPerWattPoint)) - (&pod), - (&(pod.fmaxAtVmaxPoint)) - (&pod), - (&(pod.tgpHeadroommW)) - (&pod), - ], - 'itemsize': sizeof(nvmlPwrModelMetricsPfpp1x_t), - }) + cdef nvmlPwrModelMetricsPfpp1x_t *pod = _cyb_calloc(1, sizeof(nvmlPwrModelMetricsPfpp1x_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPwrModelMetricsPfpp1x_t") + try: + return _numpy.dtype({ + 'names': ['num_vf_points', 'estimated_metrics', 'b_valid', 'max_perf_per_watt_point', 'fmax_at_vmax_point', 'tgp_headroomm_w'], + 'formats': [_numpy.uint8, (pwr_model_metrics_sample_pfpp1x_dtype, 32), _numpy.uint8, pwr_model_operating_point_pfpp1x_dtype, pwr_model_operating_point_pfpp1x_dtype, _numpy.uint32], + 'offsets': [ + (&(pod.numVfPoints)) - (pod), + (&(pod.estimatedMetrics)) - (pod), + (&(pod.bValid)) - (pod), + (&(pod.maxPerfPerWattPoint)) - (pod), + (&(pod.fmaxAtVmaxPoint)) - (pod), + (&(pod.tgpHeadroommW)) - (pod), + ], + 'itemsize': sizeof(nvmlPwrModelMetricsPfpp1x_t), + }) + finally: + _cyb_free(pod) pwr_model_metrics_pfpp1x_dtype = _get_pwr_model_metrics_pfpp1x_dtype_offsets() cdef object pwr_model_metrics_pfpp1x_dtype_record = _numpy.dtype((_numpy.record, pwr_model_metrics_pfpp1x_dtype)) @@ -26702,21 +27362,26 @@ cdef class PwrModelMetricsPfpp1x: cdef _get_gpu_fabric_info_v4_dtype_offsets(): - cdef nvmlGpuFabricInfo_v4_t pod - return _numpy.dtype({ - 'names': ['cluster_uuid', 'status', 'cliques', 'num_cliques', 'state', 'health_mask', 'health_summary'], - 'formats': [(_numpy.uint8, 16), _numpy.int32, (gpu_fabric_clique_v1_dtype, 64), _numpy.uint32, _numpy.uint8, _numpy.uint32, _numpy.uint8], - 'offsets': [ - (&(pod.clusterUuid)) - (&pod), - (&(pod.status)) - (&pod), - (&(pod.cliques)) - (&pod), - (&(pod.numCliques)) - (&pod), - (&(pod.state)) - (&pod), - (&(pod.healthMask)) - (&pod), - (&(pod.healthSummary)) - (&pod), - ], - 'itemsize': sizeof(nvmlGpuFabricInfo_v4_t), - }) + cdef nvmlGpuFabricInfo_v4_t *pod = _cyb_calloc(1, sizeof(nvmlGpuFabricInfo_v4_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGpuFabricInfo_v4_t") + try: + return _numpy.dtype({ + 'names': ['cluster_uuid', 'status', 'cliques', 'num_cliques', 'state', 'health_mask', 'health_summary'], + 'formats': [(_numpy.uint8, 16), _numpy.int32, (gpu_fabric_clique_v1_dtype, 64), _numpy.uint32, _numpy.uint8, _numpy.uint32, _numpy.uint8], + 'offsets': [ + (&(pod.clusterUuid)) - (pod), + (&(pod.status)) - (pod), + (&(pod.cliques)) - (pod), + (&(pod.numCliques)) - (pod), + (&(pod.state)) - (pod), + (&(pod.healthMask)) - (pod), + (&(pod.healthSummary)) - (pod), + ], + 'itemsize': sizeof(nvmlGpuFabricInfo_v4_t), + }) + finally: + _cyb_free(pod) gpu_fabric_info_v4_dtype = _get_gpu_fabric_info_v4_dtype_offsets() @@ -26912,16 +27577,21 @@ cdef class GpuFabricInfo_v4: cdef _get_nvlink_telemetry_samples_v1_dtype_offsets(): - cdef nvmlNvlinkTelemetrySamples_v1_t pod - return _numpy.dtype({ - 'names': ['telemetry_count', 'telemetry_samples'], - 'formats': [_numpy.uint32, _numpy.intp], - 'offsets': [ - (&(pod.telemetryCount)) - (&pod), - (&(pod.telemetrySamples)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvlinkTelemetrySamples_v1_t), - }) + cdef nvmlNvlinkTelemetrySamples_v1_t *pod = _cyb_calloc(1, sizeof(nvmlNvlinkTelemetrySamples_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvlinkTelemetrySamples_v1_t") + try: + return _numpy.dtype({ + 'names': ['telemetry_count', 'telemetry_samples'], + 'formats': [_numpy.uint32, _numpy.intp], + 'offsets': [ + (&(pod.telemetryCount)) - (pod), + (&(pod.telemetrySamples)) - (pod), + ], + 'itemsize': sizeof(nvmlNvlinkTelemetrySamples_v1_t), + }) + finally: + _cyb_free(pod) nvlink_telemetry_samples_v1_dtype = _get_nvlink_telemetry_samples_v1_dtype_offsets() @@ -27051,18 +27721,23 @@ cdef class NvlinkTelemetrySamples_v1: cdef _get_ecc_bank_remapper_status_v1_dtype_offsets(): - cdef nvmlEccBankRemapperStatus_v1_t pod - return _numpy.dtype({ - 'names': ['active_remappings', 'inactive_remappings', 'b_pending', 'histogram'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, ecc_bank_remapper_histogram_v1_dtype], - 'offsets': [ - (&(pod.activeRemappings)) - (&pod), - (&(pod.inactiveRemappings)) - (&pod), - (&(pod.bPending)) - (&pod), - (&(pod.histogram)) - (&pod), - ], - 'itemsize': sizeof(nvmlEccBankRemapperStatus_v1_t), - }) + cdef nvmlEccBankRemapperStatus_v1_t *pod = _cyb_calloc(1, sizeof(nvmlEccBankRemapperStatus_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlEccBankRemapperStatus_v1_t") + try: + return _numpy.dtype({ + 'names': ['active_remappings', 'inactive_remappings', 'b_pending', 'histogram'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, ecc_bank_remapper_histogram_v1_dtype], + 'offsets': [ + (&(pod.activeRemappings)) - (pod), + (&(pod.inactiveRemappings)) - (pod), + (&(pod.bPending)) - (pod), + (&(pod.histogram)) - (pod), + ], + 'itemsize': sizeof(nvmlEccBankRemapperStatus_v1_t), + }) + finally: + _cyb_free(pod) ecc_bank_remapper_status_v1_dtype = _get_ecc_bank_remapper_status_v1_dtype_offsets() @@ -27217,19 +27892,24 @@ cdef class EccBankRemapperStatus_v1: cdef _get_nvlink_setup_nvle_encryption_key_v1_dtype_offsets(): - cdef nvmlNvlinkSetupNvleEncryptionKey_v1_t pod - return _numpy.dtype({ - 'names': ['nvle_key', 'local_gpu_alid', 'remote_gpu_alid', 'local_gpu_nvle_private_info', 'remote_gpu_nvle_private_info'], - 'formats': [(_numpy.uint8, 32), _numpy.uint32, _numpy.uint32, nvlink_nvle_private_info_v1_dtype, nvlink_nvle_private_info_v1_dtype], - 'offsets': [ - (&(pod.nvleKey)) - (&pod), - (&(pod.localGpuAlid)) - (&pod), - (&(pod.remoteGpuAlid)) - (&pod), - (&(pod.localGpuNvlePrivateInfo)) - (&pod), - (&(pod.remoteGpuNvlePrivateInfo)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvlinkSetupNvleEncryptionKey_v1_t), - }) + cdef nvmlNvlinkSetupNvleEncryptionKey_v1_t *pod = _cyb_calloc(1, sizeof(nvmlNvlinkSetupNvleEncryptionKey_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvlinkSetupNvleEncryptionKey_v1_t") + try: + return _numpy.dtype({ + 'names': ['nvle_key', 'local_gpu_alid', 'remote_gpu_alid', 'local_gpu_nvle_private_info', 'remote_gpu_nvle_private_info'], + 'formats': [(_numpy.uint8, 32), _numpy.uint32, _numpy.uint32, nvlink_nvle_private_info_v1_dtype, nvlink_nvle_private_info_v1_dtype], + 'offsets': [ + (&(pod.nvleKey)) - (pod), + (&(pod.localGpuAlid)) - (pod), + (&(pod.remoteGpuAlid)) - (pod), + (&(pod.localGpuNvlePrivateInfo)) - (pod), + (&(pod.remoteGpuNvlePrivateInfo)) - (pod), + ], + 'itemsize': sizeof(nvmlNvlinkSetupNvleEncryptionKey_v1_t), + }) + finally: + _cyb_free(pod) nvlink_setup_nvle_encryption_key_v1_dtype = _get_nvlink_setup_nvle_encryption_key_v1_dtype_offsets() @@ -27406,19 +28086,24 @@ cdef class NvlinkSetupNvleEncryptionKey_v1: cdef _get_vgpu_instances_utilization_info_v1_dtype_offsets(): - cdef nvmlVgpuInstancesUtilizationInfo_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'sample_val_type', 'vgpu_instance_count', 'last_seen_time_stamp', 'vgpu_util_array'], - 'formats': [_numpy.uint32, _numpy.int32, _numpy.uint32, _numpy.uint64, _numpy.intp], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.sampleValType)) - (&pod), - (&(pod.vgpuInstanceCount)) - (&pod), - (&(pod.lastSeenTimeStamp)) - (&pod), - (&(pod.vgpuUtilArray)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuInstancesUtilizationInfo_v1_t), - }) + cdef nvmlVgpuInstancesUtilizationInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuInstancesUtilizationInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuInstancesUtilizationInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'sample_val_type', 'vgpu_instance_count', 'last_seen_time_stamp', 'vgpu_util_array'], + 'formats': [_numpy.uint32, _numpy.int32, _numpy.uint32, _numpy.uint64, _numpy.intp], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.sampleValType)) - (pod), + (&(pod.vgpuInstanceCount)) - (pod), + (&(pod.lastSeenTimeStamp)) - (pod), + (&(pod.vgpuUtilArray)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuInstancesUtilizationInfo_v1_t), + }) + finally: + _cyb_free(pod) vgpu_instances_utilization_info_v1_dtype = _get_vgpu_instances_utilization_info_v1_dtype_offsets() @@ -27581,17 +28266,22 @@ cdef class VgpuInstancesUtilizationInfo_v1: cdef _get_prm_counter_v1_dtype_offsets(): - cdef nvmlPRMCounter_v1_t pod - return _numpy.dtype({ - 'names': ['counter_id', 'in_data', 'counter_value'], - 'formats': [_numpy.uint32, prm_counter_input_v1_dtype, prm_counter_value_v1_dtype], - 'offsets': [ - (&(pod.counterId)) - (&pod), - (&(pod.inData)) - (&pod), - (&(pod.counterValue)) - (&pod), - ], - 'itemsize': sizeof(nvmlPRMCounter_v1_t), - }) + cdef nvmlPRMCounter_v1_t *pod = _cyb_calloc(1, sizeof(nvmlPRMCounter_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPRMCounter_v1_t") + try: + return _numpy.dtype({ + 'names': ['counter_id', 'in_data', 'counter_value'], + 'formats': [_numpy.uint32, prm_counter_input_v1_dtype, prm_counter_value_v1_dtype], + 'offsets': [ + (&(pod.counterId)) - (pod), + (&(pod.inData)) - (pod), + (&(pod.counterValue)) - (pod), + ], + 'itemsize': sizeof(nvmlPRMCounter_v1_t), + }) + finally: + _cyb_free(pod) prm_counter_v1_dtype = _get_prm_counter_v1_dtype_offsets() cdef object prm_counter_v1_dtype_record = _numpy.dtype((_numpy.record, prm_counter_v1_dtype)) @@ -27759,20 +28449,25 @@ cdef class PRMCounter_v1: cdef _get_vgpu_scheduler_log_dtype_offsets(): - cdef nvmlVgpuSchedulerLog_t pod - return _numpy.dtype({ - 'names': ['engine_id', 'scheduler_policy', 'arr_mode', 'scheduler_params', 'entries_count', 'log_entries'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, vgpu_scheduler_params_dtype, _numpy.uint32, (vgpu_scheduler_log_entry_dtype, 200)], - 'offsets': [ - (&(pod.engineId)) - (&pod), - (&(pod.schedulerPolicy)) - (&pod), - (&(pod.arrMode)) - (&pod), - (&(pod.schedulerParams)) - (&pod), - (&(pod.entriesCount)) - (&pod), - (&(pod.logEntries)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuSchedulerLog_t), - }) + cdef nvmlVgpuSchedulerLog_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerLog_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuSchedulerLog_t") + try: + return _numpy.dtype({ + 'names': ['engine_id', 'scheduler_policy', 'arr_mode', 'scheduler_params', 'entries_count', 'log_entries'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, vgpu_scheduler_params_dtype, _numpy.uint32, (vgpu_scheduler_log_entry_dtype, 200)], + 'offsets': [ + (&(pod.engineId)) - (pod), + (&(pod.schedulerPolicy)) - (pod), + (&(pod.arrMode)) - (pod), + (&(pod.schedulerParams)) - (pod), + (&(pod.entriesCount)) - (pod), + (&(pod.logEntries)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuSchedulerLog_t), + }) + finally: + _cyb_free(pod) vgpu_scheduler_log_dtype = _get_vgpu_scheduler_log_dtype_offsets() @@ -27957,17 +28652,22 @@ cdef class VgpuSchedulerLog: cdef _get_vgpu_scheduler_get_state_dtype_offsets(): - cdef nvmlVgpuSchedulerGetState_t pod - return _numpy.dtype({ - 'names': ['scheduler_policy', 'arr_mode', 'scheduler_params'], - 'formats': [_numpy.uint32, _numpy.uint32, vgpu_scheduler_params_dtype], - 'offsets': [ - (&(pod.schedulerPolicy)) - (&pod), - (&(pod.arrMode)) - (&pod), - (&(pod.schedulerParams)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuSchedulerGetState_t), - }) + cdef nvmlVgpuSchedulerGetState_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerGetState_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuSchedulerGetState_t") + try: + return _numpy.dtype({ + 'names': ['scheduler_policy', 'arr_mode', 'scheduler_params'], + 'formats': [_numpy.uint32, _numpy.uint32, vgpu_scheduler_params_dtype], + 'offsets': [ + (&(pod.schedulerPolicy)) - (pod), + (&(pod.arrMode)) - (pod), + (&(pod.schedulerParams)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuSchedulerGetState_t), + }) + finally: + _cyb_free(pod) vgpu_scheduler_get_state_dtype = _get_vgpu_scheduler_get_state_dtype_offsets() @@ -28111,19 +28811,24 @@ cdef class VgpuSchedulerGetState: cdef _get_vgpu_scheduler_state_info_v1_dtype_offsets(): - cdef nvmlVgpuSchedulerStateInfo_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'engine_id', 'scheduler_policy', 'arr_mode', 'scheduler_params'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, vgpu_scheduler_params_dtype], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.engineId)) - (&pod), - (&(pod.schedulerPolicy)) - (&pod), - (&(pod.arrMode)) - (&pod), - (&(pod.schedulerParams)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuSchedulerStateInfo_v1_t), - }) + cdef nvmlVgpuSchedulerStateInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerStateInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuSchedulerStateInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'engine_id', 'scheduler_policy', 'arr_mode', 'scheduler_params'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, vgpu_scheduler_params_dtype], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.engineId)) - (pod), + (&(pod.schedulerPolicy)) - (pod), + (&(pod.arrMode)) - (pod), + (&(pod.schedulerParams)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuSchedulerStateInfo_v1_t), + }) + finally: + _cyb_free(pod) vgpu_scheduler_state_info_v1_dtype = _get_vgpu_scheduler_state_info_v1_dtype_offsets() @@ -28289,21 +28994,26 @@ cdef class VgpuSchedulerStateInfo_v1: cdef _get_vgpu_scheduler_log_info_v1_dtype_offsets(): - cdef nvmlVgpuSchedulerLogInfo_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'engine_id', 'scheduler_policy', 'arr_mode', 'scheduler_params', 'entries_count', 'log_entries'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, vgpu_scheduler_params_dtype, _numpy.uint32, (vgpu_scheduler_log_entry_dtype, 200)], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.engineId)) - (&pod), - (&(pod.schedulerPolicy)) - (&pod), - (&(pod.arrMode)) - (&pod), - (&(pod.schedulerParams)) - (&pod), - (&(pod.entriesCount)) - (&pod), - (&(pod.logEntries)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuSchedulerLogInfo_v1_t), - }) + cdef nvmlVgpuSchedulerLogInfo_v1_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerLogInfo_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuSchedulerLogInfo_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'engine_id', 'scheduler_policy', 'arr_mode', 'scheduler_params', 'entries_count', 'log_entries'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, vgpu_scheduler_params_dtype, _numpy.uint32, (vgpu_scheduler_log_entry_dtype, 200)], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.engineId)) - (pod), + (&(pod.schedulerPolicy)) - (pod), + (&(pod.arrMode)) - (pod), + (&(pod.schedulerParams)) - (pod), + (&(pod.entriesCount)) - (pod), + (&(pod.logEntries)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuSchedulerLogInfo_v1_t), + }) + finally: + _cyb_free(pod) vgpu_scheduler_log_info_v1_dtype = _get_vgpu_scheduler_log_info_v1_dtype_offsets() @@ -28499,19 +29209,24 @@ cdef class VgpuSchedulerLogInfo_v1: cdef _get_vgpu_scheduler_state_v1_dtype_offsets(): - cdef nvmlVgpuSchedulerState_v1_t pod - return _numpy.dtype({ - 'names': ['version', 'engine_id', 'scheduler_policy', 'enable_arr_mode', 'scheduler_params'], - 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, vgpu_scheduler_set_params_dtype], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.engineId)) - (&pod), - (&(pod.schedulerPolicy)) - (&pod), - (&(pod.enableARRMode)) - (&pod), - (&(pod.schedulerParams)) - (&pod), - ], - 'itemsize': sizeof(nvmlVgpuSchedulerState_v1_t), - }) + cdef nvmlVgpuSchedulerState_v1_t *pod = _cyb_calloc(1, sizeof(nvmlVgpuSchedulerState_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlVgpuSchedulerState_v1_t") + try: + return _numpy.dtype({ + 'names': ['version', 'engine_id', 'scheduler_policy', 'enable_arr_mode', 'scheduler_params'], + 'formats': [_numpy.uint32, _numpy.uint32, _numpy.uint32, _numpy.uint32, vgpu_scheduler_set_params_dtype], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.engineId)) - (pod), + (&(pod.schedulerPolicy)) - (pod), + (&(pod.enableARRMode)) - (pod), + (&(pod.schedulerParams)) - (pod), + ], + 'itemsize': sizeof(nvmlVgpuSchedulerState_v1_t), + }) + finally: + _cyb_free(pod) vgpu_scheduler_state_v1_dtype = _get_vgpu_scheduler_state_v1_dtype_offsets() @@ -28677,17 +29392,22 @@ cdef class VgpuSchedulerState_v1: cdef _get_grid_licensable_features_dtype_offsets(): - cdef nvmlGridLicensableFeatures_t pod - return _numpy.dtype({ - 'names': ['is_grid_license_supported', 'licensable_features_count', 'grid_licensable_features'], - 'formats': [_numpy.int32, _numpy.uint32, (grid_licensable_feature_dtype, 3)], - 'offsets': [ - (&(pod.isGridLicenseSupported)) - (&pod), - (&(pod.licensableFeaturesCount)) - (&pod), - (&(pod.gridLicensableFeatures)) - (&pod), - ], - 'itemsize': sizeof(nvmlGridLicensableFeatures_t), - }) + cdef nvmlGridLicensableFeatures_t *pod = _cyb_calloc(1, sizeof(nvmlGridLicensableFeatures_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlGridLicensableFeatures_t") + try: + return _numpy.dtype({ + 'names': ['is_grid_license_supported', 'licensable_features_count', 'grid_licensable_features'], + 'formats': [_numpy.int32, _numpy.uint32, (grid_licensable_feature_dtype, 3)], + 'offsets': [ + (&(pod.isGridLicenseSupported)) - (pod), + (&(pod.licensableFeaturesCount)) - (pod), + (&(pod.gridLicensableFeatures)) - (pod), + ], + 'itemsize': sizeof(nvmlGridLicensableFeatures_t), + }) + finally: + _cyb_free(pod) grid_licensable_features_dtype = _get_grid_licensable_features_dtype_offsets() @@ -28826,17 +29546,22 @@ cdef class GridLicensableFeatures: cdef _get_nv_link_info_v2_dtype_offsets(): - cdef nvmlNvLinkInfo_v2_t pod - return _numpy.dtype({ - 'names': ['version', 'is_nvle_enabled', 'firmware_info'], - 'formats': [_numpy.uint32, _numpy.uint32, nvlink_firmware_info_dtype], - 'offsets': [ - (&(pod.version)) - (&pod), - (&(pod.isNvleEnabled)) - (&pod), - (&(pod.firmwareInfo)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvLinkInfo_v2_t), - }) + cdef nvmlNvLinkInfo_v2_t *pod = _cyb_calloc(1, sizeof(nvmlNvLinkInfo_v2_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvLinkInfo_v2_t") + try: + return _numpy.dtype({ + 'names': ['version', 'is_nvle_enabled', 'firmware_info'], + 'formats': [_numpy.uint32, _numpy.uint32, nvlink_firmware_info_dtype], + 'offsets': [ + (&(pod.version)) - (pod), + (&(pod.isNvleEnabled)) - (pod), + (&(pod.firmwareInfo)) - (pod), + ], + 'itemsize': sizeof(nvmlNvLinkInfo_v2_t), + }) + finally: + _cyb_free(pod) nv_link_info_v2_dtype = _get_nv_link_info_v2_dtype_offsets() @@ -28980,17 +29705,22 @@ cdef class NvLinkInfo_v2: cdef _get_nv_link_info_v3_dtype_offsets(): - cdef nvmlNvLinkInfo_v3_t pod - return _numpy.dtype({ - 'names': ['is_nvle_enabled', 'firmware_info', 'is_nvle_ready'], - 'formats': [_numpy.uint32, nvlink_firmware_info_dtype, _numpy.uint32], - 'offsets': [ - (&(pod.isNvleEnabled)) - (&pod), - (&(pod.firmwareInfo)) - (&pod), - (&(pod.isNvleReady)) - (&pod), - ], - 'itemsize': sizeof(nvmlNvLinkInfo_v3_t), - }) + cdef nvmlNvLinkInfo_v3_t *pod = _cyb_calloc(1, sizeof(nvmlNvLinkInfo_v3_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlNvLinkInfo_v3_t") + try: + return _numpy.dtype({ + 'names': ['is_nvle_enabled', 'firmware_info', 'is_nvle_ready'], + 'formats': [_numpy.uint32, nvlink_firmware_info_dtype, _numpy.uint32], + 'offsets': [ + (&(pod.isNvleEnabled)) - (pod), + (&(pod.firmwareInfo)) - (pod), + (&(pod.isNvleReady)) - (pod), + ], + 'itemsize': sizeof(nvmlNvLinkInfo_v3_t), + }) + finally: + _cyb_free(pod) nv_link_info_v3_dtype = _get_nv_link_info_v3_dtype_offsets() @@ -29134,19 +29864,24 @@ cdef class NvLinkInfo_v3: cdef _get_pwr_model_metrics_dlppm1x_dtype_offsets(): - cdef nvmlPwrModelMetricsDlppm1x_t pod - return _numpy.dtype({ - 'names': ['b_valid', 'core_rail', 'fb_rail', 'tgp_pwr_tuple', 'perf_metrics'], - 'formats': [_numpy.uint8, core_rail_metrics_dtype, rail_metrics_dtype, pmgr_pwr_tuple_dtype, pwr_model_metrics_dlppm1x_perf_dtype], - 'offsets': [ - (&(pod.bValid)) - (&pod), - (&(pod.coreRail)) - (&pod), - (&(pod.fbRail)) - (&pod), - (&(pod.tgpPwrTuple)) - (&pod), - (&(pod.perfMetrics)) - (&pod), - ], - 'itemsize': sizeof(nvmlPwrModelMetricsDlppm1x_t), - }) + cdef nvmlPwrModelMetricsDlppm1x_t *pod = _cyb_calloc(1, sizeof(nvmlPwrModelMetricsDlppm1x_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPwrModelMetricsDlppm1x_t") + try: + return _numpy.dtype({ + 'names': ['b_valid', 'core_rail', 'fb_rail', 'tgp_pwr_tuple', 'perf_metrics'], + 'formats': [_numpy.uint8, core_rail_metrics_dtype, rail_metrics_dtype, pmgr_pwr_tuple_dtype, pwr_model_metrics_dlppm1x_perf_dtype], + 'offsets': [ + (&(pod.bValid)) - (pod), + (&(pod.coreRail)) - (pod), + (&(pod.fbRail)) - (pod), + (&(pod.tgpPwrTuple)) - (pod), + (&(pod.perfMetrics)) - (pod), + ], + 'itemsize': sizeof(nvmlPwrModelMetricsDlppm1x_t), + }) + finally: + _cyb_free(pod) pwr_model_metrics_dlppm1x_dtype = _get_pwr_model_metrics_dlppm1x_dtype_offsets() cdef object pwr_model_metrics_dlppm1x_dtype_record = _numpy.dtype((_numpy.record, pwr_model_metrics_dlppm1x_dtype)) @@ -29336,15 +30071,20 @@ cdef class PwrModelMetricsDlppm1x: cdef _get_perf_metrics_pfpp1x_sample_dtype_offsets(): - cdef nvmlPerfMetricsPfpp1xSample_t pod - return _numpy.dtype({ - 'names': ['estimated_metrics'], - 'formats': [pwr_model_metrics_pfpp1x_dtype], - 'offsets': [ - (&(pod.estimatedMetrics)) - (&pod), - ], - 'itemsize': sizeof(nvmlPerfMetricsPfpp1xSample_t), - }) + cdef nvmlPerfMetricsPfpp1xSample_t *pod = _cyb_calloc(1, sizeof(nvmlPerfMetricsPfpp1xSample_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPerfMetricsPfpp1xSample_t") + try: + return _numpy.dtype({ + 'names': ['estimated_metrics'], + 'formats': [pwr_model_metrics_pfpp1x_dtype], + 'offsets': [ + (&(pod.estimatedMetrics)) - (pod), + ], + 'itemsize': sizeof(nvmlPerfMetricsPfpp1xSample_t), + }) + finally: + _cyb_free(pod) perf_metrics_pfpp1x_sample_dtype = _get_perf_metrics_pfpp1x_sample_dtype_offsets() cdef object perf_metrics_pfpp1x_sample_dtype_record = _numpy.dtype((_numpy.record, perf_metrics_pfpp1x_sample_dtype)) @@ -29488,16 +30228,21 @@ cdef class PerfMetricsPfpp1xSample: cdef _get_pwr_model_metrics_dlppm1x_dramclk_estimates_dtype_offsets(): - cdef nvmlPwrModelMetricsDlppm1xDramclkEstimates_t pod - return _numpy.dtype({ - 'names': ['estimated_metrics', 'num_estimated_metrics'], - 'formats': [(pwr_model_metrics_dlppm1x_dtype, 8), _numpy.uint8], - 'offsets': [ - (&(pod.estimatedMetrics)) - (&pod), - (&(pod.numEstimatedMetrics)) - (&pod), - ], - 'itemsize': sizeof(nvmlPwrModelMetricsDlppm1xDramclkEstimates_t), - }) + cdef nvmlPwrModelMetricsDlppm1xDramclkEstimates_t *pod = _cyb_calloc(1, sizeof(nvmlPwrModelMetricsDlppm1xDramclkEstimates_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPwrModelMetricsDlppm1xDramclkEstimates_t") + try: + return _numpy.dtype({ + 'names': ['estimated_metrics', 'num_estimated_metrics'], + 'formats': [(pwr_model_metrics_dlppm1x_dtype, 8), _numpy.uint8], + 'offsets': [ + (&(pod.estimatedMetrics)) - (pod), + (&(pod.numEstimatedMetrics)) - (pod), + ], + 'itemsize': sizeof(nvmlPwrModelMetricsDlppm1xDramclkEstimates_t), + }) + finally: + _cyb_free(pod) pwr_model_metrics_dlppm1x_dramclk_estimates_dtype = _get_pwr_model_metrics_dlppm1x_dramclk_estimates_dtype_offsets() cdef object pwr_model_metrics_dlppm1x_dramclk_estimates_dtype_record = _numpy.dtype((_numpy.record, pwr_model_metrics_dlppm1x_dramclk_estimates_dtype)) @@ -29651,20 +30396,25 @@ cdef class PwrModelMetricsDlppm1xDramclkEstimates: cdef _get_observed_metrics_dtype_offsets(): - cdef nvmlObservedMetrics_t pod - return _numpy.dtype({ - 'names': ['initial_dramclk_est', 'b_valid', 'core_rail', 'fb_rail', 'tgp_pwr_tuple', 'perf_metrics'], - 'formats': [(pwr_model_metrics_dlppm1x_dramclk_estimates_dtype, 3), _numpy.uint8, core_rail_metrics_dtype, rail_metrics_dtype, pmgr_pwr_tuple_dtype, pwr_model_metrics_dlppm1x_perf_dtype], - 'offsets': [ - (&(pod.initialDramclkEst)) - (&pod), - (&(pod.bValid)) - (&pod), - (&(pod.coreRail)) - (&pod), - (&(pod.fbRail)) - (&pod), - (&(pod.tgpPwrTuple)) - (&pod), - (&(pod.perfMetrics)) - (&pod), - ], - 'itemsize': sizeof(nvmlObservedMetrics_t), - }) + cdef nvmlObservedMetrics_t *pod = _cyb_calloc(1, sizeof(nvmlObservedMetrics_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlObservedMetrics_t") + try: + return _numpy.dtype({ + 'names': ['initial_dramclk_est', 'b_valid', 'core_rail', 'fb_rail', 'tgp_pwr_tuple', 'perf_metrics'], + 'formats': [(pwr_model_metrics_dlppm1x_dramclk_estimates_dtype, 3), _numpy.uint8, core_rail_metrics_dtype, rail_metrics_dtype, pmgr_pwr_tuple_dtype, pwr_model_metrics_dlppm1x_perf_dtype], + 'offsets': [ + (&(pod.initialDramclkEst)) - (pod), + (&(pod.bValid)) - (pod), + (&(pod.coreRail)) - (pod), + (&(pod.fbRail)) - (pod), + (&(pod.tgpPwrTuple)) - (pod), + (&(pod.perfMetrics)) - (pod), + ], + 'itemsize': sizeof(nvmlObservedMetrics_t), + }) + finally: + _cyb_free(pod) observed_metrics_dtype = _get_observed_metrics_dtype_offsets() cdef object observed_metrics_dtype_record = _numpy.dtype((_numpy.record, observed_metrics_dtype)) @@ -29865,15 +30615,20 @@ cdef class ObservedMetrics: cdef _get_perf_metrics_dlppc2x_sample_dtype_offsets(): - cdef nvmlPerfMetricsDlppc2xSample_t pod - return _numpy.dtype({ - 'names': ['observed_metrics'], - 'formats': [observed_metrics_dtype], - 'offsets': [ - (&(pod.observedMetrics)) - (&pod), - ], - 'itemsize': sizeof(nvmlPerfMetricsDlppc2xSample_t), - }) + cdef nvmlPerfMetricsDlppc2xSample_t *pod = _cyb_calloc(1, sizeof(nvmlPerfMetricsDlppc2xSample_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPerfMetricsDlppc2xSample_t") + try: + return _numpy.dtype({ + 'names': ['observed_metrics'], + 'formats': [observed_metrics_dtype], + 'offsets': [ + (&(pod.observedMetrics)) - (pod), + ], + 'itemsize': sizeof(nvmlPerfMetricsDlppc2xSample_t), + }) + finally: + _cyb_free(pod) perf_metrics_dlppc2x_sample_dtype = _get_perf_metrics_dlppc2x_sample_dtype_offsets() cdef object perf_metrics_dlppc2x_sample_dtype_record = _numpy.dtype((_numpy.record, perf_metrics_dlppc2x_sample_dtype)) @@ -30017,16 +30772,21 @@ cdef class PerfMetricsDlppc2xSample: cdef _get__py_anon_pod8_dtype_offsets(): - cdef cuda_bindings_nvml__anon_pod8 pod - return _numpy.dtype({ - 'names': ['dlppc2x', 'pfpp1x'], - 'formats': [perf_metrics_dlppc2x_sample_dtype, perf_metrics_pfpp1x_sample_dtype], - 'offsets': [ - (&(pod.dlppc2x)) - (&pod), - (&(pod.pfpp1x)) - (&pod), - ], - 'itemsize': sizeof(cuda_bindings_nvml__anon_pod8), - }) + cdef cuda_bindings_nvml__anon_pod8 *pod = _cyb_calloc(1, sizeof(cuda_bindings_nvml__anon_pod8)) + if pod == NULL: + raise MemoryError("Error allocating cuda_bindings_nvml__anon_pod8") + try: + return _numpy.dtype({ + 'names': ['dlppc2x', 'pfpp1x'], + 'formats': [perf_metrics_dlppc2x_sample_dtype, perf_metrics_pfpp1x_sample_dtype], + 'offsets': [ + (&(pod.dlppc2x)) - (pod), + (&(pod.pfpp1x)) - (pod), + ], + 'itemsize': sizeof(cuda_bindings_nvml__anon_pod8), + }) + finally: + _cyb_free(pod) _py_anon_pod8_dtype = _get__py_anon_pod8_dtype_offsets() @@ -30178,16 +30938,21 @@ cdef class _py_anon_pod8: cdef _get_perf_metric_controller_sample_dtype_offsets(): - cdef nvmlPerfMetricControllerSample_t pod - return _numpy.dtype({ - 'names': ['controller_type', 'data_'], - 'formats': [_numpy.uint32, _py_anon_pod8_dtype], - 'offsets': [ - (&(pod.controllerType)) - (&pod), - (&(pod.data)) - (&pod), - ], - 'itemsize': sizeof(nvmlPerfMetricControllerSample_t), - }) + cdef nvmlPerfMetricControllerSample_t *pod = _cyb_calloc(1, sizeof(nvmlPerfMetricControllerSample_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPerfMetricControllerSample_t") + try: + return _numpy.dtype({ + 'names': ['controller_type', 'data_'], + 'formats': [_numpy.uint32, _py_anon_pod8_dtype], + 'offsets': [ + (&(pod.controllerType)) - (pod), + (&(pod.data)) - (pod), + ], + 'itemsize': sizeof(nvmlPerfMetricControllerSample_t), + }) + finally: + _cyb_free(pod) perf_metric_controller_sample_dtype = _get_perf_metric_controller_sample_dtype_offsets() cdef object perf_metric_controller_sample_dtype_record = _numpy.dtype((_numpy.record, perf_metric_controller_sample_dtype)) @@ -30344,16 +31109,21 @@ cdef class PerfMetricControllerSample: cdef _get_perf_metrics_sample_dtype_offsets(): - cdef nvmlPerfMetricsSample_t pod - return _numpy.dtype({ - 'names': ['num_controller_data', 'controller_data'], - 'formats': [_numpy.uint8, (perf_metric_controller_sample_dtype, 4)], - 'offsets': [ - (&(pod.numControllerData)) - (&pod), - (&(pod.controllerData)) - (&pod), - ], - 'itemsize': sizeof(nvmlPerfMetricsSample_t), - }) + cdef nvmlPerfMetricsSample_t *pod = _cyb_calloc(1, sizeof(nvmlPerfMetricsSample_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPerfMetricsSample_t") + try: + return _numpy.dtype({ + 'names': ['num_controller_data', 'controller_data'], + 'formats': [_numpy.uint8, (perf_metric_controller_sample_dtype, 4)], + 'offsets': [ + (&(pod.numControllerData)) - (pod), + (&(pod.controllerData)) - (pod), + ], + 'itemsize': sizeof(nvmlPerfMetricsSample_t), + }) + finally: + _cyb_free(pod) perf_metrics_sample_dtype = _get_perf_metrics_sample_dtype_offsets() cdef object perf_metrics_sample_dtype_record = _numpy.dtype((_numpy.record, perf_metrics_sample_dtype)) @@ -30507,16 +31277,21 @@ cdef class PerfMetricsSample: cdef _get_perf_metrics_samples_v1_dtype_offsets(): - cdef nvmlPerfMetricsSamples_v1_t pod - return _numpy.dtype({ - 'names': ['num_samples', 'samples'], - 'formats': [_numpy.uint32, (perf_metrics_sample_dtype, 13)], - 'offsets': [ - (&(pod.numSamples)) - (&pod), - (&(pod.samples)) - (&pod), - ], - 'itemsize': sizeof(nvmlPerfMetricsSamples_v1_t), - }) + cdef nvmlPerfMetricsSamples_v1_t *pod = _cyb_calloc(1, sizeof(nvmlPerfMetricsSamples_v1_t)) + if pod == NULL: + raise MemoryError("Error allocating nvmlPerfMetricsSamples_v1_t") + try: + return _numpy.dtype({ + 'names': ['num_samples', 'samples'], + 'formats': [_numpy.uint32, (perf_metrics_sample_dtype, 13)], + 'offsets': [ + (&(pod.numSamples)) - (pod), + (&(pod.samples)) - (pod), + ], + 'itemsize': sizeof(nvmlPerfMetricsSamples_v1_t), + }) + finally: + _cyb_free(pod) perf_metrics_samples_v1_dtype = _get_perf_metrics_samples_v1_dtype_offsets() @@ -33145,8 +33920,8 @@ cpdef unsigned long long device_get_total_ecc_errors(intptr_t device, int error_ device (intptr_t): The identifier of the target device. error_type (MemoryErrorType): Flag that specifies the type of the errors. - counter_type (EccCounterType): Flag that specifies the counter- - type of the errors. + counter_type (EccCounterType): Flag that specifies the + counter-type of the errors. Returns: unsigned long long: Reference in which to return the specified ECC @@ -33179,8 +33954,8 @@ cpdef unsigned long long device_get_memory_error_counter(intptr_t device, int er device (intptr_t): The identifier of the target device. error_type (MemoryErrorType): Flag that specifies the type of error. - counter_type (EccCounterType): Flag that specifies the counter- - type of the errors. + counter_type (EccCounterType): Flag that specifies the + counter-type of the errors. location_type (MemoryLocation): Specifies the location of the counter. @@ -33189,8 +33964,8 @@ cpdef unsigned long long device_get_memory_error_counter(intptr_t device, int er .. note:: On MIG-enabled GPUs, per instance information can be queried using specific MIG - device handles. Per instance information is currently only supported for non- - DRAM uncorrectable volatile errors. Querying volatile errors using device + device handles. Per instance information is currently only supported for + non-DRAM uncorrectable volatile errors. Querying volatile errors using device handles is currently not supported. .. seealso:: `nvmlDeviceGetMemoryErrorCounter` """ @@ -33590,9 +34365,9 @@ cpdef object device_get_compute_running_processes_v3(intptr_t device): .. note:: In MIG mode, if device handle is provided, the API returns aggregate information, only if the caller has appropriate privileges. Per-instance - information can be queried by using specific MIG device handles. Querying per- - instance information using MIG device handles is not supported if the device is - in vGPU Host virtualization mode. + information can be queried by using specific MIG device handles. Querying + per-instance information using MIG device handles is not supported if the + device is in vGPU Host virtualization mode. .. seealso:: `nvmlDeviceGetComputeRunningProcesses_v3` """ cdef unsigned int[1] info_count = [0] @@ -33633,9 +34408,9 @@ cpdef object device_get_graphics_running_processes_v3(intptr_t device): .. note:: In MIG mode, if device handle is provided, the API returns aggregate information, only if the caller has appropriate privileges. Per-instance - information can be queried by using specific MIG device handles. Querying per- - instance information using MIG device handles is not supported if the device is - in vGPU Host virtualization mode. + information can be queried by using specific MIG device handles. Querying + per-instance information using MIG device handles is not supported if the + device is in vGPU Host virtualization mode. .. seealso:: `nvmlDeviceGetGraphicsRunningProcesses_v3` """ cdef unsigned int[1] info_count = [0] @@ -33677,9 +34452,9 @@ cpdef object device_get_mps_compute_running_processes_v3(intptr_t device): .. note:: In MIG mode, if device handle is provided, the API returns aggregate information, only if the caller has appropriate privileges. Per-instance - information can be queried by using specific MIG device handles. Querying per- - instance information using MIG device handles is not supported if the device is - in vGPU Host virtualization mode. + information can be queried by using specific MIG device handles. Querying + per-instance information using MIG device handles is not supported if the + device is in vGPU Host virtualization mode. .. seealso:: `nvmlDeviceGetMPSComputeRunningProcesses_v3` """ cdef unsigned int[1] info_count = [0] @@ -35951,8 +36726,8 @@ cpdef str vgpu_type_get_license(unsigned int vgpu_type_id): The license type and version required to run the specified vGPU type is returned as an alphanumeric string, in the form ",", for example "GRID-Virtual-PC,2.0". If a vGPU is runnable with* more than one type - of license, the licenses are delimited by a semicolon, for example "GRID- - Virtual-PC,2.0;GRID-Virtual-WS,2.0;GRID-Virtual-WS-Ext,2.0". + of license, the licenses are delimited by a semicolon, for example + "GRID-Virtual-PC,2.0;GRID-Virtual-WS,2.0;GRID-Virtual-WS-Ext,2.0". The total length of the returned string will not exceed 128 characters, including the NUL terminator. See nvmlVgpuConstants::NVML_GRID_LICENSE_BUFFER_SIZE. @@ -36823,13 +37598,13 @@ cpdef tuple device_get_vgpu_utilization(intptr_t device, unsigned long long last For Kepler ™️ or newer fully supported devices. Reads recent utilization of GPU SM (3D/Compute), framebuffer, video encoder, and video decoder for vGPU instances running on a device. Utilization values - are returned as an array of utilization sample structures in the caller- - supplied buffer pointed at by ``utilization_samples``. One utilization sample - structure is returned per vGPU instance, and includes the CPU timestamp at - which the samples were recorded. Individual utilization values are returned as - "unsigned int" values in ``nvmlValue_t`` unions. The function sets the caller- - supplied ``sample_val_type`` to NVML_VALUE_TYPE_UNSIGNED_INT to indicate the - returned value type. + are returned as an array of utilization sample structures in the + caller-supplied buffer pointed at by ``utilization_samples``. One utilization + sample structure is returned per vGPU instance, and includes the CPU timestamp + at which the samples were recorded. Individual utilization values are returned + as "unsigned int" values in ``nvmlValue_t`` unions. The function sets the + caller-supplied ``sample_val_type`` to NVML_VALUE_TYPE_UNSIGNED_INT to indicate + the returned value type. To read utilization values, first determine the size of buffer required to hold the samples by invoking the function with ``utilization_samples`` set to NULL. The function will return NVML_ERROR_INSUFFICIENT_SIZE, with the current vGPU diff --git a/cuda_bindings_13/cuda/bindings/nvvm.pyx b/cuda_bindings_13/cuda/bindings/nvvm.pyx index 52bfa173b5f7..7b3664caac84 100644 --- a/cuda_bindings_13/cuda/bindings/nvvm.pyx +++ b/cuda_bindings_13/cuda/bindings/nvvm.pyx @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # # This code was automatically generated across versions from 12.0.1 to 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=737e7153c4954ec8a2b0dedd50729ee160589ccef13b0e3f512b6c7645d83f62 +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=404e6696c1e11fe6b1854c8b341bfba192fb90689ae0a69b3110c86d7c51ac5f # <<<< PREAMBLE CONTENT >>>> @@ -303,13 +303,13 @@ cpdef compile_program(intptr_t prog, int num_options, options): - -prec-sqrt=. - 0 (use a faster approximation for single-precision floating-point square root). - - 1 (default, use IEEE round-to-nearest mode for single-precision floating- - point square root). + - 1 (default, use IEEE round-to-nearest mode for single-precision + floating-point square root). - -prec-div=. - 0 (use a faster approximation for single-precision floating-point division and reciprocals). - - 1 (default, use IEEE round-to-nearest mode for single-precision floating- - point division and reciprocals). + - 1 (default, use IEEE round-to-nearest mode for single-precision + floating-point division and reciprocals). - -fma=. - 0 (disable FMA contraction). - 1 (default, enable FMA contraction). diff --git a/cuda_bindings_13/cuda/bindings/runtime.pyx b/cuda_bindings_13/cuda/bindings/runtime.pyx index b2bf79016883..38302e898609 100644 --- a/cuda_bindings_13/cuda/bindings/runtime.pyx +++ b/cuda_bindings_13/cuda/bindings/runtime.pyx @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # This code was automatically generated with version 13.5.0. Do not modify it directly. -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=fd56bdd31c4c12f8618529544aa12f69d7cb782da716c7e2eb06d3f3fdd1fecd +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=b2610805a773c0962631e67e0bd215f5b5a613e533637c379ba70c29d1143947 from typing import Any, Optional import cython import ctypes @@ -20219,7 +20219,7 @@ cdef class anon_union13: def pArray(self): return [cudaArray_t(init_value=_pArray) for _pArray in self._pvt_ptr[0].frame.pArray] @pArray.setter - def pArray(self, pArray : list[cudaArray_t]): + def pArray(self, pArray : list[cudaArray_t | int]): if len(pArray) != 3: raise IndexError('not enough values found during array assignment, expected 3, got', len(pArray)) pArray = [int(_pArray) for _pArray in pArray] From 0f4983bf9ce8053d3f0b3d992ba0ee3f21e39f63 Mon Sep 17 00:00:00 2001 From: Daniel Rodriguez Date: Wed, 18 Nov 2026 10:07:35 -0600 Subject: [PATCH 61/85] Add cuda-python agent skill for users and evals (#3452) --- .pre-commit-config.yaml | 4 +- skills/cuda-python/BENCHMARK.md | 185 +++++++++++ skills/cuda-python/SKILL.md | 154 +++++++++ skills/cuda-python/evals/evals.json | 311 ++++++++++++++++++ .../code/half_roundtrip.py | 58 ++++ .../code/hot_cells.py | 78 +++++ .../code/normalize.py | 61 ++++ .../code/denoise.py | 58 ++++ .../code/diffuse.py | 63 ++++ .../code/pipeline.py | 101 ++++++ .../code/saxpy_legacy.py | 151 +++++++++ .../code/threshold_pycuda.py | 59 ++++ .../code/calibrate.py | 52 +++ skills/cuda-python/skill-card.md | 109 ++++++ skills/cuda-python/skill.oms.sig | 1 + toolshed/check_spdx.py | 1 + 16 files changed, 1444 insertions(+), 2 deletions(-) create mode 100644 skills/cuda-python/BENCHMARK.md create mode 100644 skills/cuda-python/SKILL.md create mode 100644 skills/cuda-python/evals/evals.json create mode 100644 skills/cuda-python/evals/files/cuda-python-fix-hardcoded-paths/code/half_roundtrip.py create mode 100644 skills/cuda-python/evals/files/cuda-python-fix-ignored-errors/code/hot_cells.py create mode 100644 skills/cuda-python/evals/files/cuda-python-fix-scalar-args/code/normalize.py create mode 100644 skills/cuda-python/evals/files/cuda-python-fix-stream-order/code/denoise.py create mode 100644 skills/cuda-python/evals/files/cuda-python-perf-launch-loop/code/diffuse.py create mode 100644 skills/cuda-python/evals/files/cuda-python-port-core-experimental/code/pipeline.py create mode 100644 skills/cuda-python/evals/files/cuda-python-port-legacy-bindings/code/saxpy_legacy.py create mode 100644 skills/cuda-python/evals/files/cuda-python-port-pycuda/code/threshold_pycuda.py create mode 100644 skills/cuda-python/evals/files/cuda-python-review-calibrate/code/calibrate.py create mode 100644 skills/cuda-python/skill-card.md create mode 100644 skills/cuda-python/skill.oms.sig diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0e2ff6cc516a..1abfd3ef3dc9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -62,7 +62,7 @@ repos: language: python additional_dependencies: - https://files.pythonhosted.org/packages/cc/20/ff623b09d963f88bfde16306a54e12ee5ea43e9b597108672ff3a408aad6/pathspec-0.12.1-py3-none-any.whl - exclude: '(.*pixi\.lock)|(\.git_archival\.txt)|(.*\.patch$)|(^cuda_core/cuda/core/_vendored/)|(^cuda_core/third_party/)' + exclude: '(.*pixi\.lock)|(\.git_archival\.txt)|(.*\.patch$)|(^cuda_core/cuda/core/_vendored/)|(^cuda_core/third_party/)|(^skills/[^/]+/skill\.oms\.sig$)' args: ["--fix"] - id: check-cython-not-none @@ -179,7 +179,7 @@ repos: - id: check-yaml - id: debug-statements - id: end-of-file-fixer - exclude: &gen_exclude '^(?:cuda_python/README\.md|(?:.*/)?CLAUDE\.md|(?:.*/)?\.git_archival\.txt|cuda_bindings_(?:12|13)/cuda/bindings/.*\.in?|cuda_bindings_(?:12|13)/docs/source/module/.*\.rst?|.*\.pyi|\.github/actions/upgrade-ca-certificates/impacted-intermediates\.json)$' + exclude: &gen_exclude '^(?:cuda_python/README\.md|(?:.*/)?CLAUDE\.md|(?:.*/)?\.git_archival\.txt|cuda_bindings_(?:12|13)/cuda/bindings/.*\.in?|cuda_bindings_(?:12|13)/docs/source/module/.*\.rst?|.*\.pyi|\.github/actions/upgrade-ca-certificates/impacted-intermediates\.json|skills/[^/]+/skill\.oms\.sig)$' - id: mixed-line-ending - id: trailing-whitespace exclude: | diff --git a/skills/cuda-python/BENCHMARK.md b/skills/cuda-python/BENCHMARK.md new file mode 100644 index 000000000000..7293f214f2af --- /dev/null +++ b/skills/cuda-python/BENCHMARK.md @@ -0,0 +1,185 @@ +# Skill Benchmark: cuda-python + +> ✅ **Overall verdict: PASS — Recommended for publication** + +## Publication Recommendation + +Recommended for publication based on the completed evaluation evidence in this report. + +## Evaluation Metadata + +- Skill: `cuda-python` +- Validation status: `passed` +- Evaluation date: 2026-11-17 +- Evaluator version: `1.6.9` +- Agents: Claude Code (`aws/anthropic/bedrock-claude-opus-5-5`), Codex (`openai/openai/gpt-6.1-sol`) +- Tasks: 20 evaluation tasks (18 positive, 2 negative) +- Dataset digest: `sha256:019be8a7baa74a5b59a3b1eefde1bc48ea803066854740ed47a1be25fbd83a0f` (skill-evaluator-dataset-snapshot/1) +- Attempts per task: 1 +- Environment: `k8s-sandbox` +- Tier 2 evidence: required for publication +- Tier 3 evidence: required for publication + +Each task attempt ran in its own isolated sandbox pod. + +## Tier 1 LLM Provenance + +SkillSpector provider, model, analyzer revision, and determinism evidence retained for this scan. + +| Skill | Provider | Adapter | Analyzer | Model | Revision | Determinism | +| --- | --- | --- | --- | --- | --- | --- | +| cuda-python | nv_inference | openai | mcp_tool_poisoning | `aws/anthropic/bedrock-claude-opus-5-5` | `2.13.4` | nondeterministic / provider_defaults | +| cuda-python | nv_inference | openai | semantic_developer_intent | `aws/anthropic/bedrock-claude-opus-5-5` | `2.13.4` | nondeterministic / provider_defaults | +| cuda-python | nv_inference | openai | semantic_quality_policy | `aws/anthropic/bedrock-claude-opus-5-5` | `2.13.4` | nondeterministic / provider_defaults | +| cuda-python | nv_inference | openai | semantic_security_discovery | `aws/anthropic/bedrock-claude-opus-5-5` | `2.13.4` | nondeterministic / provider_defaults | +| cuda-python | nv_inference | openai | meta_analyzer | `aws/anthropic/bedrock-claude-opus-5-5` | `2.13.4` | nondeterministic / provider_defaults | + +- Controls for `cuda-python`: temperature=not set (source=provider_default, forwarded=no); seed=not set (source=unset, forwarded=no); reasoning_effort=not set (source=provider_default, forwarded=no) + +## What This Report Answers + +The three-tier evaluation checks whether the skill: + +- is safe to use; +- produces correct answers; +- is discovered and activated when needed; +- helps the agent complete the user's goal and expected workflow; and +- avoids wasted skill and tool usage. + +## Results at a Glance + +| Measure | Claude Code (Baseline → Skill Uplift) | Codex (Baseline → Skill Uplift) | +|---|---:|---:| +| Overall | 84.0% — baseline ran, but no comparable score was available; uplift unavailable | 74.7% — baseline ran, but no comparable score was available; uplift unavailable | +| Security | 80.0% → 90.0% (+10.0 points) | 82.5% → 67.5% (-15.0 points) | +| Correctness | 70.0% → 94.0% (+24.0 points) | 78.0% → 92.0% (+14.0 points) | +| Discoverability | 83.3% — baseline ran, but no comparable score was available; uplift unavailable | 83.9% — baseline ran, but no comparable score was available; uplift unavailable | +| Effectiveness | 56.0% → 68.0% (+12.0 points) | 50.3% → 62.5% (+12.2 points) | +| Efficiency | 84.5% — baseline ran, but no comparable score was available; uplift unavailable | 67.7% — baseline ran, but no comparable score was available; uplift unavailable | + +**How to read this table:** baseline is the same task attempted without the target skill. Scores are rounded to one decimal; threshold-adjacent values use additional precision so their displayed band matches the verdict. Uplift is derived from those displayed scores and shown in percentage points. + +Example: `47.0% → 92.0% (+45.0 points)` means the skill-assisted run scored 92.0%, 45.0 percentage points above its 47.0% no-skill baseline. + +A partial dimension was calculated from only the available configured signals; review the detailed report before relying on it. + +### Comparison details + +Shared-source comparisons use the same signals and weights on both conditions. They do not replace the full dimension scores above or change the publication verdict. + +| Agent | Dimension | Basis | Baseline → With skill (uplift) | Explanation | +| --- | --- | --- | --- | --- | +| claude-code | Discoverability | Dimension comparison | N/A | Discoverability is not applicable to the no-skill baseline; there is no installed skill to discover. | +| claude-code | Efficiency | Token-only comparison | 93.5% → 93.2% (-0.3 points) | Only Token Efficiency is comparable; the full dimension scores use different evaluator sources. | +| codex | Discoverability | Dimension comparison | N/A | Discoverability is not applicable to the no-skill baseline; there is no installed skill to discover. | +| codex | Efficiency | Token-only comparison | 80.4% → 84.2% (+3.8 points) | Only Token Efficiency is comparable; the full dimension scores use different evaluator sources. | + +## Token Usage + +Actual Tier 3 execution usage is reported for every observed agent/case pair and both conditions. + +| Agent | Dataset case | With skill | Without skill | Delta | Change | Coverage | +|---|---|---:|---:|---:|---:|---| +| claude-code | All cases | 8,487,347 | 6,531,841 | +1,955,506 | +29.94% | skill 20/20; base 20/20 | +| claude-code | cuda-python-any-array | 820,091 | 432,158 | +387,933 | +89.77% | skill 1/1; base 1/1 | +| claude-code | cuda-python-core-coverage-question | 75,607 | 74,393 | +1,214 | +1.63% | skill 1/1; base 1/1 | +| claude-code | cuda-python-fix-hardcoded-paths | 1,050,391 | 798,047 | +252,344 | +31.62% | skill 1/1; base 1/1 | +| claude-code | cuda-python-fix-ignored-errors | 631,295 | 779,614 | -148,319 | -19.02% | skill 1/1; base 1/1 | +| claude-code | cuda-python-fix-scalar-args | 297,621 | 297,568 | +53 | +0.02% | skill 1/1; base 1/1 | +| claude-code | cuda-python-fix-stream-order | 339,681 | 297,100 | +42,581 | +14.33% | skill 1/1; base 1/1 | +| claude-code | cuda-python-gpu-report | 579,394 | 482,669 | +96,725 | +20.04% | skill 1/1; base 1/1 | +| claude-code | cuda-python-install-question | 74,522 | 36,307 | +38,215 | +105.26% | skill 1/1; base 1/1 | +| claude-code | cuda-python-kernel-timing | 631,674 | 346,931 | +284,743 | +82.07% | skill 1/1; base 1/1 | +| claude-code | cuda-python-migration-question | 331,087 | 452,529 | -121,442 | -26.84% | skill 1/1; base 1/1 | +| claude-code | cuda-python-perf-launch-loop | 399,171 | 651,455 | -252,284 | -38.73% | skill 1/1; base 1/1 | +| claude-code | cuda-python-port-core-experimental | 1,089,223 | 222,228 | +866,995 | +390.14% | skill 1/1; base 1/1 | +| claude-code | cuda-python-port-legacy-bindings | 764,385 | 226,758 | +537,627 | +237.09% | skill 1/1; base 1/1 | +| claude-code | cuda-python-port-pycuda | 561,572 | 477,365 | +84,207 | +17.64% | skill 1/1; base 1/1 | +| claude-code | cuda-python-review-calibrate | 343,807 | 343,245 | +562 | +0.16% | skill 1/1; base 1/1 | +| claude-code | cuda-python-saxpy-numpy | 274,825 | 429,952 | -155,127 | -36.08% | skill 1/1; base 1/1 | +| claude-code | cuda-python-strided-view-question | 75,299 | 37,905 | +37,394 | +98.65% | skill 1/1; base 1/1 | +| claude-code | cuda-python-struct-arg-question | 75,285 | 74,121 | +1,164 | +1.57% | skill 1/1; base 1/1 | +| claude-code | negative-cupy-arrays | 36,492 | 35,897 | +595 | +1.66% | skill 1/1; base 1/1 | +| claude-code | negative-pytorch-install | 35,925 | 35,599 | +326 | +0.92% | skill 1/1; base 1/1 | +| codex | All cases | 5,647,197 | 5,878,348 | -231,151 | -3.93% | skill 20/20; base 20/20 | +| codex | cuda-python-any-array | 696,485 | 555,273 | +141,212 | +25.43% | skill 1/1; base 1/1 | +| codex | cuda-python-core-coverage-question | 67,663 | 56,539 | +11,124 | +19.67% | skill 1/1; base 1/1 | +| codex | cuda-python-fix-hardcoded-paths | 310,399 | 341,299 | -30,900 | -9.05% | skill 1/1; base 1/1 | +| codex | cuda-python-fix-ignored-errors | 554,577 | 480,780 | +73,797 | +15.35% | skill 1/1; base 1/1 | +| codex | cuda-python-fix-scalar-args | 174,532 | 201,057 | -26,525 | -13.19% | skill 1/1; base 1/1 | +| codex | cuda-python-fix-stream-order | 167,752 | 411,975 | -244,223 | -59.28% | skill 1/1; base 1/1 | +| codex | cuda-python-gpu-report | 300,411 | 236,267 | +64,144 | +27.15% | skill 1/1; base 1/1 | +| codex | cuda-python-install-question | 47,753 | 33,153 | +14,600 | +44.04% | skill 1/1; base 1/1 | +| codex | cuda-python-kernel-timing | 301,015 | 141,423 | +159,592 | +112.85% | skill 1/1; base 1/1 | +| codex | cuda-python-migration-question | 45,051 | 35,257 | +9,794 | +27.78% | skill 1/1; base 1/1 | +| codex | cuda-python-perf-launch-loop | 432,239 | 486,179 | -53,940 | -11.09% | skill 1/1; base 1/1 | +| codex | cuda-python-port-core-experimental | 872,445 | 1,001,295 | -128,850 | -12.87% | skill 1/1; base 1/1 | +| codex | cuda-python-port-legacy-bindings | 725,616 | 897,704 | -172,088 | -19.17% | skill 1/1; base 1/1 | +| codex | cuda-python-port-pycuda | 293,928 | 341,115 | -47,187 | -13.83% | skill 1/1; base 1/1 | +| codex | cuda-python-review-calibrate | 302,505 | 367,867 | -65,362 | -17.77% | skill 1/1; base 1/1 | +| codex | cuda-python-saxpy-numpy | 213,515 | 161,230 | +52,285 | +32.43% | skill 1/1; base 1/1 | +| codex | cuda-python-strided-view-question | 54,682 | 48,896 | +5,786 | +11.83% | skill 1/1; base 1/1 | +| codex | cuda-python-struct-arg-question | 46,762 | 41,636 | +5,126 | +12.31% | skill 1/1; base 1/1 | +| codex | negative-cupy-arrays | 17,855 | 17,721 | +134 | +0.76% | skill 1/1; base 1/1 | +| codex | negative-pytorch-install | 22,012 | 21,682 | +330 | +1.52% | skill 1/1; base 1/1 | +| ALL AGENTS | Dataset aggregate | 14,134,544 | 12,410,189 | +1,724,355 | +13.89% | skill 40/40; base 40/40 | + +Prompt tokens include cached reads, so total tokens are `prompt + completion` (cached is not added twice). The Efficiency score uses `(prompt - cached) + completion`. Change is `100 * (with - without) / without`; negative means fewer tokens. N/A comparisons include their reason in the coverage column; coverage is never estimated. + +## Tier Status + +| Tier | Purpose | Status | Evidence | +|---|---|---|---| +| Tier 1 | Static validation | **PASSED WITH OBSERVATIONS** | 11 validator(s); 10 finding(s) | +| Tier 2 | Semantic deduplication | **PASSED** | 2 validator(s); 0 finding(s) | +| Tier 3 | Live agent evaluation | **PASS** | 2 agent(s); 20 task(s) | + +## Findings and Observations + +
+Show detailed findings and successful checks + +- **MEDIUM** QUALITY/quality_discoverability: Description contains vague words (`skills/cuda-python/SKILL.md`) +- **MEDIUM** SCHEMA/body_recommended_section: Missing recommended section: '## Instructions' (`skills/cuda-python/SKILL.md`) +- **MEDIUM** SCHEMA/body_recommended_section: Missing recommended section: '## Examples' (`skills/cuda-python/SKILL.md`) +- **LOW** QUALITY/quality_discoverability: Description very long (760 chars, recommend 50-150) (`skills/cuda-python/SKILL.md`) +- **LOW** QUALITY/quality_discoverability: No '## Purpose' section (`skills/cuda-python/SKILL.md`) +- 5 additional finding(s) are available in the full evaluation artifacts. + +
+ +## Scoring Methodology + +
+Show dimension definitions, source signals, and thresholds + +| Dimension | Question | Scored signals | +|---|---|---| +| Security | Is it safe to use? | `security` (100%) | +| Correctness | Is the answer correct? | `accuracy` (100%) | +| Discoverability | Was the right skill loaded when needed? | `skill_execution` (100%) | +| Effectiveness | Did the skill help complete the task? | `goal_accuracy` (50%) + `behavior_check` (50%) | +| Efficiency | Did it avoid wasted tool calls and token usage? | `skill_efficiency` (50%) + `token_efficiency` (50%) | + +- Dimension bands: PASS at 50% or above; NEUTRAL from 40% to below 50%; FAIL below 40%. +- Overall Tier 3 lift: PASS at +5 points or more; FAIL at -10 points or less; values between those bands are NEUTRAL. +- Overall verdict: PASS only when every configured dimension passes for at least one supported agent. Lift is reported as diagnostic evidence and does not override this gate. +- The 50% attempt pass threshold is a separate per-task gate; it is not the dimension pass threshold. +- Effectiveness is the equal-weight mean of goal completion (`goal_accuracy`) and expected workflow adherence (`behavior_check`). +- Efficiency is 50% tool-call productivity (the backward-compatible `skill_efficiency` wire id) and 50% `token_efficiency`. Positive-case skill routing is scored under Discoverability, not Efficiency; a negative case without a routing target is N/A. N/A sources are omitted, remaining weights are renormalized, and the dimension is marked partial. + +Signals present in this run: + +- `security` (Security): unsafe operations, secret leakage, and unauthorized access. +- `skill_execution` (Skill Execution): whether the expected skill was selected, decoys were avoided, and the workflow executed. +- `skill_efficiency` (Tool Productivity): tool-call productivity (legacy wire id; routing is scored under Discoverability). +- `accuracy` (Accuracy): final-answer correctness against the reference answer. +- `goal_accuracy` (Goal Accuracy): whether the user's goal was achieved. +- `behavior_check` (Behavior Check): whether the expected workflow behavior was followed. +- `token_efficiency` (Token Efficiency): actual uncached prompt plus completion usage (50% of Efficiency). + +
+ +## Freshness + +Regenerate this benchmark when the skill, evaluation dataset, target agent/model, evaluator version, environment, or scoring policy changes. diff --git a/skills/cuda-python/SKILL.md b/skills/cuda-python/SKILL.md new file mode 100644 index 000000000000..dda8df21d05c --- /dev/null +++ b/skills/cuda-python/SKILL.md @@ -0,0 +1,154 @@ +--- +name: cuda-python +description: >- + Use for any task or question involving CUDA Python Core libraries: cuda-core, cuda-bindings + and cuda-pathfinder. + Use when asked to write, port, review, debug Python code that compiles and launches + its own CUDA kernels (Program, launch, LaunchConfig, Device, Stream, Buffer, Linker, CUDA graphs). + When porting PyCUDA or old CUDA bindings APIs to cuda.core and cuda.bindings. + When interacting with passing CuPy, PyTorch or Numba arrays and streams to a custom kernel. + When locating CUDA headers or libraries from Python, and for install questions about + cuda-python, cuda-core or conda. + Use before hand-rolling cuda.bindings driver / nvrtc / nvml calls for something cuda.core provides. + Not for plain CuPy, Numba or PyTorch array code, or for cuda.compute (CCCL). +license: Apache-2.0 +metadata: + author: NVIDIA + tags: [cuda, cuda-python, cuda-core, cuda-bindings, cuda-pathfinder] +--- + +# CUDA Python: cuda.core, cuda.bindings, cuda.pathfinder + +`cuda-python` is a metapackage that covers: +- `cuda.core`: the Pythonic API +- `cuda.bindings`: 1:1 wrappers of the CUDA C APIs +- `cuda.pathfinder`: locates CUDA libraries and headers + +## Install + +- pip: driver only, no CUDA Toolkit: `pip install "cuda-core[cu13]"` (or `[cu12]`). + The extra pulls `cuda-bindings[all]`, which brings the NVRTC, nvJitLink and NVVM wheels. +- conda: `conda install -c conda-forge cuda-python cuda-version=13` (or `cuda-core`, or `cuda-version=12`). + One `cuda-core` release supports both CUDA majors; there are no `-cu12` / `-cu13` package names. + + +## Use cuda.core first + +`cuda.core` is the Pythonic API to all CUDA APIs and should be used for +all new Python code as far as the API is available, only fall back to +`cuda-bindings` when needed. +`cuda.core` raises exceptions and manages handles for you, while `cuda.bindings` `driver`, `runtime` and `nvrtc` calls return `(err, ...)` tuples, so an unchecked failure is silent. + +| Task | cuda.core API | +|---|---| +| Compile CUDA C++ at runtime | `Program(src, code_type="c++", options=ProgramOptions(...)).compile("cubin")`, `.get_kernel(name)` | +| Device and pinned memory | `dev.allocate(nbytes, stream=s)`, `PinnedMemoryResource()`, `Buffer.copy_to` / `copy_from` / `fill` | +| CUDA graphs | `stream.create_graph_builder()` (types in `cuda.core.graph`) | +| Link with LTO | `ProgramOptions(link_time_optimization=True)`, `.compile("ltoir")`, `Linker(a, b, options=LinkerOptions(link_time_optimization=True)).link("cubin")` | +| GPU monitoring (NVML) | `cuda.core.system`: `system.Device.get_all_devices()`, `.name`, `.uuid`, `.memory_info`, `.temperature.get_sensor()`, `.utilization.gpu`, `system.get_kernel_mode_driver_version()` | +| OpenGL interop | `GraphicsResource.from_gl_buffer` / `from_gl_image`, `.map(stream=s)` | + +## Compile, copy, launch + +A `cuda.core` program usually follows the same four steps: make a device current, compile the kernel, +move data into device memory, and launch on a stream. Everything submitted to a stream is +asynchronous, so results are only valid after `stream.sync()`. + +```python +import numpy as np + +from cuda.core import Device, LaunchConfig, PinnedMemoryResource, Program, launch + +# extern "C" keeps the kernel name unmangled so get_kernel("scale") can find it. +code = r""" +extern "C" __global__ void scale(float* x, float a, size_t n) +{ + size_t i = blockIdx.x * (size_t)blockDim.x + threadIdx.x; + if (i < n) { x[i] *= a; } +} +""" + +# 1. Device and stream. set_current() comes first, and in every thread that uses the GPU. +dev = Device() +dev.set_current() +stream = dev.create_stream() + +# 2. Compile with NVRTC. "cubin" is machine code for this GPU and always loads. +kernel = Program(code, code_type="c++").compile("cubin").get_kernel("scale") + +# 3. Allocate pinned host memory and device memory. +n = 1 << 20 +h_x = PinnedMemoryResource().allocate(n * 4, stream=stream) +d_x = dev.allocate(n * 4, stream=stream) + +# Host data goes through a pinned `Buffer` that can be viewed from Numpy using `np.from_dlpack` +x = np.from_dlpack(h_x).view(np.float32) # zero-copy NumPy view of the pinned buffer +x[:] = np.arange(n) + +# 4. Copy in, launch, copy out. Scalars are sized NumPy types that match the kernel signature. +h_x.copy_to(d_x, stream=stream) +launch(stream, LaunchConfig(grid=(n + 255) // 256, block=256), kernel, d_x, np.float32(2.5), np.uint64(n)) +d_x.copy_to(h_x, stream=stream) +stream.sync() # x now holds the result +``` + +## Kernel arguments + +`launch()` doesn't check the kernel signature, a missmatch will generate zeros or garbage output. + +- Pass sized scalars: `np.float32` for `float`, `np.float64` for `double`, `np.int32` for `int`, `np.uint64` for `size_t`. +- Pass pointers as a `Buffer` or an `int` address (`arr.data.ptr`, `tensor.data_ptr()`, `view.ptr`). +- Arrays, tensors and structs (`ctypes.Structure`, NumPy structured scalars) raise `TypeError`. + +## 3rd party libraries: CuPy, PyTorch and Numba + +A stream from `dev.create_stream()` is not ordered with the other library's stream, so a kernel can +run before a preceding call from another library has finished. Share one stream instead of synchronizing: +`s = dev.create_stream(cp.cuda.get_current_stream())`. Their stream objects work directly. + +`StridedMemoryView` reads arrays from CuPy, PyTorch and Numba. Validate before passing `view.ptr` to a kernel: + +```python +view = StridedMemoryView.from_any_interface(arr, stream_ptr=stream.handle) +c_strides = tuple(int(np.prod(view.shape[i + 1 :])) for i in range(len(view.shape))) +ok = view.is_device_accessible and view.dtype == np.float32 and view.strides in (None, c_strides) +``` + +## CUDA graphs + +Capture a batch of launches once and replay it with a single driver call. Use it for loops of many +small kernels, where the host-side launch overhead dominates. + +```python +gb = stream.create_graph_builder().begin_building() +for _ in range(100): + launch(gb, config, kernel, buf, n) # recorded, not executed; arguments are fixed at capture +graph = gb.end_building().complete() +graph.launch(stream) # replays all 100 launches +stream.sync() +``` + +## Headers and libraries: cuda.pathfinder + +Never hard-code a cuda location such as: `/usr/local/cuda`. +`cuda.pathfinder` searches pip wheels, conda and `CUDA_PATH` for the right location. + +```python +from cuda.pathfinder import find_nvidia_header_directory + +include = [find_nvidia_header_directory("cudart"), find_nvidia_header_directory("cccl")] # None if missing +options = ProgramOptions(std="c++17", include_path=include) +``` + +## Migration + +| Old | Now | +|---|---| +| `from cuda import cuda, nvrtc`, `cuda.cudart` (removed in 13.0) | `cuda.bindings.driver`, `.nvrtc`, `.runtime`; port new code to `cuda.core` | +| `cuda.core.experimental` (removed in 1.0), `from cuda.core import GraphBuilder` | `cuda.core`, `cuda.core.utils`, `cuda.core.graph` | +| PyCUDA `autoinit`, `SourceModule`, `mem_alloc`, `pagelocked_empty`, `memcpy_htod_async`, `Event.time_since` | `Device().set_current()`, `Program` (add `extern "C"`), `dev.allocate`, pinned `Buffer`, `Buffer.copy_to`, `end - start` | + +## References + +- Docs: https://nvidia.github.io/cuda-python/cuda-core/latest/ (`api.html`, `release.html`) +- Source: if you can clone repositories, clone https://github.com/NVIDIA/cuda-python in a temp location to validate APIs and produce more accurate code. diff --git a/skills/cuda-python/evals/evals.json b/skills/cuda-python/evals/evals.json new file mode 100644 index 000000000000..06cd4147cab9 --- /dev/null +++ b/skills/cuda-python/evals/evals.json @@ -0,0 +1,311 @@ +{ + "skill_name": "cuda-python", + "evals": [ + { + "id": "cuda-python-saxpy-numpy", + "prompt": "Write saxpy.py: compile a SAXPY kernel (y = a*x + y) at runtime with cuda-python and run it on the GPU for two NumPy float32 arrays of 1<<20 elements, x = arange(n), y = ones(n), a = 2.5. Only cuda-python and NumPy are allowed, no CuPy, Numba or PyTorch. Run it and print y[:4] and the float64 sum of y.", + "files": [], + "expected_skill": "cuda-python", + "expected_script": null, + "expected_output": "A script built on cuda.core: Device().set_current(), Program(code, code_type=\"c++\").compile(\"cubin\").get_kernel(...), LaunchConfig and launch on a stream. Device memory comes from cuda.core (Device.allocate or a memory resource, with the required stream= keyword) and the NumPy data moves through cuda.core Buffers: a host buffer (LegacyPinnedMemoryResource or PinnedMemoryResource, viewed with np.from_dlpack(buf).view(np.float32), or Buffer.from_handle over the NumPy memory) and Buffer.copy_to / copy_from on the stream, followed by stream.sync() before reading. It does not drop to cuda.bindings (no nvrtcCreateProgram, cuLaunchKernel, cuMemAlloc, cuMemcpyHtoD/DtoH) and does not use CuPy, Numba or PyTorch. The scalar a is passed as np.float32 (or ctypes.c_float), not a Python float, and n as a sized integer that matches the kernel signature. The program runs and prints y[:4] = [1.0, 3.5, 6.0, 8.5] and sum 1374389272576.", + "assertions": [ + "Compiles and launches with cuda.core (Program, LaunchConfig, launch), not with cuda.bindings nvrtc / cuLaunchKernel calls", + "Moves the NumPy data to and from the GPU through cuda.core Buffers (host or pinned Buffer plus Buffer.copy_to / copy_from) instead of cuda.bindings memcpy calls such as cuMemcpyHtoD / cuMemcpyDtoH", + "Passes the float scalar as np.float32 or ctypes.c_float (not a Python float) and the element count as a sized integer matching the kernel parameter", + "Does not use CuPy, Numba or PyTorch", + "Runs the script and reports y[:4] = [1.0, 3.5, 6.0, 8.5] and sum 1374389272576" + ] + }, + { + "id": "cuda-python-gpu-report", + "prompt": "Write gpu_report.py that prints, for every GPU in this machine: index, name, UUID, compute capability, total and free memory in MiB, temperature in C and GPU utilization in percent, plus the NVIDIA driver version once at the top. Use cuda-python only (no pynvml, no parsing nvidia-smi). Run it.", + "files": [], + "expected_skill": "cuda-python", + "expected_script": null, + "expected_output": "A script that uses the cuda.core.system module, which wraps NVML: system.Device.get_all_devices() (or system.get_num_devices() with system.Device(index=i)), and per device .index, .name, .uuid, .cuda_compute_capability (or cuda.core.Device(i).compute_capability), .memory_info.total / .free, .temperature.get_sensor(), .utilization.gpu, and system.get_kernel_mode_driver_version() (a tuple such as (615, 78, 8)) for the driver version. It does not import pynvml, shell out to nvidia-smi, or hand-roll raw cuda.bindings.nvml handle calls (nvml.init_v2, device_get_handle_by_index_v2, ...). The script runs without errors and prints one block per GPU with plausible values (on the reference machine: two NVIDIA GeForce RTX 4090, compute capability 8.9, about 24564 MiB total each, driver 615.78.08).", + "assertions": [ + "Uses cuda.core.system (system.Device / system.get_num_devices and related properties) for the queries", + "Does not use pynvml, nvidia-smi, or raw cuda.bindings.nvml handle-based calls", + "Reports the NVIDIA driver version (kernel-mode driver version such as 615.78.08), not only the CUDA version supported by the driver", + "Runs the script and shows per-GPU name, UUID, compute capability, total and free memory, temperature and utilization" + ] + }, + { + "id": "cuda-python-any-array", + "prompt": "Write gpu_ops.py with a function clamp_inplace(arr, lo, hi, stream=None) that clamps a float32 GPU array in place with a custom CUDA kernel compiled through cuda-python. It must accept CuPy arrays, PyTorch CUDA tensors and Numba device arrays without copying the data, and it must raise a clear error instead of corrupting memory when it is given something it cannot handle: a dtype other than float32, a non-contiguous view (for example a column of a 2-D array), or a host (NumPy) array. Add a small self-test at the bottom that exercises all three libraries and the three error cases, and run it.", + "files": [], + "expected_skill": "cuda-python", + "expected_script": null, + "expected_output": "gpu_ops.py reads the array metadata through cuda.core.utils.StridedMemoryView (StridedMemoryView.from_any_interface(arr, stream_ptr=...) or the args_viewable_as_strided_memory decorator with arg.view(stream_ptr)), which covers DLPack and __cuda_array_interface__ for all three libraries, instead of one branch per library (isinstance checks, arr.data.ptr, tensor.data_ptr(), parsing __cuda_array_interface__ by hand). It validates view.dtype == float32, view.is_device_accessible, and C-contiguity. The contiguity check must be correct for a contiguous 2-D CuPy array: StridedMemoryView.strides is in element counts and is a tuple such as (4, 1) for a contiguous (3, 4) CuPy array (None for Numba), so `strides is None` alone is not a valid test. The kernel is compiled once with cuda.core Program, launched with launch() on a cuda.core Stream (the caller's stream wrapped with Device.create_stream(obj) or a module-level stream), with view.ptr as the pointer and sized scalars (np.float32 for lo and hi). The self-test passes for CuPy, PyTorch and Numba inputs, including a contiguous 2-D array, and the three invalid inputs raise TypeError/ValueError.", + "assertions": [ + "Uses cuda.core.utils.StridedMemoryView or args_viewable_as_strided_memory to get pointer, shape and dtype, rather than separate per-library code paths", + "Rejects non-float32 input, non-contiguous views and host arrays with an exception, using the view's dtype, strides/shape and is_device_accessible", + "The contiguity check accepts contiguous multi-dimensional CuPy arrays (does not rely only on `strides is None`)", + "Passes lo and hi as np.float32 or ctypes.c_float and synchronizes or orders the stream before results are read", + "Runs the self-test and shows it passing for CuPy, PyTorch and Numba plus the three error cases" + ] + }, + { + "id": "cuda-python-kernel-timing", + "prompt": "Write bench_blocks.py with cuda-python: compile a kernel that computes out[i] = sqrtf(x[i]) * 0.5f + 1.0f for 1<<24 float32 elements, and for block sizes 64, 128, 256, 512 and 1024 measure the GPU time of one launch with CUDA events (not host timers), after a warm-up launch. For each block size print the time in ms. Also print the kernel's register count and max threads per block, and the block size the occupancy API suggests. Run it.", + "files": [], + "expected_skill": "cuda-python", + "expected_script": null, + "expected_output": "A cuda.core script. Events are created with EventOptions(timing_enabled=True) (the pre-1.0 keyword enable_timing no longer exists) via stream.record(options=...), the end event or the stream is synchronized before subtracting, and `end - start` gives milliseconds. Kernel attributes are read as properties: kernel.attributes.num_regs and kernel.attributes.max_threads_per_block (they were methods before cuda.core 1.0). The suggested block size comes from kernel.occupancy.max_potential_block_size(...). The grid for each block size is ceil(n / block). Scalars are passed with sized types. The script runs and prints a time for each of the five block sizes (well under 1 ms each on an RTX 4090), the register count, max threads per block 1024, and the suggested block size.", + "assertions": [ + "Times the launches with cuda.core events created with EventOptions(timing_enabled=True) and subtracts them after synchronizing", + "Reads kernel.attributes.num_regs and max_threads_per_block as properties and uses kernel.occupancy for the suggested block size", + "Does a warm-up launch before timing and sizes the grid as ceil(n / block) for every block size", + "Runs the script and reports a time in ms for all five block sizes plus register count, max threads per block and suggested block size" + ] + }, + { + "id": "cuda-python-port-legacy-bindings", + "prompt": "code/saxpy_legacy.py was written against cuda-python 11.8 and no longer runs. Port it to the cuda-python installed here, using the API NVIDIA recommends for new code today, keep the printed result the same, run it, and tell me what changed between the old API and the new one.", + "files": [ + "files/cuda-python-port-legacy-bindings/code/saxpy_legacy.py" + ], + "expected_skill": "cuda-python", + "expected_script": null, + "expected_output": "Explains that the flat modules cuda.cuda, cuda.cudart and cuda.nvrtc were deprecated in 12.x and removed in cuda-python 13 (they live on as cuda.bindings.driver, cuda.bindings.runtime and cuda.bindings.nvrtc), and that the recommended API for new code is cuda.core, which replaces the manual init / context / NVRTC / module / cuLaunchKernel sequence and raises exceptions instead of returning error codes. Ports the script to cuda.core: Device().set_current(), Program(...).compile(\"cubin\") (or ptx), get_kernel, a Stream, device memory through Device.allocate or a memory resource (with stream=), host data through cuda.core Buffers (pinned buffers with np.from_dlpack, or equivalent), launch() with LaunchConfig(grid=32768, block=512), a as np.float32 and n as np.uint64 (size_t), and stream.sync(). The assert_drv helper and the hand-packed argument array are gone. A port that only renames the imports to cuda.bindings.driver / nvrtc and keeps the driver-call sequence is not the expected answer. The program runs and prints saxpy ok: n=16777216 out[:4]=[0.0, 3.0, 6.0, 9.0] sum=16810601085.0.", + "assertions": [ + "Ports the script to cuda.core (Device, Program, launch, LaunchConfig, Stream) instead of only renaming imports to cuda.bindings.driver / cuda.bindings.nvrtc", + "Removes the manual error-code checking (assert_drv) and the hand-packed kernel argument array", + "Passes a as a float32 scalar and n as a 64-bit integer to match the kernel's float and size_t parameters", + "Explains that the old cuda.cuda / cuda.nvrtc modules were removed and that cuda.core is the recommended high-level API", + "Runs the port and reports n=16777216, out[:4]=[0.0, 3.0, 6.0, 9.0] and sum=16810601085.0" + ] + }, + { + "id": "cuda-python-port-core-experimental", + "prompt": "code/pipeline.py was written for cuda-core 0.3 and fails on import with the version installed here. Port it to the installed cuda.core without changing what it computes or prints, run it, and list every API change you had to make.", + "files": [ + "files/cuda-python-port-core-experimental/code/pipeline.py" + ], + "expected_skill": "cuda-python", + "expected_script": null, + "expected_output": "Ports the script with these changes: imports from cuda.core and cuda.core.utils (the cuda.core.experimental namespace was removed in 1.0); system.num_devices becomes system.get_num_devices(); the linker.backend property becomes the classmethod Linker.which_backend(); kernel.attributes.max_threads_per_block() becomes the property kernel.attributes.max_threads_per_block; allocate() calls take the required keyword stream= (Device.allocate and the memory resource; passing it to LegacyPinnedMemoryResource is optional but fine); StridedMemoryView(obj, stream_ptr=-1) is deprecated in favor of StridedMemoryView.from_any_interface / from_array_interface / from_dlpack; LaunchConfig(cooperative_launch=...) becomes is_cooperative=...; EventOptions(enable_timing=True) becomes timing_enabled=True; Event.is_timing_disabled becomes is_timing_enabled (negated to keep the printed line). It stays on cuda.core and does not rewrite the script with cuda.bindings. The program runs and prints devices: 2 (the GPU count of the machine), linker backend: nvJitLink, kernel arguments: 5, max threads per block: 1024, host view: shape=(4, 262144) dtype=float32 on_gpu=False, timing disabled: False, kernel time measured: True, sum=524288.000 y[N//2]=0.500002.", + "assertions": [ + "Replaces the cuda.core.experimental imports with cuda.core / cuda.core.utils", + "Updates the renamed APIs: system.get_num_devices(), Linker.which_backend(), attributes.max_threads_per_block as a property, LaunchConfig(is_cooperative=...), EventOptions(timing_enabled=True), Event.is_timing_enabled", + "Passes stream= to Device.allocate", + "Replaces the deprecated StridedMemoryView(obj, stream_ptr) constructor with a from_* classmethod, or explicitly notes that it is deprecated", + "Runs the port and reports linker backend nvJitLink, max threads per block 1024, timing disabled False, sum=524288.000 and y[N//2]=0.500002" + ] + }, + { + "id": "cuda-python-port-pycuda", + "prompt": "We are dropping PyCUDA. Port code/threshold_pycuda.py to cuda-python (PyCUDA is not installed here and must not be added), keep the same printed lines, and run it. No CuPy or other GPU libraries.", + "files": [ + "files/cuda-python-port-pycuda/code/threshold_pycuda.py" + ], + "expected_skill": "cuda-python", + "expected_script": null, + "expected_output": "A cuda.core port: pycuda.autoinit becomes Device().set_current(); SourceModule becomes Program(code, code_type=\"c++\").compile(\"cubin\").get_kernel(\"soft_threshold\") with extern \"C\" added to the kernel (NVRTC compiles C++ and mangles names, which PyCUDA hid); drv.pagelocked_empty becomes a pinned cuda.core buffer (LegacyPinnedMemoryResource or PinnedMemoryResource) viewed with np.from_dlpack(buf).view(np.float32); drv.mem_alloc becomes Device.allocate(nbytes, stream=stream); memcpy_htod_async / memcpy_dtoh_async become Buffer.copy_to / copy_from on the stream; drv.Stream becomes dev.create_stream(); drv.Event and time_since become stream.record(options=EventOptions(timing_enabled=True)) and `end - start`; block=/grid= become LaunchConfig(grid=(n + 255) // 256, block=256). It does not fall back to cuda.bindings driver calls (cuMemAlloc, cuMemcpyHtoDAsync, cuLaunchKernel, cuEventCreate) or to ctypes pointer tricks for the host views, and it does not use CuPy. The program runs and prints kernel time measured: True, nonzero: 3501793 of 4194304, sum of |out|: 1767896.509, out[1000:1004]: [0.81938, 0.87504, 0.8924, 0.86916].", + "assertions": [ + "Ports to cuda.core (Device, Program, launch, LaunchConfig) with extern \"C\" on the kernel, and does not install or import PyCUDA", + "Uses cuda.core pinned host buffers and Buffer.copy_to / copy_from for the transfers instead of cuda.bindings memcpy calls", + "Times the kernel with cuda.core events (EventOptions(timing_enabled=True), end - start) instead of cuda.bindings event calls or host timers", + "Does not use cuda.bindings driver/runtime calls or other GPU libraries such as CuPy", + "Runs the port and reports nonzero 3501793, sum of |out| 1767896.509 and out[1000:1004] = [0.81938, 0.87504, 0.8924, 0.86916]" + ] + }, + { + "id": "cuda-python-fix-scalar-args", + "prompt": "code/normalize.py should print min=-0.3125 mean=0.3125 max=0.9375 but prints zeros, with no error or warning. Find out why, fix it, run it, and explain what went wrong.", + "files": [ + "files/cuda-python-fix-scalar-args/code/normalize.py" + ], + "expected_skill": "cuda-python", + "expected_script": null, + "expected_output": "Explains that launch() does not look at the kernel signature: each scalar is copied with the size of the Python object that was passed, and the kernel then reads its own parameter size. Three arguments are wrong. (1) offset is a Python float, which is passed as an 8-byte double, so the float parameter reads the low 4 bytes (0.0). (2) gain is passed as np.float32 but the parameter is double, so the kernel reads 8 bytes from a 4-byte value (garbage or 0). (3) n is passed as np.int32 but the parameter is size_t, so the upper 4 bytes are undefined; it only appears to work. The fix passes np.float32(OFFSET), np.float64(GAIN) (or a Python float, which is a double) and np.uint64(N) (or a Python int / np.int64 / ctypes.c_size_t). The kernel signature can stay as it is. After the fix the program prints min=-0.3125 mean=0.3125 max=0.9375.", + "assertions": [ + "Explains that launch() passes scalars by the size of the Python/NumPy object, without checking the kernel signature", + "Passes offset as a 32-bit float (np.float32 or ctypes.c_float) instead of a Python float", + "Passes gain as a 64-bit float (np.float64, ctypes.c_double or a Python float) to match the double parameter", + "Passes n as a 64-bit integer (np.uint64, np.int64, ctypes.c_size_t or a Python int) to match size_t, or changes the kernel parameter to int", + "Runs the fixed script and reports min=-0.3125 mean=0.3125 max=0.9375" + ] + }, + { + "id": "cuda-python-fix-ignored-errors", + "prompt": "code/hot_cells.py prints 'hot cells: 0 of 1048576' but about a third of the cells are above the threshold. It reports no error at all. Find the cause, fix it so that this kind of failure cannot go unnoticed again, run it, and tell me what was wrong.", + "files": [ + "files/cuda-python-fix-ignored-errors/code/hot_cells.py" + ], + "expected_skill": "cuda-python", + "expected_script": null, + "expected_output": "Explains that cuda.bindings.driver and cuda.bindings.nvrtc functions never raise: they return a tuple whose first element is the error code, and the script discards it everywhere. The first failing call is cuModuleGetFunction, which returns CUDA_ERROR_NOT_FOUND because NVRTC compiles the source as C++ and the kernel has no extern \"C\", so its symbol is mangled and \"count_hot\" does not exist; cuLaunchKernel then fails with CUDA_ERROR_INVALID_HANDLE and the count stays 0. Fixes the root cause with extern \"C\" (or by looking up the mangled name) and removes the silent-failure class, preferably by porting the script to cuda.core (Device, Program, get_kernel, launch), which raises CUDAError / NVRTCError on every failure, or at least by checking the returned code of every cuda.bindings call. The program then prints hot cells: 327156 of 1048576.", + "assertions": [ + "Identifies that cuModuleGetFunction fails with CUDA_ERROR_NOT_FOUND because the kernel name is C++-mangled (missing extern \"C\")", + "Explains that cuda.bindings driver/nvrtc calls return error codes in a tuple instead of raising, and that the script ignored them", + "Makes failures loud: ports to cuda.core (which raises exceptions) or checks the error code of every cuda.bindings call", + "Runs the fixed script and reports hot cells: 327156 of 1048576" + ] + }, + { + "id": "cuda-python-review-calibrate", + "prompt": "Please review code/calibrate.py for correctness bugs before we ship it. It should multiply the temperature column by a per-sensor gain and add a bias, in place, and leave the other columns alone. Fix everything you find, run it, and tell me what was wrong.", + "files": [ + "files/cuda-python-review-calibrate/code/calibrate.py" + ], + "expected_skill": "cuda-python", + "expected_script": null, + "expected_output": "Finds and fixes five bugs. (1) gain = cp.linspace(...) is float64 but the kernel reads const float*; create it as float32. (2) temps = readings[:, 1] is a non-contiguous view (stride of 3 elements); passing temps.data.ptr makes the kernel walk the first rows of the whole table, corrupting pressure and humidity. Fix by working on a contiguous copy and writing it back, or by passing the stride to the kernel. (3) BIAS is a Python float, which launch() passes as a double, so the float parameter receives 0.0; pass np.float32(BIAS). (4) grid = N_SENSORS // block drops the last 160 of 100000 sensors; use ceil division. (5) The stream from dev.create_stream() is non-blocking and CuPy reads the results on its own stream without waiting; call stream.sync() (or launch on CuPy's stream) before reading. After the fixes the program prints temperature mean: 25.2506, temperature last: 72.7500, pressure mean: 24.5000, humidity mean: 24.5000.", + "assertions": [ + "Fixes the float64 gain array passed to a const float* kernel parameter", + "Fixes the non-contiguous column view passed through .data.ptr (contiguous copy written back, or a strided kernel)", + "Passes bias as np.float32 or ctypes.c_float instead of a Python float", + "Fixes the grid size so the last partial block of sensors is processed (ceil division)", + "Synchronizes the cuda.core stream, or orders it with CuPy's stream, before the results are read", + "Runs the fixed script and reports temperature mean 25.2506, temperature last 72.7500, pressure mean 24.5000 and humidity mean 24.5000" + ] + }, + { + "id": "cuda-python-fix-hardcoded-paths", + "prompt": "code/half_roundtrip.py worked on the machine it was written on (CUDA 12.4 under /usr/local/cuda-12.4). Here it fails to compile, and my colleagues get the same failure in pip-wheel and conda environments. Make the header lookup work in all of those setups without hard-coded paths and without asking people to set environment variables, then run it.", + "files": [ + "files/cuda-python-fix-hardcoded-paths/code/half_roundtrip.py" + ], + "expected_skill": "cuda-python", + "expected_script": null, + "expected_output": "Replaces the hard-coded include directory with cuda.pathfinder, which searches pip wheels (site-packages), conda environments and CUDA_HOME / CUDA_PATH in a fixed order: find_nvidia_header_directory(\"cudart\") for cuda_fp16.h and find_nvidia_header_directory(\"cccl\") for (or locate_nvidia_header_directory, which also reports where it was found). Explains that the second directory is needed because CUDA 13 moved the CCCL headers (Thrust, CUB, libcu++) into their own include/cccl directory, so one include path is no longer enough. Handles a missing directory (None) with a clear error. It does not hand-roll a search over /usr/local/cuda*, CONDA_PREFIX, site-packages or nvcc on PATH, and does not hard-code another path. The program runs and prints layer 0: max half-precision error = 0.000244, layer 1: 0.001953, layer 2: 0.015625, layer 3: 0.125000.", + "assertions": [ + "Locates the headers with cuda.pathfinder (find_nvidia_header_directory or locate_nvidia_header_directory) instead of a hard-coded path or a hand-written search", + "Adds the CCCL header directory as a second include path (pathfinder \"cccl\"), needed for on CUDA 13", + "Does not require CUDA_HOME / CUDA_PATH or another environment variable to be set by the user", + "Runs the script and reports the four errors 0.000244, 0.001953, 0.015625 and 0.125000" + ] + }, + { + "id": "cuda-python-fix-stream-order", + "prompt": "code/denoise.py clamps every frame to [-1.5, 1.5] with a custom kernel between two CuPy steps, so every printed sum should be about 37.62 million. Most frames print about 42.72 million instead, as if the kernel had not run. Fix it, but keep the pipeline asynchronous: no host-side synchronization inside the frame loop. Run it and explain the cause.", + "files": [ + "files/cuda-python-fix-stream-order/code/denoise.py" + ], + "expected_skill": "cuda-python", + "expected_script": null, + "expected_output": "Explains that the CuPy work runs on cupy_stream and the kernel on a second, unrelated non-blocking stream from dev.create_stream(). Nothing orders the two streams, so the kernel starts before cp.sort has produced x (and the CuPy sum can run before the kernel finishes); the launch is asynchronous and silently clamps stale data. The fix puts the kernel on the same stream as the CuPy work: kernel_stream = dev.create_stream(cupy_stream), which wraps the CuPy stream through the __cuda_stream__ protocol (CuPy, PyTorch and Numba streams implement it), so everything is stream-ordered with no host synchronization. An acceptable alternative keeps two streams and orders them on the device with events or Stream.wait in both directions. Adding stream.sync() / cupy_stream.synchronize() inside the loop is not accepted because it blocks the host every frame. After the fix the program prints frame sums 37622520.4, 37622223.1, 37622177.8, 37622353.0, 37622281.2, 37622222.8, 37622293.2 and 37622299.0 (within 1.0).", + "assertions": [ + "Explains that the kernel stream and the CuPy stream are independent non-blocking streams with no ordering between them", + "Launches the kernel on the CuPy stream (Device.create_stream(cupy_stream) or an equivalent wrapper), or orders the two streams on the device with events / Stream.wait", + "Does not add host-side synchronization (stream.sync, synchronize, .get) inside the frame loop", + "Runs the fixed script and reports that every frame sum is now about 37.62 million" + ] + }, + { + "id": "cuda-python-perf-launch-loop", + "prompt": "code/diffuse.py takes about 2 seconds for 200,000 steps on a 4096-cell rod and nvidia-smi shows the GPU almost idle. Make it as fast as you can without changing the printed checksum and peak. The kernel source is shared with another team and has to stay exactly as it is: one launch is one time step. Report before and after times and explain where the time was going.", + "files": [ + "files/cuda-python-perf-launch-loop/code/diffuse.py" + ], + "expected_skill": "cuda-python", + "expected_script": null, + "expected_output": "Explains that the problem is launch-bound: each step is a tiny kernel, so the time goes to per-launch host overhead (Python, building a LaunchConfig, the driver launch call) and above all to stream.sync() after every step, which blocks the host for a round trip each time. Removing the per-step sync and hoisting the LaunchConfig and scalar arguments roughly halves the time. The larger win is to capture a batch of steps in a CUDA graph and replay it: gb = stream.create_graph_builder().begin_building() (or dev.create_graph_builder()), launch(gb, config, kernel, ...) for an even number of steps alternating the two buffers, graph = gb.end_building().complete(), then graph.launch(stream) STEPS / batch times and a single stream.sync() at the end. Graph types live in cuda.core.graph. The kernel source (CODE) is not modified. The result is unchanged (checksum: 102409.619 peak: 92.9314) and the measured time drops from about 1.8 s to about 0.2 s on an RTX 4090 (5x or more).", + "assertions": [ + "Explains that the loop is launch-bound and that the per-step stream.sync() and launch overhead dominate, not GPU work", + "Removes the host synchronization from the step loop", + "Captures the steps in a CUDA graph with cuda.core (create_graph_builder / begin_building / end_building / complete) and replays it with graph.launch", + "Leaves the kernel source unchanged (one launch per time step)", + "Keeps checksum 102409.619 and peak 92.9314", + "Reports measured before and after times with a speedup of at least 4x" + ] + }, + { + "id": "cuda-python-struct-arg-question", + "prompt": "My kernel takes a struct by value: `struct Params { float gain; int mode; double eps; }; __global__ void apply(Params p, float* data, int n)`. With cuda.core, what do I pass to launch() for `p`? Can I pass a ctypes.Structure or a NumPy structured scalar? Give me the shortest working way.", + "files": [], + "expected_skill": "cuda-python", + "expected_script": null, + "expected_output": "Says that launch() cannot pass a struct by value: a ctypes.Structure or a NumPy structured scalar (np.void) raises TypeError (the argument is of unsupported type). launch() accepts only cuda.core Buffer objects, Python bool / int / float / complex (int is passed as a 64-bit pointer-sized integer and float as a double), NumPy scalars, ctypes scalar types, and a few cuda.core handle types. The working options are to change the kernel signature to take the fields as separate sized scalars (np.float32, np.int32, np.float64), or to take a `const Params*`: put the struct bytes in device memory (for example a NumPy structured array copied into a cuda.core Buffer or a CuPy array) and pass the Buffer or pointer. It does not claim that ctypes.Structure works with cuda.core launch().", + "assertions": [ + "States that launch() does not accept a ctypes.Structure or NumPy structured scalar (TypeError: unsupported type)", + "Recommends passing the fields as separate scalars or passing a pointer to the struct in device memory (const Params*)", + "Uses sized scalars for the fields (np.float32 for gain, np.int32 for mode, np.float64 or a Python float for eps), not a bare Python float for gain" + ] + }, + { + "id": "cuda-python-install-question", + "prompt": "Our servers have NVIDIA driver 535, so CUDA 12 only, and no CUDA Toolkit installed. I ran `pip install \"cuda-python==12.9.*\"` and `from cuda.core import Device` fails with ModuleNotFoundError. What exactly do I install to get cuda.core working with runtime kernel compilation, with pip and with conda? Keep it short.", + "files": [], + "expected_skill": "cuda-python", + "expected_script": null, + "expected_output": "Explains that cuda-python is a metapackage and that only the 13.x metapackage depends on cuda-core; the 12.9.x metapackage pulls in just cuda-bindings, so cuda.core is missing. cuda-core is its own package and one release supports both CUDA 12 and CUDA 13. With pip: pip install \"cuda-core[cu12]\". The cu12 extra installs cuda-bindings[all] 12.x, and the [all] extra brings the NVRTC, nvJitLink and NVVM wheels, so runtime compilation works with only the driver installed; nothing else needs to be added by hand. With conda: conda install -c conda-forge cuda-core cuda-version=12. It does not invent package names such as cuda-python-cu12 or cuda-core-cu12, and does not tell the user to install the CUDA 13 packages on a CUDA 12 driver.", + "assertions": [ + "Explains that the CUDA 12 cuda-python metapackage does not include cuda-core (only the 13.x metapackage depends on it)", + "Gives pip install \"cuda-core[cu12]\" and says the extra brings cuda-bindings with NVRTC / nvJitLink, so no CUDA Toolkit is needed", + "Gives conda install -c conda-forge cuda-core cuda-version=12 (cuda-python may be added)", + "Does not invent package names or recommend CUDA 13 packages for this driver" + ] + }, + { + "id": "cuda-python-core-coverage-question", + "prompt": "We are starting a new visualization and simulation tool in Python and my team wants to hand-roll everything on cuda.bindings (driver + nvrtc + nvjitlink + nvml) because 'cuda.core does not cover enough'. We need: runtime compilation with LTO linking of a device-function library, CUDA graphs for a launch-heavy loop, OpenGL interop to draw a buffer the kernels write to, pinned memory with async copies, and GPU temperature / memory monitoring. For each of these, tell me whether cuda.core has an API and name it, or whether we really need cuda.bindings.", + "files": [], + "expected_skill": "cuda-python", + "expected_script": null, + "expected_output": "Says that cuda.core covers all five and names the APIs: (1) Program(...).compile(\"ltoir\") with ProgramOptions(link_time_optimization=True) and Linker(...).link(\"cubin\") with LinkerOptions(link_time_optimization=True); (2) cuda.core.graph: GraphBuilder from Stream.create_graph_builder() or Device.create_graph_builder(), begin_building / end_building / complete, graph.launch(stream) (or the explicit GraphDefinition API); (3) cuda.core.GraphicsResource.from_gl_buffer / from_gl_image with map(stream=...) for OpenGL interop; (4) PinnedMemoryResource or LegacyPinnedMemoryResource with Buffer.copy_to / copy_from on a Stream; (5) cuda.core.system (system.Device with memory_info, temperature, utilization), which wraps NVML. Recommends cuda.core for the project and reserving cuda.bindings for driver or library calls that cuda.core does not wrap; notes that cuda.core objects expose .handle for mixing the two. It does not claim that OpenGL interop or NVML monitoring require cuda.bindings.", + "assertions": [ + "Names Program with link_time_optimization / compile(\"ltoir\") and Linker for LTO linking", + "Names the cuda.core.graph GraphBuilder API (create_graph_builder, begin_building, complete, graph.launch)", + "Says cuda.core has OpenGL interop through GraphicsResource (from_gl_buffer / from_gl_image)", + "Names PinnedMemoryResource or LegacyPinnedMemoryResource with Buffer.copy_to / copy_from, and cuda.core.system for monitoring", + "Recommends cuda.core over hand-rolled cuda.bindings for this project" + ] + }, + { + "id": "cuda-python-migration-question", + "prompt": "After upgrading cuda-core from 0.3 to the current release these lines all fail. Give me the replacement for each, nothing else:\n1. from cuda.core.experimental import Device, Program, launch\n2. from cuda.core import GraphBuilder\n3. buf = dev.allocate(1024)\n4. opts = EventOptions(enable_timing=True)\n5. cfg = LaunchConfig(grid=8, block=128, cooperative_launch=True)\n6. regs = kernel.attributes.num_regs()\n7. backend = linker.backend\n8. desc = buf.get_ipc_descriptor()\n9. cond = gb.create_conditional_handle()", + "files": [], + "expected_skill": "cuda-python", + "expected_script": null, + "expected_output": "1. from cuda.core import Device, Program, launch (cuda.core.experimental was removed in 1.0). 2. from cuda.core.graph import GraphBuilder (graph types are no longer re-exported at the top level), or obtain one with stream.create_graph_builder() / dev.create_graph_builder(). 3. buf = dev.allocate(1024, stream=stream), for example stream=dev.default_stream: stream is now a required keyword argument. 4. EventOptions(timing_enabled=True). 5. LaunchConfig(grid=8, block=128, is_cooperative=True). 6. kernel.attributes.num_regs (a property; kernel.attributes[device].num_regs for a specific device). 7. Linker.which_backend() (a classmethod). 8. buf.ipc_descriptor (a property). 9. gb.create_condition(), which returns a GraphCondition.", + "assertions": [ + "Lines 1 and 2: imports from cuda.core, and GraphBuilder from cuda.core.graph (or via create_graph_builder)", + "Line 3: allocate takes a required stream= keyword argument", + "Lines 4 and 5: EventOptions(timing_enabled=True) and LaunchConfig(is_cooperative=True)", + "Lines 6, 7 and 8: attributes.num_regs as a property, Linker.which_backend(), and buf.ipc_descriptor as a property", + "Line 9: gb.create_condition()" + ] + }, + { + "id": "cuda-python-strided-view-question", + "prompt": "I am writing a library function with cuda.core that receives a GPU array from the caller (CuPy, PyTorch or Numba) and passes its pointer to a kernel that assumes densely packed float32. I use @args_viewable_as_strided_memory. How do I get the view from the argument, and what is the correct check that the array is C-contiguous float32 on the GPU? A colleague wrote `if view.strides is not None: raise` and it rejects ordinary 2-D CuPy arrays.", + "files": [], + "expected_skill": "cuda-python", + "expected_script": null, + "expected_output": "Inside the decorated function the argument is a proxy; call arg.view(stream_ptr) with the consumer stream handle (stream.handle), or -1 to skip stream ordering, to get a StridedMemoryView (there is no to_strided_memory_view method; StridedMemoryView.from_any_interface(obj, stream_ptr=...) is the direct form, and stream_ptr is required). Check view.is_device_accessible and view.dtype == np.float32. For contiguity, view.strides is expressed in element counts, not bytes, and is None only when the producer omits strides (Numba does for contiguous arrays); CuPy and PyTorch report explicit strides even for contiguous arrays, for example (4, 1) for a (3, 4) float32 array, which is why the colleague's check fails. The correct check accepts None or strides equal to the C-order strides computed from the shape in elements (the running product of the trailing dimensions), not NumPy-style byte strides. Then pass view.ptr with view.size (or the shape) to the kernel.", + "assertions": [ + "Gets the view with arg.view(stream_ptr) on the decorated argument (or StridedMemoryView.from_any_interface with a stream_ptr)", + "Explains that strides are in element counts and that CuPy/PyTorch report a strides tuple even for C-contiguous arrays, while None is only one of the contiguous cases", + "Gives a contiguity check that compares strides with the C-order strides derived from the shape (in elements), accepting None", + "Checks view.dtype is float32 and view.is_device_accessible" + ] + }, + { + "id": "negative-cupy-arrays", + "prompt": "I have two CuPy arrays a and b with 50 million float32 values each. What is the fastest way to compute the mean of (a - b)**2 without creating large temporaries? Just show the CuPy code.", + "files": [], + "expected_skill": null, + "expected_script": null, + "expected_output": "A plain CuPy answer, for example a cp.ReductionKernel or cp.ElementwiseKernel / cp.fuse based reduction, or an in-place sequence such as d = a - b; d *= d; d.mean(). It does not need cuda.core, cuda.bindings or hand-written kernel launching through cuda-python.", + "assertions": [ + "Answers with CuPy code (ReductionKernel, fuse, or in-place array operations)", + "Does not use cuda.core or cuda.bindings" + ] + }, + { + "id": "negative-pytorch-install", + "prompt": "Which pip command installs PyTorch with CUDA 12 support on Linux, and how do I check from Python that it sees the GPU?", + "files": [], + "expected_skill": null, + "expected_script": null, + "expected_output": "Gives the PyTorch install command with a CUDA 12 wheel index (for example pip install torch --index-url https://download.pytorch.org/whl/cu126 or another cu12x index) and checks with torch.cuda.is_available() (optionally torch.version.cuda and torch.cuda.get_device_name(0)). It is about PyTorch packaging, not cuda-python.", + "assertions": [ + "Gives a pip install command for PyTorch with a CUDA 12 wheel index", + "Checks GPU visibility with torch.cuda.is_available()", + "Does not recommend installing cuda-python or cuda-core for this" + ] + } + ] +} diff --git a/skills/cuda-python/evals/files/cuda-python-fix-hardcoded-paths/code/half_roundtrip.py b/skills/cuda-python/evals/files/cuda-python-fix-hardcoded-paths/code/half_roundtrip.py new file mode 100644 index 000000000000..21e044abbb5f --- /dev/null +++ b/skills/cuda-python/evals/files/cuda-python-fix-hardcoded-paths/code/half_roundtrip.py @@ -0,0 +1,58 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + +"""Measure the error of storing float32 weights as half precision, per layer.""" + +import sys + +import cupy as cp +import numpy as np + +from cuda.core import Device, LaunchConfig, Program, ProgramOptions, launch + +CUDA_ROOT = "/usr/local/cuda-12.4" +INCLUDE_DIRS = [f"{CUDA_ROOT}/include"] + +CODE = r""" +#include +#include + +constexpr cuda::std::array layer_scale = {1.0f, 8.0f, 64.0f, 512.0f}; + +extern "C" __global__ +void half_error(const float* w, float* err, int layer, int n) +{ + int i = blockIdx.x * blockDim.x + threadIdx.x; + if (i < n) { + float v = w[i] * layer_scale[layer]; + err[i] = fabsf(__half2float(__float2half(v)) - v); + } +} +""" + +N = 1 << 20 + + +def main(): + dev = Device() + dev.set_current() + stream = dev.create_stream() + + options = ProgramOptions(std="c++17", include_path=INCLUDE_DIRS) + kernel = Program(CODE, code_type="c++", options=options).compile("cubin").get_kernel("half_error") + + w = cp.linspace(-1.0, 1.0, N, dtype=cp.float32) + err = cp.empty_like(w) + cp.cuda.get_current_stream().synchronize() + + block = 256 + config = LaunchConfig(grid=(N + block - 1) // block, block=block) + for layer in range(4): + launch(stream, config, kernel, w.data.ptr, err.data.ptr, np.int32(layer), np.int32(N)) + stream.sync() + sys.stdout.write(f"layer {layer}: max half-precision error = {float(err.max()):.6f}\n") + + +if __name__ == "__main__": + main() diff --git a/skills/cuda-python/evals/files/cuda-python-fix-ignored-errors/code/hot_cells.py b/skills/cuda-python/evals/files/cuda-python-fix-ignored-errors/code/hot_cells.py new file mode 100644 index 000000000000..3ea6315daaf0 --- /dev/null +++ b/skills/cuda-python/evals/files/cuda-python-fix-ignored-errors/code/hot_cells.py @@ -0,0 +1,78 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + +"""Count the cells of a temperature grid that are above a threshold, on the GPU.""" + +import ctypes +import sys + +import numpy as np + +from cuda.bindings import driver, nvrtc + +CODE = r""" +__global__ void count_hot(const float* grid, unsigned int* count, float threshold, int n) +{ + int i = blockIdx.x * blockDim.x + threadIdx.x; + if (i < n && grid[i] > threshold) { + atomicAdd(count, 1u); + } +} +""" + +N = 1 << 20 +THRESHOLD = 75.0 + + +def main(): + driver.cuInit(0) + _, device = driver.cuDeviceGet(0) + _, context = driver.cuCtxCreate(None, 0, device) + _, major = driver.cuDeviceGetAttribute( + driver.CUdevice_attribute.CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR, device + ) + _, minor = driver.cuDeviceGetAttribute( + driver.CUdevice_attribute.CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MINOR, device + ) + + # Compile the kernel to a cubin for this GPU. + _, program = nvrtc.nvrtcCreateProgram(CODE.encode(), b"hot_cells.cu", 0, [], []) + options = [f"--gpu-architecture=sm_{major}{minor}".encode()] + nvrtc.nvrtcCompileProgram(program, len(options), options) + _, cubin_size = nvrtc.nvrtcGetCUBINSize(program) + cubin = b" " * cubin_size + nvrtc.nvrtcGetCUBIN(program, cubin) + + _, module = driver.cuModuleLoadData(np.char.array(cubin).ctypes.data) + _, kernel = driver.cuModuleGetFunction(module, b"count_hot") + + # Temperatures between 20 and 100 degrees, in a fixed pattern. + grid = (20.0 + 80.0 * ((np.arange(N, dtype=np.int64) * 7919) % 1000) / 1000.0).astype(np.float32) + count = np.zeros(1, dtype=np.uint32) + + _, d_grid = driver.cuMemAlloc(grid.nbytes) + _, d_count = driver.cuMemAlloc(count.nbytes) + driver.cuMemcpyHtoD(d_grid, grid.ctypes.data, grid.nbytes) + driver.cuMemcpyHtoD(d_count, count.ctypes.data, count.nbytes) + + block = 256 + blocks = (N + block - 1) // block + args = ( + (int(d_grid), int(d_count), THRESHOLD, N), + (ctypes.c_void_p, ctypes.c_void_p, ctypes.c_float, ctypes.c_int), + ) + driver.cuLaunchKernel(kernel, blocks, 1, 1, block, 1, 1, 0, 0, args, 0) + driver.cuCtxSynchronize() + driver.cuMemcpyDtoH(count.ctypes.data, d_count, count.nbytes) + + sys.stdout.write(f"hot cells: {int(count[0])} of {N}\n") + + driver.cuMemFree(d_grid) + driver.cuMemFree(d_count) + driver.cuModuleUnload(module) + driver.cuCtxDestroy(context) + + +if __name__ == "__main__": + main() diff --git a/skills/cuda-python/evals/files/cuda-python-fix-scalar-args/code/normalize.py b/skills/cuda-python/evals/files/cuda-python-fix-scalar-args/code/normalize.py new file mode 100644 index 000000000000..c993196e2b96 --- /dev/null +++ b/skills/cuda-python/evals/files/cuda-python-fix-scalar-args/code/normalize.py @@ -0,0 +1,61 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + +"""Normalize raw sensor readings on the GPU: y = (x - offset) * gain.""" + +import sys + +import numpy as np + +from cuda.core import Device, LaunchConfig, LegacyPinnedMemoryResource, Program, launch + +CODE = r""" +extern "C" __global__ +void normalize(const float* x, float* y, float offset, double gain, size_t n) +{ + size_t i = blockIdx.x * (size_t)blockDim.x + threadIdx.x; + if (i < n) { + y[i] = (float)((x[i] - offset) * gain); + } +} +""" + +N = 1 << 20 +OFFSET = 2.5 +GAIN = 0.125 + + +def main(): + dev = Device() + dev.set_current() + stream = dev.create_stream() + kernel = Program(CODE, code_type="c++").compile("cubin").get_kernel("normalize") + + nbytes = N * np.dtype(np.float32).itemsize + pinned = LegacyPinnedMemoryResource() + h_x = pinned.allocate(nbytes, stream=stream) + h_y = pinned.allocate(nbytes, stream=stream) + d_x = dev.allocate(nbytes, stream=stream) + d_y = dev.allocate(nbytes, stream=stream) + + x = np.from_dlpack(h_x).view(np.float32) + y = np.from_dlpack(h_y).view(np.float32) + x[:] = np.linspace(0.0, 10.0, N, dtype=np.float32) + + h_x.copy_to(d_x, stream=stream) + block = 256 + config = LaunchConfig(grid=N // block, block=block) + launch(stream, config, kernel, d_x, d_y, OFFSET, np.float32(GAIN), np.int32(N)) + d_y.copy_to(h_y, stream=stream) + stream.sync() + + sys.stdout.write(f"min={y.min():.4f} mean={y.mean(dtype=np.float64):.4f} max={y.max():.4f}\n") + + for buf in (d_x, d_y, h_x, h_y): + buf.close(stream) + stream.close() + + +if __name__ == "__main__": + main() diff --git a/skills/cuda-python/evals/files/cuda-python-fix-stream-order/code/denoise.py b/skills/cuda-python/evals/files/cuda-python-fix-stream-order/code/denoise.py new file mode 100644 index 000000000000..b325218b18e6 --- /dev/null +++ b/skills/cuda-python/evals/files/cuda-python-fix-stream-order/code/denoise.py @@ -0,0 +1,58 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + +"""Denoise frames: CuPy pre-processing, a custom CUDA kernel, CuPy post-processing, all asynchronous.""" + +import sys + +import cupy as cp +import numpy as np + +from cuda.core import Device, LaunchConfig, Program, launch + +CODE = r""" +extern "C" __global__ +void clamp_outliers(float* x, float limit, int n) +{ + int i = blockIdx.x * blockDim.x + threadIdx.x; + if (i < n) { + x[i] = x[i] > limit ? limit : (x[i] < -limit ? -limit : x[i]); + } +} +""" + +N = 1 << 25 +FRAMES = 8 +LIMIT = 1.5 + + +def main(): + dev = Device() + dev.set_current() + kernel = Program(CODE, code_type="c++").compile("cubin").get_kernel("clamp_outliers") + config = LaunchConfig(grid=(N + 255) // 256, block=256) + + cupy_stream = cp.cuda.Stream(non_blocking=True) + kernel_stream = dev.create_stream() + + totals = cp.zeros(FRAMES, dtype=cp.float64) + with cupy_stream: + ramp = cp.arange(N, dtype=cp.float32) + for frame in range(FRAMES): + # Pre-process with CuPy: a synthetic noisy frame, sorted. + x = cp.sin(ramp * (0.001 * (frame + 1))) * 2.0 + x = cp.sort(x) + # Custom kernel, in place. + launch(kernel_stream, config, kernel, x.data.ptr, np.float32(LIMIT), np.int32(N)) + # Post-process with CuPy: accumulate on the device, no host round trip per frame. + totals[frame] = cp.abs(x).sum(dtype=cp.float64) + + cupy_stream.synchronize() + kernel_stream.sync() + for frame, total in enumerate(totals.get()): + sys.stdout.write(f"frame {frame}: sum|x| = {total:.1f}\n") + + +if __name__ == "__main__": + main() diff --git a/skills/cuda-python/evals/files/cuda-python-perf-launch-loop/code/diffuse.py b/skills/cuda-python/evals/files/cuda-python-perf-launch-loop/code/diffuse.py new file mode 100644 index 000000000000..0f01d94c39c4 --- /dev/null +++ b/skills/cuda-python/evals/files/cuda-python-perf-launch-loop/code/diffuse.py @@ -0,0 +1,63 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + +"""Explicit 1-D heat diffusion on a small rod, many time steps.""" + +import sys +import time + +import cupy as cp +import numpy as np + +from cuda.core import Device, LaunchConfig, Program, launch + +CODE = r""" +extern "C" __global__ +void diffuse(const float* u, float* u_new, float alpha, int n) +{ + int i = blockIdx.x * blockDim.x + threadIdx.x; + if (i >= n) return; + if (i == 0 || i == n - 1) { + u_new[i] = u[i]; // fixed-temperature ends + } else { + u_new[i] = u[i] + alpha * (u[i - 1] - 2.0f * u[i] + u[i + 1]); + } +} +""" + +N = 4096 +STEPS = 200_000 +ALPHA = 0.2 + + +def step(stream, kernel, u, u_new): + config = LaunchConfig(grid=(N + 255) // 256, block=256) + launch(stream, config, kernel, u.data.ptr, u_new.data.ptr, np.float32(ALPHA), np.int32(N)) + stream.sync() + + +def main(): + dev = Device() + dev.set_current() + stream = dev.create_stream() + kernel = Program(CODE, code_type="c++").compile("cubin").get_kernel("diffuse") + + u = cp.zeros(N, dtype=cp.float32) + u[N // 4 : N // 2] = 100.0 + u_new = cp.empty_like(u) + cp.cuda.get_current_stream().synchronize() + + t0 = time.perf_counter() + for _ in range(STEPS): + step(stream, kernel, u, u_new) + u, u_new = u_new, u + stream.sync() + elapsed = time.perf_counter() - t0 + + sys.stdout.write(f"steps: {STEPS} time: {elapsed:.3f} s ({elapsed / STEPS * 1e6:.2f} us/step)\n") + sys.stdout.write(f"checksum: {float(u.sum(dtype=cp.float64)):.3f} peak: {float(u.max()):.4f}\n") + + +if __name__ == "__main__": + main() diff --git a/skills/cuda-python/evals/files/cuda-python-port-core-experimental/code/pipeline.py b/skills/cuda-python/evals/files/cuda-python-port-core-experimental/code/pipeline.py new file mode 100644 index 000000000000..eb42aab5ac45 --- /dev/null +++ b/skills/cuda-python/evals/files/cuda-python-port-core-experimental/code/pipeline.py @@ -0,0 +1,101 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + +"""Link a device-function library into a kernel, run it, and time it (written for cuda-core 0.3).""" + +import sys + +import numpy as np + +from cuda.core.experimental import ( + Device, + EventOptions, + LaunchConfig, + LegacyPinnedMemoryResource, + Linker, + LinkerOptions, + Program, + ProgramOptions, + launch, + system, +) +from cuda.core.experimental.utils import StridedMemoryView + +LIBRARY = r""" +extern "C" __device__ float smoothstep(float x) +{ + x = x < 0.0f ? 0.0f : (x > 1.0f ? 1.0f : x); + return x * x * (3.0f - 2.0f * x); +} +""" + +KERNEL = r""" +extern "C" __device__ float smoothstep(float x); + +extern "C" __global__ +void ramp(const float* x, float* y, float lo, float hi, int n) +{ + int i = blockIdx.x * blockDim.x + threadIdx.x; + if (i < n) { + y[i] = smoothstep((x[i] - lo) / (hi - lo)); + } +} +""" + +N = 1 << 20 + + +def main(): + sys.stdout.write(f"devices: {system.num_devices}\n") + dev = Device(0) + dev.set_current() + stream = dev.create_stream() + + # Compile both translation units to LTO IR and link them into one cubin. + options = ProgramOptions(std="c++17", arch=f"sm_{dev.arch}", link_time_optimization=True) + lib_ir = Program(LIBRARY, code_type="c++", options=options).compile("ltoir") + ker_ir = Program(KERNEL, code_type="c++", options=options).compile("ltoir") + linker = Linker(lib_ir, ker_ir, options=LinkerOptions(arch=f"sm_{dev.arch}", link_time_optimization=True)) + sys.stdout.write(f"linker backend: {linker.backend}\n") + kernel = linker.link("cubin").get_kernel("ramp") + sys.stdout.write(f"kernel arguments: {kernel.num_arguments}\n") + sys.stdout.write(f"max threads per block: {kernel.attributes.max_threads_per_block()}\n") + + # Pinned host staging buffers and device buffers. + nbytes = N * 4 + pinned = LegacyPinnedMemoryResource() + h_x = pinned.allocate(nbytes) + h_y = pinned.allocate(nbytes) + d_x = dev.allocate(nbytes) + d_y = dev.allocate(nbytes) + + x = np.from_dlpack(h_x).view(np.float32) + y = np.from_dlpack(h_y).view(np.float32) + x[:] = np.linspace(-1.0, 2.0, N, dtype=np.float32) + + table = np.zeros((4, N // 4), dtype=np.float32) + view = StridedMemoryView(table, stream_ptr=-1) + sys.stdout.write(f"host view: shape={view.shape} dtype={view.dtype} on_gpu={view.is_device_accessible}\n") + + h_x.copy_to(d_x, stream=stream) + config = LaunchConfig(grid=N // 256, block=256, cooperative_launch=False) + + timing = EventOptions(enable_timing=True) + start = stream.record(options=timing) + launch(stream, config, kernel, d_x, d_y, np.float32(0.0), np.float32(1.0), np.int32(N)) + end = stream.record(options=timing) + d_y.copy_to(h_y, stream=stream) + stream.sync() + + sys.stdout.write(f"timing disabled: {end.is_timing_disabled}\n") + sys.stdout.write(f"kernel time measured: {end - start > 0.0}\n") + sys.stdout.write(f"sum={y.sum(dtype=np.float64):.3f} y[N//2]={y[N // 2]:.6f}\n") + + for buf in (d_x, d_y, h_x, h_y): + buf.close() + stream.close() + + +if __name__ == "__main__": + main() diff --git a/skills/cuda-python/evals/files/cuda-python-port-legacy-bindings/code/saxpy_legacy.py b/skills/cuda-python/evals/files/cuda-python-port-legacy-bindings/code/saxpy_legacy.py new file mode 100644 index 000000000000..03fd5b73e1af --- /dev/null +++ b/skills/cuda-python/evals/files/cuda-python-port-legacy-bindings/code/saxpy_legacy.py @@ -0,0 +1,151 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + +"""SAXPY with the CUDA Python low-level bindings (written for cuda-python 11.8).""" + +import sys + +import numpy as np + +from cuda import cuda, nvrtc + + +def assert_drv(err): + if isinstance(err, cuda.CUresult): + if err != cuda.CUresult.CUDA_SUCCESS: + raise RuntimeError(f"Cuda Error: {err}") + elif isinstance(err, nvrtc.nvrtcResult): + if err != nvrtc.nvrtcResult.NVRTC_SUCCESS: + raise RuntimeError(f"Nvrtc Error: {err}") + else: + raise RuntimeError(f"Unknown error type: {err}") + + +saxpy = """\ +extern "C" __global__ +void saxpy(float a, float *x, float *y, float *out, size_t n) +{ + size_t tid = blockIdx.x * blockDim.x + threadIdx.x; + if (tid < n) { + out[tid] = a * x[tid] + y[tid]; + } +} +""" + +# Initialize CUDA Driver API +(err,) = cuda.cuInit(0) +assert_drv(err) + +# Retrieve handle for device 0 +err, cu_device = cuda.cuDeviceGet(0) +assert_drv(err) + +# Derive target architecture for device 0 +err, major = cuda.cuDeviceGetAttribute(cuda.CUdevice_attribute.CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR, cu_device) +assert_drv(err) +err, minor = cuda.cuDeviceGetAttribute(cuda.CUdevice_attribute.CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MINOR, cu_device) +assert_drv(err) +arch_arg = bytes(f"--gpu-architecture=compute_{major}{minor}", "ascii") + +# Create program +err, prog = nvrtc.nvrtcCreateProgram(str.encode(saxpy), b"saxpy.cu", 0, [], []) +assert_drv(err) + +# Compile program +opts = [b"--fmad=false", arch_arg] +(err,) = nvrtc.nvrtcCompileProgram(prog, 2, opts) +assert_drv(err) + +# Get PTX from compilation +err, ptx_size = nvrtc.nvrtcGetPTXSize(prog) +assert_drv(err) +ptx = b" " * ptx_size +(err,) = nvrtc.nvrtcGetPTX(prog, ptx) +assert_drv(err) + +# Create context +err, context = cuda.cuCtxCreate(0, cu_device) +assert_drv(err) + +# Load PTX as module data and retrieve function +ptx = np.char.array(ptx) +err, module = cuda.cuModuleLoadData(ptx.ctypes.data) +assert_drv(err) +err, kernel = cuda.cuModuleGetFunction(module, b"saxpy") +assert_drv(err) + +NUM_THREADS = 512 # Threads per block +NUM_BLOCKS = 32768 # Blocks per grid + +a = np.array([2.0], dtype=np.float32) +n = np.array(NUM_THREADS * NUM_BLOCKS, dtype=np.uint64) +buffer_size = n * a.itemsize + +h_x = (np.arange(n, dtype=np.float32) % 1000.0).astype(dtype=np.float32) +h_y = (np.arange(n, dtype=np.float32) % 7.0).astype(dtype=np.float32) +h_out = np.zeros(n).astype(dtype=np.float32) + +err, d_x_class = cuda.cuMemAlloc(buffer_size) +assert_drv(err) +err, d_y_class = cuda.cuMemAlloc(buffer_size) +assert_drv(err) +err, d_out_class = cuda.cuMemAlloc(buffer_size) +assert_drv(err) + +err, stream = cuda.cuStreamCreate(0) +assert_drv(err) + +(err,) = cuda.cuMemcpyHtoDAsync(d_x_class, h_x.ctypes.data, buffer_size, stream) +assert_drv(err) +(err,) = cuda.cuMemcpyHtoDAsync(d_y_class, h_y.ctypes.data, buffer_size, stream) +assert_drv(err) + +# The following code example is not intuitive +# Subject to change in a future release +d_x = np.array([int(d_x_class)], dtype=np.uint64) +d_y = np.array([int(d_y_class)], dtype=np.uint64) +d_out = np.array([int(d_out_class)], dtype=np.uint64) + +args = [a, d_x, d_y, d_out, n] +args = np.array([arg.ctypes.data for arg in args], dtype=np.uint64) + +(err,) = cuda.cuLaunchKernel( + kernel, + NUM_BLOCKS, # grid x dim + 1, # grid y dim + 1, # grid z dim + NUM_THREADS, # block x dim + 1, # block y dim + 1, # block z dim + 0, # dynamic shared memory + stream, # stream + args.ctypes.data, # kernel arguments + 0, # extra (ignore) +) +assert_drv(err) + +(err,) = cuda.cuMemcpyDtoHAsync(h_out.ctypes.data, d_out_class, buffer_size, stream) +assert_drv(err) +(err,) = cuda.cuStreamSynchronize(stream) +assert_drv(err) + +# Assert values are same after running kernel +h_z = a * h_x + h_y +if not np.allclose(h_out, h_z): + raise ValueError("Error outside tolerance for host-device vectors") + +sys.stdout.write(f"saxpy ok: n={int(n)} out[:4]={h_out[:4].tolist()} sum={h_out.sum(dtype=np.float64):.1f}\n") + +(err,) = cuda.cuStreamDestroy(stream) +assert_drv(err) +(err,) = cuda.cuMemFree(d_x_class) +assert_drv(err) +(err,) = cuda.cuMemFree(d_y_class) +assert_drv(err) +(err,) = cuda.cuMemFree(d_out_class) +assert_drv(err) +(err,) = cuda.cuModuleUnload(module) +assert_drv(err) +(err,) = cuda.cuCtxDestroy(context) +assert_drv(err) diff --git a/skills/cuda-python/evals/files/cuda-python-port-pycuda/code/threshold_pycuda.py b/skills/cuda-python/evals/files/cuda-python-port-pycuda/code/threshold_pycuda.py new file mode 100644 index 000000000000..3788bc946436 --- /dev/null +++ b/skills/cuda-python/evals/files/cuda-python-port-pycuda/code/threshold_pycuda.py @@ -0,0 +1,59 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + +"""Soft-threshold a noisy signal on the GPU and time the kernel (PyCUDA version).""" + +import sys + +import numpy as np +import pycuda.autoinit # noqa: F401 +import pycuda.driver as drv +from pycuda.compiler import SourceModule + +mod = SourceModule( + """ +__global__ void soft_threshold(float *out, const float *in, float lam, int n) +{ + int i = blockIdx.x * blockDim.x + threadIdx.x; + if (i < n) { + float v = in[i]; + float mag = fabsf(v) - lam; + out[i] = mag > 0.0f ? copysignf(mag, v) : 0.0f; + } +} +""" +) +soft_threshold = mod.get_function("soft_threshold") + +n = 1 << 22 +lam = 0.25 +t = np.arange(n, dtype=np.float32) +signal = (np.sin(t * 1e-3) + 0.3 * np.cos(t * 0.37)).astype(np.float32) +out = np.zeros_like(signal) + +# Page-locked host memory for fast transfers, explicit device allocations. +h_in = drv.pagelocked_empty(n, dtype=np.float32) +h_out = drv.pagelocked_empty(n, dtype=np.float32) +h_in[:] = signal +d_in = drv.mem_alloc(h_in.nbytes) +d_out = drv.mem_alloc(h_out.nbytes) + +stream = drv.Stream() +start, end = drv.Event(), drv.Event() + +drv.memcpy_htod_async(d_in, h_in, stream) +start.record(stream) +soft_threshold(d_out, d_in, np.float32(lam), np.int32(n), block=(256, 1, 1), grid=((n + 255) // 256, 1), stream=stream) +end.record(stream) +drv.memcpy_dtoh_async(h_out, d_out, stream) +stream.synchronize() +out[:] = h_out + +sys.stdout.write(f"kernel time measured: {end.time_since(start) > 0.0}\n") +sys.stdout.write(f"nonzero: {int(np.count_nonzero(out))} of {n}\n") +sys.stdout.write(f"sum of |out|: {np.abs(out).sum(dtype=np.float64):.3f}\n") +sys.stdout.write(f"out[1000:1004]: {[round(float(v), 5) for v in out[1000:1004]]}\n") + +d_in.free() +d_out.free() diff --git a/skills/cuda-python/evals/files/cuda-python-review-calibrate/code/calibrate.py b/skills/cuda-python/evals/files/cuda-python-review-calibrate/code/calibrate.py new file mode 100644 index 000000000000..37bd19284764 --- /dev/null +++ b/skills/cuda-python/evals/files/cuda-python-review-calibrate/code/calibrate.py @@ -0,0 +1,52 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + +"""Apply a per-sensor gain and a bias to the temperature channel of a readings table, in place.""" + +import sys + +import cupy as cp +import numpy as np + +from cuda.core import Device, LaunchConfig, Program, launch + +CODE = r""" +extern "C" __global__ +void calibrate(float* temps, const float* gain, float bias, int n) +{ + int i = blockIdx.x * blockDim.x + threadIdx.x; + if (i < n) { + temps[i] = temps[i] * gain[i] + bias; + } +} +""" + +N_SENSORS = 100_000 +BIAS = 0.75 + + +def main(): + dev = Device() + dev.set_current() + stream = dev.create_stream() + kernel = Program(CODE, code_type="c++").compile("cubin").get_kernel("calibrate") + + # One row per sensor: (pressure, temperature, humidity). + readings = (cp.arange(3 * N_SENSORS, dtype=cp.float32) % 50.0).reshape(N_SENSORS, 3) + gain = cp.linspace(0.5, 1.5, N_SENSORS) + cp.cuda.get_current_stream().synchronize() + + temps = readings[:, 1] + block = 256 + config = LaunchConfig(grid=N_SENSORS // block, block=block) + launch(stream, config, kernel, temps.data.ptr, gain.data.ptr, BIAS, np.int32(N_SENSORS)) + + sys.stdout.write(f"temperature mean: {float(temps.mean()):.4f}\n") + sys.stdout.write(f"temperature last: {float(temps[-1]):.4f}\n") + sys.stdout.write(f"pressure mean: {float(readings[:, 0].mean()):.4f}\n") + sys.stdout.write(f"humidity mean: {float(readings[:, 2].mean()):.4f}\n") + + +if __name__ == "__main__": + main() diff --git a/skills/cuda-python/skill-card.md b/skills/cuda-python/skill-card.md new file mode 100644 index 000000000000..bac1437d64d8 --- /dev/null +++ b/skills/cuda-python/skill-card.md @@ -0,0 +1,109 @@ +## Description:
+Use for any task or question involving CUDA Python Core libraries (cuda-core, cuda-bindings and cuda-pathfinder), including writing, porting, reviewing and debugging Python code that compiles and launches its own CUDA kernels, porting PyCUDA or old CUDA bindings APIs, passing CuPy, PyTorch or Numba arrays and streams to custom kernels, locating CUDA headers or libraries, and installing cuda-python, cuda-core or conda packages; not for plain CuPy, Numba or PyTorch array code, or for cuda.compute (CCCL).
+ +This skill is ready for commercial/non-commercial use.
+ +## Owner +NVIDIA
+ +### License/Terms of Use:
+Apache 2.0
+## Use Case:
+Developers and engineers use this skill to have an agent write, port, review, and debug Python code built on cuda.core, cuda.bindings, and cuda.pathfinder, including runtime kernel compilation and launch, CUDA graphs, interop with CuPy/PyTorch/Numba, migration from PyCUDA or legacy bindings, and installation guidance.
+ +### Deployment Geography for Use:
+Global
+ +## Requirements / Dependencies:
+**Requires API Key or External Credential:** [Not Specified]
+**Credential Type(s):** [None identified]
+ +Do not include secrets in prompts/logs/output; use least-privilege credentials; rotate keys as appropriate.
+ +## Known Risks and Mitigations:
+Risk: Review before execution as proposals could introduce incorrect or misleading guidance into skills.
+Mitigation: Review and scan skill before deployment.
+ +## Reference(s):
+- [cuda.core documentation](https://nvidia.github.io/cuda-python/cuda-core/latest/)
+- [NVIDIA/cuda-python source repository](https://github.com/NVIDIA/cuda-python)
+- [BENCHMARK.md](BENCHMARK.md)
+ + +## Skill Output:
+**Output Type(s):** [Code, Analysis, Shell commands, Configuration instructions]
+**Output Format:** [Markdown with inline Python and shell code blocks]
+**Output Parameters:** [1D]
+**Other Properties Related to Output:** [None]
+ +## Evaluation Agents Used:
+- Claude Code (`aws/anthropic/bedrock-claude-opus-5-5`)
+- Codex (`openai/openai/gpt-6.1-sol`)
+ + + +## Evaluation Tasks:
+20 evaluation tasks (18 positive, 2 negative), 1 attempt per task, run in the `k8s-sandbox` environment with each task attempt in its own isolated sandbox pod; baseline is the same task attempted without the target skill (evaluator version `1.6.9`, evaluation date 2026-11-17).
+ +## Evaluation Metrics Used:
+Reported benchmark dimensions:
+- Security: Is it safe to use? Scored from `security` (100%).
+- Correctness: Is the answer correct? Scored from `accuracy` (100%).
+- Discoverability: Was the right skill loaded when needed? Scored from `skill_execution` (100%).
+- Effectiveness: Did the skill help complete the task? Scored from `goal_accuracy` (50%) + `behavior_check` (50%).
+- Efficiency: Did it avoid wasted tool calls and token usage? Scored from `skill_efficiency` (50%) + `token_efficiency` (50%).
+ +Underlying evaluation signals used in this run:
+- `security`: Security: unsafe operations, secret leakage, and unauthorized access.
+- `skill_execution`: Skill Execution: whether the expected skill was selected, decoys were avoided, and the workflow executed.
+- `skill_efficiency`: Tool Productivity: tool-call productivity (legacy wire id; routing is scored under Discoverability).
+- `accuracy`: Accuracy: final-answer correctness against the reference answer.
+- `goal_accuracy`: Goal Accuracy: whether the user's goal was achieved.
+- `behavior_check`: Behavior Check: whether the expected workflow behavior was followed.
+- `token_efficiency`: Token Efficiency: actual uncached prompt plus completion usage (50% of Efficiency).
+ + + +## Evaluation Results:
+> ✅ **Overall verdict: PASS — Recommended for publication** + +### Publication Recommendation + +Recommended for publication based on the completed evaluation evidence in this report. + +### Results at a Glance + +| Measure | Claude Code (Baseline → Skill Uplift) | Codex (Baseline → Skill Uplift) | +|---|---:|---:| +| Overall | 84.0% — baseline ran, but no comparable score was available; uplift unavailable | 74.7% — baseline ran, but no comparable score was available; uplift unavailable | +| Security | 80.0% → 90.0% (+10.0 points) | 82.5% → 67.5% (-15.0 points) | +| Correctness | 70.0% → 94.0% (+24.0 points) | 78.0% → 92.0% (+14.0 points) | +| Discoverability | 83.3% — baseline ran, but no comparable score was available; uplift unavailable | 83.9% — baseline ran, but no comparable score was available; uplift unavailable | +| Effectiveness | 56.0% → 68.0% (+12.0 points) | 50.3% → 62.5% (+12.2 points) | +| Efficiency | 84.5% — baseline ran, but no comparable score was available; uplift unavailable | 67.7% — baseline ran, but no comparable score was available; uplift unavailable | + +**How to read this table:** baseline is the same task attempted without the target skill. Scores are rounded to one decimal; threshold-adjacent values use additional precision so their displayed band matches the verdict. Uplift is derived from those displayed scores and shown in percentage points. + +Example: `47.0% → 92.0% (+45.0 points)` means the skill-assisted run scored 92.0%, 45.0 percentage points above its 47.0% no-skill baseline. + +A partial dimension was calculated from only the available configured signals; review the detailed report before relying on it. + +#### Comparison details + +Shared-source comparisons use the same signals and weights on both conditions. They do not replace the full dimension scores above or change the publication verdict. + +| Agent | Dimension | Basis | Baseline → With skill (uplift) | Explanation | +| --- | --- | --- | --- | --- | +| claude-code | Discoverability | Dimension comparison | N/A | Discoverability is not applicable to the no-skill baseline; there is no installed skill to discover. | +| claude-code | Efficiency | Token-only comparison | 93.5% → 93.2% (-0.3 points) | Only Token Efficiency is comparable; the full dimension scores use different evaluator sources. | +| codex | Discoverability | Dimension comparison | N/A | Discoverability is not applicable to the no-skill baseline; there is no installed skill to discover. | +| codex | Efficiency | Token-only comparison | 80.4% → 84.2% (+3.8 points) | Only Token Efficiency is comparable; the full dimension scores use different evaluator sources. | + +## Skill Version(s):
+f53f3d97 (source: git SHA, committed 2026-11-14)
+ +## Ethical Considerations:
+NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications. When downloaded or used in accordance with our terms of service, developers should work with their internal team to ensure this skill meets requirements for the relevant industry and use case and addresses unforeseen product misuse.
+ +(For Release on NVIDIA Platforms Only)
+Please report quality, risk, security vulnerabilities or NVIDIA AI Concerns [here](https://app.intigriti.com/programs/nvidia/nvidiavdp/detail).
diff --git a/skills/cuda-python/skill.oms.sig b/skills/cuda-python/skill.oms.sig new file mode 100644 index 000000000000..0a4bdcbcb1f2 --- /dev/null +++ b/skills/cuda-python/skill.oms.sig @@ -0,0 +1 @@ +{"mediaType":"application/vnd.dev.sigstore.bundle.v0.3+json","verificationMaterial":{"x509CertificateChain":{"certificates":[{"rawBytes":"MIICgzCCAgmgAwIBAgIUKIyS7SxNteQIiWzK1dWj85E6520wCgYIKoZIzj0EAwMwVTELMAkGA1UEBhMCVVMxGzAZBgNVBAoMEk5WSURJQSBDb3Jwb3JhdGlvbjEpMCcGA1UEAwwgTlZJRElBIEFnZW50IENhcGFiaWxpdGllcyBJQ0EgMDEwHhcNMjYwNDAxMDAwMDAwWhcNMjgwNDIyMTUzMzA5WjBUMQswCQYDVQQGEwJVUzEbMBkGA1UECgwSTlZJRElBIENvcnBvcmF0aW9uMSgwJgYDVQQDDB9OVklESUEgQWdlbnQgU2tpbGxzIFNpZ25pbmcgMDAxMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEYoRM9bQl/dGlwSRNi6bTpIJUXH8Nv9GciP6LSflJYYMLCc296kpyuTSsk5ddbAWiDcFX3C/ydX3jwc+qCLYP6uHy9XphyLjOQ27Yb2J6rBLVtRBS1mgGco/Gr7fL6ODco4GaMIGXMB0GA1UdDgQWBBRQ/5ZW3nJ6lmo9SVk7I15o7UGmpTAfBgNVHSMEGDAWgBRPGpILxMBBleJSsBGjrMKsby1CgjAMBgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDA3BggrBgEFBQcBAQQrMCkwJwYIKwYBBQUHMAGGG2h0dHA6Ly9vY3NwLm5kaXMubnZpZGlhLmNvbTAKBggqhkjOPQQDAwNoADBlAjAUygu/GiOCIXrgGr4SmLgeEVDcEitfFUv7ALbvLVGVyMysB3mxmO/uInZfXzWcJZsCMQDxuoxj4ZmO30jhkPIcCxGFCOvnUsnfU3TfGcouYm4M6iRpbKvtVnHPiy4bi6pcKf0="},{"rawBytes":"MIICiDCCAg6gAwIBAgIUZsIuSv9NkpJCNqtYEfCouVv5BzowCgYIKoZIzj0EAwMwUTELMAkGA1UEBhMCVVMxGzAZBgNVBAoMEk5WSURJQSBDb3Jwb3JhdGlvbjElMCMGA1UEAwwcTlZJRElBIEFnZW50IENhcGFiaWxpdGllcyBDQTAgFw0yNjA0MDEwMDAwMDBaGA85OTk5MTIzMTIzNTk1OVowVTELMAkGA1UEBhMCVVMxGzAZBgNVBAoMEk5WSURJQSBDb3Jwb3JhdGlvbjEpMCcGA1UEAwwgTlZJRElBIEFnZW50IENhcGFiaWxpdGllcyBJQ0EgMDEwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAASI72cR3ctKGg4VWnB3bNja6g1Z2PnOmFEopkPof+QeIcPk9rT+g9MjJnq51EQXL93a7C2GJ9J985G4o2V85VD7wJ1RaXhluHW2rf3y8bQGeAYaKMr5s/hUgn+M3/9WlWejgaAwgZ0wHQYDVR0OBBYEFE8akgvEwEGV4lKwEaOswqxvLUKCMB8GA1UdIwQYMBaAFItnoAjjfuCEUvzyvWyI2vOGvwPjMBIGA1UdEwEB/wQIMAYBAf8CAQAwDgYDVR0PAQH/BAQDAgEGMDcGCCsGAQUFBwEBBCswKTAnBggrBgEFBQcwAYYbaHR0cDovL29jc3AubmRpcy5udmlkaWEuY29tMAoGCCqGSM49BAMDA2gAMGUCMQCeIMMfAbyzPDacw2MxG+Yt1cikrJX/DVxiGfXuHmkkXn6VgSzE79+lkqDErpVO2gYCMCNEColOyvUvkzZGUEI1hQ3PfMgi3FIo9tHoBKMw4/wGBLFpu/0ubtmbBXM6/UMOEw=="},{"rawBytes":"MIICRTCCAcygAwIBAgIUeJdY3rV86EdvFmG7L8LJBsyQFYkwCgYIKoZIzj0EAwMwUTELMAkGA1UEBhMCVVMxGzAZBgNVBAoMEk5WSURJQSBDb3Jwb3JhdGlvbjElMCMGA1UEAwwcTlZJRElBIEFnZW50IENhcGFiaWxpdGllcyBDQTAgFw0yNjA0MDEwMDAwMDBaGA85OTk5MTIzMTIzNTk1OVowUTELMAkGA1UEBhMCVVMxGzAZBgNVBAoMEk5WSURJQSBDb3Jwb3JhdGlvbjElMCMGA1UEAwwcTlZJRElBIEFnZW50IENhcGFiaWxpdGllcyBDQTB2MBAGByqGSM49AgEGBSuBBAAiA2IABAYpiXCDjJ9NT2eSDhyHJVSw1Tbze18cGG2F/578oWvHxg23eQAhNRYdq88i1iOshZSO6C29doKui5Xpmo/7Ctw9Sx4PP2RzOmIuOLCuTdNtKcTRwi4GEsd5BAFvWj42M6NjMGEwHQYDVR0OBBYEFItnoAjjfuCEUvzyvWyI2vOGvwPjMB8GA1UdIwQYMBaAFItnoAjjfuCEUvzyvWyI2vOGvwPjMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMAoGCCqGSM49BAMDA2cAMGQCMCwtAjWLaNwgGWNCgdyNoTyvNhqWRECRJV2r3+7w8g0PL6NHLOsbkgE09BH95h8XlgIwTaQmbbUh2ChAJ5TA1wRiVDnCcvbzHlZl2jM2FcwQQZlk19LOAbyGMRixbu2Ww/rj"}]},"tlogEntries":[]},"dsseEnvelope":{"payload":"ewogICJfdHlwZSI6ICJodHRwczovL2luLXRvdG8uaW8vU3RhdGVtZW50L3YxIiwKICAic3ViamVjdCI6IFsKICAgIHsKICAgICAgIm5hbWUiOiAiY3VkYS1weXRob24iLAogICAgICAiZGlnZXN0IjogewogICAgICAgICJzaGEyNTYiOiAiYWJmNTQ5YWM5ZDUxMjIzYWFlY2VkYjE3NTFjNGRjMzE2YWE5ZGViOTVkMTlhODBhNmJiYWM4Mjk3MDFmYWJmNCIKICAgICAgfQogICAgfQogIF0sCiAgInByZWRpY2F0ZVR5cGUiOiAiaHR0cHM6Ly9tb2RlbF9zaWduaW5nL3NpZ25hdHVyZS92MS4wIiwKICAicHJlZGljYXRlIjogewogICAgInNlcmlhbGl6YXRpb24iOiB7CiAgICAgICJoYXNoX3R5cGUiOiAic2hhMjU2IiwKICAgICAgImlnbm9yZV9wYXRocyI6IFsKICAgICAgICAiLmdpdGF0dHJpYnV0ZXMiLAogICAgICAgICIuZ2l0aWdub3JlIiwKICAgICAgICAiLmdpdCIsCiAgICAgICAgIi5naXRodWIiCiAgICAgIF0sCiAgICAgICJhbGxvd19zeW1saW5rcyI6IGZhbHNlLAogICAgICAibWV0aG9kIjogImZpbGVzIgogICAgfSwKICAgICJyZXNvdXJjZXMiOiBbCiAgICAgIHsKICAgICAgICAiZGlnZXN0IjogImNlNzUzYzViZTRlOWQxNGY0ZDg2ZWFjOTIxZDQ1ZjJhN2Y2ZWY1NGIwMDE1OTVlYzgwY2M4ZGNlODI0MmY0MmIiLAogICAgICAgICJuYW1lIjogIkJFTkNITUFSSy5tZCIsCiAgICAgICAgImFsZ29yaXRobSI6ICJzaGEyNTYiCiAgICAgIH0sCiAgICAgIHsKICAgICAgICAiZGlnZXN0IjogIjQ5ZTZlODAzMzdkNmRhODY4YzQ3YWE0MGVjZDUxMmUwNzJlOWM0ODE2ODRjMzFjODYxNGIxNTljZDMwZGZkOWUiLAogICAgICAgICJuYW1lIjogIlNLSUxMLm1kIiwKICAgICAgICAiYWxnb3JpdGhtIjogInNoYTI1NiIKICAgICAgfSwKICAgICAgewogICAgICAgICJkaWdlc3QiOiAiZjBmZDM4N2Q5NjYwODQ2N2E3NmM0OTY2N2E2NDU3MDJjNTBlMWZjZDIwNTYxMDkyMTc2ZjQzNTkxNThhNDI1MCIsCiAgICAgICAgIm5hbWUiOiAiZXZhbHMvZXZhbHMuanNvbiIsCiAgICAgICAgImFsZ29yaXRobSI6ICJzaGEyNTYiCiAgICAgIH0sCiAgICAgIHsKICAgICAgICAiZGlnZXN0IjogIjAyYjIwODU5YTI2Y2IwYWRiNGQ0MjlmNWQ0MzI2ZjNkMDQ3ZjVlYmU4ZDA3MmYwNTRkZjQzZTI4MzZiOGZhYjgiLAogICAgICAgICJuYW1lIjogImV2YWxzL2ZpbGVzL2N1ZGEtcHl0aG9uLWZpeC1oYXJkY29kZWQtcGF0aHMvY29kZS9oYWxmX3JvdW5kdHJpcC5weSIsCiAgICAgICAgImFsZ29yaXRobSI6ICJzaGEyNTYiCiAgICAgIH0sCiAgICAgIHsKICAgICAgICAiZGlnZXN0IjogImZlMDcwMzVkNzQ4MDczMGE2MGRmZWVlMmMzZGEzY2Y4MmUzN2I2MDY2M2RiOTYwZWI4ZmQ2MzlmMTlhYTkyMTgiLAogICAgICAgICJuYW1lIjogImV2YWxzL2ZpbGVzL2N1ZGEtcHl0aG9uLWZpeC1pZ25vcmVkLWVycm9ycy9jb2RlL2hvdF9jZWxscy5weSIsCiAgICAgICAgImFsZ29yaXRobSI6ICJzaGEyNTYiCiAgICAgIH0sCiAgICAgIHsKICAgICAgICAiZGlnZXN0IjogIjkxZDYyZjkwMzMzZjJlM2MxMDkxMzI4Yjg5MTlmMzVhYzRkMmRiNDg4YWJiOTIwZTgwYzkzYzMwNzMwODIzYjIiLAogICAgICAgICJuYW1lIjogImV2YWxzL2ZpbGVzL2N1ZGEtcHl0aG9uLWZpeC1zY2FsYXItYXJncy9jb2RlL25vcm1hbGl6ZS5weSIsCiAgICAgICAgImFsZ29yaXRobSI6ICJzaGEyNTYiCiAgICAgIH0sCiAgICAgIHsKICAgICAgICAiZGlnZXN0IjogIjNiZDUxNzFmOGFiMDFmZDZhNjRlZDdjYjM5OGEyNjAyZWI2MDlhZTk2YjA5YTZiYWRkMTk1MzFkNDM0ZDZkYWIiLAogICAgICAgICJuYW1lIjogImV2YWxzL2ZpbGVzL2N1ZGEtcHl0aG9uLWZpeC1zdHJlYW0tb3JkZXIvY29kZS9kZW5vaXNlLnB5IiwKICAgICAgICAiYWxnb3JpdGhtIjogInNoYTI1NiIKICAgICAgfSwKICAgICAgewogICAgICAgICJkaWdlc3QiOiAiZmVhMDNmMGRlZTExYjhlMjZjNjU0OWViMGFlZjBmNzE1ZjFhYzllNjIyY2NhNGRjYjE5NmZmN2E2ZTU3NDdmYiIsCiAgICAgICAgIm5hbWUiOiAiZXZhbHMvZmlsZXMvY3VkYS1weXRob24tcGVyZi1sYXVuY2gtbG9vcC9jb2RlL2RpZmZ1c2UucHkiLAogICAgICAgICJhbGdvcml0aG0iOiAic2hhMjU2IgogICAgICB9LAogICAgICB7CiAgICAgICAgImRpZ2VzdCI6ICIzMThmMjM4OTdkMGVlZWM0ZDQ2ZjUzOTM1Y2IxZDJhYjI5NDY0MDJhYjIzMTZiYTRiMGIyMWY5YTkzNDI5MDY0IiwKICAgICAgICAibmFtZSI6ICJldmFscy9maWxlcy9jdWRhLXB5dGhvbi1wb3J0LWNvcmUtZXhwZXJpbWVudGFsL2NvZGUvcGlwZWxpbmUucHkiLAogICAgICAgICJhbGdvcml0aG0iOiAic2hhMjU2IgogICAgICB9LAogICAgICB7CiAgICAgICAgImRpZ2VzdCI6ICIyZThhMzYyNWQyOGQzNTE4NWEwODEyOGQzM2Y4ZWUyMDQ0Y2Y2N2Q1YzEwODVlMTAzYWJmM2FmYmMzMzQxMjIyIiwKICAgICAgICAibmFtZSI6ICJldmFscy9maWxlcy9jdWRhLXB5dGhvbi1wb3J0LWxlZ2FjeS1iaW5kaW5ncy9jb2RlL3NheHB5X2xlZ2FjeS5weSIsCiAgICAgICAgImFsZ29yaXRobSI6ICJzaGEyNTYiCiAgICAgIH0sCiAgICAgIHsKICAgICAgICAiZGlnZXN0IjogImU1Zjg4ODE0MGVhZWU2Y2JhOGNjYTg1MTViN2ZiZGY2ZDRlMWQ3ZjkxMmEzMTE0YzNhYmUzNDcyMGRlMDQwNWEiLAogICAgICAgICJuYW1lIjogImV2YWxzL2ZpbGVzL2N1ZGEtcHl0aG9uLXBvcnQtcHljdWRhL2NvZGUvdGhyZXNob2xkX3B5Y3VkYS5weSIsCiAgICAgICAgImFsZ29yaXRobSI6ICJzaGEyNTYiCiAgICAgIH0sCiAgICAgIHsKICAgICAgICAiZGlnZXN0IjogImZhMzRhMWZjYjNmOGY3NzdmYjZiYjE0YmViYzgwZTU4NGE1YTVjNTI3MzEzNzc5MTA2ZTUyODFmNTYwMmRmZWEiLAogICAgICAgICJuYW1lIjogImV2YWxzL2ZpbGVzL2N1ZGEtcHl0aG9uLXJldmlldy1jYWxpYnJhdGUvY29kZS9jYWxpYnJhdGUucHkiLAogICAgICAgICJhbGdvcml0aG0iOiAic2hhMjU2IgogICAgICB9LAogICAgICB7CiAgICAgICAgImRpZ2VzdCI6ICIxOWMyNWI1MTU2NDJjYTE3ZDY2ZGU5MjUyZmI0ZTI2YWM1ODUwNmNmNTg4YTkwNjNjMjdiMjc5NDE0YWRhZWQzIiwKICAgICAgICAibmFtZSI6ICJza2lsbC1jYXJkLm1kIiwKICAgICAgICAiYWxnb3JpdGhtIjogInNoYTI1NiIKICAgICAgfQogICAgXQogIH0KfQ==","payloadType":"application/vnd.in-toto+json","signatures":[{"sig":"MGUCMQC395i6+DTmGbsIjm07TRmIecMc6EVChJ7QjGwgfX6gMlylf4si5VuZ7F7IacXwZpsCMHHzgAyD6rXZiaDxMC9YdDcfRwdskNq6Wdw31657ZGaOYpzzuQ+R3Gy4N067grnPWg==","keyid":""}]}} \ No newline at end of file diff --git a/toolshed/check_spdx.py b/toolshed/check_spdx.py index 03733ba533f7..e59ebd7cdf37 100644 --- a/toolshed/check_spdx.py +++ b/toolshed/check_spdx.py @@ -34,6 +34,7 @@ "qa": "LicenseRef-NVIDIA-SOFTWARE-LICENSE", "samples": "Apache-2.0", "scripts": "Apache-2.0", + "skills": "Apache-2.0", "toolshed": "Apache-2.0", } From 9eef4b72e78392450ae62cdbf45bb1a18c6a0a07 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Wed, 18 Nov 2026 12:05:29 -0800 Subject: [PATCH 62/85] [no-ci] Limit NVSkills CI to NVIDIA/cuda-python (#3491) * Restrict NVSkills CI to the canonical repository Apply the repository guard to every existing event path. Copies of the workflow in other repositories skip the integration, while fork pull requests targeting NVIDIA/cuda-python retain the current behavior. * ci: require manual copy-pr-bot approval --- .github/workflows/request-nvskills-ci.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/request-nvskills-ci.yml b/.github/workflows/request-nvskills-ci.yml index c61fcc8f16d3..5d813dd2a56e 100644 --- a/.github/workflows/request-nvskills-ci.yml +++ b/.github/workflows/request-nvskills-ci.yml @@ -14,13 +14,16 @@ on: jobs: request: if: > - github.event_name == 'pull_request' || - (github.event_name == 'issue_comment' && - github.event.issue.pull_request && - startsWith(github.event.comment.body, '/nvskills-ci')) || - (github.event_name == 'push' && - github.actor == (vars.NVSKILLS_SIGNATURE_PUSH_ACTOR || 'nv-skills-ci[bot]') && - startsWith(github.event.head_commit.message, vars.NVSKILLS_SIGNATURE_COMMIT_TITLE || 'Attach NVSkills validation signatures')) + github.repository == 'NVIDIA/cuda-python' && + ( + github.event_name == 'pull_request' || + (github.event_name == 'issue_comment' && + github.event.issue.pull_request && + startsWith(github.event.comment.body, '/nvskills-ci')) || + (github.event_name == 'push' && + github.actor == (vars.NVSKILLS_SIGNATURE_PUSH_ACTOR || 'nv-skills-ci[bot]') && + startsWith(github.event.head_commit.message, vars.NVSKILLS_SIGNATURE_COMMIT_TITLE || 'Attach NVSkills validation signatures')) + ) permissions: contents: read pull-requests: read From 9b7a2cb32830e6a279606694a301811a7098bcb5 Mon Sep 17 00:00:00 2001 From: jpascucci-nv Date: Wed, 18 Nov 2026 16:50:55 -0500 Subject: [PATCH 63/85] [doc-only] docs: prepare cuda-bindings 12.9.11 release notes (#3492) * docs: prepare cuda-bindings 12.9.11 release notes Document changes since 12.9.10 from the historical 12.9.x branch and cuda_bindings_12 on main, including binding fixes, NVML additions, Python support, packaging, and source-build changes. Reset the next-release template and move the host-callback graph replay fix from the 12.9.9 notes to its correct release, 12.9.11. * Coderabbit's suggestion * docs: classify Python 3.10 retirement as End of Life Signed-off-by: Ralf W. Grosse-Kunstleve * docs: document removed CUDA 12 runtime reserved fields Signed-off-by: Ralf W. Grosse-Kunstleve * docs: clarify CUDA 12 struct-array copy semantics Signed-off-by: Ralf W. Grosse-Kunstleve --------- Signed-off-by: Ralf W. Grosse-Kunstleve Co-authored-by: Ralf W. Grosse-Kunstleve Co-authored-by: Ralf W. Grosse-Kunstleve --- .../docs/source/release/12.9.11-notes.rst | 185 ++++++++++++++++++ .../docs/source/release/12.9.9-notes.rst | 9 - .../docs/source/release/12.X.Y-notes.rst | 31 +-- 3 files changed, 195 insertions(+), 30 deletions(-) create mode 100644 cuda_bindings_12/docs/source/release/12.9.11-notes.rst diff --git a/cuda_bindings_12/docs/source/release/12.9.11-notes.rst b/cuda_bindings_12/docs/source/release/12.9.11-notes.rst new file mode 100644 index 000000000000..ca7e0811c17c --- /dev/null +++ b/cuda_bindings_12/docs/source/release/12.9.11-notes.rst @@ -0,0 +1,185 @@ +.. SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +.. SPDX-License-Identifier: Apache-2.0 + +.. module:: cuda.bindings + +``cuda-bindings`` 12.9.11 Release notes +======================================= + +Unreleased + +Breaking Changes +---------------- + +* ``nvml.NvlinkFirmwareInfo.firmware_version`` now exposes only valid entries, + rather than all 100 slots in the underlying buffer. Set this member to update + the valid-entry count; the separate ``num_valid_entries`` member has been + removed. Use ``len(info.firmware_version)`` to query the count. + (`PR #3429 `_) +* Reserved members of ``runtime`` struct wrappers are no longer exposed as + Python attributes. Accessing these members now raises ``AttributeError``: + + * ``cudaArraySparseProperties.reserved``, + ``cudaArrayMemoryRequirements.reserved``, ``cudaMemcpyNodeParams.reserved``, + ``cudaFuncAttributes.reserved``, ``cudaMemPoolProps.reserved``, + ``cudaMemPoolPtrExportData.reserved``, ``cudaDeviceProp.reserved``, + ``cudaEglPlaneDesc_st.reserved`` + * ``cudaIpcEventHandle_st.reserved``, ``cudaIpcMemHandle_st.reserved``, + ``cudaMemFabricHandle_st.reserved`` (also removed from their ``_t`` aliases) + * ``cudaExternalSemaphoreSignalParams.params.nvSciSync.reserved``, + ``cudaExternalSemaphoreSignalParams.params.reserved``, + ``cudaExternalSemaphoreSignalParams.reserved``, + ``cudaExternalSemaphoreWaitParams.params.nvSciSync.reserved``, + ``cudaExternalSemaphoreWaitParams.params.reserved``, + ``cudaExternalSemaphoreWaitParams.reserved`` + * ``cudaGraphNodeParams.reserved0``, ``cudaGraphNodeParams.reserved1``, + ``cudaGraphNodeParams.reserved2``, ``cudaGraphEdgeData_st.reserved`` + + Storage allocated by these wrappers is zero-initialized, including reserved + fields, so callers do not need to zero these fields explicitly. + + To serialize IPC handles previously accessed through ``handle.reserved``, + copy their raw bytes using ``getPtr()`` and ``ctypes`` instead: + + .. code-block:: python + + import ctypes + + from cuda.bindings import runtime + + # handle was returned by runtime.cudaIpcGetMemHandle(). + payload = ctypes.string_at(handle.getPtr(), runtime.CUDA_IPC_HANDLE_SIZE) + restored = runtime.cudaIpcMemHandle_t() + ctypes.memmove(restored.getPtr(), payload, runtime.CUDA_IPC_HANDLE_SIZE) + + When restoring a payload received from another process, ensure it contains + exactly ``runtime.CUDA_IPC_HANDLE_SIZE`` bytes before copying it. + +Enhancements +------------ + +* Expanded NVML coverage with ``device_get_gpu_uptime_v1``, + ``system_get_conf_compute_settings_v2``, ``device_get_nvlink_info_v3``, + ``device_get_nvlink_remap_table_info_v1``, ``device_set_nvlink_nvle_ready_v1``, + ``device_lock_nvlink_remap_table_v1``, + ``device_setup_nvlink_nvle_encryption_key_v1``, and + ``device_get_nvlink_nvle_private_info_v1``, together with their struct wrappers. + These APIs require an NVML library that provides the corresponding functions. + (`PR #3429 `_) +* Buffer-like pointer arguments in ``nvfatbin``, ``nvjitlink``, and ``nvvm`` now + accept contiguous buffers of any dimensionality, including ctypes objects + and multidimensional NumPy arrays. Previously these buffers had to be 1D. + (`PR #3429 `_) +* Pointer arguments in ``cufile`` and ``nvml``, such as ``descr`` in + ``cufile.handle_register`` and ``info`` in ``nvml.device_set_clock_offsets``, + now accept ``None`` as ``NULL``. + (`PR #3429 `_) + +Bug Fixes +--------- + +* ``driver.cuLaunchHostFunc`` and ``runtime.cudaLaunchHostFunc`` now pass the + host function and its user data to CUDA unchanged. The previous internal + trampoline freed its state after the first invocation, causing a captured + host function to crash on the second launch of a CUDA graph. Callers must + retain the callback object and user data storage until all uses have completed, + including the lifetime of graphs and their executables; see + :ref:`host-function-lifetime`. + (`PR #3107 `_) +* Corrected the driver-version lookup for ``cuLogs*`` functions to CUDA 12.9, + preventing spurious ``FunctionNotFoundError`` failures on supported drivers. + (`PR #3377 `_, + `PR #3395 `_) +* Fixed crashes when registering or unregistering ``cuLogs*`` and asynchronous + notification callbacks concurrently under free-threaded Python. + (`PR #3429 `_) +* Nested ``driver`` and ``runtime`` struct and union views now retain their + owning wrapper, and struct-array getters in these modules return independent + copies, avoiding access to freed backing storage. Mutating a returned element + no longer updates the parent struct: read the array, modify its elements, then + assign it back (for example, ``attrs = cfg.attrs``, update ``attrs[0]``, then + ``cfg.attrs = attrs``). ``cufile`` and ``nvml`` struct wrappers also retain + owners correctly when indexing and slicing arrays. + (`PR #3429 `_) +* ``cufile`` and ``nvml`` struct arrays are now zero-initialized, and assigning + to a member of a read-only array wrapper raises ``ValueError``. + (`PR #3429 `_) +* ``nvml.device_get_field_values`` initializes per-query status to + ``ERROR_UNKNOWN`` so entries left unpopulated by NVML do not appear successful. + Integer field IDs now explicitly use scope ID zero. + (`PR #3429 `_) +* ``nvml.PwrModelMetricsPfpp1x`` and ``nvml.PwrModelMetricsDlppm1x`` now populate + their nested ``estimated_metrics`` arrays using each element's + ``num_vf_points`` and ``num_estimated_metrics``, respectively. + (`PR #3429 `_) +* Moved cuFile and NVML dtype layout calculations to heap storage to avoid + placing large temporary structs on the stack during module initialization. + (`PR #3473 `_) +* Nested resource pointer conversion accepts both ``str`` and ``bytes`` + options, matching the CUDA 13 bindings behavior. +* Coredump settings retain borrowed string buffers for the duration of the + call and free the buffers allocated for getters. +* ``get_cuda_native_handle`` preserves a ``KeyError`` raised inside a + registered getter instead of reporting an unknown type. + (`PR #3315 `_) + +Deprecations +------------ + +* The NVML exception classes ``nvml.TimeoutError`` and ``nvml.MemoryError`` + have been renamed to ``nvml.NvmlTimeoutError`` and ``nvml.NvmlMemoryError`` + to avoid shadowing Python builtins. The old names remain available as + compatibility aliases. Both classes still derive from ``nvml.NvmlError``. + (`PR #3429 `_) + +End of Life +----------- + +* Python 3.10 support dropped (end of life); the supported range is + Python 3.11-3.15. + +Packaging and Source Builds +--------------------------- + +* Wheels omit ``.pyx`` implementation sources and ``.in`` generation templates, + following the CUDA 13 packaging policy. Cython declarations and includes + (``.pxd`` and ``.pxi``), and required headers, remain available for downstream + Cython builds. Source distributions retain the inputs needed to build the package. +* All binding sources, including the runtime's internal and Cython layers, are + now pre-generated. Source builds no longer parse CUDA headers or expand + templates, removing the ``pyclibrary`` build dependency and the + ``CUDA_PYTHON_PARSER_CACHING`` setting. + (`PR #3429 `_, + `PR #3437 `_) +* Source builds use the monorepo's shared compiler and Cython-cache tooling and + check for CUDA 12.9 headers before Cythonization, reporting a clear error when + the selected toolkit's major.minor version does not match the generated sources. + (`PR #3173 `_) +* Development and test dependencies are now provided through dependency groups; + use ``python -m pip install -v -e . --group test`` from ``cuda_bindings_12`` + for an editable installation with test dependencies. + (`PR #3315 `_) + +Documentation and Maintenance +----------------------------- + +* CUDA 12.9 maintenance sources now live in ``cuda_bindings_12`` on ``main``. + The historical ``12.9.x`` branch is frozen except for emergency fixes, which + must also be reconciled into ``main``. Main-tree CUDA 12 releases are built + and tested alongside CUDA 13. Old-layout CUDA 12 tags are released from a + validated workflow on the appropriate maintenance branch or historical tag, + not from ``main``. +* Corrected the CUDA 12 driver guidance to its existing minor-version + compatibility baseline: Linux 525.60.13 and Windows 528.33. This is a + documentation correction, not a new runtime version check. Newer features + and PTX compilation can still require a newer driver. + +Known Issues +------------ + +* Updating from v12.6.2.post1 and older via ``pip install -U cuda-python`` might + not work. Uninstall with ``pip uninstall -y cuda-python``, then install the + CUDA 12 line with ``pip install "cuda-python~=12.9.0"``. +* ``nvml.system_get_process_name`` on WSL can return incorrect values. Set the + locale to ``"C"`` before calling ``nvml.device_get_compute_running_processes_v3`` + (which sets the process names) and ``nvml.system_get_process_name``. diff --git a/cuda_bindings_12/docs/source/release/12.9.9-notes.rst b/cuda_bindings_12/docs/source/release/12.9.9-notes.rst index 9579fce30a8c..3ed9e1d09bc7 100644 --- a/cuda_bindings_12/docs/source/release/12.9.9-notes.rst +++ b/cuda_bindings_12/docs/source/release/12.9.9-notes.rst @@ -345,15 +345,6 @@ Bugfixes classes in ``cudla``, ``cufile``, and ``nvml``. (`PR #2875 `_) -- ``driver.cuLaunchHostFunc`` and ``runtime.cudaLaunchHostFunc`` now pass the host - function and its user data to CUDA unchanged. They used to route the call through - an internal trampoline that freed its state after the first invocation, so a host - function captured into a CUDA graph crashed on the second launch of that graph. - (`Issue #790 `_) - Callers must retain the callback object and user data storage for the lifetime - of the graph and its executables, including pending launches; see - :ref:`host-function-lifetime`. - Known issues ------------ diff --git a/cuda_bindings_12/docs/source/release/12.X.Y-notes.rst b/cuda_bindings_12/docs/source/release/12.X.Y-notes.rst index 34dc8ed54cbc..f413852cfb1d 100644 --- a/cuda_bindings_12/docs/source/release/12.X.Y-notes.rst +++ b/cuda_bindings_12/docs/source/release/12.X.Y-notes.rst @@ -13,31 +13,20 @@ Unreleased Breaking Changes ---------------- -* CUDA 12 bindings require Python 3.11 or newer. Python versions older than - 3.11 are no longer supported; the supported range is Python 3.11-3.15. +Enhancements +------------ Bug Fixes --------- -* Nested resource pointer conversion accepts both ``str`` and ``bytes`` - options, matching the CUDA 13 bindings behavior. -* Coredump settings retain borrowed string buffers for the duration of the - call and free the buffers allocated for getters. -* ``get_cuda_native_handle`` preserves a ``KeyError`` raised inside a - registered getter instead of reporting an unknown type. +Deprecations +------------ -Packaging ---------- - -* Wheels omit ``.pyx`` implementation sources and ``.in`` generation templates, - following the CUDA 13 packaging policy. Cython declarations and includes - (``.pxd`` and ``.pxi``), and required headers, remain available for downstream - Cython builds. Source distributions retain the inputs needed to build the package. +Packaging and Source Builds +--------------------------- -Documentation -------------- +Documentation and Maintenance +----------------------------- -* Corrected the CUDA 12 driver guidance to its existing minor-version - compatibility baseline: Linux 525.60.13 and Windows 528.33. This is a - documentation correction, not a new runtime version check. Newer features - and PTX compilation can still require a newer driver. +Known Issues +------------ From 2440c8f9dca2796f18eea21e9d0d5834d7d5e7f6 Mon Sep 17 00:00:00 2001 From: prewaskar-nv <273072399+prewaskar-nv@users.noreply.github.com> Date: Thu, 19 Nov 2026 05:47:46 +0530 Subject: [PATCH 64/85] fix(pathfinder): find cuDNN in the Windows Arm64 wheel (#3489) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(pathfinder): find cuDNN in the Windows Arm64 wheel The nvidia-cudnn-cu13 win_arm64 wheel installs cudnn64_9.dll and its sub-libraries in nvidia/cudnn/bin, the same directory as the win_amd64 wheel (checked for 9.28.0.42 and 9.28.1.4). The cuDNN descriptor listed that site-packages directory for x64 only, so on Windows Arm64 load_nvidia_dynamic_lib("cudnn") skipped the wheel and could only find cuDNN through CUDNN_PATH/bin/arm64. List nvidia/cudnn/bin for arm64 as well. Conda, CUDA_PATH, and Program Files stay x64-only on Windows Arm64. Signed-off-by: Pawan Rewaskar <273072399+prewaskar-nv@users.noreply.github.com> * docs(pathfinder): add 1.9.1 release notes for the cuDNN Arm64 wheel Signed-off-by: Pawan Rewaskar <273072399+prewaskar-nv@users.noreply.github.com> * fix(pathfinder): skip incompatible Windows cuDNN DLLs — codex GPT-6 on behalf of Ralf — Check the PE architecture before selecting cuDNN from a shared wheel location so discovery can continue to a compatible installation. Cover matching x64 and Arm64 wheels and fallback from an x64 wheel to an Arm64 archive. Update synthetic DLL fixtures for architecture validation. * test(pathfinder): isolate the Arm64 cuDNN archive lookup — codex GPT-6 on behalf of Ralf — Hide installed wheels from the archive loader test so site-packages cannot override its temporary CUDNN_PATH installation. --------- Signed-off-by: Pawan Rewaskar <273072399+prewaskar-nv@users.noreply.github.com> Co-authored-by: Ralf W. Grosse-Kunstleve --- .../_dynamic_libs/descriptor_catalog.py | 13 +++-- cuda_pathfinder/docs/nv-versions.json | 4 ++ .../docs/source/release/1.9.1-notes.rst | 19 +++++++ .../tests/test_descriptor_catalog.py | 9 ++-- ...st_load_nvidia_dynamic_lib_using_mocker.py | 2 + cuda_pathfinder/tests/test_search_steps.py | 53 +++++++++++++++---- 6 files changed, 85 insertions(+), 15 deletions(-) create mode 100644 cuda_pathfinder/docs/source/release/1.9.1-notes.rst diff --git a/cuda_pathfinder/cuda/pathfinder/_dynamic_libs/descriptor_catalog.py b/cuda_pathfinder/cuda/pathfinder/_dynamic_libs/descriptor_catalog.py index 5d9bb3e363ed..3edd35c4c71f 100644 --- a/cuda_pathfinder/cuda/pathfinder/_dynamic_libs/descriptor_catalog.py +++ b/cuda_pathfinder/cuda/pathfinder/_dynamic_libs/descriptor_catalog.py @@ -429,14 +429,21 @@ class DescriptorSpec: linux_sonames=("libcudnn.so.9",), windows_dlls=("cudnn64_9.dll",), supported_windows_arch=("x64", "arm64"), + # Skip DLLs that do not match the running Python interpreter's architecture, + # allowing the search to continue to a compatible installation. + requires_windows_binary_arch_check=True, site_packages_linux=("nvidia/cudnn/lib",), - site_packages_windows=WindowsSearchDirs.x64_only("nvidia/cudnn/bin"), + site_packages_windows=WindowsSearchDirs( + x64=("nvidia/cudnn/bin",), + arm64=("nvidia/cudnn/bin",), + ), dependencies=("cublasLt",), optional_dependencies=("nvrtc",), install_root_env_vars_linux=("CUDNN_PATH",), install_root_env_rel_dirs_linux=("lib", "lib64"), - # The ARM64 layout is verified only for the standalone archive rooted - # at CUDNN_PATH, not for conda, CUDA_PATH, or Program Files installs. + # The ARM64 layouts are verified only for the nvidia-cudnn-cu13 wheel and + # the standalone archive rooted at CUDNN_PATH, not for conda, CUDA_PATH, + # or Program Files installs. anchor_rel_dirs_windows=WindowsSearchDirs.x64_only("bin/x64", "bin"), install_root_env_vars_windows=("CUDNN_PATH",), install_root_env_rel_dirs_windows=WindowsSearchDirs( diff --git a/cuda_pathfinder/docs/nv-versions.json b/cuda_pathfinder/docs/nv-versions.json index 2adde8cc61f0..e3e66a4df58b 100644 --- a/cuda_pathfinder/docs/nv-versions.json +++ b/cuda_pathfinder/docs/nv-versions.json @@ -3,6 +3,10 @@ "version": "latest", "url": "https://nvidia.github.io/cuda-python/cuda-pathfinder/latest/" }, + { + "version": "1.9.1", + "url": "https://nvidia.github.io/cuda-python/cuda-pathfinder/1.9.1/" + }, { "version": "1.9.0", "url": "https://nvidia.github.io/cuda-python/cuda-pathfinder/1.9.0/" diff --git a/cuda_pathfinder/docs/source/release/1.9.1-notes.rst b/cuda_pathfinder/docs/source/release/1.9.1-notes.rst new file mode 100644 index 000000000000..563d179a27f1 --- /dev/null +++ b/cuda_pathfinder/docs/source/release/1.9.1-notes.rst @@ -0,0 +1,19 @@ +.. SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +.. SPDX-License-Identifier: Apache-2.0 + +.. py:currentmodule:: cuda.pathfinder + +``cuda-pathfinder`` 1.9.1 Release notes +======================================= + +Highlights +---------- + +* Find cuDNN installed from the ``nvidia-cudnn-cu13`` Windows Arm64 wheel. + The wheel places ``cudnn64_9.dll`` in ``nvidia/cudnn/bin``, the same + directory as the x64 wheel, which ``load_nvidia_dynamic_lib("cudnn")`` + previously searched on x64 only. Windows cuDNN discovery checks the DLL's + architecture so that an incompatible wheel does not prevent searching + later installation roots. Conda, ``CUDA_PATH``, and Program Files installs + remain x64-only on Windows Arm64. + (`PR #3489 `_) diff --git a/cuda_pathfinder/tests/test_descriptor_catalog.py b/cuda_pathfinder/tests/test_descriptor_catalog.py index 835e7572ef0d..60a779274862 100644 --- a/cuda_pathfinder/tests/test_descriptor_catalog.py +++ b/cuda_pathfinder/tests/test_descriptor_catalog.py @@ -164,7 +164,10 @@ def test_cudnn_metadata_matches_supported_layouts(): assert spec.windows_dlls == ("cudnn64_9.dll",) assert spec.supported_windows_arch == ("x64", "arm64") assert spec.site_packages_linux == ("nvidia/cudnn/lib",) - assert spec.site_packages_windows == WindowsSearchDirs.x64_only("nvidia/cudnn/bin") + assert spec.site_packages_windows == WindowsSearchDirs( + x64=("nvidia/cudnn/bin",), + arm64=("nvidia/cudnn/bin",), + ) assert spec.anchor_rel_dirs_windows == WindowsSearchDirs.x64_only("bin/x64", "bin") assert spec.dependencies == ("cublasLt",) assert spec.optional_dependencies == ("nvrtc",) @@ -203,7 +206,7 @@ def test_only_ctk_libs_define_ctk_root_canary_anchors(spec: DescriptorSpec): @pytest.mark.agent_authored(model="gpt-5") -def test_only_nvvm_requires_windows_binary_arch_check(): +def test_windows_binary_arch_checks_cover_architecture_neutral_layouts(): checked_libs = {spec.name for spec in DESCRIPTOR_CATALOG if spec.requires_windows_binary_arch_check} - assert checked_libs == {"nvvm"} + assert checked_libs == {"nvvm", "cudnn"} diff --git a/cuda_pathfinder/tests/test_load_nvidia_dynamic_lib_using_mocker.py b/cuda_pathfinder/tests/test_load_nvidia_dynamic_lib_using_mocker.py index 7c47197fffa8..70a095406785 100644 --- a/cuda_pathfinder/tests/test_load_nvidia_dynamic_lib_using_mocker.py +++ b/cuda_pathfinder/tests/test_load_nvidia_dynamic_lib_using_mocker.py @@ -61,6 +61,8 @@ def test_cudnn_arm64_archive_layout_reaches_loader(tmp_path, mocker, monkeypatch dll.touch() monkeypatch.delenv("CONDA_PREFIX", raising=False) monkeypatch.setenv("CUDNN_PATH", str(tmp_path)) + mocker.patch("cuda.pathfinder._dynamic_libs.search_platform.find_sub_dirs_all_sitepackages", return_value=[]) + mocker.patch("cuda.pathfinder._dynamic_libs.search_platform.windows_pe_matches_arch", return_value=True) desc = load_mod.LIB_DESCRIPTORS["cudnn"] ctx = SearchContext(desc, platform=WindowsSearchPlatform(target_arch="arm64")) diff --git a/cuda_pathfinder/tests/test_search_steps.py b/cuda_pathfinder/tests/test_search_steps.py index af752643f100..331564110361 100644 --- a/cuda_pathfinder/tests/test_search_steps.py +++ b/cuda_pathfinder/tests/test_search_steps.py @@ -335,7 +335,7 @@ def test_found_windows(self, mocker, tmp_path): def test_windows_exact_names_reject_cudnn_sidecar(self, mocker, tmp_path): bin_dir = tmp_path / "nvidia" / "cudnn" / "bin" bin_dir.mkdir(parents=True) - (bin_dir / "cudnn_adv64_9.dll").touch() + _write_pe(bin_dir / "cudnn_adv64_9.dll", windows_arch_mod.WINDOWS_PE_MACHINE_BY_ARCH["x64"]) mocker.patch( f"{_PLAT_MOD}.find_sub_dirs_all_sitepackages", @@ -471,6 +471,41 @@ def test_found_windows_arm64_skips_cuda12_when_cuda13_is_absent(self, mocker, tm assert result is None + @pytest.mark.parametrize( + ("target_arch", "wheel_arch", "expected_source"), + ( + ("x64", "x64", "site-packages"), + ("arm64", "arm64", "site-packages"), + ("arm64", "x64", "CUDNN_PATH"), + ), + ) + @pytest.mark.agent_authored(model="gpt-6") + def test_cudnn_wheel_architecture_and_archive_fallback( + self, mocker, tmp_path, target_arch, wheel_arch, expected_source + ): + wheel_dir = tmp_path / "nvidia" / "cudnn" / "bin" + wheel_dir.mkdir(parents=True) + cudnn_dll = wheel_dir / "cudnn64_9.dll" + _write_pe(cudnn_dll, windows_arch_mod.WINDOWS_PE_MACHINE_BY_ARCH[wheel_arch]) + + archive_root = tmp_path / "archive" + archive_dll = archive_root / "bin" / target_arch / "cudnn64_9.dll" + archive_dll.parent.mkdir(parents=True) + _write_pe(archive_dll, windows_arch_mod.WINDOWS_PE_MACHINE_BY_ARCH[target_arch]) + mocker.patch.dict(os.environ, {"CUDNN_PATH": str(archive_root)}) + + _patch_site_packages_search(mocker, tmp_path) + mocker.patch(f"{_PLAT_MOD}.is_suppressed_dll_file", return_value=False) + + desc = LIB_DESCRIPTORS["cudnn"] + result = run_find_steps( + _ctx(desc, platform=WindowsSearchPlatform(target_arch=target_arch)), + (find_in_site_packages, find_in_install_root_env_vars), + ) + + expected_dll = cudnn_dll if expected_source == "site-packages" else archive_dll + assert result == FindResult(str(expected_dll), expected_source) + def test_not_found_appends_error(self, mocker, tmp_path): empty_dir = tmp_path / "nvidia" / "cuda_runtime" / "lib" empty_dir.mkdir(parents=True) @@ -810,7 +845,7 @@ def test_cudnn_path_finds_supported_archive_layouts(self, mocker, tmp_path, targ bin_dir = tmp_path / archive_bin_rel_dir bin_dir.mkdir(parents=True) dll = bin_dir / "cudnn64_9.dll" - dll.touch() + _write_pe(dll, windows_arch_mod.WINDOWS_PE_MACHINE_BY_ARCH[target_arch]) mocker.patch.dict(os.environ, {"CUDNN_PATH": str(tmp_path)}) result = find_in_install_root_env_vars( @@ -831,7 +866,7 @@ def test_cudnn_path_finds_supported_archive_layouts(self, mocker, tmp_path, targ def test_cudnn_path_does_not_cross_architectures(self, mocker, tmp_path, target_arch, other_arch_bin_rel_dir): bin_dir = tmp_path / other_arch_bin_rel_dir bin_dir.mkdir(parents=True) - (bin_dir / "cudnn64_9.dll").touch() + _write_pe(bin_dir / "cudnn64_9.dll", windows_arch_mod.WINDOWS_PE_MACHINE_BY_ARCH[target_arch]) mocker.patch.dict(os.environ, {"CUDNN_PATH": str(tmp_path)}) result = find_in_install_root_env_vars( @@ -845,9 +880,9 @@ def test_program_files_finds_versioned_cudnn_install(self, mocker, tmp_path): bin_dir = tmp_path / "NVIDIA" / "CUDNN" / "v9.24" / "bin" x64_bin_dir = bin_dir / "x64" x64_bin_dir.mkdir(parents=True) - (x64_bin_dir / "cudnn_adv64_9.dll").touch() + _write_pe(x64_bin_dir / "cudnn_adv64_9.dll", windows_arch_mod.WINDOWS_PE_MACHINE_BY_ARCH["x64"]) dll = bin_dir / "cudnn64_9.dll" - dll.touch() + _write_pe(dll, windows_arch_mod.WINDOWS_PE_MACHINE_BY_ARCH["x64"]) mocker.patch.dict(os.environ, {"PROGRAMFILES": str(tmp_path), "PROGRAMW6432": ""}) result = find_in_program_files_roots( @@ -862,9 +897,9 @@ def test_program_files_prefers_newest_numeric_cudnn_version_across_layouts(self, newer_dir = tmp_path / "NVIDIA" / "CUDNN" / "v9.10" / "bin" older_dir.mkdir(parents=True) newer_dir.mkdir(parents=True) - (older_dir / "cudnn64_9.dll").touch() + _write_pe(older_dir / "cudnn64_9.dll", windows_arch_mod.WINDOWS_PE_MACHINE_BY_ARCH["x64"]) newer_dll = newer_dir / "cudnn64_9.dll" - newer_dll.touch() + _write_pe(newer_dll, windows_arch_mod.WINDOWS_PE_MACHINE_BY_ARCH["x64"]) mocker.patch.dict(os.environ, {"PROGRAMFILES": str(tmp_path), "PROGRAMW6432": ""}) result = find_in_program_files_roots( @@ -884,7 +919,7 @@ def test_cudnn_arm64_archive_layout_is_not_assumed_for_other_roots(self, mocker, program_files_root / "NVIDIA" / "CUDNN" / "v9.25" / "bin" / "arm64", ): bin_dir.mkdir(parents=True) - (bin_dir / "cudnn64_9.dll").touch() + _write_pe(bin_dir / "cudnn64_9.dll", windows_arch_mod.WINDOWS_PE_MACHINE_BY_ARCH["arm64"]) mocker.patch.dict( os.environ, { @@ -899,7 +934,7 @@ def test_cudnn_arm64_archive_layout_is_not_assumed_for_other_roots(self, mocker, assert find_in_conda(ctx) is None assert find_in_cuda_path(ctx) is None assert find_in_program_files_roots(ctx) is None - assert ctx.platform.site_packages_rel_dirs(ctx.desc) == () + assert ctx.platform.site_packages_rel_dirs(ctx.desc) == ("nvidia/cudnn/bin",) # --------------------------------------------------------------------------- From 5d81fc030a3679534b4359541926e0106d75b66e Mon Sep 17 00:00:00 2001 From: Yimo Jiang Date: Thu, 19 Nov 2026 09:43:20 +0800 Subject: [PATCH 65/85] fix(samples): waive simpleP2P without CUDA memory pool support (#3455) * fix(samples): waive simpleP2P without CUDA memory pool support The peer-accessible buffers in this sample are allocated from the device and host memory pools, because peer access is granted with cuMemPoolSetAccess. On configurations without memory pools (for example GPUs in TCC mode on R580), DeviceMemoryResource and PinnedMemoryResource raise CUDA_ERROR_NOT_SUPPORTED, so the sample exited with an unhandled exception before performing any peer transfer. Check memory_pools_supported and host_memory_pools_supported for the selected GPU pair before allocating and return EXIT_WAIVED instead. This matches the existing memory pool waivers in the streamingCopyComputeOverlap and copyImageArraytoGPU samples. Document the prerequisite in the README and add a sample verification test asserting that the capability checks precede the allocations. NVBug 7081727 Signed-off-by: Yimo Jiang * test(samples): assert simpleP2P waiver behavior across selected GPUs Replace the AST-only check with behavioral parametrization over each selected GPU and each memory pool capability, verifying EXIT_WAIVED is returned and no memory resource is constructed. Signed-off-by: Yimo Jiang --------- Signed-off-by: Yimo Jiang Co-authored-by: Rob Parolin --- .../example_tests/test_sample_verification.py | 80 +++++++++++++++++++ samples/cuda_core/simpleP2P/README.md | 4 +- samples/cuda_core/simpleP2P/simpleP2P.py | 12 +++ 3 files changed, 95 insertions(+), 1 deletion(-) diff --git a/cuda_core/tests/example_tests/test_sample_verification.py b/cuda_core/tests/example_tests/test_sample_verification.py index 4130632c8d35..464b82845759 100644 --- a/cuda_core/tests/example_tests/test_sample_verification.py +++ b/cuda_core/tests/example_tests/test_sample_verification.py @@ -4,7 +4,10 @@ from __future__ import annotations import ast +import importlib.util +import sys from pathlib import Path +from types import SimpleNamespace import numpy as np import pytest @@ -99,6 +102,83 @@ def test_unsupported_core_sample_paths_return_waiver( assert len(waiver_returns) == 1 +def _load_simple_p2p(monkeypatch: pytest.MonkeyPatch): + sample_path = REPO_ROOT / "samples" / "cuda_core" / "simpleP2P" / "simpleP2P.py" + spec = importlib.util.spec_from_file_location("_test_simple_p2p", sample_path) + assert spec is not None and spec.loader is not None + module = importlib.util.module_from_spec(spec) + with monkeypatch.context() as import_ctx: + import_ctx.setattr(sys, "path", list(sys.path)) + spec.loader.exec_module(module) + return module + + +@pytest.mark.parametrize( + ("unsupported_gpu", "unsupported_capability"), + [ + (0, "memory_pools_supported"), + (1, "memory_pools_supported"), + (0, "host_memory_pools_supported"), + (1, "host_memory_pools_supported"), + ], +) +@pytest.mark.agent_authored(model="gemini-4-carbon-high") +def test_simple_p2p_waives_before_allocation_without_memory_pool_support( + monkeypatch: pytest.MonkeyPatch, + unsupported_gpu: int, + unsupported_capability: str, +) -> None: + """Missing device or host mempool support on any selected GPU must waive before allocating (NVBug 7081727).""" + module = _load_simple_p2p(monkeypatch) + + # GPU 0 is non-P2P so the sample selects the (1, 2) pair rather than hardcoded ordinals (0, 1). + p2p_pair = (1, 2) + target_device_id = p2p_pair[unsupported_gpu] + devices = [] + for device_id in range(3): + props = { + "memory_pools_supported": True, + "host_memory_pools_supported": True, + } + if device_id == target_device_id: + props[unsupported_capability] = False + devices.append( + SimpleNamespace( + device_id=device_id, + name=f"FakeGPU{device_id}", + properties=SimpleNamespace(**props), + can_access_peer=lambda other, dev_id=device_id: ( + dev_id in p2p_pair and other.device_id in p2p_pair and dev_id != other.device_id + ), + set_current=lambda: None, + ) + ) + + class _FakeDeviceFactory: + def __new__(cls, device_id: int): + return devices[int(device_id)] + + @staticmethod + def get_all_devices(): + return list(devices) + + constructed_resources: list[str] = [] + + def _record_construction(kind: str): + def _fail(*args, **kwargs): + constructed_resources.append(kind) + raise AssertionError(f"{kind} must not be constructed when memory pools are unsupported") + + return _fail + + monkeypatch.setattr(module, "Device", _FakeDeviceFactory) + monkeypatch.setattr(module, "DeviceMemoryResource", _record_construction("DeviceMemoryResource")) + monkeypatch.setattr(module, "PinnedMemoryResource", _record_construction("PinnedMemoryResource")) + + assert module.run(num_elements=16) == module.EXIT_WAIVED + assert constructed_resources == [] + + @pytest.mark.agent_authored(model="gpt-5") def test_verify_array_result_or_raise_enforces_match(monkeypatch: pytest.MonkeyPatch) -> None: monkeypatch.syspath_prepend(str(UTILITIES_DIR)) diff --git a/samples/cuda_core/simpleP2P/README.md b/samples/cuda_core/simpleP2P/README.md index 3541df9dbb6a..b37a9f929df9 100644 --- a/samples/cuda_core/simpleP2P/README.md +++ b/samples/cuda_core/simpleP2P/README.md @@ -67,6 +67,7 @@ This sample demonstrates peer-to-peer (P2P) memory access between multiple GPUs ### Requirements - **Two or more GPUs**: System must have multiple CUDA-capable GPUs - **P2P support**: GPUs must be P2P-capable (check with `can_access_peer()`) +- **Memory pools**: The GPUs must support device and host memory pools (check with `device.properties.memory_pools_supported` and `device.properties.host_memory_pools_supported`) - **PCIe topology**: Usually requires GPUs on same PCIe root complex - **Platform support**: Not available on Mac OSX, limited on ARM platforms @@ -84,8 +85,9 @@ This sample demonstrates peer-to-peer (P2P) memory access between multiple GPUs 3. **CUDA Toolkit 13.0+** installed on your system 4. **Python 3.11 or newer** 5. **Proper PCIe topology** (GPUs should be on same PCIe root complex for best performance) +6. **CUDA memory pools** support on both GPUs (device and host memory pools); used to allocate the peer-accessible buffers -**Note**: This sample will gracefully exit if fewer than 2 GPUs are detected or if P2P is not supported between any GPU pair. +**Note**: This sample will gracefully exit if fewer than 2 GPUs are detected, if P2P is not supported between any GPU pair, or if the GPUs do not support CUDA memory pools (for example, GPUs in TCC mode). **Install packages:** ```bash diff --git a/samples/cuda_core/simpleP2P/simpleP2P.py b/samples/cuda_core/simpleP2P/simpleP2P.py index c0f5678d8568..b3f147272112 100644 --- a/samples/cuda_core/simpleP2P/simpleP2P.py +++ b/samples/cuda_core/simpleP2P/simpleP2P.py @@ -152,6 +152,18 @@ def run(num_elements=1024 * 1024 * 16): print(f"\nUsing GPU{gpuid[0]} ({dev0.name}) and GPU{gpuid[1]} ({dev1.name})") + # The buffers below are allocated from the device and host memory pools, so + # that peer access can be granted with cuMemPoolSetAccess. Configurations + # without memory pools (for example devices in TCC mode) cannot run this + # sample, so waive instead of failing while allocating. + for device, label in ((dev0, f"GPU{gpuid[0]}"), (dev1, f"GPU{gpuid[1]}")): + if not device.properties.memory_pools_supported: + print(f"\nDeviceMemoryResource requires CUDA memory pools, which are not supported on {label}. Waiving.") + return EXIT_WAIVED + if not device.properties.host_memory_pools_supported: + print(f"\nPinnedMemoryResource requires host memory pools, which are not supported on {label}. Waiving.") + return EXIT_WAIVED + # Allocate buffers with P2P access buf_size = num_elements * np.dtype(np.float32).itemsize print(f"\nAllocating buffers ({int(buf_size / 1024 / 1024)}MB on GPU{gpuid[0]}, GPU{gpuid[1]} and CPU Host)...") From 84e50ca495a57a8e264646bf33021f0b18aba2fd Mon Sep 17 00:00:00 2001 From: Ralf Juengling Date: Thu, 19 Nov 2026 07:54:32 -0800 Subject: [PATCH 66/85] test(cuda.core): keep graph-pool tests off the device default pool (#3496) test(cuda.core): keep graph-pool tests off the device default pool The device default pool and the graph memory pool each reserve about twice the device memory of virtual address space for the life of the process, and neither can be capped. A test that touches both can exceed a small address space on a large-memory GPU. test_graph_alloc and the object-protocol buffer fixtures now allocate from a capped pool (max_size=POOL_SIZE) that they release with context managers. cuda_core/tests/AGENTS.md documents this exception to the rule against adding max_size to a no-options call. --- cuda_core/tests/AGENTS.md | 12 +++ .../tests/graph/test_graph_memory_resource.py | 97 ++++++++++--------- cuda_core/tests/test_object_protocols.py | 27 +++++- 3 files changed, 85 insertions(+), 51 deletions(-) diff --git a/cuda_core/tests/AGENTS.md b/cuda_core/tests/AGENTS.md index 732ad1baad51..991b697a6a09 100644 --- a/cuda_core/tests/AGENTS.md +++ b/cuda_core/tests/AGENTS.md @@ -43,6 +43,18 @@ DeviceMemoryResource(dev, {"ipc_enabled": True}) # NEW uncapped pool, expensive Do not add `max_size` to a call that currently passes no options: that converts a free default-pool wrapper into a new pool and makes things worse. +### Exception: tests that also use the graph memory pool + +The device default pool and the graph memory pool (used by `GraphMemoryResource` +and graph allocation nodes) each reserve about twice the device memory of +virtual address space for the lifetime of the process, and neither can be +capped. A single test that touches both needs both reservations at once, which +can exceed a small address space on a large-memory GPU. In such a test, prefer +a capped owned pool (`max_size=POOL_SIZE`) over the default-pool wrapper, and +release it at the end of the test. The capped pool's reservation is small and +returned on `close()`. Examples: `test_graph_alloc` and the `sample_buffer` +fixtures in `test_object_protocols.py`. + ### Managed pools are exempt `cuMemPoolCreate` requires `CUmemPoolProps.maxSize` to be zero for managed diff --git a/cuda_core/tests/graph/test_graph_memory_resource.py b/cuda_core/tests/graph/test_graph_memory_resource.py index faf56c061a33..31ec6fafe39d 100644 --- a/cuda_core/tests/graph/test_graph_memory_resource.py +++ b/cuda_core/tests/graph/test_graph_memory_resource.py @@ -5,14 +5,17 @@ """Tests for GraphMemoryResource allocation and attributes during graph capture.""" import threading +from contextlib import closing import pytest from helpers.buffers import compare_buffer_to_constant, make_scratch_buffer, set_buffer, thread_unsafe_on_windows +from helpers.constants import POOL_SIZE from cuda.bindings import driver from cuda.core import ( Device, DeviceMemoryResource, + DeviceMemoryResourceOptions, GraphMemoryResource, LaunchConfig, Program, @@ -101,60 +104,60 @@ def test_graph_alloc(mempool_device, mode, action): NBYTES = 64 device = mempool_device stream = device.create_stream() - dmr = DeviceMemoryResource(device) + # A capped pool rather than the device default pool: together with the + # graph memory pool, the two permanent reservations of about twice the + # device memory each can exceed a small virtual address space. + dmr = DeviceMemoryResource(device, DeviceMemoryResourceOptions(max_size=POOL_SIZE)) gmr = GraphMemoryResource(device) - out = dmr.allocate(NBYTES, stream=stream) - - # Get kernels and define the calling sequence. - mod = _common_kernels_alloc() - set_zero = mod.get_kernel("set_zero") - add_one = mod.get_kernel("add_one") - - # Initialize out to zero. - config = LaunchConfig(grid=1, block=1) - launch(stream, config, set_zero, out, NBYTES) - - if action == "incr": - # Increments out by 3 - def apply_kernels(mr, stream, out): - buffer = mr.allocate(NBYTES, stream=stream) - buffer.copy_from(out, stream=stream) - for kernel in [add_one, add_one, add_one]: - launch(stream, config, kernel, buffer, NBYTES) - out.copy_from(buffer, stream=stream) - buffer.close() - elif action == "fill": - # Fills out with 3 - def apply_kernels(mr, stream, out): - buffer = mr.allocate(NBYTES, stream=stream) - buffer.fill(3, stream=stream) - out.copy_from(buffer, stream=stream) - buffer.close() - - # Apply kernels, with or without graph capture. - if mode == "no_graph": - # Do work without graph capture. - apply_kernels(mr=dmr, stream=stream, out=out) - stream.sync() - assert compare_buffer_to_constant(out, 3) - else: - # Capture work, then upload and launch. - gb = stream.create_graph_builder().begin_building(mode) - apply_kernels(mr=gmr, stream=gb, out=out) - graph = gb.end_building().complete() + with closing(dmr), dmr.allocate(NBYTES, stream=stream) as out: + # Get kernels and define the calling sequence. + mod = _common_kernels_alloc() + set_zero = mod.get_kernel("set_zero") + add_one = mod.get_kernel("add_one") - # First launch. - graph.upload(stream) - graph.launch(stream) - stream.sync() - assert compare_buffer_to_constant(out, 3) + # Initialize out to zero. + config = LaunchConfig(grid=1, block=1) + launch(stream, config, set_zero, out, NBYTES) - # Second launch. if action == "incr": + # Increments out by 3 + def apply_kernels(mr, stream, out): + with mr.allocate(NBYTES, stream=stream) as buffer: + buffer.copy_from(out, stream=stream) + for kernel in [add_one, add_one, add_one]: + launch(stream, config, kernel, buffer, NBYTES) + out.copy_from(buffer, stream=stream) + elif action == "fill": + # Fills out with 3 + def apply_kernels(mr, stream, out): + with mr.allocate(NBYTES, stream=stream) as buffer: + buffer.fill(3, stream=stream) + out.copy_from(buffer, stream=stream) + + # Apply kernels, with or without graph capture. + if mode == "no_graph": + # Do work without graph capture. + apply_kernels(mr=dmr, stream=stream, out=out) + stream.sync() + assert compare_buffer_to_constant(out, 3) + else: + # Capture work, then upload and launch. + gb = stream.create_graph_builder().begin_building(mode) + apply_kernels(mr=gmr, stream=gb, out=out) + graph = gb.end_building().complete() + + # First launch. graph.upload(stream) graph.launch(stream) stream.sync() - assert compare_buffer_to_constant(out, 6) + assert compare_buffer_to_constant(out, 3) + + # Second launch. + if action == "incr": + graph.upload(stream) + graph.launch(stream) + stream.sync() + assert compare_buffer_to_constant(out, 6) @pytest.mark.skipif(IS_WINDOWS or IS_WSL, reason="auto_free_on_launch not supported on Windows") diff --git a/cuda_core/tests/test_object_protocols.py b/cuda_core/tests/test_object_protocols.py index 1e1e410f807d..e48bc15a4a63 100644 --- a/cuda_core/tests/test_object_protocols.py +++ b/cuda_core/tests/test_object_protocols.py @@ -62,9 +62,27 @@ def sample_context(sample_device): @pytest.fixture -def sample_buffer(sample_device): +def sample_memory_resource(sample_device): + """A capped device pool, or the device's resource where pools are unsupported. + + The device default pool is avoided so that samples combining a Buffer with + an AllocNode do not reserve both the default and the graph memory pool, + which together can exceed a small virtual address space. + """ + if not sample_device.properties.memory_pools_supported: + yield sample_device.memory_resource + return + mr = DeviceMemoryResource(sample_device, DeviceMemoryResourceOptions(max_size=POOL_SIZE)) + yield mr + mr.close() + sample_device.sync() + + +@pytest.fixture +def sample_buffer(sample_device, sample_memory_resource): """A sample Buffer object.""" - return sample_device.allocate(64, stream=sample_device.default_stream) + with sample_memory_resource.allocate(64, stream=sample_device.default_stream) as buffer: + yield buffer @pytest.fixture @@ -191,9 +209,10 @@ def sample_context_alt(sample_device_alt): @pytest.fixture -def sample_buffer_alt(sample_device): +def sample_buffer_alt(sample_device, sample_memory_resource): """An alternate Buffer object.""" - return sample_device.allocate(1024, stream=sample_device.default_stream) + with sample_memory_resource.allocate(1024, stream=sample_device.default_stream) as buffer: + yield buffer @pytest.fixture From f38e8b22b3eb8f3444461f6b62f5eca61ffdd1ca Mon Sep 17 00:00:00 2001 From: Ralf Juengling Date: Thu, 19 Nov 2026 11:06:55 -0800 Subject: [PATCH 67/85] test(cuda.core): close managed pools before creating the next one (#3500) test(cuda.core): keep graph-pool tests off the device default pool The device default pool and the graph memory pool each reserve about twice the device memory of virtual address space for the life of the process, and neither can be capped. A test that touches both can exceed a small address space on a large-memory GPU. test_graph_alloc and the object-protocol buffer fixtures now allocate from a capped pool (max_size=POOL_SIZE) that they release with context managers. cuda_core/tests/AGENTS.md documents this exception to the rule against adding max_size to a no-options call. --- cuda_core/tests/helpers/memory.py | 28 ++-- cuda_core/tests/test_memory.py | 226 +++++++++++++++-------------- cuda_core/tests/test_tensor_map.py | 45 +++--- 3 files changed, 160 insertions(+), 139 deletions(-) diff --git a/cuda_core/tests/helpers/memory.py b/cuda_core/tests/helpers/memory.py index 77a879189a97..8797584bda8b 100644 --- a/cuda_core/tests/helpers/memory.py +++ b/cuda_core/tests/helpers/memory.py @@ -5,7 +5,7 @@ import pytest -from cuda.core import Device, DeviceMemoryResource, ManagedMemoryResource, PinnedMemoryResource +from cuda.core import Device, DeviceMemoryResource, ManagedMemoryResource, PinnedMemoryResource, _build_info from cuda.core._utils.cuda_utils import CUDAError from cuda_python_test_helpers import IS_WINDOWS @@ -32,9 +32,11 @@ def skip_if_mempool_unsupported(device=None): def skip_if_managed_mempool_unsupported(device=None): """Skip unless ``device`` (default: device 0) supports managed memory pools. - This is a property check only. Unlike ``skip_if_managed_memory_unsupported`` - it never constructs a ``ManagedMemoryResource``, so it is also usable by - tests that allocate managed memory through graph nodes. + This is a property check only; it never constructs a ``ManagedMemoryResource``. + It does not check the CUDA major version of the ``cuda.core`` build, so it is + also usable by tests that allocate managed memory through graph nodes. Use + ``skip_if_managed_memory_unsupported`` for tests that construct a + ``ManagedMemoryResource``. """ if device is None: device = Device(0) @@ -57,17 +59,15 @@ def skip_if_pinned_memory_unsupported(device): def skip_if_managed_memory_unsupported(device): - try: - if not device.properties.memory_pools_supported or not device.properties.concurrent_managed_access: - pytest.skip("Device does not support managed memory pool operations") - except AttributeError: + """Skip unless ``device`` supports managed memory pools and this build provides ``ManagedMemoryResource``. + + This never constructs a ``ManagedMemoryResource``: looking up the device's + default managed pool reserves virtual address space for the lifetime of the + process. + """ + skip_if_managed_mempool_unsupported(device) + if _build_info.CUDA_MAJOR < 13: pytest.skip("ManagedMemoryResource requires CUDA 13.0 or later") - try: - ManagedMemoryResource() - except RuntimeError as e: - if "requires CUDA 13.0" in str(e): - pytest.skip("ManagedMemoryResource requires CUDA 13.0 or later") - raise def create_managed_memory_resource_or_skip(*args, xfail_device=None, **kwargs): diff --git a/cuda_core/tests/test_memory.py b/cuda_core/tests/test_memory.py index 93a2a5f42112..1cd1bed99024 100644 --- a/cuda_core/tests/test_memory.py +++ b/cuda_core/tests/test_memory.py @@ -9,6 +9,7 @@ import textwrap import threading import warnings +from contextlib import closing from cuda.bindings import driver @@ -39,6 +40,7 @@ create_managed_memory_resource_or_skip, create_pinned_memory_resource_or_xfail, skip_if_managed_memory_unsupported, + skip_if_managed_mempool_unsupported, skip_if_pinned_memory_unsupported, ) from helpers.nanosleep_kernel import NanosleepKernel @@ -1145,16 +1147,19 @@ def test_managed_memory_resource_buffer_dlpack_device_type(init_cuda): make_tma_descriptor) accept the buffer. """ device = init_cuda - skip_if_managed_memory_unsupported(device) - mr = create_managed_memory_resource_or_skip(ManagedMemoryResourceOptions(preferred_location=device.device_id)) - buf = mr.allocate(1024, stream=device.default_stream) + skip_if_managed_mempool_unsupported(device) + options = ManagedMemoryResourceOptions(preferred_location=device.device_id) + with closing(create_managed_memory_resource_or_skip(options)) as mr: + buf = mr.allocate(1024, stream=device.default_stream) - assert mr.is_managed - assert buf.is_managed - assert buf.__dlpack_device__() == (DLDeviceType.kDLCUDAManaged, 0) + assert mr.is_managed + assert buf.is_managed + assert buf.__dlpack_device__() == (DLDeviceType.kDLCUDAManaged, 0) - view = StridedMemoryView.from_any_interface(buf, stream_ptr=-1) - assert view.__dlpack_device__() == (int(DLDeviceType.kDLCUDAManaged), 0) + view = StridedMemoryView.from_any_interface(buf, stream_ptr=-1) + assert view.__dlpack_device__() == (int(DLDeviceType.kDLCUDAManaged), 0) + buf.close() + device.sync() @pytest.mark.agent_authored(model="claude-opus-5-5") @@ -2451,49 +2456,49 @@ def test_pinned_memory_resource_with_options(init_cuda): def test_managed_memory_resource_with_options(init_cuda): device = Device() - skip_if_managed_memory_unsupported(device) + skip_if_managed_mempool_unsupported(device) device.set_current() # Test basic pool creation options = ManagedMemoryResourceOptions() - mr = create_managed_memory_resource_or_skip(options) - assert mr.is_device_accessible - assert mr.is_host_accessible - assert not mr.is_ipc_enabled - - # Test allocation and deallocation - buffer1 = mr.allocate(1024, stream=device.default_stream) - assert buffer1.handle != 0 - assert buffer1.size == 1024 - assert buffer1.memory_resource == mr - buffer1.close() - - # Test multiple allocations - buffer1 = mr.allocate(1024, stream=device.default_stream) - buffer2 = mr.allocate(2048, stream=device.default_stream) - assert buffer1.handle != buffer2.handle - assert buffer1.size == 1024 - assert buffer2.size == 2048 - buffer1.close() - buffer2.close() - - # Test stream-based allocation - stream = device.create_stream() - buffer = mr.allocate(1024, stream=stream) - assert buffer.handle != 0 - buffer.close(stream) + with closing(create_managed_memory_resource_or_skip(options)) as mr: + assert mr.is_device_accessible + assert mr.is_host_accessible + assert not mr.is_ipc_enabled - # Test memory copying between buffers from same pool - stream = device.create_stream() - src_buffer = mr.allocate(64, stream=stream) - dst_buffer = mr.allocate(64, stream=stream) - src_buffer.copy_to(dst_buffer, stream=stream) - device.sync() - dst_buffer.close() - src_buffer.close() - # TODO(seberg): 2026-06: mr close may be unsafe with incomplete `buf.close()` - device.sync() + # Test allocation and deallocation + buffer1 = mr.allocate(1024, stream=device.default_stream) + assert buffer1.handle != 0 + assert buffer1.size == 1024 + assert buffer1.memory_resource == mr + buffer1.close() + + # Test multiple allocations + buffer1 = mr.allocate(1024, stream=device.default_stream) + buffer2 = mr.allocate(2048, stream=device.default_stream) + assert buffer1.handle != buffer2.handle + assert buffer1.size == 1024 + assert buffer2.size == 2048 + buffer1.close() + buffer2.close() + + # Test stream-based allocation + stream = device.create_stream() + buffer = mr.allocate(1024, stream=stream) + assert buffer.handle != 0 + buffer.close(stream) + + # Test memory copying between buffers from same pool + stream = device.create_stream() + src_buffer = mr.allocate(64, stream=stream) + dst_buffer = mr.allocate(64, stream=stream) + src_buffer.copy_to(dst_buffer, stream=stream) + device.sync() + dst_buffer.close() + src_buffer.close() + # TODO(seberg): 2026-06: mr close may be unsafe with incomplete `buf.close()` + device.sync() def test_managed_memory_resource_preferred_location_default(init_cuda): @@ -2509,44 +2514,44 @@ def test_managed_memory_resource_preferred_location_default(init_cuda): def test_managed_memory_resource_preferred_location_device(init_cuda): """preferred_location returns ("device", ordinal) for device preference.""" device = Device() - skip_if_managed_memory_unsupported(device) + skip_if_managed_mempool_unsupported(device) device.set_current() # Legacy style opts = ManagedMemoryResourceOptions(preferred_location=device.device_id) - mr = create_managed_memory_resource_or_skip(opts) - assert mr.preferred_location == ("device", device.device_id) + with closing(create_managed_memory_resource_or_skip(opts)) as mr: + assert mr.preferred_location == ("device", device.device_id) # Explicit style opts = ManagedMemoryResourceOptions( preferred_location=device.device_id, preferred_location_type=ManagedMemoryLocationType.DEVICE, ) - mr = create_managed_memory_resource_or_skip(opts) - assert mr.preferred_location == ("device", device.device_id) + with closing(create_managed_memory_resource_or_skip(opts)) as mr: + assert mr.preferred_location == ("device", device.device_id) def test_managed_memory_resource_preferred_location_host(init_cuda): """preferred_location returns ("host", None) for host preference.""" device = Device() - skip_if_managed_memory_unsupported(device) + skip_if_managed_mempool_unsupported(device) device.set_current() # Legacy style opts = ManagedMemoryResourceOptions(preferred_location=-1) - mr = create_managed_memory_resource_or_skip(opts) - assert mr.preferred_location == ("host", None) + with closing(create_managed_memory_resource_or_skip(opts)) as mr: + assert mr.preferred_location == ("host", None) # Explicit style opts = ManagedMemoryResourceOptions(preferred_location_type="host") - mr = create_managed_memory_resource_or_skip(opts) - assert mr.preferred_location == ("host", None) + with closing(create_managed_memory_resource_or_skip(opts)) as mr: + assert mr.preferred_location == ("host", None) def test_managed_memory_resource_preferred_location_host_numa(init_cuda): """preferred_location returns ("host_numa", id) for NUMA preference.""" device = Device() - skip_if_managed_memory_unsupported(device) + skip_if_managed_mempool_unsupported(device) device.set_current() numa_id = device.properties.host_numa_id @@ -2555,16 +2560,16 @@ def test_managed_memory_resource_preferred_location_host_numa(init_cuda): # Auto-resolved from current device opts = ManagedMemoryResourceOptions(preferred_location_type="host_numa") - mr = create_managed_memory_resource_or_skip(opts) - assert mr.preferred_location == ("host_numa", numa_id) + with closing(create_managed_memory_resource_or_skip(opts)) as mr: + assert mr.preferred_location == ("host_numa", numa_id) # Explicit NUMA node ID opts = ManagedMemoryResourceOptions( preferred_location=numa_id, preferred_location_type="host_numa", ) - mr = create_managed_memory_resource_or_skip(opts) - assert mr.preferred_location == ("host_numa", numa_id) + with closing(create_managed_memory_resource_or_skip(opts)) as mr: + assert mr.preferred_location == ("host_numa", numa_id) def test_managed_memory_resource_preferred_location_validation(init_cuda): @@ -2846,7 +2851,7 @@ def test_mempool_attributes(ipc_enabled, memory_resource_factory, property_name, elif MR is PinnedMemoryResource: skip_if_pinned_memory_unsupported(device) elif MR is ManagedMemoryResource: - skip_if_managed_memory_unsupported(device) + skip_if_managed_mempool_unsupported(device) # ManagedMemoryResource does not support IPC if MR is ManagedMemoryResource and ipc_enabled: @@ -2873,35 +2878,37 @@ def test_mempool_attributes(ipc_enabled, memory_resource_factory, property_name, mr = create_managed_memory_resource_or_skip(options) assert not mr.is_ipc_enabled - # Get the property value - value = getattr(mr.attributes, property_name) - - # Test type - assert isinstance(value, expected_type), f"{property_name} should return {expected_type}, got {type(value)}" - - # Test value constraints - if expected_type is int: - assert value >= 0, f"{property_name} should be non-negative" - - # Test memory usage properties with actual allocations - if property_name in ["reserved_mem_current", "used_mem_current"]: - # Allocate some memory and check if values increase - initial_value = value - buffer = None - try: - buffer = mr.allocate(1024, stream=device.default_stream) - new_value = getattr(mr.attributes, property_name) - assert new_value >= initial_value, f"{property_name} should increase or stay same after allocation" - finally: - if buffer is not None: - buffer.close() - - # Test high watermark properties - if property_name in ["reserved_mem_high", "used_mem_high"]: - # High watermark should never be less than current - current_prop = property_name.replace("_high", "_current") - current_value = getattr(mr.attributes, current_prop) - assert value >= current_value, f"{property_name} should be >= {current_prop}" + with closing(mr): + # Get the property value + value = getattr(mr.attributes, property_name) + + # Test type + assert isinstance(value, expected_type), f"{property_name} should return {expected_type}, got {type(value)}" + + # Test value constraints + if expected_type is int: + assert value >= 0, f"{property_name} should be non-negative" + + # Test memory usage properties with actual allocations + if property_name in ["reserved_mem_current", "used_mem_current"]: + # Allocate some memory and check if values increase + initial_value = value + buffer = None + try: + buffer = mr.allocate(1024, stream=device.default_stream) + new_value = getattr(mr.attributes, property_name) + assert new_value >= initial_value, f"{property_name} should increase or stay same after allocation" + finally: + if buffer is not None: + buffer.close() + + # Test high watermark properties + if property_name in ["reserved_mem_high", "used_mem_high"]: + # High watermark should never be less than current + current_prop = property_name.replace("_high", "_current") + current_value = getattr(mr.attributes, current_prop) + assert value >= current_value, f"{property_name} should be >= {current_prop}" + device.sync() def _create_owned_pool_or_skip(memory_resource_factory, device): @@ -3156,7 +3163,7 @@ def test_mempool_attributes_repr(memory_resource_factory): elif MR is PinnedMemoryResource: skip_if_pinned_memory_unsupported(device) elif MR is ManagedMemoryResource: - skip_if_managed_memory_unsupported(device) + skip_if_managed_mempool_unsupported(device) device.set_current() @@ -3167,16 +3174,18 @@ def test_mempool_attributes_repr(memory_resource_factory): elif MR is ManagedMemoryResource: mr = create_managed_memory_resource_or_skip(options=ManagedMemoryResourceOptions()) - buffer1 = mr.allocate(64, stream=device.default_stream) - buffer2 = mr.allocate(64, stream=device.default_stream) - buffer1.close() - assert re.match( - r".*Attributes\(release_threshold=\d+, reserved_mem_current=\d+, reserved_mem_high=\d+, " - r"reuse_allow_internal_dependencies=(True|False), reuse_allow_opportunistic=(True|False), " - r"reuse_follow_event_dependencies=(True|False), used_mem_current=\d+, used_mem_high=\d+\)", - str(mr.attributes), - ) - buffer2.close() + with closing(mr): + buffer1 = mr.allocate(64, stream=device.default_stream) + buffer2 = mr.allocate(64, stream=device.default_stream) + buffer1.close() + assert re.match( + r".*Attributes\(release_threshold=\d+, reserved_mem_current=\d+, reserved_mem_high=\d+, " + r"reuse_allow_internal_dependencies=(True|False), reuse_allow_opportunistic=(True|False), " + r"reuse_follow_event_dependencies=(True|False), used_mem_current=\d+, used_mem_high=\d+\)", + str(mr.attributes), + ) + buffer2.close() + device.sync() def test_mempool_attributes_ownership(memory_resource_factory): @@ -3272,17 +3281,20 @@ def test_memory_resource_alloc_zero_bytes(init_cuda, memory_resource_factory): skip_if_pinned_memory_unsupported(device) mr = create_pinned_memory_resource_or_xfail(xfail_device=device) elif MR is ManagedMemoryResource: - skip_if_managed_memory_unsupported(device) + skip_if_managed_mempool_unsupported(device) mr = create_managed_memory_resource_or_skip(MROps(preferred_location=device.device_id)) else: assert MR is DeviceMemoryResource mr = MR(device) - buffer = mr.allocate(0, stream=device.default_stream) - device.sync() - assert buffer.handle >= 0 - assert buffer.size == 0 - assert buffer.device_id == mr.device_id + with closing(mr): + buffer = mr.allocate(0, stream=device.default_stream) + device.sync() + assert buffer.handle >= 0 + assert buffer.size == 0 + assert buffer.device_id == mr.device_id + buffer.close() + device.sync() def test_strided_memory_view_not_in_top_level_namespace(): diff --git a/cuda_core/tests/test_tensor_map.py b/cuda_core/tests/test_tensor_map.py index 3f05a2e477bc..78145cddb929 100644 --- a/cuda_core/tests/test_tensor_map.py +++ b/cuda_core/tests/test_tensor_map.py @@ -3,11 +3,12 @@ import gc import weakref +from contextlib import closing import numpy as np import pytest from helpers.contexts import no_current_context, use_context -from helpers.memory import create_managed_memory_resource_or_skip, skip_if_managed_memory_unsupported +from helpers.memory import create_managed_memory_resource_or_skip, skip_if_managed_mempool_unsupported from cuda.core import ( ContextOptions, @@ -523,18 +524,23 @@ def test_replace_address_accepts_managed_buffer_on_nonzero_device(self, init_cud dev1 = Device(1) if not dev1.properties.tensor_map_access_supported: pytest.skip("Device does not support TMA (requires compute capability 9.0+)") - skip_if_managed_memory_unsupported(dev1) + skip_if_managed_mempool_unsupported(dev1) dev1.set_current() - desc = _as_view(dev1.allocate(1024 * 4, stream=dev1.default_stream)).as_tensor_map( - box_dim=(64,), - data_type=TensorMapDataType.FLOAT32, - ) - - mr = create_managed_memory_resource_or_skip(ManagedMemoryResourceOptions(preferred_location=dev1.device_id)) - managed_buf = mr.allocate(1024 * 4, stream=dev1.default_stream) + options = ManagedMemoryResourceOptions(preferred_location=dev1.device_id) + with ( + dev1.allocate(1024 * 4, stream=dev1.default_stream) as buf, + closing(create_managed_memory_resource_or_skip(options)) as mr, + ): + desc = _as_view(buf).as_tensor_map( + box_dim=(64,), + data_type=TensorMapDataType.FLOAT32, + ) + managed_buf = mr.allocate(1024 * 4, stream=dev1.default_stream) - desc.replace_address(managed_buf) + desc.replace_address(managed_buf) + managed_buf.close() + dev1.sync() class TestTensorMapMultiDeviceValidation: @@ -616,17 +622,20 @@ def test_from_tiled_accepts_managed_buffer_on_nonzero_device(self, init_cuda): dev1 = Device(1) if not dev1.properties.tensor_map_access_supported: pytest.skip("Device does not support TMA (requires compute capability 9.0+)") - skip_if_managed_memory_unsupported(dev1) + skip_if_managed_mempool_unsupported(dev1) dev1.set_current() - mr = create_managed_memory_resource_or_skip(ManagedMemoryResourceOptions(preferred_location=dev1.device_id)) - managed_buf = mr.allocate(1024 * 4, stream=dev1.default_stream) + options = ManagedMemoryResourceOptions(preferred_location=dev1.device_id) + with closing(create_managed_memory_resource_or_skip(options)) as mr: + managed_buf = mr.allocate(1024 * 4, stream=dev1.default_stream) - desc = _as_view(managed_buf).as_tensor_map( - box_dim=(64,), - data_type=TensorMapDataType.FLOAT32, - ) - assert desc is not None + desc = _as_view(managed_buf).as_tensor_map( + box_dim=(64,), + data_type=TensorMapDataType.FLOAT32, + ) + assert desc is not None + managed_buf.close() + dev1.sync() class TestTensorMapIm2col: From 5153002b718991d3085e9992bd64c5b8a8b8c02f Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Thu, 19 Nov 2026 12:02:11 -0800 Subject: [PATCH 68/85] Add comprehensive release-note consistency checks and cuda-python 12.9.11 notes (#3498) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: add cuda-python 12.9.11 release notes Signed-off-by: Ralf W. Grosse-Kunstleve * ci: require manual copy-pr-bot approval Signed-off-by: Ralf W. Grosse-Kunstleve * ci: check release-note pairing in both directions Signed-off-by: Ralf W. Grosse-Kunstleve * ci: simplify release-note pairing checks — codex GPT-6 on behalf of Ralf — Enforce pairing from 12.9.11, 13.5.1, and future CUDA major lines instead of maintaining historical exceptions. Use two passes over indexed paths and require metapackage notes to match their major-specific bindings root. Check file existence only, removing blob-size inspection and empty-content checks. Update the documentation and focused regression tests. Validation: 62 tests pass on each of Python 3.11 and 3.15, plus full pre-commit checks. * ci: rename the staged release-note checker — codex GPT-6 on behalf of Ralf — Distinguish Git-index consistency checks from tagged-release validation. * ci: rename the tagged release-note checker — codex GPT-6 on behalf of Ralf — Name the existing tagged-source release validator explicitly. * ci: validate staged release metadata and tagged release notes — codex GPT-6 on behalf of Ralf — Update the renamed checker entry points throughout pre-commit, release workflows, tests, and wheel validation while preserving release CLI outputs. Require staged release notes to have matching documentation selector entries and URLs. Add the missing 12.9.11 bindings and metapackage entries. Check the tagged component's exact notes file at the start of should-skip, before CI setup and builds. Exempt internal alpha/development tags and non-Pathfinder post rebuilds; require public beta/RC/final and Pathfinder post notes. Keep this early check limited to file existence. Validation: 440 CI-tool tests pass on each of Python 3.11 and 3.15; full pre-commit checks pass with every applicable hook enabled. * ci: centralize tag-push release note checks — codex GPT-6 on behalf of Ralf — Move the early tag-push presence check into the stdlib-only --tag-ci mode of check_tagged_release_notes.py. Keep tag routing and alpha/dev/post policy together with the publication preflight, while preserving its existing component checks and version outputs. Limit the early workflow steps to tag pushes and execute the Python CLI in the policy regression tests with site-packages disabled. Validation: 440 CI tooling tests pass on Python 3.11 and 3.15; pre-commit run --all-files passes. * ci: discover shared bindings selector from staged roots — codex GPT-6 on behalf of Ralf — Select the shared documentation version selector from the highest numeric bindings major present in the Git index. Include template-only and development roots, require the selected JSON without falling back to older roots, and remove the hardcoded CUDA 13 owner. Explain the policy in code and CI documentation. Cover maintenance-note routing, staged versus untracked root ownership, and numeric major ordering. Validation: 443 CI tooling tests pass on Python 3.11 and 3.15; the checker runs with site-packages disabled; pre-commit run --all-files passes. * ci: pass indexed release notes explicitly to checks — codex GPT-6 on behalf of Ralf — Build indexed_release_notes once in main and require both consistency checks to consume that inventory. Rename the builder to _build_indexed_release_notes, remove implicit collection fallbacks, and make pairing a pure check of the supplied data. Update test callers to build inventories explicitly after staging changes. A real invocation uses six distinct subprocess commands: two index queries and one read per selector JSON. Validation: 34 focused tests pass on Python 3.11 and 3.15; pre-commit run --all-files passes. * ci: keep unreleased bindings roots on the current docs selector — codex GPT-6 on behalf of Ralf — Select the second bindings root in ascending numeric order, representing the current major after maintenance and before an optional newer unreleased major. Assert that exactly two or three roots are indexed so an unexpected layout fails visibly. Keep selector ownership unchanged when a root for an unreleased major is added on ctk-next, and advance it when the oldest root is retired. Update the policy comment, CI documentation, and lifecycle regressions. Validation: 443 CI tooling tests pass on Python 3.11 and 3.15; all four agreed layouts and unexpected root-count failures pass a smoke check; the 16 selector tests pass after the terminology update; pre-commit run --all-files passes. --------- Signed-off-by: Ralf W. Grosse-Kunstleve --- .github/workflows/ci.yml | 18 ++ .github/workflows/release.yml | 2 +- .pre-commit-config.yaml | 7 + ci/README.md | 61 +++++ ci/tools/check_staged_release_notes.py | 147 +++++++++++++ ...notes.py => check_tagged_release_notes.py} | 60 ++++- .../test_check_release_note_selectors.py | 208 ++++++++++++++++++ .../tests/test_check_staged_release_notes.py | 138 ++++++++++++ ....py => test_check_tagged_release_notes.py} | 2 +- ci/tools/tests/test_ci_tag_release_notes.py | 100 +++++++++ ci/tools/validate_release_wheels.py | 2 +- cuda_bindings_13/docs/nv-versions.json | 4 + cuda_python/docs/nv-versions.json | 4 + .../docs/source/release/12.9.11-notes.rst | 25 +++ 14 files changed, 769 insertions(+), 9 deletions(-) create mode 100644 ci/tools/check_staged_release_notes.py rename ci/tools/{check_release_notes.py => check_tagged_release_notes.py} (76%) create mode 100644 ci/tools/tests/test_check_release_note_selectors.py create mode 100644 ci/tools/tests/test_check_staged_release_notes.py rename ci/tools/tests/{test_check_release_notes.py => test_check_tagged_release_notes.py} (98%) create mode 100644 ci/tools/tests/test_ci_tag_release_notes.py create mode 100644 cuda_python/docs/source/release/12.9.11-notes.rst diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 47bac6fe3263..7a6aaac82e15 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,6 +37,24 @@ jobs: doc-only: ${{ steps.get-should-skip.outputs.doc_only }} base-ref: ${{ steps.get-should-skip.outputs.base_ref }} steps: + - name: Checkout tag source for release notes + if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }} + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + fetch-depth: 1 + filter: blob:none + persist-credentials: false + + - name: Check tagged component release notes exist + if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }} + id: tag-release-notes + shell: bash + env: + RELEASE_TAG: ${{ github.ref_name }} + run: | + python3 -m ci.tools.check_tagged_release_notes \ + --tag-ci --git-tag "$RELEASE_TAG" + - name: Compute whether to skip builds and tests id: get-should-skip env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e7ddb4258812..07d0079eeb5e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -232,7 +232,7 @@ jobs: RELEASE_COMPONENT: ${{ inputs.component }} RELEASE_TAG: ${{ inputs.git-tag }} run: | - python -m ci.tools.check_release_notes \ + python -m ci.tools.check_tagged_release_notes \ --git-tag "$RELEASE_TAG" \ --component "$RELEASE_COMPONENT" \ --repo-root release-source \ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1abfd3ef3dc9..d90a91fda1cc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -56,6 +56,13 @@ repos: files: ^(cuda_core/pyproject\.toml|cuda_core/cuda/core/_bindings_floor\.py|cuda_core/docs/source/.*\.rst|toolshed/check_cuda_core_bindings_floor\.py)$ pass_filenames: false + - id: check-staged-release-notes + name: Check staged release-note pairs and documentation version selectors + entry: python -m ci.tools.check_staged_release_notes + language: python + always_run: true + pass_filenames: false + - id: check-spdx name: Check SPDX Headers entry: python ./toolshed/check_spdx.py diff --git a/ci/README.md b/ci/README.md index 3ec3439128b8..9c971cf9eac1 100644 --- a/ci/README.md +++ b/ci/README.md @@ -317,6 +317,67 @@ No version override or local preview-tag preparation is needed. Follow the [Git-derived version lifecycle](../AGENTS.md#git-derived-version-lifecycle). +## Paired Release Notes + +The `check-staged-release-notes` pre-commit hook runs +`ci/tools/check_staged_release_notes.py` and requires paired notes starting at: + +- CUDA 12: **12.9.11** and later. +- CUDA 13: **13.5.1** and later. +- CUDA major **14 and later**: every release. + +For these releases, every tracked numeric +`cuda_bindings_*/docs/source/release/X.Y.Z-notes.rst` must have a matching +`cuda_python/docs/source/release/X.Y.Z-notes.rst`. It checks Git's +index, so new notes must be staged. Conversely, each numeric `cuda_python` +release note requires a matching note in `cuda_bindings_`, +where `` comes from the release version. For example, `12.9.11` requires +`cuda_bindings_12/docs/source/release/12.9.11-notes.rst`; a note in another +bindings root does not satisfy this check. The files do not need identical contents. +Templates with literal `X` and `Y`, and prerelease filenames, are excluded. + +Earlier releases are ignored in both directions; there is no historical +exception list. The hook runs on every commit, including counterpart deletions, +and during `pre-commit run --all-files`. +The tagged-source checks in the release workflow remain the final validation +before publication. + +The same hook checks documentation version selectors for these bindings and +metapackage releases, Core releases starting at **1.3.2**, and Pathfinder +releases starting at **1.9.2**. Each checked numeric release note must have its +version listed in the package's `docs/nv-versions.json`, with the exact +versioned documentation URL, including the trailing slash. All bindings roots +share the selector in the second root after sorting indexed +`cuda_bindings_` roots in ascending numeric order. Exactly two or three +roots are expected: maintenance, current, and optionally a newer unreleased +major. Both `[12, 13]` and `[12, 13, 14]` therefore use +`cuda_bindings_13/docs/nv-versions.json`. Retiring root 12 leaves `[13, 14]` +and moves ownership to `cuda_bindings_14/docs/nv-versions.json`; stage that +selector and coordinate the build and release routing migration. Discovery +uses all indexed files, including templates, before applying note cutoffs. +The hook does not fall back to another root. Metapackage URLs use +`https://nvidia.github.io/cuda-python//`, while the other components +use their `cuda-bindings`, `cuda-core`, or `cuda-pathfinder` subdirectory. + +The hook uses only the standard library. All four selectors must exist in +Git's index and parse as JSON. The hook reads their staged contents, so +unstaged edits cannot satisfy the check. + +Tag-push CI runs the `--tag-ci` mode of +`ci/tools/check_tagged_release_notes.py` at the start of its `should-skip` job, +before Python setup or builds. This mode uses only the standard library and +checks one exact release-note filename. Bare `v` tags select the matching +bindings major; `cuda-core-v` and `cuda-pathfinder-v` tags select their own +component. Public beta, release-candidate, and final tags require their full +version in the filename. Internal alpha and development tags skip this check. +Post releases require a new note only for Pathfinder. This early check tests +file existence; pairing and selectors belong to the separate staged check. + +The same module provides the publication preflight used by the release +workflow. Publication mode checks the requested component in the tagged +source, retains the existing nonempty-note and post-release policies, and +exports the version for downstream release jobs. + ## Nightly Artifact Sources `ci-nightly.yml` downloads wheels from the latest successful main CI run and diff --git a/ci/tools/check_staged_release_notes.py b/ci/tools/check_staged_release_notes.py new file mode 100644 index 000000000000..8056cb26e09b --- /dev/null +++ b/ci/tools/check_staged_release_notes.py @@ -0,0 +1,147 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +"""Check release-note pairing and documentation version selectors.""" + +from __future__ import annotations + +import json +import re +import subprocess +import sys +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[2] +METAPACKAGE_NOTES = "cuda_python/docs/source/release" +RELEASE_NOTE = re.compile( + r"(cuda_bindings_[^/]+|cuda_python|cuda_core|cuda_pathfinder)" + r"/docs/source/release/([0-9]+\.[0-9]+\.[0-9]+)-notes\.rst" +) +SELECTOR_URLS = { + "cuda_python": "https://nvidia.github.io/cuda-python/", + "cuda_core": "https://nvidia.github.io/cuda-python/cuda-core/", + "cuda_pathfinder": "https://nvidia.github.io/cuda-python/cuda-pathfinder/", + "cuda_bindings": "https://nvidia.github.io/cuda-python/cuda-bindings/", +} + + +def _requires_pairing(version: str) -> bool: + """Enforce pairing starting from releases 12.9.11 and 13.5.1.""" + major, minor, patch = map(int, version.split(".")) + return (major == 12 and (minor, patch) >= (9, 11)) or (major == 13 and (minor, patch) >= (5, 1)) or major >= 14 + + +def _build_indexed_release_notes(repo_root: Path) -> dict[str, tuple[str, str]]: + """Collect the package and version of each release note covered by the checks.""" + listing = subprocess.run( # noqa: S603 + [ # noqa: S607 + "git", + "ls-files", + "-z", + "--", + "cuda_bindings_*/docs/source/release/*-notes.rst", + f"{METAPACKAGE_NOTES}/*-notes.rst", + "cuda_core/docs/source/release/*-notes.rst", + "cuda_pathfinder/docs/source/release/*-notes.rst", + ], + cwd=repo_root, + stdout=subprocess.PIPE, + check=True, + encoding="utf-8", + ).stdout + indexed_release_notes: dict[str, tuple[str, str]] = {} + for path in listing.split("\0"): + if match := RELEASE_NOTE.fullmatch(path): + package, version = match.groups() + if package == "cuda_core": + required = tuple(map(int, version.split("."))) >= (1, 3, 2) + elif package == "cuda_pathfinder": + required = tuple(map(int, version.split("."))) >= (1, 9, 2) + else: + required = _requires_pairing(version) + if required: + indexed_release_notes[path] = package, version + return indexed_release_notes + + +def missing_release_note_pairs(indexed_release_notes: dict[str, tuple[str, str]]) -> list[str]: + """Return missing release-note counterparts in the Git index.""" + missing: set[str] = set() + for package, version in indexed_release_notes.values(): + if package.startswith("cuda_bindings_"): + counterpart = f"{METAPACKAGE_NOTES}/{version}-notes.rst" + if counterpart not in indexed_release_notes: + missing.add(counterpart) + + for package, version in indexed_release_notes.values(): + if package == "cuda_python": + major = int(version.split(".", 1)[0]) + counterpart = f"cuda_bindings_{major}/docs/source/release/{version}-notes.rst" + if counterpart not in indexed_release_notes: + missing.add(counterpart) + return sorted(missing) + + +def _bindings_selector_package(repo_root: Path) -> str: + listing = subprocess.run( + ["git", "ls-files", "-z", "--", "cuda_bindings_*/*"], # noqa: S607 + cwd=repo_root, + stdout=subprocess.PIPE, + check=True, + encoding="utf-8", + ).stdout + packages = {path.split("/", 1)[0] for path in listing.split("\0") if path} + ordered_packages = sorted(packages, key=lambda package: int(package.removeprefix("cuda_bindings_"))) + # Expect roots for maintenance, current, and optionally a newer unreleased major. + # Fail on an unexpected count to avoid silently choosing the wrong selector. + assert len(ordered_packages) in (2, 3), f"Expected two or three bindings roots, found {ordered_packages}" + return ordered_packages[1] + + +def version_selector_errors(repo_root: Path, indexed_release_notes: dict[str, tuple[str, str]]) -> list[str]: + """Require matching versions and documentation URLs in the staged selectors.""" + bindings_selector = _bindings_selector_package(repo_root) + selector_urls = { + bindings_selector if package == "cuda_bindings" else package: url for package, url in SELECTOR_URLS.items() + } + selectors: dict[str, dict[str, str]] = {} + for package in selector_urls: + path = f"{package}/docs/nv-versions.json" + contents = subprocess.run( # noqa: S603 + ["git", "show", f":{path}"], # noqa: S607 + cwd=repo_root, + stdout=subprocess.PIPE, + check=True, + encoding="utf-8", + ).stdout + selectors[package] = {entry["version"]: entry["url"] for entry in json.loads(contents)} + + errors = [] + for note, (package, version) in sorted(indexed_release_notes.items()): + selector_package = bindings_selector if package.startswith("cuda_bindings_") else package + path = f"{selector_package}/docs/nv-versions.json" + entries = selectors[selector_package] + expected_url = f"{selector_urls[selector_package]}{version}/" + if version not in entries: + errors.append(f"{path}: missing version {version} (required by {note})") + elif entries[version] != expected_url: + errors.append(f"{path}: version {version} URL is {entries[version]!r}; expected {expected_url!r} ({note})") + return errors + + +def main() -> int: + """Report missing release-note pairs and incorrect staged version selectors.""" + indexed_release_notes = _build_indexed_release_notes(ROOT) + errors = missing_release_note_pairs(indexed_release_notes) + version_selector_errors(ROOT, indexed_release_notes) + if not errors: + return 0 + + print("Release-note checks failed in the Git index:", file=sys.stderr) + for error in errors: + print(f" - {error}", file=sys.stderr) + print("Add and stage matching release notes and documentation version entries.", file=sys.stderr) + return 1 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/ci/tools/check_release_notes.py b/ci/tools/check_tagged_release_notes.py similarity index 76% rename from ci/tools/check_release_notes.py rename to ci/tools/check_tagged_release_notes.py index 73e3ebf29c9d..d666cb24d51d 100644 --- a/ci/tools/check_release_notes.py +++ b/ci/tools/check_tagged_release_notes.py @@ -4,13 +4,18 @@ """Check that versioned release-notes files exist before releasing. Usage: - python -m ci.tools.check_release_notes --git-tag --component + python -m ci.tools.check_tagged_release_notes --git-tag --component + python -m ci.tools.check_tagged_release_notes --tag-ci --git-tag Each normal release requires nonempty notes for its exact version and component in the tagged source checkout. Post releases do not require new notes, except Pathfinder requires a notes file for every release and permits empty files. -Successful checks append the parsed version to GITHUB_OUTPUT when it is set. +The dependency-free --tag-ci mode checks only that the exact component notes file +exists. It skips internal alpha/development tags and, except for Pathfinder, +post releases. It runs before CI sets up Python dependencies. + +Successful publication checks append the parsed version to GITHUB_OUTPUT when it is set. Exit codes: 0 — release-notes policy satisfied @@ -23,13 +28,14 @@ import argparse import json import os +import re import sys from collections.abc import Mapping from pathlib import Path +from typing import TYPE_CHECKING -from packaging.version import Version - -from . import bindings_config +if TYPE_CHECKING: + from packaging.version import Version COMPONENTS: dict[str, tuple[str, str]] = { "cuda-core": ("cuda_core", "cuda-core-v"), @@ -41,6 +47,10 @@ def _resolved_bindings_target(data: Mapping[str, object], git_tag: str) -> tuple[str, Version]: """Read the release resolver fields consumed by this script.""" + from packaging.version import Version + + from . import bindings_config + package_root = bindings_config.parse_package_root(data.get("package_root"), "resolved package_root") raw_version = data.get("release_version") if not isinstance(raw_version, str): @@ -58,6 +68,8 @@ def _release_target_from_tag( bindings_package: Mapping[str, object] | None = None, ) -> tuple[str, str] | None: """Return the release version and source tree selected by a component tag.""" + from . import bindings_config + metadata = COMPONENTS.get(component) if metadata is None: return None @@ -94,6 +106,8 @@ def parse_version_from_tag( def is_post_release(version: str) -> bool: + from packaging.version import Version + return Version(version).post is not None @@ -101,6 +115,34 @@ def notes_path(package: str, version: str) -> Path: return Path(package, "docs", "source", "release", f"{version}-notes.rst") +def _check_tag_ci(git_tag: str, repo_root: Path) -> int: + """Check one notes file for the tag namespaces selected by ci.yml.""" + for package, prefix in (COMPONENTS["cuda-core"], COMPONENTS["cuda-pathfinder"]): + if git_tag.startswith(prefix): + version = git_tag.removeprefix(prefix) + break + else: + version = git_tag.removeprefix("v") + package = f"cuda_bindings_{version.partition('.')[0]}" + + if re.search(r"(?:a|\.dev)\d", version): + print(f"Internal alpha/development tag {git_tag}; no release note required.") + return 0 + if package != "cuda_pathfinder" and re.search(r"\.post\d", version): + print(f"Post-release rebuild {git_tag}; no new release note required.") + return 0 + + path = notes_path(package, version) + if not (repo_root / path).is_file(): + print( + f"::error::Missing release notes for tag {git_tag}: {path}. Add this file before creating the tag.", + file=sys.stderr, + ) + return 1 + print(f"Found release notes for {git_tag}: {path}") + return 0 + + def _check_release_target(version: str, package: str, component: str, repo_root: Path) -> list[tuple[str | Path, str]]: if is_post_release(version) and component != "cuda-pathfinder": return [] @@ -148,7 +190,8 @@ def check_release_notes( def main(argv: list[str] | None = None) -> int: parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("--git-tag", required=True) - parser.add_argument("--component", required=True, choices=list(COMPONENTS)) + parser.add_argument("--component", choices=list(COMPONENTS), help="required unless --tag-ci is used") + parser.add_argument("--tag-ci", action="store_true", help="check only file existence for a CI tag push") parser.add_argument( "--repo-root", default=Path("."), @@ -162,6 +205,11 @@ def main(argv: list[str] | None = None) -> int: ) args = parser.parse_args(argv) + if args.tag_ci: + return _check_tag_ci(args.git_tag, args.repo_root) + if args.component is None: + parser.error("--component is required unless --tag-ci is used") + try: bindings_package = json.loads(args.bindings_package) if args.bindings_package else None if bindings_package is not None and not isinstance(bindings_package, dict): diff --git a/ci/tools/tests/test_check_release_note_selectors.py b/ci/tools/tests/test_check_release_note_selectors.py new file mode 100644 index 000000000000..baafa6253119 --- /dev/null +++ b/ci/tools/tests/test_check_release_note_selectors.py @@ -0,0 +1,208 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +from __future__ import annotations + +import json +import subprocess +from pathlib import Path + +import pytest + +from ci.tools.check_staged_release_notes import ( + _build_indexed_release_notes, + version_selector_errors, +) + +SELECTORS = ( + "cuda_python/docs/nv-versions.json", + "cuda_bindings_13/docs/nv-versions.json", + "cuda_core/docs/nv-versions.json", + "cuda_pathfinder/docs/nv-versions.json", +) + + +def git(repo: Path, *args: str) -> None: + subprocess.run( # noqa: S603 + ["git", "-C", str(repo), *args], # noqa: S607 + capture_output=True, + check=True, + ) + + +def stage_file(repo: Path, relative: str, contents: str) -> str: + path = repo / relative + path.parent.mkdir(parents=True, exist_ok=True) + path.write_text(contents, encoding="utf-8") + git(repo, "add", relative) + return relative + + +@pytest.fixture +def repo(tmp_path): + git(tmp_path, "init", "-q") + stage_file(tmp_path, "cuda_bindings_12/README.md", "Maintenance bindings root.\n") + for selector in SELECTORS: + stage_file(tmp_path, selector, "[]\n") + return tmp_path + + +@pytest.mark.parametrize( + "package,version,selector,url", + [ + ( + "cuda_bindings_12", + "12.9.11", + "cuda_bindings_13/docs/nv-versions.json", + "https://nvidia.github.io/cuda-python/cuda-bindings/12.9.11/", + ), + ( + "cuda_bindings_13", + "13.5.1", + "cuda_bindings_13/docs/nv-versions.json", + "https://nvidia.github.io/cuda-python/cuda-bindings/13.5.1/", + ), + ( + "cuda_python", + "12.9.11", + "cuda_python/docs/nv-versions.json", + "https://nvidia.github.io/cuda-python/12.9.11/", + ), + ( + "cuda_core", + "1.3.2", + "cuda_core/docs/nv-versions.json", + "https://nvidia.github.io/cuda-python/cuda-core/1.3.2/", + ), + ( + "cuda_pathfinder", + "1.9.2", + "cuda_pathfinder/docs/nv-versions.json", + "https://nvidia.github.io/cuda-python/cuda-pathfinder/1.9.2/", + ), + ], +) +@pytest.mark.agent_authored(model="gpt-6") +def test_release_notes_require_their_version_and_exact_url_in_the_correct_selector( + repo, package, version, selector, url +): + note = stage_file(repo, f"{package}/docs/source/release/{version}-notes.rst", "Release notes.\n") + + for entries in ([], [{"version": version, "url": url.removesuffix("/")}]): + stage_file(repo, selector, json.dumps(entries)) + errors = version_selector_errors(repo, _build_indexed_release_notes(repo)) + assert len(errors) == 1 + assert all(value in errors[0] for value in (note, version, selector)) + + stage_file(repo, selector, json.dumps([{"version": version, "url": url}])) + assert version_selector_errors(repo, _build_indexed_release_notes(repo)) == [] + + +@pytest.mark.parametrize( + "package,version", + [ + ("cuda_bindings_12", "12.9.10"), + ("cuda_bindings_13", "13.5.0"), + ("cuda_python", "12.9.10"), + ("cuda_python", "13.5.0"), + ("cuda_core", "1.3.1"), + ("cuda_pathfinder", "1.9.1"), + ], +) +@pytest.mark.agent_authored(model="gpt-6") +def test_pre_policy_release_notes_do_not_require_selector_entries(repo, package, version): + stage_file(repo, f"{package}/docs/source/release/{version}-notes.rst", "Release notes.\n") + + assert version_selector_errors(repo, _build_indexed_release_notes(repo)) == [] + + +@pytest.mark.agent_authored(model="gpt-6") +def test_unstaged_json_correction_does_not_replace_the_staged_selector(repo): + selector = "cuda_core/docs/nv-versions.json" + stage_file(repo, "cuda_core/docs/source/release/1.3.2-notes.rst", "Release notes.\n") + stage_file( + repo, + selector, + json.dumps([{"version": "1.3.2", "url": "https://nvidia.github.io/cuda-python/cuda-core/latest/"}]), + ) + staged_errors = version_selector_errors(repo, _build_indexed_release_notes(repo)) + assert len(staged_errors) == 1 + (repo / selector).write_text( + json.dumps([{"version": "1.3.2", "url": "https://nvidia.github.io/cuda-python/cuda-core/1.3.2/"}]), + encoding="utf-8", + ) + + assert version_selector_errors(repo, _build_indexed_release_notes(repo)) == staged_errors + + git(repo, "add", selector) + assert version_selector_errors(repo, _build_indexed_release_notes(repo)) == [] + + +@pytest.mark.agent_authored(model="gpt-6") +def test_staged_selector_deletion_fails_even_without_release_notes(repo): + selector = "cuda_core/docs/nv-versions.json" + git(repo, "rm", "--cached", selector) + assert (repo / selector).is_file() + + with pytest.raises(subprocess.CalledProcessError): + version_selector_errors(repo, _build_indexed_release_notes(repo)) + + +@pytest.mark.agent_authored(model="GPT-6") +def test_unreleased_bindings_root_keeps_the_current_selector_for_maintenance_notes(repo): + entries = [{"version": "13.5.1", "url": "https://nvidia.github.io/cuda-python/cuda-bindings/13.5.1/"}] + stage_file(repo, "cuda_bindings_13/docs/source/release/13.5.1-notes.rst", "Release notes.\n") + stage_file(repo, "cuda_bindings_13/docs/nv-versions.json", json.dumps(entries)) + stage_file(repo, "cuda_bindings_14/docs/source/release/14.X.Y-notes.rst", "Future release template.\n") + + assert version_selector_errors(repo, _build_indexed_release_notes(repo)) == [] + + selector = "cuda_bindings_13/docs/nv-versions.json" + note = stage_file(repo, "cuda_bindings_12/docs/source/release/12.9.11-notes.rst", "Release notes.\n") + errors = version_selector_errors(repo, _build_indexed_release_notes(repo)) + assert len(errors) == 1 + assert all(value in errors[0] for value in (note, "12.9.11", selector)) + + entries.append({"version": "12.9.11", "url": "https://nvidia.github.io/cuda-python/cuda-bindings/12.9.11/"}) + stage_file(repo, selector, json.dumps(entries)) + assert version_selector_errors(repo, _build_indexed_release_notes(repo)) == [] + + +@pytest.mark.agent_authored(model="GPT-6") +def test_retiring_the_oldest_staged_bindings_root_advances_selector_ownership(repo): + entries = [{"version": "13.5.1", "url": "https://nvidia.github.io/cuda-python/cuda-bindings/13.5.1/"}] + note = stage_file(repo, "cuda_bindings_13/docs/source/release/13.5.1-notes.rst", "Release notes.\n") + stage_file(repo, "cuda_bindings_13/docs/nv-versions.json", json.dumps(entries)) + stage_file(repo, "cuda_bindings_14/docs/source/release/14.X.Y-notes.rst", "Future release template.\n") + assert version_selector_errors(repo, _build_indexed_release_notes(repo)) == [] + + git(repo, "rm", "--cached", "-r", "cuda_bindings_12") + assert (repo / "cuda_bindings_12/README.md").is_file() + with pytest.raises(subprocess.CalledProcessError): + version_selector_errors(repo, _build_indexed_release_notes(repo)) + + selector = "cuda_bindings_14/docs/nv-versions.json" + stage_file(repo, selector, "[]\n") + errors = version_selector_errors(repo, _build_indexed_release_notes(repo)) + assert len(errors) == 1 + assert all(value in errors[0] for value in (note, "13.5.1", selector)) + + stage_file(repo, selector, json.dumps(entries)) + assert version_selector_errors(repo, _build_indexed_release_notes(repo)) == [] + + +@pytest.mark.agent_authored(model="GPT-6") +def test_canonical_bindings_root_uses_numeric_major_order(repo): + entries = [{"version": "13.5.1", "url": "https://nvidia.github.io/cuda-python/cuda-bindings/13.5.1/"}] + stage_file(repo, "cuda_bindings_9/README.md", "Older bindings root.\n") + note = stage_file(repo, "cuda_bindings_13/docs/source/release/13.5.1-notes.rst", "Release notes.\n") + stage_file(repo, "cuda_bindings_13/docs/nv-versions.json", json.dumps(entries)) + selector = "cuda_bindings_12/docs/nv-versions.json" + stage_file(repo, selector, "[]\n") + + errors = version_selector_errors(repo, _build_indexed_release_notes(repo)) + assert len(errors) == 1 + assert all(value in errors[0] for value in (note, "13.5.1", selector)) + + stage_file(repo, selector, json.dumps(entries)) + assert version_selector_errors(repo, _build_indexed_release_notes(repo)) == [] diff --git a/ci/tools/tests/test_check_staged_release_notes.py b/ci/tools/tests/test_check_staged_release_notes.py new file mode 100644 index 000000000000..6b338d2e8683 --- /dev/null +++ b/ci/tools/tests/test_check_staged_release_notes.py @@ -0,0 +1,138 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +from __future__ import annotations + +import subprocess +from pathlib import Path + +import pytest + +from ci.tools.check_staged_release_notes import ( + _build_indexed_release_notes, + missing_release_note_pairs, +) + + +def git(repo: Path, *args: str) -> None: + subprocess.run( # noqa: S603 + ["git", "-C", str(repo), *args], # noqa: S607 + capture_output=True, + check=True, + ) + + +@pytest.fixture +def repo(tmp_path): + git(tmp_path, "init", "-q") + return tmp_path + + +def write_note(repo: Path, package: str, version: str) -> str: + relative = f"{package}/docs/source/release/{version}-notes.rst" + path = repo / relative + path.parent.mkdir(parents=True, exist_ok=True) + path.write_text("Release notes.\n", encoding="utf-8") + return relative + + +@pytest.mark.parametrize( + "package,version", + [ + ("cuda_bindings_12", "12.9.11"), + ("cuda_bindings_13", "13.5.1"), + ("cuda_bindings_14", "14.0.0"), + ("cuda_bindings_15", "15.0.0"), + ], +) +@pytest.mark.agent_authored(model="gpt-6") +def test_numeric_notes_require_a_tracked_metapackage_counterpart(repo, package, version): + bindings = write_note(repo, package, version) + git(repo, "add", bindings) + counterpart = f"cuda_python/docs/source/release/{version}-notes.rst" + + assert missing_release_note_pairs(_build_indexed_release_notes(repo)) == [counterpart] + + write_note(repo, "cuda_python", version) + assert missing_release_note_pairs(_build_indexed_release_notes(repo)) == [counterpart] + + git(repo, "add", counterpart) + assert missing_release_note_pairs(_build_indexed_release_notes(repo)) == [] + + +@pytest.mark.parametrize( + "package,version", + [ + ("cuda_bindings_12", "12.9.11"), + ("cuda_bindings_13", "13.5.1"), + ("cuda_bindings_14", "14.0.0"), + ("cuda_bindings_15", "15.0.0"), + ], +) +@pytest.mark.agent_authored(model="gpt-6") +def test_metapackage_notes_require_a_tracked_bindings_counterpart(repo, package, version): + git(repo, "add", write_note(repo, "cuda_python", version)) + expected = f"{package}/docs/source/release/{version}-notes.rst" + + assert missing_release_note_pairs(_build_indexed_release_notes(repo)) == [expected] + + counterpart = write_note(repo, package, version) + assert missing_release_note_pairs(_build_indexed_release_notes(repo)) == [expected] + + git(repo, "add", counterpart) + assert missing_release_note_pairs(_build_indexed_release_notes(repo)) == [] + + +@pytest.mark.agent_authored(model="gpt-6") +def test_templates_and_prerelease_notes_do_not_require_counterparts(repo): + for package, version in [ + ("cuda_bindings_12", "12.X.Y"), + ("cuda_bindings_13", "13.X.Y"), + ("cuda_bindings_13", "13.5.1rc1"), + ("cuda_python", "12.X.Y"), + ("cuda_python", "13.5.1rc1"), + ]: + git(repo, "add", write_note(repo, package, version)) + + assert missing_release_note_pairs(_build_indexed_release_notes(repo)) == [] + + +@pytest.mark.parametrize( + "package,other_package,version", + [ + ("cuda_bindings_12", "cuda_bindings_13", "12.9.11"), + ("cuda_bindings_13", "cuda_bindings_12", "13.5.1"), + ], +) +@pytest.mark.agent_authored(model="gpt-6") +def test_wrong_major_note_does_not_satisfy_the_metapackage_counterpart(repo, package, other_package, version): + git(repo, "add", write_note(repo, "cuda_python", version)) + git(repo, "add", write_note(repo, other_package, version)) + counterpart = f"{package}/docs/source/release/{version}-notes.rst" + + assert missing_release_note_pairs(_build_indexed_release_notes(repo)) == [counterpart] + + write_note(repo, package, version) + assert missing_release_note_pairs(_build_indexed_release_notes(repo)) == [counterpart] + + git(repo, "add", counterpart) + assert missing_release_note_pairs(_build_indexed_release_notes(repo)) == [] + + +@pytest.mark.parametrize("package", ["cuda_bindings_13", "cuda_python"]) +@pytest.mark.parametrize("version", ["11.8.7", "12.9.10", "13.5.0"]) +@pytest.mark.agent_authored(model="gpt-6") +def test_releases_before_the_pairing_policy_do_not_require_counterparts(repo, package, version): + git(repo, "add", write_note(repo, package, version)) + + assert missing_release_note_pairs(_build_indexed_release_notes(repo)) == [] + + +@pytest.mark.agent_authored(model="gpt-6") +def test_staged_counterpart_deletion_is_detected_even_if_the_file_remains(repo): + bindings = write_note(repo, "cuda_bindings_12", "12.9.11") + counterpart = write_note(repo, "cuda_python", "12.9.11") + git(repo, "add", bindings, counterpart) + git(repo, "rm", "--cached", counterpart) + + assert missing_release_note_pairs(_build_indexed_release_notes(repo)) == [counterpart] diff --git a/ci/tools/tests/test_check_release_notes.py b/ci/tools/tests/test_check_tagged_release_notes.py similarity index 98% rename from ci/tools/tests/test_check_release_notes.py rename to ci/tools/tests/test_check_tagged_release_notes.py index 6e476b147dd0..c52187716dc5 100644 --- a/ci/tools/tests/test_check_release_notes.py +++ b/ci/tools/tests/test_check_tagged_release_notes.py @@ -9,7 +9,7 @@ import pytest from ci.tools import bindings_config -from ci.tools.check_release_notes import check_release_notes, main, notes_path, parse_version_from_tag +from ci.tools.check_tagged_release_notes import check_release_notes, main, notes_path, parse_version_from_tag # Bindings tags select a package root through the live registry, so derive the # current CUDA 13 release line from it instead of pinning a toolkit minor. diff --git a/ci/tools/tests/test_ci_tag_release_notes.py b/ci/tools/tests/test_ci_tag_release_notes.py new file mode 100644 index 000000000000..cc9228a304d1 --- /dev/null +++ b/ci/tools/tests/test_ci_tag_release_notes.py @@ -0,0 +1,100 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +import subprocess +import sys +from pathlib import Path + +import pytest + +ROOT = Path(__file__).resolve().parents[3] + + +def run_check(root, tag): + return subprocess.run( # noqa: S603 - execute the checked-in CLI against a disposable fixture. + [ + sys.executable, + "-S", + "-m", + "ci.tools.check_tagged_release_notes", + "--tag-ci", + "--git-tag", + tag, + "--repo-root", + str(root), + ], + cwd=ROOT, + capture_output=True, + text=True, + timeout=10, + ) + + +def create_note(root, package, version): + note = root / package / "docs/source/release" / f"{version}-notes.rst" + note.parent.mkdir(parents=True, exist_ok=True) + note.touch() + return note + + +@pytest.mark.parametrize( + "tag,package,version", + [ + ("v12.9.11", "cuda_bindings_12", "12.9.11"), + ("v13.5.1", "cuda_bindings_13", "13.5.1"), + ("cuda-core-v1.3.2", "cuda_core", "1.3.2"), + ("cuda-pathfinder-v1.9.2", "cuda_pathfinder", "1.9.2"), + ], +) +@pytest.mark.agent_authored(model="GPT-6") +def test_public_tag_requires_only_its_own_release_note(tmp_path, tag, package, version): + result = run_check(tmp_path, tag) + assert result.returncode != 0 + + create_note(tmp_path, package, version) + result = run_check(tmp_path, tag) + assert result.returncode == 0, result.stdout + result.stderr + + +@pytest.mark.agent_authored(model="GPT-6") +def test_release_note_under_the_wrong_bindings_root_does_not_satisfy_the_tag(tmp_path): + create_note(tmp_path, "cuda_bindings_13", "12.9.11") + + result = run_check(tmp_path, "v12.9.11") + + assert result.returncode != 0 + + +@pytest.mark.parametrize("tag", ["v12.9.11a0", "v13.5.1a1.dev2", "cuda-pathfinder-v1.9.2.dev3"]) +@pytest.mark.agent_authored(model="GPT-6") +def test_internal_alpha_and_development_tags_do_not_require_notes(tmp_path, tag): + result = run_check(tmp_path, tag) + + assert result.returncode == 0, result.stdout + result.stderr + + +@pytest.mark.parametrize( + "tag,package,base_version,exact_version", + [ + ("v13.5.1b1", "cuda_bindings_13", "13.5.1", "13.5.1b1"), + ("cuda-core-v1.3.2rc1", "cuda_core", "1.3.2", "1.3.2rc1"), + ("cuda-pathfinder-v1.9.2.post1", "cuda_pathfinder", "1.9.2", "1.9.2.post1"), + ], +) +@pytest.mark.agent_authored(model="GPT-6") +def test_public_suffix_tags_require_an_exact_note(tmp_path, tag, package, base_version, exact_version): + create_note(tmp_path, package, base_version) + result = run_check(tmp_path, tag) + assert result.returncode != 0 + + create_note(tmp_path, package, exact_version) + result = run_check(tmp_path, tag) + assert result.returncode == 0, result.stdout + result.stderr + + +@pytest.mark.parametrize("tag", ["v12.9.11.post1", "cuda-core-v1.3.2.post1"]) +@pytest.mark.agent_authored(model="GPT-6") +def test_non_pathfinder_post_tags_do_not_require_notes(tmp_path, tag): + result = run_check(tmp_path, tag) + + assert result.returncode == 0, result.stdout + result.stderr diff --git a/ci/tools/validate_release_wheels.py b/ci/tools/validate_release_wheels.py index 051f562cc75f..2d0280be6b02 100644 --- a/ci/tools/validate_release_wheels.py +++ b/ci/tools/validate_release_wheels.py @@ -20,7 +20,7 @@ from packaging.utils import InvalidWheelFilename, parse_wheel_filename from .bindings_config import wheel_python_versions -from .check_release_notes import COMPONENTS, parse_version_from_tag +from .check_tagged_release_notes import COMPONENTS, parse_version_from_tag _BINARY_DISTRIBUTIONS = frozenset({"cuda_bindings", "cuda_core"}) _VERSIONS_CONFIG = Path("ci/versions.yml") diff --git a/cuda_bindings_13/docs/nv-versions.json b/cuda_bindings_13/docs/nv-versions.json index 487c59cf4e68..10f4e561dbf4 100644 --- a/cuda_bindings_13/docs/nv-versions.json +++ b/cuda_bindings_13/docs/nv-versions.json @@ -55,6 +55,10 @@ "version": "13.0.0", "url": "https://nvidia.github.io/cuda-python/cuda-bindings/13.0.0/" }, + { + "version": "12.9.11", + "url": "https://nvidia.github.io/cuda-python/cuda-bindings/12.9.11/" + }, { "version": "12.9.7", "url": "https://nvidia.github.io/cuda-python/cuda-bindings/12.9.7/" diff --git a/cuda_python/docs/nv-versions.json b/cuda_python/docs/nv-versions.json index c09a80d1aea5..7df18ef14315 100644 --- a/cuda_python/docs/nv-versions.json +++ b/cuda_python/docs/nv-versions.json @@ -51,6 +51,10 @@ "version": "13.0.0", "url": "https://nvidia.github.io/cuda-python/13.0.0/" }, + { + "version": "12.9.11", + "url": "https://nvidia.github.io/cuda-python/12.9.11/" + }, { "version": "12.9.7", "url": "https://nvidia.github.io/cuda-python/12.9.7/" diff --git a/cuda_python/docs/source/release/12.9.11-notes.rst b/cuda_python/docs/source/release/12.9.11-notes.rst new file mode 100644 index 000000000000..6ddcf872e000 --- /dev/null +++ b/cuda_python/docs/source/release/12.9.11-notes.rst @@ -0,0 +1,25 @@ +.. SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +.. SPDX-License-Identifier: Apache-2.0 + +CUDA Python 12.9.11 Release notes +================================= + +Included components +------------------- + +* `cuda.bindings 12.9.11 `_ + includes NVML additions, callback and memory safety fixes, and packaging and + source-build changes. See its release notes for details. + +End of Life +----------- + +* Python 3.10 support dropped (end of life); the supported range is + Python 3.11-3.15. + +Known issues +------------ + +* Updating from v12.6.2.post1 and older via ``pip install -U cuda-python`` might + not work. Uninstall with ``pip uninstall -y cuda-python``, then install the + CUDA 12 line with ``pip install "cuda-python~=12.9.0"``. From fb831f70abed6a701b0550c200f9af3fff14e8f4 Mon Sep 17 00:00:00 2001 From: Ralf Juengling Date: Thu, 19 Nov 2026 12:10:19 -0800 Subject: [PATCH 69/85] test(cuda.core): remove skip_if_managed_memory_unsupported (#3506) * test(cuda.core): remove skip_if_managed_memory_unsupported Tests that create managed pools through create_managed_memory_resource_or_skip use the property-only skip_if_managed_mempool_unsupported; that factory already skips CUDA 12 builds. The two tests that call the ManagedMemoryResource constructor only to check option validation now skip on the build major alone. The DummyUnifiedMemoryResource DLPack test uses the raw managed-allocation guard, moved from test_managed_ops.py into helpers/memory.py as skip_if_managed_allocation_unsupported. * Restore sample images rewritten by a local test run --- cuda_core/tests/AGENTS.md | 3 ++- cuda_core/tests/helpers/memory.py | 26 +++++++++---------- .../memory/test_backward_compatibility.py | 4 +-- cuda_core/tests/memory/test_managed_ops.py | 18 +++---------- cuda_core/tests/test_memory.py | 20 +++++++------- 5 files changed, 29 insertions(+), 42 deletions(-) diff --git a/cuda_core/tests/AGENTS.md b/cuda_core/tests/AGENTS.md index 991b697a6a09..95e9188705af 100644 --- a/cuda_core/tests/AGENTS.md +++ b/cuda_core/tests/AGENTS.md @@ -121,7 +121,8 @@ Follow these rules when adding or moving shared test code: fixture cleanup so a stuck child cannot block IPC resource teardown. - Use the skip guards in `helpers/memory.py` instead of per-module copies: `skip_if_mempool_unsupported`, `skip_if_managed_mempool_unsupported` (a - property check only; it never constructs a managed resource), and + property check only; it never constructs a managed resource), + `skip_if_managed_allocation_unsupported` for raw managed allocations, and `is_pool_resource` to tell pool-backed resources from VMM ones. - Search `tests/helpers/` and `cuda_python_test_helpers/` for prior art before adding a new helper; consolidate duplicates across diff --git a/cuda_core/tests/helpers/memory.py b/cuda_core/tests/helpers/memory.py index 8797584bda8b..0b33a296f521 100644 --- a/cuda_core/tests/helpers/memory.py +++ b/cuda_core/tests/helpers/memory.py @@ -5,7 +5,7 @@ import pytest -from cuda.core import Device, DeviceMemoryResource, ManagedMemoryResource, PinnedMemoryResource, _build_info +from cuda.core import Device, DeviceMemoryResource, ManagedMemoryResource, PinnedMemoryResource from cuda.core._utils.cuda_utils import CUDAError from cuda_python_test_helpers import IS_WINDOWS @@ -32,11 +32,11 @@ def skip_if_mempool_unsupported(device=None): def skip_if_managed_mempool_unsupported(device=None): """Skip unless ``device`` (default: device 0) supports managed memory pools. - This is a property check only; it never constructs a ``ManagedMemoryResource``. - It does not check the CUDA major version of the ``cuda.core`` build, so it is - also usable by tests that allocate managed memory through graph nodes. Use - ``skip_if_managed_memory_unsupported`` for tests that construct a - ``ManagedMemoryResource``. + This is a property check only; it never constructs a ``ManagedMemoryResource``, + because looking up the device's default managed pool reserves virtual address + space for the lifetime of the process. It does not check the CUDA major version + of the ``cuda.core`` build: ``create_managed_memory_resource_or_skip`` skips + builds without ``ManagedMemoryResource``. """ if device is None: device = Device(0) @@ -58,16 +58,14 @@ def skip_if_pinned_memory_unsupported(device): pytest.skip("PinnedMemoryResource requires CUDA 13.0 or later") -def skip_if_managed_memory_unsupported(device): - """Skip unless ``device`` supports managed memory pools and this build provides ``ManagedMemoryResource``. +def skip_if_managed_allocation_unsupported(device): + """Skip unless ``device`` supports raw managed allocations (``cuMemAllocManaged``). - This never constructs a ``ManagedMemoryResource``: looking up the device's - default managed pool reserves virtual address space for the lifetime of the - process. + Unlike ``skip_if_managed_mempool_unsupported``, this does not require managed + memory pools. """ - skip_if_managed_mempool_unsupported(device) - if _build_info.CUDA_MAJOR < 13: - pytest.skip("ManagedMemoryResource requires CUDA 13.0 or later") + if not device.properties.managed_memory: + pytest.skip("Device does not support managed memory operations") def create_managed_memory_resource_or_skip(*args, xfail_device=None, **kwargs): diff --git a/cuda_core/tests/memory/test_backward_compatibility.py b/cuda_core/tests/memory/test_backward_compatibility.py index aedc4c8b1759..8d836ae5d39b 100644 --- a/cuda_core/tests/memory/test_backward_compatibility.py +++ b/cuda_core/tests/memory/test_backward_compatibility.py @@ -8,7 +8,7 @@ from helpers.memory import ( create_managed_memory_resource_or_skip, create_pinned_memory_resource_or_xfail, - skip_if_managed_memory_unsupported, + skip_if_managed_mempool_unsupported, skip_if_pinned_memory_unsupported, ) @@ -41,7 +41,7 @@ def test_pinned_mr_accepts_dict_keyword(init_cuda): @pytest.mark.agent_authored(model="gpt-5.3-codex") def test_managed_mr_accepts_dict_keyword(init_cuda): device = Device() - skip_if_managed_memory_unsupported(device) + skip_if_managed_mempool_unsupported(device) device.set_current() mr = create_managed_memory_resource_or_skip(options={}) buf = mr.allocate(64, stream=device.default_stream) diff --git a/cuda_core/tests/memory/test_managed_ops.py b/cuda_core/tests/memory/test_managed_ops.py index 0500ad57df82..b7623cc4526f 100644 --- a/cuda_core/tests/memory/test_managed_ops.py +++ b/cuda_core/tests/memory/test_managed_ops.py @@ -5,7 +5,7 @@ import pytest from helpers.buffers import DummyDeviceMemoryResource, DummyUnifiedMemoryResource -from helpers.memory import create_managed_memory_resource_or_skip +from helpers.memory import create_managed_memory_resource_or_skip, skip_if_managed_allocation_unsupported from cuda.core import Device, Host, ManagedBuffer from cuda.core._utils.version import BUILD_CUDA_MAJOR, driver_version @@ -28,20 +28,8 @@ def _page_base(buf): return int(buf.handle) & ~(_PAGE_SIZE - 1) -def _skip_if_raw_managed_alloc_unsupported(device): - # Raw `cuMemAllocManaged` capability — distinct from - # `helpers.memory.skip_if_managed_memory_unsupported`, which gates - # `ManagedMemoryResource` pool creation. Used by tests that exercise - # `DummyUnifiedMemoryResource`. - try: - if not device.properties.managed_memory: - pytest.skip("Device does not support managed memory operations") - except AttributeError: - pytest.skip("Managed-memory buffer operations require CUDA support") - - def _skip_if_managed_location_ops_unsupported(device): - _skip_if_raw_managed_alloc_unsupported(device) + skip_if_managed_allocation_unsupported(device) try: if not device.properties.concurrent_managed_access: pytest.skip("Device does not support concurrent managed memory access") @@ -339,7 +327,7 @@ def test_from_handle(self, init_cuda): from cuda.core import Buffer device = Device() - _skip_if_raw_managed_alloc_unsupported(device) + skip_if_managed_allocation_unsupported(device) device.set_current() # Allocate an external managed pointer through the dummy MR, then # adopt it as a ManagedBuffer via from_handle. diff --git a/cuda_core/tests/test_memory.py b/cuda_core/tests/test_memory.py index 1cd1bed99024..78313b7bb70e 100644 --- a/cuda_core/tests/test_memory.py +++ b/cuda_core/tests/test_memory.py @@ -39,7 +39,7 @@ VMM_HANDLE_TYPE, create_managed_memory_resource_or_skip, create_pinned_memory_resource_or_xfail, - skip_if_managed_memory_unsupported, + skip_if_managed_allocation_unsupported, skip_if_managed_mempool_unsupported, skip_if_pinned_memory_unsupported, ) @@ -73,7 +73,7 @@ from cuda.core._memory._ipc import IPCBufferDescriptor from cuda.core._stream import default_stream from cuda.core._utils.cuda_utils import CUDAError, handle_return -from cuda.core._utils.version import driver_version +from cuda.core._utils.version import BUILD_CUDA_MAJOR, driver_version from cuda.core.typing import ( ManagedMemoryLocationType, VirtualMemoryAccessType, @@ -1124,7 +1124,7 @@ def test_buffer_dlpack_failure_clean_up(init_cuda): def test_managed_buffer_dlpack_roundtrip_device_type(init_cuda): """Verify that a managed Buffer round-trips through DLPack with kDLCUDAManaged.""" device = init_cuda - skip_if_managed_memory_unsupported(device) + skip_if_managed_allocation_unsupported(device) mr = DummyUnifiedMemoryResource(device) buf = mr.allocate(size=1024) @@ -1165,7 +1165,7 @@ def test_managed_memory_resource_buffer_dlpack_device_type(init_cuda): @pytest.mark.agent_authored(model="claude-opus-5-5") def test_managed_memory_resource_allocate_rejects_graph_builder(init_cuda): device = init_cuda - skip_if_managed_memory_unsupported(device) + skip_if_managed_mempool_unsupported(device) mr = None gb = None try: @@ -1318,7 +1318,7 @@ def test_pinned_memory_resource_rejects_unsupported_host_pool(init_cuda): def test_managed_memory_resource_initialization(init_cuda): device = Device() - skip_if_managed_memory_unsupported(device) + skip_if_managed_mempool_unsupported(device) device.set_current() @@ -2504,7 +2504,7 @@ def test_managed_memory_resource_with_options(init_cuda): def test_managed_memory_resource_preferred_location_default(init_cuda): """preferred_location property returns None when no preference is set.""" device = Device() - skip_if_managed_memory_unsupported(device) + skip_if_managed_mempool_unsupported(device) device.set_current() mr = create_managed_memory_resource_or_skip() @@ -2572,10 +2572,10 @@ def test_managed_memory_resource_preferred_location_host_numa(init_cuda): assert mr.preferred_location == ("host_numa", numa_id) +@pytest.mark.skipif(BUILD_CUDA_MAJOR < 13, reason="ManagedMemoryResource requires CUDA 13.0 or later") def test_managed_memory_resource_preferred_location_validation(init_cuda): """Invalid preferred_location combinations raise errors.""" device = Device() - skip_if_managed_memory_unsupported(device) device.set_current() # Invalid preferred_location_type @@ -2629,12 +2629,12 @@ def test_managed_memory_resource_preferred_location_validation(init_cuda): @pytest.mark.thread_unsafe(reason="Uses mock.") +@pytest.mark.skipif(BUILD_CUDA_MAJOR < 13, reason="ManagedMemoryResource requires CUDA 13.0 or later") def test_managed_memory_resource_host_numa_auto_resolve_failure(init_cuda): """host_numa with None raises RuntimeError when NUMA ID cannot be determined.""" from unittest.mock import MagicMock, patch device = Device() - skip_if_managed_memory_unsupported(device) device.set_current() mock_dev = MagicMock() @@ -2920,7 +2920,7 @@ def _create_owned_pool_or_skip(memory_resource_factory, device): if MR is PinnedMemoryResource: skip_if_pinned_memory_unsupported(device) return MR(options=MRops(max_size=POOL_SIZE)) - skip_if_managed_memory_unsupported(device) + skip_if_managed_mempool_unsupported(device) return create_managed_memory_resource_or_skip(options=MRops()) @@ -3198,7 +3198,7 @@ def test_mempool_attributes_ownership(memory_resource_factory): elif MR is PinnedMemoryResource: skip_if_pinned_memory_unsupported(device) elif MR is ManagedMemoryResource: - skip_if_managed_memory_unsupported(device) + skip_if_managed_mempool_unsupported(device) # Skip if IPC mempool is not supported on this platform/device (only relevant for DeviceMemoryResource) if MR is DeviceMemoryResource and not supports_ipc_mempool(device): From 382abe4d1e9221a15324b749f39715d852ac4bba Mon Sep 17 00:00:00 2001 From: jpascucci-nv Date: Thu, 19 Nov 2026 17:00:42 -0500 Subject: [PATCH 70/85] [no-ci] Fix 12.9.11 release note text (#3507) It's not unreleased by the time the user sees it. --- cuda_bindings_12/docs/source/release/12.9.11-notes.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/cuda_bindings_12/docs/source/release/12.9.11-notes.rst b/cuda_bindings_12/docs/source/release/12.9.11-notes.rst index ca7e0811c17c..ee8b060f0b5e 100644 --- a/cuda_bindings_12/docs/source/release/12.9.11-notes.rst +++ b/cuda_bindings_12/docs/source/release/12.9.11-notes.rst @@ -6,8 +6,6 @@ ``cuda-bindings`` 12.9.11 Release notes ======================================= -Unreleased - Breaking Changes ---------------- From bd06f5b36a801306714c3ac7f0f79a7fa47db3bf Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Thu, 19 Nov 2026 14:24:25 -0800 Subject: [PATCH 71/85] fix(cuda.core): waive unsupported samples and isolate capture tests (#3487) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(samples): check host pool support before image copies — codex GPT-6 on behalf of Ralf — Device memory-pool support does not imply host memory-pool support. Waive the pinned-memory sample before stream creation when host pools are unavailable, and cover the waiver and supported-path error behavior. * fix(samples): check IPC memory pool handle support — codex GPT-6 on behalf of Ralf — Generic POSIX file-descriptor handle support does not guarantee memory pool IPC support. Check the pool-specific POSIX-FD bit before creating the pool, and test masks with and without that bit. * fix(samples): waive the MLIR fluid sample without a display — codex GPT-6 on behalf of Ralf — On headless Linux, waive before CUDA setup or OpenGL window creation. Cover the negotiated waiver code and preserve CUDA setup errors when a display is present. * test(core): isolate memory resource capture from finalizers — codex GPT-6 on behalf of Ralf — Collect unrelated buffer finalizers with the worker context current before capture begins. Always close the graph builder so an invalidated capture cannot cause cascading failures in later tests. * ci: require manual copy-pr-bot approval * style(samples): align MLIR display check with GL siblings * test(samples): name IPC handle flags in capability cases * fix(samples): use the pool-specific IPC handle capability * refactor(samples): combine image memory-pool waiver checks * test(samples): document extracted function dependencies * test(samples): distinguish waivers from setup error propagation * style(tests): format memory-pool capability cases --- .../example_tests/test_sample_verification.py | 135 ++++++++++++++++++ .../tests/graph/test_graph_memory_resource.py | 15 +- .../copyImageArraytoGPU.py | 4 +- .../glInteropFluidNumbaCudaMlir.py | 5 + .../cuda_core/ipcMemoryPool/ipcMemoryPool.py | 6 +- 5 files changed, 157 insertions(+), 8 deletions(-) diff --git a/cuda_core/tests/example_tests/test_sample_verification.py b/cuda_core/tests/example_tests/test_sample_verification.py index 464b82845759..2dadf1560f8c 100644 --- a/cuda_core/tests/example_tests/test_sample_verification.py +++ b/cuda_core/tests/example_tests/test_sample_verification.py @@ -5,6 +5,7 @@ import ast import importlib.util +import io import sys from pathlib import Path from types import SimpleNamespace @@ -13,11 +14,15 @@ import pytest from run_samples import RunPlan, run_sample +from cuda.bindings import driver + REPO_ROOT = Path(__file__).resolve().parents[3] UTILITIES_DIR = REPO_ROOT / "samples" / "cuda_core" / "Utilities" WAIVER_SAMPLE_NAMES = ( "blurImageUnifiedMemory", + "copyImageArraytoGPU", "glInteropFluid", + "glInteropFluidNumbaCudaMlir", "glInteropMipmapLod", "glInteropPlasma", "ipcMemoryPool", @@ -33,6 +38,136 @@ ) +def _load_sample_function(sample_name: str, function_name: str, **namespace): + """Exercise sample functions without importing their optional GPU packages. + + Callers supply the globals needed by the exercised paths through ``namespace``; + changes to those dependencies may require updating the test doubles. + """ + sample_path = REPO_ROOT / "samples" / "cuda_core" / sample_name / f"{sample_name}.py" + tree = ast.parse(sample_path.read_text(encoding="utf-8"), filename=str(sample_path)) + function = next(node for node in tree.body if isinstance(node, ast.FunctionDef) and node.name == function_name) + module = ast.Module(body=[function], type_ignores=[]) + exec(compile(module, str(sample_path), "exec"), namespace) # noqa: S102 - trusted sample source + return namespace[function_name] + + +@pytest.mark.parametrize(("memory_pools_supported", "host_memory_pools_supported"), [(False, True), (True, False)]) +@pytest.mark.agent_authored(model="GPT-6") +def test_image_sample_waives_without_required_memory_pools( + memory_pools_supported: bool, host_memory_pools_supported: bool +) -> None: + def create_stream(): + pytest.fail("Unsupported memory pools must waive before stream setup") + + device = SimpleNamespace( + properties=SimpleNamespace( + memory_pools_supported=memory_pools_supported, + host_memory_pools_supported=host_memory_pools_supported, + ), + name="Fake GPU", + set_current=lambda: None, + create_stream=create_stream, + ) + main = _load_sample_function("copyImageArraytoGPU", "main", Device=lambda: device, np=np, sys=sys, EXIT_WAIVED=77) + + with pytest.raises(SystemExit) as exc_info: + main() + assert exc_info.value.code == 77 + + +@pytest.mark.agent_authored(model="GPT-6") +def test_image_sample_propagates_stream_setup_error() -> None: + expected = RuntimeError("stream setup failed") + + def create_stream(): + raise expected + + device = SimpleNamespace( + properties=SimpleNamespace(memory_pools_supported=True, host_memory_pools_supported=True), + name="Fake GPU", + set_current=lambda: None, + create_stream=create_stream, + ) + main = _load_sample_function("copyImageArraytoGPU", "main", Device=lambda: device, np=np, sys=sys, EXIT_WAIVED=77) + + with pytest.raises(RuntimeError) as exc_info: + main() + assert exc_info.value is expected + + +@pytest.mark.parametrize( + ("handle_types", "supported"), + [ + (int(driver.CUmemAllocationHandleType.CU_MEM_HANDLE_TYPE_WIN32), False), + ( + int(driver.CUmemAllocationHandleType.CU_MEM_HANDLE_TYPE_WIN32) + | int(driver.CUmemAllocationHandleType.CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR), + True, + ), + ], +) +@pytest.mark.agent_authored(model="GPT-6") +def test_ipc_sample_checks_memory_pool_handle_support(handle_types: int, supported: bool) -> None: + check_ipc_support = _load_sample_function( + "ipcMemoryPool", + "check_ipc_support", + platform=SimpleNamespace(system=lambda: "Linux"), + open=lambda _path: io.StringIO("6.1.0"), + driver=driver, + ) + device = SimpleNamespace( + properties=SimpleNamespace( + memory_pools_supported=True, + mempool_supported_handle_types=handle_types, + ) + ) + + assert check_ipc_support(device) is supported + + +@pytest.mark.agent_authored(model="GPT-6") +def test_mlir_sample_waives_missing_display_before_cuda_setup() -> None: + def is_available(): + pytest.fail("A missing display must waive before querying CUDA") + + main = _load_sample_function( + "glInteropFluidNumbaCudaMlir", + "main", + os=SimpleNamespace(environ={}), + platform=SimpleNamespace(system=lambda: "Linux"), + sys=sys, + cuda=SimpleNamespace(is_available=is_available), + EXIT_WAIVED=77, + ) + + with pytest.raises(SystemExit) as exc_info: + main() + assert exc_info.value.code == 77 + + +@pytest.mark.agent_authored(model="GPT-6") +def test_mlir_sample_propagates_cuda_query_error() -> None: + expected = RuntimeError("CUDA query failed") + + def is_available(): + raise expected + + main = _load_sample_function( + "glInteropFluidNumbaCudaMlir", + "main", + os=SimpleNamespace(environ={"DISPLAY": ":0"}), + platform=SimpleNamespace(system=lambda: "Linux"), + sys=sys, + cuda=SimpleNamespace(is_available=is_available), + EXIT_WAIVED=77, + ) + + with pytest.raises(RuntimeError) as exc_info: + main() + assert exc_info.value is expected + + @pytest.mark.parametrize("sample_name", WAIVER_SAMPLE_NAMES) @pytest.mark.agent_authored(model="gpt-5") def test_core_sample_waivers_use_negotiated_exit_code( diff --git a/cuda_core/tests/graph/test_graph_memory_resource.py b/cuda_core/tests/graph/test_graph_memory_resource.py index 31ec6fafe39d..9e6163b7cafb 100644 --- a/cuda_core/tests/graph/test_graph_memory_resource.py +++ b/cuda_core/tests/graph/test_graph_memory_resource.py @@ -4,6 +4,7 @@ """Tests for GraphMemoryResource allocation and attributes during graph capture.""" +import gc import threading from contextlib import closing @@ -388,10 +389,16 @@ def worker(): try: device = Device(device_id) device.set_current() - gb = device.create_stream().create_graph_builder().begin_building(mode=mode) - device.memory_resource # noqa: B018 - first touch on this thread constructs the resource - result["building"] = gb.is_building - gb.end_building().complete() + # Unrelated buffer finalizers must run before capture, not during it. + gc.collect() + gb = device.create_stream().create_graph_builder() + try: + gb.begin_building(mode=mode) + device.memory_resource # noqa: B018 - first touch on this thread constructs the resource + result["building"] = gb.is_building + gb.end_building().complete() + finally: + gb.close() except BaseException as exc: result["error"] = exc diff --git a/samples/cuda_core/copyImageArraytoGPU/copyImageArraytoGPU.py b/samples/cuda_core/copyImageArraytoGPU/copyImageArraytoGPU.py index 7fd0361e4bc8..4b0d99b6535c 100644 --- a/samples/cuda_core/copyImageArraytoGPU/copyImageArraytoGPU.py +++ b/samples/cuda_core/copyImageArraytoGPU/copyImageArraytoGPU.py @@ -196,8 +196,8 @@ def main(): dev = Device() # Get default CUDA device (GPU 0) dev.set_current() # Make this device the active one - if not dev.properties.memory_pools_supported: - print("PinnedMemoryResource requires CUDA memory pools, which are not supported on this device. Waiving.") + if not (dev.properties.memory_pools_supported and dev.properties.host_memory_pools_supported): + print("PinnedMemoryResource requires device and host memory pools; waiving this sample.") sys.exit(EXIT_WAIVED) stream = dev.create_stream() # Create stream for async operations diff --git a/samples/cuda_core/glInteropFluidNumbaCudaMlir/glInteropFluidNumbaCudaMlir.py b/samples/cuda_core/glInteropFluidNumbaCudaMlir/glInteropFluidNumbaCudaMlir.py index b01de06e02c1..0ae698026f92 100644 --- a/samples/cuda_core/glInteropFluidNumbaCudaMlir/glInteropFluidNumbaCudaMlir.py +++ b/samples/cuda_core/glInteropFluidNumbaCudaMlir/glInteropFluidNumbaCudaMlir.py @@ -39,6 +39,7 @@ import ctypes import math import os +import platform import random import sys import time @@ -471,6 +472,10 @@ def upload_and_draw(gl, shader_prog, vao_id, tex_id, host_rgba): def main(): + if platform.system() == "Linux" and not os.environ.get("DISPLAY"): + print("No DISPLAY available; waiving glInteropFluidNumbaCudaMlir.", file=sys.stderr) + sys.exit(EXIT_WAIVED) + if not cuda.is_available(): print("No CUDA GPU available to numba.", file=sys.stderr) sys.exit(1) diff --git a/samples/cuda_core/ipcMemoryPool/ipcMemoryPool.py b/samples/cuda_core/ipcMemoryPool/ipcMemoryPool.py index 57727e76baba..2c01ff031dd7 100644 --- a/samples/cuda_core/ipcMemoryPool/ipcMemoryPool.py +++ b/samples/cuda_core/ipcMemoryPool/ipcMemoryPool.py @@ -69,6 +69,7 @@ import numpy as np from cuda_samples_utils import print_gpu_info + from cuda.bindings import driver from cuda.core import ( Device, DeviceMemoryResource, @@ -100,8 +101,9 @@ def check_ipc_support(device) -> bool: if not device.properties.memory_pools_supported: print("Device does not support CUDA memory pools.") return False - if not device.properties.handle_type_posix_file_descriptor_supported: - print("Device/platform does not support POSIX-fd IPC handles.") + posix_fd = int(driver.CUmemAllocationHandleType.CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR) + if not device.properties.mempool_supported_handle_types & posix_fd: + print("Device/platform does not support POSIX-fd IPC memory pools.") return False return True From 0a21370d78a658fbc310e0fffd8a853c4b5d82a5 Mon Sep 17 00:00:00 2001 From: Ralf Juengling Date: Thu, 19 Nov 2026 14:37:49 -0800 Subject: [PATCH 72/85] test(cuda.core): fix PinnedMemoryResource IPC tests that pass for the wrong reasons (#3503) test(cuda.core): fix PinnedMemoryResource IPC tests that pass for the wrong reasons - Import pools as the exporter's class via a new import_pool_resource helper, so pinned variants no longer import as DeviceMemoryResource (#3502). - Add a device-access test for imported buffers; a memset fails where the existing copy-based checks pass. - Report latch timeouts (LatchKernel.timed_out) and assert TestEventIpc is driven by its release protocol, not the timeout. Wait for the child to be ready before starting the latch. - Mark the pinned variants that hit #3501 as strict xfails, and close their buffers so the expected failure does not keep the pool alive. - Restore the double-import coverage in TestObjectPassing. --- cuda_core/tests/helpers/latch.py | 23 +++- cuda_core/tests/helpers/memory.py | 13 +++ cuda_core/tests/memory_ipc/test_event_ipc.py | 107 +++++++++++------- cuda_core/tests/memory_ipc/test_memory_ipc.py | 65 ++++++++++- cuda_core/tests/memory_ipc/test_serialize.py | 21 ++-- cuda_core/tests/test_helpers.py | 19 ++++ 6 files changed, 190 insertions(+), 58 deletions(-) diff --git a/cuda_core/tests/helpers/latch.py b/cuda_core/tests/helpers/latch.py index 7702c5f617e5..2e55c3be0658 100644 --- a/cuda_core/tests/helpers/latch.py +++ b/cuda_core/tests/helpers/latch.py @@ -18,6 +18,12 @@ class LatchKernel: """ Manages a kernel that blocks stream progress until released. + + The kernel gives up after ``timeout_sec`` so that a test that never releases + it cannot hang. The timeout is counted in GPU clock cycles at the peak clock + rate, so it can last longer in wall-clock time. A test that expects to + release the latch should check :attr:`timed_out` after synchronizing: if the + latch ran into its timeout, the release protocol did not drive the test. """ def __init__(self, device, timeout_sec=60): @@ -28,7 +34,8 @@ def __init__(self, device, timeout_sec=60): extern "C" __global__ void latch(int* val, unsigned long long timeout_cycles) { - cuda::atomic_ref signal{*val}; + cuda::atomic_ref signal{val[0]}; + cuda::atomic_ref timed_out{val[1]}; // Start time unsigned long long start = clock64(); @@ -41,6 +48,7 @@ def __init__(self, device, timeout_sec=60): // Check for timeout if (clock64() - start >= timeout_cycles) { + timed_out.store(1, cuda::memory_order_relaxed); break; // Timeout reached } @@ -59,13 +67,15 @@ def __init__(self, device, timeout_sec=60): self.kernel = mod.get_kernel("latch") mr = LegacyPinnedMemoryResource() - self.buffer = mr.allocate(4) + self.buffer = mr.allocate(8) self.busy_wait_flag[0] = 0 + self.busy_wait_flag[1] = 0 clock_rate_hz = device.properties.clock_rate * 1000 self.timeout_cycles = int(timeout_sec * clock_rate_hz) def launch(self, stream): """Launch the latch kernel, blocking stream progress via busy waiting.""" + self.busy_wait_flag[1] = 0 config = LaunchConfig(grid=1, block=1) launch(stream, config, self.kernel, int(self.buffer.handle), self.timeout_cycles) @@ -73,6 +83,15 @@ def release(self): """Release the latch, allowing stream progress.""" self.busy_wait_flag[0] = 1 + def close(self): + """Free the flag buffer; the stream that ran the latch must have synchronized.""" + self.buffer.close() + + @property + def timed_out(self): + """Whether the last launch ended by timeout rather than release; valid after the stream syncs.""" + return bool(self.busy_wait_flag[1]) + @property def busy_wait_flag(self): return ctypes.cast(int(self.buffer.handle), ctypes.POINTER(ctypes.c_int32)) diff --git a/cuda_core/tests/helpers/memory.py b/cuda_core/tests/helpers/memory.py index 0b33a296f521..fcb7cbb03458 100644 --- a/cuda_core/tests/helpers/memory.py +++ b/cuda_core/tests/helpers/memory.py @@ -50,6 +50,19 @@ def is_pool_resource(mr): return isinstance(mr, (DeviceMemoryResource, PinnedMemoryResource)) +def import_pool_resource(cls, device, alloc_handle): + """Import the pool shared by ``alloc_handle`` as ``cls``, the class of the exporting resource. + + The class must match the exporter: importing a pinned pool as a + ``DeviceMemoryResource`` (or the reverse) currently succeeds and yields a + mislabeled resource (#3502). + """ + if cls is PinnedMemoryResource: + return PinnedMemoryResource.from_allocation_handle(alloc_handle) + assert cls is DeviceMemoryResource, cls + return DeviceMemoryResource.from_allocation_handle(device, alloc_handle) + + def skip_if_pinned_memory_unsupported(device): try: if not device.properties.host_memory_pools_supported: diff --git a/cuda_core/tests/memory_ipc/test_event_ipc.py b/cuda_core/tests/memory_ipc/test_event_ipc.py index 90f05f1e7d70..a06b0d9e771d 100644 --- a/cuda_core/tests/memory_ipc/test_event_ipc.py +++ b/cuda_core/tests/memory_ipc/test_event_ipc.py @@ -2,6 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 import multiprocessing as mp +from contextlib import ExitStack import pytest from helpers.buffers import compare_equal_buffers, make_scratch_buffer, prefix_view @@ -9,7 +10,7 @@ from helpers.latch import LatchKernel from helpers.logging import TimestampedLogger -from cuda.core import Device, EventOptions +from cuda.core import Device, EventOptions, PinnedMemoryResource ENABLE_LOGGING = False # Set True for test debugging and development CHILD_TIMEOUT_SEC = child_timeout_sec() @@ -26,10 +27,18 @@ class TestEventIpc: """Check the basic usage of IPC-enabled events with a latch kernel.""" @pytest.mark.flaky(reruns=2) - def test_main(self, ipc_device, ipc_memory_resource): + def test_main(self, request, ipc_device, ipc_memory_resource): log = TimestampedLogger(prefix="parent: ", enabled=ENABLE_LOGGING) device = ipc_device mr = ipc_memory_resource + if isinstance(mr, PinnedMemoryResource): + request.applymarker( + pytest.mark.xfail( + strict=True, + reason="#3501: the child's copy into the imported pinned buffer blocks until the latch " + "times out, so the release protocol never drives the test", + ) + ) stream1 = device.create_stream() # TODO: We pick a timeout here to ensure forward progress (it needs to be # less than CHILD_TIMEOUT_SEC) when a pinned memory resource is in use, @@ -38,60 +47,74 @@ def test_main(self, ipc_device, ipc_memory_resource): # make any sense. We should refactor this test. latch = LatchKernel(device, timeout_sec=5) - # Start the child process. - q_out, q_in = [mp.Queue() for _ in range(2)] - process = mp.Process(target=self.child_main, args=(log, q_out, q_in)) - process.start() - # Prepare scratch buffers. target = make_scratch_buffer(device, 0, NBYTES) ones = make_scratch_buffer(device, 1, NBYTES) twos = make_scratch_buffer(device, 2, NBYTES) - # Allocate the buffer and send it to the child. - buffer = mr.allocate(NBYTES, stream=stream1) - log("sending buffer") - q_out.put(buffer) - - # Stream 1: - log("enqueuing latch kernel on stream1") - latch.launch(stream1) - log("enqueuing copy on stream1") - prefix_view(buffer, NBYTES).copy_from(ones, stream=stream1) - - ipc_event_options = EventOptions(ipc_enabled=True) - e = stream1.record(options=ipc_event_options) - log(f"recorded event ({hex(e.handle)})") - q_out.put(e) - log("sent event") - - # Wait on the child. - log("waiting for child") - none = q_in.get(timeout=CHILD_TIMEOUT_SEC) - assert none is None - - log("releasing stream1") - latch.release() - process.join(timeout=CHILD_TIMEOUT_SEC) - survivors = kill_subprocesses(process) - assert not survivors, "child did not exit within timeout" - assert process.exitcode == 0 - log("done") - - # Finish up. - target.copy_from(prefix_view(buffer, NBYTES), stream=stream1) - stream1.sync() - assert compare_equal_buffers(target, twos) + with ExitStack() as stack: + # Start the child process. + q_out, q_in = [mp.Queue() for _ in range(2)] + for queue in (q_out, q_in): + stack.callback(queue.join_thread) + stack.callback(queue.close) + process = mp.Process(target=self.child_main, args=(log, q_out, q_in)) + process.start() + + # Allocate the buffer and send it to the child. + buffer = stack.enter_context(mr.allocate(NBYTES, stream=stream1)) + # The child must be gone before the buffer closes; it may still write to the allocation. + stack.callback(kill_subprocesses, process) + log("sending buffer") + q_out.put(buffer) + + # The latch timeout must cover only the child's event wait and copy, not + # its startup and buffer import, which can be slow. + log("waiting for child to be ready") + ready = q_in.get(timeout=CHILD_TIMEOUT_SEC) + assert ready == "ready" + + # Stream 1: + log("enqueuing latch kernel on stream1") + latch.launch(stream1) + log("enqueuing copy on stream1") + prefix_view(buffer, NBYTES).copy_from(ones, stream=stream1) + + ipc_event_options = EventOptions(ipc_enabled=True) + e = stream1.record(options=ipc_event_options) + log(f"recorded event ({hex(e.handle)})") + q_out.put(e) + log("sent event") + + # Wait on the child. + log("waiting for child") + none = q_in.get(timeout=CHILD_TIMEOUT_SEC) + assert none is None + + log("releasing stream1") + latch.release() + process.join(timeout=CHILD_TIMEOUT_SEC) + survivors = kill_subprocesses(process) + assert not survivors, "child did not exit within timeout" + assert process.exitcode == 0 + log("done") + + # Finish up. + target.copy_from(prefix_view(buffer, NBYTES), stream=stream1) + stream1.sync() + assert compare_equal_buffers(target, twos) + assert not latch.timed_out, "the latch timed out instead of being released after the child replied" def child_main(self, log, q_in, q_out): log.prefix = " child: " - log("ready") device = Device() device.set_current() stream2 = device.create_stream() twos = make_scratch_buffer(device, 2, NBYTES) buffer = q_in.get(timeout=CHILD_TIMEOUT_SEC) log("got buffer") + log("ready") + q_out.put("ready") e = q_in.get(timeout=CHILD_TIMEOUT_SEC) log(f"got event ({hex(e.handle)})") stream2.wait(e) diff --git a/cuda_core/tests/memory_ipc/test_memory_ipc.py b/cuda_core/tests/memory_ipc/test_memory_ipc.py index 34b9de734050..a55849dfa129 100644 --- a/cuda_core/tests/memory_ipc/test_memory_ipc.py +++ b/cuda_core/tests/memory_ipc/test_memory_ipc.py @@ -2,13 +2,14 @@ # SPDX-License-Identifier: Apache-2.0 import multiprocessing as mp +from contextlib import ExitStack import pytest -from helpers.buffers import PatternGen +from helpers.buffers import PatternGen, prefix_view from helpers.child_processes import child_timeout_sec, kill_subprocesses -from helpers.memory import is_pool_resource +from helpers.memory import import_pool_resource, is_pool_resource -from cuda.core import Buffer, DeviceMemoryResource, VirtualMemoryResource +from cuda.core import Buffer, PinnedMemoryResource, VirtualMemoryResource CHILD_TIMEOUT_SEC = child_timeout_sec() NBYTES = 64 @@ -21,15 +22,16 @@ def _share_token(mr): - """What a child needs to rebuild ``mr``: a pool's allocation handle, or the VMM resource itself.""" - return mr.allocation_handle if is_pool_resource(mr) else mr + """What a child needs to rebuild ``mr``: a pool's class and allocation handle, or the VMM resource itself.""" + return (type(mr), mr.allocation_handle) if is_pool_resource(mr) else mr def _import_token(device, token): """Rebuild a memory resource in a child from :func:`_share_token`'s result.""" if isinstance(token, VirtualMemoryResource): return token - return DeviceMemoryResource.from_allocation_handle(device, token) + cls, alloc_handle = token + return import_pool_resource(cls, device, alloc_handle) class TestIpcMempool: @@ -256,3 +258,54 @@ def child_main(self, device, token, seed, queue): pgen.fill_buffer(buffer, seed=seed) buffer.close() stream.sync() + + +class TestIpcImportedBufferDeviceAccess: + """ + Check that the importing process's device can access an imported buffer. + + The other tests in this module fill and verify buffers with copies, which + succeed even when the device cannot access the memory. A memset is executed + by the device and fails in that case. + """ + + FILL_VALUE = 7 + + @pytest.mark.agent_authored(model="claude-opus-5-5") + @pytest.mark.flaky(reruns=2) + def test_main(self, request, ipc_device, ipc_memory_resource): + device = ipc_device + mr = ipc_memory_resource + if isinstance(mr, PinnedMemoryResource): + request.applymarker( + pytest.mark.xfail(strict=True, reason="#3501: an imported pinned pool grants no device access") + ) + stream = device.default_stream + with ExitStack() as stack: + buffer = stack.enter_context(mr.allocate(NBYTES, stream=stream)) + stream.sync() + + queue = mp.Queue() + stack.callback(queue.join_thread) + stack.callback(queue.close) + process = mp.Process(target=self.child_main, args=(device, mr, queue)) + process.start() + # The child must be gone before the buffer closes; it may still write to the allocation. + stack.callback(kill_subprocesses, process) + queue.put(buffer) + process.join(timeout=CHILD_TIMEOUT_SEC) + survivors = kill_subprocesses(process) + assert not survivors, "child did not exit within timeout" + assert process.exitcode == 0 + + pgen = PatternGen(device, NBYTES, stream=stream) + pgen.verify_buffer(buffer, value=self.FILL_VALUE) + stream.sync() + + def child_main(self, device, mr, queue): + device.set_current() + buffer = queue.get(timeout=CHILD_TIMEOUT_SEC) + stream = device.default_stream + prefix_view(buffer, NBYTES).fill(self.FILL_VALUE, stream=stream) + buffer.close() + stream.sync() diff --git a/cuda_core/tests/memory_ipc/test_serialize.py b/cuda_core/tests/memory_ipc/test_serialize.py index 46858df13390..bb1a1fd50e5f 100644 --- a/cuda_core/tests/memory_ipc/test_serialize.py +++ b/cuda_core/tests/memory_ipc/test_serialize.py @@ -8,7 +8,7 @@ import pytest from helpers.buffers import PatternGen from helpers.child_processes import child_timeout_sec, kill_subprocesses -from helpers.memory import is_pool_resource +from helpers.memory import import_pool_resource, is_pool_resource from cuda.core import Buffer, Device, DeviceMemoryResource, PinnedMemoryResource, VirtualMemoryResource @@ -42,7 +42,7 @@ def test_main(self, ipc_device, ipc_memory_resource): # Send a memory resource: a pool by its allocation handle over the raw # fd channel, a VirtualMemoryResource as the object itself (it holds no # driver object; a VMM descriptor carries its fds per allocation). - parent_conn.send(is_pool_resource(mr)) + parent_conn.send(type(mr) if is_pool_resource(mr) else None) if is_pool_resource(mr): alloc_handle = mr.allocation_handle mp.reduction.send_handle(parent_conn, alloc_handle.handle, process.pid) @@ -77,9 +77,10 @@ def child_main(self, conn): device.set_current() # Receive the memory resource. - if conn.recv(): # pool + pool_cls = conn.recv() + if pool_cls is not None: handle = mp.reduction.recv_handle(conn) - mr = DeviceMemoryResource.from_allocation_handle(device, handle) + mr = import_pool_resource(pool_cls, device, handle) os.close(handle) else: mr = conn.recv() @@ -215,15 +216,19 @@ def child_main(self, alloc_handle, mr1, buffer_desc, buffer): stream = device.default_stream pgen = PatternGen(device, NBYTES, stream=stream) + # Import the allocation again, from the descriptor through the resource + # rebuilt from the allocation handle. Both buffers alias the same memory. + buffer2 = Buffer.from_ipc_descriptor(mr2, buffer_desc, stream=stream) + # Verify initial content pgen.verify_buffer(buffer, seed=False) + pgen.verify_buffer(buffer2, seed=False) - # Modify the buffer + # Modify the buffer and verify through both imports pgen.fill_buffer(buffer, seed=True) - - # Verify modified content pgen.verify_buffer(buffer, seed=True) + pgen.verify_buffer(buffer2, seed=True) - # Clean up - only ONE free + buffer2.close() buffer.close() stream.sync() diff --git a/cuda_core/tests/test_helpers.py b/cuda_core/tests/test_helpers.py index e2ec82d85035..5cbf9c40bf14 100644 --- a/cuda_core/tests/test_helpers.py +++ b/cuda_core/tests/test_helpers.py @@ -6,6 +6,7 @@ import sys import time import types +from contextlib import closing from unittest.mock import Mock import pytest @@ -58,11 +59,29 @@ def test_latchkernel(init_cuda): log("releasing latch and syncing") latch.release() stream.sync() + assert not latch.timed_out log("checking target == 1") assert compare_equal_buffers(target, ones) log("done") +@pytest.mark.skipif(Device().compute_capability.major < 7, reason="__nanosleep is only available starting Volta (sm70)") +@pytest.mark.thread_unsafe(reason="requires a barrier wait to avoid overlapping pinned latch allocations") +@pytest.mark.agent_authored(model="claude-opus-5-5") +def test_latchkernel_reports_timeout(init_cuda): + """A latch that is never released ends by timeout and reports it; relaunching clears the report.""" + device = init_cuda + with closing(device.create_stream()) as stream, closing(LatchKernel(device, timeout_sec=0.1)) as latch: + latch.launch(stream) + stream.sync() + assert latch.timed_out + + latch.launch(stream) + latch.release() + stream.sync() + assert not latch.timed_out + + @pytest.mark.skipif( under_compute_sanitizer(), reason="Too slow under compute-sanitizer (UVM-heavy test).", From faeb2e26c4aee45b10037374cb50c207cd4e1414 Mon Sep 17 00:00:00 2001 From: Ralf Juengling Date: Thu, 19 Nov 2026 17:02:40 -0800 Subject: [PATCH 73/85] fix(cuda.core): grant device access to imported PinnedMemoryResource pools (#3509) * fix(cuda.core): grant device access to imported PinnedMemoryResource pools Pool access is per process, and only the creating process granted the current device access to a pinned pool. In a process that imported the pool, kernels faulted, Buffer.fill failed, and copies blocked the host. from_allocation_handle now applies the same grant as creation through a shared helper, skipping registry hits that already have it. The strict #3501 xfails are removed, and TestEventIpc drops its 5 s latch timeout workaround and flaky marker now that the child's reply releases the latch. Closes #3501 * fix(cuda.core): grant every supporting device access to PinnedMemoryResource pools The grant covered only the device that was current. A spawned child unpickles its arguments before any device is current, so an imported pool granted device 0 alone, and kernels on other devices faulted as in #3501. The shared helper now grants read/write access to every device that supports the pool's kind of host memory pool, in one cuMemPoolSetAccess call, in both the creating and the importing process. from_allocation_handle holds the registered resource across the import so a registry hit cannot race with its collection and skip the grant. New tests check the pool access of every device after creation and after import from a resource or a raw handle, and run a fill on device 1 in a child that imported a pinned buffer. * test(cuda.core): release the TestEventIpc latch when the test fails The latch timeout is now CHILD_TIMEOUT_SEC, so a run that fails before the explicit release left the kernel spinning through fixture teardown and into later tests for up to that long. Release it on every exit path. * test(cuda.core): let the TestEventIpc latch outlast the parent's waits The latch timeout equaled CHILD_TIMEOUT_SEC but started before the parent's wait for the child's reply, so a slow but successful reply could still trip the timed_out assertion. A timeout of four times CHILD_TIMEOUT_SEC can only expire after the parent has given up, and the latch is released on every exit path, so a failed run does not wait for it. * fix(cuda.core): grant imported pinned pool access before registering the pool MP_from_allocation_handle registered an imported pool before from_allocation_handle granted device access. A concurrent import of the same UUID could hit the registry and return the pool before the grant finished, and a failed grant left the pool registered without access. MP_from_allocation_handle now takes an optional init callback that runs on a newly imported pool before it is registered. PinnedMemoryResource passes its grant; DeviceMemoryResource passes none. The registry pre-check in PinnedMemoryResource.from_allocation_handle is no longer needed. * test(cuda.core): run NUMA-placed pinned pool tests on CUDA 12 builds skip_if_pinned_memory_unsupported checks host_memory_pools_supported, which a CUDA 12 build always reports as False. IPC-enabled and explicitly NUMA-placed pinned pools only need host_numa_memory_pools_supported, so every PinnedMR IPC test skipped on CUDA 12 builds although those pools are supported there. The new skip_if_host_numa_pinned_memory_unsupported checks the host NUMA node and that attribute, as PinnedMemoryResource does for such a pool. The pinned branch of the IPC fixture, the new pinned IPC tests and the NUMA-placed pinned tests in test_memory.py use it. Pools without a NUMA node keep the existing guard. --- cuda_core/cuda/core/_memory/_ipc.pxd | 5 +- cuda_core/cuda/core/_memory/_ipc.pyi | 5 +- cuda_core/cuda/core/_memory/_ipc.pyx | 7 +- .../core/_memory/_pinned_memory_resource.pyi | 19 ++- .../core/_memory/_pinned_memory_resource.pyx | 66 ++++++--- cuda_core/docs/nv-versions.json | 4 + cuda_core/docs/source/release/1.4.0-notes.rst | 25 ++++ cuda_core/tests/conftest.py | 4 +- cuda_core/tests/helpers/memory.py | 24 +++- cuda_core/tests/memory_ipc/test_event_ipc.py | 24 +--- cuda_core/tests/memory_ipc/test_memory_ipc.py | 131 ++++++++++++++++-- cuda_core/tests/test_memory.py | 11 +- 12 files changed, 258 insertions(+), 67 deletions(-) create mode 100644 cuda_core/docs/source/release/1.4.0-notes.rst diff --git a/cuda_core/cuda/core/_memory/_ipc.pxd b/cuda_core/cuda/core/_memory/_ipc.pxd index a3b77dffd506..ddc28ce52be8 100644 --- a/cuda_core/cuda/core/_memory/_ipc.pxd +++ b/cuda_core/cuda/core/_memory/_ipc.pxd @@ -79,7 +79,10 @@ cdef Buffer Buffer_from_ipc_descriptor(cls, object, IPCBufferDescriptor, stream) # _MemPool IPC Implementation # --------------------------- -cdef _MemPool MP_from_allocation_handle(cls, alloc_handle) +# Initializes a newly imported pool before MP_from_allocation_handle registers it. +ctypedef int (*MP_import_init_t)(_MemPool) except? -1 + +cdef _MemPool MP_from_allocation_handle(cls, alloc_handle, MP_import_init_t init=*) cdef _MemPool MP_from_registry(uuid) cdef _MemPool MP_register(_MemPool, uuid) cdef IPCAllocationHandle MP_export_mempool(_MemPool) diff --git a/cuda_core/cuda/core/_memory/_ipc.pyi b/cuda_core/cuda/core/_memory/_ipc.pyi index 31f74ab2d173..ff871073e62f 100644 --- a/cuda_core/cuda/core/_memory/_ipc.pyi +++ b/cuda_core/cuda/core/_memory/_ipc.pyi @@ -1,11 +1,14 @@ # This file was generated by stubgen-pyx v0.2.23 from cuda_core/cuda/core/_memory/_ipc.pyx import uuid -from typing import Any, Iterable +from typing import Any, Callable, Iterable +from cuda.core._memory._memory_pool import _MemPool from cuda.core.typing import VirtualMemoryHandleType +from typing_extensions import TypeAlias __all__ = [] +MP_import_init_t: TypeAlias = Callable[[_MemPool], int] class IPCDataForBuffer: """Data members related to sharing memory buffers via IPC.""" diff --git a/cuda_core/cuda/core/_memory/_ipc.pyx b/cuda_core/cuda/core/_memory/_ipc.pyx index cb79d54871db..b75160d59d8f 100644 --- a/cuda_core/cuda/core/_memory/_ipc.pyx +++ b/cuda_core/cuda/core/_memory/_ipc.pyx @@ -538,7 +538,7 @@ cdef Buffer Buffer_from_ipc_descriptor( # _MemPool IPC Implementation # --------------------------- -cdef _MemPool MP_from_allocation_handle(cls, alloc_handle): +cdef _MemPool MP_from_allocation_handle(cls, alloc_handle, MP_import_init_t init=NULL): if isinstance(alloc_handle, IPCAllocationHandle): IPCAllocationHandle_check_open(alloc_handle) @@ -578,6 +578,11 @@ cdef _MemPool MP_from_allocation_handle(cls, alloc_handle): ) self._ipc_data = IPCDataForMR(alloc_handle, True) + # Initialize before registering: a registry hit in another thread must not + # return a pool whose initialization is in progress or has failed. + if init != NULL: + init(self) + # Register it. if uuid is not None: registered = self.register(uuid) diff --git a/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyi b/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyi index 29f72ea10c1d..a728722cb9f7 100644 --- a/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyi +++ b/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyi @@ -74,11 +74,14 @@ class PinnedMemoryResource(_MemPool): :class:`LegacyPinnedMemoryResource`. The driver makes a host memory pool accessible only from the host by - default, so the resource grants the device that is current when it is - created read and write access to the pool. Kernels on other devices cannot - access its buffers. Without options, the grant applies to the driver's - current pool, which the whole process shares. Construction without options - does not affect a CUDA graph capture in progress on any thread. + default, so the resource grants read and write access to the pool to every + device that supports this kind of host memory pool (host NUMA memory pools + if the pool is placed on a NUMA node), as ``cudaMallocHost`` does. Access + is per process, so a resource imported with :meth:`from_allocation_handle`, + including by unpickling, makes the same grant in the importing process. + Without options, the grant applies to the driver's current pool, which the + whole process shares. Construction without options does not affect a CUDA + graph capture in progress on any thread. To create an IPC-Enabled memory resource (MR) that is capable of sharing allocations between processes, specify ``ipc_enabled=True`` in the initializer @@ -146,7 +149,9 @@ class PinnedMemoryResource(_MemPool): """Create a host-pinned memory resource from an allocation handle. Construct a new `PinnedMemoryResource` instance that imports a memory - pool from a shareable handle. The memory pool is marked as owned. + pool from a shareable handle. The memory pool is marked as owned. Every + device in this process that supports host NUMA memory pools is granted + read and write access to the imported pool. Parameters ---------- @@ -174,7 +179,7 @@ class PinnedMemoryResource(_MemPool): """The host NUMA node ID used for pool placement, or -1 for OS-managed placement.""" @property def is_device_accessible(self) -> bool: - """Return True. The device that is current when the resource is created can read and write its buffers.""" + """Return True. Every device that supports this kind of host memory pool can read and write its buffers.""" @property def is_host_accessible(self) -> bool: """Return True. This memory resource provides host-accessible buffers.""" diff --git a/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyx b/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyx index 305d69c28095..33a591dc07f3 100644 --- a/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyx +++ b/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyx @@ -22,6 +22,7 @@ from cuda.core._utils.cuda_utils cimport ( check_or_create_options, HANDLE_RETURN, ) +from libcpp.vector cimport vector from dataclasses import dataclass import multiprocessing @@ -102,11 +103,14 @@ cdef class PinnedMemoryResource(_MemPool): :class:`LegacyPinnedMemoryResource`. The driver makes a host memory pool accessible only from the host by - default, so the resource grants the device that is current when it is - created read and write access to the pool. Kernels on other devices cannot - access its buffers. Without options, the grant applies to the driver's - current pool, which the whole process shares. Construction without options - does not affect a CUDA graph capture in progress on any thread. + default, so the resource grants read and write access to the pool to every + device that supports this kind of host memory pool (host NUMA memory pools + if the pool is placed on a NUMA node), as ``cudaMallocHost`` does. Access + is per process, so a resource imported with :meth:`from_allocation_handle`, + including by unpickling, makes the same grant in the importing process. + Without options, the grant applies to the driver's current pool, which the + whole process shares. Construction without options does not affect a CUDA + graph capture in progress on any thread. To create an IPC-Enabled memory resource (MR) that is capable of sharing allocations between processes, specify ``ipc_enabled=True`` in the initializer @@ -150,7 +154,7 @@ cdef class PinnedMemoryResource(_MemPool): raise TypeError("Cannot allocate from a mapped IPC-enabled memory resource") cdef Stream s = Stream_accept(stream) device = s.device - if not _host_pool_supported(device, self._numa_id): + if not _host_pool_supported(device, self._numa_id >= 0): raise RuntimeError( f"CUDA device {device.device_id} does not support the requested " "host memory pool for PinnedMemoryResource. Use " @@ -199,7 +203,9 @@ cdef class PinnedMemoryResource(_MemPool): """Create a host-pinned memory resource from an allocation handle. Construct a new `PinnedMemoryResource` instance that imports a memory - pool from a shareable handle. The memory pool is marked as owned. + pool from a shareable handle. The memory pool is marked as owned. Every + device in this process that supports host NUMA memory pools is granted + read and write access to the imported pool. Parameters ---------- @@ -219,9 +225,8 @@ cdef class PinnedMemoryResource(_MemPool): # not device-specific it is unlikelt the case. HANDLE_RETURN(cydriver.cuInit(0)) - cdef PinnedMemoryResource mr = ( - _ipc.MP_from_allocation_handle(cls, alloc_handle)) - return mr + return ( + _ipc.MP_from_allocation_handle(cls, alloc_handle, _PMR_init_imported)) @property def allocation_handle(self) -> IPCAllocationHandle: @@ -247,7 +252,7 @@ cdef class PinnedMemoryResource(_MemPool): @property def is_device_accessible(self) -> bool: - """Return True. The device that is current when the resource is created can read and write its buffers.""" + """Return True. Every device that supports this kind of host memory pool can read and write its buffers.""" return True @property @@ -256,10 +261,10 @@ cdef class PinnedMemoryResource(_MemPool): return True -cdef inline bint _host_pool_supported(device, int numa_id): +cdef inline bint _host_pool_supported(device, bint host_numa): return ( device.properties.host_numa_memory_pools_supported - if numa_id >= 0 + if host_numa else device.properties.host_memory_pools_supported ) @@ -275,7 +280,6 @@ cdef inline _PMR_init(PinnedMemoryResource self, options): cdef size_t max_size = 0 cdef cydriver.CUmemLocationType loc_type cdef int numa_id = -1 - cdef cydriver.CUmemAccessDesc access if opts is not None: ipc_enabled = opts.ipc_enabled @@ -321,15 +325,33 @@ cdef inline _PMR_init(PinnedMemoryResource self, options): max_size, ) + _PMR_grant_device_access(self, numa_id >= 0) + + +cdef inline int _PMR_grant_device_access(PinnedMemoryResource self, bint host_numa) except? -1: # A pool on a host location is accessible only from the host by default - # (see cuMemPoolCreate), so grant the current device read/write access. A - # device without host pool support cannot allocate from it anyway. - dev = Device() - if _host_pool_supported(dev, numa_id): - access.location = cumemlocation_from_id( - cydriver.CUmemLocationType.CU_MEM_LOCATION_TYPE_DEVICE, dev.device_id) - access.flags = cydriver.CUmemAccess_flags.CU_MEM_ACCESS_FLAGS_PROT_READWRITE - MP_set_access(self, &access, 1) + # (see cuMemPoolCreate), and access is per process, so both the creating + # and the importing process grant read/write access to every device that + # supports this kind of host pool, as cudaMallocHost memory is. Other + # devices cannot use the pool. + from .._device import Device + + cdef cydriver.CUmemAccessDesc desc + cdef vector[cydriver.CUmemAccessDesc] access + desc.flags = cydriver.CUmemAccess_flags.CU_MEM_ACCESS_FLAGS_PROT_READWRITE + for dev in Device.get_all_devices(): + if _host_pool_supported(dev, host_numa): + desc.location = cumemlocation_from_id( + cydriver.CUmemLocationType.CU_MEM_LOCATION_TYPE_DEVICE, dev.device_id) + access.push_back(desc) + if not access.empty(): + MP_set_access(self, access.data(), access.size()) + return 0 + + +cdef int _PMR_init_imported(_MemPool mr) except? -1: + # IPC-enabled pinned pools are always placed on a host NUMA node. + return _PMR_grant_device_access(mr, True) def _deep_reduce_pinned_memory_resource(mr: object) -> tuple[object, ...]: diff --git a/cuda_core/docs/nv-versions.json b/cuda_core/docs/nv-versions.json index 33499e3d6ebb..d855deb20a61 100644 --- a/cuda_core/docs/nv-versions.json +++ b/cuda_core/docs/nv-versions.json @@ -3,6 +3,10 @@ "version": "latest", "url": "https://nvidia.github.io/cuda-python/cuda-core/latest/" }, + { + "version": "1.4.0", + "url": "https://nvidia.github.io/cuda-python/cuda-core/1.4.0/" + }, { "version": "1.3.0", "url": "https://nvidia.github.io/cuda-python/cuda-core/1.3.0/" diff --git a/cuda_core/docs/source/release/1.4.0-notes.rst b/cuda_core/docs/source/release/1.4.0-notes.rst new file mode 100644 index 000000000000..338e14d49e38 --- /dev/null +++ b/cuda_core/docs/source/release/1.4.0-notes.rst @@ -0,0 +1,25 @@ +.. SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +.. SPDX-License-Identifier: Apache-2.0 + +.. currentmodule:: cuda.core + +``cuda.core`` 1.4.0 Release Notes +================================= + +Fixes and enhancements +---------------------- + +- Kernels, :meth:`Buffer.fill` and asynchronous copies now work on + :class:`PinnedMemoryResource` buffers on every device that supports the + pool's kind of host memory pool, as on ``cudaMallocHost`` memory. In + ``cuda.core`` 1.3.0, only the device that was current when the resource + was created could access its buffers. A process that imported the pool, + through :meth:`PinnedMemoryResource.from_allocation_handle` or by + unpickling, granted no device access at all, because pool access is per + process. There, kernels failed with ``CUDA_ERROR_ILLEGAL_ADDRESS``, + ``fill`` failed with ``CUDA_ERROR_INVALID_VALUE``, and copies silently + blocked the host until earlier work on the stream completed. The creating + and the importing process now both grant read and write access to every + supporting device. + (`#3415 `__, + `#3501 `__) diff --git a/cuda_core/tests/conftest.py b/cuda_core/tests/conftest.py index b667f862d481..a176de5479d6 100644 --- a/cuda_core/tests/conftest.py +++ b/cuda_core/tests/conftest.py @@ -38,7 +38,7 @@ from helpers.memory import ( BaselineMemoryResourceReleasedWarning, UnreleasedMemoryResourceWarning, - skip_if_pinned_memory_unsupported, + skip_if_host_numa_pinned_memory_unsupported, ) import cuda.core @@ -514,7 +514,7 @@ def _make_ipc_memory_resource(kind, device): options = DeviceMemoryResourceOptions(max_size=POOL_SIZE, ipc_enabled=True) return DeviceMemoryResource(device, options=options) if kind == "pinned": - skip_if_pinned_memory_unsupported(device) + skip_if_host_numa_pinned_memory_unsupported(device) options = PinnedMemoryResourceOptions(max_size=POOL_SIZE, ipc_enabled=True) return PinnedMemoryResource(options=options) assert kind == "vmm", kind diff --git a/cuda_core/tests/helpers/memory.py b/cuda_core/tests/helpers/memory.py index fcb7cbb03458..506e54c3e942 100644 --- a/cuda_core/tests/helpers/memory.py +++ b/cuda_core/tests/helpers/memory.py @@ -6,7 +6,7 @@ import pytest from cuda.core import Device, DeviceMemoryResource, ManagedMemoryResource, PinnedMemoryResource -from cuda.core._utils.cuda_utils import CUDAError +from cuda.core._utils.cuda_utils import CUDAError, driver, handle_return from cuda_python_test_helpers import IS_WINDOWS # Shareable handle type for VirtualMemoryResource allocations on this platform. @@ -63,6 +63,14 @@ def import_pool_resource(cls, device, alloc_handle): return DeviceMemoryResource.from_allocation_handle(device, alloc_handle) +def pool_access_flags(mr, device): + """The ``CUmemAccess_flags`` that ``device`` has on the memory pool of ``mr`` in this process.""" + location = driver.CUmemLocation() + location.type = driver.CUmemLocationType.CU_MEM_LOCATION_TYPE_DEVICE + location.id = device.device_id + return handle_return(driver.cuMemPoolGetAccess(driver.CUmemoryPool(int(mr.handle)), location)) + + def skip_if_pinned_memory_unsupported(device): try: if not device.properties.host_memory_pools_supported: @@ -71,6 +79,20 @@ def skip_if_pinned_memory_unsupported(device): pytest.skip("PinnedMemoryResource requires CUDA 13.0 or later") +def skip_if_host_numa_pinned_memory_unsupported(device): + """Skip unless ``device`` supports pinned pools on its host NUMA node, as IPC-enabled pinned pools are. + + Unlike ``skip_if_pinned_memory_unsupported``, this does not need the CUDA 13 + ``host_memory_pools_supported`` attribute, so it runs on CUDA 12 builds. It + checks what ``PinnedMemoryResource`` checks for such a pool + (``_host_pool_supported``); keep the two in sync. + """ + if device.properties.host_numa_id < 0: + pytest.skip("System does not support NUMA") + if not device.properties.host_numa_memory_pools_supported: + pytest.skip("Device does not support host NUMA memory pools") + + def skip_if_managed_allocation_unsupported(device): """Skip unless ``device`` supports raw managed allocations (``cuMemAllocManaged``). diff --git a/cuda_core/tests/memory_ipc/test_event_ipc.py b/cuda_core/tests/memory_ipc/test_event_ipc.py index a06b0d9e771d..c712ab6b2b6b 100644 --- a/cuda_core/tests/memory_ipc/test_event_ipc.py +++ b/cuda_core/tests/memory_ipc/test_event_ipc.py @@ -10,7 +10,7 @@ from helpers.latch import LatchKernel from helpers.logging import TimestampedLogger -from cuda.core import Device, EventOptions, PinnedMemoryResource +from cuda.core import Device, EventOptions ENABLE_LOGGING = False # Set True for test debugging and development CHILD_TIMEOUT_SEC = child_timeout_sec() @@ -26,26 +26,14 @@ class TestEventIpc: """Check the basic usage of IPC-enabled events with a latch kernel.""" - @pytest.mark.flaky(reruns=2) - def test_main(self, request, ipc_device, ipc_memory_resource): + def test_main(self, ipc_device, ipc_memory_resource): log = TimestampedLogger(prefix="parent: ", enabled=ENABLE_LOGGING) device = ipc_device mr = ipc_memory_resource - if isinstance(mr, PinnedMemoryResource): - request.applymarker( - pytest.mark.xfail( - strict=True, - reason="#3501: the child's copy into the imported pinned buffer blocks until the latch " - "times out, so the release protocol never drives the test", - ) - ) stream1 = device.create_stream() - # TODO: We pick a timeout here to ensure forward progress (it needs to be - # less than CHILD_TIMEOUT_SEC) when a pinned memory resource is in use, - # in which case the call to buffer.copy_from(...) below is a synchronous - # operation that blocks the host. But calling the latch kernel here does not - # make any sense. We should refactor this test. - latch = LatchKernel(device, timeout_sec=5) + # The child's reply releases the latch. The timeout must outlast the parent's + # waits below, so that it can only expire after the parent has given up. + latch = LatchKernel(device, timeout_sec=4 * CHILD_TIMEOUT_SEC) # Prepare scratch buffers. target = make_scratch_buffer(device, 0, NBYTES) @@ -77,6 +65,8 @@ def test_main(self, request, ipc_device, ipc_memory_resource): # Stream 1: log("enqueuing latch kernel on stream1") latch.launch(stream1) + # A failed run must not leave the latch spinning into teardown and later tests. + stack.callback(latch.release) log("enqueuing copy on stream1") prefix_view(buffer, NBYTES).copy_from(ones, stream=stream1) diff --git a/cuda_core/tests/memory_ipc/test_memory_ipc.py b/cuda_core/tests/memory_ipc/test_memory_ipc.py index a55849dfa129..ae6ea00adcfb 100644 --- a/cuda_core/tests/memory_ipc/test_memory_ipc.py +++ b/cuda_core/tests/memory_ipc/test_memory_ipc.py @@ -7,9 +7,21 @@ import pytest from helpers.buffers import PatternGen, prefix_view from helpers.child_processes import child_timeout_sec, kill_subprocesses -from helpers.memory import import_pool_resource, is_pool_resource - -from cuda.core import Buffer, PinnedMemoryResource, VirtualMemoryResource +from helpers.constants import POOL_SIZE +from helpers.memory import ( + import_pool_resource, + is_pool_resource, + pool_access_flags, + skip_if_host_numa_pinned_memory_unsupported, +) + +from cuda.core import ( + Buffer, + Device, + PinnedMemoryResource, + PinnedMemoryResourceOptions, + VirtualMemoryResource, +) CHILD_TIMEOUT_SEC = child_timeout_sec() NBYTES = 64 @@ -273,13 +285,9 @@ class TestIpcImportedBufferDeviceAccess: @pytest.mark.agent_authored(model="claude-opus-5-5") @pytest.mark.flaky(reruns=2) - def test_main(self, request, ipc_device, ipc_memory_resource): + def test_main(self, ipc_device, ipc_memory_resource): device = ipc_device mr = ipc_memory_resource - if isinstance(mr, PinnedMemoryResource): - request.applymarker( - pytest.mark.xfail(strict=True, reason="#3501: an imported pinned pool grants no device access") - ) stream = device.default_stream with ExitStack() as stack: buffer = stack.enter_context(mr.allocate(NBYTES, stream=stream)) @@ -309,3 +317,110 @@ def child_main(self, device, mr, queue): prefix_view(buffer, NBYTES).fill(self.FILL_VALUE, stream=stream) buffer.close() stream.sync() + + +def _pinned_pool_access(mr): + """Map each device ID to the name of its access flags on the pinned pool of ``mr``.""" + return {device.device_id: pool_access_flags(mr, device).name for device in Device.get_all_devices()} + + +def _expected_pinned_pool_access(): + """The access that an IPC-enabled pinned pool, which is always NUMA-placed, grants each device.""" + return { + device.device_id: ( + "CU_MEM_ACCESS_FLAGS_PROT_READWRITE" + if device.properties.host_numa_memory_pools_supported + else "CU_MEM_ACCESS_FLAGS_PROT_NONE" + ) + for device in Device.get_all_devices() + } + + +class TestIpcPinnedPoolAccess: + """ + Check that the creating and the importing process grant pinned pool access to every supporting device. + + Pool access is per process (#3501). The child imports the pool while no + device is current, as unpickling in a spawned child does. + """ + + @pytest.mark.agent_authored(model="claude-opus-5-5") + @pytest.mark.flaky(reruns=2) + @pytest.mark.parametrize("import_from", ["resource", "raw_handle"]) + def test_main(self, ipc_device, import_from): + skip_if_host_numa_pinned_memory_unsupported(ipc_device) + expected = _expected_pinned_pool_access() + with ExitStack() as stack: + mr = PinnedMemoryResource(PinnedMemoryResourceOptions(max_size=POOL_SIZE, ipc_enabled=True)) + stack.callback(mr.close) + assert _pinned_pool_access(mr) == expected + + queue = mp.Queue() + stack.callback(queue.join_thread) + stack.callback(queue.close) + # A raw handle carries no UUID, so its import cannot hit the registry. + source = mr if import_from == "resource" else mr.allocation_handle + process = mp.Process(target=self.child_main, args=(source, queue)) + process.start() + stack.callback(kill_subprocesses, process) + child_access = queue.get(timeout=CHILD_TIMEOUT_SEC) + process.join(timeout=CHILD_TIMEOUT_SEC) + survivors = kill_subprocesses(process) + assert not survivors, "child did not exit within timeout" + assert process.exitcode == 0 + assert child_access == expected + + def child_main(self, source, queue): + if isinstance(source, PinnedMemoryResource): + mr = source + else: + mr = PinnedMemoryResource.from_allocation_handle(int(source)) + queue.put(_pinned_pool_access(mr)) + mr.close() + + +class TestIpcImportedPinnedBufferOnSecondDevice: + """ + Check that device 1 can access an imported pinned buffer. + + A spawned child unpickles its arguments before its code makes a device + current, so an import that granted only the current device covered + device 0 but not device 1. + """ + + FILL_VALUE = 7 + + @pytest.mark.agent_authored(model="claude-opus-5-5") + @pytest.mark.flaky(reruns=2) + def test_main(self, ipc_mempool_device_x2): + dev0, dev1 = ipc_mempool_device_x2 + for device in (dev0, dev1): + skip_if_host_numa_pinned_memory_unsupported(device) + stream = dev1.default_stream + with ExitStack() as stack: + stack.callback(dev0.set_current) + dev1.set_current() + mr = PinnedMemoryResource(PinnedMemoryResourceOptions(max_size=POOL_SIZE, ipc_enabled=True)) + stack.callback(mr.close) + stack.callback(stream.sync) + buffer = stack.enter_context(mr.allocate(NBYTES, stream=stream)) + stream.sync() + + process = mp.Process(target=self.child_main, args=(buffer,)) + process.start() + # The child must be gone before the buffer closes; it may still write to the allocation. + stack.callback(kill_subprocesses, process) + process.join(timeout=CHILD_TIMEOUT_SEC) + survivors = kill_subprocesses(process) + assert not survivors, "child did not exit within timeout" + assert process.exitcode == 0 + + PatternGen(dev1, NBYTES, stream=stream).verify_buffer(buffer, value=self.FILL_VALUE) + + def child_main(self, buffer): + device = Device(1) + device.set_current() + stream = device.default_stream + prefix_view(buffer, NBYTES).fill(self.FILL_VALUE, stream=stream) + stream.sync() + buffer.close() diff --git a/cuda_core/tests/test_memory.py b/cuda_core/tests/test_memory.py index 78313b7bb70e..491956e82ada 100644 --- a/cuda_core/tests/test_memory.py +++ b/cuda_core/tests/test_memory.py @@ -39,6 +39,7 @@ VMM_HANDLE_TYPE, create_managed_memory_resource_or_skip, create_pinned_memory_resource_or_xfail, + skip_if_host_numa_pinned_memory_unsupported, skip_if_managed_allocation_unsupported, skip_if_managed_mempool_unsupported, skip_if_pinned_memory_unsupported, @@ -2678,7 +2679,7 @@ def test_pinned_mempool_ipc_basic(init_cuda): """Test basic IPC functionality for PinnedMemoryResource.""" device = init_cuda - skip_if_pinned_memory_unsupported(device) + skip_if_host_numa_pinned_memory_unsupported(device) if platform.system() == "Windows": pytest.skip("IPC not implemented for Windows") @@ -2767,7 +2768,7 @@ def test_pinned_mr_numa_id_default_no_ipc(init_cuda): def test_pinned_mr_numa_id_default_with_ipc(init_cuda): """numa_id is derived from the current device when IPC is enabled.""" device = Device() - skip_if_pinned_memory_unsupported(device) + skip_if_host_numa_pinned_memory_unsupported(device) if platform.system() == "Windows": pytest.skip("IPC not implemented for Windows") @@ -2775,8 +2776,6 @@ def test_pinned_mr_numa_id_default_with_ipc(init_cuda): pytest.skip("Driver rejects IPC-enabled mempool creation on this platform") expected_numa_id = device.properties.host_numa_id - if expected_numa_id < 0: - pytest.skip("System does not support NUMA") mr = create_pinned_memory_resource_or_xfail( PinnedMemoryResourceOptions(ipc_enabled=True, max_size=POOL_SIZE), xfail_device=device @@ -2788,11 +2787,9 @@ def test_pinned_mr_numa_id_default_with_ipc(init_cuda): def test_pinned_mr_numa_id_explicit(init_cuda): """Explicit numa_id is used regardless of ipc_enabled.""" device = Device() - skip_if_pinned_memory_unsupported(device) + skip_if_host_numa_pinned_memory_unsupported(device) host_numa_id = device.properties.host_numa_id - if host_numa_id < 0: - pytest.skip("System does not support NUMA") mr = create_pinned_memory_resource_or_xfail( PinnedMemoryResourceOptions(numa_id=host_numa_id, max_size=POOL_SIZE), xfail_device=device From 8597f75e5b27cb0ea4278d72aed991a0142c85c9 Mon Sep 17 00:00:00 2001 From: Andy Jost Date: Fri, 20 Nov 2026 07:56:13 -0800 Subject: [PATCH 74/85] docs(cuda.core): add 1.3.1 to the docs version switcher (#3490) Co-authored-by: Claude Opus 5.5 --- cuda_core/docs/nv-versions.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cuda_core/docs/nv-versions.json b/cuda_core/docs/nv-versions.json index d855deb20a61..6331b7d0ccd3 100644 --- a/cuda_core/docs/nv-versions.json +++ b/cuda_core/docs/nv-versions.json @@ -7,6 +7,10 @@ "version": "1.4.0", "url": "https://nvidia.github.io/cuda-python/cuda-core/1.4.0/" }, + { + "version": "1.3.1", + "url": "https://nvidia.github.io/cuda-python/cuda-core/1.3.1/" + }, { "version": "1.3.0", "url": "https://nvidia.github.io/cuda-python/cuda-core/1.3.0/" From c28d56433c9666a4364cd19bd7c400c7b6f47526 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Fri, 20 Nov 2026 07:56:26 -0800 Subject: [PATCH 75/85] fix(cuda.core): include clang-tidy in the build dependency group (#3515) * fix(cuda.core): include clang-tidy in the build dependency group Signed-off-by: Ralf W. Grosse-Kunstleve * ci: require manual copy-pr-bot approval Signed-off-by: Ralf W. Grosse-Kunstleve --------- Signed-off-by: Ralf W. Grosse-Kunstleve --- cuda_core/pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/cuda_core/pyproject.toml b/cuda_core/pyproject.toml index 151dd0c8a0c7..1e5e60a52fb3 100644 --- a/cuda_core/pyproject.toml +++ b/cuda_core/pyproject.toml @@ -73,6 +73,7 @@ build = [ "setuptools>=80", "setuptools-scm[simple]>=8,!=10.1", "Cython>=3.2.5,<3.3", + "clang-tidy==22.1.8; sys_platform != 'win32' or platform_machine != 'ARM64'", ] test = [ "cython>=3.2.5,<3.3", From 3b2ce0b16ee514c24b9ebb7b1c4b954deaa4cffe Mon Sep 17 00:00:00 2001 From: Leo Fang Date: Fri, 20 Nov 2026 11:38:56 -0500 Subject: [PATCH 76/85] Add CI design principles (#3512) Add ci/DESIGN.md, a short statement of the principles behind the CI shared by cuda-python, numba-cuda, numba-cuda-mlir and CuPy, and link it from the CI section of CONTRIBUTING.md. Closes #2346. Signed-off-by: Leo Fang --- CONTRIBUTING.md | 2 ++ ci/DESIGN.md | 53 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 ci/DESIGN.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1e24663e46c1..154c85ba96e3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -440,6 +440,8 @@ By making a contribution to this project, I certify that: ## CI infrastructure overview +For the principles behind the CI, see [CI design principles](ci/DESIGN.md). + The CUDA Python project uses a comprehensive CI pipeline that builds, tests, and releases multiple components across different platforms. This section provides a visual overview of our CI infrastructure to help contributors understand the build and release process. ### CI Pipeline Flow diff --git a/ci/DESIGN.md b/ci/DESIGN.md new file mode 100644 index 000000000000..95cdc329bc50 --- /dev/null +++ b/ci/DESIGN.md @@ -0,0 +1,53 @@ +# CI design principles + +One engineer should be able to develop and maintain CI part time across several projects. Neither we nor most open-source projects can afford full-time DevOps. Our mission is to deliver high-quality libraries; CI is a means to that end. Judge infrastructure choices by the ongoing work they create—upgrades, debugging and changes across projects—as well as execution cost. + +This design is a reference implementation for testing CUDA and Python on real GPUs wherever CUDA runs: Linux and Windows on x86-64 and aarch64, and WSL. It is used by [cuda-python](https://github.com/NVIDIA/cuda-python), [numba-cuda](https://github.com/NVIDIA/numba-cuda), [numba-cuda-mlir](https://github.com/NVIDIA/numba-cuda-mlir) and [CuPy](https://github.com/cupy/cupy). Any community project with a GPU runner, self-hosted or GitHub-hosted, should be able to adopt it. This document explains the principles, not today's workflows. + +The design predates widespread agentic development. Keeping it explicit and small should also help agents understand it with less context and fewer tokens. + +## Use community tooling and existing resources + +Use public, open-source community tooling wherever it fits: GitHub and third-party actions, cibuildwheel, sccache, pip and PyPI, and pixi (conda). These tools are maintained and scrutinized by others, often before we need them. When a tool blocks us, help fix it upstream where possible. Write a custom helper only when nothing fits and we cannot afford to wait for the upstream fix, and keep it small and exercised by ordinary workflows. + +Use GitHub's hosted runners, artifacts, caches, Pages and Releases so adopting the design requires little additional infrastructure. Use self-hosted runners only to fill gaps, such as GPUs. + +## Use container images minimally + +Maintain no images, and use no CUDA images. Use containers only when another requirement calls for them, such as PyPA's manylinux images for glibc compatibility. Layering tools on CUDA images adds time, bandwidth and storage costs. + +Get CUDA from PyPI wheels or from NVIDIA's public redistributable archives, which our small `fetch_ctk` action unpacks and caches. The archives are the first format published in a CUDA release and the source of truth for other formats, including apt, yum, conda and pip. + +Community tooling's support for Python pre-releases and direct access to CUDA archives enable Day 1 releases without waiting for custom CI infrastructure to catch up. + +## Share one implementation across platforms + +Use Bash for shared build and test logic, including Git Bash on Windows. A Linux-centric team maintains one implementation, and a fix lands once and runs everywhere. Keep short snippets inline in workflow steps. They read GitHub Actions state through expressions and contexts, often to decide whether a step runs, and passing that state back and forth to a script is awkward. Move longer logic shared across workflows into scripts. Use PowerShell only for Windows-specific operations, such as driver installation. + +## Separate build runners from test runners + +Build on CPU runners and pass artifacts to GPU test runners, so GPU time is spent on tests. Prebuild everything requiring a host compiler, including test extensions and binaries, to keep test environments lean and clean. + +On Windows, this separation is a necessity. MSVC comes only from Microsoft's slow Visual Studio installer, not from any package manager. Without a pre-built image, GitHub-hosted Windows runners, which have it preinstalled, are the only practical place to build, and GPU test runners have no reasonable way to get it. + +## Test what users install + +Test built wheels in a fresh environment with explicitly installed dependencies. Build the docs from the same wheels, and publish the tested wheels without rebuilding. This checks packaging as well as library behavior, without relying on the build environment to supply runtime dependencies. + +Most bugs users hit come from their environment, so cover the environments users have: + +- CUDA installed from PyPI wheels or locally, across supported CUDA versions. +- Different drivers, Windows driver modes, and GPU configurations. +- Supported Python versions, free-threaded builds and pre-releases. + +## Declare once, use everywhere + +Keep pipelines, build and test versions, dependency groups and test configurations declarative. Give each shared setting a single source of truth that all pipelines look up and honor. A version change should not require finding and synchronizing copies across workflows. + +The test matrix is an explicit list of rows. Limited runners may force coverage compromises; the design makes those choices visible and reviewable. A project can change coverage by editing rows rather than rewriting workflows. + +## Reuse workflows and actions + +Reuse stage workflows and composite actions through inputs. Extend an existing implementation when a new variant fits, rather than adding a near-copy that can drift. For example, `fetch_ctk` can overlay an additional component on an existing toolkit instead of defining another toolkit. + +When porting to another repository, copy the reference files verbatim first and adapt them in later changes. This preserves a clear basis for review and helps distinguish deliberate differences from accidental drift. From de0af8db6b8e14500efe1f367b11c71ce1e1b00b Mon Sep 17 00:00:00 2001 From: jpascucci-nv Date: Fri, 20 Nov 2026 12:38:05 -0500 Subject: [PATCH 77/85] CI: Restore cuda-python dependency validation in release workflow (#3470) closes #2342 PR #2334 disabled metapackage dependency resolution in artifact-based CI to unblock subpackage releases. Restore this coverage for cuda-python releases by installing the candidate wheel with published PyPI dependencies in clean environments. Test default and [all] installs across the tagged source's supported Python versions, including free-threaded builds, on Linux x86-64, Linux ARM64, and Windows x86-64. Require binary wheels and run pip check. Run validation during dry runs and full releases, and require success before asset uploads or package publication. Document that dependencies must reach PyPI before validating the metapackage release. Validation: workflow/YAML/SPDX/format checks, nine pip scenarios, and 208 release-gating scenarios passed. CI-tool suite: 392 passed; one sandbox UID/signing failure. Full pre-commit stopped on a link-checker download failure. GitHub release dry runs were not executed. --- .github/RELEASE-bindings.md | 23 +++++++++++---- .github/workflows/release.yml | 53 +++++++++++++++++++++++++++++++++-- 2 files changed, 68 insertions(+), 8 deletions(-) diff --git a/.github/RELEASE-bindings.md b/.github/RELEASE-bindings.md index 3764f265764a..84b90cd901ef 100644 --- a/.github/RELEASE-bindings.md +++ b/.github/RELEASE-bindings.md @@ -39,14 +39,25 @@ intended toolkit inputs. Follow the Tag-triggered CI selects that line's bindings and metapackage, validates them with the published Pathfinder dependency, and builds release artifacts. The tag does not have to be on `main`. Wait for this exact tag's CI to pass. -4. Run **CI: Release** with `release-action=dry-run`, the tag, and - `component=cuda-bindings`; repeat for `cuda-python`. Leave `run-id` blank - to exercise automatic lookup, and leave `dry-run-docs-branch` blank to avoid +4. Release `cuda-bindings` before `cuda-python`. For each component, run + **CI: Release** with `release-action=dry-run`, the tag, and the chosen + `component`. Leave `run-id` blank to exercise automatic lookup, and leave + `dry-run-docs-branch` blank to avoid deploying docs. The workflow verifies a successful tag-triggered CI run with the exact source SHA, validates artifacts, and builds docs. -5. Review the dry runs, then separately approve and run `full-release` for - each component under the team's release procedure. A successful candidate - rehearsal or ordinary branch CI is not a substitute for exact-tag CI. + The `cuda-python` dry run also installs the candidate metapackage with + dependencies from PyPI in clean environments across the tag's supported + Python versions, including free-threaded builds, on Linux x86-64, Linux + ARM64, and Windows x86-64. It tests both the default install and `[all]` + using only binary wheels and runs `pip check`. Publish the matching + bindings and any required Core or Pathfinder versions to PyPI first; + unpublished CI dependency artifacts cannot satisfy this check. +5. Review that component's dry run, then separately approve and run + `full-release` for the same component under the team's release procedure. + A successful candidate rehearsal or ordinary branch CI is not a substitute + for exact-tag CI. + The metapackage dependency check runs again for `full-release` and must + pass before GitHub asset uploads or TestPyPI/PyPI publication. 6. After both component releases succeed, review and publish the shared `vX.Y.Z` GitHub Release draft. Check its release notes, versioned documentation links, source archive, checksum, and wheels. These component diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 07d0079eeb5e..0a30aee3ebf5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -334,6 +334,7 @@ jobs: - resolve-bindings-package outputs: artifact-id: ${{ steps.upload.outputs.artifact-id }} + python-versions: ${{ steps.dependency-test-matrix.outputs.python-versions }} env: ARCHIVE_NAME: ${{ github.event.repository.name }}-${{ inputs.git-tag }} BINDINGS_PACKAGE: ${{ needs.resolve-bindings-package.outputs.bindings-package }} @@ -388,6 +389,14 @@ jobs: sha256sum "release/$ARCHIVE_NAME.tar.gz" \ | awk '{print $1}' > "release/$ARCHIVE_NAME.tar.gz.sha256sum" + - name: Read metapackage dependency test Python versions + if: ${{ inputs.component == 'cuda-python' }} + id: dependency-test-matrix + run: | + config=$(python -m ci.tools.bindings_config --config release-source/ci/versions.yml) + python_versions=$(jq -c '.python.supported' <<< "$config") + echo "python-versions=$python_versions" >> "$GITHUB_OUTPUT" + # Consumers use this immutable artifact ID, never re-download build outputs. - name: Upload prepared release artifacts id: upload @@ -398,11 +407,50 @@ jobs: if-no-files-found: error retention-days: 3 + test-cuda-python-dependencies: + name: Test cuda-python${{ matrix.extra }} dependencies (${{ matrix.os }}, Python ${{ matrix.python-version }}) + if: ${{ inputs.component == 'cuda-python' }} + needs: prepare-artifacts + runs-on: ${{ matrix.os }} + permissions: {} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest] + python-version: ${{ fromJSON(needs.prepare-artifacts.outputs.python-versions || '[]') }} + extra: ["", "[all]"] + steps: + - name: Download prepared release artifacts + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 + with: + artifact-ids: ${{ needs.prepare-artifacts.outputs.artifact-id }} + path: release/ + merge-multiple: true + + - name: Create clean dependency test environment + # No checkout or CI-built dependencies: test the wheel that will be published. + uses: $/.github/actions/setup-hardened-python + with: + python-version: ${{ matrix.python-version }} + + - name: Install metapackage with published dependencies + env: + EXTRA: ${{ matrix.extra }} + run: | + wheels=(release/wheels/cuda_python-*.whl) + python -m pip --isolated install \ + --index-url https://pypi.org/simple/ \ + --only-binary=:all: "${wheels[0]}${EXTRA}" + python -m pip check + upload-archive: name: Upload GitHub release artifacts + if: >- + ${{ !cancelled() && needs.prepare-artifacts.result == 'success' && needs.doc.result == 'success' && + (inputs.component != 'cuda-python' || needs.test-cuda-python-dependencies.result == 'success') }} permissions: contents: write - needs: [prepare-artifacts, doc] + needs: [prepare-artifacts, doc, test-cuda-python-dependencies] uses: ./.github/workflows/release-upload.yml with: git-tag: ${{ inputs.git-tag }} @@ -415,9 +463,10 @@ jobs: if: >- ${{ !cancelled() && inputs.release-action == 'full-release' && needs.prepare-artifacts.result == 'success' && needs.doc.result == 'success' && + (inputs.component != 'cuda-python' || needs.test-cuda-python-dependencies.result == 'success') && (inputs.component != 'cuda-pathfinder' || needs.ensure-pathfinder-draft.result == 'success') }} runs-on: ubuntu-latest - needs: [prepare-artifacts, doc, ensure-pathfinder-draft] + needs: [prepare-artifacts, doc, ensure-pathfinder-draft, test-cuda-python-dependencies] environment: name: testpypi url: https://test.pypi.org/p/${{ inputs.component }}/ From b12c265bce8590714ed9bb6af33aa4233ed735c4 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Fri, 20 Nov 2026 18:20:20 -0800 Subject: [PATCH 78/85] [doc-only] Fix documentation selector publication timing (#3520) * Fix documentation version-selector publication timing Signed-off-by: Ralf W. Grosse-Kunstleve * ci: require manual copy-pr-bot approval * Clarify the shared bindings selector and trim redundant test Signed-off-by: Ralf W. Grosse-Kunstleve * docs: clarify when to update documentation version selectors Signed-off-by: Ralf W. Grosse-Kunstleve --------- Signed-off-by: Ralf W. Grosse-Kunstleve --- .github/RELEASE-bindings.md | 17 +- .github/RELEASE-core.md | 31 ++- .pre-commit-config.yaml | 2 +- ci/README.md | 31 +-- ci/tools/check_staged_release_notes.py | 77 +------ .../test_check_release_note_selectors.py | 208 ------------------ cuda_bindings_12/docs/README.md | 12 +- cuda_bindings_13/docs/README.md | 10 +- cuda_core/docs/README.md | 10 +- cuda_core/docs/nv-versions.json | 4 - cuda_pathfinder/docs/README.md | 10 +- cuda_python/docs/README.md | 14 +- 12 files changed, 87 insertions(+), 339 deletions(-) delete mode 100644 ci/tools/tests/test_check_release_note_selectors.py diff --git a/.github/RELEASE-bindings.md b/.github/RELEASE-bindings.md index 84b90cd901ef..b6dc53d63be7 100644 --- a/.github/RELEASE-bindings.md +++ b/.github/RELEASE-bindings.md @@ -71,13 +71,20 @@ release dry run. Tag CI does not publish documentation. This focused tag-CI check is specific to the shared bindings/metapackage tags; Core and Pathfinder release behavior is unchanged. -For either bindings line, add the released version to +Release notes can land on `main` before publication without entries in the +documentation version selectors. For either bindings line, wait for successful +publication and deployment of each component's versioned documentation, then +open a PR on `main` adding the released bindings version to [`cuda_bindings_13/docs/nv-versions.json`](../cuda_bindings_13/docs/nv-versions.json) and its matching metapackage version to -[`cuda_python/docs/nv-versions.json`](../cuda_python/docs/nv-versions.json) -on `main`. Documentation deployments from `main` own these shared version -selectors. Release deployments publish versioned pages without replacing the -selectors or shared `latest` pages. +[`cuda_python/docs/nv-versions.json`](../cuda_python/docs/nv-versions.json). +Confirm that each versioned documentation URL works before merging its entry. + +Documentation deployments from `main` own these shared version selectors. +Release deployments publish versioned pages without replacing the selectors or +shared `latest` pages. An entry in the tagged source alone does not update the +live switcher. If an entry is missing after release, correct it on `main` +without changing the release tag. The workflow revision used for a release is its **control revision**; the tagged commit is its **source revision**. Record both and the artifact CI run diff --git a/.github/RELEASE-core.md b/.github/RELEASE-core.md index 61228659566f..3b575c0f5a44 100644 --- a/.github/RELEASE-core.md +++ b/.github/RELEASE-core.md @@ -145,15 +145,9 @@ entries for length, specificity, tone, and consistency. Highlight a few notable items in the highlights section, keeping their full entries in the appropriate sections below. ---- - -## Update the docs for the new version - -Add the new version to -`cuda_core/docs/nv-versions.json`. This file drives the version -switcher on the documentation site. Add an entry for the new version -after `"latest"`, following the existing pattern. The docs themselves are -built and deployed automatically by the release workflow. +Numeric release notes can land on `main` before publication. They do not require +an entry in the documentation version switcher: adding an unreleased version +would advertise documentation that is not deployed yet. --- @@ -176,8 +170,8 @@ For a patch release (`X.Y.Z`), use the existing branch. Changes reach it through pull requests that cherry-pick the fixes from `main`, with `(cherry picked from commit ...)` trailers. The release notes for the patch release must be on the release branch before the tag: the release workflow -checks for them in the tagged tree. Add them to `main` as well, so the docs -switcher and the `latest` docs list them. +checks for them in the tagged tree. Add them to `main` as well, so the `latest` +docs include them. The repository ruleset protects `release/**`: a push to an existing release branch needs a pull request and passing checks. @@ -247,6 +241,21 @@ pip install cuda-core==0.6.0 --- +## Update the docs for the new version + +After publication succeeds and the versioned documentation is deployed, open a +PR on `main` adding the new version to `cuda_core/docs/nv-versions.json` after +`"latest"`, following the existing pattern. Confirm that the versioned +documentation URL works before merging the entry. + +This file drives the shared version switcher used by existing documentation +pages. Deployments from `main` publish it; release deployments publish versioned +pages without replacing the selector or shared `latest` pages. An entry in the +tagged source alone does not update the live switcher. If an entry is missing +after release, correct it on `main` without changing the release tag. + +--- + ## Update the conda recipe & release conda packages The conda-forge feedstock builds from the GitHub Release source archive diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d90a91fda1cc..aa1dcdf850ee 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -57,7 +57,7 @@ repos: pass_filenames: false - id: check-staged-release-notes - name: Check staged release-note pairs and documentation version selectors + name: Check staged release-note pairs entry: python -m ci.tools.check_staged_release_notes language: python always_run: true diff --git a/ci/README.md b/ci/README.md index 9c971cf9eac1..a928e6cf749b 100644 --- a/ci/README.md +++ b/ci/README.md @@ -342,26 +342,15 @@ and during `pre-commit run --all-files`. The tagged-source checks in the release workflow remain the final validation before publication. -The same hook checks documentation version selectors for these bindings and -metapackage releases, Core releases starting at **1.3.2**, and Pathfinder -releases starting at **1.9.2**. Each checked numeric release note must have its -version listed in the package's `docs/nv-versions.json`, with the exact -versioned documentation URL, including the trailing slash. All bindings roots -share the selector in the second root after sorting indexed -`cuda_bindings_` roots in ascending numeric order. Exactly two or three -roots are expected: maintenance, current, and optionally a newer unreleased -major. Both `[12, 13]` and `[12, 13, 14]` therefore use -`cuda_bindings_13/docs/nv-versions.json`. Retiring root 12 leaves `[13, 14]` -and moves ownership to `cuda_bindings_14/docs/nv-versions.json`; stage that -selector and coordinate the build and release routing migration. Discovery -uses all indexed files, including templates, before applying note cutoffs. -The hook does not fall back to another root. Metapackage URLs use -`https://nvidia.github.io/cuda-python//`, while the other components -use their `cuda-bindings`, `cuda-core`, or `cuda-pathfinder` subdirectory. - -The hook uses only the standard library. All four selectors must exist in -Git's index and parse as JSON. The hook reads their staged contents, so -unstaged edits cannot satisfy the check. +The hook uses only the standard library and checks note pairing independently +of documentation version selectors. Numeric release notes can describe work +for an upcoming release without advertising unpublished documentation. Update +selectors on `main` only after the component is published and its versioned +documentation is deployed. Both bindings majors use +`cuda_bindings_13/docs/nv-versions.json`; the metapackage, Core, and Pathfinder +use their own package's `docs/nv-versions.json`. Deployments from `main` own +these shared selectors; release deployments leave them unchanged. A missing +selector entry can be corrected on `main` without changing the release tag. Tag-push CI runs the `--tag-ci` mode of `ci/tools/check_tagged_release_notes.py` at the start of its `should-skip` job, @@ -371,7 +360,7 @@ bindings major; `cuda-core-v` and `cuda-pathfinder-v` tags select their own component. Public beta, release-candidate, and final tags require their full version in the filename. Internal alpha and development tags skip this check. Post releases require a new note only for Pathfinder. This early check tests -file existence; pairing and selectors belong to the separate staged check. +file existence; pairing belongs to the separate staged check. The same module provides the publication preflight used by the release workflow. Publication mode checks the requested component in the tagged diff --git a/ci/tools/check_staged_release_notes.py b/ci/tools/check_staged_release_notes.py index 8056cb26e09b..dce6c45c2686 100644 --- a/ci/tools/check_staged_release_notes.py +++ b/ci/tools/check_staged_release_notes.py @@ -1,11 +1,10 @@ # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -"""Check release-note pairing and documentation version selectors.""" +"""Check staged bindings and metapackage release-note pairs.""" from __future__ import annotations -import json import re import subprocess import sys @@ -13,16 +12,7 @@ ROOT = Path(__file__).resolve().parents[2] METAPACKAGE_NOTES = "cuda_python/docs/source/release" -RELEASE_NOTE = re.compile( - r"(cuda_bindings_[^/]+|cuda_python|cuda_core|cuda_pathfinder)" - r"/docs/source/release/([0-9]+\.[0-9]+\.[0-9]+)-notes\.rst" -) -SELECTOR_URLS = { - "cuda_python": "https://nvidia.github.io/cuda-python/", - "cuda_core": "https://nvidia.github.io/cuda-python/cuda-core/", - "cuda_pathfinder": "https://nvidia.github.io/cuda-python/cuda-pathfinder/", - "cuda_bindings": "https://nvidia.github.io/cuda-python/cuda-bindings/", -} +RELEASE_NOTE = re.compile(r"(cuda_bindings_[^/]+|cuda_python)/docs/source/release/([0-9]+\.[0-9]+\.[0-9]+)-notes\.rst") def _requires_pairing(version: str) -> bool: @@ -41,8 +31,6 @@ def _build_indexed_release_notes(repo_root: Path) -> dict[str, tuple[str, str]]: "--", "cuda_bindings_*/docs/source/release/*-notes.rst", f"{METAPACKAGE_NOTES}/*-notes.rst", - "cuda_core/docs/source/release/*-notes.rst", - "cuda_pathfinder/docs/source/release/*-notes.rst", ], cwd=repo_root, stdout=subprocess.PIPE, @@ -53,13 +41,7 @@ def _build_indexed_release_notes(repo_root: Path) -> dict[str, tuple[str, str]]: for path in listing.split("\0"): if match := RELEASE_NOTE.fullmatch(path): package, version = match.groups() - if package == "cuda_core": - required = tuple(map(int, version.split("."))) >= (1, 3, 2) - elif package == "cuda_pathfinder": - required = tuple(map(int, version.split("."))) >= (1, 9, 2) - else: - required = _requires_pairing(version) - if required: + if _requires_pairing(version): indexed_release_notes[path] = package, version return indexed_release_notes @@ -82,64 +64,17 @@ def missing_release_note_pairs(indexed_release_notes: dict[str, tuple[str, str]] return sorted(missing) -def _bindings_selector_package(repo_root: Path) -> str: - listing = subprocess.run( - ["git", "ls-files", "-z", "--", "cuda_bindings_*/*"], # noqa: S607 - cwd=repo_root, - stdout=subprocess.PIPE, - check=True, - encoding="utf-8", - ).stdout - packages = {path.split("/", 1)[0] for path in listing.split("\0") if path} - ordered_packages = sorted(packages, key=lambda package: int(package.removeprefix("cuda_bindings_"))) - # Expect roots for maintenance, current, and optionally a newer unreleased major. - # Fail on an unexpected count to avoid silently choosing the wrong selector. - assert len(ordered_packages) in (2, 3), f"Expected two or three bindings roots, found {ordered_packages}" - return ordered_packages[1] - - -def version_selector_errors(repo_root: Path, indexed_release_notes: dict[str, tuple[str, str]]) -> list[str]: - """Require matching versions and documentation URLs in the staged selectors.""" - bindings_selector = _bindings_selector_package(repo_root) - selector_urls = { - bindings_selector if package == "cuda_bindings" else package: url for package, url in SELECTOR_URLS.items() - } - selectors: dict[str, dict[str, str]] = {} - for package in selector_urls: - path = f"{package}/docs/nv-versions.json" - contents = subprocess.run( # noqa: S603 - ["git", "show", f":{path}"], # noqa: S607 - cwd=repo_root, - stdout=subprocess.PIPE, - check=True, - encoding="utf-8", - ).stdout - selectors[package] = {entry["version"]: entry["url"] for entry in json.loads(contents)} - - errors = [] - for note, (package, version) in sorted(indexed_release_notes.items()): - selector_package = bindings_selector if package.startswith("cuda_bindings_") else package - path = f"{selector_package}/docs/nv-versions.json" - entries = selectors[selector_package] - expected_url = f"{selector_urls[selector_package]}{version}/" - if version not in entries: - errors.append(f"{path}: missing version {version} (required by {note})") - elif entries[version] != expected_url: - errors.append(f"{path}: version {version} URL is {entries[version]!r}; expected {expected_url!r} ({note})") - return errors - - def main() -> int: - """Report missing release-note pairs and incorrect staged version selectors.""" + """Report missing release-note pairs in the Git index.""" indexed_release_notes = _build_indexed_release_notes(ROOT) - errors = missing_release_note_pairs(indexed_release_notes) + version_selector_errors(ROOT, indexed_release_notes) + errors = missing_release_note_pairs(indexed_release_notes) if not errors: return 0 print("Release-note checks failed in the Git index:", file=sys.stderr) for error in errors: print(f" - {error}", file=sys.stderr) - print("Add and stage matching release notes and documentation version entries.", file=sys.stderr) + print("Add and stage matching cuda-bindings and cuda-python release notes.", file=sys.stderr) return 1 diff --git a/ci/tools/tests/test_check_release_note_selectors.py b/ci/tools/tests/test_check_release_note_selectors.py deleted file mode 100644 index baafa6253119..000000000000 --- a/ci/tools/tests/test_check_release_note_selectors.py +++ /dev/null @@ -1,208 +0,0 @@ -# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -# SPDX-License-Identifier: Apache-2.0 - -from __future__ import annotations - -import json -import subprocess -from pathlib import Path - -import pytest - -from ci.tools.check_staged_release_notes import ( - _build_indexed_release_notes, - version_selector_errors, -) - -SELECTORS = ( - "cuda_python/docs/nv-versions.json", - "cuda_bindings_13/docs/nv-versions.json", - "cuda_core/docs/nv-versions.json", - "cuda_pathfinder/docs/nv-versions.json", -) - - -def git(repo: Path, *args: str) -> None: - subprocess.run( # noqa: S603 - ["git", "-C", str(repo), *args], # noqa: S607 - capture_output=True, - check=True, - ) - - -def stage_file(repo: Path, relative: str, contents: str) -> str: - path = repo / relative - path.parent.mkdir(parents=True, exist_ok=True) - path.write_text(contents, encoding="utf-8") - git(repo, "add", relative) - return relative - - -@pytest.fixture -def repo(tmp_path): - git(tmp_path, "init", "-q") - stage_file(tmp_path, "cuda_bindings_12/README.md", "Maintenance bindings root.\n") - for selector in SELECTORS: - stage_file(tmp_path, selector, "[]\n") - return tmp_path - - -@pytest.mark.parametrize( - "package,version,selector,url", - [ - ( - "cuda_bindings_12", - "12.9.11", - "cuda_bindings_13/docs/nv-versions.json", - "https://nvidia.github.io/cuda-python/cuda-bindings/12.9.11/", - ), - ( - "cuda_bindings_13", - "13.5.1", - "cuda_bindings_13/docs/nv-versions.json", - "https://nvidia.github.io/cuda-python/cuda-bindings/13.5.1/", - ), - ( - "cuda_python", - "12.9.11", - "cuda_python/docs/nv-versions.json", - "https://nvidia.github.io/cuda-python/12.9.11/", - ), - ( - "cuda_core", - "1.3.2", - "cuda_core/docs/nv-versions.json", - "https://nvidia.github.io/cuda-python/cuda-core/1.3.2/", - ), - ( - "cuda_pathfinder", - "1.9.2", - "cuda_pathfinder/docs/nv-versions.json", - "https://nvidia.github.io/cuda-python/cuda-pathfinder/1.9.2/", - ), - ], -) -@pytest.mark.agent_authored(model="gpt-6") -def test_release_notes_require_their_version_and_exact_url_in_the_correct_selector( - repo, package, version, selector, url -): - note = stage_file(repo, f"{package}/docs/source/release/{version}-notes.rst", "Release notes.\n") - - for entries in ([], [{"version": version, "url": url.removesuffix("/")}]): - stage_file(repo, selector, json.dumps(entries)) - errors = version_selector_errors(repo, _build_indexed_release_notes(repo)) - assert len(errors) == 1 - assert all(value in errors[0] for value in (note, version, selector)) - - stage_file(repo, selector, json.dumps([{"version": version, "url": url}])) - assert version_selector_errors(repo, _build_indexed_release_notes(repo)) == [] - - -@pytest.mark.parametrize( - "package,version", - [ - ("cuda_bindings_12", "12.9.10"), - ("cuda_bindings_13", "13.5.0"), - ("cuda_python", "12.9.10"), - ("cuda_python", "13.5.0"), - ("cuda_core", "1.3.1"), - ("cuda_pathfinder", "1.9.1"), - ], -) -@pytest.mark.agent_authored(model="gpt-6") -def test_pre_policy_release_notes_do_not_require_selector_entries(repo, package, version): - stage_file(repo, f"{package}/docs/source/release/{version}-notes.rst", "Release notes.\n") - - assert version_selector_errors(repo, _build_indexed_release_notes(repo)) == [] - - -@pytest.mark.agent_authored(model="gpt-6") -def test_unstaged_json_correction_does_not_replace_the_staged_selector(repo): - selector = "cuda_core/docs/nv-versions.json" - stage_file(repo, "cuda_core/docs/source/release/1.3.2-notes.rst", "Release notes.\n") - stage_file( - repo, - selector, - json.dumps([{"version": "1.3.2", "url": "https://nvidia.github.io/cuda-python/cuda-core/latest/"}]), - ) - staged_errors = version_selector_errors(repo, _build_indexed_release_notes(repo)) - assert len(staged_errors) == 1 - (repo / selector).write_text( - json.dumps([{"version": "1.3.2", "url": "https://nvidia.github.io/cuda-python/cuda-core/1.3.2/"}]), - encoding="utf-8", - ) - - assert version_selector_errors(repo, _build_indexed_release_notes(repo)) == staged_errors - - git(repo, "add", selector) - assert version_selector_errors(repo, _build_indexed_release_notes(repo)) == [] - - -@pytest.mark.agent_authored(model="gpt-6") -def test_staged_selector_deletion_fails_even_without_release_notes(repo): - selector = "cuda_core/docs/nv-versions.json" - git(repo, "rm", "--cached", selector) - assert (repo / selector).is_file() - - with pytest.raises(subprocess.CalledProcessError): - version_selector_errors(repo, _build_indexed_release_notes(repo)) - - -@pytest.mark.agent_authored(model="GPT-6") -def test_unreleased_bindings_root_keeps_the_current_selector_for_maintenance_notes(repo): - entries = [{"version": "13.5.1", "url": "https://nvidia.github.io/cuda-python/cuda-bindings/13.5.1/"}] - stage_file(repo, "cuda_bindings_13/docs/source/release/13.5.1-notes.rst", "Release notes.\n") - stage_file(repo, "cuda_bindings_13/docs/nv-versions.json", json.dumps(entries)) - stage_file(repo, "cuda_bindings_14/docs/source/release/14.X.Y-notes.rst", "Future release template.\n") - - assert version_selector_errors(repo, _build_indexed_release_notes(repo)) == [] - - selector = "cuda_bindings_13/docs/nv-versions.json" - note = stage_file(repo, "cuda_bindings_12/docs/source/release/12.9.11-notes.rst", "Release notes.\n") - errors = version_selector_errors(repo, _build_indexed_release_notes(repo)) - assert len(errors) == 1 - assert all(value in errors[0] for value in (note, "12.9.11", selector)) - - entries.append({"version": "12.9.11", "url": "https://nvidia.github.io/cuda-python/cuda-bindings/12.9.11/"}) - stage_file(repo, selector, json.dumps(entries)) - assert version_selector_errors(repo, _build_indexed_release_notes(repo)) == [] - - -@pytest.mark.agent_authored(model="GPT-6") -def test_retiring_the_oldest_staged_bindings_root_advances_selector_ownership(repo): - entries = [{"version": "13.5.1", "url": "https://nvidia.github.io/cuda-python/cuda-bindings/13.5.1/"}] - note = stage_file(repo, "cuda_bindings_13/docs/source/release/13.5.1-notes.rst", "Release notes.\n") - stage_file(repo, "cuda_bindings_13/docs/nv-versions.json", json.dumps(entries)) - stage_file(repo, "cuda_bindings_14/docs/source/release/14.X.Y-notes.rst", "Future release template.\n") - assert version_selector_errors(repo, _build_indexed_release_notes(repo)) == [] - - git(repo, "rm", "--cached", "-r", "cuda_bindings_12") - assert (repo / "cuda_bindings_12/README.md").is_file() - with pytest.raises(subprocess.CalledProcessError): - version_selector_errors(repo, _build_indexed_release_notes(repo)) - - selector = "cuda_bindings_14/docs/nv-versions.json" - stage_file(repo, selector, "[]\n") - errors = version_selector_errors(repo, _build_indexed_release_notes(repo)) - assert len(errors) == 1 - assert all(value in errors[0] for value in (note, "13.5.1", selector)) - - stage_file(repo, selector, json.dumps(entries)) - assert version_selector_errors(repo, _build_indexed_release_notes(repo)) == [] - - -@pytest.mark.agent_authored(model="GPT-6") -def test_canonical_bindings_root_uses_numeric_major_order(repo): - entries = [{"version": "13.5.1", "url": "https://nvidia.github.io/cuda-python/cuda-bindings/13.5.1/"}] - stage_file(repo, "cuda_bindings_9/README.md", "Older bindings root.\n") - note = stage_file(repo, "cuda_bindings_13/docs/source/release/13.5.1-notes.rst", "Release notes.\n") - stage_file(repo, "cuda_bindings_13/docs/nv-versions.json", json.dumps(entries)) - selector = "cuda_bindings_12/docs/nv-versions.json" - stage_file(repo, selector, "[]\n") - - errors = version_selector_errors(repo, _build_indexed_release_notes(repo)) - assert len(errors) == 1 - assert all(value in errors[0] for value in (note, "13.5.1", selector)) - - stage_file(repo, selector, json.dumps(entries)) - assert version_selector_errors(repo, _build_indexed_release_notes(repo)) == [] diff --git a/cuda_bindings_12/docs/README.md b/cuda_bindings_12/docs/README.md index b533f56e3492..6156eadc6c02 100644 --- a/cuda_bindings_12/docs/README.md +++ b/cuda_bindings_12/docs/README.md @@ -6,10 +6,14 @@ The aggregate `cuda_python/docs/build_all_docs.sh` script builds the current CUDA 13 line, so build this maintenance documentation separately. 1. Install the CUDA 12 `cuda-bindings` build that you need to document. -2. Ensure the version is included in the canonical - [`nv-versions.json`](../../cuda_bindings_13/docs/nv-versions.json). -3. Build the docs with `./build_docs.sh`. -4. The html artifacts should be available under both `./build/html/latest` and `./build/html/`. +2. Build the docs with `./build_docs.sh`. +3. The html artifacts should be available under both `./build/html/latest` and + `./build/html/`. + +A local build does not require a version-selector entry. Add the version to the +canonical [`nv-versions.json`](../../cuda_bindings_13/docs/nv-versions.json) +on `main` only after the package is published and its versioned documentation +is deployed. The Pixi `docs` environment currently installs a published `12.9.*` package. To document APIs changed in the checkout, install the matching source build diff --git a/cuda_bindings_13/docs/README.md b/cuda_bindings_13/docs/README.md index c0311407c28c..684761e72ec4 100644 --- a/cuda_bindings_13/docs/README.md +++ b/cuda_bindings_13/docs/README.md @@ -1,9 +1,13 @@ # Build the documentation 1. Install the CUDA 13 `cuda-bindings` build that you need to document. -2. Ensure the version is included in the [`nv-versions.json`](./nv-versions.json). -3. Build the docs with `./build_docs.sh`. -4. The html artifacts should be available under both `./build/html/latest` and `./build/html/`. +2. Build the docs with `./build_docs.sh`. +3. The html artifacts should be available under both `./build/html/latest` and + `./build/html/`. + +A local build does not require a version-selector entry. Add the version to +[`nv-versions.json`](./nv-versions.json) on `main` only after the package is +published and its versioned documentation is deployed. [`cuda_python/docs/build_all_docs.sh`](../../cuda_python/docs/build_all_docs.sh) builds this current bindings line together with the metapackage, Core, and diff --git a/cuda_core/docs/README.md b/cuda_core/docs/README.md index aae9ebf98525..613fad8376f8 100644 --- a/cuda_core/docs/README.md +++ b/cuda_core/docs/README.md @@ -1,9 +1,13 @@ # Build the documentation 1. Install the `cuda-core` package of the version that we need to document. -2. Ensure the version is included in the [`nv-versions.json`](./nv-versions.json). -3. Build the docs with `./build_docs.sh`. -4. The html artifacts should be available under both `./build/html/latest` and `./build/html/`. +2. Build the docs with `./build_docs.sh`. +3. The html artifacts should be available under both `./build/html/latest` and + `./build/html/`. + +A local build does not require a version-selector entry. Add the version to +[`nv-versions.json`](./nv-versions.json) on `main` only after the package is +published and its versioned documentation is deployed. For local development, `cuda_core/pixi.toml` now includes a dedicated `docs` environment that mirrors the CI Sphinx dependencies: diff --git a/cuda_core/docs/nv-versions.json b/cuda_core/docs/nv-versions.json index 6331b7d0ccd3..5f3975fc5144 100644 --- a/cuda_core/docs/nv-versions.json +++ b/cuda_core/docs/nv-versions.json @@ -3,10 +3,6 @@ "version": "latest", "url": "https://nvidia.github.io/cuda-python/cuda-core/latest/" }, - { - "version": "1.4.0", - "url": "https://nvidia.github.io/cuda-python/cuda-core/1.4.0/" - }, { "version": "1.3.1", "url": "https://nvidia.github.io/cuda-python/cuda-core/1.3.1/" diff --git a/cuda_pathfinder/docs/README.md b/cuda_pathfinder/docs/README.md index 47b62fc67710..71bdd6eb5b30 100644 --- a/cuda_pathfinder/docs/README.md +++ b/cuda_pathfinder/docs/README.md @@ -1,9 +1,13 @@ # Build the documentation 1. Install the `cuda-pathfinder` package of the version that we need to document. -2. Ensure the version is included in the [`nv-versions.json`](./nv-versions.json). -3. Build the docs with `./build_docs.sh`. -4. The html artifacts should be available under both `./build/html/latest` and `./build/html/`. +2. Build the docs with `./build_docs.sh`. +3. The html artifacts should be available under both `./build/html/latest` and + `./build/html/`. + +A local build does not require a version-selector entry. Add the version to +[`nv-versions.json`](./nv-versions.json) on `main` only after the package is +published and its versioned documentation is deployed. Alternatively, we can build all the docs at once by running [`cuda_python/docs/build_all_docs.sh`](../../cuda_python/docs/build_all_docs.sh). diff --git a/cuda_python/docs/README.md b/cuda_python/docs/README.md index 76b46c7d0613..a308779d52d1 100644 --- a/cuda_python/docs/README.md +++ b/cuda_python/docs/README.md @@ -1,8 +1,12 @@ # Build the documentation -1. Ensure the version is included in the [`versions.json`](./versions.json). -2. Build the docs with `./build_docs.sh`. -3. The html artifacts should be available under both `./build/html/latest` and `./build/html/`. +1. Build the docs with `./build_docs.sh`. +2. The html artifacts should be available under both `./build/html/latest` and + `./build/html/`. + +A local build does not require a version-selector entry. Add the version to +[`nv-versions.json`](./nv-versions.json) on `main` only after the package is +published and its versioned documentation is deployed. [`./build_all_docs.sh`](./build_all_docs.sh) builds the metapackage, current CUDA 13 bindings, Core, and Pathfinder documentation together. It does not @@ -23,5 +27,5 @@ ssh -L 1234:localhost:1234 username@hostname ``` Then browse the built docs by visiting `http://localhost:1234/` on a local machine. -To publish the docs with the built version, it is important to note that the html files of older versions -should be kept intact, in order for the version selection (through `versions.json`) to work. +Keep older versioned HTML pages intact so existing version-selector entries +continue to work. From 7de038ba1d94988c92379142897122bea9ed898a Mon Sep 17 00:00:00 2001 From: Ralf Juengling Date: Fri, 20 Nov 2026 18:29:38 -0800 Subject: [PATCH 79/85] fix(cuda.core): share ownership of repeat imports of an IPC memory pool (#3511) fix(cuda.core): keep access to IPC pools imported more than once (#3510) Each import of an IPC memory pool now has a single owner, found through a registry, which counts its imports and destroys the pool that many times. Access is revoked only when the last import is released, so closing one import no longer breaks the others, for pinned or device pools. An import that overlaps the last release waits until that release finishes instead of reusing a pool that is being torn down. IPC pointer imports use the same mechanism, and DeviceMemoryResource.from_allocation_handle keeps the device ID of a resource that is already registered. --- cuda_core/cuda/core/_cpp/rt/DESIGN.md | 11 +- .../cuda/core/_cpp/rt/REGISTRY_DESIGN.md | 16 + cuda_core/cuda/core/_cpp/rt/api.hpp | 10 +- cuda_core/cuda/core/_cpp/rt/internal.hpp | 79 ++++- cuda_core/cuda/core/_cpp/rt/memory.cpp | 293 +++++++++++------ .../core/_memory/_device_memory_resource.pyi | 4 +- .../core/_memory/_device_memory_resource.pyx | 18 +- cuda_core/cuda/core/_memory/_ipc.pxd | 7 +- cuda_core/cuda/core/_memory/_ipc.pyi | 2 +- cuda_core/cuda/core/_memory/_ipc.pyx | 61 ++-- cuda_core/cuda/core/_memory/_memory_pool.pxd | 3 +- cuda_core/cuda/core/_memory/_memory_pool.pyx | 26 +- .../core/_memory/_pinned_memory_resource.pyx | 11 +- cuda_core/cuda/core/_rt.pyi | 7 + cuda_core/cuda/core/_rt.pyx | 12 + cuda_core/docs/source/release/1.4.0-notes.rst | 16 + .../test_ipc_pool_duplicate_import.py | 309 ++++++++++++++++++ cuda_core/tests/test_rt_layout.py | 2 +- 18 files changed, 739 insertions(+), 148 deletions(-) create mode 100644 cuda_core/tests/memory_ipc/test_ipc_pool_duplicate_import.py diff --git a/cuda_core/cuda/core/_cpp/rt/DESIGN.md b/cuda_core/cuda/core/_cpp/rt/DESIGN.md index 1d550a4c03fd..9973118cb3c8 100644 --- a/cuda_core/cuda/core/_cpp/rt/DESIGN.md +++ b/cuda_core/cuda/core/_cpp/rt/DESIGN.md @@ -305,17 +305,18 @@ one-time function-table fill (`ensure_fn_table()`). Neither may run while a C++ lock is held. **The GIL is the outermost lock.** Code that holds a C++ lock (a registry's -mutex, `ipc_import_mutex`, any `std::mutex`) must not acquire or reacquire the +mutex, any `std::mutex`) must not acquire or reacquire the GIL while the lock is held: no `report_*` or `pw_*` calls, no `GILAcquireGuard`, and no `GILReleaseGuard` whose destructor runs inside the locked region. Code that needs a C++ lock and may run with the GIL held releases the GIL first (`GILReleaseGuard` before `lock_guard`). Otherwise a thread blocked on the lock while holding the GIL deadlocks with the lock holder waiting for the GIL (#2840). Collect statuses under the lock and report after it -is released, as `deviceptr_import_ipc` does: `cleanup_in_context` takes an -`after_cleanup` hook that runs once the cleanup is done and before anything that -may run user code, and the deleter passes one that unlocks its -`std::unique_lock`. The registries store `weak_ptr`s, +is released, as `deviceptr_import_ipc` does for a discarded import. A deleter +that must update shared state before user code can run does so in +`cleanup_in_context`'s `after_cleanup` hook, which runs once the cleanup is done +and before anything that may run user code; the IPC pointer deleter releases its +registry entry there. The registries store `weak_ptr`s, so erasing an entry under a registry lock never runs a deleter. ### Static Initialization and Deadlock Hazards diff --git a/cuda_core/cuda/core/_cpp/rt/REGISTRY_DESIGN.md b/cuda_core/cuda/core/_cpp/rt/REGISTRY_DESIGN.md index 003887f296cd..8fb71e13a9f1 100644 --- a/cuda_core/cuda/core/_cpp/rt/REGISTRY_DESIGN.md +++ b/cuda_core/cuda/core/_cpp/rt/REGISTRY_DESIGN.md @@ -33,6 +33,22 @@ Instances: `context_registry`, `stream_registry`, `event_registry`, `kernel_registry`, and, per `GraphBox`, one registry for its direct child graphs and one for its nodes. +### Imports that wait for an in-flight release + +IPC imports use `ReleasingHandleRegistry`, a variant whose entry outlives its +handle's last reference. Only the owner's deleter removes the entry, with +`release()`, after its last driver call on the resource. `get_or_create()` +waits while the entry under its key has expired, so a new owner never overlaps +the previous owner's cleanup, even when the last reference was dropped by a +dependent handle that the importing thread cannot synchronize with. + +Instances: `ipc_pool_registry` maps an imported `CUmemoryPool` to its owner, +because every import of a pool in a process returns the same `CUmemoryPool` +(#3510); the owner's cleanup revokes access and destroys the imports. +`ipc_ptr_cache` maps a `CUmemPoolPtrExportData` descriptor to its imported +pointer, because a re-import before the previous mapping is freed would share +that mapping (nvbug 5570902). + ### Reused graph handles A `GraphHandle` weak reference locks whenever any handle of its hierarchy is diff --git a/cuda_core/cuda/core/_cpp/rt/api.hpp b/cuda_core/cuda/core/_cpp/rt/api.hpp index 40642ab2f260..97355aea4a8d 100644 --- a/cuda_core/cuda/core/_cpp/rt/api.hpp +++ b/cuda_core/cuda/core/_cpp/rt/api.hpp @@ -184,7 +184,10 @@ MemoryPoolHandle get_device_mempool(int device_id); // Create an owning memory pool handle from an IPC import. // The file descriptor is NOT owned by this handle (caller manages FD separately). -// When the last reference is released, cuMemPoolDestroy is called automatically. +// Repeat imports of one pool share one handle, because access settings belong to +// the pool rather than to an import (#3510). When the last reference is released, +// access is revoked and cuMemPoolDestroy is called once for every import. An +// import that races that release waits until it is done. // Returns empty handle on error (caller must check). MemoryPoolHandle create_mempool_handle_ipc(int fd, CUmemAllocationHandleType handle_type); @@ -306,6 +309,11 @@ size_t va_reservation_size(const VaReservationHandle &h) noexcept; long long live_owned_mempool_count() noexcept; long long live_va_reservation_count() noexcept; +// Test hook: the owner of an imported pool sleeps this long after its last +// reference is released and before it revokes access, so that a re-import can +// be made to race the release. 0 (the default) disables the delay. +void set_ipc_pool_release_delay_for_testing(unsigned int microseconds) noexcept; + // Map the whole allocation at ptr inside the reservation via cuMemMap and // apply the allocation's access descriptors. The mapping structurally depends // on both handles. When the last reference is released, cuMemUnmap is called diff --git a/cuda_core/cuda/core/_cpp/rt/internal.hpp b/cuda_core/cuda/core/_cpp/rt/internal.hpp index bc5e4cadade1..355f4445ff6e 100644 --- a/cuda_core/cuda/core/_cpp/rt/internal.hpp +++ b/cuda_core/cuda/core/_cpp/rt/internal.hpp @@ -7,6 +7,7 @@ #include "types.hpp" #include "driver_api.hpp" #include "error.hpp" +#include #include #include #include @@ -192,7 +193,6 @@ class HandleRegistry { std::scoped_lock lock(mutex_); map_.erase(key); } - Handle lookup(const Key &key) { @@ -244,4 +244,81 @@ class HandleRegistry { MapType map_; }; +// ============================================================================ +// Handle registry that waits for in-flight releases +// +// Like HandleRegistry, but an entry outlives its handle's last reference: only +// the owner's deleter removes it, by calling release() once its cleanup is +// done. get_or_create() waits while the entry under its key has expired, so a +// new owner is never created while the previous owner is still releasing the +// resource. Used where the driver hands the same resource to repeat imports +// (IPC pools and IPC pointers), so a new owner and an old owner's cleanup +// would act on one driver resource. See REGISTRY_DESIGN.md. +// ============================================================================ + +template > +class ReleasingHandleRegistry { + public: + // Return the live handle registered under key, waiting first while the + // previous owner's release is in flight. Otherwise register and return the + // handle that create() returns; an empty handle is returned unregistered. + // create() runs under the registry's mutex, so it must not acquire the GIL + // or release a handle whose deleter calls release(). + template + Handle + get_or_create(const Key &key, Factory &&create) + { + std::unique_lock lock(mutex_); + for (auto it = map_.find(key); it != map_.end(); it = map_.find(key)) { + if (Handle h = it->second.handle.lock()) { + return h; + } + released_.wait(lock); + } + // Insert before creating, so a failed insertion has nothing to undo. + auto it = map_.try_emplace(key).first; + Handle h; + try { + h = create(); + } + catch (...) { + map_.erase(it); + throw; + } + if (h) { + it->second = Entry{h, h.get()}; + } + else { + map_.erase(it); + } + return h; + } + + // Called by an owner's deleter after its last driver call on the resource: + // erase key's entry if it belongs to the handle that pointed to resource, + // and wake the importers waiting for it. + void + release(const Key &key, const typename Handle::element_type *resource) noexcept + { + { + std::scoped_lock lock(mutex_); + auto it = map_.find(key); + if (it != map_.end() && it->second.resource == resource) { + map_.erase(it); + } + } + released_.notify_all(); + } + + private: + struct Entry { + std::weak_ptr handle; + const typename Handle::element_type *resource = nullptr; + }; + + std::mutex mutex_; + std::condition_variable released_; + std::unordered_map map_; +}; + } // namespace cuda_core::rt::detail diff --git a/cuda_core/cuda/core/_cpp/rt/memory.cpp b/cuda_core/cuda/core/_cpp/rt/memory.cpp index 3cf92649dc4c..53653963447c 100644 --- a/cuda_core/cuda/core/_cpp/rt/memory.cpp +++ b/cuda_core/cuda/core/_cpp/rt/memory.cpp @@ -9,13 +9,13 @@ #include "error.hpp" #include "internal.hpp" #include -#include +#include #include +#include #include #include -#include #include -#include +#include #include #ifndef _WIN32 #include @@ -40,8 +40,17 @@ struct MemoryPoolBox { // Read by the test suite to gate the per-test gc.collect(); atomic for // free-threaded builds. std::atomic g_live_owned_mempools{0}; + +// See set_ipc_pool_release_delay_for_testing. +std::atomic g_ipc_pool_release_delay_us{0}; } // namespace +void +set_ipc_pool_release_delay_for_testing(unsigned int microseconds) noexcept +{ + g_ipc_pool_release_delay_us.store(microseconds, std::memory_order_relaxed); +} + // Helper to clear peer access before destroying a memory pool. // Works around nvbug 5698116: recycled pool handles inherit peer access state. // The driver validates a request as a whole and rejects it if any entry cannot @@ -136,16 +145,112 @@ get_device_mempool(int device_id) return create_mempool_handle_ref(pool); } +// Importing a pool that is already imported in this process returns the same +// CUmemoryPool and adds a driver reference: each import needs its own +// cuMemPoolDestroy, and one made while allocations imported from the pool are +// outstanding fails without dropping its reference. Access settings belong to +// the pool, not to an import, so revoking them on behalf of one import +// (nvbug 5698116) would remove access that another import relies on (#3510). +// All imports of a pool therefore share one owner, found through +// ipc_pool_registry. It counts the imports and, when its last reference is +// released, revokes access once and then destroys every import. An import that +// finds the owner's release in flight waits for it, even when the last +// reference was dropped by a buffer and not by a resource the importer could +// synchronize with: the revocation would remove access granted by a new owner, +// and a destroy fails once the new owner has imported a buffer. +namespace { +struct IpcMemoryPoolBox { + CUmemoryPool resource; + // The imports this box owns: 0 until it becomes the pool's owner, then + // one for every import of the pool. + mutable std::atomic imports{0}; +}; + +const IpcMemoryPoolBox * +get_ipc_box(const MemoryPoolHandle &h) +{ + const CUmemoryPool *p = h.get(); + return reinterpret_cast( + reinterpret_cast(p) - offsetof(IpcMemoryPoolBox, resource) + ); +} +} // namespace + +// See REGISTRY_DESIGN.md (Level 1: Driver Handle -> Resource Handle) +static ReleasingHandleRegistry ipc_pool_registry; + MemoryPoolHandle create_mempool_handle_ipc(int fd, CUmemAllocationHandleType handle_type) { + // Released before the registry can wait: the owner's deleter may need it. GILReleaseGuard gil; - CUmemoryPool pool; + // Allocate before importing: a failed allocation then has nothing to undo. + // clang-format off + auto box = std::shared_ptr( + new IpcMemoryPoolBox{}, + [](const IpcMemoryPoolBox *b) { + // Shared ownership synchronizes the increments with this load. + std::size_t imports = b->imports.load(std::memory_order_relaxed); + if (imports > 0) { + GILReleaseGuard gil; + if (unsigned int delay = g_ipc_pool_release_delay_us.load(std::memory_order_relaxed)) { + std::this_thread::sleep_for(std::chrono::microseconds(delay)); + } + clear_mempool_peer_access(b->resource, -1); + const std::size_t total = imports; + std::size_t failed = 0; + CUresult first_failure = CUDA_SUCCESS; + for (; imports > 0; --imports) { + if (CUresult s = DRIVER_CALL(cuMemPoolDestroy, b->resource); s != CUDA_SUCCESS) { + if (failed++ == 0) { + first_failure = s; + } + } + } + g_live_owned_mempools.fetch_sub(1, std::memory_order_relaxed); + // Wake waiting importers before reporting: a report can run + // user code, which could import this pool again. + ipc_pool_registry.release(b->resource, &b->resource); + if (failed > 0) { + char operation[kOperationNameSize]; + format_operation(operation, sizeof(operation), "cuMemPoolDestroy", handle_bits(b->resource)); + char detail[kErrorMessageSize]; + std::snprintf(detail, sizeof(detail), "failed %zu of %zu times, first with", failed, total); + report_cuda_error(operation, first_failure, total > 1 ? detail : nullptr); + } + } + delete b; + } + ); + // clang-format on auto *handle_ptr = reinterpret_cast(static_cast(fd)); - if (CUDA_SUCCESS != (err = DRIVER_CALL(cuMemPoolImportFromShareableHandle, &pool, handle_ptr, handle_type, 0))) { + if (CUDA_SUCCESS != + (err = DRIVER_CALL(cuMemPoolImportFromShareableHandle, &box->resource, handle_ptr, handle_type, 0))) { return {}; } - return wrap_mempool_owned(pool, -1); + + MemoryPoolHandle h(box, &box->resource); + MemoryPoolHandle owner; + try { + owner = ipc_pool_registry.get_or_create(box->resource, [&]() noexcept { + box->imports.store(1, std::memory_order_relaxed); + return h; + }); + } + catch (...) { + // The box owns no import yet, so its deleter would not drop this one. + pw_cuMemPoolDestroy(box->resource); + throw; + } + if (owner == h) { + g_live_owned_mempools.fetch_add(1, std::memory_order_relaxed); + } + else { + // An earlier import's box owns the pool; it now holds this import's + // driver reference too. + get_ipc_box(owner)->imports.fetch_add(1, std::memory_order_relaxed); + } + return owner; } // ============================================================================ @@ -521,21 +626,13 @@ struct ExportDataKeyHash { } }; -// The handle imported for one descriptor, and the box it aliases. -struct IpcCacheEntry { - std::weak_ptr handle; - const DevicePtrBox *box; -}; - } // namespace -// Guarded by ipc_import_mutex. An entry outlives its handle's last reference: -// only that handle's deleter erases it, under the mutex, together with the -// free. An importer that finds an expired entry therefore knows a release of -// the same mapping is in flight and waits on ipc_release_cv until it is done. -static std::unordered_map ipc_ptr_cache; -static std::mutex ipc_import_mutex; -static std::condition_variable ipc_release_cv; +// An importer that finds an expired entry waits until the previous handle's +// deleter has freed the mapping: a re-import before then would share that +// mapping, and the deleter's cuMemFreeAsync would unmap it under the new +// handle (nvbug 5570902). +static ReleasingHandleRegistry ipc_ptr_cache; DevicePtrHandle deviceptr_import_ipc(const MemoryPoolHandle &h_pool, const void *export_data, const StreamHandle &h_stream) @@ -543,7 +640,7 @@ deviceptr_import_ipc(const MemoryPoolHandle &h_pool, const void *export_data, co auto *data = const_cast(reinterpret_cast(export_data)); // Resolve the table before you take any lock: a fill acquires the GIL, and - // nothing under ipc_import_mutex may acquire it (#2840). The raw p_ calls + // nothing under the cache's mutex may acquire it (#2840). The raw p_ calls // below rely on this. if (!ensure_fn_table(FnTable::driver)) { report_unavailable_fn(FnTable::driver, "cuMemPoolImportPointer"); @@ -555,91 +652,91 @@ deviceptr_import_ipc(const MemoryPoolHandle &h_pool, const void *export_data, co ExportDataKey key; std::memcpy(&key.data, data, sizeof(key.data)); - // The mutex makes lookup, import and registration one step, so two - // threads cannot import the same descriptor twice. Release the GIL - // before taking it: a thread blocked on the mutex while holding the - // GIL would deadlock with a holder that needs the GIL back (#2840). - // Nothing under the mutex may acquire the GIL, so a failed discard is - // reported only after the lock is released (see DESIGN.md). + // Release the GIL before the cache's mutex is taken: a thread blocked + // on it while holding the GIL would deadlock with a holder that needs + // the GIL back (#2840). GILReleaseGuard gil; - CUresult discard_status = CUDA_SUCCESS; - CUdeviceptr discarded = 0; - { - std::unique_lock lock(ipc_import_mutex); - - for (auto it = ipc_ptr_cache.find(key); it != ipc_ptr_cache.end(); it = ipc_ptr_cache.find(key)) { - if (DevicePtrHandle h = it->second.handle.lock()) { - return h; + // Allocate before taking the mutex: a failed allocation then cannot run + // a deleter under it. The box owns nothing until it holds an import. + // clang-format off + auto box = std::shared_ptr( + new DevicePtrBox{0, DeallocationStream{}}, + [h_pool, key](DevicePtrBox *b) { + if (b->resource != 0) { + GILReleaseGuard gil; + const DeallocationStream& stream = b->deallocation; + // Release the entry once the mapping is freed, and before + // reporting: a report can run user code. + cleanup_in_context( + deallocation_context(stream), "cuMemFreeAsync", handle_bits(b->resource), + [&]() noexcept { + return DRIVER_CALL(cuMemFreeAsync, b->resource, as_cu(stream.h_stream)); + }, + [&]() noexcept { ipc_ptr_cache.release(key, &b->resource); }); } - // Expired but not erased: the last reference is gone and its - // deleter has not freed the mapping yet. A re-import now would - // share that mapping, and the deleter's cuMemFreeAsync would - // unmap it under us (nvbug 5570902). Wait for the release. - ipc_release_cv.wait(lock); - } - - CUdeviceptr ptr; - if (CUDA_SUCCESS != (err = p_cuMemPoolImportPointer(&ptr, *h_pool, data))) { // raw: under ipc_import_mutex - return {}; + delete b; } - - DeallocationStream ds; - if (make_deallocation_stream(h_stream, ds)) { - // clang-format off - auto box = std::shared_ptr( - new DevicePtrBox{ptr, std::move(ds)}, - [h_pool, key](DevicePtrBox *b) { - // Release the GIL first (the GIL is the outermost lock), then hold the - // mutex across unregister + free: a concurrent import that finds this - // entry expired must wait until the mapping is gone, or it re-imports - // the same allocation and the first cuMemFreeAsync unmaps it for both - // (nvbug 5570902). Nothing under the mutex may acquire the GIL, so the - // deallocation context is resolved before the lock (it may report) and - // the lock is released as soon as the cleanup is done. - GILReleaseGuard gil; - const DeallocationStream& stream = b->deallocation; - ContextHandle h_dealloc = deallocation_context(stream); - // Explicit template argument: MSVC cannot deduce it here (C2955). - std::unique_lock lock(ipc_import_mutex); - // Erase only this box's entry (importers wait while it - // exists, so no other box can own the key yet). - auto entry = ipc_ptr_cache.find(key); - if (entry != ipc_ptr_cache.end() && entry->second.box == b) { - ipc_ptr_cache.erase(entry); - } - cleanup_in_context( - h_dealloc, "cuMemFreeAsync", handle_bits(b->resource), - [&]() noexcept { - return p_cuMemFreeAsync(b->resource, as_cu(stream.h_stream)); // raw: under ipc_import_mutex - }, - [&]() noexcept { - ipc_release_cv.notify_all(); - lock.release()->unlock(); - }); - delete b; - } + ); + // clang-format on + DevicePtrHandle h(box, &box->resource); + + // The factory runs under the cache's mutex, which makes lookup, import + // and registration one step: two threads cannot import the same + // descriptor twice. Nothing under the mutex may acquire the GIL, so a + // failed discard is reported only after the lock is released (see + // DESIGN.md). + CUresult discard_status = CUDA_SUCCESS; + CUdeviceptr discarded = 0; + auto report_failed_discard = [&]() noexcept { + if (discard_status != CUDA_SUCCESS) { + char operation[kOperationNameSize]; + format_operation(operation, sizeof(operation), "cuMemFreeAsync", discarded); + report_cuda_error( + operation, + discard_status, + "failed while discarding an IPC import that could not record a " + "deallocation stream; the mapping leaked" ); - // clang-format on - DevicePtrHandle h(box, &box->resource); - ipc_ptr_cache[key] = IpcCacheEntry{h, box.get()}; - return h; } - - // No deallocation stream could be recorded: discard the import with - // the raw call (a pw_ report would acquire the GIL under the mutex). - discard_status = p_cuMemFreeAsync(ptr, as_cu(h_stream)); // raw: under ipc_import_mutex - discarded = ptr; + }; + DevicePtrHandle imported; + try { + imported = ipc_ptr_cache.get_or_create(key, [&]() -> DevicePtrHandle { + CUdeviceptr ptr; + if (CUDA_SUCCESS != + (err = p_cuMemPoolImportPointer(&ptr, *h_pool, data))) { // raw: under the cache's mutex + return {}; + } + // No deallocation stream could be recorded: discard the import + // with the raw call (a pw_ report would acquire the GIL) before + // the mutex is released, or a concurrent import would share the + // mapping this free unmaps. + bool recorded; + try { + recorded = make_deallocation_stream(h_stream, box->deallocation); + } + catch (...) { + discard_status = p_cuMemFreeAsync(ptr, as_cu(h_stream)); // raw: under the cache's mutex + discarded = ptr; + throw; + } + if (!recorded) { + discard_status = p_cuMemFreeAsync(ptr, as_cu(h_stream)); // raw: under the cache's mutex + discarded = ptr; + return {}; + } + box->resource = ptr; + return h; + }); + } + catch (...) { + report_failed_discard(); + throw; } - if (discard_status != CUDA_SUCCESS) { - char operation[kOperationNameSize]; - format_operation(operation, sizeof(operation), "cuMemFreeAsync", discarded); - report_cuda_error( - operation, - discard_status, - "failed while discarding an IPC import that could not record a " - "deallocation stream; the mapping leaked" - ); + if (imported) { + return imported; } + report_failed_discard(); return {}; } GILReleaseGuard gil; diff --git a/cuda_core/cuda/core/_memory/_device_memory_resource.pyi b/cuda_core/cuda/core/_memory/_device_memory_resource.pyi index ff16f8bef928..4dfa8cb57b92 100644 --- a/cuda_core/cuda/core/_memory/_device_memory_resource.pyi +++ b/cuda_core/cuda/core/_memory/_device_memory_resource.pyi @@ -166,7 +166,9 @@ class DeviceMemoryResource(_MemPool): Returns ------- - A new device memory resource instance with the imported handle. + A new device memory resource instance with the imported handle. If + the handle's memory resource is already registered in this process, + that resource is returned with its original device. """ @property def allocation_handle(self) -> IPCAllocationHandle: diff --git a/cuda_core/cuda/core/_memory/_device_memory_resource.pyx b/cuda_core/cuda/core/_memory/_device_memory_resource.pyx index b7df931cdac3..a747c5b375df 100644 --- a/cuda_core/cuda/core/_memory/_device_memory_resource.pyx +++ b/cuda_core/cuda/core/_memory/_device_memory_resource.pyx @@ -209,13 +209,14 @@ cdef class DeviceMemoryResource(_MemPool): Returns ------- - A new device memory resource instance with the imported handle. + A new device memory resource instance with the imported handle. If + the handle's memory resource is already registered in this process, + that resource is returned with its original device. """ - cdef DeviceMemoryResource mr = ( - _ipc.MP_from_allocation_handle(cls, alloc_handle)) from .._device import Device - mr._dev_id = Device(device_id).device_id - return mr + dev_id = Device(device_id).device_id + return ( + _ipc.MP_from_allocation_handle(cls, alloc_handle, _DMR_init_imported, dev_id)) @property def allocation_handle(self) -> IPCAllocationHandle: @@ -312,6 +313,13 @@ cdef inline _DMR_init(DeviceMemoryResource self, device_id, options): ) +cdef int _DMR_init_imported(_MemPool mr, object dev_id) except? -1: + # Runs before the resource is registered: a concurrent import of the same + # UUID returns it from the registry and must not write to it. + (mr)._dev_id = dev_id + return 0 + + # Note: this is referenced in instructions to debug nvbug 5698116. cpdef str DMR_mempool_get_access(DeviceMemoryResource dmr, int device_id): """ diff --git a/cuda_core/cuda/core/_memory/_ipc.pxd b/cuda_core/cuda/core/_memory/_ipc.pxd index ddc28ce52be8..5fddd4a4562f 100644 --- a/cuda_core/cuda/core/_memory/_ipc.pxd +++ b/cuda_core/cuda/core/_memory/_ipc.pxd @@ -79,10 +79,11 @@ cdef Buffer Buffer_from_ipc_descriptor(cls, object, IPCBufferDescriptor, stream) # _MemPool IPC Implementation # --------------------------- -# Initializes a newly imported pool before MP_from_allocation_handle registers it. -ctypedef int (*MP_import_init_t)(_MemPool) except? -1 +# Initializes a newly imported pool before MP_from_allocation_handle registers +# it. The second argument is the init_arg passed to MP_from_allocation_handle. +ctypedef int (*MP_import_init_t)(_MemPool, object) except? -1 -cdef _MemPool MP_from_allocation_handle(cls, alloc_handle, MP_import_init_t init=*) +cdef _MemPool MP_from_allocation_handle(cls, alloc_handle, MP_import_init_t init=*, object init_arg=*) cdef _MemPool MP_from_registry(uuid) cdef _MemPool MP_register(_MemPool, uuid) cdef IPCAllocationHandle MP_export_mempool(_MemPool) diff --git a/cuda_core/cuda/core/_memory/_ipc.pyi b/cuda_core/cuda/core/_memory/_ipc.pyi index ff871073e62f..ebeb839b058e 100644 --- a/cuda_core/cuda/core/_memory/_ipc.pyi +++ b/cuda_core/cuda/core/_memory/_ipc.pyi @@ -8,7 +8,7 @@ from cuda.core.typing import VirtualMemoryHandleType from typing_extensions import TypeAlias __all__ = [] -MP_import_init_t: TypeAlias = Callable[[_MemPool], int] +MP_import_init_t: TypeAlias = Callable[[_MemPool, object], int] class IPCDataForBuffer: """Data members related to sharing memory buffers via IPC.""" diff --git a/cuda_core/cuda/core/_memory/_ipc.pyx b/cuda_core/cuda/core/_memory/_ipc.pyx index b75160d59d8f..199af8da6cb4 100644 --- a/cuda_core/cuda/core/_memory/_ipc.pyx +++ b/cuda_core/cuda/core/_memory/_ipc.pyx @@ -30,6 +30,7 @@ import multiprocessing import operator import os import platform +import threading import uuid import weakref from typing import TYPE_CHECKING, Iterable @@ -41,6 +42,10 @@ __all__ = [] cdef object registry = weakref.WeakValueDictionary() +# Serializes MP_register. Reentrant: inserting into the registry allocates a +# weak reference, which can run a garbage-collection callback or finalizer that +# registers another resource on the same thread. +cdef object _registry_lock = threading.RLock() cdef cydriver.CUmemAllocationHandleType IPC_HANDLE_TYPE = \ @@ -538,7 +543,15 @@ cdef Buffer Buffer_from_ipc_descriptor( # _MemPool IPC Implementation # --------------------------- -cdef _MemPool MP_from_allocation_handle(cls, alloc_handle, MP_import_init_t init=NULL): +cdef inline _check_registered_type(mr, cls, uuid): + if not isinstance(mr, cls): + raise TypeError( + f"Registry contains a {type(mr).__name__} for uuid " + f"{uuid}, but {cls.__name__} was requested") + + +cdef _MemPool MP_from_allocation_handle( + cls, alloc_handle, MP_import_init_t init=NULL, object init_arg=None): if isinstance(alloc_handle, IPCAllocationHandle): IPCAllocationHandle_check_open(alloc_handle) @@ -546,10 +559,7 @@ cdef _MemPool MP_from_allocation_handle(cls, alloc_handle, MP_import_init_t init uuid = getattr(alloc_handle, 'uuid', None) # no-cython-lint mr = registry.get(uuid) if mr is not None: - if not isinstance(mr, cls): - raise TypeError( - f"Registry contains a {type(mr).__name__} for uuid " - f"{uuid}, but {cls.__name__} was requested") + _check_registered_type(mr, cls, uuid) MP_check_open(<_MemPool>mr) return mr @@ -579,18 +589,20 @@ cdef _MemPool MP_from_allocation_handle(cls, alloc_handle, MP_import_init_t init self._ipc_data = IPCDataForMR(alloc_handle, True) # Initialize before registering: a registry hit in another thread must not - # return a pool whose initialization is in progress or has failed. + # return a pool whose initialization is in progress or has failed. A + # resource returned from the registry is never initialized again. if init != NULL: - init(self) + init(self, init_arg) # Register it. if uuid is not None: registered = self.register(uuid) if registered is not self: - raise RuntimeError( - "internal cuda.core error, please report: register() returned a " - "different memory resource than the one being registered" - ) + # A concurrent import of the same UUID registered first. Both + # imports share one pool handle, so dropping this one only drops a + # reference. + _check_registered_type(registered, cls, uuid) + return registered return self @@ -607,18 +619,21 @@ cdef _MemPool MP_from_registry(uuid): cdef _MemPool MP_register(_MemPool self, uuid): MP_check_open(self) - existing = registry.get(uuid) - if existing is not None: - MP_check_open(<_MemPool>existing) - return existing - if not self.is_ipc_enabled: - raise RuntimeError("Memory resource is not IPC-enabled") - if self.uuid is not None and self.uuid != uuid: - raise ValueError( - f"Cannot register memory resource with UUID {uuid}: " - f"the resource already has UUID {self.uuid}" - ) - registry[uuid] = self + # The lookup and the insertion must be one step: without the GIL, two + # threads can both miss and register different resources for one UUID. + with _registry_lock: + existing = registry.get(uuid) + if existing is not None: + MP_check_open(<_MemPool>existing) + return existing + if not self.is_ipc_enabled: + raise RuntimeError("Memory resource is not IPC-enabled") + if self.uuid is not None and self.uuid != uuid: + raise ValueError( + f"Cannot register memory resource with UUID {uuid}: " + f"the resource already has UUID {self.uuid}" + ) + registry[uuid] = self self._ipc_data._alloc_handle._uuid = uuid return self diff --git a/cuda_core/cuda/core/_memory/_memory_pool.pxd b/cuda_core/cuda/core/_memory/_memory_pool.pxd index f2117b4034dc..a27a6e46a408 100644 --- a/cuda_core/cuda/core/_memory/_memory_pool.pxd +++ b/cuda_core/cuda/core/_memory/_memory_pool.pxd @@ -37,7 +37,8 @@ cdef int MP_init_current_pool( cdef int MP_raise_release_threshold(_MemPool self) except? -1 cdef int MP_set_access( - _MemPool self, const cydriver.CUmemAccessDesc* desc, size_t count) except? -1 + _MemPool self, const cydriver.CUmemAccessDesc* desc, size_t count, + bint retry_already_mapped=*) except? -1 cdef inline int MP_check_open(_MemPool self) except -1: diff --git a/cuda_core/cuda/core/_memory/_memory_pool.pyx b/cuda_core/cuda/core/_memory/_memory_pool.pyx index 679e25b4f3c8..4257332dd36e 100644 --- a/cuda_core/cuda/core/_memory/_memory_pool.pyx +++ b/cuda_core/cuda/core/_memory/_memory_pool.pyx @@ -462,19 +462,39 @@ cdef int MP_raise_release_threshold(_MemPool self) except? -1: cdef int MP_set_access( - _MemPool self, const cydriver.CUmemAccessDesc* desc, size_t count) except? -1: + _MemPool self, const cydriver.CUmemAccessDesc* desc, size_t count, + bint retry_already_mapped=False) except? -1: """Set device access to the pool. Runs in relaxed capture mode, like every pool attribute access (see ``_enter_relaxed_capture_mode``): the driver refuses cuMemPoolSetAccess, and invalidates the capture, while a global-mode capture is active on any thread or a thread-local one on the calling thread. + + With ``retry_already_mapped``, each entry is set on its own, and an + identical second call follows a CUDA_ERROR_ALREADY_MAPPED. Importing a + pool that is already imported in this process returns the same + CUmemoryPool. Once its previous owner has revoked access and destroyed its + import, the driver can still hold the pool and fail a grant over the + mapping that an unsynchronized free left behind. The identical retry + succeeds (seen on drivers 580 and 595); with several devices, one retry of + a combined call is not enough. Any other status, and a second failure for + an entry, raise. """ cdef cydriver.CUstreamCaptureMode mode - cdef cydriver.CUresult err + cdef cydriver.CUresult err = cydriver.CUDA_SUCCESS + cdef size_t i with nogil: _enter_relaxed_capture_mode(&mode) - err = cydriver.cuMemPoolSetAccess(as_cu(self._h_pool), desc, count) + if not retry_already_mapped: + err = cydriver.cuMemPoolSetAccess(as_cu(self._h_pool), desc, count) + else: + for i in range(count): + err = cydriver.cuMemPoolSetAccess(as_cu(self._h_pool), desc + i, 1) + if err == cydriver.CUDA_ERROR_ALREADY_MAPPED: + err = cydriver.cuMemPoolSetAccess(as_cu(self._h_pool), desc + i, 1) + if err != cydriver.CUDA_SUCCESS: + break _exit_relaxed_capture_mode(err, &mode) return 0 diff --git a/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyx b/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyx index 33a591dc07f3..dd1ae11ea70c 100644 --- a/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyx +++ b/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyx @@ -325,10 +325,11 @@ cdef inline _PMR_init(PinnedMemoryResource self, options): max_size, ) - _PMR_grant_device_access(self, numa_id >= 0) + _PMR_grant_device_access(self, numa_id >= 0, False) -cdef inline int _PMR_grant_device_access(PinnedMemoryResource self, bint host_numa) except? -1: +cdef inline int _PMR_grant_device_access( + PinnedMemoryResource self, bint host_numa, bint imported) except? -1: # A pool on a host location is accessible only from the host by default # (see cuMemPoolCreate), and access is per process, so both the creating # and the importing process grant read/write access to every device that @@ -345,13 +346,13 @@ cdef inline int _PMR_grant_device_access(PinnedMemoryResource self, bint host_nu cydriver.CUmemLocationType.CU_MEM_LOCATION_TYPE_DEVICE, dev.device_id) access.push_back(desc) if not access.empty(): - MP_set_access(self, access.data(), access.size()) + MP_set_access(self, access.data(), access.size(), imported) return 0 -cdef int _PMR_init_imported(_MemPool mr) except? -1: +cdef int _PMR_init_imported(_MemPool mr, object unused) except? -1: # IPC-enabled pinned pools are always placed on a host NUMA node. - return _PMR_grant_device_access(mr, True) + return _PMR_grant_device_access(mr, True, True) def _deep_reduce_pinned_memory_resource(mr: object) -> tuple[object, ...]: diff --git a/cuda_core/cuda/core/_rt.pyi b/cuda_core/cuda/core/_rt.pyi index fc1c7dd4c693..ad50dd4bd1e9 100644 --- a/cuda_core/cuda/core/_rt.pyi +++ b/cuda_core/cuda/core/_rt.pyi @@ -57,6 +57,13 @@ def _set_context_restore_fault_for_testing(status: int): injected failure leaves the target context current, exactly as a failing ``cuCtxSetCurrent`` would, so callers must restore the context themselves. """ +def _set_ipc_pool_release_delay_for_testing(microseconds: int): + """Delay the release of an imported pool's owner by ``microseconds``. + + Test hook: once the owner's last reference is released, it sleeps before it + revokes access and destroys the pool's imports, so that a re-import can be + made to race the release. 0 disables the delay. + """ def _attach_rollback_failure_for_testing(status: int): """Attach a failed CUDA call to the exception being handled, or report it. diff --git a/cuda_core/cuda/core/_rt.pyx b/cuda_core/cuda/core/_rt.pyx index ee7db861d6e3..c8f165203c31 100644 --- a/cuda_core/cuda/core/_rt.pyx +++ b/cuda_core/cuda/core/_rt.pyx @@ -194,6 +194,8 @@ cdef extern from "_cpp/rt/rt.hpp" namespace "cuda_core::rt": const VaReservationHandle& h) noexcept nogil long long live_owned_mempool_count "cuda_core::rt::live_owned_mempool_count" () noexcept nogil long long live_va_reservation_count "cuda_core::rt::live_va_reservation_count" () noexcept nogil + void set_ipc_pool_release_delay_for_testing "cuda_core::rt::set_ipc_pool_release_delay_for_testing" ( + unsigned int microseconds) noexcept nogil VaMappingHandle create_va_mapping_handle "cuda_core::rt::create_va_mapping_handle" ( cydriver.CUdeviceptr ptr, const MemAllocationHandle& h_alloc, const VaReservationHandle& h_res) except+ nogil @@ -357,6 +359,16 @@ def _set_context_restore_fault_for_testing(int status): set_context_restore_fault_for_testing(status) +def _set_ipc_pool_release_delay_for_testing(unsigned int microseconds): + """Delay the release of an imported pool's owner by ``microseconds``. + + Test hook: once the owner's last reference is released, it sleeps before it + revokes access and destroys the pool's imports, so that a re-import can be + made to race the release. 0 disables the delay. + """ + set_ipc_pool_release_delay_for_testing(microseconds) + + def _attach_rollback_failure_for_testing(int status): """Attach a failed CUDA call to the exception being handled, or report it. diff --git a/cuda_core/docs/source/release/1.4.0-notes.rst b/cuda_core/docs/source/release/1.4.0-notes.rst index 338e14d49e38..ed5588a63c15 100644 --- a/cuda_core/docs/source/release/1.4.0-notes.rst +++ b/cuda_core/docs/source/release/1.4.0-notes.rst @@ -23,3 +23,19 @@ Fixes and enhancements supporting device. (`#3415 `__, `#3501 `__) + +- Repeat imports of a memory pool in one process, for example passing a raw + file descriptor to :meth:`PinnedMemoryResource.from_allocation_handle` + twice, now share one owner, which releases the pool with the last of them. + Closing one import no longer removes device access to a pinned pool from + the others, or emits a ``CUDAWarning`` from ``cuMemPoolDestroy`` for a + device pool while a buffer imported through another is alive. An import + that overlaps the release of the last one waits for it, and concurrent + imports of one allocation handle return the same resource instead of + raising an internal error. + (`#3510 `__) + +- :meth:`DeviceMemoryResource.from_allocation_handle` returns a resource + already registered in the process with its original ``device_id``, instead + of changing it to the requested device. + (`#3510 `__) diff --git a/cuda_core/tests/memory_ipc/test_ipc_pool_duplicate_import.py b/cuda_core/tests/memory_ipc/test_ipc_pool_duplicate_import.py new file mode 100644 index 000000000000..2c5769106b70 --- /dev/null +++ b/cuda_core/tests/memory_ipc/test_ipc_pool_duplicate_import.py @@ -0,0 +1,309 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +"""Imports of one memory pool in one process share ownership (#3510). + +The driver returns the same ``CUmemoryPool`` for every import of a pool in a +process, and the pool's access settings are shared by all of them. Releasing +one import used to revoke device access for the pool (the nvbug 5698116 +workaround), which broke the imports that were still open; for a pinned pool +the next device access failed with ``CUDA_ERROR_INVALID_VALUE``. All imports +now share one owner, which revokes access and destroys the pool only when the +last of them is released. +""" + +import contextlib +import gc +import multiprocessing as mp +import threading +import time +import uuid + +import pytest +from helpers.child_processes import run_child +from helpers.contexts import assert_no_cuda_warning +from helpers.memory import import_pool_resource, is_pool_resource, pool_access_flags + +from cuda.bindings import driver +from cuda.core import Buffer, Device, DeviceMemoryResource +from cuda.core._memory._buffer import _live_owned_mempool_count +from cuda.core._rt import _set_ipc_pool_release_delay_for_testing + +NBYTES = 64 +THREADS = 4 +ITERATIONS = 20 +# The owner's release sleeps this long in the race test, so the re-import overlaps it. +RELEASE_DELAY_US = 50_000 +RACE_ITERATIONS = 3 +REENTRY_ITERATIONS = 20 + +# these tests spawn new processes and files which fails for very many threads; +# child processes and IPC fixtures are shared across workers (#2784); cap at two threads +pytestmark = pytest.mark.parallel_threads_limit(2) + + +def _import_twice(mr_type, device, alloc_handle): + # A raw file descriptor carries no UUID, so the registry cannot dedupe. + first = import_pool_resource(mr_type, device, int(alloc_handle)) + second = import_pool_resource(mr_type, device, int(alloc_handle)) + assert first is not second + assert int(first.handle) == int(second.handle) + return first, second + + +def child_close_one_import(mr_type, alloc_handle, descriptor): + device = Device() + device.set_current() + stream = device.default_stream + baseline = _live_owned_mempool_count() + + first, second = _import_twice(mr_type, device, alloc_handle) + assert _live_owned_mempool_count() == baseline + 1 + + first.close() + assert pool_access_flags(second, device) == driver.CUmemAccess_flags.CU_MEM_ACCESS_FLAGS_PROT_READWRITE + + buffer = Buffer.from_ipc_descriptor(second, descriptor, stream=stream) + buffer.fill(7, stream=stream) + stream.sync() + buffer.close() + second.close() + assert _live_owned_mempool_count() == baseline + + +def child_close_both_imports_with_outstanding_buffer(mr_type, alloc_handle, descriptor): + device = Device() + device.set_current() + stream = device.default_stream + baseline = _live_owned_mempool_count() + + with assert_no_cuda_warning(): + first, second = _import_twice(mr_type, device, alloc_handle) + assert _live_owned_mempool_count() == baseline + 1 + # The buffer keeps the pool alive after both resources are closed. + outstanding = Buffer.from_ipc_descriptor(first, descriptor, stream=stream) + first.close() + assert pool_access_flags(second, device) == driver.CUmemAccess_flags.CU_MEM_ACCESS_FLAGS_PROT_READWRITE + buffer = Buffer.from_ipc_descriptor(second, descriptor, stream=stream) + buffer.fill(7, stream=stream) + stream.sync() + buffer.close() + second.close() + assert _live_owned_mempool_count() == baseline + 1 + + outstanding.fill(9, stream=stream) + stream.sync() + outstanding.close() + stream.sync() + assert _live_owned_mempool_count() == baseline + + +def _race_reimport_with_last_release(mr_type, device, alloc_handle, descriptor): + # The buffer is freed on another thread, which a per-thread default stream + # would report as a cross-thread free. + stream = device.create_stream() + # The buffer holds the last reference to the pool once its resource is + # closed, so closing the buffer releases the pool. + mr = import_pool_resource(mr_type, device, int(alloc_handle)) + outstanding = Buffer.from_ipc_descriptor(mr, descriptor, stream=stream) + mr.close() + del mr + + barrier = threading.Barrier(2) + reimported = [] + errors = [] + + def release(): + try: + barrier.wait() + outstanding.close() + except Exception as e: + errors.append(e) + barrier.abort() + + def reimport(): + try: + Device().set_current() + barrier.wait() + # Start once the release is under way, inside its delay. + time.sleep(RELEASE_DELAY_US / 4 / 1e6) + # A raw file descriptor carries no UUID, so this is a real import, + # through an object the releasing thread never sees. + mr = import_pool_resource(mr_type, device, int(alloc_handle)) + reimported.append((mr, Buffer.from_ipc_descriptor(mr, descriptor, stream=stream))) + except Exception as e: + errors.append(e) + barrier.abort() + + threads = [threading.Thread(target=release), threading.Thread(target=reimport)] + for thread in threads: + thread.start() + for thread in threads: + thread.join() + if errors: + raise errors[0] + + # The release has finished: its cleanup must have left the new import alone. + ((mr, buffer),) = reimported + assert pool_access_flags(mr, device) == driver.CUmemAccess_flags.CU_MEM_ACCESS_FLAGS_PROT_READWRITE + buffer.fill(7, stream=stream) + stream.sync() + buffer.close() + mr.close() + stream.sync() + stream.close() + + +def child_reimport_races_last_release(mr_type, alloc_handle, descriptor): + device = Device() + device.set_current() + baseline = _live_owned_mempool_count() + + _set_ipc_pool_release_delay_for_testing(RELEASE_DELAY_US) + try: + with assert_no_cuda_warning(): + for _ in range(RACE_ITERATIONS): + _race_reimport_with_last_release(mr_type, device, alloc_handle, descriptor) + finally: + _set_ipc_pool_release_delay_for_testing(0) + assert _live_owned_mempool_count() == baseline + + +def child_register_reentered_by_gc(mr_type, alloc_handle): + device = Device() + device.set_current() + baseline = _live_owned_mempool_count() + + nested = import_pool_resource(mr_type, device, int(alloc_handle)) + nested_uuid = uuid.uuid4() + nested.register(nested_uuid) + + # Registering inserts a weak reference into the registry, and allocating + # it can start a collection. A callback that registers again then runs on + # the thread that holds the registry lock. + def register_during_collection(phase, info): + if phase == "start": + nested.register(nested_uuid) + + imports = [] + threshold = gc.get_threshold() + gc.callbacks.append(register_during_collection) + try: + gc.set_threshold(1) + for _ in range(REENTRY_ITERATIONS): + # A raw file descriptor carries no UUID, so each import registers a new one. + mr = import_pool_resource(mr_type, device, int(alloc_handle)) + imports.append(mr) + assert mr.register(uuid.uuid4()) is mr + finally: + gc.set_threshold(*threshold) + gc.callbacks.remove(register_during_collection) + + for mr in imports: + mr.close() + nested.close() + assert _live_owned_mempool_count() == baseline + + +def _import_concurrently(mr_type, device, alloc_handle): + barrier = threading.Barrier(THREADS) + results = [None] * THREADS + errors = [] + + def importer(index): + try: + Device().set_current() + barrier.wait() + results[index] = import_pool_resource(mr_type, device, alloc_handle) + except Exception as e: + errors.append(e) + barrier.abort() + + threads = [threading.Thread(target=importer, args=(i,)) for i in range(THREADS)] + for thread in threads: + thread.start() + for thread in threads: + thread.join() + if errors: + raise errors[0] + return results + + +def child_concurrent_uuid_imports(mr_type, alloc_handle): + device = Device() + device.set_current() + assert alloc_handle.uuid is not None + baseline = _live_owned_mempool_count() + + for _ in range(ITERATIONS): + results = _import_concurrently(mr_type, device, alloc_handle) + # Every import of the UUID returns the registered resource, whichever + # thread registered it, with its device set before it was registered. + assert all(mr is results[0] for mr in results) + if mr_type is DeviceMemoryResource: + assert results[0].device_id == device.device_id + assert _live_owned_mempool_count() == baseline + 1 + # Dropping the losing imports must not revoke the winner's access. + assert pool_access_flags(results[0], device) == driver.CUmemAccess_flags.CU_MEM_ACCESS_FLAGS_PROT_READWRITE + results[0].close() + del results + assert _live_owned_mempool_count() == baseline + + +class TestIpcPoolDuplicateImport: + """Repeat imports of one pool in a process share the pool and its access settings.""" + + @pytest.fixture(autouse=True) + def _set_start_method(self): + # Ensure spawn is used for multiprocessing + with contextlib.suppress(RuntimeError): + mp.set_start_method("spawn", force=True) + + @pytest.fixture + def pool_resource(self, ipc_memory_resource): + if not is_pool_resource(ipc_memory_resource): + pytest.skip("a VirtualMemoryResource has no memory pool to import") + return ipc_memory_resource + + @pytest.fixture + def exported_buffer(self, ipc_device, pool_resource): + ipc_device.set_current() + stream = ipc_device.default_stream + buffer = pool_resource.allocate(NBYTES, stream=stream) + stream.sync() + yield buffer + buffer.close(stream) + + @pytest.mark.agent_authored(model="claude-opus-5-5") + def test_closing_one_import_keeps_the_other_usable(self, pool_resource, exported_buffer): + run_child( + child_close_one_import, type(pool_resource), pool_resource.allocation_handle, exported_buffer.ipc_descriptor + ) + + @pytest.mark.agent_authored(model="claude-opus-5-5") + def test_closing_both_imports_with_an_outstanding_buffer(self, pool_resource, exported_buffer): + run_child( + child_close_both_imports_with_outstanding_buffer, + type(pool_resource), + pool_resource.allocation_handle, + exported_buffer.ipc_descriptor, + ) + + @pytest.mark.agent_authored(model="claude-opus-5-5") + def test_reimport_racing_the_last_release_keeps_access(self, pool_resource, exported_buffer): + run_child( + child_reimport_races_last_release, + type(pool_resource), + pool_resource.allocation_handle, + exported_buffer.ipc_descriptor, + ) + + @pytest.mark.agent_authored(model="claude-opus-5-5") + def test_registration_reentered_from_garbage_collection(self, ipc_device, pool_resource): + ipc_device.set_current() + run_child(child_register_reentered_by_gc, type(pool_resource), pool_resource.allocation_handle) + + @pytest.mark.agent_authored(model="claude-opus-5-5") + def test_concurrent_imports_of_one_uuid_share_a_resource(self, ipc_device, pool_resource): + ipc_device.set_current() + run_child(child_concurrent_uuid_imports, type(pool_resource), pool_resource.allocation_handle) diff --git a/cuda_core/tests/test_rt_layout.py b/cuda_core/tests/test_rt_layout.py index 649d990997c6..29f6fc59da71 100644 --- a/cuda_core/tests/test_rt_layout.py +++ b/cuda_core/tests/test_rt_layout.py @@ -138,7 +138,7 @@ def test_driver_function_table_matches_the_cuda_bindings_loader(): def test_driver_calls_go_through_the_table(): """Every driver call uses DRIVER_CALL or a pw_ wrapper, which resolves the table on first use and never dereferences null. The only raw p_ calls are - the table's own machinery and the sites under ipc_import_mutex. Those sites + the table's own machinery and the sites under the IPC pointer cache's mutex. Those sites resolve the table before the lock and carry the `// raw:` mark.""" machinery = {"driver_api.hpp", "driver_api.cpp", "py_driver_fns.cpp", "internal.hpp"} raw_call = re.compile(r"\bp_(cu|nv)\w+\b") # calls and null checks alike From edf1b31aeb2f70830604cf237a6760a93f1d0fbf Mon Sep 17 00:00:00 2001 From: Ralf Juengling Date: Fri, 20 Nov 2026 20:05:08 -0800 Subject: [PATCH 80/85] fix(cuda.core): reject importing a memory pool as the other resource class (#3516) fix(cuda.core): reject importing a memory pool as the other resource class (#3516) DeviceMemoryResource.from_allocation_handle and PinnedMemoryResource.from_allocation_handle now check the imported pool's location and raise TypeError for the other pool kind. An imported PinnedMemoryResource reports the pool's NUMA node as numa_id and grants access for the pool's actual location. Both need a CUDA 13 build and a 13.2+ driver; otherwise imports behave as before. Closes #3502. --- .../core/_memory/_device_memory_resource.pyi | 10 + .../core/_memory/_device_memory_resource.pyx | 12 + cuda_core/cuda/core/_memory/_ipc.pxd | 6 + cuda_core/cuda/core/_memory/_ipc.pyx | 45 ++- cuda_core/cuda/core/_memory/_memory_pool.pxd | 5 + cuda_core/cuda/core/_memory/_memory_pool.pyx | 52 ++++ .../core/_memory/_pinned_memory_resource.pyi | 21 +- .../core/_memory/_pinned_memory_resource.pyx | 33 ++- cuda_core/docs/source/release/1.4.0-notes.rst | 15 + cuda_core/tests/helpers/memory.py | 17 +- .../tests/memory_ipc/test_ipc_pool_kind.py | 265 ++++++++++++++++++ 11 files changed, 470 insertions(+), 11 deletions(-) create mode 100644 cuda_core/tests/memory_ipc/test_ipc_pool_kind.py diff --git a/cuda_core/cuda/core/_memory/_device_memory_resource.pyi b/cuda_core/cuda/core/_memory/_device_memory_resource.pyi index 4dfa8cb57b92..c83768945ff4 100644 --- a/cuda_core/cuda/core/_memory/_device_memory_resource.pyi +++ b/cuda_core/cuda/core/_memory/_device_memory_resource.pyi @@ -169,6 +169,16 @@ class DeviceMemoryResource(_MemPool): A new device memory resource instance with the imported handle. If the handle's memory resource is already registered in this process, that resource is returned with its original device. + + Raises + ------ + TypeError + If the handle refers to a host memory pool, which must be imported + with :meth:`PinnedMemoryResource.from_allocation_handle`. The + pool's kind is checked with a CUDA 13 build of ``cuda.core`` and a + 13.2 or later driver. Otherwise it is checked only when the + handle's memory resource is already registered in this process. + The pool's device is not checked against ``device_id``. """ @property def allocation_handle(self) -> IPCAllocationHandle: diff --git a/cuda_core/cuda/core/_memory/_device_memory_resource.pyx b/cuda_core/cuda/core/_memory/_device_memory_resource.pyx index a747c5b375df..687f1bf6d68d 100644 --- a/cuda_core/cuda/core/_memory/_device_memory_resource.pyx +++ b/cuda_core/cuda/core/_memory/_device_memory_resource.pyx @@ -212,6 +212,16 @@ cdef class DeviceMemoryResource(_MemPool): A new device memory resource instance with the imported handle. If the handle's memory resource is already registered in this process, that resource is returned with its original device. + + Raises + ------ + TypeError + If the handle refers to a host memory pool, which must be imported + with :meth:`PinnedMemoryResource.from_allocation_handle`. The + pool's kind is checked with a CUDA 13 build of ``cuda.core`` and a + 13.2 or later driver. Otherwise it is checked only when the + handle's memory resource is already registered in this process. + The pool's device is not checked against ``device_id``. """ from .._device import Device dev_id = Device(device_id).device_id @@ -314,6 +324,8 @@ cdef inline _DMR_init(DeviceMemoryResource self, device_id, options): cdef int _DMR_init_imported(_MemPool mr, object dev_id) except? -1: + cdef cydriver.CUmemLocation loc + _ipc.MP_check_import_location(mr, False, &loc) # Runs before the resource is registered: a concurrent import of the same # UUID returns it from the registry and must not write to it. (mr)._dev_id = dev_id diff --git a/cuda_core/cuda/core/_memory/_ipc.pxd b/cuda_core/cuda/core/_memory/_ipc.pxd index 5fddd4a4562f..2f47e521cdfc 100644 --- a/cuda_core/cuda/core/_memory/_ipc.pxd +++ b/cuda_core/cuda/core/_memory/_ipc.pxd @@ -83,6 +83,12 @@ cdef Buffer Buffer_from_ipc_descriptor(cls, object, IPCBufferDescriptor, stream) # it. The second argument is the init_arg passed to MP_from_allocation_handle. ctypedef int (*MP_import_init_t)(_MemPool, object) except? -1 +# Checks the location of an imported pool against the requested class: host=True +# accepts a HOST or HOST_NUMA pool, host=False a DEVICE, INVISIBLE or +# DEVICE_LOCALITY_DOMAIN one. Any other location raises TypeError. Returns 1 and +# stores the location in loc, or returns 0 without checking when the location +# cannot be queried (a CUDA 12 build or a driver before 13.2). +cdef int MP_check_import_location(_MemPool, bint host, cydriver.CUmemLocation* loc) except? -1 cdef _MemPool MP_from_allocation_handle(cls, alloc_handle, MP_import_init_t init=*, object init_arg=*) cdef _MemPool MP_from_registry(uuid) cdef _MemPool MP_register(_MemPool, uuid) diff --git a/cuda_core/cuda/core/_memory/_ipc.pyx b/cuda_core/cuda/core/_memory/_ipc.pyx index 199af8da6cb4..1719dc94e676 100644 --- a/cuda_core/cuda/core/_memory/_ipc.pyx +++ b/cuda_core/cuda/core/_memory/_ipc.pyx @@ -11,7 +11,12 @@ from libc.stdint cimport uintptr_t from libc.string cimport memcpy from cuda.bindings cimport cydriver from cuda.core._memory._buffer cimport Buffer, Buffer_check_open, Buffer_from_deviceptr_handle -from cuda.core._memory._memory_pool cimport _MemPool, MP_check_open +from cuda.core._memory._memory_pool cimport ( + _MemPool, + MP_check_open, + MP_get_location, # no-cython-lint + MP_location_query_available, # no-cython-lint +) from cuda.core._stream cimport Stream, Stream_accept from cuda.core._rt cimport ( DevicePtrHandle, @@ -550,6 +555,44 @@ cdef inline _check_registered_type(mr, cls, uuid): f"{uuid}, but {cls.__name__} was requested") +cdef int MP_check_import_location( + _MemPool self, bint host, cydriver.CUmemLocation* loc) except? -1: + IF CUDA_CORE_BUILD_MAJOR >= 13: + cdef cydriver.CUmemLocationType loc_type + cdef bint on_host + cdef bint on_device + cdef int loc_type_value + if not MP_location_query_available(): + return 0 + MP_get_location(self, loc) + loc_type = loc.type + loc_type_value = loc_type + on_host = ( + loc_type == cydriver.CUmemLocationType.CU_MEM_LOCATION_TYPE_HOST + or loc_type == cydriver.CUmemLocationType.CU_MEM_LOCATION_TYPE_HOST_NUMA + ) + # An imported device pool is INVISIBLE when its device is not visible to + # this process (for example under a restricted CUDA_VISIBLE_DEVICES). A + # DEVICE_LOCALITY_DOMAIN pool lives in part of a device's memory. + on_device = ( + loc_type == cydriver.CUmemLocationType.CU_MEM_LOCATION_TYPE_DEVICE + or loc_type == cydriver.CUmemLocationType.CU_MEM_LOCATION_TYPE_INVISIBLE + or loc_type == cydriver.CUmemLocationType.CU_MEM_LOCATION_TYPE_DEVICE_LOCALITY_DOMAIN + ) + if (host and on_host) or (not host and on_device): + return 1 + if on_host: + problem = "a host memory pool; import it with PinnedMemoryResource.from_allocation_handle" + elif on_device: + problem = "a device memory pool; import it with DeviceMemoryResource.from_allocation_handle" + else: + problem = f"a memory pool at location type {loc_type_value}, which neither class can import" + raise TypeError( + f"The allocation handle refers to {problem}, but {type(self).__name__} was requested") + ELSE: + return 0 + + cdef _MemPool MP_from_allocation_handle( cls, alloc_handle, MP_import_init_t init=NULL, object init_arg=None): if isinstance(alloc_handle, IPCAllocationHandle): diff --git a/cuda_core/cuda/core/_memory/_memory_pool.pxd b/cuda_core/cuda/core/_memory/_memory_pool.pxd index a27a6e46a408..803e906090f9 100644 --- a/cuda_core/cuda/core/_memory/_memory_pool.pxd +++ b/cuda_core/cuda/core/_memory/_memory_pool.pxd @@ -40,6 +40,11 @@ cdef int MP_set_access( _MemPool self, const cydriver.CUmemAccessDesc* desc, size_t count, bint retry_already_mapped=*) except? -1 +cdef bint MP_location_query_available() except? -1 + +# Requires MP_location_query_available(). +cdef int MP_get_location(_MemPool self, cydriver.CUmemLocation* loc) except? -1 + cdef inline int MP_check_open(_MemPool self) except -1: if not self._h_pool: diff --git a/cuda_core/cuda/core/_memory/_memory_pool.pyx b/cuda_core/cuda/core/_memory/_memory_pool.pyx index 4257332dd36e..c9c68decc30c 100644 --- a/cuda_core/cuda/core/_memory/_memory_pool.pyx +++ b/cuda_core/cuda/core/_memory/_memory_pool.pyx @@ -31,6 +31,7 @@ from cuda.core._rt cimport create_mempool_handle_ref # no-cython-lint from cuda.core._utils.cuda_utils cimport ( HANDLE_RETURN, ) +from cuda.core._utils.version import driver_version # no-cython-lint import uuid from typing import TYPE_CHECKING @@ -499,6 +500,57 @@ cdef int MP_set_access( return 0 +cdef bint MP_location_query_available() except? -1: + """Whether ``MP_get_location`` can query a pool's location. + + ``CU_MEMPOOL_ATTR_LOCATION_TYPE`` and ``_ID`` are 13.2 driver attributes. + Every cuda-bindings at or above the CUDA 13 floor defines them, so only the + driver can lack them; an older driver rejects them as invalid. + """ + IF CUDA_CORE_BUILD_MAJOR >= 13: + # Not cy_driver_version(): imports run concurrently on free-threaded + # builds, and its cache is filled without synchronization. Tests replace + # this module's driver_version to exercise the pre-13.2 fallback. + return driver_version() >= (13, 2, 0) + ELSE: + return False + + +cdef int MP_get_location(_MemPool self, cydriver.CUmemLocation* loc) except? -1: + """Store the pool's location type and ID in ``loc``. + + Runs in relaxed capture mode, like every pool attribute access (see + ``_enter_relaxed_capture_mode``). Requires a CUDA 13 build and a 13.2 or + later driver (``MP_location_query_available``). + """ + IF CUDA_CORE_BUILD_MAJOR >= 13: + cdef int loc_type = 0 + cdef int loc_id = 0 + cdef cydriver.CUstreamCaptureMode mode + cdef cydriver.CUresult err + with nogil: + _enter_relaxed_capture_mode(&mode) + err = cydriver.cuMemPoolGetAttribute( + as_cu(self._h_pool), + cydriver.CUmemPool_attribute.CU_MEMPOOL_ATTR_LOCATION_TYPE, + &loc_type + ) + if err == cydriver.CUDA_SUCCESS: + err = cydriver.cuMemPoolGetAttribute( + as_cu(self._h_pool), + cydriver.CUmemPool_attribute.CU_MEMPOOL_ATTR_LOCATION_ID, + &loc_id + ) + _exit_relaxed_capture_mode(err, &mode) + loc.type = loc_type + loc.id = loc_id + return 0 + ELSE: + raise RuntimeError( + "Querying the location of a memory pool requires a CUDA 13 build of cuda.core" + ) + + # Raise an exception if the given stream is capturing. # A result of CU_STREAM_CAPTURE_STATUS_INVALIDATED is considered an error. cdef inline int check_not_capturing(cydriver.CUstream s) except?-1 nogil: diff --git a/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyi b/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyi index a728722cb9f7..9f9a7204fa81 100644 --- a/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyi +++ b/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyi @@ -150,8 +150,8 @@ class PinnedMemoryResource(_MemPool): Construct a new `PinnedMemoryResource` instance that imports a memory pool from a shareable handle. The memory pool is marked as owned. Every - device in this process that supports host NUMA memory pools is granted - read and write access to the imported pool. + device in this process that supports pools at the pool's host location + is granted read and write access to the imported pool. Parameters ---------- @@ -163,6 +163,15 @@ class PinnedMemoryResource(_MemPool): Returns ------- A new host-pinned memory resource instance with the imported handle. + + Raises + ------ + TypeError + If the handle refers to a device memory pool, which must be + imported with :meth:`DeviceMemoryResource.from_allocation_handle`. + The pool's kind is checked with a CUDA 13 build of ``cuda.core`` + and a 13.2 or later driver. Otherwise it is checked only when the + handle's memory resource is already registered in this process. """ @property def allocation_handle(self) -> IPCAllocationHandle: @@ -176,7 +185,13 @@ class PinnedMemoryResource(_MemPool): """Return -1. Pinned memory is host memory and is not associated with a specific device.""" @property def numa_id(self) -> int: - """The host NUMA node ID used for pool placement, or -1 for OS-managed placement.""" + """The host NUMA node ID used for pool placement, or -1 for OS-managed placement. + + For a resource imported with :meth:`from_allocation_handle`, this is the + pool's node only if the pool's location can be queried (a CUDA 13 build + of ``cuda.core`` and a 13.2 or later driver). Otherwise it is 0, which is + not known to be the pool's node. + """ @property def is_device_accessible(self) -> bool: """Return True. Every device that supports this kind of host memory pool can read and write its buffers.""" diff --git a/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyx b/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyx index dd1ae11ea70c..965f4df59a4e 100644 --- a/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyx +++ b/cuda_core/cuda/core/_memory/_pinned_memory_resource.pyx @@ -204,8 +204,8 @@ cdef class PinnedMemoryResource(_MemPool): Construct a new `PinnedMemoryResource` instance that imports a memory pool from a shareable handle. The memory pool is marked as owned. Every - device in this process that supports host NUMA memory pools is granted - read and write access to the imported pool. + device in this process that supports pools at the pool's host location + is granted read and write access to the imported pool. Parameters ---------- @@ -217,6 +217,15 @@ cdef class PinnedMemoryResource(_MemPool): Returns ------- A new host-pinned memory resource instance with the imported handle. + + Raises + ------ + TypeError + If the handle refers to a device memory pool, which must be + imported with :meth:`DeviceMemoryResource.from_allocation_handle`. + The pool's kind is checked with a CUDA 13 build of ``cuda.core`` + and a 13.2 or later driver. Otherwise it is checked only when the + handle's memory resource is already registered in this process. """ # cuMemPoolImportFromShareableHandle requires CUDA to be initialized, but in # a child process CUDA may not be initialized yet. For DeviceMemoryResource, @@ -247,7 +256,13 @@ cdef class PinnedMemoryResource(_MemPool): @property def numa_id(self) -> int: - """The host NUMA node ID used for pool placement, or -1 for OS-managed placement.""" + """The host NUMA node ID used for pool placement, or -1 for OS-managed placement. + + For a resource imported with :meth:`from_allocation_handle`, this is the + pool's node only if the pool's location can be queried (a CUDA 13 build + of ``cuda.core`` and a 13.2 or later driver). Otherwise it is 0, which is + not known to be the pool's node. + """ return self._numa_id @property @@ -351,8 +366,16 @@ cdef inline int _PMR_grant_device_access( cdef int _PMR_init_imported(_MemPool mr, object unused) except? -1: - # IPC-enabled pinned pools are always placed on a host NUMA node. - return _PMR_grant_device_access(mr, True, True) + cdef PinnedMemoryResource self = mr + cdef cydriver.CUmemLocation loc + # IPC-enabled pinned pools created by cuda.core are always placed on a host + # NUMA node. Without a location query (a CUDA 12 build or a driver before + # 13.2), the pool's kind is not checked and numa_id keeps its default. + cdef bint host_numa = True + if _ipc.MP_check_import_location(self, True, &loc): + host_numa = loc.type == cydriver.CUmemLocationType.CU_MEM_LOCATION_TYPE_HOST_NUMA + self._numa_id = loc.id if host_numa else -1 + return _PMR_grant_device_access(self, host_numa, True) def _deep_reduce_pinned_memory_resource(mr: object) -> tuple[object, ...]: diff --git a/cuda_core/docs/source/release/1.4.0-notes.rst b/cuda_core/docs/source/release/1.4.0-notes.rst index ed5588a63c15..a9eae8dcf142 100644 --- a/cuda_core/docs/source/release/1.4.0-notes.rst +++ b/cuda_core/docs/source/release/1.4.0-notes.rst @@ -39,3 +39,18 @@ Fixes and enhancements already registered in the process with its original ``device_id``, instead of changing it to the requested device. (`#3510 `__) + +- :meth:`DeviceMemoryResource.from_allocation_handle` now raises + ``TypeError`` for the allocation handle of a host memory pool, and + :meth:`PinnedMemoryResource.from_allocation_handle` for the handle of a + device memory pool. Unless the memory resource was already registered in + the importing process, for example by unpickling it, the import used to + succeed and return a resource that misreported ``device_id``, + ``is_host_accessible`` and ``is_device_accessible``. Code that imported a + pool with the class of the other pool kind must now use the exporting + resource's class. An imported :class:`PinnedMemoryResource` now also + reports the pool's NUMA node as ``numa_id`` instead of 0. The check and + the ``numa_id`` lookup need a CUDA 13 build of ``cuda.core`` and a 13.2 or + later driver; with a CUDA 12 build or an older driver, imports behave as + before. + (`#3502 `__) diff --git a/cuda_core/tests/helpers/memory.py b/cuda_core/tests/helpers/memory.py index 506e54c3e942..b32d60b3c4a9 100644 --- a/cuda_core/tests/helpers/memory.py +++ b/cuda_core/tests/helpers/memory.py @@ -7,6 +7,7 @@ from cuda.core import Device, DeviceMemoryResource, ManagedMemoryResource, PinnedMemoryResource from cuda.core._utils.cuda_utils import CUDAError, driver, handle_return +from cuda.core._utils.version import BUILD_CUDA_MAJOR, driver_version from cuda_python_test_helpers import IS_WINDOWS # Shareable handle type for VirtualMemoryResource allocations on this platform. @@ -21,6 +22,19 @@ class BaselineMemoryResourceReleasedWarning(Warning): """An ``init_cuda`` test released an owned memory pool or VA reservation that existed before it started.""" +def skip_if_pool_location_query_unsupported(): + """Skip unless an imported pool's location can be queried. + + That needs a CUDA 13 build of ``cuda.core`` and a 13.2 or later driver + (``CU_MEMPOOL_ATTR_LOCATION_TYPE``). Without it, imports skip the check of + the pool's kind; keep this in sync with ``MP_location_query_available``. + """ + if BUILD_CUDA_MAJOR < 13: + pytest.skip("checking a pool's location requires a CUDA 13 build of cuda.core") + if driver_version() < (13, 2, 0): + pytest.skip("checking a pool's location requires a 13.2 or later driver") + + def skip_if_mempool_unsupported(device=None): """Skip unless ``device`` (default: device 0) supports memory pools.""" if device is None: @@ -54,8 +68,7 @@ def import_pool_resource(cls, device, alloc_handle): """Import the pool shared by ``alloc_handle`` as ``cls``, the class of the exporting resource. The class must match the exporter: importing a pinned pool as a - ``DeviceMemoryResource`` (or the reverse) currently succeeds and yields a - mislabeled resource (#3502). + ``DeviceMemoryResource`` (or the reverse) raises ``TypeError`` (#3502). """ if cls is PinnedMemoryResource: return PinnedMemoryResource.from_allocation_handle(alloc_handle) diff --git a/cuda_core/tests/memory_ipc/test_ipc_pool_kind.py b/cuda_core/tests/memory_ipc/test_ipc_pool_kind.py new file mode 100644 index 000000000000..f86a833474c2 --- /dev/null +++ b/cuda_core/tests/memory_ipc/test_ipc_pool_kind.py @@ -0,0 +1,265 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +"""Importing a memory pool with the class of the other pool kind raises (#3502). + +``DeviceMemoryResource.from_allocation_handle`` used to accept the handle of a +pinned (host) pool, and ``PinnedMemoryResource.from_allocation_handle`` the +handle of a device pool, unless the resource was already registered in the +importing process. The import now checks the pool's location before the +resource is registered. The check needs a CUDA 13 build of cuda.core and a +13.2 or later driver; with either missing, imports behave as before. +""" + +import contextlib +import multiprocessing as mp + +import pytest +from helpers.child_processes import run_child +from helpers.constants import POOL_SIZE +from helpers.contexts import assert_no_cuda_warning +from helpers.memory import ( + import_pool_resource, + is_pool_resource, + pool_access_flags, + skip_if_host_numa_pinned_memory_unsupported, + skip_if_pool_location_query_unsupported, +) + +from cuda.bindings import driver +from cuda.core import ( + Buffer, + Device, + DeviceMemoryResource, + PinnedMemoryResource, + PinnedMemoryResourceOptions, +) +from cuda.core._memory import _memory_pool +from cuda.core._memory._buffer import _live_owned_mempool_count + +NBYTES = 64 + +# these tests spawn new processes and files which fails for very many threads; +# child processes and IPC fixtures are shared across workers (#2784); cap at two threads +pytestmark = pytest.mark.parallel_threads_limit(2) + + +def _nonzero_numa_node_with_memory(): + """The first host NUMA node other than 0 that has memory, or None.""" + try: + with open("/sys/devices/system/node/has_memory") as f: + node_list = f.read().strip() + except FileNotFoundError: + return None + for node_range in node_list.split(","): + first, _, last = node_range.partition("-") + for node in range(int(first), int(last or first) + 1): + if node > 0: + return node + return None + + +def _other_class(mr_type): + return DeviceMemoryResource if mr_type is PinnedMemoryResource else PinnedMemoryResource + + +def _assert_import_raises(mr_type, device, alloc_handle): + # Releasing the rejected import cannot raise; a failed cuMemPoolDestroy + # surfaces only as a CUDAWarning. + with assert_no_cuda_warning(), pytest.raises(TypeError): + import_pool_resource(_other_class(mr_type), device, alloc_handle) + + +def _access_by_device(mr): + return {dev.device_id: pool_access_flags(mr, dev) for dev in Device.get_all_devices()} + + +def child_mismatched_import_raises(mr_type, alloc_handle, descriptor): + device = Device() + device.set_current() + stream = device.default_stream + baseline = _live_owned_mempool_count() + + # Neither handle has a registered resource in this process: a raw file + # descriptor carries no UUID, and nothing has imported the UUID yet. + _assert_import_raises(mr_type, device, int(alloc_handle)) + _assert_import_raises(mr_type, device, alloc_handle) + assert _live_owned_mempool_count() == baseline + + # The rejected imports did not register the UUID, so the matching class imports it. + mr = import_pool_resource(mr_type, device, alloc_handle) + buffer = Buffer.from_ipc_descriptor(mr, descriptor, stream=stream) + buffer.fill(7, stream=stream) + stream.sync() + buffer.close() + mr.close() + assert _live_owned_mempool_count() == baseline + + +def child_rejected_import_keeps_existing_import(mr_type, alloc_handle, descriptor): + device = Device() + device.set_current() + stream = device.default_stream + + # The driver returns the same pool for every import in a process, so the + # rejected import must not destroy the pool or revoke any device's access + # to it, including peer access and while a buffer from it is alive. + mr = import_pool_resource(mr_type, device, int(alloc_handle)) + if mr_type is DeviceMemoryResource: + mr.peer_accessible_by = [ + dev for dev in Device.get_all_devices() if dev.device_id != device.device_id and dev.can_access_peer(device) + ] + buffer = Buffer.from_ipc_descriptor(mr, descriptor, stream=stream) + access = _access_by_device(mr) + assert access[device.device_id] == driver.CUmemAccess_flags.CU_MEM_ACCESS_FLAGS_PROT_READWRITE + + _assert_import_raises(mr_type, device, int(alloc_handle)) + assert _access_by_device(mr) == access + + buffer.fill(7, stream=stream) + stream.sync() + buffer.close() + mr.close() + + +def child_imported_numa_id(alloc_handle, numa_id): + Device().set_current() + mr = PinnedMemoryResource.from_allocation_handle(alloc_handle) + assert mr.numa_id == numa_id + mr.close() + + +def child_matching_import(mr_type, alloc_handle, descriptor): + device = Device() + device.set_current() + stream = device.default_stream + + # The raw file descriptor and the IPCAllocationHandle are the two import paths. + from_fd = import_pool_resource(mr_type, device, int(alloc_handle)) + from_handle = import_pool_resource(mr_type, device, alloc_handle) + assert isinstance(from_fd, mr_type) + assert isinstance(from_handle, mr_type) + + buffer = Buffer.from_ipc_descriptor(from_fd, descriptor, stream=stream) + buffer.fill(7, stream=stream) + stream.sync() + buffer.close() + from_fd.close() + from_handle.close() + + +def child_import_without_location_query(mr_type, alloc_handle, descriptor): + # Stand in for a 13.0 or 13.1 driver, as test_program_compile_cache.py does + # for _program: MP_location_query_available reads driver_version from the + # _memory_pool module on every import. The monkeypatch fixture cannot reach a + # spawned child, and this process exits after the test. + _memory_pool.driver_version = lambda: (13, 1, 0) + device = Device() + device.set_current() + stream = device.default_stream + + # The pool's kind is not checked, so the other class's import succeeds, as + # it did before #3502 was fixed. + with assert_no_cuda_warning(): + other = import_pool_resource(_other_class(mr_type), device, int(alloc_handle)) + other.close() + + mr = import_pool_resource(mr_type, device, int(alloc_handle)) + if mr_type is PinnedMemoryResource: + # Without the location query the pool's node is unknown (see numa_id). + assert mr.numa_id == 0 + buffer = Buffer.from_ipc_descriptor(mr, descriptor, stream=stream) + buffer.fill(7, stream=stream) + stream.sync() + buffer.close() + mr.close() + + +class _IpcPoolFixtures: + @pytest.fixture(autouse=True) + def _set_start_method(self): + # Ensure spawn is used for multiprocessing + with contextlib.suppress(RuntimeError): + mp.set_start_method("spawn", force=True) + + @pytest.fixture + def pool_resource(self, ipc_memory_resource): + if not is_pool_resource(ipc_memory_resource): + pytest.skip("a VirtualMemoryResource has no memory pool to import") + return ipc_memory_resource + + @pytest.fixture + def exported_buffer(self, ipc_device, pool_resource): + ipc_device.set_current() + stream = ipc_device.default_stream + buffer = pool_resource.allocate(NBYTES, stream=stream) + stream.sync() + yield buffer + buffer.close(stream) + + +class TestIpcPoolMatchingImport(_IpcPoolFixtures): + """Importing a pool with the exporter's class works whether or not the pool's kind can be checked.""" + + @pytest.mark.agent_authored(model="claude-opus-5-5") + def test_matching_import_works(self, pool_resource, exported_buffer): + run_child( + child_matching_import, + type(pool_resource), + pool_resource.allocation_handle, + exported_buffer.ipc_descriptor, + ) + + +class TestIpcPoolImportWithoutLocationQuery(_IpcPoolFixtures): + """With a driver before 13.2, imports skip the pool kind check and behave as before.""" + + @pytest.mark.agent_authored(model="claude-opus-5-5") + def test_import_without_location_query(self, pool_resource, exported_buffer): + run_child( + child_import_without_location_query, + type(pool_resource), + pool_resource.allocation_handle, + exported_buffer.ipc_descriptor, + ) + + +class TestIpcPoolKind(_IpcPoolFixtures): + """An import checks that the pool's kind matches the requested class.""" + + @pytest.fixture(autouse=True) + def _require_pool_location_query(self): + skip_if_pool_location_query_unsupported() + + @pytest.mark.agent_authored(model="claude-opus-5-5") + def test_mismatched_import_raises(self, pool_resource, exported_buffer): + run_child( + child_mismatched_import_raises, + type(pool_resource), + pool_resource.allocation_handle, + exported_buffer.ipc_descriptor, + ) + + @pytest.mark.agent_authored(model="claude-opus-5-5") + def test_rejected_import_keeps_existing_import(self, pool_resource, exported_buffer): + run_child( + child_rejected_import_keeps_existing_import, + type(pool_resource), + pool_resource.allocation_handle, + exported_buffer.ipc_descriptor, + ) + + @pytest.mark.agent_authored(model="claude-opus-5-5") + def test_imported_pinned_resource_reports_numa_id(self, ipc_device): + skip_if_host_numa_pinned_memory_unsupported(ipc_device) + # An imported resource used to report 0, so node 0 cannot tell the two apart. + numa_id = _nonzero_numa_node_with_memory() + if numa_id is None: + pytest.skip("needs a host NUMA node other than 0 with memory") + ipc_device.set_current() + mr = PinnedMemoryResource(PinnedMemoryResourceOptions(max_size=POOL_SIZE, ipc_enabled=True, numa_id=numa_id)) + try: + assert mr.numa_id == numa_id + run_child(child_imported_numa_id, mr.allocation_handle, numa_id) + finally: + mr.close() From 8784978f8b5550e45a41d9ca7387596a5b1dd91f Mon Sep 17 00:00:00 2001 From: jpascucci-nv Date: Mon, 23 Nov 2026 13:01:34 -0500 Subject: [PATCH 81/85] test: document tests skipped in every CI configuration (#3486) refs #2077 Add CI coverage comments for all 148 skipped test cases reported in issue #2077. Identify affected parameter values where other cases run in CI, and annotate applicable CUDA 12 counterparts. Comments only; test behavior is unchanged. Validation: verified all reported cases are annotated, executable code is unchanged, and git diff --check passes. --- cuda_bindings_12/tests/nvml/test_device.py | 10 ++++++++++ cuda_bindings_12/tests/nvml/test_pynvml.py | 4 ++++ cuda_bindings_12/tests/test_graphics_apis.py | 1 + cuda_bindings_13/tests/legacy_api/test_legacy_cuda.py | 1 + cuda_bindings_13/tests/nvml/test_device.py | 11 +++++++++++ cuda_bindings_13/tests/nvml/test_pci.py | 1 + cuda_bindings_13/tests/nvml/test_pynvml.py | 3 +++ cuda_bindings_13/tests/nvml/test_unit.py | 1 + cuda_bindings_13/tests/test_cuda.py | 2 ++ cuda_bindings_13/tests/test_graphics_apis.py | 1 + cuda_bindings_13/tests/test_utils.py | 1 + .../tests/example_tests/test_sample_environment.py | 1 + cuda_core/tests/example_tests/test_samples.py | 7 +++++++ cuda_core/tests/graph/test_graph_definition.py | 5 +++++ cuda_core/tests/graph/test_graph_node_update.py | 2 ++ cuda_core/tests/memory/test_managed_ops.py | 1 + cuda_core/tests/memory_ipc/test_errors.py | 6 ++++++ cuda_core/tests/memory_ipc/test_leaks.py | 4 ++++ cuda_core/tests/memory_ipc/test_send_buffers.py | 2 ++ cuda_core/tests/memory_ipc/test_vmm_fabric.py | 9 +++++++++ cuda_core/tests/memory_ipc/test_workerpool.py | 2 ++ cuda_core/tests/system/test_system_device.py | 3 +++ cuda_core/tests/test_checkpoint.py | 2 ++ cuda_core/tests/test_linker.py | 3 +++ cuda_core/tests/test_managed_memory_warning.py | 2 ++ cuda_core/tests/test_memory.py | 2 ++ cuda_core/tests/test_memory_peer_access.py | 1 + cuda_core/tests/test_module.py | 1 + cuda_core/tests/test_object_protocols.py | 3 +++ cuda_core/tests/test_program.py | 2 ++ cuda_core/tests/test_tensor_map.py | 6 ++++++ cuda_core/tests/test_utils.py | 10 ++++++++++ cuda_pathfinder/tests/test_driver_lib_loading.py | 2 ++ cuda_pathfinder/tests/test_load_nvidia_dynamic_lib.py | 2 ++ 34 files changed, 114 insertions(+) diff --git a/cuda_bindings_12/tests/nvml/test_device.py b/cuda_bindings_12/tests/nvml/test_device.py index e2d761a79e97..3b43efeb7a77 100644 --- a/cuda_bindings_12/tests/nvml/test_device.py +++ b/cuda_bindings_12/tests/nvml/test_device.py @@ -70,6 +70,7 @@ def test_grid_licensable_features(all_devices): nvml.GridLicenseExpiry(feature.license_expiry) +# This test is not currently run in any CI job def test_get_nv_link_supported_bw_modes(all_devices, subtests): for device in all_devices: with subtests.test(device_index=nvml.device_get_index(device)): @@ -101,6 +102,7 @@ def test_device_get_unrepairable_memory_flag(all_devices, subtests): assert isinstance(status, int) +# This test is not currently run in any CI job def test_device_vgpu_get_heterogeneous_mode(all_devices, subtests): for device in all_devices: with subtests.test(device_index=nvml.device_get_index(device)): @@ -127,6 +129,7 @@ def test_get_power_management_limit(all_devices, subtests): nvml.device_get_power_management_limit(device) +# This test is not currently run in any CI job def test_set_power_management_limit(all_devices, subtests): for device in all_devices: with ( @@ -203,6 +206,7 @@ def _check_vgpu_type_id_list(type_ids): assert ids == [] +# This test is not currently run in any CI job @pytest.mark.agent_authored(model="claude-sonnet-5") def test_device_get_supported_vgpus_no_namerror(all_devices, subtests): """device_get_supported_vgpus must not raise a NameError, whether or not @@ -215,6 +219,7 @@ def test_device_get_supported_vgpus_no_namerror(all_devices, subtests): _check_vgpu_type_id_list(vgpu_type_ids) +# This test is not currently run in any CI job @pytest.mark.agent_authored(model="claude-sonnet-5") def test_device_get_creatable_vgpus_no_namerror(all_devices, subtests): """device_get_creatable_vgpus must not raise a NameError, whether or not @@ -227,6 +232,7 @@ def test_device_get_creatable_vgpus_no_namerror(all_devices, subtests): _check_vgpu_type_id_list(vgpu_type_ids) +# This test is not currently run in any CI job @pytest.mark.agent_authored(model="claude-sonnet-5") def test_device_get_active_vgpus_no_namerror(all_devices, subtests): """device_get_active_vgpus must not raise a NameError, whether or not @@ -260,6 +266,7 @@ def _require_mig_enabled(device): pytest.skip(f"MIG is not enabled on device {device}") +# This test is not currently run in any CI job @pytest.mark.agent_authored(model="claude-sonnet-5") def test_device_get_gpu_instances_empty_result(all_devices, subtests): """device_get_gpu_instances must not raise ValueError: Invalid shape in @@ -293,6 +300,7 @@ def test_device_get_gpu_instances_empty_result(all_devices, subtests): assert len(set(handles)) == len(handles) +# This test is not currently run in any CI job @pytest.mark.agent_authored(model="claude-sonnet-5") def test_gpu_instance_get_compute_instances_empty_result(all_devices, subtests): """gpu_instance_get_compute_instances must not raise ValueError: Invalid @@ -340,6 +348,7 @@ def test_gpu_instance_get_compute_instances_empty_result(all_devices, subtests): assert len(set(handles)) == len(handles) +# This test is not currently run in any CI job @pytest.mark.agent_authored(model="claude-sonnet-5") def test_device_get_vgpu_utilization_sized_array(all_devices, subtests): """device_get_vgpu_utilization must return an array sized to the real @@ -375,6 +384,7 @@ def test_device_get_vgpu_utilization_sized_array(all_devices, subtests): assert len(set(vgpu_instances)) == len(vgpu_instances) +# This test is not currently run in any CI job @pytest.mark.agent_authored(model="claude-sonnet-5") def test_device_get_vgpu_process_utilization_returns_array(all_devices, subtests): """device_get_vgpu_process_utilization must return a correctly-sized array diff --git a/cuda_bindings_12/tests/nvml/test_pynvml.py b/cuda_bindings_12/tests/nvml/test_pynvml.py index e3ea533dd834..2912605e811d 100644 --- a/cuda_bindings_12/tests/nvml/test_pynvml.py +++ b/cuda_bindings_12/tests/nvml/test_pynvml.py @@ -40,6 +40,7 @@ def test_system_get_driver_version(nvml_init): assert tuple(int(x) for x in vsn.split(".")[:2]) > (0, 0) +# This test is not currently run in any CI job def test_device_get_attributes(mig_handles): # nvmlDeviceGetAttributes requires MIG device handle @@ -61,6 +62,7 @@ def test_device_get_handle_by_pci_bus_id(ngpus, pci_info): assert len(handles) == ngpus +# This test is not currently run in any CI job @pytest.mark.parametrize("scope", [nvml.AffinityScope.NODE, nvml.AffinityScope.SOCKET]) @pytest.mark.skipif(util.is_wsl() or util.is_windows(), reason="Not supported on WSL or Windows") def test_device_get_memory_affinity(handles, scope): @@ -72,6 +74,7 @@ def test_device_get_memory_affinity(handles, scope): assert len(node_set) == size +# This test is not currently run in any CI job @pytest.mark.parametrize("scope", [nvml.AffinityScope.NODE, nvml.AffinityScope.SOCKET]) @pytest.mark.skipif(util.is_wsl() or util.is_windows(), reason="Not supported on WSL or Windows") def test_device_get_cpu_affinity_within_scope(handles, scope): @@ -245,6 +248,7 @@ def test_device_get_pcie_throughput(ngpus, handles): # Test pynvml.nvmlDeviceGetNvLinkRemotePciInfo +# This test is not currently run in any CI job @pytest.mark.parametrize( "cap_type", [ diff --git a/cuda_bindings_12/tests/test_graphics_apis.py b/cuda_bindings_12/tests/test_graphics_apis.py index 365bbe1fb2cd..82e65f77d8a3 100644 --- a/cuda_bindings_12/tests/test_graphics_apis.py +++ b/cuda_bindings_12/tests/test_graphics_apis.py @@ -9,6 +9,7 @@ from cuda.bindings import runtime as cudart +# This test is not currently run in any CI job def test_graphics_api_smoketest(): if sys.platform.startswith("linux") and not (os.environ.get("DISPLAY") or os.environ.get("WAYLAND_DISPLAY")): pytest.skip("No display available for the OpenGL smoke test") diff --git a/cuda_bindings_13/tests/legacy_api/test_legacy_cuda.py b/cuda_bindings_13/tests/legacy_api/test_legacy_cuda.py index 47043cf74f63..45781a7ce232 100644 --- a/cuda_bindings_13/tests/legacy_api/test_legacy_cuda.py +++ b/cuda_bindings_13/tests/legacy_api/test_legacy_cuda.py @@ -31,6 +31,7 @@ def callableBinary(name): return shutil.which(name) is not None +# This test is not currently run in any CI job @pytest.mark.skipif(True, reason="Always skip!") def test_always_skip(): pass diff --git a/cuda_bindings_13/tests/nvml/test_device.py b/cuda_bindings_13/tests/nvml/test_device.py index 41c9e47a4208..a1522d72f7c3 100644 --- a/cuda_bindings_13/tests/nvml/test_device.py +++ b/cuda_bindings_13/tests/nvml/test_device.py @@ -81,6 +81,7 @@ def test_get_handle_by_uuidv(all_devices, subtests): assert new_handle == device +# This test is not currently run in any CI job def test_get_nv_link_supported_bw_modes(all_devices, subtests): for device in all_devices: with subtests.test(device_index=nvml.device_get_index(device)): @@ -119,6 +120,7 @@ def test_device_get_unrepairable_memory_flag(all_devices, subtests): assert isinstance(status, int) +# This test is not currently run in any CI job def test_device_vgpu_get_heterogeneous_mode(all_devices, subtests): for device in all_devices: with subtests.test(device_index=nvml.device_get_index(device)): @@ -138,6 +140,7 @@ def test_read_prm_counters(all_devices, subtests): assert len(read_counters) == 5 +# This test is not currently run in any CI job @pytest.mark.thread_unsafe(reason="API appears to be thread-unsafe (2026-06)") def test_read_write_prm(all_devices, subtests): for device in all_devices: @@ -160,6 +163,7 @@ def test_get_power_management_limit(all_devices, subtests): nvml.device_get_power_management_limit(device) +# This test is not currently run in any CI job def test_set_power_management_limit(all_devices, subtests): for device in all_devices: with ( @@ -241,6 +245,7 @@ def _check_vgpu_type_id_list(type_ids): assert ids == [] +# This test is not currently run in any CI job @pytest.mark.agent_authored(model="claude-sonnet-5") def test_device_get_supported_vgpus_no_namerror(all_devices, subtests): """device_get_supported_vgpus must not raise a NameError, whether or not @@ -253,6 +258,7 @@ def test_device_get_supported_vgpus_no_namerror(all_devices, subtests): _check_vgpu_type_id_list(vgpu_type_ids) +# This test is not currently run in any CI job @pytest.mark.agent_authored(model="claude-sonnet-5") def test_device_get_creatable_vgpus_no_namerror(all_devices, subtests): """device_get_creatable_vgpus must not raise a NameError, whether or not @@ -265,6 +271,7 @@ def test_device_get_creatable_vgpus_no_namerror(all_devices, subtests): _check_vgpu_type_id_list(vgpu_type_ids) +# This test is not currently run in any CI job @pytest.mark.agent_authored(model="claude-sonnet-5") def test_device_get_active_vgpus_no_namerror(all_devices, subtests): """device_get_active_vgpus must not raise a NameError, whether or not @@ -298,6 +305,7 @@ def _require_mig_enabled(device): pytest.skip(f"MIG is not enabled on device {device}") +# This test is not currently run in any CI job @pytest.mark.agent_authored(model="claude-sonnet-5") def test_device_get_gpu_instances_empty_result(all_devices, subtests): """device_get_gpu_instances must not raise ValueError: Invalid shape in @@ -331,6 +339,7 @@ def test_device_get_gpu_instances_empty_result(all_devices, subtests): assert len(set(handles)) == len(handles) +# This test is not currently run in any CI job @pytest.mark.agent_authored(model="claude-sonnet-5") def test_gpu_instance_get_compute_instances_empty_result(all_devices, subtests): """gpu_instance_get_compute_instances must not raise ValueError: Invalid @@ -378,6 +387,7 @@ def test_gpu_instance_get_compute_instances_empty_result(all_devices, subtests): assert len(set(handles)) == len(handles) +# This test is not currently run in any CI job @pytest.mark.agent_authored(model="claude-sonnet-5") def test_device_get_vgpu_utilization_sized_array(all_devices, subtests): """device_get_vgpu_utilization must return an array sized to the real @@ -413,6 +423,7 @@ def test_device_get_vgpu_utilization_sized_array(all_devices, subtests): assert len(set(vgpu_instances)) == len(vgpu_instances) +# This test is not currently run in any CI job @pytest.mark.agent_authored(model="claude-sonnet-5") def test_device_get_vgpu_process_utilization_returns_array(all_devices, subtests): """device_get_vgpu_process_utilization must return a correctly-sized array diff --git a/cuda_bindings_13/tests/nvml/test_pci.py b/cuda_bindings_13/tests/nvml/test_pci.py index 7abff4bc45b5..a340bf9bf1db 100644 --- a/cuda_bindings_13/tests/nvml/test_pci.py +++ b/cuda_bindings_13/tests/nvml/test_pci.py @@ -36,6 +36,7 @@ def test_bridge_chip_hierarchy_t(): assert isinstance(hierarchy.bridge_chip_info, nvml.BridgeChipInfo) +# This test is not currently run in any CI job def test_bridge_chip_info(all_devices, subtests): for device in all_devices: with subtests.test(device_index=nvml.device_get_index(device)): diff --git a/cuda_bindings_13/tests/nvml/test_pynvml.py b/cuda_bindings_13/tests/nvml/test_pynvml.py index 57b0b8c0f1c7..733daf8c5e60 100644 --- a/cuda_bindings_13/tests/nvml/test_pynvml.py +++ b/cuda_bindings_13/tests/nvml/test_pynvml.py @@ -41,6 +41,7 @@ def test_system_get_driver_version(nvml_init): assert tuple(int(x) for x in vsn.split(".")[:2]) > (0, 0) +# This test is not currently run in any CI job def test_device_get_attributes(mig_handles): # nvmlDeviceGetAttributes requires MIG device handle @@ -73,6 +74,7 @@ def test_device_get_handle_by_pci_bus_id(ngpus): assert len(handles) == ngpus +# This test is not currently run in any CI job @pytest.mark.parametrize("scope", [nvml.AffinityScope.NODE, nvml.AffinityScope.SOCKET]) @pytest.mark.skipif(IS_WSL or IS_WINDOWS, reason="Not supported on WSL or Windows") def test_device_get_memory_affinity(handles, scope, subtests): @@ -85,6 +87,7 @@ def test_device_get_memory_affinity(handles, scope, subtests): assert len(node_set) == size +# This test is not currently run in any CI job @pytest.mark.parametrize("scope", [nvml.AffinityScope.NODE, nvml.AffinityScope.SOCKET]) @pytest.mark.skipif(IS_WSL or IS_WINDOWS, reason="Not supported on WSL or Windows") def test_device_get_cpu_affinity_within_scope(handles, scope, subtests): diff --git a/cuda_bindings_13/tests/nvml/test_unit.py b/cuda_bindings_13/tests/nvml/test_unit.py index fb8c25528394..65dc40d7998b 100644 --- a/cuda_bindings_13/tests/nvml/test_unit.py +++ b/cuda_bindings_13/tests/nvml/test_unit.py @@ -15,6 +15,7 @@ def unit_handles(nvml_init): return [nvml.unit_get_handle_by_index(i) for i in range(count)] +# This test is not currently run in any CI job @pytest.mark.agent_authored(model="claude-sonnet-4-6") def test_unit_get_devices_returns_array(unit_handles): """Regression test: unit_get_devices must not crash due to double-pointer cast. diff --git a/cuda_bindings_13/tests/test_cuda.py b/cuda_bindings_13/tests/test_cuda.py index a2ad692b4d31..c26d6837dba6 100644 --- a/cuda_bindings_13/tests/test_cuda.py +++ b/cuda_bindings_13/tests/test_cuda.py @@ -39,6 +39,7 @@ def node_array(nodes): return (ctypes.c_void_p * len(nodes))(*nodes) +# This test is not currently run in any CI job @pytest.mark.skipif(True, reason="Always skip!") def test_always_skip(): pass @@ -88,6 +89,7 @@ def test_cuda_memcpy(): driver.mem_free_v2(dptr) +# This test is not currently run in any CI job @pytest.mark.agent_authored(model="claude-sonnet-5-5") @pytest.mark.skipif(driver_version_less_than(13041), reason="cuGraphAddNode_v3 was added in CUDA 13.4.1") def test_graph_add_node_v3_returns_the_node(): diff --git a/cuda_bindings_13/tests/test_graphics_apis.py b/cuda_bindings_13/tests/test_graphics_apis.py index 9b357620db8e..092ab1a32ae7 100644 --- a/cuda_bindings_13/tests/test_graphics_apis.py +++ b/cuda_bindings_13/tests/test_graphics_apis.py @@ -95,6 +95,7 @@ def _gl_context(): win.close() +# This test is not currently run in any CI job @pytest.mark.parametrize( "flags", [ diff --git a/cuda_bindings_13/tests/test_utils.py b/cuda_bindings_13/tests/test_utils.py index 84f3b7ac1d05..adddfe764c64 100644 --- a/cuda_bindings_13/tests/test_utils.py +++ b/cuda_bindings_13/tests/test_utils.py @@ -197,6 +197,7 @@ def test_check_nvvm_compiler_options_arch_detection(): assert check_nvvm_compiler_options(["-arch=compute_99999"]) is False +# This test is not currently run in any CI job def test_check_nvvm_compiler_options_no_libnvvm(): if _libnvvm_available: pytest.skip("libNVVM is available; this test targets the fallback path") diff --git a/cuda_core/tests/example_tests/test_sample_environment.py b/cuda_core/tests/example_tests/test_sample_environment.py index 8db28f41fb51..3d5fc92b8f49 100644 --- a/cuda_core/tests/example_tests/test_sample_environment.py +++ b/cuda_core/tests/example_tests/test_sample_environment.py @@ -14,6 +14,7 @@ import pytest +# This test is not currently run in any CI job @pytest.mark.parametrize( ("distribution_name", "expected_source", "expected_version"), ( diff --git a/cuda_core/tests/example_tests/test_samples.py b/cuda_core/tests/example_tests/test_samples.py index 8ccb6e1861db..2ae42b4b6d71 100644 --- a/cuda_core/tests/example_tests/test_samples.py +++ b/cuda_core/tests/example_tests/test_samples.py @@ -28,6 +28,13 @@ # Samples launch full GPU workloads in their own subprocess, so keep them # serialized when the suite is run under pytest-run-parallel. +# For sample_key values: cuda_core/binarySearch, cuda_core/cudaComputeLambdas, cuda_core/customPyTorchKernel, +# cuda_core/customTensorFlowKernel, cuda_core/fftSignalAnalysis, cuda_core/glInteropFluidNumbaCudaMlir, +# cuda_core/glInteropFluid, cuda_core/glInteropMipmapLod, cuda_core/glInteropPlasma, cuda_core/greenContext, +# cuda_core/matrixMulSharedMem, cuda_core/multiGPUGradientAverage, cuda_core/numpyVsCupy, cuda_core/pageRank, +# cuda_core/parallelReduction, cuda_core/prefixSum, cuda_core/processCheckpoint, cuda_core/reductionMultiBlockCG, +# cuda_core/simplePrint, cuda_core/tmaTensorMap: +# This test is not currently run in any CI job @pytest.mark.parallel_threads_limit(1) @pytest.mark.parametrize("sample_key", _SAMPLES) @pytest.mark.samples diff --git a/cuda_core/tests/graph/test_graph_definition.py b/cuda_core/tests/graph/test_graph_definition.py index 0d4f2c8f8439..3919d7b377ec 100644 --- a/cuda_core/tests/graph/test_graph_definition.py +++ b/cuda_core/tests/graph/test_graph_definition.py @@ -689,6 +689,8 @@ def test_node_type_preserved_by_pred_succ(node_spec): assert matched[0] is node +# For node_spec values empty and host_callback_cfunc: +# This test is not currently run in any CI job def test_node_attrs(node_spec): """Type-specific attributes have expected values after construction.""" spec, g, node, expected_attrs = node_spec @@ -702,6 +704,8 @@ def test_node_attrs(node_spec): assert actual == expected, f"{spec.name}.{attr}: expected {expected}, got {actual}" +# For node_spec values empty and host_callback_cfunc: +# This test is not currently run in any CI job def test_node_attrs_preserved_by_nodes(node_spec): """Type-specific attributes survive round-trip through graph_definition.nodes().""" spec, g, node, expected_attrs = node_spec @@ -922,6 +926,7 @@ def test_alloc_peer_access(mempool_device_x2): assert d1.device_id in node.peer_access +# This test is not currently run in any CI job @pytest.mark.agent_authored(model="gpt-5.6-sol") def test_alloc_memory_type_host(init_cuda): """HOST graph alloc nodes reconstruct memory_type from the driver, not the Python argument.""" diff --git a/cuda_core/tests/graph/test_graph_node_update.py b/cuda_core/tests/graph/test_graph_node_update.py index e8e977771d9b..cfb05a0481b2 100644 --- a/cuda_core/tests/graph/test_graph_node_update.py +++ b/cuda_core/tests/graph/test_graph_node_update.py @@ -993,6 +993,8 @@ def test_failed_definition_node_update_preserves_state( case.assert_exec_uses(graph, case.original) +# For the host-callback-ctypes parameter case: +# This test is not currently run in any CI job @pytest.mark.agent_authored(model="gpt-5.6") def test_definition_node_update_rejects_wrong_type( definition_update_case, diff --git a/cuda_core/tests/memory/test_managed_ops.py b/cuda_core/tests/memory/test_managed_ops.py index b7623cc4526f..a7fdf8b0ffc5 100644 --- a/cuda_core/tests/memory/test_managed_ops.py +++ b/cuda_core/tests/memory/test_managed_ops.py @@ -380,6 +380,7 @@ def test_preferred_location_roundtrip(self, location_ops_device, external_manage buf.preferred_location = None assert buf.preferred_location is None + # This test is not currently run in any CI job @pytest.mark.thread_unsafe(reason="external_managed_buffer is shared between threads") def test_preferred_location_roundtrip_host_numa(self, location_ops_device): """Host(numa_id=N) round-trips correctly on CUDA 13 builds.""" diff --git a/cuda_core/tests/memory_ipc/test_errors.py b/cuda_core/tests/memory_ipc/test_errors.py index a036c87363ba..e7a00327576b 100644 --- a/cuda_core/tests/memory_ipc/test_errors.py +++ b/cuda_core/tests/memory_ipc/test_errors.py @@ -90,6 +90,8 @@ def test_register_rejects_non_ipc_memory_resource(mempool_device): DeviceMemoryResource.from_registry(key) +# For the VirtualMR parameter case: +# This test is not currently run in any CI job @pytest.mark.human_authored def test_register_rejects_mismatched_uuid(ipc_memory_resource): """register() rejects a UUID that does not match the resource's own. @@ -138,6 +140,8 @@ def test_ipc_allocation_handle_state_tracks_close(): os.close(write_fd) +# For the VirtualMR parameter case: +# This test is not currently run in any CI job @pytest.mark.agent_authored(model="gpt-5.6") def test_closed_ipc_allocation_handle_rejected_before_registry_hit(ipc_device, ipc_memory_resource): mr = ipc_memory_resource @@ -330,6 +334,8 @@ def ASSERT(self, exc_type, exc_msg): assert exc_msg.startswith("Argument 'ipc_descriptor' has incorrect type") +# For the inherited test_main[VirtualMR] case: +# This test is not currently run in any CI job class TestDanglingBuffer(ChildErrorHarness): """ Error when importing a buffer object without registering its memory diff --git a/cuda_core/tests/memory_ipc/test_leaks.py b/cuda_core/tests/memory_ipc/test_leaks.py index 50240f577317..92023b8dc196 100644 --- a/cuda_core/tests/memory_ipc/test_leaks.py +++ b/cuda_core/tests/memory_ipc/test_leaks.py @@ -26,6 +26,8 @@ pytestmark = pytest.mark.thread_unsafe(reason="Tests number of fds which is shared.") +# For the VirtualMR parameter case: +# This test is not currently run in any CI job @pytest.mark.flaky(reruns=2) @skip_if_unrunnable def test_alloc_handle(ipc_memory_resource): @@ -97,6 +99,8 @@ def _get_buffer_desc(mr, stream): return mr.allocate(NBYTES, stream=stream).ipc_descriptor +# For VirtualMR with getobject=alloc_handle (all launchers): +# This test is not currently run in any CI job @pytest.mark.flaky(reruns=2) @skip_if_unrunnable @pytest.mark.parametrize( diff --git a/cuda_core/tests/memory_ipc/test_send_buffers.py b/cuda_core/tests/memory_ipc/test_send_buffers.py index 55df245d577e..89efd2d0af98 100644 --- a/cuda_core/tests/memory_ipc/test_send_buffers.py +++ b/cuda_core/tests/memory_ipc/test_send_buffers.py @@ -85,6 +85,8 @@ class TestIpcReexport: re-exported from B to C. """ + # For the VirtualMR parameter case: + # This test is not currently run in any CI job @pytest.mark.flaky(reruns=2) def test_main(self, ipc_device, ipc_memory_resource): # Set up the device. diff --git a/cuda_core/tests/memory_ipc/test_vmm_fabric.py b/cuda_core/tests/memory_ipc/test_vmm_fabric.py index bb0491c4dcb1..f3b444c09551 100644 --- a/cuda_core/tests/memory_ipc/test_vmm_fabric.py +++ b/cuda_core/tests/memory_ipc/test_vmm_fabric.py @@ -113,6 +113,7 @@ def _round_trip(mode, owner_uuid, payload): return result +# This test is not currently run in any CI job @pytest.mark.agent_authored(model="gpt-6.1-sol") def test_export_shape(vmm_fabric_device): device = vmm_fabric_device @@ -173,6 +174,7 @@ def test_descriptor_pickle_and_validation(): descriptor.from_handles(handles, sizes, size=size) +# This test is not currently run in any CI job @pytest.mark.parametrize("mode", ["queue", "pipe", "argument", "pool"]) @pytest.mark.parametrize("send_buffer", [False, True], ids=["descriptor", "buffer"]) @pytest.mark.thread_unsafe(reason="counts process-global file descriptors") @@ -192,6 +194,7 @@ def test_cross_process(vmm_fabric_device, mode, send_buffer): assert len(os.listdir("/proc/self/fd")) == before +# This test is not currently run in any CI job @pytest.mark.agent_authored(model="gpt-6.1-sol") def test_second_gpu_and_wrong_owner(vmm_fabric_device_x2): owner, peer = vmm_fabric_device_x2 @@ -236,6 +239,7 @@ def test_handle_type_mismatch(vmm_ipc_device): # Fixed patterns: a random first byte of 0x01 would read as the driver's own handle type and take another error path. +# This test is not currently run in any CI job @pytest.mark.parametrize("handle", [bytes(64), b"\xff" * 64], ids=["zero", "ones"]) @pytest.mark.agent_authored(model="gpt-6.1-sol") def test_garbage(vmm_fabric_device, handle): @@ -248,6 +252,7 @@ def test_garbage(vmm_fabric_device, handle): _check_import_error(info.value) +# This test is not currently run in any CI job @pytest.mark.agent_authored(model="gpt-6.1-sol") def test_stale_descriptor(vmm_fabric_device): device = vmm_fabric_device @@ -259,6 +264,7 @@ def test_stale_descriptor(vmm_fabric_device): _check_import_error(info.value) +# This test is not currently run in any CI job @pytest.mark.agent_authored(model="gpt-6.1-sol") def test_reexport_imported_derivatives(vmm_fabric_device): device = vmm_fabric_device @@ -276,6 +282,7 @@ def test_reexport_imported_derivatives(vmm_fabric_device): pickle.dumps(imported) +# This test is not currently run in any CI job @pytest.mark.agent_authored(model="gpt-6.1-sol") def test_buffer_pickle(vmm_fabric_device): device = vmm_fabric_device @@ -303,6 +310,7 @@ def _child_stale_queue(queue, ready, outgoing): outgoing.close() +# This test is not currently run in any CI job @pytest.mark.agent_authored(model="gpt-6.1-sol") def test_queued_buffer_does_not_pin(vmm_fabric_device): device = vmm_fabric_device @@ -342,6 +350,7 @@ def test_queued_buffer_does_not_pin(vmm_fabric_device): assert _read(fresh) == b"\x58" * 16 +# This test is not currently run in any CI job @pytest.mark.skipif(IS_WINDOWS or IS_WSL, reason="Fabric IPC requires Linux") @pytest.mark.agent_authored(model="gpt-6.1-sol") def test_unsupported_fabric_construction(init_cuda): diff --git a/cuda_core/tests/memory_ipc/test_workerpool.py b/cuda_core/tests/memory_ipc/test_workerpool.py index 7eeb2415d095..ef7916ef2ae7 100644 --- a/cuda_core/tests/memory_ipc/test_workerpool.py +++ b/cuda_core/tests/memory_ipc/test_workerpool.py @@ -129,6 +129,8 @@ def init_worker(mrs): # Passing mrs implicitly registers them. pass + # For VirtualMR with nmrs=1 or nmrs=3: + # This test is not currently run in any CI job @pytest.mark.flaky(reruns=2) @pytest.mark.parametrize("nmrs", (1, NMRS)) def test_main(self, ipc_device, ipc_memory_resource_factory, nmrs): diff --git a/cuda_core/tests/system/test_system_device.py b/cuda_core/tests/system/test_system_device.py index 80be43e75c78..295beee4206e 100644 --- a/cuda_core/tests/system/test_system_device.py +++ b/cuda_core/tests/system/test_system_device.py @@ -129,6 +129,7 @@ def test_affinity(subtests): assert isinstance(affinity, list) +# This test is not currently run in any CI job def test_numa_node_id(subtests): for device in system.Device.get_all_devices(): with subtests.test(device_index=device.index): @@ -339,6 +340,7 @@ def test_device_pci_bus_id(): assert new_device.index == device.index +# This test is not currently run in any CI job @pytest.mark.skipif(helpers.IS_WSL or helpers.IS_WINDOWS, reason="Device attributes not supported on WSL or Windows") def test_device_attributes(subtests): for device in system.Device.get_all_devices(): @@ -635,6 +637,7 @@ def test_get_inforom_version(subtests): inforom.validate() +# This test is not currently run in any CI job def test_auto_boosted_clocks_enabled(subtests): for device in system.Device.get_all_devices(): with subtests.test(device_index=device.index): diff --git a/cuda_core/tests/test_checkpoint.py b/cuda_core/tests/test_checkpoint.py index a52d1b7dabfd..a9f64e5aa9af 100644 --- a/cuda_core/tests/test_checkpoint.py +++ b/cuda_core/tests/test_checkpoint.py @@ -579,6 +579,7 @@ class TestCheckpointGpuMigration: NVBug 5437334). """ + # This test is not currently run in any CI job def test_rotation_migrates_context(self): """Rotate context through all GPUs and back to the origin. @@ -589,6 +590,7 @@ def test_rotation_migrates_context(self): """ _run_checkpoint_scenario_or_skip("rotation_migrates_context", timeout=180) + # This test is not currently run in any CI job def test_swap_identical_gpus(self): """Swap context between two GPUs of the same chip type. diff --git a/cuda_core/tests/test_linker.py b/cuda_core/tests/test_linker.py index 5b0bc0a9cbca..aaec64f18a3f 100644 --- a/cuda_core/tests/test_linker.py +++ b/cuda_core/tests/test_linker.py @@ -127,6 +127,7 @@ def test_linker_link_ptx_nvjitlink(compile_ltoir_functions): assert linked_code.name == options.name +# This test is not currently run in any CI job @pytest.mark.skipif(not is_culink_backend, reason="nvjitlink requires lto for ptx linking") def test_linker_link_ptx_culink(compile_ptx_functions): options = LinkerOptions(arch=ARCH) @@ -311,6 +312,7 @@ def test_linker_handle(compile_ptx_functions): assert int(handle) != 0 +# This test is not currently run in any CI job @pytest.mark.agent_authored(model="gpt-5") @pytest.mark.skipif(not is_culink_backend, reason="driver backend regression test") def test_driver_linker_lifetime_no_heap_corruption(compile_ptx_functions): @@ -330,6 +332,7 @@ def test_driver_linker_lifetime_no_heap_corruption(compile_ptx_functions): linker.close() +# This test is not currently run in any CI job @pytest.mark.agent_authored(model="gpt-5") @pytest.mark.skipif(not is_culink_backend, reason="driver backend regression test") def test_driver_linker_preserves_error_log_after_close(init_cuda): diff --git a/cuda_core/tests/test_managed_memory_warning.py b/cuda_core/tests/test_managed_memory_warning.py index 811bb6c3ce56..60e99439b262 100644 --- a/cuda_core/tests/test_managed_memory_warning.py +++ b/cuda_core/tests/test_managed_memory_warning.py @@ -65,6 +65,7 @@ def test_default_pool_error_without_concurrent_access(device_without_concurrent_ raise +# This test is not currently run in any CI job @requires_cuda_13 def test_warning_emitted(device_without_concurrent_managed_access): """ManagedMemoryResource emits a warning when concurrent managed access is unsupported.""" @@ -85,6 +86,7 @@ def test_warning_emitted(device_without_concurrent_managed_access): mr.close() +# This test is not currently run in any CI job @requires_cuda_13 def test_warning_emitted_only_once(device_without_concurrent_managed_access): """Warning fires only once even when multiple ManagedMemoryResources are created.""" diff --git a/cuda_core/tests/test_memory.py b/cuda_core/tests/test_memory.py index 491956e82ada..347f8126cefe 100644 --- a/cuda_core/tests/test_memory.py +++ b/cuda_core/tests/test_memory.py @@ -2824,6 +2824,8 @@ def test_pinned_mr_numa_id_negative_error(init_cuda): PinnedMemoryResource(PinnedMemoryResourceOptions(numa_id=-42)) +# For ManagedMR with ipc_enabled=True (all property names): +# This test is not currently run in any CI job @pytest.mark.parametrize("ipc_enabled", [True, False]) @pytest.mark.parametrize( "property_name,expected_type", diff --git a/cuda_core/tests/test_memory_peer_access.py b/cuda_core/tests/test_memory_peer_access.py index 6c392404ac89..7bce09245a7f 100644 --- a/cuda_core/tests/test_memory_peer_access.py +++ b/cuda_core/tests/test_memory_peer_access.py @@ -57,6 +57,7 @@ def test_peer_access_basic(mempool_device_x2): zero_on_dev0.copy_from(buf_on_dev1, stream=stream_on_dev0) +# This test is not currently run in any CI job def test_peer_access_transitions(mempool_device_x3): """Advanced tests for dmr.peer_accessible_by.""" diff --git a/cuda_core/tests/test_module.py b/cuda_core/tests/test_module.py index 0e2ac8331245..c6d42e0a14e4 100644 --- a/cuda_core/tests/test_module.py +++ b/cuda_core/tests/test_module.py @@ -662,6 +662,7 @@ def test_occupancy_max_potential_block_size_constant(get_saxpy_kernel_cubin, blo kernel.occupancy.max_potential_block_size(invalid_dsmem, block_size_limit) +# This test is not currently run in any CI job @pytest.mark.skipif(numba is None, reason="Test requires numba to be installed") @pytest.mark.parametrize("block_size_limit", [32, 64, 96, 120, 128, 277, 0]) def test_occupancy_max_potential_block_size_b2dsize(get_saxpy_kernel_cubin, block_size_limit): diff --git a/cuda_core/tests/test_object_protocols.py b/cuda_core/tests/test_object_protocols.py index e48bc15a4a63..29365939204e 100644 --- a/cuda_core/tests/test_object_protocols.py +++ b/cuda_core/tests/test_object_protocols.py @@ -927,6 +927,9 @@ def test_usable_in_weak_set(sample_object): # ============================================================================= +# For sample_alloc_node, sample_empty_node, sample_free_node, sample_memcpy_node, sample_memset_node, +# sample_object_code_ptx, and sample_program_ptx: +# This test is not currently run in any CI job @pytest.mark.parametrize("sample_object,pattern", REPR_PATTERNS, indirect=["sample_object"]) def test_repr_format(sample_object, pattern): """repr() returns a properly formatted string.""" diff --git a/cuda_core/tests/test_program.py b/cuda_core/tests/test_program.py index 6dc422c9c467..4376519a90b9 100644 --- a/cuda_core/tests/test_program.py +++ b/cuda_core/tests/test_program.py @@ -172,6 +172,8 @@ def ptx_code_object(): return ptx_object_code +# For the options31 parameter case: +# This test is not currently run in any CI job @pytest.mark.parametrize( "options", [ diff --git a/cuda_core/tests/test_tensor_map.py b/cuda_core/tests/test_tensor_map.py index 78145cddb929..1cb6a79e6a91 100644 --- a/cuda_core/tests/test_tensor_map.py +++ b/cuda_core/tests/test_tensor_map.py @@ -517,6 +517,7 @@ def test_replace_address_rejects_tensor_from_other_device(self, dev, skip_if_no_ with pytest.raises(ValueError, match=r"replace_address expects tensor on device 0, got 1"): desc.replace_address(buf1) + # This test is not currently run in any CI job def test_replace_address_accepts_managed_buffer_on_nonzero_device(self, init_cuda): if len(Device.get_all_devices()) < 2: pytest.skip("requires multi-GPU") @@ -615,6 +616,7 @@ def test_from_im2col_wide_rejects_tensor_from_other_device(self, init_cuda): pytest.skip("Im2col-wide requires cuda.core built with CUDA 13+") raise + # This test is not currently run in any CI job def test_from_tiled_accepts_managed_buffer_on_nonzero_device(self, init_cuda): if len(Device.get_all_devices()) < 2: pytest.skip("requires multi-GPU") @@ -747,6 +749,7 @@ def skip_if_no_im2col_wide(self, dev): pytest.skip("Im2col-wide unsupported on this driver/GPU combination") raise + # This test is not currently run in any CI job def test_from_im2col_wide_3d(self, dev, skip_if_no_im2col_wide): # 3D tensor: batch=1, width=32, channels=64 buf = dev.allocate(1 * 32 * 64 * 4, stream=dev.default_stream) @@ -761,6 +764,7 @@ def test_from_im2col_wide_3d(self, dev, skip_if_no_im2col_wide): ) assert desc is not None + # This test is not currently run in any CI job def test_from_im2col_wide_4d(self, dev, skip_if_no_im2col_wide): # NHWC layout: N=1, H=8, W=8, C=64 # Wide mode only uses scalar W corners, even with higher rank @@ -776,6 +780,7 @@ def test_from_im2col_wide_4d(self, dev, skip_if_no_im2col_wide): ) assert desc is not None + # This test is not currently run in any CI job def test_from_im2col_wide_5d(self, dev, skip_if_no_im2col_wide): # NDHWC layout: N=1, D=4, H=8, W=8, C=64 # Max rank boundary — verifies all 5 dim/stride slots are filled @@ -791,6 +796,7 @@ def test_from_im2col_wide_5d(self, dev, skip_if_no_im2col_wide): ) assert desc is not None + # This test is not currently run in any CI job def test_from_im2col_wide_rank_validation(self, dev, skip_if_no_im2col_wide): buf = dev.allocate(1024 * 4, stream=dev.default_stream) with pytest.raises(ValueError, match="Im2col-wide tensor rank must be between 3 and 5"): diff --git a/cuda_core/tests/test_utils.py b/cuda_core/tests/test_utils.py index 1e961e173ed0..fc384d3dcdd9 100644 --- a/cuda_core/tests/test_utils.py +++ b/cuda_core/tests/test_utils.py @@ -245,6 +245,8 @@ def gpu_array_ptr(arr): @pytest.mark.parametrize(("in_arr", "use_stream"), gpu_array_samples()) class TestViewGPU: + # For the empty parameter set ([NOTSET]): + # This test is not currently run in any CI job def test_args_viewable_as_strided_memory_gpu(self, in_arr, use_stream): # TODO: use the device fixture? dev = Device() @@ -259,6 +261,8 @@ def my_func(arr): my_func(in_arr) + # For the empty parameter set ([NOTSET]): + # This test is not currently run in any CI job def test_strided_memory_view_cpu(self, in_arr, use_stream): # TODO: use the device fixture? dev = Device() @@ -269,6 +273,8 @@ def test_strided_memory_view_cpu(self, in_arr, use_stream): view = StridedMemoryView.from_any_interface(in_arr, stream_ptr=s.handle if s else -1) self._check_view(view, in_arr, dev) + # For the empty parameter set ([NOTSET]): + # This test is not currently run in any CI job def test_strided_memory_view_init(self, in_arr, use_stream): # TODO: use the device fixture? dev = Device() @@ -338,6 +344,8 @@ def test_strided_memory_view_exposes_dlpack_c_exchange_api_capsule(): @pytest.mark.skipif(cp is None, reason="CuPy is not installed") @pytest.mark.parametrize("in_arr,use_stream", (*gpu_array_samples(),)) class TestViewCudaArrayInterfaceGPU: + # For the empty parameter set ([NOTSET]): + # This test is not currently run in any CI job def test_cuda_array_interface_gpu(self, in_arr, use_stream): # TODO: use the device fixture? dev = Device() @@ -753,6 +761,7 @@ def test_ml_dtypes_bfloat16_dlpack(init_cuda, slices): assert smv.strides == strides_in_counts +# This test is not currently run in any CI job @pytest.mark.parametrize( "slices", [ @@ -953,6 +962,7 @@ def test_array_interface_mask_rejected(): _torch_skip = pytest.mark.skipif(torch is None, reason="PyTorch is not installed") +# This test is not currently run in any CI job @_torch_skip @pytest.mark.parametrize( "dtype", diff --git a/cuda_pathfinder/tests/test_driver_lib_loading.py b/cuda_pathfinder/tests/test_driver_lib_loading.py index defca06abed0..f71ab102e060 100644 --- a/cuda_pathfinder/tests/test_driver_lib_loading.py +++ b/cuda_pathfinder/tests/test_driver_lib_loading.py @@ -128,6 +128,8 @@ def test_load_lib_no_cache_does_not_dispatch_ctk_lib_to_driver_path(mocker): # --------------------------------------------------------------------------- +# For libname=nvcudla: +# This test is not currently run in any CI job @pytest.mark.parametrize("libname", sorted(_DRIVER_ONLY_LIBNAMES)) def test_real_load_driver_lib(info_summary_append, libname): """Load a real driver library in a dedicated subprocess. diff --git a/cuda_pathfinder/tests/test_load_nvidia_dynamic_lib.py b/cuda_pathfinder/tests/test_load_nvidia_dynamic_lib.py index a6a69e5c6acb..4cc524c49e85 100644 --- a/cuda_pathfinder/tests/test_load_nvidia_dynamic_lib.py +++ b/cuda_pathfinder/tests/test_load_nvidia_dynamic_lib.py @@ -157,6 +157,8 @@ def test_cutensor_mg_expected_failure_follows_installed_cutensor_version( have_distribution.cache_clear() +# For libname=nvcudla: +# This test is not currently run in any CI job @pytest.mark.parametrize( "libname", supported_nvidia_libs.SUPPORTED_WINDOWS_DLLS if IS_WINDOWS else supported_nvidia_libs.SUPPORTED_LINUX_SONAMES, From f605e6f28690b1cdbd979733279ad294e360e776 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Mon, 23 Nov 2026 12:18:57 -0800 Subject: [PATCH 82/85] Unify Cython test builds across Linux and Windows (#3536) * test: unify cross-platform Cython test builds * ci: require manual copy-pr-bot approval * test: retire the platform Cython test wrappers --- .github/workflows/build-wheel.yml | 16 ++++--------- cuda_bindings_12/AGENTS.md | 2 +- cuda_bindings_12/README.md | 10 ++++---- cuda_bindings_12/pixi.toml | 10 ++++---- cuda_bindings_12/pyproject.toml | 1 + cuda_bindings_12/tests/cython/build_tests.bat | 12 ---------- cuda_bindings_12/tests/cython/build_tests.py | 1 + cuda_bindings_12/tests/cython/build_tests.sh | 23 ------------------- cuda_bindings_13/AGENTS.md | 2 +- cuda_bindings_13/README.md | 2 +- cuda_bindings_13/_build_shared.py | 13 +++++++++++ cuda_bindings_13/pixi.toml | 10 ++++---- cuda_bindings_13/pyproject.toml | 1 + cuda_bindings_13/tests/cython/build_tests.bat | 12 ---------- cuda_bindings_13/tests/cython/build_tests.py | 1 + cuda_bindings_13/tests/cython/build_tests.sh | 23 ------------------- cuda_core/AGENTS.md | 2 +- cuda_core/README.md | 2 +- cuda_core/pixi.toml | 10 ++++---- cuda_core/pyproject.toml | 1 + cuda_core/tests/cython/build_tests.py | 2 ++ cuda_core/tests/cython/build_tests.sh | 22 ------------------ 22 files changed, 49 insertions(+), 129 deletions(-) delete mode 100644 cuda_bindings_12/tests/cython/build_tests.bat delete mode 100755 cuda_bindings_12/tests/cython/build_tests.sh delete mode 100644 cuda_bindings_13/tests/cython/build_tests.bat delete mode 100755 cuda_bindings_13/tests/cython/build_tests.sh delete mode 100755 cuda_core/tests/cython/build_tests.sh diff --git a/.github/workflows/build-wheel.yml b/.github/workflows/build-wheel.yml index e1ab9b2802d4..d8b8d1bb7378 100644 --- a/.github/workflows/build-wheel.yml +++ b/.github/workflows/build-wheel.yml @@ -500,9 +500,7 @@ jobs: test "${#bindings_wheels[@]}" -eq 1 test -f "${bindings_wheels[0]}" python -m pip install "${bindings_wheels[0]}" --group "${CURRENT_BINDINGS_ROOT}/pyproject.toml:test" - pushd ${{ env.CURRENT_BINDINGS_CYTHON_TESTS_DIR }} - bash build_tests.sh - popd + python "${CURRENT_BINDINGS_CYTHON_TESTS_DIR}/build_tests.py" - name: Upload cuda.bindings ${{ env.CURRENT_CUDA_MAJOR }} Cython tests if: ${{ env.TEST_BINDINGS_CURRENT == 'true' }} @@ -526,9 +524,7 @@ jobs: exit 1 fi pip install "${core_wheel}" --group ./cuda_core/pyproject.toml:test - pushd ${{ env.CUDA_CORE_CYTHON_TESTS_DIR }} - bash build_tests.sh - popd + python "${CUDA_CORE_CYTHON_TESTS_DIR}/build_tests.py" - name: Upload current cuda.core Cython tests if: ${{ env.TEST_CORE_CURRENT == 'true' }} @@ -623,9 +619,7 @@ jobs: test "${#bindings_wheels[@]}" -eq 1 test -f "${bindings_wheels[0]}" python -m pip install "${bindings_wheels[0]}" --group "${MAINTENANCE_BINDINGS_ROOT}/pyproject.toml:test" - pushd ${{ env.MAINTENANCE_BINDINGS_CYTHON_TESTS_DIR }} - bash build_tests.sh - popd + python "${MAINTENANCE_BINDINGS_CYTHON_TESTS_DIR}/build_tests.py" - name: Upload cuda.bindings ${{ env.MAINTENANCE_CUDA_MAJOR }} Cython tests if: ${{ !inputs.single-cuda-major && env.TEST_BINDINGS_MAINTENANCE == 'true' }} @@ -755,9 +749,7 @@ jobs: exit 1 fi pip install "${core_wheel}" --group ./cuda_core/pyproject.toml:test - pushd ${{ env.CUDA_CORE_CYTHON_TESTS_DIR }} - bash build_tests.sh - popd + python "${CUDA_CORE_CYTHON_TESTS_DIR}/build_tests.py" - name: Upload maintenance cuda.core Cython tests if: ${{ !inputs.single-cuda-major && env.TEST_CORE_MAINTENANCE == 'true' }} diff --git a/cuda_bindings_12/AGENTS.md b/cuda_bindings_12/AGENTS.md index 1de5d4fa199e..968d8a752483 100644 --- a/cuda_bindings_12/AGENTS.md +++ b/cuda_bindings_12/AGENTS.md @@ -35,7 +35,7 @@ for generation provenance and review expectations. From this directory, install with `python -m pip install -v -e . --group test`, then run `python -m pytest tests/`. Free-threaded development also needs the `test-ft` dependency group. -- Build Cython tests with `tests/cython/build_tests.sh` or `build_tests.bat` +- Build Cython tests with `python tests/cython/build_tests.py` before running `python -m pytest tests/cython/`. This requires the matching CUDA headers and compiler toolchain. - Legacy samples remain under `examples/`; do not assume CUDA 13's sample diff --git a/cuda_bindings_12/README.md b/cuda_bindings_12/README.md index ad736aca1c64..3320a12b7cc4 100644 --- a/cuda_bindings_12/README.md +++ b/cuda_bindings_12/README.md @@ -31,12 +31,11 @@ and pip 25.1 or newer: ```console cd cuda_bindings_12 python -m pip install -v -e . --group test -tests/cython/build_tests.sh +python tests/cython/build_tests.py python -m pytest tests/ tests/cython/ ``` -Use `build_tests.bat` on Windows. Free-threaded Python also needs the -`test-ft` dependency group. +Free-threaded Python also needs the `test-ft` dependency group. Versions follow reachable `v12.*` tags through standard `setuptools-scm`. Source builds need the matching tag and the history connecting it to the @@ -69,8 +68,9 @@ To run these tests: Cython tests are located in `tests/cython` and need to be built. These builds have the same CUDA Toolkit header requirements as [Installing from Source](https://nvidia.github.io/cuda-python/cuda-bindings/12.9.7/install.html#requirements) where the major.minor version must match `cuda.bindings`. To build them: -1. Setup environment variable `CUDA_HOME` with the path to the CUDA Toolkit installation. -2. Run the `build_tests` script located in `tests/cython` appropriate to your platform. This will both cythonize the tests and build them. +1. Set `CUDA_PATH` or `CUDA_HOME` to the CUDA Toolkit installation path. + If both are set, `CUDA_PATH` takes precedence. +2. Run `python tests/cython/build_tests.py` to cythonize and build the tests. To run these tests: * `python -m pytest tests/cython/` against editable installations diff --git a/cuda_bindings_12/pixi.toml b/cuda_bindings_12/pixi.toml index 67d351d0cc6c..81c794b6d5a1 100644 --- a/cuda_bindings_12/pixi.toml +++ b/cuda_bindings_12/pixi.toml @@ -64,12 +64,15 @@ cuda-crt-dev_win-64 = "*" # For finding headers when building the Cython tests. [feature.cython-tests.target.linux-64.activation.env] CUDA_HOME = "$CONDA_PREFIX/targets/x86_64-linux" +CUDA_PATH = "$CONDA_PREFIX/targets/x86_64-linux" [feature.cython-tests.target.linux-aarch64.activation.env] CUDA_HOME = "$CONDA_PREFIX/targets/sbsa-linux" +CUDA_PATH = "$CONDA_PREFIX/targets/sbsa-linux" [feature.cython-tests.target.win-64.activation.env] CUDA_HOME = "$CONDA_PREFIX/Library" +CUDA_PATH = "$CONDA_PREFIX/Library" [feature.cu12.dependencies] cuda-version = "12.*" @@ -139,11 +142,8 @@ libnvfatbin = "*" [package.target.linux.run-dependencies] libcufile = "*" -[target.linux.tasks.build-cython-tests] -cmd = ["$PIXI_PROJECT_ROOT/tests/cython/build_tests.sh"] - -[target.win-64.tasks.build-cython-tests] -cmd = ["$PIXI_PROJECT_ROOT/tests/cython/build_tests.bat"] +[tasks.build-cython-tests] +cmd = 'python "$PIXI_PROJECT_ROOT/tests/cython/build_tests.py"' [target.linux.tasks.test] cmd = [ diff --git a/cuda_bindings_12/pyproject.toml b/cuda_bindings_12/pyproject.toml index d281a749b597..e57393681960 100644 --- a/cuda_bindings_12/pyproject.toml +++ b/cuda_bindings_12/pyproject.toml @@ -55,6 +55,7 @@ build = [ "cython>=3.2.5,<3.3", ] test = [ + "cuda-pathfinder>=1.5", "cython>=3.2.5,<3.3", "setuptools>=80.0.0", "numpy>=1.21.1", diff --git a/cuda_bindings_12/tests/cython/build_tests.bat b/cuda_bindings_12/tests/cython/build_tests.bat deleted file mode 100644 index 0ef6abb06f3f..000000000000 --- a/cuda_bindings_12/tests/cython/build_tests.bat +++ /dev/null @@ -1,12 +0,0 @@ -@echo off - -REM SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -REM SPDX-License-Identifier: Apache-2.0 - -setlocal -set CL=%CL% /I"%CUDA_HOME%\include" -REM The Python driver provides Cython's .pxd include path and builds in this -REM directory so Windows does not duplicate the checkout path in link outputs. -python "%~dp0build_tests.py" -set "BUILD_RESULT=%ERRORLEVEL%" -endlocal & exit /b %BUILD_RESULT% diff --git a/cuda_bindings_12/tests/cython/build_tests.py b/cuda_bindings_12/tests/cython/build_tests.py index a4a26589ce94..6afcd7726f0e 100644 --- a/cuda_bindings_12/tests/cython/build_tests.py +++ b/cuda_bindings_12/tests/cython/build_tests.py @@ -98,6 +98,7 @@ def main() -> None: raise SystemExit(f"no test_*.pyx files under {script_dir}") ext_modules = _cythonize_tests(pyx_files) + build_shared._add_cython_test_include_dirs(ext_modules) # pytest imports each extension by bare module name (see test_cython.py), # so build in-place next to its .pyx regardless of the invoking cwd. diff --git a/cuda_bindings_12/tests/cython/build_tests.sh b/cuda_bindings_12/tests/cython/build_tests.sh deleted file mode 100755 index 0ca0745d2b4c..000000000000 --- a/cuda_bindings_12/tests/cython/build_tests.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -eo pipefail - -# SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -# SPDX-License-Identifier: Apache-2.0 - -UNAME=$(uname) -if [ "$UNAME" == "Linux" ] ; then - SCRIPTPATH=$(dirname $(realpath "$0")) - export CPLUS_INCLUDE_PATH=$CUDA_HOME/include:${CPLUS_INCLUDE_PATH:-} -elif [[ "$UNAME" == CYGWIN* || "$UNAME" == MINGW* || "$UNAME" == MSYS* ]] ; then - SCRIPTPATH="$(dirname $(cygpath -w $(realpath "$0")))" - export CL="/I\"${CUDA_HOME}\\include\" ${CL:-}" -else - exit 1 -fi - -# Use a Python driver so the cuda.bindings source root is resolved at -# runtime and passed via Cython's include_path -- avoids platform-specific -# PYTHONPATH separator handling and surfaces import errors as exceptions. -# nthreads=1 inside the driver mirrors the previous `-j 1` to side-step -# any process-pool issues and keep builds deterministic. -python "${SCRIPTPATH}/build_tests.py" diff --git a/cuda_bindings_13/AGENTS.md b/cuda_bindings_13/AGENTS.md index a892a0799f3b..4a33dd125e4c 100644 --- a/cuda_bindings_13/AGENTS.md +++ b/cuda_bindings_13/AGENTS.md @@ -46,7 +46,7 @@ subpackage in the `cuda-python` monorepo. - **Primary tests**: `pytest tests/` - **Cython tests**: - - build: `tests/cython/build_tests.sh` (or platform equivalent) + - build: `python tests/cython/build_tests.py` - run: `pytest tests/cython/` - **Samples**: run pytest-based sample coverage in `tests/example_tests/`; sample sources and instructions live in `../samples/cuda_bindings/`. diff --git a/cuda_bindings_13/README.md b/cuda_bindings_13/README.md index e603e713ec8b..1906b1b835ec 100644 --- a/cuda_bindings_13/README.md +++ b/cuda_bindings_13/README.md @@ -44,7 +44,7 @@ To run these tests: Cython tests are located in `tests/cython` and need to be built. These builds have the same CUDA Toolkit header requirements as [Installing from Source](https://nvidia.github.io/cuda-python/cuda-bindings/latest/install.html#requirements) where the major.minor version must match `cuda.bindings`. To build them: 1. Setup environment variable `CUDA_PATH` (or `CUDA_HOME`) with the path to the CUDA Toolkit installation. Note: If both are set, `CUDA_PATH` takes precedence. -2. Run the `build_tests` script located in `tests/cython` appropriate to your platform. This will both cythonize the tests and build them. +2. Run `python tests/cython/build_tests.py` to cythonize and build the tests. To run these tests: * `python -m pytest tests/cython/` against editable installations diff --git a/cuda_bindings_13/_build_shared.py b/cuda_bindings_13/_build_shared.py index 8a4faf066865..03da3c887b33 100644 --- a/cuda_bindings_13/_build_shared.py +++ b/cuda_bindings_13/_build_shared.py @@ -89,6 +89,19 @@ def _get_cuda_path() -> str: return cuda_path +def _add_cython_test_include_dirs(extensions, *package_include_dirs: Path) -> None: + """Set the compiler include paths for the Cython test extensions.""" + cuda_include_dir = Path(_get_cuda_path()) / "include" + include_dirs = [str(path) for path in (*package_include_dirs, cuda_include_dir)] + for extension in extensions: + if sys.platform == "win32": + extension.include_dirs.extend(include_dirs) + else: + # CPLUS_INCLUDE_PATH treated these directories as system headers. + for include_dir in include_dirs: + extension.extra_compile_args.extend(("-isystem", include_dir)) + + # ----------------------------------------------------------------------- # Toolchain selection diff --git a/cuda_bindings_13/pixi.toml b/cuda_bindings_13/pixi.toml index a3d33e678199..c086cf82a3f7 100644 --- a/cuda_bindings_13/pixi.toml +++ b/cuda_bindings_13/pixi.toml @@ -68,12 +68,15 @@ cuda-crt-dev_win-64 = "*" # For finding headers when building the Cython tests [feature.cython-tests.target.linux-64.activation.env] CUDA_HOME = "$CONDA_PREFIX/targets/x86_64-linux" +CUDA_PATH = "$CONDA_PREFIX/targets/x86_64-linux" [feature.cython-tests.target.linux-aarch64.activation.env] CUDA_HOME = "$CONDA_PREFIX/targets/sbsa-linux" +CUDA_PATH = "$CONDA_PREFIX/targets/sbsa-linux" [feature.cython-tests.target.win-64.activation.env] CUDA_HOME = "$CONDA_PREFIX/Library" +CUDA_PATH = "$CONDA_PREFIX/Library" [feature.cu12.dependencies] cuda-version = "12.*" @@ -152,11 +155,8 @@ libnvfatbin = "*" [package.target.linux.run-dependencies] libcufile = "*" -[target.linux.tasks.build-cython-tests] -cmd = ["$PIXI_PROJECT_ROOT/tests/cython/build_tests.sh"] - -[target.win-64.tasks.build-cython-tests] -cmd = ["$PIXI_PROJECT_ROOT/tests/cython/build_tests.bat"] +[tasks.build-cython-tests] +cmd = 'python "$PIXI_PROJECT_ROOT/tests/cython/build_tests.py"' [target.linux.tasks.test] cmd = [ diff --git a/cuda_bindings_13/pyproject.toml b/cuda_bindings_13/pyproject.toml index e6261ee483d3..466b79c9d360 100644 --- a/cuda_bindings_13/pyproject.toml +++ b/cuda_bindings_13/pyproject.toml @@ -50,6 +50,7 @@ build = [ "cython>=3.2.5,<3.3", ] test = [ + "cuda-pathfinder>=1.5", "cython>=3.2.5,<3.3", "setuptools>=80.0.0", "numpy>=1.21.1", diff --git a/cuda_bindings_13/tests/cython/build_tests.bat b/cuda_bindings_13/tests/cython/build_tests.bat deleted file mode 100644 index 0ef6abb06f3f..000000000000 --- a/cuda_bindings_13/tests/cython/build_tests.bat +++ /dev/null @@ -1,12 +0,0 @@ -@echo off - -REM SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -REM SPDX-License-Identifier: Apache-2.0 - -setlocal -set CL=%CL% /I"%CUDA_HOME%\include" -REM The Python driver provides Cython's .pxd include path and builds in this -REM directory so Windows does not duplicate the checkout path in link outputs. -python "%~dp0build_tests.py" -set "BUILD_RESULT=%ERRORLEVEL%" -endlocal & exit /b %BUILD_RESULT% diff --git a/cuda_bindings_13/tests/cython/build_tests.py b/cuda_bindings_13/tests/cython/build_tests.py index d5f0c7fe583c..664fb4fb71bb 100644 --- a/cuda_bindings_13/tests/cython/build_tests.py +++ b/cuda_bindings_13/tests/cython/build_tests.py @@ -98,6 +98,7 @@ def main() -> None: raise SystemExit(f"no test_*.pyx files under {script_dir}") ext_modules = _cythonize_tests(pyx_files) + build_shared._add_cython_test_include_dirs(ext_modules) # pytest imports each extension by bare module name (see test_cython.py), # so build in-place next to its .pyx regardless of the invoking cwd. diff --git a/cuda_bindings_13/tests/cython/build_tests.sh b/cuda_bindings_13/tests/cython/build_tests.sh deleted file mode 100755 index 0ca0745d2b4c..000000000000 --- a/cuda_bindings_13/tests/cython/build_tests.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -eo pipefail - -# SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -# SPDX-License-Identifier: Apache-2.0 - -UNAME=$(uname) -if [ "$UNAME" == "Linux" ] ; then - SCRIPTPATH=$(dirname $(realpath "$0")) - export CPLUS_INCLUDE_PATH=$CUDA_HOME/include:${CPLUS_INCLUDE_PATH:-} -elif [[ "$UNAME" == CYGWIN* || "$UNAME" == MINGW* || "$UNAME" == MSYS* ]] ; then - SCRIPTPATH="$(dirname $(cygpath -w $(realpath "$0")))" - export CL="/I\"${CUDA_HOME}\\include\" ${CL:-}" -else - exit 1 -fi - -# Use a Python driver so the cuda.bindings source root is resolved at -# runtime and passed via Cython's include_path -- avoids platform-specific -# PYTHONPATH separator handling and surfaces import errors as exceptions. -# nthreads=1 inside the driver mirrors the previous `-j 1` to side-step -# any process-pool issues and keep builds deterministic. -python "${SCRIPTPATH}/build_tests.py" diff --git a/cuda_core/AGENTS.md b/cuda_core/AGENTS.md index ab91616515c3..863785d22281 100644 --- a/cuda_core/AGENTS.md +++ b/cuda_core/AGENTS.md @@ -130,7 +130,7 @@ the literal floor. - **Primary tests**: `pytest tests/` - **Cython tests**: - - build: `tests/cython/build_tests.sh` (or platform equivalent) + - build: `python tests/cython/build_tests.py` - run: `pytest tests/cython/` - **Samples**: validate affected samples in `../samples/cuda_core/` when changing user workflows or public APIs. diff --git a/cuda_core/README.md b/cuda_core/README.md index 42e9aab5ed1f..ed17697b01be 100644 --- a/cuda_core/README.md +++ b/cuda_core/README.md @@ -33,7 +33,7 @@ Builds run clang-tidy on the handwritten C++ sources (`cuda/core/_cpp/`) and fai Cython tests are located in `tests/cython` and need to be built. These builds have the same CUDA Toolkit header requirements as [those of cuda.bindings](https://nvidia.github.io/cuda-python/cuda-bindings/latest/install.html#requirements) where the major.minor version must match `cuda.bindings`. To build them: 1. Set up environment variable `CUDA_PATH` (or `CUDA_HOME`) with the path to the CUDA Toolkit installation. Note: If both are set, `CUDA_PATH` takes precedence. -2. Run `build_tests` script located in `tests/cython` appropriate to your platform. This will both cythonize the tests and build them. +2. Run `python tests/cython/build_tests.py` to cythonize and build the tests. To run these tests: * `python -m pytest tests/cython/` with editable installations diff --git a/cuda_core/pixi.toml b/cuda_core/pixi.toml index b845599c039d..10dc34b46ff1 100644 --- a/cuda_core/pixi.toml +++ b/cuda_core/pixi.toml @@ -134,12 +134,15 @@ cuda-crt-dev_win-64 = "*" # For finding headers when building the Cython tests [feature.cython-tests.target.linux-64.activation.env] CUDA_HOME = "$CONDA_PREFIX/targets/x86_64-linux" +CUDA_PATH = "$CONDA_PREFIX/targets/x86_64-linux" [feature.cython-tests.target.linux-aarch64.activation.env] CUDA_HOME = "$CONDA_PREFIX/targets/sbsa-linux" +CUDA_PATH = "$CONDA_PREFIX/targets/sbsa-linux" [feature.cython-tests.target.win-64.activation.env] CUDA_HOME = "$CONDA_PREFIX/Library" +CUDA_PATH = "$CONDA_PREFIX/Library" [feature.cu13.dependencies] cuda-version = "13.5.*" @@ -294,8 +297,8 @@ numpy = "*" cuda-bindings = "*" cuda-pathfinder = "*" -[target.linux.tasks.build-cython-tests] -cmd = ["$PIXI_PROJECT_ROOT/tests/cython/build_tests.sh"] +[tasks.build-cython-tests] +cmd = 'python "$PIXI_PROJECT_ROOT/tests/cython/build_tests.py"' [target.linux.tasks.docs-build] cmd = ["$PIXI_PROJECT_ROOT/docs/build_docs.sh"] @@ -314,9 +317,6 @@ cmd = ["$PIXI_PROJECT_ROOT/docs/build_docs.sh", "latest-only"] env = { SPHINXOPTS = "-v -j 1 -d build/.doctrees" } default-environment = "docs" -[target.win-64.tasks.build-cython-tests] -cmd = ["$PIXI_PROJECT_ROOT/tests/cython/build_tests.bat"] - [target.linux.tasks.test] cmd = [ "pytest", diff --git a/cuda_core/pyproject.toml b/cuda_core/pyproject.toml index 1e5e60a52fb3..99ff2c5ededb 100644 --- a/cuda_core/pyproject.toml +++ b/cuda_core/pyproject.toml @@ -76,6 +76,7 @@ build = [ "clang-tidy==22.1.8; sys_platform != 'win32' or platform_machine != 'ARM64'", ] test = [ + "cuda-pathfinder>=1.5", "cython>=3.2.5,<3.3", "setuptools>=80", "pytest==9.1.0", diff --git a/cuda_core/tests/cython/build_tests.py b/cuda_core/tests/cython/build_tests.py index 0ae2d3531e62..d833f1917548 100644 --- a/cuda_core/tests/cython/build_tests.py +++ b/cuda_core/tests/cython/build_tests.py @@ -105,6 +105,8 @@ def main() -> None: # are stable regardless of the invoking cwd. os.chdir(script_dir) ext_modules = _cythonize_tests(pyx_files) + core_include_dir = script_dir.parents[1] / "cuda" / "core" / "_include" + build_shared._add_cython_test_include_dirs(ext_modules, core_include_dir) # Core's runtime consumer headers require C++17 with either toolchain. for extension in ext_modules: extension.extra_compile_args.append("/std:c++17" if os.name == "nt" else "-std=c++17") diff --git a/cuda_core/tests/cython/build_tests.sh b/cuda_core/tests/cython/build_tests.sh deleted file mode 100755 index 72403baf5719..000000000000 --- a/cuda_core/tests/cython/build_tests.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash -set -eo pipefail - -# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -# SPDX-License-Identifier: Apache-2.0 - -UNAME=$(uname) -if [ "$UNAME" == "Linux" ] ; then - SCRIPTPATH=$(dirname $(realpath "$0")) - export CPLUS_INCLUDE_PATH=${SCRIPTPATH}/../../cuda/core/_include:$CUDA_HOME/include:${CPLUS_INCLUDE_PATH:-} -elif [[ "$UNAME" == CYGWIN* || "$UNAME" == MINGW* || "$UNAME" == MSYS* ]] ; then - SCRIPTPATH="$(dirname $(cygpath -w $(realpath "$0")))" - CUDA_CORE_INCLUDE_PATH=$(echo "${SCRIPTPATH}\..\..\cuda\core\_include" | sed 's/\\/\\\\/g') - export CL="/I\"${CUDA_CORE_INCLUDE_PATH}\" /I\"${CUDA_HOME}\\include\" ${CL:-}" -else - exit 1 -fi - -# Use a Python driver so the cuda.bindings source root is resolved at -# runtime and passed via Cython's include_path -- avoids platform-specific -# PYTHONPATH separator handling and surfaces import errors as exceptions. -python "${SCRIPTPATH}/build_tests.py" From e2c95d79ab73c30568b98e6e9438f05ea055c751 Mon Sep 17 00:00:00 2001 From: Ralf Juengling Date: Mon, 23 Nov 2026 14:08:13 -0800 Subject: [PATCH 83/85] fix(cuda.core): drop the unsynchronized driver version cache in cy_driver_version (#3523) cy_driver_version() filled a module-level tuple without synchronization. On free-threaded builds, concurrent first calls could replace the tuple while another thread was reading it, leaking it or releasing it too often. driver_version() is already cached with functools.cache, which is safe under concurrent calls, so cy_driver_version() now returns it directly. --- cuda_core/cuda/core/_utils/version.pyx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/cuda_core/cuda/core/_utils/version.pyx b/cuda_core/cuda/core/_utils/version.pyx index b92fc5952e34..1ef30b3affb4 100644 --- a/cuda_core/cuda/core/_utils/version.pyx +++ b/cuda_core/cuda/core/_utils/version.pyx @@ -46,11 +46,8 @@ def driver_version() -> tuple[int, int, int]: return (ver // 1000, (ver // 10) % 100, ver % 10) -cdef tuple _cached_driver_version = None - - cdef tuple cy_driver_version(): - global _cached_driver_version - if _cached_driver_version is None: - _cached_driver_version = driver_version() - return _cached_driver_version + # Do not add a module-level cache here: it would be filled without + # synchronization, which is unsafe on free-threaded builds. + # functools.cache on driver_version() is. + return driver_version() From b758ba34cdbe1a5361bdc92c758baa946e1fe48f Mon Sep 17 00:00:00 2001 From: Ralf Juengling Date: Mon, 23 Nov 2026 15:33:52 -0800 Subject: [PATCH 84/85] test(cuda.core): do not require a wrong-class pool import to succeed without the location query (#3540) (#3542) The fallback test for drivers before 13.2 imported the pool with the other class and expected success. Without the pool kind check, a pinned import of a device pool grants every device access to a pool that lives on one GPU, which needs peer access and fails with CUDA_ERROR_PEER_ACCESS_UNSUPPORTED on dual-GPU machines without it. The test now checks only that importing with the exporter's class works without the location query. --- cuda_core/tests/memory_ipc/test_ipc_pool_kind.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/cuda_core/tests/memory_ipc/test_ipc_pool_kind.py b/cuda_core/tests/memory_ipc/test_ipc_pool_kind.py index f86a833474c2..333453dcc2e5 100644 --- a/cuda_core/tests/memory_ipc/test_ipc_pool_kind.py +++ b/cuda_core/tests/memory_ipc/test_ipc_pool_kind.py @@ -158,12 +158,11 @@ def child_import_without_location_query(mr_type, alloc_handle, descriptor): device.set_current() stream = device.default_stream - # The pool's kind is not checked, so the other class's import succeeds, as - # it did before #3502 was fixed. - with assert_no_cuda_warning(): - other = import_pool_resource(_other_class(mr_type), device, int(alloc_handle)) - other.close() - + # Importing with the exporter's class must not need the location query. A + # wrong-class import is not tested here: without the pool kind check it + # runs the other class's initialization on the wrong kind of pool, which + # can fail on some topologies (a pinned import of a device pool grants + # every device access, which needs peer access; #3540). mr = import_pool_resource(mr_type, device, int(alloc_handle)) if mr_type is PinnedMemoryResource: # Without the location query the pool's node is unknown (see numa_id). @@ -212,7 +211,7 @@ def test_matching_import_works(self, pool_resource, exported_buffer): class TestIpcPoolImportWithoutLocationQuery(_IpcPoolFixtures): - """With a driver before 13.2, imports skip the pool kind check and behave as before.""" + """With a driver before 13.2, importing with the exporter's class works without the pool kind check.""" @pytest.mark.agent_authored(model="claude-opus-5-5") def test_import_without_location_query(self, pool_resource, exported_buffer): From e195f81b67bb2dd6bc67d904b8589430f5534f71 Mon Sep 17 00:00:00 2001 From: Ralf Juengling Date: Mon, 23 Nov 2026 16:41:44 -0800 Subject: [PATCH 85/85] test(cuda.core): cover re-importing a pinned pool after a release with a pending free (#3531) test(cuda.core): cover re-importing a pinned pool after a release with a pending free Add a regression test for #3514: re-importing an IPC pinned pool after the last import is released with an unsynchronized free still pending. The fix (the CUDA_ERROR_ALREADY_MAPPED retry) landed in #3511; this covers the sequence directly, over a single import, several raw-handle imports, and concurrent UUID imports. Also release resources through an ExitStack on failure and consolidate the duplicate-import test helpers. Closes #3514. --- .../test_ipc_pool_duplicate_import.py | 390 +++++++++++------- 1 file changed, 244 insertions(+), 146 deletions(-) diff --git a/cuda_core/tests/memory_ipc/test_ipc_pool_duplicate_import.py b/cuda_core/tests/memory_ipc/test_ipc_pool_duplicate_import.py index 2c5769106b70..075bdec233ba 100644 --- a/cuda_core/tests/memory_ipc/test_ipc_pool_duplicate_import.py +++ b/cuda_core/tests/memory_ipc/test_ipc_pool_duplicate_import.py @@ -19,9 +19,11 @@ import time import uuid +import helpers import pytest -from helpers.child_processes import run_child +from helpers.child_processes import child_timeout_sec, run_child from helpers.contexts import assert_no_cuda_warning +from helpers.latch import LatchKernel from helpers.memory import import_pool_resource, is_pool_resource, pool_access_flags from cuda.bindings import driver @@ -42,49 +44,70 @@ pytestmark = pytest.mark.parallel_threads_limit(2) -def _import_twice(mr_type, device, alloc_handle): +def _enter_import(stack, mr_type, device, alloc_handle): + """Import the pool for ``alloc_handle`` and register it to close on ``stack``.""" + return stack.enter_context(contextlib.closing(import_pool_resource(mr_type, device, alloc_handle))) + + +def _run_threads(threads): + """Start every thread, then join every thread.""" + for thread in threads: + thread.start() + for thread in threads: + thread.join() + + +@contextlib.contextmanager +def _child_device(): + """Set the child's current device, and assert the owned-pool count returns to its baseline.""" + device = Device() + device.set_current() + baseline = _live_owned_mempool_count() + yield device, baseline + assert _live_owned_mempool_count() == baseline + + +def _import_twice(stack, mr_type, device, alloc_handle): # A raw file descriptor carries no UUID, so the registry cannot dedupe. - first = import_pool_resource(mr_type, device, int(alloc_handle)) - second = import_pool_resource(mr_type, device, int(alloc_handle)) + first = _enter_import(stack, mr_type, device, int(alloc_handle)) + second = _enter_import(stack, mr_type, device, int(alloc_handle)) assert first is not second assert int(first.handle) == int(second.handle) return first, second def child_close_one_import(mr_type, alloc_handle, descriptor): - device = Device() - device.set_current() - stream = device.default_stream - baseline = _live_owned_mempool_count() - - first, second = _import_twice(mr_type, device, alloc_handle) - assert _live_owned_mempool_count() == baseline + 1 + # The stack closes the buffer, then both resources; the first is closed + # early on purpose, and closing it again is a no-op. It drains the stream + # last, so the imported free completes before the exporter frees its buffer. + with _child_device() as (device, baseline), contextlib.ExitStack() as stack: + stream = device.default_stream + stack.callback(stream.sync) + first, second = _import_twice(stack, mr_type, device, alloc_handle) + assert _live_owned_mempool_count() == baseline + 1 - first.close() - assert pool_access_flags(second, device) == driver.CUmemAccess_flags.CU_MEM_ACCESS_FLAGS_PROT_READWRITE + first.close() + assert pool_access_flags(second, device) == driver.CUmemAccess_flags.CU_MEM_ACCESS_FLAGS_PROT_READWRITE - buffer = Buffer.from_ipc_descriptor(second, descriptor, stream=stream) - buffer.fill(7, stream=stream) - stream.sync() - buffer.close() - second.close() - assert _live_owned_mempool_count() == baseline + buffer = stack.enter_context(Buffer.from_ipc_descriptor(second, descriptor, stream=stream)) + buffer.fill(7, stream=stream) + stream.sync() def child_close_both_imports_with_outstanding_buffer(mr_type, alloc_handle, descriptor): - device = Device() - device.set_current() - stream = device.default_stream - baseline = _live_owned_mempool_count() - - with assert_no_cuda_warning(): - first, second = _import_twice(mr_type, device, alloc_handle) + # The closes below are the sequence under test; the stack repeats them as + # no-ops, and releases whatever a failed assertion leaves open. It drains the + # stream last, so a failure partway still completes the imported frees. + with _child_device() as (device, baseline), assert_no_cuda_warning(), contextlib.ExitStack() as stack: + stream = device.default_stream + stack.callback(stream.sync) + first, second = _import_twice(stack, mr_type, device, alloc_handle) assert _live_owned_mempool_count() == baseline + 1 # The buffer keeps the pool alive after both resources are closed. - outstanding = Buffer.from_ipc_descriptor(first, descriptor, stream=stream) + outstanding = stack.enter_context(Buffer.from_ipc_descriptor(first, descriptor, stream=stream)) first.close() assert pool_access_flags(second, device) == driver.CUmemAccess_flags.CU_MEM_ACCESS_FLAGS_PROT_READWRITE - buffer = Buffer.from_ipc_descriptor(second, descriptor, stream=stream) + buffer = stack.enter_context(Buffer.from_ipc_descriptor(second, descriptor, stream=stream)) buffer.fill(7, stream=stream) stream.sync() buffer.close() @@ -95,114 +118,105 @@ def child_close_both_imports_with_outstanding_buffer(mr_type, alloc_handle, desc stream.sync() outstanding.close() stream.sync() - assert _live_owned_mempool_count() == baseline def _race_reimport_with_last_release(mr_type, device, alloc_handle, descriptor): # The buffer is freed on another thread, which a per-thread default stream # would report as a cross-thread free. stream = device.create_stream() - # The buffer holds the last reference to the pool once its resource is - # closed, so closing the buffer releases the pool. - mr = import_pool_resource(mr_type, device, int(alloc_handle)) - outstanding = Buffer.from_ipc_descriptor(mr, descriptor, stream=stream) - mr.close() - del mr - - barrier = threading.Barrier(2) - reimported = [] - errors = [] - - def release(): - try: - barrier.wait() - outstanding.close() - except Exception as e: - errors.append(e) - barrier.abort() - - def reimport(): - try: - Device().set_current() - barrier.wait() - # Start once the release is under way, inside its delay. - time.sleep(RELEASE_DELAY_US / 4 / 1e6) - # A raw file descriptor carries no UUID, so this is a real import, - # through an object the releasing thread never sees. - mr = import_pool_resource(mr_type, device, int(alloc_handle)) - reimported.append((mr, Buffer.from_ipc_descriptor(mr, descriptor, stream=stream))) - except Exception as e: - errors.append(e) - barrier.abort() - - threads = [threading.Thread(target=release), threading.Thread(target=reimport)] - for thread in threads: - thread.start() - for thread in threads: - thread.join() - if errors: - raise errors[0] - - # The release has finished: its cleanup must have left the new import alone. - ((mr, buffer),) = reimported - assert pool_access_flags(mr, device) == driver.CUmemAccess_flags.CU_MEM_ACCESS_FLAGS_PROT_READWRITE - buffer.fill(7, stream=stream) - stream.sync() - buffer.close() - mr.close() - stream.sync() - stream.close() + # The stack closes in reverse order: the new buffer and resource, then the + # stream after it has synchronized the pending frees. + with contextlib.ExitStack() as stack: + stack.enter_context(contextlib.closing(stream)) + stack.callback(stream.sync) + + # The buffer holds the last reference to the pool once its resource is + # closed, so closing the buffer releases the pool. + with contextlib.closing(import_pool_resource(mr_type, device, int(alloc_handle))) as mr: + outstanding = stack.enter_context(Buffer.from_ipc_descriptor(mr, descriptor, stream=stream)) + del mr + + barrier = threading.Barrier(2) + reimported = [] + reimported_buffers = [] + errors = [] + + def release(): + try: + barrier.wait() + outstanding.close() + except Exception as e: + errors.append(e) + barrier.abort() + + def reimport(): + try: + Device().set_current() + barrier.wait() + # Start once the release is under way, inside its delay. + time.sleep(RELEASE_DELAY_US / 4 / 1e6) + # A raw file descriptor carries no UUID, so this is a real import, + # through an object the releasing thread never sees. + mr = import_pool_resource(mr_type, device, int(alloc_handle)) + reimported.append(mr) + reimported_buffers.append(Buffer.from_ipc_descriptor(mr, descriptor, stream=stream)) + except Exception as e: + errors.append(e) + barrier.abort() + + _run_threads([threading.Thread(target=release), threading.Thread(target=reimport)]) + # Own whatever the thread made before looking at its errors. + for mr in reimported: + stack.enter_context(contextlib.closing(mr)) + for buffer in reimported_buffers: + stack.enter_context(buffer) + if errors: + raise errors[0] + + # The release has finished: its cleanup must have left the new import alone. + (mr,) = reimported + (buffer,) = reimported_buffers + assert pool_access_flags(mr, device) == driver.CUmemAccess_flags.CU_MEM_ACCESS_FLAGS_PROT_READWRITE + buffer.fill(7, stream=stream) + stream.sync() def child_reimport_races_last_release(mr_type, alloc_handle, descriptor): - device = Device() - device.set_current() - baseline = _live_owned_mempool_count() - - _set_ipc_pool_release_delay_for_testing(RELEASE_DELAY_US) - try: - with assert_no_cuda_warning(): - for _ in range(RACE_ITERATIONS): - _race_reimport_with_last_release(mr_type, device, alloc_handle, descriptor) - finally: - _set_ipc_pool_release_delay_for_testing(0) - assert _live_owned_mempool_count() == baseline + with _child_device() as (device, _baseline): + _set_ipc_pool_release_delay_for_testing(RELEASE_DELAY_US) + try: + with assert_no_cuda_warning(): + for _ in range(RACE_ITERATIONS): + _race_reimport_with_last_release(mr_type, device, alloc_handle, descriptor) + finally: + _set_ipc_pool_release_delay_for_testing(0) def child_register_reentered_by_gc(mr_type, alloc_handle): - device = Device() - device.set_current() - baseline = _live_owned_mempool_count() - - nested = import_pool_resource(mr_type, device, int(alloc_handle)) - nested_uuid = uuid.uuid4() - nested.register(nested_uuid) - - # Registering inserts a weak reference into the registry, and allocating - # it can start a collection. A callback that registers again then runs on - # the thread that holds the registry lock. - def register_during_collection(phase, info): - if phase == "start": - nested.register(nested_uuid) - - imports = [] - threshold = gc.get_threshold() - gc.callbacks.append(register_during_collection) - try: - gc.set_threshold(1) - for _ in range(REENTRY_ITERATIONS): - # A raw file descriptor carries no UUID, so each import registers a new one. - mr = import_pool_resource(mr_type, device, int(alloc_handle)) - imports.append(mr) - assert mr.register(uuid.uuid4()) is mr - finally: - gc.set_threshold(*threshold) - gc.callbacks.remove(register_during_collection) - - for mr in imports: - mr.close() - nested.close() - assert _live_owned_mempool_count() == baseline + # The stack closes the imports, then the nested resource. + with _child_device() as (device, _baseline), contextlib.ExitStack() as stack: + nested = _enter_import(stack, mr_type, device, int(alloc_handle)) + nested_uuid = uuid.uuid4() + nested.register(nested_uuid) + + # Registering inserts a weak reference into the registry, and allocating + # it can start a collection. A callback that registers again then runs on + # the thread that holds the registry lock. + def register_during_collection(phase, info): + if phase == "start": + nested.register(nested_uuid) + + threshold = gc.get_threshold() + gc.callbacks.append(register_during_collection) + try: + gc.set_threshold(1) + for _ in range(REENTRY_ITERATIONS): + # A raw file descriptor carries no UUID, so each import registers a new one. + mr = _enter_import(stack, mr_type, device, int(alloc_handle)) + assert mr.register(uuid.uuid4()) is mr + finally: + gc.set_threshold(*threshold) + gc.callbacks.remove(register_during_collection) def _import_concurrently(mr_type, device, alloc_handle): @@ -219,35 +233,99 @@ def importer(index): errors.append(e) barrier.abort() - threads = [threading.Thread(target=importer, args=(i,)) for i in range(THREADS)] - for thread in threads: - thread.start() - for thread in threads: - thread.join() + _run_threads([threading.Thread(target=importer, args=(i,)) for i in range(THREADS)]) if errors: + # The imports that succeeded would otherwise stay open. + for mr in results: + if mr is not None: + mr.close() raise errors[0] return results def child_concurrent_uuid_imports(mr_type, alloc_handle): - device = Device() - device.set_current() - assert alloc_handle.uuid is not None - baseline = _live_owned_mempool_count() + with _child_device() as (device, baseline): + assert alloc_handle.uuid is not None + for _ in range(ITERATIONS): + with contextlib.ExitStack() as stack: + results = _import_by_path(stack, "concurrent_uuid", mr_type, device, alloc_handle) + # Every import of the UUID returns the registered resource, whichever + # thread registered it, with its device set before it was registered. + assert all(mr is results[0] for mr in results) + if mr_type is DeviceMemoryResource: + assert results[0].device_id == device.device_id + assert _live_owned_mempool_count() == baseline + 1 + # Dropping the losing imports must not revoke the winner's access. + assert ( + pool_access_flags(results[0], device) == driver.CUmemAccess_flags.CU_MEM_ACCESS_FLAGS_PROT_READWRITE + ) + del results + assert _live_owned_mempool_count() == baseline + + +def _import_by_path(stack, import_path, mr_type, device, alloc_handle): + """Import the pool as ``import_path`` names; ``stack`` closes every resource the import made.""" + if import_path == "single": + return [_enter_import(stack, mr_type, device, alloc_handle)] + if import_path == "raw_handle": + # A raw file descriptor carries no UUID, so each import is a real import. + return [_enter_import(stack, mr_type, device, int(alloc_handle)) for _ in range(THREADS)] + assert import_path == "concurrent_uuid", import_path + return [stack.enter_context(contextlib.closing(mr)) for mr in _import_concurrently(mr_type, device, alloc_handle)] + + +def _release_import_holding_free(import_path, mr_type, device, alloc_handle, descriptor, stream, latch): + """Import, fill, and release the pool with the import's free held pending behind ``latch``. + + The frees that closing the buffers enqueues sit behind ``latch`` on + ``stream`` until it is released, so the imported pointer stays mapped and + the pool stays alive when the next import grants device access. That is the + state in which the grant fails with ``CUDA_ERROR_ALREADY_MAPPED`` and the + retry under test recovers; a free that retired first would clear it and + hide a regression. + """ + # The stack closes the buffers, then the resources. Returning drops the + # ``resources`` and ``buffers`` references, so the registry entry clears and + # the next import is a real one, while the frees stay pending behind latch. + with contextlib.ExitStack() as stack: + resources = _import_by_path(stack, import_path, mr_type, device, alloc_handle) + buffers = [stack.enter_context(Buffer.from_ipc_descriptor(mr, descriptor, stream=stream)) for mr in resources] + for buffer in buffers: + buffer.fill(7, stream=stream) + stream.sync() + latch.launch(stream) + + +def _reimport_and_check_grant(import_path, mr_type, device, alloc_handle, descriptor, stream, latch): + """Re-import the pool while a free is pending and assert the grant that #3514 fails on.""" + with contextlib.ExitStack() as stack: + resources = _import_by_path(stack, import_path, mr_type, device, alloc_handle) + for mr in resources: + assert pool_access_flags(mr, device) == driver.CUmemAccess_flags.CU_MEM_ACCESS_FLAGS_PROT_READWRITE + # The grant was checked with the free still pending. Release the stream + # before importing a pointer, which waits for a pending free of it. + latch.release() + buffer = stack.enter_context(Buffer.from_ipc_descriptor(resources[0], descriptor, stream=stream)) + buffer.fill(9, stream=stream) + stream.sync() - for _ in range(ITERATIONS): - results = _import_concurrently(mr_type, device, alloc_handle) - # Every import of the UUID returns the registered resource, whichever - # thread registered it, with its device set before it was registered. - assert all(mr is results[0] for mr in results) - if mr_type is DeviceMemoryResource: - assert results[0].device_id == device.device_id - assert _live_owned_mempool_count() == baseline + 1 - # Dropping the losing imports must not revoke the winner's access. - assert pool_access_flags(results[0], device) == driver.CUmemAccess_flags.CU_MEM_ACCESS_FLAGS_PROT_READWRITE - results[0].close() - del results - assert _live_owned_mempool_count() == baseline + +def child_reimport_after_release_with_pending_free(mr_type, alloc_handle, descriptor, import_path): + # A failed grant is also reported as a warning by the cleanup that follows it. + with _child_device() as (device, _baseline), assert_no_cuda_warning(), contextlib.ExitStack() as stack: + stream = stack.enter_context(contextlib.closing(device.create_stream())) + # The timeout outlasts run_child's, so a stuck child is ended before the + # latch can release itself and let the free retire unobserved. + latch = LatchKernel(device, timeout_sec=4 * child_timeout_sec()) + stack.callback(latch.close) + # On every path, release the latch and then drain the stream: the + # imported frees must complete before the exporter frees its allocation, + # and a held latch would stall the drain. + stack.callback(stream.sync) + stack.callback(latch.release) + _release_import_holding_free(import_path, mr_type, device, alloc_handle, descriptor, stream, latch) + _reimport_and_check_grant(import_path, mr_type, device, alloc_handle, descriptor, stream, latch) + assert not latch.timed_out, "the latch timed out, so the free may have retired before the grant was checked" class TestIpcPoolDuplicateImport: @@ -307,3 +385,23 @@ def test_registration_reentered_from_garbage_collection(self, ipc_device, pool_r def test_concurrent_imports_of_one_uuid_share_a_resource(self, ipc_device, pool_resource): ipc_device.set_current() run_child(child_concurrent_uuid_imports, type(pool_resource), pool_resource.allocation_handle) + + # Releasing the last import of a pool with unsynchronized frees pending + # leaves the driver holding the pool (#3514); the next import must still + # grant device access. + @pytest.mark.parametrize("import_path", ["single", "raw_handle", "concurrent_uuid"]) + @pytest.mark.agent_authored(model="claude-sonnet-5-5") + def test_reimport_after_release_with_pending_free(self, ipc_device, pool_resource, exported_buffer, import_path): + # The child holds the free with a LatchKernel. Check what it needs here: + # a skip raised in the child would surface as a child failure. + if helpers.CUDA_INCLUDE_PATH is None: + pytest.skip("LatchKernel needs the CUDA headers") + if ipc_device.compute_capability.major < 7: + pytest.skip("__nanosleep is only available starting Volta (sm70)") + run_child( + child_reimport_after_release_with_pending_free, + type(pool_resource), + pool_resource.allocation_handle, + exported_buffer.ipc_descriptor, + import_path, + )